@streamlayer/react 1.8.0 → 1.8.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.
@@ -89,17 +89,17 @@ ee.env = {};
89
89
  ee.argv = [];
90
90
  ee.version = "";
91
91
  ee.versions = {};
92
- function $e() {
92
+ function Ke() {
93
93
  }
94
- ee.on = $e;
95
- ee.addListener = $e;
96
- ee.once = $e;
97
- ee.off = $e;
98
- ee.removeListener = $e;
99
- ee.removeAllListeners = $e;
100
- ee.emit = $e;
101
- ee.prependListener = $e;
102
- ee.prependOnceListener = $e;
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
103
  ee.listeners = function(e) {
104
104
  return [];
105
105
  };
@@ -257,7 +257,7 @@ function je(e) {
257
257
  messageKey: e.messageKey || "msg",
258
258
  onChild: e.onChild || wt
259
259
  };
260
- m.levels = $c(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(..._) {
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
261
  return f.call(this, u, ..._);
262
262
  }, t && (m._logEvent = Pa());
263
263
  function d() {
@@ -295,14 +295,14 @@ function je(e) {
295
295
  }
296
296
  return m;
297
297
  }
298
- function $c(e) {
299
- const t = e.customLevels || {}, n = Object.assign({}, je.levels.values, t), a = Object.assign({}, je.levels.labels, Kc(t));
298
+ function Kc(e) {
299
+ const t = e.customLevels || {}, n = Object.assign({}, je.levels.values, t), a = Object.assign({}, je.levels.labels, $c(t));
300
300
  return {
301
301
  values: n,
302
302
  labels: a
303
303
  };
304
304
  }
305
- function Kc(e) {
305
+ function $c(e) {
306
306
  const t = {};
307
307
  return Object.keys(e).forEach(function(n) {
308
308
  t[e[n]] = n;
@@ -827,7 +827,7 @@ function gl() {
827
827
  }
828
828
  };
829
829
  }
830
- const pe = gl();
830
+ const Te = gl();
831
831
  var h;
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";
@@ -866,7 +866,7 @@ function Pt(e, t) {
866
866
  case h.INT64:
867
867
  case h.SFIXED64:
868
868
  case h.SINT64:
869
- return t == 0 ? pe.zero : "0";
869
+ return t == 0 ? Te.zero : "0";
870
870
  case h.DOUBLE:
871
871
  case h.FLOAT:
872
872
  return 0;
@@ -1020,35 +1020,35 @@ class kl {
1020
1020
  * Write a `fixed64` value, a signed, fixed-length 64-bit integer.
1021
1021
  */
1022
1022
  sfixed64(t) {
1023
- let n = new Uint8Array(8), a = new DataView(n.buffer), s = pe.enc(t);
1023
+ let n = new Uint8Array(8), a = new DataView(n.buffer), s = Te.enc(t);
1024
1024
  return a.setInt32(0, s.lo, !0), a.setInt32(4, s.hi, !0), this.raw(n);
1025
1025
  }
1026
1026
  /**
1027
1027
  * Write a `fixed64` value, an unsigned, fixed-length 64 bit integer.
1028
1028
  */
1029
1029
  fixed64(t) {
1030
- let n = new Uint8Array(8), a = new DataView(n.buffer), s = pe.uEnc(t);
1030
+ let n = new Uint8Array(8), a = new DataView(n.buffer), s = Te.uEnc(t);
1031
1031
  return a.setInt32(0, s.lo, !0), a.setInt32(4, s.hi, !0), this.raw(n);
1032
1032
  }
1033
1033
  /**
1034
1034
  * Write a `int64` value, a signed 64-bit varint.
1035
1035
  */
1036
1036
  int64(t) {
1037
- let n = pe.enc(t);
1037
+ let n = Te.enc(t);
1038
1038
  return na(n.lo, n.hi, this.buf), this;
1039
1039
  }
1040
1040
  /**
1041
1041
  * Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint.
1042
1042
  */
1043
1043
  sint64(t) {
1044
- let n = pe.enc(t), a = n.hi >> 31, s = n.lo << 1 ^ a, o = (n.hi << 1 | n.lo >>> 31) ^ a;
1044
+ let n = Te.enc(t), a = n.hi >> 31, s = n.lo << 1 ^ a, o = (n.hi << 1 | n.lo >>> 31) ^ a;
1045
1045
  return na(s, o, this.buf), this;
1046
1046
  }
1047
1047
  /**
1048
1048
  * Write a `uint64` value, an unsigned 64-bit varint.
1049
1049
  */
1050
1050
  uint64(t) {
1051
- let n = pe.uEnc(t);
1051
+ let n = Te.uEnc(t);
1052
1052
  return na(n.lo, n.hi, this.buf), this;
1053
1053
  }
1054
1054
  }
@@ -1127,20 +1127,20 @@ class hl {
1127
1127
  * Read a `int64` field, a signed 64-bit varint.
1128
1128
  */
1129
1129
  int64() {
1130
- return pe.dec(...this.varint64());
1130
+ return Te.dec(...this.varint64());
1131
1131
  }
1132
1132
  /**
1133
1133
  * Read a `uint64` field, an unsigned 64-bit varint.
1134
1134
  */
1135
1135
  uint64() {
1136
- return pe.uDec(...this.varint64());
1136
+ return Te.uDec(...this.varint64());
1137
1137
  }
1138
1138
  /**
1139
1139
  * Read a `sint64` field, a signed, zig-zag-encoded 64-bit varint.
1140
1140
  */
1141
1141
  sint64() {
1142
1142
  let [t, n] = this.varint64(), a = -(t & 1);
1143
- return t = (t >>> 1 | (n & 1) << 31) ^ a, n = n >>> 1 ^ a, pe.dec(t, n);
1143
+ return t = (t >>> 1 | (n & 1) << 31) ^ a, n = n >>> 1 ^ a, Te.dec(t, n);
1144
1144
  }
1145
1145
  /**
1146
1146
  * Read a `bool` field, a variant.
@@ -1165,13 +1165,13 @@ class hl {
1165
1165
  * Read a `fixed64` field, an unsigned, fixed-length 64 bit integer.
1166
1166
  */
1167
1167
  fixed64() {
1168
- return pe.uDec(this.sfixed32(), this.sfixed32());
1168
+ return Te.uDec(this.sfixed32(), this.sfixed32());
1169
1169
  }
1170
1170
  /**
1171
1171
  * Read a `fixed64` field, a signed, fixed-length 64-bit integer.
1172
1172
  */
1173
1173
  sfixed64() {
1174
- return pe.dec(this.sfixed32(), this.sfixed32());
1174
+ return Te.dec(this.sfixed32(), this.sfixed32());
1175
1175
  }
1176
1176
  /**
1177
1177
  * Read a `float` field, 32-bit floating point number.
@@ -1367,7 +1367,7 @@ function Yr(e, t) {
1367
1367
  return Object.keys(t[n]).length > 0;
1368
1368
  }
1369
1369
  }
1370
- function $s(e, t) {
1370
+ function Ks(e, t) {
1371
1371
  const n = e.localName, a = !e.opt && !e.req;
1372
1372
  if (e.repeated)
1373
1373
  t[n] = [];
@@ -1399,7 +1399,7 @@ function jr(e, t) {
1399
1399
  return dt(t) || !e.fieldWrapper ? t : e.fieldWrapper.wrapField(t);
1400
1400
  }
1401
1401
  h.DOUBLE, h.FLOAT, h.INT64, h.UINT64, h.INT32, h.UINT32, h.BOOL, h.STRING, h.BYTES;
1402
- const Ks = {
1402
+ const $s = {
1403
1403
  ignoreUnknownFields: !1
1404
1404
  }, Ws = {
1405
1405
  emitDefaultValues: !1,
@@ -1408,7 +1408,7 @@ const Ks = {
1408
1408
  prettySpaces: 0
1409
1409
  };
1410
1410
  function Il(e) {
1411
- return e ? Object.assign(Object.assign({}, Ks), e) : Ks;
1411
+ return e ? Object.assign(Object.assign({}, $s), e) : $s;
1412
1412
  }
1413
1413
  function Ol(e) {
1414
1414
  return e ? Object.assign(Object.assign({}, Ws), e) : Ws;
@@ -1578,7 +1578,7 @@ function zs(e, t, n, a, s) {
1578
1578
  const l = aa(n.T, t, a.ignoreUnknownFields, !1);
1579
1579
  switch (l) {
1580
1580
  case An:
1581
- $s(n, e);
1581
+ Ks(n, e);
1582
1582
  break;
1583
1583
  case gn:
1584
1584
  break;
@@ -1592,7 +1592,7 @@ function zs(e, t, n, a, s) {
1592
1592
  const m = jt(n.T, t, n.L, !1);
1593
1593
  switch (m) {
1594
1594
  case An:
1595
- $s(n, e);
1595
+ Ks(n, e);
1596
1596
  break;
1597
1597
  default:
1598
1598
  e[o] = m;
@@ -1649,13 +1649,13 @@ function jt(e, t, n, a) {
1649
1649
  case h.SINT64:
1650
1650
  if (typeof t != "number" && typeof t != "string")
1651
1651
  break;
1652
- const r = pe.parse(t);
1652
+ const r = Te.parse(t);
1653
1653
  return n ? r.toString() : r;
1654
1654
  case h.FIXED64:
1655
1655
  case h.UINT64:
1656
1656
  if (typeof t != "number" && typeof t != "string")
1657
1657
  break;
1658
- const c = pe.uParse(t);
1658
+ const c = Te.uParse(t);
1659
1659
  return n ? c.toString() : c;
1660
1660
  case h.BOOL:
1661
1661
  if (typeof t != "boolean")
@@ -1979,9 +1979,9 @@ function to(e, t, n, a) {
1979
1979
  Ul(n, o, e.no, t);
1980
1980
  else
1981
1981
  for (const r of t)
1982
- $t(n, o, e.no, r);
1982
+ Kt(n, o, e.no, r);
1983
1983
  else
1984
- $t(n, o, e.no, t);
1984
+ Kt(n, o, e.no, t);
1985
1985
  break;
1986
1986
  case "message":
1987
1987
  if (s) {
@@ -2013,12 +2013,12 @@ function Cl(e, t, n, a, s) {
2013
2013
  J(a == "true" || a == "false"), o = a == "true";
2014
2014
  break;
2015
2015
  }
2016
- switch ($t(e, n.K, 1, o), n.V.kind) {
2016
+ switch (Kt(e, n.K, 1, o), n.V.kind) {
2017
2017
  case "scalar":
2018
- $t(e, n.V.T, 2, s);
2018
+ Kt(e, n.V.T, 2, s);
2019
2019
  break;
2020
2020
  case "enum":
2021
- $t(e, h.INT32, 2, s);
2021
+ Kt(e, h.INT32, 2, s);
2022
2022
  break;
2023
2023
  case "message":
2024
2024
  J(s !== void 0), e.tag(2, Z.LengthDelimited).bytes(s.toBinary(t));
@@ -2030,21 +2030,21 @@ function no(e, t, n, a) {
2030
2030
  const s = jr(n.T, a);
2031
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));
2032
2032
  }
2033
- function $t(e, t, n, a) {
2033
+ function Kt(e, t, n, a) {
2034
2034
  J(a !== void 0);
2035
- let [s, o] = $r(t);
2035
+ let [s, o] = Kr(t);
2036
2036
  e.tag(n, s)[o](a);
2037
2037
  }
2038
2038
  function Ul(e, t, n, a) {
2039
2039
  if (!a.length)
2040
2040
  return;
2041
2041
  e.tag(n, Z.LengthDelimited).fork();
2042
- let [, s] = $r(t);
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
- function $r(e) {
2047
+ function Kr(e) {
2048
2048
  let t = Z.Varint;
2049
2049
  switch (e) {
2050
2050
  case h.BYTES:
@@ -2269,12 +2269,12 @@ class Bl {
2269
2269
  return this.members;
2270
2270
  }
2271
2271
  }
2272
- function Kr(e, t) {
2272
+ function $r(e, t) {
2273
2273
  const n = Wr(e);
2274
2274
  return t ? n : Yl(Ql(n));
2275
2275
  }
2276
2276
  function Vl(e) {
2277
- return Kr(e, !1);
2277
+ return $r(e, !1);
2278
2278
  }
2279
2279
  const ql = Wr;
2280
2280
  function Wr(e) {
@@ -2341,13 +2341,13 @@ class jl {
2341
2341
  return this._lookup[t];
2342
2342
  }
2343
2343
  }
2344
- function $l(e, t) {
2344
+ function Kl(e, t) {
2345
2345
  var n, a, s, o, r, c;
2346
2346
  const l = [];
2347
2347
  let m;
2348
2348
  for (const u of typeof e == "function" ? e() : e) {
2349
2349
  const d = u;
2350
- if (d.localName = Kr(u.name, u.oneof !== void 0), d.jsonName = (n = u.jsonName) !== null && n !== void 0 ? n : ql(u.name), d.repeated = (a = u.repeated) !== null && a !== void 0 ? a : !1, u.kind == "scalar" && (d.L = (s = u.L) !== null && s !== void 0 ? s : tt.BIGINT), d.delimited = (o = u.delimited) !== null && o !== void 0 ? o : !1, d.req = (r = u.req) !== null && r !== void 0 ? r : !1, d.opt = (c = u.opt) !== null && c !== void 0 ? c : !1, u.packed === void 0 && (d.packed = u.kind == "enum" || u.kind == "scalar" && u.T != h.BYTES && u.T != h.STRING), u.oneof !== void 0) {
2350
+ if (d.localName = $r(u.name, u.oneof !== void 0), d.jsonName = (n = u.jsonName) !== null && n !== void 0 ? n : ql(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
2351
  const y = typeof u.oneof == "string" ? u.oneof : u.oneof.name;
2352
2352
  (!m || m.name != y) && (m = new jl(y)), d.oneof = m, m.addField(d);
2353
2353
  }
@@ -2357,7 +2357,7 @@ function $l(e, t) {
2357
2357
  }
2358
2358
  const i = Gl(
2359
2359
  "proto3",
2360
- (e) => new Bl(e, (t) => $l(t)),
2360
+ (e) => new Bl(e, (t) => Kl(t)),
2361
2361
  // TODO merge with proto2 and initExtensionField, also see initPartial, equals, clone
2362
2362
  (e) => {
2363
2363
  for (const t of e.getType().fields.byMember()) {
@@ -2395,7 +2395,7 @@ var ao;
2395
2395
  })(ao || (ao = {}));
2396
2396
  class ye extends en {
2397
2397
  constructor(t) {
2398
- super(), this.seconds = pe.zero, this.nanos = 0, i.util.initPartial(t, this);
2398
+ super(), this.seconds = Te.zero, this.nanos = 0, i.util.initPartial(t, this);
2399
2399
  }
2400
2400
  fromJson(t, n) {
2401
2401
  if (typeof t != "string")
@@ -2408,7 +2408,7 @@ class ye extends en {
2408
2408
  throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");
2409
2409
  if (s < Date.parse("0001-01-01T00:00:00Z") || s > Date.parse("9999-12-31T23:59:59Z"))
2410
2410
  throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");
2411
- return this.seconds = pe.parse(s / 1e3), this.nanos = 0, a[7] && (this.nanos = parseInt("1" + a[7] + "0".repeat(9 - a[7].length)) - 1e9), this;
2411
+ return this.seconds = Te.parse(s / 1e3), this.nanos = 0, a[7] && (this.nanos = parseInt("1" + a[7] + "0".repeat(9 - a[7].length)) - 1e9), this;
2412
2412
  }
2413
2413
  toJson(t) {
2414
2414
  const n = Number(this.seconds) * 1e3;
@@ -2432,7 +2432,7 @@ class ye extends en {
2432
2432
  static fromDate(t) {
2433
2433
  const n = t.getTime();
2434
2434
  return new ye({
2435
- seconds: pe.parse(Math.floor(n / 1e3)),
2435
+ seconds: Te.parse(Math.floor(n / 1e3)),
2436
2436
  nanos: n % 1e3 * 1e6
2437
2437
  });
2438
2438
  }
@@ -2568,14 +2568,14 @@ Ce.fields = i.util.newFieldList(() => [
2568
2568
  /* ScalarType.BYTES */
2569
2569
  }
2570
2570
  ]);
2571
- const Kl = /* @__PURE__ */ i.makeEnum(
2571
+ const $l = /* @__PURE__ */ i.makeEnum(
2572
2572
  "streamlayer.analytics.v1.common.ResultStatus",
2573
2573
  [
2574
2574
  { no: 0, name: "RESULT_STATUS_UNSET", localName: "UNSET" },
2575
2575
  { no: 1, name: "RESULT_STATUS_OK", localName: "OK" },
2576
2576
  { no: 2, name: "RESULT_STATUS_ERROR", localName: "ERROR" }
2577
2577
  ]
2578
- ), oe = /* @__PURE__ */ i.makeEnum(
2578
+ ), re = /* @__PURE__ */ i.makeEnum(
2579
2579
  "streamlayer.analytics.v1.common.Kind",
2580
2580
  [
2581
2581
  { no: 0, name: "KIND_UNSET", localName: "UNSET" },
@@ -2613,7 +2613,7 @@ const Kl = /* @__PURE__ */ i.makeEnum(
2613
2613
  { no: 32, name: "KIND_AD_BUTTON_NAVIGATED", localName: "AD_BUTTON_NAVIGATED" },
2614
2614
  { no: 33, name: "KIND_AD_BANNER_NAVIGATED", localName: "AD_BANNER_NAVIGATED" }
2615
2615
  ]
2616
- ), le = /* @__PURE__ */ i.makeEnum(
2616
+ ), me = /* @__PURE__ */ i.makeEnum(
2617
2617
  "streamlayer.analytics.v1.common.Category",
2618
2618
  [
2619
2619
  { no: 0, name: "CATEGORY_UNSET", localName: "UNSET" },
@@ -2658,7 +2658,7 @@ const Kl = /* @__PURE__ */ i.makeEnum(
2658
2658
  { no: 1, name: "SCREEN_ORIENTATION_PORTRAIT", localName: "PORTRAIT" },
2659
2659
  { no: 2, name: "SCREEN_ORIENTATION_LANDSCAPE", localName: "LANDSCAPE" }
2660
2660
  ]
2661
- ), de = /* @__PURE__ */ i.makeEnum(
2661
+ ), se = /* @__PURE__ */ i.makeEnum(
2662
2662
  "streamlayer.analytics.v1.common.TopicType",
2663
2663
  [
2664
2664
  { no: 0, name: "TOPIC_TYPE_UNSET", localName: "UNSET" },
@@ -3204,7 +3204,7 @@ const Kl = /* @__PURE__ */ i.makeEnum(
3204
3204
  { no: 1, name: "QUESTION_SOURCE_AI", localName: "AI" },
3205
3205
  { no: 2, name: "QUESTION_SOURCE_CSV_IMPORT", localName: "CSV_IMPORT" }
3206
3206
  ]
3207
- ), ue = /* @__PURE__ */ i.makeEnum(
3207
+ ), de = /* @__PURE__ */ i.makeEnum(
3208
3208
  "streamlayer.interactive.QuestionStatus",
3209
3209
  [
3210
3210
  { no: 0, name: "QUESTION_STATUS_UNSET", localName: "UNSET" },
@@ -3988,7 +3988,7 @@ const Kl = /* @__PURE__ */ i.makeEnum(
3988
3988
  { no: 6, name: "sponsorship", kind: "message", T: Gt },
3989
3989
  { no: 7, name: "notification", kind: "message", T: ps },
3990
3990
  { no: 8, name: "answers", kind: "message", T: Im, repeated: !0 },
3991
- { no: 9, name: "status", kind: "enum", T: i.getEnumType(ue) },
3991
+ { no: 9, name: "status", kind: "enum", T: i.getEnumType(de) },
3992
3992
  { no: 10, name: "position", kind: "scalar", T: 13, opt: !0 },
3993
3993
  {
3994
3994
  no: 11,
@@ -4061,7 +4061,7 @@ const Kl = /* @__PURE__ */ i.makeEnum(
4061
4061
  { no: 6, name: "sponsorship", kind: "message", T: Gt },
4062
4062
  { no: 7, name: "notification", kind: "message", T: ps },
4063
4063
  { no: 8, name: "answers", kind: "message", T: Om, repeated: !0 },
4064
- { no: 9, name: "status", kind: "enum", T: i.getEnumType(ue) },
4064
+ { no: 9, name: "status", kind: "enum", T: i.getEnumType(de) },
4065
4065
  {
4066
4066
  no: 10,
4067
4067
  name: "position",
@@ -4251,7 +4251,7 @@ const Kl = /* @__PURE__ */ i.makeEnum(
4251
4251
  /* ScalarType.STRING */
4252
4252
  }
4253
4253
  ]
4254
- ), $m = /* @__PURE__ */ i.makeMessageType(
4254
+ ), Km = /* @__PURE__ */ i.makeMessageType(
4255
4255
  "streamlayer.interactive.Sort",
4256
4256
  () => [
4257
4257
  {
@@ -4274,7 +4274,7 @@ const Kl = /* @__PURE__ */ i.makeEnum(
4274
4274
  () => [
4275
4275
  { no: 1, name: "in_app_silence", kind: "enum", T: i.getEnumType(ei) }
4276
4276
  ]
4277
- ), Km = /* @__PURE__ */ i.makeMessageType(
4277
+ ), $m = /* @__PURE__ */ i.makeMessageType(
4278
4278
  "streamlayer.interactive.ImportError",
4279
4279
  () => [
4280
4280
  {
@@ -4303,7 +4303,7 @@ const Kl = /* @__PURE__ */ i.makeEnum(
4303
4303
  /* ScalarType.STRING */
4304
4304
  },
4305
4305
  { no: 2, name: "status", kind: "enum", T: i.getEnumType(bm) },
4306
- { no: 3, name: "errors", kind: "message", T: Km, repeated: !0 },
4306
+ { no: 3, name: "errors", kind: "message", T: $m, repeated: !0 },
4307
4307
  { no: 4, name: "last_updated", kind: "message", T: ye }
4308
4308
  ]
4309
4309
  ), zm = /* @__PURE__ */ i.makeMessageType(
@@ -4815,7 +4815,7 @@ const Kl = /* @__PURE__ */ i.makeEnum(
4815
4815
  T: 8
4816
4816
  /* ScalarType.BOOL */
4817
4817
  },
4818
- { no: 8, name: "question_status", kind: "enum", T: i.getEnumType(ue) }
4818
+ { no: 8, name: "question_status", kind: "enum", T: i.getEnumType(de) }
4819
4819
  ]
4820
4820
  ), Du = /* @__PURE__ */ i.makeMessageType(
4821
4821
  "streamlayer.interactive.feed.PickHistoryResponse",
@@ -5046,7 +5046,7 @@ const Kl = /* @__PURE__ */ i.makeEnum(
5046
5046
  /* ScalarType.BOOL */
5047
5047
  }
5048
5048
  ]
5049
- ), $u = /* @__PURE__ */ i.makeMessageType(
5049
+ ), Ku = /* @__PURE__ */ i.makeMessageType(
5050
5050
  "streamlayer.interactive.feed.GetRequest",
5051
5051
  () => [
5052
5052
  {
@@ -5057,7 +5057,7 @@ const Kl = /* @__PURE__ */ i.makeEnum(
5057
5057
  /* ScalarType.STRING */
5058
5058
  }
5059
5059
  ]
5060
- ), Ku = /* @__PURE__ */ i.makeMessageType(
5060
+ ), $u = /* @__PURE__ */ i.makeMessageType(
5061
5061
  "streamlayer.interactive.feed.GetResponse",
5062
5062
  () => [
5063
5063
  { no: 1, name: "data", kind: "message", T: Wu }
@@ -5154,7 +5154,7 @@ const Kl = /* @__PURE__ */ i.makeEnum(
5154
5154
  /* ScalarType.STRING */
5155
5155
  },
5156
5156
  { no: 2, name: "type", kind: "enum", T: i.getEnumType(C) },
5157
- { no: 3, name: "status", kind: "enum", T: i.getEnumType(ue) },
5157
+ { no: 3, name: "status", kind: "enum", T: i.getEnumType(de) },
5158
5158
  {
5159
5159
  no: 8,
5160
5160
  name: "created",
@@ -5203,7 +5203,7 @@ const Kl = /* @__PURE__ */ i.makeEnum(
5203
5203
  "streamlayer.interactive.feed.FeedListRequest.FeedListFilter",
5204
5204
  () => [
5205
5205
  { no: 1, name: "types", kind: "enum", T: i.getEnumType(C), repeated: !0 },
5206
- { no: 2, name: "statuses", kind: "enum", T: i.getEnumType(ue), repeated: !0 }
5206
+ { no: 2, name: "statuses", kind: "enum", T: i.getEnumType(de), repeated: !0 }
5207
5207
  ],
5208
5208
  { localName: "FeedListRequest_FeedListFilter" }
5209
5209
  ), nd = /* @__PURE__ */ i.makeMessageType(
@@ -6379,7 +6379,7 @@ const Kl = /* @__PURE__ */ i.makeEnum(
6379
6379
  ]
6380
6380
  );
6381
6381
  let oa = 0, io = [];
6382
- function $d() {
6382
+ function Kd() {
6383
6383
  return oa += 1, () => {
6384
6384
  if (oa -= 1, oa === 0) {
6385
6385
  let e = io;
@@ -6388,7 +6388,7 @@ function $d() {
6388
6388
  }
6389
6389
  };
6390
6390
  }
6391
- let ce = [], at = (e, t) => {
6391
+ let le = [], at = (e, t) => {
6392
6392
  let n = [], a = {
6393
6393
  get() {
6394
6394
  return a.lc || a.listen(() => {
@@ -6403,9 +6403,9 @@ let ce = [], at = (e, t) => {
6403
6403
  };
6404
6404
  },
6405
6405
  notify(s, o) {
6406
- let r = !ce.length;
6406
+ let r = !le.length;
6407
6407
  for (let c = 0; c < n.length; c += 2)
6408
- ce.push(
6408
+ le.push(
6409
6409
  n[c],
6410
6410
  n[c + 1],
6411
6411
  a.value,
@@ -6413,23 +6413,23 @@ let ce = [], at = (e, t) => {
6413
6413
  o
6414
6414
  );
6415
6415
  if (r) {
6416
- for (let c = 0; c < ce.length; c += 5) {
6416
+ for (let c = 0; c < le.length; c += 5) {
6417
6417
  let l;
6418
- for (let m = c + 1; !l && (m += 5) < ce.length; )
6419
- ce[m] < ce[c + 1] && (l = ce.push(
6420
- ce[c],
6421
- ce[c + 1],
6422
- ce[c + 2],
6423
- ce[c + 3],
6424
- ce[c + 4]
6418
+ for (let m = c + 1; !l && (m += 5) < le.length; )
6419
+ le[m] < le[c + 1] && (l = le.push(
6420
+ le[c],
6421
+ le[c + 1],
6422
+ le[c + 2],
6423
+ le[c + 3],
6424
+ le[c + 4]
6425
6425
  ));
6426
- l || ce[c](
6427
- ce[c + 2],
6428
- ce[c + 3],
6429
- ce[c + 4]
6426
+ l || le[c](
6427
+ le[c + 2],
6428
+ le[c + 3],
6429
+ le[c + 4]
6430
6430
  );
6431
6431
  }
6432
- ce.length = 0;
6432
+ le.length = 0;
6433
6433
  }
6434
6434
  },
6435
6435
  /* It will be called on last listener unsubscribing.
@@ -6448,7 +6448,7 @@ let ce = [], at = (e, t) => {
6448
6448
  };
6449
6449
  return a;
6450
6450
  };
6451
- const Kd = 0, Wd = 1, zd = 5, mn = 6, un = 10;
6451
+ const $d = 0, Wd = 1, zd = 5, mn = 6, un = 10;
6452
6452
  let hs = (e, t, n, a) => (e.events = e.events || {}, e.events[n + un] || (e.events[n + un] = a((s) => {
6453
6453
  e.events[n].reduceRight((o, r) => (r(o), o), {
6454
6454
  shared: {},
@@ -6457,7 +6457,7 @@ let hs = (e, t, n, a) => (e.events = e.events || {}, e.events[n + un] || (e.even
6457
6457
  })), e.events[n] = e.events[n] || [], e.events[n].push(t), () => {
6458
6458
  let s = e.events[n], o = s.indexOf(t);
6459
6459
  s.splice(o, 1), s.length || (delete e.events[n], e.events[n + un](), delete e.events[n + un]);
6460
- }), Jd = (e, t) => hs(e, t, Kd, (n) => {
6460
+ }), Jd = (e, t) => hs(e, t, $d, (n) => {
6461
6461
  let a = e.listen;
6462
6462
  return e.listen = (s) => (!e.lc && !e.starting && (e.starting = !0, n(), delete e.starting), a(s)), () => {
6463
6463
  e.listen = a;
@@ -7279,13 +7279,13 @@ function No(e) {
7279
7279
  const U = yield mt(L.read());
7280
7280
  if (U.done)
7281
7281
  break;
7282
- const { flags: $, data: ne } = U.value;
7283
- if (($ & ra) === ra) {
7282
+ const { flags: K, data: ne } = U.value;
7283
+ if ((K & ra) === ra) {
7284
7284
  if (O)
7285
7285
  throw "extra trailer";
7286
7286
  O = !0;
7287
- const K = fo(ne);
7288
- _o(K, b), K.forEach((W, B) => E.set(B, W));
7287
+ const $ = fo(ne);
7288
+ _o($, b), $.forEach((W, B) => E.set(B, W));
7289
7289
  continue;
7290
7290
  }
7291
7291
  if (O)
@@ -7374,10 +7374,10 @@ const Io = ({
7374
7374
  ...Mo,
7375
7375
  promise: c.get(E)
7376
7376
  });
7377
- }, { dedupeTime: $ = 4e3, fetcher: ne } = {
7377
+ }, { dedupeTime: K = 4e3, fetcher: ne } = {
7378
7378
  ...v,
7379
7379
  ...l
7380
- }, K = Lo();
7380
+ }, $ = Lo();
7381
7381
  if (c.has(E)) {
7382
7382
  w.value.loading || U();
7383
7383
  return;
@@ -7386,13 +7386,13 @@ const Io = ({
7386
7386
  const B = e.get(E);
7387
7387
  B && w.value.data !== B && O({ data: B, ...Xe });
7388
7388
  const V = r.get(E);
7389
- if (V && V + $ > K)
7389
+ if (V && V + K > $)
7390
7390
  return;
7391
7391
  }
7392
- const W = $d();
7392
+ const W = Kd();
7393
7393
  try {
7394
7394
  const B = ne(...b);
7395
- r.set(E, K), c.set(E, B), U();
7395
+ r.set(E, $), c.set(E, B), U();
7396
7396
  const V = await B;
7397
7397
  e.set(E, V), O({ data: V, ...Xe }), r.set(E, Lo());
7398
7398
  } catch (B) {
@@ -7414,10 +7414,10 @@ const Io = ({
7414
7414
  const { key: X } = v;
7415
7415
  X && f(X, V);
7416
7416
  };
7417
- let L, O, U, $, ne, K = [];
7417
+ let L, O, U, K, ne, $ = [];
7418
7418
  Jd(v, () => {
7419
7419
  const V = !L;
7420
- [ne, L] = Mp(E), $ = ne.subscribe((ke) => {
7420
+ [ne, L] = Mp(E), K = ne.subscribe((ke) => {
7421
7421
  if (ke) {
7422
7422
  const [he, g] = ke;
7423
7423
  v.key = he, m([he, g], v, A), O = he, U = g;
@@ -7436,7 +7436,7 @@ const Io = ({
7436
7436
  Fe > 0 && o.set(
7437
7437
  E,
7438
7438
  setInterval(ge, Fe)
7439
- ), qt && K.push(a.on(vo, ge)), ze && K.push(a.on(Ao, ge)), K.push(
7439
+ ), qt && $.push(a.on(vo, ge)), ze && $.push(a.on(Ao, ge)), $.push(
7440
7440
  a.on(wo, (ke) => {
7441
7441
  O && ca(O, ke) && m([O, U], v, A, !0);
7442
7442
  }),
@@ -7454,7 +7454,7 @@ const Io = ({
7454
7454
  const X = B(V);
7455
7455
  return V(v.value), W(), X;
7456
7456
  }, Xd(v, () => {
7457
- v.value = { ...Xe }, L == null || L(), K.forEach((V) => V()), K = [], $ == null || $(), clearInterval(o.get(E));
7457
+ v.value = { ...Xe }, L == null || L(), $.forEach((V) => V()), $ = [], K == null || K(), clearInterval(o.get(E));
7458
7458
  }), v;
7459
7459
  }, d = (E) => {
7460
7460
  e.delete(E), r.delete(E);
@@ -7481,14 +7481,14 @@ const Io = ({
7481
7481
  });
7482
7482
  const U = await L({
7483
7483
  data: v,
7484
- invalidate: ($) => {
7485
- O.push($);
7484
+ invalidate: (K) => {
7485
+ O.push(K);
7486
7486
  },
7487
- getCacheUpdater: ($, ne = !0) => [
7488
- (K) => {
7489
- f($, K), ne && O.push($);
7487
+ getCacheUpdater: (K, ne = !0) => [
7488
+ ($) => {
7489
+ f(K, $), ne && O.push(K);
7490
7490
  },
7491
- e.get($)
7491
+ e.get(K)
7492
7492
  ]
7493
7493
  });
7494
7494
  return w.setKey("data", U), U;
@@ -8286,7 +8286,7 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
8286
8286
  }
8287
8287
  ],
8288
8288
  { localName: "BaseballPlayByPlayStatistics_BaseballPlayByPlayDetailStatistics" }
8289
- ), $p = /* @__PURE__ */ i.makeMessageType(
8289
+ ), Kp = /* @__PURE__ */ i.makeMessageType(
8290
8290
  "streamlayer.sports.baseball.EventScore",
8291
8291
  () => [
8292
8292
  {
@@ -8335,7 +8335,7 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
8335
8335
  { no: 8, name: "home_team_record", kind: "message", T: st },
8336
8336
  { no: 9, name: "away_team_record", kind: "message", T: st }
8337
8337
  ]
8338
- ), Kp = /* @__PURE__ */ i.makeMessageType(
8338
+ ), $p = /* @__PURE__ */ i.makeMessageType(
8339
8339
  "streamlayer.sports.baseball.PlayByPlay",
8340
8340
  () => [
8341
8341
  { no: 1, name: "statistics", kind: "message", T: Yp, repeated: !0 }
@@ -9920,7 +9920,7 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
9920
9920
  /* ScalarType.INT32 */
9921
9921
  }
9922
9922
  ]
9923
- ), $T = /* @__PURE__ */ i.makeMessageType(
9923
+ ), KT = /* @__PURE__ */ i.makeMessageType(
9924
9924
  "streamlayer.sports.soccer.Standings",
9925
9925
  () => [
9926
9926
  { no: 1, name: "standings", kind: "message", T: jT, repeated: !0 }
@@ -9935,9 +9935,9 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
9935
9935
  T: 4
9936
9936
  /* ScalarType.UINT64 */
9937
9937
  },
9938
- { no: 2, name: "attributes", kind: "message", T: KT }
9938
+ { no: 2, name: "attributes", kind: "message", T: $T }
9939
9939
  ]
9940
- ), KT = /* @__PURE__ */ i.makeMessageType(
9940
+ ), $T = /* @__PURE__ */ i.makeMessageType(
9941
9941
  "streamlayer.sports.soccer.SoccerLastGame.SoccerLastGameAttributes",
9942
9942
  () => [
9943
9943
  {
@@ -10005,7 +10005,7 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
10005
10005
  "streamlayer.sports.events.ScheduleAttributes",
10006
10006
  () => [
10007
10007
  { no: 1, name: "summary", kind: "message", T: kt },
10008
- { no: 2, name: "baseball", kind: "message", T: $p, oneof: "sport" },
10008
+ { no: 2, name: "baseball", kind: "message", T: Kp, oneof: "sport" },
10009
10009
  { no: 3, name: "basketball", kind: "message", T: tT, oneof: "sport" },
10010
10010
  { no: 4, name: "hockey", kind: "message", T: yT, oneof: "sport" },
10011
10011
  { no: 5, name: "soccer", kind: "message", T: AT, oneof: "sport" }
@@ -10141,7 +10141,7 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
10141
10141
  { no: 1, name: "meta", kind: "message", T: Yn },
10142
10142
  { no: 2, name: "data", kind: "message", T: Di, repeated: !0 }
10143
10143
  ]
10144
- ), $o = /* @__PURE__ */ i.makeMessageType(
10144
+ ), Ko = /* @__PURE__ */ i.makeMessageType(
10145
10145
  "streamlayer.sports.events.SummaryRequest",
10146
10146
  () => [
10147
10147
  {
@@ -10159,7 +10159,7 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
10159
10159
  /* ScalarType.STRING */
10160
10160
  }
10161
10161
  ]
10162
- ), Ko = /* @__PURE__ */ i.makeMessageType(
10162
+ ), $o = /* @__PURE__ */ i.makeMessageType(
10163
10163
  "streamlayer.sports.events.SummaryResponse",
10164
10164
  () => [
10165
10165
  { no: 1, name: "data", kind: "message", T: sy }
@@ -10280,7 +10280,7 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
10280
10280
  "streamlayer.sports.events.PlayByPlayResponse.ResponseData.PlayByPlayResponseAttributes",
10281
10281
  () => [
10282
10282
  { no: 1, name: "summary", kind: "message", T: kt },
10283
- { no: 2, name: "baseball", kind: "message", T: Kp, oneof: "sports" },
10283
+ { no: 2, name: "baseball", kind: "message", T: $p, oneof: "sports" },
10284
10284
  { no: 3, name: "basketball", kind: "message", T: rT, oneof: "sports" },
10285
10285
  { no: 4, name: "hockey", kind: "message", T: ST, oneof: "sports" },
10286
10286
  { no: 5, name: "soccer", kind: "message", T: YT, oneof: "sports" }
@@ -10406,7 +10406,7 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
10406
10406
  { no: 2, name: "basketball", kind: "message", T: uT, oneof: "sports" },
10407
10407
  { no: 3, name: "hockey", kind: "message", T: IT, oneof: "sports" },
10408
10408
  { no: 4, name: "baseball", kind: "message", T: Zp, oneof: "sports" },
10409
- { no: 5, name: "soccer", kind: "message", T: $T, oneof: "sports" }
10409
+ { no: 5, name: "soccer", kind: "message", T: KT, oneof: "sports" }
10410
10410
  ],
10411
10411
  { localName: "StandingsResponse_ResponseData_StandingsResponseAttributes" }
10412
10412
  ), Ay = /* @__PURE__ */ i.makeMessageType(
@@ -10539,8 +10539,8 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
10539
10539
  */
10540
10540
  summary: {
10541
10541
  name: "Summary",
10542
- I: $o,
10543
- O: Ko,
10542
+ I: Ko,
10543
+ O: $o,
10544
10544
  kind: R.Unary
10545
10545
  },
10546
10546
  /**
@@ -10629,8 +10629,8 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
10629
10629
  */
10630
10630
  summarySubscription: {
10631
10631
  name: "SummarySubscription",
10632
- I: $o,
10633
- O: Ko,
10632
+ I: Ko,
10633
+ O: $o,
10634
10634
  kind: R.ServerStreaming
10635
10635
  }
10636
10636
  }
@@ -10697,14 +10697,14 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
10697
10697
  { no: 1, name: "SETTINGS_ALLOW_DISALLOW", localName: "DISALLOW" },
10698
10698
  { no: 2, name: "SETTINGS_ALLOW_ALLOW", localName: "ALLOW" }
10699
10699
  ]
10700
- ), $y = /* @__PURE__ */ i.makeEnum(
10700
+ ), Ky = /* @__PURE__ */ i.makeEnum(
10701
10701
  "streamlayer.sdkSettings.client.ManagedGroupType",
10702
10702
  [
10703
10703
  { no: 0, name: "MANAGED_GROUP_TYPE_UNSET", localName: "UNSET" },
10704
10704
  { no: 1, name: "MANAGED_GROUP_TYPE_CHAT", localName: "CHAT" },
10705
10705
  { no: 2, name: "MANAGED_GROUP_TYPE_WP", localName: "WP" }
10706
10706
  ]
10707
- ), Ky = /* @__PURE__ */ i.makeEnum(
10707
+ ), $y = /* @__PURE__ */ i.makeEnum(
10708
10708
  "streamlayer.sdkSettings.client.GroupType",
10709
10709
  [
10710
10710
  { no: 0, name: "GROUP_TYPE_UNSET", localName: "UNSET" },
@@ -10911,7 +10911,7 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
10911
10911
  T: 9
10912
10912
  /* ScalarType.STRING */
10913
10913
  },
10914
- { no: 3, name: "group_type", kind: "enum", T: i.getEnumType($y) }
10914
+ { no: 3, name: "group_type", kind: "enum", T: i.getEnumType(Ky) }
10915
10915
  ]
10916
10916
  ), Tf = /* @__PURE__ */ i.makeMessageType(
10917
10917
  "streamlayer.sdkSettings.client.DeepLinkData",
@@ -10952,7 +10952,7 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
10952
10952
  T: 9
10953
10953
  /* ScalarType.STRING */
10954
10954
  },
10955
- { no: 7, name: "group_type", kind: "enum", T: i.getEnumType(Ky) }
10955
+ { no: 7, name: "group_type", kind: "enum", T: i.getEnumType($y) }
10956
10956
  ]
10957
10957
  ), yf = /* @__PURE__ */ i.makeMessageType(
10958
10958
  "streamlayer.sdkSettings.client.GenerateDeepLinkRequest",
@@ -11414,10 +11414,10 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
11414
11414
  }
11415
11415
  ],
11416
11416
  { localName: "InviteRequest_InviteReferral" }
11417
- ), $f = /* @__PURE__ */ i.makeMessageType(
11417
+ ), Kf = /* @__PURE__ */ i.makeMessageType(
11418
11418
  "streamlayer.users.InviteResponse",
11419
11419
  []
11420
- ), Kf = /* @__PURE__ */ i.makeMessageType(
11420
+ ), $f = /* @__PURE__ */ i.makeMessageType(
11421
11421
  "streamlayer.users.BypassAuthRequest",
11422
11422
  () => [
11423
11423
  {
@@ -11559,7 +11559,7 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
11559
11559
  invite: {
11560
11560
  name: "Invite",
11561
11561
  I: Yf,
11562
- O: $f,
11562
+ O: Kf,
11563
11563
  kind: R.Unary
11564
11564
  },
11565
11565
  /**
@@ -11567,7 +11567,7 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
11567
11567
  */
11568
11568
  bypassAuth: {
11569
11569
  name: "BypassAuth",
11570
- I: Kf,
11570
+ I: $f,
11571
11571
  O: Wf,
11572
11572
  kind: R.Unary
11573
11573
  },
@@ -11625,8 +11625,8 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
11625
11625
  */
11626
11626
  get: {
11627
11627
  name: "Get",
11628
- I: $u,
11629
- O: Ku,
11628
+ I: Ku,
11629
+ O: $u,
11630
11630
  kind: R.Unary
11631
11631
  },
11632
11632
  /**
@@ -12117,7 +12117,7 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
12117
12117
  /* ScalarType.STRING */
12118
12118
  },
12119
12119
  { no: 3, name: "pagination", kind: "message", T: qn },
12120
- { no: 4, name: "sort", kind: "message", T: $m }
12120
+ { no: 4, name: "sort", kind: "message", T: Km }
12121
12121
  ]
12122
12122
  ), yg = /* @__PURE__ */ i.makeMessageType(
12123
12123
  "streamlayer.interactive.leaderboard.EventLeaderboardResponse",
@@ -12309,7 +12309,7 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
12309
12309
  ), zo = /* @__PURE__ */ i.makeMessageType(
12310
12310
  "streamlayer.analytics.v2.streaming.SendResponse",
12311
12311
  () => [
12312
- { no: 1, name: "result", kind: "enum", T: i.getEnumType(Kl) }
12312
+ { no: 1, name: "result", kind: "enum", T: i.getEnumType($l) }
12313
12313
  ]
12314
12314
  ), Ng = /* @__PURE__ */ i.makeMessageType(
12315
12315
  "streamlayer.analytics.v2.streaming.SendExtra",
@@ -12318,15 +12318,15 @@ const vo = 1, Ao = 2, wo = 3, ia = 4, Ro = (e, t) => {
12318
12318
  "streamlayer.analytics.v2.streaming.CommonData",
12319
12319
  () => [
12320
12320
  { no: 1, name: "event_id", kind: "scalar", T: 4, opt: !0 },
12321
- { no: 2, name: "category", kind: "enum", T: i.getEnumType(le), opt: !0 },
12322
- { no: 3, name: "kind", kind: "enum", T: i.getEnumType(oe), opt: !0 },
12321
+ { no: 2, name: "category", kind: "enum", T: i.getEnumType(me), opt: !0 },
12322
+ { no: 3, name: "kind", kind: "enum", T: i.getEnumType(re), opt: !0 },
12323
12323
  { no: 4, name: "screen_orientation", kind: "enum", T: i.getEnumType(Ca), opt: !0 },
12324
12324
  { no: 5, name: "session_id", kind: "scalar", T: 9, opt: !0 },
12325
12325
  { no: 6, name: "overlay_session_id", kind: "scalar", T: 9, opt: !0 },
12326
12326
  { no: 7, name: "topic_id", kind: "scalar", T: 9, opt: !0 },
12327
- { no: 8, name: "topic_type", kind: "enum", T: i.getEnumType(de), opt: !0 },
12327
+ { no: 8, name: "topic_type", kind: "enum", T: i.getEnumType(se), opt: !0 },
12328
12328
  { no: 9, name: "parent_topic_id", kind: "scalar", T: 9, opt: !0 },
12329
- { no: 10, name: "parent_topic_type", kind: "enum", T: i.getEnumType(de), opt: !0 },
12329
+ { no: 10, name: "parent_topic_type", kind: "enum", T: i.getEnumType(se), opt: !0 },
12330
12330
  { no: 11, name: "participants_count", kind: "scalar", T: 13, opt: !0 },
12331
12331
  { no: 12, name: "route_map", kind: "scalar", T: 9, opt: !0 },
12332
12332
  { no: 13, name: "track_timestamp", kind: "scalar", T: 4, opt: !0 },
@@ -12557,17 +12557,17 @@ te.env = {};
12557
12557
  te.argv = [];
12558
12558
  te.version = "";
12559
12559
  te.versions = {};
12560
- function Ke() {
12560
+ function $e() {
12561
12561
  }
12562
- te.on = Ke;
12563
- te.addListener = Ke;
12564
- te.once = Ke;
12565
- te.off = Ke;
12566
- te.removeListener = Ke;
12567
- te.removeAllListeners = Ke;
12568
- te.emit = Ke;
12569
- te.prependListener = Ke;
12570
- te.prependOnceListener = Ke;
12562
+ te.on = $e;
12563
+ te.addListener = $e;
12564
+ te.once = $e;
12565
+ te.off = $e;
12566
+ te.removeListener = $e;
12567
+ te.removeAllListeners = $e;
12568
+ te.emit = $e;
12569
+ te.prependListener = $e;
12570
+ te.prependOnceListener = $e;
12571
12571
  te.listeners = function(e) {
12572
12572
  return [];
12573
12573
  };
@@ -12601,7 +12601,7 @@ class Yg extends Event {
12601
12601
  }
12602
12602
  }
12603
12603
  const jg = We("event-bus");
12604
- class $g {
12604
+ class Kg {
12605
12605
  constructor(t = "sl-event-bus") {
12606
12606
  p(this, "name");
12607
12607
  p(this, "listeners");
@@ -12625,10 +12625,10 @@ class $g {
12625
12625
  window.removeEventListener(this.name, t), this.listeners.delete(t);
12626
12626
  }
12627
12627
  }
12628
- class Kg {
12628
+ class $g {
12629
12629
  }
12630
12630
  window.slStore = /* @__PURE__ */ Object.create(null);
12631
- class $n {
12631
+ class Kn {
12632
12632
  constructor(t, n) {
12633
12633
  /**
12634
12634
  * store instance (nanostores)
@@ -12648,7 +12648,7 @@ const Wg = (e) => {
12648
12648
  const t = Object.keys(e);
12649
12649
  return ep(t.map((n) => e[n].getStore()), (...n) => Object.fromEntries(t.map((a, s) => [a, n[s]])));
12650
12650
  };
12651
- class pt extends $n {
12651
+ class pt extends Kn {
12652
12652
  constructor() {
12653
12653
  super(...arguments);
12654
12654
  p(this, "getValues", () => this.getStore().get());
@@ -12669,10 +12669,10 @@ const zg = {
12669
12669
  [Y.PUBLIC_CHAT]: "publicChat",
12670
12670
  [Y.TWITTER]: "twitter"
12671
12671
  };
12672
- var Kt;
12672
+ var $t;
12673
12673
  (function(e) {
12674
12674
  e.Ready = "ready", e.Suspended = "suspended";
12675
- })(Kt || (Kt = {}));
12675
+ })($t || ($t = {}));
12676
12676
  class Qi {
12677
12677
  constructor({ settings: t, ...n }, a) {
12678
12678
  p(this, "status");
@@ -12682,10 +12682,10 @@ class Qi {
12682
12682
  p(this, "listeners", /* @__PURE__ */ new Set());
12683
12683
  p(this, "settingsKey");
12684
12684
  p(this, "enable", () => {
12685
- this.status.set(Kt.Ready);
12685
+ this.status.set($t.Ready);
12686
12686
  });
12687
12687
  p(this, "disable", () => {
12688
- this.status.set(Kt.Suspended);
12688
+ this.status.set($t.Suspended);
12689
12689
  });
12690
12690
  p(this, "setFeatureConfig", ({ settings: t, ...n }) => {
12691
12691
  var s;
@@ -12704,7 +12704,7 @@ class Qi {
12704
12704
  p(this, "update", (t, n) => {
12705
12705
  this.source === Ve.STREAM && n === Ve.ORGANIZATION || (this.setFeatureConfig(t), this.source = n);
12706
12706
  });
12707
- this.settingsKey = zg[n.type], this.status = at(Kt.Suspended), this.config = new pt(Ee(n), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && (t == null ? void 0 : t.overlaySettings.case) === this.settingsKey ? this.settings = new pt(Ee(t.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new pt(Ee({}), `feature:settings:${this.settingsKey}`), this.source = a;
12707
+ this.settingsKey = zg[n.type], this.status = at($t.Suspended), this.config = new pt(Ee(n), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && (t == null ? void 0 : t.overlaySettings.case) === this.settingsKey ? this.settings = new pt(Ee(t.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new pt(Ee({}), `feature:settings:${this.settingsKey}`), this.source = a;
12708
12708
  }
12709
12709
  get featureConfig() {
12710
12710
  return this.config.getStore();
@@ -12724,7 +12724,7 @@ class Qi {
12724
12724
  }
12725
12725
  }
12726
12726
  }
12727
- class be extends $n {
12727
+ class be extends Kn {
12728
12728
  constructor() {
12729
12729
  super(...arguments);
12730
12730
  p(this, "getValue", () => this.getStore().get());
@@ -12742,8 +12742,8 @@ class be extends $n {
12742
12742
  return this.getStore().get();
12743
12743
  }
12744
12744
  }
12745
- const re = (e) => at(e);
12746
- class Ue extends $n {
12745
+ const ie = (e) => at(e);
12746
+ class Ue extends Kn {
12747
12747
  constructor(n, a, s) {
12748
12748
  super(n, `api:${a}`);
12749
12749
  p(this, "atomStore");
@@ -12775,7 +12775,7 @@ class Ue extends $n {
12775
12775
  throw new Error("not implemented");
12776
12776
  }
12777
12777
  }
12778
- const Te = new $g();
12778
+ const pe = new Kg();
12779
12779
  async function* Jg(e, t) {
12780
12780
  for await (const n of t) {
12781
12781
  e.response.message = n, e.received_at = Date.now(), e.id = Yi++;
@@ -12986,7 +12986,7 @@ class Zg {
12986
12986
  reconnectMaxDelay: s.reconnectMaxDelay ?? 3e4,
12987
12987
  reconnectMaxAttempts: s.reconnectMaxAttempts ?? 10,
12988
12988
  withStore: s.withStore ?? !1
12989
- }, this.headers = t, this.listeners = /* @__PURE__ */ new Map(), this.params = a, this.method = n, s.withStore && (this.store = new be(re(null), `subscription:${s.name}:store`)), "subscribe" in a && typeof a.subscribe == "function" && (this.paramsListener = a.subscribe((r) => {
12989
+ }, this.headers = t, this.listeners = /* @__PURE__ */ new Map(), this.params = a, this.method = n, s.withStore && (this.store = new be(ie(null), `subscription:${s.name}:store`)), "subscribe" in a && typeof a.subscribe == "function" && (this.paramsListener = a.subscribe((r) => {
12990
12990
  this.state.getValue("status") === Ie.Connected && (this.addStateLog(`params updated, reconnect => ${JSON.stringify(r)}`), this.reconnect());
12991
12991
  })), this.updateState(Ie.Ready);
12992
12992
  }
@@ -13275,7 +13275,7 @@ var qe;
13275
13275
  e.DISABLED = "disabled", e.INITIALIZATION = "initialization", e.READY = "ready", e.FAILED = "failed", e.SUSPENDED = "suspended";
13276
13276
  })(qe || (qe = {}));
13277
13277
  const pk = (e) => {
13278
- const t = new It(), n = new be(re(t.getExternalToken()), "userKey"), a = new be(re(t.getToken()), "userToken"), s = new Ue(ik(a.getStore(), e), "user", ({ data: r, error: c, loading: l }, m) => {
13278
+ const t = new It(), n = new be(ie(t.getExternalToken()), "userKey"), a = new be(ie(t.getToken()), "userToken"), s = new Ue(ik(a.getStore(), e), "user", ({ data: r, error: c, loading: l }, m) => {
13279
13279
  var u;
13280
13280
  if (!c)
13281
13281
  return (u = r == null ? void 0 : r.data) != null && u.id ? r.data.id : l === !1 ? void 0 : m;
@@ -13287,7 +13287,7 @@ const pk = (e) => {
13287
13287
  userSettings: o
13288
13288
  };
13289
13289
  }, Tk = (e) => {
13290
- const t = new be(re(void 0), "providerStreamId"), n = new Ue(sk(t.getStore(), e), "slStreamId", (o) => o == null ? void 0 : o.data), a = new Ue(ok(n.getAtomStore(), e), "streamSettings"), s = new Ue(rk(n.getAtomStore(), e), "streamSettings");
13290
+ const t = new be(ie(void 0), "providerStreamId"), n = new Ue(sk(t.getStore(), e), "slStreamId", (o) => o == null ? void 0 : o.data), a = new Ue(ok(n.getAtomStore(), e), "streamSettings"), s = new Ue(rk(n.getAtomStore(), e), "streamSettings");
13291
13291
  return n.getAtomStore().listen((o) => {
13292
13292
  (o === "" || o === void 0) && (a.getStore().mutate(void 0), s.getStore().mutate(void 0));
13293
13293
  }), {
@@ -13297,7 +13297,7 @@ const pk = (e) => {
13297
13297
  streamSummary: s
13298
13298
  };
13299
13299
  }, yk = (e) => {
13300
- const t = new be(re(void 0), "enabled"), n = new be(re(qe.DISABLED), "status"), a = new Ue(mk(t.getStore(), e), "organizationSettings", (c) => {
13300
+ const t = new be(ie(void 0), "enabled"), n = new be(ie(qe.DISABLED), "status"), a = new Ue(mk(t.getStore(), e), "organizationSettings", (c) => {
13301
13301
  var l;
13302
13302
  return (l = c == null ? void 0 : c.data) == null ? void 0 : l.id;
13303
13303
  }), s = new Ue(uk(a.getAtomStore(), e), "organizationAdvertising"), o = pk(e), r = Tk(e);
@@ -13316,7 +13316,7 @@ const pk = (e) => {
13316
13316
  organizationAdvertising: s
13317
13317
  };
13318
13318
  };
13319
- class fk extends $n {
13319
+ class fk extends Kn {
13320
13320
  constructor(n) {
13321
13321
  const a = yk(n), s = Wg(a);
13322
13322
  super(s, "core");
@@ -13348,7 +13348,7 @@ const gk = (e, t, n) => {
13348
13348
  }, kk = (e) => {
13349
13349
  const { client: t } = e.createPromiseClient(Gi, { method: "list" });
13350
13350
  return (n) => t.list(n);
13351
- }, $i = (e) => {
13351
+ }, Ki = (e) => {
13352
13352
  const { client: t } = e.createPromiseClient(Gi, { method: "summary" });
13353
13353
  return (n) => t.summary(n);
13354
13354
  }, hk = (e, t) => {
@@ -13417,7 +13417,7 @@ const gk = (e, t, n) => {
13417
13417
  return (s = (a = (await n.questionByUser({
13418
13418
  questionId: e
13419
13419
  })).data) == null ? void 0 : a.attributes) == null ? void 0 : s.question;
13420
- }, $a = (e, t) => {
13420
+ }, Ka = (e, t) => {
13421
13421
  const { client: n, queryKey: a } = t.createPromiseClient(Ne, { method: "questionByUser", params: [e] });
13422
13422
  return t.nanoquery.createFetcherStore(a, {
13423
13423
  fetcher: async (s, o, r) => {
@@ -13428,7 +13428,7 @@ const gk = (e, t, n) => {
13428
13428
  },
13429
13429
  dedupeTime: 1e3 * 60 * 5
13430
13430
  });
13431
- }, Ki = async (e, t) => {
13431
+ }, $i = async (e, t) => {
13432
13432
  var l;
13433
13433
  if (!e)
13434
13434
  return;
@@ -13449,7 +13449,7 @@ const gk = (e, t, n) => {
13449
13449
  eventId: c,
13450
13450
  filter: {
13451
13451
  types: l === Tt.ALLOWED ? [] : [C.FACTOID, C.PROMOTION, C.TWEET],
13452
- statuses: [ue.ACTIVE, ue.RESOLVED]
13452
+ statuses: [de.ACTIVE, de.RESOLVED]
13453
13453
  }
13454
13454
  })).data : [],
13455
13455
  dedupeTime: 0,
@@ -13469,7 +13469,7 @@ const gk = (e, t, n) => {
13469
13469
  eventId: r,
13470
13470
  filter: {
13471
13471
  types: [C.PROMOTION],
13472
- statuses: [ue.ACTIVE]
13472
+ statuses: [de.ACTIVE]
13473
13473
  },
13474
13474
  pagination: {
13475
13475
  page: 0,
@@ -13477,7 +13477,7 @@ const gk = (e, t, n) => {
13477
13477
  }
13478
13478
  })).data) == null ? void 0 : l[0];
13479
13479
  if (c.type === "promotion")
13480
- return Ki(c.id, t);
13480
+ return $i(c.id, t);
13481
13481
  },
13482
13482
  dedupeTime: 0,
13483
13483
  refetchInterval: 0
@@ -13490,7 +13490,7 @@ const gk = (e, t, n) => {
13490
13490
  return;
13491
13491
  const c = (m = n.get().data) == null ? void 0 : m.find((d) => d.id === (r == null ? void 0 : r.questionId)), l = (u = r == null ? void 0 : r.question) == null ? void 0 : u.openedFrom;
13492
13492
  return c ? (c.openedFrom = l, c) : r.question;
13493
- }), s = co(a, (r) => r && r.type === "question" ? r.id : void 0), o = $a(s, e);
13493
+ }), s = co(a, (r) => r && r.type === "question" ? r.id : void 0), o = Ka(s, e);
13494
13494
  return { $store: a, $extendedStore: o, updateExtendedQuestion: (r) => {
13495
13495
  const c = o.get().data, l = (m, u) => {
13496
13496
  if (!m || !u)
@@ -13543,11 +13543,20 @@ const Rk = (e) => {
13543
13543
  }, Lk = (e, t, n) => {
13544
13544
  let a = !1;
13545
13545
  const s = n.transport, o = We("advertisement"), r = new wk(), c = Ee({}), l = vk(e, s), m = () => {
13546
+ var N, E, b;
13546
13547
  c.setKey("hasNotification", !1);
13548
+ const T = c.get(), f = (N = T.data) == null ? void 0 : N.question.id, _ = (b = (E = T.data) == null ? void 0 : E.promotion) == null ? void 0 : b.type;
13549
+ f && pe.emit("advertisement", {
13550
+ action: "notification-opened",
13551
+ payload: {
13552
+ id: f,
13553
+ type: _
13554
+ }
13555
+ });
13547
13556
  }, u = () => {
13548
13557
  var E, b, w, v;
13549
13558
  const T = c.get(), f = (E = T.data) == null ? void 0 : E.question.id, _ = (w = (b = T.data) == null ? void 0 : b.promotion) == null ? void 0 : w.type, N = (v = c.get()) == null ? void 0 : v.isOpened;
13550
- f && !N && (o.debug({ id: f }, "markAsViewed: %o"), r.setShowed(f), c.setKey("isOpened", !0), Te.emit("advertisement", {
13559
+ f && !N && (o.debug({ id: f }, "markAsViewed: %o"), r.setShowed(f), c.setKey("isOpened", !0), pe.emit("advertisement", {
13551
13560
  action: "opened",
13552
13561
  payload: {
13553
13562
  id: f,
@@ -13563,7 +13572,7 @@ const Rk = (e) => {
13563
13572
  hasNotification: ((_ = f == null ? void 0 : f.notification) == null ? void 0 : _.enabled) === Ua.NOTIFICATION_ENABLED,
13564
13573
  close: () => y(f.question.id),
13565
13574
  isViewed: !!r.isViewed(f.question.id)
13566
- }) : (c.setKey("loading", !0), Ki(T, s).then((N) => {
13575
+ }) : (c.setKey("loading", !0), $i(T, s).then((N) => {
13567
13576
  var E;
13568
13577
  return c.set({
13569
13578
  loading: !1,
@@ -13581,7 +13590,7 @@ const Rk = (e) => {
13581
13590
  };
13582
13591
  c.subscribe((T, f) => {
13583
13592
  var _, N, E, b;
13584
- T.data && !T.isOpened && Te.emit("advertisement", {
13593
+ T.data && !T.isOpened && pe.emit("advertisement", {
13585
13594
  action: "received",
13586
13595
  payload: {
13587
13596
  id: T.data.question.id,
@@ -13590,7 +13599,7 @@ const Rk = (e) => {
13590
13599
  isViewed: !!r.isViewed(T.data.question.id)
13591
13600
  },
13592
13601
  skipAnalytics: T.data.question.id === ((E = f == null ? void 0 : f.data) == null ? void 0 : E.question.id)
13593
- }), !(T != null && T.data) && (f != null && f.data) && Te.emit("advertisement", {
13602
+ }), !(T != null && T.data) && (f != null && f.data) && pe.emit("advertisement", {
13594
13603
  action: "closed",
13595
13604
  payload: {
13596
13605
  id: f.data.question.id,
@@ -13610,11 +13619,11 @@ const Rk = (e) => {
13610
13619
  }), t.addListener("promotion", (T) => {
13611
13620
  const f = Rk(T);
13612
13621
  if (f) {
13613
- if (f.question.status === ue.RESOLVED) {
13622
+ if (f.question.status === de.RESOLVED) {
13614
13623
  y(f.question.id), o.debug({ promotion: f }, "resolved: %o");
13615
13624
  return;
13616
13625
  }
13617
- if (f.question.status === ue.ACTIVE) {
13626
+ if (f.question.status === de.ACTIVE) {
13618
13627
  o.debug({ promotion: f }, "active: %o"), d(f.question.id, f);
13619
13628
  return;
13620
13629
  }
@@ -13688,7 +13697,7 @@ class Mk {
13688
13697
  p(this, "closeQuestion", (t) => {
13689
13698
  this.openedQuestionId.set(void 0), t && this.notifications.markAsViewed(this.getCurrentSessionId({ prefix: "notification", entity: t }));
13690
13699
  });
13691
- this.transport = t.transport, this.log = We("gamification-background"), this.slStreamId = t.stores.slStreamId.getAtomStore(), this.organizationId = t.stores.organizationSettings.getAtomStore(), this.userId = t.stores.user.getAtomStore(), this.moderationId = new be(re(void 0), "moderationId").getStore(), this.interactiveAllowed = new be(re(Tt.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new be(re(void 0), "openedQuestionId").getStore(), this.notifications = t.notifications, this.moderation = new Ue(Sk(this.slStreamId, t.transport), "gamification:moderation"), this.feedList = new Ue(Ok(this.slStreamId, this.interactiveAllowed, t.transport), "gamification:feedList"), this.activeQuestionId = _k(this.slStreamId, t.transport), this.openedQuestion = Ak(t.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((n) => {
13700
+ this.transport = t.transport, this.log = We("gamification-background"), this.slStreamId = t.stores.slStreamId.getAtomStore(), this.organizationId = t.stores.organizationSettings.getAtomStore(), this.userId = t.stores.user.getAtomStore(), this.moderationId = new be(ie(void 0), "moderationId").getStore(), this.interactiveAllowed = new be(ie(Tt.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new be(ie(void 0), "openedQuestionId").getStore(), this.notifications = t.notifications, this.moderation = new Ue(Sk(this.slStreamId, t.transport), "gamification:moderation"), this.feedList = new Ue(Ok(this.slStreamId, this.interactiveAllowed, t.transport), "gamification:feedList"), this.activeQuestionId = _k(this.slStreamId, t.transport), this.openedQuestion = Ak(t.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((n) => {
13692
13701
  this.log.debug({ item: n }, "received question"), n != null && n.questionId ? (this.questionSubscription = Nk(n.questionId, t.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (a) => {
13693
13702
  var s, o;
13694
13703
  this.openedQuestion.updateExtendedQuestion((o = (s = a.data) == null ? void 0 : s.attributes) == null ? void 0 : o.question);
@@ -13697,7 +13706,7 @@ class Mk {
13697
13706
  var o, r, c, l;
13698
13707
  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;
13699
13708
  if (!(!s || s.type === C.PROMOTION)) {
13700
- if (s.status === ue.RESOLVED) {
13709
+ if (s.status === de.RESOLVED) {
13701
13710
  a === s.id && this.activeQuestionId.mutate(void 0);
13702
13711
  return;
13703
13712
  }
@@ -13795,7 +13804,7 @@ class Pk {
13795
13804
  this.logger.debug({ notificationId: t }, "active queue tick skipped, notification not exist");
13796
13805
  return;
13797
13806
  }
13798
- Te.emit("notification", {
13807
+ pe.emit("notification", {
13799
13808
  action: "received",
13800
13809
  payload: {
13801
13810
  questionId: n.data.questionId,
@@ -13820,7 +13829,7 @@ class Pk {
13820
13829
  const r = new Map(this.notificationsList.get());
13821
13830
  r.delete(t), this.notificationsList.set(r);
13822
13831
  const c = this.timeouts.get(t);
13823
- c !== void 0 && (clearTimeout(c), this.timeouts.delete(t)), this.logger.debug({ notificationId: t }, "notification hidden"), s.hiding && Te.emit("notification", {
13832
+ c !== void 0 && (clearTimeout(c), this.timeouts.delete(t)), this.logger.debug({ notificationId: t }, "notification hidden"), s.hiding && pe.emit("notification", {
13824
13833
  action: "closed",
13825
13834
  payload: {
13826
13835
  questionId: s.data.questionId,
@@ -13835,7 +13844,7 @@ class Pk {
13835
13844
  p(this, "drain", () => {
13836
13845
  this.store.clear(), this.timeouts.clear(), this.waitingQueue.clear(), this.activeQueue.clear(), this.notificationsList.off(), this.notificationsList.set(/* @__PURE__ */ new Map());
13837
13846
  });
13838
- this.options = t, this.logger = We("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notificationsList = re(/* @__PURE__ */ new Map());
13847
+ this.options = t, this.logger = We("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notificationsList = ie(/* @__PURE__ */ new Map());
13839
13848
  }
13840
13849
  }
13841
13850
  var Mn;
@@ -13868,7 +13877,7 @@ class Ck {
13868
13877
  if (t.data && t.emitEvent) {
13869
13878
  const n = t.action;
13870
13879
  t.action = (...a) => {
13871
- n && n(...a), Te.emit("notification", {
13880
+ n && n(...a), pe.emit("notification", {
13872
13881
  action: "opened",
13873
13882
  payload: {
13874
13883
  questionId: t.data.questionId,
@@ -13952,7 +13961,7 @@ const Vk = {
13952
13961
  pageSize: 10
13953
13962
  }, qk = (e, t, n, a, s) => {
13954
13963
  let o = 0;
13955
- const r = re({ pageSize: Vk.pageSize, page: 0 }), c = Ee({
13964
+ const r = ie({ pageSize: Vk.pageSize, page: 0 }), c = Ee({
13956
13965
  data: [],
13957
13966
  key: Date.now(),
13958
13967
  hasMore: !0,
@@ -13999,7 +14008,7 @@ class xk extends Bt {
13999
14008
  p(this, "del", this.remove);
14000
14009
  }
14001
14010
  }
14002
- const er = "sldl", Kn = "sldl_uid", zi = "sldl_eid", Ji = "sldl_e_eid", Hk = /* @__PURE__ */ new Set([Kn, zi, Ji]), tr = (e) => {
14011
+ const er = "sldl", $n = "sldl_uid", zi = "sldl_eid", Ji = "sldl_e_eid", Hk = /* @__PURE__ */ new Set([$n, zi, Ji]), tr = (e) => {
14003
14012
  const t = {}, n = {};
14004
14013
  for (const [a, s] of e)
14005
14014
  Hk.has(a) ? t[a] = s : n[a] = s;
@@ -14065,7 +14074,7 @@ const er = "sldl", Kn = "sldl_uid", zi = "sldl_eid", Ji = "sldl_e_eid", Hk = /*
14065
14074
  onDeepLinkHandlers: /* @__PURE__ */ new Set()
14066
14075
  }, e.sdk.getInviter = () => {
14067
14076
  const { data: c, used: l } = e.deepLink.getDeepLinkData();
14068
- return l ? c == null ? void 0 : c[Kn] : void 0;
14077
+ return l ? c == null ? void 0 : c[$n] : void 0;
14069
14078
  }, e.sdk.inviteDisplayed = () => {
14070
14079
  e.deepLink.$store.getStore().set({}), e.deepLink.$store.getStore().off(), a.del("sl-deep-link-store");
14071
14080
  }, e.deepLink.$store.subscribe((c) => a.set("sl-deep-link-store", JSON.stringify(c))), e.sdk.addDeepLinkHandler = (c) => {
@@ -14083,8 +14092,8 @@ const er = "sldl", Kn = "sldl_uid", zi = "sldl_eid", Ji = "sldl_e_eid", Hk = /*
14083
14092
  }
14084
14093
  };
14085
14094
  Yk(e.deepLink.$store, r), n();
14086
- }, $k = We("bypass");
14087
- class Kk extends Kg {
14095
+ }, Kk = We("bypass");
14096
+ class $k extends $g {
14088
14097
  constructor(n, a, s) {
14089
14098
  super();
14090
14099
  p(this, "$coreStore");
@@ -14104,8 +14113,8 @@ class Kk extends Kg {
14104
14113
  p(this, "login", async (n, a) => {
14105
14114
  var u, d, y;
14106
14115
  this.$coreStore.getValues().userKey.setValue(a);
14107
- const { used: s, data: o } = this.deepLink.getDeepLinkData(), r = s ? "" : o == null ? void 0 : o[Kn];
14108
- $k.debug({ inviterKey: r }, "login with inviterKey");
14116
+ const { used: s, data: o } = this.deepLink.getDeepLinkData(), r = s ? "" : o == null ? void 0 : o[$n];
14117
+ Kk.debug({ inviterKey: r }, "login with inviterKey");
14109
14118
  const c = await this.bypassLogin({
14110
14119
  schema: n,
14111
14120
  userKey: a,
@@ -14177,7 +14186,7 @@ class Kk extends Kg {
14177
14186
  }
14178
14187
  }
14179
14188
  const Ht = new It(), Wk = (e, t, n) => {
14180
- e.auth = new Kk(e.store, e.transport, e.deepLink), e.stores.status.listen((a) => {
14189
+ e.auth = new $k(e.store, e.transport, e.deepLink), e.stores.status.listen((a) => {
14181
14190
  a === qe.READY && e.auth.reLogin();
14182
14191
  }), e.sdk.userId = e.stores.user.getAtomStore, e.sdk.authorizationBypass = async (a, s) => {
14183
14192
  if (!(Ht.getSchema() === a && Ht.getExternalToken() === s && e.transport.getHeader("authorization")))
@@ -14265,6 +14274,14 @@ const Ht = new It(), Wk = (e, t, n) => {
14265
14274
  if (((m = c.slEventBus) == null ? void 0 : m.type) === "advertisement" && t.withAd) {
14266
14275
  const u = c.slEventBus, { hasNotification: d, id: y, isViewed: T } = u.payload;
14267
14276
  switch (u.action) {
14277
+ case "notification-opened":
14278
+ e.sdk.uiState.set({
14279
+ promotionBanner: !0,
14280
+ promotionNotification: !1,
14281
+ promotionOverlay: !0,
14282
+ promotionSidebar: !0
14283
+ });
14284
+ break;
14268
14285
  case "received":
14269
14286
  if (e.sdk.closeFeature(), a({
14270
14287
  stage: "activate",
@@ -14303,7 +14320,7 @@ const Ht = new It(), Wk = (e, t, n) => {
14303
14320
  break;
14304
14321
  }
14305
14322
  }
14306
- }, o = Te.listen(s), r = e.activeFeature.subscribe((c) => {
14323
+ }, o = pe.listen(s), r = e.activeFeature.subscribe((c) => {
14307
14324
  c ? e.ui.enableApp() : e.ui.disableApp();
14308
14325
  });
14309
14326
  return () => {
@@ -14373,7 +14390,7 @@ const Ht = new It(), Wk = (e, t, n) => {
14373
14390
  return Hn(s, () => eh(e, [t, n]).subscribe(async ({ data: o, error: r, loading: c }) => {
14374
14391
  var T;
14375
14392
  const l = r ? "https://masters.com" : o == null ? void 0 : o.url, m = a.get() || "", u = t.get() || "", d = n.get() || "", y = {
14376
- [Kn]: m,
14393
+ [$n]: m,
14377
14394
  [zi]: u,
14378
14395
  [Ji]: d
14379
14396
  };
@@ -14453,7 +14470,7 @@ const ah = (e, t, n, a) => {
14453
14470
  }
14454
14471
  }, sh = (e, t, n, a) => {
14455
14472
  let s = !1;
14456
- const o = new Wi(), r = re(ae.Unset);
14473
+ const o = new Wi(), r = ie(ae.Unset);
14457
14474
  r.subscribe((l) => {
14458
14475
  l !== ae.Unset && (l === ae.Optional || l === ae.Required ? s === !1 && (ah(e, t, a, o), s = !0) : e.onboardingProcessed.set(!0), l === ae.Completed && t.activeQuestionId.invalidate(), o.setOnboardingInstantOpen({
14459
14476
  userId: t.userId.get() || "",
@@ -14475,7 +14492,7 @@ const ah = (e, t, n, a) => {
14475
14492
  organizationId: t.organizationId.get() || "",
14476
14493
  userId: t.userId.get() || "",
14477
14494
  eventId: l
14478
- }, ae.Completed), Te.emit("poll", {
14495
+ }, ae.Completed), pe.emit("poll", {
14479
14496
  action: "onboardingPassed",
14480
14497
  payload: {}
14481
14498
  }), e.openFeature();
@@ -14484,7 +14501,7 @@ const ah = (e, t, n, a) => {
14484
14501
  }
14485
14502
  } };
14486
14503
  }, oh = (e, t, n, a) => {
14487
- const s = Ee(void 0), o = $i(a), r = async () => {
14504
+ const s = Ee(void 0), o = Ki(a), r = async () => {
14488
14505
  var T, f;
14489
14506
  const l = e.get(), m = t.get(), u = (T = n.getStore().get().data) == null ? void 0 : T.map((_) => _.slId);
14490
14507
  if (!u)
@@ -14506,7 +14523,7 @@ const ah = (e, t, n, a) => {
14506
14523
  }), { $store: s, invalidate: c };
14507
14524
  }, rh = async (e, t, n, a, s) => {
14508
14525
  var u, d, y;
14509
- const o = $i(s), r = e.get(), c = t.get(), l = ((u = n.getStore().get().data) == null ? void 0 : u.map((T) => T.slId)) || [], m = {
14526
+ 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 = {
14510
14527
  eventId: r,
14511
14528
  userId: a,
14512
14529
  usersIds: [...l, c]
@@ -14567,18 +14584,18 @@ class ch extends Qi {
14567
14584
  if (!a || !(s != null && s.attributes))
14568
14585
  return;
14569
14586
  const { status: o, type: r, id: c, answers: l } = a;
14570
- if (o === ue.RESOLVED && r === C.PREDICTION) {
14587
+ if (o === de.RESOLVED && r === C.PREDICTION) {
14571
14588
  const v = this.background.getCurrentSessionId({
14572
14589
  prefix: `notification-id:${c}`
14573
14590
  }), A = [...this.feedList.getValues().data || []], L = A.findIndex((X) => X.id === c), O = A[L];
14574
14591
  let U = (_ = (f = (T = O == null ? void 0 : O.attributes) == null ? void 0 : T.attributes) == null ? void 0 : f.value) == null ? void 0 : _.answerId;
14575
- const $ = $a(c, this.transport), ne = $.subscribe(() => {
14592
+ const K = Ka(c, this.transport), ne = K.subscribe(() => {
14576
14593
  });
14577
- await $.get().promise;
14578
- let K = $.get().data;
14579
- K || (K = await Ik(c, this.transport)), ne(), window.requestAnimationFrame(() => {
14580
- $.invalidate();
14581
- }), U || (U = (N = K == null ? void 0 : K.answers.find(({ youVoted: X }) => X)) == null ? void 0 : N.id);
14594
+ await K.get().promise;
14595
+ let $ = K.get().data;
14596
+ $ || ($ = await Ik(c, this.transport)), ne(), window.requestAnimationFrame(() => {
14597
+ K.invalidate();
14598
+ }), U || (U = (N = $ == null ? void 0 : $.answers.find(({ youVoted: X }) => X)) == null ? void 0 : N.id);
14582
14599
  const W = l.find(({ correct: X }) => X), B = U ? l.find(({ id: X }) => X === U) : void 0, V = !!(B != null && B.correct);
14583
14600
  if (O && ((b = (E = A[L]) == null ? void 0 : E.attributes) == null ? void 0 : b.attributes.case) === "question") {
14584
14601
  try {
@@ -14607,7 +14624,7 @@ class ch extends Qi {
14607
14624
  },
14608
14625
  correctAnswerTitle: W == null ? void 0 : W.text,
14609
14626
  correct: !!V,
14610
- predictionResult: o === ue.RESOLVED,
14627
+ predictionResult: o === de.RESOLVED,
14611
14628
  questionTitle: a == null ? void 0 : a.subject
14612
14629
  }
14613
14630
  }
@@ -14616,7 +14633,7 @@ class ch extends Qi {
14616
14633
  })), this.cancels.add(this.background.feedSubscription.addListener("feed-subscription-questions-list", (n) => {
14617
14634
  var r, c, l, m, u;
14618
14635
  const a = [...((r = this.feedList.getStore().value) == null ? void 0 : r.data) || []], s = (l = (c = n.data) == null ? void 0 : c.attributes) == null ? void 0 : l.feedItem, o = a.findIndex((d) => d.id === (s == null ? void 0 : s.id));
14619
- if (s != null && s.attributes && s.attributes.attributes.case !== "promotion" && !(s.attributes.status !== ue.ACTIVE && s.attributes.status !== ue.RESOLVED)) {
14636
+ if (s != null && s.attributes && s.attributes.attributes.case !== "promotion" && !(s.attributes.status !== de.ACTIVE && s.attributes.status !== de.RESOLVED)) {
14620
14637
  if (o !== -1)
14621
14638
  if (s.attributes.attributes.case === "question" && ((m = a[o].attributes) == null ? void 0 : m.attributes.case) === "question") {
14622
14639
  const d = a[o];
@@ -14662,7 +14679,7 @@ class ch extends Qi {
14662
14679
  }
14663
14680
  });
14664
14681
  }
14665
- o === -1 && (a.unshift(s), Te.emit("poll", {
14682
+ o === -1 && (a.unshift(s), pe.emit("poll", {
14666
14683
  action: "received",
14667
14684
  payload: {
14668
14685
  questionId: s.id,
@@ -14677,7 +14694,7 @@ class ch extends Qi {
14677
14694
  this.background.feedSubscription.removeListener("feed-subscription-prediction-close"), this.background.feedSubscription.removeListener("feed-subscription-questions-list");
14678
14695
  });
14679
14696
  p(this, "submitAnswer", async (n, a) => {
14680
- const s = $a(n, this.transport), o = s.subscribe(() => {
14697
+ const s = Ka(n, this.transport), o = s.subscribe(() => {
14681
14698
  }), r = { ...s.get().data || {} }, c = () => {
14682
14699
  var y;
14683
14700
  const l = this.feedList.getValues().data;
@@ -14685,7 +14702,7 @@ class ch extends Qi {
14685
14702
  return;
14686
14703
  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;
14687
14704
  if (d) {
14688
- Te.emit("poll", {
14705
+ pe.emit("poll", {
14689
14706
  action: "voted",
14690
14707
  payload: {
14691
14708
  questionId: n,
@@ -14697,7 +14714,7 @@ class ch extends Qi {
14697
14714
  const f = T.answers.find((b) => b.correct === !0), _ = T.answers.findIndex((b) => b.id === a), N = T.answers[_], E = T.answers.every(({ percentageDecimal: b }, w) => b === (r == null ? void 0 : r.answers[w].percentageDecimal));
14698
14715
  l[m].attributes.attributes.value.answerId = a, l[m].attributes.attributes.value.openForVoting = !1, l[m].attributes.attributes.value.text = (N == null ? void 0 : N.text) || "", f && (l[m].attributes.attributes.value.status = f.id === a ? Qt.WON : Qt.LOST), this.feedList.getStore().mutate([...l]), T.answers[_].correct = (f == null ? void 0 : f.id) === a, T.answers[_].youVoted = !0, E && T.answers.forEach((b) => {
14699
14716
  b.percentageDecimal = 0;
14700
- }), (f == null ? void 0 : f.id) === a && (T.answers[_].pointsEarned = T.status === ue.RESOLVED ? 0 : f.points), s.mutate({ ...T });
14717
+ }), (f == null ? void 0 : f.id) === a && (T.answers[_].pointsEarned = T.status === de.RESOLVED ? 0 : f.points), s.mutate({ ...T });
14701
14718
  }
14702
14719
  this.submitAnswerTimeout && clearTimeout(this.submitAnswerTimeout), this.submitAnswerTimeout = setTimeout(() => {
14703
14720
  this.userSummary.invalidate();
@@ -14728,7 +14745,7 @@ class ch extends Qi {
14728
14745
  animateHiding: !1
14729
14746
  });
14730
14747
  let s = (o = a == null ? void 0 : a.attributes) == null ? void 0 : o.type;
14731
- return s || (s = (l = (c = (((r = this.feedList.getStore().value) == null ? void 0 : r.data) || []).find((m) => m.id === n)) == null ? void 0 : c.attributes) == null ? void 0 : l.type), Te.emit("poll", {
14748
+ return s || (s = (l = (c = (((r = this.feedList.getStore().value) == null ? void 0 : r.data) || []).find((m) => m.id === n)) == null ? void 0 : c.attributes) == null ? void 0 : l.type), pe.emit("poll", {
14732
14749
  action: "opened",
14733
14750
  payload: {
14734
14751
  questionId: n,
@@ -14779,7 +14796,7 @@ class ch extends Qi {
14779
14796
  p(this, "showInApp", (n) => {
14780
14797
  var s, o, r, c, l, m, u, d, y, T, f, _, N, E;
14781
14798
  const a = this.onboardingStatus.$store.get();
14782
- 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) !== ei.ON && n.data.question.status === ue.ACTIVE && !n.data.question.marketClosed) {
14799
+ 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) !== ei.ON && n.data.question.status === de.ACTIVE && !n.data.question.marketClosed) {
14783
14800
  if (ih.has(n.data.question.type))
14784
14801
  this.isInteractiveAllowed && this.notifications.add({
14785
14802
  type: et.QUESTION,
@@ -14872,7 +14889,7 @@ class ch extends Qi {
14872
14889
  }
14873
14890
  }
14874
14891
  });
14875
- this.background = new Mk(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 Wi(), this.feedList = this.background.feedList, this.friends = new Ue(hk(this.background.userId, s.transport), "gamification:friends"), this.currentUserId = this.background.userId, this.openedUser = re(void 0), this.onboardingProcessed = re(!1), this.leaderboardId = new be(re(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = sh(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 = nh(this.transport, this.background.slStreamId, s.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = oh(this.background.slStreamId, this.background.userId, this.friends, this.transport), this.leaderboardList = qk(this.transport, this.background.slStreamId, this.background.userId, this.friends), this.connect(), this.cancels.add(this.userSummary.$store.listen((o, r) => {
14892
+ this.background = new Mk(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 Wi(), this.feedList = this.background.feedList, this.friends = new Ue(hk(this.background.userId, s.transport), "gamification:friends"), this.currentUserId = this.background.userId, this.openedUser = ie(void 0), this.onboardingProcessed = ie(!1), this.leaderboardId = new be(ie(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = sh(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 = nh(this.transport, this.background.slStreamId, s.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = oh(this.background.slStreamId, this.background.userId, this.friends, this.transport), this.leaderboardList = qk(this.transport, this.background.slStreamId, this.background.userId, this.friends), this.connect(), this.cancels.add(this.userSummary.$store.listen((o, r) => {
14876
14893
  r != null && r.summary && (o != null && o.summary) && this.leaderboardList.invalidate();
14877
14894
  })), 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) => {
14878
14895
  (r === void 0 || o !== ae.Unset) && this.background.activeQuestionId.invalidate();
@@ -14894,7 +14911,7 @@ class mh extends Qi {
14894
14911
  }
14895
14912
  }
14896
14913
  const uh = (e, t, n) => e.type === Y.GAMES ? new ch(e, t, n) : new mh(e, t), dh = (e, t, n) => {
14897
- e.features = /* @__PURE__ */ new Map(), e.sdk.featuresList = new be(re(/* @__PURE__ */ new Set()), "features-list"), e.activeFeature = new be(re(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) => {
14914
+ e.features = /* @__PURE__ */ new Map(), e.sdk.featuresList = new be(ie(/* @__PURE__ */ new Set()), "features-list"), e.activeFeature = new be(ie(Y.UNSET), "activeFeature"), e.sdk.getFeatures = () => e.features, e.sdk.getFeature = (a) => e.features.get(a), e.sdk.getActiveFeature = () => e.activeFeature.getStore(), e.sdk.openFeature = (a) => {
14898
14915
  e.activeFeature.setValue(a);
14899
14916
  }, e.sdk.closeFeature = (a = !1) => {
14900
14917
  const s = e.activeFeature.getValue();
@@ -14967,7 +14984,7 @@ class ph {
14967
14984
  this.analytics.write("invitation", {
14968
14985
  common: {
14969
14986
  ...this.analytics.commonStore.getValues(),
14970
- kind: oe.INVITATION_ACCEPTED
14987
+ kind: re.INVITATION_ACCEPTED
14971
14988
  },
14972
14989
  category: Fa.GAMES,
14973
14990
  from: Ga.UNSET
@@ -14977,7 +14994,7 @@ class ph {
14977
14994
  this.analytics.write("invitation", {
14978
14995
  common: {
14979
14996
  ...this.analytics.commonStore.getValues(),
14980
- kind: oe.INVITATION_SENT
14997
+ kind: re.INVITATION_SENT
14981
14998
  },
14982
14999
  category: Fa.GAMES,
14983
15000
  from: t || Ga.UNSET
@@ -14993,7 +15010,7 @@ class ph {
14993
15010
  break;
14994
15011
  }
14995
15012
  };
14996
- return Te.listen(n);
15013
+ return pe.listen(n);
14997
15014
  });
14998
15015
  }
14999
15016
  }
@@ -15004,7 +15021,7 @@ class Th {
15004
15021
  this.analytics.write("interactions", {
15005
15022
  common: {
15006
15023
  ...this.analytics.commonStore.getValues(),
15007
- kind: oe.INTERACTIONS
15024
+ kind: re.INTERACTIONS
15008
15025
  },
15009
15026
  actionType: xa.TAP
15010
15027
  });
@@ -15013,7 +15030,7 @@ class Th {
15013
15030
  this.analytics.write("interactions", {
15014
15031
  common: {
15015
15032
  ...this.analytics.commonStore.getValues(),
15016
- kind: oe.INTERACTIONS
15033
+ kind: re.INTERACTIONS
15017
15034
  },
15018
15035
  actionType: xa.SCROLL
15019
15036
  });
@@ -15031,7 +15048,7 @@ class Th {
15031
15048
  break;
15032
15049
  }
15033
15050
  };
15034
- return Te.listen(n);
15051
+ return pe.listen(n);
15035
15052
  });
15036
15053
  }
15037
15054
  }
@@ -15051,9 +15068,9 @@ class fh {
15051
15068
  this.analytics.write("games", {
15052
15069
  common: {
15053
15070
  ...this.analytics.commonStore.getValues(),
15054
- kind: oe.POLLS_RECEIVED,
15071
+ kind: re.POLLS_RECEIVED,
15055
15072
  topicId: t,
15056
- topicType: de.POLLS_PROMOTION,
15073
+ topicType: se.POLLS_PROMOTION,
15057
15074
  topicSubType: n
15058
15075
  },
15059
15076
  pollOpenedFrom: _e.UNSET
@@ -15063,9 +15080,9 @@ class fh {
15063
15080
  this.analytics.write("games", {
15064
15081
  common: {
15065
15082
  ...this.analytics.commonStore.getValues(),
15066
- kind: oe.POLLS_OPENED,
15083
+ kind: re.POLLS_OPENED,
15067
15084
  topicId: t,
15068
- topicType: de.POLLS_PROMOTION,
15085
+ topicType: se.POLLS_PROMOTION,
15069
15086
  topicSubType: n
15070
15087
  },
15071
15088
  pollOpenedFrom: _e.UNSET
@@ -15076,7 +15093,8 @@ class fh {
15076
15093
  common: {
15077
15094
  ...this.analytics.commonStore.getValues(),
15078
15095
  topicId: t,
15079
- kind: oe.AD_VIDEO_PLAYED,
15096
+ kind: re.AD_VIDEO_PLAYED,
15097
+ topicType: se.POLLS_PROMOTION,
15080
15098
  topicSubType: n
15081
15099
  },
15082
15100
  pollOpenedFrom: _e.UNSET
@@ -15087,7 +15105,8 @@ class fh {
15087
15105
  common: {
15088
15106
  ...this.analytics.commonStore.getValues(),
15089
15107
  topicId: t,
15090
- kind: oe.AD_BUTTON_NAVIGATED,
15108
+ kind: re.AD_BUTTON_NAVIGATED,
15109
+ topicType: se.POLLS_PROMOTION,
15091
15110
  topicSubType: n
15092
15111
  },
15093
15112
  pollOpenedFrom: _e.UNSET
@@ -15098,7 +15117,8 @@ class fh {
15098
15117
  common: {
15099
15118
  ...this.analytics.commonStore.getValues(),
15100
15119
  topicId: t,
15101
- kind: oe.AD_BANNER_NAVIGATED,
15120
+ kind: re.AD_BANNER_NAVIGATED,
15121
+ topicType: se.POLLS_PROMOTION,
15102
15122
  topicSubType: n
15103
15123
  },
15104
15124
  pollOpenedFrom: _e.UNSET
@@ -15128,39 +15148,39 @@ class fh {
15128
15148
  }
15129
15149
  }
15130
15150
  };
15131
- return Te.listen(n);
15151
+ return pe.listen(n);
15132
15152
  });
15133
15153
  }
15134
15154
  }
15135
15155
  const Wt = {
15136
- [C.UNSET]: de.UNSET,
15137
- [C.FACTOID]: de.POLLS_INSIGHT,
15138
- [C.POLL]: de.POLLS_POLL,
15139
- [C.PREDICTION]: de.POLLS_PREDICTION,
15140
- [C.PROMOTION]: de.POLLS_PROMOTION,
15141
- [C.TRIVIA]: de.POLLS_TRIVIA,
15142
- [C.TWEET]: de.POLLS_TWITTER
15156
+ [C.UNSET]: se.UNSET,
15157
+ [C.FACTOID]: se.POLLS_INSIGHT,
15158
+ [C.POLL]: se.POLLS_POLL,
15159
+ [C.PREDICTION]: se.POLLS_PREDICTION,
15160
+ [C.PROMOTION]: se.POLLS_PROMOTION,
15161
+ [C.TRIVIA]: se.POLLS_TRIVIA,
15162
+ [C.TWEET]: se.POLLS_TWITTER
15143
15163
  };
15144
15164
  C.UNSET + "", Le.UNSET, C.FACTOID + "", Le.POLLS, C.POLL + "", Le.POLLS, C.PREDICTION + "", Le.POLLS, C.PROMOTION + "", Le.POLLS, C.TRIVIA + "", Le.POLLS, C.TWEET + "", Le.POLLS;
15145
15165
  const gh = {
15146
- [Y.UNSET]: le.UNSET,
15147
- [Y.INPLAY]: le.INPLAY,
15148
- [Y.MESSAGING]: le.MESSAGING,
15149
- [Y.STATISTICS]: le.STATS,
15150
- [Y.BETTING]: le.BETTING,
15151
- [Y.TWITTER]: le.TWITTER,
15152
- [Y.MERCHANDISE]: le.MERCHANDISE,
15153
- [Y.CONTESTS]: le.CONTESTS,
15154
- [Y.VOICE_CHAT]: le.CALLING,
15155
- [Y.TICKETS]: le.TICKETS,
15156
- [Y.WHOIS_WATCHING]: le.WHOISWATCHING,
15157
- [Y.PROFILE]: le.PROFILE,
15158
- [Y.GAMES]: le.POLLS,
15166
+ [Y.UNSET]: me.UNSET,
15167
+ [Y.INPLAY]: me.INPLAY,
15168
+ [Y.MESSAGING]: me.MESSAGING,
15169
+ [Y.STATISTICS]: me.STATS,
15170
+ [Y.BETTING]: me.BETTING,
15171
+ [Y.TWITTER]: me.TWITTER,
15172
+ [Y.MERCHANDISE]: me.MERCHANDISE,
15173
+ [Y.CONTESTS]: me.CONTESTS,
15174
+ [Y.VOICE_CHAT]: me.CALLING,
15175
+ [Y.TICKETS]: me.TICKETS,
15176
+ [Y.WHOIS_WATCHING]: me.WHOISWATCHING,
15177
+ [Y.PROFILE]: me.PROFILE,
15178
+ [Y.GAMES]: me.POLLS,
15159
15179
  // ??
15160
- [Y.GOLF_STATISTICS]: le.STATS,
15180
+ [Y.GOLF_STATISTICS]: me.STATS,
15161
15181
  // ??
15162
- [Y.HIGHLIGHTS]: le.HIGHLIGHTS,
15163
- [Y.PUBLIC_CHAT]: le.PUBLIC_CHAT
15182
+ [Y.HIGHLIGHTS]: me.HIGHLIGHTS,
15183
+ [Y.PUBLIC_CHAT]: me.PUBLIC_CHAT
15164
15184
  };
15165
15185
  class kh {
15166
15186
  constructor(t) {
@@ -15169,9 +15189,9 @@ class kh {
15169
15189
  this.analytics.write("notification", {
15170
15190
  common: {
15171
15191
  ...this.analytics.commonStore.getValues(),
15172
- kind: oe.NOTIFICATION_RECEIVED,
15192
+ kind: re.NOTIFICATION_RECEIVED,
15173
15193
  topicId: t,
15174
- topicType: n ? Wt[n] : de.UNSET
15194
+ topicType: n ? Wt[n] : se.UNSET
15175
15195
  },
15176
15196
  notificationKind: Le.POLLS,
15177
15197
  notificationType: Ha.IN_APP
@@ -15181,9 +15201,9 @@ class kh {
15181
15201
  this.analytics.write("notification", {
15182
15202
  common: {
15183
15203
  ...this.analytics.commonStore.getValues(),
15184
- kind: oe.NOTIFICATION_OPENED,
15204
+ kind: re.NOTIFICATION_OPENED,
15185
15205
  topicId: t,
15186
- topicType: n ? Wt[n] : de.UNSET
15206
+ topicType: n ? Wt[n] : se.UNSET
15187
15207
  },
15188
15208
  notificationKind: Le.POLLS,
15189
15209
  notificationType: Ha.IN_APP
@@ -15202,7 +15222,7 @@ class kh {
15202
15222
  break;
15203
15223
  }
15204
15224
  };
15205
- return Te.listen(n);
15225
+ return pe.listen(n);
15206
15226
  });
15207
15227
  }
15208
15228
  }
@@ -15214,9 +15234,9 @@ class hh {
15214
15234
  this.analytics.write("games", {
15215
15235
  common: {
15216
15236
  ...this.analytics.commonStore.getValues(),
15217
- kind: oe.POLLS_RECEIVED,
15237
+ kind: re.POLLS_RECEIVED,
15218
15238
  topicId: t,
15219
- topicType: n ? Wt[n] : de.UNSET
15239
+ topicType: n ? Wt[n] : se.UNSET
15220
15240
  },
15221
15241
  pollOpenedFrom: _e.UNSET
15222
15242
  });
@@ -15226,9 +15246,9 @@ class hh {
15226
15246
  this.analytics.write("games", {
15227
15247
  common: {
15228
15248
  ...this.analytics.commonStore.getValues(),
15229
- kind: oe.POLLS_OPENED,
15249
+ kind: re.POLLS_OPENED,
15230
15250
  topicId: t,
15231
- topicType: n ? Wt[n] : de.UNSET
15251
+ topicType: n ? Wt[n] : se.UNSET
15232
15252
  },
15233
15253
  pollOpenedFrom: a === "list" ? _e.PICK_HISTORY : _e.IN_APP
15234
15254
  });
@@ -15238,9 +15258,9 @@ class hh {
15238
15258
  this.analytics.write("games", {
15239
15259
  common: {
15240
15260
  ...this.analytics.commonStore.getValues(),
15241
- kind: oe.POLLS_VOTE,
15261
+ kind: re.POLLS_VOTE,
15242
15262
  topicId: t,
15243
- topicType: n ? Wt[n] : de.UNSET
15263
+ topicType: n ? Wt[n] : se.UNSET
15244
15264
  },
15245
15265
  pollOpenedFrom: _e.UNSET
15246
15266
  });
@@ -15250,7 +15270,7 @@ class hh {
15250
15270
  this.analytics.write("games", {
15251
15271
  common: {
15252
15272
  ...this.analytics.commonStore.getValues(),
15253
- kind: oe.GAMES_JOINED
15273
+ kind: re.GAMES_JOINED
15254
15274
  },
15255
15275
  pollOpenedFrom: _e.UNSET
15256
15276
  });
@@ -15260,7 +15280,7 @@ class hh {
15260
15280
  this.analytics.write("games", {
15261
15281
  common: {
15262
15282
  ...this.analytics.commonStore.getValues(),
15263
- kind: oe.POLLS_NAVIGATED
15283
+ kind: re.POLLS_NAVIGATED
15264
15284
  },
15265
15285
  pollOpenedFrom: _e.UNSET
15266
15286
  });
@@ -15287,13 +15307,13 @@ class hh {
15287
15307
  break;
15288
15308
  }
15289
15309
  };
15290
- return Te.listen(n);
15310
+ return pe.listen(n);
15291
15311
  });
15292
15312
  }
15293
15313
  }
15294
15314
  const Sh = ({ transport: e, $commonStore: t }) => {
15295
15315
  let n;
15296
- const a = re(!1), s = 5e3, { client: o, queryKey: r } = e.createPromiseClient(Bi, {
15316
+ const a = ie(!1), s = 5e3, { client: o, queryKey: r } = e.createPromiseClient(Bi, {
15297
15317
  method: "send",
15298
15318
  params: [a]
15299
15319
  }), c = e.nanoquery.createFetcherStore(r, {
@@ -15306,7 +15326,7 @@ const Sh = ({ transport: e, $commonStore: t }) => {
15306
15326
  value: {
15307
15327
  common: {
15308
15328
  ...d,
15309
- kind: oe.SESSION_HEARTBEAT
15329
+ kind: re.SESSION_HEARTBEAT
15310
15330
  }
15311
15331
  }
15312
15332
  }
@@ -15806,7 +15826,7 @@ var cc = As.exports, zn = {}, lc = {}, mc = function() {
15806
15826
  foo: {}
15807
15827
  }, Hh = Object, Qh = function() {
15808
15828
  return { __proto__: pa }.foo === pa.foo && !(pa instanceof Hh);
15809
- }, Yh = "Function.prototype.bind called on incompatible ", jh = Object.prototype.toString, $h = Math.max, Kh = "[object Function]", cr = function(e, t) {
15829
+ }, Yh = "Function.prototype.bind called on incompatible ", jh = Object.prototype.toString, Kh = Math.max, $h = "[object Function]", cr = function(e, t) {
15810
15830
  for (var n = [], a = 0; a < e.length; a += 1)
15811
15831
  n[a] = e[a];
15812
15832
  for (var s = 0; s < t.length; s += 1)
@@ -15822,7 +15842,7 @@ var cc = As.exports, zn = {}, lc = {}, mc = function() {
15822
15842
  return n;
15823
15843
  }, Jh = function(e) {
15824
15844
  var t = this;
15825
- if (typeof t != "function" || jh.apply(t) !== Kh)
15845
+ if (typeof t != "function" || jh.apply(t) !== $h)
15826
15846
  throw new TypeError(Yh + t);
15827
15847
  for (var n = Wh(arguments, 1), a, s = function() {
15828
15848
  if (this instanceof a) {
@@ -15836,7 +15856,7 @@ var cc = As.exports, zn = {}, lc = {}, mc = function() {
15836
15856
  e,
15837
15857
  cr(n, arguments)
15838
15858
  );
15839
- }, o = $h(0, t.length - n.length), r = [], c = 0; c < o; c++)
15859
+ }, o = Kh(0, t.length - n.length), r = [], c = 0; c < o; c++)
15840
15860
  r[c] = "$" + c;
15841
15861
  if (a = Function("binder", "return function (" + zh(r, ",") + "){ return binder.apply(this,arguments); }")(s), t.prototype) {
15842
15862
  var l = function() {
@@ -15868,14 +15888,14 @@ var ya = function() {
15868
15888
  return ya;
15869
15889
  }
15870
15890
  }
15871
- }() : ya, Et = xh(), lS = Qh(), se = Object.getPrototypeOf || (lS ? function(e) {
15891
+ }() : ya, Et = xh(), lS = Qh(), oe = Object.getPrototypeOf || (lS ? function(e) {
15872
15892
  return e.__proto__;
15873
- } : null), Nt = {}, mS = typeof Uint8Array > "u" || !se ? G : se(Uint8Array), ft = {
15893
+ } : null), Nt = {}, mS = typeof Uint8Array > "u" || !oe ? G : oe(Uint8Array), ft = {
15874
15894
  __proto__: null,
15875
15895
  "%AggregateError%": typeof AggregateError > "u" ? G : AggregateError,
15876
15896
  "%Array%": Array,
15877
15897
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? G : ArrayBuffer,
15878
- "%ArrayIteratorPrototype%": Et && se ? se([][Symbol.iterator]()) : G,
15898
+ "%ArrayIteratorPrototype%": Et && oe ? oe([][Symbol.iterator]()) : G,
15879
15899
  "%AsyncFromSyncIteratorPrototype%": G,
15880
15900
  "%AsyncFunction%": Nt,
15881
15901
  "%AsyncGenerator%": Nt,
@@ -15906,10 +15926,10 @@ var ya = function() {
15906
15926
  "%Int32Array%": typeof Int32Array > "u" ? G : Int32Array,
15907
15927
  "%isFinite%": isFinite,
15908
15928
  "%isNaN%": isNaN,
15909
- "%IteratorPrototype%": Et && se ? se(se([][Symbol.iterator]())) : G,
15929
+ "%IteratorPrototype%": Et && oe ? oe(oe([][Symbol.iterator]())) : G,
15910
15930
  "%JSON%": typeof JSON == "object" ? JSON : G,
15911
15931
  "%Map%": typeof Map > "u" ? G : Map,
15912
- "%MapIteratorPrototype%": typeof Map > "u" || !Et || !se ? G : se((/* @__PURE__ */ new Map())[Symbol.iterator]()),
15932
+ "%MapIteratorPrototype%": typeof Map > "u" || !Et || !oe ? G : oe((/* @__PURE__ */ new Map())[Symbol.iterator]()),
15913
15933
  "%Math%": Math,
15914
15934
  "%Number%": Number,
15915
15935
  "%Object%": Object,
@@ -15922,10 +15942,10 @@ var ya = function() {
15922
15942
  "%Reflect%": typeof Reflect > "u" ? G : Reflect,
15923
15943
  "%RegExp%": RegExp,
15924
15944
  "%Set%": typeof Set > "u" ? G : Set,
15925
- "%SetIteratorPrototype%": typeof Set > "u" || !Et || !se ? G : se((/* @__PURE__ */ new Set())[Symbol.iterator]()),
15945
+ "%SetIteratorPrototype%": typeof Set > "u" || !Et || !oe ? G : oe((/* @__PURE__ */ new Set())[Symbol.iterator]()),
15926
15946
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? G : SharedArrayBuffer,
15927
15947
  "%String%": String,
15928
- "%StringIteratorPrototype%": Et && se ? se(""[Symbol.iterator]()) : G,
15948
+ "%StringIteratorPrototype%": Et && oe ? oe(""[Symbol.iterator]()) : G,
15929
15949
  "%Symbol%": Et ? Symbol : G,
15930
15950
  "%SyntaxError%": Ut,
15931
15951
  "%ThrowTypeError%": cS,
@@ -15940,11 +15960,11 @@ var ya = function() {
15940
15960
  "%WeakRef%": typeof WeakRef > "u" ? G : WeakRef,
15941
15961
  "%WeakSet%": typeof WeakSet > "u" ? G : WeakSet
15942
15962
  };
15943
- if (se)
15963
+ if (oe)
15944
15964
  try {
15945
15965
  null.error;
15946
15966
  } catch (e) {
15947
- var uS = se(se(e));
15967
+ var uS = oe(oe(e));
15948
15968
  ft["%Error.prototype%"] = uS;
15949
15969
  }
15950
15970
  var dS = function e(t) {
@@ -15960,7 +15980,7 @@ var dS = function e(t) {
15960
15980
  a && (n = a.prototype);
15961
15981
  } else if (t === "%AsyncIteratorPrototype%") {
15962
15982
  var s = e("%AsyncGenerator%");
15963
- s && se && (n = se(s.prototype));
15983
+ s && oe && (n = oe(s.prototype));
15964
15984
  }
15965
15985
  return ft[t] = n, n;
15966
15986
  }, lr = {
@@ -16114,14 +16134,14 @@ var Zn = En, dr = Rs(), _S = uc, bt = Xn, pr = Zn, ES = function(e, t, n) {
16114
16134
  e[t] = n;
16115
16135
  else
16116
16136
  throw new _S("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
16117
- }, Ka = Rs(), Tc = function() {
16118
- return !!Ka;
16137
+ }, $a = Rs(), Tc = function() {
16138
+ return !!$a;
16119
16139
  };
16120
16140
  Tc.hasArrayLengthDefineBug = function() {
16121
- if (!Ka)
16141
+ if (!$a)
16122
16142
  return null;
16123
16143
  try {
16124
- return Ka([], "length", { value: 1 }).length !== 1;
16144
+ return $a([], "length", { value: 1 }).length !== 1;
16125
16145
  } catch {
16126
16146
  return !0;
16127
16147
  }
@@ -16233,8 +16253,8 @@ var GS = /^\s*class\b/, Ja = function(e) {
16233
16253
  return !1;
16234
16254
  };
16235
16255
  if (typeof document == "object") {
16236
- var $S = document.all;
16237
- Nn.call($S) === Nn.call(document.all) && (Xa = function(e) {
16256
+ var KS = document.all;
16257
+ Nn.call(KS) === Nn.call(document.all) && (Xa = function(e) {
16238
16258
  if ((jS || !e) && (typeof e > "u" || typeof e == "object"))
16239
16259
  try {
16240
16260
  var t = Nn.call(e);
@@ -16244,7 +16264,7 @@ if (typeof document == "object") {
16244
16264
  return !1;
16245
16265
  });
16246
16266
  }
16247
- var KS = vt ? function(e) {
16267
+ var $S = vt ? function(e) {
16248
16268
  if (Xa(e))
16249
16269
  return !0;
16250
16270
  if (!e || typeof e != "function" && typeof e != "object")
@@ -16267,7 +16287,7 @@ var KS = vt ? function(e) {
16267
16287
  return !1;
16268
16288
  var t = Nn.call(e);
16269
16289
  return t !== VS && t !== qS && !/^\[object HTML/.test(t) ? !1 : ha(e);
16270
- }, WS = KS, zS = Object.prototype.toString, Sc = Object.prototype.hasOwnProperty, JS = function(e, t, n) {
16290
+ }, WS = $S, zS = Object.prototype.toString, Sc = Object.prototype.hasOwnProperty, JS = function(e, t, n) {
16271
16291
  for (var a = 0, s = e.length; a < s; a++)
16272
16292
  Sc.call(e, a) && (n == null ? t(e[a], a, e) : t.call(n, e[a], a, e));
16273
16293
  }, XS = function(e, t, n) {
@@ -16466,18 +16486,18 @@ var d_ = function(e) {
16466
16486
  return a(S) === "Float32Array";
16467
16487
  }
16468
16488
  e.isFloat32Array = U;
16469
- function $(S) {
16489
+ function K(S) {
16470
16490
  return a(S) === "Float64Array";
16471
16491
  }
16472
- e.isFloat64Array = $;
16492
+ e.isFloat64Array = K;
16473
16493
  function ne(S) {
16474
16494
  return a(S) === "BigInt64Array";
16475
16495
  }
16476
16496
  e.isBigInt64Array = ne;
16477
- function K(S) {
16497
+ function $(S) {
16478
16498
  return a(S) === "BigUint64Array";
16479
16499
  }
16480
- e.isBigUint64Array = K;
16500
+ e.isBigUint64Array = $;
16481
16501
  function W(S) {
16482
16502
  return l(S) === "[object Map]";
16483
16503
  }
@@ -16641,7 +16661,7 @@ var k_ = ts.exports;
16641
16661
  return Q;
16642
16662
  }
16643
16663
  }), F = M[I]; I < z; F = M[++I])
16644
- b(F) || !$(F) ? q += " " + F : q += " " + r(F);
16664
+ b(F) || !K(F) ? q += " " + F : q += " " + r(F);
16645
16665
  return q;
16646
16666
  }, e.deprecate = function(g, k) {
16647
16667
  if (typeof D < "u" && D.noDeprecation === !0)
@@ -16735,7 +16755,7 @@ var k_ = ts.exports;
16735
16755
  if (z)
16736
16756
  return z;
16737
16757
  var q = Object.keys(k), F = m(q);
16738
- if (g.showHidden && (q = Object.getOwnPropertyNames(k)), K(k) && (q.indexOf("message") >= 0 || q.indexOf("description") >= 0))
16758
+ if (g.showHidden && (q = Object.getOwnPropertyNames(k)), $(k) && (q.indexOf("message") >= 0 || q.indexOf("description") >= 0))
16739
16759
  return y(k);
16740
16760
  if (q.length === 0) {
16741
16761
  if (W(k)) {
@@ -16746,7 +16766,7 @@ var k_ = ts.exports;
16746
16766
  return g.stylize(RegExp.prototype.toString.call(k), "regexp");
16747
16767
  if (ne(k))
16748
16768
  return g.stylize(Date.prototype.toString.call(k), "date");
16749
- if (K(k))
16769
+ if ($(k))
16750
16770
  return y(k);
16751
16771
  }
16752
16772
  var Q = "", Oe = !1, rt = ["{", "}"];
@@ -16754,7 +16774,7 @@ var k_ = ts.exports;
16754
16774
  var sn = k.name ? ": " + k.name : "";
16755
16775
  Q = " [Function" + sn + "]";
16756
16776
  }
16757
- if (U(k) && (Q = " " + RegExp.prototype.toString.call(k)), ne(k) && (Q = " " + Date.prototype.toUTCString.call(k)), K(k) && (Q = " " + y(k)), q.length === 0 && (!Oe || k.length == 0))
16777
+ if (U(k) && (Q = " " + RegExp.prototype.toString.call(k)), ne(k) && (Q = " " + Date.prototype.toUTCString.call(k)), $(k) && (Q = " " + y(k)), q.length === 0 && (!Oe || k.length == 0))
16758
16778
  return rt[0] + Q + rt[1];
16759
16779
  if (I < 0)
16760
16780
  return U(k) ? g.stylize(RegExp.prototype.toString.call(k), "regexp") : g.stylize("[Object]", "special");
@@ -16864,21 +16884,21 @@ var k_ = ts.exports;
16864
16884
  }
16865
16885
  e.isUndefined = O;
16866
16886
  function U(g) {
16867
- return $(g) && V(g) === "[object RegExp]";
16887
+ return K(g) && V(g) === "[object RegExp]";
16868
16888
  }
16869
16889
  e.isRegExp = U, e.types.isRegExp = U;
16870
- function $(g) {
16890
+ function K(g) {
16871
16891
  return typeof g == "object" && g !== null;
16872
16892
  }
16873
- e.isObject = $;
16893
+ e.isObject = K;
16874
16894
  function ne(g) {
16875
- return $(g) && V(g) === "[object Date]";
16895
+ return K(g) && V(g) === "[object Date]";
16876
16896
  }
16877
16897
  e.isDate = ne, e.types.isDate = ne;
16878
- function K(g) {
16879
- return $(g) && (V(g) === "[object Error]" || g instanceof Error);
16898
+ function $(g) {
16899
+ return K(g) && (V(g) === "[object Error]" || g instanceof Error);
16880
16900
  }
16881
- e.isError = K, e.types.isNativeError = K;
16901
+ e.isError = $, e.types.isNativeError = $;
16882
16902
  function W(g) {
16883
16903
  return typeof g == "function";
16884
16904
  }
@@ -16919,7 +16939,7 @@ var k_ = ts.exports;
16919
16939
  e.log = function() {
16920
16940
  console.log("%s - %s", qt(), e.format.apply(e, arguments));
16921
16941
  }, e.inherits = k_, e._extend = function(g, k) {
16922
- if (!k || !$(k)) return g;
16942
+ if (!k || !K(k)) return g;
16923
16943
  for (var I = Object.keys(k), M = I.length; M--; )
16924
16944
  g[I[M]] = k[I[M]];
16925
16945
  return g;
@@ -17419,7 +17439,7 @@ var O_ = I_;
17419
17439
  };
17420
17440
  })(ns, ns.exports);
17421
17441
  var Oc = ns.exports;
17422
- const v_ = Zi, A_ = cc.EventEmitter, w_ = zn.inherits, me = Oc("avvio"), { AVV_ERR_READY_TIMEOUT: R_ } = Ic, Oa = Symbol.for("plugin-meta");
17442
+ const v_ = Zi, A_ = cc.EventEmitter, w_ = zn.inherits, ue = Oc("avvio"), { AVV_ERR_READY_TIMEOUT: R_ } = Ic, Oa = Symbol.for("plugin-meta");
17423
17443
  function L_(e, t) {
17424
17444
  return e[Oa] && e[Oa].name ? e[Oa].name : typeof t < "u" && typeof t != "function" && t.name ? t.name : e.name ? e.name : e.toString().split(`
17425
17445
  `).slice(0, 2).map((n) => n.trim()).join(" -- ");
@@ -17439,7 +17459,7 @@ Vt.prototype.exec = function(e, t) {
17439
17459
  let a = !1;
17440
17460
  const s = this.name;
17441
17461
  if (this.parent._error && !this.isAfter) {
17442
- me("skipping loading of plugin as parent errored and it is not an after", s), D.nextTick(t);
17462
+ ue("skipping loading of plugin as parent errored and it is not an after", s), D.nextTick(t);
17443
17463
  return;
17444
17464
  }
17445
17465
  if (this.isAfter)
@@ -17448,24 +17468,24 @@ Vt.prototype.exec = function(e, t) {
17448
17468
  try {
17449
17469
  this.server = this.parent.override(e, n, this.opts);
17450
17470
  } catch (l) {
17451
- return me("override errored", s), t(l);
17471
+ return ue("override errored", s), t(l);
17452
17472
  }
17453
- this.opts = typeof this.opts == "function" ? this.opts(this.server) : this.opts, me("exec", s);
17473
+ this.opts = typeof this.opts == "function" ? this.opts(this.server) : this.opts, ue("exec", s);
17454
17474
  let o;
17455
17475
  const r = (l) => {
17456
17476
  if (a) {
17457
- me("loading complete", s);
17477
+ ue("loading complete", s);
17458
17478
  return;
17459
17479
  }
17460
- this._error = l, me(l ? "exec errored" : "exec completed", s), a = !0, o && clearTimeout(o), t(l);
17480
+ this._error = l, ue(l ? "exec errored" : "exec completed", s), a = !0, o && clearTimeout(o), t(l);
17461
17481
  };
17462
- this.timeout > 0 && (me("setting up timeout", s, this.timeout), o = setTimeout(function() {
17463
- me("timed out", s), o = null;
17482
+ this.timeout > 0 && (ue("setting up timeout", s, this.timeout), o = setTimeout(function() {
17483
+ ue("timed out", s), o = null;
17464
17484
  const l = new R_(s);
17465
17485
  l.fn = n, r(l);
17466
17486
  }, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
17467
17487
  const c = n(this.server, this.opts, r);
17468
- c && typeof c.then == "function" && (me("exec: resolving promise", s), c.then(
17488
+ c && typeof c.then == "function" && (ue("exec: resolving promise", s), c.then(
17469
17489
  () => D.nextTick(r),
17470
17490
  (l) => D.nextTick(r, l)
17471
17491
  ));
@@ -17475,36 +17495,36 @@ Vt.prototype.loadedSoFar = function() {
17475
17495
  return Promise.resolve();
17476
17496
  const e = () => {
17477
17497
  this.server.after((n, a) => {
17478
- this._error = n, this.q.pause(), n ? (me("rejecting promise", this.name, n), this._promise.reject(n)) : (me("resolving promise", this.name), this._promise.resolve()), this._promise = null, D.nextTick(a, n);
17498
+ 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);
17479
17499
  }), this.q.resume();
17480
17500
  };
17481
17501
  let t;
17482
17502
  return this._promise ? t = Promise.resolve() : (this._promise = M_(), t = this._promise.promise, this.server ? e() : this.on("start", e)), t;
17483
17503
  };
17484
17504
  Vt.prototype.enqueue = function(e, t) {
17485
- me("enqueue", this.name, e.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(e, t);
17505
+ ue("enqueue", this.name, e.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(e, t);
17486
17506
  };
17487
17507
  Vt.prototype.finish = function(e, t) {
17488
- me("finish", this.name, e);
17508
+ ue("finish", this.name, e);
17489
17509
  const n = () => {
17490
- this.loaded || (me("loaded", this.name), this.emit("loaded", this.server ? this.server.name : null, this.name, Date.now()), this.loaded = !0, t(e));
17510
+ this.loaded || (ue("loaded", this.name), this.emit("loaded", this.server ? this.server.name : null, this.name, Date.now()), this.loaded = !0, t(e));
17491
17511
  };
17492
17512
  if (e) {
17493
17513
  this._promise && (this._promise.reject(e), this._promise = null), n();
17494
17514
  return;
17495
17515
  }
17496
17516
  const a = () => {
17497
- if (me("check", this.name, this.q.length(), this.q.running(), this._promise), this.q.length() === 0 && this.q.running() === 0)
17517
+ if (ue("check", this.name, this.q.length(), this.q.running(), this._promise), this.q.length() === 0 && this.q.running() === 0)
17498
17518
  if (this._promise) {
17499
17519
  const s = () => {
17500
- me("wrap"), queueMicrotask(a);
17520
+ ue("wrap"), queueMicrotask(a);
17501
17521
  };
17502
17522
  this._promise.resolve(), this._promise.promise.then(s, s), this._promise = null;
17503
17523
  } else
17504
17524
  n();
17505
17525
  else
17506
- me("delayed", this.name), this.q.drain = () => {
17507
- me("drain", this.name), this.q.drain = D_, queueMicrotask(a);
17526
+ ue("delayed", this.name), this.q.drain = () => {
17527
+ ue("drain", this.name), this.q.drain = D_, queueMicrotask(a);
17508
17528
  };
17509
17529
  };
17510
17530
  queueMicrotask(a), this.q.resume();
@@ -17558,16 +17578,16 @@ function x_(e, t, n) {
17558
17578
  }, e[c] = function(m) {
17559
17579
  if (typeof m != "function")
17560
17580
  throw new zt(c, typeof m);
17561
- return n.onClose($_(m, this)), this;
17581
+ return n.onClose(K_(m, this)), this;
17562
17582
  }, e[l] = function(m) {
17563
17583
  if (m && typeof m != "function")
17564
17584
  throw new zt(l, typeof m);
17565
17585
  return m ? (n.close(wa(m, this)), this) : n.close();
17566
17586
  };
17567
17587
  }
17568
- function ie(e, t, n) {
17569
- if (typeof e == "function" && arguments.length === 1 && (n = e, t = {}, e = null), typeof t == "function" && (n = t, t = {}), t = t || {}, !(this instanceof ie)) {
17570
- const a = new ie(e, t, n);
17588
+ function ce(e, t, n) {
17589
+ if (typeof e == "function" && arguments.length === 1 && (n = e, t = {}, e = null), typeof t == "function" && (n = t, t = {}), t = t || {}, !(this instanceof ce)) {
17590
+ const a = new ce(e, t, n);
17571
17591
  return e && x_(e, t, a), a;
17572
17592
  }
17573
17593
  t.autostart !== !1 && (t.autostart = !0), e = e || this, this._timeout = Number(t.timeout) || 0, this._server = e, this._current = [], this._error = null, this._isOnCloseHandlerKey = Symbol("isOnCloseHandler"), this._lastUsed = null, this.setMaxListeners(0), n && this.once("start", n), this.started = !1, this.booted = !1, this.pluginTree = new q_(), this._readyQ = Or(this, Ac, 1), this._readyQ.pause(), this._readyQ.drain = () => {
@@ -17597,11 +17617,11 @@ function ie(e, t, n) {
17597
17617
  function H_(e, t, n) {
17598
17618
  this._doStart = n, t.autostart && this.start();
17599
17619
  }
17600
- F_(ie, U_);
17601
- ie.prototype.start = function() {
17620
+ F_(ce, U_);
17621
+ ce.prototype.start = function() {
17602
17622
  return this.started = !0, D.nextTick(this._doStart), this;
17603
17623
  };
17604
- ie.prototype.override = function(e, t, n) {
17624
+ ce.prototype.override = function(e, t, n) {
17605
17625
  return e;
17606
17626
  };
17607
17627
  function Q_(e) {
@@ -17609,16 +17629,16 @@ function Q_(e) {
17609
17629
  throw new G_(typeof e);
17610
17630
  return e;
17611
17631
  }
17612
- ie.prototype[Bn] = !0;
17613
- ie.prototype.use = function(e, t) {
17632
+ ce.prototype[Bn] = !0;
17633
+ ce.prototype.use = function(e, t) {
17614
17634
  return this._lastUsed = this._addPlugin(e, t, !1), this;
17615
17635
  };
17616
- ie.prototype._loadRegistered = function() {
17636
+ ce.prototype._loadRegistered = function() {
17617
17637
  const e = this._current[0];
17618
17638
  return !this.started && !this.booted && D.nextTick(() => this._root.q.resume()), e ? e.loadedSoFar() : Promise.resolve();
17619
17639
  };
17620
- Object.defineProperty(ie.prototype, "then", { get: vc });
17621
- ie.prototype._addPlugin = function(e, t, n) {
17640
+ Object.defineProperty(ce.prototype, "then", { get: vc });
17641
+ ce.prototype._addPlugin = function(e, t, n) {
17622
17642
  if (e = Q_(e), t = t || {}, this.booted)
17623
17643
  throw new B_();
17624
17644
  const a = this._current[0], s = new as(this, e, t, n);
@@ -17633,7 +17653,7 @@ ie.prototype._addPlugin = function(e, t, n) {
17633
17653
  o && (this._error = o);
17634
17654
  }), s;
17635
17655
  };
17636
- ie.prototype.after = function(e) {
17656
+ ce.prototype.after = function(e) {
17637
17657
  if (!e)
17638
17658
  return this._loadRegistered();
17639
17659
  this._addPlugin(t.bind(this), {}, !0);
@@ -17642,7 +17662,7 @@ ie.prototype.after = function(e) {
17642
17662
  }
17643
17663
  return this;
17644
17664
  };
17645
- ie.prototype.onClose = function(e) {
17665
+ ce.prototype.onClose = function(e) {
17646
17666
  if (typeof e != "function")
17647
17667
  throw new Error("not a function");
17648
17668
  e[this._isOnCloseHandlerKey] = !0, this._closeQ.unshift(e, t.bind(this));
@@ -17651,7 +17671,7 @@ ie.prototype.onClose = function(e) {
17651
17671
  }
17652
17672
  return this;
17653
17673
  };
17654
- ie.prototype.close = function(e) {
17674
+ ce.prototype.close = function(e) {
17655
17675
  let t;
17656
17676
  if (e) {
17657
17677
  if (typeof e != "function")
@@ -17668,7 +17688,7 @@ ie.prototype.close = function(e) {
17668
17688
  this._error = null, this._closeQ.push(e), D.nextTick(this._closeQ.resume.bind(this._closeQ));
17669
17689
  }), t;
17670
17690
  };
17671
- ie.prototype.ready = function(e) {
17691
+ ce.prototype.ready = function(e) {
17672
17692
  if (e) {
17673
17693
  if (typeof e != "function")
17674
17694
  throw new zt("ready", typeof e);
@@ -17683,10 +17703,10 @@ ie.prototype.ready = function(e) {
17683
17703
  }
17684
17704
  });
17685
17705
  };
17686
- ie.prototype.prettyPrint = function() {
17706
+ ce.prototype.prettyPrint = function() {
17687
17707
  return this.pluginTree.prittyPrint();
17688
17708
  };
17689
- ie.prototype.toJSON = function() {
17709
+ ce.prototype.toJSON = function() {
17690
17710
  return this.pluginTree.toJSON();
17691
17711
  };
17692
17712
  function vr() {
@@ -17740,7 +17760,7 @@ function j_(e, t) {
17740
17760
  )) : D.nextTick(t);
17741
17761
  } else e.length === 2 ? e(a ? n : this._error, t) : a ? e(n, t) : e(this._error, n, t);
17742
17762
  }
17743
- function $_(e, t) {
17763
+ function K_(e, t) {
17744
17764
  return n.bind(t);
17745
17765
  function n(a, s) {
17746
17766
  let o;
@@ -17762,16 +17782,16 @@ function wa(e, t) {
17762
17782
  }, s) : D.nextTick(s)) : e.length === 2 ? e(a, s) : e(a, this, s) : D.nextTick(s);
17763
17783
  }
17764
17784
  }
17765
- Os.exports = ie;
17785
+ Os.exports = ce;
17766
17786
  Os.exports.express = function(e) {
17767
- return ie(e, {
17787
+ return ce(e, {
17768
17788
  expose: {
17769
17789
  use: "load"
17770
17790
  }
17771
17791
  });
17772
17792
  };
17773
- var K_ = Os.exports;
17774
- const W_ = /* @__PURE__ */ bh(K_);
17793
+ var $_ = Os.exports;
17794
+ const W_ = /* @__PURE__ */ bh($_);
17775
17795
  (function() {
17776
17796
  if (window.requestAnimationFrame && window.cancelAnimationFrame)
17777
17797
  return;
@@ -17826,7 +17846,7 @@ const Z_ = ({
17826
17846
  d = !0;
17827
17847
  };
17828
17848
  const y = z_(e, n, a, {
17829
- version: "1.8.0",
17849
+ version: "1.8.2",
17830
17850
  onDeepLinkHandled: s,
17831
17851
  videoPlayerController: o,
17832
17852
  onContentActivate: r,
@@ -17862,7 +17882,7 @@ export {
17862
17882
  yo as g,
17863
17883
  hm as h,
17864
17884
  gt as i,
17865
- ue as j,
17885
+ de as j,
17866
17886
  Wo as k,
17867
17887
  Qt as l,
17868
17888
  sl as p,