@streamlayer/sdk-web 1.10.7 → 1.10.9
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 +7 -7
- package/lib/es/index.js +138 -136
- package/package.json +11 -11
package/lib/es/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { QuestionType as I, QuestionStatus as G, PromotionType as q, Notificatio
|
|
|
3
3
|
import { PickHistoryStatus as lt } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
|
|
4
4
|
import { SdkOverlayType as R } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
|
|
5
5
|
import { InvitationCategory as Mr, InvitationFrom as Ur } from "@streamlayer/sl-eslib/analytics/v1/invitations/invitations_pb";
|
|
6
|
-
import { computed as _i, map as ki, atom as
|
|
7
|
-
import { v4 as
|
|
6
|
+
import { computed as _i, map as ki, atom as Nt, batched as qr, onMount as wr } from "nanostores";
|
|
7
|
+
import { v4 as At } from "uuid";
|
|
8
8
|
import { ConnectError as it, Code as oe, createContextKey as jr, createClient as xr, createContextValues as Pi } from "@connectrpc/connect";
|
|
9
9
|
import { createGrpcWebTransport as Qr } from "@connectrpc/connect-web";
|
|
10
10
|
import { nanoquery as Gr } from "@nanostores/query";
|
|
@@ -180,7 +180,7 @@ var Ae;
|
|
|
180
180
|
t[t.ONBOARDING = 1] = "ONBOARDING", t[t.QUESTION = 2] = "QUESTION", t[t.QUESTION_RESOLVED = 3] = "QUESTION_RESOLVED";
|
|
181
181
|
})(Ae || (Ae = {}));
|
|
182
182
|
window.slStore = /* @__PURE__ */ Object.create(null);
|
|
183
|
-
class
|
|
183
|
+
class Dt {
|
|
184
184
|
/**
|
|
185
185
|
* store instance (nanostores)
|
|
186
186
|
*/
|
|
@@ -200,7 +200,7 @@ const Ui = (t) => {
|
|
|
200
200
|
const e = Object.keys(t);
|
|
201
201
|
return _i(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((n, i) => [n, r[i]])));
|
|
202
202
|
};
|
|
203
|
-
class Ce extends
|
|
203
|
+
class Ce extends Dt {
|
|
204
204
|
getValues = () => this.getStore().get();
|
|
205
205
|
getValue = (e) => this.getStore().get()[e];
|
|
206
206
|
setValue = (e, r) => this.getStore().setKey(e, r);
|
|
@@ -230,7 +230,7 @@ class $n {
|
|
|
230
230
|
listeners = /* @__PURE__ */ new Set();
|
|
231
231
|
settingsKey;
|
|
232
232
|
constructor({ settings: e, ...r }, n) {
|
|
233
|
-
this.settingsKey = qi[r.type], this.status =
|
|
233
|
+
this.settingsKey = qi[r.type], this.status = Nt(tt.Suspended), this.config = new Ce(Z(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new Ce(Z(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new Ce(Z({}), `feature:settings:${this.settingsKey}`), this.source = n;
|
|
234
234
|
}
|
|
235
235
|
get featureConfig() {
|
|
236
236
|
return this.config.getStore();
|
|
@@ -272,7 +272,7 @@ class $n {
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
|
-
class re extends
|
|
275
|
+
class re extends Dt {
|
|
276
276
|
getValue = () => this.getStore().get();
|
|
277
277
|
getValues() {
|
|
278
278
|
throw new Error("not implemented");
|
|
@@ -287,11 +287,11 @@ class re extends Nt {
|
|
|
287
287
|
return this.getStore().get();
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
const U = (t) =>
|
|
291
|
-
class se extends
|
|
290
|
+
const U = (t) => Nt(t);
|
|
291
|
+
class se extends Dt {
|
|
292
292
|
atomStore;
|
|
293
293
|
constructor(e, r, n) {
|
|
294
|
-
super(e, `api:${r}`), this.atomStore =
|
|
294
|
+
super(e, `api:${r}`), this.atomStore = Nt(), n && e.subscribe((i) => {
|
|
295
295
|
const o = this.atomStore.get(), s = n(i, o);
|
|
296
296
|
o !== s && this.atomStore.set(s);
|
|
297
297
|
});
|
|
@@ -564,7 +564,7 @@ const Gi = /* @__PURE__ */ new Set([
|
|
|
564
564
|
const t = localStorage.getItem("sl-device-id");
|
|
565
565
|
if (t)
|
|
566
566
|
return t;
|
|
567
|
-
const e =
|
|
567
|
+
const e = At();
|
|
568
568
|
return localStorage.setItem("sl-device-id", e), e;
|
|
569
569
|
}, Hi = () => navigator.userAgentData?.platform || navigator.platform;
|
|
570
570
|
class Jr {
|
|
@@ -838,7 +838,7 @@ const io = (t) => {
|
|
|
838
838
|
organizationAdvertising: i
|
|
839
839
|
};
|
|
840
840
|
};
|
|
841
|
-
class ao extends
|
|
841
|
+
class ao extends Dt {
|
|
842
842
|
stores;
|
|
843
843
|
constructor(e) {
|
|
844
844
|
const r = so(e), n = Ui(r);
|
|
@@ -924,7 +924,7 @@ const uo = (t, e, r) => {
|
|
|
924
924
|
id: t
|
|
925
925
|
})).data;
|
|
926
926
|
}, yo = (t, e) => {
|
|
927
|
-
const { client: r } = e.createStreamClient(ee), n =
|
|
927
|
+
const { client: r } = e.createStreamClient(ee), n = Nt({ eventId: t.get() || "", feedId: "" });
|
|
928
928
|
return t.subscribe((o = "") => {
|
|
929
929
|
n.set({ eventId: o, feedId: "" });
|
|
930
930
|
}), e.addSubscription(r.subscription, n, { name: "feedSubscription" });
|
|
@@ -1077,18 +1077,18 @@ const uo = (t, e, r) => {
|
|
|
1077
1077
|
});
|
|
1078
1078
|
} };
|
|
1079
1079
|
};
|
|
1080
|
-
var
|
|
1080
|
+
var Et;
|
|
1081
1081
|
(function(t) {
|
|
1082
1082
|
t.SHOWED = "showed";
|
|
1083
|
-
})(
|
|
1083
|
+
})(Et || (Et = {}));
|
|
1084
1084
|
class wo extends Je {
|
|
1085
1085
|
constructor() {
|
|
1086
1086
|
super("advertisement");
|
|
1087
1087
|
}
|
|
1088
1088
|
setShowed = (e) => {
|
|
1089
|
-
this.write(
|
|
1089
|
+
this.write(Et.SHOWED, e, "true");
|
|
1090
1090
|
};
|
|
1091
|
-
isViewed = (e) => this.read(
|
|
1091
|
+
isViewed = (e) => this.read(Et.SHOWED, e);
|
|
1092
1092
|
}
|
|
1093
1093
|
const Ao = (t) => {
|
|
1094
1094
|
const e = t.data?.attributes?.question;
|
|
@@ -1249,11 +1249,11 @@ class To extends Je {
|
|
|
1249
1249
|
super("gamification"), this.sessionStorage = new Oo();
|
|
1250
1250
|
}
|
|
1251
1251
|
saveBetPackQuestionReceived = ({ userId: e, eventId: r, organizationId: n }, i) => {
|
|
1252
|
-
this.write(ce.BET_PACK_ITEM_RECEIVED, n, e, r, i);
|
|
1252
|
+
this.write(ce.BET_PACK_ITEM_RECEIVED, n, e, r, i, "1");
|
|
1253
1253
|
};
|
|
1254
1254
|
isBetPackQuestionReceived = ({ userId: e, eventId: r, organizationId: n }, i) => !!this.read(ce.BET_PACK_ITEM_RECEIVED, n, e, r, i);
|
|
1255
1255
|
saveQuestionOpened = ({ userId: e, eventId: r, organizationId: n }, i) => {
|
|
1256
|
-
this.write(ce.QUESTION_OPENED, n, e, r, i);
|
|
1256
|
+
this.write(ce.QUESTION_OPENED, n, e, r, i, "1");
|
|
1257
1257
|
};
|
|
1258
1258
|
isQuestionOpened = ({ userId: e, eventId: r, organizationId: n }, i) => !!this.read(ce.QUESTION_OPENED, n, e, r, i);
|
|
1259
1259
|
saveOnboardingStatus = ({ userId: e, eventId: r, organizationId: n }, i) => {
|
|
@@ -1517,18 +1517,18 @@ class ko {
|
|
|
1517
1517
|
this.store.clear(), this.timeouts.clear(), this.waitingQueue.clear(), this.activeQueue.clear(), this.notificationsList.off(), this.notificationsList.set(/* @__PURE__ */ new Map());
|
|
1518
1518
|
};
|
|
1519
1519
|
}
|
|
1520
|
-
var
|
|
1520
|
+
var It;
|
|
1521
1521
|
(function(t) {
|
|
1522
1522
|
t.OPENED = "opened";
|
|
1523
|
-
})(
|
|
1523
|
+
})(It || (It = {}));
|
|
1524
1524
|
class Po extends Je {
|
|
1525
1525
|
constructor() {
|
|
1526
1526
|
super("notification");
|
|
1527
1527
|
}
|
|
1528
1528
|
setOpened = (e) => {
|
|
1529
|
-
this.write(
|
|
1529
|
+
this.write(It.OPENED, e, "true");
|
|
1530
1530
|
};
|
|
1531
|
-
isOpened = (e) => this.read(
|
|
1531
|
+
isOpened = (e) => this.read(It.OPENED, e);
|
|
1532
1532
|
clearNotification = () => {
|
|
1533
1533
|
this.clear();
|
|
1534
1534
|
};
|
|
@@ -1643,7 +1643,7 @@ class Fo extends Je {
|
|
|
1643
1643
|
super("deep-link-context", window.sessionStorage);
|
|
1644
1644
|
}
|
|
1645
1645
|
}
|
|
1646
|
-
const Zr = "sldl",
|
|
1646
|
+
const Zr = "sldl", Ft = "sldl_uid", jn = "sldl_eid", xn = "sldl_e_eid", Ro = /* @__PURE__ */ new Set([Ft, jn, xn]), en = (t) => {
|
|
1647
1647
|
const e = {}, r = {};
|
|
1648
1648
|
for (const [n, i] of t)
|
|
1649
1649
|
Ro.has(n) ? e[n] = i : r[n] = i;
|
|
@@ -1709,7 +1709,7 @@ const Zr = "sldl", Dt = "sldl_uid", jn = "sldl_eid", xn = "sldl_e_eid", Ro = /*
|
|
|
1709
1709
|
onDeepLinkHandlers: /* @__PURE__ */ new Set()
|
|
1710
1710
|
}, t.sdk.getInviter = () => {
|
|
1711
1711
|
const { data: a, used: u } = t.deepLink.getDeepLinkData();
|
|
1712
|
-
return u ? a?.[
|
|
1712
|
+
return u ? a?.[Ft] : void 0;
|
|
1713
1713
|
}, t.sdk.inviteDisplayed = () => {
|
|
1714
1714
|
t.deepLink.$store.getStore().set({}), t.deepLink.$store.getStore().off(), n.del("sl-deep-link-store");
|
|
1715
1715
|
}, t.deepLink.$store.subscribe((a) => n.set("sl-deep-link-store", JSON.stringify(a))), t.sdk.addDeepLinkHandler = (a) => {
|
|
@@ -1745,7 +1745,7 @@ class Uo extends Mi {
|
|
|
1745
1745
|
*/
|
|
1746
1746
|
login = async (e, r) => {
|
|
1747
1747
|
this.$coreStore.getValues().userKey.setValue(r);
|
|
1748
|
-
const { used: n, data: i } = this.deepLink.getDeepLinkData(), o = n ? "" : i?.[
|
|
1748
|
+
const { used: n, data: i } = this.deepLink.getDeepLinkData(), o = n ? "" : i?.[Ft];
|
|
1749
1749
|
Mo.debug({ inviterKey: o }, "login with inviterKey");
|
|
1750
1750
|
const s = await this.bypassLogin({
|
|
1751
1751
|
schema: e,
|
|
@@ -2054,7 +2054,7 @@ const et = new je(), qo = (t, e, r) => {
|
|
|
2054
2054
|
const i = Z({});
|
|
2055
2055
|
return wr(i, () => Ko(t, [e, r]).subscribe(async ({ data: a, loading: u }) => {
|
|
2056
2056
|
const d = a === void 0 && u === !1 ? "https://streamlayer.io" : a?.url, c = n.get() || "", f = e.get() || "", p = r.get() || "", v = {
|
|
2057
|
-
[
|
|
2057
|
+
[Ft]: c,
|
|
2058
2058
|
[jn]: f,
|
|
2059
2059
|
[xn]: p
|
|
2060
2060
|
};
|
|
@@ -3129,7 +3129,7 @@ class ls {
|
|
|
3129
3129
|
this.analyticsClient = r;
|
|
3130
3130
|
}
|
|
3131
3131
|
connect = () => {
|
|
3132
|
-
this.writeCommon("sessionId",
|
|
3132
|
+
this.writeCommon("sessionId", At()), this.heartbeat.enable(), this.listeners.forEach((e) => this.listenersCancels.add(e())), this.connected = !0, Se.debug("analytics connected");
|
|
3133
3133
|
};
|
|
3134
3134
|
disconnect = () => {
|
|
3135
3135
|
this.writeCommon("sessionId", ""), this.writeCommon("overlaySessionId", ""), this.heartbeat.unmount(), this.listenersCancels.forEach((e) => e()), this.connected = !1, Se.debug("analytics disconnected");
|
|
@@ -3152,7 +3152,7 @@ class ls {
|
|
|
3152
3152
|
this.onConnect(() => e.stores.slStreamId.getAtomStore().subscribe((r) => {
|
|
3153
3153
|
this.writeCommon("eventId", r);
|
|
3154
3154
|
})), this.onConnect(() => e.sdk.getActiveFeature().subscribe((r) => {
|
|
3155
|
-
r && this.writeCommon("category", as[r]), r !== R.UNSET ? this.writeCommon("overlaySessionId",
|
|
3155
|
+
r && this.writeCommon("category", as[r]), r !== R.UNSET ? this.writeCommon("overlaySessionId", At()) : this.writeCommon("overlaySessionId", "");
|
|
3156
3156
|
})), this.onConnect(() => {
|
|
3157
3157
|
const r = window.matchMedia("(orientation: portrait)"), n = (i) => {
|
|
3158
3158
|
this.writeCommon("screenOrientation", i.matches ? Kr.PORTRAIT : Kr.LANDSCAPE);
|
|
@@ -3166,7 +3166,9 @@ class ls {
|
|
|
3166
3166
|
};
|
|
3167
3167
|
}
|
|
3168
3168
|
const fs = (t, e, r) => {
|
|
3169
|
-
t.analytics = new ls(t), t.sdk.onMount({ name: "analytics" }, () => (t.analytics.connect(), () => {
|
|
3169
|
+
t.analytics = new ls(t), t.sdk.onMount({ name: "analytics" }, () => (t.analytics.connect(), t.sdk.writeOverlaySessionId = (n) => {
|
|
3170
|
+
n === "" ? t.analytics.writeCommon("overlaySessionId", "") : t.analytics.writeCommon("overlaySessionId", At());
|
|
3171
|
+
}, () => {
|
|
3170
3172
|
t.analytics.disconnect();
|
|
3171
3173
|
})), r();
|
|
3172
3174
|
};
|
|
@@ -3355,7 +3357,7 @@ N.prototype._events = void 0;
|
|
|
3355
3357
|
N.prototype._eventsCount = 0;
|
|
3356
3358
|
N.prototype._maxListeners = void 0;
|
|
3357
3359
|
var un = 10;
|
|
3358
|
-
function
|
|
3360
|
+
function Rt(t) {
|
|
3359
3361
|
if (typeof t != "function")
|
|
3360
3362
|
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
|
|
3361
3363
|
}
|
|
@@ -3410,7 +3412,7 @@ N.prototype.emit = function(e) {
|
|
|
3410
3412
|
};
|
|
3411
3413
|
function Hn(t, e, r, n) {
|
|
3412
3414
|
var i, o, s;
|
|
3413
|
-
if (
|
|
3415
|
+
if (Rt(r), o = t._events, o === void 0 ? (o = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (o.newListener !== void 0 && (t.emit(
|
|
3414
3416
|
"newListener",
|
|
3415
3417
|
e,
|
|
3416
3418
|
r.listener ? r.listener : r
|
|
@@ -3439,14 +3441,14 @@ function Wn(t, e, r) {
|
|
|
3439
3441
|
return i.listener = r, n.wrapFn = i, i;
|
|
3440
3442
|
}
|
|
3441
3443
|
N.prototype.once = function(e, r) {
|
|
3442
|
-
return
|
|
3444
|
+
return Rt(r), this.on(e, Wn(this, e, r)), this;
|
|
3443
3445
|
};
|
|
3444
3446
|
N.prototype.prependOnceListener = function(e, r) {
|
|
3445
|
-
return
|
|
3447
|
+
return Rt(r), this.prependListener(e, Wn(this, e, r)), this;
|
|
3446
3448
|
};
|
|
3447
3449
|
N.prototype.removeListener = function(e, r) {
|
|
3448
3450
|
var n, i, o, s, a;
|
|
3449
|
-
if (
|
|
3451
|
+
if (Rt(r), i = this._events, i === void 0)
|
|
3450
3452
|
return this;
|
|
3451
3453
|
if (n = i[e], n === void 0)
|
|
3452
3454
|
return this;
|
|
@@ -3554,7 +3556,7 @@ function Zn(t, e, r, n) {
|
|
|
3554
3556
|
else
|
|
3555
3557
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
|
|
3556
3558
|
}
|
|
3557
|
-
var ei = Tr.exports,
|
|
3559
|
+
var ei = Tr.exports, Vt = {}, ti = {}, ri = function() {
|
|
3558
3560
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
3559
3561
|
return !1;
|
|
3560
3562
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -3577,15 +3579,15 @@ var ei = Tr.exports, Rt = {}, ti = {}, ri = function() {
|
|
|
3577
3579
|
return !1;
|
|
3578
3580
|
}
|
|
3579
3581
|
return !0;
|
|
3580
|
-
}, Os = ri,
|
|
3582
|
+
}, Os = ri, $t = function() {
|
|
3581
3583
|
return Os() && !!Symbol.toStringTag;
|
|
3582
|
-
}, Ts = Error, _s = EvalError, ks = RangeError, Ps = ReferenceError, ni = SyntaxError,
|
|
3584
|
+
}, Ts = Error, _s = EvalError, ks = RangeError, Ps = ReferenceError, ni = SyntaxError, Bt = TypeError, Cs = URIError, cn = typeof Symbol < "u" && Symbol, Ls = ri, Ns = function() {
|
|
3583
3585
|
return typeof cn != "function" || typeof Symbol != "function" || typeof cn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Ls();
|
|
3584
|
-
},
|
|
3586
|
+
}, xt = {
|
|
3585
3587
|
__proto__: null,
|
|
3586
3588
|
foo: {}
|
|
3587
3589
|
}, Ds = Object, Fs = function() {
|
|
3588
|
-
return { __proto__:
|
|
3590
|
+
return { __proto__: xt }.foo === xt.foo && !(xt instanceof Ds);
|
|
3589
3591
|
}, Rs = "Function.prototype.bind called on incompatible ", Vs = Object.prototype.toString, $s = Math.max, Bs = "[object Function]", dn = function(e, r) {
|
|
3590
3592
|
for (var n = [], i = 0; i < e.length; i += 1)
|
|
3591
3593
|
n[i] = e[i];
|
|
@@ -3624,7 +3626,7 @@ var ei = Tr.exports, Rt = {}, ti = {}, ri = function() {
|
|
|
3624
3626
|
d.prototype = r.prototype, i.prototype = new d(), d.prototype = null;
|
|
3625
3627
|
}
|
|
3626
3628
|
return i;
|
|
3627
|
-
}, js = qs, _r = Function.prototype.bind || js, xs = Function.prototype.call, Qs = Object.prototype.hasOwnProperty, Gs = _r, Ks = Gs.call(xs, Qs), T, zs = Ts, Hs = _s, Ws = ks, Ys = Ps, We = ni, ze =
|
|
3629
|
+
}, js = qs, _r = Function.prototype.bind || js, xs = Function.prototype.call, Qs = Object.prototype.hasOwnProperty, Gs = _r, Ks = Gs.call(xs, Qs), T, zs = Ts, Hs = _s, Ws = ks, Ys = Ps, We = ni, ze = Bt, Js = Cs, ii = Function, Qt = function(t) {
|
|
3628
3630
|
try {
|
|
3629
3631
|
return ii('"use strict"; return (' + t + ").constructor;")();
|
|
3630
3632
|
} catch {
|
|
@@ -3636,19 +3638,19 @@ if (Le)
|
|
|
3636
3638
|
} catch {
|
|
3637
3639
|
Le = null;
|
|
3638
3640
|
}
|
|
3639
|
-
var
|
|
3641
|
+
var Gt = function() {
|
|
3640
3642
|
throw new ze();
|
|
3641
3643
|
}, Xs = Le ? function() {
|
|
3642
3644
|
try {
|
|
3643
|
-
return arguments.callee,
|
|
3645
|
+
return arguments.callee, Gt;
|
|
3644
3646
|
} catch {
|
|
3645
3647
|
try {
|
|
3646
3648
|
return Le(arguments, "callee").get;
|
|
3647
3649
|
} catch {
|
|
3648
|
-
return
|
|
3650
|
+
return Gt;
|
|
3649
3651
|
}
|
|
3650
3652
|
}
|
|
3651
|
-
}() :
|
|
3653
|
+
}() : Gt, Me = Ns(), Zs = Fs(), j = Object.getPrototypeOf || (Zs ? function(t) {
|
|
3652
3654
|
return t.__proto__;
|
|
3653
3655
|
} : null), qe = {}, ea = typeof Uint8Array > "u" || !j ? T : j(Uint8Array), Ne = {
|
|
3654
3656
|
__proto__: null,
|
|
@@ -3730,11 +3732,11 @@ if (j)
|
|
|
3730
3732
|
var ra = function t(e) {
|
|
3731
3733
|
var r;
|
|
3732
3734
|
if (e === "%AsyncFunction%")
|
|
3733
|
-
r =
|
|
3735
|
+
r = Qt("async function () {}");
|
|
3734
3736
|
else if (e === "%GeneratorFunction%")
|
|
3735
|
-
r =
|
|
3737
|
+
r = Qt("function* () {}");
|
|
3736
3738
|
else if (e === "%AsyncGeneratorFunction%")
|
|
3737
|
-
r =
|
|
3739
|
+
r = Qt("async function* () {}");
|
|
3738
3740
|
else if (e === "%AsyncGenerator%") {
|
|
3739
3741
|
var n = t("%AsyncGeneratorFunction%");
|
|
3740
3742
|
n && (r = n.prototype);
|
|
@@ -3796,8 +3798,8 @@ var ra = function t(e) {
|
|
|
3796
3798
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
3797
3799
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3798
3800
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3799
|
-
}, st = _r,
|
|
3800
|
-
var r =
|
|
3801
|
+
}, st = _r, Ot = Ks, na = st.call(Function.call, Array.prototype.concat), ia = st.call(Function.apply, Array.prototype.splice), fn = st.call(Function.call, String.prototype.replace), Tt = st.call(Function.call, String.prototype.slice), oa = st.call(Function.call, RegExp.prototype.exec), sa = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, aa = /\\(\\)?/g, ua = function(e) {
|
|
3802
|
+
var r = Tt(e, 0, 1), n = Tt(e, -1);
|
|
3801
3803
|
if (r === "%" && n !== "%")
|
|
3802
3804
|
throw new We("invalid intrinsic syntax, expected closing `%`");
|
|
3803
3805
|
if (n === "%" && r !== "%")
|
|
@@ -3808,7 +3810,7 @@ var ra = function t(e) {
|
|
|
3808
3810
|
}), i;
|
|
3809
3811
|
}, ca = function(e, r) {
|
|
3810
3812
|
var n = e, i;
|
|
3811
|
-
if (
|
|
3813
|
+
if (Ot(ln, n) && (i = ln[n], n = "%" + i[0] + "%"), Ot(Ne, n)) {
|
|
3812
3814
|
var o = Ne[n];
|
|
3813
3815
|
if (o === qe && (o = ra(n)), typeof o > "u" && !r)
|
|
3814
3816
|
throw new ze("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
@@ -3829,10 +3831,10 @@ var ra = function t(e) {
|
|
|
3829
3831
|
var n = ua(e), i = n.length > 0 ? n[0] : "", o = ca("%" + i + "%", r), s = o.name, a = o.value, u = !1, d = o.alias;
|
|
3830
3832
|
d && (i = d[0], ia(n, na([0, 1], d)));
|
|
3831
3833
|
for (var c = 1, f = !0; c < n.length; c += 1) {
|
|
3832
|
-
var p = n[c], v =
|
|
3834
|
+
var p = n[c], v = Tt(p, 0, 1), w = Tt(p, -1);
|
|
3833
3835
|
if ((v === '"' || v === "'" || v === "`" || w === '"' || w === "'" || w === "`") && v !== w)
|
|
3834
3836
|
throw new We("property names with quotes must have matching quotes");
|
|
3835
|
-
if ((p === "constructor" || !f) && (u = !0), i += "." + p, s = "%" + i + "%",
|
|
3837
|
+
if ((p === "constructor" || !f) && (u = !0), i += "." + p, s = "%" + i + "%", Ot(Ne, s))
|
|
3836
3838
|
a = Ne[s];
|
|
3837
3839
|
else if (a != null) {
|
|
3838
3840
|
if (!(p in a)) {
|
|
@@ -3844,14 +3846,14 @@ var ra = function t(e) {
|
|
|
3844
3846
|
var m = Le(a, p);
|
|
3845
3847
|
f = !!m, f && "get" in m && !("originalValue" in m.get) ? a = m.get : a = a[p];
|
|
3846
3848
|
} else
|
|
3847
|
-
f =
|
|
3849
|
+
f = Ot(a, p), a = a[p];
|
|
3848
3850
|
f && !u && (Ne[s] = a);
|
|
3849
3851
|
}
|
|
3850
3852
|
}
|
|
3851
3853
|
return a;
|
|
3852
|
-
}, oi = { exports: {} },
|
|
3854
|
+
}, oi = { exports: {} }, Kt, pn;
|
|
3853
3855
|
function kr() {
|
|
3854
|
-
if (pn) return
|
|
3856
|
+
if (pn) return Kt;
|
|
3855
3857
|
pn = 1;
|
|
3856
3858
|
var t = at, e = t("%Object.defineProperty%", !0) || !1;
|
|
3857
3859
|
if (e)
|
|
@@ -3860,7 +3862,7 @@ function kr() {
|
|
|
3860
3862
|
} catch {
|
|
3861
3863
|
e = !1;
|
|
3862
3864
|
}
|
|
3863
|
-
return
|
|
3865
|
+
return Kt = e, Kt;
|
|
3864
3866
|
}
|
|
3865
3867
|
var da = at, gt = da("%Object.getOwnPropertyDescriptor%", !0);
|
|
3866
3868
|
if (gt)
|
|
@@ -3869,7 +3871,7 @@ if (gt)
|
|
|
3869
3871
|
} catch {
|
|
3870
3872
|
gt = null;
|
|
3871
3873
|
}
|
|
3872
|
-
var
|
|
3874
|
+
var Mt = gt, hn = kr(), la = ni, Ue = Bt, yn = Mt, fa = function(e, r, n) {
|
|
3873
3875
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
3874
3876
|
throw new Ue("`obj` must be an object or a function`");
|
|
3875
3877
|
if (typeof r != "string" && typeof r != "symbol")
|
|
@@ -3906,7 +3908,7 @@ si.hasArrayLengthDefineBug = function() {
|
|
|
3906
3908
|
return !0;
|
|
3907
3909
|
}
|
|
3908
3910
|
};
|
|
3909
|
-
var pa = si, ha = at, mn = fa, ya = pa(), gn =
|
|
3911
|
+
var pa = si, ha = at, mn = fa, ya = pa(), gn = Mt, bn = Bt, ma = ha("%Math.floor%"), ga = function(e, r) {
|
|
3910
3912
|
if (typeof e != "function")
|
|
3911
3913
|
throw new bn("`fn` is not a function");
|
|
3912
3914
|
if (typeof r != "number" || r < 0 || r > 4294967295 || ma(r) !== r)
|
|
@@ -3931,7 +3933,7 @@ var pa = si, ha = at, mn = fa, ya = pa(), gn = Bt, bn = $t, ma = ha("%Math.floor
|
|
|
3931
3933
|
)), e;
|
|
3932
3934
|
};
|
|
3933
3935
|
(function(t) {
|
|
3934
|
-
var e = _r, r = at, n = ga, i =
|
|
3936
|
+
var e = _r, r = at, n = ga, i = Bt, o = r("%Function.prototype.apply%"), s = r("%Function.prototype.call%"), a = r("%Reflect.apply%", !0) || e.call(s, o), u = kr(), d = r("%Math.max%");
|
|
3935
3937
|
t.exports = function(p) {
|
|
3936
3938
|
if (typeof p != "function")
|
|
3937
3939
|
throw new i("a function is required");
|
|
@@ -3950,22 +3952,22 @@ var pa = si, ha = at, mn = fa, ya = pa(), gn = Bt, bn = $t, ma = ha("%Math.floor
|
|
|
3950
3952
|
var Pr = oi.exports, ai = at, ui = Pr, ba = ui(ai("String.prototype.indexOf")), Cr = function(e, r) {
|
|
3951
3953
|
var n = ai(e, !!r);
|
|
3952
3954
|
return typeof n == "function" && ba(e, ".prototype.") > -1 ? ui(n) : n;
|
|
3953
|
-
}, va =
|
|
3955
|
+
}, va = $t(), Sa = Cr, fr = Sa("Object.prototype.toString"), Ut = function(e) {
|
|
3954
3956
|
return va && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : fr(e) === "[object Arguments]";
|
|
3955
3957
|
}, ci = function(e) {
|
|
3956
|
-
return
|
|
3958
|
+
return Ut(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && fr(e) !== "[object Array]" && fr(e.callee) === "[object Function]";
|
|
3957
3959
|
}, wa = function() {
|
|
3958
|
-
return
|
|
3960
|
+
return Ut(arguments);
|
|
3959
3961
|
}();
|
|
3960
|
-
|
|
3961
|
-
var Aa = wa ?
|
|
3962
|
+
Ut.isLegacyArguments = ci;
|
|
3963
|
+
var Aa = wa ? Ut : ci, Ea = Object.prototype.toString, Ia = Function.prototype.toString, Oa = /^\s*(?:function)?\*/, di = $t(), zt = Object.getPrototypeOf, Ta = function() {
|
|
3962
3964
|
if (!di)
|
|
3963
3965
|
return !1;
|
|
3964
3966
|
try {
|
|
3965
3967
|
return Function("return function*() {}")();
|
|
3966
3968
|
} catch {
|
|
3967
3969
|
}
|
|
3968
|
-
},
|
|
3970
|
+
}, Ht, _a = function(e) {
|
|
3969
3971
|
if (typeof e != "function")
|
|
3970
3972
|
return !1;
|
|
3971
3973
|
if (Oa.test(Ia.call(e)))
|
|
@@ -3974,13 +3976,13 @@ var Aa = wa ? Mt : ci, Ea = Object.prototype.toString, Ia = Function.prototype.t
|
|
|
3974
3976
|
var r = Ea.call(e);
|
|
3975
3977
|
return r === "[object GeneratorFunction]";
|
|
3976
3978
|
}
|
|
3977
|
-
if (!
|
|
3979
|
+
if (!zt)
|
|
3978
3980
|
return !1;
|
|
3979
|
-
if (typeof
|
|
3981
|
+
if (typeof Ht > "u") {
|
|
3980
3982
|
var n = Ta();
|
|
3981
|
-
|
|
3983
|
+
Ht = n ? zt(n) : !1;
|
|
3982
3984
|
}
|
|
3983
|
-
return
|
|
3985
|
+
return zt(e) === Ht;
|
|
3984
3986
|
}, li = Function.prototype.toString, xe = typeof Reflect == "object" && Reflect !== null && Reflect.apply, pr, bt;
|
|
3985
3987
|
if (typeof xe == "function" && typeof Object.defineProperty == "function")
|
|
3986
3988
|
try {
|
|
@@ -4003,7 +4005,7 @@ var ka = /^\s*class\b/, hr = function(e) {
|
|
|
4003
4005
|
} catch {
|
|
4004
4006
|
return !1;
|
|
4005
4007
|
}
|
|
4006
|
-
},
|
|
4008
|
+
}, Wt = function(e) {
|
|
4007
4009
|
try {
|
|
4008
4010
|
return hr(e) ? !1 : (li.call(e), !0);
|
|
4009
4011
|
} catch {
|
|
@@ -4035,18 +4037,18 @@ var Ba = xe ? function(e) {
|
|
|
4035
4037
|
if (r !== bt)
|
|
4036
4038
|
return !1;
|
|
4037
4039
|
}
|
|
4038
|
-
return !hr(e) &&
|
|
4040
|
+
return !hr(e) && Wt(e);
|
|
4039
4041
|
} : function(e) {
|
|
4040
4042
|
if (yr(e))
|
|
4041
4043
|
return !0;
|
|
4042
4044
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
4043
4045
|
return !1;
|
|
4044
4046
|
if (Ra)
|
|
4045
|
-
return
|
|
4047
|
+
return Wt(e);
|
|
4046
4048
|
if (hr(e))
|
|
4047
4049
|
return !1;
|
|
4048
4050
|
var r = vt.call(e);
|
|
4049
|
-
return r !== Ca && r !== La && !/^\[object HTML/.test(r) ? !1 :
|
|
4051
|
+
return r !== Ca && r !== La && !/^\[object HTML/.test(r) ? !1 : Wt(e);
|
|
4050
4052
|
}, Ma = Ba, Ua = Object.prototype.toString, fi = Object.prototype.hasOwnProperty, qa = function(e, r, n) {
|
|
4051
4053
|
for (var i = 0, o = e.length; i < o; i++)
|
|
4052
4054
|
fi.call(e, i) && (n == null ? r(e[i], i, e) : r.call(n, e[i], i, e));
|
|
@@ -4073,33 +4075,33 @@ var Ba = xe ? function(e) {
|
|
|
4073
4075
|
"Uint32Array",
|
|
4074
4076
|
"BigInt64Array",
|
|
4075
4077
|
"BigUint64Array"
|
|
4076
|
-
],
|
|
4077
|
-
for (var e = [], r = 0; r <
|
|
4078
|
-
typeof Ka[
|
|
4078
|
+
], Yt = Ga, Ka = typeof globalThis > "u" ? Er : globalThis, hi = function() {
|
|
4079
|
+
for (var e = [], r = 0; r < Yt.length; r++)
|
|
4080
|
+
typeof Ka[Yt[r]] == "function" && (e[e.length] = Yt[r]);
|
|
4079
4081
|
return e;
|
|
4080
|
-
},
|
|
4082
|
+
}, _t = pi, za = hi, vn = Pr, Lr = Cr, St = Mt, Ha = Lr("Object.prototype.toString"), yi = $t(), Sn = typeof globalThis > "u" ? Er : globalThis, mr = za(), Nr = Lr("String.prototype.slice"), Jt = Object.getPrototypeOf, Wa = Lr("Array.prototype.indexOf", !0) || function(e, r) {
|
|
4081
4083
|
for (var n = 0; n < e.length; n += 1)
|
|
4082
4084
|
if (e[n] === r)
|
|
4083
4085
|
return n;
|
|
4084
4086
|
return -1;
|
|
4085
|
-
},
|
|
4086
|
-
yi && St &&
|
|
4087
|
+
}, kt = { __proto__: null };
|
|
4088
|
+
yi && St && Jt ? _t(mr, function(t) {
|
|
4087
4089
|
var e = new Sn[t]();
|
|
4088
4090
|
if (Symbol.toStringTag in e) {
|
|
4089
|
-
var r =
|
|
4091
|
+
var r = Jt(e), n = St(r, Symbol.toStringTag);
|
|
4090
4092
|
if (!n) {
|
|
4091
|
-
var i =
|
|
4093
|
+
var i = Jt(r);
|
|
4092
4094
|
n = St(i, Symbol.toStringTag);
|
|
4093
4095
|
}
|
|
4094
|
-
|
|
4096
|
+
kt["$" + t] = vn(n.get);
|
|
4095
4097
|
}
|
|
4096
|
-
}) :
|
|
4098
|
+
}) : _t(mr, function(t) {
|
|
4097
4099
|
var e = new Sn[t](), r = e.slice || e.set;
|
|
4098
|
-
r && (
|
|
4100
|
+
r && (kt["$" + t] = vn(r));
|
|
4099
4101
|
});
|
|
4100
4102
|
var Ya = function(e) {
|
|
4101
4103
|
var r = !1;
|
|
4102
|
-
return
|
|
4104
|
+
return _t(kt, function(n, i) {
|
|
4103
4105
|
if (!r)
|
|
4104
4106
|
try {
|
|
4105
4107
|
"$" + n(e) === i && (r = Nr(i, 1));
|
|
@@ -4108,7 +4110,7 @@ var Ya = function(e) {
|
|
|
4108
4110
|
}), r;
|
|
4109
4111
|
}, Ja = function(e) {
|
|
4110
4112
|
var r = !1;
|
|
4111
|
-
return
|
|
4113
|
+
return _t(kt, function(n, i) {
|
|
4112
4114
|
if (!r)
|
|
4113
4115
|
try {
|
|
4114
4116
|
n(e), r = Nr(i, 1);
|
|
@@ -4123,33 +4125,33 @@ var Ya = function(e) {
|
|
|
4123
4125
|
return Wa(mr, r) > -1 ? r : r !== "Object" ? !1 : Ja(e);
|
|
4124
4126
|
}
|
|
4125
4127
|
return St ? Ya(e) : null;
|
|
4126
|
-
},
|
|
4128
|
+
}, Pt = pi, Za = hi, wn = Pr, Dr = Cr, wt = Mt, eu = Dr("Object.prototype.toString"), mi = $t(), An = typeof globalThis > "u" ? Er : globalThis, gr = Za(), Fr = Dr("String.prototype.slice"), Xt = Object.getPrototypeOf, tu = Dr("Array.prototype.indexOf", !0) || function(e, r) {
|
|
4127
4129
|
for (var n = 0; n < e.length; n += 1)
|
|
4128
4130
|
if (e[n] === r)
|
|
4129
4131
|
return n;
|
|
4130
4132
|
return -1;
|
|
4131
|
-
},
|
|
4132
|
-
mi && wt &&
|
|
4133
|
+
}, Ct = { __proto__: null };
|
|
4134
|
+
mi && wt && Xt ? Pt(gr, function(t) {
|
|
4133
4135
|
var e = new An[t]();
|
|
4134
4136
|
if (Symbol.toStringTag in e) {
|
|
4135
|
-
var r =
|
|
4137
|
+
var r = Xt(e), n = wt(r, Symbol.toStringTag);
|
|
4136
4138
|
if (!n) {
|
|
4137
|
-
var i =
|
|
4139
|
+
var i = Xt(r);
|
|
4138
4140
|
n = wt(i, Symbol.toStringTag);
|
|
4139
4141
|
}
|
|
4140
|
-
|
|
4142
|
+
Ct["$" + t] = wn(n.get);
|
|
4141
4143
|
}
|
|
4142
|
-
}) :
|
|
4144
|
+
}) : Pt(gr, function(t) {
|
|
4143
4145
|
var e = new An[t](), r = e.slice || e.set;
|
|
4144
|
-
r && (
|
|
4146
|
+
r && (Ct["$" + t] = wn(r));
|
|
4145
4147
|
});
|
|
4146
4148
|
var ru = function(e) {
|
|
4147
4149
|
var r = !1;
|
|
4148
|
-
return
|
|
4150
|
+
return Pt(
|
|
4149
4151
|
// eslint-disable-next-line no-extra-parens
|
|
4150
4152
|
/** @type {Record<`\$${TypedArrayName}`, Getter>} */
|
|
4151
4153
|
/** @type {any} */
|
|
4152
|
-
|
|
4154
|
+
Ct,
|
|
4153
4155
|
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
4154
4156
|
function(n, i) {
|
|
4155
4157
|
if (!r)
|
|
@@ -4161,11 +4163,11 @@ var ru = function(e) {
|
|
|
4161
4163
|
), r;
|
|
4162
4164
|
}, nu = function(e) {
|
|
4163
4165
|
var r = !1;
|
|
4164
|
-
return
|
|
4166
|
+
return Pt(
|
|
4165
4167
|
// eslint-disable-next-line no-extra-parens
|
|
4166
4168
|
/** @type {Record<`\$${TypedArrayName}`, Getter>} */
|
|
4167
4169
|
/** @type {any} */
|
|
4168
|
-
|
|
4170
|
+
Ct,
|
|
4169
4171
|
/** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
4170
4172
|
function(n, i) {
|
|
4171
4173
|
if (!r)
|
|
@@ -4262,10 +4264,10 @@ var ru = function(e) {
|
|
|
4262
4264
|
return u(y) === "[object Map]";
|
|
4263
4265
|
}
|
|
4264
4266
|
he.working = typeof Map < "u" && he(/* @__PURE__ */ new Map());
|
|
4265
|
-
function
|
|
4267
|
+
function qt(y) {
|
|
4266
4268
|
return typeof Map > "u" ? !1 : he.working ? he(y) : y instanceof Map;
|
|
4267
4269
|
}
|
|
4268
|
-
t.isMap =
|
|
4270
|
+
t.isMap = qt;
|
|
4269
4271
|
function Ie(y) {
|
|
4270
4272
|
return u(y) === "[object Set]";
|
|
4271
4273
|
}
|
|
@@ -4278,10 +4280,10 @@ var ru = function(e) {
|
|
|
4278
4280
|
return u(y) === "[object WeakMap]";
|
|
4279
4281
|
}
|
|
4280
4282
|
Fe.working = typeof WeakMap < "u" && Fe(/* @__PURE__ */ new WeakMap());
|
|
4281
|
-
function
|
|
4283
|
+
function jt(y) {
|
|
4282
4284
|
return typeof WeakMap > "u" ? !1 : Fe.working ? Fe(y) : y instanceof WeakMap;
|
|
4283
4285
|
}
|
|
4284
|
-
t.isWeakMap =
|
|
4286
|
+
t.isWeakMap = jt;
|
|
4285
4287
|
function Re(y) {
|
|
4286
4288
|
return u(y) === "[object WeakSet]";
|
|
4287
4289
|
}
|
|
@@ -4663,11 +4665,11 @@ var uu = br.exports;
|
|
|
4663
4665
|
return typeof l == "function";
|
|
4664
4666
|
}
|
|
4665
4667
|
t.isFunction = he;
|
|
4666
|
-
function
|
|
4668
|
+
function qt(l) {
|
|
4667
4669
|
return l === null || typeof l == "boolean" || typeof l == "number" || typeof l == "string" || typeof l == "symbol" || // ES6 symbol
|
|
4668
4670
|
typeof l > "u";
|
|
4669
4671
|
}
|
|
4670
|
-
t.isPrimitive =
|
|
4672
|
+
t.isPrimitive = qt, t.isBuffer = au;
|
|
4671
4673
|
function Ie(l) {
|
|
4672
4674
|
return Object.prototype.toString.call(l);
|
|
4673
4675
|
}
|
|
@@ -4688,7 +4690,7 @@ var uu = br.exports;
|
|
|
4688
4690
|
"Nov",
|
|
4689
4691
|
"Dec"
|
|
4690
4692
|
];
|
|
4691
|
-
function
|
|
4693
|
+
function jt() {
|
|
4692
4694
|
var l = /* @__PURE__ */ new Date(), h = [
|
|
4693
4695
|
Ze(l.getHours()),
|
|
4694
4696
|
Ze(l.getMinutes()),
|
|
@@ -4697,7 +4699,7 @@ var uu = br.exports;
|
|
|
4697
4699
|
return [l.getDate(), Fe[l.getMonth()], h].join(" ");
|
|
4698
4700
|
}
|
|
4699
4701
|
t.log = function() {
|
|
4700
|
-
console.log("%s - %s",
|
|
4702
|
+
console.log("%s - %s", jt(), t.format.apply(t, arguments));
|
|
4701
4703
|
}, t.inherits = uu, t._extend = function(l, h) {
|
|
4702
4704
|
if (!h || !ue(h)) return l;
|
|
4703
4705
|
for (var b = Object.keys(h), A = b.length; A--; )
|
|
@@ -4781,15 +4783,15 @@ var uu = br.exports;
|
|
|
4781
4783
|
), h;
|
|
4782
4784
|
}
|
|
4783
4785
|
t.callbackify = ut;
|
|
4784
|
-
})(
|
|
4785
|
-
const { inherits: cu, format:
|
|
4786
|
+
})(Vt);
|
|
4787
|
+
const { inherits: cu, format: Zt } = Vt;
|
|
4786
4788
|
function ke(t, e, r = Error) {
|
|
4787
4789
|
if (!t) throw new Error("Avvio error code must not be empty");
|
|
4788
4790
|
if (!e) throw new Error("Avvio base error message must not be empty");
|
|
4789
4791
|
function n(i, o, s) {
|
|
4790
4792
|
if (!new.target)
|
|
4791
4793
|
return new n(i, o, s);
|
|
4792
|
-
Error.captureStackTrace(this, n), this.code = t, this.message = e, this.name = "AvvioError", i && o && s ? this.message =
|
|
4794
|
+
Error.captureStackTrace(this, n), this.code = t, this.message = e, this.name = "AvvioError", i && o && s ? this.message = Zt(e, i, o, s) : i && o ? this.message = Zt(e, i, o) : i ? this.message = Zt(e, i) : this.message = e;
|
|
4793
4795
|
}
|
|
4794
4796
|
return n.prototype[Symbol.toStringTag] = "Error", n.prototype.toString = function() {
|
|
4795
4797
|
return `${this.name} [${this.code}]: ${this.message}`;
|
|
@@ -4843,12 +4845,12 @@ var gi = {
|
|
|
4843
4845
|
return r + i(c ? "└" : "├") + i("─") + i(f ? "┬" : "─") + " " + t(u, p, n).slice(r.length + 2);
|
|
4844
4846
|
}).join("");
|
|
4845
4847
|
};
|
|
4846
|
-
const lu = du, En = Symbol("avvio.TimeTree.untrackNode"),
|
|
4848
|
+
const lu = du, En = Symbol("avvio.TimeTree.untrackNode"), er = Symbol("avvio.TimeTree.trackNode"), In = Symbol("avvio.TimeTree.getParent"), On = Symbol("avvio.TimeTree.getNode"), Tn = Symbol("avvio.TimeTree.addNode");
|
|
4847
4849
|
let fu = class {
|
|
4848
4850
|
constructor() {
|
|
4849
4851
|
this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
|
|
4850
4852
|
}
|
|
4851
|
-
[
|
|
4853
|
+
[er](e) {
|
|
4852
4854
|
this.tableId.set(e.id, e), this.tableLabel.has(e.label) ? this.tableLabel.get(e.label).push(e) : this.tableLabel.set(e.label, [e]);
|
|
4853
4855
|
}
|
|
4854
4856
|
[En](e) {
|
|
@@ -4876,7 +4878,7 @@ let fu = class {
|
|
|
4876
4878
|
label: r,
|
|
4877
4879
|
start: n,
|
|
4878
4880
|
nodes: []
|
|
4879
|
-
}, this[
|
|
4881
|
+
}, this[er](this.root), this.root.id;
|
|
4880
4882
|
const o = this[In](e), s = `${r}-${Math.random()}`, a = {
|
|
4881
4883
|
id: s,
|
|
4882
4884
|
parent: e,
|
|
@@ -4884,7 +4886,7 @@ let fu = class {
|
|
|
4884
4886
|
label: r,
|
|
4885
4887
|
nodes: []
|
|
4886
4888
|
};
|
|
4887
|
-
return o.nodes.push(a), this[
|
|
4889
|
+
return o.nodes.push(a), this[er](a), s;
|
|
4888
4890
|
}
|
|
4889
4891
|
start(e, r, n = Date.now()) {
|
|
4890
4892
|
return this[Tn](e, r, n);
|
|
@@ -4901,12 +4903,12 @@ let fu = class {
|
|
|
4901
4903
|
return lu(r);
|
|
4902
4904
|
}
|
|
4903
4905
|
};
|
|
4904
|
-
var pu = fu, Rr = { exports: {} }, vr = { exports: {} },
|
|
4906
|
+
var pu = fu, Rr = { exports: {} }, vr = { exports: {} }, tr, _n;
|
|
4905
4907
|
function hu() {
|
|
4906
|
-
if (_n) return
|
|
4908
|
+
if (_n) return tr;
|
|
4907
4909
|
_n = 1;
|
|
4908
4910
|
var t = 1e3, e = t * 60, r = e * 60, n = r * 24, i = n * 7, o = n * 365.25;
|
|
4909
|
-
|
|
4911
|
+
tr = function(c, f) {
|
|
4910
4912
|
f = f || {};
|
|
4911
4913
|
var p = typeof c;
|
|
4912
4914
|
if (p === "string" && c.length > 0)
|
|
@@ -4981,7 +4983,7 @@ function hu() {
|
|
|
4981
4983
|
var w = f >= p * 1.5;
|
|
4982
4984
|
return Math.round(c / p) + " " + v + (w ? "s" : "");
|
|
4983
4985
|
}
|
|
4984
|
-
return
|
|
4986
|
+
return tr;
|
|
4985
4987
|
}
|
|
4986
4988
|
function yu(t) {
|
|
4987
4989
|
r.debug = r, r.default = r, r.coerce = u, r.disable = o, r.enable = i, r.enabled = s, r.humanize = hu(), r.destroy = d, Object.keys(t).forEach((c) => {
|
|
@@ -5199,9 +5201,9 @@ var mu = yu;
|
|
|
5199
5201
|
};
|
|
5200
5202
|
})(vr, vr.exports);
|
|
5201
5203
|
var bi = vr.exports;
|
|
5202
|
-
const gu = Gn, bu = ei.EventEmitter, vu =
|
|
5204
|
+
const gu = Gn, bu = ei.EventEmitter, vu = Vt.inherits, x = bi("avvio"), { AVV_ERR_READY_TIMEOUT: Su } = gi, rr = Symbol.for("plugin-meta");
|
|
5203
5205
|
function wu(t, e) {
|
|
5204
|
-
return t[
|
|
5206
|
+
return t[rr] && t[rr].name ? t[rr].name : typeof e < "u" && typeof e != "function" && e.name ? e.name : t.name ? t.name : t.toString().split(`
|
|
5205
5207
|
`).slice(0, 2).map((r) => r.trim()).join(" -- ");
|
|
5206
5208
|
}
|
|
5207
5209
|
function Au() {
|
|
@@ -5312,29 +5314,29 @@ function Iu() {
|
|
|
5312
5314
|
Rr.exports = Xe;
|
|
5313
5315
|
Rr.exports.loadPlugin = Vr;
|
|
5314
5316
|
var Ou = Rr.exports;
|
|
5315
|
-
const kn = Gn, Tu = ei.EventEmitter, _u =
|
|
5316
|
-
AVV_ERR_EXPOSE_ALREADY_DEFINED:
|
|
5317
|
+
const kn = Gn, Tu = ei.EventEmitter, _u = Vt.inherits, {
|
|
5318
|
+
AVV_ERR_EXPOSE_ALREADY_DEFINED: nr,
|
|
5317
5319
|
AVV_ERR_CALLBACK_NOT_FN: nt,
|
|
5318
5320
|
AVV_ERR_PLUGIN_NOT_VALID: ku,
|
|
5319
5321
|
AVV_ERR_ROOT_PLG_BOOTED: Pu,
|
|
5320
5322
|
AVV_ERR_READY_TIMEOUT: Cu
|
|
5321
|
-
} = gi, Lu = pu, Sr = Ou, Ye = bi("avvio"),
|
|
5323
|
+
} = gi, Lu = pu, Sr = Ou, Ye = bi("avvio"), Lt = Symbol("kAvvio"), ir = Symbol("kThenifyDoNotWrap");
|
|
5322
5324
|
function Nu(t, e, r) {
|
|
5323
5325
|
const n = e.expose || {}, i = n.use || "use", o = n.after || "after", s = n.ready || "ready", a = n.onClose || "onClose", u = n.close || "close";
|
|
5324
5326
|
if (t[i])
|
|
5325
|
-
throw new
|
|
5327
|
+
throw new nr(i);
|
|
5326
5328
|
if (t[o])
|
|
5327
|
-
throw new
|
|
5329
|
+
throw new nr(o);
|
|
5328
5330
|
if (t[s])
|
|
5329
|
-
throw new
|
|
5331
|
+
throw new nr(s);
|
|
5330
5332
|
t[i] = function(d, c) {
|
|
5331
5333
|
return r.use(d, c), this;
|
|
5332
|
-
}, Object.defineProperty(t, "then", { get: vi.bind(r) }), t[
|
|
5333
|
-
return typeof d != "function" ? r._loadRegistered() : (r.after(
|
|
5334
|
+
}, Object.defineProperty(t, "then", { get: vi.bind(r) }), t[Lt] = !0, t[o] = function(d) {
|
|
5335
|
+
return typeof d != "function" ? r._loadRegistered() : (r.after(or(d, this)), this);
|
|
5334
5336
|
}, t[s] = function(d) {
|
|
5335
5337
|
if (d && typeof d != "function")
|
|
5336
5338
|
throw new nt(s, typeof d);
|
|
5337
|
-
return r.ready(d ?
|
|
5339
|
+
return r.ready(d ? or(d, this) : void 0);
|
|
5338
5340
|
}, t[a] = function(d) {
|
|
5339
5341
|
if (typeof d != "function")
|
|
5340
5342
|
throw new nt(a, typeof d);
|
|
@@ -5342,7 +5344,7 @@ function Nu(t, e, r) {
|
|
|
5342
5344
|
}, t[u] = function(d) {
|
|
5343
5345
|
if (d && typeof d != "function")
|
|
5344
5346
|
throw new nt(u, typeof d);
|
|
5345
|
-
return d ? (r.close(
|
|
5347
|
+
return d ? (r.close(or(d, this)), this) : r.close();
|
|
5346
5348
|
};
|
|
5347
5349
|
}
|
|
5348
5350
|
function z(t, e, r) {
|
|
@@ -5389,7 +5391,7 @@ function Fu(t) {
|
|
|
5389
5391
|
throw new ku(typeof t);
|
|
5390
5392
|
return t;
|
|
5391
5393
|
}
|
|
5392
|
-
z.prototype[
|
|
5394
|
+
z.prototype[Lt] = !0;
|
|
5393
5395
|
z.prototype.use = function(t, e) {
|
|
5394
5396
|
return this._lastUsed = this._addPlugin(t, e, !1), this;
|
|
5395
5397
|
};
|
|
@@ -5476,19 +5478,19 @@ function vi() {
|
|
|
5476
5478
|
Ye("thenify returning null because we are already booted");
|
|
5477
5479
|
return;
|
|
5478
5480
|
}
|
|
5479
|
-
if (this[
|
|
5480
|
-
this[
|
|
5481
|
+
if (this[ir]) {
|
|
5482
|
+
this[ir] = !1;
|
|
5481
5483
|
return;
|
|
5482
5484
|
}
|
|
5483
|
-
return Ye("thenify"), (t, e) => this._loadRegistered().then(() => (this[
|
|
5485
|
+
return Ye("thenify"), (t, e) => this._loadRegistered().then(() => (this[ir] = !0, t(this._server)), e);
|
|
5484
5486
|
}
|
|
5485
5487
|
function Si(t, e) {
|
|
5486
5488
|
const r = this._server, n = this._error;
|
|
5487
5489
|
let i;
|
|
5488
5490
|
if (this._error = null, t.length === 0)
|
|
5489
|
-
this._error = n, i = t(), i && !i[
|
|
5491
|
+
this._error = n, i = t(), i && !i[Lt] && typeof i.then == "function" ? i.then(() => E.nextTick(e), (o) => E.nextTick(e, o)) : E.nextTick(e);
|
|
5490
5492
|
else if (t.length === 1)
|
|
5491
|
-
i = t(n), i && !i[
|
|
5493
|
+
i = t(n), i && !i[Lt] && typeof i.then == "function" ? i.then(() => E.nextTick(e), (o) => E.nextTick(e, o)) : E.nextTick(e);
|
|
5492
5494
|
else if (this._timeout === 0) {
|
|
5493
5495
|
const o = (s) => {
|
|
5494
5496
|
this._error = s, e(this._error);
|
|
@@ -5531,7 +5533,7 @@ function $u(t, e) {
|
|
|
5531
5533
|
}, i) : E.nextTick(i)) : t(this, i);
|
|
5532
5534
|
}
|
|
5533
5535
|
}
|
|
5534
|
-
function
|
|
5536
|
+
function or(t, e) {
|
|
5535
5537
|
return r.bind(e);
|
|
5536
5538
|
function r(n, i) {
|
|
5537
5539
|
let o;
|