@streamlayer/sdk-web 0.29.3 → 0.29.4

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
@@ -44,10 +44,10 @@ function ni(t, e, r) {
44
44
  return (e + r) * 3 / 4 - r;
45
45
  }
46
46
  function ii(t) {
47
- var e, r = Zr(t), o = r[0], s = r[1], u = new ei(ni(t, o, s)), l = 0, c = s > 0 ? o - 4 : o, p;
48
- for (p = 0; p < c; p += 4)
49
- e = se[t.charCodeAt(p)] << 18 | se[t.charCodeAt(p + 1)] << 12 | se[t.charCodeAt(p + 2)] << 6 | se[t.charCodeAt(p + 3)], u[l++] = e >> 16 & 255, u[l++] = e >> 8 & 255, u[l++] = e & 255;
50
- return s === 2 && (e = se[t.charCodeAt(p)] << 2 | se[t.charCodeAt(p + 1)] >> 4, u[l++] = e & 255), s === 1 && (e = se[t.charCodeAt(p)] << 10 | se[t.charCodeAt(p + 1)] << 4 | se[t.charCodeAt(p + 2)] >> 2, u[l++] = e >> 8 & 255, u[l++] = e & 255), u;
47
+ var e, r = Zr(t), o = r[0], s = r[1], u = new ei(ni(t, o, s)), l = 0, c = s > 0 ? o - 4 : o, d;
48
+ for (d = 0; d < c; d += 4)
49
+ e = se[t.charCodeAt(d)] << 18 | se[t.charCodeAt(d + 1)] << 12 | se[t.charCodeAt(d + 2)] << 6 | se[t.charCodeAt(d + 3)], u[l++] = e >> 16 & 255, u[l++] = e >> 8 & 255, u[l++] = e & 255;
50
+ return s === 2 && (e = se[t.charCodeAt(d)] << 2 | se[t.charCodeAt(d + 1)] >> 4, u[l++] = e & 255), s === 1 && (e = se[t.charCodeAt(d)] << 10 | se[t.charCodeAt(d + 1)] << 4 | se[t.charCodeAt(d + 2)] >> 2, u[l++] = e >> 8 & 255, u[l++] = e & 255), u;
51
51
  }
52
52
  function oi(t) {
53
53
  return be[t >> 18 & 63] + be[t >> 12 & 63] + be[t >> 6 & 63] + be[t & 63];
@@ -69,7 +69,7 @@ function ai(t) {
69
69
  var fr = {};
70
70
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
71
71
  fr.read = function(t, e, r, o, s) {
72
- var u, l, c = s * 8 - o - 1, p = (1 << c) - 1, b = p >> 1, g = -7, m = r ? s - 1 : 0, E = r ? -1 : 1, F = t[e + m];
72
+ var u, l, c = s * 8 - o - 1, d = (1 << c) - 1, b = d >> 1, g = -7, m = r ? s - 1 : 0, E = r ? -1 : 1, F = t[e + m];
73
73
  for (m += E, u = F & (1 << -g) - 1, F >>= -g, g += c; g > 0; u = u * 256 + t[e + m], m += E, g -= 8)
74
74
  ;
75
75
  for (l = u & (1 << -g) - 1, u >>= -g, g += o; g > 0; l = l * 256 + t[e + m], m += E, g -= 8)
@@ -77,15 +77,15 @@ fr.read = function(t, e, r, o, s) {
77
77
  if (u === 0)
78
78
  u = 1 - b;
79
79
  else {
80
- if (u === p)
80
+ if (u === d)
81
81
  return l ? NaN : (F ? -1 : 1) * (1 / 0);
82
82
  l = l + Math.pow(2, o), u = u - b;
83
83
  }
84
84
  return (F ? -1 : 1) * l * Math.pow(2, u - o);
85
85
  };
86
86
  fr.write = function(t, e, r, o, s, u) {
87
- var l, c, p, b = u * 8 - s - 1, g = (1 << b) - 1, m = g >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, F = o ? 0 : u - 1, L = o ? 1 : -1, P = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
88
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (c = isNaN(e) ? 1 : 0, l = g) : (l = Math.floor(Math.log(e) / Math.LN2), e * (p = Math.pow(2, -l)) < 1 && (l--, p *= 2), l + m >= 1 ? e += E / p : e += E * Math.pow(2, 1 - m), e * p >= 2 && (l++, p /= 2), l + m >= g ? (c = 0, l = g) : l + m >= 1 ? (c = (e * p - 1) * Math.pow(2, s), l = l + m) : (c = e * Math.pow(2, m - 1) * Math.pow(2, s), l = 0)); s >= 8; t[r + F] = c & 255, F += L, c /= 256, s -= 8)
87
+ var l, c, d, b = u * 8 - s - 1, g = (1 << b) - 1, m = g >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, F = o ? 0 : u - 1, L = o ? 1 : -1, P = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
88
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (c = 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 + m >= 1 ? e += E / d : e += E * Math.pow(2, 1 - m), e * d >= 2 && (l++, d /= 2), l + m >= g ? (c = 0, l = g) : l + m >= 1 ? (c = (e * d - 1) * Math.pow(2, s), l = l + m) : (c = e * Math.pow(2, m - 1) * Math.pow(2, s), l = 0)); s >= 8; t[r + F] = c & 255, F += L, c /= 256, s -= 8)
89
89
  ;
90
90
  for (l = l << s | c, b += s; b > 0; t[r + F] = l & 255, F += L, l /= 256, b -= 8)
91
91
  ;
@@ -141,10 +141,10 @@ fr.write = function(t, e, r, o, s, u) {
141
141
  );
142
142
  return m(a);
143
143
  }
144
- return p(a, n, i);
144
+ return d(a, n, i);
145
145
  }
146
146
  c.poolSize = 8192;
