@streamlayer/sdk-web 1.4.0 → 1.5.0
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/index.js +6 -6
- package/lib/es/index.js +225 -221
- package/lib/index.d.ts +1 -0
- package/package.json +11 -11
package/lib/es/index.js
CHANGED
|
@@ -548,8 +548,8 @@ const $i = /* @__PURE__ */ new Set([
|
|
|
548
548
|
const a = tt.from(s);
|
|
549
549
|
if (o >= r || !(a instanceof tt) || !$i.has(a.code))
|
|
550
550
|
throw s;
|
|
551
|
-
const u = Math.min(i, Math.pow(2, o) * n),
|
|
552
|
-
await new Promise((c) => setTimeout(c,
|
|
551
|
+
const u = Math.min(i, Math.pow(2, o) * n), d = Math.round(u * (1 + Math.random()) / 2);
|
|
552
|
+
await new Promise((c) => setTimeout(c, d));
|
|
553
553
|
}
|
|
554
554
|
}, or = {
|
|
555
555
|
retryAttempts: Mr(10, { description: "Number of attempts to retry" }),
|
|
@@ -650,11 +650,11 @@ class Kr {
|
|
|
650
650
|
o.charAt(0).toLowerCase() + o.slice(1),
|
|
651
651
|
...Array.isArray(r) ? r : [r]
|
|
652
652
|
], a = [e.typeName, o.charAt(0).toLowerCase() + o.slice(1)];
|
|
653
|
-
return { client: i, createRequestOptions: (
|
|
653
|
+
return { client: i, createRequestOptions: (d) => {
|
|
654
654
|
const c = wi();
|
|
655
|
-
for (const f in
|
|
655
|
+
for (const f in d) {
|
|
656
656
|
const p = or[f];
|
|
657
|
-
c.set(p,
|
|
657
|
+
c.set(p, d[f]);
|
|
658
658
|
}
|
|
659
659
|
return c;
|
|
660
660
|
}, queryKey: s, queryKeyStr: a.join("") };
|
|
@@ -793,9 +793,9 @@ var ye;
|
|
|
793
793
|
t.DISABLED = "disabled", t.INITIALIZATION = "initialization", t.READY = "ready", t.FAILED = "failed", t.SUSPENDED = "suspended";
|
|
794
794
|
})(ye || (ye = {}));
|
|
795
795
|
const Yi = (t) => {
|
|
796
|
-
const e = new je(), r = new X(U(e.getExternalToken()), "userKey"), n = new X(U(e.getToken()), "userToken"), i = new ce(Qi(n.getStore(), t), "user", ({ data: s, error: a, loading: u },
|
|
796
|
+
const e = new je(), r = new X(U(e.getExternalToken()), "userKey"), n = new X(U(e.getToken()), "userToken"), i = new ce(Qi(n.getStore(), t), "user", ({ data: s, error: a, loading: u }, d) => {
|
|
797
797
|
if (!a)
|
|
798
|
-
return s?.data?.id ? s.data.id : u === !1 ? void 0 :
|
|
798
|
+
return s?.data?.id ? s.data.id : u === !1 ? void 0 : d;
|
|
799
799
|
}), o = new ce(Ki(n.getStore(), t), "userSettings");
|
|
800
800
|
return {
|
|
801
801
|
userKey: r,
|
|
@@ -990,11 +990,11 @@ const eo = (t, e, r) => {
|
|
|
990
990
|
const a = e.get();
|
|
991
991
|
if (!a)
|
|
992
992
|
return;
|
|
993
|
-
const u = r.get().data?.find((c) => c.id === a?.questionId),
|
|
994
|
-
return u ? (u.openedFrom =
|
|
993
|
+
const u = r.get().data?.find((c) => c.id === a?.questionId), d = a?.question?.openedFrom;
|
|
994
|
+
return u ? (u.openedFrom = d, u) : a.question;
|
|
995
995
|
}), i = $r(n, (a) => a && a.type === "question" ? a.id : void 0), o = sr(i, t);
|
|
996
996
|
return { $store: n, $extendedStore: o, updateExtendedQuestion: (a) => {
|
|
997
|
-
const u = o.get().data,
|
|
997
|
+
const u = o.get().data, d = (c, f) => {
|
|
998
998
|
if (!c || !f)
|
|
999
999
|
return c || f || [];
|
|
1000
1000
|
const p = [];
|
|
@@ -1013,7 +1013,7 @@ const eo = (t, e, r) => {
|
|
|
1013
1013
|
options: u?.options,
|
|
1014
1014
|
subject: u?.subject,
|
|
1015
1015
|
appearance: u?.appearance,
|
|
1016
|
-
answers:
|
|
1016
|
+
answers: d(u?.answers, a?.answers)
|
|
1017
1017
|
});
|
|
1018
1018
|
} };
|
|
1019
1019
|
};
|
|
@@ -1043,7 +1043,7 @@ const ho = (t) => {
|
|
|
1043
1043
|
};
|
|
1044
1044
|
}, yo = (t, e, r) => {
|
|
1045
1045
|
let n = !1;
|
|
1046
|
-
const i = r.transport, o = ve("advertisement"), s = new po(), a = J({}), u = lo(t, i),
|
|
1046
|
+
const i = r.transport, o = ve("advertisement"), s = new po(), a = J({}), u = lo(t, i), d = () => {
|
|
1047
1047
|
a.setKey("hasNotification", !1);
|
|
1048
1048
|
}, c = () => {
|
|
1049
1049
|
const b = a.get(), g = b.data?.question.id, S = b.data?.promotion?.type, C = a.get()?.isOpened;
|
|
@@ -1115,7 +1115,7 @@ const ho = (t) => {
|
|
|
1115
1115
|
o.debug({ promotion: g }, "skip: %o");
|
|
1116
1116
|
}
|
|
1117
1117
|
}));
|
|
1118
|
-
}, hide: p, show: f, open:
|
|
1118
|
+
}, hide: p, show: f, open: d, markAsViewed: c, $store: a };
|
|
1119
1119
|
};
|
|
1120
1120
|
var Le;
|
|
1121
1121
|
(function(t) {
|
|
@@ -1443,7 +1443,7 @@ const Io = {
|
|
|
1443
1443
|
hasMore: !0,
|
|
1444
1444
|
loading: void 0,
|
|
1445
1445
|
error: void 0
|
|
1446
|
-
}), u = to(t),
|
|
1446
|
+
}), u = to(t), d = async () => {
|
|
1447
1447
|
const p = e.get(), v = n.getStore().get().data?.map((b) => b.slId) || [];
|
|
1448
1448
|
if (p && v?.length) {
|
|
1449
1449
|
const b = r.get();
|
|
@@ -1463,13 +1463,13 @@ const Io = {
|
|
|
1463
1463
|
}), S.meta && (o = Math.round(S.meta.count / S.meta.pageSize));
|
|
1464
1464
|
}
|
|
1465
1465
|
}, c = () => {
|
|
1466
|
-
|
|
1466
|
+
d();
|
|
1467
1467
|
}, f = (p) => {
|
|
1468
1468
|
const v = s.get(), b = p || v.page + 1;
|
|
1469
1469
|
b <= o && s.set({ ...v, page: b });
|
|
1470
1470
|
};
|
|
1471
1471
|
return gr(a, () => {
|
|
1472
|
-
const p = e.listen(
|
|
1472
|
+
const p = e.listen(d), v = n.listen(d);
|
|
1473
1473
|
return () => {
|
|
1474
1474
|
p(), v();
|
|
1475
1475
|
};
|
|
@@ -1513,14 +1513,14 @@ const zr = "sldl", kt = "sldl_uid", Rn = "sldl_eid", Vn = "sldl_e_eid", _o = /*
|
|
|
1513
1513
|
const { hash: o, search: s } = i, { result: a, remain: u } = o || s;
|
|
1514
1514
|
if (Object.keys(a).length !== 0) {
|
|
1515
1515
|
t.setValue("data", a);
|
|
1516
|
-
const
|
|
1516
|
+
const d = Object.keys(u).length !== 0;
|
|
1517
1517
|
if (o) {
|
|
1518
1518
|
let c = "";
|
|
1519
|
-
|
|
1519
|
+
d && (c = `#${new URLSearchParams(u).toString()}`, ue.debug({ updatedHash: c }, "update hash")), window.history.replaceState(null, "", window.location.pathname + window.location.search + c);
|
|
1520
1520
|
}
|
|
1521
1521
|
if (s) {
|
|
1522
1522
|
let c = "";
|
|
1523
|
-
|
|
1523
|
+
d && (c = `?${new URLSearchParams(u).toString()}`, ue.debug({ updatedSearch: c }, "update search")), window.history.replaceState(null, "", window.location.pathname + c + window.location.hash);
|
|
1524
1524
|
}
|
|
1525
1525
|
e(a);
|
|
1526
1526
|
}
|
|
@@ -1562,8 +1562,8 @@ const zr = "sldl", kt = "sldl_uid", Rn = "sldl_eid", Vn = "sldl_e_eid", _o = /*
|
|
|
1562
1562
|
for (const u of t.deepLink.onDeepLinkHandlers)
|
|
1563
1563
|
try {
|
|
1564
1564
|
ue.trace("called handler"), u(a);
|
|
1565
|
-
} catch (
|
|
1566
|
-
console.error(
|
|
1565
|
+
} catch (d) {
|
|
1566
|
+
console.error(d);
|
|
1567
1567
|
}
|
|
1568
1568
|
};
|
|
1569
1569
|
Lo(t.deepLink.$store, s), r();
|
|
@@ -1740,14 +1740,14 @@ const Je = new je(), Fo = (t, e, r) => {
|
|
|
1740
1740
|
t.ui.disableAppNotification();
|
|
1741
1741
|
break;
|
|
1742
1742
|
}
|
|
1743
|
-
if (a.slEventBus?.type === "advertisement") {
|
|
1744
|
-
const u = a.slEventBus, { hasNotification:
|
|
1743
|
+
if (a.slEventBus?.type === "advertisement" && e.withAd) {
|
|
1744
|
+
const u = a.slEventBus, { hasNotification: d, id: c, isViewed: f } = u.payload;
|
|
1745
1745
|
switch (u.action) {
|
|
1746
1746
|
case "received":
|
|
1747
1747
|
if (t.sdk.closeFeature(), n({
|
|
1748
1748
|
stage: "activate",
|
|
1749
1749
|
id: c,
|
|
1750
|
-
hasNotification:
|
|
1750
|
+
hasNotification: d,
|
|
1751
1751
|
isViewed: f
|
|
1752
1752
|
}), !e.withAdNotification) {
|
|
1753
1753
|
t.sdk.uiState.set({
|
|
@@ -1757,7 +1757,7 @@ const Je = new je(), Fo = (t, e, r) => {
|
|
|
1757
1757
|
});
|
|
1758
1758
|
break;
|
|
1759
1759
|
}
|
|
1760
|
-
|
|
1760
|
+
d ? t.sdk.uiState.set({
|
|
1761
1761
|
promotionNotification: !0
|
|
1762
1762
|
}) : t.sdk.uiState.set({
|
|
1763
1763
|
promotionBanner: !0,
|
|
@@ -1775,7 +1775,7 @@ const Je = new je(), Fo = (t, e, r) => {
|
|
|
1775
1775
|
}), n({
|
|
1776
1776
|
stage: "deactivate",
|
|
1777
1777
|
id: c,
|
|
1778
|
-
hasNotification:
|
|
1778
|
+
hasNotification: d,
|
|
1779
1779
|
isViewed: f
|
|
1780
1780
|
});
|
|
1781
1781
|
break;
|
|
@@ -1792,8 +1792,8 @@ const Je = new je(), Fo = (t, e, r) => {
|
|
|
1792
1792
|
const n = { onMountedFired: !1 }, i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
1793
1793
|
t.sdk = /* @__PURE__ */ Object.create(null), t.sdk.onMount = ({ name: s, clear: a }, u) => {
|
|
1794
1794
|
if (i.has(s)) {
|
|
1795
|
-
const
|
|
1796
|
-
|
|
1795
|
+
const d = o.get(s);
|
|
1796
|
+
d && d(), i.delete(s), o.delete(s);
|
|
1797
1797
|
}
|
|
1798
1798
|
i.set(s, { cb: u, clear: a }), t?.stores?.enabled?.get() === "on" && o.set(s, u());
|
|
1799
1799
|
}, t.ready = () => {
|
|
@@ -1846,13 +1846,13 @@ const Je = new je(), Fo = (t, e, r) => {
|
|
|
1846
1846
|
return r.toString();
|
|
1847
1847
|
}, jo = (t, e, r, n) => {
|
|
1848
1848
|
const i = J({});
|
|
1849
|
-
return gr(i, () => Mo(t, [e, r]).subscribe(async ({ data: a, error: u, loading:
|
|
1849
|
+
return gr(i, () => Mo(t, [e, r]).subscribe(async ({ data: a, error: u, loading: d }) => {
|
|
1850
1850
|
const c = u ? "https://masters.com" : a?.url, f = n.get() || "", p = e.get() || "", v = r.get() || "", b = {
|
|
1851
1851
|
[kt]: f,
|
|
1852
1852
|
[Rn]: p,
|
|
1853
1853
|
[Vn]: v
|
|
1854
1854
|
};
|
|
1855
|
-
if (!
|
|
1855
|
+
if (!d && c) {
|
|
1856
1856
|
i.setKey("loading", !0);
|
|
1857
1857
|
let g = window.location.search, S = window.location.hash;
|
|
1858
1858
|
g && S || S ? g = `?${Jr(g, b)}` : S = `#${Jr("", b)}`;
|
|
@@ -1917,10 +1917,10 @@ const Uo = (t, e, r, n) => {
|
|
|
1917
1917
|
p();
|
|
1918
1918
|
return;
|
|
1919
1919
|
}
|
|
1920
|
-
const u = e.moderation.getStore().value?.data,
|
|
1921
|
-
if (u === void 0 ||
|
|
1920
|
+
const u = e.moderation.getStore().value?.data, d = r.featureSettings.get().inplayGame;
|
|
1921
|
+
if (u === void 0 || d === void 0)
|
|
1922
1922
|
return;
|
|
1923
|
-
const c = u?.options?.onboardingEnabled, f =
|
|
1923
|
+
const c = u?.options?.onboardingEnabled, f = d?.titleCard?.optIn;
|
|
1924
1924
|
c ? f ? t.set(M.Required) : t.set(M.Optional) : (f ? t.set(M.Unavailable) : t.set(M.Disabled), n.close(e.getCurrentSessionId({ prefix: "onboarding" }), { markAsViewed: !1 }));
|
|
1925
1925
|
} catch (s) {
|
|
1926
1926
|
console.error(s);
|
|
@@ -1928,27 +1928,27 @@ const Uo = (t, e, r, n) => {
|
|
|
1928
1928
|
}, qo = (t, e, r, n) => {
|
|
1929
1929
|
let i = !1;
|
|
1930
1930
|
const o = new Dn(), s = U(M.Unset);
|
|
1931
|
-
s.subscribe((
|
|
1932
|
-
|
|
1931
|
+
s.subscribe((d) => {
|
|
1932
|
+
d !== M.Unset && (d === M.Optional || d === M.Required ? i === !1 && (Uo(t, e, n, o), i = !0) : t.onboardingProcessed.set(!0), d === M.Completed && e.activeQuestionId.invalidate(), o.setOnboardingInstantOpen({
|
|
1933
1933
|
userId: e.userId.get() || "",
|
|
1934
1934
|
organizationId: e.organizationId.get() || "",
|
|
1935
1935
|
eventId: e.slStreamId.get() || ""
|
|
1936
1936
|
}));
|
|
1937
1937
|
});
|
|
1938
1938
|
const a = [];
|
|
1939
|
-
return dt(s, e, t, n, o, a), s.get() !== M.Completed && (a.push(e.userId.listen((
|
|
1940
|
-
|
|
1941
|
-
})), a.push(e.moderation.listen((
|
|
1942
|
-
|
|
1943
|
-
})), a.push(t.featureSettings.listen((
|
|
1944
|
-
|
|
1939
|
+
return dt(s, e, t, n, o, a), s.get() !== M.Completed && (a.push(e.userId.listen((d) => {
|
|
1940
|
+
d && dt(s, e, t, n, o, a);
|
|
1941
|
+
})), a.push(e.moderation.listen((d) => {
|
|
1942
|
+
d.data && dt(s, e, t, n, o, a);
|
|
1943
|
+
})), a.push(t.featureSettings.listen((d) => {
|
|
1944
|
+
d && dt(s, e, t, n, o, a);
|
|
1945
1945
|
}))), { $store: s, submitInplay: async () => {
|
|
1946
|
-
const
|
|
1947
|
-
if (
|
|
1948
|
-
await Ao(r,
|
|
1946
|
+
const d = e.slStreamId.get();
|
|
1947
|
+
if (d) {
|
|
1948
|
+
await Ao(r, d), s.set(M.Completed), o.saveOnboardingStatus({
|
|
1949
1949
|
organizationId: e.organizationId.get() || "",
|
|
1950
1950
|
userId: e.userId.get() || "",
|
|
1951
|
-
eventId:
|
|
1951
|
+
eventId: d
|
|
1952
1952
|
}, M.Completed), K.emit("poll", {
|
|
1953
1953
|
action: "onboardingPassed",
|
|
1954
1954
|
payload: {}
|
|
@@ -1959,31 +1959,31 @@ const Uo = (t, e, r, n) => {
|
|
|
1959
1959
|
} };
|
|
1960
1960
|
}, xo = (t, e, r, n) => {
|
|
1961
1961
|
const i = J(void 0), o = Nn(n), s = async () => {
|
|
1962
|
-
const u = t.get(),
|
|
1962
|
+
const u = t.get(), d = e.get(), c = r.getStore().get().data?.map((v) => v.slId);
|
|
1963
1963
|
if (!c)
|
|
1964
1964
|
return;
|
|
1965
1965
|
const f = {
|
|
1966
1966
|
eventId: u,
|
|
1967
|
-
userId:
|
|
1968
|
-
usersIds: [...c,
|
|
1967
|
+
userId: d,
|
|
1968
|
+
usersIds: [...c, d]
|
|
1969
1969
|
}, p = await o(f);
|
|
1970
1970
|
i.set(p.data?.attributes);
|
|
1971
1971
|
}, a = () => {
|
|
1972
1972
|
s();
|
|
1973
1973
|
};
|
|
1974
1974
|
return gr(i, () => {
|
|
1975
|
-
const u = t.listen(s),
|
|
1975
|
+
const u = t.listen(s), d = r.listen(s), c = e.listen(s);
|
|
1976
1976
|
return () => {
|
|
1977
|
-
u(),
|
|
1977
|
+
u(), d(), c();
|
|
1978
1978
|
};
|
|
1979
1979
|
}), { $store: i, invalidate: a };
|
|
1980
1980
|
}, Qo = async (t, e, r, n, i) => {
|
|
1981
|
-
const o = Nn(i), s = t.get(), a = e.get(), u = r.getStore().get().data?.map((p) => p.slId) || [],
|
|
1981
|
+
const o = Nn(i), s = t.get(), a = e.get(), u = r.getStore().get().data?.map((p) => p.slId) || [], d = {
|
|
1982
1982
|
eventId: s,
|
|
1983
1983
|
userId: n,
|
|
1984
1984
|
usersIds: [...u, a]
|
|
1985
1985
|
};
|
|
1986
|
-
return (await o(
|
|
1986
|
+
return (await o(d)).data?.attributes?.summary;
|
|
1987
1987
|
}, Go = /* @__PURE__ */ new Set([_.POLL, _.PREDICTION, _.TRIVIA]);
|
|
1988
1988
|
class Ko extends Ln {
|
|
1989
1989
|
/** user statistics (leaderboard panel) */
|
|
@@ -2040,7 +2040,7 @@ class Ko extends Ln {
|
|
|
2040
2040
|
};
|
|
2041
2041
|
connect = () => {
|
|
2042
2042
|
this.onboardingProcessed.subscribe((e) => {
|
|
2043
|
-
|
|
2043
|
+
e && this.advertisement.connect();
|
|
2044
2044
|
}), this.cancels.add(this.background.feedSubscription.addListener("feed-subscription-prediction-close", async (e) => {
|
|
2045
2045
|
if (!this.isInteractiveAllowed)
|
|
2046
2046
|
return;
|
|
@@ -2051,7 +2051,7 @@ class Ko extends Ln {
|
|
|
2051
2051
|
if (i === Y.RESOLVED && o === _.PREDICTION) {
|
|
2052
2052
|
const u = this.background.getCurrentSessionId({
|
|
2053
2053
|
prefix: `notification-id:${s}`
|
|
2054
|
-
}),
|
|
2054
|
+
}), d = [...this.feedList.getValues().data || []], c = d.findIndex((Q) => Q.id === s), f = d[c];
|
|
2055
2055
|
let p = f?.attributes?.attributes?.value?.answerId;
|
|
2056
2056
|
const v = sr(s, this.transport), b = v.subscribe(() => {
|
|
2057
2057
|
});
|
|
@@ -2061,12 +2061,12 @@ class Ko extends Ln {
|
|
|
2061
2061
|
v.invalidate();
|
|
2062
2062
|
}), p || (p = g?.answers.find(({ youVoted: Q }) => Q)?.id);
|
|
2063
2063
|
const S = a.find(({ correct: Q }) => Q), C = p ? a.find(({ id: Q }) => Q === p) : void 0, R = !!C?.correct;
|
|
2064
|
-
if (f &&
|
|
2064
|
+
if (f && d[c]?.attributes?.attributes.case === "question") {
|
|
2065
2065
|
try {
|
|
2066
|
-
|
|
2066
|
+
d[c].attributes.attributes.value.answerId = p, d[c].attributes.attributes.value.openForVoting = !1, p && (d[c].attributes.attributes.value.status = R ? ct.WON : ct.LOST);
|
|
2067
2067
|
} catch {
|
|
2068
2068
|
}
|
|
2069
|
-
this.feedList.getStore().mutate(
|
|
2069
|
+
this.feedList.getStore().mutate(d);
|
|
2070
2070
|
}
|
|
2071
2071
|
if (!C || !S)
|
|
2072
2072
|
return;
|
|
@@ -2162,7 +2162,7 @@ class Ko extends Ln {
|
|
|
2162
2162
|
const a = this.feedList.getValues().data;
|
|
2163
2163
|
if (!a)
|
|
2164
2164
|
return;
|
|
2165
|
-
const u = a.findIndex((f) => f.id === e),
|
|
2165
|
+
const u = a.findIndex((f) => f.id === e), d = a[u], c = d?.attributes?.attributes.case === "question" && d.attributes.attributes.value;
|
|
2166
2166
|
if (c) {
|
|
2167
2167
|
K.emit("poll", {
|
|
2168
2168
|
action: "voted",
|
|
@@ -2759,12 +2759,12 @@ const is = ({ transport: t, $commonStore: e }) => {
|
|
|
2759
2759
|
}), u = () => {
|
|
2760
2760
|
me.debug("mounted heartbeat"), r = a.subscribe(() => {
|
|
2761
2761
|
});
|
|
2762
|
-
},
|
|
2762
|
+
}, d = () => {
|
|
2763
2763
|
me.debug("enabled heartbeat"), n.set(!0), a.lc === 0 && u();
|
|
2764
2764
|
}, c = () => {
|
|
2765
2765
|
me.debug("disabled heartbeat"), n.set(!1);
|
|
2766
2766
|
};
|
|
2767
|
-
return { enable:
|
|
2767
|
+
return { enable: d, disable: c, mount: u, unmount: () => {
|
|
2768
2768
|
me.debug("unmounted heartbeat"), a.off(), r?.(), r = void 0, c();
|
|
2769
2769
|
} };
|
|
2770
2770
|
}, me = ve("analytics");
|
|
@@ -2868,7 +2868,7 @@ function $n(t, e, r) {
|
|
|
2868
2868
|
for (; i && s < r; )
|
|
2869
2869
|
s++, C();
|
|
2870
2870
|
},
|
|
2871
|
-
running:
|
|
2871
|
+
running: d,
|
|
2872
2872
|
resume: v,
|
|
2873
2873
|
idle: b,
|
|
2874
2874
|
length: f,
|
|
@@ -2880,7 +2880,7 @@ function $n(t, e, r) {
|
|
|
2880
2880
|
error: ee
|
|
2881
2881
|
};
|
|
2882
2882
|
return u;
|
|
2883
|
-
function
|
|
2883
|
+
function d() {
|
|
2884
2884
|
return s;
|
|
2885
2885
|
}
|
|
2886
2886
|
function c() {
|
|
@@ -2950,7 +2950,7 @@ function fs(t, e, r) {
|
|
|
2950
2950
|
}, f);
|
|
2951
2951
|
}
|
|
2952
2952
|
var i = $n(t, n, r), o = i.push, s = i.unshift;
|
|
2953
|
-
return i.push = a, i.unshift = u, i.drained =
|
|
2953
|
+
return i.push = a, i.unshift = u, i.drained = d, i;
|
|
2954
2954
|
function a(c) {
|
|
2955
2955
|
var f = new Promise(function(p, v) {
|
|
2956
2956
|
o(c, function(b, g) {
|
|
@@ -2975,7 +2975,7 @@ function fs(t, e, r) {
|
|
|
2975
2975
|
});
|
|
2976
2976
|
return f.catch(W), f;
|
|
2977
2977
|
}
|
|
2978
|
-
function
|
|
2978
|
+
function d() {
|
|
2979
2979
|
if (i.idle())
|
|
2980
2980
|
return new Promise(function(p) {
|
|
2981
2981
|
p();
|
|
@@ -3063,7 +3063,7 @@ N.prototype.emit = function(e) {
|
|
|
3063
3063
|
if (typeof u == "function")
|
|
3064
3064
|
Xr(u, this, r);
|
|
3065
3065
|
else
|
|
3066
|
-
for (var
|
|
3066
|
+
for (var d = u.length, c = Gn(u, d), n = 0; n < d; ++n)
|
|
3067
3067
|
Xr(c[n], this, r);
|
|
3068
3068
|
return !0;
|
|
3069
3069
|
};
|
|
@@ -3278,9 +3278,9 @@ var zn = Ar.exports, Nt = {}, Hn = {}, Wn = function() {
|
|
|
3278
3278
|
}, s = Ps(0, r.length - n.length), a = [], u = 0; u < s; u++)
|
|
3279
3279
|
a[u] = "$" + u;
|
|
3280
3280
|
if (i = Function("binder", "return function (" + Ds(a, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
|
|
3281
|
-
var
|
|
3281
|
+
var d = function() {
|
|
3282
3282
|
};
|
|
3283
|
-
|
|
3283
|
+
d.prototype = r.prototype, i.prototype = new d(), d.prototype = null;
|
|
3284
3284
|
}
|
|
3285
3285
|
return i;
|
|
3286
3286
|
}, Vs = Rs, Er = Function.prototype.bind || Vs, $s = Function.prototype.call, Ms = Object.prototype.hasOwnProperty, Bs = Er, js = Bs.call($s, Ms), I, Us = Ss, qs = ws, xs = As, Qs = Es, Ke = Yn, Ge = Dt, Gs = Is, Jn = Function, jt = function(t) {
|
|
@@ -3485,8 +3485,8 @@ var Ys = function t(e) {
|
|
|
3485
3485
|
throw new Ge('"allowMissing" argument must be a boolean');
|
|
3486
3486
|
if (Zs(/^%?[^%]*%?$/, e) === null)
|
|
3487
3487
|
throw new Ke("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
3488
|
-
var n = ra(e), i = n.length > 0 ? n[0] : "", o = na("%" + i + "%", r), s = o.name, a = o.value, u = !1,
|
|
3489
|
-
|
|
3488
|
+
var n = ra(e), i = n.length > 0 ? n[0] : "", o = na("%" + i + "%", r), s = o.name, a = o.value, u = !1, d = o.alias;
|
|
3489
|
+
d && (i = d[0], Xs(n, Js([0, 1], d)));
|
|
3490
3490
|
for (var c = 1, f = !0; c < n.length; c += 1) {
|
|
3491
3491
|
var p = n[c], v = At(p, 0, 1), b = At(p, -1);
|
|
3492
3492
|
if ((v === '"' || v === "'" || v === "`" || b === '"' || b === "'" || b === "`") && v !== b)
|
|
@@ -3590,14 +3590,14 @@ var aa = Zn, ua = ot, un = sa, ca = aa(), cn = Rt, ln = Dt, la = ua("%Math.floor
|
|
|
3590
3590
|
)), e;
|
|
3591
3591
|
};
|
|
3592
3592
|
(function(t) {
|
|
3593
|
-
var e = Er, r = ot, n = da, i = Dt, o = r("%Function.prototype.apply%"), s = r("%Function.prototype.call%"), a = r("%Reflect.apply%", !0) || e.call(s, o), u = Ir(),
|
|
3593
|
+
var e = Er, r = ot, n = da, i = Dt, o = r("%Function.prototype.apply%"), s = r("%Function.prototype.call%"), a = r("%Reflect.apply%", !0) || e.call(s, o), u = Ir(), d = r("%Math.max%");
|
|
3594
3594
|
t.exports = function(p) {
|
|
3595
3595
|
if (typeof p != "function")
|
|
3596
3596
|
throw new i("a function is required");
|
|
3597
3597
|
var v = a(e, s, arguments);
|
|
3598
3598
|
return n(
|
|
3599
3599
|
v,
|
|
3600
|
-
1 +
|
|
3600
|
+
1 + d(0, p.length - (arguments.length - 1)),
|
|
3601
3601
|
!0
|
|
3602
3602
|
);
|
|
3603
3603
|
};
|
|
@@ -3850,7 +3850,7 @@ var Ya = function(e) {
|
|
|
3850
3850
|
function o(y) {
|
|
3851
3851
|
return y.call.bind(y);
|
|
3852
3852
|
}
|
|
3853
|
-
var s = typeof BigInt < "u", a = typeof Symbol < "u", u = o(Object.prototype.toString),
|
|
3853
|
+
var s = typeof BigInt < "u", a = typeof Symbol < "u", u = o(Object.prototype.toString), d = o(Number.prototype.valueOf), c = o(String.prototype.valueOf), f = o(Boolean.prototype.valueOf);
|
|
3854
3854
|
if (s)
|
|
3855
3855
|
var p = o(BigInt.prototype.valueOf);
|
|
3856
3856
|
if (a)
|
|
@@ -3957,12 +3957,12 @@ var Ya = function(e) {
|
|
|
3957
3957
|
return typeof ArrayBuffer > "u" ? !1 : Re.working ? Re(y) : y instanceof ArrayBuffer;
|
|
3958
3958
|
}
|
|
3959
3959
|
t.isArrayBuffer = st;
|
|
3960
|
-
function
|
|
3960
|
+
function l(y) {
|
|
3961
3961
|
return u(y) === "[object DataView]";
|
|
3962
3962
|
}
|
|
3963
|
-
|
|
3963
|
+
l.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && l(new DataView(new ArrayBuffer(1), 0, 1));
|
|
3964
3964
|
function h(y) {
|
|
3965
|
-
return typeof DataView > "u" ? !1 :
|
|
3965
|
+
return typeof DataView > "u" ? !1 : l.working ? l(y) : y instanceof DataView;
|
|
3966
3966
|
}
|
|
3967
3967
|
t.isDataView = h;
|
|
3968
3968
|
var m = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
|
|
@@ -3994,7 +3994,7 @@ var Ya = function(e) {
|
|
|
3994
3994
|
}
|
|
3995
3995
|
t.isWebAssemblyCompiledModule = z;
|
|
3996
3996
|
function Ie(y) {
|
|
3997
|
-
return b(y,
|
|
3997
|
+
return b(y, d);
|
|
3998
3998
|
}
|
|
3999
3999
|
t.isNumberObject = Ie;
|
|
4000
4000
|
function at(y) {
|
|
@@ -4056,13 +4056,13 @@ var ru = hr.exports;
|
|
|
4056
4056
|
w[m[L]] = Object.getOwnPropertyDescriptor(h, m[L]);
|
|
4057
4057
|
return w;
|
|
4058
4058
|
}, r = /%[sdj%]/g;
|
|
4059
|
-
t.format = function(
|
|
4060
|
-
if (!P(
|
|
4059
|
+
t.format = function(l) {
|
|
4060
|
+
if (!P(l)) {
|
|
4061
4061
|
for (var h = [], m = 0; m < arguments.length; m++)
|
|
4062
4062
|
h.push(s(arguments[m]));
|
|
4063
4063
|
return h.join(" ");
|
|
4064
4064
|
}
|
|
4065
|
-
for (var m = 1, w = arguments, L = w.length, k = String(
|
|
4065
|
+
for (var m = 1, w = arguments, L = w.length, k = String(l).replace(r, function(O) {
|
|
4066
4066
|
if (O === "%%") return "%";
|
|
4067
4067
|
if (m >= L) return O;
|
|
4068
4068
|
switch (O) {
|
|
@@ -4082,12 +4082,12 @@ var ru = hr.exports;
|
|
|
4082
4082
|
}), E = w[m]; m < L; E = w[++m])
|
|
4083
4083
|
R(E) || !ie(E) ? k += " " + E : k += " " + s(E);
|
|
4084
4084
|
return k;
|
|
4085
|
-
}, t.deprecate = function(
|
|
4085
|
+
}, t.deprecate = function(l, h) {
|
|
4086
4086
|
if (typeof A < "u" && A.noDeprecation === !0)
|
|
4087
|
-
return
|
|
4087
|
+
return l;
|
|
4088
4088
|
if (typeof A > "u")
|
|
4089
4089
|
return function() {
|
|
4090
|
-
return t.deprecate(
|
|
4090
|
+
return t.deprecate(l, h).apply(this, arguments);
|
|
4091
4091
|
};
|
|
4092
4092
|
var m = !1;
|
|
4093
4093
|
function w() {
|
|
@@ -4096,7 +4096,7 @@ var ru = hr.exports;
|
|
|
4096
4096
|
throw new Error(h);
|
|
4097
4097
|
A.traceDeprecation ? console.trace(h) : console.error(h), m = !0;
|
|
4098
4098
|
}
|
|
4099
|
-
return
|
|
4099
|
+
return l.apply(this, arguments);
|
|
4100
4100
|
}
|
|
4101
4101
|
return w;
|
|
4102
4102
|
};
|
|
@@ -4105,25 +4105,25 @@ var ru = hr.exports;
|
|
|
4105
4105
|
var o = A.env.NODE_DEBUG;
|
|
4106
4106
|
o = o.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), i = new RegExp("^" + o + "$", "i");
|
|
4107
4107
|
}
|
|
4108
|
-
t.debuglog = function(
|
|
4109
|
-
if (
|
|
4110
|
-
if (i.test(
|
|
4108
|
+
t.debuglog = function(l) {
|
|
4109
|
+
if (l = l.toUpperCase(), !n[l])
|
|
4110
|
+
if (i.test(l)) {
|
|
4111
4111
|
var h = A.pid;
|
|
4112
|
-
n[
|
|
4112
|
+
n[l] = function() {
|
|
4113
4113
|
var m = t.format.apply(t, arguments);
|
|
4114
|
-
console.error("%s %d: %s",
|
|
4114
|
+
console.error("%s %d: %s", l, h, m);
|
|
4115
4115
|
};
|
|
4116
4116
|
} else
|
|
4117
|
-
n[
|
|
4117
|
+
n[l] = function() {
|
|
4118
4118
|
};
|
|
4119
|
-
return n[
|
|
4119
|
+
return n[l];
|
|
4120
4120
|
};
|
|
4121
|
-
function s(
|
|
4121
|
+
function s(l, h) {
|
|
4122
4122
|
var m = {
|
|
4123
4123
|
seen: [],
|
|
4124
4124
|
stylize: u
|
|
4125
4125
|
};
|
|
4126
|
-
return arguments.length >= 3 && (m.depth = arguments[2]), arguments.length >= 4 && (m.colors = arguments[3]), C(h) ? m.showHidden = h : h && t._extend(m, h), T(m.showHidden) && (m.showHidden = !1), T(m.depth) && (m.depth = 2), T(m.colors) && (m.colors = !1), T(m.customInspect) && (m.customInspect = !0), m.colors && (m.stylize = a), c(m,
|
|
4126
|
+
return arguments.length >= 3 && (m.depth = arguments[2]), arguments.length >= 4 && (m.colors = arguments[3]), C(h) ? m.showHidden = h : h && t._extend(m, h), T(m.showHidden) && (m.showHidden = !1), T(m.depth) && (m.depth = 2), T(m.colors) && (m.colors = !1), T(m.customInspect) && (m.customInspect = !0), m.colors && (m.stylize = a), c(m, l, m.depth);
|
|
4127
4127
|
}
|
|
4128
4128
|
t.inspect = s, s.colors = {
|
|
4129
4129
|
bold: [1, 22],
|
|
@@ -4150,41 +4150,41 @@ var ru = hr.exports;
|
|
|
4150
4150
|
// "name": intentionally not styling
|
|
4151
4151
|
regexp: "red"
|
|
4152
4152
|
};
|
|
4153
|
-
function a(
|
|
4153
|
+
function a(l, h) {
|
|
4154
4154
|
var m = s.styles[h];
|
|
4155
|
-
return m ? "\x1B[" + s.colors[m][0] + "m" +
|
|
4155
|
+
return m ? "\x1B[" + s.colors[m][0] + "m" + l + "\x1B[" + s.colors[m][1] + "m" : l;
|
|
4156
4156
|
}
|
|
4157
|
-
function u(
|
|
4158
|
-
return
|
|
4157
|
+
function u(l, h) {
|
|
4158
|
+
return l;
|
|
4159
4159
|
}
|
|
4160
|
-
function l
|
|
4160
|
+
function d(l) {
|
|
4161
4161
|
var h = {};
|
|
4162
|
-
return
|
|
4162
|
+
return l.forEach(function(m, w) {
|
|
4163
4163
|
h[m] = !0;
|
|
4164
4164
|
}), h;
|
|
4165
4165
|
}
|
|
4166
|
-
function c(
|
|
4167
|
-
if (
|
|
4166
|
+
function c(l, h, m) {
|
|
4167
|
+
if (l.customInspect && h && le(h.inspect) && // Filter out the util module, it's inspect function is special
|
|
4168
4168
|
h.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
|
|
4169
4169
|
!(h.constructor && h.constructor.prototype === h)) {
|
|
4170
|
-
var w = h.inspect(m,
|
|
4171
|
-
return P(w) || (w = c(
|
|
4170
|
+
var w = h.inspect(m, l);
|
|
4171
|
+
return P(w) || (w = c(l, w, m)), w;
|
|
4172
4172
|
}
|
|
4173
|
-
var L = f(
|
|
4173
|
+
var L = f(l, h);
|
|
4174
4174
|
if (L)
|
|
4175
4175
|
return L;
|
|
4176
|
-
var k = Object.keys(h), E =
|
|
4177
|
-
if (
|
|
4176
|
+
var k = Object.keys(h), E = d(k);
|
|
4177
|
+
if (l.showHidden && (k = Object.getOwnPropertyNames(h)), Ee(h) && (k.indexOf("message") >= 0 || k.indexOf("description") >= 0))
|
|
4178
4178
|
return p(h);
|
|
4179
4179
|
if (k.length === 0) {
|
|
4180
4180
|
if (le(h)) {
|
|
4181
4181
|
var O = h.name ? ": " + h.name : "";
|
|
4182
|
-
return
|
|
4182
|
+
return l.stylize("[Function" + O + "]", "special");
|
|
4183
4183
|
}
|
|
4184
4184
|
if (ne(h))
|
|
4185
|
-
return
|
|
4185
|
+
return l.stylize(RegExp.prototype.toString.call(h), "regexp");
|
|
4186
4186
|
if (Ne(h))
|
|
4187
|
-
return
|
|
4187
|
+
return l.stylize(Date.prototype.toString.call(h), "date");
|
|
4188
4188
|
if (Ee(h))
|
|
4189
4189
|
return p(h);
|
|
4190
4190
|
}
|
|
@@ -4196,34 +4196,34 @@ var ru = hr.exports;
|
|
|
4196
4196
|
if (ne(h) && (F = " " + RegExp.prototype.toString.call(h)), Ne(h) && (F = " " + Date.prototype.toUTCString.call(h)), Ee(h) && (F = " " + p(h)), k.length === 0 && (!z || h.length == 0))
|
|
4197
4197
|
return Ie[0] + F + Ie[1];
|
|
4198
4198
|
if (m < 0)
|
|
4199
|
-
return ne(h) ?
|
|
4200
|
-
|
|
4199
|
+
return ne(h) ? l.stylize(RegExp.prototype.toString.call(h), "regexp") : l.stylize("[Object]", "special");
|
|
4200
|
+
l.seen.push(h);
|
|
4201
4201
|
var Ve;
|
|
4202
|
-
return z ? Ve = v(
|
|
4203
|
-
return b(
|
|
4204
|
-
}),
|
|
4202
|
+
return z ? Ve = v(l, h, m, E, k) : Ve = k.map(function(ut) {
|
|
4203
|
+
return b(l, h, m, E, ut, z);
|
|
4204
|
+
}), l.seen.pop(), g(Ve, F, Ie);
|
|
4205
4205
|
}
|
|
4206
|
-
function f(
|
|
4206
|
+
function f(l, h) {
|
|
4207
4207
|
if (T(h))
|
|
4208
|
-
return
|
|
4208
|
+
return l.stylize("undefined", "undefined");
|
|
4209
4209
|
if (P(h)) {
|
|
4210
4210
|
var m = "'" + JSON.stringify(h).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
4211
|
-
return
|
|
4211
|
+
return l.stylize(m, "string");
|
|
4212
4212
|
}
|
|
4213
4213
|
if (ee(h))
|
|
4214
|
-
return
|
|
4214
|
+
return l.stylize("" + h, "number");
|
|
4215
4215
|
if (C(h))
|
|
4216
|
-
return
|
|
4216
|
+
return l.stylize("" + h, "boolean");
|
|
4217
4217
|
if (R(h))
|
|
4218
|
-
return
|
|
4218
|
+
return l.stylize("null", "null");
|
|
4219
4219
|
}
|
|
4220
|
-
function p(
|
|
4221
|
-
return "[" + Error.prototype.toString.call(
|
|
4220
|
+
function p(l) {
|
|
4221
|
+
return "[" + Error.prototype.toString.call(l) + "]";
|
|
4222
4222
|
}
|
|
4223
|
-
function v(
|
|
4223
|
+
function v(l, h, m, w, L) {
|
|
4224
4224
|
for (var k = [], E = 0, O = h.length; E < O; ++E)
|
|
4225
4225
|
De(h, String(E)) ? k.push(b(
|
|
4226
|
-
|
|
4226
|
+
l,
|
|
4227
4227
|
h,
|
|
4228
4228
|
m,
|
|
4229
4229
|
w,
|
|
@@ -4232,7 +4232,7 @@ var ru = hr.exports;
|
|
|
4232
4232
|
)) : k.push("");
|
|
4233
4233
|
return L.forEach(function(F) {
|
|
4234
4234
|
F.match(/^\d+$/) || k.push(b(
|
|
4235
|
-
|
|
4235
|
+
l,
|
|
4236
4236
|
h,
|
|
4237
4237
|
m,
|
|
4238
4238
|
w,
|
|
@@ -4241,9 +4241,9 @@ var ru = hr.exports;
|
|
|
4241
4241
|
));
|
|
4242
4242
|
}), k;
|
|
4243
4243
|
}
|
|
4244
|
-
function b(
|
|
4244
|
+
function b(l, h, m, w, L, k) {
|
|
4245
4245
|
var E, O, F;
|
|
4246
|
-
if (F = Object.getOwnPropertyDescriptor(h, L) || { value: h[L] }, F.get ? F.set ? O =
|
|
4246
|
+
if (F = Object.getOwnPropertyDescriptor(h, L) || { value: h[L] }, F.get ? F.set ? O = l.stylize("[Getter/Setter]", "special") : O = l.stylize("[Getter]", "special") : F.set && (O = l.stylize("[Setter]", "special")), De(w, L) || (E = "[" + L + "]"), O || (l.seen.indexOf(F.value) < 0 ? (R(m) ? O = c(l, F.value, null) : O = c(l, F.value, m - 1), O.indexOf(`
|
|
4247
4247
|
`) > -1 && (k ? O = O.split(`
|
|
4248
4248
|
`).map(function(z) {
|
|
4249
4249
|
return " " + z;
|
|
@@ -4253,85 +4253,85 @@ var ru = hr.exports;
|
|
|
4253
4253
|
`).map(function(z) {
|
|
4254
4254
|
return " " + z;
|
|
4255
4255
|
}).join(`
|
|
4256
|
-
`))) : O =
|
|
4256
|
+
`))) : O = l.stylize("[Circular]", "special")), T(E)) {
|
|
4257
4257
|
if (k && L.match(/^\d+$/))
|
|
4258
4258
|
return O;
|
|
4259
|
-
E = JSON.stringify("" + L), E.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (E = E.slice(1, -1), E =
|
|
4259
|
+
E = JSON.stringify("" + L), E.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (E = E.slice(1, -1), E = l.stylize(E, "name")) : (E = E.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), E = l.stylize(E, "string"));
|
|
4260
4260
|
}
|
|
4261
4261
|
return E + ": " + O;
|
|
4262
4262
|
}
|
|
4263
|
-
function g(
|
|
4264
|
-
var w =
|
|
4263
|
+
function g(l, h, m) {
|
|
4264
|
+
var w = l.reduce(function(L, k) {
|
|
4265
4265
|
return k.indexOf(`
|
|
4266
4266
|
`) >= 0, L + k.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
4267
4267
|
}, 0);
|
|
4268
4268
|
return w > 60 ? m[0] + (h === "" ? "" : h + `
|
|
4269
|
-
`) + " " +
|
|
4270
|
-
`) + " " + m[1] : m[0] + h + " " +
|
|
4269
|
+
`) + " " + l.join(`,
|
|
4270
|
+
`) + " " + m[1] : m[0] + h + " " + l.join(", ") + " " + m[1];
|
|
4271
4271
|
}
|
|
4272
4272
|
t.types = Hn;
|
|
4273
|
-
function S(
|
|
4274
|
-
return Array.isArray(
|
|
4273
|
+
function S(l) {
|
|
4274
|
+
return Array.isArray(l);
|
|
4275
4275
|
}
|
|
4276
4276
|
t.isArray = S;
|
|
4277
|
-
function C(
|
|
4278
|
-
return typeof
|
|
4277
|
+
function C(l) {
|
|
4278
|
+
return typeof l == "boolean";
|
|
4279
4279
|
}
|
|
4280
4280
|
t.isBoolean = C;
|
|
4281
|
-
function R(
|
|
4282
|
-
return
|
|
4281
|
+
function R(l) {
|
|
4282
|
+
return l === null;
|
|
4283
4283
|
}
|
|
4284
4284
|
t.isNull = R;
|
|
4285
|
-
function Q(
|
|
4286
|
-
return
|
|
4285
|
+
function Q(l) {
|
|
4286
|
+
return l == null;
|
|
4287
4287
|
}
|
|
4288
4288
|
t.isNullOrUndefined = Q;
|
|
4289
|
-
function ee(
|
|
4290
|
-
return typeof
|
|
4289
|
+
function ee(l) {
|
|
4290
|
+
return typeof l == "number";
|
|
4291
4291
|
}
|
|
4292
4292
|
t.isNumber = ee;
|
|
4293
|
-
function P(
|
|
4294
|
-
return typeof
|
|
4293
|
+
function P(l) {
|
|
4294
|
+
return typeof l == "string";
|
|
4295
4295
|
}
|
|
4296
4296
|
t.isString = P;
|
|
4297
|
-
function V(
|
|
4298
|
-
return typeof
|
|
4297
|
+
function V(l) {
|
|
4298
|
+
return typeof l == "symbol";
|
|
4299
4299
|
}
|
|
4300
4300
|
t.isSymbol = V;
|
|
4301
|
-
function T(
|
|
4302
|
-
return
|
|
4301
|
+
function T(l) {
|
|
4302
|
+
return l === void 0;
|
|
4303
4303
|
}
|
|
4304
4304
|
t.isUndefined = T;
|
|
4305
|
-
function ne(
|
|
4306
|
-
return ie(
|
|
4305
|
+
function ne(l) {
|
|
4306
|
+
return ie(l) && Se(l) === "[object RegExp]";
|
|
4307
4307
|
}
|
|
4308
4308
|
t.isRegExp = ne, t.types.isRegExp = ne;
|
|
4309
|
-
function ie(
|
|
4310
|
-
return typeof
|
|
4309
|
+
function ie(l) {
|
|
4310
|
+
return typeof l == "object" && l !== null;
|
|
4311
4311
|
}
|
|
4312
4312
|
t.isObject = ie;
|
|
4313
|
-
function Ne(
|
|
4314
|
-
return ie(
|
|
4313
|
+
function Ne(l) {
|
|
4314
|
+
return ie(l) && Se(l) === "[object Date]";
|
|
4315
4315
|
}
|
|
4316
4316
|
t.isDate = Ne, t.types.isDate = Ne;
|
|
4317
|
-
function Ee(
|
|
4318
|
-
return ie(
|
|
4317
|
+
function Ee(l) {
|
|
4318
|
+
return ie(l) && (Se(l) === "[object Error]" || l instanceof Error);
|
|
4319
4319
|
}
|
|
4320
4320
|
t.isError = Ee, t.types.isNativeError = Ee;
|
|
4321
|
-
function le(
|
|
4322
|
-
return typeof
|
|
4321
|
+
function le(l) {
|
|
4322
|
+
return typeof l == "function";
|
|
4323
4323
|
}
|
|
4324
4324
|
t.isFunction = le;
|
|
4325
|
-
function $t(
|
|
4326
|
-
return
|
|
4327
|
-
typeof
|
|
4325
|
+
function $t(l) {
|
|
4326
|
+
return l === null || typeof l == "boolean" || typeof l == "number" || typeof l == "string" || typeof l == "symbol" || // ES6 symbol
|
|
4327
|
+
typeof l > "u";
|
|
4328
4328
|
}
|
|
4329
4329
|
t.isPrimitive = $t, t.isBuffer = tu;
|
|
4330
|
-
function Se(
|
|
4331
|
-
return Object.prototype.toString.call(
|
|
4330
|
+
function Se(l) {
|
|
4331
|
+
return Object.prototype.toString.call(l);
|
|
4332
4332
|
}
|
|
4333
|
-
function Ye(
|
|
4334
|
-
return
|
|
4333
|
+
function Ye(l) {
|
|
4334
|
+
return l < 10 ? "0" + l.toString(10) : l.toString(10);
|
|
4335
4335
|
}
|
|
4336
4336
|
var Fe = [
|
|
4337
4337
|
"Jan",
|
|
@@ -4348,23 +4348,23 @@ var ru = hr.exports;
|
|
|
4348
4348
|
"Dec"
|
|
4349
4349
|
];
|
|
4350
4350
|
function Mt() {
|
|
4351
|
-
var
|
|
4352
|
-
Ye(
|
|
4353
|
-
Ye(
|
|
4354
|
-
Ye(
|
|
4351
|
+
var l = /* @__PURE__ */ new Date(), h = [
|
|
4352
|
+
Ye(l.getHours()),
|
|
4353
|
+
Ye(l.getMinutes()),
|
|
4354
|
+
Ye(l.getSeconds())
|
|
4355
4355
|
].join(":");
|
|
4356
|
-
return [
|
|
4356
|
+
return [l.getDate(), Fe[l.getMonth()], h].join(" ");
|
|
4357
4357
|
}
|
|
4358
4358
|
t.log = function() {
|
|
4359
4359
|
console.log("%s - %s", Mt(), t.format.apply(t, arguments));
|
|
4360
|
-
}, t.inherits = ru, t._extend = function(
|
|
4361
|
-
if (!h || !ie(h)) return
|
|
4360
|
+
}, t.inherits = ru, t._extend = function(l, h) {
|
|
4361
|
+
if (!h || !ie(h)) return l;
|
|
4362
4362
|
for (var m = Object.keys(h), w = m.length; w--; )
|
|
4363
|
-
|
|
4364
|
-
return
|
|
4363
|
+
l[m[w]] = h[m[w]];
|
|
4364
|
+
return l;
|
|
4365
4365
|
};
|
|
4366
|
-
function De(
|
|
4367
|
-
return Object.prototype.hasOwnProperty.call(
|
|
4366
|
+
function De(l, h) {
|
|
4367
|
+
return Object.prototype.hasOwnProperty.call(l, h);
|
|
4368
4368
|
}
|
|
4369
4369
|
var de = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
|
|
4370
4370
|
t.promisify = function(h) {
|
|
@@ -4406,15 +4406,15 @@ var ru = hr.exports;
|
|
|
4406
4406
|
e(h)
|
|
4407
4407
|
);
|
|
4408
4408
|
}, t.promisify.custom = de;
|
|
4409
|
-
function Re(
|
|
4410
|
-
if (!
|
|
4409
|
+
function Re(l, h) {
|
|
4410
|
+
if (!l) {
|
|
4411
4411
|
var m = new Error("Promise was rejected with a falsy value");
|
|
4412
|
-
m.reason =
|
|
4412
|
+
m.reason = l, l = m;
|
|
4413
4413
|
}
|
|
4414
|
-
return h(
|
|
4414
|
+
return h(l);
|
|
4415
4415
|
}
|
|
4416
|
-
function st(
|
|
4417
|
-
if (typeof
|
|
4416
|
+
function st(l) {
|
|
4417
|
+
if (typeof l != "function")
|
|
4418
4418
|
throw new TypeError('The "original" argument must be of type Function');
|
|
4419
4419
|
function h() {
|
|
4420
4420
|
for (var m = [], w = 0; w < arguments.length; w++)
|
|
@@ -4425,7 +4425,7 @@ var ru = hr.exports;
|
|
|
4425
4425
|
var k = this, E = function() {
|
|
4426
4426
|
return L.apply(k, arguments);
|
|
4427
4427
|
};
|
|
4428
|
-
|
|
4428
|
+
l.apply(this, m).then(
|
|
4429
4429
|
function(O) {
|
|
4430
4430
|
A.nextTick(E.bind(null, null, O));
|
|
4431
4431
|
},
|
|
@@ -4434,9 +4434,9 @@ var ru = hr.exports;
|
|
|
4434
4434
|
}
|
|
4435
4435
|
);
|
|
4436
4436
|
}
|
|
4437
|
-
return Object.setPrototypeOf(h, Object.getPrototypeOf(
|
|
4437
|
+
return Object.setPrototypeOf(h, Object.getPrototypeOf(l)), Object.defineProperties(
|
|
4438
4438
|
h,
|
|
4439
|
-
e(
|
|
4439
|
+
e(l)
|
|
4440
4440
|
), h;
|
|
4441
4441
|
}
|
|
4442
4442
|
t.callbackify = st;
|
|
@@ -4483,22 +4483,22 @@ var li = {
|
|
|
4483
4483
|
}, iu = function t(e, r, n) {
|
|
4484
4484
|
r === void 0 && (r = ""), n || (n = {});
|
|
4485
4485
|
var i = function(u) {
|
|
4486
|
-
var
|
|
4486
|
+
var d = {
|
|
4487
4487
|
"│": "|",
|
|
4488
4488
|
"└": "`",
|
|
4489
4489
|
"├": "+",
|
|
4490
4490
|
"─": "-",
|
|
4491
4491
|
"┬": "-"
|
|
4492
4492
|
};
|
|
4493
|
-
return n.unicode === !1 ?
|
|
4493
|
+
return n.unicode === !1 ? d[u] : u;
|
|
4494
4494
|
};
|
|
4495
4495
|
typeof e == "string" && (e = { label: e });
|
|
4496
4496
|
var o = e.nodes || [], s = (e.label || "").split(`
|
|
4497
4497
|
`), a = `
|
|
4498
4498
|
` + r + (o.length ? i("│") : " ") + " ";
|
|
4499
4499
|
return r + s.join(a) + `
|
|
4500
|
-
` + o.map(function(u,
|
|
4501
|
-
var c =
|
|
4500
|
+
` + o.map(function(u, d) {
|
|
4501
|
+
var c = d === o.length - 1, f = u.nodes && u.nodes.length, p = r + (c ? " " : i("│")) + " ";
|
|
4502
4502
|
return r + i(c ? "└" : "├") + i("─") + i(f ? "┬" : "─") + " " + t(u, p, n).slice(r.length + 2);
|
|
4503
4503
|
}).join("");
|
|
4504
4504
|
};
|
|
@@ -4634,16 +4634,16 @@ function uu() {
|
|
|
4634
4634
|
}
|
|
4635
4635
|
function u(c) {
|
|
4636
4636
|
var f = Math.abs(c);
|
|
4637
|
-
return f >= n ?
|
|
4637
|
+
return f >= n ? d(c, f, n, "day") : f >= r ? d(c, f, r, "hour") : f >= e ? d(c, f, e, "minute") : f >= t ? d(c, f, t, "second") : c + " ms";
|
|
4638
4638
|
}
|
|
4639
|
-
function
|
|
4639
|
+
function d(c, f, p, v) {
|
|
4640
4640
|
var b = f >= p * 1.5;
|
|
4641
4641
|
return Math.round(c / p) + " " + v + (b ? "s" : "");
|
|
4642
4642
|
}
|
|
4643
4643
|
return Jt;
|
|
4644
4644
|
}
|
|
4645
4645
|
function cu(t) {
|
|
4646
|
-
r.debug = r, r.default = r, r.coerce = u, r.disable = o, r.enable = i, r.enabled = s, r.humanize = uu(), r.destroy =
|
|
4646
|
+
r.debug = r, r.default = r, r.coerce = u, r.disable = o, r.enable = i, r.enabled = s, r.humanize = uu(), r.destroy = d, Object.keys(t).forEach((c) => {
|
|
4647
4647
|
r[c] = t[c];
|
|
4648
4648
|
}), r.names = [], r.skips = [], r.formatters = {};
|
|
4649
4649
|
function e(c) {
|
|
@@ -4718,7 +4718,7 @@ function cu(t) {
|
|
|
4718
4718
|
function u(c) {
|
|
4719
4719
|
return c instanceof Error ? c.stack || c.message : c;
|
|
4720
4720
|
}
|
|
4721
|
-
function
|
|
4721
|
+
function d() {
|
|
4722
4722
|
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
4723
4723
|
}
|
|
4724
4724
|
return r.enable(r.load()), r;
|
|
@@ -4818,12 +4818,12 @@ var lu = cu;
|
|
|
4818
4818
|
function n(u) {
|
|
4819
4819
|
if (u[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + u[0] + (this.useColors ? "%c " : " ") + "+" + t.exports.humanize(this.diff), !this.useColors)
|
|
4820
4820
|
return;
|
|
4821
|
-
const
|
|
4822
|
-
u.splice(1, 0,
|
|
4821
|
+
const d = "color: " + this.color;
|
|
4822
|
+
u.splice(1, 0, d, "color: inherit");
|
|
4823
4823
|
let c = 0, f = 0;
|
|
4824
4824
|
u[0].replace(/%[a-zA-Z%]/g, (p) => {
|
|
4825
4825
|
p !== "%%" && (c++, p === "%c" && (f = c));
|
|
4826
|
-
}), u.splice(f, 0,
|
|
4826
|
+
}), u.splice(f, 0, d);
|
|
4827
4827
|
}
|
|
4828
4828
|
e.log = console.debug || console.log || (() => {
|
|
4829
4829
|
});
|
|
@@ -4852,8 +4852,8 @@ var lu = cu;
|
|
|
4852
4852
|
a.j = function(u) {
|
|
4853
4853
|
try {
|
|
4854
4854
|
return JSON.stringify(u);
|
|
4855
|
-
} catch (
|
|
4856
|
-
return "[UnexpectedJSONParseError]: " +
|
|
4855
|
+
} catch (d) {
|
|
4856
|
+
return "[UnexpectedJSONParseError]: " + d.message;
|
|
4857
4857
|
}
|
|
4858
4858
|
};
|
|
4859
4859
|
})(yr, yr.exports);
|
|
@@ -4986,22 +4986,22 @@ function Ou(t, e, r) {
|
|
|
4986
4986
|
throw new Zt(o);
|
|
4987
4987
|
if (t[s])
|
|
4988
4988
|
throw new Zt(s);
|
|
4989
|
-
t[i] = function(
|
|
4990
|
-
return r.use(
|
|
4991
|
-
}, Object.defineProperty(t, "then", { get: fi.bind(r) }), t[_t] = !0, t[o] = function(
|
|
4992
|
-
return typeof
|
|
4993
|
-
}, t[s] = function(
|
|
4994
|
-
if (
|
|
4995
|
-
throw new et(s, typeof
|
|
4996
|
-
return r.ready(
|
|
4997
|
-
}, t[a] = function(
|
|
4998
|
-
if (typeof
|
|
4999
|
-
throw new et(a, typeof
|
|
5000
|
-
return r.onClose(Pu(
|
|
5001
|
-
}, t[u] = function(
|
|
5002
|
-
if (
|
|
5003
|
-
throw new et(u, typeof
|
|
5004
|
-
return
|
|
4989
|
+
t[i] = function(d, c) {
|
|
4990
|
+
return r.use(d, c), this;
|
|
4991
|
+
}, Object.defineProperty(t, "then", { get: fi.bind(r) }), t[_t] = !0, t[o] = function(d) {
|
|
4992
|
+
return typeof d != "function" ? r._loadRegistered() : (r.after(tr(d, this)), this);
|
|
4993
|
+
}, t[s] = function(d) {
|
|
4994
|
+
if (d && typeof d != "function")
|
|
4995
|
+
throw new et(s, typeof d);
|
|
4996
|
+
return r.ready(d ? tr(d, this) : void 0);
|
|
4997
|
+
}, t[a] = function(d) {
|
|
4998
|
+
if (typeof d != "function")
|
|
4999
|
+
throw new et(a, typeof d);
|
|
5000
|
+
return r.onClose(Pu(d, this)), this;
|
|
5001
|
+
}, t[u] = function(d) {
|
|
5002
|
+
if (d && typeof d != "function")
|
|
5003
|
+
throw new et(u, typeof d);
|
|
5004
|
+
return d ? (r.close(tr(d, this)), this) : r.close();
|
|
5005
5005
|
};
|
|
5006
5006
|
}
|
|
5007
5007
|
function q(t, e, r) {
|
|
@@ -5015,8 +5015,8 @@ function q(t, e, r) {
|
|
|
5015
5015
|
this.emit("close"), this._closeQ.drain = wn;
|
|
5016
5016
|
}, this._doStart = null, this._root = new mr(this, _u.bind(this), e, !1, 0), this._root.once("start", (n, i, o) => {
|
|
5017
5017
|
const s = this.pluginTree.start(null, i, o);
|
|
5018
|
-
this._root.once("loaded", (a, u,
|
|
5019
|
-
this.pluginTree.stop(s,
|
|
5018
|
+
this._root.once("loaded", (a, u, d) => {
|
|
5019
|
+
this.pluginTree.stop(s, d);
|
|
5020
5020
|
});
|
|
5021
5021
|
}), mr.loadPlugin.call(this, this._root, (n) => {
|
|
5022
5022
|
ze("root plugin ready");
|
|
@@ -5063,7 +5063,7 @@ q.prototype._addPlugin = function(t, e, r) {
|
|
|
5063
5063
|
const n = this._current[0], i = new mr(this, t, e, r);
|
|
5064
5064
|
if (i.once("start", (o, s, a) => {
|
|
5065
5065
|
const u = this.pluginTree.start(n.name, s, a);
|
|
5066
|
-
i.once("loaded", (
|
|
5066
|
+
i.once("loaded", (d, c, f) => {
|
|
5067
5067
|
this.pluginTree.stop(u, f);
|
|
5068
5068
|
});
|
|
5069
5069
|
}), n.loaded)
|
|
@@ -5230,14 +5230,18 @@ const Fu = /* @__PURE__ */ as(Nu);
|
|
|
5230
5230
|
})();
|
|
5231
5231
|
function nc(t, e = !0, r = !0, n) {
|
|
5232
5232
|
const i = e ? "https://grpc-sdk.streamlayer.io:443" : "https://grpc-sdk.next.streamlayer.io:443", o = e ? "https://grpc.streamlayer.io:443" : "https://grpc.next.streamlayer.io:443", s = Fu(/* @__PURE__ */ Object.create({}), { autostart: !1 });
|
|
5233
|
-
return s.use($o), s.use(ko, { onDeepLinkHandled: n?.onDeepLinkHandled }), s.use(Do, { videoPlayerController: n?.videoPlayerController }), s.use(Vo, {
|
|
5233
|
+
return s.use($o), s.use(ko, { onDeepLinkHandled: n?.onDeepLinkHandled }), s.use(Do, { videoPlayerController: n?.videoPlayerController }), s.use(Vo, {
|
|
5234
|
+
onContentActivate: n?.onContentActivate,
|
|
5235
|
+
withAd: n?.withAd,
|
|
5236
|
+
withAdNotification: n?.withAdNotification
|
|
5237
|
+
}), s.use(Wi, { sdkKey: t, host: i, analyticsHost: o, version: n?.version }), s.use(eo), s.use(Fo), s.use(Yo), s.use(So), s.use(ss), s.after((a, u, d) => {
|
|
5234
5238
|
if (a)
|
|
5235
5239
|
throw a;
|
|
5236
|
-
u.ready(),
|
|
5237
|
-
}), r && s.after(async (a, u,
|
|
5240
|
+
u.ready(), d();
|
|
5241
|
+
}), r && s.after(async (a, u, d) => {
|
|
5238
5242
|
if (a)
|
|
5239
5243
|
throw a;
|
|
5240
|
-
await u.sdk.initializeApp(),
|
|
5244
|
+
await u.sdk.initializeApp(), d();
|
|
5241
5245
|
}), s.onClose(() => {
|
|
5242
5246
|
console.log("close");
|
|
5243
5247
|
}), s;
|