@streamlayer/react 1.15.2 → 1.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index2.js +3 -3
- package/lib/cjs/useStreamLayerApp2.js +5 -5
- package/lib/classic/cjs/index2.js +3 -3
- package/lib/classic/cjs/useStreamLayerApp2.js +5 -5
- package/lib/classic/es/index2.js +89 -85
- package/lib/classic/es/useStreamLayerApp2.js +154 -152
- package/lib/dist/cjs/masters.js +16 -16
- package/lib/dist/es/masters.js +531 -525
- package/lib/es/index2.js +89 -85
- package/lib/es/useStreamLayerApp2.js +154 -152
- package/package.json +14 -14
|
@@ -54,18 +54,18 @@ function Kc(e) {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
var je = [], wt = !1, pt,
|
|
57
|
+
var je = [], wt = !1, pt, kn = -1;
|
|
58
58
|
function zc() {
|
|
59
|
-
!wt || !pt || (wt = !1, pt.length ? je = pt.concat(je) :
|
|
59
|
+
!wt || !pt || (wt = !1, pt.length ? je = pt.concat(je) : kn = -1, je.length && qr());
|
|
60
60
|
}
|
|
61
61
|
function qr() {
|
|
62
62
|
if (!wt) {
|
|
63
63
|
var e = Vr(zc);
|
|
64
64
|
wt = !0;
|
|
65
65
|
for (var t = je.length; t; ) {
|
|
66
|
-
for (pt = je, je = []; ++
|
|
67
|
-
pt && pt[
|
|
68
|
-
|
|
66
|
+
for (pt = je, je = []; ++kn < t; )
|
|
67
|
+
pt && pt[kn].run();
|
|
68
|
+
kn = -1, t = je.length;
|
|
69
69
|
}
|
|
70
70
|
pt = null, wt = !1, Kc(e);
|
|
71
71
|
}
|
|
@@ -186,14 +186,14 @@ function Zc(e, t, n) {
|
|
|
186
186
|
}
|
|
187
187
|
const $s = Xc;
|
|
188
188
|
ls.exports = We;
|
|
189
|
-
const
|
|
190
|
-
mapHttpRequest:
|
|
191
|
-
mapHttpResponse:
|
|
189
|
+
const en = Tl().console || {}, el = {
|
|
190
|
+
mapHttpRequest: mn,
|
|
191
|
+
mapHttpResponse: mn,
|
|
192
192
|
wrapRequestSerializer: ra,
|
|
193
193
|
wrapResponseSerializer: ra,
|
|
194
194
|
wrapErrorSerializer: ra,
|
|
195
|
-
req:
|
|
196
|
-
res:
|
|
195
|
+
req: mn,
|
|
196
|
+
res: mn,
|
|
197
197
|
err: zs,
|
|
198
198
|
errWithCause: zs
|
|
199
199
|
};
|
|
@@ -218,7 +218,7 @@ function Ks(e, t) {
|
|
|
218
218
|
function nl(e, t, n) {
|
|
219
219
|
const a = {};
|
|
220
220
|
t.forEach((s) => {
|
|
221
|
-
a[s] = n[s] ? n[s] :
|
|
221
|
+
a[s] = n[s] ? n[s] : en[s] || en[tl[s] || "log"] || Lt;
|
|
222
222
|
}), e[ms] = a;
|
|
223
223
|
}
|
|
224
224
|
function al(e, t) {
|
|
@@ -231,7 +231,7 @@ function We(e) {
|
|
|
231
231
|
const t = e.browser.transmit;
|
|
232
232
|
if (t && typeof t.send != "function")
|
|
233
233
|
throw Error("pino: transmit option must have a send function");
|
|
234
|
-
const n = e.browser.write ||
|
|
234
|
+
const n = e.browser.write || en;
|
|
235
235
|
e.browser.write && (e.browser.asObject = !0);
|
|
236
236
|
const a = e.serializers || {}, s = al(e.browser.serialize, a);
|
|
237
237
|
let o = e.browser.serialize;
|
|
@@ -359,7 +359,7 @@ function il(e, t) {
|
|
|
359
359
|
function cl(e, t, n, a) {
|
|
360
360
|
return /* @__PURE__ */ function(s) {
|
|
361
361
|
return function() {
|
|
362
|
-
const i = t.timestamp(), c = new Array(arguments.length), l = Object.getPrototypeOf && Object.getPrototypeOf(this) ===
|
|
362
|
+
const i = t.timestamp(), c = new Array(arguments.length), l = Object.getPrototypeOf && Object.getPrototypeOf(this) === en ? en : this;
|
|
363
363
|
for (var m = 0; m < c.length; m++) c[m] = arguments[m];
|
|
364
364
|
var u = !1;
|
|
365
365
|
if (t.serialize && (us(c, this._serialize, this.serializers, this._stdErrSerialize), u = !0), t.asObject || t.formatters ? s.call(l, ll(this, a, c, i, t)) : s.apply(l, c), t.transmit) {
|
|
@@ -438,7 +438,7 @@ function zs(e) {
|
|
|
438
438
|
function ul(e) {
|
|
439
439
|
return typeof e.timestamp == "function" ? e.timestamp : e.timestamp === !1 ? Hr : Qr;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function mn() {
|
|
442
442
|
return {};
|
|
443
443
|
}
|
|
444
444
|
function ra(e) {
|
|
@@ -480,7 +480,7 @@ function Z(e, t) {
|
|
|
480
480
|
throw new Error(t);
|
|
481
481
|
}
|
|
482
482
|
const gl = 34028234663852886e22, fl = -34028234663852886e22, kl = 4294967295, hl = 2147483647, Sl = -2147483648;
|
|
483
|
-
function
|
|
483
|
+
function hn(e) {
|
|
484
484
|
if (typeof e != "number")
|
|
485
485
|
throw new Error("invalid int 32: " + typeof e);
|
|
486
486
|
if (!Number.isInteger(e) || e > hl || e < Sl)
|
|
@@ -540,7 +540,7 @@ function El(e, t, n) {
|
|
|
540
540
|
function zr(e) {
|
|
541
541
|
return "localName" in e ? e : Object.assign(Object.assign({}, e), { localName: e.name });
|
|
542
542
|
}
|
|
543
|
-
class
|
|
543
|
+
class nn {
|
|
544
544
|
/**
|
|
545
545
|
* Compare with a message of the same type.
|
|
546
546
|
* Note that this function disregards extensions and unknown fields.
|
|
@@ -645,7 +645,7 @@ function bl(e, t, n, a) {
|
|
|
645
645
|
e.util.initFields(this), e.util.initPartial(c, this);
|
|
646
646
|
}
|
|
647
647
|
}[o];
|
|
648
|
-
return Object.setPrototypeOf(i.prototype, new
|
|
648
|
+
return Object.setPrototypeOf(i.prototype, new nn()), Object.assign(i, {
|
|
649
649
|
runtime: e,
|
|
650
650
|
typeName: t,
|
|
651
651
|
fields: e.util.newFieldList(n),
|
|
@@ -696,7 +696,7 @@ function ia(e, t, n) {
|
|
|
696
696
|
n.push(t >>> 31 & 1);
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
|
-
const
|
|
699
|
+
const Sn = 4294967296;
|
|
700
700
|
function Ws(e) {
|
|
701
701
|
const t = e[0] === "-";
|
|
702
702
|
t && (e = e.slice(1));
|
|
@@ -704,7 +704,7 @@ function Ws(e) {
|
|
|
704
704
|
let a = 0, s = 0;
|
|
705
705
|
function o(i, c) {
|
|
706
706
|
const l = Number(e.slice(i, c));
|
|
707
|
-
s *= n, a = a * n + l, a >=
|
|
707
|
+
s *= n, a = a * n + l, a >= Sn && (s = s + (a / Sn | 0), a = a % Sn);
|
|
708
708
|
}
|
|
709
709
|
return o(-24, -18), o(-18, -12), o(-12, -6), o(-6), t ? Jr(a, s) : ds(a, s);
|
|
710
710
|
}
|
|
@@ -717,7 +717,7 @@ function Nl(e, t) {
|
|
|
717
717
|
}
|
|
718
718
|
function Wr(e, t) {
|
|
719
719
|
if ({ lo: e, hi: t } = Ol(e, t), t <= 2097151)
|
|
720
|
-
return String(
|
|
720
|
+
return String(Sn * 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, i = a + s * 8147497, c = s * 2;
|
|
723
723
|
const l = 1e7;
|
|
@@ -958,7 +958,7 @@ class Rl {
|
|
|
958
958
|
* Write a `int32` value, a signed 32 bit varint.
|
|
959
959
|
*/
|
|
960
960
|
int32(t) {
|
|
961
|
-
return
|
|
961
|
+
return hn(t), Xs(t, this.buf), this;
|
|
962
962
|
}
|
|
963
963
|
/**
|
|
964
964
|
* Write a `bool` value, a variant.
|
|
@@ -1006,7 +1006,7 @@ class Rl {
|
|
|
1006
1006
|
* Write a `sfixed32` value, a signed, fixed-length 32-bit integer.
|
|
1007
1007
|
*/
|
|
1008
1008
|
sfixed32(t) {
|
|
1009
|
-
|
|
1009
|
+
hn(t);
|
|
1010
1010
|
let n = new Uint8Array(4);
|
|
1011
1011
|
return new DataView(n.buffer).setInt32(0, t, !0), this.raw(n);
|
|
1012
1012
|
}
|
|
@@ -1014,7 +1014,7 @@ class Rl {
|
|
|
1014
1014
|
* Write a `sint32` value, a signed, zigzag-encoded 32-bit varint.
|
|
1015
1015
|
*/
|
|
1016
1016
|
sint32(t) {
|
|
1017
|
-
return
|
|
1017
|
+
return hn(t), t = (t << 1 ^ t >> 31) >>> 0, Xs(t, this.buf), this;
|
|
1018
1018
|
}
|
|
1019
1019
|
/**
|
|
1020
1020
|
* Write a `fixed64` value, a signed, fixed-length 64-bit integer.
|
|
@@ -1390,7 +1390,7 @@ function Zs(e, t) {
|
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
1392
1392
|
function gt(e, t) {
|
|
1393
|
-
if (e === null || typeof e != "object" || !Object.getOwnPropertyNames(
|
|
1393
|
+
if (e === null || typeof e != "object" || !Object.getOwnPropertyNames(nn.prototype).every((a) => a in e && typeof e[a] == "function"))
|
|
1394
1394
|
return !1;
|
|
1395
1395
|
const n = e.getType();
|
|
1396
1396
|
return n === null || typeof n != "function" || !("typeName" in n) || typeof n.typeName != "string" ? !1 : t === void 0 ? !0 : n.typeName == t.typeName;
|
|
@@ -1413,7 +1413,7 @@ function Ul(e) {
|
|
|
1413
1413
|
function Fl(e) {
|
|
1414
1414
|
return e ? Object.assign(Object.assign({}, to), e) : to;
|
|
1415
1415
|
}
|
|
1416
|
-
const Mn = Symbol(),
|
|
1416
|
+
const Mn = Symbol(), _n = Symbol();
|
|
1417
1417
|
function Bl() {
|
|
1418
1418
|
return {
|
|
1419
1419
|
makeReadOptions: Ul,
|
|
@@ -1481,11 +1481,11 @@ function Bl() {
|
|
|
1481
1481
|
return a;
|
|
1482
1482
|
},
|
|
1483
1483
|
readScalar(e, t, n) {
|
|
1484
|
-
return
|
|
1484
|
+
return zt(e, t, n ?? ot.BIGINT, !0);
|
|
1485
1485
|
},
|
|
1486
1486
|
writeScalar(e, t, n) {
|
|
1487
1487
|
if (t !== void 0 && (n || Xr(e, t)))
|
|
1488
|
-
return
|
|
1488
|
+
return En(e, t);
|
|
1489
1489
|
},
|
|
1490
1490
|
debug: De
|
|
1491
1491
|
};
|
|
@@ -1519,11 +1519,11 @@ function no(e, t, n, a, s) {
|
|
|
1519
1519
|
break;
|
|
1520
1520
|
case "enum":
|
|
1521
1521
|
const l = ca(n.T, c, a.ignoreUnknownFields, !0);
|
|
1522
|
-
l !==
|
|
1522
|
+
l !== _n && i.push(l);
|
|
1523
1523
|
break;
|
|
1524
1524
|
case "scalar":
|
|
1525
1525
|
try {
|
|
1526
|
-
i.push(
|
|
1526
|
+
i.push(zt(n.T, c, n.L, !0));
|
|
1527
1527
|
} catch (m) {
|
|
1528
1528
|
let u = `cannot decode field ${s.typeName}.${n.name} from JSON: ${De(c)}`;
|
|
1529
1529
|
throw m instanceof Error && m.message.length > 0 && (u += `: ${m.message}`), new Error(u);
|
|
@@ -1553,11 +1553,11 @@ function no(e, t, n, a, s) {
|
|
|
1553
1553
|
break;
|
|
1554
1554
|
case "enum":
|
|
1555
1555
|
const u = ca(n.V.T, l, a.ignoreUnknownFields, !0);
|
|
1556
|
-
u !==
|
|
1556
|
+
u !== _n && (i[m] = u);
|
|
1557
1557
|
break;
|
|
1558
1558
|
case "scalar":
|
|
1559
1559
|
try {
|
|
1560
|
-
i[m] =
|
|
1560
|
+
i[m] = zt(n.V.T, l, ot.BIGINT, !0);
|
|
1561
1561
|
} catch (d) {
|
|
1562
1562
|
let y = `cannot decode map value for field ${s.typeName}.${n.name} from JSON: ${De(t)}`;
|
|
1563
1563
|
throw d instanceof Error && d.message.length > 0 && (y += `: ${d.message}`), new Error(y);
|
|
@@ -1580,7 +1580,7 @@ function no(e, t, n, a, s) {
|
|
|
1580
1580
|
case Mn:
|
|
1581
1581
|
Zs(n, e);
|
|
1582
1582
|
break;
|
|
1583
|
-
case
|
|
1583
|
+
case _n:
|
|
1584
1584
|
break;
|
|
1585
1585
|
default:
|
|
1586
1586
|
e[o] = l;
|
|
@@ -1589,7 +1589,7 @@ function no(e, t, n, a, s) {
|
|
|
1589
1589
|
break;
|
|
1590
1590
|
case "scalar":
|
|
1591
1591
|
try {
|
|
1592
|
-
const m =
|
|
1592
|
+
const m = zt(n.T, t, n.L, !1);
|
|
1593
1593
|
switch (m) {
|
|
1594
1594
|
case Mn:
|
|
1595
1595
|
Zs(n, e);
|
|
@@ -1615,9 +1615,9 @@ function Gl(e, t) {
|
|
|
1615
1615
|
t = !1;
|
|
1616
1616
|
break;
|
|
1617
1617
|
}
|
|
1618
|
-
return
|
|
1618
|
+
return zt(e, t, ot.BIGINT, !0).toString();
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function zt(e, t, n, a) {
|
|
1621
1621
|
if (t === null)
|
|
1622
1622
|
return a ? Ct(e, n) : Mn;
|
|
1623
1623
|
switch (e) {
|
|
@@ -1643,7 +1643,7 @@ function Kt(e, t, n, a) {
|
|
|
1643
1643
|
let o;
|
|
1644
1644
|
if (typeof t == "number" ? o = t : typeof t == "string" && t.length > 0 && t.trim().length === t.length && (o = Number(t)), o === void 0)
|
|
1645
1645
|
break;
|
|
1646
|
-
return e == S.UINT32 || e == S.FIXED32 ? qa(o) :
|
|
1646
|
+
return e == S.UINT32 || e == S.FIXED32 ? qa(o) : hn(o), o;
|
|
1647
1647
|
case S.INT64:
|
|
1648
1648
|
case S.SFIXED64:
|
|
1649
1649
|
case S.SINT64:
|
|
@@ -1692,7 +1692,7 @@ function ca(e, t, n, a) {
|
|
|
1692
1692
|
if (s !== void 0)
|
|
1693
1693
|
return s.no;
|
|
1694
1694
|
if (n)
|
|
1695
|
-
return
|
|
1695
|
+
return _n;
|
|
1696
1696
|
break;
|
|
1697
1697
|
}
|
|
1698
1698
|
throw new Error(`cannot decode enum ${e.typeName} from JSON: ${De(t)}`);
|
|
@@ -1707,7 +1707,7 @@ function ao(e, t, n) {
|
|
|
1707
1707
|
switch (e.V.kind) {
|
|
1708
1708
|
case "scalar":
|
|
1709
1709
|
for (const [i, c] of s)
|
|
1710
|
-
a[i.toString()] =
|
|
1710
|
+
a[i.toString()] = En(e.V.T, c);
|
|
1711
1711
|
break;
|
|
1712
1712
|
case "message":
|
|
1713
1713
|
for (const [i, c] of s)
|
|
@@ -1727,7 +1727,7 @@ function ao(e, t, n) {
|
|
|
1727
1727
|
switch (e.kind) {
|
|
1728
1728
|
case "scalar":
|
|
1729
1729
|
for (let s = 0; s < t.length; s++)
|
|
1730
|
-
a.push(
|
|
1730
|
+
a.push(En(e.T, t[s]));
|
|
1731
1731
|
break;
|
|
1732
1732
|
case "enum":
|
|
1733
1733
|
for (let s = 0; s < t.length; s++)
|
|
@@ -1742,7 +1742,7 @@ function ao(e, t, n) {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
switch (e.kind) {
|
|
1744
1744
|
case "scalar":
|
|
1745
|
-
return
|
|
1745
|
+
return En(e.T, t);
|
|
1746
1746
|
case "enum":
|
|
1747
1747
|
return la(e.T, t, n.enumAsInteger);
|
|
1748
1748
|
case "message":
|
|
@@ -1758,7 +1758,7 @@ function la(e, t, n) {
|
|
|
1758
1758
|
const s = e.findNumber(t);
|
|
1759
1759
|
return (a = s == null ? void 0 : s.name) !== null && a !== void 0 ? a : t;
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1761
|
+
function En(e, t) {
|
|
1762
1762
|
switch (e) {
|
|
1763
1763
|
case S.INT32:
|
|
1764
1764
|
case S.SFIXED32:
|
|
@@ -1872,7 +1872,7 @@ function ro(e, t, n, a, s) {
|
|
|
1872
1872
|
break;
|
|
1873
1873
|
case "message":
|
|
1874
1874
|
const m = n.T;
|
|
1875
|
-
o ? e[i].push(
|
|
1875
|
+
o ? e[i].push(bn(t, new m(), s, n)) : gt(e[i]) ? bn(t, e[i], s, n) : (e[i] = bn(t, new m(), s, n), m.fieldWrapper && !n.oneof && !n.repeated && (e[i] = m.fieldWrapper.unwrapField(e[i])));
|
|
1876
1876
|
break;
|
|
1877
1877
|
case "map":
|
|
1878
1878
|
let [u, d] = Ql(n, t, s);
|
|
@@ -1880,7 +1880,7 @@ function ro(e, t, n, a, s) {
|
|
|
1880
1880
|
break;
|
|
1881
1881
|
}
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1883
|
+
function bn(e, t, n, a) {
|
|
1884
1884
|
const s = t.getType().runtime.bin, o = a == null ? void 0 : a.delimited;
|
|
1885
1885
|
return s.readMessage(
|
|
1886
1886
|
t,
|
|
@@ -1909,7 +1909,7 @@ function Ql(e, t, n) {
|
|
|
1909
1909
|
i = t.int32();
|
|
1910
1910
|
break;
|
|
1911
1911
|
case "message":
|
|
1912
|
-
i =
|
|
1912
|
+
i = bn(t, new e.V.T(), n, void 0);
|
|
1913
1913
|
break;
|
|
1914
1914
|
}
|
|
1915
1915
|
break;
|
|
@@ -1979,9 +1979,9 @@ function io(e, t, n, a) {
|
|
|
1979
1979
|
$l(n, o, e.no, t);
|
|
1980
1980
|
else
|
|
1981
1981
|
for (const i of t)
|
|
1982
|
-
|
|
1982
|
+
Wt(n, o, e.no, i);
|
|
1983
1983
|
else
|
|
1984
|
-
|
|
1984
|
+
Wt(n, o, e.no, t);
|
|
1985
1985
|
break;
|
|
1986
1986
|
case "message":
|
|
1987
1987
|
if (s) {
|
|
@@ -2013,12 +2013,12 @@ function jl(e, t, n, a, s) {
|
|
|
2013
2013
|
Z(a == "true" || a == "false"), o = a == "true";
|
|
2014
2014
|
break;
|
|
2015
2015
|
}
|
|
2016
|
-
switch (
|
|
2016
|
+
switch (Wt(e, n.K, 1, o), n.V.kind) {
|
|
2017
2017
|
case "scalar":
|
|
2018
|
-
|
|
2018
|
+
Wt(e, n.V.T, 2, s);
|
|
2019
2019
|
break;
|
|
2020
2020
|
case "enum":
|
|
2021
|
-
|
|
2021
|
+
Wt(e, S.INT32, 2, s);
|
|
2022
2022
|
break;
|
|
2023
2023
|
case "message":
|
|
2024
2024
|
Z(s !== void 0), e.tag(2, te.LengthDelimited).bytes(s.toBinary(t));
|
|
@@ -2030,7 +2030,7 @@ function co(e, t, n, a) {
|
|
|
2030
2030
|
const s = ai(n.T, a);
|
|
2031
2031
|
n.delimited ? e.tag(n.no, te.StartGroup).raw(s.toBinary(t)).tag(n.no, te.EndGroup) : e.tag(n.no, te.LengthDelimited).bytes(s.toBinary(t));
|
|
2032
2032
|
}
|
|
2033
|
-
function
|
|
2033
|
+
function Wt(e, t, n, a) {
|
|
2034
2034
|
Z(a !== void 0);
|
|
2035
2035
|
let [s, o] = si(t);
|
|
2036
2036
|
e.tag(n, s)[o](a);
|
|
@@ -2182,12 +2182,12 @@ function Kl() {
|
|
|
2182
2182
|
const o = e[s.localName];
|
|
2183
2183
|
let i;
|
|
2184
2184
|
if (s.repeated)
|
|
2185
|
-
i = o.map(
|
|
2185
|
+
i = o.map(un);
|
|
2186
2186
|
else if (s.kind == "map") {
|
|
2187
2187
|
i = a[s.localName];
|
|
2188
2188
|
for (const [c, l] of Object.entries(o))
|
|
2189
|
-
i[c] =
|
|
2190
|
-
} else s.kind == "oneof" ? i = s.findField(o.case) ? { case: o.case, value:
|
|
2189
|
+
i[c] = un(l);
|
|
2190
|
+
} else s.kind == "oneof" ? i = s.findField(o.case) ? { case: o.case, value: un(o.value) } : { case: void 0 } : i = un(o);
|
|
2191
2191
|
a[s.localName] = i;
|
|
2192
2192
|
}
|
|
2193
2193
|
for (const s of t.runtime.bin.listUnknownFields(e))
|
|
@@ -2196,7 +2196,7 @@ function Kl() {
|
|
|
2196
2196
|
}
|
|
2197
2197
|
};
|
|
2198
2198
|
}
|
|
2199
|
-
function
|
|
2199
|
+
function un(e) {
|
|
2200
2200
|
if (e === void 0)
|
|
2201
2201
|
return e;
|
|
2202
2202
|
if (gt(e))
|
|
@@ -2393,7 +2393,7 @@ var lo;
|
|
|
2393
2393
|
(function(e) {
|
|
2394
2394
|
e[e.NoSideEffects = 1] = "NoSideEffects", e[e.Idempotent = 2] = "Idempotent";
|
|
2395
2395
|
})(lo || (lo = {}));
|
|
2396
|
-
class fe extends
|
|
2396
|
+
class fe extends nn {
|
|
2397
2397
|
constructor(t) {
|
|
2398
2398
|
super(), this.seconds = Te.zero, this.nanos = 0, r.util.initPartial(t, this);
|
|
2399
2399
|
}
|
|
@@ -2467,7 +2467,7 @@ fe.fields = r.util.newFieldList(() => [
|
|
|
2467
2467
|
/* ScalarType.INT32 */
|
|
2468
2468
|
}
|
|
2469
2469
|
]);
|
|
2470
|
-
class Ge extends
|
|
2470
|
+
class Ge extends nn {
|
|
2471
2471
|
constructor(t) {
|
|
2472
2472
|
super(), this.typeUrl = "", this.value = new Uint8Array(0), r.util.initPartial(t, this);
|
|
2473
2473
|
}
|
|
@@ -2972,12 +2972,12 @@ const om = /* @__PURE__ */ r.makeEnum(
|
|
|
2972
2972
|
), ci = /* @__PURE__ */ r.makeMessageType(
|
|
2973
2973
|
"streamlayer.social.TweetMediaSizes",
|
|
2974
2974
|
() => [
|
|
2975
|
-
{ no: 1, name: "thumb", kind: "message", T:
|
|
2976
|
-
{ no: 2, name: "large", kind: "message", T:
|
|
2977
|
-
{ no: 3, name: "medium", kind: "message", T:
|
|
2978
|
-
{ no: 4, name: "small", kind: "message", T:
|
|
2975
|
+
{ no: 1, name: "thumb", kind: "message", T: dn },
|
|
2976
|
+
{ no: 2, name: "large", kind: "message", T: dn },
|
|
2977
|
+
{ no: 3, name: "medium", kind: "message", T: dn },
|
|
2978
|
+
{ no: 4, name: "small", kind: "message", T: dn }
|
|
2979
2979
|
]
|
|
2980
|
-
),
|
|
2980
|
+
), dn = /* @__PURE__ */ r.makeMessageType(
|
|
2981
2981
|
"streamlayer.social.TweetMediaSize",
|
|
2982
2982
|
() => [
|
|
2983
2983
|
{
|
|
@@ -6601,8 +6601,8 @@ function yp() {
|
|
|
6601
6601
|
};
|
|
6602
6602
|
}
|
|
6603
6603
|
let Oe = [], nt = 0;
|
|
6604
|
-
const
|
|
6605
|
-
let
|
|
6604
|
+
const pn = 4;
|
|
6605
|
+
let In = 0, it = (e) => {
|
|
6606
6606
|
let t = [], n = {
|
|
6607
6607
|
get() {
|
|
6608
6608
|
return n.lc || n.listen(() => {
|
|
@@ -6611,14 +6611,14 @@ let bn = 0, it = (e) => {
|
|
|
6611
6611
|
lc: 0,
|
|
6612
6612
|
listen(a) {
|
|
6613
6613
|
return n.lc = t.push(a), () => {
|
|
6614
|
-
for (let o = nt +
|
|
6615
|
-
Oe[o] === a ? Oe.splice(o,
|
|
6614
|
+
for (let o = nt + pn; o < Oe.length; )
|
|
6615
|
+
Oe[o] === a ? Oe.splice(o, pn) : o += pn;
|
|
6616
6616
|
let s = t.indexOf(a);
|
|
6617
6617
|
~s && (t.splice(s, 1), --n.lc || n.off());
|
|
6618
6618
|
};
|
|
6619
6619
|
},
|
|
6620
6620
|
notify(a, s) {
|
|
6621
|
-
|
|
6621
|
+
In++;
|
|
6622
6622
|
let o = !Oe.length;
|
|
6623
6623
|
for (let i of t)
|
|
6624
6624
|
Oe.push(
|
|
@@ -6628,7 +6628,7 @@ let bn = 0, it = (e) => {
|
|
|
6628
6628
|
s
|
|
6629
6629
|
);
|
|
6630
6630
|
if (o) {
|
|
6631
|
-
for (nt = 0; nt < Oe.length; nt +=
|
|
6631
|
+
for (nt = 0; nt < Oe.length; nt += pn)
|
|
6632
6632
|
Oe[nt](
|
|
6633
6633
|
Oe[nt + 1],
|
|
6634
6634
|
Oe[nt + 2],
|
|
@@ -6653,15 +6653,15 @@ let bn = 0, it = (e) => {
|
|
|
6653
6653
|
};
|
|
6654
6654
|
return n;
|
|
6655
6655
|
};
|
|
6656
|
-
const gp = 0, fp = 1, kp = 5,
|
|
6657
|
-
let Ns = (e, t, n, a) => (e.events = e.events || {}, e.events[n +
|
|
6656
|
+
const gp = 0, fp = 1, kp = 5, Tn = 6, yn = 10;
|
|
6657
|
+
let Ns = (e, t, n, a) => (e.events = e.events || {}, e.events[n + yn] || (e.events[n + yn] = a((s) => {
|
|
6658
6658
|
e.events[n].reduceRight((o, i) => (i(o), o), {
|
|
6659
6659
|
shared: {},
|
|
6660
6660
|
...s
|
|
6661
6661
|
});
|
|
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
|
-
s.splice(o, 1), s.length || (delete e.events[n], e.events[n +
|
|
6664
|
+
s.splice(o, 1), s.length || (delete e.events[n], e.events[n + yn](), delete e.events[n + yn]);
|
|
6665
6665
|
}), hp = (e, t) => Ns(e, t, gp, (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)), () => {
|
|
@@ -6676,17 +6676,17 @@ let Ns = (e, t, n, a) => (e.events = e.events || {}, e.events[n + Tn] || (e.even
|
|
|
6676
6676
|
};
|
|
6677
6677
|
}), _p = 1e3, Kn = (e, t) => Ns(e, (a) => {
|
|
6678
6678
|
let s = t(a);
|
|
6679
|
-
s && e.events[
|
|
6679
|
+
s && e.events[Tn].push(s);
|
|
6680
6680
|
}, kp, (a) => {
|
|
6681
6681
|
let s = e.listen;
|
|
6682
6682
|
e.listen = (...i) => (!e.lc && !e.active && (e.active = !0, a()), s(...i));
|
|
6683
6683
|
let o = e.off;
|
|
6684
|
-
return e.events[
|
|
6684
|
+
return e.events[Tn] = [], e.off = () => {
|
|
6685
6685
|
o(), setTimeout(() => {
|
|
6686
6686
|
if (e.active && !e.lc) {
|
|
6687
6687
|
e.active = !1;
|
|
6688
|
-
for (let i of e.events[
|
|
6689
|
-
e.events[
|
|
6688
|
+
for (let i of e.events[Tn]) i();
|
|
6689
|
+
e.events[Tn] = [];
|
|
6690
6690
|
}
|
|
6691
6691
|
}, _p);
|
|
6692
6692
|
}, () => {
|
|
@@ -6695,15 +6695,15 @@ let Ns = (e, t, n, a) => (e.events = e.events || {}, e.events[n + Tn] || (e.even
|
|
|
6695
6695
|
}), Ai = (e, t, n) => {
|
|
6696
6696
|
Array.isArray(e) || (e = [e]);
|
|
6697
6697
|
let a, s, o = () => {
|
|
6698
|
-
if (s ===
|
|
6699
|
-
s =
|
|
6698
|
+
if (s === In) return;
|
|
6699
|
+
s = In;
|
|
6700
6700
|
let u = e.map((d) => d.get());
|
|
6701
6701
|
if (!a || u.some((d, y) => d !== a[y])) {
|
|
6702
6702
|
a = u;
|
|
6703
6703
|
let d = t(...u);
|
|
6704
6704
|
d && d.then && d.t ? d.then((y) => {
|
|
6705
6705
|
a === u && i.set(y);
|
|
6706
|
-
}) : (i.set(d), s =
|
|
6706
|
+
}) : (i.set(d), s = In);
|
|
6707
6707
|
}
|
|
6708
6708
|
}, i = it(void 0), c = i.get;
|
|
6709
6709
|
i.get = () => (o(), c());
|
|
@@ -6898,8 +6898,8 @@ var wp = function(e) {
|
|
|
6898
6898
|
o({ value: m, done: c });
|
|
6899
6899
|
}, i);
|
|
6900
6900
|
}
|
|
6901
|
-
},
|
|
6902
|
-
return this instanceof
|
|
6901
|
+
}, tn = function(e) {
|
|
6902
|
+
return this instanceof tn ? (this.v = e, this) : new tn(e);
|
|
6903
6903
|
}, Lp = function(e, t, n) {
|
|
6904
6904
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
6905
6905
|
var a = n.apply(e, t || []), s, o = [];
|
|
@@ -6926,7 +6926,7 @@ var wp = function(e) {
|
|
|
6926
6926
|
}
|
|
6927
6927
|
}
|
|
6928
6928
|
function m(T) {
|
|
6929
|
-
T.value instanceof
|
|
6929
|
+
T.value instanceof tn ? Promise.resolve(T.value.v).then(u, d) : y(o[0][2], T);
|
|
6930
6930
|
}
|
|
6931
6931
|
function u(T) {
|
|
6932
6932
|
l("next", T);
|
|
@@ -6946,13 +6946,13 @@ var wp = function(e) {
|
|
|
6946
6946
|
}, t;
|
|
6947
6947
|
function a(s, o) {
|
|
6948
6948
|
t[s] = e[s] ? function(i) {
|
|
6949
|
-
return (n = !n) ? { value:
|
|
6949
|
+
return (n = !n) ? { value: tn(e[s](i)), done: !1 } : o ? o(i) : i;
|
|
6950
6950
|
} : o;
|
|
6951
6951
|
}
|
|
6952
6952
|
};
|
|
6953
6953
|
function Mp(e) {
|
|
6954
6954
|
return Lp(this, arguments, function* () {
|
|
6955
|
-
yield
|
|
6955
|
+
yield tn(yield* Pp(wp(e)));
|
|
6956
6956
|
});
|
|
6957
6957
|
}
|
|
6958
6958
|
var Ri = function(e) {
|
|
@@ -7163,7 +7163,7 @@ function bo(e) {
|
|
|
7163
7163
|
return t;
|
|
7164
7164
|
}
|
|
7165
7165
|
const xp = "Content-Type", Hp = "Grpc-Timeout", Ft = "Grpc-Status", Pi = "Grpc-Message", Qp = "Grpc-Status-Details-Bin", Yp = "X-User-Agent", jp = "X-Grpc-Web", $p = "application/grpc-web+proto", Kp = "application/grpc-web+json";
|
|
7166
|
-
class $e extends
|
|
7166
|
+
class $e extends nn {
|
|
7167
7167
|
constructor(t) {
|
|
7168
7168
|
super(), this.code = 0, this.message = "", this.details = [], r.util.initPartial(t, this);
|
|
7169
7169
|
}
|
|
@@ -11289,7 +11289,7 @@ const Do = 1, Co = 2, Uo = 3, pa = 4, Fo = (e, t) => {
|
|
|
11289
11289
|
{ no: 3, name: "attributes", kind: "message", T: Oi }
|
|
11290
11290
|
],
|
|
11291
11291
|
{ localName: "OrganizationSubscriptionResponse_ResponseData" }
|
|
11292
|
-
),
|
|
11292
|
+
), an = {
|
|
11293
11293
|
typeName: "streamlayer.sdkSettings.client.Client",
|
|
11294
11294
|
methods: {
|
|
11295
11295
|
/**
|
|
@@ -12768,18 +12768,18 @@ function pk(e) {
|
|
|
12768
12768
|
}
|
|
12769
12769
|
}
|
|
12770
12770
|
}
|
|
12771
|
-
var Ke = [], Pt = !1, yt,
|
|
12771
|
+
var Ke = [], Pt = !1, yt, Nn = -1;
|
|
12772
12772
|
function Tk() {
|
|
12773
|
-
!Pt || !yt || (Pt = !1, yt.length ? Ke = yt.concat(Ke) :
|
|
12773
|
+
!Pt || !yt || (Pt = !1, yt.length ? Ke = yt.concat(Ke) : Nn = -1, Ke.length && ec());
|
|
12774
12774
|
}
|
|
12775
12775
|
function ec() {
|
|
12776
12776
|
if (!Pt) {
|
|
12777
12777
|
var e = Zi(Tk);
|
|
12778
12778
|
Pt = !0;
|
|
12779
12779
|
for (var t = Ke.length; t; ) {
|
|
12780
|
-
for (yt = Ke, Ke = []; ++
|
|
12781
|
-
yt && yt[
|
|
12782
|
-
|
|
12780
|
+
for (yt = Ke, Ke = []; ++Nn < t; )
|
|
12781
|
+
yt && yt[Nn].run();
|
|
12782
|
+
Nn = -1, t = Ke.length;
|
|
12783
12783
|
}
|
|
12784
12784
|
yt = null, Pt = !1, pk(e);
|
|
12785
12785
|
}
|
|
@@ -12919,10 +12919,10 @@ const Ek = {
|
|
|
12919
12919
|
[z.PUBLIC_CHAT]: "publicChat",
|
|
12920
12920
|
[z.TWITTER]: "twitter"
|
|
12921
12921
|
};
|
|
12922
|
-
var
|
|
12922
|
+
var Jt;
|
|
12923
12923
|
(function(e) {
|
|
12924
12924
|
e.Ready = "ready", e.Suspended = "suspended";
|
|
12925
|
-
})(
|
|
12925
|
+
})(Jt || (Jt = {}));
|
|
12926
12926
|
class nc {
|
|
12927
12927
|
constructor({ settings: t, ...n }, a) {
|
|
12928
12928
|
p(this, "status");
|
|
@@ -12932,10 +12932,10 @@ class nc {
|
|
|
12932
12932
|
p(this, "listeners", /* @__PURE__ */ new Set());
|
|
12933
12933
|
p(this, "settingsKey");
|
|
12934
12934
|
p(this, "enable", () => {
|
|
12935
|
-
this.status.set(
|
|
12935
|
+
this.status.set(Jt.Ready);
|
|
12936
12936
|
});
|
|
12937
12937
|
p(this, "disable", () => {
|
|
12938
|
-
this.status.set(
|
|
12938
|
+
this.status.set(Jt.Suspended);
|
|
12939
12939
|
});
|
|
12940
12940
|
p(this, "setFeatureConfig", ({ settings: t, ...n }) => {
|
|
12941
12941
|
var s;
|
|
@@ -12954,7 +12954,7 @@ class nc {
|
|
|
12954
12954
|
p(this, "update", (t, n) => {
|
|
12955
12955
|
this.source === He.STREAM && n === He.ORGANIZATION || (this.setFeatureConfig(t), this.source = n);
|
|
12956
12956
|
});
|
|
12957
|
-
this.settingsKey = Ek[n.type], this.status = it(
|
|
12957
|
+
this.settingsKey = Ek[n.type], this.status = it(Jt.Suspended), this.config = new ft(Ie(n), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && (t == null ? void 0 : t.overlaySettings.case) === this.settingsKey ? this.settings = new ft(Ie(t.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new ft(Ie({}), `feature:settings:${this.settingsKey}`), this.source = a;
|
|
12958
12958
|
}
|
|
12959
12959
|
get featureConfig() {
|
|
12960
12960
|
return this.config.getStore();
|
|
@@ -13097,7 +13097,7 @@ function ac(e) {
|
|
|
13097
13097
|
e.name === "QuotaExceededError" || // Firefox
|
|
13098
13098
|
e.name === "NS_ERROR_DOM_QUOTA_REACHED");
|
|
13099
13099
|
}
|
|
13100
|
-
class
|
|
13100
|
+
class sn {
|
|
13101
13101
|
constructor(t = "main", n = window.localStorage) {
|
|
13102
13102
|
p(this, "delimiter", ":");
|
|
13103
13103
|
p(this, "prefix");
|
|
@@ -13423,7 +13423,7 @@ const wk = (e, t) => {
|
|
|
13423
13423
|
}
|
|
13424
13424
|
});
|
|
13425
13425
|
}, Lk = (e, t) => {
|
|
13426
|
-
const { client: n, queryKey: a } = t.createPromiseClient(
|
|
13426
|
+
const { client: n, queryKey: a } = t.createPromiseClient(an, { method: "getStream", params: [e] });
|
|
13427
13427
|
return t.nanoquery.createFetcherStore(a, {
|
|
13428
13428
|
fetcher: async (s, o, i) => {
|
|
13429
13429
|
var c;
|
|
@@ -13457,7 +13457,7 @@ const wk = (e, t) => {
|
|
|
13457
13457
|
const { client: t, createRequestOptions: n } = e.createPromiseClient(Rs, { method: "bypassAuth" }), a = n({ retryAttempts: 0 });
|
|
13458
13458
|
return ({ userKey: s, schema: o, init: i, inviterKey: c }) => t.bypassAuth({ userKey: s, schema: o, init: i, inviterKey: c }, { contextValues: a });
|
|
13459
13459
|
}, Ck = (e, t) => {
|
|
13460
|
-
const { client: n, queryKey: a } = t.createPromiseClient(
|
|
13460
|
+
const { client: n, queryKey: a } = t.createPromiseClient(an, { method: "get", params: [e] });
|
|
13461
13461
|
return t.nanoquery.createFetcherStore(a, {
|
|
13462
13462
|
fetcher: async () => {
|
|
13463
13463
|
var s;
|
|
@@ -13465,7 +13465,7 @@ const wk = (e, t) => {
|
|
|
13465
13465
|
}
|
|
13466
13466
|
});
|
|
13467
13467
|
}, Uk = (e, t) => {
|
|
13468
|
-
const { client: n, queryKey: a } = t.createPromiseClient(
|
|
13468
|
+
const { client: n, queryKey: a } = t.createPromiseClient(an, { method: "getOrganization", params: [e] });
|
|
13469
13469
|
return t.nanoquery.createFetcherStore(a, {
|
|
13470
13470
|
fetcher: async () => {
|
|
13471
13471
|
const s = await n.getOrganization({});
|
|
@@ -13476,7 +13476,7 @@ const wk = (e, t) => {
|
|
|
13476
13476
|
}
|
|
13477
13477
|
});
|
|
13478
13478
|
}, Fk = (e, t) => {
|
|
13479
|
-
const { client: n, queryKey: a } = t.createPromiseClient(
|
|
13479
|
+
const { client: n, queryKey: a } = t.createPromiseClient(an, {
|
|
13480
13480
|
method: "getOrganizationAdvertising",
|
|
13481
13481
|
params: [e]
|
|
13482
13482
|
});
|
|
@@ -13501,7 +13501,7 @@ var qe;
|
|
|
13501
13501
|
(function(e) {
|
|
13502
13502
|
e.SCHEMA = "schema", e.EXTERNAL_TOKEN = "eToken", e.TOKEN = "token";
|
|
13503
13503
|
})(qe || (qe = {}));
|
|
13504
|
-
class At extends
|
|
13504
|
+
class At extends sn {
|
|
13505
13505
|
constructor() {
|
|
13506
13506
|
super("user");
|
|
13507
13507
|
// Schema
|
|
@@ -13674,7 +13674,7 @@ const Hk = (e, t, n) => {
|
|
|
13674
13674
|
return (s = (a = (await n.questionByUser({
|
|
13675
13675
|
questionId: e
|
|
13676
13676
|
})).data) == null ? void 0 : a.attributes) == null ? void 0 : s.question;
|
|
13677
|
-
}, ha = /* @__PURE__ */ new Map(),
|
|
13677
|
+
}, ha = /* @__PURE__ */ new Map(), Kt = (e, t) => {
|
|
13678
13678
|
const { client: n, queryKey: a, queryKeyStr: s } = t.createPromiseClient(Re, {
|
|
13679
13679
|
method: "questionByUser",
|
|
13680
13680
|
params: [e]
|
|
@@ -13787,7 +13787,7 @@ const Hk = (e, t, n) => {
|
|
|
13787
13787
|
return;
|
|
13788
13788
|
const c = (m = n.get().data) == null ? void 0 : m.find((d) => d.id === (i == null ? void 0 : i.questionId)), l = (u = i == null ? void 0 : i.question) == null ? void 0 : u.openedFrom;
|
|
13789
13789
|
return c ? (c.openedFrom = l, c) : i.question;
|
|
13790
|
-
}), s = yo(a, (i) => i && i.type === "question" ? i.id : void 0), o =
|
|
13790
|
+
}), s = yo(a, (i) => i && i.type === "question" ? i.id : void 0), o = Kt(s, e);
|
|
13791
13791
|
return { $store: a, $extendedStore: o, updateExtendedQuestion: (i) => {
|
|
13792
13792
|
const c = o.get().data, l = (m, u) => {
|
|
13793
13793
|
if (!m || !u)
|
|
@@ -13816,7 +13816,7 @@ var Le;
|
|
|
13816
13816
|
(function(e) {
|
|
13817
13817
|
e.ONBOARDING = "onboarding", e.ONBOARDING_IO = "onboarding_io", e.QUESTION_RECEIVED = "q-received", e.QUESTION_OPENED = "q-opened";
|
|
13818
13818
|
})(Le || (Le = {}));
|
|
13819
|
-
class eh extends
|
|
13819
|
+
class eh extends sn {
|
|
13820
13820
|
constructor() {
|
|
13821
13821
|
super("gamification-session", window.sessionStorage);
|
|
13822
13822
|
p(this, "writeValue", (n, a) => {
|
|
@@ -13825,7 +13825,7 @@ class eh extends an {
|
|
|
13825
13825
|
p(this, "readValue", (n) => this.read(...n));
|
|
13826
13826
|
}
|
|
13827
13827
|
}
|
|
13828
|
-
class th extends
|
|
13828
|
+
class th extends sn {
|
|
13829
13829
|
constructor() {
|
|
13830
13830
|
super("gamification");
|
|
13831
13831
|
p(this, "sessionStorage");
|
|
@@ -13921,7 +13921,7 @@ class nh {
|
|
|
13921
13921
|
this.log.debug({ item: a }, "received question"), a != null && a.questionId ? (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (t.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0), this.questionSubscription = Wk(a.questionId, t.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (s) => {
|
|
13922
13922
|
var i, c, l;
|
|
13923
13923
|
const o = (c = (i = s.data) == null ? void 0 : i.attributes) == null ? void 0 : c.question;
|
|
13924
|
-
if (this.openedQuestion.updateExtendedQuestion(o), (o == null ? void 0 : o.type) === D.PREDICTION && (o.status === ne.ACTIVE || o.status === ne.RESOLVED)) {
|
|
13924
|
+
if (this.openedQuestion.updateExtendedQuestion(o), this.betPack && (o == null ? void 0 : o.type) === D.PREDICTION && (o.status === ne.ACTIVE || o.status === ne.RESOLVED)) {
|
|
13925
13925
|
const m = ((l = this.betPack.getValues().data) == null ? void 0 : l.data) || {}, u = m == null ? void 0 : m[o.id];
|
|
13926
13926
|
if (u) {
|
|
13927
13927
|
const d = [], y = u.answers.sort((g, k) => g.id > k.id ? 1 : -1), T = o.answers.sort((g, k) => g.id > k.id ? 1 : -1);
|
|
@@ -13953,7 +13953,7 @@ class nh {
|
|
|
13953
13953
|
})), this.feedSubscription = zk(this.slStreamId, t.transport), this.cancels.add(this.feedSubscription.addListener("bet-pack-update", async (a) => {
|
|
13954
13954
|
var o, i, c;
|
|
13955
13955
|
const s = (i = (o = a.data) == null ? void 0 : o.attributes) == null ? void 0 : i.question;
|
|
13956
|
-
if ((s == null ? void 0 : s.type) === D.PREDICTION && (s.status === ne.ACTIVE || s.status === ne.RESOLVED)) {
|
|
13956
|
+
if (this.betPack && (s == null ? void 0 : s.type) === D.PREDICTION && (s.status === ne.ACTIVE || s.status === ne.RESOLVED)) {
|
|
13957
13957
|
const l = ((c = this.betPack.getValues().data) == null ? void 0 : c.data) || {}, m = l == null ? void 0 : l[s.id];
|
|
13958
13958
|
if (m)
|
|
13959
13959
|
this.betPack.getStore().mutate({
|
|
@@ -14131,7 +14131,7 @@ var Fn;
|
|
|
14131
14131
|
(function(e) {
|
|
14132
14132
|
e.OPENED = "opened";
|
|
14133
14133
|
})(Fn || (Fn = {}));
|
|
14134
|
-
class sh extends
|
|
14134
|
+
class sh extends sn {
|
|
14135
14135
|
constructor() {
|
|
14136
14136
|
super("notification");
|
|
14137
14137
|
p(this, "setOpened", (n) => {
|
|
@@ -14247,7 +14247,7 @@ const cr = async (e, t) => {
|
|
|
14247
14247
|
};
|
|
14248
14248
|
}), { $store: c, fetchMore: d, invalidate: u };
|
|
14249
14249
|
};
|
|
14250
|
-
class lh extends
|
|
14250
|
+
class lh extends sn {
|
|
14251
14251
|
constructor() {
|
|
14252
14252
|
super("deep-link-context", window.sessionStorage);
|
|
14253
14253
|
p(this, "get", this.read);
|
|
@@ -14446,7 +14446,7 @@ const Yt = new At(), gh = (e, t, n) => {
|
|
|
14446
14446
|
}, e.sdk.logout = () => {
|
|
14447
14447
|
e.auth.logout(), Yt.clear();
|
|
14448
14448
|
}, e.sdk.getUserStore = () => e.stores.user.getStore(), e.sdk.isUserAuthorized = () => e.auth.isAuthenticated(), n();
|
|
14449
|
-
}, dr = Ze("video_player"),
|
|
14449
|
+
}, dr = Ze("video_player"), gn = {
|
|
14450
14450
|
debug: (...e) => {
|
|
14451
14451
|
dr.debug(...e), localStorage.getItem("SL_DEBUG") && console.log(...e);
|
|
14452
14452
|
},
|
|
@@ -14457,13 +14457,13 @@ const Yt = new At(), gh = (e, t, n) => {
|
|
|
14457
14457
|
e.videoPlayer = {
|
|
14458
14458
|
controllers: /* @__PURE__ */ new Set()
|
|
14459
14459
|
}, e.sdk.addVideoPlayerController = (a) => {
|
|
14460
|
-
|
|
14460
|
+
gn.trace("adding video player controller"), e.videoPlayer.controllers.add(a);
|
|
14461
14461
|
}, t.videoPlayerController && e.sdk.addVideoPlayerController(t.videoPlayerController), e.sdk.removeVideoPlayerController = (a) => {
|
|
14462
|
-
|
|
14462
|
+
gn.trace("removing video player controller"), e.videoPlayer.controllers.delete(a);
|
|
14463
14463
|
}, e.sdk.controlVideoPlayer = (a) => {
|
|
14464
|
-
|
|
14464
|
+
gn.trace("controlling video player");
|
|
14465
14465
|
for (const s of e.videoPlayer.controllers) {
|
|
14466
|
-
|
|
14466
|
+
gn.trace("calling video player controller");
|
|
14467
14467
|
try {
|
|
14468
14468
|
s(a);
|
|
14469
14469
|
} catch (o) {
|
|
@@ -14641,7 +14641,7 @@ const Yt = new At(), gh = (e, t, n) => {
|
|
|
14641
14641
|
c ? e.stores.slStreamId.getStore().set({ loading: !1, data: i }) : e.stores.providerStreamId.setValue(i);
|
|
14642
14642
|
}, n();
|
|
14643
14643
|
}, _h = (e, t) => {
|
|
14644
|
-
const { client: n, queryKey: a } = e.createPromiseClient(
|
|
14644
|
+
const { client: n, queryKey: a } = e.createPromiseClient(an, {
|
|
14645
14645
|
method: "generateDeepLink",
|
|
14646
14646
|
params: t
|
|
14647
14647
|
});
|
|
@@ -14729,7 +14729,7 @@ const Ih = (e, t, n, a) => {
|
|
|
14729
14729
|
}
|
|
14730
14730
|
}
|
|
14731
14731
|
});
|
|
14732
|
-
},
|
|
14732
|
+
}, fn = (e, t, n, a, s, o, i, c) => {
|
|
14733
14733
|
var l, m, u;
|
|
14734
14734
|
try {
|
|
14735
14735
|
const d = t.userId.get(), y = t.organizationId.get(), T = t.slStreamId.get();
|
|
@@ -14771,12 +14771,12 @@ const Ih = (e, t, n, a) => {
|
|
|
14771
14771
|
});
|
|
14772
14772
|
const l = [];
|
|
14773
14773
|
return c.get() !== ee.Completed && (l.push(t.userId.listen((m) => {
|
|
14774
|
-
m &&
|
|
14774
|
+
m && fn(c, t, e, a, i, l, n, s);
|
|
14775
14775
|
})), l.push(t.moderation.listen((m) => {
|
|
14776
|
-
m.data &&
|
|
14776
|
+
m.data && fn(c, t, e, a, i, l, n, s);
|
|
14777
14777
|
})), l.push(e.featureSettings.listen((m) => {
|
|
14778
|
-
m &&
|
|
14779
|
-
}))),
|
|
14778
|
+
m && fn(c, t, e, a, i, l, n, s);
|
|
14779
|
+
}))), fn(c, t, e, a, i, l, n, s), { $store: c, submitInplay: async () => {
|
|
14780
14780
|
const m = t.slStreamId.get();
|
|
14781
14781
|
if (m) {
|
|
14782
14782
|
await rc(n, m), c.set(ee.Completed), i.saveOnboardingStatus({
|
|
@@ -14889,7 +14889,7 @@ class vh extends nc {
|
|
|
14889
14889
|
prefix: `notification-id:${c}`
|
|
14890
14890
|
}), v = [...this.feedList.getValues().data || []], P = v.findIndex((J) => J.id === c), N = v[P];
|
|
14891
14891
|
let G = (k = (g = (T = N == null ? void 0 : N.attributes) == null ? void 0 : T.attributes) == null ? void 0 : g.value) == null ? void 0 : k.answerId;
|
|
14892
|
-
const O =
|
|
14892
|
+
const O = Kt(c, this.transport), Q = O.subscribe(() => {
|
|
14893
14893
|
});
|
|
14894
14894
|
await O.get().promise;
|
|
14895
14895
|
let H = O.get().data;
|
|
@@ -14999,11 +14999,13 @@ class vh extends nc {
|
|
|
14999
14999
|
});
|
|
15000
15000
|
p(this, "betPackVote", async (n, a) => {
|
|
15001
15001
|
var i;
|
|
15002
|
+
if (!this.betPack)
|
|
15003
|
+
return;
|
|
15002
15004
|
try {
|
|
15003
15005
|
await cr(this.transport, { questionId: n, answerId: a });
|
|
15004
15006
|
} catch (c) {
|
|
15005
15007
|
if (c.message === Bt.ALREADY_VOTED) {
|
|
15006
|
-
const l =
|
|
15008
|
+
const l = Kt(n, this.transport), m = l.subscribe(() => {
|
|
15007
15009
|
});
|
|
15008
15010
|
l.invalidate(), m();
|
|
15009
15011
|
}
|
|
@@ -15022,7 +15024,7 @@ class vh extends nc {
|
|
|
15022
15024
|
} : c), this.betPack.getStore().mutate({ data: s, timestamp: Date.now() }));
|
|
15023
15025
|
});
|
|
15024
15026
|
p(this, "submitAnswer", async (n, a) => {
|
|
15025
|
-
const s =
|
|
15027
|
+
const s = Kt(n, this.transport), o = s.subscribe(() => {
|
|
15026
15028
|
}), i = { ...s.get().data || {} }, c = () => {
|
|
15027
15029
|
var y;
|
|
15028
15030
|
const l = this.feedList.getValues().data;
|
|
@@ -15067,7 +15069,7 @@ class vh extends nc {
|
|
|
15067
15069
|
return () => {
|
|
15068
15070
|
};
|
|
15069
15071
|
const s = (a == null ? void 0 : a.openedFrom) === "bet-pack";
|
|
15070
|
-
this.notifications.close(this.background.getCurrentSessionId({
|
|
15072
|
+
s || Kt(n, this.transport).invalidate(), this.notifications.close(this.background.getCurrentSessionId({
|
|
15071
15073
|
prefix: "notification",
|
|
15072
15074
|
entity: n
|
|
15073
15075
|
}), {
|
|
@@ -15557,7 +15559,7 @@ class Ch {
|
|
|
15557
15559
|
});
|
|
15558
15560
|
}
|
|
15559
15561
|
}
|
|
15560
|
-
const
|
|
15562
|
+
const Xt = {
|
|
15561
15563
|
[D.UNSET]: oe.UNSET,
|
|
15562
15564
|
[D.FACTOID]: oe.POLLS_INSIGHT,
|
|
15563
15565
|
[D.POLL]: oe.POLLS_POLL,
|
|
@@ -15596,7 +15598,7 @@ class Fh {
|
|
|
15596
15598
|
...this.analytics.commonStore.getValues(),
|
|
15597
15599
|
kind: re.NOTIFICATION_RECEIVED,
|
|
15598
15600
|
topicId: t,
|
|
15599
|
-
topicType: n ?
|
|
15601
|
+
topicType: n ? Xt[n] : oe.UNSET,
|
|
15600
15602
|
topicSubType: a
|
|
15601
15603
|
},
|
|
15602
15604
|
notificationKind: Ce.POLLS,
|
|
@@ -15609,7 +15611,7 @@ class Fh {
|
|
|
15609
15611
|
...this.analytics.commonStore.getValues(),
|
|
15610
15612
|
kind: re.NOTIFICATION_OPENED,
|
|
15611
15613
|
topicId: t,
|
|
15612
|
-
topicType: n ?
|
|
15614
|
+
topicType: n ? Xt[n] : oe.UNSET,
|
|
15613
15615
|
topicSubType: a
|
|
15614
15616
|
},
|
|
15615
15617
|
notificationKind: Ce.POLLS,
|
|
@@ -15660,7 +15662,7 @@ class Bh {
|
|
|
15660
15662
|
...this.analytics.commonStore.getValues(),
|
|
15661
15663
|
kind: re.POLLS_RECEIVED,
|
|
15662
15664
|
topicId: t,
|
|
15663
|
-
topicType: n ?
|
|
15665
|
+
topicType: n ? Xt[n] : oe.UNSET
|
|
15664
15666
|
},
|
|
15665
15667
|
pollOpenedFrom: he.UNSET
|
|
15666
15668
|
});
|
|
@@ -15672,7 +15674,7 @@ class Bh {
|
|
|
15672
15674
|
...this.analytics.commonStore.getValues(),
|
|
15673
15675
|
kind: re.POLLS_OPENED,
|
|
15674
15676
|
topicId: t,
|
|
15675
|
-
topicType: n ?
|
|
15677
|
+
topicType: n ? Xt[n] : oe.UNSET
|
|
15676
15678
|
},
|
|
15677
15679
|
pollOpenedFrom: a === "list" ? he.PICK_HISTORY : he.IN_APP
|
|
15678
15680
|
});
|
|
@@ -15684,7 +15686,7 @@ class Bh {
|
|
|
15684
15686
|
...this.analytics.commonStore.getValues(),
|
|
15685
15687
|
kind: re.POLLS_VOTE,
|
|
15686
15688
|
topicId: t,
|
|
15687
|
-
topicType: n ?
|
|
15689
|
+
topicType: n ? Xt[n] : oe.UNSET
|
|
15688
15690
|
},
|
|
15689
15691
|
pollOpenedFrom: he.UNSET
|
|
15690
15692
|
});
|
|
@@ -16462,7 +16464,7 @@ var LS = function e(t) {
|
|
|
16462
16464
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
16463
16465
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
16464
16466
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
16465
|
-
},
|
|
16467
|
+
}, on = Cs, Bn = _S, PS = on.call(Function.call, Array.prototype.concat), MS = on.call(Function.apply, Array.prototype.splice), _r = on.call(Function.call, String.prototype.replace), Gn = on.call(Function.call, String.prototype.slice), DS = on.call(Function.call, RegExp.prototype.exec), CS = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, US = /\\(\\)?/g, FS = function(e) {
|
|
16466
16468
|
var t = Gn(e, 0, 1), n = Gn(e, -1);
|
|
16467
16469
|
if (t === "%" && n !== "%")
|
|
16468
16470
|
throw new Gt("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -16485,7 +16487,7 @@ var LS = function e(t) {
|
|
|
16485
16487
|
};
|
|
16486
16488
|
}
|
|
16487
16489
|
throw new Gt("intrinsic " + e + " does not exist!");
|
|
16488
|
-
},
|
|
16490
|
+
}, rn = function(e, t) {
|
|
16489
16491
|
if (typeof e != "string" || e.length === 0)
|
|
16490
16492
|
throw new Dt("intrinsic name must be a non-empty string");
|
|
16491
16493
|
if (arguments.length > 1 && typeof t != "boolean")
|
|
@@ -16519,7 +16521,7 @@ var LS = function e(t) {
|
|
|
16519
16521
|
function Us() {
|
|
16520
16522
|
if (Er) return ba;
|
|
16521
16523
|
Er = 1;
|
|
16522
|
-
var e =
|
|
16524
|
+
var e = rn, t = e("%Object.defineProperty%", !0) || !1;
|
|
16523
16525
|
if (t)
|
|
16524
16526
|
try {
|
|
16525
16527
|
t({}, "a", { value: 1 });
|
|
@@ -16528,7 +16530,7 @@ function Us() {
|
|
|
16528
16530
|
}
|
|
16529
16531
|
return ba = t, ba;
|
|
16530
16532
|
}
|
|
16531
|
-
var GS =
|
|
16533
|
+
var GS = rn, vn = GS("%Object.getOwnPropertyDescriptor%", !0);
|
|
16532
16534
|
if (vn)
|
|
16533
16535
|
try {
|
|
16534
16536
|
vn([], "length");
|
|
@@ -16572,7 +16574,7 @@ Nc.hasArrayLengthDefineBug = function() {
|
|
|
16572
16574
|
return !0;
|
|
16573
16575
|
}
|
|
16574
16576
|
};
|
|
16575
|
-
var xS = Nc, HS =
|
|
16577
|
+
var xS = Nc, HS = rn, Nr = qS, QS = xS(), Or = sa, vr = aa, YS = HS("%Math.floor%"), jS = function(e, t) {
|
|
16576
16578
|
if (typeof e != "function")
|
|
16577
16579
|
throw new vr("`fn` is not a function");
|
|
16578
16580
|
if (typeof t != "number" || t < 0 || t > 4294967295 || YS(t) !== t)
|
|
@@ -16597,7 +16599,7 @@ var xS = Nc, HS = on, Nr = qS, QS = xS(), Or = sa, vr = aa, YS = HS("%Math.floor
|
|
|
16597
16599
|
)), e;
|
|
16598
16600
|
};
|
|
16599
16601
|
(function(e) {
|
|
16600
|
-
var t = Cs, n =
|
|
16602
|
+
var t = Cs, n = rn, a = jS, s = aa, o = n("%Function.prototype.apply%"), i = n("%Function.prototype.call%"), c = n("%Reflect.apply%", !0) || t.call(i, o), l = Us(), m = n("%Math.max%");
|
|
16601
16603
|
e.exports = function(d) {
|
|
16602
16604
|
if (typeof d != "function")
|
|
16603
16605
|
throw new s("a function is required");
|
|
@@ -16613,7 +16615,7 @@ var xS = Nc, HS = on, Nr = qS, QS = xS(), Or = sa, vr = aa, YS = HS("%Math.floor
|
|
|
16613
16615
|
};
|
|
16614
16616
|
l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
|
|
16615
16617
|
})(Ic);
|
|
16616
|
-
var Fs = Ic.exports, Oc =
|
|
16618
|
+
var Fs = Ic.exports, Oc = rn, vc = Fs, $S = vc(Oc("String.prototype.indexOf")), Bs = function(e, t) {
|
|
16617
16619
|
var n = Oc(e, !!t);
|
|
16618
16620
|
return typeof n == "function" && $S(e, ".prototype.") > -1 ? vc(n) : n;
|
|
16619
16621
|
}, KS = na(), zS = Bs, es = zS("Object.prototype.toString"), oa = function(e) {
|
|
@@ -17004,24 +17006,24 @@ var L_ = function(e) {
|
|
|
17004
17006
|
return g(E, m);
|
|
17005
17007
|
}
|
|
17006
17008
|
e.isNumberObject = mt;
|
|
17007
|
-
function
|
|
17009
|
+
function cn(E) {
|
|
17008
17010
|
return g(E, u);
|
|
17009
17011
|
}
|
|
17010
|
-
e.isStringObject =
|
|
17012
|
+
e.isStringObject = cn;
|
|
17011
17013
|
function bt(E) {
|
|
17012
17014
|
return g(E, d);
|
|
17013
17015
|
}
|
|
17014
17016
|
e.isBooleanObject = bt;
|
|
17015
|
-
function
|
|
17017
|
+
function ln(E) {
|
|
17016
17018
|
return i && g(E, y);
|
|
17017
17019
|
}
|
|
17018
|
-
e.isBigIntObject =
|
|
17020
|
+
e.isBigIntObject = ln;
|
|
17019
17021
|
function Ys(E) {
|
|
17020
17022
|
return c && g(E, T);
|
|
17021
17023
|
}
|
|
17022
17024
|
e.isSymbolObject = Ys;
|
|
17023
17025
|
function Vc(E) {
|
|
17024
|
-
return mt(E) ||
|
|
17026
|
+
return mt(E) || cn(E) || bt(E) || ln(E) || Ys(E);
|
|
17025
17027
|
}
|
|
17026
17028
|
e.isBoxedPrimitive = Vc;
|
|
17027
17029
|
function qc(E) {
|
|
@@ -17197,8 +17199,8 @@ var F_ = rs.exports;
|
|
|
17197
17199
|
}
|
|
17198
17200
|
var K = "", we = !1, mt = ["{", "}"];
|
|
17199
17201
|
if (b(h) && (we = !0, mt = ["[", "]"]), V(h)) {
|
|
17200
|
-
var
|
|
17201
|
-
K = " [Function" +
|
|
17202
|
+
var cn = h.name ? ": " + h.name : "";
|
|
17203
|
+
K = " [Function" + cn + "]";
|
|
17202
17204
|
}
|
|
17203
17205
|
if (G(h) && (K = " " + RegExp.prototype.toString.call(h)), Q(h) && (K = " " + Date.prototype.toUTCString.call(h)), H(h) && (K = " " + y(h)), Y.length === 0 && (!we || h.length == 0))
|
|
17204
17206
|
return mt[0] + K + mt[1];
|
|
@@ -17206,8 +17208,8 @@ var F_ = rs.exports;
|
|
|
17206
17208
|
return G(h) ? f.stylize(RegExp.prototype.toString.call(h), "regexp") : f.stylize("[Object]", "special");
|
|
17207
17209
|
f.seen.push(h);
|
|
17208
17210
|
var bt;
|
|
17209
|
-
return we ? bt = T(f, h, I, q, Y) : bt = Y.map(function(
|
|
17210
|
-
return g(f, h, I, q,
|
|
17211
|
+
return we ? bt = T(f, h, I, q, Y) : bt = Y.map(function(ln) {
|
|
17212
|
+
return g(f, h, I, q, ln, we);
|
|
17211
17213
|
}), f.seen.pop(), k(bt, K, mt);
|
|
17212
17214
|
}
|
|
17213
17215
|
function d(f, h) {
|
|
@@ -17980,7 +17982,7 @@ Hs.exports.loadPlugin = Qs;
|
|
|
17980
17982
|
var eE = Hs.exports;
|
|
17981
17983
|
const Fr = mc, tE = hc.EventEmitter, nE = ta.inherits, {
|
|
17982
17984
|
AVV_ERR_EXPOSE_ALREADY_DEFINED: Da,
|
|
17983
|
-
AVV_ERR_CALLBACK_NOT_FN:
|
|
17985
|
+
AVV_ERR_CALLBACK_NOT_FN: Zt,
|
|
17984
17986
|
AVV_ERR_PLUGIN_NOT_VALID: aE,
|
|
17985
17987
|
AVV_ERR_ROOT_PLG_BOOTED: sE,
|
|
17986
17988
|
AVV_ERR_READY_TIMEOUT: oE
|
|
@@ -17999,15 +18001,15 @@ function iE(e, t, n) {
|
|
|
17999
18001
|
return typeof m != "function" ? n._loadRegistered() : (n.after(Ua(m, this)), this);
|
|
18000
18002
|
}, e[i] = function(m) {
|
|
18001
18003
|
if (m && typeof m != "function")
|
|
18002
|
-
throw new
|
|
18004
|
+
throw new Zt(i, typeof m);
|
|
18003
18005
|
return n.ready(m ? Ua(m, this) : void 0);
|
|
18004
18006
|
}, e[c] = function(m) {
|
|
18005
18007
|
if (typeof m != "function")
|
|
18006
|
-
throw new
|
|
18008
|
+
throw new Zt(c, typeof m);
|
|
18007
18009
|
return n.onClose(dE(m, this)), this;
|
|
18008
18010
|
}, e[l] = function(m) {
|
|
18009
18011
|
if (m && typeof m != "function")
|
|
18010
|
-
throw new
|
|
18012
|
+
throw new Zt(l, typeof m);
|
|
18011
18013
|
return m ? (n.close(Ua(m, this)), this) : n.close();
|
|
18012
18014
|
};
|
|
18013
18015
|
}
|
|
@@ -18101,7 +18103,7 @@ le.prototype.close = function(e) {
|
|
|
18101
18103
|
let t;
|
|
18102
18104
|
if (e) {
|
|
18103
18105
|
if (typeof e != "function")
|
|
18104
|
-
throw new
|
|
18106
|
+
throw new Zt("close", typeof e);
|
|
18105
18107
|
} else
|
|
18106
18108
|
t = new Promise(function(n, a) {
|
|
18107
18109
|
e = function(s) {
|
|
@@ -18117,7 +18119,7 @@ le.prototype.close = function(e) {
|
|
|
18117
18119
|
le.prototype.ready = function(e) {
|
|
18118
18120
|
if (e) {
|
|
18119
18121
|
if (typeof e != "function")
|
|
18120
|
-
throw new
|
|
18122
|
+
throw new Zt("ready", typeof e);
|
|
18121
18123
|
this._readyQ.push(e), queueMicrotask(this.start.bind(this));
|
|
18122
18124
|
return;
|
|
18123
18125
|
}
|
|
@@ -18283,7 +18285,7 @@ const kE = ({
|
|
|
18283
18285
|
k = !0;
|
|
18284
18286
|
};
|
|
18285
18287
|
const b = yE(e, n, a, {
|
|
18286
|
-
version: "1.15.
|
|
18288
|
+
version: "1.15.3",
|
|
18287
18289
|
onDeepLinkHandled: s,
|
|
18288
18290
|
videoPlayerController: o,
|
|
18289
18291
|
onContentActivate: i,
|