@streamlayer/sdk-web 0.28.19 → 0.28.21
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 +10 -10
- package/lib/es/index.js +743 -727
- package/package.json +3 -3
package/lib/es/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { QuestionType as Re, SilenceSetting as Kr, QuestionStatus as
|
|
1
|
+
import { QuestionType as Re, SilenceSetting as Kr, QuestionStatus as dt } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
|
|
2
2
|
import "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
|
|
3
3
|
import { SdkOverlayType as ue } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
|
|
4
|
-
import { computed as Hr, map as qn, atom as
|
|
4
|
+
import { computed as Hr, map as qn, atom as Ct } from "nanostores";
|
|
5
5
|
import "@nanostores/logger";
|
|
6
6
|
import "microdiff";
|
|
7
7
|
import { Code as Qn, createPromiseClient as Gn, createCallbackClient as zn } from "@connectrpc/connect";
|
|
8
8
|
import { createGrpcWebTransport as Kn } from "@connectrpc/connect-web";
|
|
9
9
|
import { nanoquery as Hn } from "@nanostores/query";
|
|
10
10
|
import { Events as Wn } from "@streamlayer/sl-eslib/sports/events/events_connect";
|
|
11
|
-
import { Client as
|
|
11
|
+
import { Client as ft } from "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
|
|
12
12
|
import { Users as Wr } from "@streamlayer/sl-eslib/users/users_connect";
|
|
13
13
|
import { pino as Jn } from "pino";
|
|
14
14
|
import { Feed as ve } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
|
|
@@ -18,10 +18,10 @@ var Yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
18
18
|
function Yn(t) {
|
|
19
19
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
20
20
|
}
|
|
21
|
-
var O = {}, Xr = {},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
var O = {}, Xr = {}, Ot = {};
|
|
22
|
+
Ot.byteLength = ei;
|
|
23
|
+
Ot.toByteArray = ri;
|
|
24
|
+
Ot.fromByteArray = oi;
|
|
25
25
|
var we = [], se = [], Xn = typeof Uint8Array < "u" ? Uint8Array : Array, Nt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
26
26
|
for (var qe = 0, Zn = Nt.length; qe < Zn; ++qe)
|
|
27
27
|
we[qe] = Nt[qe], se[Nt.charCodeAt(qe)] = qe;
|
|
@@ -69,27 +69,27 @@ function oi(t) {
|
|
|
69
69
|
var fr = {};
|
|
70
70
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
71
71
|
fr.read = function(t, e, r, o, s) {
|
|
72
|
-
var u, l, f = s * 8 - o - 1, p = (1 << f) - 1,
|
|
73
|
-
for (
|
|
72
|
+
var u, l, f = s * 8 - o - 1, p = (1 << f) - 1, w = p >> 1, g = -7, m = r ? s - 1 : 0, E = r ? -1 : 1, F = t[e + m];
|
|
73
|
+
for (m += E, u = F & (1 << -g) - 1, F >>= -g, g += f; g > 0; u = u * 256 + t[e + m], m += E, g -= 8)
|
|
74
74
|
;
|
|
75
|
-
for (l = u & (1 << -g) - 1, u >>= -g, g += o; g > 0; l = l * 256 + t[e +
|
|
75
|
+
for (l = u & (1 << -g) - 1, u >>= -g, g += o; g > 0; l = l * 256 + t[e + m], m += E, g -= 8)
|
|
76
76
|
;
|
|
77
77
|
if (u === 0)
|
|
78
|
-
u = 1 -
|
|
78
|
+
u = 1 - w;
|
|
79
79
|
else {
|
|
80
80
|
if (u === p)
|
|
81
81
|
return l ? NaN : (F ? -1 : 1) * (1 / 0);
|
|
82
|
-
l = l + Math.pow(2, o), u = u -
|
|
82
|
+
l = l + Math.pow(2, o), u = u - w;
|
|
83
83
|
}
|
|
84
84
|
return (F ? -1 : 1) * l * Math.pow(2, u - o);
|
|
85
85
|
};
|
|
86
86
|
fr.write = function(t, e, r, o, s, u) {
|
|
87
|
-
var l, f, p,
|
|
88
|
-
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, l = g) : (l = Math.floor(Math.log(e) / Math.LN2), e * (p = Math.pow(2, -l)) < 1 && (l--, p *= 2), l +
|
|
87
|
+
var l, f, p, w = u * 8 - s - 1, g = (1 << w) - 1, m = g >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, F = o ? 0 : u - 1, L = o ? 1 : -1, P = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
88
|
+
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, l = g) : (l = Math.floor(Math.log(e) / Math.LN2), e * (p = Math.pow(2, -l)) < 1 && (l--, p *= 2), l + m >= 1 ? e += E / p : e += E * Math.pow(2, 1 - m), e * p >= 2 && (l++, p /= 2), l + m >= g ? (f = 0, l = g) : l + m >= 1 ? (f = (e * p - 1) * Math.pow(2, s), l = l + m) : (f = e * Math.pow(2, m - 1) * Math.pow(2, s), l = 0)); s >= 8; t[r + F] = f & 255, F += L, f /= 256, s -= 8)
|
|
89
89
|
;
|
|
90
|
-
for (l = l << s | f,
|
|
90
|
+
for (l = l << s | f, w += s; w > 0; t[r + F] = l & 255, F += L, l /= 256, w -= 8)
|
|
91
91
|
;
|
|
92
|
-
t[r + F -
|
|
92
|
+
t[r + F - L] |= P * 128;
|
|
93
93
|
};
|
|
94
94
|
/*!
|
|
95
95
|
* The buffer module from node.js, for the browser.
|
|
@@ -98,7 +98,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
98
98
|
* @license MIT
|
|
99
99
|
*/
|
|
100
100
|
(function(t) {
|
|
101
|
-
const e =
|
|
101
|
+
const e = Ot, r = fr, o = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
102
102
|
t.Buffer = f, t.SlowBuffer = _, t.INSPECT_MAX_BYTES = 50;
|
|
103
103
|
const s = 2147483647;
|
|
104
104
|
t.kMaxLength = s, f.TYPED_ARRAY_SUPPORT = u(), !f.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
@@ -139,7 +139,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
139
139
|
throw new TypeError(
|
|
140
140
|
'The "string" argument must be of type string. Received type number'
|
|
141
141
|
);
|
|
142
|
-
return
|
|
142
|
+
return m(a);
|
|
143
143
|
}
|
|
144
144
|
return p(a, n, i);
|
|
145
145
|
}
|
|
@@ -148,7 +148,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
148
148
|
if (typeof a == "string")
|
|
149
149
|
return E(a, n);
|
|
150
150
|
if (ArrayBuffer.isView(a))
|
|
151
|
-
return
|
|
151
|
+
return L(a);
|
|
152
152
|
if (a == null)
|
|
153
153
|
throw new TypeError(
|
|
154
154
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof a
|
|
@@ -174,30 +174,30 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
174
174
|
f.from = function(a, n, i) {
|
|
175
175
|
return p(a, n, i);
|
|
176
176
|
}, Object.setPrototypeOf(f.prototype, Uint8Array.prototype), Object.setPrototypeOf(f, Uint8Array);
|
|
177
|
-
function
|
|
177
|
+
function w(a) {
|
|
178
178
|
if (typeof a != "number")
|
|
179
179
|
throw new TypeError('"size" argument must be of type number');
|
|
180
180
|
if (a < 0)
|
|
181
181
|
throw new RangeError('The value "' + a + '" is invalid for option "size"');
|
|
182
182
|
}
|
|
183
183
|
function g(a, n, i) {
|
|
184
|
-
return
|
|
184
|
+
return w(a), a <= 0 ? l(a) : n !== void 0 ? typeof i == "string" ? l(a).fill(n, i) : l(a).fill(n) : l(a);
|
|
185
185
|
}
|
|
186
186
|
f.alloc = function(a, n, i) {
|
|
187
187
|
return g(a, n, i);
|
|
188
188
|
};
|
|
189
|
-
function
|
|
190
|
-
return
|
|
189
|
+
function m(a) {
|
|
190
|
+
return w(a), l(a < 0 ? 0 : I(a) | 0);
|
|
191
191
|
}
|
|
192
192
|
f.allocUnsafe = function(a) {
|
|
193
|
-
return
|
|
193
|
+
return m(a);
|
|
194
194
|
}, f.allocUnsafeSlow = function(a) {
|
|
195
|
-
return
|
|
195
|
+
return m(a);
|
|
196
196
|
};
|
|
197
197
|
function E(a, n) {
|
|
198
198
|
if ((typeof n != "string" || n === "") && (n = "utf8"), !f.isEncoding(n))
|
|
199
199
|
throw new TypeError("Unknown encoding: " + n);
|
|
200
|
-
const i =
|
|
200
|
+
const i = D(a, n) | 0;
|
|
201
201
|
let c = l(i);
|
|
202
202
|
const h = c.write(a, n);
|
|
203
203
|
return h !== i && (c = c.slice(0, h)), c;
|
|
@@ -208,7 +208,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
208
208
|
i[c] = a[c] & 255;
|
|
209
209
|
return i;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function L(a) {
|
|
212
212
|
if (ge(a, Uint8Array)) {
|
|
213
213
|
const n = new Uint8Array(a);
|
|
214
214
|
return P(n.buffer, n.byteOffset, n.byteLength);
|
|
@@ -229,7 +229,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
229
229
|
return i.length === 0 || a.copy(i, 0, 0, n), i;
|
|
230
230
|
}
|
|
231
231
|
if (a.length !== void 0)
|
|
232
|
-
return typeof a.length != "number" ||
|
|
232
|
+
return typeof a.length != "number" || Lt(a.length) ? l(0) : F(a);
|
|
233
233
|
if (a.type === "Buffer" && Array.isArray(a.data))
|
|
234
234
|
return F(a.data);
|
|
235
235
|
}
|
|
@@ -251,7 +251,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
251
251
|
if (n === i)
|
|
252
252
|
return 0;
|
|
253
253
|
let c = n.length, h = i.length;
|
|
254
|
-
for (let y = 0,
|
|
254
|
+
for (let y = 0, b = Math.min(c, h); y < b; ++y)
|
|
255
255
|
if (n[y] !== i[y]) {
|
|
256
256
|
c = n[y], h = i[y];
|
|
257
257
|
break;
|
|
@@ -286,22 +286,22 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
286
286
|
const h = f.allocUnsafe(i);
|
|
287
287
|
let y = 0;
|
|
288
288
|
for (c = 0; c < n.length; ++c) {
|
|
289
|
-
let
|
|
290
|
-
if (ge(
|
|
291
|
-
y +
|
|
289
|
+
let b = n[c];
|
|
290
|
+
if (ge(b, Uint8Array))
|
|
291
|
+
y + b.length > h.length ? (f.isBuffer(b) || (b = f.from(b)), b.copy(h, y)) : Uint8Array.prototype.set.call(
|
|
292
292
|
h,
|
|
293
|
-
|
|
293
|
+
b,
|
|
294
294
|
y
|
|
295
295
|
);
|
|
296
|
-
else if (f.isBuffer(
|
|
297
|
-
|
|
296
|
+
else if (f.isBuffer(b))
|
|
297
|
+
b.copy(h, y);
|
|
298
298
|
else
|
|
299
299
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
300
|
-
y +=
|
|
300
|
+
y += b.length;
|
|
301
301
|
}
|
|
302
302
|
return h;
|
|
303
303
|
};
|
|
304
|
-
function
|
|
304
|
+
function D(a, n) {
|
|
305
305
|
if (f.isBuffer(a))
|
|
306
306
|
return a.length;
|
|
307
307
|
if (ArrayBuffer.isView(a) || ge(a, ArrayBuffer))
|
|
@@ -331,14 +331,14 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
331
331
|
case "hex":
|
|
332
332
|
return i >>> 1;
|
|
333
333
|
case "base64":
|
|
334
|
-
return
|
|
334
|
+
return pt(a).length;
|
|
335
335
|
default:
|
|
336
336
|
if (h)
|
|
337
337
|
return c ? -1 : it(a).length;
|
|
338
338
|
n = ("" + n).toLowerCase(), h = !0;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
f.byteLength =
|
|
341
|
+
f.byteLength = D;
|
|
342
342
|
function U(a, n, i) {
|
|
343
343
|
let c = !1;
|
|
344
344
|
if ((n === void 0 || n < 0) && (n = 0), n > this.length || ((i === void 0 || i > this.length) && (i = this.length), i <= 0) || (i >>>= 0, n >>>= 0, i <= n))
|
|
@@ -420,19 +420,19 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
420
420
|
return 1;
|
|
421
421
|
if (i >>>= 0, c >>>= 0, h >>>= 0, y >>>= 0, this === n)
|
|
422
422
|
return 0;
|
|
423
|
-
let
|
|
424
|
-
const W = Math.min(
|
|
423
|
+
let b = y - h, R = c - i;
|
|
424
|
+
const W = Math.min(b, R), z = this.slice(h, y), J = n.slice(i, c);
|
|
425
425
|
for (let Q = 0; Q < W; ++Q)
|
|
426
426
|
if (z[Q] !== J[Q]) {
|
|
427
|
-
|
|
427
|
+
b = z[Q], R = J[Q];
|
|
428
428
|
break;
|
|
429
429
|
}
|
|
430
|
-
return
|
|
430
|
+
return b < R ? -1 : R < b ? 1 : 0;
|
|
431
431
|
};
|
|
432
432
|
function x(a, n, i, c, h) {
|
|
433
433
|
if (a.length === 0)
|
|
434
434
|
return -1;
|
|
435
|
-
if (typeof i == "string" ? (c = i, i = 0) : i > 2147483647 ? i = 2147483647 : i < -2147483648 && (i = -2147483648), i = +i,
|
|
435
|
+
if (typeof i == "string" ? (c = i, i = 0) : i > 2147483647 ? i = 2147483647 : i < -2147483648 && (i = -2147483648), i = +i, Lt(i) && (i = h ? 0 : a.length - 1), i < 0 && (i = a.length + i), i >= a.length) {
|
|
436
436
|
if (h)
|
|
437
437
|
return -1;
|
|
438
438
|
i = a.length - 1;
|
|
@@ -448,11 +448,11 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
448
448
|
throw new TypeError("val must be string, number or Buffer");
|
|
449
449
|
}
|
|
450
450
|
function k(a, n, i, c, h) {
|
|
451
|
-
let y = 1,
|
|
451
|
+
let y = 1, b = a.length, R = n.length;
|
|
452
452
|
if (c !== void 0 && (c = String(c).toLowerCase(), c === "ucs2" || c === "ucs-2" || c === "utf16le" || c === "utf-16le")) {
|
|
453
453
|
if (a.length < 2 || n.length < 2)
|
|
454
454
|
return -1;
|
|
455
|
-
y = 2,
|
|
455
|
+
y = 2, b /= 2, R /= 2, i /= 2;
|
|
456
456
|
}
|
|
457
457
|
function W(J, Q) {
|
|
458
458
|
return y === 1 ? J[Q] : J.readUInt16BE(Q * y);
|
|
@@ -460,14 +460,14 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
460
460
|
let z;
|
|
461
461
|
if (h) {
|
|
462
462
|
let J = -1;
|
|
463
|
-
for (z = i; z <
|
|
463
|
+
for (z = i; z < b; z++)
|
|
464
464
|
if (W(a, z) === W(n, J === -1 ? 0 : z - J)) {
|
|
465
465
|
if (J === -1 && (J = z), z - J + 1 === R)
|
|
466
466
|
return J * y;
|
|
467
467
|
} else
|
|
468
468
|
J !== -1 && (z -= z - J), J = -1;
|
|
469
469
|
} else
|
|
470
|
-
for (i + R >
|
|
470
|
+
for (i + R > b && (i = b - R), z = i; z >= 0; z--) {
|
|
471
471
|
let J = !0;
|
|
472
472
|
for (let Q = 0; Q < R; Q++)
|
|
473
473
|
if (W(a, z + Q) !== W(n, Q)) {
|
|
@@ -492,23 +492,23 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
492
492
|
c ? (c = Number(c), c > h && (c = h)) : c = h;
|
|
493
493
|
const y = n.length;
|
|
494
494
|
c > y / 2 && (c = y / 2);
|
|
495
|
-
let
|
|
496
|
-
for (
|
|
497
|
-
const R = parseInt(n.substr(
|
|
498
|
-
if (
|
|
499
|
-
return
|
|
500
|
-
a[i +
|
|
495
|
+
let b;
|
|
496
|
+
for (b = 0; b < c; ++b) {
|
|
497
|
+
const R = parseInt(n.substr(b * 2, 2), 16);
|
|
498
|
+
if (Lt(R))
|
|
499
|
+
return b;
|
|
500
|
+
a[i + b] = R;
|
|
501
501
|
}
|
|
502
|
-
return
|
|
502
|
+
return b;
|
|
503
503
|
}
|
|
504
504
|
function ie(a, n, i, c) {
|
|
505
505
|
return ot(it(n, a.length - i), a, i, c);
|
|
506
506
|
}
|
|
507
507
|
function Ce(a, n, i, c) {
|
|
508
|
-
return ot(
|
|
508
|
+
return ot(Rt(n), a, i, c);
|
|
509
509
|
}
|
|
510
510
|
function Se(a, n, i, c) {
|
|
511
|
-
return ot(
|
|
511
|
+
return ot(pt(n), a, i, c);
|
|
512
512
|
}
|
|
513
513
|
function ce(a, n, i, c) {
|
|
514
514
|
return ot(S(n, a.length - i), a, i, c);
|
|
@@ -528,7 +528,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
528
528
|
if ((c === void 0 || c > y) && (c = y), n.length > 0 && (c < 0 || i < 0) || i > this.length)
|
|
529
529
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
530
530
|
h || (h = "utf8");
|
|
531
|
-
let
|
|
531
|
+
let b = !1;
|
|
532
532
|
for (; ; )
|
|
533
533
|
switch (h) {
|
|
534
534
|
case "hex":
|
|
@@ -548,9 +548,9 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
548
548
|
case "utf-16le":
|
|
549
549
|
return ce(this, n, i, c);
|
|
550
550
|
default:
|
|
551
|
-
if (
|
|
551
|
+
if (b)
|
|
552
552
|
throw new TypeError("Unknown encoding: " + h);
|
|
553
|
-
h = ("" + h).toLowerCase(),
|
|
553
|
+
h = ("" + h).toLowerCase(), b = !0;
|
|
554
554
|
}
|
|
555
555
|
}, f.prototype.toJSON = function() {
|
|
556
556
|
return {
|
|
@@ -567,24 +567,24 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
567
567
|
let h = n;
|
|
568
568
|
for (; h < i; ) {
|
|
569
569
|
const y = a[h];
|
|
570
|
-
let
|
|
570
|
+
let b = null, R = y > 239 ? 4 : y > 223 ? 3 : y > 191 ? 2 : 1;
|
|
571
571
|
if (h + R <= i) {
|
|
572
572
|
let W, z, J, Q;
|
|
573
573
|
switch (R) {
|
|
574
574
|
case 1:
|
|
575
|
-
y < 128 && (
|
|
575
|
+
y < 128 && (b = y);
|
|
576
576
|
break;
|
|
577
577
|
case 2:
|
|
578
|
-
W = a[h + 1], (W & 192) === 128 && (Q = (y & 31) << 6 | W & 63, Q > 127 && (
|
|
578
|
+
W = a[h + 1], (W & 192) === 128 && (Q = (y & 31) << 6 | W & 63, Q > 127 && (b = Q));
|
|
579
579
|
break;
|
|
580
580
|
case 3:
|
|
581
|
-
W = a[h + 1], z = a[h + 2], (W & 192) === 128 && (z & 192) === 128 && (Q = (y & 15) << 12 | (W & 63) << 6 | z & 63, Q > 2047 && (Q < 55296 || Q > 57343) && (
|
|
581
|
+
W = a[h + 1], z = a[h + 2], (W & 192) === 128 && (z & 192) === 128 && (Q = (y & 15) << 12 | (W & 63) << 6 | z & 63, Q > 2047 && (Q < 55296 || Q > 57343) && (b = Q));
|
|
582
582
|
break;
|
|
583
583
|
case 4:
|
|
584
|
-
W = a[h + 1], z = a[h + 2], J = a[h + 3], (W & 192) === 128 && (z & 192) === 128 && (J & 192) === 128 && (Q = (y & 15) << 18 | (W & 63) << 12 | (z & 63) << 6 | J & 63, Q > 65535 && Q < 1114112 && (
|
|
584
|
+
W = a[h + 1], z = a[h + 2], J = a[h + 3], (W & 192) === 128 && (z & 192) === 128 && (J & 192) === 128 && (Q = (y & 15) << 18 | (W & 63) << 12 | (z & 63) << 6 | J & 63, Q > 65535 && Q < 1114112 && (b = Q));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
|
|
587
|
+
b === null ? (b = 65533, R = 1) : b > 65535 && (b -= 65536, c.push(b >>> 10 & 1023 | 55296), b = 56320 | b & 1023), c.push(b), h += R;
|
|
588
588
|
}
|
|
589
589
|
return xe(c);
|
|
590
590
|
}
|
|
@@ -644,9 +644,9 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
644
644
|
}
|
|
645
645
|
f.prototype.readUintLE = f.prototype.readUIntLE = function(n, i, c) {
|
|
646
646
|
n = n >>> 0, i = i >>> 0, c || H(n, i, this.length);
|
|
647
|
-
let h = this[n], y = 1,
|
|
648
|
-
for (; ++
|
|
649
|
-
h += this[n +
|
|
647
|
+
let h = this[n], y = 1, b = 0;
|
|
648
|
+
for (; ++b < i && (y *= 256); )
|
|
649
|
+
h += this[n + b] * y;
|
|
650
650
|
return h;
|
|
651
651
|
}, f.prototype.readUintBE = f.prototype.readUIntBE = function(n, i, c) {
|
|
652
652
|
n = n >>> 0, i = i >>> 0, c || H(n, i, this.length);
|
|
@@ -678,16 +678,16 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
678
678
|
return (BigInt(h) << BigInt(32)) + BigInt(y);
|
|
679
679
|
}), f.prototype.readIntLE = function(n, i, c) {
|
|
680
680
|
n = n >>> 0, i = i >>> 0, c || H(n, i, this.length);
|
|
681
|
-
let h = this[n], y = 1,
|
|
682
|
-
for (; ++
|
|
683
|
-
h += this[n +
|
|
681
|
+
let h = this[n], y = 1, b = 0;
|
|
682
|
+
for (; ++b < i && (y *= 256); )
|
|
683
|
+
h += this[n + b] * y;
|
|
684
684
|
return y *= 128, h >= y && (h -= Math.pow(2, 8 * i)), h;
|
|
685
685
|
}, f.prototype.readIntBE = function(n, i, c) {
|
|
686
686
|
n = n >>> 0, i = i >>> 0, c || H(n, i, this.length);
|
|
687
|
-
let h = i, y = 1,
|
|
687
|
+
let h = i, y = 1, b = this[n + --h];
|
|
688
688
|
for (; h > 0 && (y *= 256); )
|
|
689
|
-
|
|
690
|
-
return y *= 128,
|
|
689
|
+
b += this[n + --h] * y;
|
|
690
|
+
return y *= 128, b >= y && (b -= Math.pow(2, 8 * i)), b;
|
|
691
691
|
}, f.prototype.readInt8 = function(n, i) {
|
|
692
692
|
return n = n >>> 0, i || H(n, 1, this.length), this[n] & 128 ? (255 - this[n] + 1) * -1 : this[n];
|
|
693
693
|
}, f.prototype.readInt16LE = function(n, i) {
|
|
@@ -737,18 +737,18 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
737
737
|
const R = Math.pow(2, 8 * c) - 1;
|
|
738
738
|
d(this, n, i, c, R, 0);
|
|
739
739
|
}
|
|
740
|
-
let y = 1,
|
|
741
|
-
for (this[i] = n & 255; ++
|
|
742
|
-
this[i +
|
|
740
|
+
let y = 1, b = 0;
|
|
741
|
+
for (this[i] = n & 255; ++b < c && (y *= 256); )
|
|
742
|
+
this[i + b] = n / y & 255;
|
|
743
743
|
return i + c;
|
|
744
744
|
}, f.prototype.writeUintBE = f.prototype.writeUIntBE = function(n, i, c, h) {
|
|
745
745
|
if (n = +n, i = i >>> 0, c = c >>> 0, !h) {
|
|
746
746
|
const R = Math.pow(2, 8 * c) - 1;
|
|
747
747
|
d(this, n, i, c, R, 0);
|
|
748
748
|
}
|
|
749
|
-
let y = c - 1,
|
|
750
|
-
for (this[i + y] = n & 255; --y >= 0 && (
|
|
751
|
-
this[i + y] = n /
|
|
749
|
+
let y = c - 1, b = 1;
|
|
750
|
+
for (this[i + y] = n & 255; --y >= 0 && (b *= 256); )
|
|
751
|
+
this[i + y] = n / b & 255;
|
|
752
752
|
return i + c;
|
|
753
753
|
}, f.prototype.writeUint8 = f.prototype.writeUInt8 = function(n, i, c) {
|
|
754
754
|
return n = +n, i = i >>> 0, c || d(this, n, i, 1, 255, 0), this[i] = n & 255, i + 1;
|
|
@@ -761,22 +761,22 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
761
761
|
}, f.prototype.writeUint32BE = f.prototype.writeUInt32BE = function(n, i, c) {
|
|
762
762
|
return n = +n, i = i >>> 0, c || d(this, n, i, 4, 4294967295, 0), this[i] = n >>> 24, this[i + 1] = n >>> 16, this[i + 2] = n >>> 8, this[i + 3] = n & 255, i + 4;
|
|
763
763
|
};
|
|
764
|
-
function
|
|
764
|
+
function v(a, n, i, c, h) {
|
|
765
765
|
ye(n, c, h, a, i, 7);
|
|
766
766
|
let y = Number(n & BigInt(4294967295));
|
|
767
767
|
a[i++] = y, y = y >> 8, a[i++] = y, y = y >> 8, a[i++] = y, y = y >> 8, a[i++] = y;
|
|
768
|
-
let
|
|
769
|
-
return a[i++] =
|
|
768
|
+
let b = Number(n >> BigInt(32) & BigInt(4294967295));
|
|
769
|
+
return a[i++] = b, b = b >> 8, a[i++] = b, b = b >> 8, a[i++] = b, b = b >> 8, a[i++] = b, i;
|
|
770
770
|
}
|
|
771
771
|
function A(a, n, i, c, h) {
|
|
772
772
|
ye(n, c, h, a, i, 7);
|
|
773
773
|
let y = Number(n & BigInt(4294967295));
|
|
774
774
|
a[i + 7] = y, y = y >> 8, a[i + 6] = y, y = y >> 8, a[i + 5] = y, y = y >> 8, a[i + 4] = y;
|
|
775
|
-
let
|
|
776
|
-
return a[i + 3] =
|
|
775
|
+
let b = Number(n >> BigInt(32) & BigInt(4294967295));
|
|
776
|
+
return a[i + 3] = b, b = b >> 8, a[i + 2] = b, b = b >> 8, a[i + 1] = b, b = b >> 8, a[i] = b, i + 8;
|
|
777
777
|
}
|
|
778
778
|
f.prototype.writeBigUInt64LE = Pe(function(n, i = 0) {
|
|
779
|
-
return
|
|
779
|
+
return v(this, n, i, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
780
780
|
}), f.prototype.writeBigUInt64BE = Pe(function(n, i = 0) {
|
|
781
781
|
return A(this, n, i, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
782
782
|
}), f.prototype.writeIntLE = function(n, i, c, h) {
|
|
@@ -784,18 +784,18 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
784
784
|
const W = Math.pow(2, 8 * c - 1);
|
|
785
785
|
d(this, n, i, c, W - 1, -W);
|
|
786
786
|
}
|
|
787
|
-
let y = 0,
|
|
788
|
-
for (this[i] = n & 255; ++y < c && (
|
|
789
|
-
n < 0 && R === 0 && this[i + y - 1] !== 0 && (R = 1), this[i + y] = (n /
|
|
787
|
+
let y = 0, b = 1, R = 0;
|
|
788
|
+
for (this[i] = n & 255; ++y < c && (b *= 256); )
|
|
789
|
+
n < 0 && R === 0 && this[i + y - 1] !== 0 && (R = 1), this[i + y] = (n / b >> 0) - R & 255;
|
|
790
790
|
return i + c;
|
|
791
791
|
}, f.prototype.writeIntBE = function(n, i, c, h) {
|
|
792
792
|
if (n = +n, i = i >>> 0, !h) {
|
|
793
793
|
const W = Math.pow(2, 8 * c - 1);
|
|
794
794
|
d(this, n, i, c, W - 1, -W);
|
|
795
795
|
}
|
|
796
|
-
let y = c - 1,
|
|
797
|
-
for (this[i + y] = n & 255; --y >= 0 && (
|
|
798
|
-
n < 0 && R === 0 && this[i + y + 1] !== 0 && (R = 1), this[i + y] = (n /
|
|
796
|
+
let y = c - 1, b = 1, R = 0;
|
|
797
|
+
for (this[i + y] = n & 255; --y >= 0 && (b *= 256); )
|
|
798
|
+
n < 0 && R === 0 && this[i + y + 1] !== 0 && (R = 1), this[i + y] = (n / b >> 0) - R & 255;
|
|
799
799
|
return i + c;
|
|
800
800
|
}, f.prototype.writeInt8 = function(n, i, c) {
|
|
801
801
|
return n = +n, i = i >>> 0, c || d(this, n, i, 1, 127, -128), n < 0 && (n = 255 + n + 1), this[i] = n & 255, i + 1;
|
|
@@ -808,7 +808,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
808
808
|
}, f.prototype.writeInt32BE = function(n, i, c) {
|
|
809
809
|
return n = +n, i = i >>> 0, c || d(this, n, i, 4, 2147483647, -2147483648), n < 0 && (n = 4294967295 + n + 1), this[i] = n >>> 24, this[i + 1] = n >>> 16, this[i + 2] = n >>> 8, this[i + 3] = n & 255, i + 4;
|
|
810
810
|
}, f.prototype.writeBigInt64LE = Pe(function(n, i = 0) {
|
|
811
|
-
return
|
|
811
|
+
return v(this, n, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
812
812
|
}), f.prototype.writeBigInt64BE = Pe(function(n, i = 0) {
|
|
813
813
|
return A(this, n, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
814
814
|
});
|
|
@@ -818,13 +818,13 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
818
818
|
if (i < 0)
|
|
819
819
|
throw new RangeError("Index out of range");
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function j(a, n, i, c, h) {
|
|
822
822
|
return n = +n, i = i >>> 0, h || C(a, n, i, 4), r.write(a, n, i, c, 23, 4), i + 4;
|
|
823
823
|
}
|
|
824
824
|
f.prototype.writeFloatLE = function(n, i, c) {
|
|
825
|
-
return
|
|
825
|
+
return j(this, n, i, !0, c);
|
|
826
826
|
}, f.prototype.writeFloatBE = function(n, i, c) {
|
|
827
|
-
return
|
|
827
|
+
return j(this, n, i, !1, c);
|
|
828
828
|
};
|
|
829
829
|
function V(a, n, i, c, h) {
|
|
830
830
|
return n = +n, i = i >>> 0, h || C(a, n, i, 8), r.write(a, n, i, c, 52, 8), i + 8;
|
|
@@ -858,8 +858,8 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
858
858
|
if (typeof h == "string" && !f.isEncoding(h))
|
|
859
859
|
throw new TypeError("Unknown encoding: " + h);
|
|
860
860
|
if (n.length === 1) {
|
|
861
|
-
const
|
|
862
|
-
(h === "utf8" &&
|
|
861
|
+
const b = n.charCodeAt(0);
|
|
862
|
+
(h === "utf8" && b < 128 || h === "latin1") && (n = b);
|
|
863
863
|
}
|
|
864
864
|
} else
|
|
865
865
|
typeof n == "number" ? n = n & 255 : typeof n == "boolean" && (n = Number(n));
|
|
@@ -873,16 +873,16 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
873
873
|
for (y = i; y < c; ++y)
|
|
874
874
|
this[y] = n;
|
|
875
875
|
else {
|
|
876
|
-
const
|
|
876
|
+
const b = f.isBuffer(n) ? n : f.from(n, h), R = b.length;
|
|
877
877
|
if (R === 0)
|
|
878
878
|
throw new TypeError('The value "' + n + '" is invalid for argument "value"');
|
|
879
879
|
for (y = 0; y < c - i; ++y)
|
|
880
|
-
this[y + i] =
|
|
880
|
+
this[y + i] = b[y % R];
|
|
881
881
|
}
|
|
882
882
|
return this;
|
|
883
883
|
};
|
|
884
884
|
const B = {};
|
|
885
|
-
function
|
|
885
|
+
function N(a, n, i) {
|
|
886
886
|
B[a] = class extends i {
|
|
887
887
|
constructor() {
|
|
888
888
|
super(), Object.defineProperty(this, "message", {
|
|
@@ -907,19 +907,19 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
907
907
|
}
|
|
908
908
|
};
|
|
909
909
|
}
|
|
910
|
-
|
|
910
|
+
N(
|
|
911
911
|
"ERR_BUFFER_OUT_OF_BOUNDS",
|
|
912
912
|
function(a) {
|
|
913
913
|
return a ? `${a} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
|
|
914
914
|
},
|
|
915
915
|
RangeError
|
|
916
|
-
),
|
|
916
|
+
), N(
|
|
917
917
|
"ERR_INVALID_ARG_TYPE",
|
|
918
918
|
function(a, n) {
|
|
919
919
|
return `The "${a}" argument must be of type number. Received type ${typeof n}`;
|
|
920
920
|
},
|
|
921
921
|
TypeError
|
|
922
|
-
),
|
|
922
|
+
), N(
|
|
923
923
|
"ERR_OUT_OF_RANGE",
|
|
924
924
|
function(a, n, i) {
|
|
925
925
|
let c = `The value of "${a}" is out of range.`, h = i;
|
|
@@ -939,9 +939,9 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
939
939
|
}
|
|
940
940
|
function ye(a, n, i, c, h, y) {
|
|
941
941
|
if (a > i || a < n) {
|
|
942
|
-
const
|
|
942
|
+
const b = typeof n == "bigint" ? "n" : "";
|
|
943
943
|
let R;
|
|
944
|
-
throw y > 3 ? n === 0 || n === BigInt(0) ? R = `>= 0${
|
|
944
|
+
throw y > 3 ? n === 0 || n === BigInt(0) ? R = `>= 0${b} and < 2${b} ** ${(y + 1) * 8}${b}` : R = `>= -(2${b} ** ${(y + 1) * 8 - 1}${b}) and < 2 ** ${(y + 1) * 8 - 1}${b}` : R = `>= ${n}${b} and <= ${i}${b}`, new B.ERR_OUT_OF_RANGE("value", R, a);
|
|
945
945
|
}
|
|
946
946
|
te(c, h, y);
|
|
947
947
|
}
|
|
@@ -957,7 +957,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
957
957
|
);
|
|
958
958
|
}
|
|
959
959
|
const Me = /[^+/0-9A-Za-z-_]/g;
|
|
960
|
-
function
|
|
960
|
+
function ht(a) {
|
|
961
961
|
if (a = a.split("=")[0], a = a.trim().replace(Me, ""), a.length < 2)
|
|
962
962
|
return "";
|
|
963
963
|
for (; a.length % 4 !== 0; )
|
|
@@ -970,13 +970,13 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
970
970
|
const c = a.length;
|
|
971
971
|
let h = null;
|
|
972
972
|
const y = [];
|
|
973
|
-
for (let
|
|
974
|
-
if (i = a.charCodeAt(
|
|
973
|
+
for (let b = 0; b < c; ++b) {
|
|
974
|
+
if (i = a.charCodeAt(b), i > 55295 && i < 57344) {
|
|
975
975
|
if (!h) {
|
|
976
976
|
if (i > 56319) {
|
|
977
977
|
(n -= 3) > -1 && y.push(239, 191, 189);
|
|
978
978
|
continue;
|
|
979
|
-
} else if (
|
|
979
|
+
} else if (b + 1 === c) {
|
|
980
980
|
(n -= 3) > -1 && y.push(239, 191, 189);
|
|
981
981
|
continue;
|
|
982
982
|
}
|
|
@@ -1023,7 +1023,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
return y;
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1026
|
+
function Rt(a) {
|
|
1027
1027
|
const n = [];
|
|
1028
1028
|
for (let i = 0; i < a.length; ++i)
|
|
1029
1029
|
n.push(a.charCodeAt(i) & 255);
|
|
@@ -1032,12 +1032,12 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
1032
1032
|
function S(a, n) {
|
|
1033
1033
|
let i, c, h;
|
|
1034
1034
|
const y = [];
|
|
1035
|
-
for (let
|
|
1036
|
-
i = a.charCodeAt(
|
|
1035
|
+
for (let b = 0; b < a.length && !((n -= 2) < 0); ++b)
|
|
1036
|
+
i = a.charCodeAt(b), c = i >> 8, h = i % 256, y.push(h), y.push(c);
|
|
1037
1037
|
return y;
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1040
|
-
return e.toByteArray(
|
|
1039
|
+
function pt(a) {
|
|
1040
|
+
return e.toByteArray(ht(a));
|
|
1041
1041
|
}
|
|
1042
1042
|
function ot(a, n, i, c) {
|
|
1043
1043
|
let h;
|
|
@@ -1048,7 +1048,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
1048
1048
|
function ge(a, n) {
|
|
1049
1049
|
return a instanceof n || a != null && a.constructor != null && a.constructor.name != null && a.constructor.name === n.name;
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function Lt(a) {
|
|
1052
1052
|
return a !== a;
|
|
1053
1053
|
}
|
|
1054
1054
|
const Vn = function() {
|
|
@@ -1116,20 +1116,20 @@ function si(t) {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
|
-
var Te = [], We = !1,
|
|
1119
|
+
var Te = [], We = !1, Ne, yt = -1;
|
|
1120
1120
|
function ai() {
|
|
1121
|
-
!We || !
|
|
1121
|
+
!We || !Ne || (We = !1, Ne.length ? Te = Ne.concat(Te) : yt = -1, Te.length && rn());
|
|
1122
1122
|
}
|
|
1123
1123
|
function rn() {
|
|
1124
1124
|
if (!We) {
|
|
1125
1125
|
var t = tn(ai);
|
|
1126
1126
|
We = !0;
|
|
1127
1127
|
for (var e = Te.length; e; ) {
|
|
1128
|
-
for (
|
|
1129
|
-
|
|
1130
|
-
|
|
1128
|
+
for (Ne = Te, Te = []; ++yt < e; )
|
|
1129
|
+
Ne && Ne[yt].run();
|
|
1130
|
+
yt = -1, e = Te.length;
|
|
1131
1131
|
}
|
|
1132
|
-
|
|
1132
|
+
Ne = null, We = !1, si(t);
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
1135
|
Y.nextTick = function(t) {
|
|
@@ -1186,7 +1186,7 @@ var ui = en.exports;
|
|
|
1186
1186
|
class ci {
|
|
1187
1187
|
}
|
|
1188
1188
|
window.slStore = /* @__PURE__ */ Object.create(null);
|
|
1189
|
-
class
|
|
1189
|
+
class xt {
|
|
1190
1190
|
/**
|
|
1191
1191
|
* store instance (nanostores)
|
|
1192
1192
|
*/
|
|
@@ -1206,7 +1206,7 @@ const fi = (t) => {
|
|
|
1206
1206
|
const e = Object.keys(t);
|
|
1207
1207
|
return Hr(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((o, s) => [o, r[s]])));
|
|
1208
1208
|
};
|
|
1209
|
-
class at extends
|
|
1209
|
+
class at extends xt {
|
|
1210
1210
|
getValues = () => this.getStore().get();
|
|
1211
1211
|
getValue = (e) => this.getStore().get()[e];
|
|
1212
1212
|
setValue = (e, r) => this.getStore().setKey(e, r);
|
|
@@ -1236,7 +1236,7 @@ class lr {
|
|
|
1236
1236
|
listeners = /* @__PURE__ */ new Set();
|
|
1237
1237
|
settingsKey;
|
|
1238
1238
|
constructor({ settings: e, ...r }, o) {
|
|
1239
|
-
this.settingsKey = li[r.type], this.status =
|
|
1239
|
+
this.settingsKey = li[r.type], this.status = Ct($e.Suspended), this.config = new at(Ue(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new at(Ue(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new at(Ue({}), `feature:settings:${this.settingsKey}`), this.source = o;
|
|
1240
1240
|
}
|
|
1241
1241
|
get featureConfig() {
|
|
1242
1242
|
return this.config.getStore();
|
|
@@ -1278,7 +1278,7 @@ class lr {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
|
-
class de extends
|
|
1281
|
+
class de extends xt {
|
|
1282
1282
|
getValue = () => this.getStore().get();
|
|
1283
1283
|
getValues() {
|
|
1284
1284
|
throw new Error("not implemented");
|
|
@@ -1293,11 +1293,11 @@ class de extends Ot {
|
|
|
1293
1293
|
return this.getStore().get();
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
const ne = (t) =>
|
|
1297
|
-
class pe extends
|
|
1296
|
+
const ne = (t) => Ct(t);
|
|
1297
|
+
class pe extends xt {
|
|
1298
1298
|
atomStore;
|
|
1299
1299
|
constructor(e, r, o) {
|
|
1300
|
-
super(e, `api:${r}`), this.atomStore =
|
|
1300
|
+
super(e, `api:${r}`), this.atomStore = Ct(), o && e.subscribe((s) => {
|
|
1301
1301
|
this.atomStore.set(o(s));
|
|
1302
1302
|
});
|
|
1303
1303
|
}
|
|
@@ -1552,7 +1552,7 @@ const gi = (t, e) => {
|
|
|
1552
1552
|
}
|
|
1553
1553
|
});
|
|
1554
1554
|
}, mi = (t, e) => {
|
|
1555
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1555
|
+
const { client: r, queryKey: o } = e.createPromiseClient(ft, { method: "getStream", params: [t] });
|
|
1556
1556
|
return e.nanoquery.createFetcherStore(o, {
|
|
1557
1557
|
fetcher: async (s, u, l) => l ? (await r.getStream({
|
|
1558
1558
|
id: l
|
|
@@ -1568,12 +1568,12 @@ const gi = (t, e) => {
|
|
|
1568
1568
|
const { client: e } = t.createPromiseClient(Wr, { method: "bypassAuth" });
|
|
1569
1569
|
return ({ userKey: r, schema: o, init: s }) => e.bypassAuth({ userKey: r, schema: o, init: s });
|
|
1570
1570
|
}, vi = (t, e) => {
|
|
1571
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1571
|
+
const { client: r, queryKey: o } = e.createPromiseClient(ft, { method: "get", params: [t] });
|
|
1572
1572
|
return e.nanoquery.createFetcherStore(o, {
|
|
1573
1573
|
fetcher: async () => (await r.get({})).data?.attributes
|
|
1574
1574
|
});
|
|
1575
1575
|
}, Si = (t, e) => {
|
|
1576
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1576
|
+
const { client: r, queryKey: o } = e.createPromiseClient(ft, { method: "getOrganization", params: [t] });
|
|
1577
1577
|
return e.nanoquery.createFetcherStore(o, {
|
|
1578
1578
|
fetcher: async () => {
|
|
1579
1579
|
const s = await r.getOrganization({});
|
|
@@ -1584,7 +1584,7 @@ const gi = (t, e) => {
|
|
|
1584
1584
|
}
|
|
1585
1585
|
});
|
|
1586
1586
|
}, Ai = (t, e) => {
|
|
1587
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1587
|
+
const { client: r, queryKey: o } = e.createPromiseClient(ft, {
|
|
1588
1588
|
method: "getOrganizationAdvertising",
|
|
1589
1589
|
params: [t]
|
|
1590
1590
|
});
|
|
@@ -1681,7 +1681,7 @@ const Ii = (t) => {
|
|
|
1681
1681
|
organizationAdvertising: s
|
|
1682
1682
|
};
|
|
1683
1683
|
};
|
|
1684
|
-
class _i extends
|
|
1684
|
+
class _i extends xt {
|
|
1685
1685
|
stores;
|
|
1686
1686
|
constructor(e) {
|
|
1687
1687
|
const r = Ti(e), o = fi(r);
|
|
@@ -1828,14 +1828,14 @@ const st = new Ke(), Oi = (t, e, r) => {
|
|
|
1828
1828
|
}, Ri = (t) => {
|
|
1829
1829
|
const { client: e } = t.createPromiseClient(Jr, { method: "list" });
|
|
1830
1830
|
return (r) => e.list(r);
|
|
1831
|
-
},
|
|
1831
|
+
}, Li = (t, e) => {
|
|
1832
1832
|
const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "get", params: [t] });
|
|
1833
1833
|
return e.nanoquery.createFetcherStore(o, {
|
|
1834
1834
|
fetcher: async (s, u, l) => (await r.get({
|
|
1835
1835
|
eventId: l
|
|
1836
1836
|
})).data?.attributes
|
|
1837
1837
|
});
|
|
1838
|
-
},
|
|
1838
|
+
}, Ni = (t, e) => {
|
|
1839
1839
|
const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "syncQuestion", params: [t] });
|
|
1840
1840
|
return e.nanoquery.createFetcherStore(o, {
|
|
1841
1841
|
fetcher: async (s, u, l) => l ? (await r.syncQuestion({
|
|
@@ -1845,7 +1845,7 @@ const st = new Ke(), Oi = (t, e, r) => {
|
|
|
1845
1845
|
})).data?.attributes : void 0
|
|
1846
1846
|
});
|
|
1847
1847
|
}, Ui = (t, e) => {
|
|
1848
|
-
const { client: r } = e.createCallbackClient(ve), o =
|
|
1848
|
+
const { client: r } = e.createCallbackClient(ve), o = Ct({ eventId: t.get() || "", feedId: "" });
|
|
1849
1849
|
return t.subscribe((u = "") => {
|
|
1850
1850
|
o.set({ eventId: u, feedId: "" });
|
|
1851
1851
|
}), e.addSubscription(r.subscription, o, { name: "feedSubscription" });
|
|
@@ -1857,14 +1857,14 @@ const st = new Ke(), Oi = (t, e, r) => {
|
|
|
1857
1857
|
return (await r.questionByUser({
|
|
1858
1858
|
questionId: t
|
|
1859
1859
|
})).data?.attributes?.question;
|
|
1860
|
-
},
|
|
1860
|
+
}, Di = (t, e) => {
|
|
1861
1861
|
const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "list", params: [t] });
|
|
1862
1862
|
return e.nanoquery.createFetcherStore(o, {
|
|
1863
1863
|
fetcher: async (s, u, l) => l ? (await r.list({
|
|
1864
1864
|
eventId: l
|
|
1865
1865
|
})).data : []
|
|
1866
1866
|
});
|
|
1867
|
-
},
|
|
1867
|
+
}, ji = (t, e) => {
|
|
1868
1868
|
const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "insightHistory", params: [t] });
|
|
1869
1869
|
return e.nanoquery.createFetcherStore(o, {
|
|
1870
1870
|
fetcher: async (s, u, l) => l ? (await r.insightHistory({
|
|
@@ -1880,8 +1880,8 @@ function dr(t) {
|
|
|
1880
1880
|
}
|
|
1881
1881
|
function r(I) {
|
|
1882
1882
|
let _ = 0;
|
|
1883
|
-
const
|
|
1884
|
-
for (_ = 0; _ <
|
|
1883
|
+
const D = I.length, U = new Array(D);
|
|
1884
|
+
for (_ = 0; _ < D; ++_)
|
|
1885
1885
|
U[_] = F(I[_]);
|
|
1886
1886
|
return U;
|
|
1887
1887
|
}
|
|
@@ -1889,53 +1889,53 @@ function dr(t) {
|
|
|
1889
1889
|
const _ = {};
|
|
1890
1890
|
if (p && Object.getPrototypeOf(I) !== Vi)
|
|
1891
1891
|
return p(I);
|
|
1892
|
-
const
|
|
1892
|
+
const D = f(I);
|
|
1893
1893
|
let U, T, x;
|
|
1894
|
-
for (U = 0, T =
|
|
1895
|
-
e(x =
|
|
1894
|
+
for (U = 0, T = D.length; U < T; ++U)
|
|
1895
|
+
e(x = D[U]) && (_[x] = F(I[x]));
|
|
1896
1896
|
return _;
|
|
1897
1897
|
}
|
|
1898
1898
|
function s(I, _) {
|
|
1899
|
-
const
|
|
1899
|
+
const D = I.length, U = _.length;
|
|
1900
1900
|
let T = 0;
|
|
1901
|
-
const x = new Array(
|
|
1902
|
-
for (T = 0; T <
|
|
1901
|
+
const x = new Array(D + U);
|
|
1902
|
+
for (T = 0; T < D; ++T)
|
|
1903
1903
|
x[T] = F(I[T]);
|
|
1904
1904
|
for (T = 0; T < U; ++T)
|
|
1905
|
-
x[T +
|
|
1905
|
+
x[T + D] = F(_[T]);
|
|
1906
1906
|
return x;
|
|
1907
1907
|
}
|
|
1908
1908
|
const u = Object.prototype.propertyIsEnumerable;
|
|
1909
1909
|
function l(I) {
|
|
1910
|
-
const _ = Object.keys(I),
|
|
1911
|
-
for (let U = 0, T =
|
|
1912
|
-
u.call(I,
|
|
1910
|
+
const _ = Object.keys(I), D = Object.getOwnPropertySymbols(I);
|
|
1911
|
+
for (let U = 0, T = D.length; U < T; ++U)
|
|
1912
|
+
u.call(I, D[U]) && _.push(D[U]);
|
|
1913
1913
|
return _;
|
|
1914
1914
|
}
|
|
1915
1915
|
const f = t && t.symbols ? l : Object.keys, p = typeof t?.cloneProtoObject == "function" ? t.cloneProtoObject : void 0;
|
|
1916
|
-
function
|
|
1916
|
+
function w(I) {
|
|
1917
1917
|
return typeof I == "object" && I !== null && !(I instanceof RegExp) && !(I instanceof Date);
|
|
1918
1918
|
}
|
|
1919
1919
|
function g(I) {
|
|
1920
1920
|
return typeof I != "object" || I === null;
|
|
1921
1921
|
}
|
|
1922
|
-
const
|
|
1922
|
+
const m = typeof O.Buffer < "u" ? (I) => typeof I != "object" || I === null || I instanceof RegExp || I instanceof Date || I instanceof O.Buffer : (I) => typeof I != "object" || I === null || I instanceof RegExp || I instanceof Date, E = t && typeof t.mergeArray == "function" ? t.mergeArray({ clone: F, deepmerge: P, getKeys: f, isMergeableObject: w }) : s;
|
|
1923
1923
|
function F(I) {
|
|
1924
|
-
return
|
|
1924
|
+
return w(I) ? Array.isArray(I) ? r(I) : o(I) : I;
|
|
1925
1925
|
}
|
|
1926
|
-
function
|
|
1927
|
-
const
|
|
1926
|
+
function L(I, _) {
|
|
1927
|
+
const D = {}, U = f(I), T = f(_);
|
|
1928
1928
|
let x, k, G;
|
|
1929
1929
|
for (x = 0, k = U.length; x < k; ++x)
|
|
1930
|
-
e(G = U[x]) && T.indexOf(G) === -1 && (
|
|
1930
|
+
e(G = U[x]) && T.indexOf(G) === -1 && (D[G] = F(I[G]));
|
|
1931
1931
|
for (x = 0, k = T.length; x < k; ++x)
|
|
1932
|
-
e(G = T[x]) && (G in I && (U.indexOf(G) !== -1 && (
|
|
1933
|
-
(
|
|
1934
|
-
return
|
|
1932
|
+
e(G = T[x]) && (G in I && (U.indexOf(G) !== -1 && (D[G] = P(I[G], _[G])), !0) || // eslint-disable-line no-mixed-operators
|
|
1933
|
+
(D[G] = F(_[G])));
|
|
1934
|
+
return D;
|
|
1935
1935
|
}
|
|
1936
1936
|
function P(I, _) {
|
|
1937
|
-
const
|
|
1938
|
-
return g(_) ? _ :
|
|
1937
|
+
const D = Array.isArray(_), U = Array.isArray(I);
|
|
1938
|
+
return g(_) ? _ : m(I) ? F(_) : D && U ? E(I, _) : D !== U ? F(_) : L(I, _);
|
|
1939
1939
|
}
|
|
1940
1940
|
function K() {
|
|
1941
1941
|
switch (arguments.length) {
|
|
@@ -1947,7 +1947,7 @@ function dr(t) {
|
|
|
1947
1947
|
return P(arguments[0], arguments[1]);
|
|
1948
1948
|
}
|
|
1949
1949
|
let I;
|
|
1950
|
-
for (let _ = 0,
|
|
1950
|
+
for (let _ = 0, D = arguments.length; _ < D; ++_)
|
|
1951
1951
|
I = P(I, arguments[_]);
|
|
1952
1952
|
return I;
|
|
1953
1953
|
}
|
|
@@ -2014,7 +2014,7 @@ class zi {
|
|
|
2014
2014
|
constructor(e) {
|
|
2015
2015
|
if (e.gamification)
|
|
2016
2016
|
throw new Error("GamificationBackground Singleton error");
|
|
2017
|
-
this.log = on("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new de(ne(void 0), "moderationId").getStore(), this.openedQuestionId = new de(ne(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new pe(
|
|
2017
|
+
this.log = on("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new de(ne(void 0), "moderationId").getStore(), this.openedQuestionId = new de(ne(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new pe(Li(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new pe(Di(this.slStreamId, e.transport), "gamification:feedList"), this.activeQuestionId = new pe(Ni(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = Gi(e.transport, this.openedQuestionId, this.feedList.getStore()), this.openedQuestionId.listen((r) => {
|
|
2018
2018
|
this.log.debug({ questionId: r }, "received question"), r ? (this.questionSubscription = $i(r, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (o) => {
|
|
2019
2019
|
window.requestAnimationFrame(() => {
|
|
2020
2020
|
this.openedQuestion.updateExtendedQuestion(o.data?.attributes?.question);
|
|
@@ -2125,26 +2125,26 @@ class Ki {
|
|
|
2125
2125
|
this.store.delete(e), this.activeQueue.delete(e), this.waitingQueue.delete(e), this.tickWaitingQueue(), this.logger.debug({ notificationId: e }, "notification hiding");
|
|
2126
2126
|
};
|
|
2127
2127
|
}
|
|
2128
|
-
var
|
|
2128
|
+
var St;
|
|
2129
2129
|
(function(t) {
|
|
2130
2130
|
t.OPENED = "opened";
|
|
2131
|
-
})(
|
|
2131
|
+
})(St || (St = {}));
|
|
2132
2132
|
class Hi extends hr {
|
|
2133
2133
|
constructor() {
|
|
2134
2134
|
super("notification");
|
|
2135
2135
|
}
|
|
2136
2136
|
setOpened = (e) => {
|
|
2137
|
-
this.write(
|
|
2137
|
+
this.write(St.OPENED, e, "true");
|
|
2138
2138
|
};
|
|
2139
|
-
isOpened = (e) => this.read(
|
|
2139
|
+
isOpened = (e) => this.read(St.OPENED, e);
|
|
2140
2140
|
clearNotification = () => {
|
|
2141
2141
|
this.clear();
|
|
2142
2142
|
};
|
|
2143
2143
|
}
|
|
2144
|
-
var
|
|
2144
|
+
var De;
|
|
2145
2145
|
(function(t) {
|
|
2146
2146
|
t[t.ONBOARDING = 1] = "ONBOARDING", t[t.QUESTION = 2] = "QUESTION", t[t.QUESTION_RESOLVED = 3] = "QUESTION_RESOLVED";
|
|
2147
|
-
})(
|
|
2147
|
+
})(De || (De = {}));
|
|
2148
2148
|
class Wi {
|
|
2149
2149
|
queue;
|
|
2150
2150
|
storage;
|
|
@@ -2174,63 +2174,71 @@ const Ji = (t, e, r) => {
|
|
|
2174
2174
|
const { client: r } = t.createPromiseClient(ve, { method: "skipQuestion" });
|
|
2175
2175
|
return r.skipQuestion({ data: { id: e } });
|
|
2176
2176
|
};
|
|
2177
|
-
var
|
|
2177
|
+
var At;
|
|
2178
2178
|
(function(t) {
|
|
2179
2179
|
t.ONBOARDING = "onboarding";
|
|
2180
|
-
})(
|
|
2180
|
+
})(At || (At = {}));
|
|
2181
2181
|
class un extends hr {
|
|
2182
2182
|
constructor() {
|
|
2183
2183
|
super("gamification");
|
|
2184
2184
|
}
|
|
2185
2185
|
saveOnboardingStatus = ({ userId: e, eventId: r, organizationId: o }, s) => {
|
|
2186
|
-
this.write(
|
|
2186
|
+
this.write(At.ONBOARDING, o, e, r, s);
|
|
2187
2187
|
};
|
|
2188
|
-
getOnboardingStatus = ({ userId: e, eventId: r, organizationId: o }) => this.read(
|
|
2188
|
+
getOnboardingStatus = ({ userId: e, eventId: r, organizationId: o }) => this.read(At.ONBOARDING, o, e, r);
|
|
2189
2189
|
}
|
|
2190
2190
|
const Fr = {
|
|
2191
2191
|
pageSize: 10
|
|
2192
2192
|
}, eo = (t, e, r) => {
|
|
2193
|
-
const o = ne({ pageSize: r?.pageSize || Fr.pageSize, page: 0 }), s = Ue({ data: [], loading: void 0, error: void 0 }), u = Ri(t), l = async (
|
|
2194
|
-
if (
|
|
2193
|
+
const o = ne({ pageSize: r?.pageSize || Fr.pageSize, page: 0 }), s = Ue({ data: [], loading: void 0, error: void 0 }), u = Ri(t), l = async (w) => {
|
|
2194
|
+
if (w) {
|
|
2195
2195
|
s.setKey("loading", !0);
|
|
2196
2196
|
const g = {
|
|
2197
|
-
eventId:
|
|
2197
|
+
eventId: w,
|
|
2198
2198
|
pagination: { page: 0, pageSize: r?.pageSize || Fr.pageSize }
|
|
2199
|
-
},
|
|
2200
|
-
s.set({ data:
|
|
2199
|
+
}, m = await u(g);
|
|
2200
|
+
s.set({ data: m.data.map((E) => E.attributes), loading: !1 }), o.set(g.pagination);
|
|
2201
2201
|
}
|
|
2202
2202
|
};
|
|
2203
2203
|
e.listen(l);
|
|
2204
2204
|
const f = () => {
|
|
2205
2205
|
l(e.get());
|
|
2206
2206
|
};
|
|
2207
|
-
return o.listen(async (
|
|
2208
|
-
const g = e.get(),
|
|
2209
|
-
if (
|
|
2207
|
+
return o.listen(async (w) => {
|
|
2208
|
+
const g = e.get(), m = s.get().data?.length || 0;
|
|
2209
|
+
if (w.page > 0 && g && m >= w.page * w.pageSize) {
|
|
2210
2210
|
s.setKey("loading", !0);
|
|
2211
2211
|
const F = await u({
|
|
2212
2212
|
eventId: g,
|
|
2213
|
-
pagination:
|
|
2214
|
-
}),
|
|
2213
|
+
pagination: w
|
|
2214
|
+
}), L = s.get().data || [];
|
|
2215
2215
|
s.set({
|
|
2216
|
-
data: [...
|
|
2216
|
+
data: [...L, ...F.data.map((P) => P.attributes)],
|
|
2217
2217
|
loading: !1
|
|
2218
2218
|
});
|
|
2219
2219
|
}
|
|
2220
2220
|
}), { $store: s, fetchMore: () => {
|
|
2221
|
-
const
|
|
2222
|
-
o.set({ ...
|
|
2221
|
+
const w = o.get();
|
|
2222
|
+
o.set({ ...w, page: w.page + 1 });
|
|
2223
2223
|
}, invalidate: f };
|
|
2224
|
-
}
|
|
2224
|
+
}, to = (t, e) => {
|
|
2225
|
+
const { client: r, queryKey: o } = t.createPromiseClient(ft, {
|
|
2226
|
+
method: "generateDeepLink",
|
|
2227
|
+
params: e
|
|
2228
|
+
});
|
|
2229
|
+
return t.nanoquery.createFetcherStore(o, {
|
|
2230
|
+
fetcher: async (s, u, l) => l ? (await r.generateDeepLink({ data: { eventId: l } })).data?.attributes : {}
|
|
2231
|
+
});
|
|
2232
|
+
}, ro = (t, e) => ({ $store: to(t, [e]), fetch });
|
|
2225
2233
|
var re;
|
|
2226
2234
|
(function(t) {
|
|
2227
2235
|
t.Unset = "unset", t.Required = "required", t.Optional = "optional", t.Completed = "completed", t.Disabled = "disabled", t.Unavailable = "unavailable";
|
|
2228
2236
|
})(re || (re = {}));
|
|
2229
|
-
const
|
|
2237
|
+
const no = (t, e, r, o) => {
|
|
2230
2238
|
const s = new un(), u = ne(re.Completed), l = () => {
|
|
2231
|
-
const { inplayGame:
|
|
2239
|
+
const { inplayGame: w = {} } = t.featureSettings.get(), g = e.getCurrentSessionId({ prefix: "onboarding" });
|
|
2232
2240
|
o.add({
|
|
2233
|
-
type:
|
|
2241
|
+
type: De.ONBOARDING,
|
|
2234
2242
|
id: g,
|
|
2235
2243
|
action: t.openFeature,
|
|
2236
2244
|
close: () => {
|
|
@@ -2241,42 +2249,42 @@ const to = (t, e, r, o) => {
|
|
|
2241
2249
|
questionType: Re.UNSET,
|
|
2242
2250
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2243
2251
|
// @ts-ignore
|
|
2244
|
-
onboarding: { ...
|
|
2252
|
+
onboarding: { ...w }
|
|
2245
2253
|
}
|
|
2246
2254
|
});
|
|
2247
2255
|
};
|
|
2248
|
-
u.subscribe((
|
|
2249
|
-
(
|
|
2256
|
+
u.subscribe((w) => {
|
|
2257
|
+
(w === re.Optional || re.Required) && l(), w === re.Completed && e.activeQuestionId.invalidate();
|
|
2250
2258
|
});
|
|
2251
2259
|
const f = async () => {
|
|
2252
|
-
const
|
|
2253
|
-
if (!
|
|
2260
|
+
const w = e.userId.get();
|
|
2261
|
+
if (!w)
|
|
2254
2262
|
return;
|
|
2255
2263
|
s.getOnboardingStatus({
|
|
2256
|
-
userId:
|
|
2264
|
+
userId: w,
|
|
2257
2265
|
organizationId: e.organizationId.get() || "",
|
|
2258
2266
|
eventId: e.slStreamId.get() || ""
|
|
2259
2267
|
}) === re.Completed && u.set(re.Completed);
|
|
2260
|
-
const
|
|
2268
|
+
const m = await e.moderation.getValue();
|
|
2261
2269
|
if (u.get() === re.Completed)
|
|
2262
2270
|
return;
|
|
2263
|
-
const E = !!(
|
|
2271
|
+
const E = !!(m?.options?.onboardingEnabled && t.featureSettings.get().inplayGame?.onboarding?.completed), F = !!t.featureSettings.get().inplayGame?.titleCard?.optIn;
|
|
2264
2272
|
E ? F ? u.set(re.Required) : u.set(re.Optional) : F ? u.set(re.Unavailable) : u.set(re.Disabled);
|
|
2265
2273
|
};
|
|
2266
|
-
return f(), e.userId.subscribe((
|
|
2267
|
-
|
|
2268
|
-
}), e.moderation.subscribe((
|
|
2269
|
-
|
|
2274
|
+
return f(), e.userId.subscribe((w) => {
|
|
2275
|
+
w && f();
|
|
2276
|
+
}), e.moderation.subscribe((w) => {
|
|
2277
|
+
w.data && f();
|
|
2270
2278
|
}), { $store: u, submitInplay: async () => {
|
|
2271
|
-
const
|
|
2272
|
-
|
|
2279
|
+
const w = e.slStreamId.get();
|
|
2280
|
+
w && (await Xi(r, w), u.set(re.Completed), s.saveOnboardingStatus({
|
|
2273
2281
|
organizationId: e.organizationId.get() || "",
|
|
2274
2282
|
userId: e.userId.get() || "",
|
|
2275
|
-
eventId:
|
|
2283
|
+
eventId: w
|
|
2276
2284
|
}, re.Completed));
|
|
2277
2285
|
} };
|
|
2278
|
-
},
|
|
2279
|
-
class
|
|
2286
|
+
}, io = /* @__PURE__ */ new Set([Re.POLL, Re.PREDICTION, Re.TRIVIA]);
|
|
2287
|
+
class oo extends lr {
|
|
2280
2288
|
/** user statistics (leaderboard panel) */
|
|
2281
2289
|
userSummary;
|
|
2282
2290
|
/** feed list (pick history) */
|
|
@@ -2285,6 +2293,7 @@ class no extends lr {
|
|
|
2285
2293
|
leaderboardId;
|
|
2286
2294
|
/** leaderboard list */
|
|
2287
2295
|
leaderboardList;
|
|
2296
|
+
deepLink;
|
|
2288
2297
|
/** onboarding status */
|
|
2289
2298
|
onboardingStatus;
|
|
2290
2299
|
/** opened question */
|
|
@@ -2300,13 +2309,13 @@ class no extends lr {
|
|
|
2300
2309
|
/** Browser cache */
|
|
2301
2310
|
storage;
|
|
2302
2311
|
constructor(e, r, o) {
|
|
2303
|
-
super(e, r), this.background = an(o), this.storage = new un(), this.userSummary = new pe(Pi(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.feedList = this.background.feedList, this.openedUser = ne(void 0), this.leaderboardId = new de(ne(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus =
|
|
2312
|
+
super(e, r), this.background = an(o), this.storage = new un(), this.userSummary = new pe(Pi(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.feedList = this.background.feedList, this.openedUser = ne(void 0), this.leaderboardId = new de(ne(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = no(this, this.background, o.transport, o.notifications), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ue.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = ro(this.transport, this.background.slStreamId), this.leaderboardList = eo(this.transport, this.background.slStreamId), this.status.subscribe((s) => {
|
|
2304
2313
|
s === $e.Ready ? this.connect(o.transport) : this.disconnect();
|
|
2305
2314
|
}), this.background.activeQuestionId.listen((s) => {
|
|
2306
|
-
if (s && s.data && this.onboardingStatus.$store.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && s.data.question.status ===
|
|
2307
|
-
if (
|
|
2315
|
+
if (s && s.data && this.onboardingStatus.$store.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && s.data.question.status === dt.ACTIVE) {
|
|
2316
|
+
if (io.has(s.data.question.type))
|
|
2308
2317
|
this.notifications.add({
|
|
2309
|
-
type:
|
|
2318
|
+
type: De.QUESTION,
|
|
2310
2319
|
action: () => s.data?.question && this.openQuestion(s.data.question.id),
|
|
2311
2320
|
close: () => s.data?.question && this.closeQuestion(s.data.question.id),
|
|
2312
2321
|
autoHideDuration: 1e3 * +(s.data.question?.appearance?.autoHideInterval || "5"),
|
|
@@ -2319,14 +2328,14 @@ class no extends lr {
|
|
|
2319
2328
|
}
|
|
2320
2329
|
});
|
|
2321
2330
|
else if (s.data.question.type === Re.FACTOID) {
|
|
2322
|
-
const u = {
|
|
2323
|
-
heading:
|
|
2324
|
-
body:
|
|
2325
|
-
image:
|
|
2331
|
+
const u = s.data.question.options?.options.value, l = {
|
|
2332
|
+
heading: s.data.question.notification.title,
|
|
2333
|
+
body: s.data.question.notification.body,
|
|
2334
|
+
image: s.data.question.notification.image,
|
|
2326
2335
|
video: {
|
|
2327
|
-
id: "",
|
|
2328
|
-
url: "",
|
|
2329
|
-
thumbnailUrl: ""
|
|
2336
|
+
id: u?.video?.id || "",
|
|
2337
|
+
url: u?.video?.url || "",
|
|
2338
|
+
thumbnailUrl: u?.video?.thumbnailUrl || ""
|
|
2330
2339
|
},
|
|
2331
2340
|
webLink: {
|
|
2332
2341
|
label: "",
|
|
@@ -2334,14 +2343,14 @@ class no extends lr {
|
|
|
2334
2343
|
}
|
|
2335
2344
|
};
|
|
2336
2345
|
this.notifications.add({
|
|
2337
|
-
type:
|
|
2346
|
+
type: De.QUESTION,
|
|
2338
2347
|
action: () => s.data?.question && this.openQuestion(s.data.question.id),
|
|
2339
2348
|
close: () => s.data?.question && this.closeQuestion(s.data.question.id),
|
|
2340
2349
|
autoHideDuration: 1e3 * +(s.data.question?.appearance?.autoHideInterval || "5"),
|
|
2341
2350
|
id: this.background.getCurrentSessionId({ prefix: "notification", entity: s.data.question.id }),
|
|
2342
2351
|
data: {
|
|
2343
2352
|
questionType: s.data.question.type,
|
|
2344
|
-
insight:
|
|
2353
|
+
insight: l
|
|
2345
2354
|
}
|
|
2346
2355
|
});
|
|
2347
2356
|
}
|
|
@@ -2355,20 +2364,27 @@ class no extends lr {
|
|
|
2355
2364
|
if (!o)
|
|
2356
2365
|
return;
|
|
2357
2366
|
const { status: s, type: u, id: l } = o;
|
|
2358
|
-
if (s ===
|
|
2367
|
+
if (s === dt.RESOLVED && u === Re.PREDICTION) {
|
|
2359
2368
|
const f = this.background.getCurrentSessionId({
|
|
2360
2369
|
prefix: `notification-id:${l}`
|
|
2361
|
-
}),
|
|
2370
|
+
}), p = await sn(l, e), w = p?.answers.find(({ correct: m }) => m), g = p?.answers.find(({ youVoted: m }) => m);
|
|
2362
2371
|
this.notifications.add({
|
|
2363
|
-
type:
|
|
2372
|
+
type: De.QUESTION_RESOLVED,
|
|
2364
2373
|
action: () => this.openQuestion(l),
|
|
2365
2374
|
close: () => this.closeQuestion(l),
|
|
2366
|
-
autoHideDuration:
|
|
2375
|
+
autoHideDuration: 35e3,
|
|
2367
2376
|
id: f,
|
|
2368
2377
|
data: {
|
|
2369
2378
|
questionType: Re.PREDICTION,
|
|
2370
2379
|
question: {
|
|
2371
|
-
title:
|
|
2380
|
+
title: w?.youVoted ? `Congratulations! You answered correctly! You won ${w.points} pts!` : `Better luck next time! Correct: ${w?.text}!`,
|
|
2381
|
+
votedAnswer: {
|
|
2382
|
+
title: g?.text,
|
|
2383
|
+
points: g?.points
|
|
2384
|
+
},
|
|
2385
|
+
correctAnswerTitle: w?.text,
|
|
2386
|
+
correct: w?.youVoted,
|
|
2387
|
+
predictionResult: s === dt.RESOLVED
|
|
2372
2388
|
}
|
|
2373
2389
|
}
|
|
2374
2390
|
});
|
|
@@ -2399,7 +2415,7 @@ class no extends lr {
|
|
|
2399
2415
|
this.openedUser.set(void 0);
|
|
2400
2416
|
};
|
|
2401
2417
|
}
|
|
2402
|
-
class
|
|
2418
|
+
class so extends lr {
|
|
2403
2419
|
insights;
|
|
2404
2420
|
closeFeature;
|
|
2405
2421
|
openFeature;
|
|
@@ -2411,8 +2427,8 @@ class io extends lr {
|
|
|
2411
2427
|
super(e, r), this.background = an(o), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ue.HIGHLIGHTS), this.status.subscribe((s) => {
|
|
2412
2428
|
s === $e.Ready ? this.connect() : this.disconnect();
|
|
2413
2429
|
}), this.background.activeQuestionId.listen((s) => {
|
|
2414
|
-
s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && s.data.question.type === Re.FACTOID && s.data.question.status ===
|
|
2415
|
-
type:
|
|
2430
|
+
s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && s.data.question.type === Re.FACTOID && s.data.question.status === dt.ACTIVE && this.notifications.add({
|
|
2431
|
+
type: De.QUESTION,
|
|
2416
2432
|
action: () => s.data?.question && this.openHighlight(s.data.question.id),
|
|
2417
2433
|
close: () => s.data?.question && this.closeHighlight(s.data.question.id),
|
|
2418
2434
|
autoHideDuration: 1e3 * +(s.data.question?.appearance?.autoHideInterval || "5"),
|
|
@@ -2427,7 +2443,7 @@ class io extends lr {
|
|
|
2427
2443
|
}), this.openedInsight = this.background.openedQuestion;
|
|
2428
2444
|
}
|
|
2429
2445
|
connect = () => {
|
|
2430
|
-
this.insights ? this.insights.invalidate() : this.insights = new pe(
|
|
2446
|
+
this.insights ? this.insights.invalidate() : this.insights = new pe(ji(this.background.slStreamId, this.transport), "gamification:insights"), this.background.feedSubscription.addListener("feed-subscription-insights-list", () => {
|
|
2431
2447
|
window.requestAnimationFrame(() => {
|
|
2432
2448
|
this.insights?.invalidate();
|
|
2433
2449
|
});
|
|
@@ -2440,18 +2456,18 @@ class io extends lr {
|
|
|
2440
2456
|
closeHighlight = (e) => this.background.closeQuestion(e);
|
|
2441
2457
|
}
|
|
2442
2458
|
ue.GAMES + "", ue.HIGHLIGHTS + "";
|
|
2443
|
-
class
|
|
2459
|
+
class ao extends lr {
|
|
2444
2460
|
constructor(e, r) {
|
|
2445
2461
|
super(e, r);
|
|
2446
2462
|
}
|
|
2447
2463
|
}
|
|
2448
|
-
const
|
|
2464
|
+
const uo = (t, e, r) => t.type === ue.GAMES ? new oo(t, e, r) : t.type === ue.HIGHLIGHTS ? new so(t, e, r) : new ao(t, e), co = (t, e, r) => {
|
|
2449
2465
|
t.features = /* @__PURE__ */ new Map(), t.activeFeature = new de(ne(ue.UNSET), "activeFeature"), t.sdk.getFeatures = () => t.features, t.sdk.getFeature = (o) => t.features.get(o), t.sdk.getActiveFeature = () => t.activeFeature.getStore(), t.sdk.openFeature = (o) => {
|
|
2450
2466
|
t.activeFeature.setValue(o);
|
|
2451
2467
|
}, t.sdk.closeFeature = () => {
|
|
2452
2468
|
t.activeFeature.setValue(ue.UNSET);
|
|
2453
2469
|
}, t.initFeature = (o, s = Ie.ORGANIZATION) => {
|
|
2454
|
-
const u =
|
|
2470
|
+
const u = uo(o, s, t);
|
|
2455
2471
|
t.features.set(o.type, u);
|
|
2456
2472
|
}, t.updateFeature = (o, s) => {
|
|
2457
2473
|
t.features.get(o.type)?.update(o, s);
|
|
@@ -2502,7 +2518,7 @@ const so = (t, e, r) => t.type === ue.GAMES ? new no(t, e, r) : t.type === ue.HI
|
|
|
2502
2518
|
}, r();
|
|
2503
2519
|
};
|
|
2504
2520
|
var yr = { exports: {} }, gr = { exports: {} };
|
|
2505
|
-
function
|
|
2521
|
+
function fo(t) {
|
|
2506
2522
|
var e = new t(), r = e;
|
|
2507
2523
|
function o() {
|
|
2508
2524
|
var u = e;
|
|
@@ -2516,36 +2532,36 @@ function uo(t) {
|
|
|
2516
2532
|
release: s
|
|
2517
2533
|
};
|
|
2518
2534
|
}
|
|
2519
|
-
var
|
|
2535
|
+
var lo = fo, ho = lo;
|
|
2520
2536
|
function cn(t, e, r) {
|
|
2521
2537
|
if (typeof t == "function" && (r = e, e = t, t = null), r < 1)
|
|
2522
2538
|
throw new Error("fastqueue concurrency must be greater than 1");
|
|
2523
|
-
var o =
|
|
2539
|
+
var o = ho(po), s = null, u = null, l = 0, f = null, p = {
|
|
2524
2540
|
push: P,
|
|
2525
2541
|
drain: ae,
|
|
2526
2542
|
saturated: ae,
|
|
2527
2543
|
pause: g,
|
|
2528
2544
|
paused: !1,
|
|
2529
2545
|
concurrency: r,
|
|
2530
|
-
running:
|
|
2546
|
+
running: w,
|
|
2531
2547
|
resume: F,
|
|
2532
|
-
idle:
|
|
2533
|
-
length:
|
|
2548
|
+
idle: L,
|
|
2549
|
+
length: m,
|
|
2534
2550
|
getQueue: E,
|
|
2535
2551
|
unshift: K,
|
|
2536
2552
|
empty: ae,
|
|
2537
2553
|
kill: _,
|
|
2538
|
-
killAndDrain:
|
|
2554
|
+
killAndDrain: D,
|
|
2539
2555
|
error: U
|
|
2540
2556
|
};
|
|
2541
2557
|
return p;
|
|
2542
|
-
function
|
|
2558
|
+
function w() {
|
|
2543
2559
|
return l;
|
|
2544
2560
|
}
|
|
2545
2561
|
function g() {
|
|
2546
2562
|
p.paused = !0;
|
|
2547
2563
|
}
|
|
2548
|
-
function
|
|
2564
|
+
function m() {
|
|
2549
2565
|
for (var T = s, x = 0; T; )
|
|
2550
2566
|
T = T.next, x++;
|
|
2551
2567
|
return x;
|
|
@@ -2562,7 +2578,7 @@ function cn(t, e, r) {
|
|
|
2562
2578
|
l++, I();
|
|
2563
2579
|
}
|
|
2564
2580
|
}
|
|
2565
|
-
function
|
|
2581
|
+
function L() {
|
|
2566
2582
|
return l === 0 && p.length() === 0;
|
|
2567
2583
|
}
|
|
2568
2584
|
function P(T, x) {
|
|
@@ -2581,7 +2597,7 @@ function cn(t, e, r) {
|
|
|
2581
2597
|
function _() {
|
|
2582
2598
|
s = null, u = null, p.drain = ae;
|
|
2583
2599
|
}
|
|
2584
|
-
function
|
|
2600
|
+
function D() {
|
|
2585
2601
|
s = null, u = null, p.drain(), p.drain = ae;
|
|
2586
2602
|
}
|
|
2587
2603
|
function U(T) {
|
|
@@ -2590,7 +2606,7 @@ function cn(t, e, r) {
|
|
|
2590
2606
|
}
|
|
2591
2607
|
function ae() {
|
|
2592
2608
|
}
|
|
2593
|
-
function
|
|
2609
|
+
function po() {
|
|
2594
2610
|
this.value = null, this.callback = ae, this.next = null, this.release = ae, this.context = null, this.errorHandler = null;
|
|
2595
2611
|
var t = this;
|
|
2596
2612
|
this.worked = function(r, o) {
|
|
@@ -2598,63 +2614,63 @@ function lo() {
|
|
|
2598
2614
|
t.value = null, t.callback = ae, t.errorHandler && u(r, l), s.call(t.context, r, o), t.release(t);
|
|
2599
2615
|
};
|
|
2600
2616
|
}
|
|
2601
|
-
function
|
|
2617
|
+
function yo(t, e, r) {
|
|
2602
2618
|
typeof t == "function" && (r = e, e = t, t = null);
|
|
2603
|
-
function o(g,
|
|
2619
|
+
function o(g, m) {
|
|
2604
2620
|
e.call(this, g).then(function(E) {
|
|
2605
|
-
|
|
2606
|
-
},
|
|
2621
|
+
m(null, E);
|
|
2622
|
+
}, m);
|
|
2607
2623
|
}
|
|
2608
2624
|
var s = cn(t, o, r), u = s.push, l = s.unshift;
|
|
2609
|
-
return s.push = f, s.unshift = p, s.drained =
|
|
2625
|
+
return s.push = f, s.unshift = p, s.drained = w, s;
|
|
2610
2626
|
function f(g) {
|
|
2611
|
-
var
|
|
2612
|
-
u(g, function(
|
|
2613
|
-
if (
|
|
2614
|
-
F(
|
|
2627
|
+
var m = new Promise(function(E, F) {
|
|
2628
|
+
u(g, function(L, P) {
|
|
2629
|
+
if (L) {
|
|
2630
|
+
F(L);
|
|
2615
2631
|
return;
|
|
2616
2632
|
}
|
|
2617
2633
|
E(P);
|
|
2618
2634
|
});
|
|
2619
2635
|
});
|
|
2620
|
-
return
|
|
2636
|
+
return m.catch(ae), m;
|
|
2621
2637
|
}
|
|
2622
2638
|
function p(g) {
|
|
2623
|
-
var
|
|
2624
|
-
l(g, function(
|
|
2625
|
-
if (
|
|
2626
|
-
F(
|
|
2639
|
+
var m = new Promise(function(E, F) {
|
|
2640
|
+
l(g, function(L, P) {
|
|
2641
|
+
if (L) {
|
|
2642
|
+
F(L);
|
|
2627
2643
|
return;
|
|
2628
2644
|
}
|
|
2629
2645
|
E(P);
|
|
2630
2646
|
});
|
|
2631
2647
|
});
|
|
2632
|
-
return
|
|
2648
|
+
return m.catch(ae), m;
|
|
2633
2649
|
}
|
|
2634
|
-
function
|
|
2650
|
+
function w() {
|
|
2635
2651
|
if (s.idle())
|
|
2636
2652
|
return new Promise(function(E) {
|
|
2637
2653
|
E();
|
|
2638
2654
|
});
|
|
2639
|
-
var g = s.drain,
|
|
2655
|
+
var g = s.drain, m = new Promise(function(E) {
|
|
2640
2656
|
s.drain = function() {
|
|
2641
2657
|
g(), E();
|
|
2642
2658
|
};
|
|
2643
2659
|
});
|
|
2644
|
-
return
|
|
2660
|
+
return m;
|
|
2645
2661
|
}
|
|
2646
2662
|
}
|
|
2647
2663
|
gr.exports = cn;
|
|
2648
|
-
gr.exports.promise =
|
|
2664
|
+
gr.exports.promise = yo;
|
|
2649
2665
|
var fn = gr.exports, mr = { exports: {} }, Je = typeof Reflect == "object" ? Reflect : null, Tr = Je && typeof Je.apply == "function" ? Je.apply : function(e, r, o) {
|
|
2650
2666
|
return Function.prototype.apply.call(e, r, o);
|
|
2651
|
-
},
|
|
2652
|
-
Je && typeof Je.ownKeys == "function" ?
|
|
2667
|
+
}, gt;
|
|
2668
|
+
Je && typeof Je.ownKeys == "function" ? gt = Je.ownKeys : Object.getOwnPropertySymbols ? gt = function(e) {
|
|
2653
2669
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
2654
|
-
} :
|
|
2670
|
+
} : gt = function(e) {
|
|
2655
2671
|
return Object.getOwnPropertyNames(e);
|
|
2656
2672
|
};
|
|
2657
|
-
function
|
|
2673
|
+
function go(t) {
|
|
2658
2674
|
console && console.warn && console.warn(t);
|
|
2659
2675
|
}
|
|
2660
2676
|
var ln = Number.isNaN || function(e) {
|
|
@@ -2664,13 +2680,13 @@ function q() {
|
|
|
2664
2680
|
q.init.call(this);
|
|
2665
2681
|
}
|
|
2666
2682
|
mr.exports = q;
|
|
2667
|
-
mr.exports.once =
|
|
2683
|
+
mr.exports.once = vo;
|
|
2668
2684
|
q.EventEmitter = q;
|
|
2669
2685
|
q.prototype._events = void 0;
|
|
2670
2686
|
q.prototype._eventsCount = 0;
|
|
2671
2687
|
q.prototype._maxListeners = void 0;
|
|
2672
2688
|
var _r = 10;
|
|
2673
|
-
function
|
|
2689
|
+
function Bt(t) {
|
|
2674
2690
|
if (typeof t != "function")
|
|
2675
2691
|
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
|
|
2676
2692
|
}
|
|
@@ -2720,13 +2736,13 @@ q.prototype.emit = function(e) {
|
|
|
2720
2736
|
if (typeof p == "function")
|
|
2721
2737
|
Tr(p, this, r);
|
|
2722
2738
|
else
|
|
2723
|
-
for (var
|
|
2739
|
+
for (var w = p.length, g = mn(p, w), o = 0; o < w; ++o)
|
|
2724
2740
|
Tr(g[o], this, r);
|
|
2725
2741
|
return !0;
|
|
2726
2742
|
};
|
|
2727
2743
|
function pn(t, e, r, o) {
|
|
2728
2744
|
var s, u, l;
|
|
2729
|
-
if (
|
|
2745
|
+
if (Bt(r), u = t._events, u === void 0 ? (u = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (u.newListener !== void 0 && (t.emit(
|
|
2730
2746
|
"newListener",
|
|
2731
2747
|
e,
|
|
2732
2748
|
r.listener ? r.listener : r
|
|
@@ -2735,7 +2751,7 @@ function pn(t, e, r, o) {
|
|
|
2735
2751
|
else if (typeof l == "function" ? l = u[e] = o ? [r, l] : [l, r] : o ? l.unshift(r) : l.push(r), s = hn(t), s > 0 && l.length > s && !l.warned) {
|
|
2736
2752
|
l.warned = !0;
|
|
2737
2753
|
var f = new Error("Possible EventEmitter memory leak detected. " + l.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
2738
|
-
f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = l.length,
|
|
2754
|
+
f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = l.length, go(f);
|
|
2739
2755
|
}
|
|
2740
2756
|
return t;
|
|
2741
2757
|
}
|
|
@@ -2746,23 +2762,23 @@ q.prototype.on = q.prototype.addListener;
|
|
|
2746
2762
|
q.prototype.prependListener = function(e, r) {
|
|
2747
2763
|
return pn(this, e, r, !0);
|
|
2748
2764
|
};
|
|
2749
|
-
function
|
|
2765
|
+
function mo() {
|
|
2750
2766
|
if (!this.fired)
|
|
2751
2767
|
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);
|
|
2752
2768
|
}
|
|
2753
2769
|
function dn(t, e, r) {
|
|
2754
|
-
var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s =
|
|
2770
|
+
var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s = mo.bind(o);
|
|
2755
2771
|
return s.listener = r, o.wrapFn = s, s;
|
|
2756
2772
|
}
|
|
2757
2773
|
q.prototype.once = function(e, r) {
|
|
2758
|
-
return
|
|
2774
|
+
return Bt(r), this.on(e, dn(this, e, r)), this;
|
|
2759
2775
|
};
|
|
2760
2776
|
q.prototype.prependOnceListener = function(e, r) {
|
|
2761
|
-
return
|
|
2777
|
+
return Bt(r), this.prependListener(e, dn(this, e, r)), this;
|
|
2762
2778
|
};
|
|
2763
2779
|
q.prototype.removeListener = function(e, r) {
|
|
2764
2780
|
var o, s, u, l, f;
|
|
2765
|
-
if (
|
|
2781
|
+
if (Bt(r), s = this._events, s === void 0)
|
|
2766
2782
|
return this;
|
|
2767
2783
|
if (o = s[e], o === void 0)
|
|
2768
2784
|
return this;
|
|
@@ -2776,7 +2792,7 @@ q.prototype.removeListener = function(e, r) {
|
|
|
2776
2792
|
}
|
|
2777
2793
|
if (u < 0)
|
|
2778
2794
|
return this;
|
|
2779
|
-
u === 0 ? o.shift() :
|
|
2795
|
+
u === 0 ? o.shift() : bo(o, u), o.length === 1 && (s[e] = o[0]), s.removeListener !== void 0 && this.emit("removeListener", e, f || r);
|
|
2780
2796
|
}
|
|
2781
2797
|
return this;
|
|
2782
2798
|
};
|
|
@@ -2805,7 +2821,7 @@ function yn(t, e, r) {
|
|
|
2805
2821
|
if (o === void 0)
|
|
2806
2822
|
return [];
|
|
2807
2823
|
var s = o[e];
|
|
2808
|
-
return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ?
|
|
2824
|
+
return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? wo(s) : mn(s, s.length);
|
|
2809
2825
|
}
|
|
2810
2826
|
q.prototype.listeners = function(e) {
|
|
2811
2827
|
return yn(this, e, !0);
|
|
@@ -2829,24 +2845,24 @@ function gn(t) {
|
|
|
2829
2845
|
return 0;
|
|
2830
2846
|
}
|
|
2831
2847
|
q.prototype.eventNames = function() {
|
|
2832
|
-
return this._eventsCount > 0 ?
|
|
2848
|
+
return this._eventsCount > 0 ? gt(this._events) : [];
|
|
2833
2849
|
};
|
|
2834
2850
|
function mn(t, e) {
|
|
2835
2851
|
for (var r = new Array(e), o = 0; o < e; ++o)
|
|
2836
2852
|
r[o] = t[o];
|
|
2837
2853
|
return r;
|
|
2838
2854
|
}
|
|
2839
|
-
function
|
|
2855
|
+
function bo(t, e) {
|
|
2840
2856
|
for (; e + 1 < t.length; e++)
|
|
2841
2857
|
t[e] = t[e + 1];
|
|
2842
2858
|
t.pop();
|
|
2843
2859
|
}
|
|
2844
|
-
function
|
|
2860
|
+
function wo(t) {
|
|
2845
2861
|
for (var e = new Array(t.length), r = 0; r < e.length; ++r)
|
|
2846
2862
|
e[r] = t[r].listener || t[r];
|
|
2847
2863
|
return e;
|
|
2848
2864
|
}
|
|
2849
|
-
function
|
|
2865
|
+
function vo(t, e) {
|
|
2850
2866
|
return new Promise(function(r, o) {
|
|
2851
2867
|
function s(l) {
|
|
2852
2868
|
t.removeListener(e, u), o(l);
|
|
@@ -2854,10 +2870,10 @@ function bo(t, e) {
|
|
|
2854
2870
|
function u() {
|
|
2855
2871
|
typeof t.removeListener == "function" && t.removeListener("error", s), r([].slice.call(arguments));
|
|
2856
2872
|
}
|
|
2857
|
-
bn(t, e, u, { once: !0 }), e !== "error" &&
|
|
2873
|
+
bn(t, e, u, { once: !0 }), e !== "error" && So(t, s, { once: !0 });
|
|
2858
2874
|
});
|
|
2859
2875
|
}
|
|
2860
|
-
function
|
|
2876
|
+
function So(t, e, r) {
|
|
2861
2877
|
typeof t.on == "function" && bn(t, "error", e, r);
|
|
2862
2878
|
}
|
|
2863
2879
|
function bn(t, e, r, o) {
|
|
@@ -2870,7 +2886,7 @@ function bn(t, e, r, o) {
|
|
|
2870
2886
|
else
|
|
2871
2887
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
|
|
2872
2888
|
}
|
|
2873
|
-
var wn = mr.exports,
|
|
2889
|
+
var wn = mr.exports, kt = {}, vn = {}, Sn = function() {
|
|
2874
2890
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2875
2891
|
return !1;
|
|
2876
2892
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2893,33 +2909,33 @@ var wn = mr.exports, Bt = {}, vn = {}, Sn = function() {
|
|
|
2893
2909
|
return !1;
|
|
2894
2910
|
}
|
|
2895
2911
|
return !0;
|
|
2896
|
-
},
|
|
2897
|
-
return
|
|
2898
|
-
}, Cr = typeof Symbol < "u" && Symbol,
|
|
2899
|
-
return typeof Cr != "function" || typeof Symbol != "function" || typeof Cr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
2912
|
+
}, Ao = Sn, br = function() {
|
|
2913
|
+
return Ao() && !!Symbol.toStringTag;
|
|
2914
|
+
}, Cr = typeof Symbol < "u" && Symbol, Eo = Sn, Io = function() {
|
|
2915
|
+
return typeof Cr != "function" || typeof Symbol != "function" || typeof Cr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Eo();
|
|
2900
2916
|
}, Or = {
|
|
2901
2917
|
foo: {}
|
|
2902
|
-
},
|
|
2903
|
-
return { __proto__: Or }.foo === Or.foo && !({ __proto__: null } instanceof
|
|
2904
|
-
},
|
|
2918
|
+
}, Fo = Object, To = function() {
|
|
2919
|
+
return { __proto__: Or }.foo === Or.foo && !({ __proto__: null } instanceof Fo);
|
|
2920
|
+
}, _o = "Function.prototype.bind called on incompatible ", Co = Object.prototype.toString, Oo = Math.max, xo = "[object Function]", xr = function(e, r) {
|
|
2905
2921
|
for (var o = [], s = 0; s < e.length; s += 1)
|
|
2906
2922
|
o[s] = e[s];
|
|
2907
2923
|
for (var u = 0; u < r.length; u += 1)
|
|
2908
2924
|
o[u + e.length] = r[u];
|
|
2909
2925
|
return o;
|
|
2910
|
-
},
|
|
2926
|
+
}, Bo = function(e, r) {
|
|
2911
2927
|
for (var o = [], s = r || 0, u = 0; s < e.length; s += 1, u += 1)
|
|
2912
2928
|
o[u] = e[s];
|
|
2913
2929
|
return o;
|
|
2914
|
-
},
|
|
2930
|
+
}, ko = function(t, e) {
|
|
2915
2931
|
for (var r = "", o = 0; o < t.length; o += 1)
|
|
2916
2932
|
r += t[o], o + 1 < t.length && (r += e);
|
|
2917
2933
|
return r;
|
|
2918
|
-
},
|
|
2934
|
+
}, Po = function(e) {
|
|
2919
2935
|
var r = this;
|
|
2920
|
-
if (typeof r != "function" ||
|
|
2921
|
-
throw new TypeError(
|
|
2922
|
-
for (var o =
|
|
2936
|
+
if (typeof r != "function" || Co.apply(r) !== xo)
|
|
2937
|
+
throw new TypeError(_o + r);
|
|
2938
|
+
for (var o = Bo(arguments, 1), s, u = function() {
|
|
2923
2939
|
if (this instanceof s) {
|
|
2924
2940
|
var g = r.apply(
|
|
2925
2941
|
this,
|
|
@@ -2931,43 +2947,43 @@ var wn = mr.exports, Bt = {}, vn = {}, Sn = function() {
|
|
|
2931
2947
|
e,
|
|
2932
2948
|
xr(o, arguments)
|
|
2933
2949
|
);
|
|
2934
|
-
}, l =
|
|
2950
|
+
}, l = Oo(0, r.length - o.length), f = [], p = 0; p < l; p++)
|
|
2935
2951
|
f[p] = "$" + p;
|
|
2936
|
-
if (s = Function("binder", "return function (" +
|
|
2937
|
-
var
|
|
2952
|
+
if (s = Function("binder", "return function (" + ko(f, ",") + "){ return binder.apply(this,arguments); }")(u), r.prototype) {
|
|
2953
|
+
var w = function() {
|
|
2938
2954
|
};
|
|
2939
|
-
|
|
2955
|
+
w.prototype = r.prototype, s.prototype = new w(), w.prototype = null;
|
|
2940
2956
|
}
|
|
2941
2957
|
return s;
|
|
2942
|
-
},
|
|
2943
|
-
return
|
|
2944
|
-
}, $, Xe = SyntaxError, En = Function, Ye = TypeError,
|
|
2958
|
+
}, Ro = Po, An = Function.prototype.bind || Ro, Br = {}.hasOwnProperty, Ut = Function.prototype.call, Lo = Ut.bind ? Ut.bind(Br) : function(t, e) {
|
|
2959
|
+
return Ut.call(Br, t, e);
|
|
2960
|
+
}, $, Xe = SyntaxError, En = Function, Ye = TypeError, $t = function(t) {
|
|
2945
2961
|
try {
|
|
2946
2962
|
return En('"use strict"; return (' + t + ").constructor;")();
|
|
2947
2963
|
} catch {
|
|
2948
2964
|
}
|
|
2949
|
-
},
|
|
2950
|
-
if (
|
|
2965
|
+
}, je = Object.getOwnPropertyDescriptor;
|
|
2966
|
+
if (je)
|
|
2951
2967
|
try {
|
|
2952
|
-
|
|
2968
|
+
je({}, "");
|
|
2953
2969
|
} catch {
|
|
2954
|
-
|
|
2970
|
+
je = null;
|
|
2955
2971
|
}
|
|
2956
|
-
var
|
|
2972
|
+
var Dt = function() {
|
|
2957
2973
|
throw new Ye();
|
|
2958
|
-
},
|
|
2974
|
+
}, No = je ? function() {
|
|
2959
2975
|
try {
|
|
2960
|
-
return arguments.callee,
|
|
2976
|
+
return arguments.callee, Dt;
|
|
2961
2977
|
} catch {
|
|
2962
2978
|
try {
|
|
2963
|
-
return
|
|
2979
|
+
return je(arguments, "callee").get;
|
|
2964
2980
|
} catch {
|
|
2965
|
-
return
|
|
2981
|
+
return Dt;
|
|
2966
2982
|
}
|
|
2967
2983
|
}
|
|
2968
|
-
}() :
|
|
2984
|
+
}() : Dt, Qe = Io(), Uo = To(), X = Object.getPrototypeOf || (Uo ? function(t) {
|
|
2969
2985
|
return t.__proto__;
|
|
2970
|
-
} : null), ze = {},
|
|
2986
|
+
} : null), ze = {}, $o = typeof Uint8Array > "u" || !X ? $ : X(Uint8Array), Ve = {
|
|
2971
2987
|
"%AggregateError%": typeof AggregateError > "u" ? $ : AggregateError,
|
|
2972
2988
|
"%Array%": Array,
|
|
2973
2989
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? $ : ArrayBuffer,
|
|
@@ -3024,8 +3040,8 @@ var $t = function() {
|
|
|
3024
3040
|
"%StringIteratorPrototype%": Qe && X ? X(""[Symbol.iterator]()) : $,
|
|
3025
3041
|
"%Symbol%": Qe ? Symbol : $,
|
|
3026
3042
|
"%SyntaxError%": Xe,
|
|
3027
|
-
"%ThrowTypeError%":
|
|
3028
|
-
"%TypedArray%":
|
|
3043
|
+
"%ThrowTypeError%": No,
|
|
3044
|
+
"%TypedArray%": $o,
|
|
3029
3045
|
"%TypeError%": Ye,
|
|
3030
3046
|
"%Uint8Array%": typeof Uint8Array > "u" ? $ : Uint8Array,
|
|
3031
3047
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? $ : Uint8ClampedArray,
|
|
@@ -3040,17 +3056,17 @@ if (X)
|
|
|
3040
3056
|
try {
|
|
3041
3057
|
null.error;
|
|
3042
3058
|
} catch (t) {
|
|
3043
|
-
var
|
|
3044
|
-
Ve["%Error.prototype%"] =
|
|
3059
|
+
var Do = X(X(t));
|
|
3060
|
+
Ve["%Error.prototype%"] = Do;
|
|
3045
3061
|
}
|
|
3046
|
-
var
|
|
3062
|
+
var jo = function t(e) {
|
|
3047
3063
|
var r;
|
|
3048
3064
|
if (e === "%AsyncFunction%")
|
|
3049
|
-
r =
|
|
3065
|
+
r = $t("async function () {}");
|
|
3050
3066
|
else if (e === "%GeneratorFunction%")
|
|
3051
|
-
r =
|
|
3067
|
+
r = $t("function* () {}");
|
|
3052
3068
|
else if (e === "%AsyncGeneratorFunction%")
|
|
3053
|
-
r =
|
|
3069
|
+
r = $t("async function* () {}");
|
|
3054
3070
|
else if (e === "%AsyncGenerator%") {
|
|
3055
3071
|
var o = t("%AsyncGeneratorFunction%");
|
|
3056
3072
|
o && (r = o.prototype);
|
|
@@ -3111,21 +3127,21 @@ var $o = function t(e) {
|
|
|
3111
3127
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
3112
3128
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3113
3129
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3114
|
-
},
|
|
3115
|
-
var r =
|
|
3130
|
+
}, lt = An, Et = Lo, Vo = lt.call(Function.call, Array.prototype.concat), Mo = lt.call(Function.apply, Array.prototype.splice), Pr = lt.call(Function.call, String.prototype.replace), It = lt.call(Function.call, String.prototype.slice), qo = lt.call(Function.call, RegExp.prototype.exec), Qo = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Go = /\\(\\)?/g, zo = function(e) {
|
|
3131
|
+
var r = It(e, 0, 1), o = It(e, -1);
|
|
3116
3132
|
if (r === "%" && o !== "%")
|
|
3117
3133
|
throw new Xe("invalid intrinsic syntax, expected closing `%`");
|
|
3118
3134
|
if (o === "%" && r !== "%")
|
|
3119
3135
|
throw new Xe("invalid intrinsic syntax, expected opening `%`");
|
|
3120
3136
|
var s = [];
|
|
3121
|
-
return Pr(e,
|
|
3122
|
-
s[s.length] = f ? Pr(p,
|
|
3137
|
+
return Pr(e, Qo, function(u, l, f, p) {
|
|
3138
|
+
s[s.length] = f ? Pr(p, Go, "$1") : l || u;
|
|
3123
3139
|
}), s;
|
|
3124
|
-
},
|
|
3140
|
+
}, Ko = function(e, r) {
|
|
3125
3141
|
var o = e, s;
|
|
3126
|
-
if (
|
|
3142
|
+
if (Et(kr, o) && (s = kr[o], o = "%" + s[0] + "%"), Et(Ve, o)) {
|
|
3127
3143
|
var u = Ve[o];
|
|
3128
|
-
if (u === ze && (u =
|
|
3144
|
+
if (u === ze && (u = jo(o)), typeof u > "u" && !r)
|
|
3129
3145
|
throw new Ye("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
3130
3146
|
return {
|
|
3131
3147
|
alias: s,
|
|
@@ -3139,15 +3155,15 @@ var $o = function t(e) {
|
|
|
3139
3155
|
throw new Ye("intrinsic name must be a non-empty string");
|
|
3140
3156
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
3141
3157
|
throw new Ye('"allowMissing" argument must be a boolean');
|
|
3142
|
-
if (
|
|
3158
|
+
if (qo(/^%?[^%]*%?$/, e) === null)
|
|
3143
3159
|
throw new Xe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
3144
|
-
var o =
|
|
3145
|
-
|
|
3146
|
-
for (var g = 1,
|
|
3147
|
-
var E = o[g], F =
|
|
3148
|
-
if ((F === '"' || F === "'" || F === "`" ||
|
|
3160
|
+
var o = zo(e), s = o.length > 0 ? o[0] : "", u = Ko("%" + s + "%", r), l = u.name, f = u.value, p = !1, w = u.alias;
|
|
3161
|
+
w && (s = w[0], Mo(o, Vo([0, 1], w)));
|
|
3162
|
+
for (var g = 1, m = !0; g < o.length; g += 1) {
|
|
3163
|
+
var E = o[g], F = It(E, 0, 1), L = It(E, -1);
|
|
3164
|
+
if ((F === '"' || F === "'" || F === "`" || L === '"' || L === "'" || L === "`") && F !== L)
|
|
3149
3165
|
throw new Xe("property names with quotes must have matching quotes");
|
|
3150
|
-
if ((E === "constructor" || !
|
|
3166
|
+
if ((E === "constructor" || !m) && (p = !0), s += "." + E, l = "%" + s + "%", Et(Ve, l))
|
|
3151
3167
|
f = Ve[l];
|
|
3152
3168
|
else if (f != null) {
|
|
3153
3169
|
if (!(E in f)) {
|
|
@@ -3155,16 +3171,16 @@ var $o = function t(e) {
|
|
|
3155
3171
|
throw new Ye("base intrinsic for " + e + " exists, but the property is not available.");
|
|
3156
3172
|
return;
|
|
3157
3173
|
}
|
|
3158
|
-
if (
|
|
3159
|
-
var P =
|
|
3160
|
-
|
|
3174
|
+
if (je && g + 1 >= o.length) {
|
|
3175
|
+
var P = je(f, E);
|
|
3176
|
+
m = !!P, m && "get" in P && !("originalValue" in P.get) ? f = P.get : f = f[E];
|
|
3161
3177
|
} else
|
|
3162
|
-
|
|
3163
|
-
|
|
3178
|
+
m = Et(f, E), f = f[E];
|
|
3179
|
+
m && !p && (Ve[l] = f);
|
|
3164
3180
|
}
|
|
3165
3181
|
}
|
|
3166
3182
|
return f;
|
|
3167
|
-
}, In = { exports: {} },
|
|
3183
|
+
}, In = { exports: {} }, Ho = et, er = Ho("%Object.defineProperty%", !0), tr = function() {
|
|
3168
3184
|
if (er)
|
|
3169
3185
|
try {
|
|
3170
3186
|
return er({}, "a", { value: 1 }), !0;
|
|
@@ -3182,21 +3198,21 @@ tr.hasArrayLengthDefineBug = function() {
|
|
|
3182
3198
|
return !0;
|
|
3183
3199
|
}
|
|
3184
3200
|
};
|
|
3185
|
-
var Fn = tr,
|
|
3186
|
-
if (
|
|
3201
|
+
var Fn = tr, Wo = et, mt = Wo("%Object.getOwnPropertyDescriptor%", !0);
|
|
3202
|
+
if (mt)
|
|
3187
3203
|
try {
|
|
3188
|
-
|
|
3204
|
+
mt([], "length");
|
|
3189
3205
|
} catch {
|
|
3190
|
-
|
|
3206
|
+
mt = null;
|
|
3191
3207
|
}
|
|
3192
|
-
var wr =
|
|
3208
|
+
var wr = mt, Jo = Fn(), vr = et, ut = Jo && vr("%Object.defineProperty%", !0);
|
|
3193
3209
|
if (ut)
|
|
3194
3210
|
try {
|
|
3195
3211
|
ut({}, "a", { value: 1 });
|
|
3196
3212
|
} catch {
|
|
3197
3213
|
ut = !1;
|
|
3198
3214
|
}
|
|
3199
|
-
var
|
|
3215
|
+
var Yo = vr("%SyntaxError%"), Ge = vr("%TypeError%"), Rr = wr, Xo = function(e, r, o) {
|
|
3200
3216
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
3201
3217
|
throw new Ge("`obj` must be an object or a function`");
|
|
3202
3218
|
if (typeof r != "string" && typeof r != "symbol")
|
|
@@ -3220,21 +3236,21 @@ var Wo = vr("%SyntaxError%"), Ge = vr("%TypeError%"), Rr = wr, Jo = function(e,
|
|
|
3220
3236
|
else if (f || !s && !u && !l)
|
|
3221
3237
|
e[r] = o;
|
|
3222
3238
|
else
|
|
3223
|
-
throw new
|
|
3224
|
-
}, Tn = et,
|
|
3239
|
+
throw new Yo("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
3240
|
+
}, Tn = et, Lr = Xo, Zo = Fn(), Nr = wr, Ur = Tn("%TypeError%"), es = Tn("%Math.floor%"), ts = function(e, r) {
|
|
3225
3241
|
if (typeof e != "function")
|
|
3226
3242
|
throw new Ur("`fn` is not a function");
|
|
3227
|
-
if (typeof r != "number" || r < 0 || r > 4294967295 ||
|
|
3243
|
+
if (typeof r != "number" || r < 0 || r > 4294967295 || es(r) !== r)
|
|
3228
3244
|
throw new Ur("`length` must be a positive 32-bit integer");
|
|
3229
3245
|
var o = arguments.length > 2 && !!arguments[2], s = !0, u = !0;
|
|
3230
|
-
if ("length" in e &&
|
|
3231
|
-
var l =
|
|
3246
|
+
if ("length" in e && Nr) {
|
|
3247
|
+
var l = Nr(e, "length");
|
|
3232
3248
|
l && !l.configurable && (s = !1), l && !l.writable && (u = !1);
|
|
3233
3249
|
}
|
|
3234
|
-
return (s || u || !o) && (
|
|
3250
|
+
return (s || u || !o) && (Zo ? Lr(e, "length", r, !0, !0) : Lr(e, "length", r)), e;
|
|
3235
3251
|
};
|
|
3236
3252
|
(function(t) {
|
|
3237
|
-
var e = An, r = et, o =
|
|
3253
|
+
var e = An, r = et, o = ts, s = r("%TypeError%"), u = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), f = r("%Reflect.apply%", !0) || e.call(l, u), p = r("%Object.defineProperty%", !0), w = r("%Math.max%");
|
|
3238
3254
|
if (p)
|
|
3239
3255
|
try {
|
|
3240
3256
|
p({}, "a", { value: 1 });
|
|
@@ -3247,7 +3263,7 @@ var Wo = vr("%SyntaxError%"), Ge = vr("%TypeError%"), Rr = wr, Jo = function(e,
|
|
|
3247
3263
|
var F = f(e, l, arguments);
|
|
3248
3264
|
return o(
|
|
3249
3265
|
F,
|
|
3250
|
-
1 +
|
|
3266
|
+
1 + w(0, E.length - (arguments.length - 1)),
|
|
3251
3267
|
!0
|
|
3252
3268
|
);
|
|
3253
3269
|
};
|
|
@@ -3256,84 +3272,84 @@ var Wo = vr("%SyntaxError%"), Ge = vr("%TypeError%"), Rr = wr, Jo = function(e,
|
|
|
3256
3272
|
};
|
|
3257
3273
|
p ? p(t.exports, "apply", { value: g }) : t.exports.apply = g;
|
|
3258
3274
|
})(In);
|
|
3259
|
-
var _n = In.exports, Cn = et, On = _n,
|
|
3275
|
+
var _n = In.exports, Cn = et, On = _n, rs = On(Cn("String.prototype.indexOf")), xn = function(e, r) {
|
|
3260
3276
|
var o = Cn(e, !!r);
|
|
3261
|
-
return typeof o == "function" &&
|
|
3262
|
-
},
|
|
3263
|
-
return
|
|
3277
|
+
return typeof o == "function" && rs(e, ".prototype.") > -1 ? On(o) : o;
|
|
3278
|
+
}, ns = br(), is = xn, rr = is("Object.prototype.toString"), Pt = function(e) {
|
|
3279
|
+
return ns && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : rr(e) === "[object Arguments]";
|
|
3264
3280
|
}, Bn = function(e) {
|
|
3265
|
-
return
|
|
3266
|
-
},
|
|
3267
|
-
return
|
|
3281
|
+
return Pt(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && rr(e) !== "[object Array]" && rr(e.callee) === "[object Function]";
|
|
3282
|
+
}, os = function() {
|
|
3283
|
+
return Pt(arguments);
|
|
3268
3284
|
}();
|
|
3269
|
-
|
|
3270
|
-
var
|
|
3285
|
+
Pt.isLegacyArguments = Bn;
|
|
3286
|
+
var ss = os ? Pt : Bn, as = Object.prototype.toString, us = Function.prototype.toString, cs = /^\s*(?:function)?\*/, kn = br(), jt = Object.getPrototypeOf, fs = function() {
|
|
3271
3287
|
if (!kn)
|
|
3272
3288
|
return !1;
|
|
3273
3289
|
try {
|
|
3274
3290
|
return Function("return function*() {}")();
|
|
3275
3291
|
} catch {
|
|
3276
3292
|
}
|
|
3277
|
-
},
|
|
3293
|
+
}, Vt, ls = function(e) {
|
|
3278
3294
|
if (typeof e != "function")
|
|
3279
3295
|
return !1;
|
|
3280
|
-
if (
|
|
3296
|
+
if (cs.test(us.call(e)))
|
|
3281
3297
|
return !0;
|
|
3282
3298
|
if (!kn) {
|
|
3283
|
-
var r =
|
|
3299
|
+
var r = as.call(e);
|
|
3284
3300
|
return r === "[object GeneratorFunction]";
|
|
3285
3301
|
}
|
|
3286
3302
|
if (!jt)
|
|
3287
3303
|
return !1;
|
|
3288
|
-
if (typeof
|
|
3289
|
-
var o =
|
|
3290
|
-
|
|
3304
|
+
if (typeof Vt > "u") {
|
|
3305
|
+
var o = fs();
|
|
3306
|
+
Vt = o ? jt(o) : !1;
|
|
3291
3307
|
}
|
|
3292
|
-
return jt(e) ===
|
|
3293
|
-
}, Pn = Function.prototype.toString, He = typeof Reflect == "object" && Reflect !== null && Reflect.apply, nr,
|
|
3308
|
+
return jt(e) === Vt;
|
|
3309
|
+
}, Pn = Function.prototype.toString, He = typeof Reflect == "object" && Reflect !== null && Reflect.apply, nr, bt;
|
|
3294
3310
|
if (typeof He == "function" && typeof Object.defineProperty == "function")
|
|
3295
3311
|
try {
|
|
3296
3312
|
nr = Object.defineProperty({}, "length", {
|
|
3297
3313
|
get: function() {
|
|
3298
|
-
throw
|
|
3314
|
+
throw bt;
|
|
3299
3315
|
}
|
|
3300
|
-
}),
|
|
3316
|
+
}), bt = {}, He(function() {
|
|
3301
3317
|
throw 42;
|
|
3302
3318
|
}, null, nr);
|
|
3303
3319
|
} catch (t) {
|
|
3304
|
-
t !==
|
|
3320
|
+
t !== bt && (He = null);
|
|
3305
3321
|
}
|
|
3306
3322
|
else
|
|
3307
3323
|
He = null;
|
|
3308
|
-
var
|
|
3324
|
+
var hs = /^\s*class\b/, ir = function(e) {
|
|
3309
3325
|
try {
|
|
3310
3326
|
var r = Pn.call(e);
|
|
3311
|
-
return
|
|
3327
|
+
return hs.test(r);
|
|
3312
3328
|
} catch {
|
|
3313
3329
|
return !1;
|
|
3314
3330
|
}
|
|
3315
|
-
},
|
|
3331
|
+
}, Mt = function(e) {
|
|
3316
3332
|
try {
|
|
3317
3333
|
return ir(e) ? !1 : (Pn.call(e), !0);
|
|
3318
3334
|
} catch {
|
|
3319
3335
|
return !1;
|
|
3320
3336
|
}
|
|
3321
|
-
},
|
|
3337
|
+
}, wt = Object.prototype.toString, ps = "[object Object]", ds = "[object Function]", ys = "[object GeneratorFunction]", gs = "[object HTMLAllCollection]", ms = "[object HTML document.all class]", bs = "[object HTMLCollection]", ws = typeof Symbol == "function" && !!Symbol.toStringTag, vs = !(0 in [,]), or = function() {
|
|
3322
3338
|
return !1;
|
|
3323
3339
|
};
|
|
3324
3340
|
if (typeof document == "object") {
|
|
3325
|
-
var
|
|
3326
|
-
|
|
3327
|
-
if ((
|
|
3341
|
+
var Ss = document.all;
|
|
3342
|
+
wt.call(Ss) === wt.call(document.all) && (or = function(e) {
|
|
3343
|
+
if ((vs || !e) && (typeof e > "u" || typeof e == "object"))
|
|
3328
3344
|
try {
|
|
3329
|
-
var r =
|
|
3330
|
-
return (r ===
|
|
3345
|
+
var r = wt.call(e);
|
|
3346
|
+
return (r === gs || r === ms || r === bs || r === ps) && e("") == null;
|
|
3331
3347
|
} catch {
|
|
3332
3348
|
}
|
|
3333
3349
|
return !1;
|
|
3334
3350
|
});
|
|
3335
3351
|
}
|
|
3336
|
-
var
|
|
3352
|
+
var As = He ? function(e) {
|
|
3337
3353
|
if (or(e))
|
|
3338
3354
|
return !0;
|
|
3339
3355
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
@@ -3341,36 +3357,36 @@ var vs = He ? function(e) {
|
|
|
3341
3357
|
try {
|
|
3342
3358
|
He(e, null, nr);
|
|
3343
3359
|
} catch (r) {
|
|
3344
|
-
if (r !==
|
|
3360
|
+
if (r !== bt)
|
|
3345
3361
|
return !1;
|
|
3346
3362
|
}
|
|
3347
|
-
return !ir(e) &&
|
|
3363
|
+
return !ir(e) && Mt(e);
|
|
3348
3364
|
} : function(e) {
|
|
3349
3365
|
if (or(e))
|
|
3350
3366
|
return !0;
|
|
3351
3367
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
3352
3368
|
return !1;
|
|
3353
|
-
if (
|
|
3354
|
-
return
|
|
3369
|
+
if (ws)
|
|
3370
|
+
return Mt(e);
|
|
3355
3371
|
if (ir(e))
|
|
3356
3372
|
return !1;
|
|
3357
|
-
var r =
|
|
3358
|
-
return r !==
|
|
3359
|
-
},
|
|
3373
|
+
var r = wt.call(e);
|
|
3374
|
+
return r !== ds && r !== ys && !/^\[object HTML/.test(r) ? !1 : Mt(e);
|
|
3375
|
+
}, Es = As, Is = Object.prototype.toString, Rn = Object.prototype.hasOwnProperty, Fs = function(e, r, o) {
|
|
3360
3376
|
for (var s = 0, u = e.length; s < u; s++)
|
|
3361
3377
|
Rn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
|
|
3362
|
-
},
|
|
3378
|
+
}, Ts = function(e, r, o) {
|
|
3363
3379
|
for (var s = 0, u = e.length; s < u; s++)
|
|
3364
3380
|
o == null ? r(e.charAt(s), s, e) : r.call(o, e.charAt(s), s, e);
|
|
3365
|
-
},
|
|
3381
|
+
}, _s = function(e, r, o) {
|
|
3366
3382
|
for (var s in e)
|
|
3367
3383
|
Rn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
|
|
3368
|
-
},
|
|
3369
|
-
if (!
|
|
3384
|
+
}, Cs = function(e, r, o) {
|
|
3385
|
+
if (!Es(r))
|
|
3370
3386
|
throw new TypeError("iterator must be a function");
|
|
3371
3387
|
var s;
|
|
3372
|
-
arguments.length >= 3 && (s = o),
|
|
3373
|
-
},
|
|
3388
|
+
arguments.length >= 3 && (s = o), Is.call(e) === "[object Array]" ? Fs(e, r, s) : typeof e == "string" ? Ts(e, r, s) : _s(e, r, s);
|
|
3389
|
+
}, Os = Cs, qt = [
|
|
3374
3390
|
"BigInt64Array",
|
|
3375
3391
|
"BigUint64Array",
|
|
3376
3392
|
"Float32Array",
|
|
@@ -3382,74 +3398,74 @@ var vs = He ? function(e) {
|
|
|
3382
3398
|
"Uint32Array",
|
|
3383
3399
|
"Uint8Array",
|
|
3384
3400
|
"Uint8ClampedArray"
|
|
3385
|
-
],
|
|
3386
|
-
for (var e = [], r = 0; r <
|
|
3387
|
-
typeof
|
|
3401
|
+
], xs = typeof globalThis > "u" ? Yr : globalThis, Bs = function() {
|
|
3402
|
+
for (var e = [], r = 0; r < qt.length; r++)
|
|
3403
|
+
typeof xs[qt[r]] == "function" && (e[e.length] = qt[r]);
|
|
3388
3404
|
return e;
|
|
3389
|
-
},
|
|
3405
|
+
}, Ft = Os, ks = Bs, $r = _n, Sr = xn, vt = wr, Ps = Sr("Object.prototype.toString"), Ln = br(), Dr = typeof globalThis > "u" ? Yr : globalThis, sr = ks(), Ar = Sr("String.prototype.slice"), Qt = Object.getPrototypeOf, Rs = Sr("Array.prototype.indexOf", !0) || function(e, r) {
|
|
3390
3406
|
for (var o = 0; o < e.length; o += 1)
|
|
3391
3407
|
if (e[o] === r)
|
|
3392
3408
|
return o;
|
|
3393
3409
|
return -1;
|
|
3394
|
-
},
|
|
3395
|
-
|
|
3396
|
-
var e = new
|
|
3410
|
+
}, Tt = { __proto__: null };
|
|
3411
|
+
Ln && vt && Qt ? Ft(sr, function(t) {
|
|
3412
|
+
var e = new Dr[t]();
|
|
3397
3413
|
if (Symbol.toStringTag in e) {
|
|
3398
|
-
var r =
|
|
3414
|
+
var r = Qt(e), o = vt(r, Symbol.toStringTag);
|
|
3399
3415
|
if (!o) {
|
|
3400
|
-
var s =
|
|
3401
|
-
o =
|
|
3416
|
+
var s = Qt(r);
|
|
3417
|
+
o = vt(s, Symbol.toStringTag);
|
|
3402
3418
|
}
|
|
3403
|
-
|
|
3419
|
+
Tt["$" + t] = $r(o.get);
|
|
3404
3420
|
}
|
|
3405
|
-
}) :
|
|
3406
|
-
var e = new
|
|
3407
|
-
r && (
|
|
3421
|
+
}) : Ft(sr, function(t) {
|
|
3422
|
+
var e = new Dr[t](), r = e.slice || e.set;
|
|
3423
|
+
r && (Tt["$" + t] = $r(r));
|
|
3408
3424
|
});
|
|
3409
|
-
var
|
|
3425
|
+
var Ls = function(e) {
|
|
3410
3426
|
var r = !1;
|
|
3411
|
-
return
|
|
3427
|
+
return Ft(Tt, function(o, s) {
|
|
3412
3428
|
if (!r)
|
|
3413
3429
|
try {
|
|
3414
3430
|
"$" + o(e) === s && (r = Ar(s, 1));
|
|
3415
3431
|
} catch {
|
|
3416
3432
|
}
|
|
3417
3433
|
}), r;
|
|
3418
|
-
},
|
|
3434
|
+
}, Ns = function(e) {
|
|
3419
3435
|
var r = !1;
|
|
3420
|
-
return
|
|
3436
|
+
return Ft(Tt, function(o, s) {
|
|
3421
3437
|
if (!r)
|
|
3422
3438
|
try {
|
|
3423
3439
|
o(e), r = Ar(s, 1);
|
|
3424
3440
|
} catch {
|
|
3425
3441
|
}
|
|
3426
3442
|
}), r;
|
|
3427
|
-
},
|
|
3443
|
+
}, Nn = function(e) {
|
|
3428
3444
|
if (!e || typeof e != "object")
|
|
3429
3445
|
return !1;
|
|
3430
|
-
if (!
|
|
3431
|
-
var r = Ar(
|
|
3432
|
-
return
|
|
3446
|
+
if (!Ln) {
|
|
3447
|
+
var r = Ar(Ps(e), 8, -1);
|
|
3448
|
+
return Rs(sr, r) > -1 ? r : r !== "Object" ? !1 : Ns(e);
|
|
3433
3449
|
}
|
|
3434
|
-
return
|
|
3435
|
-
},
|
|
3436
|
-
return !!
|
|
3450
|
+
return vt ? Ls(e) : null;
|
|
3451
|
+
}, Us = Nn, $s = function(e) {
|
|
3452
|
+
return !!Us(e);
|
|
3437
3453
|
};
|
|
3438
3454
|
(function(t) {
|
|
3439
|
-
var e =
|
|
3455
|
+
var e = ss, r = ls, o = Nn, s = $s;
|
|
3440
3456
|
function u(S) {
|
|
3441
3457
|
return S.call.bind(S);
|
|
3442
3458
|
}
|
|
3443
|
-
var l = typeof BigInt < "u", f = typeof Symbol < "u", p = u(Object.prototype.toString),
|
|
3459
|
+
var l = typeof BigInt < "u", f = typeof Symbol < "u", p = u(Object.prototype.toString), w = u(Number.prototype.valueOf), g = u(String.prototype.valueOf), m = u(Boolean.prototype.valueOf);
|
|
3444
3460
|
if (l)
|
|
3445
3461
|
var E = u(BigInt.prototype.valueOf);
|
|
3446
3462
|
if (f)
|
|
3447
3463
|
var F = u(Symbol.prototype.valueOf);
|
|
3448
|
-
function
|
|
3464
|
+
function L(S, pt) {
|
|
3449
3465
|
if (typeof S != "object")
|
|
3450
3466
|
return !1;
|
|
3451
3467
|
try {
|
|
3452
|
-
return
|
|
3468
|
+
return pt(S), !0;
|
|
3453
3469
|
} catch {
|
|
3454
3470
|
return !1;
|
|
3455
3471
|
}
|
|
@@ -3460,7 +3476,7 @@ var Ps = function(e) {
|
|
|
3460
3476
|
}
|
|
3461
3477
|
t.isPromise = P;
|
|
3462
3478
|
function K(S) {
|
|
3463
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(S) : s(S) ||
|
|
3479
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(S) : s(S) || v(S);
|
|
3464
3480
|
}
|
|
3465
3481
|
t.isArrayBufferView = K;
|
|
3466
3482
|
function I(S) {
|
|
@@ -3471,10 +3487,10 @@ var Ps = function(e) {
|
|
|
3471
3487
|
return o(S) === "Uint8ClampedArray";
|
|
3472
3488
|
}
|
|
3473
3489
|
t.isUint8ClampedArray = _;
|
|
3474
|
-
function
|
|
3490
|
+
function D(S) {
|
|
3475
3491
|
return o(S) === "Uint16Array";
|
|
3476
3492
|
}
|
|
3477
|
-
t.isUint16Array =
|
|
3493
|
+
t.isUint16Array = D;
|
|
3478
3494
|
function U(S) {
|
|
3479
3495
|
return o(S) === "Uint32Array";
|
|
3480
3496
|
}
|
|
@@ -3551,18 +3567,18 @@ var Ps = function(e) {
|
|
|
3551
3567
|
return p(S) === "[object DataView]";
|
|
3552
3568
|
}
|
|
3553
3569
|
d.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && d(new DataView(new ArrayBuffer(1), 0, 1));
|
|
3554
|
-
function
|
|
3570
|
+
function v(S) {
|
|
3555
3571
|
return typeof DataView > "u" ? !1 : d.working ? d(S) : S instanceof DataView;
|
|
3556
3572
|
}
|
|
3557
|
-
t.isDataView =
|
|
3573
|
+
t.isDataView = v;
|
|
3558
3574
|
var A = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
|
|
3559
3575
|
function C(S) {
|
|
3560
3576
|
return p(S) === "[object SharedArrayBuffer]";
|
|
3561
3577
|
}
|
|
3562
|
-
function
|
|
3578
|
+
function j(S) {
|
|
3563
3579
|
return typeof A > "u" ? !1 : (typeof C.working > "u" && (C.working = C(new A())), C.working ? C(S) : S instanceof A);
|
|
3564
3580
|
}
|
|
3565
|
-
t.isSharedArrayBuffer =
|
|
3581
|
+
t.isSharedArrayBuffer = j;
|
|
3566
3582
|
function V(S) {
|
|
3567
3583
|
return p(S) === "[object AsyncFunction]";
|
|
3568
3584
|
}
|
|
@@ -3571,10 +3587,10 @@ var Ps = function(e) {
|
|
|
3571
3587
|
return p(S) === "[object Map Iterator]";
|
|
3572
3588
|
}
|
|
3573
3589
|
t.isMapIterator = B;
|
|
3574
|
-
function
|
|
3590
|
+
function N(S) {
|
|
3575
3591
|
return p(S) === "[object Set Iterator]";
|
|
3576
3592
|
}
|
|
3577
|
-
t.isSetIterator =
|
|
3593
|
+
t.isSetIterator = N;
|
|
3578
3594
|
function M(S) {
|
|
3579
3595
|
return p(S) === "[object Generator]";
|
|
3580
3596
|
}
|
|
@@ -3584,33 +3600,33 @@ var Ps = function(e) {
|
|
|
3584
3600
|
}
|
|
3585
3601
|
t.isWebAssemblyCompiledModule = te;
|
|
3586
3602
|
function ye(S) {
|
|
3587
|
-
return
|
|
3603
|
+
return L(S, w);
|
|
3588
3604
|
}
|
|
3589
3605
|
t.isNumberObject = ye;
|
|
3590
3606
|
function he(S) {
|
|
3591
|
-
return
|
|
3607
|
+
return L(S, g);
|
|
3592
3608
|
}
|
|
3593
3609
|
t.isStringObject = he;
|
|
3594
3610
|
function oe(S) {
|
|
3595
|
-
return
|
|
3611
|
+
return L(S, m);
|
|
3596
3612
|
}
|
|
3597
3613
|
t.isBooleanObject = oe;
|
|
3598
3614
|
function Me(S) {
|
|
3599
|
-
return l &&
|
|
3615
|
+
return l && L(S, E);
|
|
3600
3616
|
}
|
|
3601
3617
|
t.isBigIntObject = Me;
|
|
3602
|
-
function
|
|
3603
|
-
return f &&
|
|
3618
|
+
function ht(S) {
|
|
3619
|
+
return f && L(S, F);
|
|
3604
3620
|
}
|
|
3605
|
-
t.isSymbolObject =
|
|
3621
|
+
t.isSymbolObject = ht;
|
|
3606
3622
|
function it(S) {
|
|
3607
|
-
return ye(S) || he(S) || oe(S) || Me(S) ||
|
|
3623
|
+
return ye(S) || he(S) || oe(S) || Me(S) || ht(S);
|
|
3608
3624
|
}
|
|
3609
3625
|
t.isBoxedPrimitive = it;
|
|
3610
|
-
function
|
|
3611
|
-
return typeof Uint8Array < "u" && (H(S) ||
|
|
3626
|
+
function Rt(S) {
|
|
3627
|
+
return typeof Uint8Array < "u" && (H(S) || j(S));
|
|
3612
3628
|
}
|
|
3613
|
-
t.isAnyArrayBuffer =
|
|
3629
|
+
t.isAnyArrayBuffer = Rt, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(S) {
|
|
3614
3630
|
Object.defineProperty(t, S, {
|
|
3615
3631
|
enumerable: !1,
|
|
3616
3632
|
value: function() {
|
|
@@ -3619,7 +3635,7 @@ var Ps = function(e) {
|
|
|
3619
3635
|
});
|
|
3620
3636
|
});
|
|
3621
3637
|
})(vn);
|
|
3622
|
-
var
|
|
3638
|
+
var Ds = function(e) {
|
|
3623
3639
|
return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
|
|
3624
3640
|
}, ar = { exports: {} };
|
|
3625
3641
|
typeof Object.create == "function" ? ar.exports = function(e, r) {
|
|
@@ -3639,25 +3655,25 @@ typeof Object.create == "function" ? ar.exports = function(e, r) {
|
|
|
3639
3655
|
o.prototype = r.prototype, e.prototype = new o(), e.prototype.constructor = e;
|
|
3640
3656
|
}
|
|
3641
3657
|
};
|
|
3642
|
-
var
|
|
3658
|
+
var js = ar.exports;
|
|
3643
3659
|
(function(t) {
|
|
3644
|
-
var e = Object.getOwnPropertyDescriptors || function(
|
|
3645
|
-
for (var A = Object.keys(
|
|
3646
|
-
C[A[
|
|
3660
|
+
var e = Object.getOwnPropertyDescriptors || function(v) {
|
|
3661
|
+
for (var A = Object.keys(v), C = {}, j = 0; j < A.length; j++)
|
|
3662
|
+
C[A[j]] = Object.getOwnPropertyDescriptor(v, A[j]);
|
|
3647
3663
|
return C;
|
|
3648
3664
|
}, r = /%[sdj%]/g;
|
|
3649
3665
|
t.format = function(d) {
|
|
3650
3666
|
if (!T(d)) {
|
|
3651
|
-
for (var
|
|
3652
|
-
|
|
3653
|
-
return
|
|
3667
|
+
for (var v = [], A = 0; A < arguments.length; A++)
|
|
3668
|
+
v.push(l(arguments[A]));
|
|
3669
|
+
return v.join(" ");
|
|
3654
3670
|
}
|
|
3655
|
-
for (var A = 1, C = arguments,
|
|
3656
|
-
if (
|
|
3671
|
+
for (var A = 1, C = arguments, j = C.length, V = String(d).replace(r, function(N) {
|
|
3672
|
+
if (N === "%%")
|
|
3657
3673
|
return "%";
|
|
3658
|
-
if (A >=
|
|
3659
|
-
return
|
|
3660
|
-
switch (
|
|
3674
|
+
if (A >= j)
|
|
3675
|
+
return N;
|
|
3676
|
+
switch (N) {
|
|
3661
3677
|
case "%s":
|
|
3662
3678
|
return String(C[A++]);
|
|
3663
3679
|
case "%d":
|
|
@@ -3669,24 +3685,24 @@ var $s = ar.exports;
|
|
|
3669
3685
|
return "[Circular]";
|
|
3670
3686
|
}
|
|
3671
3687
|
default:
|
|
3672
|
-
return
|
|
3688
|
+
return N;
|
|
3673
3689
|
}
|
|
3674
|
-
}), B = C[A]; A <
|
|
3690
|
+
}), B = C[A]; A < j; B = C[++A])
|
|
3675
3691
|
_(B) || !ie(B) ? V += " " + B : V += " " + l(B);
|
|
3676
3692
|
return V;
|
|
3677
|
-
}, t.deprecate = function(d,
|
|
3693
|
+
}, t.deprecate = function(d, v) {
|
|
3678
3694
|
if (typeof O.process < "u" && O.process.noDeprecation === !0)
|
|
3679
3695
|
return d;
|
|
3680
3696
|
if (typeof O.process > "u")
|
|
3681
3697
|
return function() {
|
|
3682
|
-
return t.deprecate(d,
|
|
3698
|
+
return t.deprecate(d, v).apply(this, arguments);
|
|
3683
3699
|
};
|
|
3684
3700
|
var A = !1;
|
|
3685
3701
|
function C() {
|
|
3686
3702
|
if (!A) {
|
|
3687
3703
|
if (O.process.throwDeprecation)
|
|
3688
|
-
throw new Error(
|
|
3689
|
-
O.process.traceDeprecation ? console.trace(
|
|
3704
|
+
throw new Error(v);
|
|
3705
|
+
O.process.traceDeprecation ? console.trace(v) : console.error(v), A = !0;
|
|
3690
3706
|
}
|
|
3691
3707
|
return d.apply(this, arguments);
|
|
3692
3708
|
}
|
|
@@ -3700,22 +3716,22 @@ var $s = ar.exports;
|
|
|
3700
3716
|
t.debuglog = function(d) {
|
|
3701
3717
|
if (d = d.toUpperCase(), !o[d])
|
|
3702
3718
|
if (s.test(d)) {
|
|
3703
|
-
var
|
|
3719
|
+
var v = O.process.pid;
|
|
3704
3720
|
o[d] = function() {
|
|
3705
3721
|
var A = t.format.apply(t, arguments);
|
|
3706
|
-
console.error("%s %d: %s", d,
|
|
3722
|
+
console.error("%s %d: %s", d, v, A);
|
|
3707
3723
|
};
|
|
3708
3724
|
} else
|
|
3709
3725
|
o[d] = function() {
|
|
3710
3726
|
};
|
|
3711
3727
|
return o[d];
|
|
3712
3728
|
};
|
|
3713
|
-
function l(d,
|
|
3729
|
+
function l(d, v) {
|
|
3714
3730
|
var A = {
|
|
3715
3731
|
seen: [],
|
|
3716
3732
|
stylize: p
|
|
3717
3733
|
};
|
|
3718
|
-
return arguments.length >= 3 && (A.depth = arguments[2]), arguments.length >= 4 && (A.colors = arguments[3]), I(
|
|
3734
|
+
return arguments.length >= 3 && (A.depth = arguments[2]), arguments.length >= 4 && (A.colors = arguments[3]), I(v) ? A.showHidden = v : v && t._extend(A, v), k(A.showHidden) && (A.showHidden = !1), k(A.depth) && (A.depth = 2), k(A.colors) && (A.colors = !1), k(A.customInspect) && (A.customInspect = !0), A.colors && (A.stylize = f), g(A, d, A.depth);
|
|
3719
3735
|
}
|
|
3720
3736
|
t.inspect = l, l.colors = {
|
|
3721
3737
|
bold: [1, 22],
|
|
@@ -3742,90 +3758,90 @@ var $s = ar.exports;
|
|
|
3742
3758
|
// "name": intentionally not styling
|
|
3743
3759
|
regexp: "red"
|
|
3744
3760
|
};
|
|
3745
|
-
function f(d,
|
|
3746
|
-
var A = l.styles[
|
|
3761
|
+
function f(d, v) {
|
|
3762
|
+
var A = l.styles[v];
|
|
3747
3763
|
return A ? "\x1B[" + l.colors[A][0] + "m" + d + "\x1B[" + l.colors[A][1] + "m" : d;
|
|
3748
3764
|
}
|
|
3749
|
-
function p(d,
|
|
3765
|
+
function p(d, v) {
|
|
3750
3766
|
return d;
|
|
3751
3767
|
}
|
|
3752
|
-
function
|
|
3753
|
-
var
|
|
3768
|
+
function w(d) {
|
|
3769
|
+
var v = {};
|
|
3754
3770
|
return d.forEach(function(A, C) {
|
|
3755
|
-
|
|
3756
|
-
}),
|
|
3757
|
-
}
|
|
3758
|
-
function g(d,
|
|
3759
|
-
if (d.customInspect &&
|
|
3760
|
-
|
|
3761
|
-
!(
|
|
3762
|
-
var C =
|
|
3771
|
+
v[A] = !0;
|
|
3772
|
+
}), v;
|
|
3773
|
+
}
|
|
3774
|
+
function g(d, v, A) {
|
|
3775
|
+
if (d.customInspect && v && ce(v.inspect) && // Filter out the util module, it's inspect function is special
|
|
3776
|
+
v.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
|
|
3777
|
+
!(v.constructor && v.constructor.prototype === v)) {
|
|
3778
|
+
var C = v.inspect(A, d);
|
|
3763
3779
|
return T(C) || (C = g(d, C, A)), C;
|
|
3764
3780
|
}
|
|
3765
|
-
var
|
|
3766
|
-
if (
|
|
3767
|
-
return
|
|
3768
|
-
var V = Object.keys(
|
|
3769
|
-
if (d.showHidden && (V = Object.getOwnPropertyNames(
|
|
3770
|
-
return E(
|
|
3781
|
+
var j = m(d, v);
|
|
3782
|
+
if (j)
|
|
3783
|
+
return j;
|
|
3784
|
+
var V = Object.keys(v), B = w(V);
|
|
3785
|
+
if (d.showHidden && (V = Object.getOwnPropertyNames(v)), Se(v) && (V.indexOf("message") >= 0 || V.indexOf("description") >= 0))
|
|
3786
|
+
return E(v);
|
|
3771
3787
|
if (V.length === 0) {
|
|
3772
|
-
if (ce(
|
|
3773
|
-
var
|
|
3774
|
-
return d.stylize("[Function" +
|
|
3788
|
+
if (ce(v)) {
|
|
3789
|
+
var N = v.name ? ": " + v.name : "";
|
|
3790
|
+
return d.stylize("[Function" + N + "]", "special");
|
|
3775
3791
|
}
|
|
3776
|
-
if (G(
|
|
3777
|
-
return d.stylize(RegExp.prototype.toString.call(
|
|
3778
|
-
if (Ce(
|
|
3779
|
-
return d.stylize(Date.prototype.toString.call(
|
|
3780
|
-
if (Se(
|
|
3781
|
-
return E(
|
|
3792
|
+
if (G(v))
|
|
3793
|
+
return d.stylize(RegExp.prototype.toString.call(v), "regexp");
|
|
3794
|
+
if (Ce(v))
|
|
3795
|
+
return d.stylize(Date.prototype.toString.call(v), "date");
|
|
3796
|
+
if (Se(v))
|
|
3797
|
+
return E(v);
|
|
3782
3798
|
}
|
|
3783
3799
|
var M = "", te = !1, ye = ["{", "}"];
|
|
3784
|
-
if (K(
|
|
3785
|
-
var he =
|
|
3800
|
+
if (K(v) && (te = !0, ye = ["[", "]"]), ce(v)) {
|
|
3801
|
+
var he = v.name ? ": " + v.name : "";
|
|
3786
3802
|
M = " [Function" + he + "]";
|
|
3787
3803
|
}
|
|
3788
|
-
if (G(
|
|
3804
|
+
if (G(v) && (M = " " + RegExp.prototype.toString.call(v)), Ce(v) && (M = " " + Date.prototype.toUTCString.call(v)), Se(v) && (M = " " + E(v)), V.length === 0 && (!te || v.length == 0))
|
|
3789
3805
|
return ye[0] + M + ye[1];
|
|
3790
3806
|
if (A < 0)
|
|
3791
|
-
return G(
|
|
3792
|
-
d.seen.push(
|
|
3807
|
+
return G(v) ? d.stylize(RegExp.prototype.toString.call(v), "regexp") : d.stylize("[Object]", "special");
|
|
3808
|
+
d.seen.push(v);
|
|
3793
3809
|
var oe;
|
|
3794
|
-
return te ? oe = F(d,
|
|
3795
|
-
return
|
|
3810
|
+
return te ? oe = F(d, v, A, B, V) : oe = V.map(function(Me) {
|
|
3811
|
+
return L(d, v, A, B, Me, te);
|
|
3796
3812
|
}), d.seen.pop(), P(oe, M, ye);
|
|
3797
3813
|
}
|
|
3798
|
-
function
|
|
3799
|
-
if (k(
|
|
3814
|
+
function m(d, v) {
|
|
3815
|
+
if (k(v))
|
|
3800
3816
|
return d.stylize("undefined", "undefined");
|
|
3801
|
-
if (T(
|
|
3802
|
-
var A = "'" + JSON.stringify(
|
|
3817
|
+
if (T(v)) {
|
|
3818
|
+
var A = "'" + JSON.stringify(v).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
3803
3819
|
return d.stylize(A, "string");
|
|
3804
3820
|
}
|
|
3805
|
-
if (U(
|
|
3806
|
-
return d.stylize("" +
|
|
3807
|
-
if (I(
|
|
3808
|
-
return d.stylize("" +
|
|
3809
|
-
if (_(
|
|
3821
|
+
if (U(v))
|
|
3822
|
+
return d.stylize("" + v, "number");
|
|
3823
|
+
if (I(v))
|
|
3824
|
+
return d.stylize("" + v, "boolean");
|
|
3825
|
+
if (_(v))
|
|
3810
3826
|
return d.stylize("null", "null");
|
|
3811
3827
|
}
|
|
3812
3828
|
function E(d) {
|
|
3813
3829
|
return "[" + Error.prototype.toString.call(d) + "]";
|
|
3814
3830
|
}
|
|
3815
|
-
function F(d,
|
|
3816
|
-
for (var V = [], B = 0,
|
|
3817
|
-
Be(
|
|
3831
|
+
function F(d, v, A, C, j) {
|
|
3832
|
+
for (var V = [], B = 0, N = v.length; B < N; ++B)
|
|
3833
|
+
Be(v, String(B)) ? V.push(L(
|
|
3818
3834
|
d,
|
|
3819
|
-
|
|
3835
|
+
v,
|
|
3820
3836
|
A,
|
|
3821
3837
|
C,
|
|
3822
3838
|
String(B),
|
|
3823
3839
|
!0
|
|
3824
3840
|
)) : V.push("");
|
|
3825
|
-
return
|
|
3826
|
-
M.match(/^\d+$/) || V.push(
|
|
3841
|
+
return j.forEach(function(M) {
|
|
3842
|
+
M.match(/^\d+$/) || V.push(L(
|
|
3827
3843
|
d,
|
|
3828
|
-
|
|
3844
|
+
v,
|
|
3829
3845
|
A,
|
|
3830
3846
|
C,
|
|
3831
3847
|
M,
|
|
@@ -3833,33 +3849,33 @@ var $s = ar.exports;
|
|
|
3833
3849
|
));
|
|
3834
3850
|
}), V;
|
|
3835
3851
|
}
|
|
3836
|
-
function
|
|
3837
|
-
var B,
|
|
3838
|
-
if (M = Object.getOwnPropertyDescriptor(
|
|
3839
|
-
`) > -1 && (V ?
|
|
3852
|
+
function L(d, v, A, C, j, V) {
|
|
3853
|
+
var B, N, M;
|
|
3854
|
+
if (M = Object.getOwnPropertyDescriptor(v, j) || { value: v[j] }, M.get ? M.set ? N = d.stylize("[Getter/Setter]", "special") : N = d.stylize("[Getter]", "special") : M.set && (N = d.stylize("[Setter]", "special")), Be(C, j) || (B = "[" + j + "]"), N || (d.seen.indexOf(M.value) < 0 ? (_(A) ? N = g(d, M.value, null) : N = g(d, M.value, A - 1), N.indexOf(`
|
|
3855
|
+
`) > -1 && (V ? N = N.split(`
|
|
3840
3856
|
`).map(function(te) {
|
|
3841
3857
|
return " " + te;
|
|
3842
3858
|
}).join(`
|
|
3843
|
-
`).slice(2) :
|
|
3844
|
-
` +
|
|
3859
|
+
`).slice(2) : N = `
|
|
3860
|
+
` + N.split(`
|
|
3845
3861
|
`).map(function(te) {
|
|
3846
3862
|
return " " + te;
|
|
3847
3863
|
}).join(`
|
|
3848
|
-
`))) :
|
|
3849
|
-
if (V &&
|
|
3850
|
-
return
|
|
3851
|
-
B = JSON.stringify("" +
|
|
3864
|
+
`))) : N = d.stylize("[Circular]", "special")), k(B)) {
|
|
3865
|
+
if (V && j.match(/^\d+$/))
|
|
3866
|
+
return N;
|
|
3867
|
+
B = JSON.stringify("" + j), B.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (B = B.slice(1, -1), B = d.stylize(B, "name")) : (B = B.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), B = d.stylize(B, "string"));
|
|
3852
3868
|
}
|
|
3853
|
-
return B + ": " +
|
|
3869
|
+
return B + ": " + N;
|
|
3854
3870
|
}
|
|
3855
|
-
function P(d,
|
|
3856
|
-
var C = d.reduce(function(
|
|
3871
|
+
function P(d, v, A) {
|
|
3872
|
+
var C = d.reduce(function(j, V) {
|
|
3857
3873
|
return V.indexOf(`
|
|
3858
|
-
`) >= 0,
|
|
3874
|
+
`) >= 0, j + V.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
3859
3875
|
}, 0);
|
|
3860
|
-
return C > 60 ? A[0] + (
|
|
3876
|
+
return C > 60 ? A[0] + (v === "" ? "" : v + `
|
|
3861
3877
|
`) + " " + d.join(`,
|
|
3862
|
-
`) + " " + A[1] : A[0] +
|
|
3878
|
+
`) + " " + A[1] : A[0] + v + " " + d.join(", ") + " " + A[1];
|
|
3863
3879
|
}
|
|
3864
3880
|
t.types = vn;
|
|
3865
3881
|
function K(d) {
|
|
@@ -3874,10 +3890,10 @@ var $s = ar.exports;
|
|
|
3874
3890
|
return d === null;
|
|
3875
3891
|
}
|
|
3876
3892
|
t.isNull = _;
|
|
3877
|
-
function
|
|
3893
|
+
function D(d) {
|
|
3878
3894
|
return d == null;
|
|
3879
3895
|
}
|
|
3880
|
-
t.isNullOrUndefined =
|
|
3896
|
+
t.isNullOrUndefined = D;
|
|
3881
3897
|
function U(d) {
|
|
3882
3898
|
return typeof d == "number";
|
|
3883
3899
|
}
|
|
@@ -3918,7 +3934,7 @@ var $s = ar.exports;
|
|
|
3918
3934
|
return d === null || typeof d == "boolean" || typeof d == "number" || typeof d == "string" || typeof d == "symbol" || // ES6 symbol
|
|
3919
3935
|
typeof d > "u";
|
|
3920
3936
|
}
|
|
3921
|
-
t.isPrimitive = rt, t.isBuffer =
|
|
3937
|
+
t.isPrimitive = rt, t.isBuffer = Ds;
|
|
3922
3938
|
function fe(d) {
|
|
3923
3939
|
return Object.prototype.toString.call(d);
|
|
3924
3940
|
}
|
|
@@ -3940,31 +3956,31 @@ var $s = ar.exports;
|
|
|
3940
3956
|
"Dec"
|
|
3941
3957
|
];
|
|
3942
3958
|
function nt() {
|
|
3943
|
-
var d = /* @__PURE__ */ new Date(),
|
|
3959
|
+
var d = /* @__PURE__ */ new Date(), v = [
|
|
3944
3960
|
Oe(d.getHours()),
|
|
3945
3961
|
Oe(d.getMinutes()),
|
|
3946
3962
|
Oe(d.getSeconds())
|
|
3947
3963
|
].join(":");
|
|
3948
|
-
return [d.getDate(), xe[d.getMonth()],
|
|
3964
|
+
return [d.getDate(), xe[d.getMonth()], v].join(" ");
|
|
3949
3965
|
}
|
|
3950
3966
|
t.log = function() {
|
|
3951
3967
|
console.log("%s - %s", nt(), t.format.apply(t, arguments));
|
|
3952
|
-
}, t.inherits =
|
|
3953
|
-
if (!
|
|
3968
|
+
}, t.inherits = js, t._extend = function(d, v) {
|
|
3969
|
+
if (!v || !ie(v))
|
|
3954
3970
|
return d;
|
|
3955
|
-
for (var A = Object.keys(
|
|
3956
|
-
d[A[C]] =
|
|
3971
|
+
for (var A = Object.keys(v), C = A.length; C--; )
|
|
3972
|
+
d[A[C]] = v[A[C]];
|
|
3957
3973
|
return d;
|
|
3958
3974
|
};
|
|
3959
|
-
function Be(d,
|
|
3960
|
-
return Object.prototype.hasOwnProperty.call(d,
|
|
3975
|
+
function Be(d, v) {
|
|
3976
|
+
return Object.prototype.hasOwnProperty.call(d, v);
|
|
3961
3977
|
}
|
|
3962
3978
|
var le = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
|
|
3963
|
-
t.promisify = function(
|
|
3964
|
-
if (typeof
|
|
3979
|
+
t.promisify = function(v) {
|
|
3980
|
+
if (typeof v != "function")
|
|
3965
3981
|
throw new TypeError('The "original" argument must be of type Function');
|
|
3966
|
-
if (le &&
|
|
3967
|
-
var A =
|
|
3982
|
+
if (le && v[le]) {
|
|
3983
|
+
var A = v[le];
|
|
3968
3984
|
if (typeof A != "function")
|
|
3969
3985
|
throw new TypeError('The "util.promisify.custom" argument must be of type Function');
|
|
3970
3986
|
return Object.defineProperty(A, le, {
|
|
@@ -3975,67 +3991,67 @@ var $s = ar.exports;
|
|
|
3975
3991
|
}), A;
|
|
3976
3992
|
}
|
|
3977
3993
|
function A() {
|
|
3978
|
-
for (var C,
|
|
3979
|
-
C = M,
|
|
3980
|
-
}), B = [],
|
|
3981
|
-
B.push(arguments[
|
|
3994
|
+
for (var C, j, V = new Promise(function(M, te) {
|
|
3995
|
+
C = M, j = te;
|
|
3996
|
+
}), B = [], N = 0; N < arguments.length; N++)
|
|
3997
|
+
B.push(arguments[N]);
|
|
3982
3998
|
B.push(function(M, te) {
|
|
3983
|
-
M ?
|
|
3999
|
+
M ? j(M) : C(te);
|
|
3984
4000
|
});
|
|
3985
4001
|
try {
|
|
3986
|
-
|
|
4002
|
+
v.apply(this, B);
|
|
3987
4003
|
} catch (M) {
|
|
3988
|
-
|
|
4004
|
+
j(M);
|
|
3989
4005
|
}
|
|
3990
4006
|
return V;
|
|
3991
4007
|
}
|
|
3992
|
-
return Object.setPrototypeOf(A, Object.getPrototypeOf(
|
|
4008
|
+
return Object.setPrototypeOf(A, Object.getPrototypeOf(v)), le && Object.defineProperty(A, le, {
|
|
3993
4009
|
value: A,
|
|
3994
4010
|
enumerable: !1,
|
|
3995
4011
|
writable: !1,
|
|
3996
4012
|
configurable: !0
|
|
3997
4013
|
}), Object.defineProperties(
|
|
3998
4014
|
A,
|
|
3999
|
-
e(
|
|
4015
|
+
e(v)
|
|
4000
4016
|
);
|
|
4001
4017
|
}, t.promisify.custom = le;
|
|
4002
|
-
function ke(d,
|
|
4018
|
+
function ke(d, v) {
|
|
4003
4019
|
if (!d) {
|
|
4004
4020
|
var A = new Error("Promise was rejected with a falsy value");
|
|
4005
4021
|
A.reason = d, d = A;
|
|
4006
4022
|
}
|
|
4007
|
-
return
|
|
4023
|
+
return v(d);
|
|
4008
4024
|
}
|
|
4009
4025
|
function H(d) {
|
|
4010
4026
|
if (typeof d != "function")
|
|
4011
4027
|
throw new TypeError('The "original" argument must be of type Function');
|
|
4012
|
-
function
|
|
4028
|
+
function v() {
|
|
4013
4029
|
for (var A = [], C = 0; C < arguments.length; C++)
|
|
4014
4030
|
A.push(arguments[C]);
|
|
4015
|
-
var
|
|
4016
|
-
if (typeof
|
|
4031
|
+
var j = A.pop();
|
|
4032
|
+
if (typeof j != "function")
|
|
4017
4033
|
throw new TypeError("The last argument must be of type Function");
|
|
4018
4034
|
var V = this, B = function() {
|
|
4019
|
-
return
|
|
4035
|
+
return j.apply(V, arguments);
|
|
4020
4036
|
};
|
|
4021
4037
|
d.apply(this, A).then(
|
|
4022
|
-
function(
|
|
4023
|
-
O.process.nextTick(B.bind(null, null,
|
|
4038
|
+
function(N) {
|
|
4039
|
+
O.process.nextTick(B.bind(null, null, N));
|
|
4024
4040
|
},
|
|
4025
|
-
function(
|
|
4026
|
-
O.process.nextTick(ke.bind(null,
|
|
4041
|
+
function(N) {
|
|
4042
|
+
O.process.nextTick(ke.bind(null, N, B));
|
|
4027
4043
|
}
|
|
4028
4044
|
);
|
|
4029
4045
|
}
|
|
4030
|
-
return Object.setPrototypeOf(
|
|
4031
|
-
|
|
4046
|
+
return Object.setPrototypeOf(v, Object.getPrototypeOf(d)), Object.defineProperties(
|
|
4047
|
+
v,
|
|
4032
4048
|
e(d)
|
|
4033
|
-
),
|
|
4049
|
+
), v;
|
|
4034
4050
|
}
|
|
4035
4051
|
t.callbackify = H;
|
|
4036
|
-
})(
|
|
4037
|
-
const { inherits:
|
|
4038
|
-
function
|
|
4052
|
+
})(kt);
|
|
4053
|
+
const { inherits: Vs, format: Gt } = kt;
|
|
4054
|
+
function Le(t, e, r = Error) {
|
|
4039
4055
|
if (!t)
|
|
4040
4056
|
throw new Error("Avvio error code must not be empty");
|
|
4041
4057
|
if (!e)
|
|
@@ -4043,69 +4059,69 @@ function Ne(t, e, r = Error) {
|
|
|
4043
4059
|
function o(s, u, l) {
|
|
4044
4060
|
if (!new.target)
|
|
4045
4061
|
return new o(s, u, l);
|
|
4046
|
-
Error.captureStackTrace(this, o), this.code = t, this.message = e, this.name = "AvvioError", s && u && l ? this.message =
|
|
4062
|
+
Error.captureStackTrace(this, o), this.code = t, this.message = e, this.name = "AvvioError", s && u && l ? this.message = Gt(e, s, u, l) : s && u ? this.message = Gt(e, s, u) : s ? this.message = Gt(e, s) : this.message = e;
|
|
4047
4063
|
}
|
|
4048
4064
|
return o.prototype[Symbol.toStringTag] = "Error", o.prototype.toString = function() {
|
|
4049
4065
|
return `${this.name} [${this.code}]: ${this.message}`;
|
|
4050
|
-
},
|
|
4066
|
+
}, Vs(o, r), o;
|
|
4051
4067
|
}
|
|
4052
4068
|
var Un = {
|
|
4053
|
-
createError:
|
|
4054
|
-
AVV_ERR_EXPOSE_ALREADY_DEFINED:
|
|
4069
|
+
createError: Le,
|
|
4070
|
+
AVV_ERR_EXPOSE_ALREADY_DEFINED: Le(
|
|
4055
4071
|
"AVV_ERR_EXPOSE_ALREADY_DEFINED",
|
|
4056
4072
|
"'%s' () is already defined, specify an expose option"
|
|
4057
4073
|
),
|
|
4058
|
-
AVV_ERR_CALLBACK_NOT_FN:
|
|
4074
|
+
AVV_ERR_CALLBACK_NOT_FN: Le(
|
|
4059
4075
|
"AVV_ERR_CALLBACK_NOT_FN",
|
|
4060
4076
|
"Callback for '%s' hook is not a function. Received: '%s'"
|
|
4061
4077
|
),
|
|
4062
|
-
AVV_ERR_PLUGIN_NOT_VALID:
|
|
4078
|
+
AVV_ERR_PLUGIN_NOT_VALID: Le(
|
|
4063
4079
|
"AVV_ERR_PLUGIN_NOT_VALID",
|
|
4064
4080
|
"Plugin must be a function or a promise. Received: '%s'"
|
|
4065
4081
|
),
|
|
4066
|
-
AVV_ERR_ROOT_PLG_BOOTED:
|
|
4082
|
+
AVV_ERR_ROOT_PLG_BOOTED: Le(
|
|
4067
4083
|
"AVV_ERR_PLUGIN_NOT_VALID",
|
|
4068
4084
|
"Root plugin has already booted"
|
|
4069
4085
|
),
|
|
4070
|
-
AVV_ERR_PARENT_PLG_LOADED:
|
|
4086
|
+
AVV_ERR_PARENT_PLG_LOADED: Le(
|
|
4071
4087
|
"AVV_ERR_PARENT_PLG_LOADED",
|
|
4072
4088
|
"Impossible to load '%s' plugin because the parent '%s' was already loaded"
|
|
4073
4089
|
),
|
|
4074
|
-
AVV_ERR_READY_TIMEOUT:
|
|
4090
|
+
AVV_ERR_READY_TIMEOUT: Le(
|
|
4075
4091
|
"AVV_ERR_READY_TIMEOUT",
|
|
4076
4092
|
"Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise"
|
|
4077
4093
|
)
|
|
4078
|
-
},
|
|
4094
|
+
}, Ms = function t(e, r, o) {
|
|
4079
4095
|
r === void 0 && (r = ""), o || (o = {});
|
|
4080
4096
|
var s = function(p) {
|
|
4081
|
-
var
|
|
4097
|
+
var w = {
|
|
4082
4098
|
"│": "|",
|
|
4083
4099
|
"└": "`",
|
|
4084
4100
|
"├": "+",
|
|
4085
4101
|
"─": "-",
|
|
4086
4102
|
"┬": "-"
|
|
4087
4103
|
};
|
|
4088
|
-
return o.unicode === !1 ?
|
|
4104
|
+
return o.unicode === !1 ? w[p] : p;
|
|
4089
4105
|
};
|
|
4090
4106
|
typeof e == "string" && (e = { label: e });
|
|
4091
4107
|
var u = e.nodes || [], l = (e.label || "").split(`
|
|
4092
4108
|
`), f = `
|
|
4093
4109
|
` + r + (u.length ? s("│") : " ") + " ";
|
|
4094
4110
|
return r + l.join(f) + `
|
|
4095
|
-
` + u.map(function(p,
|
|
4096
|
-
var g =
|
|
4097
|
-
return r + s(g ? "└" : "├") + s("─") + s(
|
|
4111
|
+
` + u.map(function(p, w) {
|
|
4112
|
+
var g = w === u.length - 1, m = p.nodes && p.nodes.length, E = r + (g ? " " : s("│")) + " ";
|
|
4113
|
+
return r + s(g ? "└" : "├") + s("─") + s(m ? "┬" : "─") + " " + t(p, E, o).slice(r.length + 2);
|
|
4098
4114
|
}).join("");
|
|
4099
4115
|
};
|
|
4100
|
-
const
|
|
4101
|
-
let
|
|
4116
|
+
const qs = Ms, jr = Symbol("avvio.TimeTree.untrackNode"), zt = Symbol("avvio.TimeTree.trackNode"), Vr = Symbol("avvio.TimeTree.getParent"), Mr = Symbol("avvio.TimeTree.getNode"), qr = Symbol("avvio.TimeTree.addNode");
|
|
4117
|
+
let Qs = class {
|
|
4102
4118
|
constructor() {
|
|
4103
4119
|
this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
|
|
4104
4120
|
}
|
|
4105
|
-
[
|
|
4121
|
+
[zt](e) {
|
|
4106
4122
|
this.tableId.set(e.id, e), this.tableLabel.has(e.label) ? this.tableLabel.get(e.label).push(e) : this.tableLabel.set(e.label, [e]);
|
|
4107
4123
|
}
|
|
4108
|
-
[
|
|
4124
|
+
[jr](e) {
|
|
4109
4125
|
this.tableId.delete(e.id);
|
|
4110
4126
|
const r = this.tableLabel.get(e.label);
|
|
4111
4127
|
if (r.id) {
|
|
@@ -4130,7 +4146,7 @@ let Ms = class {
|
|
|
4130
4146
|
label: r,
|
|
4131
4147
|
start: o,
|
|
4132
4148
|
nodes: []
|
|
4133
|
-
}, this[
|
|
4149
|
+
}, this[zt](this.root), this.root.id;
|
|
4134
4150
|
const u = this[Vr](e), l = `${r}-${Math.random()}`, f = {
|
|
4135
4151
|
id: l,
|
|
4136
4152
|
parent: e,
|
|
@@ -4138,47 +4154,47 @@ let Ms = class {
|
|
|
4138
4154
|
label: r,
|
|
4139
4155
|
nodes: []
|
|
4140
4156
|
};
|
|
4141
|
-
return u.nodes.push(f), this[
|
|
4157
|
+
return u.nodes.push(f), this[zt](f), l;
|
|
4142
4158
|
}
|
|
4143
4159
|
start(e, r, o = Date.now()) {
|
|
4144
4160
|
return this[qr](e, r, o);
|
|
4145
4161
|
}
|
|
4146
4162
|
stop(e, r = Date.now()) {
|
|
4147
4163
|
const o = this[Mr](e);
|
|
4148
|
-
o && (o.stop = r, o.diff = o.stop - o.start || 0, this[
|
|
4164
|
+
o && (o.stop = r, o.diff = o.stop - o.start || 0, this[jr](o));
|
|
4149
4165
|
}
|
|
4150
4166
|
toJSON() {
|
|
4151
4167
|
return Object.assign({}, this.root);
|
|
4152
4168
|
}
|
|
4153
4169
|
prittyPrint() {
|
|
4154
4170
|
const e = (o) => (o.label = `${o.label} ${o.diff} ms`, o.nodes.length > 0 && (o.nodes = o.nodes.map((s) => e(s))), o), r = e(this.toJSON());
|
|
4155
|
-
return
|
|
4171
|
+
return qs(r);
|
|
4156
4172
|
}
|
|
4157
4173
|
};
|
|
4158
|
-
var
|
|
4159
|
-
function
|
|
4174
|
+
var Gs = Qs, Er = { exports: {} }, ur = { exports: {} }, Kt, Qr;
|
|
4175
|
+
function zs() {
|
|
4160
4176
|
if (Qr)
|
|
4161
|
-
return
|
|
4177
|
+
return Kt;
|
|
4162
4178
|
Qr = 1;
|
|
4163
4179
|
var t = 1e3, e = t * 60, r = e * 60, o = r * 24, s = o * 7, u = o * 365.25;
|
|
4164
|
-
|
|
4165
|
-
|
|
4180
|
+
Kt = function(g, m) {
|
|
4181
|
+
m = m || {};
|
|
4166
4182
|
var E = typeof g;
|
|
4167
4183
|
if (E === "string" && g.length > 0)
|
|
4168
4184
|
return l(g);
|
|
4169
4185
|
if (E === "number" && isFinite(g))
|
|
4170
|
-
return
|
|
4186
|
+
return m.long ? p(g) : f(g);
|
|
4171
4187
|
throw new Error(
|
|
4172
4188
|
"val is not a non-empty string or a valid number. val=" + JSON.stringify(g)
|
|
4173
4189
|
);
|
|
4174
4190
|
};
|
|
4175
4191
|
function l(g) {
|
|
4176
4192
|
if (g = String(g), !(g.length > 100)) {
|
|
4177
|
-
var
|
|
4193
|
+
var m = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
4178
4194
|
g
|
|
4179
4195
|
);
|
|
4180
|
-
if (
|
|
4181
|
-
var E = parseFloat(
|
|
4196
|
+
if (m) {
|
|
4197
|
+
var E = parseFloat(m[1]), F = (m[2] || "ms").toLowerCase();
|
|
4182
4198
|
switch (F) {
|
|
4183
4199
|
case "years":
|
|
4184
4200
|
case "year":
|
|
@@ -4225,37 +4241,37 @@ function Qs() {
|
|
|
4225
4241
|
}
|
|
4226
4242
|
}
|
|
4227
4243
|
function f(g) {
|
|
4228
|
-
var
|
|
4229
|
-
return
|
|
4244
|
+
var m = Math.abs(g);
|
|
4245
|
+
return m >= o ? Math.round(g / o) + "d" : m >= r ? Math.round(g / r) + "h" : m >= e ? Math.round(g / e) + "m" : m >= t ? Math.round(g / t) + "s" : g + "ms";
|
|
4230
4246
|
}
|
|
4231
4247
|
function p(g) {
|
|
4232
|
-
var
|
|
4233
|
-
return
|
|
4248
|
+
var m = Math.abs(g);
|
|
4249
|
+
return m >= o ? w(g, m, o, "day") : m >= r ? w(g, m, r, "hour") : m >= e ? w(g, m, e, "minute") : m >= t ? w(g, m, t, "second") : g + " ms";
|
|
4234
4250
|
}
|
|
4235
|
-
function
|
|
4236
|
-
var
|
|
4237
|
-
return Math.round(g / E) + " " + F + (
|
|
4251
|
+
function w(g, m, E, F) {
|
|
4252
|
+
var L = m >= E * 1.5;
|
|
4253
|
+
return Math.round(g / E) + " " + F + (L ? "s" : "");
|
|
4238
4254
|
}
|
|
4239
|
-
return
|
|
4255
|
+
return Kt;
|
|
4240
4256
|
}
|
|
4241
|
-
function
|
|
4242
|
-
r.debug = r, r.default = r, r.coerce = p, r.disable = u, r.enable = s, r.enabled = l, r.humanize =
|
|
4257
|
+
function Ks(t) {
|
|
4258
|
+
r.debug = r, r.default = r, r.coerce = p, r.disable = u, r.enable = s, r.enabled = l, r.humanize = zs(), r.destroy = w, Object.keys(t).forEach((g) => {
|
|
4243
4259
|
r[g] = t[g];
|
|
4244
4260
|
}), r.names = [], r.skips = [], r.formatters = {};
|
|
4245
4261
|
function e(g) {
|
|
4246
|
-
let
|
|
4262
|
+
let m = 0;
|
|
4247
4263
|
for (let E = 0; E < g.length; E++)
|
|
4248
|
-
|
|
4249
|
-
return r.colors[Math.abs(
|
|
4264
|
+
m = (m << 5) - m + g.charCodeAt(E), m |= 0;
|
|
4265
|
+
return r.colors[Math.abs(m) % r.colors.length];
|
|
4250
4266
|
}
|
|
4251
4267
|
r.selectColor = e;
|
|
4252
4268
|
function r(g) {
|
|
4253
|
-
let
|
|
4269
|
+
let m, E = null, F, L;
|
|
4254
4270
|
function P(...K) {
|
|
4255
4271
|
if (!P.enabled)
|
|
4256
4272
|
return;
|
|
4257
|
-
const I = P, _ = Number(/* @__PURE__ */ new Date()),
|
|
4258
|
-
I.diff =
|
|
4273
|
+
const I = P, _ = Number(/* @__PURE__ */ new Date()), D = _ - (m || _);
|
|
4274
|
+
I.diff = D, I.prev = m, I.curr = _, m = _, K[0] = r.coerce(K[0]), typeof K[0] != "string" && K.unshift("%O");
|
|
4259
4275
|
let U = 0;
|
|
4260
4276
|
K[0] = K[0].replace(/%([a-zA-Z%])/g, (x, k) => {
|
|
4261
4277
|
if (x === "%%")
|
|
@@ -4272,39 +4288,39 @@ function Gs(t) {
|
|
|
4272
4288
|
return P.namespace = g, P.useColors = r.useColors(), P.color = r.selectColor(g), P.extend = o, P.destroy = r.destroy, Object.defineProperty(P, "enabled", {
|
|
4273
4289
|
enumerable: !0,
|
|
4274
4290
|
configurable: !1,
|
|
4275
|
-
get: () => E !== null ? E : (F !== r.namespaces && (F = r.namespaces,
|
|
4291
|
+
get: () => E !== null ? E : (F !== r.namespaces && (F = r.namespaces, L = r.enabled(g)), L),
|
|
4276
4292
|
set: (K) => {
|
|
4277
4293
|
E = K;
|
|
4278
4294
|
}
|
|
4279
4295
|
}), typeof r.init == "function" && r.init(P), P;
|
|
4280
4296
|
}
|
|
4281
|
-
function o(g,
|
|
4282
|
-
const E = r(this.namespace + (typeof
|
|
4297
|
+
function o(g, m) {
|
|
4298
|
+
const E = r(this.namespace + (typeof m > "u" ? ":" : m) + g);
|
|
4283
4299
|
return E.log = this.log, E;
|
|
4284
4300
|
}
|
|
4285
4301
|
function s(g) {
|
|
4286
4302
|
r.save(g), r.namespaces = g, r.names = [], r.skips = [];
|
|
4287
|
-
let
|
|
4303
|
+
let m;
|
|
4288
4304
|
const E = (typeof g == "string" ? g : "").split(/[\s,]+/), F = E.length;
|
|
4289
|
-
for (
|
|
4290
|
-
E[
|
|
4305
|
+
for (m = 0; m < F; m++)
|
|
4306
|
+
E[m] && (g = E[m].replace(/\*/g, ".*?"), g[0] === "-" ? r.skips.push(new RegExp("^" + g.slice(1) + "$")) : r.names.push(new RegExp("^" + g + "$")));
|
|
4291
4307
|
}
|
|
4292
4308
|
function u() {
|
|
4293
4309
|
const g = [
|
|
4294
4310
|
...r.names.map(f),
|
|
4295
|
-
...r.skips.map(f).map((
|
|
4311
|
+
...r.skips.map(f).map((m) => "-" + m)
|
|
4296
4312
|
].join(",");
|
|
4297
4313
|
return r.enable(""), g;
|
|
4298
4314
|
}
|
|
4299
4315
|
function l(g) {
|
|
4300
4316
|
if (g[g.length - 1] === "*")
|
|
4301
4317
|
return !0;
|
|
4302
|
-
let
|
|
4303
|
-
for (
|
|
4304
|
-
if (r.skips[
|
|
4318
|
+
let m, E;
|
|
4319
|
+
for (m = 0, E = r.skips.length; m < E; m++)
|
|
4320
|
+
if (r.skips[m].test(g))
|
|
4305
4321
|
return !1;
|
|
4306
|
-
for (
|
|
4307
|
-
if (r.names[
|
|
4322
|
+
for (m = 0, E = r.names.length; m < E; m++)
|
|
4323
|
+
if (r.names[m].test(g))
|
|
4308
4324
|
return !0;
|
|
4309
4325
|
return !1;
|
|
4310
4326
|
}
|
|
@@ -4314,12 +4330,12 @@ function Gs(t) {
|
|
|
4314
4330
|
function p(g) {
|
|
4315
4331
|
return g instanceof Error ? g.stack || g.message : g;
|
|
4316
4332
|
}
|
|
4317
|
-
function
|
|
4333
|
+
function w() {
|
|
4318
4334
|
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
4319
4335
|
}
|
|
4320
4336
|
return r.enable(r.load()), r;
|
|
4321
4337
|
}
|
|
4322
|
-
var
|
|
4338
|
+
var Hs = Ks;
|
|
4323
4339
|
(function(t, e) {
|
|
4324
4340
|
e.formatArgs = o, e.save = s, e.load = u, e.useColors = r, e.storage = l(), e.destroy = (() => {
|
|
4325
4341
|
let p = !1;
|
|
@@ -4414,12 +4430,12 @@ var zs = Gs;
|
|
|
4414
4430
|
function o(p) {
|
|
4415
4431
|
if (p[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + p[0] + (this.useColors ? "%c " : " ") + "+" + t.exports.humanize(this.diff), !this.useColors)
|
|
4416
4432
|
return;
|
|
4417
|
-
const
|
|
4418
|
-
p.splice(1, 0,
|
|
4419
|
-
let g = 0,
|
|
4433
|
+
const w = "color: " + this.color;
|
|
4434
|
+
p.splice(1, 0, w, "color: inherit");
|
|
4435
|
+
let g = 0, m = 0;
|
|
4420
4436
|
p[0].replace(/%[a-zA-Z%]/g, (E) => {
|
|
4421
|
-
E !== "%%" && (g++, E === "%c" && (
|
|
4422
|
-
}), p.splice(
|
|
4437
|
+
E !== "%%" && (g++, E === "%c" && (m = g));
|
|
4438
|
+
}), p.splice(m, 0, w);
|
|
4423
4439
|
}
|
|
4424
4440
|
e.log = console.debug || console.log || (() => {
|
|
4425
4441
|
});
|
|
@@ -4443,32 +4459,32 @@ var zs = Gs;
|
|
|
4443
4459
|
} catch {
|
|
4444
4460
|
}
|
|
4445
4461
|
}
|
|
4446
|
-
t.exports =
|
|
4462
|
+
t.exports = Hs(e);
|
|
4447
4463
|
const { formatters: f } = t.exports;
|
|
4448
4464
|
f.j = function(p) {
|
|
4449
4465
|
try {
|
|
4450
4466
|
return JSON.stringify(p);
|
|
4451
|
-
} catch (
|
|
4452
|
-
return "[UnexpectedJSONParseError]: " +
|
|
4467
|
+
} catch (w) {
|
|
4468
|
+
return "[UnexpectedJSONParseError]: " + w.message;
|
|
4453
4469
|
}
|
|
4454
4470
|
};
|
|
4455
4471
|
})(ur, ur.exports);
|
|
4456
4472
|
var $n = ur.exports;
|
|
4457
|
-
const
|
|
4458
|
-
function
|
|
4459
|
-
return t[
|
|
4473
|
+
const Ws = fn, Js = wn.EventEmitter, Ys = kt.inherits, Z = $n("avvio"), { AVV_ERR_READY_TIMEOUT: Xs } = Un, Ht = Symbol.for("plugin-meta");
|
|
4474
|
+
function Zs(t, e) {
|
|
4475
|
+
return t[Ht] && t[Ht].name ? t[Ht].name : typeof e < "u" && typeof e != "function" && e.name ? e.name : t.name ? t.name : t.toString().split(`
|
|
4460
4476
|
`).slice(0, 2).map((r) => r.trim()).join(" -- ");
|
|
4461
4477
|
}
|
|
4462
|
-
function
|
|
4478
|
+
function ea() {
|
|
4463
4479
|
const t = {};
|
|
4464
4480
|
return t.promise = new Promise((e, r) => {
|
|
4465
4481
|
t.resolve = e, t.reject = r;
|
|
4466
4482
|
}), t;
|
|
4467
4483
|
}
|
|
4468
4484
|
function tt(t, e, r, o, s) {
|
|
4469
|
-
this.started = !1, this.func = e, this.opts = r, this.onFinish = null, this.parent = t, this.timeout = s === void 0 ? t._timeout : s, this.name =
|
|
4485
|
+
this.started = !1, this.func = e, this.opts = r, this.onFinish = null, this.parent = t, this.timeout = s === void 0 ? t._timeout : s, this.name = Zs(e, r), this.isAfter = o, this.q = Ws(t, ta, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
|
|
4470
4486
|
}
|
|
4471
|
-
|
|
4487
|
+
Ys(tt, Js);
|
|
4472
4488
|
tt.prototype.exec = function(t, e) {
|
|
4473
4489
|
const r = this.func;
|
|
4474
4490
|
let o = !1;
|
|
@@ -4496,7 +4512,7 @@ tt.prototype.exec = function(t, e) {
|
|
|
4496
4512
|
};
|
|
4497
4513
|
this.timeout > 0 && (Z("setting up timeout", s, this.timeout), u = setTimeout(function() {
|
|
4498
4514
|
Z("timed out", s), u = null;
|
|
4499
|
-
const p = new
|
|
4515
|
+
const p = new Xs(s);
|
|
4500
4516
|
p.fn = r, l(p);
|
|
4501
4517
|
}, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
|
|
4502
4518
|
const f = r(this.server, this.opts, l);
|
|
@@ -4514,7 +4530,7 @@ tt.prototype.loadedSoFar = function() {
|
|
|
4514
4530
|
}), this.q.resume();
|
|
4515
4531
|
};
|
|
4516
4532
|
let e;
|
|
4517
|
-
return this._promise ? e = Promise.resolve() : (this._promise =
|
|
4533
|
+
return this._promise ? e = Promise.resolve() : (this._promise = ea(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
|
|
4518
4534
|
};
|
|
4519
4535
|
tt.prototype.enqueue = function(t, e) {
|
|
4520
4536
|
Z("enqueue", this.name, t.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(t, e);
|
|
@@ -4539,12 +4555,12 @@ tt.prototype.finish = function(t, e) {
|
|
|
4539
4555
|
r();
|
|
4540
4556
|
else
|
|
4541
4557
|
Z("delayed", this.name), this.q.drain = () => {
|
|
4542
|
-
Z("drain", this.name), this.q.drain =
|
|
4558
|
+
Z("drain", this.name), this.q.drain = ra, queueMicrotask(o);
|
|
4543
4559
|
};
|
|
4544
4560
|
};
|
|
4545
4561
|
queueMicrotask(o), this.q.resume();
|
|
4546
4562
|
};
|
|
4547
|
-
function
|
|
4563
|
+
function ta(t, e) {
|
|
4548
4564
|
const r = this;
|
|
4549
4565
|
O.process.nextTick(Ir.bind(r), t, e);
|
|
4550
4566
|
}
|
|
@@ -4562,57 +4578,57 @@ function Ir(t, e) {
|
|
|
4562
4578
|
});
|
|
4563
4579
|
});
|
|
4564
4580
|
}
|
|
4565
|
-
function
|
|
4581
|
+
function ra() {
|
|
4566
4582
|
}
|
|
4567
4583
|
Er.exports = tt;
|
|
4568
4584
|
Er.exports.loadPlugin = Ir;
|
|
4569
|
-
var
|
|
4570
|
-
const Gr = fn,
|
|
4571
|
-
AVV_ERR_EXPOSE_ALREADY_DEFINED:
|
|
4585
|
+
var na = Er.exports;
|
|
4586
|
+
const Gr = fn, ia = wn.EventEmitter, oa = kt.inherits, {
|
|
4587
|
+
AVV_ERR_EXPOSE_ALREADY_DEFINED: Wt,
|
|
4572
4588
|
AVV_ERR_CALLBACK_NOT_FN: ct,
|
|
4573
|
-
AVV_ERR_PLUGIN_NOT_VALID:
|
|
4574
|
-
AVV_ERR_ROOT_PLG_BOOTED:
|
|
4575
|
-
AVV_ERR_READY_TIMEOUT:
|
|
4576
|
-
} = Un,
|
|
4577
|
-
function
|
|
4589
|
+
AVV_ERR_PLUGIN_NOT_VALID: sa,
|
|
4590
|
+
AVV_ERR_ROOT_PLG_BOOTED: aa,
|
|
4591
|
+
AVV_ERR_READY_TIMEOUT: ua
|
|
4592
|
+
} = Un, ca = Gs, cr = na, Ze = $n("avvio"), _t = Symbol("kAvvio"), Jt = Symbol("kThenifyDoNotWrap");
|
|
4593
|
+
function fa(t, e, r) {
|
|
4578
4594
|
const o = e.expose || {}, s = o.use || "use", u = o.after || "after", l = o.ready || "ready", f = o.onClose || "onClose", p = o.close || "close";
|
|
4579
4595
|
if (t[s])
|
|
4580
|
-
throw new
|
|
4596
|
+
throw new Wt(s);
|
|
4581
4597
|
if (t[u])
|
|
4582
|
-
throw new
|
|
4598
|
+
throw new Wt(u);
|
|
4583
4599
|
if (t[l])
|
|
4584
|
-
throw new
|
|
4585
|
-
t[s] = function(
|
|
4586
|
-
return r.use(
|
|
4587
|
-
}, Object.defineProperty(t, "then", { get:
|
|
4588
|
-
return typeof
|
|
4589
|
-
}, t[l] = function(
|
|
4590
|
-
if (
|
|
4591
|
-
throw new ct(l, typeof
|
|
4592
|
-
return r.ready(
|
|
4593
|
-
}, t[f] = function(
|
|
4594
|
-
if (typeof
|
|
4595
|
-
throw new ct(f, typeof
|
|
4596
|
-
return r.onClose(
|
|
4597
|
-
}, t[p] = function(
|
|
4598
|
-
if (
|
|
4599
|
-
throw new ct(p, typeof
|
|
4600
|
-
return
|
|
4600
|
+
throw new Wt(l);
|
|
4601
|
+
t[s] = function(w, g) {
|
|
4602
|
+
return r.use(w, g), this;
|
|
4603
|
+
}, Object.defineProperty(t, "then", { get: Dn.bind(r) }), t[_t] = !0, t[u] = function(w) {
|
|
4604
|
+
return typeof w != "function" ? r._loadRegistered() : (r.after(Yt(w, this)), this);
|
|
4605
|
+
}, t[l] = function(w) {
|
|
4606
|
+
if (w && typeof w != "function")
|
|
4607
|
+
throw new ct(l, typeof w);
|
|
4608
|
+
return r.ready(w ? Yt(w, this) : void 0);
|
|
4609
|
+
}, t[f] = function(w) {
|
|
4610
|
+
if (typeof w != "function")
|
|
4611
|
+
throw new ct(f, typeof w);
|
|
4612
|
+
return r.onClose(ya(w, this)), this;
|
|
4613
|
+
}, t[p] = function(w) {
|
|
4614
|
+
if (w && typeof w != "function")
|
|
4615
|
+
throw new ct(p, typeof w);
|
|
4616
|
+
return w ? (r.close(Yt(w, this)), this) : r.close();
|
|
4601
4617
|
};
|
|
4602
4618
|
}
|
|
4603
4619
|
function ee(t, e, r) {
|
|
4604
4620
|
if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof ee)) {
|
|
4605
4621
|
const o = new ee(t, e, r);
|
|
4606
|
-
return t &&
|
|
4622
|
+
return t && fa(t, e, o), o;
|
|
4607
4623
|
}
|
|
4608
|
-
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
|
|
4624
|
+
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 ca(), this._readyQ = Gr(this, jn, 1), this._readyQ.pause(), this._readyQ.drain = () => {
|
|
4609
4625
|
this.emit("start"), this._readyQ.drain = zr;
|
|
4610
|
-
}, this._closeQ = Gr(this,
|
|
4626
|
+
}, this._closeQ = Gr(this, da, 1), this._closeQ.pause(), this._closeQ.drain = () => {
|
|
4611
4627
|
this.emit("close"), this._closeQ.drain = zr;
|
|
4612
|
-
}, this._doStart = null, this._root = new cr(this,
|
|
4628
|
+
}, this._doStart = null, this._root = new cr(this, la.bind(this), e, !1, 0), this._root.once("start", (o, s, u) => {
|
|
4613
4629
|
const l = this.pluginTree.start(null, s, u);
|
|
4614
|
-
this._root.once("loaded", (f, p,
|
|
4615
|
-
this.pluginTree.stop(l,
|
|
4630
|
+
this._root.once("loaded", (f, p, w) => {
|
|
4631
|
+
this.pluginTree.stop(l, w);
|
|
4616
4632
|
});
|
|
4617
4633
|
}), cr.loadPlugin.call(this, this._root, (o) => {
|
|
4618
4634
|
Ze("root plugin ready");
|
|
@@ -4629,22 +4645,22 @@ function ee(t, e, r) {
|
|
|
4629
4645
|
this._readyQ.resume();
|
|
4630
4646
|
});
|
|
4631
4647
|
}
|
|
4632
|
-
function
|
|
4648
|
+
function la(t, e, r) {
|
|
4633
4649
|
this._doStart = r, e.autostart && this.start();
|
|
4634
4650
|
}
|
|
4635
|
-
|
|
4651
|
+
oa(ee, ia);
|
|
4636
4652
|
ee.prototype.start = function() {
|
|
4637
4653
|
return this.started = !0, O.process.nextTick(this._doStart), this;
|
|
4638
4654
|
};
|
|
4639
4655
|
ee.prototype.override = function(t, e, r) {
|
|
4640
4656
|
return t;
|
|
4641
4657
|
};
|
|
4642
|
-
function
|
|
4658
|
+
function ha(t) {
|
|
4643
4659
|
if (t && typeof t == "object" && typeof t.default == "function" && (t = t.default), !(t && (typeof t == "function" || typeof t.then == "function")))
|
|
4644
|
-
throw new
|
|
4660
|
+
throw new sa(typeof t);
|
|
4645
4661
|
return t;
|
|
4646
4662
|
}
|
|
4647
|
-
ee.prototype[
|
|
4663
|
+
ee.prototype[_t] = !0;
|
|
4648
4664
|
ee.prototype.use = function(t, e) {
|
|
4649
4665
|
return this._lastUsed = this._addPlugin(t, e, !1), this;
|
|
4650
4666
|
};
|
|
@@ -4652,15 +4668,15 @@ ee.prototype._loadRegistered = function() {
|
|
|
4652
4668
|
const t = this._current[0];
|
|
4653
4669
|
return !this.started && !this.booted && O.process.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
|
|
4654
4670
|
};
|
|
4655
|
-
Object.defineProperty(ee.prototype, "then", { get:
|
|
4671
|
+
Object.defineProperty(ee.prototype, "then", { get: Dn });
|
|
4656
4672
|
ee.prototype._addPlugin = function(t, e, r) {
|
|
4657
|
-
if (t =
|
|
4658
|
-
throw new
|
|
4673
|
+
if (t = ha(t), e = e || {}, this.booted)
|
|
4674
|
+
throw new aa();
|
|
4659
4675
|
const o = this._current[0], s = new cr(this, t, e, r);
|
|
4660
4676
|
if (s.once("start", (u, l, f) => {
|
|
4661
4677
|
const p = this.pluginTree.start(o.name, l, f);
|
|
4662
|
-
s.once("loaded", (
|
|
4663
|
-
this.pluginTree.stop(p,
|
|
4678
|
+
s.once("loaded", (w, g, m) => {
|
|
4679
|
+
this.pluginTree.stop(p, m);
|
|
4664
4680
|
});
|
|
4665
4681
|
}), o.loaded)
|
|
4666
4682
|
throw new Error(s.name, o.name);
|
|
@@ -4673,7 +4689,7 @@ ee.prototype.after = function(t) {
|
|
|
4673
4689
|
return this._loadRegistered();
|
|
4674
4690
|
this._addPlugin(e.bind(this), {}, !0);
|
|
4675
4691
|
function e(r, o, s) {
|
|
4676
|
-
|
|
4692
|
+
jn.call(this, t, s);
|
|
4677
4693
|
}
|
|
4678
4694
|
return this;
|
|
4679
4695
|
};
|
|
@@ -4726,38 +4742,38 @@ ee.prototype.toJSON = function() {
|
|
|
4726
4742
|
};
|
|
4727
4743
|
function zr() {
|
|
4728
4744
|
}
|
|
4729
|
-
function
|
|
4745
|
+
function Dn() {
|
|
4730
4746
|
if (this.booted) {
|
|
4731
4747
|
Ze("thenify returning null because we are already booted");
|
|
4732
4748
|
return;
|
|
4733
4749
|
}
|
|
4734
|
-
if (this[
|
|
4735
|
-
this[
|
|
4750
|
+
if (this[Jt]) {
|
|
4751
|
+
this[Jt] = !1;
|
|
4736
4752
|
return;
|
|
4737
4753
|
}
|
|
4738
|
-
return Ze("thenify"), (t, e) => this._loadRegistered().then(() => (this[
|
|
4754
|
+
return Ze("thenify"), (t, e) => this._loadRegistered().then(() => (this[Jt] = !0, t(this._server)), e);
|
|
4739
4755
|
}
|
|
4740
|
-
function
|
|
4756
|
+
function jn(t, e) {
|
|
4741
4757
|
const r = this._server, o = this._error;
|
|
4742
4758
|
let s;
|
|
4743
4759
|
if (this._error = null, t.length === 0)
|
|
4744
|
-
this._error = o, s = t(), s && !s[
|
|
4760
|
+
this._error = o, s = t(), s && !s[_t] && typeof s.then == "function" ? s.then(() => O.process.nextTick(e), (u) => O.process.nextTick(e, u)) : O.process.nextTick(e);
|
|
4745
4761
|
else if (t.length === 1)
|
|
4746
|
-
s = t(o), s && !s[
|
|
4762
|
+
s = t(o), s && !s[_t] && typeof s.then == "function" ? s.then(() => O.process.nextTick(e), (u) => O.process.nextTick(e, u)) : O.process.nextTick(e);
|
|
4747
4763
|
else if (this._timeout === 0) {
|
|
4748
4764
|
const u = (l) => {
|
|
4749
4765
|
this._error = l, e(this._error);
|
|
4750
4766
|
};
|
|
4751
4767
|
t.length === 2 ? t(o, u) : t(o, r, u);
|
|
4752
4768
|
} else
|
|
4753
|
-
|
|
4769
|
+
pa.call(this, t, o, r, e);
|
|
4754
4770
|
}
|
|
4755
|
-
function
|
|
4771
|
+
function pa(t, e, r, o) {
|
|
4756
4772
|
const s = t.name;
|
|
4757
4773
|
Ze("setting up ready timeout", s, this._timeout);
|
|
4758
4774
|
let u = setTimeout(() => {
|
|
4759
4775
|
Ze("timed out", s), u = null;
|
|
4760
|
-
const f = new
|
|
4776
|
+
const f = new ua(s);
|
|
4761
4777
|
f.fn = t, this._error = f, o(f);
|
|
4762
4778
|
}, this._timeout);
|
|
4763
4779
|
t.length === 2 ? t(e, l.bind(this)) : t(e, r, l.bind(this));
|
|
@@ -4765,7 +4781,7 @@ function la(t, e, r, o) {
|
|
|
4765
4781
|
u && (clearTimeout(u), this._error = f, o(this._error));
|
|
4766
4782
|
}
|
|
4767
4783
|
}
|
|
4768
|
-
function
|
|
4784
|
+
function da(t, e) {
|
|
4769
4785
|
const r = this._server, o = t[this._isOnCloseHandlerKey];
|
|
4770
4786
|
if (t.length === 0 || t.length === 1) {
|
|
4771
4787
|
let s;
|
|
@@ -4776,7 +4792,7 @@ function ha(t, e) {
|
|
|
4776
4792
|
} else
|
|
4777
4793
|
t.length === 2 ? t(o ? r : this._error, e) : o ? t(r, e) : t(this._error, r, e);
|
|
4778
4794
|
}
|
|
4779
|
-
function
|
|
4795
|
+
function ya(t, e) {
|
|
4780
4796
|
return r.bind(e);
|
|
4781
4797
|
function r(o, s) {
|
|
4782
4798
|
let u;
|
|
@@ -4787,7 +4803,7 @@ function pa(t, e) {
|
|
|
4787
4803
|
}, s) : O.process.nextTick(s)) : t(this, s);
|
|
4788
4804
|
}
|
|
4789
4805
|
}
|
|
4790
|
-
function
|
|
4806
|
+
function Yt(t, e) {
|
|
4791
4807
|
return r.bind(e);
|
|
4792
4808
|
function r(o, s) {
|
|
4793
4809
|
let u;
|
|
@@ -4806,11 +4822,11 @@ yr.exports.express = function(t) {
|
|
|
4806
4822
|
}
|
|
4807
4823
|
});
|
|
4808
4824
|
};
|
|
4809
|
-
var
|
|
4810
|
-
const
|
|
4811
|
-
function
|
|
4812
|
-
const o = e ? "https://grpc-web.streamlayer.io:443" : "https://grpc-web.next.streamlayer.io:443", s =
|
|
4813
|
-
return s.use(Bi), s.use(Ei, { sdkKey: t, host: o }), s.use(xi), s.use(Oi), s.use(
|
|
4825
|
+
var ga = yr.exports;
|
|
4826
|
+
const ma = /* @__PURE__ */ Yn(ga);
|
|
4827
|
+
function Na(t, e = !0, r = !0) {
|
|
4828
|
+
const o = e ? "https://grpc-web.streamlayer.io:443" : "https://grpc-web.next.streamlayer.io:443", s = ma(/* @__PURE__ */ Object.create({}), { autostart: !1 });
|
|
4829
|
+
return s.use(Bi), s.use(Ei, { sdkKey: t, host: o }), s.use(xi), s.use(Oi), s.use(co), s.use(Ji), r && s.after(async (u, l, f) => {
|
|
4814
4830
|
if (u)
|
|
4815
4831
|
throw u;
|
|
4816
4832
|
await l.sdk.initializeApp(), f();
|
|
@@ -4819,5 +4835,5 @@ function Ra(t, e = !0, r = !0) {
|
|
|
4819
4835
|
}), s;
|
|
4820
4836
|
}
|
|
4821
4837
|
export {
|
|
4822
|
-
|
|
4838
|
+
Na as StreamLayer
|
|
4823
4839
|
};
|