@streamlayer/sdk-web 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +8 -8
- package/lib/es/index.js +278 -259
- package/package.json +11 -11
package/lib/es/index.js
CHANGED
|
@@ -7,19 +7,19 @@ import { computed as vi, map as Si, atom as Ct, batched as $r, onMount as gr } f
|
|
|
7
7
|
import { nanoid as rr } from "nanoid";
|
|
8
8
|
import { ConnectError as tt, Code as oe, createContextKey as Mr, createPromiseClient as Br, createContextValues as wi } from "@connectrpc/connect";
|
|
9
9
|
import { createGrpcWebTransport as jr } from "@connectrpc/connect-web";
|
|
10
|
-
import { nanoquery as
|
|
10
|
+
import { nanoquery as qr } from "@nanostores/query";
|
|
11
11
|
import { Events as An } from "@streamlayer/sl-eslib/sports/events/events_connect";
|
|
12
12
|
import { Client as nt } from "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
|
|
13
13
|
import { Users as br } from "@streamlayer/sl-eslib/users/users_connect";
|
|
14
14
|
import { Feed as Z } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
|
|
15
|
-
import { Leaderboard as
|
|
15
|
+
import { Leaderboard as In } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
|
|
16
16
|
import "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb";
|
|
17
17
|
import { LinksClient as Ai } from "@streamlayer/sl-eslib/shortLinks/linksClient_connect";
|
|
18
|
-
import { Kind as
|
|
19
|
-
import { AnalyticsService as
|
|
18
|
+
import { Kind as Q, TopicSubType as we, TopicType as x, PollOpenedFrom as re, Category as z, ScreenOrientation as Ur } from "@streamlayer/sl-eslib/analytics/v1/common/analytics.common_pb";
|
|
19
|
+
import { AnalyticsService as En } from "@streamlayer/sl-eslib/analytics/v2/streaming/streaming_connect";
|
|
20
20
|
import { InteractionActionType as xr } from "@streamlayer/sl-eslib/analytics/v1/interactions/interactions_pb";
|
|
21
21
|
import { NotificationKind as fe, NotificationType as Qr } from "@streamlayer/sl-eslib/analytics/v1/notifications/notifications_pb";
|
|
22
|
-
function
|
|
22
|
+
function Ii(t) {
|
|
23
23
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
24
24
|
}
|
|
25
25
|
var Tn = { exports: {} }, $ = Tn.exports = {}, se, ae;
|
|
@@ -56,7 +56,7 @@ function On(t) {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Ei(t) {
|
|
60
60
|
if (ae === clearTimeout)
|
|
61
61
|
return clearTimeout(t);
|
|
62
62
|
if ((ae === ir || !ae) && clearTimeout)
|
|
@@ -84,7 +84,7 @@ function _n() {
|
|
|
84
84
|
_e && _e[ft].run();
|
|
85
85
|
ft = -1, e = ge.length;
|
|
86
86
|
}
|
|
87
|
-
_e = null, xe = !1,
|
|
87
|
+
_e = null, xe = !1, Ei(t);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
$.nextTick = function(t) {
|
|
@@ -133,7 +133,7 @@ $.umask = function() {
|
|
|
133
133
|
return 0;
|
|
134
134
|
};
|
|
135
135
|
var Oi = Tn.exports;
|
|
136
|
-
const A = /* @__PURE__ */
|
|
136
|
+
const A = /* @__PURE__ */ Ii(Oi), _i = gi({
|
|
137
137
|
level: "trace",
|
|
138
138
|
enabled: typeof window < "u" && !!window.localStorage.getItem("SL_DEBUG"),
|
|
139
139
|
browser: {
|
|
@@ -283,7 +283,7 @@ class X extends Lt {
|
|
|
283
283
|
return this.getStore().get();
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
const
|
|
286
|
+
const q = (t) => Ct(t);
|
|
287
287
|
class ce extends Lt {
|
|
288
288
|
atomStore;
|
|
289
289
|
constructor(e, r, n) {
|
|
@@ -315,7 +315,7 @@ class ce extends Lt {
|
|
|
315
315
|
key = () => this.getStore().key;
|
|
316
316
|
off = () => this.getStore().off();
|
|
317
317
|
}
|
|
318
|
-
const
|
|
318
|
+
const G = new ki();
|
|
319
319
|
async function* Di(t, e) {
|
|
320
320
|
for await (const r of e) {
|
|
321
321
|
t.response.message = r, t.received_at = Date.now(), t.id = kn++;
|
|
@@ -444,7 +444,7 @@ class Vi {
|
|
|
444
444
|
reconnectMaxDelay: i.reconnectMaxDelay ?? 3e4,
|
|
445
445
|
reconnectMaxAttempts: i.reconnectMaxAttempts ?? 10,
|
|
446
446
|
withStore: i.withStore ?? !1
|
|
447
|
-
}, this.headers = e, this.listeners = /* @__PURE__ */ new Map(), this.params = n, this.method = r, i.withStore && (this.store = new X(
|
|
447
|
+
}, this.headers = e, this.listeners = /* @__PURE__ */ new Map(), this.params = n, this.method = r, i.withStore && (this.store = new X(q(null), `subscription:${i.name}:store`)), "subscribe" in n && typeof n.subscribe == "function" && (this.paramsListener = n.subscribe((s) => {
|
|
448
448
|
this.state.getValue("status") === te.Connected && (this.addStateLog(`params updated, reconnect => ${JSON.stringify(s)}`), this.reconnect());
|
|
449
449
|
})), this.updateState(te.Ready);
|
|
450
450
|
}
|
|
@@ -584,7 +584,7 @@ class Kr {
|
|
|
584
584
|
"sl-device-id": Bi(),
|
|
585
585
|
"sl-device-os": ji()
|
|
586
586
|
}), "transport:headers"), this.initInterceptors(), this.clients = /* @__PURE__ */ new Map(), this.streamClients = /* @__PURE__ */ new Map(), this.subscriptions = /* @__PURE__ */ new Map();
|
|
587
|
-
const [n, i, o] =
|
|
587
|
+
const [n, i, o] = qr({
|
|
588
588
|
dedupeTime: r?.dedupeTime,
|
|
589
589
|
refetchInterval: r?.refetchInterval
|
|
590
590
|
});
|
|
@@ -617,7 +617,7 @@ class Kr {
|
|
|
617
617
|
for (const [i, o] of this.subscriptions)
|
|
618
618
|
o.disconnect(), this.subscriptions.delete(i);
|
|
619
619
|
this.clients.clear(), this.streamClients.clear(), this.subscriptions.clear();
|
|
620
|
-
const [e, r, n] =
|
|
620
|
+
const [e, r, n] = qr({
|
|
621
621
|
dedupeTime: this.opts?.dedupeTime,
|
|
622
622
|
refetchInterval: this.opts?.refetchInterval
|
|
623
623
|
});
|
|
@@ -682,7 +682,7 @@ class Kr {
|
|
|
682
682
|
this.interceptors.push(e), this.interceptors.push(Ri()), this.opts?.retryable && this.interceptors.push(Mi);
|
|
683
683
|
};
|
|
684
684
|
}
|
|
685
|
-
const
|
|
685
|
+
const qi = (t, e) => {
|
|
686
686
|
const { client: r, queryKey: n } = e.createPromiseClient(An, {
|
|
687
687
|
method: "retrieveEventId",
|
|
688
688
|
params: [t]
|
|
@@ -700,7 +700,7 @@ const Ui = (t, e) => {
|
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
702
|
});
|
|
703
|
-
},
|
|
703
|
+
}, Ui = (t, e) => {
|
|
704
704
|
const { client: r, queryKey: n } = e.createPromiseClient(nt, { method: "getStream", params: [t] });
|
|
705
705
|
return e.nanoquery.createFetcherStore(n, {
|
|
706
706
|
fetcher: async (i, o, s) => s ? (await r.getStream({
|
|
@@ -793,7 +793,7 @@ 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(
|
|
796
|
+
const e = new je(), r = new X(q(e.getExternalToken()), "userKey"), n = new X(q(e.getToken()), "userToken"), i = new ce(Qi(n.getStore(), t), "user", ({ data: s, error: a, loading: u }, d) => {
|
|
797
797
|
if (!a)
|
|
798
798
|
return s?.data?.id ? s.data.id : u === !1 ? void 0 : d;
|
|
799
799
|
}), o = new ce(Ki(n.getStore(), t), "userSettings");
|
|
@@ -804,7 +804,7 @@ const Yi = (t) => {
|
|
|
804
804
|
userSettings: o
|
|
805
805
|
};
|
|
806
806
|
}, Ji = (t) => {
|
|
807
|
-
const e = new X(
|
|
807
|
+
const e = new X(q(void 0), "providerStreamId"), r = new ce(qi(e.getStore(), t), "slStreamId", (o) => o?.data), n = new ce(Ui(r.getAtomStore(), t), "streamSettings"), i = new ce(xi(r.getAtomStore(), t), "streamSettings");
|
|
808
808
|
return r.getAtomStore().listen((o) => {
|
|
809
809
|
(o === "" || o === void 0) && (n.getStore().mutate(void 0), i.getStore().mutate(void 0));
|
|
810
810
|
}), {
|
|
@@ -814,7 +814,7 @@ const Yi = (t) => {
|
|
|
814
814
|
streamSummary: i
|
|
815
815
|
};
|
|
816
816
|
}, Xi = (t) => {
|
|
817
|
-
const e = new X(
|
|
817
|
+
const e = new X(q(void 0), "enabled"), r = new X(q(ye.DISABLED), "status"), n = new ce(zi(e.getStore(), t), "organizationSettings", (a) => a?.data?.id), i = new ce(Hi(n.getAtomStore(), t), "organizationAdvertising"), o = Yi(t), s = Ji(t);
|
|
818
818
|
return {
|
|
819
819
|
enabled: e,
|
|
820
820
|
status: r,
|
|
@@ -859,10 +859,10 @@ const eo = (t, e, r) => {
|
|
|
859
859
|
t.store.unsubscribe();
|
|
860
860
|
}, r();
|
|
861
861
|
}, to = (t) => {
|
|
862
|
-
const { client: e } = t.createPromiseClient(
|
|
862
|
+
const { client: e } = t.createPromiseClient(In, { method: "list" });
|
|
863
863
|
return (r) => e.list(r);
|
|
864
864
|
}, Nn = (t) => {
|
|
865
|
-
const { client: e } = t.createPromiseClient(
|
|
865
|
+
const { client: e } = t.createPromiseClient(In, { method: "summary" });
|
|
866
866
|
return (r) => e.summary(r);
|
|
867
867
|
}, ro = (t, e) => {
|
|
868
868
|
const { client: r, queryKey: n } = e.createPromiseClient(br, {
|
|
@@ -1045,9 +1045,17 @@ const ho = (t) => {
|
|
|
1045
1045
|
let n = !1;
|
|
1046
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
|
+
const b = a.get(), g = b.data?.question.id, S = b.data?.promotion?.type;
|
|
1049
|
+
g && G.emit("advertisement", {
|
|
1050
|
+
action: "notification-opened",
|
|
1051
|
+
payload: {
|
|
1052
|
+
id: g,
|
|
1053
|
+
type: S
|
|
1054
|
+
}
|
|
1055
|
+
});
|
|
1048
1056
|
}, c = () => {
|
|
1049
1057
|
const b = a.get(), g = b.data?.question.id, S = b.data?.promotion?.type, C = a.get()?.isOpened;
|
|
1050
|
-
g && !C && (o.debug({ id: g }, "markAsViewed: %o"), s.setShowed(g), a.setKey("isOpened", !0),
|
|
1058
|
+
g && !C && (o.debug({ id: g }, "markAsViewed: %o"), s.setShowed(g), a.setKey("isOpened", !0), G.emit("advertisement", {
|
|
1051
1059
|
action: "opened",
|
|
1052
1060
|
payload: {
|
|
1053
1061
|
id: g,
|
|
@@ -1076,7 +1084,7 @@ const ho = (t) => {
|
|
|
1076
1084
|
})));
|
|
1077
1085
|
};
|
|
1078
1086
|
a.subscribe((b, g) => {
|
|
1079
|
-
b.data && !b.isOpened &&
|
|
1087
|
+
b.data && !b.isOpened && G.emit("advertisement", {
|
|
1080
1088
|
action: "received",
|
|
1081
1089
|
payload: {
|
|
1082
1090
|
id: b.data.question.id,
|
|
@@ -1085,7 +1093,7 @@ const ho = (t) => {
|
|
|
1085
1093
|
isViewed: !!s.isViewed(b.data.question.id)
|
|
1086
1094
|
},
|
|
1087
1095
|
skipAnalytics: b.data.question.id === g?.data?.question.id
|
|
1088
|
-
}), !b?.data && g?.data &&
|
|
1096
|
+
}), !b?.data && g?.data && G.emit("advertisement", {
|
|
1089
1097
|
action: "closed",
|
|
1090
1098
|
payload: {
|
|
1091
1099
|
id: g.data.question.id,
|
|
@@ -1154,7 +1162,7 @@ class mo {
|
|
|
1154
1162
|
transport;
|
|
1155
1163
|
cancels = /* @__PURE__ */ new Set();
|
|
1156
1164
|
constructor(e) {
|
|
1157
|
-
this.transport = e.transport, this.log = ve("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new X(
|
|
1165
|
+
this.transport = e.transport, this.log = ve("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new X(q(void 0), "moderationId").getStore(), this.interactiveAllowed = new X(q(Le.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new X(q(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new ce(no(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new ce(co(this.slStreamId, this.interactiveAllowed, e.transport), "gamification:feedList"), this.activeQuestionId = io(this.slStreamId, e.transport), this.openedQuestion = fo(e.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((r) => {
|
|
1158
1166
|
this.log.debug({ item: r }, "received question"), r?.questionId ? (this.questionSubscription = ao(r.questionId, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (n) => {
|
|
1159
1167
|
this.openedQuestion.updateExtendedQuestion(n.data?.attributes?.question);
|
|
1160
1168
|
}), this.questionSubscription.connect()) : (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0));
|
|
@@ -1240,7 +1248,7 @@ class go {
|
|
|
1240
1248
|
options;
|
|
1241
1249
|
logger;
|
|
1242
1250
|
constructor(e) {
|
|
1243
|
-
this.options = e, this.logger = ve("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notificationsList =
|
|
1251
|
+
this.options = e, this.logger = ve("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notificationsList = q(/* @__PURE__ */ new Map());
|
|
1244
1252
|
}
|
|
1245
1253
|
addToQueue = (e) => {
|
|
1246
1254
|
if (this.store.has(e.id)) {
|
|
@@ -1284,7 +1292,7 @@ class go {
|
|
|
1284
1292
|
this.logger.debug({ notificationId: e }, "active queue tick skipped, notification not exist");
|
|
1285
1293
|
return;
|
|
1286
1294
|
}
|
|
1287
|
-
|
|
1295
|
+
G.emit("notification", {
|
|
1288
1296
|
action: "received",
|
|
1289
1297
|
payload: {
|
|
1290
1298
|
questionId: r.data.questionId,
|
|
@@ -1309,7 +1317,7 @@ class go {
|
|
|
1309
1317
|
const s = new Map(this.notificationsList.get());
|
|
1310
1318
|
s.delete(e), this.notificationsList.set(s);
|
|
1311
1319
|
const a = this.timeouts.get(e);
|
|
1312
|
-
a !== void 0 && (clearTimeout(a), this.timeouts.delete(e)), this.logger.debug({ notificationId: e }, "notification hidden"), i.hiding &&
|
|
1320
|
+
a !== void 0 && (clearTimeout(a), this.timeouts.delete(e)), this.logger.debug({ notificationId: e }, "notification hidden"), i.hiding && G.emit("notification", {
|
|
1313
1321
|
action: "closed",
|
|
1314
1322
|
payload: {
|
|
1315
1323
|
questionId: i.data.questionId,
|
|
@@ -1357,7 +1365,7 @@ class vo {
|
|
|
1357
1365
|
if (e.data && e.emitEvent) {
|
|
1358
1366
|
const n = e.action;
|
|
1359
1367
|
e.action = (...i) => {
|
|
1360
|
-
n && n(...i),
|
|
1368
|
+
n && n(...i), G.emit("notification", {
|
|
1361
1369
|
action: "opened",
|
|
1362
1370
|
payload: {
|
|
1363
1371
|
questionId: e.data.questionId,
|
|
@@ -1406,11 +1414,11 @@ const wo = async (t, e) => {
|
|
|
1406
1414
|
const { client: r, createRequestOptions: n } = t.createPromiseClient(Z, { method: "submitInplay" }), i = n({ retryAttempts: 0 });
|
|
1407
1415
|
return r.submitInplay({ data: { eventId: +e } }, { contextValues: i });
|
|
1408
1416
|
};
|
|
1409
|
-
var
|
|
1417
|
+
var qe;
|
|
1410
1418
|
(function(t) {
|
|
1411
1419
|
t.ONBOARDING = "onboarding", t.ONBOARDING_IO = "onboarding_io";
|
|
1412
|
-
})(
|
|
1413
|
-
class
|
|
1420
|
+
})(qe || (qe = {}));
|
|
1421
|
+
class Io extends He {
|
|
1414
1422
|
constructor() {
|
|
1415
1423
|
super("gamification-session", window.sessionStorage);
|
|
1416
1424
|
}
|
|
@@ -1422,22 +1430,22 @@ class Eo extends He {
|
|
|
1422
1430
|
class Dn extends He {
|
|
1423
1431
|
sessionStorage;
|
|
1424
1432
|
constructor() {
|
|
1425
|
-
super("gamification"), this.sessionStorage = new
|
|
1433
|
+
super("gamification"), this.sessionStorage = new Io();
|
|
1426
1434
|
}
|
|
1427
1435
|
saveOnboardingStatus = ({ userId: e, eventId: r, organizationId: n }, i) => {
|
|
1428
|
-
this.write(
|
|
1436
|
+
this.write(qe.ONBOARDING, n, e, r, i);
|
|
1429
1437
|
};
|
|
1430
|
-
getOnboardingStatus = ({ userId: e, eventId: r, organizationId: n }) => this.read(
|
|
1438
|
+
getOnboardingStatus = ({ userId: e, eventId: r, organizationId: n }) => this.read(qe.ONBOARDING, n, e, r);
|
|
1431
1439
|
setOnboardingInstantOpen = ({ userId: e, eventId: r, organizationId: n }) => {
|
|
1432
|
-
this.sessionStorage.writeValue([
|
|
1440
|
+
this.sessionStorage.writeValue([qe.ONBOARDING_IO, n, e, r], "1");
|
|
1433
1441
|
};
|
|
1434
|
-
getOnboardingInstantOpen = ({ userId: e, eventId: r, organizationId: n }) => this.sessionStorage.readValue([
|
|
1442
|
+
getOnboardingInstantOpen = ({ userId: e, eventId: r, organizationId: n }) => this.sessionStorage.readValue([qe.ONBOARDING_IO, n, e, r]);
|
|
1435
1443
|
}
|
|
1436
|
-
const
|
|
1444
|
+
const Eo = {
|
|
1437
1445
|
pageSize: 10
|
|
1438
1446
|
}, To = (t, e, r, n, i) => {
|
|
1439
1447
|
let o = 0;
|
|
1440
|
-
const s =
|
|
1448
|
+
const s = q({ pageSize: Eo.pageSize, page: 0 }), a = J({
|
|
1441
1449
|
data: [],
|
|
1442
1450
|
key: Date.now(),
|
|
1443
1451
|
hasMore: !0,
|
|
@@ -1743,6 +1751,14 @@ const Je = new je(), Fo = (t, e, r) => {
|
|
|
1743
1751
|
if (a.slEventBus?.type === "advertisement" && e.withAd) {
|
|
1744
1752
|
const u = a.slEventBus, { hasNotification: d, id: c, isViewed: f } = u.payload;
|
|
1745
1753
|
switch (u.action) {
|
|
1754
|
+
case "notification-opened":
|
|
1755
|
+
t.sdk.uiState.set({
|
|
1756
|
+
promotionBanner: !0,
|
|
1757
|
+
promotionNotification: !1,
|
|
1758
|
+
promotionOverlay: !0,
|
|
1759
|
+
promotionSidebar: !0
|
|
1760
|
+
});
|
|
1761
|
+
break;
|
|
1746
1762
|
case "received":
|
|
1747
1763
|
if (t.sdk.closeFeature(), n({
|
|
1748
1764
|
stage: "activate",
|
|
@@ -1781,7 +1797,7 @@ const Je = new je(), Fo = (t, e, r) => {
|
|
|
1781
1797
|
break;
|
|
1782
1798
|
}
|
|
1783
1799
|
}
|
|
1784
|
-
}, o =
|
|
1800
|
+
}, o = G.listen(i), s = t.activeFeature.subscribe((a) => {
|
|
1785
1801
|
a ? t.ui.enableApp() : t.ui.disableApp();
|
|
1786
1802
|
});
|
|
1787
1803
|
return () => {
|
|
@@ -1878,7 +1894,7 @@ var M;
|
|
|
1878
1894
|
(function(t) {
|
|
1879
1895
|
t.Unset = "unset", t.Required = "required", t.Optional = "optional", t.Completed = "completed", t.Disabled = "disabled", t.Unavailable = "unavailable";
|
|
1880
1896
|
})(M || (M = {}));
|
|
1881
|
-
const
|
|
1897
|
+
const qo = (t, e, r, n) => {
|
|
1882
1898
|
const { inplayGame: i } = t.featureSettings.get(), o = e.getCurrentSessionId({ prefix: "onboarding" });
|
|
1883
1899
|
i && r.add({
|
|
1884
1900
|
type: Ae.ONBOARDING,
|
|
@@ -1925,11 +1941,11 @@ const Uo = (t, e, r, n) => {
|
|
|
1925
1941
|
} catch (s) {
|
|
1926
1942
|
console.error(s);
|
|
1927
1943
|
}
|
|
1928
|
-
},
|
|
1944
|
+
}, Uo = (t, e, r, n) => {
|
|
1929
1945
|
let i = !1;
|
|
1930
|
-
const o = new Dn(), s =
|
|
1946
|
+
const o = new Dn(), s = q(M.Unset);
|
|
1931
1947
|
s.subscribe((d) => {
|
|
1932
|
-
d !== M.Unset && (d === M.Optional || d === M.Required ? i === !1 && (
|
|
1948
|
+
d !== M.Unset && (d === M.Optional || d === M.Required ? i === !1 && (qo(t, e, n, o), i = !0) : t.onboardingProcessed.set(!0), d === M.Completed && e.activeQuestionId.invalidate(), o.setOnboardingInstantOpen({
|
|
1933
1949
|
userId: e.userId.get() || "",
|
|
1934
1950
|
organizationId: e.organizationId.get() || "",
|
|
1935
1951
|
eventId: e.slStreamId.get() || ""
|
|
@@ -1949,7 +1965,7 @@ const Uo = (t, e, r, n) => {
|
|
|
1949
1965
|
organizationId: e.organizationId.get() || "",
|
|
1950
1966
|
userId: e.userId.get() || "",
|
|
1951
1967
|
eventId: d
|
|
1952
|
-
}, M.Completed),
|
|
1968
|
+
}, M.Completed), G.emit("poll", {
|
|
1953
1969
|
action: "onboardingPassed",
|
|
1954
1970
|
payload: {}
|
|
1955
1971
|
}), t.openFeature();
|
|
@@ -2022,7 +2038,7 @@ class Ko extends Ln {
|
|
|
2022
2038
|
cancels = /* @__PURE__ */ new Set();
|
|
2023
2039
|
onQuestionActivate;
|
|
2024
2040
|
constructor(e, r, n) {
|
|
2025
|
-
super(e, r), this.background = new mo(n), this.advertisement = this.background.advertisement, this.onQuestionActivate = n.onQuestionActivate, this.feedSubscription = this.background.feedSubscription, this.activeQuestionId = this.background.activeQuestionId, this.openedQuestionId = this.background.openedQuestionId, this.storage = new Dn(), this.feedList = this.background.feedList, this.friends = new ce(ro(this.background.userId, n.transport), "gamification:friends"), this.currentUserId = this.background.userId, this.openedUser =
|
|
2041
|
+
super(e, r), this.background = new mo(n), this.advertisement = this.background.advertisement, this.onQuestionActivate = n.onQuestionActivate, this.feedSubscription = this.background.feedSubscription, this.activeQuestionId = this.background.activeQuestionId, this.openedQuestionId = this.background.openedQuestionId, this.storage = new Dn(), this.feedList = this.background.feedList, this.friends = new ce(ro(this.background.userId, n.transport), "gamification:friends"), this.currentUserId = this.background.userId, this.openedUser = q(void 0), this.onboardingProcessed = q(!1), this.leaderboardId = new X(q(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = Uo(this, this.background, n.transport, n.notifications), this.notifications = n.notifications, this.transport = n.transport, this.closeFeature = (i = !0) => n.sdk.closeFeature(i), this.openFeature = () => n.sdk.openFeature(D.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = jo(this.transport, this.background.slStreamId, n.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = xo(this.background.slStreamId, this.background.userId, this.friends, this.transport), this.leaderboardList = To(this.transport, this.background.slStreamId, this.background.userId, this.friends), this.connect(), this.cancels.add(this.userSummary.$store.listen((i, o) => {
|
|
2026
2042
|
o?.summary && i?.summary && this.leaderboardList.invalidate();
|
|
2027
2043
|
})), this.cancels.add(this.onboardingStatus.$store.listen(this.checkInteractiveFlag)), this.cancels.add(this.background.moderation.getStore().listen(this.checkInteractiveFlag)), this.cancels.add(this.settings.subscribe(this.checkInteractiveFlag)), this.cancels.add(this.onboardingStatus.$store.listen((i, o) => {
|
|
2028
2044
|
(o === void 0 || i !== M.Unset) && this.background.activeQuestionId.invalidate();
|
|
@@ -2051,7 +2067,7 @@ class Ko extends Ln {
|
|
|
2051
2067
|
if (i === Y.RESOLVED && o === _.PREDICTION) {
|
|
2052
2068
|
const u = this.background.getCurrentSessionId({
|
|
2053
2069
|
prefix: `notification-id:${s}`
|
|
2054
|
-
}), d = [...this.feedList.getValues().data || []], c = d.findIndex((
|
|
2070
|
+
}), d = [...this.feedList.getValues().data || []], c = d.findIndex((K) => K.id === s), f = d[c];
|
|
2055
2071
|
let p = f?.attributes?.attributes?.value?.answerId;
|
|
2056
2072
|
const v = sr(s, this.transport), b = v.subscribe(() => {
|
|
2057
2073
|
});
|
|
@@ -2059,8 +2075,8 @@ class Ko extends Ln {
|
|
|
2059
2075
|
let g = v.get().data;
|
|
2060
2076
|
g || (g = await uo(s, this.transport)), b(), window.requestAnimationFrame(() => {
|
|
2061
2077
|
v.invalidate();
|
|
2062
|
-
}), p || (p = g?.answers.find(({ youVoted:
|
|
2063
|
-
const S = a.find(({ correct:
|
|
2078
|
+
}), p || (p = g?.answers.find(({ youVoted: K }) => K)?.id);
|
|
2079
|
+
const S = a.find(({ correct: K }) => K), C = p ? a.find(({ id: K }) => K === p) : void 0, R = !!C?.correct;
|
|
2064
2080
|
if (f && d[c]?.attributes?.attributes.case === "question") {
|
|
2065
2081
|
try {
|
|
2066
2082
|
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);
|
|
@@ -2142,7 +2158,7 @@ class Ko extends Ln {
|
|
|
2142
2158
|
}
|
|
2143
2159
|
});
|
|
2144
2160
|
}
|
|
2145
|
-
i === -1 && (r.unshift(n),
|
|
2161
|
+
i === -1 && (r.unshift(n), G.emit("poll", {
|
|
2146
2162
|
action: "received",
|
|
2147
2163
|
payload: {
|
|
2148
2164
|
questionId: n.id,
|
|
@@ -2164,7 +2180,7 @@ class Ko extends Ln {
|
|
|
2164
2180
|
return;
|
|
2165
2181
|
const u = a.findIndex((f) => f.id === e), d = a[u], c = d?.attributes?.attributes.case === "question" && d.attributes.attributes.value;
|
|
2166
2182
|
if (c) {
|
|
2167
|
-
|
|
2183
|
+
G.emit("poll", {
|
|
2168
2184
|
action: "voted",
|
|
2169
2185
|
payload: {
|
|
2170
2186
|
questionId: e,
|
|
@@ -2206,7 +2222,7 @@ class Ko extends Ln {
|
|
|
2206
2222
|
animateHiding: !1
|
|
2207
2223
|
});
|
|
2208
2224
|
let n = r?.attributes?.type;
|
|
2209
|
-
return n || (n = (this.feedList.getStore().value?.data || []).find((o) => o.id === e)?.attributes?.type),
|
|
2225
|
+
return n || (n = (this.feedList.getStore().value?.data || []).find((o) => o.id === e)?.attributes?.type), G.emit("poll", {
|
|
2210
2226
|
action: "opened",
|
|
2211
2227
|
payload: {
|
|
2212
2228
|
questionId: e,
|
|
@@ -2340,7 +2356,7 @@ class Ho extends Ln {
|
|
|
2340
2356
|
}
|
|
2341
2357
|
}
|
|
2342
2358
|
const Wo = (t, e, r) => t.type === D.GAMES ? new Ko(t, e, r) : new Ho(t, e), Yo = (t, e, r) => {
|
|
2343
|
-
t.features = /* @__PURE__ */ new Map(), t.sdk.featuresList = new X(
|
|
2359
|
+
t.features = /* @__PURE__ */ new Map(), t.sdk.featuresList = new X(q(/* @__PURE__ */ new Set()), "features-list"), t.activeFeature = new X(q(D.UNSET), "activeFeature"), t.sdk.getFeatures = () => t.features, t.sdk.getFeature = (n) => t.features.get(n), t.sdk.getActiveFeature = () => t.activeFeature.getStore(), t.sdk.openFeature = (n) => {
|
|
2344
2360
|
t.activeFeature.setValue(n);
|
|
2345
2361
|
}, t.sdk.closeFeature = (n = !1) => {
|
|
2346
2362
|
const i = t.activeFeature.getValue();
|
|
@@ -2416,14 +2432,14 @@ class Jo {
|
|
|
2416
2432
|
break;
|
|
2417
2433
|
}
|
|
2418
2434
|
};
|
|
2419
|
-
return
|
|
2435
|
+
return G.listen(r);
|
|
2420
2436
|
});
|
|
2421
2437
|
}
|
|
2422
2438
|
accepted = () => {
|
|
2423
2439
|
this.analytics.write("invitation", {
|
|
2424
2440
|
common: {
|
|
2425
2441
|
...this.analytics.commonStore.getValues(),
|
|
2426
|
-
kind:
|
|
2442
|
+
kind: Q.INVITATION_ACCEPTED
|
|
2427
2443
|
},
|
|
2428
2444
|
category: Rr.GAMES,
|
|
2429
2445
|
from: Vr.UNSET
|
|
@@ -2433,7 +2449,7 @@ class Jo {
|
|
|
2433
2449
|
this.analytics.write("invitation", {
|
|
2434
2450
|
common: {
|
|
2435
2451
|
...this.analytics.commonStore.getValues(),
|
|
2436
|
-
kind:
|
|
2452
|
+
kind: Q.INVITATION_SENT
|
|
2437
2453
|
},
|
|
2438
2454
|
category: Rr.GAMES,
|
|
2439
2455
|
from: e || Vr.UNSET
|
|
@@ -2455,14 +2471,14 @@ class Xo {
|
|
|
2455
2471
|
break;
|
|
2456
2472
|
}
|
|
2457
2473
|
};
|
|
2458
|
-
return
|
|
2474
|
+
return G.listen(r);
|
|
2459
2475
|
});
|
|
2460
2476
|
}
|
|
2461
2477
|
tap = () => {
|
|
2462
2478
|
this.analytics.write("interactions", {
|
|
2463
2479
|
common: {
|
|
2464
2480
|
...this.analytics.commonStore.getValues(),
|
|
2465
|
-
kind:
|
|
2481
|
+
kind: Q.INTERACTIONS
|
|
2466
2482
|
},
|
|
2467
2483
|
actionType: xr.TAP
|
|
2468
2484
|
});
|
|
@@ -2471,7 +2487,7 @@ class Xo {
|
|
|
2471
2487
|
this.analytics.write("interactions", {
|
|
2472
2488
|
common: {
|
|
2473
2489
|
...this.analytics.commonStore.getValues(),
|
|
2474
|
-
kind:
|
|
2490
|
+
kind: Q.INTERACTIONS
|
|
2475
2491
|
},
|
|
2476
2492
|
actionType: xr.SCROLL
|
|
2477
2493
|
});
|
|
@@ -2512,16 +2528,16 @@ class es {
|
|
|
2512
2528
|
}
|
|
2513
2529
|
}
|
|
2514
2530
|
};
|
|
2515
|
-
return
|
|
2531
|
+
return G.listen(r);
|
|
2516
2532
|
});
|
|
2517
2533
|
}
|
|
2518
2534
|
received = ({ id: e }, { topicSubType: r }) => {
|
|
2519
2535
|
this.analytics.write("games", {
|
|
2520
2536
|
common: {
|
|
2521
2537
|
...this.analytics.commonStore.getValues(),
|
|
2522
|
-
kind:
|
|
2538
|
+
kind: Q.POLLS_RECEIVED,
|
|
2523
2539
|
topicId: e,
|
|
2524
|
-
topicType:
|
|
2540
|
+
topicType: x.POLLS_PROMOTION,
|
|
2525
2541
|
topicSubType: r
|
|
2526
2542
|
},
|
|
2527
2543
|
pollOpenedFrom: re.UNSET
|
|
@@ -2531,9 +2547,9 @@ class es {
|
|
|
2531
2547
|
this.analytics.write("games", {
|
|
2532
2548
|
common: {
|
|
2533
2549
|
...this.analytics.commonStore.getValues(),
|
|
2534
|
-
kind:
|
|
2550
|
+
kind: Q.POLLS_OPENED,
|
|
2535
2551
|
topicId: e,
|
|
2536
|
-
topicType:
|
|
2552
|
+
topicType: x.POLLS_PROMOTION,
|
|
2537
2553
|
topicSubType: r
|
|
2538
2554
|
},
|
|
2539
2555
|
pollOpenedFrom: re.UNSET
|
|
@@ -2544,7 +2560,8 @@ class es {
|
|
|
2544
2560
|
common: {
|
|
2545
2561
|
...this.analytics.commonStore.getValues(),
|
|
2546
2562
|
topicId: e,
|
|
2547
|
-
kind:
|
|
2563
|
+
kind: Q.AD_VIDEO_PLAYED,
|
|
2564
|
+
topicType: x.POLLS_PROMOTION,
|
|
2548
2565
|
topicSubType: r
|
|
2549
2566
|
},
|
|
2550
2567
|
pollOpenedFrom: re.UNSET
|
|
@@ -2555,7 +2572,8 @@ class es {
|
|
|
2555
2572
|
common: {
|
|
2556
2573
|
...this.analytics.commonStore.getValues(),
|
|
2557
2574
|
topicId: e,
|
|
2558
|
-
kind:
|
|
2575
|
+
kind: Q.AD_BUTTON_NAVIGATED,
|
|
2576
|
+
topicType: x.POLLS_PROMOTION,
|
|
2559
2577
|
topicSubType: r
|
|
2560
2578
|
},
|
|
2561
2579
|
pollOpenedFrom: re.UNSET
|
|
@@ -2566,7 +2584,8 @@ class es {
|
|
|
2566
2584
|
common: {
|
|
2567
2585
|
...this.analytics.commonStore.getValues(),
|
|
2568
2586
|
topicId: e,
|
|
2569
|
-
kind:
|
|
2587
|
+
kind: Q.AD_BANNER_NAVIGATED,
|
|
2588
|
+
topicType: x.POLLS_PROMOTION,
|
|
2570
2589
|
topicSubType: r
|
|
2571
2590
|
},
|
|
2572
2591
|
pollOpenedFrom: re.UNSET
|
|
@@ -2574,34 +2593,34 @@ class es {
|
|
|
2574
2593
|
};
|
|
2575
2594
|
}
|
|
2576
2595
|
const Ze = {
|
|
2577
|
-
[_.UNSET]:
|
|
2578
|
-
[_.FACTOID]:
|
|
2579
|
-
[_.POLL]:
|
|
2580
|
-
[_.PREDICTION]:
|
|
2581
|
-
[_.PROMOTION]:
|
|
2582
|
-
[_.TRIVIA]:
|
|
2583
|
-
[_.TWEET]:
|
|
2596
|
+
[_.UNSET]: x.UNSET,
|
|
2597
|
+
[_.FACTOID]: x.POLLS_INSIGHT,
|
|
2598
|
+
[_.POLL]: x.POLLS_POLL,
|
|
2599
|
+
[_.PREDICTION]: x.POLLS_PREDICTION,
|
|
2600
|
+
[_.PROMOTION]: x.POLLS_PROMOTION,
|
|
2601
|
+
[_.TRIVIA]: x.POLLS_TRIVIA,
|
|
2602
|
+
[_.TWEET]: x.POLLS_TWITTER
|
|
2584
2603
|
};
|
|
2585
2604
|
_.UNSET + "", fe.UNSET, _.FACTOID + "", fe.POLLS, _.POLL + "", fe.POLLS, _.PREDICTION + "", fe.POLLS, _.PROMOTION + "", fe.POLLS, _.TRIVIA + "", fe.POLLS, _.TWEET + "", fe.POLLS;
|
|
2586
2605
|
const ts = {
|
|
2587
|
-
[D.UNSET]:
|
|
2588
|
-
[D.INPLAY]:
|
|
2589
|
-
[D.MESSAGING]:
|
|
2590
|
-
[D.STATISTICS]:
|
|
2591
|
-
[D.BETTING]:
|
|
2592
|
-
[D.TWITTER]:
|
|
2593
|
-
[D.MERCHANDISE]:
|
|
2594
|
-
[D.CONTESTS]:
|
|
2595
|
-
[D.VOICE_CHAT]:
|
|
2596
|
-
[D.TICKETS]:
|
|
2597
|
-
[D.WHOIS_WATCHING]:
|
|
2598
|
-
[D.PROFILE]:
|
|
2599
|
-
[D.GAMES]:
|
|
2606
|
+
[D.UNSET]: z.UNSET,
|
|
2607
|
+
[D.INPLAY]: z.INPLAY,
|
|
2608
|
+
[D.MESSAGING]: z.MESSAGING,
|
|
2609
|
+
[D.STATISTICS]: z.STATS,
|
|
2610
|
+
[D.BETTING]: z.BETTING,
|
|
2611
|
+
[D.TWITTER]: z.TWITTER,
|
|
2612
|
+
[D.MERCHANDISE]: z.MERCHANDISE,
|
|
2613
|
+
[D.CONTESTS]: z.CONTESTS,
|
|
2614
|
+
[D.VOICE_CHAT]: z.CALLING,
|
|
2615
|
+
[D.TICKETS]: z.TICKETS,
|
|
2616
|
+
[D.WHOIS_WATCHING]: z.WHOISWATCHING,
|
|
2617
|
+
[D.PROFILE]: z.PROFILE,
|
|
2618
|
+
[D.GAMES]: z.POLLS,
|
|
2600
2619
|
// ??
|
|
2601
|
-
[D.GOLF_STATISTICS]:
|
|
2620
|
+
[D.GOLF_STATISTICS]: z.STATS,
|
|
2602
2621
|
// ??
|
|
2603
|
-
[D.HIGHLIGHTS]:
|
|
2604
|
-
[D.PUBLIC_CHAT]:
|
|
2622
|
+
[D.HIGHLIGHTS]: z.HIGHLIGHTS,
|
|
2623
|
+
[D.PUBLIC_CHAT]: z.PUBLIC_CHAT
|
|
2605
2624
|
};
|
|
2606
2625
|
class rs {
|
|
2607
2626
|
analytics;
|
|
@@ -2618,16 +2637,16 @@ class rs {
|
|
|
2618
2637
|
break;
|
|
2619
2638
|
}
|
|
2620
2639
|
};
|
|
2621
|
-
return
|
|
2640
|
+
return G.listen(r);
|
|
2622
2641
|
});
|
|
2623
2642
|
}
|
|
2624
2643
|
received = ({ questionId: e, questionType: r }) => {
|
|
2625
2644
|
this.analytics.write("notification", {
|
|
2626
2645
|
common: {
|
|
2627
2646
|
...this.analytics.commonStore.getValues(),
|
|
2628
|
-
kind:
|
|
2647
|
+
kind: Q.NOTIFICATION_RECEIVED,
|
|
2629
2648
|
topicId: e,
|
|
2630
|
-
topicType: r ? Ze[r] :
|
|
2649
|
+
topicType: r ? Ze[r] : x.UNSET
|
|
2631
2650
|
},
|
|
2632
2651
|
notificationKind: fe.POLLS,
|
|
2633
2652
|
notificationType: Qr.IN_APP
|
|
@@ -2637,9 +2656,9 @@ class rs {
|
|
|
2637
2656
|
this.analytics.write("notification", {
|
|
2638
2657
|
common: {
|
|
2639
2658
|
...this.analytics.commonStore.getValues(),
|
|
2640
|
-
kind:
|
|
2659
|
+
kind: Q.NOTIFICATION_OPENED,
|
|
2641
2660
|
topicId: e,
|
|
2642
|
-
topicType: r ? Ze[r] :
|
|
2661
|
+
topicType: r ? Ze[r] : x.UNSET
|
|
2643
2662
|
},
|
|
2644
2663
|
notificationKind: fe.POLLS,
|
|
2645
2664
|
notificationType: Qr.IN_APP
|
|
@@ -2670,7 +2689,7 @@ class ns {
|
|
|
2670
2689
|
break;
|
|
2671
2690
|
}
|
|
2672
2691
|
};
|
|
2673
|
-
return
|
|
2692
|
+
return G.listen(r);
|
|
2674
2693
|
});
|
|
2675
2694
|
}
|
|
2676
2695
|
// event when a poll is received from subscription or active question request
|
|
@@ -2678,9 +2697,9 @@ class ns {
|
|
|
2678
2697
|
this.analytics.write("games", {
|
|
2679
2698
|
common: {
|
|
2680
2699
|
...this.analytics.commonStore.getValues(),
|
|
2681
|
-
kind:
|
|
2700
|
+
kind: Q.POLLS_RECEIVED,
|
|
2682
2701
|
topicId: e,
|
|
2683
|
-
topicType: r ? Ze[r] :
|
|
2702
|
+
topicType: r ? Ze[r] : x.UNSET
|
|
2684
2703
|
},
|
|
2685
2704
|
pollOpenedFrom: re.UNSET
|
|
2686
2705
|
});
|
|
@@ -2690,9 +2709,9 @@ class ns {
|
|
|
2690
2709
|
this.analytics.write("games", {
|
|
2691
2710
|
common: {
|
|
2692
2711
|
...this.analytics.commonStore.getValues(),
|
|
2693
|
-
kind:
|
|
2712
|
+
kind: Q.POLLS_OPENED,
|
|
2694
2713
|
topicId: e,
|
|
2695
|
-
topicType: r ? Ze[r] :
|
|
2714
|
+
topicType: r ? Ze[r] : x.UNSET
|
|
2696
2715
|
},
|
|
2697
2716
|
pollOpenedFrom: n === "list" ? re.PICK_HISTORY : re.IN_APP
|
|
2698
2717
|
});
|
|
@@ -2702,9 +2721,9 @@ class ns {
|
|
|
2702
2721
|
this.analytics.write("games", {
|
|
2703
2722
|
common: {
|
|
2704
2723
|
...this.analytics.commonStore.getValues(),
|
|
2705
|
-
kind:
|
|
2724
|
+
kind: Q.POLLS_VOTE,
|
|
2706
2725
|
topicId: e,
|
|
2707
|
-
topicType: r ? Ze[r] :
|
|
2726
|
+
topicType: r ? Ze[r] : x.UNSET
|
|
2708
2727
|
},
|
|
2709
2728
|
pollOpenedFrom: re.UNSET
|
|
2710
2729
|
});
|
|
@@ -2714,7 +2733,7 @@ class ns {
|
|
|
2714
2733
|
this.analytics.write("games", {
|
|
2715
2734
|
common: {
|
|
2716
2735
|
...this.analytics.commonStore.getValues(),
|
|
2717
|
-
kind:
|
|
2736
|
+
kind: Q.GAMES_JOINED
|
|
2718
2737
|
},
|
|
2719
2738
|
pollOpenedFrom: re.UNSET
|
|
2720
2739
|
});
|
|
@@ -2724,7 +2743,7 @@ class ns {
|
|
|
2724
2743
|
this.analytics.write("games", {
|
|
2725
2744
|
common: {
|
|
2726
2745
|
...this.analytics.commonStore.getValues(),
|
|
2727
|
-
kind:
|
|
2746
|
+
kind: Q.POLLS_NAVIGATED
|
|
2728
2747
|
},
|
|
2729
2748
|
pollOpenedFrom: re.UNSET
|
|
2730
2749
|
});
|
|
@@ -2732,7 +2751,7 @@ class ns {
|
|
|
2732
2751
|
}
|
|
2733
2752
|
const is = ({ transport: t, $commonStore: e }) => {
|
|
2734
2753
|
let r;
|
|
2735
|
-
const n =
|
|
2754
|
+
const n = q(!1), i = 5e3, { client: o, queryKey: s } = t.createPromiseClient(En, {
|
|
2736
2755
|
method: "send",
|
|
2737
2756
|
params: [n]
|
|
2738
2757
|
}), a = t.nanoquery.createFetcherStore(s, {
|
|
@@ -2745,7 +2764,7 @@ const is = ({ transport: t, $commonStore: e }) => {
|
|
|
2745
2764
|
value: {
|
|
2746
2765
|
common: {
|
|
2747
2766
|
...p,
|
|
2748
|
-
kind:
|
|
2767
|
+
kind: Q.SESSION_HEARTBEAT
|
|
2749
2768
|
}
|
|
2750
2769
|
}
|
|
2751
2770
|
}
|
|
@@ -2782,7 +2801,7 @@ class os {
|
|
|
2782
2801
|
connected = !1;
|
|
2783
2802
|
constructor(e) {
|
|
2784
2803
|
this.listeners = /* @__PURE__ */ new Set(), this.listenersCancels = /* @__PURE__ */ new Set(), this.commonStore = new Ce(J({}), "common-analytics"), this.connectToSDK(e), this.heartbeat = is({ transport: e.analyticsTransport, $commonStore: this.commonStore }), this.notifications = new rs(this), this.polls = new ns(this), this.invitation = new Jo(this), this.interactions = new Xo(this), this.advertisement = new es(this);
|
|
2785
|
-
const { client: r } = e.analyticsTransport.createPromiseClient(
|
|
2804
|
+
const { client: r } = e.analyticsTransport.createPromiseClient(En, {
|
|
2786
2805
|
method: "send"
|
|
2787
2806
|
});
|
|
2788
2807
|
this.analyticsClient = r;
|
|
@@ -2814,7 +2833,7 @@ class os {
|
|
|
2814
2833
|
r && this.writeCommon("category", ts[r]), r !== D.UNSET ? this.writeCommon("overlaySessionId", rr()) : this.writeCommon("overlaySessionId", "");
|
|
2815
2834
|
})), this.onConnect(() => {
|
|
2816
2835
|
const r = window.matchMedia("(orientation: portrait)"), n = (i) => {
|
|
2817
|
-
this.writeCommon("screenOrientation", i.matches ?
|
|
2836
|
+
this.writeCommon("screenOrientation", i.matches ? Ur.PORTRAIT : Ur.LANDSCAPE);
|
|
2818
2837
|
};
|
|
2819
2838
|
return r.addEventListener("change", n), () => {
|
|
2820
2839
|
r.removeEventListener("change", n);
|
|
@@ -2876,7 +2895,7 @@ function $n(t, e, r) {
|
|
|
2876
2895
|
unshift: S,
|
|
2877
2896
|
empty: W,
|
|
2878
2897
|
kill: R,
|
|
2879
|
-
killAndDrain:
|
|
2898
|
+
killAndDrain: K,
|
|
2880
2899
|
error: ee
|
|
2881
2900
|
};
|
|
2882
2901
|
return u;
|
|
@@ -2925,7 +2944,7 @@ function $n(t, e, r) {
|
|
|
2925
2944
|
function R() {
|
|
2926
2945
|
i = null, o = null, u.drain = W;
|
|
2927
2946
|
}
|
|
2928
|
-
function
|
|
2947
|
+
function K() {
|
|
2929
2948
|
i = null, o = null, u.drain(), u.drain = W;
|
|
2930
2949
|
}
|
|
2931
2950
|
function ee(P) {
|
|
@@ -3067,7 +3086,7 @@ N.prototype.emit = function(e) {
|
|
|
3067
3086
|
Xr(c[n], this, r);
|
|
3068
3087
|
return !0;
|
|
3069
3088
|
};
|
|
3070
|
-
function
|
|
3089
|
+
function qn(t, e, r, n) {
|
|
3071
3090
|
var i, o, s;
|
|
3072
3091
|
if (Pt(r), o = t._events, o === void 0 ? (o = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (o.newListener !== void 0 && (t.emit(
|
|
3073
3092
|
"newListener",
|
|
@@ -3083,25 +3102,25 @@ function Un(t, e, r, n) {
|
|
|
3083
3102
|
return t;
|
|
3084
3103
|
}
|
|
3085
3104
|
N.prototype.addListener = function(e, r) {
|
|
3086
|
-
return
|
|
3105
|
+
return qn(this, e, r, !1);
|
|
3087
3106
|
};
|
|
3088
3107
|
N.prototype.on = N.prototype.addListener;
|
|
3089
3108
|
N.prototype.prependListener = function(e, r) {
|
|
3090
|
-
return
|
|
3109
|
+
return qn(this, e, r, !0);
|
|
3091
3110
|
};
|
|
3092
3111
|
function hs() {
|
|
3093
3112
|
if (!this.fired)
|
|
3094
3113
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
3095
3114
|
}
|
|
3096
|
-
function
|
|
3115
|
+
function Un(t, e, r) {
|
|
3097
3116
|
var n = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, i = hs.bind(n);
|
|
3098
3117
|
return i.listener = r, n.wrapFn = i, i;
|
|
3099
3118
|
}
|
|
3100
3119
|
N.prototype.once = function(e, r) {
|
|
3101
|
-
return Pt(r), this.on(e,
|
|
3120
|
+
return Pt(r), this.on(e, Un(this, e, r)), this;
|
|
3102
3121
|
};
|
|
3103
3122
|
N.prototype.prependOnceListener = function(e, r) {
|
|
3104
|
-
return Pt(r), this.prependListener(e,
|
|
3123
|
+
return Pt(r), this.prependListener(e, Un(this, e, r)), this;
|
|
3105
3124
|
};
|
|
3106
3125
|
N.prototype.removeListener = function(e, r) {
|
|
3107
3126
|
var n, i, o, s, a;
|
|
@@ -3238,7 +3257,7 @@ var zn = Ar.exports, Nt = {}, Hn = {}, Wn = function() {
|
|
|
3238
3257
|
return !0;
|
|
3239
3258
|
}, vs = Wn, Ft = function() {
|
|
3240
3259
|
return vs() && !!Symbol.toStringTag;
|
|
3241
|
-
}, Ss = Error, ws = EvalError, As = RangeError,
|
|
3260
|
+
}, Ss = Error, ws = EvalError, As = RangeError, Is = ReferenceError, Yn = SyntaxError, Dt = TypeError, Es = URIError, en = typeof Symbol < "u" && Symbol, Ts = Wn, Os = function() {
|
|
3242
3261
|
return typeof en != "function" || typeof Symbol != "function" || typeof en("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Ts();
|
|
3243
3262
|
}, Bt = {
|
|
3244
3263
|
__proto__: null,
|
|
@@ -3283,7 +3302,7 @@ var zn = Ar.exports, Nt = {}, Hn = {}, Wn = function() {
|
|
|
3283
3302
|
d.prototype = r.prototype, i.prototype = new d(), d.prototype = null;
|
|
3284
3303
|
}
|
|
3285
3304
|
return i;
|
|
3286
|
-
}, Vs = Rs,
|
|
3305
|
+
}, Vs = Rs, Ir = Function.prototype.bind || Vs, $s = Function.prototype.call, Ms = Object.prototype.hasOwnProperty, Bs = Ir, js = Bs.call($s, Ms), E, qs = Ss, Us = ws, xs = As, Qs = Is, Ke = Yn, Ge = Dt, Gs = Es, Jn = Function, jt = function(t) {
|
|
3287
3306
|
try {
|
|
3288
3307
|
return Jn('"use strict"; return (' + t + ").constructor;")();
|
|
3289
3308
|
} catch {
|
|
@@ -3295,89 +3314,89 @@ if (ke)
|
|
|
3295
3314
|
} catch {
|
|
3296
3315
|
ke = null;
|
|
3297
3316
|
}
|
|
3298
|
-
var
|
|
3317
|
+
var qt = function() {
|
|
3299
3318
|
throw new Ge();
|
|
3300
3319
|
}, Ks = ke ? function() {
|
|
3301
3320
|
try {
|
|
3302
|
-
return arguments.callee,
|
|
3321
|
+
return arguments.callee, qt;
|
|
3303
3322
|
} catch {
|
|
3304
3323
|
try {
|
|
3305
3324
|
return ke(arguments, "callee").get;
|
|
3306
3325
|
} catch {
|
|
3307
|
-
return
|
|
3326
|
+
return qt;
|
|
3308
3327
|
}
|
|
3309
3328
|
}
|
|
3310
|
-
}() :
|
|
3329
|
+
}() : qt, $e = Os(), zs = Cs(), B = Object.getPrototypeOf || (zs ? function(t) {
|
|
3311
3330
|
return t.__proto__;
|
|
3312
|
-
} : null), Be = {}, Hs = typeof Uint8Array > "u" || !B ?
|
|
3331
|
+
} : null), Be = {}, Hs = typeof Uint8Array > "u" || !B ? E : B(Uint8Array), Pe = {
|
|
3313
3332
|
__proto__: null,
|
|
3314
|
-
"%AggregateError%": typeof AggregateError > "u" ?
|
|
3333
|
+
"%AggregateError%": typeof AggregateError > "u" ? E : AggregateError,
|
|
3315
3334
|
"%Array%": Array,
|
|
3316
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ?
|
|
3317
|
-
"%ArrayIteratorPrototype%": $e && B ? B([][Symbol.iterator]()) :
|
|
3318
|
-
"%AsyncFromSyncIteratorPrototype%":
|
|
3335
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? E : ArrayBuffer,
|
|
3336
|
+
"%ArrayIteratorPrototype%": $e && B ? B([][Symbol.iterator]()) : E,
|
|
3337
|
+
"%AsyncFromSyncIteratorPrototype%": E,
|
|
3319
3338
|
"%AsyncFunction%": Be,
|
|
3320
3339
|
"%AsyncGenerator%": Be,
|
|
3321
3340
|
"%AsyncGeneratorFunction%": Be,
|
|
3322
3341
|
"%AsyncIteratorPrototype%": Be,
|
|
3323
|
-
"%Atomics%": typeof Atomics > "u" ?
|
|
3324
|
-
"%BigInt%": typeof BigInt > "u" ?
|
|
3325
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ?
|
|
3326
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ?
|
|
3342
|
+
"%Atomics%": typeof Atomics > "u" ? E : Atomics,
|
|
3343
|
+
"%BigInt%": typeof BigInt > "u" ? E : BigInt,
|
|
3344
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? E : BigInt64Array,
|
|
3345
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? E : BigUint64Array,
|
|
3327
3346
|
"%Boolean%": Boolean,
|
|
3328
|
-
"%DataView%": typeof DataView > "u" ?
|
|
3347
|
+
"%DataView%": typeof DataView > "u" ? E : DataView,
|
|
3329
3348
|
"%Date%": Date,
|
|
3330
3349
|
"%decodeURI%": decodeURI,
|
|
3331
3350
|
"%decodeURIComponent%": decodeURIComponent,
|
|
3332
3351
|
"%encodeURI%": encodeURI,
|
|
3333
3352
|
"%encodeURIComponent%": encodeURIComponent,
|
|
3334
|
-
"%Error%":
|
|
3353
|
+
"%Error%": qs,
|
|
3335
3354
|
"%eval%": eval,
|
|
3336
3355
|
// eslint-disable-line no-eval
|
|
3337
|
-
"%EvalError%":
|
|
3338
|
-
"%Float32Array%": typeof Float32Array > "u" ?
|
|
3339
|
-
"%Float64Array%": typeof Float64Array > "u" ?
|
|
3340
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ?
|
|
3356
|
+
"%EvalError%": Us,
|
|
3357
|
+
"%Float32Array%": typeof Float32Array > "u" ? E : Float32Array,
|
|
3358
|
+
"%Float64Array%": typeof Float64Array > "u" ? E : Float64Array,
|
|
3359
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? E : FinalizationRegistry,
|
|
3341
3360
|
"%Function%": Jn,
|
|
3342
3361
|
"%GeneratorFunction%": Be,
|
|
3343
|
-
"%Int8Array%": typeof Int8Array > "u" ?
|
|
3344
|
-
"%Int16Array%": typeof Int16Array > "u" ?
|
|
3345
|
-
"%Int32Array%": typeof Int32Array > "u" ?
|
|
3362
|
+
"%Int8Array%": typeof Int8Array > "u" ? E : Int8Array,
|
|
3363
|
+
"%Int16Array%": typeof Int16Array > "u" ? E : Int16Array,
|
|
3364
|
+
"%Int32Array%": typeof Int32Array > "u" ? E : Int32Array,
|
|
3346
3365
|
"%isFinite%": isFinite,
|
|
3347
3366
|
"%isNaN%": isNaN,
|
|
3348
|
-
"%IteratorPrototype%": $e && B ? B(B([][Symbol.iterator]())) :
|
|
3349
|
-
"%JSON%": typeof JSON == "object" ? JSON :
|
|
3350
|
-
"%Map%": typeof Map > "u" ?
|
|
3351
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !$e || !B ?
|
|
3367
|
+
"%IteratorPrototype%": $e && B ? B(B([][Symbol.iterator]())) : E,
|
|
3368
|
+
"%JSON%": typeof JSON == "object" ? JSON : E,
|
|
3369
|
+
"%Map%": typeof Map > "u" ? E : Map,
|
|
3370
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !$e || !B ? E : B((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
3352
3371
|
"%Math%": Math,
|
|
3353
3372
|
"%Number%": Number,
|
|
3354
3373
|
"%Object%": Object,
|
|
3355
3374
|
"%parseFloat%": parseFloat,
|
|
3356
3375
|
"%parseInt%": parseInt,
|
|
3357
|
-
"%Promise%": typeof Promise > "u" ?
|
|
3358
|
-
"%Proxy%": typeof Proxy > "u" ?
|
|
3376
|
+
"%Promise%": typeof Promise > "u" ? E : Promise,
|
|
3377
|
+
"%Proxy%": typeof Proxy > "u" ? E : Proxy,
|
|
3359
3378
|
"%RangeError%": xs,
|
|
3360
3379
|
"%ReferenceError%": Qs,
|
|
3361
|
-
"%Reflect%": typeof Reflect > "u" ?
|
|
3380
|
+
"%Reflect%": typeof Reflect > "u" ? E : Reflect,
|
|
3362
3381
|
"%RegExp%": RegExp,
|
|
3363
|
-
"%Set%": typeof Set > "u" ?
|
|
3364
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !$e || !B ?
|
|
3365
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ?
|
|
3382
|
+
"%Set%": typeof Set > "u" ? E : Set,
|
|
3383
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !$e || !B ? E : B((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
3384
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? E : SharedArrayBuffer,
|
|
3366
3385
|
"%String%": String,
|
|
3367
|
-
"%StringIteratorPrototype%": $e && B ? B(""[Symbol.iterator]()) :
|
|
3368
|
-
"%Symbol%": $e ? Symbol :
|
|
3386
|
+
"%StringIteratorPrototype%": $e && B ? B(""[Symbol.iterator]()) : E,
|
|
3387
|
+
"%Symbol%": $e ? Symbol : E,
|
|
3369
3388
|
"%SyntaxError%": Ke,
|
|
3370
3389
|
"%ThrowTypeError%": Ks,
|
|
3371
3390
|
"%TypedArray%": Hs,
|
|
3372
3391
|
"%TypeError%": Ge,
|
|
3373
|
-
"%Uint8Array%": typeof Uint8Array > "u" ?
|
|
3374
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ?
|
|
3375
|
-
"%Uint16Array%": typeof Uint16Array > "u" ?
|
|
3376
|
-
"%Uint32Array%": typeof Uint32Array > "u" ?
|
|
3392
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? E : Uint8Array,
|
|
3393
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? E : Uint8ClampedArray,
|
|
3394
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? E : Uint16Array,
|
|
3395
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? E : Uint32Array,
|
|
3377
3396
|
"%URIError%": Gs,
|
|
3378
|
-
"%WeakMap%": typeof WeakMap > "u" ?
|
|
3379
|
-
"%WeakRef%": typeof WeakRef > "u" ?
|
|
3380
|
-
"%WeakSet%": typeof WeakSet > "u" ?
|
|
3397
|
+
"%WeakMap%": typeof WeakMap > "u" ? E : WeakMap,
|
|
3398
|
+
"%WeakRef%": typeof WeakRef > "u" ? E : WeakRef,
|
|
3399
|
+
"%WeakSet%": typeof WeakSet > "u" ? E : WeakSet
|
|
3381
3400
|
};
|
|
3382
3401
|
if (B)
|
|
3383
3402
|
try {
|
|
@@ -3455,7 +3474,7 @@ var Ys = function t(e) {
|
|
|
3455
3474
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
3456
3475
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3457
3476
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3458
|
-
}, it =
|
|
3477
|
+
}, it = Ir, wt = js, Js = it.call(Function.call, Array.prototype.concat), Xs = it.call(Function.apply, Array.prototype.splice), nn = it.call(Function.call, String.prototype.replace), At = it.call(Function.call, String.prototype.slice), Zs = it.call(Function.call, RegExp.prototype.exec), ea = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ta = /\\(\\)?/g, ra = function(e) {
|
|
3459
3478
|
var r = At(e, 0, 1), n = At(e, -1);
|
|
3460
3479
|
if (r === "%" && n !== "%")
|
|
3461
3480
|
throw new Ke("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -3508,9 +3527,9 @@ var Ys = function t(e) {
|
|
|
3508
3527
|
}
|
|
3509
3528
|
}
|
|
3510
3529
|
return a;
|
|
3511
|
-
}, Xn = { exports: {} },
|
|
3512
|
-
function
|
|
3513
|
-
if (on) return
|
|
3530
|
+
}, Xn = { exports: {} }, Ut, on;
|
|
3531
|
+
function Er() {
|
|
3532
|
+
if (on) return Ut;
|
|
3514
3533
|
on = 1;
|
|
3515
3534
|
var t = ot, e = t("%Object.defineProperty%", !0) || !1;
|
|
3516
3535
|
if (e)
|
|
@@ -3519,7 +3538,7 @@ function Ir() {
|
|
|
3519
3538
|
} catch {
|
|
3520
3539
|
e = !1;
|
|
3521
3540
|
}
|
|
3522
|
-
return
|
|
3541
|
+
return Ut = e, Ut;
|
|
3523
3542
|
}
|
|
3524
3543
|
var ia = ot, ht = ia("%Object.getOwnPropertyDescriptor%", !0);
|
|
3525
3544
|
if (ht)
|
|
@@ -3528,7 +3547,7 @@ if (ht)
|
|
|
3528
3547
|
} catch {
|
|
3529
3548
|
ht = null;
|
|
3530
3549
|
}
|
|
3531
|
-
var Rt = ht, sn =
|
|
3550
|
+
var Rt = ht, sn = Er(), oa = Yn, Me = Dt, an = Rt, sa = function(e, r, n) {
|
|
3532
3551
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
3533
3552
|
throw new Me("`obj` must be an object or a function`");
|
|
3534
3553
|
if (typeof r != "string" && typeof r != "symbol")
|
|
@@ -3553,7 +3572,7 @@ var Rt = ht, sn = Ir(), oa = Yn, Me = Dt, an = Rt, sa = function(e, r, n) {
|
|
|
3553
3572
|
e[r] = n;
|
|
3554
3573
|
else
|
|
3555
3574
|
throw new oa("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
3556
|
-
}, ar =
|
|
3575
|
+
}, ar = Er(), Zn = function() {
|
|
3557
3576
|
return !!ar;
|
|
3558
3577
|
};
|
|
3559
3578
|
Zn.hasArrayLengthDefineBug = function() {
|
|
@@ -3590,7 +3609,7 @@ var aa = Zn, ua = ot, un = sa, ca = aa(), cn = Rt, ln = Dt, la = ua("%Math.floor
|
|
|
3590
3609
|
)), e;
|
|
3591
3610
|
};
|
|
3592
3611
|
(function(t) {
|
|
3593
|
-
var e =
|
|
3612
|
+
var e = Ir, 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 = Er(), d = r("%Math.max%");
|
|
3594
3613
|
t.exports = function(p) {
|
|
3595
3614
|
if (typeof p != "function")
|
|
3596
3615
|
throw new i("a function is required");
|
|
@@ -3640,21 +3659,21 @@ var ma = ya ? Vt : ri, ga = Object.prototype.toString, ba = Function.prototype.t
|
|
|
3640
3659
|
Qt = n ? xt(n) : !1;
|
|
3641
3660
|
}
|
|
3642
3661
|
return xt(e) === Qt;
|
|
3643
|
-
}, ii = Function.prototype.toString,
|
|
3644
|
-
if (typeof
|
|
3662
|
+
}, ii = Function.prototype.toString, Ue = typeof Reflect == "object" && Reflect !== null && Reflect.apply, cr, yt;
|
|
3663
|
+
if (typeof Ue == "function" && typeof Object.defineProperty == "function")
|
|
3645
3664
|
try {
|
|
3646
3665
|
cr = Object.defineProperty({}, "length", {
|
|
3647
3666
|
get: function() {
|
|
3648
3667
|
throw yt;
|
|
3649
3668
|
}
|
|
3650
|
-
}), yt = {},
|
|
3669
|
+
}), yt = {}, Ue(function() {
|
|
3651
3670
|
throw 42;
|
|
3652
3671
|
}, null, cr);
|
|
3653
3672
|
} catch (t) {
|
|
3654
|
-
t !== yt && (
|
|
3673
|
+
t !== yt && (Ue = null);
|
|
3655
3674
|
}
|
|
3656
3675
|
else
|
|
3657
|
-
|
|
3676
|
+
Ue = null;
|
|
3658
3677
|
var Aa = /^\s*class\b/, lr = function(e) {
|
|
3659
3678
|
try {
|
|
3660
3679
|
var r = ii.call(e);
|
|
@@ -3668,7 +3687,7 @@ var Aa = /^\s*class\b/, lr = function(e) {
|
|
|
3668
3687
|
} catch {
|
|
3669
3688
|
return !1;
|
|
3670
3689
|
}
|
|
3671
|
-
}, mt = Object.prototype.toString,
|
|
3690
|
+
}, mt = Object.prototype.toString, Ia = "[object Object]", Ea = "[object Function]", Ta = "[object GeneratorFunction]", Oa = "[object HTMLAllCollection]", _a = "[object HTML document.all class]", Ca = "[object HTMLCollection]", La = typeof Symbol == "function" && !!Symbol.toStringTag, ka = !(0 in [,]), dr = function() {
|
|
3672
3691
|
return !1;
|
|
3673
3692
|
};
|
|
3674
3693
|
if (typeof document == "object") {
|
|
@@ -3677,19 +3696,19 @@ if (typeof document == "object") {
|
|
|
3677
3696
|
if ((ka || !e) && (typeof e > "u" || typeof e == "object"))
|
|
3678
3697
|
try {
|
|
3679
3698
|
var r = mt.call(e);
|
|
3680
|
-
return (r === Oa || r === _a || r === Ca || r ===
|
|
3699
|
+
return (r === Oa || r === _a || r === Ca || r === Ia) && e("") == null;
|
|
3681
3700
|
} catch {
|
|
3682
3701
|
}
|
|
3683
3702
|
return !1;
|
|
3684
3703
|
});
|
|
3685
3704
|
}
|
|
3686
|
-
var Na =
|
|
3705
|
+
var Na = Ue ? function(e) {
|
|
3687
3706
|
if (dr(e))
|
|
3688
3707
|
return !0;
|
|
3689
3708
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
3690
3709
|
return !1;
|
|
3691
3710
|
try {
|
|
3692
|
-
|
|
3711
|
+
Ue(e, null, cr);
|
|
3693
3712
|
} catch (r) {
|
|
3694
3713
|
if (r !== yt)
|
|
3695
3714
|
return !1;
|
|
@@ -3705,7 +3724,7 @@ var Na = qe ? function(e) {
|
|
|
3705
3724
|
if (lr(e))
|
|
3706
3725
|
return !1;
|
|
3707
3726
|
var r = mt.call(e);
|
|
3708
|
-
return r !==
|
|
3727
|
+
return r !== Ea && r !== Ta && !/^\[object HTML/.test(r) ? !1 : Gt(e);
|
|
3709
3728
|
}, Fa = Na, Da = Object.prototype.toString, oi = Object.prototype.hasOwnProperty, Ra = function(e, r, n) {
|
|
3710
3729
|
for (var i = 0, o = e.length; i < o; i++)
|
|
3711
3730
|
oi.call(e, i) && (n == null ? r(e[i], i, e) : r.call(n, e[i], i, e));
|
|
@@ -3736,13 +3755,13 @@ var Na = qe ? function(e) {
|
|
|
3736
3755
|
for (var e = [], r = 0; r < Kt.length; r++)
|
|
3737
3756
|
typeof ja[Kt[r]] == "function" && (e[e.length] = Kt[r]);
|
|
3738
3757
|
return e;
|
|
3739
|
-
},
|
|
3758
|
+
}, It = si, qa = ai, dn = Tr, _r = Or, gt = Rt, Ua = _r("Object.prototype.toString"), ui = Ft(), fn = typeof globalThis > "u" ? vr : globalThis, fr = qa(), Cr = _r("String.prototype.slice"), zt = Object.getPrototypeOf, xa = _r("Array.prototype.indexOf", !0) || function(e, r) {
|
|
3740
3759
|
for (var n = 0; n < e.length; n += 1)
|
|
3741
3760
|
if (e[n] === r)
|
|
3742
3761
|
return n;
|
|
3743
3762
|
return -1;
|
|
3744
|
-
},
|
|
3745
|
-
ui && gt && zt ?
|
|
3763
|
+
}, Et = { __proto__: null };
|
|
3764
|
+
ui && gt && zt ? It(fr, function(t) {
|
|
3746
3765
|
var e = new fn[t]();
|
|
3747
3766
|
if (Symbol.toStringTag in e) {
|
|
3748
3767
|
var r = zt(e), n = gt(r, Symbol.toStringTag);
|
|
@@ -3750,15 +3769,15 @@ ui && gt && zt ? Et(fr, function(t) {
|
|
|
3750
3769
|
var i = zt(r);
|
|
3751
3770
|
n = gt(i, Symbol.toStringTag);
|
|
3752
3771
|
}
|
|
3753
|
-
|
|
3772
|
+
Et["$" + t] = dn(n.get);
|
|
3754
3773
|
}
|
|
3755
|
-
}) :
|
|
3774
|
+
}) : It(fr, function(t) {
|
|
3756
3775
|
var e = new fn[t](), r = e.slice || e.set;
|
|
3757
|
-
r && (
|
|
3776
|
+
r && (Et["$" + t] = dn(r));
|
|
3758
3777
|
});
|
|
3759
3778
|
var Qa = function(e) {
|
|
3760
3779
|
var r = !1;
|
|
3761
|
-
return Et
|
|
3780
|
+
return It(Et, function(n, i) {
|
|
3762
3781
|
if (!r)
|
|
3763
3782
|
try {
|
|
3764
3783
|
"$" + n(e) === i && (r = Cr(i, 1));
|
|
@@ -3767,7 +3786,7 @@ var Qa = function(e) {
|
|
|
3767
3786
|
}), r;
|
|
3768
3787
|
}, Ga = function(e) {
|
|
3769
3788
|
var r = !1;
|
|
3770
|
-
return Et
|
|
3789
|
+
return It(Et, function(n, i) {
|
|
3771
3790
|
if (!r)
|
|
3772
3791
|
try {
|
|
3773
3792
|
n(e), r = Cr(i, 1);
|
|
@@ -3778,7 +3797,7 @@ var Qa = function(e) {
|
|
|
3778
3797
|
if (!e || typeof e != "object")
|
|
3779
3798
|
return !1;
|
|
3780
3799
|
if (!ui) {
|
|
3781
|
-
var r = Cr(
|
|
3800
|
+
var r = Cr(Ua(e), 8, -1);
|
|
3782
3801
|
return xa(fr, r) > -1 ? r : r !== "Object" ? !1 : Ga(e);
|
|
3783
3802
|
}
|
|
3784
3803
|
return gt ? Qa(e) : null;
|
|
@@ -3881,10 +3900,10 @@ var Ya = function(e) {
|
|
|
3881
3900
|
return n(y) === "Uint8ClampedArray";
|
|
3882
3901
|
}
|
|
3883
3902
|
t.isUint8ClampedArray = R;
|
|
3884
|
-
function
|
|
3903
|
+
function K(y) {
|
|
3885
3904
|
return n(y) === "Uint16Array";
|
|
3886
3905
|
}
|
|
3887
|
-
t.isUint16Array =
|
|
3906
|
+
t.isUint16Array = K;
|
|
3888
3907
|
function ee(y) {
|
|
3889
3908
|
return n(y) === "Uint32Array";
|
|
3890
3909
|
}
|
|
@@ -3913,10 +3932,10 @@ var Ya = function(e) {
|
|
|
3913
3932
|
return n(y) === "BigInt64Array";
|
|
3914
3933
|
}
|
|
3915
3934
|
t.isBigInt64Array = Ne;
|
|
3916
|
-
function
|
|
3935
|
+
function Ie(y) {
|
|
3917
3936
|
return n(y) === "BigUint64Array";
|
|
3918
3937
|
}
|
|
3919
|
-
t.isBigUint64Array =
|
|
3938
|
+
t.isBigUint64Array = Ie;
|
|
3920
3939
|
function le(y) {
|
|
3921
3940
|
return u(y) === "[object Map]";
|
|
3922
3941
|
}
|
|
@@ -3977,10 +3996,10 @@ var Ya = function(e) {
|
|
|
3977
3996
|
return u(y) === "[object AsyncFunction]";
|
|
3978
3997
|
}
|
|
3979
3998
|
t.isAsyncFunction = k;
|
|
3980
|
-
function
|
|
3999
|
+
function I(y) {
|
|
3981
4000
|
return u(y) === "[object Map Iterator]";
|
|
3982
4001
|
}
|
|
3983
|
-
t.isMapIterator =
|
|
4002
|
+
t.isMapIterator = I;
|
|
3984
4003
|
function O(y) {
|
|
3985
4004
|
return u(y) === "[object Set Iterator]";
|
|
3986
4005
|
}
|
|
@@ -3989,14 +4008,14 @@ var Ya = function(e) {
|
|
|
3989
4008
|
return u(y) === "[object Generator]";
|
|
3990
4009
|
}
|
|
3991
4010
|
t.isGeneratorObject = F;
|
|
3992
|
-
function
|
|
4011
|
+
function H(y) {
|
|
3993
4012
|
return u(y) === "[object WebAssembly.Module]";
|
|
3994
4013
|
}
|
|
3995
|
-
t.isWebAssemblyCompiledModule =
|
|
3996
|
-
function
|
|
4014
|
+
t.isWebAssemblyCompiledModule = H;
|
|
4015
|
+
function Ee(y) {
|
|
3997
4016
|
return b(y, d);
|
|
3998
4017
|
}
|
|
3999
|
-
t.isNumberObject =
|
|
4018
|
+
t.isNumberObject = Ee;
|
|
4000
4019
|
function at(y) {
|
|
4001
4020
|
return b(y, c);
|
|
4002
4021
|
}
|
|
@@ -4014,7 +4033,7 @@ var Ya = function(e) {
|
|
|
4014
4033
|
}
|
|
4015
4034
|
t.isSymbolObject = Fr;
|
|
4016
4035
|
function hi(y) {
|
|
4017
|
-
return
|
|
4036
|
+
return Ee(y) || at(y) || Ve(y) || ut(y) || Fr(y);
|
|
4018
4037
|
}
|
|
4019
4038
|
t.isBoxedPrimitive = hi;
|
|
4020
4039
|
function yi(y) {
|
|
@@ -4079,8 +4098,8 @@ var ru = hr.exports;
|
|
|
4079
4098
|
default:
|
|
4080
4099
|
return O;
|
|
4081
4100
|
}
|
|
4082
|
-
}),
|
|
4083
|
-
R(
|
|
4101
|
+
}), I = w[m]; m < L; I = w[++m])
|
|
4102
|
+
R(I) || !ie(I) ? k += " " + I : k += " " + s(I);
|
|
4084
4103
|
return k;
|
|
4085
4104
|
}, t.deprecate = function(l, h) {
|
|
4086
4105
|
if (typeof A < "u" && A.noDeprecation === !0)
|
|
@@ -4173,8 +4192,8 @@ var ru = hr.exports;
|
|
|
4173
4192
|
var L = f(l, h);
|
|
4174
4193
|
if (L)
|
|
4175
4194
|
return L;
|
|
4176
|
-
var k = Object.keys(h),
|
|
4177
|
-
if (l.showHidden && (k = Object.getOwnPropertyNames(h)),
|
|
4195
|
+
var k = Object.keys(h), I = d(k);
|
|
4196
|
+
if (l.showHidden && (k = Object.getOwnPropertyNames(h)), Ie(h) && (k.indexOf("message") >= 0 || k.indexOf("description") >= 0))
|
|
4178
4197
|
return p(h);
|
|
4179
4198
|
if (k.length === 0) {
|
|
4180
4199
|
if (le(h)) {
|
|
@@ -4185,23 +4204,23 @@ var ru = hr.exports;
|
|
|
4185
4204
|
return l.stylize(RegExp.prototype.toString.call(h), "regexp");
|
|
4186
4205
|
if (Ne(h))
|
|
4187
4206
|
return l.stylize(Date.prototype.toString.call(h), "date");
|
|
4188
|
-
if (
|
|
4207
|
+
if (Ie(h))
|
|
4189
4208
|
return p(h);
|
|
4190
4209
|
}
|
|
4191
|
-
var F = "",
|
|
4192
|
-
if (S(h) && (
|
|
4210
|
+
var F = "", H = !1, Ee = ["{", "}"];
|
|
4211
|
+
if (S(h) && (H = !0, Ee = ["[", "]"]), le(h)) {
|
|
4193
4212
|
var at = h.name ? ": " + h.name : "";
|
|
4194
4213
|
F = " [Function" + at + "]";
|
|
4195
4214
|
}
|
|
4196
|
-
if (ne(h) && (F = " " + RegExp.prototype.toString.call(h)), Ne(h) && (F = " " + Date.prototype.toUTCString.call(h)),
|
|
4197
|
-
return
|
|
4215
|
+
if (ne(h) && (F = " " + RegExp.prototype.toString.call(h)), Ne(h) && (F = " " + Date.prototype.toUTCString.call(h)), Ie(h) && (F = " " + p(h)), k.length === 0 && (!H || h.length == 0))
|
|
4216
|
+
return Ee[0] + F + Ee[1];
|
|
4198
4217
|
if (m < 0)
|
|
4199
4218
|
return ne(h) ? l.stylize(RegExp.prototype.toString.call(h), "regexp") : l.stylize("[Object]", "special");
|
|
4200
4219
|
l.seen.push(h);
|
|
4201
4220
|
var Ve;
|
|
4202
|
-
return
|
|
4203
|
-
return b(l, h, m,
|
|
4204
|
-
}), l.seen.pop(), g(Ve, F,
|
|
4221
|
+
return H ? Ve = v(l, h, m, I, k) : Ve = k.map(function(ut) {
|
|
4222
|
+
return b(l, h, m, I, ut, H);
|
|
4223
|
+
}), l.seen.pop(), g(Ve, F, Ee);
|
|
4205
4224
|
}
|
|
4206
4225
|
function f(l, h) {
|
|
4207
4226
|
if (T(h))
|
|
@@ -4221,13 +4240,13 @@ var ru = hr.exports;
|
|
|
4221
4240
|
return "[" + Error.prototype.toString.call(l) + "]";
|
|
4222
4241
|
}
|
|
4223
4242
|
function v(l, h, m, w, L) {
|
|
4224
|
-
for (var k = [],
|
|
4225
|
-
De(h, String(
|
|
4243
|
+
for (var k = [], I = 0, O = h.length; I < O; ++I)
|
|
4244
|
+
De(h, String(I)) ? k.push(b(
|
|
4226
4245
|
l,
|
|
4227
4246
|
h,
|
|
4228
4247
|
m,
|
|
4229
4248
|
w,
|
|
4230
|
-
String(
|
|
4249
|
+
String(I),
|
|
4231
4250
|
!0
|
|
4232
4251
|
)) : k.push("");
|
|
4233
4252
|
return L.forEach(function(F) {
|
|
@@ -4242,23 +4261,23 @@ var ru = hr.exports;
|
|
|
4242
4261
|
}), k;
|
|
4243
4262
|
}
|
|
4244
4263
|
function b(l, h, m, w, L, k) {
|
|
4245
|
-
var
|
|
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) || (
|
|
4264
|
+
var I, O, F;
|
|
4265
|
+
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) || (I = "[" + 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
4266
|
`) > -1 && (k ? O = O.split(`
|
|
4248
|
-
`).map(function(
|
|
4249
|
-
return " " +
|
|
4267
|
+
`).map(function(H) {
|
|
4268
|
+
return " " + H;
|
|
4250
4269
|
}).join(`
|
|
4251
4270
|
`).slice(2) : O = `
|
|
4252
4271
|
` + O.split(`
|
|
4253
|
-
`).map(function(
|
|
4254
|
-
return " " +
|
|
4272
|
+
`).map(function(H) {
|
|
4273
|
+
return " " + H;
|
|
4255
4274
|
}).join(`
|
|
4256
|
-
`))) : O = l.stylize("[Circular]", "special")), T(
|
|
4275
|
+
`))) : O = l.stylize("[Circular]", "special")), T(I)) {
|
|
4257
4276
|
if (k && L.match(/^\d+$/))
|
|
4258
4277
|
return O;
|
|
4259
|
-
|
|
4278
|
+
I = JSON.stringify("" + L), I.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (I = I.slice(1, -1), I = l.stylize(I, "name")) : (I = I.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), I = l.stylize(I, "string"));
|
|
4260
4279
|
}
|
|
4261
|
-
return
|
|
4280
|
+
return I + ": " + O;
|
|
4262
4281
|
}
|
|
4263
4282
|
function g(l, h, m) {
|
|
4264
4283
|
var w = l.reduce(function(L, k) {
|
|
@@ -4282,10 +4301,10 @@ var ru = hr.exports;
|
|
|
4282
4301
|
return l === null;
|
|
4283
4302
|
}
|
|
4284
4303
|
t.isNull = R;
|
|
4285
|
-
function
|
|
4304
|
+
function K(l) {
|
|
4286
4305
|
return l == null;
|
|
4287
4306
|
}
|
|
4288
|
-
t.isNullOrUndefined =
|
|
4307
|
+
t.isNullOrUndefined = K;
|
|
4289
4308
|
function ee(l) {
|
|
4290
4309
|
return typeof l == "number";
|
|
4291
4310
|
}
|
|
@@ -4314,10 +4333,10 @@ var ru = hr.exports;
|
|
|
4314
4333
|
return ie(l) && Se(l) === "[object Date]";
|
|
4315
4334
|
}
|
|
4316
4335
|
t.isDate = Ne, t.types.isDate = Ne;
|
|
4317
|
-
function
|
|
4336
|
+
function Ie(l) {
|
|
4318
4337
|
return ie(l) && (Se(l) === "[object Error]" || l instanceof Error);
|
|
4319
4338
|
}
|
|
4320
|
-
t.isError =
|
|
4339
|
+
t.isError = Ie, t.types.isNativeError = Ie;
|
|
4321
4340
|
function le(l) {
|
|
4322
4341
|
return typeof l == "function";
|
|
4323
4342
|
}
|
|
@@ -4382,15 +4401,15 @@ var ru = hr.exports;
|
|
|
4382
4401
|
}), m;
|
|
4383
4402
|
}
|
|
4384
4403
|
function m() {
|
|
4385
|
-
for (var w, L, k = new Promise(function(F,
|
|
4386
|
-
w = F, L =
|
|
4387
|
-
}),
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
F ? L(F) : w(
|
|
4404
|
+
for (var w, L, k = new Promise(function(F, H) {
|
|
4405
|
+
w = F, L = H;
|
|
4406
|
+
}), I = [], O = 0; O < arguments.length; O++)
|
|
4407
|
+
I.push(arguments[O]);
|
|
4408
|
+
I.push(function(F, H) {
|
|
4409
|
+
F ? L(F) : w(H);
|
|
4391
4410
|
});
|
|
4392
4411
|
try {
|
|
4393
|
-
h.apply(this,
|
|
4412
|
+
h.apply(this, I);
|
|
4394
4413
|
} catch (F) {
|
|
4395
4414
|
L(F);
|
|
4396
4415
|
}
|
|
@@ -4422,15 +4441,15 @@ var ru = hr.exports;
|
|
|
4422
4441
|
var L = m.pop();
|
|
4423
4442
|
if (typeof L != "function")
|
|
4424
4443
|
throw new TypeError("The last argument must be of type Function");
|
|
4425
|
-
var k = this,
|
|
4444
|
+
var k = this, I = function() {
|
|
4426
4445
|
return L.apply(k, arguments);
|
|
4427
4446
|
};
|
|
4428
4447
|
l.apply(this, m).then(
|
|
4429
4448
|
function(O) {
|
|
4430
|
-
A.nextTick(
|
|
4449
|
+
A.nextTick(I.bind(null, null, O));
|
|
4431
4450
|
},
|
|
4432
4451
|
function(O) {
|
|
4433
|
-
A.nextTick(Re.bind(null, O,
|
|
4452
|
+
A.nextTick(Re.bind(null, O, I));
|
|
4434
4453
|
}
|
|
4435
4454
|
);
|
|
4436
4455
|
}
|
|
@@ -4658,8 +4677,8 @@ function cu(t) {
|
|
|
4658
4677
|
function g(...S) {
|
|
4659
4678
|
if (!g.enabled)
|
|
4660
4679
|
return;
|
|
4661
|
-
const C = g, R = Number(/* @__PURE__ */ new Date()),
|
|
4662
|
-
C.diff =
|
|
4680
|
+
const C = g, R = Number(/* @__PURE__ */ new Date()), K = R - (f || R);
|
|
4681
|
+
C.diff = K, C.prev = f, C.curr = R, f = R, S[0] = r.coerce(S[0]), typeof S[0] != "string" && S.unshift("%O");
|
|
4663
4682
|
let ee = 0;
|
|
4664
4683
|
S[0] = S[0].replace(/%([a-zA-Z%])/g, (V, T) => {
|
|
4665
4684
|
if (V === "%%")
|
|
@@ -4975,8 +4994,8 @@ const Sn = Mn, Su = zn.EventEmitter, wu = Nt.inherits, {
|
|
|
4975
4994
|
AVV_ERR_EXPOSE_ALREADY_DEFINED: Zt,
|
|
4976
4995
|
AVV_ERR_CALLBACK_NOT_FN: et,
|
|
4977
4996
|
AVV_ERR_PLUGIN_NOT_VALID: Au,
|
|
4978
|
-
AVV_ERR_ROOT_PLG_BOOTED:
|
|
4979
|
-
AVV_ERR_READY_TIMEOUT:
|
|
4997
|
+
AVV_ERR_ROOT_PLG_BOOTED: Iu,
|
|
4998
|
+
AVV_ERR_READY_TIMEOUT: Eu
|
|
4980
4999
|
} = li, Tu = au, mr = vu, ze = di("avvio"), _t = Symbol("kAvvio"), er = Symbol("kThenifyDoNotWrap");
|
|
4981
5000
|
function Ou(t, e, r) {
|
|
4982
5001
|
const n = e.expose || {}, i = n.use || "use", o = n.after || "after", s = n.ready || "ready", a = n.onClose || "onClose", u = n.close || "close";
|
|
@@ -5004,9 +5023,9 @@ function Ou(t, e, r) {
|
|
|
5004
5023
|
return d ? (r.close(tr(d, this)), this) : r.close();
|
|
5005
5024
|
};
|
|
5006
5025
|
}
|
|
5007
|
-
function
|
|
5008
|
-
if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof
|
|
5009
|
-
const n = new
|
|
5026
|
+
function U(t, e, r) {
|
|
5027
|
+
if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof U)) {
|
|
5028
|
+
const n = new U(t, e, r);
|
|
5010
5029
|
return t && Ou(t, e, n), n;
|
|
5011
5030
|
}
|
|
5012
5031
|
e.autostart !== !1 && (e.autostart = !0), t = t || this, this._timeout = Number(e.timeout) || 0, this._server = t, this._current = [], this._error = null, this._isOnCloseHandlerKey = Symbol("isOnCloseHandler"), this._lastUsed = null, this.setMaxListeners(0), r && this.once("start", r), this.started = !1, this.booted = !1, this.pluginTree = new Tu(), this._readyQ = Sn(this, pi, 1), this._readyQ.pause(), this._readyQ.drain = () => {
|
|
@@ -5036,11 +5055,11 @@ function q(t, e, r) {
|
|
|
5036
5055
|
function _u(t, e, r) {
|
|
5037
5056
|
this._doStart = r, e.autostart && this.start();
|
|
5038
5057
|
}
|
|
5039
|
-
wu(
|
|
5040
|
-
|
|
5058
|
+
wu(U, Su);
|
|
5059
|
+
U.prototype.start = function() {
|
|
5041
5060
|
return this.started = !0, A.nextTick(this._doStart), this;
|
|
5042
5061
|
};
|
|
5043
|
-
|
|
5062
|
+
U.prototype.override = function(t, e, r) {
|
|
5044
5063
|
return t;
|
|
5045
5064
|
};
|
|
5046
5065
|
function Cu(t) {
|
|
@@ -5048,18 +5067,18 @@ function Cu(t) {
|
|
|
5048
5067
|
throw new Au(typeof t);
|
|
5049
5068
|
return t;
|
|
5050
5069
|
}
|
|
5051
|
-
|
|
5052
|
-
|
|
5070
|
+
U.prototype[_t] = !0;
|
|
5071
|
+
U.prototype.use = function(t, e) {
|
|
5053
5072
|
return this._lastUsed = this._addPlugin(t, e, !1), this;
|
|
5054
5073
|
};
|
|
5055
|
-
|
|
5074
|
+
U.prototype._loadRegistered = function() {
|
|
5056
5075
|
const t = this._current[0];
|
|
5057
5076
|
return !this.started && !this.booted && A.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
|
|
5058
5077
|
};
|
|
5059
|
-
Object.defineProperty(
|
|
5060
|
-
|
|
5078
|
+
Object.defineProperty(U.prototype, "then", { get: fi });
|
|
5079
|
+
U.prototype._addPlugin = function(t, e, r) {
|
|
5061
5080
|
if (t = Cu(t), e = e || {}, this.booted)
|
|
5062
|
-
throw new
|
|
5081
|
+
throw new Iu();
|
|
5063
5082
|
const n = this._current[0], i = new mr(this, t, e, r);
|
|
5064
5083
|
if (i.once("start", (o, s, a) => {
|
|
5065
5084
|
const u = this.pluginTree.start(n.name, s, a);
|
|
@@ -5072,7 +5091,7 @@ q.prototype._addPlugin = function(t, e, r) {
|
|
|
5072
5091
|
o && (this._error = o);
|
|
5073
5092
|
}), i;
|
|
5074
5093
|
};
|
|
5075
|
-
|
|
5094
|
+
U.prototype.after = function(t) {
|
|
5076
5095
|
if (!t)
|
|
5077
5096
|
return this._loadRegistered();
|
|
5078
5097
|
this._addPlugin(e.bind(this), {}, !0);
|
|
@@ -5081,7 +5100,7 @@ q.prototype.after = function(t) {
|
|
|
5081
5100
|
}
|
|
5082
5101
|
return this;
|
|
5083
5102
|
};
|
|
5084
|
-
|
|
5103
|
+
U.prototype.onClose = function(t) {
|
|
5085
5104
|
if (typeof t != "function")
|
|
5086
5105
|
throw new Error("not a function");
|
|
5087
5106
|
t[this._isOnCloseHandlerKey] = !0, this._closeQ.unshift(t, e.bind(this));
|
|
@@ -5090,7 +5109,7 @@ q.prototype.onClose = function(t) {
|
|
|
5090
5109
|
}
|
|
5091
5110
|
return this;
|
|
5092
5111
|
};
|
|
5093
|
-
|
|
5112
|
+
U.prototype.close = function(t) {
|
|
5094
5113
|
let e;
|
|
5095
5114
|
if (t) {
|
|
5096
5115
|
if (typeof t != "function")
|
|
@@ -5107,7 +5126,7 @@ q.prototype.close = function(t) {
|
|
|
5107
5126
|
this._error = null, this._closeQ.push(t), A.nextTick(this._closeQ.resume.bind(this._closeQ));
|
|
5108
5127
|
}), e;
|
|
5109
5128
|
};
|
|
5110
|
-
|
|
5129
|
+
U.prototype.ready = function(t) {
|
|
5111
5130
|
if (t) {
|
|
5112
5131
|
if (typeof t != "function")
|
|
5113
5132
|
throw new et("ready", typeof t);
|
|
@@ -5122,10 +5141,10 @@ q.prototype.ready = function(t) {
|
|
|
5122
5141
|
}
|
|
5123
5142
|
});
|
|
5124
5143
|
};
|
|
5125
|
-
|
|
5144
|
+
U.prototype.prettyPrint = function() {
|
|
5126
5145
|
return this.pluginTree.prittyPrint();
|
|
5127
5146
|
};
|
|
5128
|
-
|
|
5147
|
+
U.prototype.toJSON = function() {
|
|
5129
5148
|
return this.pluginTree.toJSON();
|
|
5130
5149
|
};
|
|
5131
5150
|
function wn() {
|
|
@@ -5161,7 +5180,7 @@ function Lu(t, e, r, n) {
|
|
|
5161
5180
|
ze("setting up ready timeout", i, this._timeout);
|
|
5162
5181
|
let o = setTimeout(() => {
|
|
5163
5182
|
ze("timed out", i), o = null;
|
|
5164
|
-
const a = new
|
|
5183
|
+
const a = new Eu(i);
|
|
5165
5184
|
a.fn = t, this._error = a, n(a);
|
|
5166
5185
|
}, this._timeout);
|
|
5167
5186
|
t.length === 2 ? t(e, s.bind(this)) : t(e, r, s.bind(this));
|
|
@@ -5201,9 +5220,9 @@ function tr(t, e) {
|
|
|
5201
5220
|
}, i) : A.nextTick(i)) : t.length === 2 ? t(n, i) : t(n, this, i) : A.nextTick(i);
|
|
5202
5221
|
}
|
|
5203
5222
|
}
|
|
5204
|
-
Sr.exports =
|
|
5223
|
+
Sr.exports = U;
|
|
5205
5224
|
Sr.exports.express = function(t) {
|
|
5206
|
-
return
|
|
5225
|
+
return U(t, {
|
|
5207
5226
|
expose: {
|
|
5208
5227
|
use: "load"
|
|
5209
5228
|
}
|