@streamlayer/react 1.8.6 → 1.9.1

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.
@@ -5,7 +5,7 @@ import { useState as Cc, useEffect as Uc } from "react";
5
5
  function Fc(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
8
- var wr = { exports: {} }, ee = wr.exports = {}, Ae, we;
8
+ var wr = { exports: {} }, te = wr.exports = {}, Ae, we;
9
9
  function La() {
10
10
  throw new Error("setTimeout has not been defined");
11
11
  }
@@ -70,7 +70,7 @@ function Lr() {
70
70
  lt = null, At = !1, Gc(e);
71
71
  }
72
72
  }
73
- ee.nextTick = function(e) {
73
+ te.nextTick = function(e) {
74
74
  var t = new Array(arguments.length - 1);
75
75
  if (arguments.length > 1)
76
76
  for (var n = 1; n < arguments.length; n++)
@@ -83,36 +83,36 @@ function Mr(e, t) {
83
83
  Mr.prototype.run = function() {
84
84
  this.fun.apply(null, this.array);
85
85
  };
86
- ee.title = "browser";
87
- ee.browser = !0;
88
- ee.env = {};
89
- ee.argv = [];
90
- ee.version = "";
91
- ee.versions = {};
86
+ te.title = "browser";
87
+ te.browser = !0;
88
+ te.env = {};
89
+ te.argv = [];
90
+ te.version = "";
91
+ te.versions = {};
92
92
  function Ke() {
93
93
  }
94
- ee.on = Ke;
95
- ee.addListener = Ke;
96
- ee.once = Ke;
97
- ee.off = Ke;
98
- ee.removeListener = Ke;
99
- ee.removeAllListeners = Ke;
100
- ee.emit = Ke;
101
- ee.prependListener = Ke;
102
- ee.prependOnceListener = Ke;
103
- ee.listeners = function(e) {
94
+ te.on = Ke;
95
+ te.addListener = Ke;
96
+ te.once = Ke;
97
+ te.off = Ke;
98
+ te.removeListener = Ke;
99
+ te.removeAllListeners = Ke;
100
+ te.emit = Ke;
101
+ te.prependListener = Ke;
102
+ te.prependOnceListener = Ke;
103
+ te.listeners = function(e) {
104
104
  return [];
105
105
  };
106
- ee.binding = function(e) {
106
+ te.binding = function(e) {
107
107
  throw new Error("process.binding is not supported");
108
108
  };
109
- ee.cwd = function() {
109
+ te.cwd = function() {
110
110
  return "/";
111
111
  };
112
- ee.chdir = function(e) {
112
+ te.chdir = function(e) {
113
113
  throw new Error("process.chdir is not supported");
114
114
  };
115
- ee.umask = function() {
115
+ te.umask = function() {
116
116
  return 0;
117
117
  };
118
118
  var Vc = wr.exports;
@@ -237,8 +237,8 @@ function $e(e) {
237
237
  let o = e.browser.serialize;
238
238
  Array.isArray(e.browser.serialize) && e.browser.serialize.indexOf("!stdSerializers.err") > -1 && (o = !1);
239
239
  const r = Object.keys(e.customLevels || {}), c = ["error", "fatal", "warn", "info", "debug", "trace"].concat(r);
240
- typeof n == "function" && c.forEach(function(_) {
241
- n[_] = n;
240
+ typeof n == "function" && c.forEach(function(k) {
241
+ n[k] = n;
242
242
  }), (e.enabled === !1 || e.browser.disabled) && (e.level = "silent");
243
243
  const l = e.level || "info", m = Object.create(n);
244
244
  m.log || (m.log = wt), jc(m, c, n), Hs({}, m), Object.defineProperty(m, "levelVal", {
@@ -257,8 +257,8 @@ function $e(e) {
257
257
  messageKey: e.messageKey || "msg",
258
258
  onChild: e.onChild || wt
259
259
  };
260
- m.levels = Kc(e), m.level = l, m.setMaxListeners = m.getMaxListeners = m.emit = m.addListener = m.on = m.prependListener = m.once = m.prependOnceListener = m.removeListener = m.removeAllListeners = m.listeners = m.listenerCount = m.eventNames = m.write = m.flush = wt, m.serializers = a, m._serialize = s, m._stdErrSerialize = o, m.child = function(..._) {
261
- return f.call(this, u, ..._);
260
+ m.levels = Kc(e), m.level = l, m.setMaxListeners = m.getMaxListeners = m.emit = m.addListener = m.on = m.prependListener = m.once = m.prependOnceListener = m.removeListener = m.removeAllListeners = m.listeners = m.listenerCount = m.eventNames = m.write = m.flush = wt, m.serializers = a, m._serialize = s, m._stdErrSerialize = o, m.child = function(...k) {
261
+ return f.call(this, u, ...k);
262
262
  }, t && (m._logEvent = Da());
263
263
  function d() {
264
264
  return An(this.level, this);
@@ -266,32 +266,32 @@ function $e(e) {
266
266
  function y() {
267
267
  return this._level;
268
268
  }
269
- function T(_) {
270
- if (_ !== "silent" && !this.levels.values[_])
271
- throw Error("unknown level " + _);
272
- this._level = _, it(this, u, m, "error"), it(this, u, m, "fatal"), it(this, u, m, "warn"), it(this, u, m, "info"), it(this, u, m, "debug"), it(this, u, m, "trace"), r.forEach((N) => {
269
+ function T(k) {
270
+ if (k !== "silent" && !this.levels.values[k])
271
+ throw Error("unknown level " + k);
272
+ this._level = k, it(this, u, m, "error"), it(this, u, m, "fatal"), it(this, u, m, "warn"), it(this, u, m, "info"), it(this, u, m, "debug"), it(this, u, m, "trace"), r.forEach((N) => {
273
273
  it(this, u, m, N);
274
274
  });
275
275
  }
276
- function f(_, N, E) {
276
+ function f(k, N, h) {
277
277
  if (!N)
278
278
  throw new Error("missing bindings for child Pino");
279
- E = E || {}, s && N.serializers && (E.serializers = N.serializers);
280
- const b = E.serializers;
281
- if (s && b) {
282
- var w = Object.assign({}, a, b), O = e.browser.serialize === !0 ? Object.keys(w) : s;
283
- delete N.serializers, is([N], O, w, this._stdErrSerialize);
284
- }
285
- function A(v) {
286
- this._childLevel = (v._childLevel | 0) + 1, this.bindings = N, w && (this.serializers = w, this._serialize = O), t && (this._logEvent = Da(
287
- [].concat(v._logEvent.bindings, N)
279
+ h = h || {}, s && N.serializers && (h.serializers = N.serializers);
280
+ const A = h.serializers;
281
+ if (s && A) {
282
+ var w = Object.assign({}, a, A), b = e.browser.serialize === !0 ? Object.keys(w) : s;
283
+ delete N.serializers, is([N], b, w, this._stdErrSerialize);
284
+ }
285
+ function v(I) {
286
+ this._childLevel = (I._childLevel | 0) + 1, this.bindings = N, w && (this.serializers = w, this._serialize = b), t && (this._logEvent = Da(
287
+ [].concat(I._logEvent.bindings, N)
288
288
  ));
289
289
  }
290
- A.prototype = this;
291
- const L = new A(this);
292
- return Hs(this, L), L.child = function(...v) {
293
- return f.call(this, _, ...v);
294
- }, L.level = E.level || this.level, _.onChild(L), L;
290
+ v.prototype = this;
291
+ const R = new v(this);
292
+ return Hs(this, R), R.child = function(...I) {
293
+ return f.call(this, k, ...I);
294
+ }, R.level = h.level || this.level, k.onChild(R), R;
295
295
  }
296
296
  return m;
297
297
  }
@@ -475,7 +475,7 @@ function sl() {
475
475
  }
476
476
  os.exports.default = $e;
477
477
  var ol = os.exports.pino = $e;
478
- function J(e, t) {
478
+ function X(e, t) {
479
479
  if (!e)
480
480
  throw new Error(t);
481
481
  }
@@ -501,7 +501,7 @@ function Cr(e) {
501
501
  const Ur = Symbol("@bufbuild/protobuf/enum-type");
502
502
  function ul(e) {
503
503
  const t = e[Ur];
504
- return J(t, "missing enum type on enum object"), t;
504
+ return X(t, "missing enum type on enum object"), t;
505
505
  }
506
506
  function Fr(e, t, n, a) {
507
507
  e[Ur] = Gr(t, n.map((s) => ({
@@ -803,7 +803,7 @@ function kl() {
803
803
  }
804
804
  };
805
805
  }
806
- const n = (s) => J(/^-?[0-9]+$/.test(s), `int64 invalid: ${s}`), a = (s) => J(/^[0-9]+$/.test(s), `uint64 invalid: ${s}`);
806
+ const n = (s) => X(/^-?[0-9]+$/.test(s), `int64 invalid: ${s}`), a = (s) => X(/^[0-9]+$/.test(s), `uint64 invalid: ${s}`);
807
807
  return {
808
808
  zero: "0",
809
809
  supported: !1,
@@ -828,10 +828,10 @@ function kl() {
828
828
  };
829
829
  }
830
830
  const Te = kl();
831
- var h;
831
+ var _;
832
832
  (function(e) {
833
833
  e[e.DOUBLE = 1] = "DOUBLE", e[e.FLOAT = 2] = "FLOAT", e[e.INT64 = 3] = "INT64", e[e.UINT64 = 4] = "UINT64", e[e.INT32 = 5] = "INT32", e[e.FIXED64 = 6] = "FIXED64", e[e.FIXED32 = 7] = "FIXED32", e[e.BOOL = 8] = "BOOL", e[e.STRING = 9] = "STRING", e[e.BYTES = 12] = "BYTES", e[e.UINT32 = 13] = "UINT32", e[e.SFIXED32 = 15] = "SFIXED32", e[e.SFIXED64 = 16] = "SFIXED64", e[e.SINT32 = 17] = "SINT32", e[e.SINT64 = 18] = "SINT64";
834
- })(h || (h = {}));
834
+ })(_ || (_ = {}));
835
835
  var tt;
836
836
  (function(e) {
837
837
  e[e.BIGINT = 0] = "BIGINT", e[e.STRING = 1] = "STRING";
@@ -839,7 +839,7 @@ var tt;
839
839
  function Xe(e, t, n) {
840
840
  if (t === n)
841
841
  return !0;
842
- if (e == h.BYTES) {
842
+ if (e == _.BYTES) {
843
843
  if (!(t instanceof Uint8Array) || !(n instanceof Uint8Array) || t.length !== n.length)
844
844
  return !1;
845
845
  for (let a = 0; a < t.length; a++)
@@ -848,31 +848,31 @@ function Xe(e, t, n) {
848
848
  return !0;
849
849
  }
850
850
  switch (e) {
851
- case h.UINT64:
852
- case h.FIXED64:
853
- case h.INT64:
854
- case h.SFIXED64:
855
- case h.SINT64:
851
+ case _.UINT64:
852
+ case _.FIXED64:
853
+ case _.INT64:
854
+ case _.SFIXED64:
855
+ case _.SINT64:
856
856
  return t == n;
857
857
  }
858
858
  return !1;
859
859
  }
860
860
  function Pt(e, t) {
861
861
  switch (e) {
862
- case h.BOOL:
862
+ case _.BOOL:
863
863
  return !1;
864
- case h.UINT64:
865
- case h.FIXED64:
866
- case h.INT64:
867
- case h.SFIXED64:
868
- case h.SINT64:
864
+ case _.UINT64:
865
+ case _.FIXED64:
866
+ case _.INT64:
867
+ case _.SFIXED64:
868
+ case _.SINT64:
869
869
  return t == 0 ? Te.zero : "0";
870
- case h.DOUBLE:
871
- case h.FLOAT:
870
+ case _.DOUBLE:
871
+ case _.FLOAT:
872
872
  return 0;
873
- case h.BYTES:
873
+ case _.BYTES:
874
874
  return new Uint8Array(0);
875
- case h.STRING:
875
+ case _.STRING:
876
876
  return "";
877
877
  default:
878
878
  return 0;
@@ -880,20 +880,20 @@ function Pt(e, t) {
880
880
  }
881
881
  function xr(e, t) {
882
882
  switch (e) {
883
- case h.BOOL:
883
+ case _.BOOL:
884
884
  return t === !1;
885
- case h.STRING:
885
+ case _.STRING:
886
886
  return t === "";
887
- case h.BYTES:
887
+ case _.BYTES:
888
888
  return t instanceof Uint8Array && !t.byteLength;
889
889
  default:
890
890
  return t == 0;
891
891
  }
892
892
  }
893
- var Z;
893
+ var ee;
894
894
  (function(e) {
895
895
  e[e.Varint = 0] = "Varint", e[e.Bit64 = 1] = "Bit64", e[e.LengthDelimited = 2] = "LengthDelimited", e[e.StartGroup = 3] = "StartGroup", e[e.EndGroup = 4] = "EndGroup", e[e.Bit32 = 5] = "Bit32";
896
- })(Z || (Z = {}));
896
+ })(ee || (ee = {}));
897
897
  class hl {
898
898
  constructor(t) {
899
899
  this.stack = [], this.textEncoder = t ?? new TextEncoder(), this.chunks = [], this.buf = [];
@@ -1074,23 +1074,23 @@ class Sl {
1074
1074
  skip(t, n) {
1075
1075
  let a = this.pos;
1076
1076
  switch (t) {
1077
- case Z.Varint:
1077
+ case ee.Varint:
1078
1078
  for (; this.buf[this.pos++] & 128; )
1079
1079
  ;
1080
1080
  break;
1081
- case Z.Bit64:
1081
+ case ee.Bit64:
1082
1082
  this.pos += 4;
1083
- case Z.Bit32:
1083
+ case ee.Bit32:
1084
1084
  this.pos += 4;
1085
1085
  break;
1086
- case Z.LengthDelimited:
1086
+ case ee.LengthDelimited:
1087
1087
  let s = this.uint32();
1088
1088
  this.pos += s;
1089
1089
  break;
1090
- case Z.StartGroup:
1090
+ case ee.StartGroup:
1091
1091
  for (; ; ) {
1092
1092
  const [o, r] = this.tag();
1093
- if (r === Z.EndGroup) {
1093
+ if (r === ee.EndGroup) {
1094
1094
  if (n !== void 0 && o !== n)
1095
1095
  throw new Error("invalid end group tag");
1096
1096
  break;
@@ -1349,7 +1349,7 @@ function Qr(e, t) {
1349
1349
  return t.extendee.typeName === n.typeName && !!n.runtime.bin.listUnknownFields(e).find((a) => a.no == t.field.no);
1350
1350
  }
1351
1351
  function Yr(e, t) {
1352
- J(e.extendee.typeName == t.getType().typeName, `extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`);
1352
+ X(e.extendee.typeName == t.getType().typeName, `extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`);
1353
1353
  }
1354
1354
  function jr(e, t) {
1355
1355
  const n = e.localName;
@@ -1398,7 +1398,7 @@ function dt(e, t) {
1398
1398
  function $r(e, t) {
1399
1399
  return dt(t) || !e.fieldWrapper ? t : e.fieldWrapper.wrapField(t);
1400
1400
  }
1401
- h.DOUBLE, h.FLOAT, h.INT64, h.UINT64, h.INT32, h.UINT32, h.BOOL, h.STRING, h.BYTES;
1401
+ _.DOUBLE, _.FLOAT, _.INT64, _.UINT64, _.INT32, _.UINT32, _.BOOL, _.STRING, _.BYTES;
1402
1402
  const Ws = {
1403
1403
  ignoreUnknownFields: !1
1404
1404
  }, zs = {
@@ -1505,7 +1505,7 @@ function Re(e) {
1505
1505
  function Js(e, t, n, a, s) {
1506
1506
  let o = n.localName;
1507
1507
  if (n.repeated) {
1508
- if (J(n.kind != "map"), t === null)
1508
+ if (X(n.kind != "map"), t === null)
1509
1509
  return;
1510
1510
  if (!Array.isArray(t))
1511
1511
  throw new Error(`cannot decode field ${s.typeName}.${n.name} from JSON: ${Re(t)}`);
@@ -1606,7 +1606,7 @@ function Js(e, t, n, a, s) {
1606
1606
  }
1607
1607
  }
1608
1608
  function wl(e, t) {
1609
- if (e === h.BOOL)
1609
+ if (e === _.BOOL)
1610
1610
  switch (t) {
1611
1611
  case "true":
1612
1612
  t = !0;
@@ -1621,8 +1621,8 @@ function jt(e, t, n, a) {
1621
1621
  if (t === null)
1622
1622
  return a ? Pt(e, n) : wn;
1623
1623
  switch (e) {
1624
- case h.DOUBLE:
1625
- case h.FLOAT:
1624
+ case _.DOUBLE:
1625
+ case _.FLOAT:
1626
1626
  if (t === "NaN")
1627
1627
  return Number.NaN;
1628
1628
  if (t === "Infinity")
@@ -1634,34 +1634,34 @@ function jt(e, t, n, a) {
1634
1634
  const s = Number(t);
1635
1635
  if (Number.isNaN(s) || !Number.isFinite(s))
1636
1636
  break;
1637
- return e == h.FLOAT && Cr(s), s;
1638
- case h.INT32:
1639
- case h.FIXED32:
1640
- case h.SFIXED32:
1641
- case h.SINT32:
1642
- case h.UINT32:
1637
+ return e == _.FLOAT && Cr(s), s;
1638
+ case _.INT32:
1639
+ case _.FIXED32:
1640
+ case _.SFIXED32:
1641
+ case _.SINT32:
1642
+ case _.UINT32:
1643
1643
  let o;
1644
1644
  if (typeof t == "number" ? o = t : typeof t == "string" && t.length > 0 && t.trim().length === t.length && (o = Number(t)), o === void 0)
1645
1645
  break;
1646
- return e == h.UINT32 || e == h.FIXED32 ? Ca(o) : fn(o), o;
1647
- case h.INT64:
1648
- case h.SFIXED64:
1649
- case h.SINT64:
1646
+ return e == _.UINT32 || e == _.FIXED32 ? Ca(o) : fn(o), o;
1647
+ case _.INT64:
1648
+ case _.SFIXED64:
1649
+ case _.SINT64:
1650
1650
  if (typeof t != "number" && typeof t != "string")
1651
1651
  break;
1652
1652
  const r = Te.parse(t);
1653
1653
  return n ? r.toString() : r;
1654
- case h.FIXED64:
1655
- case h.UINT64:
1654
+ case _.FIXED64:
1655
+ case _.UINT64:
1656
1656
  if (typeof t != "number" && typeof t != "string")
1657
1657
  break;
1658
1658
  const c = Te.uParse(t);
1659
1659
  return n ? c.toString() : c;
1660
- case h.BOOL:
1660
+ case _.BOOL:
1661
1661
  if (typeof t != "boolean")
1662
1662
  break;
1663
1663
  return t;
1664
- case h.STRING:
1664
+ case _.STRING:
1665
1665
  if (typeof t != "string")
1666
1666
  break;
1667
1667
  try {
@@ -1670,7 +1670,7 @@ function jt(e, t, n, a) {
1670
1670
  throw new Error("invalid UTF8");
1671
1671
  }
1672
1672
  return t;
1673
- case h.BYTES:
1673
+ case _.BYTES:
1674
1674
  if (t === "")
1675
1675
  return new Uint8Array(0);
1676
1676
  if (typeof t != "string")
@@ -1702,7 +1702,7 @@ function Rl(e) {
1702
1702
  }
1703
1703
  function Xs(e, t, n) {
1704
1704
  if (e.kind == "map") {
1705
- J(typeof t == "object" && t != null);
1705
+ X(typeof t == "object" && t != null);
1706
1706
  const a = {}, s = Object.entries(t);
1707
1707
  switch (e.V.kind) {
1708
1708
  case "scalar":
@@ -1722,7 +1722,7 @@ function Xs(e, t, n) {
1722
1722
  return n.emitDefaultValues || s.length > 0 ? a : void 0;
1723
1723
  }
1724
1724
  if (e.repeated) {
1725
- J(Array.isArray(t));
1725
+ X(Array.isArray(t));
1726
1726
  const a = [];
1727
1727
  switch (e.kind) {
1728
1728
  case "scalar":
@@ -1751,7 +1751,7 @@ function Xs(e, t, n) {
1751
1751
  }
1752
1752
  function oa(e, t, n) {
1753
1753
  var a;
1754
- if (J(typeof t == "number"), e.typeName == "google.protobuf.NullValue")
1754
+ if (X(typeof t == "number"), e.typeName == "google.protobuf.NullValue")
1755
1755
  return null;
1756
1756
  if (n)
1757
1757
  return t;
@@ -1760,27 +1760,27 @@ function oa(e, t, n) {
1760
1760
  }
1761
1761
  function hn(e, t) {
1762
1762
  switch (e) {
1763
- case h.INT32:
1764
- case h.SFIXED32:
1765
- case h.SINT32:
1766
- case h.FIXED32:
1767
- case h.UINT32:
1768
- return J(typeof t == "number"), t;
1769
- case h.FLOAT:
1770
- case h.DOUBLE:
1771
- return J(typeof t == "number"), Number.isNaN(t) ? "NaN" : t === Number.POSITIVE_INFINITY ? "Infinity" : t === Number.NEGATIVE_INFINITY ? "-Infinity" : t;
1772
- case h.STRING:
1773
- return J(typeof t == "string"), t;
1774
- case h.BOOL:
1775
- return J(typeof t == "boolean"), t;
1776
- case h.UINT64:
1777
- case h.FIXED64:
1778
- case h.INT64:
1779
- case h.SFIXED64:
1780
- case h.SINT64:
1781
- return J(typeof t == "bigint" || typeof t == "string" || typeof t == "number"), t.toString();
1782
- case h.BYTES:
1783
- return J(t instanceof Uint8Array), ls.enc(t);
1763
+ case _.INT32:
1764
+ case _.SFIXED32:
1765
+ case _.SINT32:
1766
+ case _.FIXED32:
1767
+ case _.UINT32:
1768
+ return X(typeof t == "number"), t;
1769
+ case _.FLOAT:
1770
+ case _.DOUBLE:
1771
+ return X(typeof t == "number"), Number.isNaN(t) ? "NaN" : t === Number.POSITIVE_INFINITY ? "Infinity" : t === Number.NEGATIVE_INFINITY ? "-Infinity" : t;
1772
+ case _.STRING:
1773
+ return X(typeof t == "string"), t;
1774
+ case _.BOOL:
1775
+ return X(typeof t == "boolean"), t;
1776
+ case _.UINT64:
1777
+ case _.FIXED64:
1778
+ case _.INT64:
1779
+ case _.SFIXED64:
1780
+ case _.SINT64:
1781
+ return X(typeof t == "bigint" || typeof t == "string" || typeof t == "number"), t.toString();
1782
+ case _.BYTES:
1783
+ return X(t instanceof Uint8Array), ls.enc(t);
1784
1784
  }
1785
1785
  }
1786
1786
  const _t = Symbol("@bufbuild/protobuf/unknown-fields"), Zs = {
@@ -1820,7 +1820,7 @@ function Pl() {
1820
1820
  readMessage(e, t, n, a, s) {
1821
1821
  const o = e.getType(), r = s ? t.len : t.pos + n;
1822
1822
  let c, l;
1823
- for (; t.pos < r && ([c, l] = t.tag(), !(s === !0 && l == Z.EndGroup)); ) {
1823
+ for (; t.pos < r && ([c, l] = t.tag(), !(s === !0 && l == ee.EndGroup)); ) {
1824
1824
  const m = o.fields.find(c);
1825
1825
  if (!m) {
1826
1826
  const u = t.skip(l, c);
@@ -1830,7 +1830,7 @@ function Pl() {
1830
1830
  to(e, t, m, l, a);
1831
1831
  }
1832
1832
  if (s && // eslint-disable-line @typescript-eslint/strict-boolean-expressions
1833
- (l != Z.EndGroup || c !== n))
1833
+ (l != ee.EndGroup || c !== n))
1834
1834
  throw new Error("invalid end group tag");
1835
1835
  },
1836
1836
  readField: to,
@@ -1857,11 +1857,11 @@ function to(e, t, n, a, s) {
1857
1857
  switch (n.oneof && (e = e[n.oneof.localName], e.case != r && delete e.value, e.case = r, r = "value"), n.kind) {
1858
1858
  case "scalar":
1859
1859
  case "enum":
1860
- const c = n.kind == "enum" ? h.INT32 : n.T;
1860
+ const c = n.kind == "enum" ? _.INT32 : n.T;
1861
1861
  let l = Rn;
1862
1862
  if (n.kind == "scalar" && n.L > 0 && (l = Cl), o) {
1863
1863
  let y = e[r];
1864
- if (a == Z.LengthDelimited && c != h.STRING && c != h.BYTES) {
1864
+ if (a == ee.LengthDelimited && c != _.STRING && c != _.BYTES) {
1865
1865
  let f = t.uint32() + t.pos;
1866
1866
  for (; t.pos < f; )
1867
1867
  y.push(l(t, c));
@@ -1935,47 +1935,47 @@ function Cl(e, t) {
1935
1935
  }
1936
1936
  function Rn(e, t) {
1937
1937
  switch (t) {
1938
- case h.STRING:
1938
+ case _.STRING:
1939
1939
  return e.string();
1940
- case h.BOOL:
1940
+ case _.BOOL:
1941
1941
  return e.bool();
1942
- case h.DOUBLE:
1942
+ case _.DOUBLE:
1943
1943
  return e.double();
1944
- case h.FLOAT:
1944
+ case _.FLOAT:
1945
1945
  return e.float();
1946
- case h.INT32:
1946
+ case _.INT32:
1947
1947
  return e.int32();
1948
- case h.INT64:
1948
+ case _.INT64:
1949
1949
  return e.int64();
1950
- case h.UINT64:
1950
+ case _.UINT64:
1951
1951
  return e.uint64();
1952
- case h.FIXED64:
1952
+ case _.FIXED64:
1953
1953
  return e.fixed64();
1954
- case h.BYTES:
1954
+ case _.BYTES:
1955
1955
  return e.bytes();
1956
- case h.FIXED32:
1956
+ case _.FIXED32:
1957
1957
  return e.fixed32();
1958
- case h.SFIXED32:
1958
+ case _.SFIXED32:
1959
1959
  return e.sfixed32();
1960
- case h.SFIXED64:
1960
+ case _.SFIXED64:
1961
1961
  return e.sfixed64();
1962
- case h.SINT64:
1962
+ case _.SINT64:
1963
1963
  return e.sint64();
1964
- case h.UINT32:
1964
+ case _.UINT32:
1965
1965
  return e.uint32();
1966
- case h.SINT32:
1966
+ case _.SINT32:
1967
1967
  return e.sint32();
1968
1968
  }
1969
1969
  }
1970
1970
  function no(e, t, n, a) {
1971
- J(t !== void 0);
1971
+ X(t !== void 0);
1972
1972
  const s = e.repeated;
1973
1973
  switch (e.kind) {
1974
1974
  case "scalar":
1975
1975
  case "enum":
1976
- let o = e.kind == "enum" ? h.INT32 : e.T;
1976
+ let o = e.kind == "enum" ? _.INT32 : e.T;
1977
1977
  if (s)
1978
- if (J(Array.isArray(t)), e.packed)
1978
+ if (X(Array.isArray(t)), e.packed)
1979
1979
  Fl(n, o, e.no, t);
1980
1980
  else
1981
1981
  for (const r of t)
@@ -1985,32 +1985,32 @@ function no(e, t, n, a) {
1985
1985
  break;
1986
1986
  case "message":
1987
1987
  if (s) {
1988
- J(Array.isArray(t));
1988
+ X(Array.isArray(t));
1989
1989
  for (const r of t)
1990
1990
  ao(n, a, e, r);
1991
1991
  } else
1992
1992
  ao(n, a, e, t);
1993
1993
  break;
1994
1994
  case "map":
1995
- J(typeof t == "object" && t != null);
1995
+ X(typeof t == "object" && t != null);
1996
1996
  for (const [r, c] of Object.entries(t))
1997
1997
  Ul(n, a, e, r, c);
1998
1998
  break;
1999
1999
  }
2000
2000
  }
2001
2001
  function Ul(e, t, n, a, s) {
2002
- e.tag(n.no, Z.LengthDelimited), e.fork();
2002
+ e.tag(n.no, ee.LengthDelimited), e.fork();
2003
2003
  let o = a;
2004
2004
  switch (n.K) {
2005
- case h.INT32:
2006
- case h.FIXED32:
2007
- case h.UINT32:
2008
- case h.SFIXED32:
2009
- case h.SINT32:
2005
+ case _.INT32:
2006
+ case _.FIXED32:
2007
+ case _.UINT32:
2008
+ case _.SFIXED32:
2009
+ case _.SINT32:
2010
2010
  o = Number.parseInt(a);
2011
2011
  break;
2012
- case h.BOOL:
2013
- J(a == "true" || a == "false"), o = a == "true";
2012
+ case _.BOOL:
2013
+ X(a == "true" || a == "false"), o = a == "true";
2014
2014
  break;
2015
2015
  }
2016
2016
  switch ($t(e, n.K, 1, o), n.V.kind) {
@@ -2018,51 +2018,51 @@ function Ul(e, t, n, a, s) {
2018
2018
  $t(e, n.V.T, 2, s);
2019
2019
  break;
2020
2020
  case "enum":
2021
- $t(e, h.INT32, 2, s);
2021
+ $t(e, _.INT32, 2, s);
2022
2022
  break;
2023
2023
  case "message":
2024
- J(s !== void 0), e.tag(2, Z.LengthDelimited).bytes(s.toBinary(t));
2024
+ X(s !== void 0), e.tag(2, ee.LengthDelimited).bytes(s.toBinary(t));
2025
2025
  break;
2026
2026
  }
2027
2027
  e.join();
2028
2028
  }
2029
2029
  function ao(e, t, n, a) {
2030
2030
  const s = $r(n.T, a);
2031
- n.delimited ? e.tag(n.no, Z.StartGroup).raw(s.toBinary(t)).tag(n.no, Z.EndGroup) : e.tag(n.no, Z.LengthDelimited).bytes(s.toBinary(t));
2031
+ n.delimited ? e.tag(n.no, ee.StartGroup).raw(s.toBinary(t)).tag(n.no, ee.EndGroup) : e.tag(n.no, ee.LengthDelimited).bytes(s.toBinary(t));
2032
2032
  }
2033
2033
  function $t(e, t, n, a) {
2034
- J(a !== void 0);
2034
+ X(a !== void 0);
2035
2035
  let [s, o] = Kr(t);
2036
2036
  e.tag(n, s)[o](a);
2037
2037
  }
2038
2038
  function Fl(e, t, n, a) {
2039
2039
  if (!a.length)
2040
2040
  return;
2041
- e.tag(n, Z.LengthDelimited).fork();
2041
+ e.tag(n, ee.LengthDelimited).fork();
2042
2042
  let [, s] = Kr(t);
2043
2043
  for (let o = 0; o < a.length; o++)
2044
2044
  e[s](a[o]);
2045
2045
  e.join();
2046
2046
  }
2047
2047
  function Kr(e) {
2048
- let t = Z.Varint;
2048
+ let t = ee.Varint;
2049
2049
  switch (e) {
2050
- case h.BYTES:
2051
- case h.STRING:
2052
- t = Z.LengthDelimited;
2050
+ case _.BYTES:
2051
+ case _.STRING:
2052
+ t = ee.LengthDelimited;
2053
2053
  break;
2054
- case h.DOUBLE:
2055
- case h.FIXED64:
2056
- case h.SFIXED64:
2057
- t = Z.Bit64;
2054
+ case _.DOUBLE:
2055
+ case _.FIXED64:
2056
+ case _.SFIXED64:
2057
+ t = ee.Bit64;
2058
2058
  break;
2059
- case h.FIXED32:
2060
- case h.SFIXED32:
2061
- case h.FLOAT:
2062
- t = Z.Bit32;
2059
+ case _.FIXED32:
2060
+ case _.SFIXED32:
2061
+ case _.FLOAT:
2062
+ t = ee.Bit32;
2063
2063
  break;
2064
2064
  }
2065
- const n = h[e].toLowerCase();
2065
+ const n = _[e].toLowerCase();
2066
2066
  return [t, n];
2067
2067
  }
2068
2068
  function Gl() {
@@ -2082,18 +2082,18 @@ function Gl() {
2082
2082
  continue;
2083
2083
  const l = a.findField(c);
2084
2084
  let m = r[s].value;
2085
- l && l.kind == "message" && !dt(m, l.T) ? m = new l.T(m) : l && l.kind === "scalar" && l.T === h.BYTES && (m = xt(m)), o[s] = { case: c, value: m };
2085
+ l && l.kind == "message" && !dt(m, l.T) ? m = new l.T(m) : l && l.kind === "scalar" && l.T === _.BYTES && (m = xt(m)), o[s] = { case: c, value: m };
2086
2086
  break;
2087
2087
  case "scalar":
2088
2088
  case "enum":
2089
2089
  let u = r[s];
2090
- a.T === h.BYTES && (u = a.repeated ? u.map(xt) : xt(u)), o[s] = u;
2090
+ a.T === _.BYTES && (u = a.repeated ? u.map(xt) : xt(u)), o[s] = u;
2091
2091
  break;
2092
2092
  case "map":
2093
2093
  switch (a.V.kind) {
2094
2094
  case "scalar":
2095
2095
  case "enum":
2096
- if (a.V.T === h.BYTES)
2096
+ if (a.V.T === _.BYTES)
2097
2097
  for (const [T, f] of Object.entries(r[s]))
2098
2098
  o[s][T] = xt(f);
2099
2099
  else
@@ -2133,7 +2133,7 @@ function Gl() {
2133
2133
  case "scalar":
2134
2134
  return s.every((r, c) => Xe(a.T, r, o[c]));
2135
2135
  case "enum":
2136
- return s.every((r, c) => Xe(h.INT32, r, o[c]));
2136
+ return s.every((r, c) => Xe(_.INT32, r, o[c]));
2137
2137
  }
2138
2138
  throw new Error(`repeated cannot contain ${a.kind}`);
2139
2139
  }
@@ -2141,7 +2141,7 @@ function Gl() {
2141
2141
  case "message":
2142
2142
  return a.T.equals(s, o);
2143
2143
  case "enum":
2144
- return Xe(h.INT32, s, o);
2144
+ return Xe(_.INT32, s, o);
2145
2145
  case "scalar":
2146
2146
  return Xe(a.T, s, o);
2147
2147
  case "oneof":
@@ -2154,7 +2154,7 @@ function Gl() {
2154
2154
  case "message":
2155
2155
  return r.T.equals(s.value, o.value);
2156
2156
  case "enum":
2157
- return Xe(h.INT32, s.value, o.value);
2157
+ return Xe(_.INT32, s.value, o.value);
2158
2158
  case "scalar":
2159
2159
  return Xe(r.T, s.value, o.value);
2160
2160
  }
@@ -2166,7 +2166,7 @@ function Gl() {
2166
2166
  const l = a.V.T;
2167
2167
  return c.every((u) => l.equals(s[u], o[u]));
2168
2168
  case "enum":
2169
- return c.every((u) => Xe(h.INT32, s[u], o[u]));
2169
+ return c.every((u) => Xe(_.INT32, s[u], o[u]));
2170
2170
  case "scalar":
2171
2171
  const m = a.V.T;
2172
2172
  return c.every((u) => Xe(m, s[u], o[u]));
@@ -2330,7 +2330,7 @@ class $l {
2330
2330
  this.kind = "oneof", this.repeated = !1, this.packed = !1, this.opt = !1, this.req = !1, this.default = void 0, this.fields = [], this.name = t, this.localName = ql(t);
2331
2331
  }
2332
2332
  addField(t) {
2333
- J(t.oneof === this, `field ${t.name} not one of ${this.name}`), this.fields.push(t);
2333
+ X(t.oneof === this, `field ${t.name} not one of ${this.name}`), this.fields.push(t);
2334
2334
  }
2335
2335
  findField(t) {
2336
2336
  if (!this._lookup) {
@@ -2347,7 +2347,7 @@ function Kl(e, t) {
2347
2347
  let m;
2348
2348
  for (const u of typeof e == "function" ? e() : e) {
2349
2349
  const d = u;
2350
- if (d.localName = Wr(u.name, u.oneof !== void 0), d.jsonName = (n = u.jsonName) !== null && n !== void 0 ? n : xl(u.name), d.repeated = (a = u.repeated) !== null && a !== void 0 ? a : !1, u.kind == "scalar" && (d.L = (s = u.L) !== null && s !== void 0 ? s : tt.BIGINT), d.delimited = (o = u.delimited) !== null && o !== void 0 ? o : !1, d.req = (r = u.req) !== null && r !== void 0 ? r : !1, d.opt = (c = u.opt) !== null && c !== void 0 ? c : !1, u.packed === void 0 && (d.packed = u.kind == "enum" || u.kind == "scalar" && u.T != h.BYTES && u.T != h.STRING), u.oneof !== void 0) {
2350
+ if (d.localName = Wr(u.name, u.oneof !== void 0), d.jsonName = (n = u.jsonName) !== null && n !== void 0 ? n : xl(u.name), d.repeated = (a = u.repeated) !== null && a !== void 0 ? a : !1, u.kind == "scalar" && (d.L = (s = u.L) !== null && s !== void 0 ? s : tt.BIGINT), d.delimited = (o = u.delimited) !== null && o !== void 0 ? o : !1, d.req = (r = u.req) !== null && r !== void 0 ? r : !1, d.opt = (c = u.opt) !== null && c !== void 0 ? c : !1, u.packed === void 0 && (d.packed = u.kind == "enum" || u.kind == "scalar" && u.T != _.BYTES && u.T != _.STRING), u.oneof !== void 0) {
2351
2351
  const y = typeof u.oneof == "string" ? u.oneof : u.oneof.name;
2352
2352
  (!m || m.name != y) && (m = new $l(y)), d.oneof = m, m.addField(d);
2353
2353
  }
@@ -2385,10 +2385,10 @@ const i = Bl(
2385
2385
  }
2386
2386
  }
2387
2387
  );
2388
- var R;
2388
+ var L;
2389
2389
  (function(e) {
2390
2390
  e[e.Unary = 0] = "Unary", e[e.ServerStreaming = 1] = "ServerStreaming", e[e.ClientStreaming = 2] = "ClientStreaming", e[e.BiDiStreaming = 3] = "BiDiStreaming";
2391
- })(R || (R = {}));
2391
+ })(L || (L = {}));
2392
2392
  var so;
2393
2393
  (function(e) {
2394
2394
  e[e.NoSideEffects = 1] = "NoSideEffects", e[e.Idempotent = 2] = "Idempotent";
@@ -2575,7 +2575,7 @@ const Wl = /* @__PURE__ */ i.makeEnum(
2575
2575
  { no: 1, name: "RESULT_STATUS_OK", localName: "OK" },
2576
2576
  { no: 2, name: "RESULT_STATUS_ERROR", localName: "ERROR" }
2577
2577
  ]
2578
- ), re = /* @__PURE__ */ i.makeEnum(
2578
+ ), ie = /* @__PURE__ */ i.makeEnum(
2579
2579
  "streamlayer.analytics.v1.common.Kind",
2580
2580
  [
2581
2581
  { no: 0, name: "KIND_UNSET", localName: "UNSET" },
@@ -2689,7 +2689,7 @@ const Wl = /* @__PURE__ */ i.makeEnum(
2689
2689
  { no: 7, name: "TOPIC_SUB_TYPE_PROMOTION_INGAME_IAB11_LBAR_ADDITIONAL", localName: "PROMOTION_INGAME_IAB11_LBAR_ADDITIONAL" },
2690
2690
  { no: 8, name: "TOPIC_SUB_TYPE_PROMOTION_GAM", localName: "PROMOTION_GAM" }
2691
2691
  ]
2692
- ), Ee = /* @__PURE__ */ i.makeEnum(
2692
+ ), be = /* @__PURE__ */ i.makeEnum(
2693
2693
  "streamlayer.analytics.v1.common.PollOpenedFrom",
2694
2694
  [
2695
2695
  { no: 0, name: "POLL_OPENED_FROM_UNSET", localName: "UNSET" },
@@ -3186,7 +3186,7 @@ const Wl = /* @__PURE__ */ i.makeEnum(
3186
3186
  },
3187
3187
  { no: 4, name: "meta", kind: "message", T: im }
3188
3188
  ]
3189
- ), C = /* @__PURE__ */ i.makeEnum(
3189
+ ), U = /* @__PURE__ */ i.makeEnum(
3190
3190
  "streamlayer.interactive.QuestionType",
3191
3191
  [
3192
3192
  { no: 0, name: "QUESTION_TYPE_UNSET", localName: "UNSET" },
@@ -3275,7 +3275,7 @@ const Wl = /* @__PURE__ */ i.makeEnum(
3275
3275
  { no: 1, name: "IMAGE_POSITION_LEFT", localName: "LEFT" },
3276
3276
  { no: 2, name: "IMAGE_POSITION_RIGHT", localName: "RIGHT" }
3277
3277
  ]
3278
- ), Se = /* @__PURE__ */ i.makeEnum(
3278
+ ), _e = /* @__PURE__ */ i.makeEnum(
3279
3279
  "streamlayer.interactive.PromotionType",
3280
3280
  [
3281
3281
  { no: 0, name: "PROMOTION_TYPE_UNSET", localName: "UNSET" },
@@ -3902,7 +3902,7 @@ const Wl = /* @__PURE__ */ i.makeEnum(
3902
3902
  ), Fm = /* @__PURE__ */ i.makeMessageType(
3903
3903
  "streamlayer.interactive.QuestionOptions.PromotionOptions",
3904
3904
  () => [
3905
- { no: 1, name: "type", kind: "enum", T: i.getEnumType(Se) },
3905
+ { no: 1, name: "type", kind: "enum", T: i.getEnumType(_e) },
3906
3906
  { no: 2, name: "sponsor", kind: "message", T: Gt },
3907
3907
  { no: 3, name: "banner", kind: "message", T: oo },
3908
3908
  { no: 4, name: "enable_wallet", kind: "enum", T: i.getEnumType(gm) },
@@ -3981,7 +3981,7 @@ const Wl = /* @__PURE__ */ i.makeEnum(
3981
3981
  T: 9
3982
3982
  /* ScalarType.STRING */
3983
3983
  },
3984
- { no: 2, name: "type", kind: "enum", T: i.getEnumType(C) },
3984
+ { no: 2, name: "type", kind: "enum", T: i.getEnumType(U) },
3985
3985
  { no: 3, name: "subject", kind: "scalar", T: 9, opt: !0 },
3986
3986
  { no: 4, name: "options", kind: "message", T: si },
3987
3987
  { no: 5, name: "appearance", kind: "message", T: ps },
@@ -4048,7 +4048,7 @@ const Wl = /* @__PURE__ */ i.makeEnum(
4048
4048
  T: 9
4049
4049
  /* ScalarType.STRING */
4050
4050
  },
4051
- { no: 2, name: "type", kind: "enum", T: i.getEnumType(C) },
4051
+ { no: 2, name: "type", kind: "enum", T: i.getEnumType(U) },
4052
4052
  {
4053
4053
  no: 3,
4054
4054
  name: "subject",
@@ -4518,7 +4518,7 @@ const Wl = /* @__PURE__ */ i.makeEnum(
4518
4518
  T: 9
4519
4519
  /* ScalarType.STRING */
4520
4520
  },
4521
- { no: 2, name: "types", kind: "enum", T: i.getEnumType(C), repeated: !0 }
4521
+ { no: 2, name: "types", kind: "enum", T: i.getEnumType(U), repeated: !0 }
4522
4522
  ],
4523
4523
  { localName: "SyncQuestionRequest_SyncQuestionRequestFilter" }
4524
4524
  ), yu = /* @__PURE__ */ i.makeMessageType(
@@ -4765,7 +4765,7 @@ const Wl = /* @__PURE__ */ i.makeEnum(
4765
4765
  ), Du = /* @__PURE__ */ i.makeMessageType(
4766
4766
  "streamlayer.interactive.feed.PickHistoryRequest",
4767
4767
  () => [
4768
- { no: 1, name: "question_type", kind: "enum", T: i.getEnumType(C), repeated: !0 },
4768
+ { no: 1, name: "question_type", kind: "enum", T: i.getEnumType(U), repeated: !0 },
4769
4769
  {
4770
4770
  no: 3,
4771
4771
  name: "event_id",
@@ -4793,7 +4793,7 @@ const Wl = /* @__PURE__ */ i.makeEnum(
4793
4793
  /* ScalarType.STRING */
4794
4794
  },
4795
4795
  { no: 3, name: "status", kind: "enum", T: i.getEnumType(Qt) },
4796
- { no: 4, name: "question_type", kind: "enum", T: i.getEnumType(C) },
4796
+ { no: 4, name: "question_type", kind: "enum", T: i.getEnumType(U) },
4797
4797
  {
4798
4798
  no: 5,
4799
4799
  name: "subject",
@@ -5153,7 +5153,7 @@ const Wl = /* @__PURE__ */ i.makeEnum(
5153
5153
  T: 9
5154
5154
  /* ScalarType.STRING */
5155
5155
  },
5156
- { no: 2, name: "type", kind: "enum", T: i.getEnumType(C) },
5156
+ { no: 2, name: "type", kind: "enum", T: i.getEnumType(U) },
5157
5157
  { no: 3, name: "status", kind: "enum", T: i.getEnumType(de) },
5158
5158
  {
5159
5159
  no: 8,
@@ -5202,7 +5202,7 @@ const Wl = /* @__PURE__ */ i.makeEnum(
5202
5202
  ), nd = /* @__PURE__ */ i.makeMessageType(
5203
5203
  "streamlayer.interactive.feed.FeedListRequest.FeedListFilter",
5204
5204
  () => [
5205
- { no: 1, name: "types", kind: "enum", T: i.getEnumType(C), repeated: !0 },
5205
+ { no: 1, name: "types", kind: "enum", T: i.getEnumType(U), repeated: !0 },
5206
5206
  { no: 2, name: "statuses", kind: "enum", T: i.getEnumType(de), repeated: !0 }
5207
5207
  ],
5208
5208
  { localName: "FeedListRequest_FeedListFilter" }
@@ -5703,7 +5703,7 @@ const Wl = /* @__PURE__ */ i.makeEnum(
5703
5703
  { no: 2, name: "notifications", kind: "message", T: bd },
5704
5704
  { no: 3, name: "sponsorships", kind: "message", T: Nd }
5705
5705
  ]
5706
- ), Y = /* @__PURE__ */ i.makeEnum(
5706
+ ), j = /* @__PURE__ */ i.makeEnum(
5707
5707
  "streamlayer.sdkSettings.SdkOverlayType",
5708
5708
  [
5709
5709
  { no: 0, name: "SDK_OVERLAY_TYPE_UNSET", localName: "UNSET" },
@@ -6195,7 +6195,7 @@ const Wl = /* @__PURE__ */ i.makeEnum(
6195
6195
  ), fi = /* @__PURE__ */ i.makeMessageType(
6196
6196
  "streamlayer.sdkSettings.SdkOverlay",
6197
6197
  () => [
6198
- { no: 1, name: "type", kind: "enum", T: i.getEnumType(Y) },
6198
+ { no: 1, name: "type", kind: "enum", T: i.getEnumType(j) },
6199
6199
  {
6200
6200
  no: 3,
6201
6201
  name: "position",
@@ -6331,7 +6331,7 @@ const Wl = /* @__PURE__ */ i.makeEnum(
6331
6331
  ), jd = /* @__PURE__ */ i.makeMessageType(
6332
6332
  "streamlayer.sdkSettings.AdvertisingOverlaySettings",
6333
6333
  () => [
6334
- { no: 1, name: "overlay_type", kind: "enum", T: i.getEnumType(Y) },
6334
+ { no: 1, name: "overlay_type", kind: "enum", T: i.getEnumType(j) },
6335
6335
  { no: 2, name: "settings", kind: "map", K: 9, V: { kind: "message", T: Yd } },
6336
6336
  {
6337
6337
  no: 3,
@@ -6518,15 +6518,15 @@ let Ss = (e, t, n, a) => (e.events = e.events || {}, e.events[n + un] || (e.even
6518
6518
  }, t.notify(s, n));
6519
6519
  }, t;
6520
6520
  }, qa = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, n) => (n &= 63, n < 36 ? t += n.toString(36) : n < 62 ? t += (n - 26).toString(36).toUpperCase() : n > 62 ? t += "-" : t += "_", t), "");
6521
- var P;
6521
+ var D;
6522
6522
  (function(e) {
6523
6523
  e[e.Canceled = 1] = "Canceled", e[e.Unknown = 2] = "Unknown", e[e.InvalidArgument = 3] = "InvalidArgument", e[e.DeadlineExceeded = 4] = "DeadlineExceeded", e[e.NotFound = 5] = "NotFound", e[e.AlreadyExists = 6] = "AlreadyExists", e[e.PermissionDenied = 7] = "PermissionDenied", e[e.ResourceExhausted = 8] = "ResourceExhausted", e[e.FailedPrecondition = 9] = "FailedPrecondition", e[e.Aborted = 10] = "Aborted", e[e.OutOfRange = 11] = "OutOfRange", e[e.Unimplemented = 12] = "Unimplemented", e[e.Internal = 13] = "Internal", e[e.Unavailable = 14] = "Unavailable", e[e.DataLoss = 15] = "DataLoss", e[e.Unauthenticated = 16] = "Unauthenticated";
6524
- })(P || (P = {}));
6524
+ })(D || (D = {}));
6525
6525
  function mo(e) {
6526
- const t = P[e];
6526
+ const t = D[e];
6527
6527
  return typeof t != "string" ? e.toString() : t[0].toLowerCase() + t.substring(1).replace(/[A-Z]/g, (n) => "_" + n.toLowerCase());
6528
6528
  }
6529
- class H extends Error {
6529
+ class Q extends Error {
6530
6530
  /**
6531
6531
  * Create a new ConnectError.
6532
6532
  * If no code is provided, code "unknown" is used.
@@ -6534,7 +6534,7 @@ class H extends Error {
6534
6534
  * raise an error with details, and it is up to the protocol implementation
6535
6535
  * to encode and send the details along with error.
6536
6536
  */
6537
- constructor(t, n = P.Unknown, a, s, o) {
6537
+ constructor(t, n = D.Unknown, a, s, o) {
6538
6538
  super(np(t, n)), this.name = "ConnectError", Object.setPrototypeOf(this, new.target.prototype), this.rawMessage = t, this.code = n, this.metadata = new Headers(a ?? {}), this.details = s ?? [], this.cause = o;
6539
6539
  }
6540
6540
  /**
@@ -6549,11 +6549,11 @@ class H extends Error {
6549
6549
  * The original value will be used for the "cause" property for the new
6550
6550
  * ConnectError.
6551
6551
  */
6552
- static from(t, n = P.Unknown) {
6553
- return t instanceof H ? t : t instanceof Error ? t.name == "AbortError" ? new H(t.message, P.Canceled) : new H(t.message, n, void 0, void 0, t) : new H(String(t), n, void 0, void 0, t);
6552
+ static from(t, n = D.Unknown) {
6553
+ return t instanceof Q ? t : t instanceof Error ? t.name == "AbortError" ? new Q(t.message, D.Canceled) : new Q(t.message, n, void 0, void 0, t) : new Q(String(t), n, void 0, void 0, t);
6554
6554
  }
6555
6555
  static [Symbol.hasInstance](t) {
6556
- return t instanceof Error ? Object.getPrototypeOf(t) === H.prototype ? !0 : t.name === "ConnectError" && "code" in t && typeof t.code == "number" && "metadata" in t && "details" in t && Array.isArray(t.details) && "rawMessage" in t && typeof t.rawMessage == "string" && "cause" in t : !1;
6556
+ return t instanceof Error ? Object.getPrototypeOf(t) === Q.prototype ? !0 : t.name === "ConnectError" && "code" in t && typeof t.code == "number" && "metadata" in t && "details" in t && Array.isArray(t.details) && "rawMessage" in t && typeof t.rawMessage == "string" && "cause" in t : !1;
6557
6557
  }
6558
6558
  findDetails(t) {
6559
6559
  const n = "typeName" in t ? {
@@ -6582,7 +6582,7 @@ function ap(e, t, n) {
6582
6582
  const a = ls.dec(e);
6583
6583
  return t ? t.fromBinary(a, n) : a;
6584
6584
  } catch (a) {
6585
- throw H.from(a, P.DataLoss);
6585
+ throw Q.from(a, D.DataLoss);
6586
6586
  }
6587
6587
  }
6588
6588
  function sp(e, t) {
@@ -6628,7 +6628,7 @@ function po(e) {
6628
6628
  s.close();
6629
6629
  return;
6630
6630
  }
6631
- s.error(new H("premature end of stream", P.DataLoss));
6631
+ s.error(new Q("premature end of stream", D.DataLoss));
6632
6632
  return;
6633
6633
  }
6634
6634
  const r = n.subarray(5, 5 + o.length);
@@ -6677,17 +6677,17 @@ var op = function(e) {
6677
6677
  };
6678
6678
  }
6679
6679
  function c(T, f) {
6680
- a[T] && (s[T] = function(_) {
6681
- return new Promise(function(N, E) {
6682
- o.push([T, _, N, E]) > 1 || l(T, _);
6680
+ a[T] && (s[T] = function(k) {
6681
+ return new Promise(function(N, h) {
6682
+ o.push([T, k, N, h]) > 1 || l(T, k);
6683
6683
  });
6684
6684
  }, f && (s[T] = f(s[T])));
6685
6685
  }
6686
6686
  function l(T, f) {
6687
6687
  try {
6688
6688
  m(a[T](f));
6689
- } catch (_) {
6690
- y(o[0][3], _);
6689
+ } catch (k) {
6690
+ y(o[0][3], k);
6691
6691
  }
6692
6692
  }
6693
6693
  function m(T) {
@@ -6764,17 +6764,17 @@ var ki = function(e) {
6764
6764
  };
6765
6765
  }
6766
6766
  function c(T, f) {
6767
- a[T] && (s[T] = function(_) {
6768
- return new Promise(function(N, E) {
6769
- o.push([T, _, N, E]) > 1 || l(T, _);
6767
+ a[T] && (s[T] = function(k) {
6768
+ return new Promise(function(N, h) {
6769
+ o.push([T, k, N, h]) > 1 || l(T, k);
6770
6770
  });
6771
6771
  }, f && (s[T] = f(s[T])));
6772
6772
  }
6773
6773
  function l(T, f) {
6774
6774
  try {
6775
6775
  m(a[T](f));
6776
- } catch (_) {
6777
- y(o[0][3], _);
6776
+ } catch (k) {
6777
+ y(o[0][3], k);
6778
6778
  }
6779
6779
  }
6780
6780
  function m(T) {
@@ -6793,13 +6793,13 @@ var ki = function(e) {
6793
6793
  function yo(e, t) {
6794
6794
  return sp(e, (n) => {
6795
6795
  switch (n.kind) {
6796
- case R.Unary:
6796
+ case L.Unary:
6797
6797
  return up(t, e, n);
6798
- case R.ServerStreaming:
6798
+ case L.ServerStreaming:
6799
6799
  return dp(t, e, n);
6800
- case R.ClientStreaming:
6800
+ case L.ClientStreaming:
6801
6801
  return pp(t, e, n);
6802
- case R.BiDiStreaming:
6802
+ case L.BiDiStreaming:
6803
6803
  return Tp(t, e, n);
6804
6804
  default:
6805
6805
  return null;
@@ -6825,21 +6825,21 @@ function pp(e, t, n) {
6825
6825
  (m = s == null ? void 0 : s.onHeader) === null || m === void 0 || m.call(s, d.header);
6826
6826
  let y, T = 0;
6827
6827
  try {
6828
- for (var f = !0, _ = ki(d.message), N; N = await _.next(), o = N.done, !o; f = !0)
6828
+ for (var f = !0, k = ki(d.message), N; N = await k.next(), o = N.done, !o; f = !0)
6829
6829
  l = N.value, f = !1, y = l, T++;
6830
- } catch (E) {
6831
- r = { error: E };
6830
+ } catch (h) {
6831
+ r = { error: h };
6832
6832
  } finally {
6833
6833
  try {
6834
- !f && !o && (c = _.return) && await c.call(_);
6834
+ !f && !o && (c = k.return) && await c.call(k);
6835
6835
  } finally {
6836
6836
  if (r) throw r.error;
6837
6837
  }
6838
6838
  }
6839
6839
  if (!y)
6840
- throw new H("protocol error: missing response message", P.Unimplemented);
6840
+ throw new Q("protocol error: missing response message", D.Unimplemented);
6841
6841
  if (T > 1)
6842
- throw new H("protocol error: received extra messages for client streaming method", P.Unimplemented);
6842
+ throw new Q("protocol error: received extra messages for client streaming method", D.Unimplemented);
6843
6843
  return (u = s == null ? void 0 : s.onTrailer) === null || u === void 0 || u.call(s, d.trailer), y;
6844
6844
  };
6845
6845
  }
@@ -6880,7 +6880,7 @@ function yp(...e) {
6880
6880
  }
6881
6881
  function fp(e) {
6882
6882
  const t = new AbortController(), n = () => {
6883
- t.abort(new H("the operation timed out", P.DeadlineExceeded));
6883
+ t.abort(new Q("the operation timed out", D.DeadlineExceeded));
6884
6884
  };
6885
6885
  let a;
6886
6886
  return e !== void 0 && (e <= 0 ? n() : a = setTimeout(n, e)), {
@@ -6972,7 +6972,7 @@ function Ei(e) {
6972
6972
  const s = ap(n, Ye);
6973
6973
  if (s.code == 0)
6974
6974
  return;
6975
- const o = new H(s.message, s.code, e);
6975
+ const o = new Q(s.message, s.code, e);
6976
6976
  return o.details = s.details.map((r) => ({
6977
6977
  type: r.typeUrl.substring(r.typeUrl.lastIndexOf("/") + 1),
6978
6978
  value: r.value
@@ -6983,7 +6983,7 @@ function Ei(e) {
6983
6983
  if (a === Np)
6984
6984
  return;
6985
6985
  const s = parseInt(a, 10);
6986
- return s in P ? new H(decodeURIComponent((t = e.get(_i)) !== null && t !== void 0 ? t : ""), s, e) : new H(`invalid grpc-status: ${a}`, P.Internal, e);
6986
+ return s in D ? new Q(decodeURIComponent((t = e.get(_i)) !== null && t !== void 0 ? t : ""), s, e) : new Q(`invalid grpc-status: ${a}`, D.Internal, e);
6987
6987
  }
6988
6988
  }
6989
6989
  function ko(e, t, n) {
@@ -7033,7 +7033,7 @@ function So(e, t) {
7033
7033
  return e.fromBinary(n, t);
7034
7034
  } catch (a) {
7035
7035
  const s = a instanceof Error ? a.message : String(a);
7036
- throw new H(`parse binary: ${s}`, P.Internal);
7036
+ throw new Q(`parse binary: ${s}`, D.Internal);
7037
7037
  }
7038
7038
  },
7039
7039
  serialize(n) {
@@ -7041,7 +7041,7 @@ function So(e, t) {
7041
7041
  return n.toBinary(t);
7042
7042
  } catch (a) {
7043
7043
  const s = a instanceof Error ? a.message : String(a);
7044
- throw new H(`serialize binary: ${s}`, P.Internal);
7044
+ throw new Q(`serialize binary: ${s}`, D.Internal);
7045
7045
  }
7046
7046
  }
7047
7047
  };
@@ -7055,7 +7055,7 @@ function _o(e, t) {
7055
7055
  const l = o.decode(c);
7056
7056
  return e.fromJsonString(l, r);
7057
7057
  } catch (l) {
7058
- throw H.from(l, P.InvalidArgument);
7058
+ throw Q.from(l, D.InvalidArgument);
7059
7059
  }
7060
7060
  },
7061
7061
  serialize(c) {
@@ -7063,7 +7063,7 @@ function _o(e, t) {
7063
7063
  const l = c.toJsonString(r);
7064
7064
  return s.encode(l);
7065
7065
  } catch (l) {
7066
- throw H.from(l, P.Internal);
7066
+ throw Q.from(l, D.Internal);
7067
7067
  }
7068
7068
  }
7069
7069
  };
@@ -7098,7 +7098,7 @@ function Ii(e) {
7098
7098
  return [
7099
7099
  a.signal,
7100
7100
  function(o) {
7101
- const r = H.from(t.aborted ? Si(t) : o);
7101
+ const r = Q.from(t.aborted ? Si(t) : o);
7102
7102
  return a.abort(r), n(), Promise.reject(r);
7103
7103
  },
7104
7104
  function() {
@@ -7120,7 +7120,7 @@ function Eo(e, t) {
7120
7120
  n.metadata.append(s, a);
7121
7121
  }), n;
7122
7122
  if (!t.has(Ct) && !e.has(Ct))
7123
- throw new H("protocol error: missing status", P.Internal);
7123
+ throw new Q("protocol error: missing status", D.Internal);
7124
7124
  }
7125
7125
  function bo(e, t, n, a) {
7126
7126
  const s = new Headers(n ?? {});
@@ -7129,23 +7129,23 @@ function bo(e, t, n, a) {
7129
7129
  function Rp(e) {
7130
7130
  switch (e) {
7131
7131
  case 400:
7132
- return P.Internal;
7132
+ return D.Internal;
7133
7133
  case 401:
7134
- return P.Unauthenticated;
7134
+ return D.Unauthenticated;
7135
7135
  case 403:
7136
- return P.PermissionDenied;
7136
+ return D.PermissionDenied;
7137
7137
  case 404:
7138
- return P.Unimplemented;
7138
+ return D.Unimplemented;
7139
7139
  case 429:
7140
- return P.Unavailable;
7140
+ return D.Unavailable;
7141
7141
  case 502:
7142
- return P.Unavailable;
7142
+ return D.Unavailable;
7143
7143
  case 503:
7144
- return P.Unavailable;
7144
+ return D.Unavailable;
7145
7145
  case 504:
7146
- return P.Unavailable;
7146
+ return D.Unavailable;
7147
7147
  default:
7148
- return P.Unknown;
7148
+ return D.Unknown;
7149
7149
  }
7150
7150
  }
7151
7151
  function No(e, t) {
@@ -7155,7 +7155,7 @@ function No(e, t) {
7155
7155
  foundStatus: t.has(Ct),
7156
7156
  headerError: Ei(t)
7157
7157
  };
7158
- throw new H(decodeURIComponent((n = t.get(_i)) !== null && n !== void 0 ? n : `HTTP ${e}`), Rp(e), t);
7158
+ throw new Q(decodeURIComponent((n = t.get(_i)) !== null && n !== void 0 ? n : `HTTP ${e}`), Rp(e), t);
7159
7159
  }
7160
7160
  var mt = function(e) {
7161
7161
  return this instanceof mt ? (this.v = e, this) : new mt(e);
@@ -7171,17 +7171,17 @@ var mt = function(e) {
7171
7171
  };
7172
7172
  }
7173
7173
  function c(T, f) {
7174
- a[T] && (s[T] = function(_) {
7175
- return new Promise(function(N, E) {
7176
- o.push([T, _, N, E]) > 1 || l(T, _);
7174
+ a[T] && (s[T] = function(k) {
7175
+ return new Promise(function(N, h) {
7176
+ o.push([T, k, N, h]) > 1 || l(T, k);
7177
7177
  });
7178
7178
  }, f && (s[T] = f(s[T])));
7179
7179
  }
7180
7180
  function l(T, f) {
7181
7181
  try {
7182
7182
  m(a[T](f));
7183
- } catch (_) {
7184
- y(o[0][3], _);
7183
+ } catch (k) {
7184
+ y(o[0][3], k);
7185
7185
  }
7186
7186
  }
7187
7187
  function m(T) {
@@ -7226,38 +7226,38 @@ function Io(e) {
7226
7226
  },
7227
7227
  next: async (T) => {
7228
7228
  var f;
7229
- const N = await ((f = e.fetch) !== null && f !== void 0 ? f : globalThis.fetch)(T.url, Object.assign(Object.assign({}, T.init), { headers: T.header, signal: T.signal, body: To(0, d(T.message)) })), { headerError: E } = No(N.status, N.headers);
7229
+ const N = await ((f = e.fetch) !== null && f !== void 0 ? f : globalThis.fetch)(T.url, Object.assign(Object.assign({}, T.init), { headers: T.header, signal: T.signal, body: To(0, d(T.message)) })), { headerError: h } = No(N.status, N.headers);
7230
7230
  if (!N.body)
7231
- throw E !== void 0 ? E : "missing response body";
7232
- const b = po(N.body).getReader();
7233
- let w, O;
7231
+ throw h !== void 0 ? h : "missing response body";
7232
+ const A = po(N.body).getReader();
7233
+ let w, b;
7234
7234
  for (; ; ) {
7235
- const A = await b.read();
7236
- if (A.done)
7235
+ const v = await A.read();
7236
+ if (v.done)
7237
7237
  break;
7238
- const { flags: L, data: v } = A.value;
7239
- if ((L & uo) === uo)
7240
- throw new H("protocol error: received unsupported compressed output", P.Internal);
7241
- if (L === ia) {
7238
+ const { flags: R, data: I } = v.value;
7239
+ if ((R & uo) === uo)
7240
+ throw new Q("protocol error: received unsupported compressed output", D.Internal);
7241
+ if (R === ia) {
7242
7242
  if (w !== void 0)
7243
7243
  throw "extra trailer";
7244
- w = go(v);
7244
+ w = go(I);
7245
7245
  continue;
7246
7246
  }
7247
- if (O !== void 0)
7248
- throw new H("extra message", P.Unimplemented);
7249
- O = y(v);
7247
+ if (b !== void 0)
7248
+ throw new Q("extra message", D.Unimplemented);
7249
+ b = y(I);
7250
7250
  }
7251
7251
  if (w === void 0)
7252
- throw E !== void 0 ? E : new H("missing trailer", N.headers.has(Ct) ? P.Unimplemented : P.Unknown);
7253
- if (Eo(w, N.headers), O === void 0)
7254
- throw new H("missing message", w.has(Ct) ? P.Unimplemented : P.Unknown);
7252
+ throw h !== void 0 ? h : new Q("missing trailer", N.headers.has(Ct) ? D.Unimplemented : D.Unknown);
7253
+ if (Eo(w, N.headers), b === void 0)
7254
+ throw new Q("missing message", w.has(Ct) ? D.Unimplemented : D.Unknown);
7255
7255
  return {
7256
7256
  stream: !1,
7257
7257
  service: a,
7258
7258
  method: s,
7259
7259
  header: N.headers,
7260
- message: O,
7260
+ message: b,
7261
7261
  trailer: w
7262
7262
  };
7263
7263
  }
@@ -7266,40 +7266,40 @@ function Io(e) {
7266
7266
  async stream(a, s, o, r, c, l, m) {
7267
7267
  var u;
7268
7268
  const { serialize: d, parse: y } = ho(s, n, e.jsonOptions, e.binaryOptions);
7269
- function T(_, N, E, b, w, O) {
7269
+ function T(k, N, h, A, w, b) {
7270
7270
  return Lp(this, arguments, function* () {
7271
- const L = po(_).getReader();
7271
+ const R = po(k).getReader();
7272
7272
  if (N) {
7273
- if (!(yield mt(L.read())).done)
7273
+ if (!(yield mt(R.read())).done)
7274
7274
  throw "extra data for trailers-only";
7275
7275
  return yield mt(void 0);
7276
7276
  }
7277
- let v = !1;
7277
+ let I = !1;
7278
7278
  for (; ; ) {
7279
- const U = yield mt(L.read());
7280
- if (U.done)
7279
+ const M = yield mt(R.read());
7280
+ if (M.done)
7281
7281
  break;
7282
- const { flags: $, data: ne } = U.value;
7283
- if (($ & ia) === ia) {
7284
- if (v)
7282
+ const { flags: G, data: J } = M.value;
7283
+ if ((G & ia) === ia) {
7284
+ if (I)
7285
7285
  throw "extra trailer";
7286
- v = !0;
7287
- const K = go(ne);
7288
- Eo(K, b), K.forEach((W, B) => E.set(B, W));
7286
+ I = !0;
7287
+ const K = go(J);
7288
+ Eo(K, A), K.forEach((W, V) => h.set(V, W));
7289
7289
  continue;
7290
7290
  }
7291
- if (v)
7291
+ if (I)
7292
7292
  throw "extra message";
7293
- yield yield mt(y(ne));
7293
+ yield yield mt(y(J));
7294
7294
  }
7295
- if ("throwIfAborted" in O && O.throwIfAborted(), !v)
7295
+ if ("throwIfAborted" in b && b.throwIfAborted(), !I)
7296
7296
  throw w || "missing trailer";
7297
7297
  });
7298
7298
  }
7299
- async function f(_) {
7300
- if (s.kind != R.ServerStreaming)
7299
+ async function f(k) {
7300
+ if (s.kind != L.ServerStreaming)
7301
7301
  throw "The fetch API does not support streaming request bodies";
7302
- const N = await _[Symbol.asyncIterator]().next();
7302
+ const N = await k[Symbol.asyncIterator]().next();
7303
7303
  if (N.done == !0)
7304
7304
  throw "missing request message";
7305
7305
  return To(0, d(N.value));
@@ -7323,13 +7323,13 @@ function Io(e) {
7323
7323
  contextValues: m ?? xa(),
7324
7324
  message: l
7325
7325
  },
7326
- next: async (_) => {
7326
+ next: async (k) => {
7327
7327
  var N;
7328
- const b = await ((N = e.fetch) !== null && N !== void 0 ? N : globalThis.fetch)(_.url, Object.assign(Object.assign({}, _.init), { headers: _.header, signal: _.signal, body: await f(_.message) })), { foundStatus: w, headerError: O } = No(b.status, b.headers);
7329
- if (!b.body)
7330
- throw O ?? "missing response body";
7331
- const A = new Headers();
7332
- return Object.assign(Object.assign({}, _), { header: b.headers, trailer: A, message: T(b.body, w, A, b.headers, O, _.signal) });
7328
+ const A = await ((N = e.fetch) !== null && N !== void 0 ? N : globalThis.fetch)(k.url, Object.assign(Object.assign({}, k.init), { headers: k.header, signal: k.signal, body: await f(k.message) })), { foundStatus: w, headerError: b } = No(A.status, A.headers);
7329
+ if (!A.body)
7330
+ throw b ?? "missing response body";
7331
+ const v = new Headers();
7332
+ return Object.assign(Object.assign({}, k), { header: A.headers, trailer: v, message: T(A.body, w, v, A.headers, b, k.signal) });
7333
7333
  }
7334
7334
  });
7335
7335
  }
@@ -7362,154 +7362,154 @@ const Oo = ({
7362
7362
  }), Lo("online", () => a.emit(wo));
7363
7363
  const o = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
7364
7364
  let l = {};
7365
- const m = async ([E, b], w, O, A) => {
7366
- var L;
7365
+ const m = async ([h, A], w, b, v) => {
7366
+ var R;
7367
7367
  if (!s)
7368
7368
  return;
7369
- const v = (B) => {
7370
- w.key === E && (w.set(B), a.emit(ca, E, B, !0));
7371
- }, U = () => {
7372
- v({
7369
+ const I = (V) => {
7370
+ w.key === h && (w.set(V), a.emit(ca, h, V, !0));
7371
+ }, M = () => {
7372
+ I({
7373
7373
  ...w.value,
7374
7374
  ...Po,
7375
- promise: c.get(E)
7375
+ promise: c.get(h)
7376
7376
  });
7377
- }, { dedupeTime: $ = 4e3, fetcher: ne } = {
7378
- ...O,
7377
+ }, { dedupeTime: G = 4e3, fetcher: J } = {
7378
+ ...b,
7379
7379
  ...l
7380
7380
  }, K = Mo();
7381
- if (c.has(E)) {
7382
- w.value.loading || U();
7381
+ if (c.has(h)) {
7382
+ w.value.loading || M();
7383
7383
  return;
7384
7384
  }
7385
- if (!A) {
7386
- const B = e.get(E);
7387
- B && w.value.data !== B && v({ data: B, ...Ze });
7388
- const V = r.get(E);
7389
- if (V && V + $ > K)
7385
+ if (!v) {
7386
+ const V = e.get(h);
7387
+ V && w.value.data !== V && I({ data: V, ...Ze });
7388
+ const q = r.get(h);
7389
+ if (q && q + G > K)
7390
7390
  return;
7391
7391
  }
7392
7392
  const W = Kd();
7393
7393
  try {
7394
- const B = ne(...b);
7395
- r.set(E, K), c.set(E, B), U();
7396
- const V = await B;
7397
- e.set(E, V), v({ data: V, ...Ze }), r.set(E, Mo());
7398
- } catch (B) {
7399
- (L = O.onError) == null || L.call(O, B), v({ data: w.value.data, error: B, ...Ze });
7394
+ const V = J(...A);
7395
+ r.set(h, K), c.set(h, V), M();
7396
+ const q = await V;
7397
+ e.set(h, q), I({ data: q, ...Ze }), r.set(h, Mo());
7398
+ } catch (V) {
7399
+ (R = b.onError) == null || R.call(b, V), I({ data: w.value.data, error: V, ...Ze });
7400
7400
  } finally {
7401
- W(), c.delete(E);
7401
+ W(), c.delete(h);
7402
7402
  }
7403
- }, u = (E, {
7404
- fetcher: b = t,
7403
+ }, u = (h, {
7404
+ fetcher: A = t,
7405
7405
  ...w
7406
7406
  } = {}) => {
7407
- const O = Va({
7407
+ const b = Va({
7408
7408
  ...Ze
7409
- }), A = { ...n, ...w, fetcher: b };
7410
- O._ = Oi, O.invalidate = () => {
7411
- const { key: V } = O;
7412
- V && T(V);
7413
- }, O.mutate = (V) => {
7414
- const { key: X } = O;
7415
- X && f(X, V);
7409
+ }), v = { ...n, ...w, fetcher: A };
7410
+ b._ = Oi, b.invalidate = () => {
7411
+ const { key: q } = b;
7412
+ q && T(q);
7413
+ }, b.mutate = (q) => {
7414
+ const { key: Z } = b;
7415
+ Z && f(Z, q);
7416
7416
  };
7417
- let L, v, U, $, ne, K = [];
7418
- Xd(O, () => {
7419
- const V = !L;
7420
- [ne, L] = Pp(E), $ = ne.subscribe((ke) => {
7417
+ let R, I, M, G, J, K = [];
7418
+ Xd(b, () => {
7419
+ const q = !R;
7420
+ [J, R] = Pp(h), G = J.subscribe((ke) => {
7421
7421
  if (ke) {
7422
7422
  const [he, g] = ke;
7423
- O.key = he, m([he, g], O, A), v = he, U = g;
7423
+ b.key = he, m([he, g], b, v), I = he, M = g;
7424
7424
  } else
7425
- O.key = v = U = void 0, O.set({ ...Ze });
7425
+ b.key = I = M = void 0, b.set({ ...Ze });
7426
7426
  });
7427
- const X = ne.get();
7428
- X && ([v, U] = X, V && W());
7427
+ const Z = J.get();
7428
+ Z && ([I, M] = Z, q && W());
7429
7429
  const {
7430
7430
  refetchInterval: Ge = 0,
7431
7431
  refetchOnFocus: qt,
7432
7432
  refetchOnReconnect: Je
7433
- } = A, ge = () => {
7434
- v && m([v, U], O, A);
7433
+ } = v, ge = () => {
7434
+ I && m([I, M], b, v);
7435
7435
  };
7436
7436
  Ge > 0 && o.set(
7437
- E,
7437
+ h,
7438
7438
  setInterval(ge, Ge)
7439
7439
  ), qt && K.push(a.on(Ao, ge)), Je && K.push(a.on(wo, ge)), K.push(
7440
7440
  a.on(Ro, (ke) => {
7441
- v && la(v, ke) && m([v, U], O, A, !0);
7441
+ I && la(I, ke) && m([I, M], b, v, !0);
7442
7442
  }),
7443
7443
  a.on(ca, (ke, he, g) => {
7444
- v && la(v, ke) && O.value !== he && O.value.data !== he && O.set(
7444
+ I && la(I, ke) && b.value !== he && b.value.data !== he && b.set(
7445
7445
  g ? he : { data: he, ...Ze }
7446
7446
  );
7447
7447
  })
7448
7448
  );
7449
7449
  });
7450
7450
  const W = () => {
7451
- v && U && m([v, U], O, A);
7452
- }, B = O.listen;
7453
- return O.listen = (V) => {
7454
- const X = B(V);
7455
- return V(O.value), W(), X;
7456
- }, Zd(O, () => {
7457
- O.value = { ...Ze }, L == null || L(), K.forEach((V) => V()), K = [], $ == null || $(), clearInterval(o.get(E));
7458
- }), O;
7459
- }, d = (E) => {
7460
- e.delete(E), r.delete(E);
7461
- }, y = (E, b) => {
7451
+ I && M && m([I, M], b, v);
7452
+ }, V = b.listen;
7453
+ return b.listen = (q) => {
7454
+ const Z = V(q);
7455
+ return q(b.value), W(), Z;
7456
+ }, Zd(b, () => {
7457
+ b.value = { ...Ze }, R == null || R(), K.forEach((q) => q()), K = [], G == null || G(), clearInterval(o.get(h));
7458
+ }), b;
7459
+ }, d = (h) => {
7460
+ e.delete(h), r.delete(h);
7461
+ }, y = (h, A) => {
7462
7462
  for (const w of e.keys())
7463
- la(w, E) && b(w);
7464
- }, T = (E) => {
7465
- y(E, d), a.emit(Ro, E);
7466
- }, f = (E, b) => {
7467
- y(E, (w) => {
7468
- b === void 0 ? d(w) : e.set(w, b);
7469
- }), a.emit(ca, E, b);
7463
+ la(w, h) && A(w);
7464
+ }, T = (h) => {
7465
+ y(h, d), a.emit(Ro, h);
7466
+ }, f = (h, A) => {
7467
+ y(h, (w) => {
7468
+ A === void 0 ? d(w) : e.set(w, A);
7469
+ }), a.emit(ca, h, A);
7470
7470
  };
7471
- function _(E) {
7472
- const b = async (O) => {
7473
- var A;
7474
- const L = l.fetcher ?? E, v = [];
7471
+ function k(h) {
7472
+ const A = async (b) => {
7473
+ var v;
7474
+ const R = l.fetcher ?? h, I = [];
7475
7475
  try {
7476
7476
  w.set({
7477
7477
  error: void 0,
7478
7478
  data: void 0,
7479
- mutate: b,
7479
+ mutate: A,
7480
7480
  ...Po
7481
7481
  });
7482
- const U = await L({
7483
- data: O,
7484
- invalidate: ($) => {
7485
- v.push($);
7482
+ const M = await R({
7483
+ data: b,
7484
+ invalidate: (G) => {
7485
+ I.push(G);
7486
7486
  },
7487
- getCacheUpdater: ($, ne = !0) => [
7487
+ getCacheUpdater: (G, J = !0) => [
7488
7488
  (K) => {
7489
- f($, K), ne && v.push($);
7489
+ f(G, K), J && I.push(G);
7490
7490
  },
7491
- e.get($)
7491
+ e.get(G)
7492
7492
  ]
7493
7493
  });
7494
- return w.setKey("data", U), U;
7495
- } catch (U) {
7496
- (A = n == null ? void 0 : n.onError) == null || A.call(n, U), w.setKey("error", U);
7494
+ return w.setKey("data", M), M;
7495
+ } catch (M) {
7496
+ (v = n == null ? void 0 : n.onError) == null || v.call(n, M), w.setKey("error", M);
7497
7497
  } finally {
7498
- w.setKey("loading", !1), v.forEach(T);
7498
+ w.setKey("loading", !1), I.forEach(T);
7499
7499
  }
7500
7500
  }, w = Va({
7501
- mutate: b,
7501
+ mutate: A,
7502
7502
  ...Ze
7503
7503
  });
7504
- return w.mutate = b, w;
7504
+ return w.mutate = A, w;
7505
7505
  }
7506
7506
  return [
7507
7507
  u,
7508
- _,
7509
- { __unsafeOverruleSettings: (E) => {
7508
+ k,
7509
+ { __unsafeOverruleSettings: (h) => {
7510
7510
  console.warn(
7511
7511
  "You should only use __unsafeOverruleSettings in test environment"
7512
- ), l = E;
7512
+ ), l = h;
7513
7513
  }, invalidateKeys: T, mutateCache: f }
7514
7514
  ];
7515
7515
  };
@@ -10523,7 +10523,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
10523
10523
  name: "List",
10524
10524
  I: ZT,
10525
10525
  O: sy,
10526
- kind: R.Unary
10526
+ kind: L.Unary
10527
10527
  },
10528
10528
  /**
10529
10529
  * @generated from rpc streamlayer.sports.events.Events.DemoList
@@ -10532,7 +10532,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
10532
10532
  name: "DemoList",
10533
10533
  I: ty,
10534
10534
  O: ay,
10535
- kind: R.Unary
10535
+ kind: L.Unary
10536
10536
  },
10537
10537
  /**
10538
10538
  * @generated from rpc streamlayer.sports.events.Events.Summary
@@ -10541,7 +10541,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
10541
10541
  name: "Summary",
10542
10542
  I: Ko,
10543
10543
  O: Wo,
10544
- kind: R.Unary
10544
+ kind: L.Unary
10545
10545
  },
10546
10546
  /**
10547
10547
  * @generated from rpc streamlayer.sports.events.Events.AdminSummary
@@ -10550,7 +10550,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
10550
10550
  name: "AdminSummary",
10551
10551
  I: iy,
10552
10552
  O: cy,
10553
- kind: R.Unary
10553
+ kind: L.Unary
10554
10554
  },
10555
10555
  /**
10556
10556
  * @generated from rpc streamlayer.sports.events.Events.Boxscore
@@ -10559,7 +10559,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
10559
10559
  name: "Boxscore",
10560
10560
  I: _y,
10561
10561
  O: Ey,
10562
- kind: R.Unary
10562
+ kind: L.Unary
10563
10563
  },
10564
10564
  /**
10565
10565
  * @generated from rpc streamlayer.sports.events.Events.Standings
@@ -10568,7 +10568,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
10568
10568
  name: "Standings",
10569
10569
  I: Iy,
10570
10570
  O: Oy,
10571
- kind: R.Unary
10571
+ kind: L.Unary
10572
10572
  },
10573
10573
  /**
10574
10574
  * @generated from rpc streamlayer.sports.events.Events.PlayByPlay
@@ -10577,7 +10577,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
10577
10577
  name: "PlayByPlay",
10578
10578
  I: uy,
10579
10579
  O: dy,
10580
- kind: R.Unary
10580
+ kind: L.Unary
10581
10581
  },
10582
10582
  /**
10583
10583
  * @generated from rpc streamlayer.sports.events.Events.Schedule
@@ -10586,7 +10586,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
10586
10586
  name: "Schedule",
10587
10587
  I: yy,
10588
10588
  O: gy,
10589
- kind: R.Unary
10589
+ kind: L.Unary
10590
10590
  },
10591
10591
  /**
10592
10592
  * @generated from rpc streamlayer.sports.events.Events.ScheduleDates
@@ -10595,7 +10595,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
10595
10595
  name: "ScheduleDates",
10596
10596
  I: ky,
10597
10597
  O: Sy,
10598
- kind: R.Unary
10598
+ kind: L.Unary
10599
10599
  },
10600
10600
  /**
10601
10601
  * @generated from rpc streamlayer.sports.events.Events.Lineup
@@ -10604,7 +10604,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
10604
10604
  name: "Lineup",
10605
10605
  I: wy,
10606
10606
  O: Ry,
10607
- kind: R.Unary
10607
+ kind: L.Unary
10608
10608
  },
10609
10609
  /**
10610
10610
  * @generated from rpc streamlayer.sports.events.Events.RetrieveEventId
@@ -10613,7 +10613,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
10613
10613
  name: "RetrieveEventId",
10614
10614
  I: Fy,
10615
10615
  O: Gy,
10616
- kind: R.Unary
10616
+ kind: L.Unary
10617
10617
  },
10618
10618
  /**
10619
10619
  * @generated from rpc streamlayer.sports.events.Events.LastGames
@@ -10622,7 +10622,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
10622
10622
  name: "LastGames",
10623
10623
  I: Py,
10624
10624
  O: Dy,
10625
- kind: R.Unary
10625
+ kind: L.Unary
10626
10626
  },
10627
10627
  /**
10628
10628
  * @generated from rpc streamlayer.sports.events.Events.SummarySubscription
@@ -10631,7 +10631,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
10631
10631
  name: "SummarySubscription",
10632
10632
  I: Ko,
10633
10633
  O: Wo,
10634
- kind: R.ServerStreaming
10634
+ kind: L.ServerStreaming
10635
10635
  }
10636
10636
  }
10637
10637
  }, Vy = /* @__PURE__ */ i.makeEnum(
@@ -11062,7 +11062,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11062
11062
  name: "Get",
11063
11063
  I: Xy,
11064
11064
  O: Zy,
11065
- kind: R.Unary
11065
+ kind: L.Unary
11066
11066
  },
11067
11067
  /**
11068
11068
  * @generated from rpc streamlayer.sdkSettings.client.Client.Update
@@ -11071,7 +11071,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11071
11071
  name: "Update",
11072
11072
  I: tf,
11073
11073
  O: nf,
11074
- kind: R.Unary
11074
+ kind: L.Unary
11075
11075
  },
11076
11076
  /**
11077
11077
  * @generated from rpc streamlayer.sdkSettings.client.Client.GetStream
@@ -11080,7 +11080,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11080
11080
  name: "GetStream",
11081
11081
  I: sf,
11082
11082
  O: of,
11083
- kind: R.Unary
11083
+ kind: L.Unary
11084
11084
  },
11085
11085
  /**
11086
11086
  * @generated from rpc streamlayer.sdkSettings.client.Client.GetOrganization
@@ -11089,7 +11089,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11089
11089
  name: "GetOrganization",
11090
11090
  I: cf,
11091
11091
  O: lf,
11092
- kind: R.Unary
11092
+ kind: L.Unary
11093
11093
  },
11094
11094
  /**
11095
11095
  * @generated from rpc streamlayer.sdkSettings.client.Client.GetOrganizationAdvertising
@@ -11098,7 +11098,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11098
11098
  name: "GetOrganizationAdvertising",
11099
11099
  I: uf,
11100
11100
  O: df,
11101
- kind: R.Unary
11101
+ kind: L.Unary
11102
11102
  },
11103
11103
  /**
11104
11104
  * @generated from rpc streamlayer.sdkSettings.client.Client.GenerateDeepLink
@@ -11107,7 +11107,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11107
11107
  name: "GenerateDeepLink",
11108
11108
  I: ff,
11109
11109
  O: kf,
11110
- kind: R.Unary
11110
+ kind: L.Unary
11111
11111
  },
11112
11112
  /**
11113
11113
  * @generated from rpc streamlayer.sdkSettings.client.Client.StreamSubscription
@@ -11116,7 +11116,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11116
11116
  name: "StreamSubscription",
11117
11117
  I: Sf,
11118
11118
  O: Ef,
11119
- kind: R.ServerStreaming
11119
+ kind: L.ServerStreaming
11120
11120
  },
11121
11121
  /**
11122
11122
  * @generated from rpc streamlayer.sdkSettings.client.Client.OrganizationSubscription
@@ -11125,7 +11125,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11125
11125
  name: "OrganizationSubscription",
11126
11126
  I: _f,
11127
11127
  O: Nf,
11128
- kind: R.ServerStreaming
11128
+ kind: L.ServerStreaming
11129
11129
  }
11130
11130
  }
11131
11131
  }, Of = /* @__PURE__ */ i.makeMessageType(
@@ -11524,7 +11524,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11524
11524
  name: "Login",
11525
11525
  I: Af,
11526
11526
  O: wf,
11527
- kind: R.Unary
11527
+ kind: L.Unary
11528
11528
  },
11529
11529
  /**
11530
11530
  * @generated from rpc streamlayer.users.Users.Register
@@ -11533,7 +11533,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11533
11533
  name: "Register",
11534
11534
  I: Lf,
11535
11535
  O: Pf,
11536
- kind: R.Unary
11536
+ kind: L.Unary
11537
11537
  },
11538
11538
  /**
11539
11539
  * @generated from rpc streamlayer.users.Users.RequestPassword
@@ -11542,7 +11542,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11542
11542
  name: "RequestPassword",
11543
11543
  I: Df,
11544
11544
  O: Cf,
11545
- kind: R.Unary
11545
+ kind: L.Unary
11546
11546
  },
11547
11547
  /**
11548
11548
  * @generated from rpc streamlayer.users.Users.Me
@@ -11551,7 +11551,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11551
11551
  name: "Me",
11552
11552
  I: Uf,
11553
11553
  O: Ff,
11554
- kind: R.Unary
11554
+ kind: L.Unary
11555
11555
  },
11556
11556
  /**
11557
11557
  * @generated from rpc streamlayer.users.Users.Invite
@@ -11560,7 +11560,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11560
11560
  name: "Invite",
11561
11561
  I: jf,
11562
11562
  O: Kf,
11563
- kind: R.Unary
11563
+ kind: L.Unary
11564
11564
  },
11565
11565
  /**
11566
11566
  * @generated from rpc streamlayer.users.Users.BypassAuth
@@ -11569,7 +11569,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11569
11569
  name: "BypassAuth",
11570
11570
  I: Wf,
11571
11571
  O: zf,
11572
- kind: R.Unary
11572
+ kind: L.Unary
11573
11573
  },
11574
11574
  /**
11575
11575
  * @generated from rpc streamlayer.users.Users.UpdateMetadata
@@ -11578,7 +11578,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11578
11578
  name: "UpdateMetadata",
11579
11579
  I: Gf,
11580
11580
  O: Yf,
11581
- kind: R.Unary
11581
+ kind: L.Unary
11582
11582
  },
11583
11583
  /**
11584
11584
  * @generated from rpc streamlayer.users.Users.UpdateAvatar
@@ -11587,7 +11587,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11587
11587
  name: "UpdateAvatar",
11588
11588
  I: Bf,
11589
11589
  O: Vf,
11590
- kind: R.Unary
11590
+ kind: L.Unary
11591
11591
  },
11592
11592
  /**
11593
11593
  * @generated from rpc streamlayer.users.Users.UpdatePublicChatName
@@ -11596,7 +11596,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11596
11596
  name: "UpdatePublicChatName",
11597
11597
  I: qf,
11598
11598
  O: xf,
11599
- kind: R.Unary
11599
+ kind: L.Unary
11600
11600
  },
11601
11601
  /**
11602
11602
  * @generated from rpc streamlayer.users.Users.UpdatePublicName
@@ -11605,7 +11605,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11605
11605
  name: "UpdatePublicName",
11606
11606
  I: Hf,
11607
11607
  O: Qf,
11608
- kind: R.Unary
11608
+ kind: L.Unary
11609
11609
  },
11610
11610
  /**
11611
11611
  * @generated from rpc streamlayer.users.Users.GetFriends
@@ -11614,7 +11614,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11614
11614
  name: "GetFriends",
11615
11615
  I: Xf,
11616
11616
  O: Zf,
11617
- kind: R.Unary
11617
+ kind: L.Unary
11618
11618
  }
11619
11619
  }
11620
11620
  }, Ie = {
@@ -11627,7 +11627,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11627
11627
  name: "Get",
11628
11628
  I: Ku,
11629
11629
  O: Wu,
11630
- kind: R.Unary
11630
+ kind: L.Unary
11631
11631
  },
11632
11632
  /**
11633
11633
  * @generated from rpc streamlayer.interactive.feed.Feed.Subscription
@@ -11636,7 +11636,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11636
11636
  name: "Subscription",
11637
11637
  I: Zm,
11638
11638
  O: eu,
11639
- kind: R.ServerStreaming
11639
+ kind: L.ServerStreaming
11640
11640
  },
11641
11641
  /**
11642
11642
  * @generated from rpc streamlayer.interactive.feed.Feed.VotingSubscription
@@ -11645,7 +11645,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11645
11645
  name: "VotingSubscription",
11646
11646
  I: nu,
11647
11647
  O: au,
11648
- kind: R.ServerStreaming
11648
+ kind: L.ServerStreaming
11649
11649
  },
11650
11650
  /**
11651
11651
  * @generated from rpc streamlayer.interactive.feed.Feed.QuestionSubscription
@@ -11654,7 +11654,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11654
11654
  name: "QuestionSubscription",
11655
11655
  I: ru,
11656
11656
  O: iu,
11657
- kind: R.ServerStreaming
11657
+ kind: L.ServerStreaming
11658
11658
  },
11659
11659
  /**
11660
11660
  * @generated from rpc streamlayer.interactive.feed.Feed.QuestionByUser
@@ -11663,7 +11663,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11663
11663
  name: "QuestionByUser",
11664
11664
  I: mu,
11665
11665
  O: uu,
11666
- kind: R.Unary
11666
+ kind: L.Unary
11667
11667
  },
11668
11668
  /**
11669
11669
  * @generated from rpc streamlayer.interactive.feed.Feed.SyncQuestion
@@ -11672,7 +11672,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11672
11672
  name: "SyncQuestion",
11673
11673
  I: pu,
11674
11674
  O: yu,
11675
- kind: R.Unary
11675
+ kind: L.Unary
11676
11676
  },
11677
11677
  /**
11678
11678
  * @generated from rpc streamlayer.interactive.feed.Feed.GetQuestion
@@ -11681,7 +11681,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11681
11681
  name: "GetQuestion",
11682
11682
  I: gu,
11683
11683
  O: ku,
11684
- kind: R.Unary
11684
+ kind: L.Unary
11685
11685
  },
11686
11686
  /**
11687
11687
  * @generated from rpc streamlayer.interactive.feed.Feed.QuestionDetail
@@ -11690,7 +11690,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11690
11690
  name: "QuestionDetail",
11691
11691
  I: Su,
11692
11692
  O: _u,
11693
- kind: R.Unary
11693
+ kind: L.Unary
11694
11694
  },
11695
11695
  /**
11696
11696
  * @generated from rpc streamlayer.interactive.feed.Feed.SubmitAnswer
@@ -11699,7 +11699,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11699
11699
  name: "SubmitAnswer",
11700
11700
  I: bu,
11701
11701
  O: Iu,
11702
- kind: R.Unary
11702
+ kind: L.Unary
11703
11703
  },
11704
11704
  /**
11705
11705
  * @generated from rpc streamlayer.interactive.feed.Feed.SubmitInplay
@@ -11708,7 +11708,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11708
11708
  name: "SubmitInplay",
11709
11709
  I: vu,
11710
11710
  O: wu,
11711
- kind: R.Unary
11711
+ kind: L.Unary
11712
11712
  },
11713
11713
  /**
11714
11714
  * @generated from rpc streamlayer.interactive.feed.Feed.SkipQuestion
@@ -11717,7 +11717,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11717
11717
  name: "SkipQuestion",
11718
11718
  I: Ru,
11719
11719
  O: Mu,
11720
- kind: R.Unary
11720
+ kind: L.Unary
11721
11721
  },
11722
11722
  /**
11723
11723
  * @generated from rpc streamlayer.interactive.feed.Feed.PickHistory
@@ -11726,7 +11726,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11726
11726
  name: "PickHistory",
11727
11727
  I: Du,
11728
11728
  O: Cu,
11729
- kind: R.Unary
11729
+ kind: L.Unary
11730
11730
  },
11731
11731
  /**
11732
11732
  * @generated from rpc streamlayer.interactive.feed.Feed.InsightHistory
@@ -11735,7 +11735,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11735
11735
  name: "InsightHistory",
11736
11736
  I: Gu,
11737
11737
  O: qu,
11738
- kind: R.Unary
11738
+ kind: L.Unary
11739
11739
  },
11740
11740
  /**
11741
11741
  * @generated from rpc streamlayer.interactive.feed.Feed.TweetHistory
@@ -11744,7 +11744,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11744
11744
  name: "TweetHistory",
11745
11745
  I: Hu,
11746
11746
  O: Qu,
11747
- kind: R.Unary
11747
+ kind: L.Unary
11748
11748
  },
11749
11749
  /**
11750
11750
  * @generated from rpc streamlayer.interactive.feed.Feed.PromotionHistory
@@ -11753,7 +11753,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11753
11753
  name: "PromotionHistory",
11754
11754
  I: Ju,
11755
11755
  O: Xu,
11756
- kind: R.Unary
11756
+ kind: L.Unary
11757
11757
  },
11758
11758
  /**
11759
11759
  * @generated from rpc streamlayer.interactive.feed.Feed.List
@@ -11762,7 +11762,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11762
11762
  name: "List",
11763
11763
  I: td,
11764
11764
  O: ad,
11765
- kind: R.Unary
11765
+ kind: L.Unary
11766
11766
  },
11767
11767
  /**
11768
11768
  * @generated from rpc streamlayer.interactive.feed.Feed.Item
@@ -11771,7 +11771,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11771
11771
  name: "Item",
11772
11772
  I: od,
11773
11773
  O: rd,
11774
- kind: R.Unary
11774
+ kind: L.Unary
11775
11775
  },
11776
11776
  /**
11777
11777
  * not implemented!!!
@@ -11782,7 +11782,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
11782
11782
  name: "FeedSubscription",
11783
11783
  I: id,
11784
11784
  O: cd,
11785
- kind: R.ServerStreaming
11785
+ kind: L.ServerStreaming
11786
11786
  }
11787
11787
  }
11788
11788
  }, ng = /* @__PURE__ */ i.makeEnum(
@@ -12181,7 +12181,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
12181
12181
  name: "List",
12182
12182
  I: og,
12183
12183
  O: rg,
12184
- kind: R.Unary
12184
+ kind: L.Unary
12185
12185
  },
12186
12186
  /**
12187
12187
  * @generated from rpc streamlayer.interactive.leaderboard.Leaderboard.Summary
@@ -12190,7 +12190,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
12190
12190
  name: "Summary",
12191
12191
  I: lg,
12192
12192
  O: mg,
12193
- kind: R.Unary
12193
+ kind: L.Unary
12194
12194
  },
12195
12195
  /**
12196
12196
  * @generated from rpc streamlayer.interactive.leaderboard.Leaderboard.EventLeaderboards
@@ -12199,7 +12199,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
12199
12199
  name: "EventLeaderboards",
12200
12200
  I: dg,
12201
12201
  O: pg,
12202
- kind: R.Unary
12202
+ kind: L.Unary
12203
12203
  },
12204
12204
  /**
12205
12205
  * @generated from rpc streamlayer.interactive.leaderboard.Leaderboard.EventLeaderboard
@@ -12208,7 +12208,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
12208
12208
  name: "EventLeaderboard",
12209
12209
  I: yg,
12210
12210
  O: fg,
12211
- kind: R.Unary
12211
+ kind: L.Unary
12212
12212
  }
12213
12213
  }
12214
12214
  }, hg = /* @__PURE__ */ i.makeMessageType(
@@ -12256,7 +12256,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
12256
12256
  name: "Generate",
12257
12257
  I: hg,
12258
12258
  O: Sg,
12259
- kind: R.Unary
12259
+ kind: L.Unary
12260
12260
  }
12261
12261
  }
12262
12262
  }, zo = globalThis || void 0 || self, Ha = /* @__PURE__ */ i.makeEnum(
@@ -12319,7 +12319,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
12319
12319
  () => [
12320
12320
  { no: 1, name: "event_id", kind: "scalar", T: 4, opt: !0 },
12321
12321
  { no: 2, name: "category", kind: "enum", T: i.getEnumType(me), opt: !0 },
12322
- { no: 3, name: "kind", kind: "enum", T: i.getEnumType(re), opt: !0 },
12322
+ { no: 3, name: "kind", kind: "enum", T: i.getEnumType(ie), opt: !0 },
12323
12323
  { no: 4, name: "screen_orientation", kind: "enum", T: i.getEnumType(Ua), opt: !0 },
12324
12324
  { no: 5, name: "session_id", kind: "scalar", T: 9, opt: !0 },
12325
12325
  { no: 6, name: "overlay_session_id", kind: "scalar", T: 9, opt: !0 },
@@ -12404,7 +12404,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
12404
12404
  "streamlayer.analytics.v2.streaming.GamesMessage",
12405
12405
  () => [
12406
12406
  { no: 1, name: "common", kind: "message", T: fe },
12407
- { no: 2, name: "poll_opened_from", kind: "enum", T: i.getEnumType(Ee) }
12407
+ { no: 2, name: "poll_opened_from", kind: "enum", T: i.getEnumType(be) }
12408
12408
  ]
12409
12409
  ), Bg = /* @__PURE__ */ i.makeMessageType(
12410
12410
  "streamlayer.analytics.v2.streaming.Login",
@@ -12455,7 +12455,7 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
12455
12455
  name: "Send",
12456
12456
  I: Xo,
12457
12457
  O: Jo,
12458
- kind: R.ClientStreaming
12458
+ kind: L.ClientStreaming
12459
12459
  },
12460
12460
  /**
12461
12461
  * client unary analytics
@@ -12466,14 +12466,14 @@ const Ao = 1, wo = 2, Ro = 3, ca = 4, Lo = (e, t) => {
12466
12466
  name: "Unary",
12467
12467
  I: Xo,
12468
12468
  O: Jo,
12469
- kind: R.Unary
12469
+ kind: L.Unary
12470
12470
  }
12471
12471
  }
12472
12472
  };
12473
12473
  function qg(e) {
12474
12474
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
12475
12475
  }
12476
- var qi = { exports: {} }, te = qi.exports = {}, Pe, De;
12476
+ var qi = { exports: {} }, ne = qi.exports = {}, Pe, De;
12477
12477
  function Ya() {
12478
12478
  throw new Error("setTimeout has not been defined");
12479
12479
  }
@@ -12538,7 +12538,7 @@ function Hi() {
12538
12538
  ut = null, Rt = !1, xg(e);
12539
12539
  }
12540
12540
  }
12541
- te.nextTick = function(e) {
12541
+ ne.nextTick = function(e) {
12542
12542
  var t = new Array(arguments.length - 1);
12543
12543
  if (arguments.length > 1)
12544
12544
  for (var n = 1; n < arguments.length; n++)
@@ -12551,40 +12551,40 @@ function Qi(e, t) {
12551
12551
  Qi.prototype.run = function() {
12552
12552
  this.fun.apply(null, this.array);
12553
12553
  };
12554
- te.title = "browser";
12555
- te.browser = !0;
12556
- te.env = {};
12557
- te.argv = [];
12558
- te.version = "";
12559
- te.versions = {};
12554
+ ne.title = "browser";
12555
+ ne.browser = !0;
12556
+ ne.env = {};
12557
+ ne.argv = [];
12558
+ ne.version = "";
12559
+ ne.versions = {};
12560
12560
  function We() {
12561
12561
  }
12562
- te.on = We;
12563
- te.addListener = We;
12564
- te.once = We;
12565
- te.off = We;
12566
- te.removeListener = We;
12567
- te.removeAllListeners = We;
12568
- te.emit = We;
12569
- te.prependListener = We;
12570
- te.prependOnceListener = We;
12571
- te.listeners = function(e) {
12562
+ ne.on = We;
12563
+ ne.addListener = We;
12564
+ ne.once = We;
12565
+ ne.off = We;
12566
+ ne.removeListener = We;
12567
+ ne.removeAllListeners = We;
12568
+ ne.emit = We;
12569
+ ne.prependListener = We;
12570
+ ne.prependOnceListener = We;
12571
+ ne.listeners = function(e) {
12572
12572
  return [];
12573
12573
  };
12574
- te.binding = function(e) {
12574
+ ne.binding = function(e) {
12575
12575
  throw new Error("process.binding is not supported");
12576
12576
  };
12577
- te.cwd = function() {
12577
+ ne.cwd = function() {
12578
12578
  return "/";
12579
12579
  };
12580
- te.chdir = function(e) {
12580
+ ne.chdir = function(e) {
12581
12581
  throw new Error("process.chdir is not supported");
12582
12582
  };
12583
- te.umask = function() {
12583
+ ne.umask = function() {
12584
12584
  return 0;
12585
12585
  };
12586
12586
  var Qg = qi.exports;
12587
- const D = /* @__PURE__ */ qg(Qg), Yg = ol({
12587
+ const C = /* @__PURE__ */ qg(Qg), Yg = ol({
12588
12588
  level: "trace",
12589
12589
  enabled: typeof window < "u" && !!window.localStorage.getItem("SL_DEBUG"),
12590
12590
  browser: {
@@ -12658,16 +12658,16 @@ class pt extends Kn {
12658
12658
  p(this, "unsubscribe", () => this.getStore().off());
12659
12659
  }
12660
12660
  }
12661
- const be = (e) => Va(e);
12661
+ const Se = (e) => Va(e);
12662
12662
  var qe;
12663
12663
  (function(e) {
12664
12664
  e.ORGANIZATION = "ORGANIZATION", e.STREAM = "STREAM";
12665
12665
  })(qe || (qe = {}));
12666
12666
  const Jg = {
12667
- [Y.BETTING]: "betting",
12668
- [Y.GAMES]: "games",
12669
- [Y.PUBLIC_CHAT]: "publicChat",
12670
- [Y.TWITTER]: "twitter"
12667
+ [j.BETTING]: "betting",
12668
+ [j.GAMES]: "games",
12669
+ [j.PUBLIC_CHAT]: "publicChat",
12670
+ [j.TWITTER]: "twitter"
12671
12671
  };
12672
12672
  var Kt;
12673
12673
  (function(e) {
@@ -12704,7 +12704,7 @@ class Yi {
12704
12704
  p(this, "update", (t, n) => {
12705
12705
  this.source === qe.STREAM && n === qe.ORGANIZATION || (this.setFeatureConfig(t), this.source = n);
12706
12706
  });
12707
- this.settingsKey = Jg[n.type], this.status = at(Kt.Suspended), this.config = new pt(be(n), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && (t == null ? void 0 : t.overlaySettings.case) === this.settingsKey ? this.settings = new pt(be(t.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new pt(be({}), `feature:settings:${this.settingsKey}`), this.source = a;
12707
+ this.settingsKey = Jg[n.type], this.status = at(Kt.Suspended), this.config = new pt(Se(n), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && (t == null ? void 0 : t.overlaySettings.case) === this.settingsKey ? this.settings = new pt(Se(t.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new pt(Se({}), `feature:settings:${this.settingsKey}`), this.source = a;
12708
12708
  }
12709
12709
  get featureConfig() {
12710
12710
  return this.config.getStore();
@@ -12742,7 +12742,7 @@ class Ne extends Kn {
12742
12742
  return this.getStore().get();
12743
12743
  }
12744
12744
  }
12745
- const ie = (e) => at(e);
12745
+ const oe = (e) => at(e);
12746
12746
  class Fe extends Kn {
12747
12747
  constructor(n, a, s) {
12748
12748
  super(n, `api:${a}`);
@@ -12924,7 +12924,7 @@ class ek {
12924
12924
  for await (const s of a)
12925
12925
  this.attempt = 0, this.onData(s);
12926
12926
  } catch (n) {
12927
- n instanceof H && n.code != P.Canceled && this.onStreamError(n);
12927
+ n instanceof Q && n.code != D.Canceled && this.onStreamError(n);
12928
12928
  }
12929
12929
  })(), this.updateState(Oe.Connected);
12930
12930
  });
@@ -12968,7 +12968,7 @@ class ek {
12968
12968
  */
12969
12969
  p(this, "onStreamError", (t) => {
12970
12970
  if (this.addStateLog(`error => ${t ? JSON.stringify(t) : "undefined"}}`), t !== void 0) {
12971
- if (t instanceof H && t.code !== P.Canceled) {
12971
+ if (t instanceof Q && t.code !== D.Canceled) {
12972
12972
  this.updateState(Oe.Failed), this.state.setValue("error", t), this.reconnect();
12973
12973
  return;
12974
12974
  }
@@ -12980,25 +12980,25 @@ class ek {
12980
12980
  ts: /* @__PURE__ */ new Date(),
12981
12981
  log: []
12982
12982
  };
12983
- this.state = new pt(be(o), `subscription:${s.name}:state`), this.options = {
12983
+ this.state = new pt(Se(o), `subscription:${s.name}:state`), this.options = {
12984
12984
  ...s,
12985
12985
  reconnectDelay: s.reconnectDelay ?? 1e3,
12986
12986
  reconnectMaxDelay: s.reconnectMaxDelay ?? 3e4,
12987
12987
  reconnectMaxAttempts: s.reconnectMaxAttempts ?? 10,
12988
12988
  withStore: s.withStore ?? !1
12989
- }, this.headers = t, this.listeners = /* @__PURE__ */ new Map(), this.params = a, this.method = n, s.withStore && (this.store = new Ne(ie(null), `subscription:${s.name}:store`)), "subscribe" in a && typeof a.subscribe == "function" && (this.paramsListener = a.subscribe((r) => {
12989
+ }, this.headers = t, this.listeners = /* @__PURE__ */ new Map(), this.params = a, this.method = n, s.withStore && (this.store = new Ne(oe(null), `subscription:${s.name}:store`)), "subscribe" in a && typeof a.subscribe == "function" && (this.paramsListener = a.subscribe((r) => {
12990
12990
  this.state.getValue("status") === Oe.Connected && (this.addStateLog(`params updated, reconnect => ${JSON.stringify(r)}`), this.reconnect());
12991
12991
  })), this.updateState(Oe.Ready);
12992
12992
  }
12993
12993
  }
12994
12994
  const tk = /* @__PURE__ */ new Set([
12995
- P.Unknown,
12996
- P.Internal,
12997
- P.DeadlineExceeded,
12998
- P.ResourceExhausted,
12999
- P.FailedPrecondition,
13000
- P.Unavailable,
13001
- P.DataLoss
12995
+ D.Unknown,
12996
+ D.Internal,
12997
+ D.DeadlineExceeded,
12998
+ D.ResourceExhausted,
12999
+ D.FailedPrecondition,
13000
+ D.Unavailable,
13001
+ D.DataLoss
13002
13002
  ]), Zo = ze("grpc:retry"), nk = (e) => async (t) => {
13003
13003
  const n = t.contextValues.get($a.retryAttempts), a = 300, s = t.contextValues.get($a.retryDelay);
13004
13004
  if (t.stream || n === 0)
@@ -13009,8 +13009,8 @@ const tk = /* @__PURE__ */ new Set([
13009
13009
  return await e(t);
13010
13010
  } catch (r) {
13011
13011
  Zo.trace({ attempt: o, error: r }, "retry attempt");
13012
- const c = H.from(r);
13013
- if (o >= n || !(c instanceof H) || !tk.has(c.code))
13012
+ const c = Q.from(r);
13013
+ if (o >= n || !(c instanceof Q) || !tk.has(c.code))
13014
13014
  throw r;
13015
13015
  const l = Math.min(s, Math.pow(2, o) * a), m = Math.round(l * (1 + Math.random()) / 2);
13016
13016
  await new Promise((u) => setTimeout(u, m));
@@ -13131,7 +13131,7 @@ class er {
13131
13131
  };
13132
13132
  this.interceptors.push(t), this.interceptors.push(Zg()), (n = this.opts) != null && n.retryable && this.interceptors.push(nk);
13133
13133
  });
13134
- this.host = t, this.opts = n, this.$headers = new pt(be({
13134
+ this.host = t, this.opts = n, this.$headers = new pt(Se({
13135
13135
  "sl-device-id": ak(),
13136
13136
  "sl-device-os": sk()
13137
13137
  }), "transport:headers"), this.initInterceptors(), this.clients = /* @__PURE__ */ new Map(), this.streamClients = /* @__PURE__ */ new Map(), this.subscriptions = /* @__PURE__ */ new Map();
@@ -13275,7 +13275,7 @@ var xe;
13275
13275
  e.DISABLED = "disabled", e.INITIALIZATION = "initialization", e.READY = "ready", e.FAILED = "failed", e.SUSPENDED = "suspended";
13276
13276
  })(xe || (xe = {}));
13277
13277
  const Tk = (e) => {
13278
- const t = new It(), n = new Ne(ie(t.getExternalToken()), "userKey"), a = new Ne(ie(t.getToken()), "userToken"), s = new Fe(ck(a.getStore(), e), "user", ({ data: r, error: c, loading: l }, m) => {
13278
+ const t = new It(), n = new Ne(oe(t.getExternalToken()), "userKey"), a = new Ne(oe(t.getToken()), "userToken"), s = new Fe(ck(a.getStore(), e), "user", ({ data: r, error: c, loading: l }, m) => {
13279
13279
  var u;
13280
13280
  if (!c)
13281
13281
  return (u = r == null ? void 0 : r.data) != null && u.id ? r.data.id : l === !1 ? void 0 : m;
@@ -13287,7 +13287,7 @@ const Tk = (e) => {
13287
13287
  userSettings: o
13288
13288
  };
13289
13289
  }, yk = (e) => {
13290
- const t = new Ne(ie(void 0), "providerStreamId"), n = new Fe(ok(t.getStore(), e), "slStreamId", (o) => o == null ? void 0 : o.data), a = new Fe(rk(n.getAtomStore(), e), "streamSettings"), s = new Fe(ik(n.getAtomStore(), e), "streamSettings");
13290
+ const t = new Ne(oe(void 0), "providerStreamId"), n = new Fe(ok(t.getStore(), e), "slStreamId", (o) => o == null ? void 0 : o.data), a = new Fe(rk(n.getAtomStore(), e), "streamSettings"), s = new Fe(ik(n.getAtomStore(), e), "streamSettings");
13291
13291
  return n.getAtomStore().listen((o) => {
13292
13292
  (o === "" || o === void 0) && (a.getStore().mutate(void 0), s.getStore().mutate(void 0));
13293
13293
  }), {
@@ -13297,7 +13297,7 @@ const Tk = (e) => {
13297
13297
  streamSummary: s
13298
13298
  };
13299
13299
  }, fk = (e) => {
13300
- const t = new Ne(ie(void 0), "enabled"), n = new Ne(ie(xe.DISABLED), "status"), a = new Fe(uk(t.getStore(), e), "organizationSettings", (c) => {
13300
+ const t = new Ne(oe(void 0), "enabled"), n = new Ne(oe(xe.DISABLED), "status"), a = new Fe(uk(t.getStore(), e), "organizationSettings", (c) => {
13301
13301
  var l;
13302
13302
  return (l = c == null ? void 0 : c.data) == null ? void 0 : l.id;
13303
13303
  }), s = new Fe(dk(a.getAtomStore(), e), "organizationAdvertising"), o = Tk(e), r = yk(e);
@@ -13391,7 +13391,7 @@ const kk = (e, t, n) => {
13391
13391
  eventId: r
13392
13392
  }
13393
13393
  });
13394
- if (((u = (m = (l = c.data) == null ? void 0 : l.attributes) == null ? void 0 : m.question) == null ? void 0 : u.type) !== C.PROMOTION)
13394
+ if (((u = (m = (l = c.data) == null ? void 0 : l.attributes) == null ? void 0 : m.question) == null ? void 0 : u.type) !== U.PROMOTION)
13395
13395
  return (d = c.data) == null ? void 0 : d.attributes;
13396
13396
  },
13397
13397
  dedupeTime: 1e3 * 60 * 10,
@@ -13448,7 +13448,7 @@ const kk = (e, t, n) => {
13448
13448
  fetcher: async (o, r, c, l) => c ? (await a.list({
13449
13449
  eventId: c,
13450
13450
  filter: {
13451
- types: l === Tt.ALLOWED ? [] : [C.FACTOID, C.PROMOTION, C.TWEET],
13451
+ types: l === Tt.ALLOWED ? [] : [U.FACTOID, U.PROMOTION, U.TWEET],
13452
13452
  statuses: [de.ACTIVE, de.RESOLVED]
13453
13453
  }
13454
13454
  })).data : [],
@@ -13468,7 +13468,7 @@ const kk = (e, t, n) => {
13468
13468
  const c = (l = (await n.list({
13469
13469
  eventId: r,
13470
13470
  filter: {
13471
- types: [C.PROMOTION],
13471
+ types: [U.PROMOTION],
13472
13472
  statuses: [de.ACTIVE]
13473
13473
  },
13474
13474
  pagination: {
@@ -13557,96 +13557,103 @@ const Lk = (e) => {
13557
13557
  return n + a.join("&");
13558
13558
  }, Pk = (e, t, n) => {
13559
13559
  let a = !1;
13560
- const s = n.transport, o = ze("advertisement"), r = new Rk(), c = be({}), l = Ak(e, s), m = () => {
13561
- var N, E, b;
13560
+ const s = n.transport, o = ze("advertisement"), r = new Rk(), c = Se({}), l = Ak(e, s), m = () => {
13561
+ var h, A, w;
13562
13562
  c.setKey("hasNotification", !1);
13563
- const T = c.get(), f = (N = T.data) == null ? void 0 : N.question.id, _ = (b = (E = T.data) == null ? void 0 : E.promotion) == null ? void 0 : b.type;
13564
- f && pe.emit("advertisement", {
13563
+ const f = c.get(), k = (h = f.data) == null ? void 0 : h.question.id, N = (w = (A = f.data) == null ? void 0 : A.promotion) == null ? void 0 : w.type;
13564
+ k && pe.emit("advertisement", {
13565
13565
  action: "notification-opened",
13566
13566
  payload: {
13567
- id: f,
13568
- type: _
13567
+ id: k,
13568
+ type: N
13569
13569
  }
13570
13570
  });
13571
13571
  }, u = () => {
13572
- var E, b, w, O;
13573
- const T = c.get(), f = (E = T.data) == null ? void 0 : E.question.id, _ = (w = (b = T.data) == null ? void 0 : b.promotion) == null ? void 0 : w.type, N = (O = c.get()) == null ? void 0 : O.isOpened;
13574
- f && !N && (o.debug({ id: f }, "markAsViewed: %o"), r.setShowed(f), c.setKey("isOpened", !0), pe.emit("advertisement", {
13572
+ var A, w, b, v;
13573
+ const f = c.get(), k = (A = f.data) == null ? void 0 : A.question.id, N = (b = (w = f.data) == null ? void 0 : w.promotion) == null ? void 0 : b.type, h = (v = c.get()) == null ? void 0 : v.isOpened;
13574
+ k && !h && (o.debug({ id: k }, "markAsViewed: %o"), r.setShowed(k), c.setKey("isOpened", !0), pe.emit("advertisement", {
13575
13575
  action: "opened",
13576
13576
  payload: {
13577
- id: f,
13578
- type: _
13577
+ id: k,
13578
+ type: N
13579
13579
  }
13580
13580
  }));
13581
- }, d = (T, f) => {
13582
- var _;
13583
- f ? c.set({
13581
+ }, d = (f, k) => {
13582
+ var N;
13583
+ k ? c.set({
13584
13584
  loading: !1,
13585
13585
  error: void 0,
13586
- data: f,
13587
- hasNotification: ((_ = f == null ? void 0 : f.notification) == null ? void 0 : _.enabled) === Fa.NOTIFICATION_ENABLED,
13588
- close: () => y(f.question.id),
13589
- isViewed: !!r.isViewed(f.question.id)
13590
- }) : (c.setKey("loading", !0), Wi(T, s).then((N) => {
13591
- var E;
13586
+ data: k,
13587
+ hasNotification: ((N = k == null ? void 0 : k.notification) == null ? void 0 : N.enabled) === Fa.NOTIFICATION_ENABLED,
13588
+ close: () => y(k.question.id),
13589
+ togglePause: (h) => T(k.question.id, h),
13590
+ isViewed: !!r.isViewed(k.question.id)
13591
+ }) : (c.setKey("loading", !0), Wi(f, s).then((h) => {
13592
+ var A;
13592
13593
  return c.set({
13593
13594
  loading: !1,
13594
13595
  error: void 0,
13595
- data: N,
13596
- hasNotification: ((E = N == null ? void 0 : N.notification) == null ? void 0 : E.enabled) === Fa.NOTIFICATION_ENABLED,
13597
- close: () => y(N == null ? void 0 : N.question.id),
13598
- isViewed: N && !!r.isViewed(N.question.id)
13596
+ data: h,
13597
+ hasNotification: ((A = h == null ? void 0 : h.notification) == null ? void 0 : A.enabled) === Fa.NOTIFICATION_ENABLED,
13598
+ close: () => y(h == null ? void 0 : h.question.id),
13599
+ togglePause: (w) => T(h == null ? void 0 : h.question.id, w),
13600
+ isViewed: h && !!r.isViewed(h.question.id)
13599
13601
  });
13600
- }).catch((N) => c.set({
13602
+ }).catch((h) => c.set({
13601
13603
  loading: !1,
13602
- error: N,
13604
+ error: h,
13603
13605
  data: void 0
13604
13606
  })));
13605
13607
  };
13606
- c.subscribe((T, f) => {
13607
- var _, N, E, b, w, O, A;
13608
- if (((N = (_ = T.data) == null ? void 0 : _.promotion) == null ? void 0 : N.type) === Se.EXTERNAL_AD && !(T != null && T.externalAd) && ((E = T.data.promotion.adCampaigns) != null && E.gamOptions) && ((b = T.data.promotion.adCampaigns) != null && b.gamBaseUrl)) {
13609
- const L = Mk(T.data.promotion.adCampaigns);
13610
- c.setKey("externalAd", { type: "gam", url: L });
13611
- }
13612
- (w = T.data) != null && w.promotion && !T.isOpened && pe.emit("advertisement", {
13613
- action: "received",
13614
- payload: {
13615
- id: T.data.question.id,
13616
- type: T.data.promotion.type,
13617
- hasNotification: !!T.hasNotification,
13618
- isViewed: !!r.isViewed(T.data.question.id)
13619
- },
13620
- skipAnalytics: T.data.question.id === ((O = f == null ? void 0 : f.data) == null ? void 0 : O.question.id)
13621
- }), !(T != null && T.data) && (f != null && f.data) && pe.emit("advertisement", {
13622
- action: "closed",
13623
- payload: {
13624
- id: f.data.question.id,
13625
- type: (A = f.data.promotion) == null ? void 0 : A.type,
13626
- hasNotification: !!f.hasNotification,
13627
- isViewed: !!r.isViewed(f.data.question.id)
13608
+ c.subscribe((f, k) => {
13609
+ var N, h, A, w, b, v, R, I, M;
13610
+ if (!(((N = f.data) == null ? void 0 : N.id) === ((h = k == null ? void 0 : k.data) == null ? void 0 : h.id) && f.isPaused !== (k == null ? void 0 : k.isPaused))) {
13611
+ if (((w = (A = f.data) == null ? void 0 : A.promotion) == null ? void 0 : w.type) === _e.EXTERNAL_AD && !(f != null && f.externalAd) && ((b = f.data.promotion.adCampaigns) != null && b.gamOptions) && ((v = f.data.promotion.adCampaigns) != null && v.gamBaseUrl)) {
13612
+ const G = Mk(f.data.promotion.adCampaigns);
13613
+ c.setKey("externalAd", { type: "gam", url: G });
13628
13614
  }
13629
- });
13615
+ (R = f.data) != null && R.promotion && !f.isOpened && pe.emit("advertisement", {
13616
+ action: "received",
13617
+ payload: {
13618
+ id: f.data.question.id,
13619
+ type: f.data.promotion.type,
13620
+ hasNotification: !!f.hasNotification,
13621
+ isViewed: !!r.isViewed(f.data.question.id)
13622
+ },
13623
+ skipAnalytics: f.data.question.id === ((I = k == null ? void 0 : k.data) == null ? void 0 : I.question.id)
13624
+ }), !(f != null && f.data) && (k != null && k.data) && pe.emit("advertisement", {
13625
+ action: "closed",
13626
+ payload: {
13627
+ id: k.data.question.id,
13628
+ type: (M = k.data.promotion) == null ? void 0 : M.type,
13629
+ hasNotification: !!k.hasNotification,
13630
+ isViewed: !!r.isViewed(k.data.question.id)
13631
+ }
13632
+ });
13633
+ }
13630
13634
  });
13631
- const y = (T) => {
13632
- var f, _;
13633
- (!T || ((_ = (f = c.get()) == null ? void 0 : f.data) == null ? void 0 : _.question.id) === T) && c.set({});
13635
+ const y = (f) => {
13636
+ var k, N;
13637
+ (!f || ((N = (k = c.get()) == null ? void 0 : k.data) == null ? void 0 : N.question.id) === f) && c.set({});
13638
+ }, T = (f, k) => {
13639
+ var N, h;
13640
+ ((h = (N = c.get()) == null ? void 0 : N.data) == null ? void 0 : h.question.id) === f && c.setKey("isPaused", k);
13634
13641
  };
13635
13642
  return { connect: () => {
13636
- a || (a = !0, l.subscribe((T, f) => {
13637
- T.data && (!(f != null && f.data) || T.data.id !== f.data.id) && d(T.data.question.id, T.data);
13638
- }), t.addListener("promotion", (T) => {
13639
- const f = Lk(T);
13640
- if (f) {
13641
- if (f.question.status === de.RESOLVED) {
13642
- y(f.question.id), o.debug({ promotion: f }, "resolved: %o");
13643
+ a || (a = !0, l.subscribe((f, k) => {
13644
+ f.data && (!(k != null && k.data) || f.data.id !== k.data.id) && d(f.data.question.id, f.data);
13645
+ }), t.addListener("promotion", (f) => {
13646
+ const k = Lk(f);
13647
+ if (k) {
13648
+ if (k.question.status === de.RESOLVED) {
13649
+ y(k.question.id), o.debug({ promotion: k }, "resolved: %o");
13643
13650
  return;
13644
13651
  }
13645
- if (f.question.status === de.ACTIVE) {
13646
- o.debug({ promotion: f }, "active: %o"), d(f.question.id, f);
13652
+ if (k.question.status === de.ACTIVE) {
13653
+ o.debug({ promotion: k }, "active: %o"), d(k.question.id, k);
13647
13654
  return;
13648
13655
  }
13649
- o.debug({ promotion: f }, "skip: %o");
13656
+ o.debug({ promotion: k }, "skip: %o");
13650
13657
  }
13651
13658
  }));
13652
13659
  }, hide: y, show: d, open: m, markAsViewed: u, $store: c };
@@ -13716,7 +13723,7 @@ class Dk {
13716
13723
  p(this, "closeQuestion", (t) => {
13717
13724
  this.openedQuestionId.set(void 0), t && this.notifications.markAsViewed(this.getCurrentSessionId({ prefix: "notification", entity: t }));
13718
13725
  });
13719
- this.transport = t.transport, this.log = ze("gamification-background"), this.slStreamId = t.stores.slStreamId.getAtomStore(), this.organizationId = t.stores.organizationSettings.getAtomStore(), this.userId = t.stores.user.getAtomStore(), this.moderationId = new Ne(ie(void 0), "moderationId").getStore(), this.interactiveAllowed = new Ne(ie(Tt.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new Ne(ie(void 0), "openedQuestionId").getStore(), this.notifications = t.notifications, this.moderation = new Fe(_k(this.slStreamId, t.transport), "gamification:moderation"), this.feedList = new Fe(vk(this.slStreamId, this.interactiveAllowed, t.transport), "gamification:feedList"), this.activeQuestionId = Ek(this.slStreamId, t.transport), this.openedQuestion = wk(t.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((n) => {
13726
+ this.transport = t.transport, this.log = ze("gamification-background"), this.slStreamId = t.stores.slStreamId.getAtomStore(), this.organizationId = t.stores.organizationSettings.getAtomStore(), this.userId = t.stores.user.getAtomStore(), this.moderationId = new Ne(oe(void 0), "moderationId").getStore(), this.interactiveAllowed = new Ne(oe(Tt.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new Ne(oe(void 0), "openedQuestionId").getStore(), this.notifications = t.notifications, this.moderation = new Fe(_k(this.slStreamId, t.transport), "gamification:moderation"), this.feedList = new Fe(vk(this.slStreamId, this.interactiveAllowed, t.transport), "gamification:feedList"), this.activeQuestionId = Ek(this.slStreamId, t.transport), this.openedQuestion = wk(t.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((n) => {
13720
13727
  this.log.debug({ item: n }, "received question"), n != null && n.questionId ? (this.questionSubscription = Ik(n.questionId, t.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (a) => {
13721
13728
  var s, o;
13722
13729
  this.openedQuestion.updateExtendedQuestion((o = (s = a.data) == null ? void 0 : s.attributes) == null ? void 0 : o.question);
@@ -13724,7 +13731,7 @@ class Dk {
13724
13731
  })), this.feedSubscription = Nk(this.slStreamId, t.transport), this.cancels.add(this.feedSubscription.addListener("feed-subscription-active-question", (n) => {
13725
13732
  var o, r, c, l;
13726
13733
  const a = (r = (o = this.activeQuestionId.get().data) == null ? void 0 : o.question) == null ? void 0 : r.id, s = (l = (c = n.data) == null ? void 0 : c.attributes) == null ? void 0 : l.question;
13727
- if (!(!s || s.type === C.PROMOTION)) {
13734
+ if (!(!s || s.type === U.PROMOTION)) {
13728
13735
  if (s.status === de.RESOLVED) {
13729
13736
  a === s.id && this.activeQuestionId.mutate(void 0);
13730
13737
  return;
@@ -13863,7 +13870,7 @@ class Ck {
13863
13870
  p(this, "drain", () => {
13864
13871
  this.store.clear(), this.timeouts.clear(), this.waitingQueue.clear(), this.activeQueue.clear(), this.notificationsList.off(), this.notificationsList.set(/* @__PURE__ */ new Map());
13865
13872
  });
13866
- this.options = t, this.logger = ze("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notificationsList = ie(/* @__PURE__ */ new Map());
13873
+ this.options = t, this.logger = ze("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notificationsList = oe(/* @__PURE__ */ new Map());
13867
13874
  }
13868
13875
  }
13869
13876
  var Pn;
@@ -13942,7 +13949,7 @@ const Bk = async (e, t) => {
13942
13949
  try {
13943
13950
  return await n.submitAnswer({ data: t }, { contextValues: s });
13944
13951
  } catch (r) {
13945
- throw ((o = H.from(r)) == null ? void 0 : o.code) === P.AlreadyExists ? new Error(Zt.ALREADY_VOTED) : new Error(Zt.UNKNOWN);
13952
+ throw ((o = Q.from(r)) == null ? void 0 : o.code) === D.AlreadyExists ? new Error(Zt.ALREADY_VOTED) : new Error(Zt.UNKNOWN);
13946
13953
  }
13947
13954
  }, Vk = (e, t) => {
13948
13955
  const { client: n, createRequestOptions: a } = e.createPromiseClient(Ie, { method: "submitInplay" }), s = a({ retryAttempts: 0 });
@@ -13980,7 +13987,7 @@ const xk = {
13980
13987
  pageSize: 10
13981
13988
  }, Hk = (e, t, n, a, s) => {
13982
13989
  let o = 0;
13983
- const r = ie({ pageSize: xk.pageSize, page: 0 }), c = be({
13990
+ const r = oe({ pageSize: xk.pageSize, page: 0 }), c = Se({
13984
13991
  data: [],
13985
13992
  key: Date.now(),
13986
13993
  hasMore: !0,
@@ -13988,18 +13995,18 @@ const xk = {
13988
13995
  error: void 0
13989
13996
  }), l = hk(e), m = async () => {
13990
13997
  var f;
13991
- const y = t.get(), T = ((f = a.getStore().get().data) == null ? void 0 : f.map((_) => _.slId)) || [];
13998
+ const y = t.get(), T = ((f = a.getStore().get().data) == null ? void 0 : f.map((k) => k.slId)) || [];
13992
13999
  if (y && (T != null && T.length)) {
13993
- const _ = n.get();
13994
- _ && T.push(_), c.setKey("loading", !0), c.setKey("data", []);
14000
+ const k = n.get();
14001
+ k && T.push(k), c.setKey("loading", !0), c.setKey("data", []);
13995
14002
  const N = await l({
13996
14003
  eventId: y,
13997
14004
  usersIds: T
13998
14005
  });
13999
14006
  c.set({
14000
- data: N.data.map((E, b) => ({
14001
- ...E.attributes,
14002
- friendsRank: b + 1
14007
+ data: N.data.map((h, A) => ({
14008
+ ...h.attributes,
14009
+ friendsRank: A + 1
14003
14010
  })),
14004
14011
  hasMore: !1,
14005
14012
  key: Date.now(),
@@ -14081,7 +14088,7 @@ const tr = "sldl", Wn = "sldl_uid", Ji = "sldl_eid", Xi = "sldl_e_eid", Yk = /*
14081
14088
  Ce.debug(c);
14082
14089
  }
14083
14090
  e.deepLink = {
14084
- $store: new pt(be(o), "deep-link-context"),
14091
+ $store: new pt(Se(o), "deep-link-context"),
14085
14092
  getDeepLinkData: () => {
14086
14093
  const { data: c, used: l } = e.deepLink.$store.getValues();
14087
14094
  return { data: c, used: l };
@@ -14243,13 +14250,13 @@ const Ht = new It(), Jk = (e, t, n) => {
14243
14250
  }
14244
14251
  }, n();
14245
14252
  }, Zk = {
14246
- [C.FACTOID]: "insight",
14247
- [C.POLL]: "poll",
14248
- [C.TRIVIA]: "trivia",
14249
- [C.PREDICTION]: "prediction",
14250
- [C.TWEET]: "tweet"
14253
+ [U.FACTOID]: "insight",
14254
+ [U.POLL]: "poll",
14255
+ [U.TRIVIA]: "trivia",
14256
+ [U.PREDICTION]: "prediction",
14257
+ [U.TWEET]: "tweet"
14251
14258
  }, eh = (e, t, n) => {
14252
- e.sdk.uiState = be({}), e.ui = {
14259
+ e.sdk.uiState = Se({}), e.ui = {
14253
14260
  enableAppNotification: function() {
14254
14261
  e.sdk.uiState.setKey("appNotification", !0);
14255
14262
  },
@@ -14295,7 +14302,7 @@ const Ht = new It(), Jk = (e, t, n) => {
14295
14302
  switch (u.action) {
14296
14303
  case "notification-opened":
14297
14304
  e.sdk.uiState.set({
14298
- promotionExternalAd: f === Se.EXTERNAL_AD,
14305
+ promotionExternalAd: f === _e.EXTERNAL_AD,
14299
14306
  promotionBanner: !0,
14300
14307
  promotionNotification: !1,
14301
14308
  promotionOverlay: !0,
@@ -14313,7 +14320,7 @@ const Ht = new It(), Jk = (e, t, n) => {
14313
14320
  promotionBanner: !0,
14314
14321
  promotionOverlay: !0,
14315
14322
  promotionSidebar: !0,
14316
- promotionExternalAd: f === Se.EXTERNAL_AD
14323
+ promotionExternalAd: f === _e.EXTERNAL_AD
14317
14324
  });
14318
14325
  break;
14319
14326
  }
@@ -14323,7 +14330,7 @@ const Ht = new It(), Jk = (e, t, n) => {
14323
14330
  promotionBanner: !0,
14324
14331
  promotionOverlay: !0,
14325
14332
  promotionSidebar: !0,
14326
- promotionExternalAd: f === Se.EXTERNAL_AD
14333
+ promotionExternalAd: f === _e.EXTERNAL_AD
14327
14334
  });
14328
14335
  break;
14329
14336
  case "closed":
@@ -14352,7 +14359,7 @@ const Ht = new It(), Jk = (e, t, n) => {
14352
14359
  }), n();
14353
14360
  }, th = (e, t, n) => {
14354
14361
  const a = { onMountedFired: !1 }, s = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
14355
- e.sdk = /* @__PURE__ */ Object.create(null), e.sdk.withAuth = !1, e.sdk.onMount = ({ name: r, clear: c }, l) => {
14362
+ e.sdk = /* @__PURE__ */ Object.create(null), e.sdk.options = Se(t), e.sdk.withAuth = !1, e.sdk.onMount = ({ name: r, clear: c }, l) => {
14356
14363
  var m, u;
14357
14364
  if (s.has(r)) {
14358
14365
  const d = o.get(r);
@@ -14409,7 +14416,7 @@ const Ht = new It(), Jk = (e, t, n) => {
14409
14416
  n.append(a, s);
14410
14417
  return n.toString();
14411
14418
  }, sh = (e, t, n, a) => {
14412
- const s = be({});
14419
+ const s = Se({});
14413
14420
  return Qn(s, () => nh(e, [t, n]).subscribe(async ({ data: o, loading: r }) => {
14414
14421
  var y;
14415
14422
  const c = o === void 0 && r === !1 ? "https://streamlayer.io" : o == null ? void 0 : o.url, l = a.get() || "", m = t.get() || "", u = n.get() || "", d = {
@@ -14421,9 +14428,9 @@ const Ht = new It(), Jk = (e, t, n) => {
14421
14428
  s.setKey("loading", !0);
14422
14429
  let T = window.location.search, f = window.location.hash;
14423
14430
  T && f || f ? T = `?${or(T, d)}` : f = `#${or("", d)}`;
14424
- const _ = window.location.origin + window.location.pathname + T + f;
14431
+ const k = window.location.origin + window.location.pathname + T + f;
14425
14432
  try {
14426
- const N = await ah(e, { web: _, mobile: c });
14433
+ const N = await ah(e, { web: k, mobile: c });
14427
14434
  s.set({
14428
14435
  data: (y = N.data) == null ? void 0 : y.link,
14429
14436
  loading: !1
@@ -14456,7 +14463,7 @@ const oh = (e, t, n, a) => {
14456
14463
  autoHideDuration: 1e6,
14457
14464
  data: {
14458
14465
  questionId: "onboarding",
14459
- questionType: C.UNSET,
14466
+ questionType: U.UNSET,
14460
14467
  onboarding: {
14461
14468
  ...s,
14462
14469
  instantOpen: !a.getOnboardingInstantOpen({
@@ -14493,7 +14500,7 @@ const oh = (e, t, n, a) => {
14493
14500
  }
14494
14501
  }, rh = (e, t, n, a) => {
14495
14502
  let s = !1;
14496
- const o = new zi(), r = ie(ae.Unset);
14503
+ const o = new zi(), r = oe(ae.Unset);
14497
14504
  r.subscribe((l) => {
14498
14505
  l !== ae.Unset && (l === ae.Optional || l === ae.Required ? s === !1 && (oh(e, t, a, o), s = !0) : e.onboardingProcessed.set(!0), l === ae.Completed && t.activeQuestionId.invalidate(), o.setOnboardingInstantOpen({
14499
14506
  userId: t.userId.get() || "",
@@ -14524,9 +14531,9 @@ const oh = (e, t, n, a) => {
14524
14531
  }
14525
14532
  } };
14526
14533
  }, ih = (e, t, n, a) => {
14527
- const s = be(void 0), o = Ki(a), r = async () => {
14534
+ const s = Se(void 0), o = Ki(a), r = async () => {
14528
14535
  var T, f;
14529
- const l = e.get(), m = t.get(), u = (T = n.getStore().get().data) == null ? void 0 : T.map((_) => _.slId);
14536
+ const l = e.get(), m = t.get(), u = (T = n.getStore().get().data) == null ? void 0 : T.map((k) => k.slId);
14530
14537
  if (!u)
14531
14538
  return;
14532
14539
  const d = {
@@ -14552,7 +14559,7 @@ const oh = (e, t, n, a) => {
14552
14559
  usersIds: [...l, c]
14553
14560
  };
14554
14561
  return (y = (d = (await o(m)).data) == null ? void 0 : d.attributes) == null ? void 0 : y.summary;
14555
- }, lh = /* @__PURE__ */ new Set([C.POLL, C.PREDICTION, C.TRIVIA]);
14562
+ }, lh = /* @__PURE__ */ new Set([U.POLL, U.PREDICTION, U.TRIVIA]);
14556
14563
  class mh extends Yi {
14557
14564
  constructor(n, a, s) {
14558
14565
  super(n, a);
@@ -14582,6 +14589,7 @@ class mh extends Yi {
14582
14589
  p(this, "openedQuestionId");
14583
14590
  p(this, "advertisement");
14584
14591
  p(this, "onboardingProcessed");
14592
+ p(this, "friendsTabEnabled");
14585
14593
  p(this, "notifications");
14586
14594
  p(this, "transport");
14587
14595
  /** gamification background class, handle subscriptions and notifications for closed overlay */
@@ -14600,53 +14608,53 @@ class mh extends Yi {
14600
14608
  this.onboardingProcessed.subscribe((n) => {
14601
14609
  n && this.advertisement.connect();
14602
14610
  }), this.cancels.add(this.background.feedSubscription.addListener("feed-subscription-prediction-close", async (n) => {
14603
- var m, u, d, y, T, f, _, N, E, b, w;
14611
+ var m, u, d, y, T, f, k, N, h, A, w;
14604
14612
  if (!this.isInteractiveAllowed)
14605
14613
  return;
14606
14614
  const a = (u = (m = n.data) == null ? void 0 : m.attributes) == null ? void 0 : u.question, s = (y = (d = n.data) == null ? void 0 : d.attributes) == null ? void 0 : y.feedItem;
14607
14615
  if (!a || !(s != null && s.attributes))
14608
14616
  return;
14609
14617
  const { status: o, type: r, id: c, answers: l } = a;
14610
- if (o === de.RESOLVED && r === C.PREDICTION) {
14611
- const O = this.background.getCurrentSessionId({
14618
+ if (o === de.RESOLVED && r === U.PREDICTION) {
14619
+ const b = this.background.getCurrentSessionId({
14612
14620
  prefix: `notification-id:${c}`
14613
- }), A = [...this.feedList.getValues().data || []], L = A.findIndex((X) => X.id === c), v = A[L];
14614
- let U = (_ = (f = (T = v == null ? void 0 : v.attributes) == null ? void 0 : T.attributes) == null ? void 0 : f.value) == null ? void 0 : _.answerId;
14615
- const $ = Ka(c, this.transport), ne = $.subscribe(() => {
14621
+ }), v = [...this.feedList.getValues().data || []], R = v.findIndex((Z) => Z.id === c), I = v[R];
14622
+ let M = (k = (f = (T = I == null ? void 0 : I.attributes) == null ? void 0 : T.attributes) == null ? void 0 : f.value) == null ? void 0 : k.answerId;
14623
+ const G = Ka(c, this.transport), J = G.subscribe(() => {
14616
14624
  });
14617
- await $.get().promise;
14618
- let K = $.get().data;
14619
- K || (K = await Ok(c, this.transport)), ne(), window.requestAnimationFrame(() => {
14620
- $.invalidate();
14621
- }), U || (U = (N = K == null ? void 0 : K.answers.find(({ youVoted: X }) => X)) == null ? void 0 : N.id);
14622
- const W = l.find(({ correct: X }) => X), B = U ? l.find(({ id: X }) => X === U) : void 0, V = !!(B != null && B.correct);
14623
- if (v && ((b = (E = A[L]) == null ? void 0 : E.attributes) == null ? void 0 : b.attributes.case) === "question") {
14625
+ await G.get().promise;
14626
+ let K = G.get().data;
14627
+ K || (K = await Ok(c, this.transport)), J(), window.requestAnimationFrame(() => {
14628
+ G.invalidate();
14629
+ }), M || (M = (N = K == null ? void 0 : K.answers.find(({ youVoted: Z }) => Z)) == null ? void 0 : N.id);
14630
+ const W = l.find(({ correct: Z }) => Z), V = M ? l.find(({ id: Z }) => Z === M) : void 0, q = !!(V != null && V.correct);
14631
+ if (I && ((A = (h = v[R]) == null ? void 0 : h.attributes) == null ? void 0 : A.attributes.case) === "question") {
14624
14632
  try {
14625
- A[L].attributes.attributes.value.answerId = U, A[L].attributes.attributes.value.openForVoting = !1, U && (A[L].attributes.attributes.value.status = V ? Qt.WON : Qt.LOST);
14633
+ v[R].attributes.attributes.value.answerId = M, v[R].attributes.attributes.value.openForVoting = !1, M && (v[R].attributes.attributes.value.status = q ? Qt.WON : Qt.LOST);
14626
14634
  } catch {
14627
14635
  }
14628
- this.feedList.getStore().mutate(A);
14636
+ this.feedList.getStore().mutate(v);
14629
14637
  }
14630
- if (!B || !W)
14638
+ if (!V || !W)
14631
14639
  return;
14632
14640
  ((w = this.openedQuestionId.get()) == null ? void 0 : w.questionId) !== a.id && this.notifications.add({
14633
14641
  type: et.QUESTION_RESOLVED,
14634
14642
  action: () => this.openQuestion(a.id, s),
14635
14643
  close: () => this.closeQuestion(c),
14636
- autoHideDuration: V ? 15e3 : 12e3,
14637
- id: O,
14644
+ autoHideDuration: q ? 15e3 : 12e3,
14645
+ id: b,
14638
14646
  emitEvent: !1,
14639
14647
  data: {
14640
14648
  questionId: c,
14641
- questionType: C.PREDICTION,
14649
+ questionType: U.PREDICTION,
14642
14650
  question: {
14643
- title: V ? `Congratulations! You answered correctly! You won ${W.points} pts!` : `Better luck next time! Correct: ${W == null ? void 0 : W.text}!`,
14651
+ title: q ? `Congratulations! You answered correctly! You won ${W.points} pts!` : `Better luck next time! Correct: ${W == null ? void 0 : W.text}!`,
14644
14652
  votedAnswer: {
14645
- title: B == null ? void 0 : B.text,
14646
- points: B == null ? void 0 : B.points
14653
+ title: V == null ? void 0 : V.text,
14654
+ points: V == null ? void 0 : V.points
14647
14655
  },
14648
14656
  correctAnswerTitle: W == null ? void 0 : W.text,
14649
- correct: !!V,
14657
+ correct: !!q,
14650
14658
  predictionResult: o === de.RESOLVED,
14651
14659
  questionTitle: a == null ? void 0 : a.subject
14652
14660
  }
@@ -14734,10 +14742,10 @@ class mh extends Yi {
14734
14742
  });
14735
14743
  const T = s.get().data;
14736
14744
  if (o(), T) {
14737
- const f = T.answers.find((b) => b.correct === !0), _ = T.answers.findIndex((b) => b.id === a), N = T.answers[_], E = T.answers.every(({ percentageDecimal: b }, w) => b === (r == null ? void 0 : r.answers[w].percentageDecimal));
14738
- l[m].attributes.attributes.value.answerId = a, l[m].attributes.attributes.value.openForVoting = !1, l[m].attributes.attributes.value.text = (N == null ? void 0 : N.text) || "", f && (l[m].attributes.attributes.value.status = f.id === a ? Qt.WON : Qt.LOST), this.feedList.getStore().mutate([...l]), T.answers[_].correct = (f == null ? void 0 : f.id) === a, T.answers[_].youVoted = !0, E && T.answers.forEach((b) => {
14739
- b.percentageDecimal = 0;
14740
- }), (f == null ? void 0 : f.id) === a && (T.answers[_].pointsEarned = T.status === de.RESOLVED ? 0 : f.points), s.mutate({ ...T });
14745
+ const f = T.answers.find((A) => A.correct === !0), k = T.answers.findIndex((A) => A.id === a), N = T.answers[k], h = T.answers.every(({ percentageDecimal: A }, w) => A === (r == null ? void 0 : r.answers[w].percentageDecimal));
14746
+ l[m].attributes.attributes.value.answerId = a, l[m].attributes.attributes.value.openForVoting = !1, l[m].attributes.attributes.value.text = (N == null ? void 0 : N.text) || "", f && (l[m].attributes.attributes.value.status = f.id === a ? Qt.WON : Qt.LOST), this.feedList.getStore().mutate([...l]), T.answers[k].correct = (f == null ? void 0 : f.id) === a, T.answers[k].youVoted = !0, h && T.answers.forEach((A) => {
14747
+ A.percentageDecimal = 0;
14748
+ }), (f == null ? void 0 : f.id) === a && (T.answers[k].pointsEarned = T.status === de.RESOLVED ? 0 : f.points), s.mutate({ ...T });
14741
14749
  }
14742
14750
  this.submitAnswerTimeout && clearTimeout(this.submitAnswerTimeout), this.submitAnswerTimeout = setTimeout(() => {
14743
14751
  this.userSummary.invalidate();
@@ -14817,19 +14825,19 @@ class mh extends Yi {
14817
14825
  * skipping questions with inAppSilence === ON
14818
14826
  */
14819
14827
  p(this, "showInApp", (n) => {
14820
- var s, o, r, c, l, m, u, d, y, T, f, _, N, E;
14828
+ var s, o, r, c, l, m, u, d, y, T, f, k, N, h, A, w;
14821
14829
  const a = this.onboardingStatus.$store.get();
14822
- if (n && n.data && a && a !== ae.Unset && ((s = n.data.question) == null ? void 0 : s.id) !== void 0 && n.data.question.notification !== void 0 && ((r = (o = n.data.question) == null ? void 0 : o.bypassNotifications) == null ? void 0 : r.inAppSilence) !== ti.ON && n.data.question.status === de.ACTIVE && !n.data.question.marketClosed) {
14830
+ if (n && n.data && a && a !== ae.Unset && ((s = n.data.question) == null ? void 0 : s.id) !== void 0 && ((r = (o = n.data.question) == null ? void 0 : o.bypassNotifications) == null ? void 0 : r.inAppSilence) !== ti.ON && n.data.question.status === de.ACTIVE && !n.data.question.marketClosed) {
14823
14831
  if (lh.has(n.data.question.type))
14824
- this.isInteractiveAllowed && this.notifications.add({
14832
+ this.isInteractiveAllowed && n.data.question.notification !== void 0 && this.notifications.add({
14825
14833
  type: et.QUESTION,
14826
14834
  action: () => {
14827
- var b, w, O;
14828
- return this.openQuestion((w = (b = n.data) == null ? void 0 : b.question) == null ? void 0 : w.id, (O = n.data) == null ? void 0 : O.feedItem);
14835
+ var b, v, R;
14836
+ return this.openQuestion((v = (b = n.data) == null ? void 0 : b.question) == null ? void 0 : v.id, (R = n.data) == null ? void 0 : R.feedItem);
14829
14837
  },
14830
14838
  close: () => {
14831
- var b, w;
14832
- return this.closeQuestion((w = (b = n.data) == null ? void 0 : b.question) == null ? void 0 : w.id);
14839
+ var b, v;
14840
+ return this.closeQuestion((v = (b = n.data) == null ? void 0 : b.question) == null ? void 0 : v.id);
14833
14841
  },
14834
14842
  autoHideDuration: 1e3 * 60,
14835
14843
  id: this.background.getCurrentSessionId({
@@ -14845,16 +14853,16 @@ class mh extends Yi {
14845
14853
  }
14846
14854
  }
14847
14855
  });
14848
- else if (n.data.question.type === C.FACTOID) {
14849
- const b = (c = n.data.question.options) == null ? void 0 : c.options.value, w = {
14850
- heading: n.data.question.notification.title,
14851
- body: n.data.question.notification.body,
14856
+ else if (n.data.question.type === U.FACTOID) {
14857
+ const b = (c = n.data.question.options) == null ? void 0 : c.options.value, v = ((l = n.data.question.notification) == null ? void 0 : l.title) || n.data.question.subject || "", R = ((m = n.data.question.notification) == null ? void 0 : m.body) || b.body, I = {
14858
+ heading: v,
14859
+ body: R,
14852
14860
  imageMode: b == null ? void 0 : b.imageMode,
14853
14861
  image: b == null ? void 0 : b.image,
14854
14862
  video: {
14855
- id: ((l = b == null ? void 0 : b.video) == null ? void 0 : l.id) || "",
14856
- url: ((m = b == null ? void 0 : b.video) == null ? void 0 : m.url) || "",
14857
- thumbnailUrl: ((u = b == null ? void 0 : b.video) == null ? void 0 : u.thumbnailUrl) || ""
14863
+ id: ((u = b == null ? void 0 : b.video) == null ? void 0 : u.id) || "",
14864
+ url: ((d = b == null ? void 0 : b.video) == null ? void 0 : d.url) || "",
14865
+ thumbnailUrl: ((y = b == null ? void 0 : b.video) == null ? void 0 : y.thumbnailUrl) || ""
14858
14866
  },
14859
14867
  webLink: {
14860
14868
  label: "",
@@ -14864,12 +14872,12 @@ class mh extends Yi {
14864
14872
  this.notifications.add({
14865
14873
  type: et.QUESTION,
14866
14874
  action: () => {
14867
- var O, A, L;
14868
- return this.openQuestion((A = (O = n == null ? void 0 : n.data) == null ? void 0 : O.question) == null ? void 0 : A.id, (L = n == null ? void 0 : n.data) == null ? void 0 : L.feedItem);
14875
+ var M, G, J;
14876
+ return this.openQuestion((G = (M = n == null ? void 0 : n.data) == null ? void 0 : M.question) == null ? void 0 : G.id, (J = n == null ? void 0 : n.data) == null ? void 0 : J.feedItem);
14869
14877
  },
14870
14878
  close: () => {
14871
- var O, A;
14872
- return this.closeQuestion((A = (O = n == null ? void 0 : n.data) == null ? void 0 : O.question) == null ? void 0 : A.id);
14879
+ var M, G;
14880
+ return this.closeQuestion((G = (M = n == null ? void 0 : n.data) == null ? void 0 : M.question) == null ? void 0 : G.id);
14873
14881
  },
14874
14882
  autoHideDuration: 1e3 * 120,
14875
14883
  emitEvent: !0,
@@ -14877,28 +14885,28 @@ class mh extends Yi {
14877
14885
  data: {
14878
14886
  questionId: n.data.question.id,
14879
14887
  questionType: n.data.question.type,
14880
- insight: w
14888
+ insight: I
14881
14889
  }
14882
14890
  });
14883
- } else if (n.data.question.type === C.TWEET) {
14884
- const b = (d = n.data.question.options) == null ? void 0 : d.options.value, w = {
14885
- title: (y = n.data.question.notification) == null ? void 0 : y.title,
14886
- body: (T = n.data.question.notification) == null ? void 0 : T.body,
14887
- image: (f = n.data.question.notification) == null ? void 0 : f.image,
14888
- account: ((_ = b == null ? void 0 : b.tweetMeta) == null ? void 0 : _.account) || "",
14889
- accountVerified: !!((N = b == null ? void 0 : b.tweetMeta) != null && N.accountVerified),
14890
- tweet: (E = b == null ? void 0 : b.tweetMeta) == null ? void 0 : E.tweet,
14891
+ } else if (n.data.question.type === U.TWEET && n.data.question.notification !== void 0) {
14892
+ const b = (T = n.data.question.options) == null ? void 0 : T.options.value, v = {
14893
+ title: (f = n.data.question.notification) == null ? void 0 : f.title,
14894
+ body: (k = n.data.question.notification) == null ? void 0 : k.body,
14895
+ image: (N = n.data.question.notification) == null ? void 0 : N.image,
14896
+ account: ((h = b == null ? void 0 : b.tweetMeta) == null ? void 0 : h.account) || "",
14897
+ accountVerified: !!((A = b == null ? void 0 : b.tweetMeta) != null && A.accountVerified),
14898
+ tweet: (w = b == null ? void 0 : b.tweetMeta) == null ? void 0 : w.tweet,
14891
14899
  tweetId: n.data.question.id
14892
14900
  };
14893
14901
  this.notifications.add({
14894
14902
  type: et.QUESTION,
14895
14903
  action: () => {
14896
- var O, A, L;
14897
- return this.openQuestion((A = (O = n.data) == null ? void 0 : O.question) == null ? void 0 : A.id, (L = n.data) == null ? void 0 : L.feedItem);
14904
+ var R, I, M;
14905
+ return this.openQuestion((I = (R = n.data) == null ? void 0 : R.question) == null ? void 0 : I.id, (M = n.data) == null ? void 0 : M.feedItem);
14898
14906
  },
14899
14907
  close: () => {
14900
- var O, A;
14901
- return this.closeQuestion((A = (O = n.data) == null ? void 0 : O.question) == null ? void 0 : A.id);
14908
+ var R, I;
14909
+ return this.closeQuestion((I = (R = n.data) == null ? void 0 : R.question) == null ? void 0 : I.id);
14902
14910
  },
14903
14911
  autoHideDuration: 1e3 * 120,
14904
14912
  emitEvent: !0,
@@ -14906,17 +14914,22 @@ class mh extends Yi {
14906
14914
  data: {
14907
14915
  questionId: n.data.question.id,
14908
14916
  questionType: n.data.question.type,
14909
- tweet: w
14917
+ tweet: v
14910
14918
  }
14911
14919
  });
14912
14920
  }
14913
14921
  }
14914
14922
  });
14915
- this.background = new Dk(s), this.advertisement = this.background.advertisement, this.onQuestionActivate = s.onQuestionActivate, this.feedSubscription = this.background.feedSubscription, this.activeQuestionId = this.background.activeQuestionId, this.openedQuestionId = this.background.openedQuestionId, this.storage = new zi(), this.feedList = this.background.feedList, this.friends = new Fe(Sk(this.background.userId, s.transport), "gamification:friends"), this.currentUserId = this.background.userId, this.openedUser = ie(void 0), this.onboardingProcessed = ie(!s.sdk.withAuth), this.leaderboardId = new Ne(ie(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = rh(this, this.background, s.transport, s.notifications), this.notifications = s.notifications, this.transport = s.transport, this.closeFeature = (o = !0) => s.sdk.closeFeature(o), this.openFeature = () => s.sdk.openFeature(Y.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = sh(this.transport, this.background.slStreamId, s.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = ih(this.background.slStreamId, this.background.userId, this.friends, this.transport), this.leaderboardList = Hk(this.transport, this.background.slStreamId, this.background.userId, this.friends), this.connect(), this.cancels.add(this.userSummary.$store.listen((o, r) => {
14923
+ this.background = new Dk(s), this.advertisement = this.background.advertisement, this.onQuestionActivate = s.onQuestionActivate, this.feedSubscription = this.background.feedSubscription, this.activeQuestionId = this.background.activeQuestionId, this.openedQuestionId = this.background.openedQuestionId, this.storage = new zi(), this.feedList = this.background.feedList, this.friends = new Fe(Sk(this.background.userId, s.transport), "gamification:friends"), this.currentUserId = this.background.userId, this.openedUser = oe(void 0), this.onboardingProcessed = oe(!s.sdk.withAuth), this.leaderboardId = new Ne(oe(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = rh(this, this.background, s.transport, s.notifications), this.notifications = s.notifications, this.transport = s.transport, this.closeFeature = (o = !0) => s.sdk.closeFeature(o), this.openFeature = () => s.sdk.openFeature(j.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = sh(this.transport, this.background.slStreamId, s.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = ih(this.background.slStreamId, this.background.userId, this.friends, this.transport), this.leaderboardList = Hk(this.transport, this.background.slStreamId, this.background.userId, this.friends), this.connect(), this.cancels.add(this.userSummary.$store.listen((o, r) => {
14916
14924
  r != null && r.summary && (o != null && o.summary) && this.leaderboardList.invalidate();
14917
14925
  })), this.cancels.add(this.onboardingStatus.$store.listen(this.checkInteractiveFlag)), this.cancels.add(this.background.moderation.getStore().listen(this.checkInteractiveFlag)), this.cancels.add(this.settings.subscribe(this.checkInteractiveFlag)), this.cancels.add(this.onboardingStatus.$store.listen((o, r) => {
14918
14926
  (r === void 0 || o !== ae.Unset) && this.background.activeQuestionId.invalidate();
14919
- })), this.background.activeQuestionId.listen(this.showInApp), s.sdk.onMount({ name: "gamification", clear: !0 }, () => () => {
14927
+ })), this.background.activeQuestionId.listen(this.showInApp), this.friendsTabEnabled = oe(!1), this.cancels.add(s.sdk.options.subscribe((o) => {
14928
+ o.friendsTab === "disabled" ? this.friendsTabEnabled.set(!1) : o.friendsTab === "enabled" && this.friendsTabEnabled.set(!0);
14929
+ })), this.cancels.add(this.settings.subscribe((o) => {
14930
+ var r, c;
14931
+ s.sdk.options.get().friendsTab === "activatedGame" && this.friendsTabEnabled.set(!!((c = (r = o.inplayGame) == null ? void 0 : r.titleCard) != null && c.optIn));
14932
+ })), s.sdk.onMount({ name: "gamification", clear: !0 }, () => () => {
14920
14933
  for (const o of this.cancels)
14921
14934
  o(), this.cancels.delete(o);
14922
14935
  });
@@ -14926,19 +14939,19 @@ class mh extends Yi {
14926
14939
  }
14927
14940
  }
14928
14941
  const uh = {
14929
- [Y.GAMES]: !0
14942
+ [j.GAMES]: !0
14930
14943
  };
14931
14944
  class dh extends Yi {
14932
14945
  constructor(t, n) {
14933
14946
  super(t, n);
14934
14947
  }
14935
14948
  }
14936
- const ph = (e, t, n) => e.type === Y.GAMES ? new mh(e, t, n) : new dh(e, t), Th = (e, t, n) => {
14937
- e.features = /* @__PURE__ */ new Map(), e.sdk.featuresList = new Ne(ie(/* @__PURE__ */ new Set()), "features-list"), e.activeFeature = new Ne(ie(Y.UNSET), "activeFeature"), e.sdk.getFeatures = () => e.features, e.sdk.getFeature = (a) => e.features.get(a), e.sdk.getActiveFeature = () => e.activeFeature.getStore(), e.sdk.openFeature = (a) => {
14949
+ const ph = (e, t, n) => e.type === j.GAMES ? new mh(e, t, n) : new dh(e, t), Th = (e, t, n) => {
14950
+ e.features = /* @__PURE__ */ new Map(), e.sdk.featuresList = new Ne(oe(/* @__PURE__ */ new Set()), "features-list"), e.activeFeature = new Ne(oe(j.UNSET), "activeFeature"), e.sdk.getFeatures = () => e.features, e.sdk.getFeature = (a) => e.features.get(a), e.sdk.getActiveFeature = () => e.activeFeature.getStore(), e.sdk.openFeature = (a) => {
14938
14951
  e.activeFeature.setValue(a);
14939
14952
  }, e.sdk.closeFeature = (a = !1) => {
14940
14953
  const s = e.activeFeature.getValue();
14941
- if (e.activeFeature.setValue(Y.UNSET), a && s) {
14954
+ if (e.activeFeature.setValue(j.UNSET), a && s) {
14942
14955
  e.features.delete(s);
14943
14956
  const o = e.sdk.featuresList.getValue();
14944
14957
  o && o.delete(s), e.sdk.featuresList.setValue(o);
@@ -15007,7 +15020,7 @@ class yh {
15007
15020
  this.analytics.write("invitation", {
15008
15021
  common: {
15009
15022
  ...this.analytics.commonStore.getValues(),
15010
- kind: re.INVITATION_ACCEPTED
15023
+ kind: ie.INVITATION_ACCEPTED
15011
15024
  },
15012
15025
  category: Ga.GAMES,
15013
15026
  from: Ba.UNSET
@@ -15017,7 +15030,7 @@ class yh {
15017
15030
  this.analytics.write("invitation", {
15018
15031
  common: {
15019
15032
  ...this.analytics.commonStore.getValues(),
15020
- kind: re.INVITATION_SENT
15033
+ kind: ie.INVITATION_SENT
15021
15034
  },
15022
15035
  category: Ga.GAMES,
15023
15036
  from: t || Ba.UNSET
@@ -15044,7 +15057,7 @@ class fh {
15044
15057
  this.analytics.write("interactions", {
15045
15058
  common: {
15046
15059
  ...this.analytics.commonStore.getValues(),
15047
- kind: re.INTERACTIONS
15060
+ kind: ie.INTERACTIONS
15048
15061
  },
15049
15062
  actionType: Ha.TAP
15050
15063
  });
@@ -15053,7 +15066,7 @@ class fh {
15053
15066
  this.analytics.write("interactions", {
15054
15067
  common: {
15055
15068
  ...this.analytics.commonStore.getValues(),
15056
- kind: re.INTERACTIONS
15069
+ kind: ie.INTERACTIONS
15057
15070
  },
15058
15071
  actionType: Ha.SCROLL
15059
15072
  });
@@ -15076,13 +15089,13 @@ class fh {
15076
15089
  }
15077
15090
  }
15078
15091
  const gh = {
15079
- [Se.UNSET]: Le.UNSET,
15080
- [Se.INGAME_IAB21]: Le.PROMOTION_INGAME_IAB21,
15081
- [Se.INGAME_IAB11_LBAR]: Le.PROMOTION_INGAME_IAB11_LBAR,
15082
- [Se.INGAME_IAB11]: Le.PROMOTION_INGAME_IAB11,
15083
- [Se.INGAME_IAB21_LBAR]: Le.PROMOTION_INGAME_IAB21_LBAR,
15084
- [Se.INGAME_IAB61]: Le.PROMOTION_INGAME_IAB61,
15085
- [Se.EXTERNAL_AD]: Le.PROMOTION_GAM
15092
+ [_e.UNSET]: Le.UNSET,
15093
+ [_e.INGAME_IAB21]: Le.PROMOTION_INGAME_IAB21,
15094
+ [_e.INGAME_IAB11_LBAR]: Le.PROMOTION_INGAME_IAB11_LBAR,
15095
+ [_e.INGAME_IAB11]: Le.PROMOTION_INGAME_IAB11,
15096
+ [_e.INGAME_IAB21_LBAR]: Le.PROMOTION_INGAME_IAB21_LBAR,
15097
+ [_e.INGAME_IAB61]: Le.PROMOTION_INGAME_IAB61,
15098
+ [_e.EXTERNAL_AD]: Le.PROMOTION_GAM
15086
15099
  };
15087
15100
  class kh {
15088
15101
  constructor(t) {
@@ -15091,24 +15104,24 @@ class kh {
15091
15104
  this.analytics.write("games", {
15092
15105
  common: {
15093
15106
  ...this.analytics.commonStore.getValues(),
15094
- kind: re.POLLS_RECEIVED,
15107
+ kind: ie.POLLS_RECEIVED,
15095
15108
  topicId: t,
15096
15109
  topicType: se.POLLS_PROMOTION,
15097
15110
  topicSubType: n
15098
15111
  },
15099
- pollOpenedFrom: Ee.UNSET
15112
+ pollOpenedFrom: be.UNSET
15100
15113
  });
15101
15114
  });
15102
15115
  p(this, "opened", ({ id: t }, { topicSubType: n }) => {
15103
15116
  this.analytics.write("games", {
15104
15117
  common: {
15105
15118
  ...this.analytics.commonStore.getValues(),
15106
- kind: re.POLLS_OPENED,
15119
+ kind: ie.POLLS_OPENED,
15107
15120
  topicId: t,
15108
15121
  topicType: se.POLLS_PROMOTION,
15109
15122
  topicSubType: n
15110
15123
  },
15111
- pollOpenedFrom: Ee.UNSET
15124
+ pollOpenedFrom: be.UNSET
15112
15125
  });
15113
15126
  });
15114
15127
  p(this, "videoPlay", ({ id: t }, { topicSubType: n }) => {
@@ -15116,11 +15129,11 @@ class kh {
15116
15129
  common: {
15117
15130
  ...this.analytics.commonStore.getValues(),
15118
15131
  topicId: t,
15119
- kind: re.AD_VIDEO_PLAYED,
15132
+ kind: ie.AD_VIDEO_PLAYED,
15120
15133
  topicType: se.POLLS_PROMOTION,
15121
15134
  topicSubType: n
15122
15135
  },
15123
- pollOpenedFrom: Ee.UNSET
15136
+ pollOpenedFrom: be.UNSET
15124
15137
  });
15125
15138
  });
15126
15139
  p(this, "buttonSelect", ({ id: t }, { topicSubType: n }) => {
@@ -15128,11 +15141,11 @@ class kh {
15128
15141
  common: {
15129
15142
  ...this.analytics.commonStore.getValues(),
15130
15143
  topicId: t,
15131
- kind: re.AD_BUTTON_NAVIGATED,
15144
+ kind: ie.AD_BUTTON_NAVIGATED,
15132
15145
  topicType: se.POLLS_PROMOTION,
15133
15146
  topicSubType: n
15134
15147
  },
15135
- pollOpenedFrom: Ee.UNSET
15148
+ pollOpenedFrom: be.UNSET
15136
15149
  });
15137
15150
  });
15138
15151
  p(this, "bannerSelect", ({ id: t }, { topicSubType: n }) => {
@@ -15140,11 +15153,11 @@ class kh {
15140
15153
  common: {
15141
15154
  ...this.analytics.commonStore.getValues(),
15142
15155
  topicId: t,
15143
- kind: re.AD_BANNER_NAVIGATED,
15156
+ kind: ie.AD_BANNER_NAVIGATED,
15144
15157
  topicType: se.POLLS_PROMOTION,
15145
15158
  topicSubType: n
15146
15159
  },
15147
- pollOpenedFrom: Ee.UNSET
15160
+ pollOpenedFrom: be.UNSET
15148
15161
  });
15149
15162
  });
15150
15163
  this.analytics = t, this.analytics.onConnect(() => {
@@ -15176,34 +15189,34 @@ class kh {
15176
15189
  }
15177
15190
  }
15178
15191
  const Wt = {
15179
- [C.UNSET]: se.UNSET,
15180
- [C.FACTOID]: se.POLLS_INSIGHT,
15181
- [C.POLL]: se.POLLS_POLL,
15182
- [C.PREDICTION]: se.POLLS_PREDICTION,
15183
- [C.PROMOTION]: se.POLLS_PROMOTION,
15184
- [C.TRIVIA]: se.POLLS_TRIVIA,
15185
- [C.TWEET]: se.POLLS_TWITTER
15192
+ [U.UNSET]: se.UNSET,
15193
+ [U.FACTOID]: se.POLLS_INSIGHT,
15194
+ [U.POLL]: se.POLLS_POLL,
15195
+ [U.PREDICTION]: se.POLLS_PREDICTION,
15196
+ [U.PROMOTION]: se.POLLS_PROMOTION,
15197
+ [U.TRIVIA]: se.POLLS_TRIVIA,
15198
+ [U.TWEET]: se.POLLS_TWITTER
15186
15199
  };
15187
- C.UNSET + "", Me.UNSET, C.FACTOID + "", Me.POLLS, C.POLL + "", Me.POLLS, C.PREDICTION + "", Me.POLLS, C.PROMOTION + "", Me.POLLS, C.TRIVIA + "", Me.POLLS, C.TWEET + "", Me.POLLS;
15200
+ U.UNSET + "", Me.UNSET, U.FACTOID + "", Me.POLLS, U.POLL + "", Me.POLLS, U.PREDICTION + "", Me.POLLS, U.PROMOTION + "", Me.POLLS, U.TRIVIA + "", Me.POLLS, U.TWEET + "", Me.POLLS;
15188
15201
  const hh = {
15189
- [Y.UNSET]: me.UNSET,
15190
- [Y.INPLAY]: me.INPLAY,
15191
- [Y.MESSAGING]: me.MESSAGING,
15192
- [Y.STATISTICS]: me.STATS,
15193
- [Y.BETTING]: me.BETTING,
15194
- [Y.TWITTER]: me.TWITTER,
15195
- [Y.MERCHANDISE]: me.MERCHANDISE,
15196
- [Y.CONTESTS]: me.CONTESTS,
15197
- [Y.VOICE_CHAT]: me.CALLING,
15198
- [Y.TICKETS]: me.TICKETS,
15199
- [Y.WHOIS_WATCHING]: me.WHOISWATCHING,
15200
- [Y.PROFILE]: me.PROFILE,
15201
- [Y.GAMES]: me.POLLS,
15202
+ [j.UNSET]: me.UNSET,
15203
+ [j.INPLAY]: me.INPLAY,
15204
+ [j.MESSAGING]: me.MESSAGING,
15205
+ [j.STATISTICS]: me.STATS,
15206
+ [j.BETTING]: me.BETTING,
15207
+ [j.TWITTER]: me.TWITTER,
15208
+ [j.MERCHANDISE]: me.MERCHANDISE,
15209
+ [j.CONTESTS]: me.CONTESTS,
15210
+ [j.VOICE_CHAT]: me.CALLING,
15211
+ [j.TICKETS]: me.TICKETS,
15212
+ [j.WHOIS_WATCHING]: me.WHOISWATCHING,
15213
+ [j.PROFILE]: me.PROFILE,
15214
+ [j.GAMES]: me.POLLS,
15202
15215
  // ??
15203
- [Y.GOLF_STATISTICS]: me.STATS,
15216
+ [j.GOLF_STATISTICS]: me.STATS,
15204
15217
  // ??
15205
- [Y.HIGHLIGHTS]: me.HIGHLIGHTS,
15206
- [Y.PUBLIC_CHAT]: me.PUBLIC_CHAT
15218
+ [j.HIGHLIGHTS]: me.HIGHLIGHTS,
15219
+ [j.PUBLIC_CHAT]: me.PUBLIC_CHAT
15207
15220
  };
15208
15221
  class Sh {
15209
15222
  constructor(t) {
@@ -15212,7 +15225,7 @@ class Sh {
15212
15225
  this.analytics.write("notification", {
15213
15226
  common: {
15214
15227
  ...this.analytics.commonStore.getValues(),
15215
- kind: re.NOTIFICATION_RECEIVED,
15228
+ kind: ie.NOTIFICATION_RECEIVED,
15216
15229
  topicId: t,
15217
15230
  topicType: n ? Wt[n] : se.UNSET
15218
15231
  },
@@ -15224,7 +15237,7 @@ class Sh {
15224
15237
  this.analytics.write("notification", {
15225
15238
  common: {
15226
15239
  ...this.analytics.commonStore.getValues(),
15227
- kind: re.NOTIFICATION_OPENED,
15240
+ kind: ie.NOTIFICATION_OPENED,
15228
15241
  topicId: t,
15229
15242
  topicType: n ? Wt[n] : se.UNSET
15230
15243
  },
@@ -15257,11 +15270,11 @@ class _h {
15257
15270
  this.analytics.write("games", {
15258
15271
  common: {
15259
15272
  ...this.analytics.commonStore.getValues(),
15260
- kind: re.POLLS_RECEIVED,
15273
+ kind: ie.POLLS_RECEIVED,
15261
15274
  topicId: t,
15262
15275
  topicType: n ? Wt[n] : se.UNSET
15263
15276
  },
15264
- pollOpenedFrom: Ee.UNSET
15277
+ pollOpenedFrom: be.UNSET
15265
15278
  });
15266
15279
  });
15267
15280
  // poll is opened from notification or list
@@ -15269,11 +15282,11 @@ class _h {
15269
15282
  this.analytics.write("games", {
15270
15283
  common: {
15271
15284
  ...this.analytics.commonStore.getValues(),
15272
- kind: re.POLLS_OPENED,
15285
+ kind: ie.POLLS_OPENED,
15273
15286
  topicId: t,
15274
15287
  topicType: n ? Wt[n] : se.UNSET
15275
15288
  },
15276
- pollOpenedFrom: a === "list" ? Ee.PICK_HISTORY : Ee.IN_APP
15289
+ pollOpenedFrom: a === "list" ? be.PICK_HISTORY : be.IN_APP
15277
15290
  });
15278
15291
  });
15279
15292
  // poll is voted
@@ -15281,11 +15294,11 @@ class _h {
15281
15294
  this.analytics.write("games", {
15282
15295
  common: {
15283
15296
  ...this.analytics.commonStore.getValues(),
15284
- kind: re.POLLS_VOTE,
15297
+ kind: ie.POLLS_VOTE,
15285
15298
  topicId: t,
15286
15299
  topicType: n ? Wt[n] : se.UNSET
15287
15300
  },
15288
- pollOpenedFrom: Ee.UNSET
15301
+ pollOpenedFrom: be.UNSET
15289
15302
  });
15290
15303
  });
15291
15304
  // onboarding passed, user is now able to vote
@@ -15293,9 +15306,9 @@ class _h {
15293
15306
  this.analytics.write("games", {
15294
15307
  common: {
15295
15308
  ...this.analytics.commonStore.getValues(),
15296
- kind: re.GAMES_JOINED
15309
+ kind: ie.GAMES_JOINED
15297
15310
  },
15298
- pollOpenedFrom: Ee.UNSET
15311
+ pollOpenedFrom: be.UNSET
15299
15312
  });
15300
15313
  });
15301
15314
  // user clicked on link in poll and navigated to another page
@@ -15303,9 +15316,9 @@ class _h {
15303
15316
  this.analytics.write("games", {
15304
15317
  common: {
15305
15318
  ...this.analytics.commonStore.getValues(),
15306
- kind: re.POLLS_NAVIGATED
15319
+ kind: ie.POLLS_NAVIGATED
15307
15320
  },
15308
- pollOpenedFrom: Ee.UNSET
15321
+ pollOpenedFrom: be.UNSET
15309
15322
  });
15310
15323
  });
15311
15324
  this.analytics = t, this.analytics.onConnect(() => {
@@ -15336,7 +15349,7 @@ class _h {
15336
15349
  }
15337
15350
  const Eh = ({ transport: e, $commonStore: t }) => {
15338
15351
  let n;
15339
- const a = ie(!1), s = 5e3, { client: o, queryKey: r } = e.createPromiseClient(Vi, {
15352
+ const a = oe(!1), s = 5e3, { client: o, queryKey: r } = e.createPromiseClient(Vi, {
15340
15353
  method: "send",
15341
15354
  params: [a]
15342
15355
  }), c = e.nanoquery.createFetcherStore(r, {
@@ -15349,7 +15362,7 @@ const Eh = ({ transport: e, $commonStore: t }) => {
15349
15362
  value: {
15350
15363
  common: {
15351
15364
  ...d,
15352
- kind: re.SESSION_HEARTBEAT
15365
+ kind: ie.SESSION_HEARTBEAT
15353
15366
  }
15354
15367
  }
15355
15368
  }
@@ -15409,7 +15422,7 @@ class bh {
15409
15422
  this.onConnect(() => t.stores.slStreamId.getAtomStore().subscribe((n) => {
15410
15423
  this.writeCommon("eventId", n);
15411
15424
  })), this.onConnect(() => t.sdk.getActiveFeature().subscribe((n) => {
15412
- n && this.writeCommon("category", hh[n]), n !== Y.UNSET ? this.writeCommon("overlaySessionId", qa()) : this.writeCommon("overlaySessionId", "");
15425
+ n && this.writeCommon("category", hh[n]), n !== j.UNSET ? this.writeCommon("overlaySessionId", qa()) : this.writeCommon("overlaySessionId", "");
15413
15426
  })), this.onConnect(() => {
15414
15427
  const n = window.matchMedia("(orientation: portrait)"), a = (s) => {
15415
15428
  this.writeCommon("screenOrientation", s.matches ? Ua.PORTRAIT : Ua.LANDSCAPE);
@@ -15421,7 +15434,7 @@ class bh {
15421
15434
  n != null && n.handled && this.invitation.accepted();
15422
15435
  }));
15423
15436
  });
15424
- this.listeners = /* @__PURE__ */ new Set(), this.listenersCancels = /* @__PURE__ */ new Set(), this.commonStore = new pt(be({}), "common-analytics"), this.connectToSDK(t), this.heartbeat = Eh({ transport: t.analyticsTransport, $commonStore: this.commonStore }), this.notifications = new Sh(this), this.polls = new _h(this), this.invitation = new yh(this), this.interactions = new fh(this), this.advertisement = new kh(this);
15437
+ this.listeners = /* @__PURE__ */ new Set(), this.listenersCancels = /* @__PURE__ */ new Set(), this.commonStore = new pt(Se({}), "common-analytics"), this.connectToSDK(t), this.heartbeat = Eh({ transport: t.analyticsTransport, $commonStore: this.commonStore }), this.notifications = new Sh(this), this.polls = new _h(this), this.invitation = new yh(this), this.interactions = new fh(this), this.advertisement = new kh(this);
15425
15438
  const { client: n } = t.analyticsTransport.createPromiseClient(Vi, {
15426
15439
  method: "send"
15427
15440
  });
@@ -15457,20 +15470,20 @@ function Zi(e, t, n) {
15457
15470
  if (typeof e == "function" && (n = t, t = e, e = null), !(n >= 1))
15458
15471
  throw new Error("fastqueue concurrency must be equal to or greater than 1");
15459
15472
  var a = Ah(wh), s = null, o = null, r = 0, c = null, l = {
15460
- push: _,
15461
- drain: _e,
15462
- saturated: _e,
15473
+ push: k,
15474
+ drain: Ee,
15475
+ saturated: Ee,
15463
15476
  pause: u,
15464
15477
  paused: !1,
15465
15478
  get concurrency() {
15466
15479
  return n;
15467
15480
  },
15468
- set concurrency(A) {
15469
- if (!(A >= 1))
15481
+ set concurrency(v) {
15482
+ if (!(v >= 1))
15470
15483
  throw new Error("fastqueue concurrency must be equal to or greater than 1");
15471
- if (n = A, !l.paused)
15484
+ if (n = v, !l.paused)
15472
15485
  for (; s && r < n; )
15473
- r++, E();
15486
+ r++, h();
15474
15487
  },
15475
15488
  running: m,
15476
15489
  resume: T,
@@ -15478,10 +15491,10 @@ function Zi(e, t, n) {
15478
15491
  length: d,
15479
15492
  getQueue: y,
15480
15493
  unshift: N,
15481
- empty: _e,
15482
- kill: b,
15494
+ empty: Ee,
15495
+ kill: A,
15483
15496
  killAndDrain: w,
15484
- error: O
15497
+ error: b
15485
15498
  };
15486
15499
  return l;
15487
15500
  function m() {
@@ -15491,59 +15504,59 @@ function Zi(e, t, n) {
15491
15504
  l.paused = !0;
15492
15505
  }
15493
15506
  function d() {
15494
- for (var A = s, L = 0; A; )
15495
- A = A.next, L++;
15496
- return L;
15507
+ for (var v = s, R = 0; v; )
15508
+ v = v.next, R++;
15509
+ return R;
15497
15510
  }
15498
15511
  function y() {
15499
- for (var A = s, L = []; A; )
15500
- L.push(A.value), A = A.next;
15501
- return L;
15512
+ for (var v = s, R = []; v; )
15513
+ R.push(v.value), v = v.next;
15514
+ return R;
15502
15515
  }
15503
15516
  function T() {
15504
15517
  if (l.paused) {
15505
15518
  if (l.paused = !1, s === null) {
15506
- r++, E();
15519
+ r++, h();
15507
15520
  return;
15508
15521
  }
15509
15522
  for (; s && r < n; )
15510
- r++, E();
15523
+ r++, h();
15511
15524
  }
15512
15525
  }
15513
15526
  function f() {
15514
15527
  return r === 0 && l.length() === 0;
15515
15528
  }
15516
- function _(A, L) {
15517
- var v = a.get();
15518
- v.context = e, v.release = E, v.value = A, v.callback = L || _e, v.errorHandler = c, r >= n || l.paused ? o ? (o.next = v, o = v) : (s = v, o = v, l.saturated()) : (r++, t.call(e, v.value, v.worked));
15529
+ function k(v, R) {
15530
+ var I = a.get();
15531
+ I.context = e, I.release = h, I.value = v, I.callback = R || Ee, I.errorHandler = c, r >= n || l.paused ? o ? (o.next = I, o = I) : (s = I, o = I, l.saturated()) : (r++, t.call(e, I.value, I.worked));
15519
15532
  }
15520
- function N(A, L) {
15521
- var v = a.get();
15522
- v.context = e, v.release = E, v.value = A, v.callback = L || _e, v.errorHandler = c, r >= n || l.paused ? s ? (v.next = s, s = v) : (s = v, o = v, l.saturated()) : (r++, t.call(e, v.value, v.worked));
15533
+ function N(v, R) {
15534
+ var I = a.get();
15535
+ I.context = e, I.release = h, I.value = v, I.callback = R || Ee, I.errorHandler = c, r >= n || l.paused ? s ? (I.next = s, s = I) : (s = I, o = I, l.saturated()) : (r++, t.call(e, I.value, I.worked));
15523
15536
  }
15524
- function E(A) {
15525
- A && a.release(A);
15526
- var L = s;
15527
- L && r <= n ? l.paused ? r-- : (o === s && (o = null), s = L.next, L.next = null, t.call(e, L.value, L.worked), o === null && l.empty()) : --r === 0 && l.drain();
15537
+ function h(v) {
15538
+ v && a.release(v);
15539
+ var R = s;
15540
+ R && r <= n ? l.paused ? r-- : (o === s && (o = null), s = R.next, R.next = null, t.call(e, R.value, R.worked), o === null && l.empty()) : --r === 0 && l.drain();
15528
15541
  }
15529
- function b() {
15530
- s = null, o = null, l.drain = _e;
15542
+ function A() {
15543
+ s = null, o = null, l.drain = Ee;
15531
15544
  }
15532
15545
  function w() {
15533
- s = null, o = null, l.drain(), l.drain = _e;
15546
+ s = null, o = null, l.drain(), l.drain = Ee;
15534
15547
  }
15535
- function O(A) {
15536
- c = A;
15548
+ function b(v) {
15549
+ c = v;
15537
15550
  }
15538
15551
  }
15539
- function _e() {
15552
+ function Ee() {
15540
15553
  }
15541
15554
  function wh() {
15542
- this.value = null, this.callback = _e, this.next = null, this.release = _e, this.context = null, this.errorHandler = null;
15555
+ this.value = null, this.callback = Ee, this.next = null, this.release = Ee, this.context = null, this.errorHandler = null;
15543
15556
  var e = this;
15544
15557
  this.worked = function(t, n) {
15545
15558
  var a = e.callback, s = e.errorHandler, o = e.value;
15546
- e.value = null, e.callback = _e, e.errorHandler && s(t, o), a.call(e.context, t, n), e.release(e);
15559
+ e.value = null, e.callback = Ee, e.errorHandler && s(t, o), a.call(e.context, t, n), e.release(e);
15547
15560
  };
15548
15561
  }
15549
15562
  function Rh(e, t, n) {
@@ -15557,27 +15570,27 @@ function Rh(e, t, n) {
15557
15570
  return s.push = c, s.unshift = l, s.drained = m, s;
15558
15571
  function c(u) {
15559
15572
  var d = new Promise(function(y, T) {
15560
- o(u, function(f, _) {
15573
+ o(u, function(f, k) {
15561
15574
  if (f) {
15562
15575
  T(f);
15563
15576
  return;
15564
15577
  }
15565
- y(_);
15578
+ y(k);
15566
15579
  });
15567
15580
  });
15568
- return d.catch(_e), d;
15581
+ return d.catch(Ee), d;
15569
15582
  }
15570
15583
  function l(u) {
15571
15584
  var d = new Promise(function(y, T) {
15572
- r(u, function(f, _) {
15585
+ r(u, function(f, k) {
15573
15586
  if (f) {
15574
15587
  T(f);
15575
15588
  return;
15576
15589
  }
15577
- y(_);
15590
+ y(k);
15578
15591
  });
15579
15592
  });
15580
- return d.catch(_e), d;
15593
+ return d.catch(Ee), d;
15581
15594
  }
15582
15595
  function m() {
15583
15596
  if (s.idle())
@@ -15608,21 +15621,21 @@ function Lh(e) {
15608
15621
  var tc = Number.isNaN || function(e) {
15609
15622
  return e !== e;
15610
15623
  };
15611
- function j() {
15612
- j.init.call(this);
15624
+ function $() {
15625
+ $.init.call(this);
15613
15626
  }
15614
- ws.exports = j;
15627
+ ws.exports = $;
15615
15628
  ws.exports.once = Ch;
15616
- j.EventEmitter = j;
15617
- j.prototype._events = void 0;
15618
- j.prototype._eventsCount = 0;
15619
- j.prototype._maxListeners = void 0;
15629
+ $.EventEmitter = $;
15630
+ $.prototype._events = void 0;
15631
+ $.prototype._eventsCount = 0;
15632
+ $.prototype._maxListeners = void 0;
15620
15633
  var ir = 10;
15621
15634
  function zn(e) {
15622
15635
  if (typeof e != "function")
15623
15636
  throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof e);
15624
15637
  }
15625
- Object.defineProperty(j, "defaultMaxListeners", {
15638
+ Object.defineProperty($, "defaultMaxListeners", {
15626
15639
  enumerable: !0,
15627
15640
  get: function() {
15628
15641
  return ir;
@@ -15633,21 +15646,21 @@ Object.defineProperty(j, "defaultMaxListeners", {
15633
15646
  ir = e;
15634
15647
  }
15635
15648
  });
15636
- j.init = function() {
15649
+ $.init = function() {
15637
15650
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
15638
15651
  };
15639
- j.prototype.setMaxListeners = function(e) {
15652
+ $.prototype.setMaxListeners = function(e) {
15640
15653
  if (typeof e != "number" || e < 0 || tc(e))
15641
15654
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
15642
15655
  return this._maxListeners = e, this;
15643
15656
  };
15644
15657
  function nc(e) {
15645
- return e._maxListeners === void 0 ? j.defaultMaxListeners : e._maxListeners;
15658
+ return e._maxListeners === void 0 ? $.defaultMaxListeners : e._maxListeners;
15646
15659
  }
15647
- j.prototype.getMaxListeners = function() {
15660
+ $.prototype.getMaxListeners = function() {
15648
15661
  return nc(this);
15649
15662
  };
15650
- j.prototype.emit = function(e) {
15663
+ $.prototype.emit = function(e) {
15651
15664
  for (var t = [], n = 1; n < arguments.length; n++) t.push(arguments[n]);
15652
15665
  var a = e === "error", s = this._events;
15653
15666
  if (s !== void 0)
@@ -15686,11 +15699,11 @@ function ac(e, t, n, a) {
15686
15699
  }
15687
15700
  return e;
15688
15701
  }
15689
- j.prototype.addListener = function(e, t) {
15702
+ $.prototype.addListener = function(e, t) {
15690
15703
  return ac(this, e, t, !1);
15691
15704
  };
15692
- j.prototype.on = j.prototype.addListener;
15693
- j.prototype.prependListener = function(e, t) {
15705
+ $.prototype.on = $.prototype.addListener;
15706
+ $.prototype.prependListener = function(e, t) {
15694
15707
  return ac(this, e, t, !0);
15695
15708
  };
15696
15709
  function Mh() {
@@ -15701,13 +15714,13 @@ function sc(e, t, n) {
15701
15714
  var a = { fired: !1, wrapFn: void 0, target: e, type: t, listener: n }, s = Mh.bind(a);
15702
15715
  return s.listener = n, a.wrapFn = s, s;
15703
15716
  }
15704
- j.prototype.once = function(e, t) {
15717
+ $.prototype.once = function(e, t) {
15705
15718
  return zn(t), this.on(e, sc(this, e, t)), this;
15706
15719
  };
15707
- j.prototype.prependOnceListener = function(e, t) {
15720
+ $.prototype.prependOnceListener = function(e, t) {
15708
15721
  return zn(t), this.prependListener(e, sc(this, e, t)), this;
15709
15722
  };
15710
- j.prototype.removeListener = function(e, t) {
15723
+ $.prototype.removeListener = function(e, t) {
15711
15724
  var n, a, s, o, r;
15712
15725
  if (zn(t), a = this._events, a === void 0)
15713
15726
  return this;
@@ -15727,8 +15740,8 @@ j.prototype.removeListener = function(e, t) {
15727
15740
  }
15728
15741
  return this;
15729
15742
  };
15730
- j.prototype.off = j.prototype.removeListener;
15731
- j.prototype.removeAllListeners = function(e) {
15743
+ $.prototype.off = $.prototype.removeListener;
15744
+ $.prototype.removeAllListeners = function(e) {
15732
15745
  var t, n, a;
15733
15746
  if (n = this._events, n === void 0)
15734
15747
  return this;
@@ -15754,16 +15767,16 @@ function oc(e, t, n) {
15754
15767
  var s = a[t];
15755
15768
  return s === void 0 ? [] : typeof s == "function" ? n ? [s.listener || s] : [s] : n ? Dh(s) : ic(s, s.length);
15756
15769
  }
15757
- j.prototype.listeners = function(e) {
15770
+ $.prototype.listeners = function(e) {
15758
15771
  return oc(this, e, !0);
15759
15772
  };
15760
- j.prototype.rawListeners = function(e) {
15773
+ $.prototype.rawListeners = function(e) {
15761
15774
  return oc(this, e, !1);
15762
15775
  };
15763
- j.listenerCount = function(e, t) {
15776
+ $.listenerCount = function(e, t) {
15764
15777
  return typeof e.listenerCount == "function" ? e.listenerCount(t) : rc.call(e, t);
15765
15778
  };
15766
- j.prototype.listenerCount = rc;
15779
+ $.prototype.listenerCount = rc;
15767
15780
  function rc(e) {
15768
15781
  var t = this._events;
15769
15782
  if (t !== void 0) {
@@ -15775,7 +15788,7 @@ function rc(e) {
15775
15788
  }
15776
15789
  return 0;
15777
15790
  }
15778
- j.prototype.eventNames = function() {
15791
+ $.prototype.eventNames = function() {
15779
15792
  return this._eventsCount > 0 ? En(this._events) : [];
15780
15793
  };
15781
15794
  function ic(e, t) {
@@ -15887,7 +15900,7 @@ var lc = ws.exports, Jn = {}, mc = {}, uc = function() {
15887
15900
  l.prototype = t.prototype, a.prototype = new l(), l.prototype = null;
15888
15901
  }
15889
15902
  return a;
15890
- }, eS = Zh, Rs = Function.prototype.bind || eS, tS = Function.prototype.call, nS = Object.prototype.hasOwnProperty, aS = Rs, sS = aS.call(tS, nS), G, oS = Gh, rS = Bh, iS = Vh, cS = qh, Ut = dc, Mt = Zn, lS = xh, pc = Function, ya = function(e) {
15903
+ }, eS = Zh, Rs = Function.prototype.bind || eS, tS = Function.prototype.call, nS = Object.prototype.hasOwnProperty, aS = Rs, sS = aS.call(tS, nS), B, oS = Gh, rS = Bh, iS = Vh, cS = qh, Ut = dc, Mt = Zn, lS = xh, pc = Function, ya = function(e) {
15891
15904
  try {
15892
15905
  return pc('"use strict"; return (' + e + ").constructor;")();
15893
15906
  } catch {
@@ -15911,25 +15924,25 @@ var fa = function() {
15911
15924
  return fa;
15912
15925
  }
15913
15926
  }
15914
- }() : fa, Et = Qh(), uS = jh(), oe = Object.getPrototypeOf || (uS ? function(e) {
15927
+ }() : fa, Et = Qh(), uS = jh(), re = Object.getPrototypeOf || (uS ? function(e) {
15915
15928
  return e.__proto__;
15916
- } : null), Nt = {}, dS = typeof Uint8Array > "u" || !oe ? G : oe(Uint8Array), ft = {
15929
+ } : null), Nt = {}, dS = typeof Uint8Array > "u" || !re ? B : re(Uint8Array), ft = {
15917
15930
  __proto__: null,
15918
- "%AggregateError%": typeof AggregateError > "u" ? G : AggregateError,
15931
+ "%AggregateError%": typeof AggregateError > "u" ? B : AggregateError,
15919
15932
  "%Array%": Array,
15920
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? G : ArrayBuffer,
15921
- "%ArrayIteratorPrototype%": Et && oe ? oe([][Symbol.iterator]()) : G,
15922
- "%AsyncFromSyncIteratorPrototype%": G,
15933
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? B : ArrayBuffer,
15934
+ "%ArrayIteratorPrototype%": Et && re ? re([][Symbol.iterator]()) : B,
15935
+ "%AsyncFromSyncIteratorPrototype%": B,
15923
15936
  "%AsyncFunction%": Nt,
15924
15937
  "%AsyncGenerator%": Nt,
15925
15938
  "%AsyncGeneratorFunction%": Nt,
15926
15939
  "%AsyncIteratorPrototype%": Nt,
15927
- "%Atomics%": typeof Atomics > "u" ? G : Atomics,
15928
- "%BigInt%": typeof BigInt > "u" ? G : BigInt,
15929
- "%BigInt64Array%": typeof BigInt64Array > "u" ? G : BigInt64Array,
15930
- "%BigUint64Array%": typeof BigUint64Array > "u" ? G : BigUint64Array,
15940
+ "%Atomics%": typeof Atomics > "u" ? B : Atomics,
15941
+ "%BigInt%": typeof BigInt > "u" ? B : BigInt,
15942
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? B : BigInt64Array,
15943
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? B : BigUint64Array,
15931
15944
  "%Boolean%": Boolean,
15932
- "%DataView%": typeof DataView > "u" ? G : DataView,
15945
+ "%DataView%": typeof DataView > "u" ? B : DataView,
15933
15946
  "%Date%": Date,
15934
15947
  "%decodeURI%": decodeURI,
15935
15948
  "%decodeURIComponent%": decodeURIComponent,
@@ -15939,55 +15952,55 @@ var fa = function() {
15939
15952
  "%eval%": eval,
15940
15953
  // eslint-disable-line no-eval
15941
15954
  "%EvalError%": rS,
15942
- "%Float32Array%": typeof Float32Array > "u" ? G : Float32Array,
15943
- "%Float64Array%": typeof Float64Array > "u" ? G : Float64Array,
15944
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? G : FinalizationRegistry,
15955
+ "%Float32Array%": typeof Float32Array > "u" ? B : Float32Array,
15956
+ "%Float64Array%": typeof Float64Array > "u" ? B : Float64Array,
15957
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? B : FinalizationRegistry,
15945
15958
  "%Function%": pc,
15946
15959
  "%GeneratorFunction%": Nt,
15947
- "%Int8Array%": typeof Int8Array > "u" ? G : Int8Array,
15948
- "%Int16Array%": typeof Int16Array > "u" ? G : Int16Array,
15949
- "%Int32Array%": typeof Int32Array > "u" ? G : Int32Array,
15960
+ "%Int8Array%": typeof Int8Array > "u" ? B : Int8Array,
15961
+ "%Int16Array%": typeof Int16Array > "u" ? B : Int16Array,
15962
+ "%Int32Array%": typeof Int32Array > "u" ? B : Int32Array,
15950
15963
  "%isFinite%": isFinite,
15951
15964
  "%isNaN%": isNaN,
15952
- "%IteratorPrototype%": Et && oe ? oe(oe([][Symbol.iterator]())) : G,
15953
- "%JSON%": typeof JSON == "object" ? JSON : G,
15954
- "%Map%": typeof Map > "u" ? G : Map,
15955
- "%MapIteratorPrototype%": typeof Map > "u" || !Et || !oe ? G : oe((/* @__PURE__ */ new Map())[Symbol.iterator]()),
15965
+ "%IteratorPrototype%": Et && re ? re(re([][Symbol.iterator]())) : B,
15966
+ "%JSON%": typeof JSON == "object" ? JSON : B,
15967
+ "%Map%": typeof Map > "u" ? B : Map,
15968
+ "%MapIteratorPrototype%": typeof Map > "u" || !Et || !re ? B : re((/* @__PURE__ */ new Map())[Symbol.iterator]()),
15956
15969
  "%Math%": Math,
15957
15970
  "%Number%": Number,
15958
15971
  "%Object%": Object,
15959
15972
  "%parseFloat%": parseFloat,
15960
15973
  "%parseInt%": parseInt,
15961
- "%Promise%": typeof Promise > "u" ? G : Promise,
15962
- "%Proxy%": typeof Proxy > "u" ? G : Proxy,
15974
+ "%Promise%": typeof Promise > "u" ? B : Promise,
15975
+ "%Proxy%": typeof Proxy > "u" ? B : Proxy,
15963
15976
  "%RangeError%": iS,
15964
15977
  "%ReferenceError%": cS,
15965
- "%Reflect%": typeof Reflect > "u" ? G : Reflect,
15978
+ "%Reflect%": typeof Reflect > "u" ? B : Reflect,
15966
15979
  "%RegExp%": RegExp,
15967
- "%Set%": typeof Set > "u" ? G : Set,
15968
- "%SetIteratorPrototype%": typeof Set > "u" || !Et || !oe ? G : oe((/* @__PURE__ */ new Set())[Symbol.iterator]()),
15969
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? G : SharedArrayBuffer,
15980
+ "%Set%": typeof Set > "u" ? B : Set,
15981
+ "%SetIteratorPrototype%": typeof Set > "u" || !Et || !re ? B : re((/* @__PURE__ */ new Set())[Symbol.iterator]()),
15982
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? B : SharedArrayBuffer,
15970
15983
  "%String%": String,
15971
- "%StringIteratorPrototype%": Et && oe ? oe(""[Symbol.iterator]()) : G,
15972
- "%Symbol%": Et ? Symbol : G,
15984
+ "%StringIteratorPrototype%": Et && re ? re(""[Symbol.iterator]()) : B,
15985
+ "%Symbol%": Et ? Symbol : B,
15973
15986
  "%SyntaxError%": Ut,
15974
15987
  "%ThrowTypeError%": mS,
15975
15988
  "%TypedArray%": dS,
15976
15989
  "%TypeError%": Mt,
15977
- "%Uint8Array%": typeof Uint8Array > "u" ? G : Uint8Array,
15978
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? G : Uint8ClampedArray,
15979
- "%Uint16Array%": typeof Uint16Array > "u" ? G : Uint16Array,
15980
- "%Uint32Array%": typeof Uint32Array > "u" ? G : Uint32Array,
15990
+ "%Uint8Array%": typeof Uint8Array > "u" ? B : Uint8Array,
15991
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? B : Uint8ClampedArray,
15992
+ "%Uint16Array%": typeof Uint16Array > "u" ? B : Uint16Array,
15993
+ "%Uint32Array%": typeof Uint32Array > "u" ? B : Uint32Array,
15981
15994
  "%URIError%": lS,
15982
- "%WeakMap%": typeof WeakMap > "u" ? G : WeakMap,
15983
- "%WeakRef%": typeof WeakRef > "u" ? G : WeakRef,
15984
- "%WeakSet%": typeof WeakSet > "u" ? G : WeakSet
15995
+ "%WeakMap%": typeof WeakMap > "u" ? B : WeakMap,
15996
+ "%WeakRef%": typeof WeakRef > "u" ? B : WeakRef,
15997
+ "%WeakSet%": typeof WeakSet > "u" ? B : WeakSet
15985
15998
  };
15986
- if (oe)
15999
+ if (re)
15987
16000
  try {
15988
16001
  null.error;
15989
16002
  } catch (e) {
15990
- var pS = oe(oe(e));
16003
+ var pS = re(re(e));
15991
16004
  ft["%Error.prototype%"] = pS;
15992
16005
  }
15993
16006
  var TS = function e(t) {
@@ -16003,7 +16016,7 @@ var TS = function e(t) {
16003
16016
  a && (n = a.prototype);
16004
16017
  } else if (t === "%AsyncIteratorPrototype%") {
16005
16018
  var s = e("%AsyncGenerator%");
16006
- s && oe && (n = oe(s.prototype));
16019
+ s && re && (n = re(s.prototype));
16007
16020
  }
16008
16021
  return ft[t] = n, n;
16009
16022
  }, mr = {
@@ -16451,184 +16464,184 @@ var T_ = function(e) {
16451
16464
  };
16452
16465
  (function(e) {
16453
16466
  var t = DS, n = BS, a = m_, s = k_;
16454
- function o(S) {
16455
- return S.call.bind(S);
16467
+ function o(E) {
16468
+ return E.call.bind(E);
16456
16469
  }
16457
16470
  var r = typeof BigInt < "u", c = typeof Symbol < "u", l = o(Object.prototype.toString), m = o(Number.prototype.valueOf), u = o(String.prototype.valueOf), d = o(Boolean.prototype.valueOf);
16458
16471
  if (r)
16459
16472
  var y = o(BigInt.prototype.valueOf);
16460
16473
  if (c)
16461
16474
  var T = o(Symbol.prototype.valueOf);
16462
- function f(S, Mc) {
16463
- if (typeof S != "object")
16475
+ function f(E, Mc) {
16476
+ if (typeof E != "object")
16464
16477
  return !1;
16465
16478
  try {
16466
- return Mc(S), !0;
16479
+ return Mc(E), !0;
16467
16480
  } catch {
16468
16481
  return !1;
16469
16482
  }
16470
16483
  }
16471
16484
  e.isArgumentsObject = t, e.isGeneratorFunction = n, e.isTypedArray = s;
16472
- function _(S) {
16473
- return typeof Promise < "u" && S instanceof Promise || S !== null && typeof S == "object" && typeof S.then == "function" && typeof S.catch == "function";
16485
+ function k(E) {
16486
+ return typeof Promise < "u" && E instanceof Promise || E !== null && typeof E == "object" && typeof E.then == "function" && typeof E.catch == "function";
16474
16487
  }
16475
- e.isPromise = _;
16476
- function N(S) {
16477
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(S) : s(S) || k(S);
16488
+ e.isPromise = k;
16489
+ function N(E) {
16490
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(E) : s(E) || S(E);
16478
16491
  }
16479
16492
  e.isArrayBufferView = N;
16480
- function E(S) {
16481
- return a(S) === "Uint8Array";
16493
+ function h(E) {
16494
+ return a(E) === "Uint8Array";
16482
16495
  }
16483
- e.isUint8Array = E;
16484
- function b(S) {
16485
- return a(S) === "Uint8ClampedArray";
16496
+ e.isUint8Array = h;
16497
+ function A(E) {
16498
+ return a(E) === "Uint8ClampedArray";
16486
16499
  }
16487
- e.isUint8ClampedArray = b;
16488
- function w(S) {
16489
- return a(S) === "Uint16Array";
16500
+ e.isUint8ClampedArray = A;
16501
+ function w(E) {
16502
+ return a(E) === "Uint16Array";
16490
16503
  }
16491
16504
  e.isUint16Array = w;
16492
- function O(S) {
16493
- return a(S) === "Uint32Array";
16505
+ function b(E) {
16506
+ return a(E) === "Uint32Array";
16494
16507
  }
16495
- e.isUint32Array = O;
16496
- function A(S) {
16497
- return a(S) === "Int8Array";
16508
+ e.isUint32Array = b;
16509
+ function v(E) {
16510
+ return a(E) === "Int8Array";
16498
16511
  }
16499
- e.isInt8Array = A;
16500
- function L(S) {
16501
- return a(S) === "Int16Array";
16512
+ e.isInt8Array = v;
16513
+ function R(E) {
16514
+ return a(E) === "Int16Array";
16502
16515
  }
16503
- e.isInt16Array = L;
16504
- function v(S) {
16505
- return a(S) === "Int32Array";
16516
+ e.isInt16Array = R;
16517
+ function I(E) {
16518
+ return a(E) === "Int32Array";
16506
16519
  }
16507
- e.isInt32Array = v;
16508
- function U(S) {
16509
- return a(S) === "Float32Array";
16520
+ e.isInt32Array = I;
16521
+ function M(E) {
16522
+ return a(E) === "Float32Array";
16510
16523
  }
16511
- e.isFloat32Array = U;
16512
- function $(S) {
16513
- return a(S) === "Float64Array";
16524
+ e.isFloat32Array = M;
16525
+ function G(E) {
16526
+ return a(E) === "Float64Array";
16514
16527
  }
16515
- e.isFloat64Array = $;
16516
- function ne(S) {
16517
- return a(S) === "BigInt64Array";
16528
+ e.isFloat64Array = G;
16529
+ function J(E) {
16530
+ return a(E) === "BigInt64Array";
16518
16531
  }
16519
- e.isBigInt64Array = ne;
16520
- function K(S) {
16521
- return a(S) === "BigUint64Array";
16532
+ e.isBigInt64Array = J;
16533
+ function K(E) {
16534
+ return a(E) === "BigUint64Array";
16522
16535
  }
16523
16536
  e.isBigUint64Array = K;
16524
- function W(S) {
16525
- return l(S) === "[object Map]";
16537
+ function W(E) {
16538
+ return l(E) === "[object Map]";
16526
16539
  }
16527
16540
  W.working = typeof Map < "u" && W(/* @__PURE__ */ new Map());
16528
- function B(S) {
16529
- return typeof Map > "u" ? !1 : W.working ? W(S) : S instanceof Map;
16541
+ function V(E) {
16542
+ return typeof Map > "u" ? !1 : W.working ? W(E) : E instanceof Map;
16530
16543
  }
16531
- e.isMap = B;
16532
- function V(S) {
16533
- return l(S) === "[object Set]";
16544
+ e.isMap = V;
16545
+ function q(E) {
16546
+ return l(E) === "[object Set]";
16534
16547
  }
16535
- V.working = typeof Set < "u" && V(/* @__PURE__ */ new Set());
16536
- function X(S) {
16537
- return typeof Set > "u" ? !1 : V.working ? V(S) : S instanceof Set;
16548
+ q.working = typeof Set < "u" && q(/* @__PURE__ */ new Set());
16549
+ function Z(E) {
16550
+ return typeof Set > "u" ? !1 : q.working ? q(E) : E instanceof Set;
16538
16551
  }
16539
- e.isSet = X;
16540
- function Ge(S) {
16541
- return l(S) === "[object WeakMap]";
16552
+ e.isSet = Z;
16553
+ function Ge(E) {
16554
+ return l(E) === "[object WeakMap]";
16542
16555
  }
16543
16556
  Ge.working = typeof WeakMap < "u" && Ge(/* @__PURE__ */ new WeakMap());
16544
- function qt(S) {
16545
- return typeof WeakMap > "u" ? !1 : Ge.working ? Ge(S) : S instanceof WeakMap;
16557
+ function qt(E) {
16558
+ return typeof WeakMap > "u" ? !1 : Ge.working ? Ge(E) : E instanceof WeakMap;
16546
16559
  }
16547
16560
  e.isWeakMap = qt;
16548
- function Je(S) {
16549
- return l(S) === "[object WeakSet]";
16561
+ function Je(E) {
16562
+ return l(E) === "[object WeakSet]";
16550
16563
  }
16551
16564
  Je.working = typeof WeakSet < "u" && Je(/* @__PURE__ */ new WeakSet());
16552
- function ge(S) {
16553
- return Je(S);
16565
+ function ge(E) {
16566
+ return Je(E);
16554
16567
  }
16555
16568
  e.isWeakSet = ge;
16556
- function ke(S) {
16557
- return l(S) === "[object ArrayBuffer]";
16569
+ function ke(E) {
16570
+ return l(E) === "[object ArrayBuffer]";
16558
16571
  }
16559
16572
  ke.working = typeof ArrayBuffer < "u" && ke(new ArrayBuffer());
16560
- function he(S) {
16561
- return typeof ArrayBuffer > "u" ? !1 : ke.working ? ke(S) : S instanceof ArrayBuffer;
16573
+ function he(E) {
16574
+ return typeof ArrayBuffer > "u" ? !1 : ke.working ? ke(E) : E instanceof ArrayBuffer;
16562
16575
  }
16563
16576
  e.isArrayBuffer = he;
16564
- function g(S) {
16565
- return l(S) === "[object DataView]";
16577
+ function g(E) {
16578
+ return l(E) === "[object DataView]";
16566
16579
  }
16567
16580
  g.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && g(new DataView(new ArrayBuffer(1), 0, 1));
16568
- function k(S) {
16569
- return typeof DataView > "u" ? !1 : g.working ? g(S) : S instanceof DataView;
16581
+ function S(E) {
16582
+ return typeof DataView > "u" ? !1 : g.working ? g(E) : E instanceof DataView;
16570
16583
  }
16571
- e.isDataView = k;
16572
- var I = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
16573
- function M(S) {
16574
- return l(S) === "[object SharedArrayBuffer]";
16584
+ e.isDataView = S;
16585
+ var O = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
16586
+ function P(E) {
16587
+ return l(E) === "[object SharedArrayBuffer]";
16575
16588
  }
16576
- function z(S) {
16577
- return typeof I > "u" ? !1 : (typeof M.working > "u" && (M.working = M(new I())), M.working ? M(S) : S instanceof I);
16589
+ function z(E) {
16590
+ return typeof O > "u" ? !1 : (typeof P.working > "u" && (P.working = P(new O())), P.working ? P(E) : E instanceof O);
16578
16591
  }
16579
16592
  e.isSharedArrayBuffer = z;
16580
- function q(S) {
16581
- return l(S) === "[object AsyncFunction]";
16593
+ function x(E) {
16594
+ return l(E) === "[object AsyncFunction]";
16582
16595
  }
16583
- e.isAsyncFunction = q;
16584
- function F(S) {
16585
- return l(S) === "[object Map Iterator]";
16596
+ e.isAsyncFunction = x;
16597
+ function F(E) {
16598
+ return l(E) === "[object Map Iterator]";
16586
16599
  }
16587
16600
  e.isMapIterator = F;
16588
- function x(S) {
16589
- return l(S) === "[object Set Iterator]";
16601
+ function H(E) {
16602
+ return l(E) === "[object Set Iterator]";
16590
16603
  }
16591
- e.isSetIterator = x;
16592
- function Q(S) {
16593
- return l(S) === "[object Generator]";
16604
+ e.isSetIterator = H;
16605
+ function Y(E) {
16606
+ return l(E) === "[object Generator]";
16594
16607
  }
16595
- e.isGeneratorObject = Q;
16596
- function ve(S) {
16597
- return l(S) === "[object WebAssembly.Module]";
16608
+ e.isGeneratorObject = Y;
16609
+ function ve(E) {
16610
+ return l(E) === "[object WebAssembly.Module]";
16598
16611
  }
16599
16612
  e.isWebAssemblyCompiledModule = ve;
16600
- function rt(S) {
16601
- return f(S, m);
16613
+ function rt(E) {
16614
+ return f(E, m);
16602
16615
  }
16603
16616
  e.isNumberObject = rt;
16604
- function sn(S) {
16605
- return f(S, u);
16617
+ function sn(E) {
16618
+ return f(E, u);
16606
16619
  }
16607
16620
  e.isStringObject = sn;
16608
- function St(S) {
16609
- return f(S, d);
16621
+ function St(E) {
16622
+ return f(E, d);
16610
16623
  }
16611
16624
  e.isBooleanObject = St;
16612
- function on(S) {
16613
- return r && f(S, y);
16625
+ function on(E) {
16626
+ return r && f(E, y);
16614
16627
  }
16615
16628
  e.isBigIntObject = on;
16616
- function Vs(S) {
16617
- return c && f(S, T);
16629
+ function Vs(E) {
16630
+ return c && f(E, T);
16618
16631
  }
16619
16632
  e.isSymbolObject = Vs;
16620
- function Rc(S) {
16621
- return rt(S) || sn(S) || St(S) || on(S) || Vs(S);
16633
+ function Rc(E) {
16634
+ return rt(E) || sn(E) || St(E) || on(E) || Vs(E);
16622
16635
  }
16623
16636
  e.isBoxedPrimitive = Rc;
16624
- function Lc(S) {
16625
- return typeof Uint8Array < "u" && (he(S) || z(S));
16637
+ function Lc(E) {
16638
+ return typeof Uint8Array < "u" && (he(E) || z(E));
16626
16639
  }
16627
- e.isAnyArrayBuffer = Lc, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(S) {
16628
- Object.defineProperty(e, S, {
16640
+ e.isAnyArrayBuffer = Lc, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(E) {
16641
+ Object.defineProperty(e, E, {
16629
16642
  enumerable: !1,
16630
16643
  value: function() {
16631
- throw new Error(S + " is not supported in userland");
16644
+ throw new Error(E + " is not supported in userland");
16632
16645
  }
16633
16646
  });
16634
16647
  });
@@ -16656,78 +16669,78 @@ typeof Object.create == "function" ? ns.exports = function(e, t) {
16656
16669
  var S_ = ns.exports;
16657
16670
  (function(e) {
16658
16671
  var t = Object.getOwnPropertyDescriptors || function(g) {
16659
- for (var k = Object.keys(g), I = {}, M = 0; M < k.length; M++)
16660
- I[k[M]] = Object.getOwnPropertyDescriptor(g, k[M]);
16661
- return I;
16672
+ for (var S = Object.keys(g), O = {}, P = 0; P < S.length; P++)
16673
+ O[S[P]] = Object.getOwnPropertyDescriptor(g, S[P]);
16674
+ return O;
16662
16675
  }, n = /%[sdj%]/g;
16663
16676
  e.format = function(g) {
16664
- if (!A(g)) {
16665
- for (var k = [], I = 0; I < arguments.length; I++)
16666
- k.push(r(arguments[I]));
16667
- return k.join(" ");
16668
- }
16669
- for (var I = 1, M = arguments, z = M.length, q = String(g).replace(n, function(Q) {
16670
- if (Q === "%%") return "%";
16671
- if (I >= z) return Q;
16672
- switch (Q) {
16677
+ if (!v(g)) {
16678
+ for (var S = [], O = 0; O < arguments.length; O++)
16679
+ S.push(r(arguments[O]));
16680
+ return S.join(" ");
16681
+ }
16682
+ for (var O = 1, P = arguments, z = P.length, x = String(g).replace(n, function(Y) {
16683
+ if (Y === "%%") return "%";
16684
+ if (O >= z) return Y;
16685
+ switch (Y) {
16673
16686
  case "%s":
16674
- return String(M[I++]);
16687
+ return String(P[O++]);
16675
16688
  case "%d":
16676
- return Number(M[I++]);
16689
+ return Number(P[O++]);
16677
16690
  case "%j":
16678
16691
  try {
16679
- return JSON.stringify(M[I++]);
16692
+ return JSON.stringify(P[O++]);
16680
16693
  } catch {
16681
16694
  return "[Circular]";
16682
16695
  }
16683
16696
  default:
16684
- return Q;
16697
+ return Y;
16685
16698
  }
16686
- }), F = M[I]; I < z; F = M[++I])
16687
- b(F) || !$(F) ? q += " " + F : q += " " + r(F);
16688
- return q;
16689
- }, e.deprecate = function(g, k) {
16690
- if (typeof D < "u" && D.noDeprecation === !0)
16699
+ }), F = P[O]; O < z; F = P[++O])
16700
+ A(F) || !G(F) ? x += " " + F : x += " " + r(F);
16701
+ return x;
16702
+ }, e.deprecate = function(g, S) {
16703
+ if (typeof C < "u" && C.noDeprecation === !0)
16691
16704
  return g;
16692
- if (typeof D > "u")
16705
+ if (typeof C > "u")
16693
16706
  return function() {
16694
- return e.deprecate(g, k).apply(this, arguments);
16707
+ return e.deprecate(g, S).apply(this, arguments);
16695
16708
  };
16696
- var I = !1;
16697
- function M() {
16698
- if (!I) {
16699
- if (D.throwDeprecation)
16700
- throw new Error(k);
16701
- D.traceDeprecation ? console.trace(k) : console.error(k), I = !0;
16709
+ var O = !1;
16710
+ function P() {
16711
+ if (!O) {
16712
+ if (C.throwDeprecation)
16713
+ throw new Error(S);
16714
+ C.traceDeprecation ? console.trace(S) : console.error(S), O = !0;
16702
16715
  }
16703
16716
  return g.apply(this, arguments);
16704
16717
  }
16705
- return M;
16718
+ return P;
16706
16719
  };
16707
16720
  var a = {}, s = /^$/;
16708
- if (D.env.NODE_DEBUG) {
16709
- var o = D.env.NODE_DEBUG;
16721
+ if (C.env.NODE_DEBUG) {
16722
+ var o = C.env.NODE_DEBUG;
16710
16723
  o = o.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), s = new RegExp("^" + o + "$", "i");
16711
16724
  }
16712
16725
  e.debuglog = function(g) {
16713
16726
  if (g = g.toUpperCase(), !a[g])
16714
16727
  if (s.test(g)) {
16715
- var k = D.pid;
16728
+ var S = C.pid;
16716
16729
  a[g] = function() {
16717
- var I = e.format.apply(e, arguments);
16718
- console.error("%s %d: %s", g, k, I);
16730
+ var O = e.format.apply(e, arguments);
16731
+ console.error("%s %d: %s", g, S, O);
16719
16732
  };
16720
16733
  } else
16721
16734
  a[g] = function() {
16722
16735
  };
16723
16736
  return a[g];
16724
16737
  };
16725
- function r(g, k) {
16726
- var I = {
16738
+ function r(g, S) {
16739
+ var O = {
16727
16740
  seen: [],
16728
16741
  stylize: l
16729
16742
  };
16730
- return arguments.length >= 3 && (I.depth = arguments[2]), arguments.length >= 4 && (I.colors = arguments[3]), E(k) ? I.showHidden = k : k && e._extend(I, k), v(I.showHidden) && (I.showHidden = !1), v(I.depth) && (I.depth = 2), v(I.colors) && (I.colors = !1), v(I.customInspect) && (I.customInspect = !0), I.colors && (I.stylize = c), u(I, g, I.depth);
16743
+ return arguments.length >= 3 && (O.depth = arguments[2]), arguments.length >= 4 && (O.colors = arguments[3]), h(S) ? O.showHidden = S : S && e._extend(O, S), I(O.showHidden) && (O.showHidden = !1), I(O.depth) && (O.depth = 2), I(O.colors) && (O.colors = !1), I(O.customInspect) && (O.customInspect = !0), O.colors && (O.stylize = c), u(O, g, O.depth);
16731
16744
  }
16732
16745
  e.inspect = r, r.colors = {
16733
16746
  bold: [1, 22],
@@ -16754,187 +16767,187 @@ var S_ = ns.exports;
16754
16767
  // "name": intentionally not styling
16755
16768
  regexp: "red"
16756
16769
  };
16757
- function c(g, k) {
16758
- var I = r.styles[k];
16759
- return I ? "\x1B[" + r.colors[I][0] + "m" + g + "\x1B[" + r.colors[I][1] + "m" : g;
16770
+ function c(g, S) {
16771
+ var O = r.styles[S];
16772
+ return O ? "\x1B[" + r.colors[O][0] + "m" + g + "\x1B[" + r.colors[O][1] + "m" : g;
16760
16773
  }
16761
- function l(g, k) {
16774
+ function l(g, S) {
16762
16775
  return g;
16763
16776
  }
16764
16777
  function m(g) {
16765
- var k = {};
16766
- return g.forEach(function(I, M) {
16767
- k[I] = !0;
16768
- }), k;
16769
- }
16770
- function u(g, k, I) {
16771
- if (g.customInspect && k && W(k.inspect) && // Filter out the util module, it's inspect function is special
16772
- k.inspect !== e.inspect && // Also filter out any prototype objects using the circular check.
16773
- !(k.constructor && k.constructor.prototype === k)) {
16774
- var M = k.inspect(I, g);
16775
- return A(M) || (M = u(g, M, I)), M;
16776
- }
16777
- var z = d(g, k);
16778
+ var S = {};
16779
+ return g.forEach(function(O, P) {
16780
+ S[O] = !0;
16781
+ }), S;
16782
+ }
16783
+ function u(g, S, O) {
16784
+ if (g.customInspect && S && W(S.inspect) && // Filter out the util module, it's inspect function is special
16785
+ S.inspect !== e.inspect && // Also filter out any prototype objects using the circular check.
16786
+ !(S.constructor && S.constructor.prototype === S)) {
16787
+ var P = S.inspect(O, g);
16788
+ return v(P) || (P = u(g, P, O)), P;
16789
+ }
16790
+ var z = d(g, S);
16778
16791
  if (z)
16779
16792
  return z;
16780
- var q = Object.keys(k), F = m(q);
16781
- if (g.showHidden && (q = Object.getOwnPropertyNames(k)), K(k) && (q.indexOf("message") >= 0 || q.indexOf("description") >= 0))
16782
- return y(k);
16783
- if (q.length === 0) {
16784
- if (W(k)) {
16785
- var x = k.name ? ": " + k.name : "";
16786
- return g.stylize("[Function" + x + "]", "special");
16793
+ var x = Object.keys(S), F = m(x);
16794
+ if (g.showHidden && (x = Object.getOwnPropertyNames(S)), K(S) && (x.indexOf("message") >= 0 || x.indexOf("description") >= 0))
16795
+ return y(S);
16796
+ if (x.length === 0) {
16797
+ if (W(S)) {
16798
+ var H = S.name ? ": " + S.name : "";
16799
+ return g.stylize("[Function" + H + "]", "special");
16787
16800
  }
16788
- if (U(k))
16789
- return g.stylize(RegExp.prototype.toString.call(k), "regexp");
16790
- if (ne(k))
16791
- return g.stylize(Date.prototype.toString.call(k), "date");
16792
- if (K(k))
16793
- return y(k);
16794
- }
16795
- var Q = "", ve = !1, rt = ["{", "}"];
16796
- if (N(k) && (ve = !0, rt = ["[", "]"]), W(k)) {
16797
- var sn = k.name ? ": " + k.name : "";
16798
- Q = " [Function" + sn + "]";
16799
- }
16800
- if (U(k) && (Q = " " + RegExp.prototype.toString.call(k)), ne(k) && (Q = " " + Date.prototype.toUTCString.call(k)), K(k) && (Q = " " + y(k)), q.length === 0 && (!ve || k.length == 0))
16801
- return rt[0] + Q + rt[1];
16802
- if (I < 0)
16803
- return U(k) ? g.stylize(RegExp.prototype.toString.call(k), "regexp") : g.stylize("[Object]", "special");
16804
- g.seen.push(k);
16801
+ if (M(S))
16802
+ return g.stylize(RegExp.prototype.toString.call(S), "regexp");
16803
+ if (J(S))
16804
+ return g.stylize(Date.prototype.toString.call(S), "date");
16805
+ if (K(S))
16806
+ return y(S);
16807
+ }
16808
+ var Y = "", ve = !1, rt = ["{", "}"];
16809
+ if (N(S) && (ve = !0, rt = ["[", "]"]), W(S)) {
16810
+ var sn = S.name ? ": " + S.name : "";
16811
+ Y = " [Function" + sn + "]";
16812
+ }
16813
+ if (M(S) && (Y = " " + RegExp.prototype.toString.call(S)), J(S) && (Y = " " + Date.prototype.toUTCString.call(S)), K(S) && (Y = " " + y(S)), x.length === 0 && (!ve || S.length == 0))
16814
+ return rt[0] + Y + rt[1];
16815
+ if (O < 0)
16816
+ return M(S) ? g.stylize(RegExp.prototype.toString.call(S), "regexp") : g.stylize("[Object]", "special");
16817
+ g.seen.push(S);
16805
16818
  var St;
16806
- return ve ? St = T(g, k, I, F, q) : St = q.map(function(on) {
16807
- return f(g, k, I, F, on, ve);
16808
- }), g.seen.pop(), _(St, Q, rt);
16819
+ return ve ? St = T(g, S, O, F, x) : St = x.map(function(on) {
16820
+ return f(g, S, O, F, on, ve);
16821
+ }), g.seen.pop(), k(St, Y, rt);
16809
16822
  }
16810
- function d(g, k) {
16811
- if (v(k))
16823
+ function d(g, S) {
16824
+ if (I(S))
16812
16825
  return g.stylize("undefined", "undefined");
16813
- if (A(k)) {
16814
- var I = "'" + JSON.stringify(k).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
16815
- return g.stylize(I, "string");
16816
- }
16817
- if (O(k))
16818
- return g.stylize("" + k, "number");
16819
- if (E(k))
16820
- return g.stylize("" + k, "boolean");
16821
- if (b(k))
16826
+ if (v(S)) {
16827
+ var O = "'" + JSON.stringify(S).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
16828
+ return g.stylize(O, "string");
16829
+ }
16830
+ if (b(S))
16831
+ return g.stylize("" + S, "number");
16832
+ if (h(S))
16833
+ return g.stylize("" + S, "boolean");
16834
+ if (A(S))
16822
16835
  return g.stylize("null", "null");
16823
16836
  }
16824
16837
  function y(g) {
16825
16838
  return "[" + Error.prototype.toString.call(g) + "]";
16826
16839
  }
16827
- function T(g, k, I, M, z) {
16828
- for (var q = [], F = 0, x = k.length; F < x; ++F)
16829
- Je(k, String(F)) ? q.push(f(
16840
+ function T(g, S, O, P, z) {
16841
+ for (var x = [], F = 0, H = S.length; F < H; ++F)
16842
+ Je(S, String(F)) ? x.push(f(
16830
16843
  g,
16831
- k,
16832
- I,
16833
- M,
16844
+ S,
16845
+ O,
16846
+ P,
16834
16847
  String(F),
16835
16848
  !0
16836
- )) : q.push("");
16837
- return z.forEach(function(Q) {
16838
- Q.match(/^\d+$/) || q.push(f(
16849
+ )) : x.push("");
16850
+ return z.forEach(function(Y) {
16851
+ Y.match(/^\d+$/) || x.push(f(
16839
16852
  g,
16840
- k,
16841
- I,
16842
- M,
16843
- Q,
16853
+ S,
16854
+ O,
16855
+ P,
16856
+ Y,
16844
16857
  !0
16845
16858
  ));
16846
- }), q;
16859
+ }), x;
16847
16860
  }
16848
- function f(g, k, I, M, z, q) {
16849
- var F, x, Q;
16850
- if (Q = Object.getOwnPropertyDescriptor(k, z) || { value: k[z] }, Q.get ? Q.set ? x = g.stylize("[Getter/Setter]", "special") : x = g.stylize("[Getter]", "special") : Q.set && (x = g.stylize("[Setter]", "special")), Je(M, z) || (F = "[" + z + "]"), x || (g.seen.indexOf(Q.value) < 0 ? (b(I) ? x = u(g, Q.value, null) : x = u(g, Q.value, I - 1), x.indexOf(`
16851
- `) > -1 && (q ? x = x.split(`
16861
+ function f(g, S, O, P, z, x) {
16862
+ var F, H, Y;
16863
+ if (Y = Object.getOwnPropertyDescriptor(S, z) || { value: S[z] }, Y.get ? Y.set ? H = g.stylize("[Getter/Setter]", "special") : H = g.stylize("[Getter]", "special") : Y.set && (H = g.stylize("[Setter]", "special")), Je(P, z) || (F = "[" + z + "]"), H || (g.seen.indexOf(Y.value) < 0 ? (A(O) ? H = u(g, Y.value, null) : H = u(g, Y.value, O - 1), H.indexOf(`
16864
+ `) > -1 && (x ? H = H.split(`
16852
16865
  `).map(function(ve) {
16853
16866
  return " " + ve;
16854
16867
  }).join(`
16855
- `).slice(2) : x = `
16856
- ` + x.split(`
16868
+ `).slice(2) : H = `
16869
+ ` + H.split(`
16857
16870
  `).map(function(ve) {
16858
16871
  return " " + ve;
16859
16872
  }).join(`
16860
- `))) : x = g.stylize("[Circular]", "special")), v(F)) {
16861
- if (q && z.match(/^\d+$/))
16862
- return x;
16873
+ `))) : H = g.stylize("[Circular]", "special")), I(F)) {
16874
+ if (x && z.match(/^\d+$/))
16875
+ return H;
16863
16876
  F = JSON.stringify("" + z), F.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (F = F.slice(1, -1), F = g.stylize(F, "name")) : (F = F.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), F = g.stylize(F, "string"));
16864
16877
  }
16865
- return F + ": " + x;
16878
+ return F + ": " + H;
16866
16879
  }
16867
- function _(g, k, I) {
16868
- var M = g.reduce(function(z, q) {
16869
- return q.indexOf(`
16870
- `) >= 0, z + q.replace(/\u001b\[\d\d?m/g, "").length + 1;
16880
+ function k(g, S, O) {
16881
+ var P = g.reduce(function(z, x) {
16882
+ return x.indexOf(`
16883
+ `) >= 0, z + x.replace(/\u001b\[\d\d?m/g, "").length + 1;
16871
16884
  }, 0);
16872
- return M > 60 ? I[0] + (k === "" ? "" : k + `
16885
+ return P > 60 ? O[0] + (S === "" ? "" : S + `
16873
16886
  `) + " " + g.join(`,
16874
- `) + " " + I[1] : I[0] + k + " " + g.join(", ") + " " + I[1];
16887
+ `) + " " + O[1] : O[0] + S + " " + g.join(", ") + " " + O[1];
16875
16888
  }
16876
16889
  e.types = mc;
16877
16890
  function N(g) {
16878
16891
  return Array.isArray(g);
16879
16892
  }
16880
16893
  e.isArray = N;
16881
- function E(g) {
16894
+ function h(g) {
16882
16895
  return typeof g == "boolean";
16883
16896
  }
16884
- e.isBoolean = E;
16885
- function b(g) {
16897
+ e.isBoolean = h;
16898
+ function A(g) {
16886
16899
  return g === null;
16887
16900
  }
16888
- e.isNull = b;
16901
+ e.isNull = A;
16889
16902
  function w(g) {
16890
16903
  return g == null;
16891
16904
  }
16892
16905
  e.isNullOrUndefined = w;
16893
- function O(g) {
16906
+ function b(g) {
16894
16907
  return typeof g == "number";
16895
16908
  }
16896
- e.isNumber = O;
16897
- function A(g) {
16909
+ e.isNumber = b;
16910
+ function v(g) {
16898
16911
  return typeof g == "string";
16899
16912
  }
16900
- e.isString = A;
16901
- function L(g) {
16913
+ e.isString = v;
16914
+ function R(g) {
16902
16915
  return typeof g == "symbol";
16903
16916
  }
16904
- e.isSymbol = L;
16905
- function v(g) {
16917
+ e.isSymbol = R;
16918
+ function I(g) {
16906
16919
  return g === void 0;
16907
16920
  }
16908
- e.isUndefined = v;
16909
- function U(g) {
16910
- return $(g) && V(g) === "[object RegExp]";
16921
+ e.isUndefined = I;
16922
+ function M(g) {
16923
+ return G(g) && q(g) === "[object RegExp]";
16911
16924
  }
16912
- e.isRegExp = U, e.types.isRegExp = U;
16913
- function $(g) {
16925
+ e.isRegExp = M, e.types.isRegExp = M;
16926
+ function G(g) {
16914
16927
  return typeof g == "object" && g !== null;
16915
16928
  }
16916
- e.isObject = $;
16917
- function ne(g) {
16918
- return $(g) && V(g) === "[object Date]";
16929
+ e.isObject = G;
16930
+ function J(g) {
16931
+ return G(g) && q(g) === "[object Date]";
16919
16932
  }
16920
- e.isDate = ne, e.types.isDate = ne;
16933
+ e.isDate = J, e.types.isDate = J;
16921
16934
  function K(g) {
16922
- return $(g) && (V(g) === "[object Error]" || g instanceof Error);
16935
+ return G(g) && (q(g) === "[object Error]" || g instanceof Error);
16923
16936
  }
16924
16937
  e.isError = K, e.types.isNativeError = K;
16925
16938
  function W(g) {
16926
16939
  return typeof g == "function";
16927
16940
  }
16928
16941
  e.isFunction = W;
16929
- function B(g) {
16942
+ function V(g) {
16930
16943
  return g === null || typeof g == "boolean" || typeof g == "number" || typeof g == "string" || typeof g == "symbol" || // ES6 symbol
16931
16944
  typeof g > "u";
16932
16945
  }
16933
- e.isPrimitive = B, e.isBuffer = h_;
16934
- function V(g) {
16946
+ e.isPrimitive = V, e.isBuffer = h_;
16947
+ function q(g) {
16935
16948
  return Object.prototype.toString.call(g);
16936
16949
  }
16937
- function X(g) {
16950
+ function Z(g) {
16938
16951
  return g < 10 ? "0" + g.toString(10) : g.toString(10);
16939
16952
  }
16940
16953
  var Ge = [
@@ -16952,96 +16965,96 @@ var S_ = ns.exports;
16952
16965
  "Dec"
16953
16966
  ];
16954
16967
  function qt() {
16955
- var g = /* @__PURE__ */ new Date(), k = [
16956
- X(g.getHours()),
16957
- X(g.getMinutes()),
16958
- X(g.getSeconds())
16968
+ var g = /* @__PURE__ */ new Date(), S = [
16969
+ Z(g.getHours()),
16970
+ Z(g.getMinutes()),
16971
+ Z(g.getSeconds())
16959
16972
  ].join(":");
16960
- return [g.getDate(), Ge[g.getMonth()], k].join(" ");
16973
+ return [g.getDate(), Ge[g.getMonth()], S].join(" ");
16961
16974
  }
16962
16975
  e.log = function() {
16963
16976
  console.log("%s - %s", qt(), e.format.apply(e, arguments));
16964
- }, e.inherits = S_, e._extend = function(g, k) {
16965
- if (!k || !$(k)) return g;
16966
- for (var I = Object.keys(k), M = I.length; M--; )
16967
- g[I[M]] = k[I[M]];
16977
+ }, e.inherits = S_, e._extend = function(g, S) {
16978
+ if (!S || !G(S)) return g;
16979
+ for (var O = Object.keys(S), P = O.length; P--; )
16980
+ g[O[P]] = S[O[P]];
16968
16981
  return g;
16969
16982
  };
16970
- function Je(g, k) {
16971
- return Object.prototype.hasOwnProperty.call(g, k);
16983
+ function Je(g, S) {
16984
+ return Object.prototype.hasOwnProperty.call(g, S);
16972
16985
  }
16973
16986
  var ge = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
16974
16987
  e.promisify = function(g) {
16975
16988
  if (typeof g != "function")
16976
16989
  throw new TypeError('The "original" argument must be of type Function');
16977
16990
  if (ge && g[ge]) {
16978
- var k = g[ge];
16979
- if (typeof k != "function")
16991
+ var S = g[ge];
16992
+ if (typeof S != "function")
16980
16993
  throw new TypeError('The "util.promisify.custom" argument must be of type Function');
16981
- return Object.defineProperty(k, ge, {
16982
- value: k,
16994
+ return Object.defineProperty(S, ge, {
16995
+ value: S,
16983
16996
  enumerable: !1,
16984
16997
  writable: !1,
16985
16998
  configurable: !0
16986
- }), k;
16987
- }
16988
- function k() {
16989
- for (var I, M, z = new Promise(function(x, Q) {
16990
- I = x, M = Q;
16991
- }), q = [], F = 0; F < arguments.length; F++)
16992
- q.push(arguments[F]);
16993
- q.push(function(x, Q) {
16994
- x ? M(x) : I(Q);
16999
+ }), S;
17000
+ }
17001
+ function S() {
17002
+ for (var O, P, z = new Promise(function(H, Y) {
17003
+ O = H, P = Y;
17004
+ }), x = [], F = 0; F < arguments.length; F++)
17005
+ x.push(arguments[F]);
17006
+ x.push(function(H, Y) {
17007
+ H ? P(H) : O(Y);
16995
17008
  });
16996
17009
  try {
16997
- g.apply(this, q);
16998
- } catch (x) {
16999
- M(x);
17010
+ g.apply(this, x);
17011
+ } catch (H) {
17012
+ P(H);
17000
17013
  }
17001
17014
  return z;
17002
17015
  }
17003
- return Object.setPrototypeOf(k, Object.getPrototypeOf(g)), ge && Object.defineProperty(k, ge, {
17004
- value: k,
17016
+ return Object.setPrototypeOf(S, Object.getPrototypeOf(g)), ge && Object.defineProperty(S, ge, {
17017
+ value: S,
17005
17018
  enumerable: !1,
17006
17019
  writable: !1,
17007
17020
  configurable: !0
17008
17021
  }), Object.defineProperties(
17009
- k,
17022
+ S,
17010
17023
  t(g)
17011
17024
  );
17012
17025
  }, e.promisify.custom = ge;
17013
- function ke(g, k) {
17026
+ function ke(g, S) {
17014
17027
  if (!g) {
17015
- var I = new Error("Promise was rejected with a falsy value");
17016
- I.reason = g, g = I;
17028
+ var O = new Error("Promise was rejected with a falsy value");
17029
+ O.reason = g, g = O;
17017
17030
  }
17018
- return k(g);
17031
+ return S(g);
17019
17032
  }
17020
17033
  function he(g) {
17021
17034
  if (typeof g != "function")
17022
17035
  throw new TypeError('The "original" argument must be of type Function');
17023
- function k() {
17024
- for (var I = [], M = 0; M < arguments.length; M++)
17025
- I.push(arguments[M]);
17026
- var z = I.pop();
17036
+ function S() {
17037
+ for (var O = [], P = 0; P < arguments.length; P++)
17038
+ O.push(arguments[P]);
17039
+ var z = O.pop();
17027
17040
  if (typeof z != "function")
17028
17041
  throw new TypeError("The last argument must be of type Function");
17029
- var q = this, F = function() {
17030
- return z.apply(q, arguments);
17042
+ var x = this, F = function() {
17043
+ return z.apply(x, arguments);
17031
17044
  };
17032
- g.apply(this, I).then(
17033
- function(x) {
17034
- D.nextTick(F.bind(null, null, x));
17045
+ g.apply(this, O).then(
17046
+ function(H) {
17047
+ C.nextTick(F.bind(null, null, H));
17035
17048
  },
17036
- function(x) {
17037
- D.nextTick(ke.bind(null, x, F));
17049
+ function(H) {
17050
+ C.nextTick(ke.bind(null, H, F));
17038
17051
  }
17039
17052
  );
17040
17053
  }
17041
- return Object.setPrototypeOf(k, Object.getPrototypeOf(g)), Object.defineProperties(
17042
- k,
17054
+ return Object.setPrototypeOf(S, Object.getPrototypeOf(g)), Object.defineProperties(
17055
+ S,
17043
17056
  t(g)
17044
- ), k;
17057
+ ), S;
17045
17058
  }
17046
17059
  e.callbackify = he;
17047
17060
  })(Jn);
@@ -17259,32 +17272,32 @@ function v_(e) {
17259
17272
  n.selectColor = t;
17260
17273
  function n(u) {
17261
17274
  let d, y = null, T, f;
17262
- function _(...N) {
17263
- if (!_.enabled)
17275
+ function k(...N) {
17276
+ if (!k.enabled)
17264
17277
  return;
17265
- const E = _, b = Number(/* @__PURE__ */ new Date()), w = b - (d || b);
17266
- E.diff = w, E.prev = d, E.curr = b, d = b, N[0] = n.coerce(N[0]), typeof N[0] != "string" && N.unshift("%O");
17267
- let O = 0;
17268
- N[0] = N[0].replace(/%([a-zA-Z%])/g, (A, L) => {
17269
- if (A === "%%")
17278
+ const h = k, A = Number(/* @__PURE__ */ new Date()), w = A - (d || A);
17279
+ h.diff = w, h.prev = d, h.curr = A, d = A, N[0] = n.coerce(N[0]), typeof N[0] != "string" && N.unshift("%O");
17280
+ let b = 0;
17281
+ N[0] = N[0].replace(/%([a-zA-Z%])/g, (v, R) => {
17282
+ if (v === "%%")
17270
17283
  return "%";
17271
- O++;
17272
- const v = n.formatters[L];
17273
- if (typeof v == "function") {
17274
- const U = N[O];
17275
- A = v.call(E, U), N.splice(O, 1), O--;
17284
+ b++;
17285
+ const I = n.formatters[R];
17286
+ if (typeof I == "function") {
17287
+ const M = N[b];
17288
+ v = I.call(h, M), N.splice(b, 1), b--;
17276
17289
  }
17277
- return A;
17278
- }), n.formatArgs.call(E, N), (E.log || n.log).apply(E, N);
17290
+ return v;
17291
+ }), n.formatArgs.call(h, N), (h.log || n.log).apply(h, N);
17279
17292
  }
17280
- return _.namespace = u, _.useColors = n.useColors(), _.color = n.selectColor(u), _.extend = a, _.destroy = n.destroy, Object.defineProperty(_, "enabled", {
17293
+ return k.namespace = u, k.useColors = n.useColors(), k.color = n.selectColor(u), k.extend = a, k.destroy = n.destroy, Object.defineProperty(k, "enabled", {
17281
17294
  enumerable: !0,
17282
17295
  configurable: !1,
17283
17296
  get: () => y !== null ? y : (T !== n.namespaces && (T = n.namespaces, f = n.enabled(u)), f),
17284
17297
  set: (N) => {
17285
17298
  y = N;
17286
17299
  }
17287
- }), typeof n.init == "function" && n.init(_), _;
17300
+ }), typeof n.init == "function" && n.init(k), k;
17288
17301
  }
17289
17302
  function a(u, d) {
17290
17303
  const y = n(this.namespace + (typeof d > "u" ? ":" : d) + u);
@@ -17443,7 +17456,7 @@ var A_ = v_;
17443
17456
  l = t.storage.getItem("debug");
17444
17457
  } catch {
17445
17458
  }
17446
- return !l && typeof D < "u" && "env" in D && (l = D.env.DEBUG), l;
17459
+ return !l && typeof C < "u" && "env" in C && (l = C.env.DEBUG), l;
17447
17460
  }
17448
17461
  function r() {
17449
17462
  try {
@@ -17482,7 +17495,7 @@ Vt.prototype.exec = function(e, t) {
17482
17495
  let a = !1;
17483
17496
  const s = this.name;
17484
17497
  if (this.parent._error && !this.isAfter) {
17485
- ue("skipping loading of plugin as parent errored and it is not an after", s), D.nextTick(t);
17498
+ ue("skipping loading of plugin as parent errored and it is not an after", s), C.nextTick(t);
17486
17499
  return;
17487
17500
  }
17488
17501
  if (this.isAfter)
@@ -17509,8 +17522,8 @@ Vt.prototype.exec = function(e, t) {
17509
17522
  }, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
17510
17523
  const c = n(this.server, this.opts, r);
17511
17524
  c && typeof c.then == "function" && (ue("exec: resolving promise", s), c.then(
17512
- () => D.nextTick(r),
17513
- (l) => D.nextTick(r, l)
17525
+ () => C.nextTick(r),
17526
+ (l) => C.nextTick(r, l)
17514
17527
  ));
17515
17528
  };
17516
17529
  Vt.prototype.loadedSoFar = function() {
@@ -17518,7 +17531,7 @@ Vt.prototype.loadedSoFar = function() {
17518
17531
  return Promise.resolve();
17519
17532
  const e = () => {
17520
17533
  this.server.after((n, a) => {
17521
- this._error = n, this.q.pause(), n ? (ue("rejecting promise", this.name, n), this._promise.reject(n)) : (ue("resolving promise", this.name), this._promise.resolve()), this._promise = null, D.nextTick(a, n);
17534
+ this._error = n, this.q.pause(), n ? (ue("rejecting promise", this.name, n), this._promise.reject(n)) : (ue("resolving promise", this.name), this._promise.resolve()), this._promise = null, C.nextTick(a, n);
17522
17535
  }), this.q.resume();
17523
17536
  };
17524
17537
  let t;
@@ -17554,7 +17567,7 @@ Vt.prototype.finish = function(e, t) {
17554
17567
  };
17555
17568
  function C_(e, t) {
17556
17569
  const n = this;
17557
- D.nextTick(Bs.bind(n), e, t);
17570
+ C.nextTick(Bs.bind(n), e, t);
17558
17571
  }
17559
17572
  function Bs(e, t) {
17560
17573
  if (typeof e.func.then == "function") {
@@ -17642,7 +17655,7 @@ function Y_(e, t, n) {
17642
17655
  }
17643
17656
  B_(ce, G_);
17644
17657
  ce.prototype.start = function() {
17645
- return this.started = !0, D.nextTick(this._doStart), this;
17658
+ return this.started = !0, C.nextTick(this._doStart), this;
17646
17659
  };
17647
17660
  ce.prototype.override = function(e, t, n) {
17648
17661
  return e;
@@ -17658,7 +17671,7 @@ ce.prototype.use = function(e, t) {
17658
17671
  };
17659
17672
  ce.prototype._loadRegistered = function() {
17660
17673
  const e = this._current[0];
17661
- return !this.started && !this.booted && D.nextTick(() => this._root.q.resume()), e ? e.loadedSoFar() : Promise.resolve();
17674
+ return !this.started && !this.booted && C.nextTick(() => this._root.q.resume()), e ? e.loadedSoFar() : Promise.resolve();
17662
17675
  };
17663
17676
  Object.defineProperty(ce.prototype, "then", { get: Ac });
17664
17677
  ce.prototype._addPlugin = function(e, t, n) {
@@ -17708,7 +17721,7 @@ ce.prototype.close = function(e) {
17708
17721
  };
17709
17722
  });
17710
17723
  return this.ready(() => {
17711
- this._error = null, this._closeQ.push(e), D.nextTick(this._closeQ.resume.bind(this._closeQ));
17724
+ this._error = null, this._closeQ.push(e), C.nextTick(this._closeQ.resume.bind(this._closeQ));
17712
17725
  }), t;
17713
17726
  };
17714
17727
  ce.prototype.ready = function(e) {
@@ -17722,7 +17735,7 @@ ce.prototype.ready = function(e) {
17722
17735
  this._readyQ.push(s), this.start();
17723
17736
  const a = this._current[0].server;
17724
17737
  function s(o, r, c) {
17725
- o ? n(o) : t(a), D.nextTick(c);
17738
+ o ? n(o) : t(a), C.nextTick(c);
17726
17739
  }
17727
17740
  });
17728
17741
  };
@@ -17749,9 +17762,9 @@ function wc(e, t) {
17749
17762
  const n = this._server, a = this._error;
17750
17763
  let s;
17751
17764
  if (this._error = null, e.length === 0)
17752
- this._error = a, s = e(), s && !s[Vn] && typeof s.then == "function" ? s.then(() => D.nextTick(t), (o) => D.nextTick(t, o)) : D.nextTick(t);
17765
+ this._error = a, s = e(), s && !s[Vn] && typeof s.then == "function" ? s.then(() => C.nextTick(t), (o) => C.nextTick(t, o)) : C.nextTick(t);
17753
17766
  else if (e.length === 1)
17754
- s = e(a), s && !s[Vn] && typeof s.then == "function" ? s.then(() => D.nextTick(t), (o) => D.nextTick(t, o)) : D.nextTick(t);
17767
+ s = e(a), s && !s[Vn] && typeof s.then == "function" ? s.then(() => C.nextTick(t), (o) => C.nextTick(t, o)) : C.nextTick(t);
17755
17768
  else if (this._timeout === 0) {
17756
17769
  const o = (r) => {
17757
17770
  this._error = r, t(this._error);
@@ -17778,9 +17791,9 @@ function K_(e, t) {
17778
17791
  if (e.length === 0 || e.length === 1) {
17779
17792
  let s;
17780
17793
  a ? s = e(n) : s = e(this._error), s && typeof s.then == "function" ? (Ft("resolving close/onClose promise"), s.then(
17781
- () => D.nextTick(t),
17782
- (o) => D.nextTick(t, o)
17783
- )) : D.nextTick(t);
17794
+ () => C.nextTick(t),
17795
+ (o) => C.nextTick(t, o)
17796
+ )) : C.nextTick(t);
17784
17797
  } else e.length === 2 ? e(a ? n : this._error, t) : a ? e(n, t) : e(this._error, n, t);
17785
17798
  }
17786
17799
  function W_(e, t) {
@@ -17788,10 +17801,10 @@ function W_(e, t) {
17788
17801
  function n(a, s) {
17789
17802
  let o;
17790
17803
  e.length === 0 ? (o = e(), o && o.then ? o.then(function() {
17791
- D.nextTick(s);
17792
- }, s) : D.nextTick(s)) : e.length === 1 ? (o = e(this), o && o.then ? o.then(function() {
17793
- D.nextTick(s);
17794
- }, s) : D.nextTick(s)) : e(this, s);
17804
+ C.nextTick(s);
17805
+ }, s) : C.nextTick(s)) : e.length === 1 ? (o = e(this), o && o.then ? o.then(function() {
17806
+ C.nextTick(s);
17807
+ }, s) : C.nextTick(s)) : e(this, s);
17795
17808
  }
17796
17809
  }
17797
17810
  function Ra(e, t) {
@@ -17799,10 +17812,10 @@ function Ra(e, t) {
17799
17812
  function n(a, s) {
17800
17813
  let o;
17801
17814
  e ? e.length === 0 ? (o = e(), o && o.then ? o.then(function() {
17802
- D.nextTick(s, a);
17803
- }, s) : D.nextTick(s, a)) : e.length === 1 ? (o = e(a), o && o.then ? o.then(function() {
17804
- D.nextTick(s);
17805
- }, s) : D.nextTick(s)) : e.length === 2 ? e(a, s) : e(a, this, s) : D.nextTick(s);
17815
+ C.nextTick(s, a);
17816
+ }, s) : C.nextTick(s, a)) : e.length === 1 ? (o = e(a), o && o.then ? o.then(function() {
17817
+ C.nextTick(s);
17818
+ }, s) : C.nextTick(s)) : e.length === 2 ? e(a, s) : e(a, this, s) : C.nextTick(s);
17806
17819
  }
17807
17820
  }
17808
17821
  vs.exports = ce;
@@ -17832,9 +17845,9 @@ const J_ = /* @__PURE__ */ Ih(z_);
17832
17845
  }, window.cancelAnimationFrame = clearTimeout;
17833
17846
  }
17834
17847
  })();
17835
- function X_(e, t = !0, n = !0, a) {
17848
+ function X_(e, t = !0, n = !0, a = { friendsTab: "enabled" }) {
17836
17849
  const s = t ? "https://grpc-sdk.streamlayer.io:443" : "https://grpc-sdk.next.streamlayer.io:443", o = t ? "https://grpc.streamlayer.io:443" : "https://grpc.next.streamlayer.io:443", r = J_(/* @__PURE__ */ Object.create({}), { autostart: !1 });
17837
- return r.use(th), r.use(Kk, { onDeepLinkHandled: a == null ? void 0 : a.onDeepLinkHandled }), r.use(Xk, { videoPlayerController: a == null ? void 0 : a.videoPlayerController }), r.use(eh, {
17850
+ return r.use(th, { friendsTab: a.friendsTab }), r.use(Kk, { onDeepLinkHandled: a == null ? void 0 : a.onDeepLinkHandled }), r.use(Xk, { videoPlayerController: a == null ? void 0 : a.videoPlayerController }), r.use(eh, {
17838
17851
  onContentActivate: a == null ? void 0 : a.onContentActivate,
17839
17852
  withAd: a == null ? void 0 : a.withAd,
17840
17853
  withAdNotification: a == null ? void 0 : a.withAdNotification
@@ -17859,34 +17872,36 @@ const tE = ({
17859
17872
  videoPlayerController: o,
17860
17873
  onContentActivate: r,
17861
17874
  withAdNotification: c,
17862
- withAd: l
17875
+ withAd: l,
17876
+ friendsTab: m
17863
17877
  }) => {
17864
- const [m, u] = Cc(null);
17878
+ const [u, d] = Cc(null);
17865
17879
  return Uc(() => {
17866
- let d = !1;
17880
+ let y = !1;
17867
17881
  if (!e)
17868
- return console.error("streamlayer sdk key should be provided"), u((T) => (T !== null && typeof T.disableApp == "function" && T.disableApp(), null)), () => {
17869
- d = !0;
17882
+ return console.error("streamlayer sdk key should be provided"), d((f) => (f !== null && typeof f.disableApp == "function" && f.disableApp(), null)), () => {
17883
+ y = !0;
17870
17884
  };
17871
- const y = X_(e, n, a, {
17872
- version: "1.8.6",
17885
+ const T = X_(e, n, a, {
17886
+ version: "1.9.1",
17873
17887
  onDeepLinkHandled: s,
17874
17888
  videoPlayerController: o,
17875
17889
  onContentActivate: r,
17876
17890
  withAdNotification: c,
17877
- withAd: l
17891
+ withAd: l,
17892
+ friendsTab: m
17878
17893
  });
17879
17894
  if (t)
17880
- for (const T of t)
17881
- y.use(T);
17882
- return y.ready().then((T) => {
17883
- d || (u(T.sdk), typeof window < "u");
17884
- }).catch((T) => console.log(T)), () => {
17885
- d = !0, y.close(function(T) {
17886
- if (T) throw T;
17895
+ for (const f of t)
17896
+ T.use(f);
17897
+ return T.ready().then((f) => {
17898
+ y || (d(f.sdk), typeof window < "u");
17899
+ }).catch((f) => console.log(f)), () => {
17900
+ y = !0, T.close(function(f) {
17901
+ if (f) throw f;
17887
17902
  });
17888
17903
  };
17889
- }, [e, n]), m;
17904
+ }, [e, n]), u;
17890
17905
  };
17891
17906
  export {
17892
17907
  us as A,
@@ -17894,14 +17909,14 @@ export {
17894
17909
  Ba as I,
17895
17910
  Tm as N,
17896
17911
  hm as P,
17897
- C as Q,
17898
- Y as S,
17912
+ U as Q,
17913
+ j as S,
17899
17914
  Fa as a,
17900
17915
  ym as b,
17901
17916
  pm as c,
17902
- Se as d,
17917
+ _e as d,
17903
17918
  km as e,
17904
- P as f,
17919
+ D as f,
17905
17920
  fo as g,
17906
17921
  Sm as h,
17907
17922
  gt as i,