@streamlayer/react 1.9.0 → 1.9.2

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;
@@ -141,8 +141,8 @@ function Hc(e, t, n) {
141
141
  return e;
142
142
  var l = t.length;
143
143
  if (l === 0) return e;
144
- for (var m = "", u = 1 - s, d = -1, f = e && e.length || 0, T = 0; T < f; ) {
145
- if (e.charCodeAt(T) === 37 && T + 1 < f) {
144
+ for (var m = "", u = 1 - s, d = -1, y = e && e.length || 0, T = 0; T < y; ) {
145
+ if (e.charCodeAt(T) === 37 && T + 1 < y) {
146
146
  switch (d = d > -1 ? d : 0, e.charCodeAt(T + 1)) {
147
147
  case 100:
148
148
  case 102:
@@ -158,12 +158,12 @@ function Hc(e, t, n) {
158
158
  case 106:
159
159
  if (u >= l || t[u] === void 0) break;
160
160
  d < T && (m += e.slice(d, T));
161
- var y = typeof t[u];
162
- if (y === "string") {
161
+ var f = typeof t[u];
162
+ if (f === "string") {
163
163
  m += "'" + t[u] + "'", d = T + 2, T++;
164
164
  break;
165
165
  }
166
- if (y === "function") {
166
+ if (f === "function") {
167
167
  m += t[u].name || "<anonymous>", d = T + 2, T++;
168
168
  break;
169
169
  }
@@ -182,7 +182,7 @@ function Hc(e, t, n) {
182
182
  }
183
183
  ++T;
184
184
  }
185
- return d === -1 ? e : (d < f && (m += e.slice(d)), m);
185
+ return d === -1 ? e : (d < y && (m += e.slice(d)), m);
186
186
  }
187
187
  const xs = xc;
188
188
  os.exports = $e;
@@ -237,14 +237,14 @@ 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", {
245
245
  get: d
246
246
  }), Object.defineProperty(m, "level", {
247
- get: f,
247
+ get: y,
248
248
  set: T
249
249
  });
250
250
  const u = {
@@ -257,41 +257,41 @@ 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 y.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);
265
265
  }
266
- function f() {
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 y(_, 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 y.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
  }
@@ -363,8 +363,8 @@ function Xc(e, t, n, a) {
363
363
  for (var m = 0; m < c.length; m++) c[m] = arguments[m];
364
364
  var u = !1;
365
365
  if (t.serialize && (is(c, this._serialize, this.serializers, this._stdErrSerialize), u = !0), t.asObject || t.formatters ? s.call(l, Zc(this, a, c, r, t)) : s.apply(l, c), t.transmit) {
366
- const d = t.transmit.level || e._level, f = n.levels.values[d], T = n.levels.values[a];
367
- if (T < f) return;
366
+ const d = t.transmit.level || e._level, y = n.levels.values[d], T = n.levels.values[a];
367
+ if (T < y) return;
368
368
  el(this, {
369
369
  ts: r,
370
370
  methodLevel: a,
@@ -381,13 +381,13 @@ function Xc(e, t, n, a) {
381
381
  function Zc(e, t, n, a, s) {
382
382
  const {
383
383
  level: o,
384
- log: r = (f) => f
384
+ log: r = (y) => y
385
385
  } = s.formatters || {}, c = n.slice();
386
386
  let l = c[0];
387
387
  const m = {};
388
388
  if (a && (m.time = a), o) {
389
- const f = o(t, e.levels.values[t]);
390
- Object.assign(m, f);
389
+ const y = o(t, e.levels.values[t]);
390
+ Object.assign(m, y);
391
391
  } else
392
392
  m.level = e.levels.values[t];
393
393
  let u = (e._childLevel | 0) + 1;
@@ -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 = {
@@ -1441,8 +1441,8 @@ function Al() {
1441
1441
  const u = o.findExtension(r.substring(1, r.length - 1));
1442
1442
  if (u && u.extendee.typeName == e.typeName) {
1443
1443
  m = !0;
1444
- const [d, f] = Hr(u);
1445
- Js(d, c, u.field, n, u), Il(a, u, f(), n);
1444
+ const [d, y] = Hr(u);
1445
+ Js(d, c, u.field, n, u), Il(a, u, y(), n);
1446
1446
  }
1447
1447
  }
1448
1448
  if (!m && !n.ignoreUnknownFields)
@@ -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)}`);
@@ -1559,8 +1559,8 @@ function Js(e, t, n, a, s) {
1559
1559
  try {
1560
1560
  r[m] = jt(n.V.T, l, tt.BIGINT, !0);
1561
1561
  } catch (d) {
1562
- let f = `cannot decode map value for field ${s.typeName}.${n.name} from JSON: ${Re(t)}`;
1563
- throw d instanceof Error && d.message.length > 0 && (f += `: ${d.message}`), new Error(f);
1562
+ let y = `cannot decode map value for field ${s.typeName}.${n.name} from JSON: ${Re(t)}`;
1563
+ throw d instanceof Error && d.message.length > 0 && (y += `: ${d.message}`), new Error(y);
1564
1564
  }
1565
1565
  break;
1566
1566
  }
@@ -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,16 +1857,16 @@ 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
- let f = e[r];
1864
- if (a == Z.LengthDelimited && c != h.STRING && c != h.BYTES) {
1865
- let y = t.uint32() + t.pos;
1866
- for (; t.pos < y; )
1867
- f.push(l(t, c));
1863
+ let y = e[r];
1864
+ if (a == ee.LengthDelimited && c != _.STRING && c != _.BYTES) {
1865
+ let f = t.uint32() + t.pos;
1866
+ for (; t.pos < f; )
1867
+ y.push(l(t, c));
1868
1868
  } else
1869
- f.push(l(t, c));
1869
+ y.push(l(t, c));
1870
1870
  } else
1871
1871
  e[r] = l(t, c);
1872
1872
  break;
@@ -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,28 +2082,28 @@ 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)
2097
- for (const [T, y] of Object.entries(r[s]))
2098
- o[s][T] = xt(y);
2096
+ if (a.V.T === _.BYTES)
2097
+ for (const [T, f] of Object.entries(r[s]))
2098
+ o[s][T] = xt(f);
2099
2099
  else
2100
2100
  Object.assign(o[s], r[s]);
2101
2101
  break;
2102
2102
  case "message":
2103
- const f = a.V.T;
2103
+ const y = a.V.T;
2104
2104
  for (const T of Object.keys(r[s])) {
2105
- let y = r[s][T];
2106
- f.fieldWrapper || (y = new f(y)), o[s][T] = y;
2105
+ let f = r[s][T];
2106
+ y.fieldWrapper || (f = new y(f)), o[s][T] = f;
2107
2107
  }
2108
2108
  break;
2109
2109
  }
@@ -2111,10 +2111,10 @@ function Gl() {
2111
2111
  case "message":
2112
2112
  const d = a.T;
2113
2113
  if (a.repeated)
2114
- o[s] = r[s].map((f) => dt(f, d) ? f : new d(f));
2114
+ o[s] = r[s].map((y) => dt(y, d) ? y : new d(y));
2115
2115
  else {
2116
- const f = r[s];
2117
- d.fieldWrapper ? /* We can't use BytesValue.typeName as that will create a circular import */ d.typeName === "google.protobuf.BytesValue" ? o[s] = xt(f) : o[s] = f : o[s] = dt(f, d) ? f : new d(f);
2116
+ const y = r[s];
2117
+ d.fieldWrapper ? /* We can't use BytesValue.typeName as that will create a circular import */ d.typeName === "google.protobuf.BytesValue" ? o[s] = xt(y) : o[s] = y : o[s] = dt(y, d) ? y : new d(y);
2118
2118
  }
2119
2119
  break;
2120
2120
  }
@@ -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,9 +2347,9 @@ 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) {
2351
- const f = typeof u.oneof == "string" ? u.oneof : u.oneof.name;
2352
- (!m || m.name != f) && (m = new $l(f)), d.oneof = m, m.addField(d);
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
+ const y = typeof u.oneof == "string" ? u.oneof : u.oneof.name;
2352
+ (!m || m.name != y) && (m = new $l(y)), d.oneof = m, m.addField(d);
2353
2353
  }
2354
2354
  l.push(d);
2355
2355
  }
@@ -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";
@@ -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" },
@@ -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,
@@ -6495,8 +6495,8 @@ let Ss = (e, t, n, a) => (e.events = e.events || {}, e.events[n + un] || (e.even
6495
6495
  let u = ++s;
6496
6496
  a = m;
6497
6497
  let d = t(...m);
6498
- d && d.then && d.t ? d.then((f) => {
6499
- u === s && r.set(f);
6498
+ d && d.then && d.t ? d.then((y) => {
6499
+ u === s && r.set(y);
6500
6500
  }) : r.set(d);
6501
6501
  }
6502
6502
  }, r = at(void 0, Math.max(...e.map((m) => m.l)) + 1), c, l = n ? () => {
@@ -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);
@@ -6672,26 +6672,26 @@ var op = function(e) {
6672
6672
  return this;
6673
6673
  }, s;
6674
6674
  function r(T) {
6675
- return function(y) {
6676
- return Promise.resolve(y).then(T, d);
6675
+ return function(f) {
6676
+ return Promise.resolve(f).then(T, d);
6677
6677
  };
6678
6678
  }
6679
- function c(T, y) {
6680
- a[T] && (s[T] = function(_) {
6681
- return new Promise(function(N, E) {
6682
- o.push([T, _, N, E]) > 1 || l(T, _);
6679
+ function c(T, f) {
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
- }, y && (s[T] = y(s[T])));
6684
+ }, f && (s[T] = f(s[T])));
6685
6685
  }
6686
- function l(T, y) {
6686
+ function l(T, f) {
6687
6687
  try {
6688
- m(a[T](y));
6689
- } catch (_) {
6690
- f(o[0][3], _);
6688
+ m(a[T](f));
6689
+ } catch (k) {
6690
+ y(o[0][3], k);
6691
6691
  }
6692
6692
  }
6693
6693
  function m(T) {
6694
- T.value instanceof Xt ? Promise.resolve(T.value.v).then(u, d) : f(o[0][2], T);
6694
+ T.value instanceof Xt ? Promise.resolve(T.value.v).then(u, d) : y(o[0][2], T);
6695
6695
  }
6696
6696
  function u(T) {
6697
6697
  l("next", T);
@@ -6699,8 +6699,8 @@ var op = function(e) {
6699
6699
  function d(T) {
6700
6700
  l("throw", T);
6701
6701
  }
6702
- function f(T, y) {
6703
- T(y), o.shift(), o.length && l(o[0][0], o[0][1]);
6702
+ function y(T, f) {
6703
+ T(f), o.shift(), o.length && l(o[0][0], o[0][1]);
6704
6704
  }
6705
6705
  }, ip = function(e) {
6706
6706
  var t, n;
@@ -6759,26 +6759,26 @@ var ki = function(e) {
6759
6759
  return this;
6760
6760
  }, s;
6761
6761
  function r(T) {
6762
- return function(y) {
6763
- return Promise.resolve(y).then(T, d);
6762
+ return function(f) {
6763
+ return Promise.resolve(f).then(T, d);
6764
6764
  };
6765
6765
  }
6766
- function c(T, y) {
6767
- a[T] && (s[T] = function(_) {
6768
- return new Promise(function(N, E) {
6769
- o.push([T, _, N, E]) > 1 || l(T, _);
6766
+ function c(T, f) {
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
- }, y && (s[T] = y(s[T])));
6771
+ }, f && (s[T] = f(s[T])));
6772
6772
  }
6773
- function l(T, y) {
6773
+ function l(T, f) {
6774
6774
  try {
6775
- m(a[T](y));
6776
- } catch (_) {
6777
- f(o[0][3], _);
6775
+ m(a[T](f));
6776
+ } catch (k) {
6777
+ y(o[0][3], k);
6778
6778
  }
6779
6779
  }
6780
6780
  function m(T) {
6781
- T.value instanceof Dt ? Promise.resolve(T.value.v).then(u, d) : f(o[0][2], T);
6781
+ T.value instanceof Dt ? Promise.resolve(T.value.v).then(u, d) : y(o[0][2], T);
6782
6782
  }
6783
6783
  function u(T) {
6784
6784
  l("next", T);
@@ -6786,20 +6786,20 @@ var ki = function(e) {
6786
6786
  function d(T) {
6787
6787
  l("throw", T);
6788
6788
  }
6789
- function f(T, y) {
6790
- T(y), o.shift(), o.length && l(o[0][0], o[0][1]);
6789
+ function y(T, f) {
6790
+ T(f), o.shift(), o.length && l(o[0][0], o[0][1]);
6791
6791
  }
6792
6792
  };
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;
@@ -6823,24 +6823,24 @@ function pp(e, t, n) {
6823
6823
  var o, r, c, l, m, u;
6824
6824
  const d = await e.stream(t, n, s == null ? void 0 : s.signal, s == null ? void 0 : s.timeoutMs, s == null ? void 0 : s.headers, a, s == null ? void 0 : s.contextValues);
6825
6825
  (m = s == null ? void 0 : s.onHeader) === null || m === void 0 || m.call(s, d.header);
6826
- let f, T = 0;
6826
+ let y, T = 0;
6827
6827
  try {
6828
- for (var y = !0, _ = ki(d.message), N; N = await _.next(), o = N.done, !o; y = !0)
6829
- l = N.value, y = !1, f = l, T++;
6830
- } catch (E) {
6831
- r = { error: E };
6828
+ for (var f = !0, k = ki(d.message), N; N = await k.next(), o = N.done, !o; f = !0)
6829
+ l = N.value, f = !1, y = l, T++;
6830
+ } catch (h) {
6831
+ r = { error: h };
6832
6832
  } finally {
6833
6833
  try {
6834
- !y && !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
- if (!f)
6840
- throw new H("protocol error: missing response message", P.Unimplemented);
6839
+ if (!y)
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);
6843
- return (u = s == null ? void 0 : s.onTrailer) === null || u === void 0 || u.call(s, d.trailer), f;
6842
+ throw new Q("protocol error: received extra messages for client streaming method", D.Unimplemented);
6843
+ return (u = s == null ? void 0 : s.onTrailer) === null || u === void 0 || u.call(s, d.trailer), y;
6844
6844
  };
6845
6845
  }
6846
6846
  function Tp(e, t, n) {
@@ -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);
@@ -7166,26 +7166,26 @@ var mt = function(e) {
7166
7166
  return this;
7167
7167
  }, s;
7168
7168
  function r(T) {
7169
- return function(y) {
7170
- return Promise.resolve(y).then(T, d);
7169
+ return function(f) {
7170
+ return Promise.resolve(f).then(T, d);
7171
7171
  };
7172
7172
  }
7173
- function c(T, y) {
7174
- a[T] && (s[T] = function(_) {
7175
- return new Promise(function(N, E) {
7176
- o.push([T, _, N, E]) > 1 || l(T, _);
7173
+ function c(T, f) {
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
- }, y && (s[T] = y(s[T])));
7178
+ }, f && (s[T] = f(s[T])));
7179
7179
  }
7180
- function l(T, y) {
7180
+ function l(T, f) {
7181
7181
  try {
7182
- m(a[T](y));
7183
- } catch (_) {
7184
- f(o[0][3], _);
7182
+ m(a[T](f));
7183
+ } catch (k) {
7184
+ y(o[0][3], k);
7185
7185
  }
7186
7186
  }
7187
7187
  function m(T) {
7188
- T.value instanceof mt ? Promise.resolve(T.value.v).then(u, d) : f(o[0][2], T);
7188
+ T.value instanceof mt ? Promise.resolve(T.value.v).then(u, d) : y(o[0][2], T);
7189
7189
  }
7190
7190
  function u(T) {
7191
7191
  l("next", T);
@@ -7193,8 +7193,8 @@ var mt = function(e) {
7193
7193
  function d(T) {
7194
7194
  l("throw", T);
7195
7195
  }
7196
- function f(T, y) {
7197
- T(y), o.shift(), o.length && l(o[0][0], o[0][1]);
7196
+ function y(T, f) {
7197
+ T(f), o.shift(), o.length && l(o[0][0], o[0][1]);
7198
7198
  }
7199
7199
  };
7200
7200
  function Io(e) {
@@ -7204,7 +7204,7 @@ function Io(e) {
7204
7204
  return {
7205
7205
  async unary(a, s, o, r, c, l, m) {
7206
7206
  var u;
7207
- const { serialize: d, parse: f } = ho(s, n, e.jsonOptions, e.binaryOptions);
7207
+ const { serialize: d, parse: y } = ho(s, n, e.jsonOptions, e.binaryOptions);
7208
7208
  return r = r === void 0 ? e.defaultTimeoutMs : r <= 0 ? void 0 : r, await vp({
7209
7209
  interceptors: e.interceptors,
7210
7210
  signal: o,
@@ -7225,39 +7225,39 @@ function Io(e) {
7225
7225
  message: l
7226
7226
  },
7227
7227
  next: async (T) => {
7228
- var y;
7229
- const N = await ((y = e.fetch) !== null && y !== void 0 ? y : 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);
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: 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 = f(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
  }
@@ -7265,41 +7265,41 @@ function Io(e) {
7265
7265
  },
7266
7266
  async stream(a, s, o, r, c, l, m) {
7267
7267
  var u;
7268
- const { serialize: d, parse: f } = ho(s, n, e.jsonOptions, e.binaryOptions);
7269
- function T(_, N, E, b, w, O) {
7268
+ const { serialize: d, parse: y } = ho(s, n, e.jsonOptions, e.binaryOptions);
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(f(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 y(_) {
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 y(_.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,155 +7362,155 @@ 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 && y(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
- }, f = (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
- f(E, d), a.emit(Ro, E);
7466
- }, y = (E, b) => {
7467
- f(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
- y($, 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;
7513
- }, invalidateKeys: T, mutateCache: y }
7512
+ ), l = h;
7513
+ }, invalidateKeys: T, mutateCache: f }
7514
7514
  ];
7515
7515
  };
7516
7516
  function vo(e) {
@@ -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(
@@ -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: {
@@ -12664,10 +12664,10 @@ var qe;
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) {
@@ -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
  }
@@ -12992,13 +12992,13 @@ class ek {
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));
@@ -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: {
@@ -13496,13 +13496,13 @@ const kk = (e, t, n) => {
13496
13496
  if (!m || !u)
13497
13497
  return m || u || [];
13498
13498
  const d = [];
13499
- for (let f = 0; f < m.length; f++)
13499
+ for (let y = 0; y < m.length; y++)
13500
13500
  d.push({
13501
- ...m[f],
13502
- ...u[f],
13503
- correct: m[f].correct,
13504
- youVoted: m[f].youVoted,
13505
- pointsEarned: m[f].pointsEarned
13501
+ ...m[y],
13502
+ ...u[y],
13503
+ correct: m[y].correct,
13504
+ youVoted: m[y].youVoted,
13505
+ pointsEarned: m[y].pointsEarned
13506
13506
  });
13507
13507
  return d;
13508
13508
  };
@@ -13558,98 +13558,105 @@ const Lk = (e) => {
13558
13558
  }, Pk = (e, t, n) => {
13559
13559
  let a = !1;
13560
13560
  const s = n.transport, o = ze("advertisement"), r = new Rk(), c = Se({}), l = Ak(e, s), m = () => {
13561
- var N, E, b;
13561
+ var h, A, w;
13562
13562
  c.setKey("hasNotification", !1);
13563
- const T = c.get(), y = (N = T.data) == null ? void 0 : N.question.id, _ = (b = (E = T.data) == null ? void 0 : E.promotion) == null ? void 0 : b.type;
13564
- y && 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: y,
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(), y = (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
- y && !N && (o.debug({ id: y }, "markAsViewed: %o"), r.setShowed(y), 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: y,
13578
- type: _
13577
+ id: k,
13578
+ type: N
13579
13579
  }
13580
13580
  }));
13581
- }, d = (T, y) => {
13582
- var _;
13583
- y ? c.set({
13581
+ }, d = (f, k) => {
13582
+ var N;
13583
+ k ? c.set({
13584
13584
  loading: !1,
13585
13585
  error: void 0,
13586
- data: y,
13587
- hasNotification: ((_ = y == null ? void 0 : y.notification) == null ? void 0 : _.enabled) === Fa.NOTIFICATION_ENABLED,
13588
- close: () => f(y.question.id),
13589
- isViewed: !!r.isViewed(y.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: () => f(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, y) => {
13607
- var _, N, E, b, w, O, A;
13608
- if (((N = (_ = T.data) == null ? void 0 : _.promotion) == null ? void 0 : N.type) === _e.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 = y == null ? void 0 : y.data) == null ? void 0 : O.question.id)
13621
- }), !(T != null && T.data) && (y != null && y.data) && pe.emit("advertisement", {
13622
- action: "closed",
13623
- payload: {
13624
- id: y.data.question.id,
13625
- type: (A = y.data.promotion) == null ? void 0 : A.type,
13626
- hasNotification: !!y.hasNotification,
13627
- isViewed: !!r.isViewed(y.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 f = (T) => {
13632
- var y, _;
13633
- (!T || ((_ = (y = c.get()) == null ? void 0 : y.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, y) => {
13637
- T.data && (!(y != null && y.data) || T.data.id !== y.data.id) && d(T.data.question.id, T.data);
13638
- }), t.addListener("promotion", (T) => {
13639
- const y = Lk(T);
13640
- if (y) {
13641
- if (y.question.status === de.RESOLVED) {
13642
- f(y.question.id), o.debug({ promotion: y }, "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 (y.question.status === de.ACTIVE) {
13646
- o.debug({ promotion: y }, "active: %o"), d(y.question.id, y);
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: y }, "skip: %o");
13656
+ o.debug({ promotion: k }, "skip: %o");
13650
13657
  }
13651
13658
  }));
13652
- }, hide: f, show: d, open: m, markAsViewed: u, $store: c };
13659
+ }, hide: y, show: d, open: m, markAsViewed: u, $store: c };
13653
13660
  };
13654
13661
  var Tt;
13655
13662
  (function(e) {
@@ -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;
@@ -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 });
@@ -13987,19 +13994,19 @@ const xk = {
13987
13994
  loading: void 0,
13988
13995
  error: void 0
13989
13996
  }), l = hk(e), m = async () => {
13990
- var y;
13991
- const f = t.get(), T = ((y = a.getStore().get().data) == null ? void 0 : y.map((_) => _.slId)) || [];
13992
- if (f && (T != null && T.length)) {
13993
- const _ = n.get();
13994
- _ && T.push(_), c.setKey("loading", !0), c.setKey("data", []);
13997
+ var f;
13998
+ const y = t.get(), T = ((f = a.getStore().get().data) == null ? void 0 : f.map((k) => k.slId)) || [];
13999
+ if (y && (T != null && T.length)) {
14000
+ const k = n.get();
14001
+ k && T.push(k), c.setKey("loading", !0), c.setKey("data", []);
13995
14002
  const N = await l({
13996
- eventId: f,
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(),
@@ -14008,14 +14015,14 @@ const xk = {
14008
14015
  }
14009
14016
  }, u = () => {
14010
14017
  m();
14011
- }, d = (f) => {
14012
- const T = r.get(), y = f || T.page + 1;
14013
- y <= o && r.set({ ...T, page: y });
14018
+ }, d = (y) => {
14019
+ const T = r.get(), f = y || T.page + 1;
14020
+ f <= o && r.set({ ...T, page: f });
14014
14021
  };
14015
14022
  return Qn(c, () => {
14016
- const f = t.listen(m), T = a.listen(m);
14023
+ const y = t.listen(m), T = a.listen(m);
14017
14024
  return () => {
14018
- f(), T();
14025
+ y(), T();
14019
14026
  };
14020
14027
  }), { $store: c, fetchMore: d, invalidate: u };
14021
14028
  };
@@ -14130,7 +14137,7 @@ class zk extends Wg {
14130
14137
  * @param userKey - user token received from the host app.
14131
14138
  */
14132
14139
  p(this, "login", async (n, a) => {
14133
- var u, d, f;
14140
+ var u, d, y;
14134
14141
  this.$coreStore.getValues().userKey.setValue(a);
14135
14142
  const { used: s, data: o } = this.deepLink.getDeepLinkData(), r = s ? "" : o == null ? void 0 : o[Wn];
14136
14143
  Wk.debug({ inviterKey: r }, "login with inviterKey");
@@ -14142,7 +14149,7 @@ class zk extends Wg {
14142
14149
  }), l = (u = c.meta) == null ? void 0 : u.jwt, m = (d = c.data) == null ? void 0 : d.id;
14143
14150
  if (!l || !m)
14144
14151
  throw new Error("internal: token missing");
14145
- return (f = c.meta) != null && f.inviterKey && this.deepLink.deepLinkUsed(c.meta.inviterKey), this.$coreStore.getValues().user.getStore().mutate({ data: c.data }), this.saveUser(l, m), l;
14152
+ return (y = c.meta) != null && y.inviterKey && this.deepLink.deepLinkUsed(c.meta.inviterKey), this.$coreStore.getValues().user.getStore().mutate({ data: c.data }), this.saveUser(l, m), l;
14146
14153
  });
14147
14154
  p(this, "isAuthenticated", () => this.me());
14148
14155
  /**
@@ -14243,11 +14250,11 @@ 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
14259
  e.sdk.uiState = Se({}), e.ui = {
14253
14260
  enableAppNotification: function() {
@@ -14291,11 +14298,11 @@ const Ht = new It(), Jk = (e, t, n) => {
14291
14298
  break;
14292
14299
  }
14293
14300
  if (((m = c.slEventBus) == null ? void 0 : m.type) === "advertisement" && t.withAd) {
14294
- const u = c.slEventBus, { hasNotification: d, id: f, isViewed: T, type: y } = u.payload;
14301
+ const u = c.slEventBus, { hasNotification: d, id: y, isViewed: T, type: f } = u.payload;
14295
14302
  switch (u.action) {
14296
14303
  case "notification-opened":
14297
14304
  e.sdk.uiState.set({
14298
- promotionExternalAd: y === _e.EXTERNAL_AD,
14305
+ promotionExternalAd: f === _e.EXTERNAL_AD,
14299
14306
  promotionBanner: !0,
14300
14307
  promotionNotification: !1,
14301
14308
  promotionOverlay: !0,
@@ -14305,7 +14312,7 @@ const Ht = new It(), Jk = (e, t, n) => {
14305
14312
  case "received":
14306
14313
  if (e.sdk.closeFeature(), a({
14307
14314
  stage: "activate",
14308
- id: f,
14315
+ id: y,
14309
14316
  hasNotification: d,
14310
14317
  isViewed: T
14311
14318
  }), !t.withAdNotification) {
@@ -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: y === _e.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: y === _e.EXTERNAL_AD
14333
+ promotionExternalAd: f === _e.EXTERNAL_AD
14327
14334
  });
14328
14335
  break;
14329
14336
  case "closed":
@@ -14336,7 +14343,7 @@ const Ht = new It(), Jk = (e, t, n) => {
14336
14343
  promotionSidebar: !1
14337
14344
  }), a({
14338
14345
  stage: "deactivate",
14339
- id: f,
14346
+ id: y,
14340
14347
  hasNotification: d,
14341
14348
  isViewed: T
14342
14349
  });
@@ -14411,7 +14418,7 @@ const Ht = new It(), Jk = (e, t, n) => {
14411
14418
  }, sh = (e, t, n, a) => {
14412
14419
  const s = Se({});
14413
14420
  return Qn(s, () => nh(e, [t, n]).subscribe(async ({ data: o, loading: r }) => {
14414
- var f;
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 = {
14416
14423
  [Wn]: l,
14417
14424
  [Ji]: m,
@@ -14419,13 +14426,13 @@ const Ht = new It(), Jk = (e, t, n) => {
14419
14426
  };
14420
14427
  if (!r && c) {
14421
14428
  s.setKey("loading", !0);
14422
- let T = window.location.search, y = window.location.hash;
14423
- T && y || y ? T = `?${or(T, d)}` : y = `#${or("", d)}`;
14424
- const _ = window.location.origin + window.location.pathname + T + y;
14429
+ let T = window.location.search, f = window.location.hash;
14430
+ T && f || f ? T = `?${or(T, d)}` : f = `#${or("", d)}`;
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
- data: (f = N.data) == null ? void 0 : f.link,
14435
+ data: (y = N.data) == null ? void 0 : y.link,
14429
14436
  loading: !1
14430
14437
  });
14431
14438
  } catch {
@@ -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({
@@ -14479,15 +14486,15 @@ const oh = (e, t, n, a) => {
14479
14486
  eventId: t.slStreamId.get() || ""
14480
14487
  }) === ae.Completed) {
14481
14488
  e.set(ae.Completed);
14482
- for (const y of o)
14483
- y();
14489
+ for (const f of o)
14490
+ f();
14484
14491
  return;
14485
14492
  }
14486
14493
  const u = (r = t.moderation.getStore().value) == null ? void 0 : r.data, d = n.featureSettings.get().inplayGame;
14487
14494
  if (u === void 0 || d === void 0)
14488
14495
  return;
14489
- const f = (c = u == null ? void 0 : u.options) == null ? void 0 : c.onboardingEnabled, T = (l = d == null ? void 0 : d.titleCard) == null ? void 0 : l.optIn;
14490
- f ? T ? e.set(ae.Required) : e.set(ae.Optional) : (T ? e.set(ae.Unavailable) : e.set(ae.Disabled), a.close(t.getCurrentSessionId({ prefix: "onboarding" }), { markAsViewed: !1 }));
14496
+ const y = (c = u == null ? void 0 : u.options) == null ? void 0 : c.onboardingEnabled, T = (l = d == null ? void 0 : d.titleCard) == null ? void 0 : l.optIn;
14497
+ y ? T ? e.set(ae.Required) : e.set(ae.Optional) : (T ? e.set(ae.Unavailable) : e.set(ae.Disabled), a.close(t.getCurrentSessionId({ prefix: "onboarding" }), { markAsViewed: !1 }));
14491
14498
  } catch (m) {
14492
14499
  console.error(m);
14493
14500
  }
@@ -14525,16 +14532,16 @@ const oh = (e, t, n, a) => {
14525
14532
  } };
14526
14533
  }, ih = (e, t, n, a) => {
14527
14534
  const s = Se(void 0), o = Ki(a), r = async () => {
14528
- var T, y;
14529
- const l = e.get(), m = t.get(), u = (T = n.getStore().get().data) == null ? void 0 : T.map((_) => _.slId);
14535
+ var T, f;
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 = {
14533
14540
  eventId: l,
14534
14541
  userId: m,
14535
14542
  usersIds: [...u, m]
14536
- }, f = await o(d);
14537
- s.set((y = f.data) == null ? void 0 : y.attributes);
14543
+ }, y = await o(d);
14544
+ s.set((f = y.data) == null ? void 0 : f.attributes);
14538
14545
  }, c = () => {
14539
14546
  r();
14540
14547
  };
@@ -14545,14 +14552,14 @@ const oh = (e, t, n, a) => {
14545
14552
  };
14546
14553
  }), { $store: s, invalidate: c };
14547
14554
  }, ch = async (e, t, n, a, s) => {
14548
- var u, d, f;
14555
+ var u, d, y;
14549
14556
  const o = Ki(s), r = e.get(), c = t.get(), l = ((u = n.getStore().get().data) == null ? void 0 : u.map((T) => T.slId)) || [], m = {
14550
14557
  eventId: r,
14551
14558
  userId: a,
14552
14559
  usersIds: [...l, c]
14553
14560
  };
14554
- return (f = (d = (await o(m)).data) == null ? void 0 : d.attributes) == null ? void 0 : f.summary;
14555
- }, lh = /* @__PURE__ */ new Set([C.POLL, C.PREDICTION, C.TRIVIA]);
14561
+ return (y = (d = (await o(m)).data) == null ? void 0 : d.attributes) == null ? void 0 : y.summary;
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);
@@ -14601,53 +14608,53 @@ class mh extends Yi {
14601
14608
  this.onboardingProcessed.subscribe((n) => {
14602
14609
  n && this.advertisement.connect();
14603
14610
  }), this.cancels.add(this.background.feedSubscription.addListener("feed-subscription-prediction-close", async (n) => {
14604
- var m, u, d, f, T, y, _, N, E, b, w;
14611
+ var m, u, d, y, T, f, k, N, h, A, w;
14605
14612
  if (!this.isInteractiveAllowed)
14606
14613
  return;
14607
- const a = (u = (m = n.data) == null ? void 0 : m.attributes) == null ? void 0 : u.question, s = (f = (d = n.data) == null ? void 0 : d.attributes) == null ? void 0 : f.feedItem;
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;
14608
14615
  if (!a || !(s != null && s.attributes))
14609
14616
  return;
14610
14617
  const { status: o, type: r, id: c, answers: l } = a;
14611
- if (o === de.RESOLVED && r === C.PREDICTION) {
14612
- const O = this.background.getCurrentSessionId({
14618
+ if (o === de.RESOLVED && r === U.PREDICTION) {
14619
+ const b = this.background.getCurrentSessionId({
14613
14620
  prefix: `notification-id:${c}`
14614
- }), A = [...this.feedList.getValues().data || []], L = A.findIndex((X) => X.id === c), v = A[L];
14615
- let U = (_ = (y = (T = v == null ? void 0 : v.attributes) == null ? void 0 : T.attributes) == null ? void 0 : y.value) == null ? void 0 : _.answerId;
14616
- 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(() => {
14617
14624
  });
14618
- await $.get().promise;
14619
- let K = $.get().data;
14620
- K || (K = await Ok(c, this.transport)), ne(), window.requestAnimationFrame(() => {
14621
- $.invalidate();
14622
- }), U || (U = (N = K == null ? void 0 : K.answers.find(({ youVoted: X }) => X)) == null ? void 0 : N.id);
14623
- const W = l.find(({ correct: X }) => X), B = U ? l.find(({ id: X }) => X === U) : void 0, V = !!(B != null && B.correct);
14624
- 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") {
14625
14632
  try {
14626
- 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);
14627
14634
  } catch {
14628
14635
  }
14629
- this.feedList.getStore().mutate(A);
14636
+ this.feedList.getStore().mutate(v);
14630
14637
  }
14631
- if (!B || !W)
14638
+ if (!V || !W)
14632
14639
  return;
14633
14640
  ((w = this.openedQuestionId.get()) == null ? void 0 : w.questionId) !== a.id && this.notifications.add({
14634
14641
  type: et.QUESTION_RESOLVED,
14635
14642
  action: () => this.openQuestion(a.id, s),
14636
14643
  close: () => this.closeQuestion(c),
14637
- autoHideDuration: V ? 15e3 : 12e3,
14638
- id: O,
14644
+ autoHideDuration: q ? 15e3 : 12e3,
14645
+ id: b,
14639
14646
  emitEvent: !1,
14640
14647
  data: {
14641
14648
  questionId: c,
14642
- questionType: C.PREDICTION,
14649
+ questionType: U.PREDICTION,
14643
14650
  question: {
14644
- 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}!`,
14645
14652
  votedAnswer: {
14646
- title: B == null ? void 0 : B.text,
14647
- points: B == null ? void 0 : B.points
14653
+ title: V == null ? void 0 : V.text,
14654
+ points: V == null ? void 0 : V.points
14648
14655
  },
14649
14656
  correctAnswerTitle: W == null ? void 0 : W.text,
14650
- correct: !!V,
14657
+ correct: !!q,
14651
14658
  predictionResult: o === de.RESOLVED,
14652
14659
  questionTitle: a == null ? void 0 : a.subject
14653
14660
  }
@@ -14720,11 +14727,11 @@ class mh extends Yi {
14720
14727
  p(this, "submitAnswer", async (n, a) => {
14721
14728
  const s = Ka(n, this.transport), o = s.subscribe(() => {
14722
14729
  }), r = { ...s.get().data || {} }, c = () => {
14723
- var f;
14730
+ var y;
14724
14731
  const l = this.feedList.getValues().data;
14725
14732
  if (!l)
14726
14733
  return;
14727
- const m = l.findIndex((T) => T.id === n), u = l[m], d = ((f = u == null ? void 0 : u.attributes) == null ? void 0 : f.attributes.case) === "question" && u.attributes.attributes.value;
14734
+ const m = l.findIndex((T) => T.id === n), u = l[m], d = ((y = u == null ? void 0 : u.attributes) == null ? void 0 : y.attributes.case) === "question" && u.attributes.attributes.value;
14728
14735
  if (d) {
14729
14736
  pe.emit("poll", {
14730
14737
  action: "voted",
@@ -14735,10 +14742,10 @@ class mh extends Yi {
14735
14742
  });
14736
14743
  const T = s.get().data;
14737
14744
  if (o(), T) {
14738
- const y = 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));
14739
- 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) || "", y && (l[m].attributes.attributes.value.status = y.id === a ? Qt.WON : Qt.LOST), this.feedList.getStore().mutate([...l]), T.answers[_].correct = (y == null ? void 0 : y.id) === a, T.answers[_].youVoted = !0, E && T.answers.forEach((b) => {
14740
- b.percentageDecimal = 0;
14741
- }), (y == null ? void 0 : y.id) === a && (T.answers[_].pointsEarned = T.status === de.RESOLVED ? 0 : y.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 });
14742
14749
  }
14743
14750
  this.submitAnswerTimeout && clearTimeout(this.submitAnswerTimeout), this.submitAnswerTimeout = setTimeout(() => {
14744
14751
  this.userSummary.invalidate();
@@ -14818,19 +14825,19 @@ class mh extends Yi {
14818
14825
  * skipping questions with inAppSilence === ON
14819
14826
  */
14820
14827
  p(this, "showInApp", (n) => {
14821
- var s, o, r, c, l, m, u, d, f, T, y, _, N, E;
14828
+ var s, o, r, c, l, m, u, d, y, T, f, k, N, h, A, w;
14822
14829
  const a = this.onboardingStatus.$store.get();
14823
- 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) {
14824
14831
  if (lh.has(n.data.question.type))
14825
- this.isInteractiveAllowed && this.notifications.add({
14832
+ this.isInteractiveAllowed && n.data.question.notification !== void 0 && this.notifications.add({
14826
14833
  type: et.QUESTION,
14827
14834
  action: () => {
14828
- var b, w, O;
14829
- 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);
14830
14837
  },
14831
14838
  close: () => {
14832
- var b, w;
14833
- 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);
14834
14841
  },
14835
14842
  autoHideDuration: 1e3 * 60,
14836
14843
  id: this.background.getCurrentSessionId({
@@ -14846,16 +14853,16 @@ class mh extends Yi {
14846
14853
  }
14847
14854
  }
14848
14855
  });
14849
- else if (n.data.question.type === C.FACTOID) {
14850
- const b = (c = n.data.question.options) == null ? void 0 : c.options.value, w = {
14851
- heading: n.data.question.notification.title,
14852
- 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,
14853
14860
  imageMode: b == null ? void 0 : b.imageMode,
14854
14861
  image: b == null ? void 0 : b.image,
14855
14862
  video: {
14856
- id: ((l = b == null ? void 0 : b.video) == null ? void 0 : l.id) || "",
14857
- url: ((m = b == null ? void 0 : b.video) == null ? void 0 : m.url) || "",
14858
- 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) || ""
14859
14866
  },
14860
14867
  webLink: {
14861
14868
  label: "",
@@ -14865,12 +14872,12 @@ class mh extends Yi {
14865
14872
  this.notifications.add({
14866
14873
  type: et.QUESTION,
14867
14874
  action: () => {
14868
- var O, A, L;
14869
- 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);
14870
14877
  },
14871
14878
  close: () => {
14872
- var O, A;
14873
- 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);
14874
14881
  },
14875
14882
  autoHideDuration: 1e3 * 120,
14876
14883
  emitEvent: !0,
@@ -14878,28 +14885,28 @@ class mh extends Yi {
14878
14885
  data: {
14879
14886
  questionId: n.data.question.id,
14880
14887
  questionType: n.data.question.type,
14881
- insight: w
14888
+ insight: I
14882
14889
  }
14883
14890
  });
14884
- } else if (n.data.question.type === C.TWEET) {
14885
- const b = (d = n.data.question.options) == null ? void 0 : d.options.value, w = {
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 = {
14886
14893
  title: (f = n.data.question.notification) == null ? void 0 : f.title,
14887
- body: (T = n.data.question.notification) == null ? void 0 : T.body,
14888
- image: (y = n.data.question.notification) == null ? void 0 : y.image,
14889
- account: ((_ = b == null ? void 0 : b.tweetMeta) == null ? void 0 : _.account) || "",
14890
- accountVerified: !!((N = b == null ? void 0 : b.tweetMeta) != null && N.accountVerified),
14891
- tweet: (E = b == null ? void 0 : b.tweetMeta) == null ? void 0 : E.tweet,
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,
14892
14899
  tweetId: n.data.question.id
14893
14900
  };
14894
14901
  this.notifications.add({
14895
14902
  type: et.QUESTION,
14896
14903
  action: () => {
14897
- var O, A, L;
14898
- 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);
14899
14906
  },
14900
14907
  close: () => {
14901
- var O, A;
14902
- 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);
14903
14910
  },
14904
14911
  autoHideDuration: 1e3 * 120,
14905
14912
  emitEvent: !0,
@@ -14907,13 +14914,13 @@ class mh extends Yi {
14907
14914
  data: {
14908
14915
  questionId: n.data.question.id,
14909
14916
  questionType: n.data.question.type,
14910
- tweet: w
14917
+ tweet: v
14911
14918
  }
14912
14919
  });
14913
14920
  }
14914
14921
  }
14915
14922
  });
14916
- 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(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) => {
14917
14924
  r != null && r.summary && (o != null && o.summary) && this.leaderboardList.invalidate();
14918
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) => {
14919
14926
  (r === void 0 || o !== ae.Unset) && this.background.activeQuestionId.invalidate();
@@ -14932,19 +14939,19 @@ class mh extends Yi {
14932
14939
  }
14933
14940
  }
14934
14941
  const uh = {
14935
- [Y.GAMES]: !0
14942
+ [j.GAMES]: !0
14936
14943
  };
14937
14944
  class dh extends Yi {
14938
14945
  constructor(t, n) {
14939
14946
  super(t, n);
14940
14947
  }
14941
14948
  }
14942
- const ph = (e, t, n) => e.type === Y.GAMES ? new mh(e, t, n) : new dh(e, t), Th = (e, t, n) => {
14943
- e.features = /* @__PURE__ */ new Map(), e.sdk.featuresList = new Ne(oe(/* @__PURE__ */ new Set()), "features-list"), e.activeFeature = new Ne(oe(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) => {
14944
14951
  e.activeFeature.setValue(a);
14945
14952
  }, e.sdk.closeFeature = (a = !1) => {
14946
14953
  const s = e.activeFeature.getValue();
14947
- if (e.activeFeature.setValue(Y.UNSET), a && s) {
14954
+ if (e.activeFeature.setValue(j.UNSET), a && s) {
14948
14955
  e.features.delete(s);
14949
14956
  const o = e.sdk.featuresList.getValue();
14950
14957
  o && o.delete(s), e.sdk.featuresList.setValue(o);
@@ -15182,34 +15189,34 @@ class kh {
15182
15189
  }
15183
15190
  }
15184
15191
  const Wt = {
15185
- [C.UNSET]: se.UNSET,
15186
- [C.FACTOID]: se.POLLS_INSIGHT,
15187
- [C.POLL]: se.POLLS_POLL,
15188
- [C.PREDICTION]: se.POLLS_PREDICTION,
15189
- [C.PROMOTION]: se.POLLS_PROMOTION,
15190
- [C.TRIVIA]: se.POLLS_TRIVIA,
15191
- [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
15192
15199
  };
15193
- 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;
15194
15201
  const hh = {
15195
- [Y.UNSET]: me.UNSET,
15196
- [Y.INPLAY]: me.INPLAY,
15197
- [Y.MESSAGING]: me.MESSAGING,
15198
- [Y.STATISTICS]: me.STATS,
15199
- [Y.BETTING]: me.BETTING,
15200
- [Y.TWITTER]: me.TWITTER,
15201
- [Y.MERCHANDISE]: me.MERCHANDISE,
15202
- [Y.CONTESTS]: me.CONTESTS,
15203
- [Y.VOICE_CHAT]: me.CALLING,
15204
- [Y.TICKETS]: me.TICKETS,
15205
- [Y.WHOIS_WATCHING]: me.WHOISWATCHING,
15206
- [Y.PROFILE]: me.PROFILE,
15207
- [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,
15208
15215
  // ??
15209
- [Y.GOLF_STATISTICS]: me.STATS,
15216
+ [j.GOLF_STATISTICS]: me.STATS,
15210
15217
  // ??
15211
- [Y.HIGHLIGHTS]: me.HIGHLIGHTS,
15212
- [Y.PUBLIC_CHAT]: me.PUBLIC_CHAT
15218
+ [j.HIGHLIGHTS]: me.HIGHLIGHTS,
15219
+ [j.PUBLIC_CHAT]: me.PUBLIC_CHAT
15213
15220
  };
15214
15221
  class Sh {
15215
15222
  constructor(t) {
@@ -15360,8 +15367,8 @@ const Eh = ({ transport: e, $commonStore: t }) => {
15360
15367
  }
15361
15368
  }
15362
15369
  });
15363
- } catch (f) {
15364
- He.error(f, "send heartbeat failed");
15370
+ } catch (y) {
15371
+ He.error(y, "send heartbeat failed");
15365
15372
  }
15366
15373
  return Date.now();
15367
15374
  },
@@ -15415,7 +15422,7 @@ class bh {
15415
15422
  this.onConnect(() => t.stores.slStreamId.getAtomStore().subscribe((n) => {
15416
15423
  this.writeCommon("eventId", n);
15417
15424
  })), this.onConnect(() => t.sdk.getActiveFeature().subscribe((n) => {
15418
- 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", "");
15419
15426
  })), this.onConnect(() => {
15420
15427
  const n = window.matchMedia("(orientation: portrait)"), a = (s) => {
15421
15428
  this.writeCommon("screenOrientation", s.matches ? Ua.PORTRAIT : Ua.LANDSCAPE);
@@ -15463,7 +15470,7 @@ function Zi(e, t, n) {
15463
15470
  if (typeof e == "function" && (n = t, t = e, e = null), !(n >= 1))
15464
15471
  throw new Error("fastqueue concurrency must be equal to or greater than 1");
15465
15472
  var a = Ah(wh), s = null, o = null, r = 0, c = null, l = {
15466
- push: _,
15473
+ push: k,
15467
15474
  drain: Ee,
15468
15475
  saturated: Ee,
15469
15476
  pause: u,
@@ -15471,23 +15478,23 @@ function Zi(e, t, n) {
15471
15478
  get concurrency() {
15472
15479
  return n;
15473
15480
  },
15474
- set concurrency(A) {
15475
- if (!(A >= 1))
15481
+ set concurrency(v) {
15482
+ if (!(v >= 1))
15476
15483
  throw new Error("fastqueue concurrency must be equal to or greater than 1");
15477
- if (n = A, !l.paused)
15484
+ if (n = v, !l.paused)
15478
15485
  for (; s && r < n; )
15479
- r++, E();
15486
+ r++, h();
15480
15487
  },
15481
15488
  running: m,
15482
15489
  resume: T,
15483
- idle: y,
15490
+ idle: f,
15484
15491
  length: d,
15485
- getQueue: f,
15492
+ getQueue: y,
15486
15493
  unshift: N,
15487
15494
  empty: Ee,
15488
- kill: b,
15495
+ kill: A,
15489
15496
  killAndDrain: w,
15490
- error: O
15497
+ error: b
15491
15498
  };
15492
15499
  return l;
15493
15500
  function m() {
@@ -15497,49 +15504,49 @@ function Zi(e, t, n) {
15497
15504
  l.paused = !0;
15498
15505
  }
15499
15506
  function d() {
15500
- for (var A = s, L = 0; A; )
15501
- A = A.next, L++;
15502
- return L;
15507
+ for (var v = s, R = 0; v; )
15508
+ v = v.next, R++;
15509
+ return R;
15503
15510
  }
15504
- function f() {
15505
- for (var A = s, L = []; A; )
15506
- L.push(A.value), A = A.next;
15507
- return L;
15511
+ function y() {
15512
+ for (var v = s, R = []; v; )
15513
+ R.push(v.value), v = v.next;
15514
+ return R;
15508
15515
  }
15509
15516
  function T() {
15510
15517
  if (l.paused) {
15511
15518
  if (l.paused = !1, s === null) {
15512
- r++, E();
15519
+ r++, h();
15513
15520
  return;
15514
15521
  }
15515
15522
  for (; s && r < n; )
15516
- r++, E();
15523
+ r++, h();
15517
15524
  }
15518
15525
  }
15519
- function y() {
15526
+ function f() {
15520
15527
  return r === 0 && l.length() === 0;
15521
15528
  }
15522
- function _(A, L) {
15523
- var v = a.get();
15524
- v.context = e, v.release = E, v.value = A, v.callback = L || Ee, 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));
15525
15532
  }
15526
- function N(A, L) {
15527
- var v = a.get();
15528
- v.context = e, v.release = E, v.value = A, v.callback = L || Ee, 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));
15529
15536
  }
15530
- function E(A) {
15531
- A && a.release(A);
15532
- var L = s;
15533
- 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();
15534
15541
  }
15535
- function b() {
15542
+ function A() {
15536
15543
  s = null, o = null, l.drain = Ee;
15537
15544
  }
15538
15545
  function w() {
15539
15546
  s = null, o = null, l.drain(), l.drain = Ee;
15540
15547
  }
15541
- function O(A) {
15542
- c = A;
15548
+ function b(v) {
15549
+ c = v;
15543
15550
  }
15544
15551
  }
15545
15552
  function Ee() {
@@ -15555,44 +15562,44 @@ function wh() {
15555
15562
  function Rh(e, t, n) {
15556
15563
  typeof e == "function" && (n = t, t = e, e = null);
15557
15564
  function a(u, d) {
15558
- t.call(this, u).then(function(f) {
15559
- d(null, f);
15565
+ t.call(this, u).then(function(y) {
15566
+ d(null, y);
15560
15567
  }, d);
15561
15568
  }
15562
15569
  var s = Zi(e, a, n), o = s.push, r = s.unshift;
15563
15570
  return s.push = c, s.unshift = l, s.drained = m, s;
15564
15571
  function c(u) {
15565
- var d = new Promise(function(f, T) {
15566
- o(u, function(y, _) {
15567
- if (y) {
15568
- T(y);
15572
+ var d = new Promise(function(y, T) {
15573
+ o(u, function(f, k) {
15574
+ if (f) {
15575
+ T(f);
15569
15576
  return;
15570
15577
  }
15571
- f(_);
15578
+ y(k);
15572
15579
  });
15573
15580
  });
15574
15581
  return d.catch(Ee), d;
15575
15582
  }
15576
15583
  function l(u) {
15577
- var d = new Promise(function(f, T) {
15578
- r(u, function(y, _) {
15579
- if (y) {
15580
- T(y);
15584
+ var d = new Promise(function(y, T) {
15585
+ r(u, function(f, k) {
15586
+ if (f) {
15587
+ T(f);
15581
15588
  return;
15582
15589
  }
15583
- f(_);
15590
+ y(k);
15584
15591
  });
15585
15592
  });
15586
15593
  return d.catch(Ee), d;
15587
15594
  }
15588
15595
  function m() {
15589
15596
  if (s.idle())
15590
- return new Promise(function(f) {
15591
- f();
15597
+ return new Promise(function(y) {
15598
+ y();
15592
15599
  });
15593
- var u = s.drain, d = new Promise(function(f) {
15600
+ var u = s.drain, d = new Promise(function(y) {
15594
15601
  s.drain = function() {
15595
- u(), f();
15602
+ u(), y();
15596
15603
  };
15597
15604
  });
15598
15605
  return d;
@@ -15614,21 +15621,21 @@ function Lh(e) {
15614
15621
  var tc = Number.isNaN || function(e) {
15615
15622
  return e !== e;
15616
15623
  };
15617
- function j() {
15618
- j.init.call(this);
15624
+ function $() {
15625
+ $.init.call(this);
15619
15626
  }
15620
- ws.exports = j;
15627
+ ws.exports = $;
15621
15628
  ws.exports.once = Ch;
15622
- j.EventEmitter = j;
15623
- j.prototype._events = void 0;
15624
- j.prototype._eventsCount = 0;
15625
- j.prototype._maxListeners = void 0;
15629
+ $.EventEmitter = $;
15630
+ $.prototype._events = void 0;
15631
+ $.prototype._eventsCount = 0;
15632
+ $.prototype._maxListeners = void 0;
15626
15633
  var ir = 10;
15627
15634
  function zn(e) {
15628
15635
  if (typeof e != "function")
15629
15636
  throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof e);
15630
15637
  }
15631
- Object.defineProperty(j, "defaultMaxListeners", {
15638
+ Object.defineProperty($, "defaultMaxListeners", {
15632
15639
  enumerable: !0,
15633
15640
  get: function() {
15634
15641
  return ir;
@@ -15639,21 +15646,21 @@ Object.defineProperty(j, "defaultMaxListeners", {
15639
15646
  ir = e;
15640
15647
  }
15641
15648
  });
15642
- j.init = function() {
15649
+ $.init = function() {
15643
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;
15644
15651
  };
15645
- j.prototype.setMaxListeners = function(e) {
15652
+ $.prototype.setMaxListeners = function(e) {
15646
15653
  if (typeof e != "number" || e < 0 || tc(e))
15647
15654
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
15648
15655
  return this._maxListeners = e, this;
15649
15656
  };
15650
15657
  function nc(e) {
15651
- return e._maxListeners === void 0 ? j.defaultMaxListeners : e._maxListeners;
15658
+ return e._maxListeners === void 0 ? $.defaultMaxListeners : e._maxListeners;
15652
15659
  }
15653
- j.prototype.getMaxListeners = function() {
15660
+ $.prototype.getMaxListeners = function() {
15654
15661
  return nc(this);
15655
15662
  };
15656
- j.prototype.emit = function(e) {
15663
+ $.prototype.emit = function(e) {
15657
15664
  for (var t = [], n = 1; n < arguments.length; n++) t.push(arguments[n]);
15658
15665
  var a = e === "error", s = this._events;
15659
15666
  if (s !== void 0)
@@ -15692,11 +15699,11 @@ function ac(e, t, n, a) {
15692
15699
  }
15693
15700
  return e;
15694
15701
  }
15695
- j.prototype.addListener = function(e, t) {
15702
+ $.prototype.addListener = function(e, t) {
15696
15703
  return ac(this, e, t, !1);
15697
15704
  };
15698
- j.prototype.on = j.prototype.addListener;
15699
- j.prototype.prependListener = function(e, t) {
15705
+ $.prototype.on = $.prototype.addListener;
15706
+ $.prototype.prependListener = function(e, t) {
15700
15707
  return ac(this, e, t, !0);
15701
15708
  };
15702
15709
  function Mh() {
@@ -15707,13 +15714,13 @@ function sc(e, t, n) {
15707
15714
  var a = { fired: !1, wrapFn: void 0, target: e, type: t, listener: n }, s = Mh.bind(a);
15708
15715
  return s.listener = n, a.wrapFn = s, s;
15709
15716
  }
15710
- j.prototype.once = function(e, t) {
15717
+ $.prototype.once = function(e, t) {
15711
15718
  return zn(t), this.on(e, sc(this, e, t)), this;
15712
15719
  };
15713
- j.prototype.prependOnceListener = function(e, t) {
15720
+ $.prototype.prependOnceListener = function(e, t) {
15714
15721
  return zn(t), this.prependListener(e, sc(this, e, t)), this;
15715
15722
  };
15716
- j.prototype.removeListener = function(e, t) {
15723
+ $.prototype.removeListener = function(e, t) {
15717
15724
  var n, a, s, o, r;
15718
15725
  if (zn(t), a = this._events, a === void 0)
15719
15726
  return this;
@@ -15733,8 +15740,8 @@ j.prototype.removeListener = function(e, t) {
15733
15740
  }
15734
15741
  return this;
15735
15742
  };
15736
- j.prototype.off = j.prototype.removeListener;
15737
- j.prototype.removeAllListeners = function(e) {
15743
+ $.prototype.off = $.prototype.removeListener;
15744
+ $.prototype.removeAllListeners = function(e) {
15738
15745
  var t, n, a;
15739
15746
  if (n = this._events, n === void 0)
15740
15747
  return this;
@@ -15760,16 +15767,16 @@ function oc(e, t, n) {
15760
15767
  var s = a[t];
15761
15768
  return s === void 0 ? [] : typeof s == "function" ? n ? [s.listener || s] : [s] : n ? Dh(s) : ic(s, s.length);
15762
15769
  }
15763
- j.prototype.listeners = function(e) {
15770
+ $.prototype.listeners = function(e) {
15764
15771
  return oc(this, e, !0);
15765
15772
  };
15766
- j.prototype.rawListeners = function(e) {
15773
+ $.prototype.rawListeners = function(e) {
15767
15774
  return oc(this, e, !1);
15768
15775
  };
15769
- j.listenerCount = function(e, t) {
15776
+ $.listenerCount = function(e, t) {
15770
15777
  return typeof e.listenerCount == "function" ? e.listenerCount(t) : rc.call(e, t);
15771
15778
  };
15772
- j.prototype.listenerCount = rc;
15779
+ $.prototype.listenerCount = rc;
15773
15780
  function rc(e) {
15774
15781
  var t = this._events;
15775
15782
  if (t !== void 0) {
@@ -15781,7 +15788,7 @@ function rc(e) {
15781
15788
  }
15782
15789
  return 0;
15783
15790
  }
15784
- j.prototype.eventNames = function() {
15791
+ $.prototype.eventNames = function() {
15785
15792
  return this._eventsCount > 0 ? En(this._events) : [];
15786
15793
  };
15787
15794
  function ic(e, t) {
@@ -15893,7 +15900,7 @@ var lc = ws.exports, Jn = {}, mc = {}, uc = function() {
15893
15900
  l.prototype = t.prototype, a.prototype = new l(), l.prototype = null;
15894
15901
  }
15895
15902
  return a;
15896
- }, 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) {
15897
15904
  try {
15898
15905
  return pc('"use strict"; return (' + e + ").constructor;")();
15899
15906
  } catch {
@@ -15919,23 +15926,23 @@ var fa = function() {
15919
15926
  }
15920
15927
  }() : fa, Et = Qh(), uS = jh(), re = Object.getPrototypeOf || (uS ? function(e) {
15921
15928
  return e.__proto__;
15922
- } : null), Nt = {}, dS = typeof Uint8Array > "u" || !re ? G : re(Uint8Array), ft = {
15929
+ } : null), Nt = {}, dS = typeof Uint8Array > "u" || !re ? B : re(Uint8Array), ft = {
15923
15930
  __proto__: null,
15924
- "%AggregateError%": typeof AggregateError > "u" ? G : AggregateError,
15931
+ "%AggregateError%": typeof AggregateError > "u" ? B : AggregateError,
15925
15932
  "%Array%": Array,
15926
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? G : ArrayBuffer,
15927
- "%ArrayIteratorPrototype%": Et && re ? re([][Symbol.iterator]()) : G,
15928
- "%AsyncFromSyncIteratorPrototype%": G,
15933
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? B : ArrayBuffer,
15934
+ "%ArrayIteratorPrototype%": Et && re ? re([][Symbol.iterator]()) : B,
15935
+ "%AsyncFromSyncIteratorPrototype%": B,
15929
15936
  "%AsyncFunction%": Nt,
15930
15937
  "%AsyncGenerator%": Nt,
15931
15938
  "%AsyncGeneratorFunction%": Nt,
15932
15939
  "%AsyncIteratorPrototype%": Nt,
15933
- "%Atomics%": typeof Atomics > "u" ? G : Atomics,
15934
- "%BigInt%": typeof BigInt > "u" ? G : BigInt,
15935
- "%BigInt64Array%": typeof BigInt64Array > "u" ? G : BigInt64Array,
15936
- "%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,
15937
15944
  "%Boolean%": Boolean,
15938
- "%DataView%": typeof DataView > "u" ? G : DataView,
15945
+ "%DataView%": typeof DataView > "u" ? B : DataView,
15939
15946
  "%Date%": Date,
15940
15947
  "%decodeURI%": decodeURI,
15941
15948
  "%decodeURIComponent%": decodeURIComponent,
@@ -15945,49 +15952,49 @@ var fa = function() {
15945
15952
  "%eval%": eval,
15946
15953
  // eslint-disable-line no-eval
15947
15954
  "%EvalError%": rS,
15948
- "%Float32Array%": typeof Float32Array > "u" ? G : Float32Array,
15949
- "%Float64Array%": typeof Float64Array > "u" ? G : Float64Array,
15950
- "%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,
15951
15958
  "%Function%": pc,
15952
15959
  "%GeneratorFunction%": Nt,
15953
- "%Int8Array%": typeof Int8Array > "u" ? G : Int8Array,
15954
- "%Int16Array%": typeof Int16Array > "u" ? G : Int16Array,
15955
- "%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,
15956
15963
  "%isFinite%": isFinite,
15957
15964
  "%isNaN%": isNaN,
15958
- "%IteratorPrototype%": Et && re ? re(re([][Symbol.iterator]())) : G,
15959
- "%JSON%": typeof JSON == "object" ? JSON : G,
15960
- "%Map%": typeof Map > "u" ? G : Map,
15961
- "%MapIteratorPrototype%": typeof Map > "u" || !Et || !re ? G : re((/* @__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]()),
15962
15969
  "%Math%": Math,
15963
15970
  "%Number%": Number,
15964
15971
  "%Object%": Object,
15965
15972
  "%parseFloat%": parseFloat,
15966
15973
  "%parseInt%": parseInt,
15967
- "%Promise%": typeof Promise > "u" ? G : Promise,
15968
- "%Proxy%": typeof Proxy > "u" ? G : Proxy,
15974
+ "%Promise%": typeof Promise > "u" ? B : Promise,
15975
+ "%Proxy%": typeof Proxy > "u" ? B : Proxy,
15969
15976
  "%RangeError%": iS,
15970
15977
  "%ReferenceError%": cS,
15971
- "%Reflect%": typeof Reflect > "u" ? G : Reflect,
15978
+ "%Reflect%": typeof Reflect > "u" ? B : Reflect,
15972
15979
  "%RegExp%": RegExp,
15973
- "%Set%": typeof Set > "u" ? G : Set,
15974
- "%SetIteratorPrototype%": typeof Set > "u" || !Et || !re ? G : re((/* @__PURE__ */ new Set())[Symbol.iterator]()),
15975
- "%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,
15976
15983
  "%String%": String,
15977
- "%StringIteratorPrototype%": Et && re ? re(""[Symbol.iterator]()) : G,
15978
- "%Symbol%": Et ? Symbol : G,
15984
+ "%StringIteratorPrototype%": Et && re ? re(""[Symbol.iterator]()) : B,
15985
+ "%Symbol%": Et ? Symbol : B,
15979
15986
  "%SyntaxError%": Ut,
15980
15987
  "%ThrowTypeError%": mS,
15981
15988
  "%TypedArray%": dS,
15982
15989
  "%TypeError%": Mt,
15983
- "%Uint8Array%": typeof Uint8Array > "u" ? G : Uint8Array,
15984
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? G : Uint8ClampedArray,
15985
- "%Uint16Array%": typeof Uint16Array > "u" ? G : Uint16Array,
15986
- "%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,
15987
15994
  "%URIError%": lS,
15988
- "%WeakMap%": typeof WeakMap > "u" ? G : WeakMap,
15989
- "%WeakRef%": typeof WeakRef > "u" ? G : WeakRef,
15990
- "%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
15991
15998
  };
15992
15999
  if (re)
15993
16000
  try {
@@ -16098,8 +16105,8 @@ var TS = function e(t) {
16098
16105
  var n = SS(e), a = n.length > 0 ? n[0] : "", s = _S("%" + a + "%", t), o = s.name, r = s.value, c = !1, l = s.alias;
16099
16106
  l && (a = l[0], fS(n, yS([0, 1], l)));
16100
16107
  for (var m = 1, u = !0; m < n.length; m += 1) {
16101
- var d = n[m], f = Cn(d, 0, 1), T = Cn(d, -1);
16102
- if ((f === '"' || f === "'" || f === "`" || T === '"' || T === "'" || T === "`") && f !== T)
16108
+ var d = n[m], y = Cn(d, 0, 1), T = Cn(d, -1);
16109
+ if ((y === '"' || y === "'" || y === "`" || T === '"' || T === "'" || T === "`") && y !== T)
16103
16110
  throw new Ut("property names with quotes must have matching quotes");
16104
16111
  if ((d === "constructor" || !u) && (c = !0), a += "." + d, o = "%" + a + "%", Dn(ft, o))
16105
16112
  r = ft[o];
@@ -16110,8 +16117,8 @@ var TS = function e(t) {
16110
16117
  return;
16111
16118
  }
16112
16119
  if (yt && m + 1 >= n.length) {
16113
- var y = yt(r, d);
16114
- u = !!y, u && "get" in y && !("originalValue" in y.get) ? r = y.get : r = r[d];
16120
+ var f = yt(r, d);
16121
+ u = !!f, u && "get" in f && !("originalValue" in f.get) ? r = f.get : r = r[d];
16115
16122
  } else
16116
16123
  u = Dn(r, d), r = r[d];
16117
16124
  u && !c && (ft[o] = r);
@@ -16204,9 +16211,9 @@ var IS = yc, OS = an, yr = NS, vS = IS(), fr = ea, gr = Zn, AS = OS("%Math.floor
16204
16211
  e.exports = function(d) {
16205
16212
  if (typeof d != "function")
16206
16213
  throw new s("a function is required");
16207
- var f = c(t, r, arguments);
16214
+ var y = c(t, r, arguments);
16208
16215
  return a(
16209
- f,
16216
+ y,
16210
16217
  1 + m(0, d.length - (arguments.length - 1)),
16211
16218
  !0
16212
16219
  );
@@ -16457,184 +16464,184 @@ var T_ = function(e) {
16457
16464
  };
16458
16465
  (function(e) {
16459
16466
  var t = DS, n = BS, a = m_, s = k_;
16460
- function o(S) {
16461
- return S.call.bind(S);
16467
+ function o(E) {
16468
+ return E.call.bind(E);
16462
16469
  }
16463
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);
16464
16471
  if (r)
16465
- var f = o(BigInt.prototype.valueOf);
16472
+ var y = o(BigInt.prototype.valueOf);
16466
16473
  if (c)
16467
16474
  var T = o(Symbol.prototype.valueOf);
16468
- function y(S, Mc) {
16469
- if (typeof S != "object")
16475
+ function f(E, Mc) {
16476
+ if (typeof E != "object")
16470
16477
  return !1;
16471
16478
  try {
16472
- return Mc(S), !0;
16479
+ return Mc(E), !0;
16473
16480
  } catch {
16474
16481
  return !1;
16475
16482
  }
16476
16483
  }
16477
16484
  e.isArgumentsObject = t, e.isGeneratorFunction = n, e.isTypedArray = s;
16478
- function _(S) {
16479
- 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";
16480
16487
  }
16481
- e.isPromise = _;
16482
- function N(S) {
16483
- 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);
16484
16491
  }
16485
16492
  e.isArrayBufferView = N;
16486
- function E(S) {
16487
- return a(S) === "Uint8Array";
16493
+ function h(E) {
16494
+ return a(E) === "Uint8Array";
16488
16495
  }
16489
- e.isUint8Array = E;
16490
- function b(S) {
16491
- return a(S) === "Uint8ClampedArray";
16496
+ e.isUint8Array = h;
16497
+ function A(E) {
16498
+ return a(E) === "Uint8ClampedArray";
16492
16499
  }
16493
- e.isUint8ClampedArray = b;
16494
- function w(S) {
16495
- return a(S) === "Uint16Array";
16500
+ e.isUint8ClampedArray = A;
16501
+ function w(E) {
16502
+ return a(E) === "Uint16Array";
16496
16503
  }
16497
16504
  e.isUint16Array = w;
16498
- function O(S) {
16499
- return a(S) === "Uint32Array";
16505
+ function b(E) {
16506
+ return a(E) === "Uint32Array";
16500
16507
  }
16501
- e.isUint32Array = O;
16502
- function A(S) {
16503
- return a(S) === "Int8Array";
16508
+ e.isUint32Array = b;
16509
+ function v(E) {
16510
+ return a(E) === "Int8Array";
16504
16511
  }
16505
- e.isInt8Array = A;
16506
- function L(S) {
16507
- return a(S) === "Int16Array";
16512
+ e.isInt8Array = v;
16513
+ function R(E) {
16514
+ return a(E) === "Int16Array";
16508
16515
  }
16509
- e.isInt16Array = L;
16510
- function v(S) {
16511
- return a(S) === "Int32Array";
16516
+ e.isInt16Array = R;
16517
+ function I(E) {
16518
+ return a(E) === "Int32Array";
16512
16519
  }
16513
- e.isInt32Array = v;
16514
- function U(S) {
16515
- return a(S) === "Float32Array";
16520
+ e.isInt32Array = I;
16521
+ function M(E) {
16522
+ return a(E) === "Float32Array";
16516
16523
  }
16517
- e.isFloat32Array = U;
16518
- function $(S) {
16519
- return a(S) === "Float64Array";
16524
+ e.isFloat32Array = M;
16525
+ function G(E) {
16526
+ return a(E) === "Float64Array";
16520
16527
  }
16521
- e.isFloat64Array = $;
16522
- function ne(S) {
16523
- return a(S) === "BigInt64Array";
16528
+ e.isFloat64Array = G;
16529
+ function J(E) {
16530
+ return a(E) === "BigInt64Array";
16524
16531
  }
16525
- e.isBigInt64Array = ne;
16526
- function K(S) {
16527
- return a(S) === "BigUint64Array";
16532
+ e.isBigInt64Array = J;
16533
+ function K(E) {
16534
+ return a(E) === "BigUint64Array";
16528
16535
  }
16529
16536
  e.isBigUint64Array = K;
16530
- function W(S) {
16531
- return l(S) === "[object Map]";
16537
+ function W(E) {
16538
+ return l(E) === "[object Map]";
16532
16539
  }
16533
16540
  W.working = typeof Map < "u" && W(/* @__PURE__ */ new Map());
16534
- function B(S) {
16535
- 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;
16536
16543
  }
16537
- e.isMap = B;
16538
- function V(S) {
16539
- return l(S) === "[object Set]";
16544
+ e.isMap = V;
16545
+ function q(E) {
16546
+ return l(E) === "[object Set]";
16540
16547
  }
16541
- V.working = typeof Set < "u" && V(/* @__PURE__ */ new Set());
16542
- function X(S) {
16543
- 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;
16544
16551
  }
16545
- e.isSet = X;
16546
- function Ge(S) {
16547
- return l(S) === "[object WeakMap]";
16552
+ e.isSet = Z;
16553
+ function Ge(E) {
16554
+ return l(E) === "[object WeakMap]";
16548
16555
  }
16549
16556
  Ge.working = typeof WeakMap < "u" && Ge(/* @__PURE__ */ new WeakMap());
16550
- function qt(S) {
16551
- 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;
16552
16559
  }
16553
16560
  e.isWeakMap = qt;
16554
- function Je(S) {
16555
- return l(S) === "[object WeakSet]";
16561
+ function Je(E) {
16562
+ return l(E) === "[object WeakSet]";
16556
16563
  }
16557
16564
  Je.working = typeof WeakSet < "u" && Je(/* @__PURE__ */ new WeakSet());
16558
- function ge(S) {
16559
- return Je(S);
16565
+ function ge(E) {
16566
+ return Je(E);
16560
16567
  }
16561
16568
  e.isWeakSet = ge;
16562
- function ke(S) {
16563
- return l(S) === "[object ArrayBuffer]";
16569
+ function ke(E) {
16570
+ return l(E) === "[object ArrayBuffer]";
16564
16571
  }
16565
16572
  ke.working = typeof ArrayBuffer < "u" && ke(new ArrayBuffer());
16566
- function he(S) {
16567
- 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;
16568
16575
  }
16569
16576
  e.isArrayBuffer = he;
16570
- function g(S) {
16571
- return l(S) === "[object DataView]";
16577
+ function g(E) {
16578
+ return l(E) === "[object DataView]";
16572
16579
  }
16573
16580
  g.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && g(new DataView(new ArrayBuffer(1), 0, 1));
16574
- function k(S) {
16575
- 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;
16576
16583
  }
16577
- e.isDataView = k;
16578
- var I = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
16579
- function M(S) {
16580
- 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]";
16581
16588
  }
16582
- function z(S) {
16583
- 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);
16584
16591
  }
16585
16592
  e.isSharedArrayBuffer = z;
16586
- function q(S) {
16587
- return l(S) === "[object AsyncFunction]";
16593
+ function x(E) {
16594
+ return l(E) === "[object AsyncFunction]";
16588
16595
  }
16589
- e.isAsyncFunction = q;
16590
- function F(S) {
16591
- return l(S) === "[object Map Iterator]";
16596
+ e.isAsyncFunction = x;
16597
+ function F(E) {
16598
+ return l(E) === "[object Map Iterator]";
16592
16599
  }
16593
16600
  e.isMapIterator = F;
16594
- function x(S) {
16595
- return l(S) === "[object Set Iterator]";
16601
+ function H(E) {
16602
+ return l(E) === "[object Set Iterator]";
16596
16603
  }
16597
- e.isSetIterator = x;
16598
- function Q(S) {
16599
- return l(S) === "[object Generator]";
16604
+ e.isSetIterator = H;
16605
+ function Y(E) {
16606
+ return l(E) === "[object Generator]";
16600
16607
  }
16601
- e.isGeneratorObject = Q;
16602
- function ve(S) {
16603
- return l(S) === "[object WebAssembly.Module]";
16608
+ e.isGeneratorObject = Y;
16609
+ function ve(E) {
16610
+ return l(E) === "[object WebAssembly.Module]";
16604
16611
  }
16605
16612
  e.isWebAssemblyCompiledModule = ve;
16606
- function rt(S) {
16607
- return y(S, m);
16613
+ function rt(E) {
16614
+ return f(E, m);
16608
16615
  }
16609
16616
  e.isNumberObject = rt;
16610
- function sn(S) {
16611
- return y(S, u);
16617
+ function sn(E) {
16618
+ return f(E, u);
16612
16619
  }
16613
16620
  e.isStringObject = sn;
16614
- function St(S) {
16615
- return y(S, d);
16621
+ function St(E) {
16622
+ return f(E, d);
16616
16623
  }
16617
16624
  e.isBooleanObject = St;
16618
- function on(S) {
16619
- return r && y(S, f);
16625
+ function on(E) {
16626
+ return r && f(E, y);
16620
16627
  }
16621
16628
  e.isBigIntObject = on;
16622
- function Vs(S) {
16623
- return c && y(S, T);
16629
+ function Vs(E) {
16630
+ return c && f(E, T);
16624
16631
  }
16625
16632
  e.isSymbolObject = Vs;
16626
- function Rc(S) {
16627
- 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);
16628
16635
  }
16629
16636
  e.isBoxedPrimitive = Rc;
16630
- function Lc(S) {
16631
- return typeof Uint8Array < "u" && (he(S) || z(S));
16637
+ function Lc(E) {
16638
+ return typeof Uint8Array < "u" && (he(E) || z(E));
16632
16639
  }
16633
- e.isAnyArrayBuffer = Lc, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(S) {
16634
- Object.defineProperty(e, S, {
16640
+ e.isAnyArrayBuffer = Lc, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(E) {
16641
+ Object.defineProperty(e, E, {
16635
16642
  enumerable: !1,
16636
16643
  value: function() {
16637
- throw new Error(S + " is not supported in userland");
16644
+ throw new Error(E + " is not supported in userland");
16638
16645
  }
16639
16646
  });
16640
16647
  });
@@ -16662,78 +16669,78 @@ typeof Object.create == "function" ? ns.exports = function(e, t) {
16662
16669
  var S_ = ns.exports;
16663
16670
  (function(e) {
16664
16671
  var t = Object.getOwnPropertyDescriptors || function(g) {
16665
- for (var k = Object.keys(g), I = {}, M = 0; M < k.length; M++)
16666
- I[k[M]] = Object.getOwnPropertyDescriptor(g, k[M]);
16667
- 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;
16668
16675
  }, n = /%[sdj%]/g;
16669
16676
  e.format = function(g) {
16670
- if (!A(g)) {
16671
- for (var k = [], I = 0; I < arguments.length; I++)
16672
- k.push(r(arguments[I]));
16673
- return k.join(" ");
16674
- }
16675
- for (var I = 1, M = arguments, z = M.length, q = String(g).replace(n, function(Q) {
16676
- if (Q === "%%") return "%";
16677
- if (I >= z) return Q;
16678
- 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) {
16679
16686
  case "%s":
16680
- return String(M[I++]);
16687
+ return String(P[O++]);
16681
16688
  case "%d":
16682
- return Number(M[I++]);
16689
+ return Number(P[O++]);
16683
16690
  case "%j":
16684
16691
  try {
16685
- return JSON.stringify(M[I++]);
16692
+ return JSON.stringify(P[O++]);
16686
16693
  } catch {
16687
16694
  return "[Circular]";
16688
16695
  }
16689
16696
  default:
16690
- return Q;
16697
+ return Y;
16691
16698
  }
16692
- }), F = M[I]; I < z; F = M[++I])
16693
- b(F) || !$(F) ? q += " " + F : q += " " + r(F);
16694
- return q;
16695
- }, e.deprecate = function(g, k) {
16696
- 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)
16697
16704
  return g;
16698
- if (typeof D > "u")
16705
+ if (typeof C > "u")
16699
16706
  return function() {
16700
- return e.deprecate(g, k).apply(this, arguments);
16707
+ return e.deprecate(g, S).apply(this, arguments);
16701
16708
  };
16702
- var I = !1;
16703
- function M() {
16704
- if (!I) {
16705
- if (D.throwDeprecation)
16706
- throw new Error(k);
16707
- 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;
16708
16715
  }
16709
16716
  return g.apply(this, arguments);
16710
16717
  }
16711
- return M;
16718
+ return P;
16712
16719
  };
16713
16720
  var a = {}, s = /^$/;
16714
- if (D.env.NODE_DEBUG) {
16715
- var o = D.env.NODE_DEBUG;
16721
+ if (C.env.NODE_DEBUG) {
16722
+ var o = C.env.NODE_DEBUG;
16716
16723
  o = o.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), s = new RegExp("^" + o + "$", "i");
16717
16724
  }
16718
16725
  e.debuglog = function(g) {
16719
16726
  if (g = g.toUpperCase(), !a[g])
16720
16727
  if (s.test(g)) {
16721
- var k = D.pid;
16728
+ var S = C.pid;
16722
16729
  a[g] = function() {
16723
- var I = e.format.apply(e, arguments);
16724
- 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);
16725
16732
  };
16726
16733
  } else
16727
16734
  a[g] = function() {
16728
16735
  };
16729
16736
  return a[g];
16730
16737
  };
16731
- function r(g, k) {
16732
- var I = {
16738
+ function r(g, S) {
16739
+ var O = {
16733
16740
  seen: [],
16734
16741
  stylize: l
16735
16742
  };
16736
- 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);
16737
16744
  }
16738
16745
  e.inspect = r, r.colors = {
16739
16746
  bold: [1, 22],
@@ -16760,187 +16767,187 @@ var S_ = ns.exports;
16760
16767
  // "name": intentionally not styling
16761
16768
  regexp: "red"
16762
16769
  };
16763
- function c(g, k) {
16764
- var I = r.styles[k];
16765
- 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;
16766
16773
  }
16767
- function l(g, k) {
16774
+ function l(g, S) {
16768
16775
  return g;
16769
16776
  }
16770
16777
  function m(g) {
16771
- var k = {};
16772
- return g.forEach(function(I, M) {
16773
- k[I] = !0;
16774
- }), k;
16775
- }
16776
- function u(g, k, I) {
16777
- if (g.customInspect && k && W(k.inspect) && // Filter out the util module, it's inspect function is special
16778
- k.inspect !== e.inspect && // Also filter out any prototype objects using the circular check.
16779
- !(k.constructor && k.constructor.prototype === k)) {
16780
- var M = k.inspect(I, g);
16781
- return A(M) || (M = u(g, M, I)), M;
16782
- }
16783
- 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);
16784
16791
  if (z)
16785
16792
  return z;
16786
- var q = Object.keys(k), F = m(q);
16787
- if (g.showHidden && (q = Object.getOwnPropertyNames(k)), K(k) && (q.indexOf("message") >= 0 || q.indexOf("description") >= 0))
16788
- return f(k);
16789
- if (q.length === 0) {
16790
- if (W(k)) {
16791
- var x = k.name ? ": " + k.name : "";
16792
- 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");
16793
16800
  }
16794
- if (U(k))
16795
- return g.stylize(RegExp.prototype.toString.call(k), "regexp");
16796
- if (ne(k))
16797
- return g.stylize(Date.prototype.toString.call(k), "date");
16798
- if (K(k))
16799
- return f(k);
16800
- }
16801
- var Q = "", ve = !1, rt = ["{", "}"];
16802
- if (N(k) && (ve = !0, rt = ["[", "]"]), W(k)) {
16803
- var sn = k.name ? ": " + k.name : "";
16804
- Q = " [Function" + sn + "]";
16805
- }
16806
- if (U(k) && (Q = " " + RegExp.prototype.toString.call(k)), ne(k) && (Q = " " + Date.prototype.toUTCString.call(k)), K(k) && (Q = " " + f(k)), q.length === 0 && (!ve || k.length == 0))
16807
- return rt[0] + Q + rt[1];
16808
- if (I < 0)
16809
- return U(k) ? g.stylize(RegExp.prototype.toString.call(k), "regexp") : g.stylize("[Object]", "special");
16810
- 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);
16811
16818
  var St;
16812
- return ve ? St = T(g, k, I, F, q) : St = q.map(function(on) {
16813
- return y(g, k, I, F, on, ve);
16814
- }), 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);
16815
16822
  }
16816
- function d(g, k) {
16817
- if (v(k))
16823
+ function d(g, S) {
16824
+ if (I(S))
16818
16825
  return g.stylize("undefined", "undefined");
16819
- if (A(k)) {
16820
- var I = "'" + JSON.stringify(k).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
16821
- return g.stylize(I, "string");
16822
- }
16823
- if (O(k))
16824
- return g.stylize("" + k, "number");
16825
- if (E(k))
16826
- return g.stylize("" + k, "boolean");
16827
- 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))
16828
16835
  return g.stylize("null", "null");
16829
16836
  }
16830
- function f(g) {
16837
+ function y(g) {
16831
16838
  return "[" + Error.prototype.toString.call(g) + "]";
16832
16839
  }
16833
- function T(g, k, I, M, z) {
16834
- for (var q = [], F = 0, x = k.length; F < x; ++F)
16835
- Je(k, String(F)) ? q.push(y(
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(
16836
16843
  g,
16837
- k,
16838
- I,
16839
- M,
16844
+ S,
16845
+ O,
16846
+ P,
16840
16847
  String(F),
16841
16848
  !0
16842
- )) : q.push("");
16843
- return z.forEach(function(Q) {
16844
- Q.match(/^\d+$/) || q.push(y(
16849
+ )) : x.push("");
16850
+ return z.forEach(function(Y) {
16851
+ Y.match(/^\d+$/) || x.push(f(
16845
16852
  g,
16846
- k,
16847
- I,
16848
- M,
16849
- Q,
16853
+ S,
16854
+ O,
16855
+ P,
16856
+ Y,
16850
16857
  !0
16851
16858
  ));
16852
- }), q;
16859
+ }), x;
16853
16860
  }
16854
- function y(g, k, I, M, z, q) {
16855
- var F, x, Q;
16856
- 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(`
16857
- `) > -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(`
16858
16865
  `).map(function(ve) {
16859
16866
  return " " + ve;
16860
16867
  }).join(`
16861
- `).slice(2) : x = `
16862
- ` + x.split(`
16868
+ `).slice(2) : H = `
16869
+ ` + H.split(`
16863
16870
  `).map(function(ve) {
16864
16871
  return " " + ve;
16865
16872
  }).join(`
16866
- `))) : x = g.stylize("[Circular]", "special")), v(F)) {
16867
- if (q && z.match(/^\d+$/))
16868
- return x;
16873
+ `))) : H = g.stylize("[Circular]", "special")), I(F)) {
16874
+ if (x && z.match(/^\d+$/))
16875
+ return H;
16869
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"));
16870
16877
  }
16871
- return F + ": " + x;
16878
+ return F + ": " + H;
16872
16879
  }
16873
- function _(g, k, I) {
16874
- var M = g.reduce(function(z, q) {
16875
- return q.indexOf(`
16876
- `) >= 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;
16877
16884
  }, 0);
16878
- return M > 60 ? I[0] + (k === "" ? "" : k + `
16885
+ return P > 60 ? O[0] + (S === "" ? "" : S + `
16879
16886
  `) + " " + g.join(`,
16880
- `) + " " + I[1] : I[0] + k + " " + g.join(", ") + " " + I[1];
16887
+ `) + " " + O[1] : O[0] + S + " " + g.join(", ") + " " + O[1];
16881
16888
  }
16882
16889
  e.types = mc;
16883
16890
  function N(g) {
16884
16891
  return Array.isArray(g);
16885
16892
  }
16886
16893
  e.isArray = N;
16887
- function E(g) {
16894
+ function h(g) {
16888
16895
  return typeof g == "boolean";
16889
16896
  }
16890
- e.isBoolean = E;
16891
- function b(g) {
16897
+ e.isBoolean = h;
16898
+ function A(g) {
16892
16899
  return g === null;
16893
16900
  }
16894
- e.isNull = b;
16901
+ e.isNull = A;
16895
16902
  function w(g) {
16896
16903
  return g == null;
16897
16904
  }
16898
16905
  e.isNullOrUndefined = w;
16899
- function O(g) {
16906
+ function b(g) {
16900
16907
  return typeof g == "number";
16901
16908
  }
16902
- e.isNumber = O;
16903
- function A(g) {
16909
+ e.isNumber = b;
16910
+ function v(g) {
16904
16911
  return typeof g == "string";
16905
16912
  }
16906
- e.isString = A;
16907
- function L(g) {
16913
+ e.isString = v;
16914
+ function R(g) {
16908
16915
  return typeof g == "symbol";
16909
16916
  }
16910
- e.isSymbol = L;
16911
- function v(g) {
16917
+ e.isSymbol = R;
16918
+ function I(g) {
16912
16919
  return g === void 0;
16913
16920
  }
16914
- e.isUndefined = v;
16915
- function U(g) {
16916
- return $(g) && V(g) === "[object RegExp]";
16921
+ e.isUndefined = I;
16922
+ function M(g) {
16923
+ return G(g) && q(g) === "[object RegExp]";
16917
16924
  }
16918
- e.isRegExp = U, e.types.isRegExp = U;
16919
- function $(g) {
16925
+ e.isRegExp = M, e.types.isRegExp = M;
16926
+ function G(g) {
16920
16927
  return typeof g == "object" && g !== null;
16921
16928
  }
16922
- e.isObject = $;
16923
- function ne(g) {
16924
- return $(g) && V(g) === "[object Date]";
16929
+ e.isObject = G;
16930
+ function J(g) {
16931
+ return G(g) && q(g) === "[object Date]";
16925
16932
  }
16926
- e.isDate = ne, e.types.isDate = ne;
16933
+ e.isDate = J, e.types.isDate = J;
16927
16934
  function K(g) {
16928
- return $(g) && (V(g) === "[object Error]" || g instanceof Error);
16935
+ return G(g) && (q(g) === "[object Error]" || g instanceof Error);
16929
16936
  }
16930
16937
  e.isError = K, e.types.isNativeError = K;
16931
16938
  function W(g) {
16932
16939
  return typeof g == "function";
16933
16940
  }
16934
16941
  e.isFunction = W;
16935
- function B(g) {
16942
+ function V(g) {
16936
16943
  return g === null || typeof g == "boolean" || typeof g == "number" || typeof g == "string" || typeof g == "symbol" || // ES6 symbol
16937
16944
  typeof g > "u";
16938
16945
  }
16939
- e.isPrimitive = B, e.isBuffer = h_;
16940
- function V(g) {
16946
+ e.isPrimitive = V, e.isBuffer = h_;
16947
+ function q(g) {
16941
16948
  return Object.prototype.toString.call(g);
16942
16949
  }
16943
- function X(g) {
16950
+ function Z(g) {
16944
16951
  return g < 10 ? "0" + g.toString(10) : g.toString(10);
16945
16952
  }
16946
16953
  var Ge = [
@@ -16958,96 +16965,96 @@ var S_ = ns.exports;
16958
16965
  "Dec"
16959
16966
  ];
16960
16967
  function qt() {
16961
- var g = /* @__PURE__ */ new Date(), k = [
16962
- X(g.getHours()),
16963
- X(g.getMinutes()),
16964
- X(g.getSeconds())
16968
+ var g = /* @__PURE__ */ new Date(), S = [
16969
+ Z(g.getHours()),
16970
+ Z(g.getMinutes()),
16971
+ Z(g.getSeconds())
16965
16972
  ].join(":");
16966
- return [g.getDate(), Ge[g.getMonth()], k].join(" ");
16973
+ return [g.getDate(), Ge[g.getMonth()], S].join(" ");
16967
16974
  }
16968
16975
  e.log = function() {
16969
16976
  console.log("%s - %s", qt(), e.format.apply(e, arguments));
16970
- }, e.inherits = S_, e._extend = function(g, k) {
16971
- if (!k || !$(k)) return g;
16972
- for (var I = Object.keys(k), M = I.length; M--; )
16973
- 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]];
16974
16981
  return g;
16975
16982
  };
16976
- function Je(g, k) {
16977
- return Object.prototype.hasOwnProperty.call(g, k);
16983
+ function Je(g, S) {
16984
+ return Object.prototype.hasOwnProperty.call(g, S);
16978
16985
  }
16979
16986
  var ge = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
16980
16987
  e.promisify = function(g) {
16981
16988
  if (typeof g != "function")
16982
16989
  throw new TypeError('The "original" argument must be of type Function');
16983
16990
  if (ge && g[ge]) {
16984
- var k = g[ge];
16985
- if (typeof k != "function")
16991
+ var S = g[ge];
16992
+ if (typeof S != "function")
16986
16993
  throw new TypeError('The "util.promisify.custom" argument must be of type Function');
16987
- return Object.defineProperty(k, ge, {
16988
- value: k,
16994
+ return Object.defineProperty(S, ge, {
16995
+ value: S,
16989
16996
  enumerable: !1,
16990
16997
  writable: !1,
16991
16998
  configurable: !0
16992
- }), k;
16993
- }
16994
- function k() {
16995
- for (var I, M, z = new Promise(function(x, Q) {
16996
- I = x, M = Q;
16997
- }), q = [], F = 0; F < arguments.length; F++)
16998
- q.push(arguments[F]);
16999
- q.push(function(x, Q) {
17000
- 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);
17001
17008
  });
17002
17009
  try {
17003
- g.apply(this, q);
17004
- } catch (x) {
17005
- M(x);
17010
+ g.apply(this, x);
17011
+ } catch (H) {
17012
+ P(H);
17006
17013
  }
17007
17014
  return z;
17008
17015
  }
17009
- return Object.setPrototypeOf(k, Object.getPrototypeOf(g)), ge && Object.defineProperty(k, ge, {
17010
- value: k,
17016
+ return Object.setPrototypeOf(S, Object.getPrototypeOf(g)), ge && Object.defineProperty(S, ge, {
17017
+ value: S,
17011
17018
  enumerable: !1,
17012
17019
  writable: !1,
17013
17020
  configurable: !0
17014
17021
  }), Object.defineProperties(
17015
- k,
17022
+ S,
17016
17023
  t(g)
17017
17024
  );
17018
17025
  }, e.promisify.custom = ge;
17019
- function ke(g, k) {
17026
+ function ke(g, S) {
17020
17027
  if (!g) {
17021
- var I = new Error("Promise was rejected with a falsy value");
17022
- I.reason = g, g = I;
17028
+ var O = new Error("Promise was rejected with a falsy value");
17029
+ O.reason = g, g = O;
17023
17030
  }
17024
- return k(g);
17031
+ return S(g);
17025
17032
  }
17026
17033
  function he(g) {
17027
17034
  if (typeof g != "function")
17028
17035
  throw new TypeError('The "original" argument must be of type Function');
17029
- function k() {
17030
- for (var I = [], M = 0; M < arguments.length; M++)
17031
- I.push(arguments[M]);
17032
- 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();
17033
17040
  if (typeof z != "function")
17034
17041
  throw new TypeError("The last argument must be of type Function");
17035
- var q = this, F = function() {
17036
- return z.apply(q, arguments);
17042
+ var x = this, F = function() {
17043
+ return z.apply(x, arguments);
17037
17044
  };
17038
- g.apply(this, I).then(
17039
- function(x) {
17040
- D.nextTick(F.bind(null, null, x));
17045
+ g.apply(this, O).then(
17046
+ function(H) {
17047
+ C.nextTick(F.bind(null, null, H));
17041
17048
  },
17042
- function(x) {
17043
- D.nextTick(ke.bind(null, x, F));
17049
+ function(H) {
17050
+ C.nextTick(ke.bind(null, H, F));
17044
17051
  }
17045
17052
  );
17046
17053
  }
17047
- return Object.setPrototypeOf(k, Object.getPrototypeOf(g)), Object.defineProperties(
17048
- k,
17054
+ return Object.setPrototypeOf(S, Object.getPrototypeOf(g)), Object.defineProperties(
17055
+ S,
17049
17056
  t(g)
17050
- ), k;
17057
+ ), S;
17051
17058
  }
17052
17059
  e.callbackify = he;
17053
17060
  })(Jn);
@@ -17108,8 +17115,8 @@ var Oc = {
17108
17115
  ` + n + (o.length ? s("│") : " ") + " ";
17109
17116
  return n + r.join(c) + `
17110
17117
  ` + o.map(function(l, m) {
17111
- var u = m === o.length - 1, d = l.nodes && l.nodes.length, f = n + (u ? " " : s("│")) + " ";
17112
- return n + s(u ? "└" : "├") + s("─") + s(d ? "┬" : "─") + " " + e(l, f, a).slice(n.length + 2);
17118
+ var u = m === o.length - 1, d = l.nodes && l.nodes.length, y = n + (u ? " " : s("│")) + " ";
17119
+ return n + s(u ? "└" : "├") + s("─") + s(d ? "┬" : "─") + " " + e(l, y, a).slice(n.length + 2);
17113
17120
  }).join("");
17114
17121
  };
17115
17122
  const b_ = E_, Er = Symbol("avvio.TimeTree.untrackNode"), Ia = Symbol("avvio.TimeTree.trackNode"), br = Symbol("avvio.TimeTree.getParent"), Nr = Symbol("avvio.TimeTree.getNode"), Ir = Symbol("avvio.TimeTree.addNode");
@@ -17177,10 +17184,10 @@ function O_() {
17177
17184
  var e = 1e3, t = e * 60, n = t * 60, a = n * 24, s = a * 7, o = a * 365.25;
17178
17185
  Oa = function(u, d) {
17179
17186
  d = d || {};
17180
- var f = typeof u;
17181
- if (f === "string" && u.length > 0)
17187
+ var y = typeof u;
17188
+ if (y === "string" && u.length > 0)
17182
17189
  return r(u);
17183
- if (f === "number" && isFinite(u))
17190
+ if (y === "number" && isFinite(u))
17184
17191
  return d.long ? l(u) : c(u);
17185
17192
  throw new Error(
17186
17193
  "val is not a non-empty string or a valid number. val=" + JSON.stringify(u)
@@ -17192,46 +17199,46 @@ function O_() {
17192
17199
  u
17193
17200
  );
17194
17201
  if (d) {
17195
- var f = parseFloat(d[1]), T = (d[2] || "ms").toLowerCase();
17202
+ var y = parseFloat(d[1]), T = (d[2] || "ms").toLowerCase();
17196
17203
  switch (T) {
17197
17204
  case "years":
17198
17205
  case "year":
17199
17206
  case "yrs":
17200
17207
  case "yr":
17201
17208
  case "y":
17202
- return f * o;
17209
+ return y * o;
17203
17210
  case "weeks":
17204
17211
  case "week":
17205
17212
  case "w":
17206
- return f * s;
17213
+ return y * s;
17207
17214
  case "days":
17208
17215
  case "day":
17209
17216
  case "d":
17210
- return f * a;
17217
+ return y * a;
17211
17218
  case "hours":
17212
17219
  case "hour":
17213
17220
  case "hrs":
17214
17221
  case "hr":
17215
17222
  case "h":
17216
- return f * n;
17223
+ return y * n;
17217
17224
  case "minutes":
17218
17225
  case "minute":
17219
17226
  case "mins":
17220
17227
  case "min":
17221
17228
  case "m":
17222
- return f * t;
17229
+ return y * t;
17223
17230
  case "seconds":
17224
17231
  case "second":
17225
17232
  case "secs":
17226
17233
  case "sec":
17227
17234
  case "s":
17228
- return f * e;
17235
+ return y * e;
17229
17236
  case "milliseconds":
17230
17237
  case "millisecond":
17231
17238
  case "msecs":
17232
17239
  case "msec":
17233
17240
  case "ms":
17234
- return f;
17241
+ return y;
17235
17242
  default:
17236
17243
  return;
17237
17244
  }
@@ -17246,9 +17253,9 @@ function O_() {
17246
17253
  var d = Math.abs(u);
17247
17254
  return d >= a ? m(u, d, a, "day") : d >= n ? m(u, d, n, "hour") : d >= t ? m(u, d, t, "minute") : d >= e ? m(u, d, e, "second") : u + " ms";
17248
17255
  }
17249
- function m(u, d, f, T) {
17250
- var y = d >= f * 1.5;
17251
- return Math.round(u / f) + " " + T + (y ? "s" : "");
17256
+ function m(u, d, y, T) {
17257
+ var f = d >= y * 1.5;
17258
+ return Math.round(u / y) + " " + T + (f ? "s" : "");
17252
17259
  }
17253
17260
  return Oa;
17254
17261
  }
@@ -17258,50 +17265,50 @@ function v_(e) {
17258
17265
  }), n.names = [], n.skips = [], n.formatters = {};
17259
17266
  function t(u) {
17260
17267
  let d = 0;
17261
- for (let f = 0; f < u.length; f++)
17262
- d = (d << 5) - d + u.charCodeAt(f), d |= 0;
17268
+ for (let y = 0; y < u.length; y++)
17269
+ d = (d << 5) - d + u.charCodeAt(y), d |= 0;
17263
17270
  return n.colors[Math.abs(d) % n.colors.length];
17264
17271
  }
17265
17272
  n.selectColor = t;
17266
17273
  function n(u) {
17267
- let d, f = null, T, y;
17268
- function _(...N) {
17269
- if (!_.enabled)
17274
+ let d, y = null, T, f;
17275
+ function k(...N) {
17276
+ if (!k.enabled)
17270
17277
  return;
17271
- const E = _, b = Number(/* @__PURE__ */ new Date()), w = b - (d || b);
17272
- E.diff = w, E.prev = d, E.curr = b, d = b, N[0] = n.coerce(N[0]), typeof N[0] != "string" && N.unshift("%O");
17273
- let O = 0;
17274
- N[0] = N[0].replace(/%([a-zA-Z%])/g, (A, L) => {
17275
- 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 === "%%")
17276
17283
  return "%";
17277
- O++;
17278
- const v = n.formatters[L];
17279
- if (typeof v == "function") {
17280
- const U = N[O];
17281
- 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--;
17282
17289
  }
17283
- return A;
17284
- }), 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);
17285
17292
  }
17286
- 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", {
17287
17294
  enumerable: !0,
17288
17295
  configurable: !1,
17289
- get: () => f !== null ? f : (T !== n.namespaces && (T = n.namespaces, y = n.enabled(u)), y),
17296
+ get: () => y !== null ? y : (T !== n.namespaces && (T = n.namespaces, f = n.enabled(u)), f),
17290
17297
  set: (N) => {
17291
- f = N;
17298
+ y = N;
17292
17299
  }
17293
- }), typeof n.init == "function" && n.init(_), _;
17300
+ }), typeof n.init == "function" && n.init(k), k;
17294
17301
  }
17295
17302
  function a(u, d) {
17296
- const f = n(this.namespace + (typeof d > "u" ? ":" : d) + u);
17297
- return f.log = this.log, f;
17303
+ const y = n(this.namespace + (typeof d > "u" ? ":" : d) + u);
17304
+ return y.log = this.log, y;
17298
17305
  }
17299
17306
  function s(u) {
17300
17307
  n.save(u), n.namespaces = u, n.names = [], n.skips = [];
17301
17308
  let d;
17302
- const f = (typeof u == "string" ? u : "").split(/[\s,]+/), T = f.length;
17309
+ const y = (typeof u == "string" ? u : "").split(/[\s,]+/), T = y.length;
17303
17310
  for (d = 0; d < T; d++)
17304
- f[d] && (u = f[d].replace(/\*/g, ".*?"), u[0] === "-" ? n.skips.push(new RegExp("^" + u.slice(1) + "$")) : n.names.push(new RegExp("^" + u + "$")));
17311
+ y[d] && (u = y[d].replace(/\*/g, ".*?"), u[0] === "-" ? n.skips.push(new RegExp("^" + u.slice(1) + "$")) : n.names.push(new RegExp("^" + u + "$")));
17305
17312
  }
17306
17313
  function o() {
17307
17314
  const u = [
@@ -17313,11 +17320,11 @@ function v_(e) {
17313
17320
  function r(u) {
17314
17321
  if (u[u.length - 1] === "*")
17315
17322
  return !0;
17316
- let d, f;
17317
- for (d = 0, f = n.skips.length; d < f; d++)
17323
+ let d, y;
17324
+ for (d = 0, y = n.skips.length; d < y; d++)
17318
17325
  if (n.skips[d].test(u))
17319
17326
  return !1;
17320
- for (d = 0, f = n.names.length; d < f; d++)
17327
+ for (d = 0, y = n.names.length; d < y; d++)
17321
17328
  if (n.names[d].test(u))
17322
17329
  return !0;
17323
17330
  return !1;
@@ -17431,8 +17438,8 @@ var A_ = v_;
17431
17438
  const m = "color: " + this.color;
17432
17439
  l.splice(1, 0, m, "color: inherit");
17433
17440
  let u = 0, d = 0;
17434
- l[0].replace(/%[a-zA-Z%]/g, (f) => {
17435
- f !== "%%" && (u++, f === "%c" && (d = u));
17441
+ l[0].replace(/%[a-zA-Z%]/g, (y) => {
17442
+ y !== "%%" && (u++, y === "%c" && (d = u));
17436
17443
  }), l.splice(d, 0, m);
17437
17444
  }
17438
17445
  t.log = console.debug || console.log || (() => {
@@ -17449,7 +17456,7 @@ var A_ = v_;
17449
17456
  l = t.storage.getItem("debug");
17450
17457
  } catch {
17451
17458
  }
17452
- 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;
17453
17460
  }
17454
17461
  function r() {
17455
17462
  try {
@@ -17488,7 +17495,7 @@ Vt.prototype.exec = function(e, t) {
17488
17495
  let a = !1;
17489
17496
  const s = this.name;
17490
17497
  if (this.parent._error && !this.isAfter) {
17491
- 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);
17492
17499
  return;
17493
17500
  }
17494
17501
  if (this.isAfter)
@@ -17515,8 +17522,8 @@ Vt.prototype.exec = function(e, t) {
17515
17522
  }, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
17516
17523
  const c = n(this.server, this.opts, r);
17517
17524
  c && typeof c.then == "function" && (ue("exec: resolving promise", s), c.then(
17518
- () => D.nextTick(r),
17519
- (l) => D.nextTick(r, l)
17525
+ () => C.nextTick(r),
17526
+ (l) => C.nextTick(r, l)
17520
17527
  ));
17521
17528
  };
17522
17529
  Vt.prototype.loadedSoFar = function() {
@@ -17524,7 +17531,7 @@ Vt.prototype.loadedSoFar = function() {
17524
17531
  return Promise.resolve();
17525
17532
  const e = () => {
17526
17533
  this.server.after((n, a) => {
17527
- 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);
17528
17535
  }), this.q.resume();
17529
17536
  };
17530
17537
  let t;
@@ -17560,7 +17567,7 @@ Vt.prototype.finish = function(e, t) {
17560
17567
  };
17561
17568
  function C_(e, t) {
17562
17569
  const n = this;
17563
- D.nextTick(Bs.bind(n), e, t);
17570
+ C.nextTick(Bs.bind(n), e, t);
17564
17571
  }
17565
17572
  function Bs(e, t) {
17566
17573
  if (typeof e.func.then == "function") {
@@ -17648,7 +17655,7 @@ function Y_(e, t, n) {
17648
17655
  }
17649
17656
  B_(ce, G_);
17650
17657
  ce.prototype.start = function() {
17651
- return this.started = !0, D.nextTick(this._doStart), this;
17658
+ return this.started = !0, C.nextTick(this._doStart), this;
17652
17659
  };
17653
17660
  ce.prototype.override = function(e, t, n) {
17654
17661
  return e;
@@ -17664,7 +17671,7 @@ ce.prototype.use = function(e, t) {
17664
17671
  };
17665
17672
  ce.prototype._loadRegistered = function() {
17666
17673
  const e = this._current[0];
17667
- 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();
17668
17675
  };
17669
17676
  Object.defineProperty(ce.prototype, "then", { get: Ac });
17670
17677
  ce.prototype._addPlugin = function(e, t, n) {
@@ -17714,7 +17721,7 @@ ce.prototype.close = function(e) {
17714
17721
  };
17715
17722
  });
17716
17723
  return this.ready(() => {
17717
- 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));
17718
17725
  }), t;
17719
17726
  };
17720
17727
  ce.prototype.ready = function(e) {
@@ -17728,7 +17735,7 @@ ce.prototype.ready = function(e) {
17728
17735
  this._readyQ.push(s), this.start();
17729
17736
  const a = this._current[0].server;
17730
17737
  function s(o, r, c) {
17731
- o ? n(o) : t(a), D.nextTick(c);
17738
+ o ? n(o) : t(a), C.nextTick(c);
17732
17739
  }
17733
17740
  });
17734
17741
  };
@@ -17755,9 +17762,9 @@ function wc(e, t) {
17755
17762
  const n = this._server, a = this._error;
17756
17763
  let s;
17757
17764
  if (this._error = null, e.length === 0)
17758
- 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);
17759
17766
  else if (e.length === 1)
17760
- 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);
17761
17768
  else if (this._timeout === 0) {
17762
17769
  const o = (r) => {
17763
17770
  this._error = r, t(this._error);
@@ -17784,9 +17791,9 @@ function K_(e, t) {
17784
17791
  if (e.length === 0 || e.length === 1) {
17785
17792
  let s;
17786
17793
  a ? s = e(n) : s = e(this._error), s && typeof s.then == "function" ? (Ft("resolving close/onClose promise"), s.then(
17787
- () => D.nextTick(t),
17788
- (o) => D.nextTick(t, o)
17789
- )) : D.nextTick(t);
17794
+ () => C.nextTick(t),
17795
+ (o) => C.nextTick(t, o)
17796
+ )) : C.nextTick(t);
17790
17797
  } else e.length === 2 ? e(a ? n : this._error, t) : a ? e(n, t) : e(this._error, n, t);
17791
17798
  }
17792
17799
  function W_(e, t) {
@@ -17794,10 +17801,10 @@ function W_(e, t) {
17794
17801
  function n(a, s) {
17795
17802
  let o;
17796
17803
  e.length === 0 ? (o = e(), o && o.then ? o.then(function() {
17797
- D.nextTick(s);
17798
- }, s) : D.nextTick(s)) : e.length === 1 ? (o = e(this), o && o.then ? o.then(function() {
17799
- D.nextTick(s);
17800
- }, 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);
17801
17808
  }
17802
17809
  }
17803
17810
  function Ra(e, t) {
@@ -17805,10 +17812,10 @@ function Ra(e, t) {
17805
17812
  function n(a, s) {
17806
17813
  let o;
17807
17814
  e ? e.length === 0 ? (o = e(), o && o.then ? o.then(function() {
17808
- D.nextTick(s, a);
17809
- }, s) : D.nextTick(s, a)) : e.length === 1 ? (o = e(a), o && o.then ? o.then(function() {
17810
- D.nextTick(s);
17811
- }, 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);
17812
17819
  }
17813
17820
  }
17814
17821
  vs.exports = ce;
@@ -17870,13 +17877,13 @@ const tE = ({
17870
17877
  }) => {
17871
17878
  const [u, d] = Cc(null);
17872
17879
  return Uc(() => {
17873
- let f = !1;
17880
+ let y = !1;
17874
17881
  if (!e)
17875
- return console.error("streamlayer sdk key should be provided"), d((y) => (y !== null && typeof y.disableApp == "function" && y.disableApp(), null)), () => {
17876
- f = !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;
17877
17884
  };
17878
17885
  const T = X_(e, n, a, {
17879
- version: "1.9.0",
17886
+ version: "1.9.2",
17880
17887
  onDeepLinkHandled: s,
17881
17888
  videoPlayerController: o,
17882
17889
  onContentActivate: r,
@@ -17885,13 +17892,13 @@ const tE = ({
17885
17892
  friendsTab: m
17886
17893
  });
17887
17894
  if (t)
17888
- for (const y of t)
17889
- T.use(y);
17890
- return T.ready().then((y) => {
17891
- f || (d(y.sdk), typeof window < "u");
17892
- }).catch((y) => console.log(y)), () => {
17893
- f = !0, T.close(function(y) {
17894
- if (y) throw y;
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;
17895
17902
  });
17896
17903
  };
17897
17904
  }, [e, n]), u;
@@ -17902,14 +17909,14 @@ export {
17902
17909
  Ba as I,
17903
17910
  Tm as N,
17904
17911
  hm as P,
17905
- C as Q,
17906
- Y as S,
17912
+ U as Q,
17913
+ j as S,
17907
17914
  Fa as a,
17908
17915
  ym as b,
17909
17916
  pm as c,
17910
17917
  _e as d,
17911
17918
  km as e,
17912
- P as f,
17919
+ D as f,
17913
17920
  fo as g,
17914
17921
  Sm as h,
17915
17922
  gt as i,