147
- function p(a, n, i) {
147
+ function d(a, n, i) {
148
148
  if (typeof a == "string")
149
149
  return E(a, n);
150
150
  if (ArrayBuffer.isView(a))
@@ -172,7 +172,7 @@ fr.write = function(t, e, r, o, s, u) {
172
172
  );
173
173
  }
174
174
  c.from = function(a, n, i) {
175
- return p(a, n, i);
175
+ return d(a, n, i);
176
176
  }, Object.setPrototypeOf(c.prototype, Uint8Array.prototype), Object.setPrototypeOf(c, Uint8Array);
177
177
  function b(a) {
178
178
  if (typeof a != "number")
@@ -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"), !c.isEncoding(n))
199
199
  throw new TypeError("Unknown encoding: " + n);
200
- const i = D(a, n) | 0;
200
+ const i = j(a, n) | 0;
201
201
  let f = l(i);
202
202
  const h = f.write(a, n);
203
203
  return h !== i && (f = f.slice(0, h)), f;
@@ -301,7 +301,7 @@ fr.write = function(t, e, r, o, s, u) {
301
301
  }
302
302
  return h;
303
303
  };
304
- function D(a, n) {
304
+ function j(a, n) {
305
305
  if (c.isBuffer(a))
306
306
  return a.length;
307
307
  if (ArrayBuffer.isView(a) || ge(a, ArrayBuffer))
@@ -331,14 +331,14 @@ fr.write = function(t, e, r, o, s, u) {
331
331
  case "hex":
332
332
  return i >>> 1;
333
333
  case "base64":
334
- return dt(a).length;
334
+ return pt(a).length;
335
335
  default:
336
336
  if (h)
337
337
  return f ? -1 : ot(a).length;
338
338
  n = ("" + n).toLowerCase(), h = !0;
339
339
  }
340
340
  }
341
- c.byteLength = D;
341
+ c.byteLength = j;
342
342
  function U(a, n, i) {
343
343
  let f = !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))
@@ -508,7 +508,7 @@ fr.write = function(t, e, r, o, s, u) {
508
508
  return st(Rt(n), a, i, f);
509
509
  }
510
510
  function Se(a, n, i, f) {
511
- return st(dt(n), a, i, f);
511
+ return st(pt(n), a, i, f);
512
512
  }
513
513
  function ce(a, n, i, f) {
514
514
  return st(S(n, a.length - i), a, i, f);
@@ -724,7 +724,7 @@ fr.write = function(t, e, r, o, s, u) {
724
724
  }, c.prototype.readDoubleBE = function(n, i) {
725
725
  return n = n >>> 0, i || H(n, 8, this.length), r.read(this, n, !1, 52, 8);
726
726
  };
727
- function d(a, n, i, f, h, y) {
727
+ function p(a, n, i, f, h, y) {
728
728
  if (!c.isBuffer(a))
729
729
  throw new TypeError('"buffer" argument must be a Buffer instance');
730
730
  if (n > h || n < y)
@@ -735,7 +735,7 @@ fr.write = function(t, e, r, o, s, u) {
735
735
  c.prototype.writeUintLE = c.prototype.writeUIntLE = function(n, i, f, h) {
736
736
  if (n = +n, i = i >>> 0, f = f >>> 0, !h) {
737
737
  const R = Math.pow(2, 8 * f) - 1;
738
- d(this, n, i, f, R, 0);
738
+ p(this, n, i, f, R, 0);
739
739
  }
740
740
  let y = 1, w = 0;
741
741
  for (this[i] = n & 255; ++w < f && (y *= 256); )
@@ -744,22 +744,22 @@ fr.write = function(t, e, r, o, s, u) {
744
744
  }, c.prototype.writeUintBE = c.prototype.writeUIntBE = function(n, i, f, h) {
745
745
  if (n = +n, i = i >>> 0, f = f >>> 0, !h) {
746
746
  const R = Math.pow(2, 8 * f) - 1;
747
- d(this, n, i, f, R, 0);
747
+ p(this, n, i, f, R, 0);
748
748
  }
749
749
  let y = f - 1, w = 1;
750
750
  for (this[i + y] = n & 255; --y >= 0 && (w *= 256); )
751
751
  this[i + y] = n / w & 255;
752
752
  return i + f;
753
753
  }, c.prototype.writeUint8 = c.prototype.writeUInt8 = function(n, i, f) {
754
- return n = +n, i = i >>> 0, f || d(this, n, i, 1, 255, 0), this[i] = n & 255, i + 1;
754
+ return n = +n, i = i >>> 0, f || p(this, n, i, 1, 255, 0), this[i] = n & 255, i + 1;
755
755
  }, c.prototype.writeUint16LE = c.prototype.writeUInt16LE = function(n, i, f) {
756
- return n = +n, i = i >>> 0, f || d(this, n, i, 2, 65535, 0), this[i] = n & 255, this[i + 1] = n >>> 8, i + 2;
756
+ return n = +n, i = i >>> 0, f || p(this, n, i, 2, 65535, 0), this[i] = n & 255, this[i + 1] = n >>> 8, i + 2;
757
757
  }, c.prototype.writeUint16BE = c.prototype.writeUInt16BE = function(n, i, f) {
758
- return n = +n, i = i >>> 0, f || d(this, n, i, 2, 65535, 0), this[i] = n >>> 8, this[i + 1] = n & 255, i + 2;
758
+ return n = +n, i = i >>> 0, f || p(this, n, i, 2, 65535, 0), this[i] = n >>> 8, this[i + 1] = n & 255, i + 2;
759
759
  }, c.prototype.writeUint32LE = c.prototype.writeUInt32LE = function(n, i, f) {
760
- return n = +n, i = i >>> 0, f || d(this, n, i, 4, 4294967295, 0), this[i + 3] = n >>> 24, this[i + 2] = n >>> 16, this[i + 1] = n >>> 8, this[i] = n & 255, i + 4;
760
+ return n = +n, i = i >>> 0, f || p(this, n, i, 4, 4294967295, 0), this[i + 3] = n >>> 24, this[i + 2] = n >>> 16, this[i + 1] = n >>> 8, this[i] = n & 255, i + 4;
761
761
  }, c.prototype.writeUint32BE = c.prototype.writeUInt32BE = function(n, i, f) {
762
- return n = +n, i = i >>> 0, f || d(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;
762
+ return n = +n, i = i >>> 0, f || 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 v(a, n, i, f, h) {
765
765
  ye(n, f, h, a, i, 7);
@@ -782,7 +782,7 @@ fr.write = function(t, e, r, o, s, u) {
782
782
  }), c.prototype.writeIntLE = function(n, i, f, h) {
783
783
  if (n = +n, i = i >>> 0, !h) {
784
784
  const W = Math.pow(2, 8 * f - 1);
785
- d(this, n, i, f, W - 1, -W);
785
+ p(this, n, i, f, W - 1, -W);
786
786
  }
787
787
  let y = 0, w = 1, R = 0;
788
788
  for (this[i] = n & 255; ++y < f && (w *= 256); )
@@ -791,22 +791,22 @@ fr.write = function(t, e, r, o, s, u) {
791
791
  }, c.prototype.writeIntBE = function(n, i, f, h) {
792
792
  if (n = +n, i = i >>> 0, !h) {
793
793
  const W = Math.pow(2, 8 * f - 1);
794
- d(this, n, i, f, W - 1, -W);
794
+ p(this, n, i, f, W - 1, -W);
795
795
  }
796
796
  let y = f - 1, w = 1, R = 0;
797
797
  for (this[i + y] = n & 255; --y >= 0 && (w *= 256); )
798
798
  n < 0 && R === 0 && this[i + y + 1] !== 0 && (R = 1), this[i + y] = (n / w >> 0) - R & 255;
799
799
  return i + f;
800
800
  }, c.prototype.writeInt8 = function(n, i, f) {
801
- return n = +n, i = i >>> 0, f || d(this, n, i, 1, 127, -128), n < 0 && (n = 255 + n + 1), this[i] = n & 255, i + 1;
801
+ return n = +n, i = i >>> 0, f || p(this, n, i, 1, 127, -128), n < 0 && (n = 255 + n + 1), this[i] = n & 255, i + 1;
802
802
  }, c.prototype.writeInt16LE = function(n, i, f) {
803
- return n = +n, i = i >>> 0, f || d(this, n, i, 2, 32767, -32768), this[i] = n & 255, this[i + 1] = n >>> 8, i + 2;
803
+ return n = +n, i = i >>> 0, f || p(this, n, i, 2, 32767, -32768), this[i] = n & 255, this[i + 1] = n >>> 8, i + 2;
804
804
  }, c.prototype.writeInt16BE = function(n, i, f) {
805
- return n = +n, i = i >>> 0, f || d(this, n, i, 2, 32767, -32768), this[i] = n >>> 8, this[i + 1] = n & 255, i + 2;
805
+ return n = +n, i = i >>> 0, f || p(this, n, i, 2, 32767, -32768), this[i] = n >>> 8, this[i + 1] = n & 255, i + 2;
806
806
  }, c.prototype.writeInt32LE = function(n, i, f) {
807
- return n = +n, i = i >>> 0, f || d(this, n, i, 4, 2147483647, -2147483648), this[i] = n & 255, this[i + 1] = n >>> 8, this[i + 2] = n >>> 16, this[i + 3] = n >>> 24, i + 4;
807
+ return n = +n, i = i >>> 0, f || p(this, n, i, 4, 2147483647, -2147483648), this[i] = n & 255, this[i + 1] = n >>> 8, this[i + 2] = n >>> 16, this[i + 3] = n >>> 24, i + 4;
808
808
  }, c.prototype.writeInt32BE = function(n, i, f) {
809
- return n = +n, i = i >>> 0, f || d(this, n, i, 4, 2147483647, -2147483648), n < 0 && (n = 4294967295 + n + 1), this[i] = n >>> 24, this[i + 1] = n >>> 16, this[i + 2] = n >>> 8, this[i + 3] = n & 255, i + 4;
809
+ return n = +n, i = i >>> 0, f || p(this, n, i, 4, 2147483647, -2147483648), n < 0 && (n = 4294967295 + n + 1), this[i] = n >>> 24, this[i + 1] = n >>> 16, this[i + 2] = n >>> 8, this[i + 3] = n & 255, i + 4;
810
810
  }, c.prototype.writeBigInt64LE = Re(function(n, i = 0) {
811
811
  return v(this, n, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
812
812
  }), c.prototype.writeBigInt64BE = Re(function(n, i = 0) {
@@ -818,13 +818,13 @@ fr.write = function(t, e, r, o, s, u) {
818
818
  if (i < 0)
819
819
  throw new RangeError("Index out of range");
820
820
  }
821
- function j(a, n, i, f, h) {
821
+ function D(a, n, i, f, h) {
822
822
  return n = +n, i = i >>> 0, h || C(a, n, i, 4), r.write(a, n, i, f, 23, 4), i + 4;
823
823
  }
824
824
  c.prototype.writeFloatLE = function(n, i, f) {
825
- return j(this, n, i, !0, f);
825
+ return D(this, n, i, !0, f);
826
826
  }, c.prototype.writeFloatBE = function(n, i, f) {
827
- return j(this, n, i, !1, f);
827
+ return D(this, n, i, !1, f);
828
828
  };
829
829
  function V(a, n, i, f, h) {
830
830
  return n = +n, i = i >>> 0, h || C(a, n, i, 8), r.write(a, n, i, f, 52, 8), i + 8;
@@ -957,7 +957,7 @@ fr.write = function(t, e, r, o, s, u) {
957
957
  );
958
958
  }
959
959
  const Me = /[^+/0-9A-Za-z-_]/g;
960
- function pt(a) {
960
+ function dt(a) {
961
961
  if (a = a.split("=")[0], a = a.trim().replace(Me, ""), a.length < 2)
962
962
  return "";
963
963
  for (; a.length % 4 !== 0; )
@@ -1036,8 +1036,8 @@ fr.write = function(t, e, r, o, s, u) {
1036
1036
  i = a.charCodeAt(w), f = i >> 8, h = i % 256, y.push(h), y.push(f);
1037
1037
  return y;
1038
1038
  }
1039
- function dt(a) {
1040
- return e.toByteArray(pt(a));
1039
+ function pt(a) {
1040
+ return e.toByteArray(dt(a));
1041
1041
  }
1042
1042
  function st(a, n, i, f) {
1043
1043
  let h;
@@ -1244,7 +1244,7 @@ class xt {
1244
1244
  return this.store;
1245
1245
  }
1246
1246
  }
1247
- const pi = (t) => {
1247
+ const di = (t) => {
1248
1248
  const e = Object.keys(t);
1249
1249
  return Hr(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((o, s) => [o, r[s]])));
1250
1250
  };
@@ -1260,16 +1260,16 @@ var Ie;
1260
1260
  (function(t) {
1261
1261
  t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
1262
1262
  })(Ie || (Ie = {}));
1263
- const di = {
1263
+ const pi = {
1264
1264
  [ue.BETTING]: "betting",
1265
1265
  [ue.GAMES]: "games",
1266
1266
  [ue.PUBLIC_CHAT]: "publicChat",
1267
1267
  [ue.TWITTER]: "twitter"
1268
1268
  };
1269
- var De;
1269
+ var je;
1270
1270
  (function(t) {
1271
1271
  t.Ready = "ready", t.Suspended = "suspended";
1272
- })(De || (De = {}));
1272
+ })(je || (je = {}));
1273
1273
  class lr {
1274
1274
  status;
1275
1275
  source;
@@ -1278,7 +1278,7 @@ class lr {
1278
1278
  listeners = /* @__PURE__ */ new Set();
1279
1279
  settingsKey;
1280
1280
  constructor({ settings: e, ...r }, o) {
1281
- this.settingsKey = di[r.type], this.status = Ct(De.Suspended), this.config = new ut($e(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new ut($e(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new ut($e({}), `feature:settings:${this.settingsKey}`), this.source = o;
1281
+ this.settingsKey = pi[r.type], this.status = Ct(je.Suspended), this.config = new ut($e(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new ut($e(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new ut($e({}), `feature:settings:${this.settingsKey}`), this.source = o;
1282
1282
  }
1283
1283
  get featureConfig() {
1284
1284
  return this.config.getStore();
@@ -1290,10 +1290,10 @@ class lr {
1290
1290
  this.listeners.add(e);
1291
1291
  }
1292
1292
  enable = () => {
1293
- this.status.set(De.Ready);
1293
+ this.status.set(je.Ready);
1294
1294
  };
1295
1295
  disable = () => {
1296
- this.status.set(De.Suspended);
1296
+ this.status.set(je.Suspended);
1297
1297
  };
1298
1298
  setFeatureConfig = ({ settings: e, ...r }) => {
1299
1299
  let o;
@@ -1320,7 +1320,7 @@ class lr {
1320
1320
  }
1321
1321
  }
1322
1322
  }
1323
- class de extends xt {
1323
+ class pe extends xt {
1324
1324
  getValue = () => this.getStore().get();
1325
1325
  getValues() {
1326
1326
  throw new Error("not implemented");
@@ -1336,7 +1336,7 @@ class de extends xt {
1336
1336
  }
1337
1337
  }
1338
1338
  const ne = (t) => Ct(t);
1339
- class pe extends xt {
1339
+ class de extends xt {
1340
1340
  atomStore;
1341
1341
  constructor(e, r, o) {
1342
1342
  super(e, `api:${r}`), this.atomStore = Ct(), o && e.subscribe((s) => {
@@ -1434,7 +1434,7 @@ class mi {
1434
1434
  ts: /* @__PURE__ */ new Date(),
1435
1435
  log: []
1436
1436
  };
1437
- this.state = new ut($e(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 de(ne(null), `subscription:${s.name}:store`)), "subscribe" in o && typeof o.subscribe == "function" && o.subscribe(() => {
1437
+ this.state = new ut($e(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 pe(ne(null), `subscription:${s.name}:store`)), "subscribe" in o && typeof o.subscribe == "function" && o.subscribe(() => {
1438
1438
  this.reconnect();
1439
1439
  }), this.updateState(Ae.Ready);
1440
1440
  }
@@ -1692,10 +1692,10 @@ var Fe;
1692
1692
  t.DISABLED = "disabled", t.INITIALIZATION = "initialization", t.READY = "ready", t.FAILED = "failed", t.SUSPENDED = "suspended";
1693
1693
  })(Fe || (Fe = {}));
1694
1694
  const _i = (t) => {
1695
- const e = new Ke(), r = new de(ne(e.getExternalToken()), "userKey"), o = new de(ne(e.getToken()), "userToken"), s = new pe(Si(o.getStore(), t), "user", ({ data: l, error: c, loading: p }, b) => {
1695
+ const e = new Ke(), r = new pe(ne(e.getExternalToken()), "userKey"), o = new pe(ne(e.getToken()), "userToken"), s = new de(Si(o.getStore(), t), "user", ({ data: l, error: c, loading: d }, b) => {
1696
1696
  if (!c)
1697
- return l?.data?.id ? l.data.id : p === !1 ? void 0 : b;
1698
- }), u = new pe(Ei(o.getStore(), t), "userSettings");
1697
+ return l?.data?.id ? l.data.id : d === !1 ? void 0 : b;
1698
+ }), u = new de(Ei(o.getStore(), t), "userSettings");
1699
1699
  return {
1700
1700
  userKey: r,
1701
1701
  userToken: o,
@@ -1703,7 +1703,7 @@ const _i = (t) => {
1703
1703
  userSettings: u
1704
1704
  };
1705
1705
  }, Ci = (t) => {
1706
- const e = new de(ne(void 0), "providerStreamId"), r = new pe(bi(e.getStore(), t), "slStreamId", (s) => s?.data), o = new pe(vi(r.getAtomStore(), t), "streamSettings");
1706
+ const e = new pe(ne(void 0), "providerStreamId"), r = new de(bi(e.getStore(), t), "slStreamId", (s) => s?.data), o = new de(vi(r.getAtomStore(), t), "streamSettings");
1707
1707
  return r.getAtomStore().listen((s) => {
1708
1708
  (s === "" || s === void 0) && o.getStore().mutate(void 0);
1709
1709
  }), {
@@ -1712,7 +1712,7 @@ const _i = (t) => {
1712
1712
  streamSettings: o
1713
1713
  };
1714
1714
  }, Oi = (t) => {
1715
- const e = new de(ne(void 0), "enabled"), r = new de(ne(Fe.DISABLED), "status"), o = new pe(Ii(e.getStore(), t), "organizationSettings", (c) => c?.data?.id), s = new pe(Fi(o.getAtomStore(), t), "organizationAdvertising"), u = _i(t), l = Ci(t);
1715
+ const e = new pe(ne(void 0), "enabled"), r = new pe(ne(Fe.DISABLED), "status"), o = new de(Ii(e.getStore(), t), "organizationSettings", (c) => c?.data?.id), s = new de(Fi(o.getAtomStore(), t), "organizationAdvertising"), u = _i(t), l = Ci(t);
1716
1716
  return {
1717
1717
  enabled: e,
1718
1718
  status: r,
@@ -1730,7 +1730,7 @@ const _i = (t) => {
1730
1730
  class xi extends xt {
1731
1731
  stores;
1732
1732
  constructor(e) {
1733
- const r = Oi(e), o = pi(r);
1733
+ const r = Oi(e), o = di(r);
1734
1734
  super(o, "core"), this.stores = r;
1735
1735
  }
1736
1736
  getValue() {
@@ -1877,9 +1877,9 @@ const at = new Ke(), ki = (t, e, r) => {
1877
1877
  params: [t, e]
1878
1878
  });
1879
1879
  return r.nanoquery.createFetcherStore(s, {
1880
- fetcher: async (u, l, c, p) => (await o.summary({
1880
+ fetcher: async (u, l, c, d) => (await o.summary({
1881
1881
  eventId: c,
1882
- userId: p
1882
+ userId: d
1883
1883
  })).data?.attributes
1884
1884
  });
1885
1885
  }, Ui = (t) => {
@@ -1892,7 +1892,7 @@ const at = new Ke(), ki = (t, e, r) => {
1892
1892
  eventId: l
1893
1893
  })).data?.attributes
1894
1894
  });
1895
- }, Di = (t, e) => {
1895
+ }, ji = (t, e) => {
1896
1896
  const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "syncQuestion", params: [t] });
1897
1897
  return e.nanoquery.createFetcherStore(o, {
1898
1898
  fetcher: async (s, u, l) => l ? (await r.syncQuestion({
@@ -1901,7 +1901,7 @@ const at = new Ke(), ki = (t, e, r) => {
1901
1901
  }
1902
1902
  })).data?.attributes : void 0
1903
1903
  });
1904
- }, ji = (t, e) => {
1904
+ }, Di = (t, e) => {
1905
1905
  const { client: r } = e.createCallbackClient(ve), o = Ct({ eventId: t.get() || "", feedId: "" });
1906
1906
  return t.subscribe((u = "") => {
1907
1907
  o.set({ eventId: u, feedId: "" });
@@ -1929,50 +1929,50 @@ const at = new Ke(), ki = (t, e, r) => {
1929
1929
  return e.nanoquery.createFetcherStore(o, {
1930
1930
  fetcher: async (s, u, l) => l ? (await r.insightHistory({
1931
1931
  eventId: l
1932
- })).data?.map(({ attributes: p }) => p) : void 0
1932
+ })).data?.map(({ attributes: d }) => d) : void 0
1933
1933
  });
1934
1934
  };
1935
- var pr = { exports: {} };
1935
+ var dr = { exports: {} };
1936
1936
  const Qi = Object.getPrototypeOf({});
1937
- function dr(t) {
1937
+ function pr(t) {
1938
1938
  function e(I) {
1939
1939
  return I !== "constructor" && I !== "prototype" && I !== "__proto__";
1940
1940
  }
1941
1941
  function r(I) {
1942
1942
  let _ = 0;
1943
- const D = I.length, U = new Array(D);
1944
- for (_ = 0; _ < D; ++_)
1943
+ const j = I.length, U = new Array(j);
1944
+ for (_ = 0; _ < j; ++_)
1945
1945
  U[_] = F(I[_]);
1946
1946
  return U;
1947
1947
  }
1948
1948
  function o(I) {
1949
1949
  const _ = {};
1950
- if (p && Object.getPrototypeOf(I) !== Qi)
1951
- return p(I);
1952
- const D = c(I);
1950
+ if (d && Object.getPrototypeOf(I) !== Qi)
1951
+ return d(I);
1952
+ const j = c(I);
1953
1953
  let U, T, x;
1954
- for (U = 0, T = D.length; U < T; ++U)
1955
- e(x = D[U]) && (_[x] = F(I[x]));
1954
+ for (U = 0, T = j.length; U < T; ++U)
1955
+ e(x = j[U]) && (_[x] = F(I[x]));
1956
1956
  return _;
1957
1957
  }
1958
1958
  function s(I, _) {
1959
- const D = I.length, U = _.length;
1959
+ const j = I.length, U = _.length;
1960
1960
  let T = 0;
1961
- const x = new Array(D + U);
1962
- for (T = 0; T < D; ++T)
1961
+ const x = new Array(j + U);
1962
+ for (T = 0; T < j; ++T)
1963
1963
  x[T] = F(I[T]);
1964
1964
  for (T = 0; T < U; ++T)
1965
- x[T + D] = F(_[T]);
1965
+ x[T + j] = F(_[T]);
1966
1966
  return x;
1967
1967
  }
1968
1968
  const u = Object.prototype.propertyIsEnumerable;
1969
1969
  function l(I) {
1970
- const _ = Object.keys(I), D = Object.getOwnPropertySymbols(I);
1971
- for (let U = 0, T = D.length; U < T; ++U)
1972
- u.call(I, D[U]) && _.push(D[U]);
1970
+ const _ = Object.keys(I), j = Object.getOwnPropertySymbols(I);
1971
+ for (let U = 0, T = j.length; U < T; ++U)
1972
+ u.call(I, j[U]) && _.push(j[U]);
1973
1973
  return _;
1974
1974
  }
1975
- const c = t && t.symbols ? l : Object.keys, p = typeof t?.cloneProtoObject == "function" ? t.cloneProtoObject : void 0;
1975
+ const c = t && t.symbols ? l : Object.keys, d = typeof t?.cloneProtoObject == "function" ? t.cloneProtoObject : void 0;
1976
1976
  function b(I) {
1977
1977
  return typeof I == "object" && I !== null && !(I instanceof RegExp) && !(I instanceof Date);
1978
1978
  }
@@ -1984,18 +1984,18 @@ function dr(t) {
1984
1984
  return b(I) ? Array.isArray(I) ? r(I) : o(I) : I;
1985
1985
  }
1986
1986
  function L(I, _) {
1987
- const D = {}, U = c(I), T = c(_);
1987
+ const j = {}, U = c(I), T = c(_);
1988
1988
  let x, k, G;
1989
1989
  for (x = 0, k = U.length; x < k; ++x)
1990
- e(G = U[x]) && T.indexOf(G) === -1 && (D[G] = F(I[G]));
1990
+ e(G = U[x]) && T.indexOf(G) === -1 && (j[G] = F(I[G]));
1991
1991
  for (x = 0, k = T.length; x < k; ++x)
1992
- e(G = T[x]) && (G in I && (U.indexOf(G) !== -1 && (D[G] = P(I[G], _[G])), !0) || // eslint-disable-line no-mixed-operators
1993
- (D[G] = F(_[G])));
1994
- return D;
1992
+ e(G = T[x]) && (G in I && (U.indexOf(G) !== -1 && (j[G] = P(I[G], _[G])), !0) || // eslint-disable-line no-mixed-operators
1993
+ (j[G] = F(_[G])));
1994
+ return j;
1995
1995
  }
1996
1996
  function P(I, _) {
1997
- const D = Array.isArray(_), U = Array.isArray(I);
1998
- return g(_) ? _ : m(I) ? F(_) : D && U ? E(I, _) : D !== U ? F(_) : L(I, _);
1997
+ const j = Array.isArray(_), U = Array.isArray(I);
1998
+ return g(_) ? _ : m(I) ? F(_) : j && U ? E(I, _) : j !== U ? F(_) : L(I, _);
1999
1999
  }
2000
2000
  function K() {
2001
2001
  switch (arguments.length) {
@@ -2007,15 +2007,15 @@ function dr(t) {
2007
2007
  return P(arguments[0], arguments[1]);
2008
2008
  }
2009
2009
  let I;
2010
- for (let _ = 0, D = arguments.length; _ < D; ++_)
2010
+ for (let _ = 0, j = arguments.length; _ < j; ++_)
2011
2011
  I = P(I, arguments[_]);
2012
2012
  return I;
2013
2013
  }
2014
2014
  return t && t.all ? K : P;
2015
2015
  }
2016
- pr.exports = dr;
2017
- pr.exports.default = dr;
2018
- var Gi = pr.exports.deepmerge = dr;
2016
+ dr.exports = pr;
2017
+ dr.exports.default = pr;
2018
+ var Gi = dr.exports.deepmerge = pr;
2019
2019
  const zi = (t) => (e, r) => {
2020
2020
  let o = 0;
2021
2021
  const s = e.length, u = r.length, l = Math.max(s, u), c = new Array(l);
@@ -2024,8 +2024,11 @@ const zi = (t) => (e, r) => {
2024
2024
  return c;
2025
2025
  }, Ki = Gi({ mergeArray: zi }), Hi = (t, e, r) => {
2026
2026
  const o = Hr([e, r], (l, c) => {
2027
- if (l && c.data)
2028
- return c.data.find((p) => p.id === l);
2027
+ if (l) {
2028
+ if (c.data)
2029
+ return c.data.find((d) => d.id === l);
2030
+ console.error("Feed list is not loaded yet. Issue with the opened question.");
2031
+ }
2029
2032
  }), s = $e({
2030
2033
  data: void 0,
2031
2034
  loading: void 0,
@@ -2042,8 +2045,8 @@ const zi = (t) => (e, r) => {
2042
2045
  }), { $store: o, $extendedStore: s, updateExtendedQuestion: (l) => {
2043
2046
  const c = s.get().data;
2044
2047
  if (c)
2045
- for (const p of l?.answers || [])
2046
- p.youVoted !== !0 && delete p.youVoted;
2048
+ for (const d of l?.answers || [])
2049
+ d.youVoted !== !0 && delete d.youVoted;
2047
2050
  s.set({ data: Ki(c, l) });
2048
2051
  } };
2049
2052
  }, an = (t) => (t.gamification || (t.gamification = new Wi(t)), t.gamification);
@@ -2074,13 +2077,13 @@ class Wi {
2074
2077
  constructor(e) {
2075
2078
  if (e.gamification)
2076
2079
  throw new Error("GamificationBackground Singleton error");
2077
- 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 de(ne(void 0), "moderationId").getStore(), this.openedQuestionId = new de(ne(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new pe($i(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new pe(Mi(this.slStreamId, e.transport), "gamification:feedList"), this.activeQuestionId = new pe(Di(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = Hi(e.transport, this.openedQuestionId, this.feedList.getStore()), this.openedQuestionId.listen((r) => {
2080
+ 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 pe(ne(void 0), "moderationId").getStore(), this.openedQuestionId = new pe(ne(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new de($i(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new de(Mi(this.slStreamId, e.transport), "gamification:feedList"), this.activeQuestionId = new de(ji(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = Hi(e.transport, this.openedQuestionId, this.feedList.getStore()), this.openedQuestionId.listen((r) => {
2078
2081
  this.log.debug({ questionId: r }, "received question"), r ? (this.questionSubscription = Vi(r, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (o) => {
2079
2082
  window.requestAnimationFrame(() => {
2080
2083
  this.openedQuestion.updateExtendedQuestion(o.data?.attributes?.question);
2081
2084
  });
2082
2085
  }), this.questionSubscription.connect()) : (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0));
2083
- }), this.feedSubscription = ji(this.slStreamId, e.transport), this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
2086
+ }), this.feedSubscription = Di(this.slStreamId, e.transport), this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
2084
2087
  window.requestAnimationFrame(() => {
2085
2088
  const o = this.activeQuestionId.getStore();
2086
2089
  o && o.mutate(r.data?.attributes);
@@ -2125,7 +2128,7 @@ class Ji {
2125
2128
  options;
2126
2129
  logger;
2127
2130
  constructor(e) {
2128
- 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 de(ne(/* @__PURE__ */ new Map()), "notifications-queue"), this.notificationsList = this.notifications.getStore();
2131
+ 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 pe(ne(/* @__PURE__ */ new Map()), "notifications-queue"), this.notificationsList = this.notifications.getStore();
2129
2132
  }
2130
2133
  addToQueue = (e) => {
2131
2134
  if (this.store.has(e.id)) {
@@ -2311,6 +2314,7 @@ const so = (t, e, r, o) => {
2311
2314
  close: () => {
2312
2315
  o.markAsViewed(g);
2313
2316
  },
2317
+ delay: 1e3,
2314
2318
  autoHideDuration: 1e6,
2315
2319
  data: {
2316
2320
  questionType: Te.UNSET,
@@ -2346,11 +2350,15 @@ const so = (t, e, r, o) => {
2346
2350
  b.data && c();
2347
2351
  }), { $store: u, submitInplay: async () => {
2348
2352
  const b = e.slStreamId.get();
2349
- b && (await to(r, b), u.set(re.Completed), s.saveOnboardingStatus({
2350
- organizationId: e.organizationId.get() || "",
2351
- userId: e.userId.get() || "",
2352
- eventId: b
2353
- }, re.Completed));
2353
+ if (b) {
2354
+ await to(r, b), u.set(re.Completed), s.saveOnboardingStatus({
2355
+ organizationId: e.organizationId.get() || "",
2356
+ userId: e.userId.get() || "",
2357
+ eventId: b
2358
+ }, re.Completed);
2359
+ const g = e.getCurrentSessionId({ prefix: "onboarding" });
2360
+ o.close(g);
2361
+ }
2354
2362
  } };
2355
2363
  }, ao = /* @__PURE__ */ new Set([Te.POLL, Te.PREDICTION, Te.TRIVIA]);
2356
2364
  class uo extends lr {
@@ -2380,8 +2388,8 @@ class uo extends lr {
2380
2388
  /** Browser cache */
2381
2389
  storage;
2382
2390
  constructor(e, r, o) {
2383
- super(e, r), this.background = an(o), this.storage = new un(), this.userSummary = new pe(Ni(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.feedList = this.background.feedList, this.currentUserId = this.background.userId, this.openedUser = ne(void 0), this.leaderboardId = new de(ne(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = so(this, this.background, o.transport, o.notifications), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ue.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = oo(this.transport, this.background.slStreamId, this.background.userId), this.leaderboardList = no(this.transport, this.background.slStreamId), this.status.subscribe((s) => {
2384
- s === De.Ready ? this.connect(o.transport) : this.disconnect();
2391
+ super(e, r), this.background = an(o), this.storage = new un(), this.userSummary = new de(Ni(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.feedList = this.background.feedList, this.currentUserId = this.background.userId, this.openedUser = ne(void 0), this.leaderboardId = new pe(ne(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = so(this, this.background, o.transport, o.notifications), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ue.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = oo(this.transport, this.background.slStreamId, this.background.userId), this.leaderboardList = no(this.transport, this.background.slStreamId), this.status.subscribe((s) => {
2392
+ s === je.Ready ? this.connect(o.transport) : this.disconnect();
2385
2393
  }), this.background.activeQuestionId.listen((s) => {
2386
2394
  if (s && s.data && this.onboardingStatus.$store.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && s.data.question.status === We.ACTIVE) {
2387
2395
  if (ao.has(s.data.question.type))
@@ -2463,7 +2471,7 @@ class uo extends lr {
2463
2471
  if (s === We.RESOLVED && u === Te.PREDICTION) {
2464
2472
  const c = this.background.getCurrentSessionId({
2465
2473
  prefix: `notification-id:${l}`
2466
- }), p = await sn(l, e), b = p?.answers.find(({ correct: m }) => m), g = p?.answers.find(({ youVoted: m }) => m);
2474
+ }), d = await sn(l, e), b = d?.answers.find(({ correct: m }) => m), g = d?.answers.find(({ youVoted: m }) => m);
2467
2475
  if (!g)
2468
2476
  return;
2469
2477
  this.notifications.add({
@@ -2482,7 +2490,8 @@ class uo extends lr {
2482
2490
  },
2483
2491
  correctAnswerTitle: b?.text,
2484
2492
  correct: b?.youVoted,
2485
- predictionResult: s === We.RESOLVED
2493
+ predictionResult: s === We.RESOLVED,
2494
+ questionTitle: d?.subject
2486
2495
  }
2487
2496
  }
2488
2497
  }), this.userSummary.invalidate();
@@ -2523,7 +2532,7 @@ class co extends lr {
2523
2532
  background;
2524
2533
  constructor(e, r, o) {
2525
2534
  super(e, r), this.background = an(o), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ue.HIGHLIGHTS), this.status.subscribe((s) => {
2526
- s === De.Ready ? this.connect() : this.disconnect();
2535
+ s === je.Ready ? this.connect() : this.disconnect();
2527
2536
  }), this.background.activeQuestionId.listen((s) => {
2528
2537
  s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && s.data.question.type === Te.FACTOID && s.data.question.status === We.ACTIVE && this.notifications.add({
2529
2538
  type: Le.QUESTION,
@@ -2541,7 +2550,7 @@ class co extends lr {
2541
2550
  }), this.openedInsight = this.background.openedQuestion;
2542
2551
  }
2543
2552
  connect = () => {
2544
- this.insights ? this.insights.invalidate() : this.insights = new pe(qi(this.background.slStreamId, this.transport), "gamification:insights"), this.background.feedSubscription.addListener("feed-subscription-insights-list", () => {
2553
+ this.insights ? this.insights.invalidate() : this.insights = new de(qi(this.background.slStreamId, this.transport), "gamification:insights"), this.background.feedSubscription.addListener("feed-subscription-insights-list", () => {
2545
2554
  window.requestAnimationFrame(() => {
2546
2555
  this.insights?.invalidate();
2547
2556
  });
@@ -2560,7 +2569,7 @@ class fo extends lr {
2560
2569
  }
2561
2570
  }
2562
2571
  const lo = (t, e, r) => t.type === ue.GAMES ? new uo(t, e, r) : t.type === ue.HIGHLIGHTS ? new co(t, e, r) : new fo(t, e), ho = (t, e, r) => {
2563
- t.features = /* @__PURE__ */ new Map(), t.activeFeature = new de(ne(ue.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) => {
2572
+ t.features = /* @__PURE__ */ new Map(), t.activeFeature = new pe(ne(ue.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) => {
2564
2573
  t.activeFeature.setValue(o);
2565
2574
  }, t.sdk.closeFeature = () => {
2566
2575
  t.activeFeature.setValue(ue.UNSET);
@@ -2634,7 +2643,7 @@ var yo = po, go = yo;
2634
2643
  function cn(t, e, r) {
2635
2644
  if (typeof t == "function" && (r = e, e = t, t = null), r < 1)
2636
2645
  throw new Error("fastqueue concurrency must be greater than 1");
2637
- var o = go(mo), s = null, u = null, l = 0, c = null, p = {
2646
+ var o = go(mo), s = null, u = null, l = 0, c = null, d = {
2638
2647
  push: P,
2639
2648
  drain: ae,
2640
2649
  saturated: ae,
@@ -2649,15 +2658,15 @@ function cn(t, e, r) {
2649
2658
  unshift: K,
2650
2659
  empty: ae,
2651
2660
  kill: _,
2652
- killAndDrain: D,
2661
+ killAndDrain: j,
2653
2662
  error: U
2654
2663
  };
2655
- return p;
2664
+ return d;
2656
2665
  function b() {
2657
2666
  return l;
2658
2667
  }
2659
2668
  function g() {
2660
- p.paused = !0;
2669
+ d.paused = !0;
2661
2670
  }
2662
2671
  function m() {
2663
2672
  for (var T = s, x = 0; T; )
@@ -2670,33 +2679,33 @@ function cn(t, e, r) {
2670
2679
  return x;
2671
2680
  }
2672
2681
  function F() {
2673
- if (p.paused) {
2674
- p.paused = !1;
2675
- for (var T = 0; T < p.concurrency; T++)
2682
+ if (d.paused) {
2683
+ d.paused = !1;
2684
+ for (var T = 0; T < d.concurrency; T++)
2676
2685
  l++, I();
2677
2686
  }
2678
2687
  }
2679
2688
  function L() {
2680
- return l === 0 && p.length() === 0;
2689
+ return l === 0 && d.length() === 0;
2681
2690
  }
2682
2691
  function P(T, x) {
2683
2692
  var k = o.get();
2684
- k.context = t, k.release = I, k.value = T, k.callback = x || ae, k.errorHandler = c, l === p.concurrency || p.paused ? u ? (u.next = k, u = k) : (s = k, u = k, p.saturated()) : (l++, e.call(t, k.value, k.worked));
2693
+ k.context = t, k.release = I, k.value = T, k.callback = x || ae, k.errorHandler = c, l === d.concurrency || d.paused ? u ? (u.next = k, u = k) : (s = k, u = k, d.saturated()) : (l++, e.call(t, k.value, k.worked));
2685
2694
  }
2686
2695
  function K(T, x) {
2687
2696
  var k = o.get();
2688
- k.context = t, k.release = I, k.value = T, k.callback = x || ae, l === p.concurrency || p.paused ? s ? (k.next = s, s = k) : (s = k, u = k, p.saturated()) : (l++, e.call(t, k.value, k.worked));
2697
+ k.context = t, k.release = I, k.value = T, k.callback = x || ae, l === d.concurrency || d.paused ? s ? (k.next = s, s = k) : (s = k, u = k, d.saturated()) : (l++, e.call(t, k.value, k.worked));
2689
2698
  }
2690
2699
  function I(T) {
2691
2700
  T && o.release(T);
2692
2701
  var x = s;
2693
- x ? p.paused ? l-- : (u === s && (u = null), s = x.next, x.next = null, e.call(t, x.value, x.worked), u === null && p.empty()) : --l === 0 && p.drain();
2702
+ x ? d.paused ? l-- : (u === s && (u = null), s = x.next, x.next = null, e.call(t, x.value, x.worked), u === null && d.empty()) : --l === 0 && d.drain();
2694
2703
  }
2695
2704
  function _() {
2696
- s = null, u = null, p.drain = ae;
2705
+ s = null, u = null, d.drain = ae;
2697
2706
  }
2698
- function D() {
2699
- s = null, u = null, p.drain(), p.drain = ae;
2707
+ function j() {
2708
+ s = null, u = null, d.drain(), d.drain = ae;
2700
2709
  }
2701
2710
  function U(T) {
2702
2711
  c = T;
@@ -2720,7 +2729,7 @@ function wo(t, e, r) {
2720
2729
  }, m);
2721
2730
  }
2722
2731
  var s = cn(t, o, r), u = s.push, l = s.unshift;
2723
- return s.push = c, s.unshift = p, s.drained = b, s;
2732
+ return s.push = c, s.unshift = d, s.drained = b, s;
2724
2733
  function c(g) {
2725
2734
  var m = new Promise(function(E, F) {
2726
2735
  u(g, function(L, P) {
@@ -2733,7 +2742,7 @@ function wo(t, e, r) {
2733
2742
  });
2734
2743
  return m.catch(ae), m;
2735
2744
  }
2736
- function p(g) {
2745
+ function d(g) {
2737
2746
  var m = new Promise(function(E, F) {
2738
2747
  l(g, function(L, P) {
2739
2748
  if (L) {
@@ -2828,17 +2837,17 @@ q.prototype.emit = function(e) {
2828
2837
  var c = new Error("Unhandled error." + (l ? " (" + l.message + ")" : ""));
2829
2838
  throw c.context = l, c;
2830
2839
  }
2831
- var p = u[e];
2832
- if (p === void 0)
2840
+ var d = u[e];
2841
+ if (d === void 0)
2833
2842
  return !1;
2834
- if (typeof p == "function")
2835
- Tr(p, this, r);
2843
+ if (typeof d == "function")
2844
+ Tr(d, this, r);
2836
2845
  else
2837
- for (var b = p.length, g = mn(p, b), o = 0; o < b; ++o)
2846
+ for (var b = d.length, g = mn(d, b), o = 0; o < b; ++o)
2838
2847
  Tr(g[o], this, r);
2839
2848
  return !0;
2840
2849
  };
2841
- function pn(t, e, r, o) {
2850
+ function dn(t, e, r, o) {
2842
2851
  var s, u, l;
2843
2852
  if (Bt(r), u = t._events, u === void 0 ? (u = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (u.newListener !== void 0 && (t.emit(
2844
2853
  "newListener",
@@ -2854,25 +2863,25 @@ function pn(t, e, r, o) {
2854
2863
  return t;
2855
2864
  }
2856
2865
  q.prototype.addListener = function(e, r) {
2857
- return pn(this, e, r, !1);
2866
+ return dn(this, e, r, !1);
2858
2867
  };
2859
2868
  q.prototype.on = q.prototype.addListener;
2860
2869
  q.prototype.prependListener = function(e, r) {
2861
- return pn(this, e, r, !0);
2870
+ return dn(this, e, r, !0);
2862
2871
  };
2863
2872
  function vo() {
2864
2873
  if (!this.fired)
2865
2874
  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);
2866
2875
  }
2867
- function dn(t, e, r) {
2876
+ function pn(t, e, r) {
2868
2877
  var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s = vo.bind(o);
2869
2878
  return s.listener = r, o.wrapFn = s, s;
2870
2879
  }
2871
2880
  q.prototype.once = function(e, r) {
2872
- return Bt(r), this.on(e, dn(this, e, r)), this;
2881
+ return Bt(r), this.on(e, pn(this, e, r)), this;
2873
2882
  };
2874
2883
  q.prototype.prependOnceListener = function(e, r) {
2875
- return Bt(r), this.prependListener(e, dn(this, e, r)), this;
2884
+ return Bt(r), this.prependListener(e, pn(this, e, r)), this;
2876
2885
  };
2877
2886
  q.prototype.removeListener = function(e, r) {
2878
2887
  var o, s, u, l, c;
@@ -3045,8 +3054,8 @@ var bn = mr.exports, kt = {}, vn = {}, Sn = function() {
3045
3054
  e,
3046
3055
  xr(o, arguments)
3047
3056
  );
3048
- }, l = ko(0, r.length - o.length), c = [], p = 0; p < l; p++)
3049
- c[p] = "$" + p;
3057
+ }, l = ko(0, r.length - o.length), c = [], d = 0; d < l; d++)
3058
+ c[d] = "$" + d;
3050
3059
  if (s = Function("binder", "return function (" + Lo(c, ",") + "){ return binder.apply(this,arguments); }")(u), r.prototype) {
3051
3060
  var b = function() {
3052
3061
  };
@@ -3060,26 +3069,26 @@ var bn = mr.exports, kt = {}, vn = {}, Sn = function() {
3060
3069
  return En('"use strict"; return (' + t + ").constructor;")();
3061
3070
  } catch {
3062
3071
  }
3063
- }, je = Object.getOwnPropertyDescriptor;
3064
- if (je)
3072
+ }, De = Object.getOwnPropertyDescriptor;
3073
+ if (De)
3065
3074
  try {
3066
- je({}, "");
3075
+ De({}, "");
3067
3076
  } catch {
3068
- je = null;
3077
+ De = null;
3069
3078
  }
3070
- var Dt = function() {
3079
+ var jt = function() {
3071
3080
  throw new Xe();
3072
- }, Do = je ? function() {
3081
+ }, jo = De ? function() {
3073
3082
  try {
3074
- return arguments.callee, Dt;
3083
+ return arguments.callee, jt;
3075
3084
  } catch {
3076
3085
  try {
3077
- return je(arguments, "callee").get;
3086
+ return De(arguments, "callee").get;
3078
3087
  } catch {
3079
- return Dt;
3088
+ return jt;
3080
3089
  }
3081
3090
  }
3082
- }() : Dt, Qe = _o(), jo = Oo(), X = Object.getPrototypeOf || (jo ? function(t) {
3091
+ }() : jt, Qe = _o(), Do = Oo(), X = Object.getPrototypeOf || (Do ? function(t) {
3083
3092
  return t.__proto__;
3084
3093
  } : null), ze = {}, Vo = typeof Uint8Array > "u" || !X ? $ : X(Uint8Array), Ve = {
3085
3094
  "%AggregateError%": typeof AggregateError > "u" ? $ : AggregateError,
@@ -3138,7 +3147,7 @@ var Dt = function() {
3138
3147
  "%StringIteratorPrototype%": Qe && X ? X(""[Symbol.iterator]()) : $,
3139
3148
  "%Symbol%": Qe ? Symbol : $,
3140
3149
  "%SyntaxError%": Ze,
3141
- "%ThrowTypeError%": Do,
3150
+ "%ThrowTypeError%": jo,
3142
3151
  "%TypedArray%": Vo,
3143
3152
  "%TypeError%": Xe,
3144
3153
  "%Uint8Array%": typeof Uint8Array > "u" ? $ : Uint8Array,
@@ -3232,8 +3241,8 @@ var qo = function t(e) {
3232
3241
  if (o === "%" && r !== "%")
3233
3242
  throw new Ze("invalid intrinsic syntax, expected opening `%`");
3234
3243
  var s = [];
3235
- return Pr(e, Ko, function(u, l, c, p) {
3236
- s[s.length] = c ? Pr(p, Ho, "$1") : l || u;
3244
+ return Pr(e, Ko, function(u, l, c, d) {
3245
+ s[s.length] = c ? Pr(d, Ho, "$1") : l || u;
3237
3246
  }), s;
3238
3247
  }, Jo = function(e, r) {
3239
3248
  var o = e, s;
@@ -3255,13 +3264,13 @@ var qo = function t(e) {
3255
3264
  throw new Xe('"allowMissing" argument must be a boolean');
3256
3265
  if (zo(/^%?[^%]*%?$/, e) === null)
3257
3266
  throw new Ze("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3258
- var o = Wo(e), s = o.length > 0 ? o[0] : "", u = Jo("%" + s + "%", r), l = u.name, c = u.value, p = !1, b = u.alias;
3267
+ var o = Wo(e), s = o.length > 0 ? o[0] : "", u = Jo("%" + s + "%", r), l = u.name, c = u.value, d = !1, b = u.alias;
3259
3268
  b && (s = b[0], Go(o, Qo([0, 1], b)));
3260
3269
  for (var g = 1, m = !0; g < o.length; g += 1) {
3261
3270
  var E = o[g], F = It(E, 0, 1), L = It(E, -1);
3262
3271
  if ((F === '"' || F === "'" || F === "`" || L === '"' || L === "'" || L === "`") && F !== L)
3263
3272
  throw new Ze("property names with quotes must have matching quotes");
3264
- if ((E === "constructor" || !m) && (p = !0), s += "." + E, l = "%" + s + "%", Et(Ve, l))
3273
+ if ((E === "constructor" || !m) && (d = !0), s += "." + E, l = "%" + s + "%", Et(Ve, l))
3265
3274
  c = Ve[l];
3266
3275
  else if (c != null) {
3267
3276
  if (!(E in c)) {
@@ -3269,12 +3278,12 @@ var qo = function t(e) {
3269
3278
  throw new Xe("base intrinsic for " + e + " exists, but the property is not available.");
3270
3279
  return;
3271
3280
  }
3272
- if (je && g + 1 >= o.length) {
3273
- var P = je(c, E);
3281
+ if (De && g + 1 >= o.length) {
3282
+ var P = De(c, E);
3274
3283
  m = !!P, m && "get" in P && !("originalValue" in P.get) ? c = P.get : c = c[E];
3275
3284
  } else
3276
3285
  m = Et(c, E), c = c[E];
3277
- m && !p && (Ve[l] = c);
3286
+ m && !d && (Ve[l] = c);
3278
3287
  }
3279
3288
  }
3280
3289
  return c;
@@ -3323,13 +3332,13 @@ var es = vr("%SyntaxError%"), Ge = vr("%TypeError%"), Rr = br, ts = function(e,
3323
3332
  throw new Ge("`nonConfigurable`, if provided, must be a boolean or null");
3324
3333
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
3325
3334
  throw new Ge("`loose`, if provided, must be a boolean");
3326
- var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, c = arguments.length > 6 ? arguments[6] : !1, p = !!Rr && Rr(e, r);
3335
+ var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, c = arguments.length > 6 ? arguments[6] : !1, d = !!Rr && Rr(e, r);
3327
3336
  if (ct)
3328
3337
  ct(e, r, {
3329
- configurable: l === null && p ? p.configurable : !l,
3330
- enumerable: s === null && p ? p.enumerable : !s,
3338
+ configurable: l === null && d ? d.configurable : !l,
3339
+ enumerable: s === null && d ? d.enumerable : !s,
3331
3340
  value: o,
3332
- writable: u === null && p ? p.writable : !u
3341
+ writable: u === null && d ? d.writable : !u
3333
3342
  });
3334
3343
  else if (c || !s && !u && !l)
3335
3344
  e[r] = o;
@@ -3348,12 +3357,12 @@ var es = vr("%SyntaxError%"), Ge = vr("%TypeError%"), Rr = br, ts = function(e,
3348
3357
  return (s || u || !o) && (rs ? Lr(e, "length", r, !0, !0) : Lr(e, "length", r)), e;
3349
3358
  };
3350
3359
  (function(t) {
3351
- var e = An, r = tt, o = is, s = r("%TypeError%"), u = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), c = r("%Reflect.apply%", !0) || e.call(l, u), p = r("%Object.defineProperty%", !0), b = r("%Math.max%");
3352
- if (p)
3360
+ var e = An, r = tt, o = is, s = r("%TypeError%"), u = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), c = r("%Reflect.apply%", !0) || e.call(l, u), d = r("%Object.defineProperty%", !0), b = r("%Math.max%");
3361
+ if (d)
3353
3362
  try {
3354
- p({}, "a", { value: 1 });
3363
+ d({}, "a", { value: 1 });
3355
3364
  } catch {
3356
- p = null;
3365
+ d = null;
3357
3366
  }
3358
3367
  t.exports = function(E) {
3359
3368
  if (typeof E != "function")
@@ -3368,7 +3377,7 @@ var es = vr("%SyntaxError%"), Ge = vr("%TypeError%"), Rr = br, ts = function(e,
3368
3377
  var g = function() {
3369
3378
  return c(e, u, arguments);
3370
3379
  };
3371
- p ? p(t.exports, "apply", { value: g }) : t.exports.apply = g;
3380
+ d ? d(t.exports, "apply", { value: g }) : t.exports.apply = g;
3372
3381
  })(In);
3373
3382
  var _n = In.exports, Cn = tt, On = _n, os = On(Cn("String.prototype.indexOf")), xn = function(e, r) {
3374
3383
  var o = Cn(e, !!r);
@@ -3381,14 +3390,14 @@ var _n = In.exports, Cn = tt, On = _n, os = On(Cn("String.prototype.indexOf")),
3381
3390
  return Pt(arguments);
3382
3391
  }();
3383
3392
  Pt.isLegacyArguments = Bn;
3384
- var cs = us ? Pt : Bn, fs = Object.prototype.toString, ls = Function.prototype.toString, hs = /^\s*(?:function)?\*/, kn = wr(), jt = Object.getPrototypeOf, ps = function() {
3393
+ var cs = us ? Pt : Bn, fs = Object.prototype.toString, ls = Function.prototype.toString, hs = /^\s*(?:function)?\*/, kn = wr(), Dt = Object.getPrototypeOf, ds = function() {
3385
3394
  if (!kn)
3386
3395
  return !1;
3387
3396
  try {
3388
3397
  return Function("return function*() {}")();
3389
3398
  } catch {
3390
3399
  }
3391
- }, Vt, ds = function(e) {
3400
+ }, Vt, ps = function(e) {
3392
3401
  if (typeof e != "function")
3393
3402
  return !1;
3394
3403
  if (hs.test(ls.call(e)))
@@ -3397,13 +3406,13 @@ var cs = us ? Pt : Bn, fs = Object.prototype.toString, ls = Function.prototype.t
3397
3406
  var r = fs.call(e);
3398
3407
  return r === "[object GeneratorFunction]";
3399
3408
  }
3400
- if (!jt)
3409
+ if (!Dt)
3401
3410
  return !1;
3402
3411
  if (typeof Vt > "u") {
3403
- var o = ps();
3404
- Vt = o ? jt(o) : !1;
3412
+ var o = ds();
3413
+ Vt = o ? Dt(o) : !1;
3405
3414
  }
3406
- return jt(e) === Vt;
3415
+ return Dt(e) === Vt;
3407
3416
  }, Pn = Function.prototype.toString, He = typeof Reflect == "object" && Reflect !== null && Reflect.apply, nr, wt;
3408
3417
  if (typeof He == "function" && typeof Object.defineProperty == "function")
3409
3418
  try {
@@ -3500,14 +3509,14 @@ var Fs = He ? function(e) {
3500
3509
  for (var e = [], r = 0; r < qt.length; r++)
3501
3510
  typeof Ps[qt[r]] == "function" && (e[e.length] = qt[r]);
3502
3511
  return e;
3503
- }, Ft = ks, Ls = Rs, $r = _n, Sr = xn, vt = br, Ns = Sr("Object.prototype.toString"), Ln = wr(), Dr = typeof globalThis > "u" ? Yr : globalThis, sr = Ls(), Ar = Sr("String.prototype.slice"), Qt = Object.getPrototypeOf, Us = Sr("Array.prototype.indexOf", !0) || function(e, r) {
3512
+ }, Ft = ks, Ls = Rs, $r = _n, Sr = xn, vt = br, Ns = Sr("Object.prototype.toString"), Ln = wr(), jr = typeof globalThis > "u" ? Yr : globalThis, sr = Ls(), Ar = Sr("String.prototype.slice"), Qt = Object.getPrototypeOf, Us = Sr("Array.prototype.indexOf", !0) || function(e, r) {
3504
3513
  for (var o = 0; o < e.length; o += 1)
3505
3514
  if (e[o] === r)
3506
3515
  return o;
3507
3516
  return -1;
3508
3517
  }, Tt = { __proto__: null };
3509
3518
  Ln && vt && Qt ? Ft(sr, function(t) {
3510
- var e = new Dr[t]();
3519
+ var e = new jr[t]();
3511
3520
  if (Symbol.toStringTag in e) {
3512
3521
  var r = Qt(e), o = vt(r, Symbol.toStringTag);
3513
3522
  if (!o) {
@@ -3517,7 +3526,7 @@ Ln && vt && Qt ? Ft(sr, function(t) {
3517
3526
  Tt["$" + t] = $r(o.get);
3518
3527
  }
3519
3528
  }) : Ft(sr, function(t) {
3520
- var e = new Dr[t](), r = e.slice || e.set;
3529
+ var e = new jr[t](), r = e.slice || e.set;
3521
3530
  r && (Tt["$" + t] = $r(r));
3522
3531
  });
3523
3532
  var $s = function(e) {
@@ -3529,7 +3538,7 @@ var $s = function(e) {
3529
3538
  } catch {
3530
3539
  }
3531
3540
  }), r;
3532
- }, Ds = function(e) {
3541
+ }, js = function(e) {
3533
3542
  var r = !1;
3534
3543
  return Ft(Tt, function(o, s) {
3535
3544
  if (!r)
@@ -3543,27 +3552,27 @@ var $s = function(e) {
3543
3552
  return !1;
3544
3553
  if (!Ln) {
3545
3554
  var r = Ar(Ns(e), 8, -1);
3546
- return Us(sr, r) > -1 ? r : r !== "Object" ? !1 : Ds(e);
3555
+ return Us(sr, r) > -1 ? r : r !== "Object" ? !1 : js(e);
3547
3556
  }
3548
3557
  return vt ? $s(e) : null;
3549
- }, js = Nn, Vs = function(e) {
3550
- return !!js(e);
3558
+ }, Ds = Nn, Vs = function(e) {
3559
+ return !!Ds(e);
3551
3560
  };
3552
3561
  (function(t) {
3553
- var e = cs, r = ds, o = Nn, s = Vs;
3562
+ var e = cs, r = ps, o = Nn, s = Vs;
3554
3563
  function u(S) {
3555
3564
  return S.call.bind(S);
3556
3565
  }
3557
- var l = typeof BigInt < "u", c = typeof Symbol < "u", p = u(Object.prototype.toString), b = u(Number.prototype.valueOf), g = u(String.prototype.valueOf), m = u(Boolean.prototype.valueOf);
3566
+ var l = typeof BigInt < "u", c = typeof Symbol < "u", d = u(Object.prototype.toString), b = u(Number.prototype.valueOf), g = u(String.prototype.valueOf), m = u(Boolean.prototype.valueOf);
3558
3567
  if (l)
3559
3568
  var E = u(BigInt.prototype.valueOf);
3560
3569
  if (c)
3561
3570
  var F = u(Symbol.prototype.valueOf);
3562
- function L(S, dt) {
3571
+ function L(S, pt) {
3563
3572
  if (typeof S != "object")
3564
3573
  return !1;
3565
3574
  try {
3566
- return dt(S), !0;
3575
+ return pt(S), !0;
3567
3576
  } catch {
3568
3577
  return !1;
3569
3578
  }
@@ -3585,10 +3594,10 @@ var $s = function(e) {
3585
3594
  return o(S) === "Uint8ClampedArray";
3586
3595
  }
3587
3596
  t.isUint8ClampedArray = _;
3588
- function D(S) {
3597
+ function j(S) {
3589
3598
  return o(S) === "Uint16Array";
3590
3599
  }
3591
- t.isUint16Array = D;
3600
+ t.isUint16Array = j;
3592
3601
  function U(S) {
3593
3602
  return o(S) === "Uint32Array";
3594
3603
  }
@@ -3622,7 +3631,7 @@ var $s = function(e) {
3622
3631
  }
3623
3632
  t.isBigUint64Array = Se;
3624
3633
  function ce(S) {
3625
- return p(S) === "[object Map]";
3634
+ return d(S) === "[object Map]";
3626
3635
  }
3627
3636
  ce.working = typeof Map < "u" && ce(/* @__PURE__ */ new Map());
3628
3637
  function nt(S) {
@@ -3630,7 +3639,7 @@ var $s = function(e) {
3630
3639
  }
3631
3640
  t.isMap = nt;
3632
3641
  function fe(S) {
3633
- return p(S) === "[object Set]";
3642
+ return d(S) === "[object Set]";
3634
3643
  }
3635
3644
  fe.working = typeof Set < "u" && fe(/* @__PURE__ */ new Set());
3636
3645
  function xe(S) {
@@ -3638,7 +3647,7 @@ var $s = function(e) {
3638
3647
  }
3639
3648
  t.isSet = xe;
3640
3649
  function Be(S) {
3641
- return p(S) === "[object WeakMap]";
3650
+ return d(S) === "[object WeakMap]";
3642
3651
  }
3643
3652
  Be.working = typeof WeakMap < "u" && Be(/* @__PURE__ */ new WeakMap());
3644
3653
  function it(S) {
@@ -3646,7 +3655,7 @@ var $s = function(e) {
3646
3655
  }
3647
3656
  t.isWeakMap = it;
3648
3657
  function ke(S) {
3649
- return p(S) === "[object WeakSet]";
3658
+ return d(S) === "[object WeakSet]";
3650
3659
  }
3651
3660
  ke.working = typeof WeakSet < "u" && ke(/* @__PURE__ */ new WeakSet());
3652
3661
  function le(S) {
@@ -3654,47 +3663,47 @@ var $s = function(e) {
3654
3663
  }
3655
3664
  t.isWeakSet = le;
3656
3665
  function Pe(S) {
3657
- return p(S) === "[object ArrayBuffer]";
3666
+ return d(S) === "[object ArrayBuffer]";
3658
3667
  }
3659
3668
  Pe.working = typeof ArrayBuffer < "u" && Pe(new ArrayBuffer());
3660
3669
  function H(S) {
3661
3670
  return typeof ArrayBuffer > "u" ? !1 : Pe.working ? Pe(S) : S instanceof ArrayBuffer;
3662
3671
  }
3663
3672
  t.isArrayBuffer = H;
3664
- function d(S) {
3665
- return p(S) === "[object DataView]";
3673
+ function p(S) {
3674
+ return d(S) === "[object DataView]";
3666
3675
  }
3667
- d.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && d(new DataView(new ArrayBuffer(1), 0, 1));
3676
+ p.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && p(new DataView(new ArrayBuffer(1), 0, 1));
3668
3677
  function v(S) {
3669
- return typeof DataView > "u" ? !1 : d.working ? d(S) : S instanceof DataView;
3678
+ return typeof DataView > "u" ? !1 : p.working ? p(S) : S instanceof DataView;
3670
3679
  }
3671
3680
  t.isDataView = v;
3672
3681
  var A = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
3673
3682
  function C(S) {
3674
- return p(S) === "[object SharedArrayBuffer]";
3683
+ return d(S) === "[object SharedArrayBuffer]";
3675
3684
  }
3676
- function j(S) {
3685
+ function D(S) {
3677
3686
  return typeof A > "u" ? !1 : (typeof C.working > "u" && (C.working = C(new A())), C.working ? C(S) : S instanceof A);
3678
3687
  }
3679
- t.isSharedArrayBuffer = j;
3688
+ t.isSharedArrayBuffer = D;
3680
3689
  function V(S) {
3681
- return p(S) === "[object AsyncFunction]";
3690
+ return d(S) === "[object AsyncFunction]";
3682
3691
  }
3683
3692
  t.isAsyncFunction = V;
3684
3693
  function B(S) {
3685
- return p(S) === "[object Map Iterator]";
3694
+ return d(S) === "[object Map Iterator]";
3686
3695
  }
3687
3696
  t.isMapIterator = B;
3688
3697
  function N(S) {
3689
- return p(S) === "[object Set Iterator]";
3698
+ return d(S) === "[object Set Iterator]";
3690
3699
  }
3691
3700
  t.isSetIterator = N;
3692
3701
  function M(S) {
3693
- return p(S) === "[object Generator]";
3702
+ return d(S) === "[object Generator]";
3694
3703
  }
3695
3704
  t.isGeneratorObject = M;
3696
3705
  function te(S) {
3697
- return p(S) === "[object WebAssembly.Module]";
3706
+ return d(S) === "[object WebAssembly.Module]";
3698
3707
  }
3699
3708
  t.isWebAssemblyCompiledModule = te;
3700
3709
  function ye(S) {
@@ -3713,16 +3722,16 @@ var $s = function(e) {
3713
3722
  return l && L(S, E);
3714
3723
  }
3715
3724
  t.isBigIntObject = Me;
3716
- function pt(S) {
3725
+ function dt(S) {
3717
3726
  return c && L(S, F);
3718
3727
  }
3719
- t.isSymbolObject = pt;
3728
+ t.isSymbolObject = dt;
3720
3729
  function ot(S) {
3721
- return ye(S) || he(S) || oe(S) || Me(S) || pt(S);
3730
+ return ye(S) || he(S) || oe(S) || Me(S) || dt(S);
3722
3731
  }
3723
3732
  t.isBoxedPrimitive = ot;
3724
3733
  function Rt(S) {
3725
- return typeof Uint8Array < "u" && (H(S) || j(S));
3734
+ return typeof Uint8Array < "u" && (H(S) || D(S));
3726
3735
  }
3727
3736
  t.isAnyArrayBuffer = Rt, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(S) {
3728
3737
  Object.defineProperty(t, S, {
@@ -3756,20 +3765,20 @@ typeof Object.create == "function" ? ar.exports = function(e, r) {
3756
3765
  var qs = ar.exports;
3757
3766
  (function(t) {
3758
3767
  var e = Object.getOwnPropertyDescriptors || function(v) {
3759
- for (var A = Object.keys(v), C = {}, j = 0; j < A.length; j++)
3760
- C[A[j]] = Object.getOwnPropertyDescriptor(v, A[j]);
3768
+ for (var A = Object.keys(v), C = {}, D = 0; D < A.length; D++)
3769
+ C[A[D]] = Object.getOwnPropertyDescriptor(v, A[D]);
3761
3770
  return C;
3762
3771
  }, r = /%[sdj%]/g;
3763
- t.format = function(d) {
3764
- if (!T(d)) {
3772
+ t.format = function(p) {
3773
+ if (!T(p)) {
3765
3774
  for (var v = [], A = 0; A < arguments.length; A++)
3766
3775
  v.push(l(arguments[A]));
3767
3776
  return v.join(" ");
3768
3777
  }
3769
- for (var A = 1, C = arguments, j = C.length, V = String(d).replace(r, function(N) {
3778
+ for (var A = 1, C = arguments, D = C.length, V = String(p).replace(r, function(N) {
3770
3779
  if (N === "%%")
3771
3780
  return "%";
3772
- if (A >= j)
3781
+ if (A >= D)
3773
3782
  return N;
3774
3783
  switch (N) {
3775
3784
  case "%s":
@@ -3785,15 +3794,15 @@ var qs = ar.exports;
3785
3794
  default:
3786
3795
  return N;
3787
3796
  }
3788
- }), B = C[A]; A < j; B = C[++A])
3797
+ }), B = C[A]; A < D; B = C[++A])
3789
3798
  _(B) || !ie(B) ? V += " " + B : V += " " + l(B);
3790
3799
  return V;
3791
- }, t.deprecate = function(d, v) {
3800
+ }, t.deprecate = function(p, v) {
3792
3801
  if (typeof O.process < "u" && O.process.noDeprecation === !0)
3793
- return d;
3802
+ return p;
3794
3803
  if (typeof O.process > "u")
3795
3804
  return function() {
3796
- return t.deprecate(d, v).apply(this, arguments);
3805
+ return t.deprecate(p, v).apply(this, arguments);
3797
3806
  };
3798
3807
  var A = !1;
3799
3808
  function C() {
@@ -3802,7 +3811,7 @@ var qs = ar.exports;
3802
3811
  throw new Error(v);
3803
3812
  O.process.traceDeprecation ? console.trace(v) : console.error(v), A = !0;
3804
3813
  }
3805
- return d.apply(this, arguments);
3814
+ return p.apply(this, arguments);
3806
3815
  }
3807
3816
  return C;
3808
3817
  };
@@ -3811,25 +3820,25 @@ var qs = ar.exports;
3811
3820
  var u = O.process.env.NODE_DEBUG;
3812
3821
  u = u.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), s = new RegExp("^" + u + "$", "i");
3813
3822
  }
3814
- t.debuglog = function(d) {
3815
- if (d = d.toUpperCase(), !o[d])
3816
- if (s.test(d)) {
3823
+ t.debuglog = function(p) {
3824
+ if (p = p.toUpperCase(), !o[p])
3825
+ if (s.test(p)) {
3817
3826
  var v = O.process.pid;
3818
- o[d] = function() {
3827
+ o[p] = function() {
3819
3828
  var A = t.format.apply(t, arguments);
3820
- console.error("%s %d: %s", d, v, A);
3829
+ console.error("%s %d: %s", p, v, A);
3821
3830
  };
3822
3831
  } else
3823
- o[d] = function() {
3832
+ o[p] = function() {
3824
3833
  };
3825
- return o[d];
3834
+ return o[p];
3826
3835
  };
3827
- function l(d, v) {
3836
+ function l(p, v) {
3828
3837
  var A = {
3829
3838
  seen: [],
3830
- stylize: p
3839
+ stylize: d
3831
3840
  };
3832
- return arguments.length >= 3 && (A.depth = arguments[2]), arguments.length >= 4 && (A.colors = arguments[3]), I(v) ? A.showHidden = v : v && t._extend(A, v), k(A.showHidden) && (A.showHidden = !1), k(A.depth) && (A.depth = 2), k(A.colors) && (A.colors = !1), k(A.customInspect) && (A.customInspect = !0), A.colors && (A.stylize = c), g(A, d, A.depth);
3841
+ return arguments.length >= 3 && (A.depth = arguments[2]), arguments.length >= 4 && (A.colors = arguments[3]), I(v) ? A.showHidden = v : v && t._extend(A, v), k(A.showHidden) && (A.showHidden = !1), k(A.depth) && (A.depth = 2), k(A.colors) && (A.colors = !1), k(A.customInspect) && (A.customInspect = !0), A.colors && (A.stylize = c), g(A, p, A.depth);
3833
3842
  }
3834
3843
  t.inspect = l, l.colors = {
3835
3844
  bold: [1, 22],
@@ -3856,41 +3865,41 @@ var qs = ar.exports;
3856
3865
  // "name": intentionally not styling
3857
3866
  regexp: "red"
3858
3867
  };
3859
- function c(d, v) {
3868
+ function c(p, v) {
3860
3869
  var A = l.styles[v];
3861
- return A ? "\x1B[" + l.colors[A][0] + "m" + d + "\x1B[" + l.colors[A][1] + "m" : d;
3870
+ return A ? "\x1B[" + l.colors[A][0] + "m" + p + "\x1B[" + l.colors[A][1] + "m" : p;
3862
3871
  }
3863
- function p(d, v) {
3864
- return d;
3872
+ function d(p, v) {
3873
+ return p;
3865
3874
  }
3866
- function b(d) {
3875
+ function b(p) {
3867
3876
  var v = {};
3868
- return d.forEach(function(A, C) {
3877
+ return p.forEach(function(A, C) {
3869
3878
  v[A] = !0;
3870
3879
  }), v;
3871
3880
  }
3872
- function g(d, v, A) {
3873
- if (d.customInspect && v && ce(v.inspect) && // Filter out the util module, it's inspect function is special
3881
+ function g(p, v, A) {
3882
+ if (p.customInspect && v && ce(v.inspect) && // Filter out the util module, it's inspect function is special
3874
3883
  v.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
3875
3884
  !(v.constructor && v.constructor.prototype === v)) {
3876
- var C = v.inspect(A, d);
3877
- return T(C) || (C = g(d, C, A)), C;
3885
+ var C = v.inspect(A, p);
3886
+ return T(C) || (C = g(p, C, A)), C;
3878
3887
  }
3879
- var j = m(d, v);
3880
- if (j)
3881
- return j;
3888
+ var D = m(p, v);
3889
+ if (D)
3890
+ return D;
3882
3891
  var V = Object.keys(v), B = b(V);
3883
- if (d.showHidden && (V = Object.getOwnPropertyNames(v)), Se(v) && (V.indexOf("message") >= 0 || V.indexOf("description") >= 0))
3892
+ if (p.showHidden && (V = Object.getOwnPropertyNames(v)), Se(v) && (V.indexOf("message") >= 0 || V.indexOf("description") >= 0))
3884
3893
  return E(v);
3885
3894
  if (V.length === 0) {
3886
3895
  if (ce(v)) {
3887
3896
  var N = v.name ? ": " + v.name : "";
3888
- return d.stylize("[Function" + N + "]", "special");
3897
+ return p.stylize("[Function" + N + "]", "special");
3889
3898
  }
3890
3899
  if (G(v))
3891
- return d.stylize(RegExp.prototype.toString.call(v), "regexp");
3900
+ return p.stylize(RegExp.prototype.toString.call(v), "regexp");
3892
3901
  if (Oe(v))
3893
- return d.stylize(Date.prototype.toString.call(v), "date");
3902
+ return p.stylize(Date.prototype.toString.call(v), "date");
3894
3903
  if (Se(v))
3895
3904
  return E(v);
3896
3905
  }
@@ -3902,43 +3911,43 @@ var qs = ar.exports;
3902
3911
  if (G(v) && (M = " " + RegExp.prototype.toString.call(v)), Oe(v) && (M = " " + Date.prototype.toUTCString.call(v)), Se(v) && (M = " " + E(v)), V.length === 0 && (!te || v.length == 0))
3903
3912
  return ye[0] + M + ye[1];
3904
3913
  if (A < 0)
3905
- return G(v) ? d.stylize(RegExp.prototype.toString.call(v), "regexp") : d.stylize("[Object]", "special");
3906
- d.seen.push(v);
3914
+ return G(v) ? p.stylize(RegExp.prototype.toString.call(v), "regexp") : p.stylize("[Object]", "special");
3915
+ p.seen.push(v);
3907
3916
  var oe;
3908
- return te ? oe = F(d, v, A, B, V) : oe = V.map(function(Me) {
3909
- return L(d, v, A, B, Me, te);
3910
- }), d.seen.pop(), P(oe, M, ye);
3917
+ return te ? oe = F(p, v, A, B, V) : oe = V.map(function(Me) {
3918
+ return L(p, v, A, B, Me, te);
3919
+ }), p.seen.pop(), P(oe, M, ye);
3911
3920
  }
3912
- function m(d, v) {
3921
+ function m(p, v) {
3913
3922
  if (k(v))
3914
- return d.stylize("undefined", "undefined");
3923
+ return p.stylize("undefined", "undefined");
3915
3924
  if (T(v)) {
3916
3925
  var A = "'" + JSON.stringify(v).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
3917
- return d.stylize(A, "string");
3926
+ return p.stylize(A, "string");
3918
3927
  }
3919
3928
  if (U(v))
3920
- return d.stylize("" + v, "number");
3929
+ return p.stylize("" + v, "number");
3921
3930
  if (I(v))
3922
- return d.stylize("" + v, "boolean");
3931
+ return p.stylize("" + v, "boolean");
3923
3932
  if (_(v))
3924
- return d.stylize("null", "null");
3933
+ return p.stylize("null", "null");
3925
3934
  }
3926
- function E(d) {
3927
- return "[" + Error.prototype.toString.call(d) + "]";
3935
+ function E(p) {
3936
+ return "[" + Error.prototype.toString.call(p) + "]";
3928
3937
  }
3929
- function F(d, v, A, C, j) {
3938
+ function F(p, v, A, C, D) {
3930
3939
  for (var V = [], B = 0, N = v.length; B < N; ++B)
3931
3940
  ke(v, String(B)) ? V.push(L(
3932
- d,
3941
+ p,
3933
3942
  v,
3934
3943
  A,
3935
3944
  C,
3936
3945
  String(B),
3937
3946
  !0
3938
3947
  )) : V.push("");
3939
- return j.forEach(function(M) {
3948
+ return D.forEach(function(M) {
3940
3949
  M.match(/^\d+$/) || V.push(L(
3941
- d,
3950
+ p,
3942
3951
  v,
3943
3952
  A,
3944
3953
  C,
@@ -3947,9 +3956,9 @@ var qs = ar.exports;
3947
3956
  ));
3948
3957
  }), V;
3949
3958
  }
3950
- function L(d, v, A, C, j, V) {
3959
+ function L(p, v, A, C, D, V) {
3951
3960
  var B, N, M;
3952
- if (M = Object.getOwnPropertyDescriptor(v, j) || { value: v[j] }, M.get ? M.set ? N = d.stylize("[Getter/Setter]", "special") : N = d.stylize("[Getter]", "special") : M.set && (N = d.stylize("[Setter]", "special")), ke(C, j) || (B = "[" + j + "]"), N || (d.seen.indexOf(M.value) < 0 ? (_(A) ? N = g(d, M.value, null) : N = g(d, M.value, A - 1), N.indexOf(`
3961
+ if (M = Object.getOwnPropertyDescriptor(v, D) || { value: v[D] }, M.get ? M.set ? N = p.stylize("[Getter/Setter]", "special") : N = p.stylize("[Getter]", "special") : M.set && (N = p.stylize("[Setter]", "special")), ke(C, D) || (B = "[" + D + "]"), N || (p.seen.indexOf(M.value) < 0 ? (_(A) ? N = g(p, M.value, null) : N = g(p, M.value, A - 1), N.indexOf(`
3953
3962
  `) > -1 && (V ? N = N.split(`
3954
3963
  `).map(function(te) {
3955
3964
  return " " + te;
@@ -3959,85 +3968,85 @@ var qs = ar.exports;
3959
3968
  `).map(function(te) {
3960
3969
  return " " + te;
3961
3970
  }).join(`
3962
- `))) : N = d.stylize("[Circular]", "special")), k(B)) {
3963
- if (V && j.match(/^\d+$/))
3971
+ `))) : N = p.stylize("[Circular]", "special")), k(B)) {
3972
+ if (V && D.match(/^\d+$/))
3964
3973
  return N;
3965
- B = JSON.stringify("" + j), B.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (B = B.slice(1, -1), B = d.stylize(B, "name")) : (B = B.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), B = d.stylize(B, "string"));
3974
+ B = JSON.stringify("" + D), B.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (B = B.slice(1, -1), B = p.stylize(B, "name")) : (B = B.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), B = p.stylize(B, "string"));
3966
3975
  }
3967
3976
  return B + ": " + N;
3968
3977
  }
3969
- function P(d, v, A) {
3970
- var C = d.reduce(function(j, V) {
3978
+ function P(p, v, A) {
3979
+ var C = p.reduce(function(D, V) {
3971
3980
  return V.indexOf(`
3972
- `) >= 0, j + V.replace(/\u001b\[\d\d?m/g, "").length + 1;
3981
+ `) >= 0, D + V.replace(/\u001b\[\d\d?m/g, "").length + 1;
3973
3982
  }, 0);
3974
3983
  return C > 60 ? A[0] + (v === "" ? "" : v + `
3975
- `) + " " + d.join(`,
3976
- `) + " " + A[1] : A[0] + v + " " + d.join(", ") + " " + A[1];
3984
+ `) + " " + p.join(`,
3985
+ `) + " " + A[1] : A[0] + v + " " + p.join(", ") + " " + A[1];
3977
3986
  }
3978
3987
  t.types = vn;
3979
- function K(d) {
3980
- return Array.isArray(d);
3988
+ function K(p) {
3989
+ return Array.isArray(p);
3981
3990
  }
3982
3991
  t.isArray = K;
3983
- function I(d) {
3984
- return typeof d == "boolean";
3992
+ function I(p) {
3993
+ return typeof p == "boolean";
3985
3994
  }
3986
3995
  t.isBoolean = I;
3987
- function _(d) {
3988
- return d === null;
3996
+ function _(p) {
3997
+ return p === null;
3989
3998
  }
3990
3999
  t.isNull = _;
3991
- function D(d) {
3992
- return d == null;
4000
+ function j(p) {
4001
+ return p == null;
3993
4002
  }
3994
- t.isNullOrUndefined = D;
3995
- function U(d) {
3996
- return typeof d == "number";
4003
+ t.isNullOrUndefined = j;
4004
+ function U(p) {
4005
+ return typeof p == "number";
3997
4006
  }
3998
4007
  t.isNumber = U;
3999
- function T(d) {
4000
- return typeof d == "string";
4008
+ function T(p) {
4009
+ return typeof p == "string";
4001
4010
  }
4002
4011
  t.isString = T;
4003
- function x(d) {
4004
- return typeof d == "symbol";
4012
+ function x(p) {
4013
+ return typeof p == "symbol";
4005
4014
  }
4006
4015
  t.isSymbol = x;
4007
- function k(d) {
4008
- return d === void 0;
4016
+ function k(p) {
4017
+ return p === void 0;
4009
4018
  }
4010
4019
  t.isUndefined = k;
4011
- function G(d) {
4012
- return ie(d) && fe(d) === "[object RegExp]";
4020
+ function G(p) {
4021
+ return ie(p) && fe(p) === "[object RegExp]";
4013
4022
  }
4014
4023
  t.isRegExp = G, t.types.isRegExp = G;
4015
- function ie(d) {
4016
- return typeof d == "object" && d !== null;
4024
+ function ie(p) {
4025
+ return typeof p == "object" && p !== null;
4017
4026
  }
4018
4027
  t.isObject = ie;
4019
- function Oe(d) {
4020
- return ie(d) && fe(d) === "[object Date]";
4028
+ function Oe(p) {
4029
+ return ie(p) && fe(p) === "[object Date]";
4021
4030
  }
4022
4031
  t.isDate = Oe, t.types.isDate = Oe;
4023
- function Se(d) {
4024
- return ie(d) && (fe(d) === "[object Error]" || d instanceof Error);
4032
+ function Se(p) {
4033
+ return ie(p) && (fe(p) === "[object Error]" || p instanceof Error);
4025
4034
  }
4026
4035
  t.isError = Se, t.types.isNativeError = Se;
4027
- function ce(d) {
4028
- return typeof d == "function";
4036
+ function ce(p) {
4037
+ return typeof p == "function";
4029
4038
  }
4030
4039
  t.isFunction = ce;
4031
- function nt(d) {
4032
- return d === null || typeof d == "boolean" || typeof d == "number" || typeof d == "string" || typeof d == "symbol" || // ES6 symbol
4033
- typeof d > "u";
4040
+ function nt(p) {
4041
+ return p === null || typeof p == "boolean" || typeof p == "number" || typeof p == "string" || typeof p == "symbol" || // ES6 symbol
4042
+ typeof p > "u";
4034
4043
  }
4035
4044
  t.isPrimitive = nt, t.isBuffer = Ms;
4036
- function fe(d) {
4037
- return Object.prototype.toString.call(d);
4045
+ function fe(p) {
4046
+ return Object.prototype.toString.call(p);
4038
4047
  }
4039
- function xe(d) {
4040
- return d < 10 ? "0" + d.toString(10) : d.toString(10);
4048
+ function xe(p) {
4049
+ return p < 10 ? "0" + p.toString(10) : p.toString(10);
4041
4050
  }
4042
4051
  var Be = [
4043
4052
  "Jan",
@@ -4054,24 +4063,24 @@ var qs = ar.exports;
4054
4063
  "Dec"
4055
4064
  ];
4056
4065
  function it() {
4057
- var d = /* @__PURE__ */ new Date(), v = [
4058
- xe(d.getHours()),
4059
- xe(d.getMinutes()),
4060
- xe(d.getSeconds())
4066
+ var p = /* @__PURE__ */ new Date(), v = [
4067
+ xe(p.getHours()),
4068
+ xe(p.getMinutes()),
4069
+ xe(p.getSeconds())
4061
4070
  ].join(":");
4062
- return [d.getDate(), Be[d.getMonth()], v].join(" ");
4071
+ return [p.getDate(), Be[p.getMonth()], v].join(" ");
4063
4072
  }
4064
4073
  t.log = function() {
4065
4074
  console.log("%s - %s", it(), t.format.apply(t, arguments));
4066
- }, t.inherits = qs, t._extend = function(d, v) {
4075
+ }, t.inherits = qs, t._extend = function(p, v) {
4067
4076
  if (!v || !ie(v))
4068
- return d;
4077
+ return p;
4069
4078
  for (var A = Object.keys(v), C = A.length; C--; )
4070
- d[A[C]] = v[A[C]];
4071
- return d;
4079
+ p[A[C]] = v[A[C]];
4080
+ return p;
4072
4081
  };
4073
- function ke(d, v) {
4074
- return Object.prototype.hasOwnProperty.call(d, v);
4082
+ function ke(p, v) {
4083
+ return Object.prototype.hasOwnProperty.call(p, v);
4075
4084
  }
4076
4085
  var le = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
4077
4086
  t.promisify = function(v) {
@@ -4089,17 +4098,17 @@ var qs = ar.exports;
4089
4098
  }), A;
4090
4099
  }
4091
4100
  function A() {
4092
- for (var C, j, V = new Promise(function(M, te) {
4093
- C = M, j = te;
4101
+ for (var C, D, V = new Promise(function(M, te) {
4102
+ C = M, D = te;
4094
4103
  }), B = [], N = 0; N < arguments.length; N++)
4095
4104
  B.push(arguments[N]);
4096
4105
  B.push(function(M, te) {
4097
- M ? j(M) : C(te);
4106
+ M ? D(M) : C(te);
4098
4107
  });
4099
4108
  try {
4100
4109
  v.apply(this, B);
4101
4110
  } catch (M) {
4102
- j(M);
4111
+ D(M);
4103
4112
  }
4104
4113
  return V;
4105
4114
  }
@@ -4113,26 +4122,26 @@ var qs = ar.exports;
4113
4122
  e(v)
4114
4123
  );
4115
4124
  }, t.promisify.custom = le;
4116
- function Pe(d, v) {
4117
- if (!d) {
4125
+ function Pe(p, v) {
4126
+ if (!p) {
4118
4127
  var A = new Error("Promise was rejected with a falsy value");
4119
- A.reason = d, d = A;
4128
+ A.reason = p, p = A;
4120
4129
  }
4121
- return v(d);
4130
+ return v(p);
4122
4131
  }
4123
- function H(d) {
4124
- if (typeof d != "function")
4132
+ function H(p) {
4133
+ if (typeof p != "function")
4125
4134
  throw new TypeError('The "original" argument must be of type Function');
4126
4135
  function v() {
4127
4136
  for (var A = [], C = 0; C < arguments.length; C++)
4128
4137
  A.push(arguments[C]);
4129
- var j = A.pop();
4130
- if (typeof j != "function")
4138
+ var D = A.pop();
4139
+ if (typeof D != "function")
4131
4140
  throw new TypeError("The last argument must be of type Function");
4132
4141
  var V = this, B = function() {
4133
- return j.apply(V, arguments);
4142
+ return D.apply(V, arguments);
4134
4143
  };
4135
- d.apply(this, A).then(
4144
+ p.apply(this, A).then(
4136
4145
  function(N) {
4137
4146
  O.process.nextTick(B.bind(null, null, N));
4138
4147
  },
@@ -4141,9 +4150,9 @@ var qs = ar.exports;
4141
4150
  }
4142
4151
  );
4143
4152
  }
4144
- return Object.setPrototypeOf(v, Object.getPrototypeOf(d)), Object.defineProperties(
4153
+ return Object.setPrototypeOf(v, Object.getPrototypeOf(p)), Object.defineProperties(
4145
4154
  v,
4146
- e(d)
4155
+ e(p)
4147
4156
  ), v;
4148
4157
  }
4149
4158
  t.callbackify = H;
@@ -4191,7 +4200,7 @@ var Un = {
4191
4200
  )
4192
4201
  }, Gs = function t(e, r, o) {
4193
4202
  r === void 0 && (r = ""), o || (o = {});
4194
- var s = function(p) {
4203
+ var s = function(d) {
4195
4204
  var b = {
4196
4205
  "│": "|",
4197
4206
  "└": "`",
@@ -4199,19 +4208,19 @@ var Un = {
4199
4208
  "─": "-",
4200
4209
  "┬": "-"
4201
4210
  };
4202
- return o.unicode === !1 ? b[p] : p;
4211
+ return o.unicode === !1 ? b[d] : d;
4203
4212
  };
4204
4213
  typeof e == "string" && (e = { label: e });
4205
4214
  var u = e.nodes || [], l = (e.label || "").split(`
4206
4215
  `), c = `
4207
4216
  ` + r + (u.length ? s("│") : " ") + " ";
4208
4217
  return r + l.join(c) + `
4209
- ` + u.map(function(p, b) {
4210
- var g = b === u.length - 1, m = p.nodes && p.nodes.length, E = r + (g ? " " : s("│")) + " ";
4211
- return r + s(g ? "└" : "├") + s("─") + s(m ? "┬" : "─") + " " + t(p, E, o).slice(r.length + 2);
4218
+ ` + u.map(function(d, b) {
4219
+ var g = b === u.length - 1, m = d.nodes && d.nodes.length, E = r + (g ? " " : s("│")) + " ";
4220
+ return r + s(g ? "└" : "├") + s("─") + s(m ? "┬" : "─") + " " + t(d, E, o).slice(r.length + 2);
4212
4221
  }).join("");
4213
4222
  };
4214
- const zs = Gs, jr = Symbol("avvio.TimeTree.untrackNode"), zt = Symbol("avvio.TimeTree.trackNode"), Vr = Symbol("avvio.TimeTree.getParent"), Mr = Symbol("avvio.TimeTree.getNode"), qr = Symbol("avvio.TimeTree.addNode");
4223
+ const zs = Gs, Dr = Symbol("avvio.TimeTree.untrackNode"), zt = Symbol("avvio.TimeTree.trackNode"), Vr = Symbol("avvio.TimeTree.getParent"), Mr = Symbol("avvio.TimeTree.getNode"), qr = Symbol("avvio.TimeTree.addNode");
4215
4224
  let Ks = class {
4216
4225
  constructor() {
4217
4226
  this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
@@ -4219,7 +4228,7 @@ let Ks = class {
4219
4228
  [zt](e) {
4220
4229
  this.tableId.set(e.id, e), this.tableLabel.has(e.label) ? this.tableLabel.get(e.label).push(e) : this.tableLabel.set(e.label, [e]);
4221
4230
  }
4222
- [jr](e) {
4231
+ [Dr](e) {
4223
4232
  this.tableId.delete(e.id);
4224
4233
  const r = this.tableLabel.get(e.label);
4225
4234
  if (r.id) {
@@ -4259,7 +4268,7 @@ let Ks = class {
4259
4268
  }
4260
4269
  stop(e, r = Date.now()) {
4261
4270
  const o = this[Mr](e);
4262
- o && (o.stop = r, o.diff = o.stop - o.start || 0, this[jr](o));
4271
+ o && (o.stop = r, o.diff = o.stop - o.start || 0, this[Dr](o));
4263
4272
  }
4264
4273
  toJSON() {
4265
4274
  return Object.assign({}, this.root);
@@ -4281,7 +4290,7 @@ function Ws() {
4281
4290
  if (E === "string" && g.length > 0)
4282
4291
  return l(g);
4283
4292
  if (E === "number" && isFinite(g))
4284
- return m.long ? p(g) : c(g);
4293
+ return m.long ? d(g) : c(g);
4285
4294
  throw new Error(
4286
4295
  "val is not a non-empty string or a valid number. val=" + JSON.stringify(g)
4287
4296
  );
@@ -4342,7 +4351,7 @@ function Ws() {
4342
4351
  var m = Math.abs(g);
4343
4352
  return m >= o ? Math.round(g / o) + "d" : m >= r ? Math.round(g / r) + "h" : m >= e ? Math.round(g / e) + "m" : m >= t ? Math.round(g / t) + "s" : g + "ms";
4344
4353
  }
4345
- function p(g) {
4354
+ function d(g) {
4346
4355
  var m = Math.abs(g);
4347
4356
  return m >= o ? b(g, m, o, "day") : m >= r ? b(g, m, r, "hour") : m >= e ? b(g, m, e, "minute") : m >= t ? b(g, m, t, "second") : g + " ms";
4348
4357
  }
@@ -4353,7 +4362,7 @@ function Ws() {
4353
4362
  return Kt;
4354
4363
  }
4355
4364
  function Js(t) {
4356
- r.debug = r, r.default = r, r.coerce = p, r.disable = u, r.enable = s, r.enabled = l, r.humanize = Ws(), r.destroy = b, Object.keys(t).forEach((g) => {
4365
+ r.debug = r, r.default = r, r.coerce = d, r.disable = u, r.enable = s, r.enabled = l, r.humanize = Ws(), r.destroy = b, Object.keys(t).forEach((g) => {
4357
4366
  r[g] = t[g];
4358
4367
  }), r.names = [], r.skips = [], r.formatters = {};
4359
4368
  function e(g) {
@@ -4368,8 +4377,8 @@ function Js(t) {
4368
4377
  function P(...K) {
4369
4378
  if (!P.enabled)
4370
4379
  return;
4371
- const I = P, _ = Number(/* @__PURE__ */ new Date()), D = _ - (m || _);
4372
- I.diff = D, I.prev = m, I.curr = _, m = _, K[0] = r.coerce(K[0]), typeof K[0] != "string" && K.unshift("%O");
4380
+ const I = P, _ = Number(/* @__PURE__ */ new Date()), j = _ - (m || _);
4381
+ I.diff = j, I.prev = m, I.curr = _, m = _, K[0] = r.coerce(K[0]), typeof K[0] != "string" && K.unshift("%O");
4373
4382
  let U = 0;
4374
4383
  K[0] = K[0].replace(/%([a-zA-Z%])/g, (x, k) => {
4375
4384
  if (x === "%%")
@@ -4425,7 +4434,7 @@ function Js(t) {
4425
4434
  function c(g) {
4426
4435
  return g.toString().substring(2, g.toString().length - 2).replace(/\.\*\?$/, "*");
4427
4436
  }
4428
- function p(g) {
4437
+ function d(g) {
4429
4438
  return g instanceof Error ? g.stack || g.message : g;
4430
4439
  }
4431
4440
  function b() {
@@ -4436,9 +4445,9 @@ function Js(t) {
4436
4445
  var Ys = Js;
4437
4446
  (function(t, e) {
4438
4447
  e.formatArgs = o, e.save = s, e.load = u, e.useColors = r, e.storage = l(), e.destroy = (() => {
4439
- let p = !1;
4448
+ let d = !1;
4440
4449
  return () => {
4441
- p || (p = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
4450
+ d || (d = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
4442
4451
  };
4443
4452
  })(), e.colors = [
4444
4453
  "#0000CC",
@@ -4525,31 +4534,31 @@ var Ys = Js;
4525
4534
  typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
4526
4535
  typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
4527
4536
  }
4528
- function o(p) {
4529
- if (p[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + p[0] + (this.useColors ? "%c " : " ") + "+" + t.exports.humanize(this.diff), !this.useColors)
4537
+ function o(d) {
4538
+ if (d[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + d[0] + (this.useColors ? "%c " : " ") + "+" + t.exports.humanize(this.diff), !this.useColors)
4530
4539
  return;
4531
4540
  const b = "color: " + this.color;
4532
- p.splice(1, 0, b, "color: inherit");
4541
+ d.splice(1, 0, b, "color: inherit");
4533
4542
  let g = 0, m = 0;
4534
- p[0].replace(/%[a-zA-Z%]/g, (E) => {
4543
+ d[0].replace(/%[a-zA-Z%]/g, (E) => {
4535
4544
  E !== "%%" && (g++, E === "%c" && (m = g));
4536
- }), p.splice(m, 0, b);
4545
+ }), d.splice(m, 0, b);
4537
4546
  }
4538
4547
  e.log = console.debug || console.log || (() => {
4539
4548
  });
4540
- function s(p) {
4549
+ function s(d) {
4541
4550
  try {
4542
- p ? e.storage.setItem("debug", p) : e.storage.removeItem("debug");
4551
+ d ? e.storage.setItem("debug", d) : e.storage.removeItem("debug");
4543
4552
  } catch {
4544
4553
  }
4545
4554
  }
4546
4555
  function u() {
4547
- let p;
4556
+ let d;
4548
4557
  try {
4549
- p = e.storage.getItem("debug");
4558
+ d = e.storage.getItem("debug");
4550
4559
  } catch {
4551
4560
  }
4552
- return !p && typeof O.process < "u" && "env" in O.process && (p = O.process.env.DEBUG), p;
4561
+ return !d && typeof O.process < "u" && "env" in O.process && (d = O.process.env.DEBUG), d;
4553
4562
  }
4554
4563
  function l() {
4555
4564
  try {
@@ -4559,9 +4568,9 @@ var Ys = Js;
4559
4568
  }
4560
4569
  t.exports = Ys(e);
4561
4570
  const { formatters: c } = t.exports;
4562
- c.j = function(p) {
4571
+ c.j = function(d) {
4563
4572
  try {
4564
- return JSON.stringify(p);
4573
+ return JSON.stringify(d);
4565
4574
  } catch (b) {
4566
4575
  return "[UnexpectedJSONParseError]: " + b.message;
4567
4576
  }
@@ -4596,27 +4605,27 @@ rt.prototype.exec = function(t, e) {
4596
4605
  else
4597
4606
  try {
4598
4607
  this.server = this.parent.override(t, r, this.opts);
4599
- } catch (p) {
4600
- return Z("override errored", s), e(p);
4608
+ } catch (d) {
4609
+ return Z("override errored", s), e(d);
4601
4610
  }
4602
4611
  this.opts = typeof this.opts == "function" ? this.opts(this.server) : this.opts, Z("exec", s);
4603
4612
  let u;
4604
- const l = (p) => {
4613
+ const l = (d) => {
4605
4614
  if (o) {
4606
4615
  Z("loading complete", s);
4607
4616
  return;
4608
4617
  }
4609
- this._error = p, Z(p ? "exec errored" : "exec completed", s), o = !0, u && clearTimeout(u), e(p);
4618
+ this._error = d, Z(d ? "exec errored" : "exec completed", s), o = !0, u && clearTimeout(u), e(d);
4610
4619
  };
4611
4620
  this.timeout > 0 && (Z("setting up timeout", s, this.timeout), u = setTimeout(function() {
4612
4621
  Z("timed out", s), u = null;
4613
- const p = new ta(s);
4614
- p.fn = r, l(p);
4622
+ const d = new ta(s);
4623
+ d.fn = r, l(d);
4615
4624
  }, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
4616
4625
  const c = r(this.server, this.opts, l);
4617
4626
  c && typeof c.then == "function" && (Z("exec: resolving promise", s), c.then(
4618
4627
  () => O.process.nextTick(l),
4619
- (p) => O.process.nextTick(l, p)
4628
+ (d) => O.process.nextTick(l, d)
4620
4629
  ));
4621
4630
  };
4622
4631
  rt.prototype.loadedSoFar = function() {
@@ -4688,8 +4697,8 @@ const Gr = fn, aa = bn.EventEmitter, ua = kt.inherits, {
4688
4697
  AVV_ERR_ROOT_PLG_BOOTED: fa,
4689
4698
  AVV_ERR_READY_TIMEOUT: la
4690
4699
  } = Un, ha = Hs, cr = sa, et = $n("avvio"), _t = Symbol("kAvvio"), Jt = Symbol("kThenifyDoNotWrap");
4691
- function pa(t, e, r) {
4692
- const o = e.expose || {}, s = o.use || "use", u = o.after || "after", l = o.ready || "ready", c = o.onClose || "onClose", p = o.close || "close";
4700
+ function da(t, e, r) {
4701
+ const o = e.expose || {}, s = o.use || "use", u = o.after || "after", l = o.ready || "ready", c = o.onClose || "onClose", d = o.close || "close";
4693
4702
  if (t[s])
4694
4703
  throw new Wt(s);
4695
4704
  if (t[u])
@@ -4698,7 +4707,7 @@ function pa(t, e, r) {
4698
4707
  throw new Wt(l);
4699
4708
  t[s] = function(b, g) {
4700
4709
  return r.use(b, g), this;
4701
- }, Object.defineProperty(t, "then", { get: Dn.bind(r) }), t[_t] = !0, t[u] = function(b) {
4710
+ }, Object.defineProperty(t, "then", { get: jn.bind(r) }), t[_t] = !0, t[u] = function(b) {
4702
4711
  return typeof b != "function" ? r._loadRegistered() : (r.after(Yt(b, this)), this);
4703
4712
  }, t[l] = function(b) {
4704
4713
  if (b && typeof b != "function")
@@ -4708,24 +4717,24 @@ function pa(t, e, r) {
4708
4717
  if (typeof b != "function")
4709
4718
  throw new ft(c, typeof b);
4710
4719
  return r.onClose(wa(b, this)), this;
4711
- }, t[p] = function(b) {
4720
+ }, t[d] = function(b) {
4712
4721
  if (b && typeof b != "function")
4713
- throw new ft(p, typeof b);
4722
+ throw new ft(d, typeof b);
4714
4723
  return b ? (r.close(Yt(b, this)), this) : r.close();
4715
4724
  };
4716
4725
  }
4717
4726
  function ee(t, e, r) {
4718
4727
  if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof ee)) {
4719
4728
  const o = new ee(t, e, r);
4720
- return t && pa(t, e, o), o;
4729
+ return t && da(t, e, o), o;
4721
4730
  }
4722
- 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 ha(), this._readyQ = Gr(this, jn, 1), this._readyQ.pause(), this._readyQ.drain = () => {
4731
+ 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 ha(), this._readyQ = Gr(this, Dn, 1), this._readyQ.pause(), this._readyQ.drain = () => {
4723
4732
  this.emit("start"), this._readyQ.drain = zr;
4724
4733
  }, this._closeQ = Gr(this, ma, 1), this._closeQ.pause(), this._closeQ.drain = () => {
4725
4734
  this.emit("close"), this._closeQ.drain = zr;
4726
- }, this._doStart = null, this._root = new cr(this, da.bind(this), e, !1, 0), this._root.once("start", (o, s, u) => {
4735
+ }, this._doStart = null, this._root = new cr(this, pa.bind(this), e, !1, 0), this._root.once("start", (o, s, u) => {
4727
4736
  const l = this.pluginTree.start(null, s, u);
4728
- this._root.once("loaded", (c, p, b) => {
4737
+ this._root.once("loaded", (c, d, b) => {
4729
4738
  this.pluginTree.stop(l, b);
4730
4739
  });
4731
4740
  }), cr.loadPlugin.call(this, this._root, (o) => {
@@ -4743,7 +4752,7 @@ function ee(t, e, r) {
4743
4752
  this._readyQ.resume();
4744
4753
  });
4745
4754
  }
4746
- function da(t, e, r) {
4755
+ function pa(t, e, r) {
4747
4756
  this._doStart = r, e.autostart && this.start();
4748
4757
  }
4749
4758
  ua(ee, aa);
@@ -4766,15 +4775,15 @@ ee.prototype._loadRegistered = function() {
4766
4775
  const t = this._current[0];
4767
4776
  return !this.started && !this.booted && O.process.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
4768
4777
  };
4769
- Object.defineProperty(ee.prototype, "then", { get: Dn });
4778
+ Object.defineProperty(ee.prototype, "then", { get: jn });
4770
4779
  ee.prototype._addPlugin = function(t, e, r) {
4771
4780
  if (t = ya(t), e = e || {}, this.booted)
4772
4781
  throw new fa();
4773
4782
  const o = this._current[0], s = new cr(this, t, e, r);
4774
4783
  if (s.once("start", (u, l, c) => {
4775
- const p = this.pluginTree.start(o.name, l, c);
4784
+ const d = this.pluginTree.start(o.name, l, c);
4776
4785
  s.once("loaded", (b, g, m) => {
4777
- this.pluginTree.stop(p, m);
4786
+ this.pluginTree.stop(d, m);
4778
4787
  });
4779
4788
  }), o.loaded)
4780
4789
  throw new Error(s.name, o.name);
@@ -4787,7 +4796,7 @@ ee.prototype.after = function(t) {
4787
4796
  return this._loadRegistered();
4788
4797
  this._addPlugin(e.bind(this), {}, !0);
4789
4798
  function e(r, o, s) {
4790
- jn.call(this, t, s);
4799
+ Dn.call(this, t, s);
4791
4800
  }
4792
4801
  return this;
4793
4802
  };
@@ -4840,7 +4849,7 @@ ee.prototype.toJSON = function() {
4840
4849
  };
4841
4850
  function zr() {
4842
4851
  }
4843
- function Dn() {
4852
+ function jn() {
4844
4853
  if (this.booted) {
4845
4854
  et("thenify returning null because we are already booted");
4846
4855
  return;
@@ -4851,7 +4860,7 @@ function Dn() {
4851
4860
  }
4852
4861
  return et("thenify"), (t, e) => this._loadRegistered().then(() => (this[Jt] = !0, t(this._server)), e);
4853
4862
  }
4854
- function jn(t, e) {
4863
+ function Dn(t, e) {
4855
4864
  const r = this._server, o = this._error;
4856
4865
  let s;
4857
4866
  if (this._error = null, t.length === 0)
@@ -4922,7 +4931,7 @@ yr.exports.express = function(t) {
4922
4931
  };
4923
4932
  var ba = yr.exports;
4924
4933
  const va = /* @__PURE__ */ Zn(ba);
4925
- function Da(t, e = !0, r = !0) {
4934
+ function ja(t, e = !0, r = !0) {
4926
4935
  const o = e ? "https://grpc-sdk.streamlayer.io:443" : "https://grpc-sdk.next.streamlayer.io:443", s = va(/* @__PURE__ */ Object.create({}), { autostart: !1 });
4927
4936
  return s.use(Ri), s.use(Ti, { sdkKey: t, host: o }), s.use(Pi), s.use(ki), s.use(ho), s.use(Zi), r && s.after(async (u, l, c) => {
4928
4937
  if (u)
@@ -4933,5 +4942,5 @@ function Da(t, e = !0, r = !0) {
4933
4942
  }), s;
4934
4943
  }
4935
4944
  export {
4936
- Da as StreamLayer
4945
+ ja as StreamLayer
4937
4946
  };