@streamlayer/react 1.15.0 → 1.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -279,11 +279,11 @@ function Je(e) {
279
279
  h = h || {}, s && _.serializers && (h.serializers = _.serializers);
280
280
  const O = h.serializers;
281
281
  if (s && O) {
282
- var w = Object.assign({}, a, O), R = e.browser.serialize === !0 ? Object.keys(w) : s;
283
- delete _.serializers, ys([_], R, w, this._stdErrSerialize);
282
+ var R = Object.assign({}, a, O), w = e.browser.serialize === !0 ? Object.keys(R) : s;
283
+ delete _.serializers, ys([_], w, R, this._stdErrSerialize);
284
284
  }
285
285
  function v(I) {
286
- this._childLevel = (I._childLevel | 0) + 1, this.bindings = _, w && (this.serializers = w, this._serialize = R), t && (this._logEvent = xa(
286
+ this._childLevel = (I._childLevel | 0) + 1, this.bindings = _, R && (this.serializers = R, this._serialize = w), t && (this._logEvent = xa(
287
287
  [].concat(I._logEvent.bindings, _)
288
288
  ));
289
289
  }
@@ -708,7 +708,7 @@ function eo(e) {
708
708
  }
709
709
  return o(-24, -18), o(-18, -12), o(-12, -6), o(-6), t ? ti(a, s) : gs(a, s);
710
710
  }
711
- function wl(e, t) {
711
+ function Rl(e, t) {
712
712
  let n = gs(e, t);
713
713
  const a = n.hi & 2147483648;
714
714
  a && (n = ti(n.lo, n.hi));
@@ -716,14 +716,14 @@ function wl(e, t) {
716
716
  return a ? "-" + s : s;
717
717
  }
718
718
  function ei(e, t) {
719
- if ({ lo: e, hi: t } = Rl(e, t), t <= 2097151)
719
+ if ({ lo: e, hi: t } = wl(e, t), t <= 2097151)
720
720
  return String(En * t + e);
721
721
  const n = e & 16777215, a = (e >>> 24 | t << 8) & 16777215, s = t >> 16 & 65535;
722
722
  let o = n + a * 6777216 + s * 6710656, r = a + s * 8147497, c = s * 2;
723
723
  const l = 1e7;
724
724
  return o >= l && (r += Math.floor(o / l), o %= l), r >= l && (c += Math.floor(r / l), r %= l), c.toString() + to(r) + to(o);
725
725
  }
726
- function Rl(e, t) {
726
+ function wl(e, t) {
727
727
  return { lo: e >>> 0, hi: t >>> 0 };
728
728
  }
729
729
  function gs(e, t) {
@@ -820,7 +820,7 @@ function Pl() {
820
820
  return typeof s != "string" && (s = s.toString()), a(s), eo(s);
821
821
  },
822
822
  dec(s, o) {
823
- return wl(s, o);
823
+ return Rl(s, o);
824
824
  },
825
825
  uDec(s, o) {
826
826
  return ei(s, o);
@@ -890,10 +890,10 @@ function ni(e, t) {
890
890
  return t == 0;
891
891
  }
892
892
  }
893
- var ne;
893
+ var ae;
894
894
  (function(e) {
895
895
  e[e.Varint = 0] = "Varint", e[e.Bit64 = 1] = "Bit64", e[e.LengthDelimited = 2] = "LengthDelimited", e[e.StartGroup = 3] = "StartGroup", e[e.EndGroup = 4] = "EndGroup", e[e.Bit32 = 5] = "Bit32";
896
- })(ne || (ne = {}));
896
+ })(ae || (ae = {}));
897
897
  class Ml {
898
898
  constructor(t) {
899
899
  this.stack = [], this.textEncoder = t ?? new TextEncoder(), this.chunks = [], this.buf = [];
@@ -1074,23 +1074,23 @@ class Dl {
1074
1074
  skip(t, n) {
1075
1075
  let a = this.pos;
1076
1076
  switch (t) {
1077
- case ne.Varint:
1077
+ case ae.Varint:
1078
1078
  for (; this.buf[this.pos++] & 128; )
1079
1079
  ;
1080
1080
  break;
1081
- case ne.Bit64:
1081
+ case ae.Bit64:
1082
1082
  this.pos += 4;
1083
- case ne.Bit32:
1083
+ case ae.Bit32:
1084
1084
  this.pos += 4;
1085
1085
  break;
1086
- case ne.LengthDelimited:
1086
+ case ae.LengthDelimited:
1087
1087
  let s = this.uint32();
1088
1088
  this.pos += s;
1089
1089
  break;
1090
- case ne.StartGroup:
1090
+ case ae.StartGroup:
1091
1091
  for (; ; ) {
1092
1092
  const [o, r] = this.tag();
1093
- if (r === ne.EndGroup) {
1093
+ if (r === ae.EndGroup) {
1094
1094
  if (n !== void 0 && o !== n)
1095
1095
  throw new Error("invalid end group tag");
1096
1096
  break;
@@ -1820,7 +1820,7 @@ function $l() {
1820
1820
  readMessage(e, t, n, a, s) {
1821
1821
  const o = e.getType(), r = s ? t.len : t.pos + n;
1822
1822
  let c, l;
1823
- for (; t.pos < r && ([c, l] = t.tag(), !(s === !0 && l == ne.EndGroup)); ) {
1823
+ for (; t.pos < r && ([c, l] = t.tag(), !(s === !0 && l == ae.EndGroup)); ) {
1824
1824
  const m = o.fields.find(c);
1825
1825
  if (!m) {
1826
1826
  const u = t.skip(l, c);
@@ -1830,7 +1830,7 @@ function $l() {
1830
1830
  mo(e, t, m, l, a);
1831
1831
  }
1832
1832
  if (s && // eslint-disable-line @typescript-eslint/strict-boolean-expressions
1833
- (l != ne.EndGroup || c !== n))
1833
+ (l != ae.EndGroup || c !== n))
1834
1834
  throw new Error("invalid end group tag");
1835
1835
  },
1836
1836
  readField: mo,
@@ -1861,7 +1861,7 @@ function mo(e, t, n, a, s) {
1861
1861
  let l = Un;
1862
1862
  if (n.kind == "scalar" && n.L > 0 && (l = Wl), o) {
1863
1863
  let y = e[r];
1864
- if (a == ne.LengthDelimited && c != E.STRING && c != E.BYTES) {
1864
+ if (a == ae.LengthDelimited && c != E.STRING && c != E.BYTES) {
1865
1865
  let g = t.uint32() + t.pos;
1866
1866
  for (; t.pos < g; )
1867
1867
  y.push(l(t, c));
@@ -1999,7 +1999,7 @@ function uo(e, t, n, a) {
1999
1999
  }
2000
2000
  }
2001
2001
  function zl(e, t, n, a, s) {
2002
- e.tag(n.no, ne.LengthDelimited), e.fork();
2002
+ e.tag(n.no, ae.LengthDelimited), e.fork();
2003
2003
  let o = a;
2004
2004
  switch (n.K) {
2005
2005
  case E.INT32:
@@ -2021,14 +2021,14 @@ function zl(e, t, n, a, s) {
2021
2021
  Xt(e, E.INT32, 2, s);
2022
2022
  break;
2023
2023
  case "message":
2024
- ee(s !== void 0), e.tag(2, ne.LengthDelimited).bytes(s.toBinary(t));
2024
+ ee(s !== void 0), e.tag(2, ae.LengthDelimited).bytes(s.toBinary(t));
2025
2025
  break;
2026
2026
  }
2027
2027
  e.join();
2028
2028
  }
2029
2029
  function po(e, t, n, a) {
2030
2030
  const s = ii(n.T, a);
2031
- n.delimited ? e.tag(n.no, ne.StartGroup).raw(s.toBinary(t)).tag(n.no, ne.EndGroup) : e.tag(n.no, ne.LengthDelimited).bytes(s.toBinary(t));
2031
+ n.delimited ? e.tag(n.no, ae.StartGroup).raw(s.toBinary(t)).tag(n.no, ae.EndGroup) : e.tag(n.no, ae.LengthDelimited).bytes(s.toBinary(t));
2032
2032
  }
2033
2033
  function Xt(e, t, n, a) {
2034
2034
  ee(a !== void 0);
@@ -2038,28 +2038,28 @@ function Xt(e, t, n, a) {
2038
2038
  function Jl(e, t, n, a) {
2039
2039
  if (!a.length)
2040
2040
  return;
2041
- e.tag(n, ne.LengthDelimited).fork();
2041
+ e.tag(n, ae.LengthDelimited).fork();
2042
2042
  let [, s] = ci(t);
2043
2043
  for (let o = 0; o < a.length; o++)
2044
2044
  e[s](a[o]);
2045
2045
  e.join();
2046
2046
  }
2047
2047
  function ci(e) {
2048
- let t = ne.Varint;
2048
+ let t = ae.Varint;
2049
2049
  switch (e) {
2050
2050
  case E.BYTES:
2051
2051
  case E.STRING:
2052
- t = ne.LengthDelimited;
2052
+ t = ae.LengthDelimited;
2053
2053
  break;
2054
2054
  case E.DOUBLE:
2055
2055
  case E.FIXED64:
2056
2056
  case E.SFIXED64:
2057
- t = ne.Bit64;
2057
+ t = ae.Bit64;
2058
2058
  break;
2059
2059
  case E.FIXED32:
2060
2060
  case E.SFIXED32:
2061
2061
  case E.FLOAT:
2062
- t = ne.Bit32;
2062
+ t = ae.Bit32;
2063
2063
  break;
2064
2064
  }
2065
2065
  const n = E[e].toLowerCase();
@@ -3259,14 +3259,14 @@ const lm = /* @__PURE__ */ i.makeEnum(
3259
3259
  { no: 4, name: "NOTIFICATION_PROMOTION_IMAGE_POSITION_SOLID", localName: "SOLID" },
3260
3260
  { no: 5, name: "NOTIFICATION_PROMOTION_IMAGE_POSITION_MIDDLE", localName: "MIDDLE" }
3261
3261
  ]
3262
- ), wm = /* @__PURE__ */ i.makeEnum(
3262
+ ), Rm = /* @__PURE__ */ i.makeEnum(
3263
3263
  "streamlayer.interactive.NotificationSponsorLogoMode",
3264
3264
  [
3265
3265
  { no: 0, name: "NOTIFICATION_SPONSOR_LOGO_UNSET" },
3266
3266
  { no: 1, name: "NOTIFICATION_SPONSOR_LOGO_NONE" },
3267
3267
  { no: 2, name: "NOTIFICATION_SPONSOR_LOGO_TRANSPARENT" }
3268
3268
  ]
3269
- ), Rm = /* @__PURE__ */ i.makeEnum(
3269
+ ), wm = /* @__PURE__ */ i.makeEnum(
3270
3270
  "streamlayer.interactive.CtaIconMode",
3271
3271
  [
3272
3272
  { no: 0, name: "CTA_ICON_UNSET" },
@@ -3471,7 +3471,7 @@ const lm = /* @__PURE__ */ i.makeEnum(
3471
3471
  T: 9
3472
3472
  /* ScalarType.STRING */
3473
3473
  },
3474
- { no: 2, name: "sponsor_logo_mode", kind: "enum", T: i.getEnumType(wm) },
3474
+ { no: 2, name: "sponsor_logo_mode", kind: "enum", T: i.getEnumType(Rm) },
3475
3475
  { no: 3, name: "cta_button", kind: "message", T: gi },
3476
3476
  { no: 4, name: "image_position", kind: "enum", T: i.getEnumType(Am) },
3477
3477
  { no: 5, name: "mode", kind: "enum", T: i.getEnumType(vm) }
@@ -3704,7 +3704,7 @@ const lm = /* @__PURE__ */ i.makeEnum(
3704
3704
  T: 9
3705
3705
  /* ScalarType.STRING */
3706
3706
  },
3707
- { no: 5, name: "cta_icon_mode", kind: "enum", T: i.getEnumType(Rm) }
3707
+ { no: 5, name: "cta_icon_mode", kind: "enum", T: i.getEnumType(wm) }
3708
3708
  ]
3709
3709
  ), yo = /* @__PURE__ */ i.makeMessageType(
3710
3710
  "streamlayer.interactive.Banner",
@@ -4609,12 +4609,12 @@ const lm = /* @__PURE__ */ i.makeEnum(
4609
4609
  /* ScalarType.STRING */
4610
4610
  }
4611
4611
  ]
4612
- ), wu = /* @__PURE__ */ i.makeMessageType(
4612
+ ), Ru = /* @__PURE__ */ i.makeMessageType(
4613
4613
  "streamlayer.interactive.feed.QuestionSubscriptionResponse",
4614
4614
  () => [
4615
- { no: 1, name: "data", kind: "message", T: Ru }
4615
+ { no: 1, name: "data", kind: "message", T: wu }
4616
4616
  ]
4617
- ), Ru = /* @__PURE__ */ i.makeMessageType(
4617
+ ), wu = /* @__PURE__ */ i.makeMessageType(
4618
4618
  "streamlayer.interactive.feed.QuestionSubscriptionResponse.QuestionSubscriptionResponseData",
4619
4619
  () => [
4620
4620
  {
@@ -5437,13 +5437,13 @@ const lm = /* @__PURE__ */ i.makeEnum(
5437
5437
  /* ScalarType.STRING */
5438
5438
  }
5439
5439
  ]
5440
- ), wd = /* @__PURE__ */ i.makeMessageType(
5440
+ ), Rd = /* @__PURE__ */ i.makeMessageType(
5441
5441
  "streamlayer.interactive.feed.FeedSubscriptionResponse",
5442
5442
  () => [
5443
5443
  { no: 1, name: "data", kind: "message", T: zn },
5444
- { no: 2, name: "meta", kind: "message", T: Rd }
5444
+ { no: 2, name: "meta", kind: "message", T: wd }
5445
5445
  ]
5446
- ), Rd = /* @__PURE__ */ i.makeMessageType(
5446
+ ), wd = /* @__PURE__ */ i.makeMessageType(
5447
5447
  "streamlayer.interactive.feed.FeedSubscriptionResponse.FeedSubscriptionMeta",
5448
5448
  () => [
5449
5449
  { no: 1, name: "type", kind: "enum", T: i.getEnumType(_u) }
@@ -6196,7 +6196,7 @@ const lm = /* @__PURE__ */ i.makeEnum(
6196
6196
  { no: 5, name: "default_channel", kind: "message", T: Fn },
6197
6197
  { no: 6, name: "channels", kind: "message", T: Fn, repeated: !0 }
6198
6198
  ]
6199
- ), wi = /* @__PURE__ */ i.makeMessageType(
6199
+ ), Ri = /* @__PURE__ */ i.makeMessageType(
6200
6200
  "streamlayer.sdkSettings.StreamSettings",
6201
6201
  () => [
6202
6202
  { no: 1, name: "overlays", kind: "message", T: Li, repeated: !0 },
@@ -6286,7 +6286,7 @@ const lm = /* @__PURE__ */ i.makeEnum(
6286
6286
  { no: 3, name: "t", kind: "scalar", T: 9, opt: !0 }
6287
6287
  ],
6288
6288
  { localName: "JWK_OTH" }
6289
- ), Ri = /* @__PURE__ */ i.makeMessageType(
6289
+ ), wi = /* @__PURE__ */ i.makeMessageType(
6290
6290
  "streamlayer.sdkSettings.OrganizationSettings",
6291
6291
  () => [
6292
6292
  { no: 1, name: "overlays", kind: "message", T: Li, repeated: !0 },
@@ -6654,7 +6654,7 @@ let On = 0, it = (e) => {
6654
6654
  return n;
6655
6655
  };
6656
6656
  const hp = 0, _p = 1, Sp = 5, yn = 6, gn = 10;
6657
- let ws = (e, t, n, a) => (e.events = e.events || {}, e.events[n + gn] || (e.events[n + gn] = a((s) => {
6657
+ let Rs = (e, t, n, a) => (e.events = e.events || {}, e.events[n + gn] || (e.events[n + gn] = a((s) => {
6658
6658
  e.events[n].reduceRight((o, r) => (r(o), o), {
6659
6659
  shared: {},
6660
6660
  ...s
@@ -6662,19 +6662,19 @@ let ws = (e, t, n, a) => (e.events = e.events || {}, e.events[n + gn] || (e.even
6662
6662
  })), e.events[n] = e.events[n] || [], e.events[n].push(t), () => {
6663
6663
  let s = e.events[n], o = s.indexOf(t);
6664
6664
  s.splice(o, 1), s.length || (delete e.events[n], e.events[n + gn](), delete e.events[n + gn]);
6665
- }), Ep = (e, t) => ws(e, t, hp, (n) => {
6665
+ }), Ep = (e, t) => Rs(e, t, hp, (n) => {
6666
6666
  let a = e.listen;
6667
6667
  return e.listen = (s) => (!e.lc && !e.starting && (e.starting = !0, n(), delete e.starting), a(s)), () => {
6668
6668
  e.listen = a;
6669
6669
  };
6670
- }), bp = (e, t) => ws(e, t, _p, (n) => {
6670
+ }), bp = (e, t) => Rs(e, t, _p, (n) => {
6671
6671
  let a = e.off;
6672
6672
  return e.off = () => {
6673
6673
  n(), a();
6674
6674
  }, () => {
6675
6675
  e.off = a;
6676
6676
  };
6677
- }), Ip = 1e3, Jn = (e, t) => ws(e, (a) => {
6677
+ }), Ip = 1e3, Jn = (e, t) => Rs(e, (a) => {
6678
6678
  let s = t(a);
6679
6679
  s && e.events[yn].push(s);
6680
6680
  }, Sp, (a) => {
@@ -6742,7 +6742,7 @@ function Ap() {
6742
6742
  }
6743
6743
  return Ta(vp);
6744
6744
  }
6745
- const wp = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), _o = { randomUUID: wp };
6745
+ const Rp = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), _o = { randomUUID: Rp };
6746
6746
  function Bn(e, t, n) {
6747
6747
  var s;
6748
6748
  if (_o.randomUUID && !t && !e)
@@ -6770,7 +6770,7 @@ class $ extends Error {
6770
6770
  * to encode and send the details along with error.
6771
6771
  */
6772
6772
  constructor(t, n = U.Unknown, a, s, o) {
6773
- super(Rp(t, n)), this.name = "ConnectError", Object.setPrototypeOf(this, new.target.prototype), this.rawMessage = t, this.code = n, this.metadata = new Headers(a ?? {}), this.details = s ?? [], this.cause = o;
6773
+ super(wp(t, n)), this.name = "ConnectError", Object.setPrototypeOf(this, new.target.prototype), this.rawMessage = t, this.code = n, this.metadata = new Headers(a ?? {}), this.details = s ?? [], this.cause = o;
6774
6774
  }
6775
6775
  /**
6776
6776
  * Convert any value - typically a caught error into a ConnectError,
@@ -6809,7 +6809,7 @@ class $ extends Error {
6809
6809
  return a;
6810
6810
  }
6811
6811
  }
6812
- function Rp(e, t) {
6812
+ function wp(e, t) {
6813
6813
  return e.length ? `[${So(t)}] ${e}` : `[${So(t)}]`;
6814
6814
  }
6815
6815
  function Lp(e, t, n) {
@@ -7257,11 +7257,11 @@ function eT(e) {
7257
7257
  const n = Object.assign({}, e);
7258
7258
  return (t = n.ignoreUnknownFields) !== null && t !== void 0 || (n.ignoreUnknownFields = !0), n;
7259
7259
  }
7260
- function wo(e, t, n, a) {
7261
- const s = t ? Ro(e.I, a) : Lo(e.I, n);
7262
- return { parse: (t ? Ro(e.O, a) : Lo(e.O, n)).parse, serialize: s.serialize };
7260
+ function Ro(e, t, n, a) {
7261
+ const s = t ? wo(e.I, a) : Lo(e.I, n);
7262
+ return { parse: (t ? wo(e.O, a) : Lo(e.O, n)).parse, serialize: s.serialize };
7263
7263
  }
7264
- function Ro(e, t) {
7264
+ function wo(e, t) {
7265
7265
  return {
7266
7266
  parse(n) {
7267
7267
  try {
@@ -7439,7 +7439,7 @@ function Co(e) {
7439
7439
  return {
7440
7440
  async unary(a, s, o, r, c, l, m) {
7441
7441
  var u;
7442
- const { serialize: d, parse: y } = wo(s, n, e.jsonOptions, e.binaryOptions);
7442
+ const { serialize: d, parse: y } = Ro(s, n, e.jsonOptions, e.binaryOptions);
7443
7443
  return r = r === void 0 ? e.defaultTimeoutMs : r <= 0 ? void 0 : r, await tT({
7444
7444
  interceptors: e.interceptors,
7445
7445
  signal: o,
@@ -7465,7 +7465,7 @@ function Co(e) {
7465
7465
  if (!_.body)
7466
7466
  throw h !== void 0 ? h : "missing response body";
7467
7467
  const O = bo(_.body).getReader();
7468
- let w, R;
7468
+ let R, w;
7469
7469
  for (; ; ) {
7470
7470
  const v = await O.read();
7471
7471
  if (v.done)
@@ -7474,34 +7474,34 @@ function Co(e) {
7474
7474
  if ((P & Eo) === Eo)
7475
7475
  throw new $("protocol error: received unsupported compressed output", U.Internal);
7476
7476
  if (P === ya) {
7477
- if (w !== void 0)
7477
+ if (R !== void 0)
7478
7478
  throw "extra trailer";
7479
- w = vo(I);
7479
+ R = vo(I);
7480
7480
  continue;
7481
7481
  }
7482
- if (R !== void 0)
7482
+ if (w !== void 0)
7483
7483
  throw new $("extra message", U.Unimplemented);
7484
- R = y(I);
7484
+ w = y(I);
7485
7485
  }
7486
- if (w === void 0)
7486
+ if (R === void 0)
7487
7487
  throw h !== void 0 ? h : new $("missing trailer", _.headers.has(Gt) ? U.Unimplemented : U.Unknown);
7488
- if (Po(w, _.headers), R === void 0)
7489
- throw new $("missing message", w.has(Gt) ? U.Unimplemented : U.Unknown);
7488
+ if (Po(R, _.headers), w === void 0)
7489
+ throw new $("missing message", R.has(Gt) ? U.Unimplemented : U.Unknown);
7490
7490
  return {
7491
7491
  stream: !1,
7492
7492
  service: a,
7493
7493
  method: s,
7494
7494
  header: _.headers,
7495
- message: R,
7496
- trailer: w
7495
+ message: w,
7496
+ trailer: R
7497
7497
  };
7498
7498
  }
7499
7499
  });
7500
7500
  },
7501
7501
  async stream(a, s, o, r, c, l, m) {
7502
7502
  var u;
7503
- const { serialize: d, parse: y } = wo(s, n, e.jsonOptions, e.binaryOptions);
7504
- function T(f, _, h, O, w) {
7503
+ const { serialize: d, parse: y } = Ro(s, n, e.jsonOptions, e.binaryOptions);
7504
+ function T(f, _, h, O, R) {
7505
7505
  return oT(this, arguments, function* () {
7506
7506
  const v = bo(f).getReader();
7507
7507
  if (_) {
@@ -7527,7 +7527,7 @@ function Co(e) {
7527
7527
  throw "extra message";
7528
7528
  yield yield Tt(y(A));
7529
7529
  }
7530
- if ("throwIfAborted" in w && w.throwIfAborted(), !P)
7530
+ if ("throwIfAborted" in R && R.throwIfAborted(), !P)
7531
7531
  throw "missing trailer";
7532
7532
  });
7533
7533
  }
@@ -7560,13 +7560,13 @@ function Co(e) {
7560
7560
  },
7561
7561
  next: async (f) => {
7562
7562
  var _;
7563
- const O = await ((_ = e.fetch) !== null && _ !== void 0 ? _ : globalThis.fetch)(f.url, Object.assign(Object.assign({}, f.init), { headers: f.header, signal: f.signal, body: await g(f.message) })), { foundStatus: w, headerError: R } = Do(O.status, O.headers);
7564
- if (R != null)
7565
- throw R;
7563
+ const O = await ((_ = e.fetch) !== null && _ !== void 0 ? _ : globalThis.fetch)(f.url, Object.assign(Object.assign({}, f.init), { headers: f.header, signal: f.signal, body: await g(f.message) })), { foundStatus: R, headerError: w } = Do(O.status, O.headers);
7564
+ if (w != null)
7565
+ throw w;
7566
7566
  if (!O.body)
7567
7567
  throw "missing response body";
7568
7568
  const v = new Headers();
7569
- return Object.assign(Object.assign({}, f), { header: O.headers, trailer: v, message: T(O.body, w, v, O.headers, f.signal) });
7569
+ return Object.assign(Object.assign({}, f), { header: O.headers, trailer: v, message: T(O.body, R, v, O.headers, f.signal) });
7570
7570
  }
7571
7571
  });
7572
7572
  }
@@ -7599,29 +7599,29 @@ const Uo = ({
7599
7599
  }), qo("online", () => a.emit(Go));
7600
7600
  const o = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
7601
7601
  let l = {};
7602
- const m = async ([h, O], w, R, v) => {
7602
+ const m = async ([h, O], R, w, v) => {
7603
7603
  var P;
7604
7604
  if (!s)
7605
7605
  return;
7606
7606
  const I = (D) => {
7607
- w.key === h && (w.set(D), a.emit(ga, h, D, !0));
7607
+ R.key === h && (R.set(D), a.emit(ga, h, D, !0));
7608
7608
  }, B = () => {
7609
7609
  I({
7610
- ...w.value,
7610
+ ...R.value,
7611
7611
  ...Ho,
7612
7612
  promise: c.get(h)
7613
7613
  });
7614
7614
  }, { dedupeTime: A = 4e3, fetcher: H } = {
7615
- ...R,
7615
+ ...w,
7616
7616
  ...l
7617
7617
  }, Q = xo();
7618
7618
  if (c.has(h)) {
7619
- w.value.loading || B();
7619
+ R.value.loading || B();
7620
7620
  return;
7621
7621
  }
7622
7622
  if (!v) {
7623
7623
  const D = e.get(h);
7624
- D && w.value.data !== D && I({ data: D, ...at });
7624
+ D && R.value.data !== D && I({ data: D, ...at });
7625
7625
  const F = r.get(h);
7626
7626
  if (F && F + A > Q)
7627
7627
  return;
@@ -7633,33 +7633,33 @@ const Uo = ({
7633
7633
  const F = await D;
7634
7634
  e.set(h, F), I({ data: F, ...at }), r.set(h, xo());
7635
7635
  } catch (D) {
7636
- (P = R.onError) == null || P.call(R, D), I({ data: w.value.data, error: D, ...at });
7636
+ (P = w.onError) == null || P.call(w, D), I({ data: R.value.data, error: D, ...at });
7637
7637
  } finally {
7638
7638
  V(), c.delete(h);
7639
7639
  }
7640
7640
  }, u = (h, {
7641
7641
  fetcher: O = t,
7642
- ...w
7642
+ ...R
7643
7643
  } = {}) => {
7644
- const R = Ka({
7644
+ const w = Ka({
7645
7645
  ...at
7646
- }), v = { ...n, ...w, fetcher: O };
7647
- R._ = qi, R.invalidate = () => {
7648
- const { key: F } = R;
7646
+ }), v = { ...n, ...R, fetcher: O };
7647
+ w._ = qi, w.invalidate = () => {
7648
+ const { key: F } = w;
7649
7649
  F && T(F);
7650
- }, R.mutate = (F) => {
7651
- const { key: J } = R;
7650
+ }, w.mutate = (F) => {
7651
+ const { key: J } = w;
7652
7652
  J && g(J, F);
7653
7653
  };
7654
7654
  let P, I, B, A, H, Q = [];
7655
- Ep(R, () => {
7655
+ Ep(w, () => {
7656
7656
  const F = !P;
7657
7657
  [H, P] = iT(h), A = H.subscribe((Se) => {
7658
7658
  if (Se) {
7659
7659
  const [Ee, k] = Se;
7660
- R.key = Ee, m([Ee, k], R, v), I = Ee, B = k;
7660
+ w.key = Ee, m([Ee, k], w, v), I = Ee, B = k;
7661
7661
  } else
7662
- R.key = I = B = void 0, R.set({ ...at });
7662
+ w.key = I = B = void 0, w.set({ ...at });
7663
7663
  });
7664
7664
  const J = H.get();
7665
7665
  J && ([I, B] = J, F && V());
@@ -7668,56 +7668,56 @@ const Uo = ({
7668
7668
  refetchOnFocus: jt,
7669
7669
  refetchOnReconnect: et
7670
7670
  } = v, _e = () => {
7671
- I && m([I, B], R, v);
7671
+ I && m([I, B], w, v);
7672
7672
  };
7673
7673
  qe > 0 && o.set(
7674
7674
  h,
7675
7675
  setInterval(_e, qe)
7676
7676
  ), jt && Q.push(a.on(Bo, _e)), et && Q.push(a.on(Go, _e)), Q.push(
7677
7677
  a.on(Vo, (Se) => {
7678
- I && fa(I, Se) && m([I, B], R, v, !0);
7678
+ I && fa(I, Se) && m([I, B], w, v, !0);
7679
7679
  }),
7680
7680
  a.on(ga, (Se, Ee, k) => {
7681
- I && fa(I, Se) && R.value !== Ee && R.value.data !== Ee && R.set(
7681
+ I && fa(I, Se) && w.value !== Ee && w.value.data !== Ee && w.set(
7682
7682
  k ? Ee : { data: Ee, ...at }
7683
7683
  );
7684
7684
  })
7685
7685
  );
7686
7686
  });
7687
7687
  const V = () => {
7688
- I && B && m([I, B], R, v);
7689
- }, D = R.listen;
7690
- return R.listen = (F) => {
7688
+ I && B && m([I, B], w, v);
7689
+ }, D = w.listen;
7690
+ return w.listen = (F) => {
7691
7691
  const J = D(F);
7692
- return F(R.value), V(), J;
7693
- }, bp(R, () => {
7694
- R.value = { ...at }, P == null || P(), Q.forEach((F) => F()), Q = [], A == null || A(), clearInterval(o.get(h));
7695
- }), R;
7692
+ return F(w.value), V(), J;
7693
+ }, bp(w, () => {
7694
+ w.value = { ...at }, P == null || P(), Q.forEach((F) => F()), Q = [], A == null || A(), clearInterval(o.get(h));
7695
+ }), w;
7696
7696
  }, d = (h) => {
7697
7697
  e.delete(h), r.delete(h);
7698
7698
  }, y = (h, O) => {
7699
- for (const w of e.keys())
7700
- fa(w, h) && O(w);
7699
+ for (const R of e.keys())
7700
+ fa(R, h) && O(R);
7701
7701
  }, T = (h) => {
7702
7702
  y(h, d), a.emit(Vo, h);
7703
7703
  }, g = (h, O) => {
7704
- y(h, (w) => {
7705
- O === void 0 ? d(w) : e.set(w, O);
7704
+ y(h, (R) => {
7705
+ O === void 0 ? d(R) : e.set(R, O);
7706
7706
  }), a.emit(ga, h, O);
7707
7707
  };
7708
7708
  function f(h) {
7709
- const O = async (R) => {
7709
+ const O = async (w) => {
7710
7710
  var v;
7711
7711
  const P = l.fetcher ?? h, I = [];
7712
7712
  try {
7713
- w.set({
7713
+ R.set({
7714
7714
  error: void 0,
7715
7715
  data: void 0,
7716
7716
  mutate: O,
7717
7717
  ...Ho
7718
7718
  });
7719
7719
  const B = await P({
7720
- data: R,
7720
+ data: w,
7721
7721
  invalidate: (A) => {
7722
7722
  I.push(A);
7723
7723
  },
@@ -7728,17 +7728,17 @@ const Uo = ({
7728
7728
  e.get(A)
7729
7729
  ]
7730
7730
  });
7731
- return w.setKey("data", B), B;
7731
+ return R.setKey("data", B), B;
7732
7732
  } catch (B) {
7733
- (v = n == null ? void 0 : n.onError) == null || v.call(n, B), w.setKey("error", B);
7733
+ (v = n == null ? void 0 : n.onError) == null || v.call(n, B), R.setKey("error", B);
7734
7734
  } finally {
7735
- w.setKey("loading", !1), I.forEach(T);
7735
+ R.setKey("loading", !1), I.forEach(T);
7736
7736
  }
7737
- }, w = Ka({
7737
+ }, R = Ka({
7738
7738
  mutate: O,
7739
7739
  ...at
7740
7740
  });
7741
- return w.mutate = O, w;
7741
+ return R.mutate = O, R;
7742
7742
  }
7743
7743
  return [
7744
7744
  u,
@@ -8702,7 +8702,7 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
8702
8702
  () => [
8703
8703
  { no: 1, name: "standings", kind: "message", T: NT, repeated: !0 }
8704
8704
  ]
8705
- ), wT = /* @__PURE__ */ i.makeEnum(
8705
+ ), RT = /* @__PURE__ */ i.makeEnum(
8706
8706
  "streamlayer.sports.basketball.BasketballPerformerCategory",
8707
8707
  [
8708
8708
  { no: 0, name: "BASKETBALL_PERFORMER_CATEGORY_UNSET", localName: "UNSET" },
@@ -8710,7 +8710,7 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
8710
8710
  { no: 2, name: "BASKETBALL_PERFORMER_CATEGORY_REBOUNDS", localName: "REBOUNDS" },
8711
8711
  { no: 3, name: "BASKETBALL_PERFORMER_CATEGORY_ASSISTS", localName: "ASSISTS" }
8712
8712
  ]
8713
- ), RT = /* @__PURE__ */ i.makeMessageType(
8713
+ ), wT = /* @__PURE__ */ i.makeMessageType(
8714
8714
  "streamlayer.sports.basketball.EventScore",
8715
8715
  () => [
8716
8716
  { no: 8, name: "home_team_record", kind: "message", T: ct },
@@ -8783,7 +8783,7 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
8783
8783
  ), LT = /* @__PURE__ */ i.makeMessageType(
8784
8784
  "streamlayer.sports.basketball.BasketballPerformers",
8785
8785
  () => [
8786
- { no: 1, name: "category", kind: "enum", T: i.getEnumType(wT) },
8786
+ { no: 1, name: "category", kind: "enum", T: i.getEnumType(RT) },
8787
8787
  { no: 2, name: "home_player", kind: "message", T: $o },
8788
8788
  { no: 3, name: "away_player", kind: "message", T: $o }
8789
8789
  ]
@@ -9592,7 +9592,7 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
9592
9592
  { no: 8, name: "home_team_record", kind: "message", T: ct },
9593
9593
  { no: 9, name: "away_team_record", kind: "message", T: ct }
9594
9594
  ]
9595
- ), Rs = /* @__PURE__ */ i.makeMessageType(
9595
+ ), ws = /* @__PURE__ */ i.makeMessageType(
9596
9596
  "streamlayer.sports.soccer.SoccerPerformer",
9597
9597
  () => [
9598
9598
  {
@@ -9620,19 +9620,19 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
9620
9620
  ), sy = /* @__PURE__ */ i.makeMessageType(
9621
9621
  "streamlayer.sports.soccer.SoccerAttackPerfomer",
9622
9622
  () => [
9623
- { no: 1, name: "perfomer", kind: "message", T: Rs },
9623
+ { no: 1, name: "perfomer", kind: "message", T: ws },
9624
9624
  { no: 2, name: "attack_stats", kind: "message", T: py }
9625
9625
  ]
9626
9626
  ), oy = /* @__PURE__ */ i.makeMessageType(
9627
9627
  "streamlayer.sports.soccer.SoccerMidfieldPerformer",
9628
9628
  () => [
9629
- { no: 1, name: "perfomer", kind: "message", T: Rs },
9629
+ { no: 1, name: "perfomer", kind: "message", T: ws },
9630
9630
  { no: 2, name: "midfield_stats", kind: "message", T: Ty }
9631
9631
  ]
9632
9632
  ), ry = /* @__PURE__ */ i.makeMessageType(
9633
9633
  "streamlayer.sports.soccer.SoccerDefensePerfomer",
9634
9634
  () => [
9635
- { no: 1, name: "perfomer", kind: "message", T: Rs },
9635
+ { no: 1, name: "perfomer", kind: "message", T: ws },
9636
9636
  { no: 2, name: "defense_stats", kind: "message", T: yy }
9637
9637
  ]
9638
9638
  ), iy = /* @__PURE__ */ i.makeMessageType(
@@ -10243,7 +10243,7 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
10243
10243
  () => [
10244
10244
  { no: 1, name: "summary", kind: "message", T: St },
10245
10245
  { no: 2, name: "baseball", kind: "message", T: ET, oneof: "sport" },
10246
- { no: 3, name: "basketball", kind: "message", T: RT, oneof: "sport" },
10246
+ { no: 3, name: "basketball", kind: "message", T: wT, oneof: "sport" },
10247
10247
  { no: 4, name: "hockey", kind: "message", T: QT, oneof: "sport" },
10248
10248
  { no: 5, name: "soccer", kind: "message", T: ay, oneof: "sport" }
10249
10249
  ]
@@ -10340,14 +10340,14 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
10340
10340
  { no: 7, name: "endless", kind: "enum", T: i.getEnumType(Hi) }
10341
10341
  ],
10342
10342
  { localName: "ListRequest_Filter" }
10343
- ), wy = /* @__PURE__ */ i.makeMessageType(
10343
+ ), Ry = /* @__PURE__ */ i.makeMessageType(
10344
10344
  "streamlayer.sports.events.DemoListRequest",
10345
10345
  () => [
10346
- { no: 1, name: "filter", kind: "message", T: Ry },
10346
+ { no: 1, name: "filter", kind: "message", T: wy },
10347
10347
  { no: 2, name: "pagination", kind: "message", T: Xn },
10348
10348
  { no: 3, name: "sort", kind: "message", T: Qi }
10349
10349
  ]
10350
- ), Ry = /* @__PURE__ */ i.makeMessageType(
10350
+ ), wy = /* @__PURE__ */ i.makeMessageType(
10351
10351
  "streamlayer.sports.events.DemoListRequest.Filter",
10352
10352
  () => [
10353
10353
  {
@@ -10767,7 +10767,7 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
10767
10767
  */
10768
10768
  demoList: {
10769
10769
  name: "DemoList",
10770
- I: wy,
10770
+ I: Ry,
10771
10771
  O: Ly,
10772
10772
  kind: L.Unary
10773
10773
  },
@@ -11007,12 +11007,12 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
11007
11007
  { no: 3, name: "attributes", kind: "message", T: Ls }
11008
11008
  ],
11009
11009
  { localName: "GetResponse_GetResponseData" }
11010
- ), wg = /* @__PURE__ */ i.makeMessageType(
11010
+ ), Rg = /* @__PURE__ */ i.makeMessageType(
11011
11011
  "streamlayer.sdkSettings.client.UpdateRequest",
11012
11012
  () => [
11013
11013
  { no: 2, name: "settings", kind: "message", T: Ls }
11014
11014
  ]
11015
- ), Rg = /* @__PURE__ */ i.makeMessageType(
11015
+ ), wg = /* @__PURE__ */ i.makeMessageType(
11016
11016
  "streamlayer.sdkSettings.client.UpdateResponse",
11017
11017
  () => [
11018
11018
  { no: 1, name: "data", kind: "message", T: Lg }
@@ -11070,7 +11070,7 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
11070
11070
  T: 9
11071
11071
  /* ScalarType.STRING */
11072
11072
  },
11073
- { no: 3, name: "attributes", kind: "message", T: wi }
11073
+ { no: 3, name: "attributes", kind: "message", T: Ri }
11074
11074
  ],
11075
11075
  { localName: "GetStreamResponse_GetResponseData" }
11076
11076
  ), Cg = /* @__PURE__ */ i.makeMessageType(
@@ -11098,7 +11098,7 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
11098
11098
  T: 9
11099
11099
  /* ScalarType.STRING */
11100
11100
  },
11101
- { no: 3, name: "attributes", kind: "message", T: Ri }
11101
+ { no: 3, name: "attributes", kind: "message", T: wi }
11102
11102
  ],
11103
11103
  { localName: "GetOrganizationResponse_GetResponseData" }
11104
11104
  ), Bg = /* @__PURE__ */ i.makeMessageType(
@@ -11261,7 +11261,7 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
11261
11261
  T: 9
11262
11262
  /* ScalarType.STRING */
11263
11263
  },
11264
- { no: 3, name: "attributes", kind: "message", T: wi }
11264
+ { no: 3, name: "attributes", kind: "message", T: Ri }
11265
11265
  ],
11266
11266
  { localName: "StreamSubscriptionResponse_ResponseData" }
11267
11267
  ), Jg = /* @__PURE__ */ i.makeMessageType(
@@ -11286,7 +11286,7 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
11286
11286
  T: 9
11287
11287
  /* ScalarType.STRING */
11288
11288
  },
11289
- { no: 3, name: "attributes", kind: "message", T: Ri }
11289
+ { no: 3, name: "attributes", kind: "message", T: wi }
11290
11290
  ],
11291
11291
  { localName: "OrganizationSubscriptionResponse_ResponseData" }
11292
11292
  ), on = {
@@ -11306,8 +11306,8 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
11306
11306
  */
11307
11307
  update: {
11308
11308
  name: "Update",
11309
- I: wg,
11310
- O: Rg,
11309
+ I: Rg,
11310
+ O: wg,
11311
11311
  kind: L.Unary
11312
11312
  },
11313
11313
  /**
@@ -11710,7 +11710,7 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
11710
11710
  ), vf = /* @__PURE__ */ i.makeMessageType(
11711
11711
  "streamlayer.users.GetFriendsResponse",
11712
11712
  () => [
11713
- { no: 1, name: "data", kind: "message", T: wf, repeated: !0 },
11713
+ { no: 1, name: "data", kind: "message", T: Rf, repeated: !0 },
11714
11714
  { no: 2, name: "metadata", kind: "message", T: Af }
11715
11715
  ]
11716
11716
  ), Af = /* @__PURE__ */ i.makeMessageType(
@@ -11725,7 +11725,7 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
11725
11725
  }
11726
11726
  ],
11727
11727
  { localName: "GetFriendsResponse_ResponseMeta" }
11728
- ), wf = /* @__PURE__ */ i.makeMessageType(
11728
+ ), Rf = /* @__PURE__ */ i.makeMessageType(
11729
11729
  "streamlayer.users.GetFriendsResponse.FriendData",
11730
11730
  () => [
11731
11731
  {
@@ -11890,7 +11890,7 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
11890
11890
  questionSubscription: {
11891
11891
  name: "QuestionSubscription",
11892
11892
  I: Au,
11893
- O: wu,
11893
+ O: Ru,
11894
11894
  kind: L.ServerStreaming
11895
11895
  },
11896
11896
  /**
@@ -12018,7 +12018,7 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
12018
12018
  feedSubscription: {
12019
12019
  name: "FeedSubscription",
12020
12020
  I: Ad,
12021
- O: wd,
12021
+ O: Rd,
12022
12022
  kind: L.ServerStreaming
12023
12023
  },
12024
12024
  /**
@@ -12031,7 +12031,7 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
12031
12031
  kind: L.Unary
12032
12032
  }
12033
12033
  }
12034
- }, Rf = /* @__PURE__ */ i.makeEnum(
12034
+ }, wf = /* @__PURE__ */ i.makeEnum(
12035
12035
  "streamlayer.interactive.leaderboard.LeaderboardType",
12036
12036
  [
12037
12037
  { no: 0, name: "LEADERBOARD_TYPE_UNSET", localName: "UNSET" },
@@ -12048,7 +12048,7 @@ const Bo = 1, Go = 2, Vo = 3, ga = 4, qo = (e, t) => {
12048
12048
  T: 9
12049
12049
  /* ScalarType.STRING */
12050
12050
  },
12051
- { no: 2, name: "type", kind: "enum", T: i.getEnumType(Rf) },
12051
+ { no: 2, name: "type", kind: "enum", T: i.getEnumType(wf) },
12052
12052
  {
12053
12053
  no: 3,
12054
12054
  name: "name",
@@ -12993,7 +12993,7 @@ class Oe extends ta {
12993
12993
  }
12994
12994
  }
12995
12995
  const le = (e) => it(e);
12996
- class we extends ta {
12996
+ class Re extends ta {
12997
12997
  constructor(n, a, s) {
12998
12998
  super(n, `api:${a}`);
12999
12999
  p(this, "atomStore");
@@ -13025,7 +13025,7 @@ class we extends ta {
13025
13025
  throw new Error("not implemented");
13026
13026
  }
13027
13027
  }
13028
- const ae = new Ek();
13028
+ const te = new Ek();
13029
13029
  async function* Ok(e, t) {
13030
13030
  for await (const n of t) {
13031
13031
  e.response.message = n, e.received_at = Date.now(), e.id = Date.now();
@@ -13243,7 +13243,7 @@ class Ak {
13243
13243
  })), this.updateState(Ae.Ready);
13244
13244
  }
13245
13245
  }
13246
- const wk = /* @__PURE__ */ new Set([
13246
+ const Rk = /* @__PURE__ */ new Set([
13247
13247
  U.Unknown,
13248
13248
  U.Internal,
13249
13249
  U.DeadlineExceeded,
@@ -13251,7 +13251,7 @@ const wk = /* @__PURE__ */ new Set([
13251
13251
  U.FailedPrecondition,
13252
13252
  U.Unavailable,
13253
13253
  U.DataLoss
13254
- ]), mr = Ve("grpc:retry"), Rk = (e) => async (t) => {
13254
+ ]), mr = Ve("grpc:retry"), wk = (e) => async (t) => {
13255
13255
  const n = t.contextValues.get(es.retryAttempts), a = 300, s = t.contextValues.get(es.retryDelay);
13256
13256
  if (t.stream || n === 0)
13257
13257
  return e(t);
@@ -13262,7 +13262,7 @@ const wk = /* @__PURE__ */ new Set([
13262
13262
  } catch (r) {
13263
13263
  mr.trace({ attempt: o, error: r, url: t.url }, "retry attempt");
13264
13264
  const c = $.from(r);
13265
- if (o >= n || !(c instanceof $) || !wk.has(c.code))
13265
+ if (o >= n || !(c instanceof $) || !Rk.has(c.code))
13266
13266
  throw r;
13267
13267
  const l = Math.min(s, Math.pow(2, o) * a), m = Math.round(l * (1 + Math.random()) / 2);
13268
13268
  await new Promise((u) => setTimeout(u, m));
@@ -13381,7 +13381,7 @@ class ur {
13381
13381
  s.header.set(r, o[r]);
13382
13382
  return a(s);
13383
13383
  };
13384
- this.interceptors.push(t), this.interceptors.push(vk()), (n = this.opts) != null && n.retryable && this.interceptors.push(Rk);
13384
+ this.interceptors.push(t), this.interceptors.push(vk()), (n = this.opts) != null && n.retryable && this.interceptors.push(wk);
13385
13385
  });
13386
13386
  this.host = t, this.opts = n, this.$headers = new ft(be({
13387
13387
  "sl-device-id": Lk(),
@@ -13501,7 +13501,7 @@ var xe;
13501
13501
  (function(e) {
13502
13502
  e.SCHEMA = "schema", e.EXTERNAL_TOKEN = "eToken", e.TOKEN = "token";
13503
13503
  })(xe || (xe = {}));
13504
- class wt extends Qt {
13504
+ class Rt extends Qt {
13505
13505
  constructor() {
13506
13506
  super("user");
13507
13507
  // Schema
@@ -13529,11 +13529,11 @@ var Ye;
13529
13529
  e.DISABLED = "disabled", e.INITIALIZATION = "initialization", e.READY = "ready", e.FAILED = "failed", e.SUSPENDED = "suspended";
13530
13530
  })(Ye || (Ye = {}));
13531
13531
  const xk = (e) => {
13532
- const t = new wt(), n = new Oe(le(t.getExternalToken()), "userKey"), a = new Oe(le(t.getToken()), "userToken"), s = new we(Uk(a.getStore(), e), "user", ({ data: r, error: c, loading: l }, m) => {
13532
+ const t = new Rt(), n = new Oe(le(t.getExternalToken()), "userKey"), a = new Oe(le(t.getToken()), "userToken"), s = new Re(Uk(a.getStore(), e), "user", ({ data: r, error: c, loading: l }, m) => {
13533
13533
  var u;
13534
13534
  if (!c)
13535
13535
  return (u = r == null ? void 0 : r.data) != null && u.id ? r.data.id : l === !1 ? void 0 : m;
13536
- }), o = new we(Bk(a.getStore(), e), "userSettings");
13536
+ }), o = new Re(Bk(a.getStore(), e), "userSettings");
13537
13537
  return {
13538
13538
  userKey: n,
13539
13539
  userToken: a,
@@ -13541,7 +13541,7 @@ const xk = (e) => {
13541
13541
  userSettings: o
13542
13542
  };
13543
13543
  }, Hk = (e) => {
13544
- const t = new Oe(le(void 0), "providerStreamId"), n = new we(Mk(t.getStore(), e), "slStreamId", (o) => o == null ? void 0 : o.data), a = new we(Dk(n.getAtomStore(), e), "streamSettings"), s = new we(Ck(n.getAtomStore(), e), "streamSettings");
13544
+ const t = new Oe(le(void 0), "providerStreamId"), n = new Re(Mk(t.getStore(), e), "slStreamId", (o) => o == null ? void 0 : o.data), a = new Re(Dk(n.getAtomStore(), e), "streamSettings"), s = new Re(Ck(n.getAtomStore(), e), "streamSettings");
13545
13545
  return n.getAtomStore().listen((o) => {
13546
13546
  (o === "" || o === void 0) && (a.getStore().mutate(void 0), s.getStore().mutate(void 0));
13547
13547
  }), {
@@ -13551,10 +13551,10 @@ const xk = (e) => {
13551
13551
  streamSummary: s
13552
13552
  };
13553
13553
  }, Qk = (e) => {
13554
- const t = new Oe(le(void 0), "enabled"), n = new Oe(le(Ye.DISABLED), "status"), a = new we(Gk(t.getStore(), e), "organizationSettings", (c) => {
13554
+ const t = new Oe(le(void 0), "enabled"), n = new Oe(le(Ye.DISABLED), "status"), a = new Re(Gk(t.getStore(), e), "organizationSettings", (c) => {
13555
13555
  var l;
13556
13556
  return (l = c == null ? void 0 : c.data) == null ? void 0 : l.id;
13557
- }), s = new we(Vk(a.getAtomStore(), e), "organizationAdvertising"), o = xk(e), r = Hk(e);
13557
+ }), s = new Re(Vk(a.getAtomStore(), e), "organizationAdvertising"), o = xk(e), r = Hk(e);
13558
13558
  return {
13559
13559
  enabled: t,
13560
13560
  status: n,
@@ -13696,19 +13696,37 @@ const jk = (e, t, n) => {
13696
13696
  return;
13697
13697
  const { options: s, notification: o, ...r } = a.data.attributes, c = (s == null ? void 0 : s.options.case) === "promotion" ? s == null ? void 0 : s.options.value : void 0;
13698
13698
  return { id: r.id, question: r, promotion: c, notification: o };
13699
- }, eh = (e, t, n, a) => {
13700
- const { client: s, queryKey: o } = a.createPromiseClient(Ie, {
13699
+ }, eh = (e, t, n, a, s, o, r) => {
13700
+ const { client: c, queryKey: l } = r.createPromiseClient(Ie, {
13701
13701
  method: "list",
13702
- params: [e, t, n ? "true" : ""]
13702
+ params: [e, t, o ? "true" : ""]
13703
13703
  });
13704
- return a.nanoquery.createFetcherStore(o, {
13705
- fetcher: async (r, c, l, m, u) => !l || u ? [] : (await s.list({
13706
- eventId: l,
13707
- filter: {
13708
- types: m === st.ALLOWED ? [] : [M.FACTOID, M.PROMOTION, M.TWEET],
13709
- statuses: [Z.ACTIVE, Z.RESOLVED]
13710
- }
13711
- })).data,
13704
+ return r.nanoquery.createFetcherStore(l, {
13705
+ fetcher: async (m, u, d, y, T) => {
13706
+ var _;
13707
+ if (!d || T)
13708
+ return [];
13709
+ const g = await c.list({
13710
+ eventId: d,
13711
+ filter: {
13712
+ types: y === st.ALLOWED ? [] : [M.FACTOID, M.PROMOTION, M.TWEET],
13713
+ statuses: [Z.ACTIVE, Z.RESOLVED]
13714
+ }
13715
+ }), f = {
13716
+ eventId: d,
13717
+ userId: n.get(),
13718
+ organizationId: a.get()
13719
+ };
13720
+ for (const h of g.data)
13721
+ s.isQuestionReceived(f, h.id) || (te.emit("poll", {
13722
+ action: "received",
13723
+ payload: {
13724
+ questionId: h.id,
13725
+ questionType: (_ = h.attributes) == null ? void 0 : _.type
13726
+ }
13727
+ }), s.saveQuestionReceived(f, h.id));
13728
+ return g.data;
13729
+ },
13712
13730
  dedupeTime: 0,
13713
13731
  refetchInterval: 0
13714
13732
  });
@@ -13777,13 +13795,13 @@ const jk = (e, t, n) => {
13777
13795
  userId: u,
13778
13796
  organizationId: d
13779
13797
  };
13780
- return a.isBetPackQuestionReceived(h, _.id) || (ae.emit("poll", {
13798
+ return a.isQuestionReceived(h, _.id) || (te.emit("poll", {
13781
13799
  action: "received",
13782
13800
  payload: {
13783
13801
  questionId: _.id,
13784
13802
  questionType: _.type
13785
13803
  }
13786
- }), a.saveBetPackQuestionReceived(h, _.id)), { ...g, [_.id]: _ };
13804
+ }), a.saveQuestionReceived(h, _.id)), { ...g, [_.id]: _ };
13787
13805
  }, {})
13788
13806
  };
13789
13807
  },
@@ -13869,9 +13887,9 @@ const oh = (e) => {
13869
13887
  }, ih = (e, t, n) => {
13870
13888
  let a = !1;
13871
13889
  const s = n.transport, o = Ve("advertisement"), r = new sh(), c = be({}), l = th(e, s), m = (g) => {
13872
- var O, w, R;
13873
- const f = c.get(), _ = (O = f.data) == null ? void 0 : O.question.id, h = (R = (w = f.data) == null ? void 0 : w.promotion) == null ? void 0 : R.type;
13874
- _ && (ae.emit("advertisement", {
13890
+ var O, R, w;
13891
+ const f = c.get(), _ = (O = f.data) == null ? void 0 : O.question.id, h = (w = (R = f.data) == null ? void 0 : R.promotion) == null ? void 0 : w.type;
13892
+ _ && (te.emit("advertisement", {
13875
13893
  action: "opened",
13876
13894
  payload: {
13877
13895
  id: _,
@@ -13879,7 +13897,7 @@ const oh = (e) => {
13879
13897
  hasBanner: Nt(f.data),
13880
13898
  openedFrom: g != null && g.fromNotification ? "notification" : "auto"
13881
13899
  }
13882
- }), g != null && g.fromNotification && (c.setKey("hasNotification", !1), ae.emit("advertisement", {
13900
+ }), g != null && g.fromNotification && (c.setKey("hasNotification", !1), te.emit("advertisement", {
13883
13901
  action: "notification-opened",
13884
13902
  payload: {
13885
13903
  id: _,
@@ -13888,9 +13906,9 @@ const oh = (e) => {
13888
13906
  }
13889
13907
  })));
13890
13908
  }, u = () => {
13891
- var O, w, R, v;
13892
- const g = c.get(), f = (O = g.data) == null ? void 0 : O.question.id, _ = (R = (w = g.data) == null ? void 0 : w.promotion) == null ? void 0 : R.type, h = (v = c.get()) == null ? void 0 : v.isOpened;
13893
- f && !h && (o.debug({ id: f }, "markAsViewed: %o"), r.setShowed(f), c.setKey("isOpened", !0), ae.emit("advertisement", {
13909
+ var O, R, w, v;
13910
+ const g = c.get(), f = (O = g.data) == null ? void 0 : O.question.id, _ = (w = (R = g.data) == null ? void 0 : R.promotion) == null ? void 0 : w.type, h = (v = c.get()) == null ? void 0 : v.isOpened;
13911
+ f && !h && (o.debug({ id: f }, "markAsViewed: %o"), r.setShowed(f), c.setKey("isOpened", !0), te.emit("advertisement", {
13894
13912
  action: "viewed",
13895
13913
  payload: {
13896
13914
  id: f,
@@ -13916,7 +13934,7 @@ const oh = (e) => {
13916
13934
  data: h,
13917
13935
  hasNotification: ((O = h == null ? void 0 : h.notification) == null ? void 0 : O.enabled) === Ya.NOTIFICATION_ENABLED,
13918
13936
  close: () => y(h == null ? void 0 : h.question.id),
13919
- togglePause: (w) => T(h == null ? void 0 : h.question.id, w),
13937
+ togglePause: (R) => T(h == null ? void 0 : h.question.id, R),
13920
13938
  isViewed: h && !!r.isViewed(h.question.id)
13921
13939
  });
13922
13940
  }).catch((h) => c.set({
@@ -13926,13 +13944,13 @@ const oh = (e) => {
13926
13944
  })));
13927
13945
  };
13928
13946
  c.subscribe((g, f) => {
13929
- var _, h, O, w, R, v, P, I, B, A;
13947
+ var _, h, O, R, w, v, P, I, B, A;
13930
13948
  if (!(((_ = g.data) == null ? void 0 : _.id) === ((h = f == null ? void 0 : f.data) == null ? void 0 : h.id) && g.isPaused !== (f == null ? void 0 : f.isPaused))) {
13931
- if (((w = (O = g.data) == null ? void 0 : O.promotion) == null ? void 0 : w.type) === ie.EXTERNAL_AD && !(g != null && g.externalAd) && ((R = g.data.promotion.adCampaigns) != null && R.gamOptions) && ((v = g.data.promotion.adCampaigns) != null && v.gamBaseUrl)) {
13949
+ if (((R = (O = g.data) == null ? void 0 : O.promotion) == null ? void 0 : R.type) === ie.EXTERNAL_AD && !(g != null && g.externalAd) && ((w = g.data.promotion.adCampaigns) != null && w.gamOptions) && ((v = g.data.promotion.adCampaigns) != null && v.gamBaseUrl)) {
13932
13950
  const H = rh(g.data.promotion.adCampaigns);
13933
13951
  c.setKey("externalAd", { type: "gam", url: H });
13934
13952
  }
13935
- (P = g.data) != null && P.promotion && !g.isOpened && (ae.emit("advertisement", {
13953
+ (P = g.data) != null && P.promotion && !g.isOpened && (te.emit("advertisement", {
13936
13954
  action: "received",
13937
13955
  payload: {
13938
13956
  id: g.data.question.id,
@@ -13942,7 +13960,7 @@ const oh = (e) => {
13942
13960
  isViewed: !!r.isViewed(g.data.question.id)
13943
13961
  },
13944
13962
  skipAnalytics: g.data.question.id === ((I = f == null ? void 0 : f.data) == null ? void 0 : I.question.id)
13945
- }), g.data.question.id !== ((B = f == null ? void 0 : f.data) == null ? void 0 : B.question.id) && !r.isViewed(g.data.question.id) && ae.emit("advertisement", {
13963
+ }), g.data.question.id !== ((B = f == null ? void 0 : f.data) == null ? void 0 : B.question.id) && !r.isViewed(g.data.question.id) && te.emit("advertisement", {
13946
13964
  action: "notification-received",
13947
13965
  payload: {
13948
13966
  id: g.data.question.id,
@@ -13951,7 +13969,7 @@ const oh = (e) => {
13951
13969
  hasBanner: Nt(g.data),
13952
13970
  isViewed: !1
13953
13971
  }
13954
- })), !(g != null && g.data) && (f != null && f.data) && ae.emit("advertisement", {
13972
+ })), !(g != null && g.data) && (f != null && f.data) && te.emit("advertisement", {
13955
13973
  action: "closed",
13956
13974
  payload: {
13957
13975
  id: f.data.question.id,
@@ -13991,7 +14009,7 @@ const oh = (e) => {
13991
14009
  };
13992
14010
  var Le;
13993
14011
  (function(e) {
13994
- e.ONBOARDING = "onboarding", e.ONBOARDING_IO = "onboarding_io", e.BET_PACK_ITEM_RECEIVED = "bp-item-received", e.QUESTION_OPENED = "q-opened";
14012
+ e.ONBOARDING = "onboarding", e.ONBOARDING_IO = "onboarding_io", e.QUESTION_RECEIVED = "q-received", e.QUESTION_OPENED = "q-opened";
13995
14013
  })(Le || (Le = {}));
13996
14014
  class ch extends Qt {
13997
14015
  constructor() {
@@ -14006,10 +14024,10 @@ class lh extends Qt {
14006
14024
  constructor() {
14007
14025
  super("gamification");
14008
14026
  p(this, "sessionStorage");
14009
- p(this, "saveBetPackQuestionReceived", ({ userId: n, eventId: a, organizationId: s }, o) => {
14010
- this.write(Le.BET_PACK_ITEM_RECEIVED, s, n, a, o, "1");
14027
+ p(this, "saveQuestionReceived", ({ userId: n, eventId: a, organizationId: s }, o) => {
14028
+ this.write(Le.QUESTION_RECEIVED, s, n, a, o, "1");
14011
14029
  });
14012
- p(this, "isBetPackQuestionReceived", ({ userId: n, eventId: a, organizationId: s }, o) => !!this.read(Le.BET_PACK_ITEM_RECEIVED, s, n, a, o));
14030
+ p(this, "isQuestionReceived", ({ userId: n, eventId: a, organizationId: s }, o) => !!this.read(Le.QUESTION_RECEIVED, s, n, a, o));
14013
14031
  p(this, "saveQuestionOpened", ({ userId: n, eventId: a, organizationId: s }, o) => {
14014
14032
  this.write(Le.QUESTION_OPENED, s, n, a, o, "1");
14015
14033
  });
@@ -14092,9 +14110,9 @@ class mh {
14092
14110
  p(this, "closeQuestion", (t) => {
14093
14111
  this.openedQuestionId.set(void 0), t && this.notifications.markAsViewed(this.getCurrentSessionId({ prefix: "notification", entity: t }));
14094
14112
  });
14095
- this.transport = t.transport, this.log = Ve("gamification-background"), this.storage = new lh(), this.slStreamId = t.stores.slStreamId.getAtomStore(), this.organizationId = t.stores.organizationSettings.getAtomStore(), this.userId = t.stores.user.getAtomStore(), this.moderationId = new Oe(le(void 0), "moderationId").getStore(), this.interactiveAllowed = new Oe(le(st.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new Oe(le(void 0), "openedQuestionId").getStore(), this.notifications = t.notifications, this.moderation = new we(Wk(this.slStreamId, t.transport), "gamification:moderation");
14113
+ this.transport = t.transport, this.log = Ve("gamification-background"), this.storage = new lh(), this.slStreamId = t.stores.slStreamId.getAtomStore(), this.organizationId = t.stores.organizationSettings.getAtomStore(), this.userId = t.stores.user.getAtomStore(), this.moderationId = new Oe(le(void 0), "moderationId").getStore(), this.interactiveAllowed = new Oe(le(st.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new Oe(le(void 0), "openedQuestionId").getStore(), this.notifications = t.notifications, this.moderation = new Re(Wk(this.slStreamId, t.transport), "gamification:moderation");
14096
14114
  const n = !!t.sdk.options.get().betPack;
14097
- this.feedList = new we(eh(this.slStreamId, this.interactiveAllowed, n, t.transport), "gamification:feedList"), this.betPack = new we(nh(this.slStreamId, this.userId, this.organizationId, this.storage, t.transport), "gamification:betPack"), this.activeQuestionId = zk(this.slStreamId, n, t.transport), this.openedQuestion = ah(t.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((a) => {
14115
+ this.feedList = new Re(eh(this.slStreamId, this.interactiveAllowed, this.userId, this.organizationId, this.storage, n, t.transport), "gamification:feedList"), this.betPack = new Re(nh(this.slStreamId, this.userId, this.organizationId, this.storage, t.transport), "gamification:betPack"), this.activeQuestionId = zk(this.slStreamId, n, t.transport), this.openedQuestion = ah(t.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((a) => {
14098
14116
  this.log.debug({ item: a }, "received question"), a != null && a.questionId ? (this.questionSubscription = Zk(a.questionId, t.transport), this.questionSubscription.addListener("feed-subscription-opened-question", async (s) => {
14099
14117
  var r, c, l;
14100
14118
  const o = (c = (r = s.data) == null ? void 0 : r.attributes) == null ? void 0 : c.question;
@@ -14240,7 +14258,7 @@ class uh {
14240
14258
  this.logger.debug({ notificationId: t }, "active queue tick skipped, notification not exist");
14241
14259
  return;
14242
14260
  }
14243
- ae.emit("notification", {
14261
+ te.emit("notification", {
14244
14262
  action: "received",
14245
14263
  payload: {
14246
14264
  type: n.type,
@@ -14266,7 +14284,7 @@ class uh {
14266
14284
  const r = new Map(this.notificationsList.get());
14267
14285
  r.delete(t), this.notificationsList.set(r);
14268
14286
  const c = this.timeouts.get(t);
14269
- c !== void 0 && (clearTimeout(c), this.timeouts.delete(t)), this.logger.debug({ notificationId: t }, "notification hidden"), s.hiding && ae.emit("notification", {
14287
+ c !== void 0 && (clearTimeout(c), this.timeouts.delete(t)), this.logger.debug({ notificationId: t }, "notification hidden"), s.hiding && te.emit("notification", {
14270
14288
  action: "closed",
14271
14289
  payload: {
14272
14290
  type: s.type,
@@ -14311,7 +14329,7 @@ class ph {
14311
14329
  if (t.data && t.emitEvent) {
14312
14330
  const n = t.action;
14313
14331
  t.action = (...a) => {
14314
- n && n(...a), ae.emit("notification", {
14332
+ n && n(...a), te.emit("notification", {
14315
14333
  action: "opened",
14316
14334
  payload: {
14317
14335
  questionId: t.data.questionId,
@@ -14535,14 +14553,14 @@ class bh extends bk {
14535
14553
  * Logout user. Clears the all user data from the store.
14536
14554
  */
14537
14555
  p(this, "logout", () => {
14538
- this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userKey.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), new wt().clear();
14556
+ this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userKey.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), new Rt().clear();
14539
14557
  });
14540
14558
  /**
14541
14559
  * Soft logout, only clears the StreamLayer user data from the store.
14542
14560
  * Does not clear the external token. And automatically tries to re-login by external token.
14543
14561
  */
14544
14562
  p(this, "softLogout", () => {
14545
- const n = new wt();
14563
+ const n = new Rt();
14546
14564
  this.transport.setAuth("", ""), n.setToken(""), this.reLogin();
14547
14565
  });
14548
14566
  /**
@@ -14553,7 +14571,7 @@ class bh extends bk {
14553
14571
  * - If no one of the above is true, then logout.
14554
14572
  */
14555
14573
  p(this, "reLogin", ({ skipLogin: n } = { skipLogin: !1 }) => {
14556
- const a = new wt(), s = a.getToken(), o = a.getExternalToken();
14574
+ const a = new Rt(), s = a.getToken(), o = a.getExternalToken();
14557
14575
  if (this.$coreStore.getValues().userKey.setValue(o), s)
14558
14576
  return this.saveUser(s, ""), this.me().then((r) => {
14559
14577
  if (r != null && r.id) {
@@ -14573,7 +14591,7 @@ class bh extends bk {
14573
14591
  * Write token to the Transport and UserStore
14574
14592
  */
14575
14593
  p(this, "saveUser", (n, a) => {
14576
- this.transport.setAuth(n, a), this.$coreStore.getValues().userToken.setValue(n), new wt().setToken(n);
14594
+ this.transport.setAuth(n, a), this.$coreStore.getValues().userToken.setValue(n), new Rt().setToken(n);
14577
14595
  });
14578
14596
  /**
14579
14597
  * Add interceptor to the Transport to handle 401 and 403 errors.
@@ -14591,7 +14609,7 @@ class bh extends bk {
14591
14609
  this.$coreStore = n, this.deepLink = s, this.transport = a, this.bypassLogin = Fk(this.transport), this.connect();
14592
14610
  }
14593
14611
  }
14594
- const Kt = new wt(), Ih = (e, t, n) => {
14612
+ const Kt = new Rt(), Ih = (e, t, n) => {
14595
14613
  e.auth = new bh(e.store, e.transport, e.deepLink), e.stores.status.listen((a) => {
14596
14614
  a === Ye.READY && e.auth.reLogin();
14597
14615
  }), e.sdk.userId = e.stores.user.getAtomStore, e.sdk.authorizationBypass = async (a, s) => {
@@ -14763,7 +14781,7 @@ const Kt = new wt(), Ih = (e, t, n) => {
14763
14781
  break;
14764
14782
  }
14765
14783
  }
14766
- }, o = ae.listen(s), r = e.activeFeature.subscribe((c) => {
14784
+ }, o = te.listen(s), r = e.activeFeature.subscribe((c) => {
14767
14785
  c ? (e.ui.enableApp(), e.sdk.uiState.set({ app: !0 })) : e.ui.disableApp();
14768
14786
  });
14769
14787
  return () => {
@@ -14798,7 +14816,7 @@ const Kt = new wt(), Ih = (e, t, n) => {
14798
14816
  }, e.sdk.createEventSession = (r, c) => {
14799
14817
  c ? e.stores.slStreamId.getStore().set({ loading: !1, data: r }) : e.stores.providerStreamId.setValue(r);
14800
14818
  }, n();
14801
- }, wh = (e, t) => {
14819
+ }, Rh = (e, t) => {
14802
14820
  const { client: n, queryKey: a } = e.createPromiseClient(on, {
14803
14821
  method: "generateDeepLink",
14804
14822
  params: t
@@ -14820,7 +14838,7 @@ const Kt = new wt(), Ih = (e, t, n) => {
14820
14838
  // 24 hours
14821
14839
  refetchInterval: 0
14822
14840
  });
14823
- }, Rh = (e, { web: t, mobile: n }) => {
14841
+ }, wh = (e, { web: t, mobile: n }) => {
14824
14842
  const { client: a } = e.createPromiseClient(zf, { method: "generate" });
14825
14843
  return a.generate({ web: t, mobile: n });
14826
14844
  }, fr = (e, t) => {
@@ -14830,7 +14848,7 @@ const Kt = new wt(), Ih = (e, t, n) => {
14830
14848
  return n.toString();
14831
14849
  }, Lh = (e, t, n, a) => {
14832
14850
  const s = be({});
14833
- return Jn(s, () => wh(e, [t, n]).subscribe(async ({ data: o, loading: r }) => {
14851
+ return Jn(s, () => Rh(e, [t, n]).subscribe(async ({ data: o, loading: r }) => {
14834
14852
  var y;
14835
14853
  const c = o === void 0 && r === !1 ? "https://streamlayer.io" : o == null ? void 0 : o.url, l = a.get() || "", m = t.get() || "", u = n.get() || "", d = {
14836
14854
  [na]: l,
@@ -14843,7 +14861,7 @@ const Kt = new wt(), Ih = (e, t, n) => {
14843
14861
  T && g || g ? T = `?${fr(T, d)}` : g = `#${fr("", d)}`;
14844
14862
  const f = window.location.origin + window.location.pathname + T + g;
14845
14863
  try {
14846
- const _ = await Rh(e, { web: f, mobile: c });
14864
+ const _ = await wh(e, { web: f, mobile: c });
14847
14865
  s.set({
14848
14866
  data: (y = _.data) == null ? void 0 : y.link,
14849
14867
  loading: !1
@@ -14859,10 +14877,10 @@ const Kt = new wt(), Ih = (e, t, n) => {
14859
14877
  s.setKey("loading", !0);
14860
14878
  })), { $store: s, fetch };
14861
14879
  };
14862
- var te;
14880
+ var ne;
14863
14881
  (function(e) {
14864
14882
  e.Unset = "unset", e.Required = "required", e.Optional = "optional", e.Completed = "completed", e.Disabled = "disabled", e.Unavailable = "unavailable";
14865
- })(te || (te = {}));
14883
+ })(ne || (ne = {}));
14866
14884
  const Ph = (e, t, n, a) => {
14867
14885
  const { inplayGame: s } = e.featureSettings.get(), o = t.getCurrentSessionId({ prefix: "onboarding" });
14868
14886
  s && n.add({
@@ -14898,37 +14916,37 @@ const Ph = (e, t, n, a) => {
14898
14916
  organizationId: y,
14899
14917
  eventId: T
14900
14918
  });
14901
- if (g === te.Completed || c != null && c.skipOnboarding) {
14902
- e.set(te.Completed);
14903
- for (const w of o)
14904
- w();
14905
- c != null && c.skipOnboarding && g !== te.Completed && (s.saveOnboardingStatus({
14919
+ if (g === ne.Completed || c != null && c.skipOnboarding) {
14920
+ e.set(ne.Completed);
14921
+ for (const R of o)
14922
+ R();
14923
+ c != null && c.skipOnboarding && g !== ne.Completed && (s.saveOnboardingStatus({
14906
14924
  organizationId: y,
14907
14925
  userId: d,
14908
14926
  eventId: T
14909
- }, te.Completed), mc(r, T));
14927
+ }, ne.Completed), mc(r, T));
14910
14928
  return;
14911
14929
  }
14912
14930
  const f = (l = t.moderation.getStore().value) == null ? void 0 : l.data, _ = n.featureSettings.get().inplayGame;
14913
14931
  if (f === void 0 || _ === void 0)
14914
14932
  return;
14915
14933
  const h = (m = f == null ? void 0 : f.options) == null ? void 0 : m.onboardingEnabled, O = (u = _ == null ? void 0 : _.titleCard) == null ? void 0 : u.optIn;
14916
- h ? O ? e.set(te.Required) : e.set(te.Optional) : (O ? e.set(te.Unavailable) : e.set(te.Disabled), a.close(t.getCurrentSessionId({ prefix: "onboarding" }), { markAsViewed: !1 }));
14934
+ h ? O ? e.set(ne.Required) : e.set(ne.Optional) : (O ? e.set(ne.Unavailable) : e.set(ne.Disabled), a.close(t.getCurrentSessionId({ prefix: "onboarding" }), { markAsViewed: !1 }));
14917
14935
  } catch (d) {
14918
14936
  console.error(d);
14919
14937
  }
14920
14938
  }, kr = (e, t, n, a, s) => {
14921
14939
  let o = !!(s != null && s.skipOnboarding);
14922
- const r = t.storage, c = le(te.Unset);
14940
+ const r = t.storage, c = le(ne.Unset);
14923
14941
  c.subscribe((m) => {
14924
- m !== te.Unset && (m === te.Optional || m === te.Required ? o === !1 && (Ph(e, t, a, r), o = !0) : e.onboardingProcessed.set(!0), m === te.Completed && t.activeQuestionId.invalidate(), r.setOnboardingInstantOpen({
14942
+ m !== ne.Unset && (m === ne.Optional || m === ne.Required ? o === !1 && (Ph(e, t, a, r), o = !0) : e.onboardingProcessed.set(!0), m === ne.Completed && t.activeQuestionId.invalidate(), r.setOnboardingInstantOpen({
14925
14943
  userId: t.userId.get() || "",
14926
14944
  organizationId: t.organizationId.get() || "",
14927
14945
  eventId: t.slStreamId.get() || ""
14928
14946
  }));
14929
14947
  });
14930
14948
  const l = [];
14931
- return c.get() !== te.Completed && (l.push(t.userId.listen((m) => {
14949
+ return c.get() !== ne.Completed && (l.push(t.userId.listen((m) => {
14932
14950
  m && hn(c, t, e, a, r, l, n, s);
14933
14951
  })), l.push(t.moderation.listen((m) => {
14934
14952
  m.data && hn(c, t, e, a, r, l, n, s);
@@ -14937,11 +14955,11 @@ const Ph = (e, t, n, a) => {
14937
14955
  }))), hn(c, t, e, a, r, l, n, s), { $store: c, submitInplay: async () => {
14938
14956
  const m = t.slStreamId.get();
14939
14957
  if (m) {
14940
- await mc(n, m), c.set(te.Completed), r.saveOnboardingStatus({
14958
+ await mc(n, m), c.set(ne.Completed), r.saveOnboardingStatus({
14941
14959
  organizationId: t.organizationId.get() || "",
14942
14960
  userId: t.userId.get() || "",
14943
14961
  eventId: m
14944
- }, te.Completed), ae.emit("poll", {
14962
+ }, ne.Completed), te.emit("poll", {
14945
14963
  action: "onboardingPassed",
14946
14964
  payload: {}
14947
14965
  }), e.openFeature();
@@ -15027,7 +15045,7 @@ class Ch extends rc {
15027
15045
  if (this.skipOnboarding)
15028
15046
  this.background.interactiveAllowed.set(st.ALLOWED);
15029
15047
  else {
15030
- const c = this.onboardingStatus.$store.get(), l = (s = (a = (n = this.background.moderation.getStore().value) == null ? void 0 : n.data) == null ? void 0 : a.options) == null ? void 0 : s.onboardingEnabled, m = (r = (o = this.settings.getValues().inplayGame) == null ? void 0 : o.titleCard) == null ? void 0 : r.optIn, u = c === te.Completed, d = !l || u || m !== !0;
15048
+ const c = this.onboardingStatus.$store.get(), l = (s = (a = (n = this.background.moderation.getStore().value) == null ? void 0 : n.data) == null ? void 0 : a.options) == null ? void 0 : s.onboardingEnabled, m = (r = (o = this.settings.getValues().inplayGame) == null ? void 0 : o.titleCard) == null ? void 0 : r.optIn, u = c === ne.Completed, d = !l || u || m !== !0;
15031
15049
  this.background.interactiveAllowed.set(d ? st.ALLOWED : st.DISALLOWED);
15032
15050
  }
15033
15051
  });
@@ -15035,7 +15053,7 @@ class Ch extends rc {
15035
15053
  this.onboardingProcessed.subscribe((n) => {
15036
15054
  n && this.advertisement && this.advertisement.connect();
15037
15055
  }), this.cancels.add(this.background.feedSubscription.addListener("feed-subscription-prediction-close", async (n) => {
15038
- var m, u, d, y, T, g, f, _, h, O, w;
15056
+ var m, u, d, y, T, g, f, _, h, O, R;
15039
15057
  if (!this.isInteractiveAllowed)
15040
15058
  return;
15041
15059
  const a = (u = (m = n.data) == null ? void 0 : m.attributes) == null ? void 0 : u.question, s = (y = (d = n.data) == null ? void 0 : d.attributes) == null ? void 0 : y.feedItem;
@@ -15043,7 +15061,7 @@ class Ch extends rc {
15043
15061
  return;
15044
15062
  const { status: o, type: r, id: c, answers: l } = a;
15045
15063
  if (o === Z.RESOLVED && r === M.PREDICTION) {
15046
- const R = this.background.getCurrentSessionId({
15064
+ const w = this.background.getCurrentSessionId({
15047
15065
  prefix: `notification-id:${c}`
15048
15066
  }), v = [...this.feedList.getValues().data || []], P = v.findIndex((J) => J.id === c), I = v[P];
15049
15067
  let B = (f = (g = (T = I == null ? void 0 : I.attributes) == null ? void 0 : T.attributes) == null ? void 0 : g.value) == null ? void 0 : f.answerId;
@@ -15064,12 +15082,12 @@ class Ch extends rc {
15064
15082
  }
15065
15083
  if (!D || !V)
15066
15084
  return;
15067
- ((w = this.openedQuestionId.get()) == null ? void 0 : w.questionId) !== a.id && this.notifications.add({
15085
+ ((R = this.openedQuestionId.get()) == null ? void 0 : R.questionId) !== a.id && this.notifications.add({
15068
15086
  type: ze.QUESTION_RESOLVED,
15069
15087
  action: () => this.openQuestion(a.id, s),
15070
15088
  close: () => this.closeQuestion(c),
15071
15089
  autoHideDuration: F ? 15e3 : 12e3,
15072
- id: R,
15090
+ id: w,
15073
15091
  emitEvent: !1,
15074
15092
  data: {
15075
15093
  questionId: c,
@@ -15137,7 +15155,7 @@ class Ch extends rc {
15137
15155
  }
15138
15156
  });
15139
15157
  }
15140
- o === -1 && (a.unshift(s), ae.emit("poll", {
15158
+ o === -1 && (a.unshift(s), te.emit("poll", {
15141
15159
  action: "received",
15142
15160
  payload: {
15143
15161
  questionId: s.id,
@@ -15164,7 +15182,7 @@ class Ch extends rc {
15164
15182
  throw c;
15165
15183
  }
15166
15184
  const s = { ...(r = this.betPack.getValues().data) == null ? void 0 : r.data }, o = s == null ? void 0 : s[n];
15167
- o && (ae.emit("poll", {
15185
+ o && (te.emit("poll", {
15168
15186
  action: "voted",
15169
15187
  payload: {
15170
15188
  questionId: n,
@@ -15184,7 +15202,7 @@ class Ch extends rc {
15184
15202
  return;
15185
15203
  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;
15186
15204
  if (d) {
15187
- ae.emit("poll", {
15205
+ te.emit("poll", {
15188
15206
  action: "voted",
15189
15207
  payload: {
15190
15208
  questionId: n,
@@ -15193,7 +15211,7 @@ class Ch extends rc {
15193
15211
  });
15194
15212
  const T = s.get().data;
15195
15213
  if (o(), T) {
15196
- const g = T.answers.find((O) => O.correct === !0), f = T.answers.findIndex((O) => O.id === a), _ = T.answers[f], h = T.answers.every(({ percentageDecimal: O }, w) => O === (r == null ? void 0 : r.answers[w].percentageDecimal));
15214
+ const g = T.answers.find((O) => O.correct === !0), f = T.answers.findIndex((O) => O.id === a), _ = T.answers[f], h = T.answers.every(({ percentageDecimal: O }, R) => O === (r == null ? void 0 : r.answers[R].percentageDecimal));
15197
15215
  l[m].attributes.attributes.value.answerId = a, l[m].attributes.attributes.value.openForVoting = !1, l[m].attributes.attributes.value.text = (_ == null ? void 0 : _.text) || "", g && (l[m].attributes.attributes.value.status = g.id === a ? Wt.WON : Wt.LOST), this.feedList.getStore().mutate([...l]), T.answers[f].correct = (g == null ? void 0 : g.id) === a, T.answers[f].youVoted = !0, h && T.answers.forEach((O) => {
15198
15216
  O.percentageDecimal = 0;
15199
15217
  }), (g == null ? void 0 : g.id) === a && (T.answers[f].pointsEarned = T.status === Z.RESOLVED ? 0 : g.points), s.mutate({ ...T });
@@ -15234,7 +15252,7 @@ class Ch extends rc {
15234
15252
  userId: this.background.userId.get() || "",
15235
15253
  organizationId: this.background.organizationId.get() || ""
15236
15254
  };
15237
- return this.storage.isQuestionOpened(r, n) || (ae.emit("poll", {
15255
+ return this.storage.isQuestionOpened(r, n) || (te.emit("poll", {
15238
15256
  action: "opened",
15239
15257
  payload: {
15240
15258
  questionId: n,
@@ -15289,9 +15307,9 @@ class Ch extends rc {
15289
15307
  * skipping questions with inAppSilence === ON
15290
15308
  */
15291
15309
  p(this, "showInApp", (n) => {
15292
- var s, o, r, c, l, m, u, d, y, T, g, f, _, h, O, w, R, v, P, I, B;
15310
+ var s, o, r, c, l, m, u, d, y, T, g, f, _, h, O, R, w, v, P, I, B;
15293
15311
  const a = this.onboardingStatus.$store.get();
15294
- if (n && n.data && a && a !== te.Unset && ((s = n.data.question) == null ? void 0 : s.id) !== void 0 && ((r = (o = n.data.question) == null ? void 0 : o.bypassNotifications) == null ? void 0 : r.inAppSilence) !== Ti.ON && n.data.question.status === Z.ACTIVE && !n.data.question.marketClosed) {
15312
+ if (n && n.data && a && a !== ne.Unset && ((s = n.data.question) == null ? void 0 : s.id) !== void 0 && ((r = (o = n.data.question) == null ? void 0 : o.bypassNotifications) == null ? void 0 : r.inAppSilence) !== Ti.ON && n.data.question.status === Z.ACTIVE && !n.data.question.marketClosed) {
15295
15313
  if (hr.has(n.data.question.type))
15296
15314
  this.isInteractiveAllowed && n.data.question.notification !== void 0 && this.notifications.add({
15297
15315
  type: ze.QUESTION,
@@ -15376,8 +15394,8 @@ class Ch extends rc {
15376
15394
  }
15377
15395
  }
15378
15396
  const Q = {
15379
- title: (w = n.data.question.notification) == null ? void 0 : w.title,
15380
- body: (R = n.data.question.notification) == null ? void 0 : R.body,
15397
+ title: (R = n.data.question.notification) == null ? void 0 : R.title,
15398
+ body: (w = n.data.question.notification) == null ? void 0 : w.body,
15381
15399
  image: (v = n.data.question.notification) == null ? void 0 : v.image,
15382
15400
  account: ((P = A == null ? void 0 : A.tweetMeta) == null ? void 0 : P.account) || "",
15383
15401
  accountVerified: !!((I = A == null ? void 0 : A.tweetMeta) != null && I.accountVerified),
@@ -15413,7 +15431,7 @@ class Ch extends rc {
15413
15431
  }
15414
15432
  });
15415
15433
  if (this.background = new mh(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 = this.background.storage, this.feedList = this.background.feedList, this.betPack = this.background.betPack, this.currentUserId = this.background.userId, this.onboardingProcessed = le(!s.sdk.withAuth), this.leaderboardId = new Oe(le(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.notifications = s.notifications, this.transport = s.transport, this.closeFeature = (o = !0) => s.sdk.closeFeature(o), this.openFeature = () => s.sdk.openFeature(W.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = Lh(this.transport, this.background.slStreamId, s.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = Mh(this.background.slStreamId, this.background.userId, this.friends, this.transport), !s.sdk.options.get().hideFriends) {
15416
- this.friends = new we(Kk(this.background.userId, s.transport), "gamification:friends"), this.openedUser = le(void 0);
15434
+ this.friends = new Re(Kk(this.background.userId, s.transport), "gamification:friends"), this.openedUser = le(void 0);
15417
15435
  const o = this.leaderboardList = gh(this.transport, this.background.slStreamId, this.background.userId, this.friends);
15418
15436
  this.cancels.add(this.userSummary.$store.listen((r, c) => {
15419
15437
  c != null && c.summary && (r != null && r.summary) && o.invalidate();
@@ -15424,7 +15442,7 @@ class Ch extends rc {
15424
15442
  }), s.sdk.options.get().skipOnboarding || (this.onboardingStatus = kr(this, this.background, s.transport, s.notifications, {
15425
15443
  skipOnboarding: s.sdk.options.get().skipOnboarding
15426
15444
  })), 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) => {
15427
- (r === void 0 || o !== te.Unset) && this.background.activeQuestionId.invalidate();
15445
+ (r === void 0 || o !== ne.Unset) && this.background.activeQuestionId.invalidate();
15428
15446
  })), this.background.activeQuestionId.listen(this.showInApp), this.friendsTabEnabled = le(!1), this.cancels.add(s.sdk.options.subscribe((o) => {
15429
15447
  o.friendsTab === "disabled" ? this.friendsTabEnabled.set(!1) : o.friendsTab === "enabled" && this.friendsTabEnabled.set(!0);
15430
15448
  })), this.cancels.add(this.settings.subscribe((o) => {
@@ -15549,7 +15567,7 @@ class Vh {
15549
15567
  break;
15550
15568
  }
15551
15569
  };
15552
- return ae.listen(n);
15570
+ return te.listen(n);
15553
15571
  });
15554
15572
  }
15555
15573
  }
@@ -15587,7 +15605,7 @@ class qh {
15587
15605
  break;
15588
15606
  }
15589
15607
  };
15590
- return ae.listen(n);
15608
+ return te.listen(n);
15591
15609
  });
15592
15610
  }
15593
15611
  }
@@ -15707,7 +15725,7 @@ class Hh {
15707
15725
  }
15708
15726
  }
15709
15727
  };
15710
- return ae.listen(n);
15728
+ return te.listen(n);
15711
15729
  });
15712
15730
  }
15713
15731
  }
@@ -15800,7 +15818,7 @@ class Yh {
15800
15818
  break;
15801
15819
  }
15802
15820
  };
15803
- return ae.listen(n);
15821
+ return te.listen(n);
15804
15822
  });
15805
15823
  }
15806
15824
  }
@@ -15885,7 +15903,7 @@ class jh {
15885
15903
  break;
15886
15904
  }
15887
15905
  };
15888
- return ae.listen(n);
15906
+ return te.listen(n);
15889
15907
  });
15890
15908
  }
15891
15909
  }
@@ -16037,8 +16055,8 @@ function pc(e, t, n) {
16037
16055
  unshift: _,
16038
16056
  empty: Ne,
16039
16057
  kill: O,
16040
- killAndDrain: w,
16041
- error: R
16058
+ killAndDrain: R,
16059
+ error: w
16042
16060
  };
16043
16061
  return l;
16044
16062
  function m() {
@@ -16086,10 +16104,10 @@ function pc(e, t, n) {
16086
16104
  function O() {
16087
16105
  s = null, o = null, l.drain = Ne;
16088
16106
  }
16089
- function w() {
16107
+ function R() {
16090
16108
  s = null, o = null, l.drain(), l.drain = Ne;
16091
16109
  }
16092
- function R(v) {
16110
+ function w(v) {
16093
16111
  c = v;
16094
16112
  }
16095
16113
  }
@@ -16444,7 +16462,7 @@ var bc = Bs.exports, sa = {}, Ic = {}, Nc = function() {
16444
16462
  l.prototype = t.prototype, a.prototype = new l(), l.prototype = null;
16445
16463
  }
16446
16464
  return a;
16447
- }, N_ = I_, Gs = Function.prototype.bind || N_, O_ = Function.prototype.call, v_ = Object.prototype.hasOwnProperty, A_ = Gs, w_ = A_.call(O_, v_), x, R_ = l_, L_ = m_, P_ = u_, M_ = d_, qt = Oc, Ut = ra, D_ = p_, vc = Function, ba = function(e) {
16465
+ }, N_ = I_, Gs = Function.prototype.bind || N_, O_ = Function.prototype.call, v_ = Object.prototype.hasOwnProperty, A_ = Gs, R_ = A_.call(O_, v_), x, w_ = l_, L_ = m_, P_ = u_, M_ = d_, qt = Oc, Ut = ra, D_ = p_, vc = Function, ba = function(e) {
16448
16466
  try {
16449
16467
  return vc('"use strict"; return (' + e + ").constructor;")();
16450
16468
  } catch {
@@ -16492,7 +16510,7 @@ var Ia = function() {
16492
16510
  "%decodeURIComponent%": decodeURIComponent,
16493
16511
  "%encodeURI%": encodeURI,
16494
16512
  "%encodeURIComponent%": encodeURIComponent,
16495
- "%Error%": R_,
16513
+ "%Error%": w_,
16496
16514
  "%eval%": eval,
16497
16515
  // eslint-disable-line no-eval
16498
16516
  "%EvalError%": L_,
@@ -16616,7 +16634,7 @@ var G_ = function e(t) {
16616
16634
  "%URIErrorPrototype%": ["URIError", "prototype"],
16617
16635
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
16618
16636
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
16619
- }, rn = Gs, qn = w_, V_ = rn.call(Function.call, Array.prototype.concat), q_ = rn.call(Function.apply, Array.prototype.splice), Nr = rn.call(Function.call, String.prototype.replace), xn = rn.call(Function.call, String.prototype.slice), x_ = rn.call(Function.call, RegExp.prototype.exec), H_ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Q_ = /\\(\\)?/g, Y_ = function(e) {
16637
+ }, rn = Gs, qn = R_, V_ = rn.call(Function.call, Array.prototype.concat), q_ = rn.call(Function.apply, Array.prototype.splice), Nr = rn.call(Function.call, String.prototype.replace), xn = rn.call(Function.call, String.prototype.slice), x_ = rn.call(Function.call, RegExp.prototype.exec), H_ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Q_ = /\\(\\)?/g, Y_ = function(e) {
16620
16638
  var t = xn(e, 0, 1), n = xn(e, -1);
16621
16639
  if (t === "%" && n !== "%")
16622
16640
  throw new qt("invalid intrinsic syntax, expected closing `%`");
@@ -16682,14 +16700,14 @@ function Vs() {
16682
16700
  }
16683
16701
  return Na = t, Na;
16684
16702
  }
16685
- var $_ = cn, wn = $_("%Object.getOwnPropertyDescriptor%", !0);
16686
- if (wn)
16703
+ var $_ = cn, Rn = $_("%Object.getOwnPropertyDescriptor%", !0);
16704
+ if (Rn)
16687
16705
  try {
16688
- wn([], "length");
16706
+ Rn([], "length");
16689
16707
  } catch {
16690
- wn = null;
16708
+ Rn = null;
16691
16709
  }
16692
- var ia = wn, vr = Vs(), K_ = Oc, vt = ra, Ar = ia, W_ = function(e, t, n) {
16710
+ var ia = Rn, vr = Vs(), K_ = Oc, vt = ra, Ar = ia, W_ = function(e, t, n) {
16693
16711
  if (!e || typeof e != "object" && typeof e != "function")
16694
16712
  throw new vt("`obj` must be an object or a function`");
16695
16713
  if (typeof t != "string" && typeof t != "symbol")
@@ -16714,10 +16732,10 @@ var ia = wn, vr = Vs(), K_ = Oc, vt = ra, Ar = ia, W_ = function(e, t, n) {
16714
16732
  e[t] = n;
16715
16733
  else
16716
16734
  throw new K_("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
16717
- }, as = Vs(), wc = function() {
16735
+ }, as = Vs(), Rc = function() {
16718
16736
  return !!as;
16719
16737
  };
16720
- wc.hasArrayLengthDefineBug = function() {
16738
+ Rc.hasArrayLengthDefineBug = function() {
16721
16739
  if (!as)
16722
16740
  return null;
16723
16741
  try {
@@ -16726,24 +16744,24 @@ wc.hasArrayLengthDefineBug = function() {
16726
16744
  return !0;
16727
16745
  }
16728
16746
  };
16729
- var z_ = wc, J_ = cn, wr = W_, X_ = z_(), Rr = ia, Lr = ra, Z_ = J_("%Math.floor%"), eS = function(e, t) {
16747
+ var z_ = Rc, J_ = cn, Rr = W_, X_ = z_(), wr = ia, Lr = ra, Z_ = J_("%Math.floor%"), eS = function(e, t) {
16730
16748
  if (typeof e != "function")
16731
16749
  throw new Lr("`fn` is not a function");
16732
16750
  if (typeof t != "number" || t < 0 || t > 4294967295 || Z_(t) !== t)
16733
16751
  throw new Lr("`length` must be a positive 32-bit integer");
16734
16752
  var n = arguments.length > 2 && !!arguments[2], a = !0, s = !0;
16735
- if ("length" in e && Rr) {
16736
- var o = Rr(e, "length");
16753
+ if ("length" in e && wr) {
16754
+ var o = wr(e, "length");
16737
16755
  o && !o.configurable && (a = !1), o && !o.writable && (s = !1);
16738
16756
  }
16739
- return (a || s || !n) && (X_ ? wr(
16757
+ return (a || s || !n) && (X_ ? Rr(
16740
16758
  /** @type {Parameters<define>[0]} */
16741
16759
  e,
16742
16760
  "length",
16743
16761
  t,
16744
16762
  !0,
16745
16763
  !0
16746
- ) : wr(
16764
+ ) : Rr(
16747
16765
  /** @type {Parameters<define>[0]} */
16748
16766
  e,
16749
16767
  "length",
@@ -16767,8 +16785,8 @@ var z_ = wc, J_ = cn, wr = W_, X_ = z_(), Rr = ia, Lr = ra, Z_ = J_("%Math.floor
16767
16785
  };
16768
16786
  l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
16769
16787
  })(Ac);
16770
- var qs = Ac.exports, Rc = cn, Lc = qs, tS = Lc(Rc("String.prototype.indexOf")), xs = function(e, t) {
16771
- var n = Rc(e, !!t);
16788
+ var qs = Ac.exports, wc = cn, Lc = qs, tS = Lc(wc("String.prototype.indexOf")), xs = function(e, t) {
16789
+ var n = wc(e, !!t);
16772
16790
  return typeof n == "function" && tS(e, ".prototype.") > -1 ? Lc(n) : n;
16773
16791
  }, nS = oa(), aS = xs, ss = aS("Object.prototype.toString"), ca = function(e) {
16774
16792
  return nS && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : ss(e) === "[object Arguments]";
@@ -16801,21 +16819,21 @@ var oS = sS ? ca : Pc, rS = Object.prototype.toString, iS = Function.prototype.t
16801
16819
  va = n ? Oa(n) : !1;
16802
16820
  }
16803
16821
  return Oa(e) === va;
16804
- }, Dc = Function.prototype.toString, Rt = typeof Reflect == "object" && Reflect !== null && Reflect.apply, os, Rn;
16805
- if (typeof Rt == "function" && typeof Object.defineProperty == "function")
16822
+ }, Dc = Function.prototype.toString, wt = typeof Reflect == "object" && Reflect !== null && Reflect.apply, os, wn;
16823
+ if (typeof wt == "function" && typeof Object.defineProperty == "function")
16806
16824
  try {
16807
16825
  os = Object.defineProperty({}, "length", {
16808
16826
  get: function() {
16809
- throw Rn;
16827
+ throw wn;
16810
16828
  }
16811
- }), Rn = {}, Rt(function() {
16829
+ }), wn = {}, wt(function() {
16812
16830
  throw 42;
16813
16831
  }, null, os);
16814
16832
  } catch (e) {
16815
- e !== Rn && (Rt = null);
16833
+ e !== wn && (wt = null);
16816
16834
  }
16817
16835
  else
16818
- Rt = null;
16836
+ wt = null;
16819
16837
  var uS = /^\s*class\b/, rs = function(e) {
16820
16838
  try {
16821
16839
  var t = Dc.call(e);
@@ -16844,15 +16862,15 @@ if (typeof document == "object") {
16844
16862
  return !1;
16845
16863
  });
16846
16864
  }
16847
- var SS = Rt ? function(e) {
16865
+ var SS = wt ? function(e) {
16848
16866
  if (is(e))
16849
16867
  return !0;
16850
16868
  if (!e || typeof e != "function" && typeof e != "object")
16851
16869
  return !1;
16852
16870
  try {
16853
- Rt(e, null, os);
16871
+ wt(e, null, os);
16854
16872
  } catch (t) {
16855
- if (t !== Rn)
16873
+ if (t !== wn)
16856
16874
  return !1;
16857
16875
  }
16858
16876
  return !rs(e) && Aa(e);
@@ -16893,22 +16911,22 @@ var SS = Rt ? function(e) {
16893
16911
  "Uint32Array",
16894
16912
  "BigInt64Array",
16895
16913
  "BigUint64Array"
16896
- ], wa = AS, wS = typeof globalThis > "u" ? Cs : globalThis, Fc = function() {
16897
- for (var e = [], t = 0; t < wa.length; t++)
16898
- typeof wS[wa[t]] == "function" && (e[e.length] = wa[t]);
16914
+ ], Ra = AS, RS = typeof globalThis > "u" ? Cs : globalThis, Fc = function() {
16915
+ for (var e = [], t = 0; t < Ra.length; t++)
16916
+ typeof RS[Ra[t]] == "function" && (e[e.length] = Ra[t]);
16899
16917
  return e;
16900
- }, Hn = Uc, RS = Fc, Pr = qs, Hs = xs, Pn = ia, LS = Hs("Object.prototype.toString"), Bc = oa(), Mr = typeof globalThis > "u" ? Cs : globalThis, cs = RS(), Qs = Hs("String.prototype.slice"), Ra = Object.getPrototypeOf, PS = Hs("Array.prototype.indexOf", !0) || function(e, t) {
16918
+ }, Hn = Uc, wS = Fc, Pr = qs, Hs = xs, Pn = ia, LS = Hs("Object.prototype.toString"), Bc = oa(), Mr = typeof globalThis > "u" ? Cs : globalThis, cs = wS(), Qs = Hs("String.prototype.slice"), wa = Object.getPrototypeOf, PS = Hs("Array.prototype.indexOf", !0) || function(e, t) {
16901
16919
  for (var n = 0; n < e.length; n += 1)
16902
16920
  if (e[n] === t)
16903
16921
  return n;
16904
16922
  return -1;
16905
16923
  }, Qn = { __proto__: null };
16906
- Bc && Pn && Ra ? Hn(cs, function(e) {
16924
+ Bc && Pn && wa ? Hn(cs, function(e) {
16907
16925
  var t = new Mr[e]();
16908
16926
  if (Symbol.toStringTag in t) {
16909
- var n = Ra(t), a = Pn(n, Symbol.toStringTag);
16927
+ var n = wa(t), a = Pn(n, Symbol.toStringTag);
16910
16928
  if (!a) {
16911
- var s = Ra(n);
16929
+ var s = wa(n);
16912
16930
  a = Pn(s, Symbol.toStringTag);
16913
16931
  }
16914
16932
  Qn["$" + e] = Pr(a.get);
@@ -17042,14 +17060,14 @@ var GS = function(e) {
17042
17060
  return a(b) === "Uint8ClampedArray";
17043
17061
  }
17044
17062
  e.isUint8ClampedArray = O;
17045
- function w(b) {
17063
+ function R(b) {
17046
17064
  return a(b) === "Uint16Array";
17047
17065
  }
17048
- e.isUint16Array = w;
17049
- function R(b) {
17066
+ e.isUint16Array = R;
17067
+ function w(b) {
17050
17068
  return a(b) === "Uint32Array";
17051
17069
  }
17052
- e.isUint32Array = R;
17070
+ e.isUint32Array = w;
17053
17071
  function v(b) {
17054
17072
  return a(b) === "Int8Array";
17055
17073
  }
@@ -17150,10 +17168,10 @@ var GS = function(e) {
17150
17168
  return l(b) === "[object Generator]";
17151
17169
  }
17152
17170
  e.isGeneratorObject = K;
17153
- function Re(b) {
17171
+ function we(b) {
17154
17172
  return l(b) === "[object WebAssembly.Module]";
17155
17173
  }
17156
- e.isWebAssemblyCompiledModule = Re;
17174
+ e.isWebAssemblyCompiledModule = we;
17157
17175
  function mt(b) {
17158
17176
  return g(b, m);
17159
17177
  }
@@ -17349,19 +17367,19 @@ var YS = ms.exports;
17349
17367
  if (Q(S))
17350
17368
  return y(S);
17351
17369
  }
17352
- var K = "", Re = !1, mt = ["{", "}"];
17353
- if (_(S) && (Re = !0, mt = ["[", "]"]), V(S)) {
17370
+ var K = "", we = !1, mt = ["{", "}"];
17371
+ if (_(S) && (we = !0, mt = ["[", "]"]), V(S)) {
17354
17372
  var ln = S.name ? ": " + S.name : "";
17355
17373
  K = " [Function" + ln + "]";
17356
17374
  }
17357
- if (B(S) && (K = " " + RegExp.prototype.toString.call(S)), H(S) && (K = " " + Date.prototype.toUTCString.call(S)), Q(S) && (K = " " + y(S)), Y.length === 0 && (!Re || S.length == 0))
17375
+ if (B(S) && (K = " " + RegExp.prototype.toString.call(S)), H(S) && (K = " " + Date.prototype.toUTCString.call(S)), Q(S) && (K = " " + y(S)), Y.length === 0 && (!we || S.length == 0))
17358
17376
  return mt[0] + K + mt[1];
17359
17377
  if (N < 0)
17360
17378
  return B(S) ? k.stylize(RegExp.prototype.toString.call(S), "regexp") : k.stylize("[Object]", "special");
17361
17379
  k.seen.push(S);
17362
17380
  var bt;
17363
- return Re ? bt = T(k, S, N, q, Y) : bt = Y.map(function(mn) {
17364
- return g(k, S, N, q, mn, Re);
17381
+ return we ? bt = T(k, S, N, q, Y) : bt = Y.map(function(mn) {
17382
+ return g(k, S, N, q, mn, we);
17365
17383
  }), k.seen.pop(), f(bt, K, mt);
17366
17384
  }
17367
17385
  function d(k, S) {
@@ -17371,7 +17389,7 @@ var YS = ms.exports;
17371
17389
  var N = "'" + JSON.stringify(S).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
17372
17390
  return k.stylize(N, "string");
17373
17391
  }
17374
- if (R(S))
17392
+ if (w(S))
17375
17393
  return k.stylize("" + S, "number");
17376
17394
  if (h(S))
17377
17395
  return k.stylize("" + S, "boolean");
@@ -17406,13 +17424,13 @@ var YS = ms.exports;
17406
17424
  var q, j, K;
17407
17425
  if (K = Object.getOwnPropertyDescriptor(S, X) || { value: S[X] }, K.get ? K.set ? j = k.stylize("[Getter/Setter]", "special") : j = k.stylize("[Getter]", "special") : K.set && (j = k.stylize("[Setter]", "special")), et(C, X) || (q = "[" + X + "]"), j || (k.seen.indexOf(K.value) < 0 ? (O(N) ? j = u(k, K.value, null) : j = u(k, K.value, N - 1), j.indexOf(`
17408
17426
  `) > -1 && (Y ? j = j.split(`
17409
- `).map(function(Re) {
17410
- return " " + Re;
17427
+ `).map(function(we) {
17428
+ return " " + we;
17411
17429
  }).join(`
17412
17430
  `).slice(2) : j = `
17413
17431
  ` + j.split(`
17414
- `).map(function(Re) {
17415
- return " " + Re;
17432
+ `).map(function(we) {
17433
+ return " " + we;
17416
17434
  }).join(`
17417
17435
  `))) : j = k.stylize("[Circular]", "special")), I(q)) {
17418
17436
  if (Y && X.match(/^\d+$/))
@@ -17443,14 +17461,14 @@ var YS = ms.exports;
17443
17461
  return k === null;
17444
17462
  }
17445
17463
  e.isNull = O;
17446
- function w(k) {
17464
+ function R(k) {
17447
17465
  return k == null;
17448
17466
  }
17449
- e.isNullOrUndefined = w;
17450
- function R(k) {
17467
+ e.isNullOrUndefined = R;
17468
+ function w(k) {
17451
17469
  return typeof k == "number";
17452
17470
  }
17453
- e.isNumber = R;
17471
+ e.isNumber = w;
17454
17472
  function v(k) {
17455
17473
  return typeof k == "string";
17456
17474
  }
@@ -17819,17 +17837,17 @@ function XS(e) {
17819
17837
  function f(..._) {
17820
17838
  if (!f.enabled)
17821
17839
  return;
17822
- const h = f, O = Number(/* @__PURE__ */ new Date()), w = O - (d || O);
17823
- h.diff = w, h.prev = d, h.curr = O, d = O, _[0] = n.coerce(_[0]), typeof _[0] != "string" && _.unshift("%O");
17824
- let R = 0;
17840
+ const h = f, O = Number(/* @__PURE__ */ new Date()), R = O - (d || O);
17841
+ h.diff = R, h.prev = d, h.curr = O, d = O, _[0] = n.coerce(_[0]), typeof _[0] != "string" && _.unshift("%O");
17842
+ let w = 0;
17825
17843
  _[0] = _[0].replace(/%([a-zA-Z%])/g, (v, P) => {
17826
17844
  if (v === "%%")
17827
17845
  return "%";
17828
- R++;
17846
+ w++;
17829
17847
  const I = n.formatters[P];
17830
17848
  if (typeof I == "function") {
17831
- const B = _[R];
17832
- v = I.call(h, B), _.splice(R, 1), R--;
17849
+ const B = _[w];
17850
+ v = I.call(h, B), _.splice(w, 1), w--;
17833
17851
  }
17834
17852
  return v;
17835
17853
  }), n.formatArgs.call(h, _), (h.log || n.log).apply(h, _);
@@ -18437,7 +18455,7 @@ const OE = ({
18437
18455
  f = !0;
18438
18456
  };
18439
18457
  const _ = bE(e, n, a, {
18440
- version: "1.15.0",
18458
+ version: "1.15.1",
18441
18459
  onDeepLinkHandled: s,
18442
18460
  videoPlayerController: o,
18443
18461
  onContentActivate: r,
@@ -18470,8 +18488,8 @@ export {
18470
18488
  W as S,
18471
18489
  U as a,
18472
18490
  Ya as b,
18473
- wm as c,
18474
- Rm as d,
18491
+ Rm as c,
18492
+ wm as d,
18475
18493
  vm as e,
18476
18494
  ie as f,
18477
18495
  Pm as g,