@streamlayer/sdk-web 0.28.6 → 0.28.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +8 -8
- package/lib/es/index.js +742 -715
- package/package.json +9 -9
package/lib/es/index.js
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { QuestionType as ze, SilenceSetting as
|
|
1
|
+
import { QuestionType as ze, SilenceSetting as Kr, QuestionStatus as Yt } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
|
|
2
2
|
import "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
|
|
3
3
|
import { SdkOverlayType as ae } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
|
|
4
|
-
import { computed as
|
|
4
|
+
import { computed as Hr, map as Mn, atom as Ft } from "nanostores";
|
|
5
5
|
import "@nanostores/logger";
|
|
6
6
|
import "microdiff";
|
|
7
|
-
import { Code as
|
|
8
|
-
import { createGrpcWebTransport as
|
|
9
|
-
import { nanoquery as
|
|
10
|
-
import { Events as
|
|
7
|
+
import { Code as Vn, createPromiseClient as qn, createCallbackClient as Gn } from "@connectrpc/connect";
|
|
8
|
+
import { createGrpcWebTransport as Qn } from "@connectrpc/connect-web";
|
|
9
|
+
import { nanoquery as zn } from "@nanostores/query";
|
|
10
|
+
import { Events as Kn } from "@streamlayer/sl-eslib/sports/events/events_connect";
|
|
11
11
|
import { Client as Tt } from "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
|
|
12
|
-
import { Users as
|
|
13
|
-
import { pino as
|
|
12
|
+
import { Users as Wr } from "@streamlayer/sl-eslib/users/users_connect";
|
|
13
|
+
import { pino as Hn } from "pino";
|
|
14
14
|
import { Feed as de } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
|
|
15
|
-
import { Leaderboard as
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
import { Leaderboard as Jr } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
|
|
16
|
+
import "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb";
|
|
17
|
+
var Yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
18
|
+
function Wn(t) {
|
|
18
19
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
19
20
|
}
|
|
20
|
-
var
|
|
21
|
-
Ct.byteLength =
|
|
22
|
-
Ct.toByteArray =
|
|
23
|
-
Ct.fromByteArray =
|
|
24
|
-
var ve = [], oe = [],
|
|
25
|
-
for (var je = 0,
|
|
21
|
+
var C = {}, Xr = {}, Ct = {};
|
|
22
|
+
Ct.byteLength = Xn;
|
|
23
|
+
Ct.toByteArray = ei;
|
|
24
|
+
Ct.fromByteArray = ni;
|
|
25
|
+
var ve = [], oe = [], Jn = typeof Uint8Array < "u" ? Uint8Array : Array, Rt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
26
|
+
for (var je = 0, Yn = Rt.length; je < Yn; ++je)
|
|
26
27
|
ve[je] = Rt[je], oe[Rt.charCodeAt(je)] = je;
|
|
27
28
|
oe["-".charCodeAt(0)] = 62;
|
|
28
29
|
oe["_".charCodeAt(0)] = 63;
|
|
29
|
-
function
|
|
30
|
+
function Zr(t) {
|
|
30
31
|
var e = t.length;
|
|
31
32
|
if (e % 4 > 0)
|
|
32
33
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
@@ -35,30 +36,30 @@ function Xr(t) {
|
|
|
35
36
|
var o = r === e ? 0 : 4 - r % 4;
|
|
36
37
|
return [r, o];
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
-
var e =
|
|
39
|
+
function Xn(t) {
|
|
40
|
+
var e = Zr(t), r = e[0], o = e[1];
|
|
40
41
|
return (r + o) * 3 / 4 - o;
|
|
41
42
|
}
|
|
42
|
-
function
|
|
43
|
+
function Zn(t, e, r) {
|
|
43
44
|
return (e + r) * 3 / 4 - r;
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
-
var e, r =
|
|
46
|
+
function ei(t) {
|
|
47
|
+
var e, r = Zr(t), o = r[0], s = r[1], u = new Jn(Zn(t, o, s)), l = 0, f = s > 0 ? o - 4 : o, d;
|
|
47
48
|
for (d = 0; d < f; d += 4)
|
|
48
49
|
e = oe[t.charCodeAt(d)] << 18 | oe[t.charCodeAt(d + 1)] << 12 | oe[t.charCodeAt(d + 2)] << 6 | oe[t.charCodeAt(d + 3)], u[l++] = e >> 16 & 255, u[l++] = e >> 8 & 255, u[l++] = e & 255;
|
|
49
50
|
return s === 2 && (e = oe[t.charCodeAt(d)] << 2 | oe[t.charCodeAt(d + 1)] >> 4, u[l++] = e & 255), s === 1 && (e = oe[t.charCodeAt(d)] << 10 | oe[t.charCodeAt(d + 1)] << 4 | oe[t.charCodeAt(d + 2)] >> 2, u[l++] = e >> 8 & 255, u[l++] = e & 255), u;
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
+
function ti(t) {
|
|
52
53
|
return ve[t >> 18 & 63] + ve[t >> 12 & 63] + ve[t >> 6 & 63] + ve[t & 63];
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function ri(t, e, r) {
|
|
55
56
|
for (var o, s = [], u = e; u < r; u += 3)
|
|
56
|
-
o = (t[u] << 16 & 16711680) + (t[u + 1] << 8 & 65280) + (t[u + 2] & 255), s.push(
|
|
57
|
+
o = (t[u] << 16 & 16711680) + (t[u + 1] << 8 & 65280) + (t[u + 2] & 255), s.push(ti(o));
|
|
57
58
|
return s.join("");
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
+
function ni(t) {
|
|
60
61
|
for (var e, r = t.length, o = r % 3, s = [], u = 16383, l = 0, f = r - o; l < f; l += u)
|
|
61
|
-
s.push(
|
|
62
|
+
s.push(ri(t, l, l + u > f ? f : l + u));
|
|
62
63
|
return o === 1 ? (e = t[r - 1], s.push(
|
|
63
64
|
ve[e >> 2] + ve[e << 4 & 63] + "=="
|
|
64
65
|
)) : o === 2 && (e = (t[r - 2] << 8) + t[r - 1], s.push(
|
|
@@ -68,27 +69,27 @@ function ri(t) {
|
|
|
68
69
|
var fr = {};
|
|
69
70
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
70
71
|
fr.read = function(t, e, r, o, s) {
|
|
71
|
-
var u, l, f = s * 8 - o - 1, d = (1 << f) - 1, A = d >> 1, g = -7,
|
|
72
|
-
for (
|
|
72
|
+
var u, l, f = s * 8 - o - 1, d = (1 << f) - 1, A = d >> 1, g = -7, w = r ? s - 1 : 0, E = r ? -1 : 1, T = t[e + w];
|
|
73
|
+
for (w += E, u = T & (1 << -g) - 1, T >>= -g, g += f; g > 0; u = u * 256 + t[e + w], w += E, g -= 8)
|
|
73
74
|
;
|
|
74
|
-
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 + w], w += E, g -= 8)
|
|
75
76
|
;
|
|
76
77
|
if (u === 0)
|
|
77
78
|
u = 1 - A;
|
|
78
79
|
else {
|
|
79
80
|
if (u === d)
|
|
80
|
-
return l ? NaN : (
|
|
81
|
+
return l ? NaN : (T ? -1 : 1) * (1 / 0);
|
|
81
82
|
l = l + Math.pow(2, o), u = u - A;
|
|
82
83
|
}
|
|
83
|
-
return (
|
|
84
|
+
return (T ? -1 : 1) * l * Math.pow(2, u - o);
|
|
84
85
|
};
|
|
85
86
|
fr.write = function(t, e, r, o, s, u) {
|
|
86
|
-
var l, f, d, A = u * 8 - s - 1, g = (1 << A) - 1,
|
|
87
|
-
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 * (d = Math.pow(2, -l)) < 1 && (l--, d *= 2), l +
|
|
87
|
+
var l, f, d, A = u * 8 - s - 1, g = (1 << A) - 1, w = g >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, T = o ? 0 : u - 1, P = o ? 1 : -1, N = 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 * (d = Math.pow(2, -l)) < 1 && (l--, d *= 2), l + w >= 1 ? e += E / d : e += E * Math.pow(2, 1 - w), e * d >= 2 && (l++, d /= 2), l + w >= g ? (f = 0, l = g) : l + w >= 1 ? (f = (e * d - 1) * Math.pow(2, s), l = l + w) : (f = e * Math.pow(2, w - 1) * Math.pow(2, s), l = 0)); s >= 8; t[r + T] = f & 255, T += P, f /= 256, s -= 8)
|
|
88
89
|
;
|
|
89
|
-
for (l = l << s | f, A += s; A > 0; t[r +
|
|
90
|
+
for (l = l << s | f, A += s; A > 0; t[r + T] = l & 255, T += P, l /= 256, A -= 8)
|
|
90
91
|
;
|
|
91
|
-
t[r +
|
|
92
|
+
t[r + T - P] |= N * 128;
|
|
92
93
|
};
|
|
93
94
|
/*!
|
|
94
95
|
* The buffer module from node.js, for the browser.
|
|
@@ -138,7 +139,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
138
139
|
throw new TypeError(
|
|
139
140
|
'The "string" argument must be of type string. Received type number'
|
|
140
141
|
);
|
|
141
|
-
return
|
|
142
|
+
return w(a);
|
|
142
143
|
}
|
|
143
144
|
return d(a, n, i);
|
|
144
145
|
}
|
|
@@ -147,13 +148,13 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
147
148
|
if (typeof a == "string")
|
|
148
149
|
return E(a, n);
|
|
149
150
|
if (ArrayBuffer.isView(a))
|
|
150
|
-
return
|
|
151
|
+
return P(a);
|
|
151
152
|
if (a == null)
|
|
152
153
|
throw new TypeError(
|
|
153
154
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof a
|
|
154
155
|
);
|
|
155
156
|
if (me(a, ArrayBuffer) || a && me(a.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (me(a, SharedArrayBuffer) || a && me(a.buffer, SharedArrayBuffer)))
|
|
156
|
-
return
|
|
157
|
+
return N(a, n, i);
|
|
157
158
|
if (typeof a == "number")
|
|
158
159
|
throw new TypeError(
|
|
159
160
|
'The "value" argument must not be of type number. Received type number'
|
|
@@ -185,13 +186,13 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
185
186
|
f.alloc = function(a, n, i) {
|
|
186
187
|
return g(a, n, i);
|
|
187
188
|
};
|
|
188
|
-
function
|
|
189
|
+
function w(a) {
|
|
189
190
|
return A(a), l(a < 0 ? 0 : z(a) | 0);
|
|
190
191
|
}
|
|
191
192
|
f.allocUnsafe = function(a) {
|
|
192
|
-
return
|
|
193
|
+
return w(a);
|
|
193
194
|
}, f.allocUnsafeSlow = function(a) {
|
|
194
|
-
return
|
|
195
|
+
return w(a);
|
|
195
196
|
};
|
|
196
197
|
function E(a, n) {
|
|
197
198
|
if ((typeof n != "string" || n === "") && (n = "utf8"), !f.isEncoding(n))
|
|
@@ -201,20 +202,20 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
201
202
|
const h = c.write(a, n);
|
|
202
203
|
return h !== i && (c = c.slice(0, h)), c;
|
|
203
204
|
}
|
|
204
|
-
function
|
|
205
|
+
function T(a) {
|
|
205
206
|
const n = a.length < 0 ? 0 : z(a.length) | 0, i = l(n);
|
|
206
207
|
for (let c = 0; c < n; c += 1)
|
|
207
208
|
i[c] = a[c] & 255;
|
|
208
209
|
return i;
|
|
209
210
|
}
|
|
210
|
-
function
|
|
211
|
+
function P(a) {
|
|
211
212
|
if (me(a, Uint8Array)) {
|
|
212
213
|
const n = new Uint8Array(a);
|
|
213
|
-
return
|
|
214
|
+
return N(n.buffer, n.byteOffset, n.byteLength);
|
|
214
215
|
}
|
|
215
|
-
return
|
|
216
|
+
return T(a);
|
|
216
217
|
}
|
|
217
|
-
function
|
|
218
|
+
function N(a, n, i) {
|
|
218
219
|
if (n < 0 || a.byteLength < n)
|
|
219
220
|
throw new RangeError('"offset" is outside of buffer bounds');
|
|
220
221
|
if (a.byteLength < n + (i || 0))
|
|
@@ -228,9 +229,9 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
228
229
|
return i.length === 0 || a.copy(i, 0, 0, n), i;
|
|
229
230
|
}
|
|
230
231
|
if (a.length !== void 0)
|
|
231
|
-
return typeof a.length != "number" || Pt(a.length) ? l(0) :
|
|
232
|
+
return typeof a.length != "number" || Pt(a.length) ? l(0) : T(a);
|
|
232
233
|
if (a.type === "Buffer" && Array.isArray(a.data))
|
|
233
|
-
return
|
|
234
|
+
return T(a.data);
|
|
234
235
|
}
|
|
235
236
|
function z(a) {
|
|
236
237
|
if (a >= s)
|
|
@@ -321,7 +322,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
321
322
|
return i;
|
|
322
323
|
case "utf8":
|
|
323
324
|
case "utf-8":
|
|
324
|
-
return
|
|
325
|
+
return it(a).length;
|
|
325
326
|
case "ucs2":
|
|
326
327
|
case "ucs-2":
|
|
327
328
|
case "utf16le":
|
|
@@ -333,7 +334,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
333
334
|
return lt(a).length;
|
|
334
335
|
default:
|
|
335
336
|
if (h)
|
|
336
|
-
return c ? -1 :
|
|
337
|
+
return c ? -1 : it(a).length;
|
|
337
338
|
n = ("" + n).toLowerCase(), h = !0;
|
|
338
339
|
}
|
|
339
340
|
}
|
|
@@ -350,12 +351,12 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
350
351
|
case "utf-8":
|
|
351
352
|
return le(this, n, i);
|
|
352
353
|
case "ascii":
|
|
353
|
-
return
|
|
354
|
+
return nt(this, n, i);
|
|
354
355
|
case "latin1":
|
|
355
356
|
case "binary":
|
|
356
357
|
return xe(this, n, i);
|
|
357
358
|
case "base64":
|
|
358
|
-
return
|
|
359
|
+
return rt(this, n, i);
|
|
359
360
|
case "ucs2":
|
|
360
361
|
case "ucs-2":
|
|
361
362
|
case "utf16le":
|
|
@@ -501,16 +502,16 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
501
502
|
return m;
|
|
502
503
|
}
|
|
503
504
|
function ne(a, n, i, c) {
|
|
504
|
-
return it(
|
|
505
|
+
return ot(it(n, a.length - i), a, i, c);
|
|
505
506
|
}
|
|
506
507
|
function _e(a, n, i, c) {
|
|
507
|
-
return
|
|
508
|
+
return ot(kt(n), a, i, c);
|
|
508
509
|
}
|
|
509
510
|
function Se(a, n, i, c) {
|
|
510
|
-
return
|
|
511
|
+
return ot(lt(n), a, i, c);
|
|
511
512
|
}
|
|
512
513
|
function fe(a, n, i, c) {
|
|
513
|
-
return
|
|
514
|
+
return ot(v(n, a.length - i), a, i, c);
|
|
514
515
|
}
|
|
515
516
|
f.prototype.write = function(n, i, c, h) {
|
|
516
517
|
if (i === void 0)
|
|
@@ -557,7 +558,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
557
558
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
558
559
|
};
|
|
559
560
|
};
|
|
560
|
-
function
|
|
561
|
+
function rt(a, n, i) {
|
|
561
562
|
return n === 0 && i === a.length ? e.fromByteArray(a) : e.fromByteArray(a.slice(n, i));
|
|
562
563
|
}
|
|
563
564
|
function le(a, n, i) {
|
|
@@ -600,7 +601,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
600
601
|
);
|
|
601
602
|
return i;
|
|
602
603
|
}
|
|
603
|
-
function
|
|
604
|
+
function nt(a, n, i) {
|
|
604
605
|
let c = "";
|
|
605
606
|
i = Math.min(a.length, i);
|
|
606
607
|
for (let h = n; h < i; ++h)
|
|
@@ -619,7 +620,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
619
620
|
(!n || n < 0) && (n = 0), (!i || i < 0 || i > c) && (i = c);
|
|
620
621
|
let h = "";
|
|
621
622
|
for (let y = n; y < i; ++y)
|
|
622
|
-
h +=
|
|
623
|
+
h += Dn[a[y]];
|
|
623
624
|
return h;
|
|
624
625
|
}
|
|
625
626
|
function ke(a, n, i) {
|
|
@@ -817,21 +818,21 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
817
818
|
if (i < 0)
|
|
818
819
|
throw new RangeError("Index out of range");
|
|
819
820
|
}
|
|
820
|
-
function
|
|
821
|
+
function R(a, n, i, c, h) {
|
|
821
822
|
return n = +n, i = i >>> 0, h || I(a, n, i, 4), r.write(a, n, i, c, 23, 4), i + 4;
|
|
822
823
|
}
|
|
823
824
|
f.prototype.writeFloatLE = function(n, i, c) {
|
|
824
|
-
return
|
|
825
|
+
return R(this, n, i, !0, c);
|
|
825
826
|
}, f.prototype.writeFloatBE = function(n, i, c) {
|
|
826
|
-
return
|
|
827
|
+
return R(this, n, i, !1, c);
|
|
827
828
|
};
|
|
828
|
-
function
|
|
829
|
+
function L(a, n, i, c, h) {
|
|
829
830
|
return n = +n, i = i >>> 0, h || I(a, n, i, 8), r.write(a, n, i, c, 52, 8), i + 8;
|
|
830
831
|
}
|
|
831
832
|
f.prototype.writeDoubleLE = function(n, i, c) {
|
|
832
|
-
return
|
|
833
|
+
return L(this, n, i, !0, c);
|
|
833
834
|
}, f.prototype.writeDoubleBE = function(n, i, c) {
|
|
834
|
-
return
|
|
835
|
+
return L(this, n, i, !1, c);
|
|
835
836
|
}, f.prototype.copy = function(n, i, c, h) {
|
|
836
837
|
if (!f.isBuffer(n))
|
|
837
838
|
throw new TypeError("argument should be a Buffer");
|
|
@@ -963,7 +964,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
963
964
|
a = a + "=";
|
|
964
965
|
return a;
|
|
965
966
|
}
|
|
966
|
-
function
|
|
967
|
+
function it(a, n) {
|
|
967
968
|
n = n || 1 / 0;
|
|
968
969
|
let i;
|
|
969
970
|
const c = a.length;
|
|
@@ -1028,7 +1029,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
1028
1029
|
n.push(a.charCodeAt(i) & 255);
|
|
1029
1030
|
return n;
|
|
1030
1031
|
}
|
|
1031
|
-
function
|
|
1032
|
+
function v(a, n) {
|
|
1032
1033
|
let i, c, h;
|
|
1033
1034
|
const y = [];
|
|
1034
1035
|
for (let m = 0; m < a.length && !((n -= 2) < 0); ++m)
|
|
@@ -1038,7 +1039,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
1038
1039
|
function lt(a) {
|
|
1039
1040
|
return e.toByteArray(ft(a));
|
|
1040
1041
|
}
|
|
1041
|
-
function
|
|
1042
|
+
function ot(a, n, i, c) {
|
|
1042
1043
|
let h;
|
|
1043
1044
|
for (h = 0; h < c && !(h + i >= n.length || h >= a.length); ++h)
|
|
1044
1045
|
n[h + i] = a[h];
|
|
@@ -1050,7 +1051,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
1050
1051
|
function Pt(a) {
|
|
1051
1052
|
return a !== a;
|
|
1052
1053
|
}
|
|
1053
|
-
const
|
|
1054
|
+
const Dn = function() {
|
|
1054
1055
|
const a = "0123456789abcdef", n = new Array(256);
|
|
1055
1056
|
for (let i = 0; i < 16; ++i) {
|
|
1056
1057
|
const c = i * 16;
|
|
@@ -1060,13 +1061,13 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
1060
1061
|
return n;
|
|
1061
1062
|
}();
|
|
1062
1063
|
function Pe(a) {
|
|
1063
|
-
return typeof BigInt > "u" ?
|
|
1064
|
+
return typeof BigInt > "u" ? jn : a;
|
|
1064
1065
|
}
|
|
1065
|
-
function
|
|
1066
|
+
function jn() {
|
|
1066
1067
|
throw new Error("BigInt not supported");
|
|
1067
1068
|
}
|
|
1068
|
-
})(
|
|
1069
|
-
var
|
|
1069
|
+
})(Xr);
|
|
1070
|
+
var en = { exports: {} }, K = en.exports = {}, be, we;
|
|
1070
1071
|
function Xt() {
|
|
1071
1072
|
throw new Error("setTimeout has not been defined");
|
|
1072
1073
|
}
|
|
@@ -1085,7 +1086,7 @@ function Zt() {
|
|
|
1085
1086
|
we = Zt;
|
|
1086
1087
|
}
|
|
1087
1088
|
})();
|
|
1088
|
-
function
|
|
1089
|
+
function tn(t) {
|
|
1089
1090
|
if (be === setTimeout)
|
|
1090
1091
|
return setTimeout(t, 0);
|
|
1091
1092
|
if ((be === Xt || !be) && setTimeout)
|
|
@@ -1100,7 +1101,7 @@ function en(t) {
|
|
|
1100
1101
|
}
|
|
1101
1102
|
}
|
|
1102
1103
|
}
|
|
1103
|
-
function
|
|
1104
|
+
function ii(t) {
|
|
1104
1105
|
if (we === clearTimeout)
|
|
1105
1106
|
return clearTimeout(t);
|
|
1106
1107
|
if ((we === Zt || !we) && clearTimeout)
|
|
@@ -1116,19 +1117,19 @@ function ni(t) {
|
|
|
1116
1117
|
}
|
|
1117
1118
|
}
|
|
1118
1119
|
var Te = [], Ke = !1, Ne, ht = -1;
|
|
1119
|
-
function
|
|
1120
|
-
!Ke || !Ne || (Ke = !1, Ne.length ? Te = Ne.concat(Te) : ht = -1, Te.length &&
|
|
1120
|
+
function oi() {
|
|
1121
|
+
!Ke || !Ne || (Ke = !1, Ne.length ? Te = Ne.concat(Te) : ht = -1, Te.length && rn());
|
|
1121
1122
|
}
|
|
1122
|
-
function
|
|
1123
|
+
function rn() {
|
|
1123
1124
|
if (!Ke) {
|
|
1124
|
-
var t =
|
|
1125
|
+
var t = tn(oi);
|
|
1125
1126
|
Ke = !0;
|
|
1126
1127
|
for (var e = Te.length; e; ) {
|
|
1127
1128
|
for (Ne = Te, Te = []; ++ht < e; )
|
|
1128
1129
|
Ne && Ne[ht].run();
|
|
1129
1130
|
ht = -1, e = Te.length;
|
|
1130
1131
|
}
|
|
1131
|
-
Ne = null, Ke = !1,
|
|
1132
|
+
Ne = null, Ke = !1, ii(t);
|
|
1132
1133
|
}
|
|
1133
1134
|
}
|
|
1134
1135
|
K.nextTick = function(t) {
|
|
@@ -1136,12 +1137,12 @@ K.nextTick = function(t) {
|
|
|
1136
1137
|
if (arguments.length > 1)
|
|
1137
1138
|
for (var r = 1; r < arguments.length; r++)
|
|
1138
1139
|
e[r - 1] = arguments[r];
|
|
1139
|
-
Te.push(new
|
|
1140
|
+
Te.push(new nn(t, e)), Te.length === 1 && !Ke && tn(rn);
|
|
1140
1141
|
};
|
|
1141
|
-
function
|
|
1142
|
+
function nn(t, e) {
|
|
1142
1143
|
this.fun = t, this.array = e;
|
|
1143
1144
|
}
|
|
1144
|
-
|
|
1145
|
+
nn.prototype.run = function() {
|
|
1145
1146
|
this.fun.apply(null, this.array);
|
|
1146
1147
|
};
|
|
1147
1148
|
K.title = "browser";
|
|
@@ -1176,13 +1177,13 @@ K.chdir = function(t) {
|
|
|
1176
1177
|
K.umask = function() {
|
|
1177
1178
|
return 0;
|
|
1178
1179
|
};
|
|
1179
|
-
var
|
|
1180
|
+
var si = en.exports;
|
|
1180
1181
|
(function(t) {
|
|
1181
1182
|
Object.defineProperty(t, Symbol.toStringTag, { value: "Module" });
|
|
1182
|
-
const e =
|
|
1183
|
+
const e = Xr, r = si, o = (l) => l && l.__esModule ? l : { default: l }, s = o(r), u = globalThis || void 0 || self;
|
|
1183
1184
|
Object.defineProperty(t, "Buffer", { enumerable: !0, get: () => e.Buffer }), Object.defineProperty(t, "process", { enumerable: !0, get: () => s.default }), t.global = u;
|
|
1184
|
-
})(
|
|
1185
|
-
class
|
|
1185
|
+
})(C);
|
|
1186
|
+
class ai {
|
|
1186
1187
|
}
|
|
1187
1188
|
window.slStore = /* @__PURE__ */ Object.create(null);
|
|
1188
1189
|
class _t {
|
|
@@ -1201,23 +1202,23 @@ class _t {
|
|
|
1201
1202
|
return this.store;
|
|
1202
1203
|
}
|
|
1203
1204
|
}
|
|
1204
|
-
const
|
|
1205
|
+
const ui = (t) => {
|
|
1205
1206
|
const e = Object.keys(t);
|
|
1206
|
-
return
|
|
1207
|
+
return Hr(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((o, s) => [o, r[s]])));
|
|
1207
1208
|
};
|
|
1208
|
-
class
|
|
1209
|
+
class st extends _t {
|
|
1209
1210
|
getValues = () => this.getStore().get();
|
|
1210
1211
|
getValue = (e) => this.getStore().get()[e];
|
|
1211
1212
|
setValue = (e, r) => this.getStore().setKey(e, r);
|
|
1212
1213
|
subscribe = (...e) => this.getStore().subscribe(...e);
|
|
1213
1214
|
unsubscribe = () => this.getStore().off();
|
|
1214
1215
|
}
|
|
1215
|
-
const
|
|
1216
|
+
const He = (t) => Mn(t);
|
|
1216
1217
|
var Ie;
|
|
1217
1218
|
(function(t) {
|
|
1218
1219
|
t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
|
|
1219
1220
|
})(Ie || (Ie = {}));
|
|
1220
|
-
const
|
|
1221
|
+
const ci = {
|
|
1221
1222
|
[ae.BETTING]: "betting",
|
|
1222
1223
|
[ae.GAMES]: "games",
|
|
1223
1224
|
[ae.PUBLIC_CHAT]: "publicChat",
|
|
@@ -1235,7 +1236,7 @@ class lr {
|
|
|
1235
1236
|
listeners = /* @__PURE__ */ new Set();
|
|
1236
1237
|
settingsKey;
|
|
1237
1238
|
constructor({ settings: e, ...r }, o) {
|
|
1238
|
-
this.settingsKey =
|
|
1239
|
+
this.settingsKey = ci[r.type], this.status = Ft(Le.Suspended), this.config = new st(He(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new st(He(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new st(He({}), `feature:settings:${this.settingsKey}`), this.source = o;
|
|
1239
1240
|
}
|
|
1240
1241
|
get featureConfig() {
|
|
1241
1242
|
return this.config.getStore();
|
|
@@ -1277,7 +1278,7 @@ class lr {
|
|
|
1277
1278
|
}
|
|
1278
1279
|
}
|
|
1279
1280
|
}
|
|
1280
|
-
class
|
|
1281
|
+
class ce extends _t {
|
|
1281
1282
|
getValue = () => this.getStore().get();
|
|
1282
1283
|
getValues() {
|
|
1283
1284
|
throw new Error("not implemented");
|
|
@@ -1292,8 +1293,8 @@ class ue extends _t {
|
|
|
1292
1293
|
return this.getStore().get();
|
|
1293
1294
|
}
|
|
1294
1295
|
}
|
|
1295
|
-
const
|
|
1296
|
-
class
|
|
1296
|
+
const te = (t) => Ft(t), hr = (t, e) => Hr(t, e);
|
|
1297
|
+
class ue extends _t {
|
|
1297
1298
|
atomStore;
|
|
1298
1299
|
constructor(e, r, o) {
|
|
1299
1300
|
super(e, `api:${r}`), this.atomStore = Ft(), o && e.subscribe((s) => {
|
|
@@ -1325,7 +1326,7 @@ class te extends _t {
|
|
|
1325
1326
|
key = () => this.getStore().key;
|
|
1326
1327
|
off = () => this.getStore().off();
|
|
1327
1328
|
}
|
|
1328
|
-
async function*
|
|
1329
|
+
async function* fi(t, e) {
|
|
1329
1330
|
for await (const r of e) {
|
|
1330
1331
|
t.response.message = r, t.received_at = Date.now();
|
|
1331
1332
|
const o = {
|
|
@@ -1335,7 +1336,7 @@ async function* ci(t, e) {
|
|
|
1335
1336
|
window.postMessage(o), yield r;
|
|
1336
1337
|
}
|
|
1337
1338
|
}
|
|
1338
|
-
const
|
|
1339
|
+
const li = () => (t) => async (e) => {
|
|
1339
1340
|
const r = {
|
|
1340
1341
|
name: e.url,
|
|
1341
1342
|
request: {},
|
|
@@ -1347,7 +1348,7 @@ const fi = () => (t) => async (e) => {
|
|
|
1347
1348
|
if (r.received_at = Date.now(), r.stream = o.stream, r.response.header = Object.fromEntries(o.header.entries()), r.response.trailer = Object.fromEntries(o.trailer.entries()), o.stream)
|
|
1348
1349
|
return {
|
|
1349
1350
|
...o,
|
|
1350
|
-
message:
|
|
1351
|
+
message: fi(r, o.message)
|
|
1351
1352
|
};
|
|
1352
1353
|
{
|
|
1353
1354
|
r.request.message = e.message, r.response.message = o.message, r.latency = r.received_at - r.sent_at;
|
|
@@ -1375,7 +1376,7 @@ var Ae;
|
|
|
1375
1376
|
(function(t) {
|
|
1376
1377
|
t.Init = "init", t.Ready = "ready", t.Connecting = "connecting", t.Connected = "connected", t.Disconnected = "disconnected", t.Failed = "failed", t.Reconnecting = "reconnecting";
|
|
1377
1378
|
})(Ae || (Ae = {}));
|
|
1378
|
-
class
|
|
1379
|
+
class hi {
|
|
1379
1380
|
params;
|
|
1380
1381
|
stream;
|
|
1381
1382
|
method;
|
|
@@ -1390,7 +1391,7 @@ class li {
|
|
|
1390
1391
|
ts: /* @__PURE__ */ new Date(),
|
|
1391
1392
|
log: []
|
|
1392
1393
|
};
|
|
1393
|
-
this.state = new
|
|
1394
|
+
this.state = new st(He(u), `subscription:${s.name}:state`), this.name = s.name, this.headers = e, this.listeners = /* @__PURE__ */ new Map(), this.params = o, this.method = r, s.withStore && (this.store = new ce(te(null), `subscription:${s.name}:store`)), "subscribe" in o && typeof o.subscribe == "function" && o.subscribe(() => {
|
|
1394
1395
|
this.reconnect();
|
|
1395
1396
|
}), this.updateState(Ae.Ready);
|
|
1396
1397
|
}
|
|
@@ -1432,10 +1433,10 @@ class li {
|
|
|
1432
1433
|
this.addStateLog(`data routed to ${this.listeners.size} listeners`);
|
|
1433
1434
|
};
|
|
1434
1435
|
onStreamError = (e) => {
|
|
1435
|
-
e !== void 0 && (e.code !==
|
|
1436
|
+
e !== void 0 && (e.code !== Vn.Canceled && e.rawMessage !== "[canceled] BodyStreamBuffer was aborted" ? (this.updateState(Ae.Failed), this.state.setValue("error", e)) : this.disconnect());
|
|
1436
1437
|
};
|
|
1437
1438
|
}
|
|
1438
|
-
class
|
|
1439
|
+
class pi {
|
|
1439
1440
|
toJsonOptions = {
|
|
1440
1441
|
emitDefaultValues: !1,
|
|
1441
1442
|
enumAsInteger: !0,
|
|
@@ -1450,11 +1451,11 @@ class hi {
|
|
|
1450
1451
|
callbackClients;
|
|
1451
1452
|
subscriptions;
|
|
1452
1453
|
constructor(e) {
|
|
1453
|
-
this.host = e, this.$headers = new
|
|
1454
|
-
"sl-device-id":
|
|
1454
|
+
this.host = e, this.$headers = new st(He({
|
|
1455
|
+
"sl-device-id": C.process?.env?.NX_DEVICE_ID || "sdk-web-dev"
|
|
1455
1456
|
}), "transport:headers"), this.initInterceptors(), this.clients = /* @__PURE__ */ new Map(), this.callbackClients = /* @__PURE__ */ new Map(), this.subscriptions = /* @__PURE__ */ new Map();
|
|
1456
|
-
const [r, o, s] =
|
|
1457
|
-
this.nanoquery = { createFetcherStore: r, createMutatorStore: o, utils: s }, this.transport =
|
|
1457
|
+
const [r, o, s] = zn();
|
|
1458
|
+
this.nanoquery = { createFetcherStore: r, createMutatorStore: o, utils: s }, this.transport = Qn({
|
|
1458
1459
|
baseUrl: e,
|
|
1459
1460
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1460
1461
|
// @ts-ignore
|
|
@@ -1469,7 +1470,7 @@ class hi {
|
|
|
1469
1470
|
const s = this.subscriptions.get(r);
|
|
1470
1471
|
if (s)
|
|
1471
1472
|
return s;
|
|
1472
|
-
const u = new
|
|
1473
|
+
const u = new hi(this.$headers, e, r, o);
|
|
1473
1474
|
return this.subscriptions.set(r, u), u;
|
|
1474
1475
|
};
|
|
1475
1476
|
removeSubscription = (e) => {
|
|
@@ -1490,14 +1491,14 @@ class hi {
|
|
|
1490
1491
|
const r = e.typeName;
|
|
1491
1492
|
if (this.clients.has(r))
|
|
1492
1493
|
return this.clients.get(r);
|
|
1493
|
-
const o =
|
|
1494
|
+
const o = qn(e, this.transport);
|
|
1494
1495
|
return this.clients.set(r, o), o;
|
|
1495
1496
|
};
|
|
1496
1497
|
getCallbackClient = (e) => {
|
|
1497
1498
|
const r = e.typeName;
|
|
1498
1499
|
if (this.callbackClients.has(r))
|
|
1499
1500
|
return this.callbackClients.get(r);
|
|
1500
|
-
const o =
|
|
1501
|
+
const o = Gn(e, this.transport);
|
|
1501
1502
|
return this.callbackClients.set(r, o), o;
|
|
1502
1503
|
};
|
|
1503
1504
|
// create unary client, used for query request
|
|
@@ -1529,11 +1530,11 @@ class hi {
|
|
|
1529
1530
|
o.header.set(u, s[u]);
|
|
1530
1531
|
return r(o);
|
|
1531
1532
|
};
|
|
1532
|
-
this.interceptors.push(e), this.interceptors.push(
|
|
1533
|
+
this.interceptors.push(e), this.interceptors.push(li());
|
|
1533
1534
|
};
|
|
1534
1535
|
}
|
|
1535
|
-
const
|
|
1536
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1536
|
+
const di = (t, e) => {
|
|
1537
|
+
const { client: r, queryKey: o } = e.createPromiseClient(Kn, {
|
|
1537
1538
|
method: "retrieveEventId",
|
|
1538
1539
|
params: [t]
|
|
1539
1540
|
});
|
|
@@ -1550,7 +1551,7 @@ const pi = (t, e) => {
|
|
|
1550
1551
|
}
|
|
1551
1552
|
}
|
|
1552
1553
|
});
|
|
1553
|
-
},
|
|
1554
|
+
}, yi = (t, e) => {
|
|
1554
1555
|
const { client: r, queryKey: o } = e.createPromiseClient(Tt, { method: "getStream", params: [t] });
|
|
1555
1556
|
return e.nanoquery.createFetcherStore(o, {
|
|
1556
1557
|
fetcher: async (s, u, l) => l ? (await r.getStream({
|
|
@@ -1558,20 +1559,20 @@ const pi = (t, e) => {
|
|
|
1558
1559
|
// we are sure that id is a string
|
|
1559
1560
|
})).data?.attributes : void 0
|
|
1560
1561
|
});
|
|
1561
|
-
},
|
|
1562
|
-
const { queryKey: r, client: o } = e.createPromiseClient(
|
|
1562
|
+
}, gi = (t, e) => {
|
|
1563
|
+
const { queryKey: r, client: o } = e.createPromiseClient(Wr, { method: "me", params: [t] });
|
|
1563
1564
|
return e.nanoquery.createFetcherStore(r, {
|
|
1564
1565
|
fetcher: () => o.me({})
|
|
1565
1566
|
});
|
|
1566
|
-
},
|
|
1567
|
-
const { client: e } = t.createPromiseClient(
|
|
1567
|
+
}, mi = (t) => {
|
|
1568
|
+
const { client: e } = t.createPromiseClient(Wr, { method: "bypassAuth" });
|
|
1568
1569
|
return ({ userKey: r, schema: o, init: s }) => e.bypassAuth({ userKey: r, schema: o, init: s });
|
|
1569
|
-
},
|
|
1570
|
+
}, bi = (t, e) => {
|
|
1570
1571
|
const { client: r, queryKey: o } = e.createPromiseClient(Tt, { method: "get", params: [t] });
|
|
1571
1572
|
return e.nanoquery.createFetcherStore(o, {
|
|
1572
1573
|
fetcher: async () => (await r.get({})).data?.attributes
|
|
1573
1574
|
});
|
|
1574
|
-
},
|
|
1575
|
+
}, wi = (t, e) => {
|
|
1575
1576
|
const { client: r, queryKey: o } = e.createPromiseClient(Tt, { method: "getOrganization", params: [t] });
|
|
1576
1577
|
return e.nanoquery.createFetcherStore(o, {
|
|
1577
1578
|
fetcher: async () => {
|
|
@@ -1582,7 +1583,7 @@ const pi = (t, e) => {
|
|
|
1582
1583
|
} : void 0;
|
|
1583
1584
|
}
|
|
1584
1585
|
});
|
|
1585
|
-
},
|
|
1586
|
+
}, vi = (t, e) => {
|
|
1586
1587
|
const { client: r, queryKey: o } = e.createPromiseClient(Tt, {
|
|
1587
1588
|
method: "getOrganizationAdvertising",
|
|
1588
1589
|
params: [t]
|
|
@@ -1590,8 +1591,8 @@ const pi = (t, e) => {
|
|
|
1590
1591
|
return e.nanoquery.createFetcherStore(o, {
|
|
1591
1592
|
fetcher: async () => (await r.getOrganizationAdvertising({})).data?.attributes
|
|
1592
1593
|
});
|
|
1593
|
-
},
|
|
1594
|
-
t.transport = new
|
|
1594
|
+
}, Si = (t, e, r) => {
|
|
1595
|
+
t.transport = new pi(e.host), t.sdk.host = t.transport.host, t.transport.setSdkKey(e.sdkKey), r();
|
|
1595
1596
|
};
|
|
1596
1597
|
class pr {
|
|
1597
1598
|
delimiter = ":";
|
|
@@ -1647,16 +1648,16 @@ var Fe;
|
|
|
1647
1648
|
(function(t) {
|
|
1648
1649
|
t.DISABLED = "disabled", t.INITIALIZATION = "initialization", t.READY = "ready", t.FAILED = "failed", t.SUSPENDED = "suspended";
|
|
1649
1650
|
})(Fe || (Fe = {}));
|
|
1650
|
-
const
|
|
1651
|
-
const e = new Ge(), r = new
|
|
1651
|
+
const Ai = (t) => {
|
|
1652
|
+
const e = new Ge(), r = new ce(te(e.getExternalToken()), "userKey"), o = new ce(te(e.getToken()), "userToken"), s = new ue(gi(o.getStore(), t), "user", (l) => l?.data?.data?.id), u = new ue(bi(o.getStore(), t), "userSettings");
|
|
1652
1653
|
return {
|
|
1653
1654
|
userKey: r,
|
|
1654
1655
|
userToken: o,
|
|
1655
1656
|
user: s,
|
|
1656
1657
|
userSettings: u
|
|
1657
1658
|
};
|
|
1658
|
-
},
|
|
1659
|
-
const e = new
|
|
1659
|
+
}, Ei = (t) => {
|
|
1660
|
+
const e = new ce(te(void 0), "providerStreamId"), r = new ue(di(e.getStore(), t), "slStreamId", (s) => s?.data), o = new ue(yi(r.getAtomStore(), t), "streamSettings");
|
|
1660
1661
|
return r.getAtomStore().listen((s) => {
|
|
1661
1662
|
(s === "" || s === void 0) && o.getStore().mutate(void 0);
|
|
1662
1663
|
}), {
|
|
@@ -1664,8 +1665,8 @@ const Si = (t) => {
|
|
|
1664
1665
|
slStreamId: r,
|
|
1665
1666
|
streamSettings: o
|
|
1666
1667
|
};
|
|
1667
|
-
},
|
|
1668
|
-
const e = new
|
|
1668
|
+
}, Ii = (t) => {
|
|
1669
|
+
const e = new ce(te(void 0), "enabled"), r = new ce(te(Fe.DISABLED), "status"), o = new ue(wi(e.getStore(), t), "organizationSettings", (f) => f?.data?.id), s = new ue(vi(o.getAtomStore(), t), "organizationAdvertising"), u = Ai(t), l = Ei(t);
|
|
1669
1670
|
return {
|
|
1670
1671
|
enabled: e,
|
|
1671
1672
|
status: r,
|
|
@@ -1680,10 +1681,10 @@ const Si = (t) => {
|
|
|
1680
1681
|
organizationAdvertising: s
|
|
1681
1682
|
};
|
|
1682
1683
|
};
|
|
1683
|
-
class
|
|
1684
|
+
class Fi extends _t {
|
|
1684
1685
|
stores;
|
|
1685
1686
|
constructor(e) {
|
|
1686
|
-
const r =
|
|
1687
|
+
const r = Ii(e), o = ui(r);
|
|
1687
1688
|
super(o, "core"), this.stores = r;
|
|
1688
1689
|
}
|
|
1689
1690
|
getValue() {
|
|
@@ -1704,12 +1705,12 @@ class Ii extends _t {
|
|
|
1704
1705
|
};
|
|
1705
1706
|
unsubscribe = () => this.getStore().off();
|
|
1706
1707
|
}
|
|
1707
|
-
class
|
|
1708
|
+
class Ti extends ai {
|
|
1708
1709
|
$coreStore;
|
|
1709
1710
|
transport;
|
|
1710
1711
|
bypassLogin;
|
|
1711
1712
|
constructor(e, r) {
|
|
1712
|
-
super(), this.$coreStore = e, this.transport = r, this.bypassLogin =
|
|
1713
|
+
super(), this.$coreStore = e, this.transport = r, this.bypassLogin = mi(this.transport), this.connect();
|
|
1713
1714
|
}
|
|
1714
1715
|
me = async () => (this.$coreStore.getValues().user.invalidate(), (await this.$coreStore.getValues().user.getValue())?.data);
|
|
1715
1716
|
/**
|
|
@@ -1778,19 +1779,19 @@ class Fi extends si {
|
|
|
1778
1779
|
});
|
|
1779
1780
|
};
|
|
1780
1781
|
}
|
|
1781
|
-
const Nt = new Ge(),
|
|
1782
|
-
t.auth = new
|
|
1782
|
+
const Nt = new Ge(), Ci = (t, e, r) => {
|
|
1783
|
+
t.auth = new Ti(t.store, t.transport), t.stores.status.listen((o) => {
|
|
1783
1784
|
o === Fe.READY && t.auth.reLogin();
|
|
1784
1785
|
}), t.sdk.authorizationBypass = async (o, s) => {
|
|
1785
1786
|
await t.auth.login(o, s), Nt.setSchema(o), Nt.setExternalToken(s);
|
|
1786
1787
|
}, t.sdk.logout = () => {
|
|
1787
1788
|
t.auth.logout(), Nt.clear();
|
|
1788
1789
|
}, t.sdk.getUserStore = () => t.stores.user.getStore(), t.sdk.isUserAuthorized = () => t.auth.isAuthenticated(), r();
|
|
1789
|
-
},
|
|
1790
|
-
t.store = new
|
|
1790
|
+
}, _i = (t, e, r) => {
|
|
1791
|
+
t.store = new Fi(t.transport), t.stores = t.store.getValues(), t.sdk.enabled = t.stores.enabled.getStore(), t.sdk.status = t.stores.status.getStore(), t.sdk.sdkStore = t.store.getStore(), t.sdk.organizationStore = () => t.stores.organizationSettings.getStore(), t.storeUnsubscribe = () => {
|
|
1791
1792
|
t.store.unsubscribe();
|
|
1792
1793
|
}, r();
|
|
1793
|
-
},
|
|
1794
|
+
}, Bi = (t, e, r) => {
|
|
1794
1795
|
t.sdk = /* @__PURE__ */ Object.create(null), t.sdk.initializeApp = async () => {
|
|
1795
1796
|
if (t.stores.enabled.get() === "on")
|
|
1796
1797
|
return { enabled: !0 };
|
|
@@ -1806,10 +1807,10 @@ const Nt = new Ge(), Ti = (t, e, r) => {
|
|
|
1806
1807
|
}, t.sdk.createEventSession = (o) => {
|
|
1807
1808
|
t.stores.providerStreamId.setValue(o);
|
|
1808
1809
|
}, r();
|
|
1809
|
-
},
|
|
1810
|
+
}, Oi = Hn({
|
|
1810
1811
|
level: "trace"
|
|
1811
|
-
}),
|
|
1812
|
-
const { client: o, queryKey: s } = r.createPromiseClient(
|
|
1812
|
+
}), on = (t, e) => Oi.child({ name: t }, e), xi = (t, e, r) => {
|
|
1813
|
+
const { client: o, queryKey: s } = r.createPromiseClient(Jr, {
|
|
1813
1814
|
method: "summary",
|
|
1814
1815
|
params: [t, e]
|
|
1815
1816
|
});
|
|
@@ -1819,25 +1820,17 @@ const Nt = new Ge(), Ti = (t, e, r) => {
|
|
|
1819
1820
|
userId: d
|
|
1820
1821
|
})).data?.attributes
|
|
1821
1822
|
});
|
|
1822
|
-
},
|
|
1823
|
-
const { client:
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
});
|
|
1827
|
-
return r.nanoquery.createFetcherStore(s, {
|
|
1828
|
-
fetcher: async (u, l, f, d) => {
|
|
1829
|
-
const A = { usersIds: [] };
|
|
1830
|
-
return f && !d && (A.eventId = f), d && (A.leaderboardId = d), !f && !d ? [] : (await o.list(A)).data;
|
|
1831
|
-
}
|
|
1832
|
-
});
|
|
1833
|
-
}, ki = (t, e) => {
|
|
1823
|
+
}, ki = (t) => {
|
|
1824
|
+
const { client: e } = t.createPromiseClient(Jr, { method: "list" });
|
|
1825
|
+
return (r) => e.list(r);
|
|
1826
|
+
}, Pi = (t, e) => {
|
|
1834
1827
|
const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "get", params: [t] });
|
|
1835
1828
|
return e.nanoquery.createFetcherStore(o, {
|
|
1836
1829
|
fetcher: async (s, u, l) => (await r.get({
|
|
1837
1830
|
eventId: l
|
|
1838
1831
|
})).data?.attributes
|
|
1839
1832
|
});
|
|
1840
|
-
},
|
|
1833
|
+
}, Ri = (t, e) => {
|
|
1841
1834
|
const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "syncQuestion", params: [t] });
|
|
1842
1835
|
return e.nanoquery.createFetcherStore(o, {
|
|
1843
1836
|
fetcher: async (s, u, l) => l ? (await r.syncQuestion({
|
|
@@ -1846,42 +1839,42 @@ const Nt = new Ge(), Ti = (t, e, r) => {
|
|
|
1846
1839
|
}
|
|
1847
1840
|
})).data?.attributes : void 0
|
|
1848
1841
|
});
|
|
1849
|
-
},
|
|
1842
|
+
}, Ni = (t, e) => {
|
|
1850
1843
|
const { client: r } = e.createCallbackClient(de), o = Ft({ eventId: t.get() || "", feedId: "" });
|
|
1851
1844
|
return t.subscribe((u = "") => {
|
|
1852
1845
|
o.set({ eventId: u, feedId: "" });
|
|
1853
1846
|
}), e.addSubscription(r.subscription, o, { name: "feedSubscription" });
|
|
1854
|
-
},
|
|
1847
|
+
}, Li = (t, e) => {
|
|
1855
1848
|
const { client: r } = e.createCallbackClient(de);
|
|
1856
1849
|
return e.addSubscription(r.questionSubscription, { questionId: t }, { name: "questionSubscription" });
|
|
1857
|
-
},
|
|
1850
|
+
}, Ui = async (t, e) => {
|
|
1858
1851
|
const { client: r } = e.createPromiseClient(de, { method: "questionByUser", params: [t] });
|
|
1859
1852
|
return (await r.questionByUser({
|
|
1860
1853
|
questionId: t
|
|
1861
1854
|
})).data?.attributes?.question;
|
|
1862
|
-
},
|
|
1855
|
+
}, $i = (t, e) => {
|
|
1863
1856
|
const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "questionByUser", params: [t] });
|
|
1864
1857
|
return e.nanoquery.createFetcherStore(o, {
|
|
1865
1858
|
fetcher: async (s, u, l) => (await r.questionByUser({
|
|
1866
1859
|
questionId: l
|
|
1867
1860
|
})).data?.attributes?.question
|
|
1868
1861
|
});
|
|
1869
|
-
},
|
|
1862
|
+
}, Di = (t, e) => {
|
|
1870
1863
|
const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "pickHistory", params: [t] });
|
|
1871
1864
|
return e.nanoquery.createFetcherStore(o, {
|
|
1872
1865
|
fetcher: async (s, u, l) => l ? (await r.pickHistory({
|
|
1873
1866
|
eventId: l
|
|
1874
1867
|
})).data?.map(({ attributes: d }) => d) : []
|
|
1875
1868
|
});
|
|
1876
|
-
},
|
|
1869
|
+
}, ji = (t, e) => {
|
|
1877
1870
|
const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "insightHistory", params: [t] });
|
|
1878
1871
|
return e.nanoquery.createFetcherStore(o, {
|
|
1879
1872
|
fetcher: async (s, u, l) => l ? (await r.insightHistory({
|
|
1880
1873
|
eventId: l
|
|
1881
1874
|
})).data?.map(({ attributes: d }) => d) : void 0
|
|
1882
1875
|
});
|
|
1883
|
-
},
|
|
1884
|
-
class
|
|
1876
|
+
}, sn = (t) => (t.gamification || (t.gamification = new Mi(t)), t.gamification);
|
|
1877
|
+
class Mi {
|
|
1885
1878
|
/** sl event id */
|
|
1886
1879
|
slStreamId;
|
|
1887
1880
|
/** organization id */
|
|
@@ -1907,13 +1900,13 @@ class ji {
|
|
|
1907
1900
|
constructor(e) {
|
|
1908
1901
|
if (e.gamification)
|
|
1909
1902
|
throw new Error("GamificationBackground Singleton error");
|
|
1910
|
-
this.log =
|
|
1911
|
-
this.log.debug({ questionId: r }, "received question"), r ? (this.questionSubscription =
|
|
1903
|
+
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 ce(te(void 0), "moderationId").getStore(), this.openedQuestionId = new ce(te(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new ue(Pi(this.slStreamId, e.transport), "gamification:moderation"), this.activeQuestionId = new ue(Ri(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = new ue($i(this.openedQuestionId, e.transport), "gamification:openedQuestion"), this.openedQuestionId.listen((r) => {
|
|
1904
|
+
this.log.debug({ questionId: r }, "received question"), r ? (this.questionSubscription = Li(r, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (o) => {
|
|
1912
1905
|
window.requestAnimationFrame(() => {
|
|
1913
1906
|
this.openedQuestion.getStore().mutate(o.data?.attributes?.question);
|
|
1914
1907
|
});
|
|
1915
1908
|
}), this.questionSubscription.connect()) : (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0));
|
|
1916
|
-
}), this.feedSubscription =
|
|
1909
|
+
}), this.feedSubscription = Ni(this.slStreamId, e.transport), this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
|
|
1917
1910
|
window.requestAnimationFrame(() => {
|
|
1918
1911
|
const o = this.activeQuestionId.getStore();
|
|
1919
1912
|
o && o.mutate(r.data?.attributes);
|
|
@@ -1948,7 +1941,7 @@ class ji {
|
|
|
1948
1941
|
this.openedQuestionId.set(void 0), e && this.notifications.markAsViewed(this.getCurrentSessionId({ prefix: "notification", entity: e }));
|
|
1949
1942
|
};
|
|
1950
1943
|
}
|
|
1951
|
-
class
|
|
1944
|
+
class Vi {
|
|
1952
1945
|
notificationsList;
|
|
1953
1946
|
notifications;
|
|
1954
1947
|
store;
|
|
@@ -1958,7 +1951,7 @@ class Mi {
|
|
|
1958
1951
|
options;
|
|
1959
1952
|
logger;
|
|
1960
1953
|
constructor(e) {
|
|
1961
|
-
this.options = e, this.logger =
|
|
1954
|
+
this.options = e, this.logger = on("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notifications = new ce(te(/* @__PURE__ */ new Map()), "notifications-queue"), this.notificationsList = hr(this.notifications.getStore(), (r) => r ? [...r.values()] : []);
|
|
1962
1955
|
}
|
|
1963
1956
|
addToQueue = (e) => {
|
|
1964
1957
|
if (this.store.has(e.id)) {
|
|
@@ -2022,7 +2015,7 @@ var bt;
|
|
|
2022
2015
|
(function(t) {
|
|
2023
2016
|
t.OPENED = "opened";
|
|
2024
2017
|
})(bt || (bt = {}));
|
|
2025
|
-
class
|
|
2018
|
+
class qi extends pr {
|
|
2026
2019
|
constructor() {
|
|
2027
2020
|
super("notification");
|
|
2028
2021
|
}
|
|
@@ -2034,15 +2027,15 @@ class Vi extends pr {
|
|
|
2034
2027
|
this.clear();
|
|
2035
2028
|
};
|
|
2036
2029
|
}
|
|
2037
|
-
var
|
|
2030
|
+
var We;
|
|
2038
2031
|
(function(t) {
|
|
2039
2032
|
t[t.ONBOARDING = 1] = "ONBOARDING", t[t.QUESTION = 2] = "QUESTION";
|
|
2040
|
-
})(
|
|
2041
|
-
class
|
|
2033
|
+
})(We || (We = {}));
|
|
2034
|
+
class Gi {
|
|
2042
2035
|
queue;
|
|
2043
2036
|
storage;
|
|
2044
2037
|
constructor(e = {}) {
|
|
2045
|
-
this.storage = new
|
|
2038
|
+
this.storage = new qi(), this.queue = new Vi({ concurrency: 1, animationDelay: 300, ...e });
|
|
2046
2039
|
}
|
|
2047
2040
|
add = (e) => {
|
|
2048
2041
|
this.storage.isOpened(e.id) || this.queue.addToQueue(e);
|
|
@@ -2055,15 +2048,15 @@ class qi {
|
|
|
2055
2048
|
this.storage.setOpened(e);
|
|
2056
2049
|
};
|
|
2057
2050
|
}
|
|
2058
|
-
const
|
|
2059
|
-
t.notifications = new
|
|
2060
|
-
},
|
|
2051
|
+
const Qi = (t, e, r) => {
|
|
2052
|
+
t.notifications = new Gi(), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), r();
|
|
2053
|
+
}, zi = (t, e) => {
|
|
2061
2054
|
const { client: r } = t.createPromiseClient(de, { method: "submitAnswer" });
|
|
2062
2055
|
return r.submitAnswer({ data: e });
|
|
2063
|
-
},
|
|
2056
|
+
}, Ki = (t, e) => {
|
|
2064
2057
|
const { client: r } = t.createPromiseClient(de, { method: "submitInplay" });
|
|
2065
2058
|
return r.submitInplay({ data: { eventId: +e } });
|
|
2066
|
-
},
|
|
2059
|
+
}, Hi = (t, e) => {
|
|
2067
2060
|
const { client: r } = t.createPromiseClient(de, { method: "skipQuestion" });
|
|
2068
2061
|
return r.skipQuestion({ data: { id: e } });
|
|
2069
2062
|
};
|
|
@@ -2071,7 +2064,7 @@ var wt;
|
|
|
2071
2064
|
(function(t) {
|
|
2072
2065
|
t.ONBOARDING = "onboarding";
|
|
2073
2066
|
})(wt || (wt = {}));
|
|
2074
|
-
class
|
|
2067
|
+
class Wi extends pr {
|
|
2075
2068
|
constructor() {
|
|
2076
2069
|
super("gamification");
|
|
2077
2070
|
}
|
|
@@ -2080,12 +2073,46 @@ class Hi extends pr {
|
|
|
2080
2073
|
};
|
|
2081
2074
|
getOnboardingStatus = ({ userId: e, eventId: r, organizationId: o }) => this.read(wt.ONBOARDING, o, e, r);
|
|
2082
2075
|
}
|
|
2083
|
-
const Ir =
|
|
2076
|
+
const Ir = {
|
|
2077
|
+
pageSize: 10
|
|
2078
|
+
}, Ji = (t, e, r) => {
|
|
2079
|
+
const o = te({ pageSize: r?.pageSize || Ir.pageSize, page: 0 }), s = He({ data: [], loading: void 0, error: void 0 }), u = ki(t), l = async (A) => {
|
|
2080
|
+
if (A) {
|
|
2081
|
+
s.setKey("loading", !0);
|
|
2082
|
+
const g = {
|
|
2083
|
+
eventId: A,
|
|
2084
|
+
pagination: { page: 0, pageSize: r?.pageSize || Ir.pageSize }
|
|
2085
|
+
}, w = await u(g);
|
|
2086
|
+
s.set({ data: w.data.map((E) => E.attributes), loading: !1 }), o.set(g.pagination);
|
|
2087
|
+
}
|
|
2088
|
+
};
|
|
2089
|
+
e.listen(l);
|
|
2090
|
+
const f = () => {
|
|
2091
|
+
l(e.get());
|
|
2092
|
+
};
|
|
2093
|
+
return o.listen(async (A) => {
|
|
2094
|
+
const g = e.get(), w = s.get().data?.length || 0;
|
|
2095
|
+
if (A.page > 0 && g && w >= A.page * A.pageSize) {
|
|
2096
|
+
s.setKey("loading", !0);
|
|
2097
|
+
const T = await u({
|
|
2098
|
+
eventId: g,
|
|
2099
|
+
pagination: A
|
|
2100
|
+
}), P = s.get().data || [];
|
|
2101
|
+
s.set({
|
|
2102
|
+
data: [...P, ...T.data.map((N) => N.attributes)],
|
|
2103
|
+
loading: !1
|
|
2104
|
+
});
|
|
2105
|
+
}
|
|
2106
|
+
}), { $store: s, fetchMore: () => {
|
|
2107
|
+
const A = o.get();
|
|
2108
|
+
o.set({ ...A, page: A.page + 1 });
|
|
2109
|
+
}, invalidate: f };
|
|
2110
|
+
}, Fr = /* @__PURE__ */ new Set([ze.POLL, ze.PREDICTION, ze.TRIVIA]);
|
|
2084
2111
|
var Z;
|
|
2085
2112
|
(function(t) {
|
|
2086
2113
|
t.Unset = "unset", t.Required = "required", t.Optional = "optional", t.Completed = "completed", t.Disabled = "disabled", t.Unavailable = "unavailable";
|
|
2087
2114
|
})(Z || (Z = {}));
|
|
2088
|
-
class
|
|
2115
|
+
class Yi extends lr {
|
|
2089
2116
|
/** user statistics (leaderboard panel) */
|
|
2090
2117
|
userSummary;
|
|
2091
2118
|
/** questions list (pick history) */
|
|
@@ -2107,15 +2134,15 @@ class Wi extends lr {
|
|
|
2107
2134
|
/** Browser cache */
|
|
2108
2135
|
storage;
|
|
2109
2136
|
constructor(e, r, o) {
|
|
2110
|
-
super(e, r), this.background =
|
|
2137
|
+
super(e, r), this.background = sn(o), this.storage = new Wi(), this.userSummary = new ue(xi(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.questions = new ue(Di(this.background.slStreamId, o.transport), "gamification:questions"), this.leaderboardId = new ce(te(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = new ce(te(Z.Unset), "onboardingStatus").getStore(), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ae.GAMES), this.openedQuestion = hr(this.background.openedQuestion.getStore(), (s) => s.data?.type && Fr.has(s.data.type) ? { loading: !1, data: s.data } : { loading: s.loading, data: void 0 }), this.leaderboardList = Ji(this.transport, this.background.slStreamId), this.onboardingStatus.subscribe((s) => {
|
|
2111
2138
|
(s === Z.Optional || Z.Required) && this.showOnboardingInApp();
|
|
2112
2139
|
}), this.status.subscribe((s) => {
|
|
2113
2140
|
s === Le.Ready ? (this.notifications.close(this.background.getCurrentSessionId({ prefix: "onboarding" })), this.connect(o.transport)) : this.disconnect();
|
|
2114
2141
|
}), this.onboardingStatus.subscribe((s) => {
|
|
2115
2142
|
s && this.background.activeQuestionId.invalidate();
|
|
2116
2143
|
}), this.background.activeQuestionId.listen((s) => {
|
|
2117
|
-
s && s.data && this.onboardingStatus.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !==
|
|
2118
|
-
type:
|
|
2144
|
+
s && s.data && this.onboardingStatus.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && Fr.has(s.data.question.type) && s.data.question.status === Yt.ACTIVE && this.notifications.add({
|
|
2145
|
+
type: We.QUESTION,
|
|
2119
2146
|
action: () => s.data?.question && this.openQuestion(s.data.question.id),
|
|
2120
2147
|
close: () => s.data?.question && this.closeQuestion(s.data.question.id),
|
|
2121
2148
|
autoHideDuration: +(s.data.moderation?.question?.appearance?.autoHideInterval || "1000"),
|
|
@@ -2159,7 +2186,7 @@ class Wi extends lr {
|
|
|
2159
2186
|
return;
|
|
2160
2187
|
const { titleCard: r, overview: o } = e;
|
|
2161
2188
|
this.notifications.add({
|
|
2162
|
-
type:
|
|
2189
|
+
type: We.ONBOARDING,
|
|
2163
2190
|
id: this.background.getCurrentSessionId({ prefix: "onboarding" }),
|
|
2164
2191
|
action: this.openFeature,
|
|
2165
2192
|
close: this.closeFeature,
|
|
@@ -2185,9 +2212,9 @@ class Wi extends lr {
|
|
|
2185
2212
|
if (s === Yt.RESOLVED && u === ze.PREDICTION) {
|
|
2186
2213
|
const f = this.background.getCurrentSessionId({
|
|
2187
2214
|
prefix: `notification-id:${l}`
|
|
2188
|
-
}), A = (await
|
|
2215
|
+
}), A = (await Ui(l, e))?.answers.find(({ correct: g }) => g);
|
|
2189
2216
|
this.notifications.add({
|
|
2190
|
-
type:
|
|
2217
|
+
type: We.ONBOARDING,
|
|
2191
2218
|
action: () => this.openQuestion(l),
|
|
2192
2219
|
close: () => this.closeQuestion(l),
|
|
2193
2220
|
autoHideDuration: 5e3,
|
|
@@ -2210,22 +2237,22 @@ class Wi extends lr {
|
|
|
2210
2237
|
// onboarding
|
|
2211
2238
|
submitInplay = async () => {
|
|
2212
2239
|
const e = this.background.slStreamId.get();
|
|
2213
|
-
e && (await
|
|
2240
|
+
e && (await Ki(this.transport, e), this.onboardingStatus.set(Z.Completed), this.storage.saveOnboardingStatus({
|
|
2214
2241
|
organizationId: this.background.organizationId.get() || "",
|
|
2215
2242
|
userId: this.background.userId.get() || "",
|
|
2216
2243
|
eventId: e
|
|
2217
2244
|
}, Z.Completed));
|
|
2218
2245
|
};
|
|
2219
2246
|
submitAnswer = async (e, r) => {
|
|
2220
|
-
await
|
|
2247
|
+
await zi(this.transport, { questionId: e, answerId: r }), this.questions?.invalidate();
|
|
2221
2248
|
};
|
|
2222
2249
|
skipQuestion = async (e) => {
|
|
2223
|
-
await
|
|
2250
|
+
await Hi(this.transport, e), this.questions?.invalidate();
|
|
2224
2251
|
};
|
|
2225
2252
|
openQuestion = (e) => (this.openFeature(), this.background.openQuestion(e));
|
|
2226
2253
|
closeQuestion = (e) => this.background.closeQuestion(e);
|
|
2227
2254
|
}
|
|
2228
|
-
class
|
|
2255
|
+
class Xi extends lr {
|
|
2229
2256
|
insights;
|
|
2230
2257
|
closeFeature;
|
|
2231
2258
|
openFeature;
|
|
@@ -2234,11 +2261,11 @@ class Ji extends lr {
|
|
|
2234
2261
|
transport;
|
|
2235
2262
|
background;
|
|
2236
2263
|
constructor(e, r, o) {
|
|
2237
|
-
super(e, r), this.background =
|
|
2264
|
+
super(e, r), this.background = sn(o), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ae.HIGHLIGHTS), this.status.subscribe((s) => {
|
|
2238
2265
|
s === Le.Ready ? this.connect() : this.disconnect();
|
|
2239
2266
|
}), this.background.activeQuestionId.listen((s) => {
|
|
2240
|
-
s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !==
|
|
2241
|
-
type:
|
|
2267
|
+
s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && s.data.question.type === ze.FACTOID && s.data.question.status === Yt.ACTIVE && this.notifications.add({
|
|
2268
|
+
type: We.QUESTION,
|
|
2242
2269
|
action: () => s.data?.question && this.openHighlight(s.data.question.id),
|
|
2243
2270
|
close: () => s.data?.question && this.closeHighlight(s.data.question.id),
|
|
2244
2271
|
autoHideDuration: +(s.data.moderation?.question?.appearance?.autoHideInterval || "1000"),
|
|
@@ -2257,7 +2284,7 @@ class Ji extends lr {
|
|
|
2257
2284
|
});
|
|
2258
2285
|
}
|
|
2259
2286
|
connect = () => {
|
|
2260
|
-
this.insights ? this.insights.invalidate() : this.insights = new
|
|
2287
|
+
this.insights ? this.insights.invalidate() : this.insights = new ue(ji(this.background.slStreamId, this.transport), "gamification:insights"), this.background.feedSubscription.addListener("feed-subscription-insights-list", () => {
|
|
2261
2288
|
window.requestAnimationFrame(() => {
|
|
2262
2289
|
this.insights?.invalidate();
|
|
2263
2290
|
});
|
|
@@ -2270,18 +2297,18 @@ class Ji extends lr {
|
|
|
2270
2297
|
closeHighlight = (e) => this.background.closeQuestion(e);
|
|
2271
2298
|
}
|
|
2272
2299
|
ae.GAMES + "", ae.HIGHLIGHTS + "";
|
|
2273
|
-
class
|
|
2300
|
+
class Zi extends lr {
|
|
2274
2301
|
constructor(e, r) {
|
|
2275
2302
|
super(e, r);
|
|
2276
2303
|
}
|
|
2277
2304
|
}
|
|
2278
|
-
const
|
|
2279
|
-
t.features = /* @__PURE__ */ new Map(), t.activeFeature = new
|
|
2305
|
+
const eo = (t, e, r) => t.type === ae.GAMES ? new Yi(t, e, r) : t.type === ae.HIGHLIGHTS ? new Xi(t, e, r) : new Zi(t, e), to = (t, e, r) => {
|
|
2306
|
+
t.features = /* @__PURE__ */ new Map(), t.activeFeature = new ce(te(ae.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) => {
|
|
2280
2307
|
t.activeFeature.setValue(o);
|
|
2281
2308
|
}, t.sdk.closeFeature = () => {
|
|
2282
2309
|
t.activeFeature.setValue(ae.UNSET);
|
|
2283
2310
|
}, t.initFeature = (o, s = Ie.ORGANIZATION) => {
|
|
2284
|
-
const u =
|
|
2311
|
+
const u = eo(o, s, t);
|
|
2285
2312
|
t.features.set(o.type, u);
|
|
2286
2313
|
}, t.updateFeature = (o, s) => {
|
|
2287
2314
|
t.features.get(o.type)?.update(o, s);
|
|
@@ -2332,7 +2359,7 @@ const Xi = (t, e, r) => t.type === ae.GAMES ? new Wi(t, e, r) : t.type === ae.HI
|
|
|
2332
2359
|
}, r();
|
|
2333
2360
|
};
|
|
2334
2361
|
var dr = { exports: {} }, yr = { exports: {} };
|
|
2335
|
-
function
|
|
2362
|
+
function ro(t) {
|
|
2336
2363
|
var e = new t(), r = e;
|
|
2337
2364
|
function o() {
|
|
2338
2365
|
var u = e;
|
|
@@ -2346,21 +2373,21 @@ function eo(t) {
|
|
|
2346
2373
|
release: s
|
|
2347
2374
|
};
|
|
2348
2375
|
}
|
|
2349
|
-
var
|
|
2350
|
-
function
|
|
2376
|
+
var no = ro, io = no;
|
|
2377
|
+
function an(t, e, r) {
|
|
2351
2378
|
if (typeof t == "function" && (r = e, e = t, t = null), r < 1)
|
|
2352
2379
|
throw new Error("fastqueue concurrency must be greater than 1");
|
|
2353
|
-
var o =
|
|
2354
|
-
push:
|
|
2380
|
+
var o = io(oo), s = null, u = null, l = 0, f = null, d = {
|
|
2381
|
+
push: N,
|
|
2355
2382
|
drain: se,
|
|
2356
2383
|
saturated: se,
|
|
2357
2384
|
pause: g,
|
|
2358
2385
|
paused: !1,
|
|
2359
2386
|
concurrency: r,
|
|
2360
2387
|
running: A,
|
|
2361
|
-
resume:
|
|
2362
|
-
idle:
|
|
2363
|
-
length:
|
|
2388
|
+
resume: T,
|
|
2389
|
+
idle: P,
|
|
2390
|
+
length: w,
|
|
2364
2391
|
getQueue: E,
|
|
2365
2392
|
unshift: Q,
|
|
2366
2393
|
empty: se,
|
|
@@ -2375,7 +2402,7 @@ function sn(t, e, r) {
|
|
|
2375
2402
|
function g() {
|
|
2376
2403
|
d.paused = !0;
|
|
2377
2404
|
}
|
|
2378
|
-
function
|
|
2405
|
+
function w() {
|
|
2379
2406
|
for (var x = s, j = 0; x; )
|
|
2380
2407
|
x = x.next, j++;
|
|
2381
2408
|
return j;
|
|
@@ -2385,17 +2412,17 @@ function sn(t, e, r) {
|
|
|
2385
2412
|
j.push(x.value), x = x.next;
|
|
2386
2413
|
return j;
|
|
2387
2414
|
}
|
|
2388
|
-
function
|
|
2415
|
+
function T() {
|
|
2389
2416
|
if (d.paused) {
|
|
2390
2417
|
d.paused = !1;
|
|
2391
2418
|
for (var x = 0; x < d.concurrency; x++)
|
|
2392
2419
|
l++, z();
|
|
2393
2420
|
}
|
|
2394
2421
|
}
|
|
2395
|
-
function
|
|
2422
|
+
function P() {
|
|
2396
2423
|
return l === 0 && d.length() === 0;
|
|
2397
2424
|
}
|
|
2398
|
-
function
|
|
2425
|
+
function N(x, j) {
|
|
2399
2426
|
var B = o.get();
|
|
2400
2427
|
B.context = t, B.release = z, B.value = x, B.callback = j || se, B.errorHandler = f, l === d.concurrency || d.paused ? u ? (u.next = B, u = B) : (s = B, u = B, d.saturated()) : (l++, e.call(t, B.value, B.worked));
|
|
2401
2428
|
}
|
|
@@ -2420,7 +2447,7 @@ function sn(t, e, r) {
|
|
|
2420
2447
|
}
|
|
2421
2448
|
function se() {
|
|
2422
2449
|
}
|
|
2423
|
-
function
|
|
2450
|
+
function oo() {
|
|
2424
2451
|
this.value = null, this.callback = se, this.next = null, this.release = se, this.context = null, this.errorHandler = null;
|
|
2425
2452
|
var t = this;
|
|
2426
2453
|
this.worked = function(r, o) {
|
|
@@ -2428,78 +2455,78 @@ function no() {
|
|
|
2428
2455
|
t.value = null, t.callback = se, t.errorHandler && u(r, l), s.call(t.context, r, o), t.release(t);
|
|
2429
2456
|
};
|
|
2430
2457
|
}
|
|
2431
|
-
function
|
|
2458
|
+
function so(t, e, r) {
|
|
2432
2459
|
typeof t == "function" && (r = e, e = t, t = null);
|
|
2433
|
-
function o(g,
|
|
2460
|
+
function o(g, w) {
|
|
2434
2461
|
e.call(this, g).then(function(E) {
|
|
2435
|
-
|
|
2436
|
-
},
|
|
2462
|
+
w(null, E);
|
|
2463
|
+
}, w);
|
|
2437
2464
|
}
|
|
2438
|
-
var s =
|
|
2465
|
+
var s = an(t, o, r), u = s.push, l = s.unshift;
|
|
2439
2466
|
return s.push = f, s.unshift = d, s.drained = A, s;
|
|
2440
2467
|
function f(g) {
|
|
2441
|
-
var
|
|
2442
|
-
u(g, function(
|
|
2443
|
-
if (
|
|
2444
|
-
|
|
2468
|
+
var w = new Promise(function(E, T) {
|
|
2469
|
+
u(g, function(P, N) {
|
|
2470
|
+
if (P) {
|
|
2471
|
+
T(P);
|
|
2445
2472
|
return;
|
|
2446
2473
|
}
|
|
2447
|
-
E(
|
|
2474
|
+
E(N);
|
|
2448
2475
|
});
|
|
2449
2476
|
});
|
|
2450
|
-
return
|
|
2477
|
+
return w.catch(se), w;
|
|
2451
2478
|
}
|
|
2452
2479
|
function d(g) {
|
|
2453
|
-
var
|
|
2454
|
-
l(g, function(
|
|
2455
|
-
if (
|
|
2456
|
-
|
|
2480
|
+
var w = new Promise(function(E, T) {
|
|
2481
|
+
l(g, function(P, N) {
|
|
2482
|
+
if (P) {
|
|
2483
|
+
T(P);
|
|
2457
2484
|
return;
|
|
2458
2485
|
}
|
|
2459
|
-
E(
|
|
2486
|
+
E(N);
|
|
2460
2487
|
});
|
|
2461
2488
|
});
|
|
2462
|
-
return
|
|
2489
|
+
return w.catch(se), w;
|
|
2463
2490
|
}
|
|
2464
2491
|
function A() {
|
|
2465
2492
|
if (s.idle())
|
|
2466
2493
|
return new Promise(function(E) {
|
|
2467
2494
|
E();
|
|
2468
2495
|
});
|
|
2469
|
-
var g = s.drain,
|
|
2496
|
+
var g = s.drain, w = new Promise(function(E) {
|
|
2470
2497
|
s.drain = function() {
|
|
2471
2498
|
g(), E();
|
|
2472
2499
|
};
|
|
2473
2500
|
});
|
|
2474
|
-
return
|
|
2501
|
+
return w;
|
|
2475
2502
|
}
|
|
2476
2503
|
}
|
|
2477
|
-
yr.exports =
|
|
2478
|
-
yr.exports.promise =
|
|
2479
|
-
var
|
|
2504
|
+
yr.exports = an;
|
|
2505
|
+
yr.exports.promise = so;
|
|
2506
|
+
var un = yr.exports, gr = { exports: {} }, Je = typeof Reflect == "object" ? Reflect : null, Tr = Je && typeof Je.apply == "function" ? Je.apply : function(e, r, o) {
|
|
2480
2507
|
return Function.prototype.apply.call(e, r, o);
|
|
2481
2508
|
}, pt;
|
|
2482
|
-
|
|
2509
|
+
Je && typeof Je.ownKeys == "function" ? pt = Je.ownKeys : Object.getOwnPropertySymbols ? pt = function(e) {
|
|
2483
2510
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
2484
2511
|
} : pt = function(e) {
|
|
2485
2512
|
return Object.getOwnPropertyNames(e);
|
|
2486
2513
|
};
|
|
2487
|
-
function
|
|
2514
|
+
function ao(t) {
|
|
2488
2515
|
console && console.warn && console.warn(t);
|
|
2489
2516
|
}
|
|
2490
|
-
var
|
|
2517
|
+
var cn = Number.isNaN || function(e) {
|
|
2491
2518
|
return e !== e;
|
|
2492
2519
|
};
|
|
2493
2520
|
function $() {
|
|
2494
2521
|
$.init.call(this);
|
|
2495
2522
|
}
|
|
2496
2523
|
gr.exports = $;
|
|
2497
|
-
gr.exports.once =
|
|
2524
|
+
gr.exports.once = lo;
|
|
2498
2525
|
$.EventEmitter = $;
|
|
2499
2526
|
$.prototype._events = void 0;
|
|
2500
2527
|
$.prototype._eventsCount = 0;
|
|
2501
2528
|
$.prototype._maxListeners = void 0;
|
|
2502
|
-
var
|
|
2529
|
+
var Cr = 10;
|
|
2503
2530
|
function Bt(t) {
|
|
2504
2531
|
if (typeof t != "function")
|
|
2505
2532
|
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
|
|
@@ -2507,27 +2534,27 @@ function Bt(t) {
|
|
|
2507
2534
|
Object.defineProperty($, "defaultMaxListeners", {
|
|
2508
2535
|
enumerable: !0,
|
|
2509
2536
|
get: function() {
|
|
2510
|
-
return
|
|
2537
|
+
return Cr;
|
|
2511
2538
|
},
|
|
2512
2539
|
set: function(t) {
|
|
2513
|
-
if (typeof t != "number" || t < 0 ||
|
|
2540
|
+
if (typeof t != "number" || t < 0 || cn(t))
|
|
2514
2541
|
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
|
|
2515
|
-
|
|
2542
|
+
Cr = t;
|
|
2516
2543
|
}
|
|
2517
2544
|
});
|
|
2518
2545
|
$.init = function() {
|
|
2519
2546
|
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
2520
2547
|
};
|
|
2521
2548
|
$.prototype.setMaxListeners = function(e) {
|
|
2522
|
-
if (typeof e != "number" || e < 0 ||
|
|
2549
|
+
if (typeof e != "number" || e < 0 || cn(e))
|
|
2523
2550
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
|
|
2524
2551
|
return this._maxListeners = e, this;
|
|
2525
2552
|
};
|
|
2526
|
-
function
|
|
2553
|
+
function fn(t) {
|
|
2527
2554
|
return t._maxListeners === void 0 ? $.defaultMaxListeners : t._maxListeners;
|
|
2528
2555
|
}
|
|
2529
2556
|
$.prototype.getMaxListeners = function() {
|
|
2530
|
-
return
|
|
2557
|
+
return fn(this);
|
|
2531
2558
|
};
|
|
2532
2559
|
$.prototype.emit = function(e) {
|
|
2533
2560
|
for (var r = [], o = 1; o < arguments.length; o++)
|
|
@@ -2548,13 +2575,13 @@ $.prototype.emit = function(e) {
|
|
|
2548
2575
|
if (d === void 0)
|
|
2549
2576
|
return !1;
|
|
2550
2577
|
if (typeof d == "function")
|
|
2551
|
-
|
|
2578
|
+
Tr(d, this, r);
|
|
2552
2579
|
else
|
|
2553
|
-
for (var A = d.length, g =
|
|
2554
|
-
|
|
2580
|
+
for (var A = d.length, g = yn(d, A), o = 0; o < A; ++o)
|
|
2581
|
+
Tr(g[o], this, r);
|
|
2555
2582
|
return !0;
|
|
2556
2583
|
};
|
|
2557
|
-
function
|
|
2584
|
+
function ln(t, e, r, o) {
|
|
2558
2585
|
var s, u, l;
|
|
2559
2586
|
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(
|
|
2560
2587
|
"newListener",
|
|
@@ -2562,33 +2589,33 @@ function fn(t, e, r, o) {
|
|
|
2562
2589
|
r.listener ? r.listener : r
|
|
2563
2590
|
), u = t._events), l = u[e]), l === void 0)
|
|
2564
2591
|
l = u[e] = r, ++t._eventsCount;
|
|
2565
|
-
else if (typeof l == "function" ? l = u[e] = o ? [r, l] : [l, r] : o ? l.unshift(r) : l.push(r), s =
|
|
2592
|
+
else if (typeof l == "function" ? l = u[e] = o ? [r, l] : [l, r] : o ? l.unshift(r) : l.push(r), s = fn(t), s > 0 && l.length > s && !l.warned) {
|
|
2566
2593
|
l.warned = !0;
|
|
2567
2594
|
var f = new Error("Possible EventEmitter memory leak detected. " + l.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
2568
|
-
f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = l.length,
|
|
2595
|
+
f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = l.length, ao(f);
|
|
2569
2596
|
}
|
|
2570
2597
|
return t;
|
|
2571
2598
|
}
|
|
2572
2599
|
$.prototype.addListener = function(e, r) {
|
|
2573
|
-
return
|
|
2600
|
+
return ln(this, e, r, !1);
|
|
2574
2601
|
};
|
|
2575
2602
|
$.prototype.on = $.prototype.addListener;
|
|
2576
2603
|
$.prototype.prependListener = function(e, r) {
|
|
2577
|
-
return
|
|
2604
|
+
return ln(this, e, r, !0);
|
|
2578
2605
|
};
|
|
2579
|
-
function
|
|
2606
|
+
function uo() {
|
|
2580
2607
|
if (!this.fired)
|
|
2581
2608
|
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);
|
|
2582
2609
|
}
|
|
2583
|
-
function
|
|
2584
|
-
var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s =
|
|
2610
|
+
function hn(t, e, r) {
|
|
2611
|
+
var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s = uo.bind(o);
|
|
2585
2612
|
return s.listener = r, o.wrapFn = s, s;
|
|
2586
2613
|
}
|
|
2587
2614
|
$.prototype.once = function(e, r) {
|
|
2588
|
-
return Bt(r), this.on(e,
|
|
2615
|
+
return Bt(r), this.on(e, hn(this, e, r)), this;
|
|
2589
2616
|
};
|
|
2590
2617
|
$.prototype.prependOnceListener = function(e, r) {
|
|
2591
|
-
return Bt(r), this.prependListener(e,
|
|
2618
|
+
return Bt(r), this.prependListener(e, hn(this, e, r)), this;
|
|
2592
2619
|
};
|
|
2593
2620
|
$.prototype.removeListener = function(e, r) {
|
|
2594
2621
|
var o, s, u, l, f;
|
|
@@ -2606,7 +2633,7 @@ $.prototype.removeListener = function(e, r) {
|
|
|
2606
2633
|
}
|
|
2607
2634
|
if (u < 0)
|
|
2608
2635
|
return this;
|
|
2609
|
-
u === 0 ? o.shift() :
|
|
2636
|
+
u === 0 ? o.shift() : co(o, u), o.length === 1 && (s[e] = o[0]), s.removeListener !== void 0 && this.emit("removeListener", e, f || r);
|
|
2610
2637
|
}
|
|
2611
2638
|
return this;
|
|
2612
2639
|
};
|
|
@@ -2630,24 +2657,24 @@ $.prototype.removeAllListeners = function(e) {
|
|
|
2630
2657
|
this.removeListener(e, r[s]);
|
|
2631
2658
|
return this;
|
|
2632
2659
|
};
|
|
2633
|
-
function
|
|
2660
|
+
function pn(t, e, r) {
|
|
2634
2661
|
var o = t._events;
|
|
2635
2662
|
if (o === void 0)
|
|
2636
2663
|
return [];
|
|
2637
2664
|
var s = o[e];
|
|
2638
|
-
return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ?
|
|
2665
|
+
return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? fo(s) : yn(s, s.length);
|
|
2639
2666
|
}
|
|
2640
2667
|
$.prototype.listeners = function(e) {
|
|
2641
|
-
return
|
|
2668
|
+
return pn(this, e, !0);
|
|
2642
2669
|
};
|
|
2643
2670
|
$.prototype.rawListeners = function(e) {
|
|
2644
|
-
return
|
|
2671
|
+
return pn(this, e, !1);
|
|
2645
2672
|
};
|
|
2646
2673
|
$.listenerCount = function(t, e) {
|
|
2647
|
-
return typeof t.listenerCount == "function" ? t.listenerCount(e) :
|
|
2674
|
+
return typeof t.listenerCount == "function" ? t.listenerCount(e) : dn.call(t, e);
|
|
2648
2675
|
};
|
|
2649
|
-
$.prototype.listenerCount =
|
|
2650
|
-
function
|
|
2676
|
+
$.prototype.listenerCount = dn;
|
|
2677
|
+
function dn(t) {
|
|
2651
2678
|
var e = this._events;
|
|
2652
2679
|
if (e !== void 0) {
|
|
2653
2680
|
var r = e[t];
|
|
@@ -2661,22 +2688,22 @@ function pn(t) {
|
|
|
2661
2688
|
$.prototype.eventNames = function() {
|
|
2662
2689
|
return this._eventsCount > 0 ? pt(this._events) : [];
|
|
2663
2690
|
};
|
|
2664
|
-
function
|
|
2691
|
+
function yn(t, e) {
|
|
2665
2692
|
for (var r = new Array(e), o = 0; o < e; ++o)
|
|
2666
2693
|
r[o] = t[o];
|
|
2667
2694
|
return r;
|
|
2668
2695
|
}
|
|
2669
|
-
function
|
|
2696
|
+
function co(t, e) {
|
|
2670
2697
|
for (; e + 1 < t.length; e++)
|
|
2671
2698
|
t[e] = t[e + 1];
|
|
2672
2699
|
t.pop();
|
|
2673
2700
|
}
|
|
2674
|
-
function
|
|
2701
|
+
function fo(t) {
|
|
2675
2702
|
for (var e = new Array(t.length), r = 0; r < e.length; ++r)
|
|
2676
2703
|
e[r] = t[r].listener || t[r];
|
|
2677
2704
|
return e;
|
|
2678
2705
|
}
|
|
2679
|
-
function
|
|
2706
|
+
function lo(t, e) {
|
|
2680
2707
|
return new Promise(function(r, o) {
|
|
2681
2708
|
function s(l) {
|
|
2682
2709
|
t.removeListener(e, u), o(l);
|
|
@@ -2684,13 +2711,13 @@ function co(t, e) {
|
|
|
2684
2711
|
function u() {
|
|
2685
2712
|
typeof t.removeListener == "function" && t.removeListener("error", s), r([].slice.call(arguments));
|
|
2686
2713
|
}
|
|
2687
|
-
|
|
2714
|
+
gn(t, e, u, { once: !0 }), e !== "error" && ho(t, s, { once: !0 });
|
|
2688
2715
|
});
|
|
2689
2716
|
}
|
|
2690
|
-
function
|
|
2691
|
-
typeof t.on == "function" &&
|
|
2717
|
+
function ho(t, e, r) {
|
|
2718
|
+
typeof t.on == "function" && gn(t, "error", e, r);
|
|
2692
2719
|
}
|
|
2693
|
-
function
|
|
2720
|
+
function gn(t, e, r, o) {
|
|
2694
2721
|
if (typeof t.on == "function")
|
|
2695
2722
|
o.once ? t.once(e, r) : t.on(e, r);
|
|
2696
2723
|
else if (typeof t.addEventListener == "function")
|
|
@@ -2700,7 +2727,7 @@ function yn(t, e, r, o) {
|
|
|
2700
2727
|
else
|
|
2701
2728
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
|
|
2702
2729
|
}
|
|
2703
|
-
var
|
|
2730
|
+
var mn = gr.exports, Ot = {}, bn = {}, wn = function() {
|
|
2704
2731
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2705
2732
|
return !1;
|
|
2706
2733
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2723,57 +2750,57 @@ var gn = gr.exports, Ot = {}, mn = {}, bn = function() {
|
|
|
2723
2750
|
return !1;
|
|
2724
2751
|
}
|
|
2725
2752
|
return !0;
|
|
2726
|
-
},
|
|
2727
|
-
return
|
|
2728
|
-
},
|
|
2729
|
-
return typeof
|
|
2730
|
-
},
|
|
2753
|
+
}, po = wn, mr = function() {
|
|
2754
|
+
return po() && !!Symbol.toStringTag;
|
|
2755
|
+
}, _r = typeof Symbol < "u" && Symbol, yo = wn, go = function() {
|
|
2756
|
+
return typeof _r != "function" || typeof Symbol != "function" || typeof _r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : yo();
|
|
2757
|
+
}, Br = {
|
|
2731
2758
|
foo: {}
|
|
2732
|
-
},
|
|
2733
|
-
return { __proto__:
|
|
2734
|
-
},
|
|
2759
|
+
}, mo = Object, bo = function() {
|
|
2760
|
+
return { __proto__: Br }.foo === Br.foo && !({ __proto__: null } instanceof mo);
|
|
2761
|
+
}, wo = "Function.prototype.bind called on incompatible ", vo = Object.prototype.toString, So = Math.max, Ao = "[object Function]", Or = function(e, r) {
|
|
2735
2762
|
for (var o = [], s = 0; s < e.length; s += 1)
|
|
2736
2763
|
o[s] = e[s];
|
|
2737
2764
|
for (var u = 0; u < r.length; u += 1)
|
|
2738
2765
|
o[u + e.length] = r[u];
|
|
2739
2766
|
return o;
|
|
2740
|
-
},
|
|
2767
|
+
}, Eo = function(e, r) {
|
|
2741
2768
|
for (var o = [], s = r || 0, u = 0; s < e.length; s += 1, u += 1)
|
|
2742
2769
|
o[u] = e[s];
|
|
2743
2770
|
return o;
|
|
2744
|
-
},
|
|
2771
|
+
}, Io = function(t, e) {
|
|
2745
2772
|
for (var r = "", o = 0; o < t.length; o += 1)
|
|
2746
2773
|
r += t[o], o + 1 < t.length && (r += e);
|
|
2747
2774
|
return r;
|
|
2748
|
-
},
|
|
2775
|
+
}, Fo = function(e) {
|
|
2749
2776
|
var r = this;
|
|
2750
|
-
if (typeof r != "function" ||
|
|
2751
|
-
throw new TypeError(
|
|
2752
|
-
for (var o =
|
|
2777
|
+
if (typeof r != "function" || vo.apply(r) !== Ao)
|
|
2778
|
+
throw new TypeError(wo + r);
|
|
2779
|
+
for (var o = Eo(arguments, 1), s, u = function() {
|
|
2753
2780
|
if (this instanceof s) {
|
|
2754
2781
|
var g = r.apply(
|
|
2755
2782
|
this,
|
|
2756
|
-
|
|
2783
|
+
Or(o, arguments)
|
|
2757
2784
|
);
|
|
2758
2785
|
return Object(g) === g ? g : this;
|
|
2759
2786
|
}
|
|
2760
2787
|
return r.apply(
|
|
2761
2788
|
e,
|
|
2762
|
-
|
|
2789
|
+
Or(o, arguments)
|
|
2763
2790
|
);
|
|
2764
|
-
}, l =
|
|
2791
|
+
}, l = So(0, r.length - o.length), f = [], d = 0; d < l; d++)
|
|
2765
2792
|
f[d] = "$" + d;
|
|
2766
|
-
if (s = Function("binder", "return function (" +
|
|
2793
|
+
if (s = Function("binder", "return function (" + Io(f, ",") + "){ return binder.apply(this,arguments); }")(u), r.prototype) {
|
|
2767
2794
|
var A = function() {
|
|
2768
2795
|
};
|
|
2769
2796
|
A.prototype = r.prototype, s.prototype = new A(), A.prototype = null;
|
|
2770
2797
|
}
|
|
2771
2798
|
return s;
|
|
2772
|
-
},
|
|
2773
|
-
return Lt.call(
|
|
2774
|
-
}, k,
|
|
2799
|
+
}, To = Fo, vn = Function.prototype.bind || To, xr = {}.hasOwnProperty, Lt = Function.prototype.call, Co = Lt.bind ? Lt.bind(xr) : function(t, e) {
|
|
2800
|
+
return Lt.call(xr, t, e);
|
|
2801
|
+
}, k, Xe = SyntaxError, Sn = Function, Ye = TypeError, Ut = function(t) {
|
|
2775
2802
|
try {
|
|
2776
|
-
return
|
|
2803
|
+
return Sn('"use strict"; return (' + t + ").constructor;")();
|
|
2777
2804
|
} catch {
|
|
2778
2805
|
}
|
|
2779
2806
|
}, Ue = Object.getOwnPropertyDescriptor;
|
|
@@ -2784,8 +2811,8 @@ if (Ue)
|
|
|
2784
2811
|
Ue = null;
|
|
2785
2812
|
}
|
|
2786
2813
|
var $t = function() {
|
|
2787
|
-
throw new
|
|
2788
|
-
},
|
|
2814
|
+
throw new Ye();
|
|
2815
|
+
}, _o = Ue ? function() {
|
|
2789
2816
|
try {
|
|
2790
2817
|
return arguments.callee, $t;
|
|
2791
2818
|
} catch {
|
|
@@ -2795,9 +2822,9 @@ var $t = function() {
|
|
|
2795
2822
|
return $t;
|
|
2796
2823
|
}
|
|
2797
2824
|
}
|
|
2798
|
-
}() : $t, Me =
|
|
2825
|
+
}() : $t, Me = go(), Bo = bo(), H = Object.getPrototypeOf || (Bo ? function(t) {
|
|
2799
2826
|
return t.__proto__;
|
|
2800
|
-
} : null), qe = {},
|
|
2827
|
+
} : null), qe = {}, Oo = typeof Uint8Array > "u" || !H ? k : H(Uint8Array), $e = {
|
|
2801
2828
|
"%AggregateError%": typeof AggregateError > "u" ? k : AggregateError,
|
|
2802
2829
|
"%Array%": Array,
|
|
2803
2830
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? k : ArrayBuffer,
|
|
@@ -2825,7 +2852,7 @@ var $t = function() {
|
|
|
2825
2852
|
"%Float32Array%": typeof Float32Array > "u" ? k : Float32Array,
|
|
2826
2853
|
"%Float64Array%": typeof Float64Array > "u" ? k : Float64Array,
|
|
2827
2854
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? k : FinalizationRegistry,
|
|
2828
|
-
"%Function%":
|
|
2855
|
+
"%Function%": Sn,
|
|
2829
2856
|
"%GeneratorFunction%": qe,
|
|
2830
2857
|
"%Int8Array%": typeof Int8Array > "u" ? k : Int8Array,
|
|
2831
2858
|
"%Int16Array%": typeof Int16Array > "u" ? k : Int16Array,
|
|
@@ -2853,10 +2880,10 @@ var $t = function() {
|
|
|
2853
2880
|
"%String%": String,
|
|
2854
2881
|
"%StringIteratorPrototype%": Me && H ? H(""[Symbol.iterator]()) : k,
|
|
2855
2882
|
"%Symbol%": Me ? Symbol : k,
|
|
2856
|
-
"%SyntaxError%":
|
|
2857
|
-
"%ThrowTypeError%":
|
|
2858
|
-
"%TypedArray%":
|
|
2859
|
-
"%TypeError%":
|
|
2883
|
+
"%SyntaxError%": Xe,
|
|
2884
|
+
"%ThrowTypeError%": _o,
|
|
2885
|
+
"%TypedArray%": Oo,
|
|
2886
|
+
"%TypeError%": Ye,
|
|
2860
2887
|
"%Uint8Array%": typeof Uint8Array > "u" ? k : Uint8Array,
|
|
2861
2888
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? k : Uint8ClampedArray,
|
|
2862
2889
|
"%Uint16Array%": typeof Uint16Array > "u" ? k : Uint16Array,
|
|
@@ -2870,10 +2897,10 @@ if (H)
|
|
|
2870
2897
|
try {
|
|
2871
2898
|
null.error;
|
|
2872
2899
|
} catch (t) {
|
|
2873
|
-
var
|
|
2874
|
-
$e["%Error.prototype%"] =
|
|
2900
|
+
var xo = H(H(t));
|
|
2901
|
+
$e["%Error.prototype%"] = xo;
|
|
2875
2902
|
}
|
|
2876
|
-
var
|
|
2903
|
+
var ko = function t(e) {
|
|
2877
2904
|
var r;
|
|
2878
2905
|
if (e === "%AsyncFunction%")
|
|
2879
2906
|
r = Ut("async function () {}");
|
|
@@ -2889,7 +2916,7 @@ var Oo = function t(e) {
|
|
|
2889
2916
|
s && H && (r = H(s.prototype));
|
|
2890
2917
|
}
|
|
2891
2918
|
return $e[e] = r, r;
|
|
2892
|
-
},
|
|
2919
|
+
}, kr = {
|
|
2893
2920
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
2894
2921
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
2895
2922
|
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
@@ -2941,60 +2968,60 @@ var Oo = function t(e) {
|
|
|
2941
2968
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2942
2969
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2943
2970
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2944
|
-
}, ct =
|
|
2971
|
+
}, ct = vn, vt = Co, Po = ct.call(Function.call, Array.prototype.concat), Ro = ct.call(Function.apply, Array.prototype.splice), Pr = ct.call(Function.call, String.prototype.replace), St = ct.call(Function.call, String.prototype.slice), No = ct.call(Function.call, RegExp.prototype.exec), Lo = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Uo = /\\(\\)?/g, $o = function(e) {
|
|
2945
2972
|
var r = St(e, 0, 1), o = St(e, -1);
|
|
2946
2973
|
if (r === "%" && o !== "%")
|
|
2947
|
-
throw new
|
|
2974
|
+
throw new Xe("invalid intrinsic syntax, expected closing `%`");
|
|
2948
2975
|
if (o === "%" && r !== "%")
|
|
2949
|
-
throw new
|
|
2976
|
+
throw new Xe("invalid intrinsic syntax, expected opening `%`");
|
|
2950
2977
|
var s = [];
|
|
2951
|
-
return
|
|
2952
|
-
s[s.length] = f ?
|
|
2978
|
+
return Pr(e, Lo, function(u, l, f, d) {
|
|
2979
|
+
s[s.length] = f ? Pr(d, Uo, "$1") : l || u;
|
|
2953
2980
|
}), s;
|
|
2954
|
-
},
|
|
2981
|
+
}, Do = function(e, r) {
|
|
2955
2982
|
var o = e, s;
|
|
2956
|
-
if (vt(
|
|
2983
|
+
if (vt(kr, o) && (s = kr[o], o = "%" + s[0] + "%"), vt($e, o)) {
|
|
2957
2984
|
var u = $e[o];
|
|
2958
|
-
if (u === qe && (u =
|
|
2959
|
-
throw new
|
|
2985
|
+
if (u === qe && (u = ko(o)), typeof u > "u" && !r)
|
|
2986
|
+
throw new Ye("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
2960
2987
|
return {
|
|
2961
2988
|
alias: s,
|
|
2962
2989
|
name: o,
|
|
2963
2990
|
value: u
|
|
2964
2991
|
};
|
|
2965
2992
|
}
|
|
2966
|
-
throw new
|
|
2967
|
-
},
|
|
2993
|
+
throw new Xe("intrinsic " + e + " does not exist!");
|
|
2994
|
+
}, et = function(e, r) {
|
|
2968
2995
|
if (typeof e != "string" || e.length === 0)
|
|
2969
|
-
throw new
|
|
2996
|
+
throw new Ye("intrinsic name must be a non-empty string");
|
|
2970
2997
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
2971
|
-
throw new
|
|
2972
|
-
if (
|
|
2973
|
-
throw new
|
|
2974
|
-
var o =
|
|
2975
|
-
A && (s = A[0],
|
|
2976
|
-
for (var g = 1,
|
|
2977
|
-
var E = o[g],
|
|
2978
|
-
if ((
|
|
2979
|
-
throw new
|
|
2980
|
-
if ((E === "constructor" || !
|
|
2998
|
+
throw new Ye('"allowMissing" argument must be a boolean');
|
|
2999
|
+
if (No(/^%?[^%]*%?$/, e) === null)
|
|
3000
|
+
throw new Xe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
3001
|
+
var o = $o(e), s = o.length > 0 ? o[0] : "", u = Do("%" + s + "%", r), l = u.name, f = u.value, d = !1, A = u.alias;
|
|
3002
|
+
A && (s = A[0], Ro(o, Po([0, 1], A)));
|
|
3003
|
+
for (var g = 1, w = !0; g < o.length; g += 1) {
|
|
3004
|
+
var E = o[g], T = St(E, 0, 1), P = St(E, -1);
|
|
3005
|
+
if ((T === '"' || T === "'" || T === "`" || P === '"' || P === "'" || P === "`") && T !== P)
|
|
3006
|
+
throw new Xe("property names with quotes must have matching quotes");
|
|
3007
|
+
if ((E === "constructor" || !w) && (d = !0), s += "." + E, l = "%" + s + "%", vt($e, l))
|
|
2981
3008
|
f = $e[l];
|
|
2982
3009
|
else if (f != null) {
|
|
2983
3010
|
if (!(E in f)) {
|
|
2984
3011
|
if (!r)
|
|
2985
|
-
throw new
|
|
3012
|
+
throw new Ye("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2986
3013
|
return;
|
|
2987
3014
|
}
|
|
2988
3015
|
if (Ue && g + 1 >= o.length) {
|
|
2989
|
-
var
|
|
2990
|
-
|
|
3016
|
+
var N = Ue(f, E);
|
|
3017
|
+
w = !!N, w && "get" in N && !("originalValue" in N.get) ? f = N.get : f = f[E];
|
|
2991
3018
|
} else
|
|
2992
|
-
|
|
2993
|
-
|
|
3019
|
+
w = vt(f, E), f = f[E];
|
|
3020
|
+
w && !d && ($e[l] = f);
|
|
2994
3021
|
}
|
|
2995
3022
|
}
|
|
2996
3023
|
return f;
|
|
2997
|
-
},
|
|
3024
|
+
}, An = { exports: {} }, jo = et, er = jo("%Object.defineProperty%", !0), tr = function() {
|
|
2998
3025
|
if (er)
|
|
2999
3026
|
try {
|
|
3000
3027
|
return er({}, "a", { value: 1 }), !0;
|
|
@@ -3012,21 +3039,21 @@ tr.hasArrayLengthDefineBug = function() {
|
|
|
3012
3039
|
return !0;
|
|
3013
3040
|
}
|
|
3014
3041
|
};
|
|
3015
|
-
var
|
|
3042
|
+
var En = tr, Mo = et, dt = Mo("%Object.getOwnPropertyDescriptor%", !0);
|
|
3016
3043
|
if (dt)
|
|
3017
3044
|
try {
|
|
3018
3045
|
dt([], "length");
|
|
3019
3046
|
} catch {
|
|
3020
3047
|
dt = null;
|
|
3021
3048
|
}
|
|
3022
|
-
var br = dt,
|
|
3049
|
+
var br = dt, Vo = En(), wr = et, at = Vo && wr("%Object.defineProperty%", !0);
|
|
3023
3050
|
if (at)
|
|
3024
3051
|
try {
|
|
3025
3052
|
at({}, "a", { value: 1 });
|
|
3026
3053
|
} catch {
|
|
3027
3054
|
at = !1;
|
|
3028
3055
|
}
|
|
3029
|
-
var
|
|
3056
|
+
var qo = wr("%SyntaxError%"), Ve = wr("%TypeError%"), Rr = br, Go = function(e, r, o) {
|
|
3030
3057
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
3031
3058
|
throw new Ve("`obj` must be an object or a function`");
|
|
3032
3059
|
if (typeof r != "string" && typeof r != "symbol")
|
|
@@ -3039,7 +3066,7 @@ var Mo = wr("%SyntaxError%"), Ve = wr("%TypeError%"), Pr = br, Vo = function(e,
|
|
|
3039
3066
|
throw new Ve("`nonConfigurable`, if provided, must be a boolean or null");
|
|
3040
3067
|
if (arguments.length > 6 && typeof arguments[6] != "boolean")
|
|
3041
3068
|
throw new Ve("`loose`, if provided, must be a boolean");
|
|
3042
|
-
var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, d = !!
|
|
3069
|
+
var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, d = !!Rr && Rr(e, r);
|
|
3043
3070
|
if (at)
|
|
3044
3071
|
at(e, r, {
|
|
3045
3072
|
configurable: l === null && d ? d.configurable : !l,
|
|
@@ -3050,21 +3077,21 @@ var Mo = wr("%SyntaxError%"), Ve = wr("%TypeError%"), Pr = br, Vo = function(e,
|
|
|
3050
3077
|
else if (f || !s && !u && !l)
|
|
3051
3078
|
e[r] = o;
|
|
3052
3079
|
else
|
|
3053
|
-
throw new
|
|
3054
|
-
},
|
|
3080
|
+
throw new qo("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
3081
|
+
}, In = et, Nr = Go, Qo = En(), Lr = br, Ur = In("%TypeError%"), zo = In("%Math.floor%"), Ko = function(e, r) {
|
|
3055
3082
|
if (typeof e != "function")
|
|
3056
|
-
throw new
|
|
3057
|
-
if (typeof r != "number" || r < 0 || r > 4294967295 ||
|
|
3058
|
-
throw new
|
|
3083
|
+
throw new Ur("`fn` is not a function");
|
|
3084
|
+
if (typeof r != "number" || r < 0 || r > 4294967295 || zo(r) !== r)
|
|
3085
|
+
throw new Ur("`length` must be a positive 32-bit integer");
|
|
3059
3086
|
var o = arguments.length > 2 && !!arguments[2], s = !0, u = !0;
|
|
3060
|
-
if ("length" in e &&
|
|
3061
|
-
var l =
|
|
3087
|
+
if ("length" in e && Lr) {
|
|
3088
|
+
var l = Lr(e, "length");
|
|
3062
3089
|
l && !l.configurable && (s = !1), l && !l.writable && (u = !1);
|
|
3063
3090
|
}
|
|
3064
|
-
return (s || u || !o) && (
|
|
3091
|
+
return (s || u || !o) && (Qo ? Nr(e, "length", r, !0, !0) : Nr(e, "length", r)), e;
|
|
3065
3092
|
};
|
|
3066
3093
|
(function(t) {
|
|
3067
|
-
var e =
|
|
3094
|
+
var e = vn, r = et, o = Ko, s = r("%TypeError%"), u = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), f = r("%Reflect.apply%", !0) || e.call(l, u), d = r("%Object.defineProperty%", !0), A = r("%Math.max%");
|
|
3068
3095
|
if (d)
|
|
3069
3096
|
try {
|
|
3070
3097
|
d({}, "a", { value: 1 });
|
|
@@ -3074,9 +3101,9 @@ var Mo = wr("%SyntaxError%"), Ve = wr("%TypeError%"), Pr = br, Vo = function(e,
|
|
|
3074
3101
|
t.exports = function(E) {
|
|
3075
3102
|
if (typeof E != "function")
|
|
3076
3103
|
throw new s("a function is required");
|
|
3077
|
-
var
|
|
3104
|
+
var T = f(e, l, arguments);
|
|
3078
3105
|
return o(
|
|
3079
|
-
|
|
3106
|
+
T,
|
|
3080
3107
|
1 + A(0, E.length - (arguments.length - 1)),
|
|
3081
3108
|
!0
|
|
3082
3109
|
);
|
|
@@ -3085,42 +3112,42 @@ var Mo = wr("%SyntaxError%"), Ve = wr("%TypeError%"), Pr = br, Vo = function(e,
|
|
|
3085
3112
|
return f(e, u, arguments);
|
|
3086
3113
|
};
|
|
3087
3114
|
d ? d(t.exports, "apply", { value: g }) : t.exports.apply = g;
|
|
3088
|
-
})(
|
|
3089
|
-
var
|
|
3090
|
-
var o =
|
|
3091
|
-
return typeof o == "function" &&
|
|
3092
|
-
},
|
|
3093
|
-
return
|
|
3094
|
-
},
|
|
3115
|
+
})(An);
|
|
3116
|
+
var Fn = An.exports, Tn = et, Cn = Fn, Ho = Cn(Tn("String.prototype.indexOf")), _n = function(e, r) {
|
|
3117
|
+
var o = Tn(e, !!r);
|
|
3118
|
+
return typeof o == "function" && Ho(e, ".prototype.") > -1 ? Cn(o) : o;
|
|
3119
|
+
}, Wo = mr(), Jo = _n, rr = Jo("Object.prototype.toString"), xt = function(e) {
|
|
3120
|
+
return Wo && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : rr(e) === "[object Arguments]";
|
|
3121
|
+
}, Bn = function(e) {
|
|
3095
3122
|
return xt(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && rr(e) !== "[object Array]" && rr(e.callee) === "[object Function]";
|
|
3096
|
-
},
|
|
3123
|
+
}, Yo = function() {
|
|
3097
3124
|
return xt(arguments);
|
|
3098
3125
|
}();
|
|
3099
|
-
xt.isLegacyArguments =
|
|
3100
|
-
var
|
|
3101
|
-
if (!
|
|
3126
|
+
xt.isLegacyArguments = Bn;
|
|
3127
|
+
var Xo = Yo ? xt : Bn, Zo = Object.prototype.toString, es = Function.prototype.toString, ts = /^\s*(?:function)?\*/, On = mr(), Dt = Object.getPrototypeOf, rs = function() {
|
|
3128
|
+
if (!On)
|
|
3102
3129
|
return !1;
|
|
3103
3130
|
try {
|
|
3104
3131
|
return Function("return function*() {}")();
|
|
3105
3132
|
} catch {
|
|
3106
3133
|
}
|
|
3107
|
-
}, jt,
|
|
3134
|
+
}, jt, ns = function(e) {
|
|
3108
3135
|
if (typeof e != "function")
|
|
3109
3136
|
return !1;
|
|
3110
|
-
if (
|
|
3137
|
+
if (ts.test(es.call(e)))
|
|
3111
3138
|
return !0;
|
|
3112
|
-
if (!
|
|
3113
|
-
var r =
|
|
3139
|
+
if (!On) {
|
|
3140
|
+
var r = Zo.call(e);
|
|
3114
3141
|
return r === "[object GeneratorFunction]";
|
|
3115
3142
|
}
|
|
3116
3143
|
if (!Dt)
|
|
3117
3144
|
return !1;
|
|
3118
3145
|
if (typeof jt > "u") {
|
|
3119
|
-
var o =
|
|
3146
|
+
var o = rs();
|
|
3120
3147
|
jt = o ? Dt(o) : !1;
|
|
3121
3148
|
}
|
|
3122
3149
|
return Dt(e) === jt;
|
|
3123
|
-
},
|
|
3150
|
+
}, xn = Function.prototype.toString, Qe = typeof Reflect == "object" && Reflect !== null && Reflect.apply, nr, yt;
|
|
3124
3151
|
if (typeof Qe == "function" && typeof Object.defineProperty == "function")
|
|
3125
3152
|
try {
|
|
3126
3153
|
nr = Object.defineProperty({}, "length", {
|
|
@@ -3135,35 +3162,35 @@ if (typeof Qe == "function" && typeof Object.defineProperty == "function")
|
|
|
3135
3162
|
}
|
|
3136
3163
|
else
|
|
3137
3164
|
Qe = null;
|
|
3138
|
-
var
|
|
3165
|
+
var is = /^\s*class\b/, ir = function(e) {
|
|
3139
3166
|
try {
|
|
3140
|
-
var r =
|
|
3141
|
-
return
|
|
3167
|
+
var r = xn.call(e);
|
|
3168
|
+
return is.test(r);
|
|
3142
3169
|
} catch {
|
|
3143
3170
|
return !1;
|
|
3144
3171
|
}
|
|
3145
3172
|
}, Mt = function(e) {
|
|
3146
3173
|
try {
|
|
3147
|
-
return ir(e) ? !1 : (
|
|
3174
|
+
return ir(e) ? !1 : (xn.call(e), !0);
|
|
3148
3175
|
} catch {
|
|
3149
3176
|
return !1;
|
|
3150
3177
|
}
|
|
3151
|
-
}, gt = Object.prototype.toString,
|
|
3178
|
+
}, gt = Object.prototype.toString, os = "[object Object]", ss = "[object Function]", as = "[object GeneratorFunction]", us = "[object HTMLAllCollection]", cs = "[object HTML document.all class]", fs = "[object HTMLCollection]", ls = typeof Symbol == "function" && !!Symbol.toStringTag, hs = !(0 in [,]), or = function() {
|
|
3152
3179
|
return !1;
|
|
3153
3180
|
};
|
|
3154
3181
|
if (typeof document == "object") {
|
|
3155
|
-
var
|
|
3156
|
-
gt.call(
|
|
3157
|
-
if ((
|
|
3182
|
+
var ps = document.all;
|
|
3183
|
+
gt.call(ps) === gt.call(document.all) && (or = function(e) {
|
|
3184
|
+
if ((hs || !e) && (typeof e > "u" || typeof e == "object"))
|
|
3158
3185
|
try {
|
|
3159
3186
|
var r = gt.call(e);
|
|
3160
|
-
return (r ===
|
|
3187
|
+
return (r === us || r === cs || r === fs || r === os) && e("") == null;
|
|
3161
3188
|
} catch {
|
|
3162
3189
|
}
|
|
3163
3190
|
return !1;
|
|
3164
3191
|
});
|
|
3165
3192
|
}
|
|
3166
|
-
var
|
|
3193
|
+
var ds = Qe ? function(e) {
|
|
3167
3194
|
if (or(e))
|
|
3168
3195
|
return !0;
|
|
3169
3196
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
@@ -3180,27 +3207,27 @@ var hs = Qe ? function(e) {
|
|
|
3180
3207
|
return !0;
|
|
3181
3208
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
3182
3209
|
return !1;
|
|
3183
|
-
if (
|
|
3210
|
+
if (ls)
|
|
3184
3211
|
return Mt(e);
|
|
3185
3212
|
if (ir(e))
|
|
3186
3213
|
return !1;
|
|
3187
3214
|
var r = gt.call(e);
|
|
3188
|
-
return r !==
|
|
3189
|
-
},
|
|
3215
|
+
return r !== ss && r !== as && !/^\[object HTML/.test(r) ? !1 : Mt(e);
|
|
3216
|
+
}, ys = ds, gs = Object.prototype.toString, kn = Object.prototype.hasOwnProperty, ms = function(e, r, o) {
|
|
3190
3217
|
for (var s = 0, u = e.length; s < u; s++)
|
|
3191
|
-
|
|
3192
|
-
},
|
|
3218
|
+
kn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
|
|
3219
|
+
}, bs = function(e, r, o) {
|
|
3193
3220
|
for (var s = 0, u = e.length; s < u; s++)
|
|
3194
3221
|
o == null ? r(e.charAt(s), s, e) : r.call(o, e.charAt(s), s, e);
|
|
3195
|
-
},
|
|
3222
|
+
}, ws = function(e, r, o) {
|
|
3196
3223
|
for (var s in e)
|
|
3197
|
-
|
|
3198
|
-
},
|
|
3199
|
-
if (!
|
|
3224
|
+
kn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
|
|
3225
|
+
}, vs = function(e, r, o) {
|
|
3226
|
+
if (!ys(r))
|
|
3200
3227
|
throw new TypeError("iterator must be a function");
|
|
3201
3228
|
var s;
|
|
3202
|
-
arguments.length >= 3 && (s = o),
|
|
3203
|
-
},
|
|
3229
|
+
arguments.length >= 3 && (s = o), gs.call(e) === "[object Array]" ? ms(e, r, s) : typeof e == "string" ? bs(e, r, s) : ws(e, r, s);
|
|
3230
|
+
}, Ss = vs, Vt = [
|
|
3204
3231
|
"BigInt64Array",
|
|
3205
3232
|
"BigUint64Array",
|
|
3206
3233
|
"Float32Array",
|
|
@@ -3212,31 +3239,31 @@ var hs = Qe ? function(e) {
|
|
|
3212
3239
|
"Uint32Array",
|
|
3213
3240
|
"Uint8Array",
|
|
3214
3241
|
"Uint8ClampedArray"
|
|
3215
|
-
],
|
|
3242
|
+
], As = typeof globalThis > "u" ? Yr : globalThis, Es = function() {
|
|
3216
3243
|
for (var e = [], r = 0; r < Vt.length; r++)
|
|
3217
|
-
typeof
|
|
3244
|
+
typeof As[Vt[r]] == "function" && (e[e.length] = Vt[r]);
|
|
3218
3245
|
return e;
|
|
3219
|
-
}, At =
|
|
3246
|
+
}, At = Ss, Is = Es, $r = Fn, vr = _n, mt = br, Fs = vr("Object.prototype.toString"), Pn = mr(), Dr = typeof globalThis > "u" ? Yr : globalThis, sr = Is(), Sr = vr("String.prototype.slice"), qt = Object.getPrototypeOf, Ts = vr("Array.prototype.indexOf", !0) || function(e, r) {
|
|
3220
3247
|
for (var o = 0; o < e.length; o += 1)
|
|
3221
3248
|
if (e[o] === r)
|
|
3222
3249
|
return o;
|
|
3223
3250
|
return -1;
|
|
3224
3251
|
}, Et = { __proto__: null };
|
|
3225
|
-
|
|
3226
|
-
var e = new
|
|
3252
|
+
Pn && mt && qt ? At(sr, function(t) {
|
|
3253
|
+
var e = new Dr[t]();
|
|
3227
3254
|
if (Symbol.toStringTag in e) {
|
|
3228
3255
|
var r = qt(e), o = mt(r, Symbol.toStringTag);
|
|
3229
3256
|
if (!o) {
|
|
3230
3257
|
var s = qt(r);
|
|
3231
3258
|
o = mt(s, Symbol.toStringTag);
|
|
3232
3259
|
}
|
|
3233
|
-
Et["$" + t] =
|
|
3260
|
+
Et["$" + t] = $r(o.get);
|
|
3234
3261
|
}
|
|
3235
3262
|
}) : At(sr, function(t) {
|
|
3236
|
-
var e = new
|
|
3237
|
-
r && (Et["$" + t] =
|
|
3263
|
+
var e = new Dr[t](), r = e.slice || e.set;
|
|
3264
|
+
r && (Et["$" + t] = $r(r));
|
|
3238
3265
|
});
|
|
3239
|
-
var
|
|
3266
|
+
var Cs = function(e) {
|
|
3240
3267
|
var r = !1;
|
|
3241
3268
|
return At(Et, function(o, s) {
|
|
3242
3269
|
if (!r)
|
|
@@ -3245,7 +3272,7 @@ var Fs = function(e) {
|
|
|
3245
3272
|
} catch {
|
|
3246
3273
|
}
|
|
3247
3274
|
}), r;
|
|
3248
|
-
},
|
|
3275
|
+
}, _s = function(e) {
|
|
3249
3276
|
var r = !1;
|
|
3250
3277
|
return At(Et, function(o, s) {
|
|
3251
3278
|
if (!r)
|
|
@@ -3254,202 +3281,202 @@ var Fs = function(e) {
|
|
|
3254
3281
|
} catch {
|
|
3255
3282
|
}
|
|
3256
3283
|
}), r;
|
|
3257
|
-
},
|
|
3284
|
+
}, Rn = function(e) {
|
|
3258
3285
|
if (!e || typeof e != "object")
|
|
3259
3286
|
return !1;
|
|
3260
|
-
if (!
|
|
3261
|
-
var r = Sr(
|
|
3262
|
-
return
|
|
3287
|
+
if (!Pn) {
|
|
3288
|
+
var r = Sr(Fs(e), 8, -1);
|
|
3289
|
+
return Ts(sr, r) > -1 ? r : r !== "Object" ? !1 : _s(e);
|
|
3263
3290
|
}
|
|
3264
|
-
return mt ?
|
|
3265
|
-
},
|
|
3266
|
-
return !!
|
|
3291
|
+
return mt ? Cs(e) : null;
|
|
3292
|
+
}, Bs = Rn, Os = function(e) {
|
|
3293
|
+
return !!Bs(e);
|
|
3267
3294
|
};
|
|
3268
3295
|
(function(t) {
|
|
3269
|
-
var e =
|
|
3270
|
-
function u(
|
|
3271
|
-
return
|
|
3296
|
+
var e = Xo, r = ns, o = Rn, s = Os;
|
|
3297
|
+
function u(v) {
|
|
3298
|
+
return v.call.bind(v);
|
|
3272
3299
|
}
|
|
3273
|
-
var l = typeof BigInt < "u", f = typeof Symbol < "u", d = u(Object.prototype.toString), A = u(Number.prototype.valueOf), g = u(String.prototype.valueOf),
|
|
3300
|
+
var l = typeof BigInt < "u", f = typeof Symbol < "u", d = u(Object.prototype.toString), A = u(Number.prototype.valueOf), g = u(String.prototype.valueOf), w = u(Boolean.prototype.valueOf);
|
|
3274
3301
|
if (l)
|
|
3275
3302
|
var E = u(BigInt.prototype.valueOf);
|
|
3276
3303
|
if (f)
|
|
3277
|
-
var
|
|
3278
|
-
function
|
|
3279
|
-
if (typeof
|
|
3304
|
+
var T = u(Symbol.prototype.valueOf);
|
|
3305
|
+
function P(v, lt) {
|
|
3306
|
+
if (typeof v != "object")
|
|
3280
3307
|
return !1;
|
|
3281
3308
|
try {
|
|
3282
|
-
return lt(
|
|
3309
|
+
return lt(v), !0;
|
|
3283
3310
|
} catch {
|
|
3284
3311
|
return !1;
|
|
3285
3312
|
}
|
|
3286
3313
|
}
|
|
3287
3314
|
t.isArgumentsObject = e, t.isGeneratorFunction = r, t.isTypedArray = s;
|
|
3288
|
-
function
|
|
3289
|
-
return typeof Promise < "u" &&
|
|
3315
|
+
function N(v) {
|
|
3316
|
+
return typeof Promise < "u" && v instanceof Promise || v !== null && typeof v == "object" && typeof v.then == "function" && typeof v.catch == "function";
|
|
3290
3317
|
}
|
|
3291
|
-
t.isPromise =
|
|
3292
|
-
function Q(
|
|
3293
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(
|
|
3318
|
+
t.isPromise = N;
|
|
3319
|
+
function Q(v) {
|
|
3320
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(v) : s(v) || b(v);
|
|
3294
3321
|
}
|
|
3295
3322
|
t.isArrayBufferView = Q;
|
|
3296
|
-
function z(
|
|
3297
|
-
return o(
|
|
3323
|
+
function z(v) {
|
|
3324
|
+
return o(v) === "Uint8Array";
|
|
3298
3325
|
}
|
|
3299
3326
|
t.isUint8Array = z;
|
|
3300
|
-
function X(
|
|
3301
|
-
return o(
|
|
3327
|
+
function X(v) {
|
|
3328
|
+
return o(v) === "Uint8ClampedArray";
|
|
3302
3329
|
}
|
|
3303
3330
|
t.isUint8ClampedArray = X;
|
|
3304
|
-
function ye(
|
|
3305
|
-
return o(
|
|
3331
|
+
function ye(v) {
|
|
3332
|
+
return o(v) === "Uint16Array";
|
|
3306
3333
|
}
|
|
3307
3334
|
t.isUint16Array = ye;
|
|
3308
|
-
function ee(
|
|
3309
|
-
return o(
|
|
3335
|
+
function ee(v) {
|
|
3336
|
+
return o(v) === "Uint32Array";
|
|
3310
3337
|
}
|
|
3311
3338
|
t.isUint32Array = ee;
|
|
3312
|
-
function x(
|
|
3313
|
-
return o(
|
|
3339
|
+
function x(v) {
|
|
3340
|
+
return o(v) === "Int8Array";
|
|
3314
3341
|
}
|
|
3315
3342
|
t.isInt8Array = x;
|
|
3316
|
-
function j(
|
|
3317
|
-
return o(
|
|
3343
|
+
function j(v) {
|
|
3344
|
+
return o(v) === "Int16Array";
|
|
3318
3345
|
}
|
|
3319
3346
|
t.isInt16Array = j;
|
|
3320
|
-
function B(
|
|
3321
|
-
return o(
|
|
3347
|
+
function B(v) {
|
|
3348
|
+
return o(v) === "Int32Array";
|
|
3322
3349
|
}
|
|
3323
3350
|
t.isInt32Array = B;
|
|
3324
|
-
function re(
|
|
3325
|
-
return o(
|
|
3351
|
+
function re(v) {
|
|
3352
|
+
return o(v) === "Float32Array";
|
|
3326
3353
|
}
|
|
3327
3354
|
t.isFloat32Array = re;
|
|
3328
|
-
function ne(
|
|
3329
|
-
return o(
|
|
3355
|
+
function ne(v) {
|
|
3356
|
+
return o(v) === "Float64Array";
|
|
3330
3357
|
}
|
|
3331
3358
|
t.isFloat64Array = ne;
|
|
3332
|
-
function _e(
|
|
3333
|
-
return o(
|
|
3359
|
+
function _e(v) {
|
|
3360
|
+
return o(v) === "BigInt64Array";
|
|
3334
3361
|
}
|
|
3335
3362
|
t.isBigInt64Array = _e;
|
|
3336
|
-
function Se(
|
|
3337
|
-
return o(
|
|
3363
|
+
function Se(v) {
|
|
3364
|
+
return o(v) === "BigUint64Array";
|
|
3338
3365
|
}
|
|
3339
3366
|
t.isBigUint64Array = Se;
|
|
3340
|
-
function fe(
|
|
3341
|
-
return d(
|
|
3367
|
+
function fe(v) {
|
|
3368
|
+
return d(v) === "[object Map]";
|
|
3342
3369
|
}
|
|
3343
3370
|
fe.working = typeof Map < "u" && fe(/* @__PURE__ */ new Map());
|
|
3344
|
-
function
|
|
3345
|
-
return typeof Map > "u" ? !1 : fe.working ? fe(
|
|
3371
|
+
function rt(v) {
|
|
3372
|
+
return typeof Map > "u" ? !1 : fe.working ? fe(v) : v instanceof Map;
|
|
3346
3373
|
}
|
|
3347
|
-
t.isMap =
|
|
3348
|
-
function le(
|
|
3349
|
-
return d(
|
|
3374
|
+
t.isMap = rt;
|
|
3375
|
+
function le(v) {
|
|
3376
|
+
return d(v) === "[object Set]";
|
|
3350
3377
|
}
|
|
3351
3378
|
le.working = typeof Set < "u" && le(/* @__PURE__ */ new Set());
|
|
3352
|
-
function Be(
|
|
3353
|
-
return typeof Set > "u" ? !1 : le.working ? le(
|
|
3379
|
+
function Be(v) {
|
|
3380
|
+
return typeof Set > "u" ? !1 : le.working ? le(v) : v instanceof Set;
|
|
3354
3381
|
}
|
|
3355
3382
|
t.isSet = Be;
|
|
3356
|
-
function Oe(
|
|
3357
|
-
return d(
|
|
3383
|
+
function Oe(v) {
|
|
3384
|
+
return d(v) === "[object WeakMap]";
|
|
3358
3385
|
}
|
|
3359
3386
|
Oe.working = typeof WeakMap < "u" && Oe(/* @__PURE__ */ new WeakMap());
|
|
3360
|
-
function
|
|
3361
|
-
return typeof WeakMap > "u" ? !1 : Oe.working ? Oe(
|
|
3387
|
+
function nt(v) {
|
|
3388
|
+
return typeof WeakMap > "u" ? !1 : Oe.working ? Oe(v) : v instanceof WeakMap;
|
|
3362
3389
|
}
|
|
3363
|
-
t.isWeakMap =
|
|
3364
|
-
function xe(
|
|
3365
|
-
return d(
|
|
3390
|
+
t.isWeakMap = nt;
|
|
3391
|
+
function xe(v) {
|
|
3392
|
+
return d(v) === "[object WeakSet]";
|
|
3366
3393
|
}
|
|
3367
3394
|
xe.working = typeof WeakSet < "u" && xe(/* @__PURE__ */ new WeakSet());
|
|
3368
|
-
function he(
|
|
3369
|
-
return xe(
|
|
3395
|
+
function he(v) {
|
|
3396
|
+
return xe(v);
|
|
3370
3397
|
}
|
|
3371
3398
|
t.isWeakSet = he;
|
|
3372
|
-
function ke(
|
|
3373
|
-
return d(
|
|
3399
|
+
function ke(v) {
|
|
3400
|
+
return d(v) === "[object ArrayBuffer]";
|
|
3374
3401
|
}
|
|
3375
3402
|
ke.working = typeof ArrayBuffer < "u" && ke(new ArrayBuffer());
|
|
3376
|
-
function V(
|
|
3377
|
-
return typeof ArrayBuffer > "u" ? !1 : ke.working ? ke(
|
|
3403
|
+
function V(v) {
|
|
3404
|
+
return typeof ArrayBuffer > "u" ? !1 : ke.working ? ke(v) : v instanceof ArrayBuffer;
|
|
3378
3405
|
}
|
|
3379
3406
|
t.isArrayBuffer = V;
|
|
3380
|
-
function p(
|
|
3381
|
-
return d(
|
|
3407
|
+
function p(v) {
|
|
3408
|
+
return d(v) === "[object DataView]";
|
|
3382
3409
|
}
|
|
3383
3410
|
p.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && p(new DataView(new ArrayBuffer(1), 0, 1));
|
|
3384
|
-
function b(
|
|
3385
|
-
return typeof DataView > "u" ? !1 : p.working ? p(
|
|
3411
|
+
function b(v) {
|
|
3412
|
+
return typeof DataView > "u" ? !1 : p.working ? p(v) : v instanceof DataView;
|
|
3386
3413
|
}
|
|
3387
3414
|
t.isDataView = b;
|
|
3388
3415
|
var S = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
|
|
3389
|
-
function I(
|
|
3390
|
-
return d(
|
|
3416
|
+
function I(v) {
|
|
3417
|
+
return d(v) === "[object SharedArrayBuffer]";
|
|
3391
3418
|
}
|
|
3392
|
-
function
|
|
3393
|
-
return typeof S > "u" ? !1 : (typeof I.working > "u" && (I.working = I(new S())), I.working ? I(
|
|
3419
|
+
function R(v) {
|
|
3420
|
+
return typeof S > "u" ? !1 : (typeof I.working > "u" && (I.working = I(new S())), I.working ? I(v) : v instanceof S);
|
|
3394
3421
|
}
|
|
3395
|
-
t.isSharedArrayBuffer =
|
|
3396
|
-
function
|
|
3397
|
-
return d(
|
|
3422
|
+
t.isSharedArrayBuffer = R;
|
|
3423
|
+
function L(v) {
|
|
3424
|
+
return d(v) === "[object AsyncFunction]";
|
|
3398
3425
|
}
|
|
3399
|
-
t.isAsyncFunction =
|
|
3400
|
-
function F(
|
|
3401
|
-
return d(
|
|
3426
|
+
t.isAsyncFunction = L;
|
|
3427
|
+
function F(v) {
|
|
3428
|
+
return d(v) === "[object Map Iterator]";
|
|
3402
3429
|
}
|
|
3403
3430
|
t.isMapIterator = F;
|
|
3404
|
-
function O(
|
|
3405
|
-
return d(
|
|
3431
|
+
function O(v) {
|
|
3432
|
+
return d(v) === "[object Set Iterator]";
|
|
3406
3433
|
}
|
|
3407
3434
|
t.isSetIterator = O;
|
|
3408
|
-
function U(
|
|
3409
|
-
return d(
|
|
3435
|
+
function U(v) {
|
|
3436
|
+
return d(v) === "[object Generator]";
|
|
3410
3437
|
}
|
|
3411
3438
|
t.isGeneratorObject = U;
|
|
3412
|
-
function Y(
|
|
3413
|
-
return d(
|
|
3439
|
+
function Y(v) {
|
|
3440
|
+
return d(v) === "[object WebAssembly.Module]";
|
|
3414
3441
|
}
|
|
3415
3442
|
t.isWebAssemblyCompiledModule = Y;
|
|
3416
|
-
function ge(
|
|
3417
|
-
return
|
|
3443
|
+
function ge(v) {
|
|
3444
|
+
return P(v, A);
|
|
3418
3445
|
}
|
|
3419
3446
|
t.isNumberObject = ge;
|
|
3420
|
-
function pe(
|
|
3421
|
-
return
|
|
3447
|
+
function pe(v) {
|
|
3448
|
+
return P(v, g);
|
|
3422
3449
|
}
|
|
3423
3450
|
t.isStringObject = pe;
|
|
3424
|
-
function ie(
|
|
3425
|
-
return
|
|
3451
|
+
function ie(v) {
|
|
3452
|
+
return P(v, w);
|
|
3426
3453
|
}
|
|
3427
3454
|
t.isBooleanObject = ie;
|
|
3428
|
-
function De(
|
|
3429
|
-
return l &&
|
|
3455
|
+
function De(v) {
|
|
3456
|
+
return l && P(v, E);
|
|
3430
3457
|
}
|
|
3431
3458
|
t.isBigIntObject = De;
|
|
3432
|
-
function ft(
|
|
3433
|
-
return f &&
|
|
3459
|
+
function ft(v) {
|
|
3460
|
+
return f && P(v, T);
|
|
3434
3461
|
}
|
|
3435
3462
|
t.isSymbolObject = ft;
|
|
3436
|
-
function
|
|
3437
|
-
return ge(
|
|
3463
|
+
function it(v) {
|
|
3464
|
+
return ge(v) || pe(v) || ie(v) || De(v) || ft(v);
|
|
3438
3465
|
}
|
|
3439
|
-
t.isBoxedPrimitive =
|
|
3440
|
-
function kt(
|
|
3441
|
-
return typeof Uint8Array < "u" && (V(
|
|
3466
|
+
t.isBoxedPrimitive = it;
|
|
3467
|
+
function kt(v) {
|
|
3468
|
+
return typeof Uint8Array < "u" && (V(v) || R(v));
|
|
3442
3469
|
}
|
|
3443
|
-
t.isAnyArrayBuffer = kt, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(
|
|
3444
|
-
Object.defineProperty(t,
|
|
3470
|
+
t.isAnyArrayBuffer = kt, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(v) {
|
|
3471
|
+
Object.defineProperty(t, v, {
|
|
3445
3472
|
enumerable: !1,
|
|
3446
3473
|
value: function() {
|
|
3447
|
-
throw new Error(
|
|
3474
|
+
throw new Error(v + " is not supported in userland");
|
|
3448
3475
|
}
|
|
3449
3476
|
});
|
|
3450
3477
|
});
|
|
3451
|
-
})(
|
|
3452
|
-
var
|
|
3478
|
+
})(bn);
|
|
3479
|
+
var xs = function(e) {
|
|
3453
3480
|
return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
|
|
3454
3481
|
}, ar = { exports: {} };
|
|
3455
3482
|
typeof Object.create == "function" ? ar.exports = function(e, r) {
|
|
@@ -3469,11 +3496,11 @@ typeof Object.create == "function" ? ar.exports = function(e, r) {
|
|
|
3469
3496
|
o.prototype = r.prototype, e.prototype = new o(), e.prototype.constructor = e;
|
|
3470
3497
|
}
|
|
3471
3498
|
};
|
|
3472
|
-
var
|
|
3499
|
+
var ks = ar.exports;
|
|
3473
3500
|
(function(t) {
|
|
3474
3501
|
var e = Object.getOwnPropertyDescriptors || function(b) {
|
|
3475
|
-
for (var S = Object.keys(b), I = {},
|
|
3476
|
-
I[S[
|
|
3502
|
+
for (var S = Object.keys(b), I = {}, R = 0; R < S.length; R++)
|
|
3503
|
+
I[S[R]] = Object.getOwnPropertyDescriptor(b, S[R]);
|
|
3477
3504
|
return I;
|
|
3478
3505
|
}, r = /%[sdj%]/g;
|
|
3479
3506
|
t.format = function(p) {
|
|
@@ -3482,10 +3509,10 @@ var Os = ar.exports;
|
|
|
3482
3509
|
b.push(l(arguments[S]));
|
|
3483
3510
|
return b.join(" ");
|
|
3484
3511
|
}
|
|
3485
|
-
for (var S = 1, I = arguments,
|
|
3512
|
+
for (var S = 1, I = arguments, R = I.length, L = String(p).replace(r, function(O) {
|
|
3486
3513
|
if (O === "%%")
|
|
3487
3514
|
return "%";
|
|
3488
|
-
if (S >=
|
|
3515
|
+
if (S >= R)
|
|
3489
3516
|
return O;
|
|
3490
3517
|
switch (O) {
|
|
3491
3518
|
case "%s":
|
|
@@ -3501,36 +3528,36 @@ var Os = ar.exports;
|
|
|
3501
3528
|
default:
|
|
3502
3529
|
return O;
|
|
3503
3530
|
}
|
|
3504
|
-
}), F = I[S]; S <
|
|
3505
|
-
X(F) || !ne(F) ?
|
|
3506
|
-
return
|
|
3531
|
+
}), F = I[S]; S < R; F = I[++S])
|
|
3532
|
+
X(F) || !ne(F) ? L += " " + F : L += " " + l(F);
|
|
3533
|
+
return L;
|
|
3507
3534
|
}, t.deprecate = function(p, b) {
|
|
3508
|
-
if (typeof
|
|
3535
|
+
if (typeof C.process < "u" && C.process.noDeprecation === !0)
|
|
3509
3536
|
return p;
|
|
3510
|
-
if (typeof
|
|
3537
|
+
if (typeof C.process > "u")
|
|
3511
3538
|
return function() {
|
|
3512
3539
|
return t.deprecate(p, b).apply(this, arguments);
|
|
3513
3540
|
};
|
|
3514
3541
|
var S = !1;
|
|
3515
3542
|
function I() {
|
|
3516
3543
|
if (!S) {
|
|
3517
|
-
if (
|
|
3544
|
+
if (C.process.throwDeprecation)
|
|
3518
3545
|
throw new Error(b);
|
|
3519
|
-
|
|
3546
|
+
C.process.traceDeprecation ? console.trace(b) : console.error(b), S = !0;
|
|
3520
3547
|
}
|
|
3521
3548
|
return p.apply(this, arguments);
|
|
3522
3549
|
}
|
|
3523
3550
|
return I;
|
|
3524
3551
|
};
|
|
3525
3552
|
var o = {}, s = /^$/;
|
|
3526
|
-
if (
|
|
3527
|
-
var u =
|
|
3553
|
+
if (C.process.env.NODE_DEBUG) {
|
|
3554
|
+
var u = C.process.env.NODE_DEBUG;
|
|
3528
3555
|
u = u.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), s = new RegExp("^" + u + "$", "i");
|
|
3529
3556
|
}
|
|
3530
3557
|
t.debuglog = function(p) {
|
|
3531
3558
|
if (p = p.toUpperCase(), !o[p])
|
|
3532
3559
|
if (s.test(p)) {
|
|
3533
|
-
var b =
|
|
3560
|
+
var b = C.process.pid;
|
|
3534
3561
|
o[p] = function() {
|
|
3535
3562
|
var S = t.format.apply(t, arguments);
|
|
3536
3563
|
console.error("%s %d: %s", p, b, S);
|
|
@@ -3592,13 +3619,13 @@ var Os = ar.exports;
|
|
|
3592
3619
|
var I = b.inspect(S, p);
|
|
3593
3620
|
return x(I) || (I = g(p, I, S)), I;
|
|
3594
3621
|
}
|
|
3595
|
-
var
|
|
3596
|
-
if (
|
|
3597
|
-
return
|
|
3598
|
-
var
|
|
3599
|
-
if (p.showHidden && (
|
|
3622
|
+
var R = w(p, b);
|
|
3623
|
+
if (R)
|
|
3624
|
+
return R;
|
|
3625
|
+
var L = Object.keys(b), F = A(L);
|
|
3626
|
+
if (p.showHidden && (L = Object.getOwnPropertyNames(b)), Se(b) && (L.indexOf("message") >= 0 || L.indexOf("description") >= 0))
|
|
3600
3627
|
return E(b);
|
|
3601
|
-
if (
|
|
3628
|
+
if (L.length === 0) {
|
|
3602
3629
|
if (fe(b)) {
|
|
3603
3630
|
var O = b.name ? ": " + b.name : "";
|
|
3604
3631
|
return p.stylize("[Function" + O + "]", "special");
|
|
@@ -3615,17 +3642,17 @@ var Os = ar.exports;
|
|
|
3615
3642
|
var pe = b.name ? ": " + b.name : "";
|
|
3616
3643
|
U = " [Function" + pe + "]";
|
|
3617
3644
|
}
|
|
3618
|
-
if (re(b) && (U = " " + RegExp.prototype.toString.call(b)), _e(b) && (U = " " + Date.prototype.toUTCString.call(b)), Se(b) && (U = " " + E(b)),
|
|
3645
|
+
if (re(b) && (U = " " + RegExp.prototype.toString.call(b)), _e(b) && (U = " " + Date.prototype.toUTCString.call(b)), Se(b) && (U = " " + E(b)), L.length === 0 && (!Y || b.length == 0))
|
|
3619
3646
|
return ge[0] + U + ge[1];
|
|
3620
3647
|
if (S < 0)
|
|
3621
3648
|
return re(b) ? p.stylize(RegExp.prototype.toString.call(b), "regexp") : p.stylize("[Object]", "special");
|
|
3622
3649
|
p.seen.push(b);
|
|
3623
3650
|
var ie;
|
|
3624
|
-
return Y ? ie =
|
|
3625
|
-
return
|
|
3626
|
-
}), p.seen.pop(),
|
|
3651
|
+
return Y ? ie = T(p, b, S, F, L) : ie = L.map(function(De) {
|
|
3652
|
+
return P(p, b, S, F, De, Y);
|
|
3653
|
+
}), p.seen.pop(), N(ie, U, ge);
|
|
3627
3654
|
}
|
|
3628
|
-
function
|
|
3655
|
+
function w(p, b) {
|
|
3629
3656
|
if (B(b))
|
|
3630
3657
|
return p.stylize("undefined", "undefined");
|
|
3631
3658
|
if (x(b)) {
|
|
@@ -3642,18 +3669,18 @@ var Os = ar.exports;
|
|
|
3642
3669
|
function E(p) {
|
|
3643
3670
|
return "[" + Error.prototype.toString.call(p) + "]";
|
|
3644
3671
|
}
|
|
3645
|
-
function
|
|
3646
|
-
for (var
|
|
3647
|
-
xe(b, String(F)) ?
|
|
3672
|
+
function T(p, b, S, I, R) {
|
|
3673
|
+
for (var L = [], F = 0, O = b.length; F < O; ++F)
|
|
3674
|
+
xe(b, String(F)) ? L.push(P(
|
|
3648
3675
|
p,
|
|
3649
3676
|
b,
|
|
3650
3677
|
S,
|
|
3651
3678
|
I,
|
|
3652
3679
|
String(F),
|
|
3653
3680
|
!0
|
|
3654
|
-
)) :
|
|
3655
|
-
return
|
|
3656
|
-
U.match(/^\d+$/) ||
|
|
3681
|
+
)) : L.push("");
|
|
3682
|
+
return R.forEach(function(U) {
|
|
3683
|
+
U.match(/^\d+$/) || L.push(P(
|
|
3657
3684
|
p,
|
|
3658
3685
|
b,
|
|
3659
3686
|
S,
|
|
@@ -3661,12 +3688,12 @@ var Os = ar.exports;
|
|
|
3661
3688
|
U,
|
|
3662
3689
|
!0
|
|
3663
3690
|
));
|
|
3664
|
-
}),
|
|
3691
|
+
}), L;
|
|
3665
3692
|
}
|
|
3666
|
-
function
|
|
3693
|
+
function P(p, b, S, I, R, L) {
|
|
3667
3694
|
var F, O, U;
|
|
3668
|
-
if (U = Object.getOwnPropertyDescriptor(b,
|
|
3669
|
-
`) > -1 && (
|
|
3695
|
+
if (U = Object.getOwnPropertyDescriptor(b, R) || { value: b[R] }, U.get ? U.set ? O = p.stylize("[Getter/Setter]", "special") : O = p.stylize("[Getter]", "special") : U.set && (O = p.stylize("[Setter]", "special")), xe(I, R) || (F = "[" + R + "]"), O || (p.seen.indexOf(U.value) < 0 ? (X(S) ? O = g(p, U.value, null) : O = g(p, U.value, S - 1), O.indexOf(`
|
|
3696
|
+
`) > -1 && (L ? O = O.split(`
|
|
3670
3697
|
`).map(function(Y) {
|
|
3671
3698
|
return " " + Y;
|
|
3672
3699
|
}).join(`
|
|
@@ -3676,22 +3703,22 @@ var Os = ar.exports;
|
|
|
3676
3703
|
return " " + Y;
|
|
3677
3704
|
}).join(`
|
|
3678
3705
|
`))) : O = p.stylize("[Circular]", "special")), B(F)) {
|
|
3679
|
-
if (
|
|
3706
|
+
if (L && R.match(/^\d+$/))
|
|
3680
3707
|
return O;
|
|
3681
|
-
F = JSON.stringify("" +
|
|
3708
|
+
F = JSON.stringify("" + R), F.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (F = F.slice(1, -1), F = p.stylize(F, "name")) : (F = F.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), F = p.stylize(F, "string"));
|
|
3682
3709
|
}
|
|
3683
3710
|
return F + ": " + O;
|
|
3684
3711
|
}
|
|
3685
|
-
function
|
|
3686
|
-
var I = p.reduce(function(
|
|
3687
|
-
return
|
|
3688
|
-
`) >= 0,
|
|
3712
|
+
function N(p, b, S) {
|
|
3713
|
+
var I = p.reduce(function(R, L) {
|
|
3714
|
+
return L.indexOf(`
|
|
3715
|
+
`) >= 0, R + L.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
3689
3716
|
}, 0);
|
|
3690
3717
|
return I > 60 ? S[0] + (b === "" ? "" : b + `
|
|
3691
3718
|
`) + " " + p.join(`,
|
|
3692
3719
|
`) + " " + S[1] : S[0] + b + " " + p.join(", ") + " " + S[1];
|
|
3693
3720
|
}
|
|
3694
|
-
t.types =
|
|
3721
|
+
t.types = bn;
|
|
3695
3722
|
function Q(p) {
|
|
3696
3723
|
return Array.isArray(p);
|
|
3697
3724
|
}
|
|
@@ -3744,11 +3771,11 @@ var Os = ar.exports;
|
|
|
3744
3771
|
return typeof p == "function";
|
|
3745
3772
|
}
|
|
3746
3773
|
t.isFunction = fe;
|
|
3747
|
-
function
|
|
3774
|
+
function rt(p) {
|
|
3748
3775
|
return p === null || typeof p == "boolean" || typeof p == "number" || typeof p == "string" || typeof p == "symbol" || // ES6 symbol
|
|
3749
3776
|
typeof p > "u";
|
|
3750
3777
|
}
|
|
3751
|
-
t.isPrimitive =
|
|
3778
|
+
t.isPrimitive = rt, t.isBuffer = xs;
|
|
3752
3779
|
function le(p) {
|
|
3753
3780
|
return Object.prototype.toString.call(p);
|
|
3754
3781
|
}
|
|
@@ -3769,7 +3796,7 @@ var Os = ar.exports;
|
|
|
3769
3796
|
"Nov",
|
|
3770
3797
|
"Dec"
|
|
3771
3798
|
];
|
|
3772
|
-
function
|
|
3799
|
+
function nt() {
|
|
3773
3800
|
var p = /* @__PURE__ */ new Date(), b = [
|
|
3774
3801
|
Be(p.getHours()),
|
|
3775
3802
|
Be(p.getMinutes()),
|
|
@@ -3778,8 +3805,8 @@ var Os = ar.exports;
|
|
|
3778
3805
|
return [p.getDate(), Oe[p.getMonth()], b].join(" ");
|
|
3779
3806
|
}
|
|
3780
3807
|
t.log = function() {
|
|
3781
|
-
console.log("%s - %s",
|
|
3782
|
-
}, t.inherits =
|
|
3808
|
+
console.log("%s - %s", nt(), t.format.apply(t, arguments));
|
|
3809
|
+
}, t.inherits = ks, t._extend = function(p, b) {
|
|
3783
3810
|
if (!b || !ne(b))
|
|
3784
3811
|
return p;
|
|
3785
3812
|
for (var S = Object.keys(b), I = S.length; I--; )
|
|
@@ -3805,19 +3832,19 @@ var Os = ar.exports;
|
|
|
3805
3832
|
}), S;
|
|
3806
3833
|
}
|
|
3807
3834
|
function S() {
|
|
3808
|
-
for (var I,
|
|
3809
|
-
I = U,
|
|
3835
|
+
for (var I, R, L = new Promise(function(U, Y) {
|
|
3836
|
+
I = U, R = Y;
|
|
3810
3837
|
}), F = [], O = 0; O < arguments.length; O++)
|
|
3811
3838
|
F.push(arguments[O]);
|
|
3812
3839
|
F.push(function(U, Y) {
|
|
3813
|
-
U ?
|
|
3840
|
+
U ? R(U) : I(Y);
|
|
3814
3841
|
});
|
|
3815
3842
|
try {
|
|
3816
3843
|
b.apply(this, F);
|
|
3817
3844
|
} catch (U) {
|
|
3818
|
-
|
|
3845
|
+
R(U);
|
|
3819
3846
|
}
|
|
3820
|
-
return
|
|
3847
|
+
return L;
|
|
3821
3848
|
}
|
|
3822
3849
|
return Object.setPrototypeOf(S, Object.getPrototypeOf(b)), he && Object.defineProperty(S, he, {
|
|
3823
3850
|
value: S,
|
|
@@ -3842,18 +3869,18 @@ var Os = ar.exports;
|
|
|
3842
3869
|
function b() {
|
|
3843
3870
|
for (var S = [], I = 0; I < arguments.length; I++)
|
|
3844
3871
|
S.push(arguments[I]);
|
|
3845
|
-
var
|
|
3846
|
-
if (typeof
|
|
3872
|
+
var R = S.pop();
|
|
3873
|
+
if (typeof R != "function")
|
|
3847
3874
|
throw new TypeError("The last argument must be of type Function");
|
|
3848
|
-
var
|
|
3849
|
-
return
|
|
3875
|
+
var L = this, F = function() {
|
|
3876
|
+
return R.apply(L, arguments);
|
|
3850
3877
|
};
|
|
3851
3878
|
p.apply(this, S).then(
|
|
3852
3879
|
function(O) {
|
|
3853
|
-
|
|
3880
|
+
C.process.nextTick(F.bind(null, null, O));
|
|
3854
3881
|
},
|
|
3855
3882
|
function(O) {
|
|
3856
|
-
|
|
3883
|
+
C.process.nextTick(ke.bind(null, O, F));
|
|
3857
3884
|
}
|
|
3858
3885
|
);
|
|
3859
3886
|
}
|
|
@@ -3864,7 +3891,7 @@ var Os = ar.exports;
|
|
|
3864
3891
|
}
|
|
3865
3892
|
t.callbackify = V;
|
|
3866
3893
|
})(Ot);
|
|
3867
|
-
const { inherits:
|
|
3894
|
+
const { inherits: Ps, format: Gt } = Ot;
|
|
3868
3895
|
function Re(t, e, r = Error) {
|
|
3869
3896
|
if (!t)
|
|
3870
3897
|
throw new Error("Avvio error code must not be empty");
|
|
@@ -3877,9 +3904,9 @@ function Re(t, e, r = Error) {
|
|
|
3877
3904
|
}
|
|
3878
3905
|
return o.prototype[Symbol.toStringTag] = "Error", o.prototype.toString = function() {
|
|
3879
3906
|
return `${this.name} [${this.code}]: ${this.message}`;
|
|
3880
|
-
},
|
|
3907
|
+
}, Ps(o, r), o;
|
|
3881
3908
|
}
|
|
3882
|
-
var
|
|
3909
|
+
var Nn = {
|
|
3883
3910
|
createError: Re,
|
|
3884
3911
|
AVV_ERR_EXPOSE_ALREADY_DEFINED: Re(
|
|
3885
3912
|
"AVV_ERR_EXPOSE_ALREADY_DEFINED",
|
|
@@ -3905,7 +3932,7 @@ var Rn = {
|
|
|
3905
3932
|
"AVV_ERR_READY_TIMEOUT",
|
|
3906
3933
|
"Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise"
|
|
3907
3934
|
)
|
|
3908
|
-
},
|
|
3935
|
+
}, Rs = function t(e, r, o) {
|
|
3909
3936
|
r === void 0 && (r = ""), o || (o = {});
|
|
3910
3937
|
var s = function(d) {
|
|
3911
3938
|
var A = {
|
|
@@ -3923,19 +3950,19 @@ var Rn = {
|
|
|
3923
3950
|
` + r + (u.length ? s("│") : " ") + " ";
|
|
3924
3951
|
return r + l.join(f) + `
|
|
3925
3952
|
` + u.map(function(d, A) {
|
|
3926
|
-
var g = A === u.length - 1,
|
|
3927
|
-
return r + s(g ? "└" : "├") + s("─") + s(
|
|
3953
|
+
var g = A === u.length - 1, w = d.nodes && d.nodes.length, E = r + (g ? " " : s("│")) + " ";
|
|
3954
|
+
return r + s(g ? "└" : "├") + s("─") + s(w ? "┬" : "─") + " " + t(d, E, o).slice(r.length + 2);
|
|
3928
3955
|
}).join("");
|
|
3929
3956
|
};
|
|
3930
|
-
const
|
|
3931
|
-
let
|
|
3957
|
+
const Ns = Rs, jr = Symbol("avvio.TimeTree.untrackNode"), Qt = Symbol("avvio.TimeTree.trackNode"), Mr = Symbol("avvio.TimeTree.getParent"), Vr = Symbol("avvio.TimeTree.getNode"), qr = Symbol("avvio.TimeTree.addNode");
|
|
3958
|
+
let Ls = class {
|
|
3932
3959
|
constructor() {
|
|
3933
3960
|
this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
|
|
3934
3961
|
}
|
|
3935
3962
|
[Qt](e) {
|
|
3936
3963
|
this.tableId.set(e.id, e), this.tableLabel.has(e.label) ? this.tableLabel.get(e.label).push(e) : this.tableLabel.set(e.label, [e]);
|
|
3937
3964
|
}
|
|
3938
|
-
[
|
|
3965
|
+
[jr](e) {
|
|
3939
3966
|
this.tableId.delete(e.id);
|
|
3940
3967
|
const r = this.tableLabel.get(e.label);
|
|
3941
3968
|
if (r.id) {
|
|
@@ -3944,16 +3971,16 @@ let Rs = class {
|
|
|
3944
3971
|
}
|
|
3945
3972
|
r.pop(), r.length === 0 && this.tableLabel.delete(e.label);
|
|
3946
3973
|
}
|
|
3947
|
-
[
|
|
3974
|
+
[Mr](e) {
|
|
3948
3975
|
if (e === null)
|
|
3949
3976
|
return this.root;
|
|
3950
3977
|
const r = this.tableLabel.get(e);
|
|
3951
3978
|
return r.id ? r : r[r.length - 1];
|
|
3952
3979
|
}
|
|
3953
|
-
[
|
|
3980
|
+
[Vr](e) {
|
|
3954
3981
|
return this.tableId.get(e);
|
|
3955
3982
|
}
|
|
3956
|
-
[
|
|
3983
|
+
[qr](e, r, o) {
|
|
3957
3984
|
if (e === null)
|
|
3958
3985
|
return this.root = {
|
|
3959
3986
|
id: "root",
|
|
@@ -3961,7 +3988,7 @@ let Rs = class {
|
|
|
3961
3988
|
start: o,
|
|
3962
3989
|
nodes: []
|
|
3963
3990
|
}, this[Qt](this.root), this.root.id;
|
|
3964
|
-
const u = this[
|
|
3991
|
+
const u = this[Mr](e), l = `${r}-${Math.random()}`, f = {
|
|
3965
3992
|
id: l,
|
|
3966
3993
|
parent: e,
|
|
3967
3994
|
start: o,
|
|
@@ -3971,45 +3998,45 @@ let Rs = class {
|
|
|
3971
3998
|
return u.nodes.push(f), this[Qt](f), l;
|
|
3972
3999
|
}
|
|
3973
4000
|
start(e, r, o = Date.now()) {
|
|
3974
|
-
return this[
|
|
4001
|
+
return this[qr](e, r, o);
|
|
3975
4002
|
}
|
|
3976
4003
|
stop(e, r = Date.now()) {
|
|
3977
|
-
const o = this[
|
|
3978
|
-
o && (o.stop = r, o.diff = o.stop - o.start || 0, this[
|
|
4004
|
+
const o = this[Vr](e);
|
|
4005
|
+
o && (o.stop = r, o.diff = o.stop - o.start || 0, this[jr](o));
|
|
3979
4006
|
}
|
|
3980
4007
|
toJSON() {
|
|
3981
4008
|
return Object.assign({}, this.root);
|
|
3982
4009
|
}
|
|
3983
4010
|
prittyPrint() {
|
|
3984
4011
|
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());
|
|
3985
|
-
return
|
|
4012
|
+
return Ns(r);
|
|
3986
4013
|
}
|
|
3987
4014
|
};
|
|
3988
|
-
var
|
|
3989
|
-
function
|
|
3990
|
-
if (
|
|
4015
|
+
var Us = Ls, Ar = { exports: {} }, ur = { exports: {} }, zt, Gr;
|
|
4016
|
+
function $s() {
|
|
4017
|
+
if (Gr)
|
|
3991
4018
|
return zt;
|
|
3992
|
-
|
|
4019
|
+
Gr = 1;
|
|
3993
4020
|
var t = 1e3, e = t * 60, r = e * 60, o = r * 24, s = o * 7, u = o * 365.25;
|
|
3994
|
-
zt = function(g,
|
|
3995
|
-
|
|
4021
|
+
zt = function(g, w) {
|
|
4022
|
+
w = w || {};
|
|
3996
4023
|
var E = typeof g;
|
|
3997
4024
|
if (E === "string" && g.length > 0)
|
|
3998
4025
|
return l(g);
|
|
3999
4026
|
if (E === "number" && isFinite(g))
|
|
4000
|
-
return
|
|
4027
|
+
return w.long ? d(g) : f(g);
|
|
4001
4028
|
throw new Error(
|
|
4002
4029
|
"val is not a non-empty string or a valid number. val=" + JSON.stringify(g)
|
|
4003
4030
|
);
|
|
4004
4031
|
};
|
|
4005
4032
|
function l(g) {
|
|
4006
4033
|
if (g = String(g), !(g.length > 100)) {
|
|
4007
|
-
var
|
|
4034
|
+
var w = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
4008
4035
|
g
|
|
4009
4036
|
);
|
|
4010
|
-
if (
|
|
4011
|
-
var E = parseFloat(
|
|
4012
|
-
switch (
|
|
4037
|
+
if (w) {
|
|
4038
|
+
var E = parseFloat(w[1]), T = (w[2] || "ms").toLowerCase();
|
|
4039
|
+
switch (T) {
|
|
4013
4040
|
case "years":
|
|
4014
4041
|
case "year":
|
|
4015
4042
|
case "yrs":
|
|
@@ -4055,37 +4082,37 @@ function Ls() {
|
|
|
4055
4082
|
}
|
|
4056
4083
|
}
|
|
4057
4084
|
function f(g) {
|
|
4058
|
-
var
|
|
4059
|
-
return
|
|
4085
|
+
var w = Math.abs(g);
|
|
4086
|
+
return w >= o ? Math.round(g / o) + "d" : w >= r ? Math.round(g / r) + "h" : w >= e ? Math.round(g / e) + "m" : w >= t ? Math.round(g / t) + "s" : g + "ms";
|
|
4060
4087
|
}
|
|
4061
4088
|
function d(g) {
|
|
4062
|
-
var
|
|
4063
|
-
return
|
|
4089
|
+
var w = Math.abs(g);
|
|
4090
|
+
return w >= o ? A(g, w, o, "day") : w >= r ? A(g, w, r, "hour") : w >= e ? A(g, w, e, "minute") : w >= t ? A(g, w, t, "second") : g + " ms";
|
|
4064
4091
|
}
|
|
4065
|
-
function A(g,
|
|
4066
|
-
var
|
|
4067
|
-
return Math.round(g / E) + " " +
|
|
4092
|
+
function A(g, w, E, T) {
|
|
4093
|
+
var P = w >= E * 1.5;
|
|
4094
|
+
return Math.round(g / E) + " " + T + (P ? "s" : "");
|
|
4068
4095
|
}
|
|
4069
4096
|
return zt;
|
|
4070
4097
|
}
|
|
4071
|
-
function
|
|
4072
|
-
r.debug = r, r.default = r, r.coerce = d, r.disable = u, r.enable = s, r.enabled = l, r.humanize =
|
|
4098
|
+
function Ds(t) {
|
|
4099
|
+
r.debug = r, r.default = r, r.coerce = d, r.disable = u, r.enable = s, r.enabled = l, r.humanize = $s(), r.destroy = A, Object.keys(t).forEach((g) => {
|
|
4073
4100
|
r[g] = t[g];
|
|
4074
4101
|
}), r.names = [], r.skips = [], r.formatters = {};
|
|
4075
4102
|
function e(g) {
|
|
4076
|
-
let
|
|
4103
|
+
let w = 0;
|
|
4077
4104
|
for (let E = 0; E < g.length; E++)
|
|
4078
|
-
|
|
4079
|
-
return r.colors[Math.abs(
|
|
4105
|
+
w = (w << 5) - w + g.charCodeAt(E), w |= 0;
|
|
4106
|
+
return r.colors[Math.abs(w) % r.colors.length];
|
|
4080
4107
|
}
|
|
4081
4108
|
r.selectColor = e;
|
|
4082
4109
|
function r(g) {
|
|
4083
|
-
let
|
|
4084
|
-
function
|
|
4085
|
-
if (!
|
|
4110
|
+
let w, E = null, T, P;
|
|
4111
|
+
function N(...Q) {
|
|
4112
|
+
if (!N.enabled)
|
|
4086
4113
|
return;
|
|
4087
|
-
const z =
|
|
4088
|
-
z.diff = ye, z.prev =
|
|
4114
|
+
const z = N, X = Number(/* @__PURE__ */ new Date()), ye = X - (w || X);
|
|
4115
|
+
z.diff = ye, z.prev = w, z.curr = X, w = X, Q[0] = r.coerce(Q[0]), typeof Q[0] != "string" && Q.unshift("%O");
|
|
4089
4116
|
let ee = 0;
|
|
4090
4117
|
Q[0] = Q[0].replace(/%([a-zA-Z%])/g, (j, B) => {
|
|
4091
4118
|
if (j === "%%")
|
|
@@ -4099,42 +4126,42 @@ function Us(t) {
|
|
|
4099
4126
|
return j;
|
|
4100
4127
|
}), r.formatArgs.call(z, Q), (z.log || r.log).apply(z, Q);
|
|
4101
4128
|
}
|
|
4102
|
-
return
|
|
4129
|
+
return N.namespace = g, N.useColors = r.useColors(), N.color = r.selectColor(g), N.extend = o, N.destroy = r.destroy, Object.defineProperty(N, "enabled", {
|
|
4103
4130
|
enumerable: !0,
|
|
4104
4131
|
configurable: !1,
|
|
4105
|
-
get: () => E !== null ? E : (
|
|
4132
|
+
get: () => E !== null ? E : (T !== r.namespaces && (T = r.namespaces, P = r.enabled(g)), P),
|
|
4106
4133
|
set: (Q) => {
|
|
4107
4134
|
E = Q;
|
|
4108
4135
|
}
|
|
4109
|
-
}), typeof r.init == "function" && r.init(
|
|
4136
|
+
}), typeof r.init == "function" && r.init(N), N;
|
|
4110
4137
|
}
|
|
4111
|
-
function o(g,
|
|
4112
|
-
const E = r(this.namespace + (typeof
|
|
4138
|
+
function o(g, w) {
|
|
4139
|
+
const E = r(this.namespace + (typeof w > "u" ? ":" : w) + g);
|
|
4113
4140
|
return E.log = this.log, E;
|
|
4114
4141
|
}
|
|
4115
4142
|
function s(g) {
|
|
4116
4143
|
r.save(g), r.namespaces = g, r.names = [], r.skips = [];
|
|
4117
|
-
let
|
|
4118
|
-
const E = (typeof g == "string" ? g : "").split(/[\s,]+/),
|
|
4119
|
-
for (
|
|
4120
|
-
E[
|
|
4144
|
+
let w;
|
|
4145
|
+
const E = (typeof g == "string" ? g : "").split(/[\s,]+/), T = E.length;
|
|
4146
|
+
for (w = 0; w < T; w++)
|
|
4147
|
+
E[w] && (g = E[w].replace(/\*/g, ".*?"), g[0] === "-" ? r.skips.push(new RegExp("^" + g.slice(1) + "$")) : r.names.push(new RegExp("^" + g + "$")));
|
|
4121
4148
|
}
|
|
4122
4149
|
function u() {
|
|
4123
4150
|
const g = [
|
|
4124
4151
|
...r.names.map(f),
|
|
4125
|
-
...r.skips.map(f).map((
|
|
4152
|
+
...r.skips.map(f).map((w) => "-" + w)
|
|
4126
4153
|
].join(",");
|
|
4127
4154
|
return r.enable(""), g;
|
|
4128
4155
|
}
|
|
4129
4156
|
function l(g) {
|
|
4130
4157
|
if (g[g.length - 1] === "*")
|
|
4131
4158
|
return !0;
|
|
4132
|
-
let
|
|
4133
|
-
for (
|
|
4134
|
-
if (r.skips[
|
|
4159
|
+
let w, E;
|
|
4160
|
+
for (w = 0, E = r.skips.length; w < E; w++)
|
|
4161
|
+
if (r.skips[w].test(g))
|
|
4135
4162
|
return !1;
|
|
4136
|
-
for (
|
|
4137
|
-
if (r.names[
|
|
4163
|
+
for (w = 0, E = r.names.length; w < E; w++)
|
|
4164
|
+
if (r.names[w].test(g))
|
|
4138
4165
|
return !0;
|
|
4139
4166
|
return !1;
|
|
4140
4167
|
}
|
|
@@ -4149,7 +4176,7 @@ function Us(t) {
|
|
|
4149
4176
|
}
|
|
4150
4177
|
return r.enable(r.load()), r;
|
|
4151
4178
|
}
|
|
4152
|
-
var
|
|
4179
|
+
var js = Ds;
|
|
4153
4180
|
(function(t, e) {
|
|
4154
4181
|
e.formatArgs = o, e.save = s, e.load = u, e.useColors = r, e.storage = l(), e.destroy = (() => {
|
|
4155
4182
|
let d = !1;
|
|
@@ -4246,10 +4273,10 @@ var $s = Us;
|
|
|
4246
4273
|
return;
|
|
4247
4274
|
const A = "color: " + this.color;
|
|
4248
4275
|
d.splice(1, 0, A, "color: inherit");
|
|
4249
|
-
let g = 0,
|
|
4276
|
+
let g = 0, w = 0;
|
|
4250
4277
|
d[0].replace(/%[a-zA-Z%]/g, (E) => {
|
|
4251
|
-
E !== "%%" && (g++, E === "%c" && (
|
|
4252
|
-
}), d.splice(
|
|
4278
|
+
E !== "%%" && (g++, E === "%c" && (w = g));
|
|
4279
|
+
}), d.splice(w, 0, A);
|
|
4253
4280
|
}
|
|
4254
4281
|
e.log = console.debug || console.log || (() => {
|
|
4255
4282
|
});
|
|
@@ -4265,7 +4292,7 @@ var $s = Us;
|
|
|
4265
4292
|
d = e.storage.getItem("debug");
|
|
4266
4293
|
} catch {
|
|
4267
4294
|
}
|
|
4268
|
-
return !d && typeof
|
|
4295
|
+
return !d && typeof C.process < "u" && "env" in C.process && (d = C.process.env.DEBUG), d;
|
|
4269
4296
|
}
|
|
4270
4297
|
function l() {
|
|
4271
4298
|
try {
|
|
@@ -4273,7 +4300,7 @@ var $s = Us;
|
|
|
4273
4300
|
} catch {
|
|
4274
4301
|
}
|
|
4275
4302
|
}
|
|
4276
|
-
t.exports =
|
|
4303
|
+
t.exports = js(e);
|
|
4277
4304
|
const { formatters: f } = t.exports;
|
|
4278
4305
|
f.j = function(d) {
|
|
4279
4306
|
try {
|
|
@@ -4283,28 +4310,28 @@ var $s = Us;
|
|
|
4283
4310
|
}
|
|
4284
4311
|
};
|
|
4285
4312
|
})(ur, ur.exports);
|
|
4286
|
-
var
|
|
4287
|
-
const
|
|
4288
|
-
function
|
|
4313
|
+
var Ln = ur.exports;
|
|
4314
|
+
const Ms = un, Vs = mn.EventEmitter, qs = Ot.inherits, W = Ln("avvio"), { AVV_ERR_READY_TIMEOUT: Gs } = Nn, Kt = Symbol.for("plugin-meta");
|
|
4315
|
+
function Qs(t, e) {
|
|
4289
4316
|
return t[Kt] && t[Kt].name ? t[Kt].name : typeof e < "u" && typeof e != "function" && e.name ? e.name : t.name ? t.name : t.toString().split(`
|
|
4290
4317
|
`).slice(0, 2).map((r) => r.trim()).join(" -- ");
|
|
4291
4318
|
}
|
|
4292
|
-
function
|
|
4319
|
+
function zs() {
|
|
4293
4320
|
const t = {};
|
|
4294
4321
|
return t.promise = new Promise((e, r) => {
|
|
4295
4322
|
t.resolve = e, t.reject = r;
|
|
4296
4323
|
}), t;
|
|
4297
4324
|
}
|
|
4298
|
-
function
|
|
4299
|
-
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 =
|
|
4325
|
+
function tt(t, e, r, o, s) {
|
|
4326
|
+
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 = Qs(e, r), this.isAfter = o, this.q = Ms(t, Ks, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
|
|
4300
4327
|
}
|
|
4301
|
-
|
|
4302
|
-
|
|
4328
|
+
qs(tt, Vs);
|
|
4329
|
+
tt.prototype.exec = function(t, e) {
|
|
4303
4330
|
const r = this.func;
|
|
4304
4331
|
let o = !1;
|
|
4305
4332
|
const s = this.name;
|
|
4306
4333
|
if (this.parent._error && !this.isAfter) {
|
|
4307
|
-
W("skipping loading of plugin as parent errored and it is not an after", s),
|
|
4334
|
+
W("skipping loading of plugin as parent errored and it is not an after", s), C.process.nextTick(e);
|
|
4308
4335
|
return;
|
|
4309
4336
|
}
|
|
4310
4337
|
if (this.isAfter)
|
|
@@ -4326,30 +4353,30 @@ et.prototype.exec = function(t, e) {
|
|
|
4326
4353
|
};
|
|
4327
4354
|
this.timeout > 0 && (W("setting up timeout", s, this.timeout), u = setTimeout(function() {
|
|
4328
4355
|
W("timed out", s), u = null;
|
|
4329
|
-
const d = new
|
|
4356
|
+
const d = new Gs(s);
|
|
4330
4357
|
d.fn = r, l(d);
|
|
4331
4358
|
}, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
|
|
4332
4359
|
const f = r(this.server, this.opts, l);
|
|
4333
4360
|
f && typeof f.then == "function" && (W("exec: resolving promise", s), f.then(
|
|
4334
|
-
() =>
|
|
4335
|
-
(d) =>
|
|
4361
|
+
() => C.process.nextTick(l),
|
|
4362
|
+
(d) => C.process.nextTick(l, d)
|
|
4336
4363
|
));
|
|
4337
4364
|
};
|
|
4338
|
-
|
|
4365
|
+
tt.prototype.loadedSoFar = function() {
|
|
4339
4366
|
if (this.loaded)
|
|
4340
4367
|
return Promise.resolve();
|
|
4341
4368
|
const t = () => {
|
|
4342
4369
|
this.server.after((r, o) => {
|
|
4343
|
-
this._error = r, this.q.pause(), r ? (W("rejecting promise", this.name, r), this._promise.reject(r)) : (W("resolving promise", this.name), this._promise.resolve()), this._promise = null,
|
|
4370
|
+
this._error = r, this.q.pause(), r ? (W("rejecting promise", this.name, r), this._promise.reject(r)) : (W("resolving promise", this.name), this._promise.resolve()), this._promise = null, C.process.nextTick(o, r);
|
|
4344
4371
|
}), this.q.resume();
|
|
4345
4372
|
};
|
|
4346
4373
|
let e;
|
|
4347
|
-
return this._promise ? e = Promise.resolve() : (this._promise =
|
|
4374
|
+
return this._promise ? e = Promise.resolve() : (this._promise = zs(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
|
|
4348
4375
|
};
|
|
4349
|
-
|
|
4376
|
+
tt.prototype.enqueue = function(t, e) {
|
|
4350
4377
|
W("enqueue", this.name, t.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(t, e);
|
|
4351
4378
|
};
|
|
4352
|
-
|
|
4379
|
+
tt.prototype.finish = function(t, e) {
|
|
4353
4380
|
W("finish", this.name, t);
|
|
4354
4381
|
const r = () => {
|
|
4355
4382
|
this.loaded || (W("loaded", this.name), this.emit("loaded", this.server ? this.server.name : null, this.name, Date.now()), this.loaded = !0, e(t));
|
|
@@ -4369,14 +4396,14 @@ et.prototype.finish = function(t, e) {
|
|
|
4369
4396
|
r();
|
|
4370
4397
|
else
|
|
4371
4398
|
W("delayed", this.name), this.q.drain = () => {
|
|
4372
|
-
W("drain", this.name), this.q.drain =
|
|
4399
|
+
W("drain", this.name), this.q.drain = Hs, queueMicrotask(o);
|
|
4373
4400
|
};
|
|
4374
4401
|
};
|
|
4375
4402
|
queueMicrotask(o), this.q.resume();
|
|
4376
4403
|
};
|
|
4377
|
-
function
|
|
4404
|
+
function Ks(t, e) {
|
|
4378
4405
|
const r = this;
|
|
4379
|
-
|
|
4406
|
+
C.process.nextTick(Er.bind(r), t, e);
|
|
4380
4407
|
}
|
|
4381
4408
|
function Er(t, e) {
|
|
4382
4409
|
if (typeof t.func.then == "function") {
|
|
@@ -4392,19 +4419,19 @@ function Er(t, e) {
|
|
|
4392
4419
|
});
|
|
4393
4420
|
});
|
|
4394
4421
|
}
|
|
4395
|
-
function
|
|
4422
|
+
function Hs() {
|
|
4396
4423
|
}
|
|
4397
|
-
Ar.exports =
|
|
4424
|
+
Ar.exports = tt;
|
|
4398
4425
|
Ar.exports.loadPlugin = Er;
|
|
4399
|
-
var
|
|
4400
|
-
const
|
|
4426
|
+
var Ws = Ar.exports;
|
|
4427
|
+
const Qr = un, Js = mn.EventEmitter, Ys = Ot.inherits, {
|
|
4401
4428
|
AVV_ERR_EXPOSE_ALREADY_DEFINED: Ht,
|
|
4402
4429
|
AVV_ERR_CALLBACK_NOT_FN: ut,
|
|
4403
|
-
AVV_ERR_PLUGIN_NOT_VALID:
|
|
4404
|
-
AVV_ERR_ROOT_PLG_BOOTED:
|
|
4405
|
-
AVV_ERR_READY_TIMEOUT:
|
|
4406
|
-
} =
|
|
4407
|
-
function
|
|
4430
|
+
AVV_ERR_PLUGIN_NOT_VALID: Xs,
|
|
4431
|
+
AVV_ERR_ROOT_PLG_BOOTED: Zs,
|
|
4432
|
+
AVV_ERR_READY_TIMEOUT: ea
|
|
4433
|
+
} = Nn, ta = Us, cr = Ws, Ze = Ln("avvio"), It = Symbol("kAvvio"), Wt = Symbol("kThenifyDoNotWrap");
|
|
4434
|
+
function ra(t, e, r) {
|
|
4408
4435
|
const o = e.expose || {}, s = o.use || "use", u = o.after || "after", l = o.ready || "ready", f = o.onClose || "onClose", d = o.close || "close";
|
|
4409
4436
|
if (t[s])
|
|
4410
4437
|
throw new Ht(s);
|
|
@@ -4414,7 +4441,7 @@ function ea(t, e, r) {
|
|
|
4414
4441
|
throw new Ht(l);
|
|
4415
4442
|
t[s] = function(A, g) {
|
|
4416
4443
|
return r.use(A, g), this;
|
|
4417
|
-
}, Object.defineProperty(t, "then", { get:
|
|
4444
|
+
}, Object.defineProperty(t, "then", { get: Un.bind(r) }), t[It] = !0, t[u] = function(A) {
|
|
4418
4445
|
return typeof A != "function" ? r._loadRegistered() : (r.after(Jt(A, this)), this);
|
|
4419
4446
|
}, t[l] = function(A) {
|
|
4420
4447
|
if (A && typeof A != "function")
|
|
@@ -4423,7 +4450,7 @@ function ea(t, e, r) {
|
|
|
4423
4450
|
}, t[f] = function(A) {
|
|
4424
4451
|
if (typeof A != "function")
|
|
4425
4452
|
throw new ut(f, typeof A);
|
|
4426
|
-
return r.onClose(
|
|
4453
|
+
return r.onClose(aa(A, this)), this;
|
|
4427
4454
|
}, t[d] = function(A) {
|
|
4428
4455
|
if (A && typeof A != "function")
|
|
4429
4456
|
throw new ut(d, typeof A);
|
|
@@ -4433,19 +4460,19 @@ function ea(t, e, r) {
|
|
|
4433
4460
|
function J(t, e, r) {
|
|
4434
4461
|
if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof J)) {
|
|
4435
4462
|
const o = new J(t, e, r);
|
|
4436
|
-
return t &&
|
|
4463
|
+
return t && ra(t, e, o), o;
|
|
4437
4464
|
}
|
|
4438
|
-
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
|
|
4439
|
-
this.emit("start"), this._readyQ.drain =
|
|
4440
|
-
}, this._closeQ =
|
|
4441
|
-
this.emit("close"), this._closeQ.drain =
|
|
4442
|
-
}, this._doStart = null, this._root = new cr(this,
|
|
4465
|
+
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 ta(), this._readyQ = Qr(this, $n, 1), this._readyQ.pause(), this._readyQ.drain = () => {
|
|
4466
|
+
this.emit("start"), this._readyQ.drain = zr;
|
|
4467
|
+
}, this._closeQ = Qr(this, sa, 1), this._closeQ.pause(), this._closeQ.drain = () => {
|
|
4468
|
+
this.emit("close"), this._closeQ.drain = zr;
|
|
4469
|
+
}, this._doStart = null, this._root = new cr(this, na.bind(this), e, !1, 0), this._root.once("start", (o, s, u) => {
|
|
4443
4470
|
const l = this.pluginTree.start(null, s, u);
|
|
4444
4471
|
this._root.once("loaded", (f, d, A) => {
|
|
4445
4472
|
this.pluginTree.stop(l, A);
|
|
4446
4473
|
});
|
|
4447
4474
|
}), cr.loadPlugin.call(this, this._root, (o) => {
|
|
4448
|
-
|
|
4475
|
+
Ze("root plugin ready");
|
|
4449
4476
|
try {
|
|
4450
4477
|
this.emit("preReady"), this._root = null;
|
|
4451
4478
|
} catch (s) {
|
|
@@ -4459,19 +4486,19 @@ function J(t, e, r) {
|
|
|
4459
4486
|
this._readyQ.resume();
|
|
4460
4487
|
});
|
|
4461
4488
|
}
|
|
4462
|
-
function
|
|
4489
|
+
function na(t, e, r) {
|
|
4463
4490
|
this._doStart = r, e.autostart && this.start();
|
|
4464
4491
|
}
|
|
4465
|
-
|
|
4492
|
+
Ys(J, Js);
|
|
4466
4493
|
J.prototype.start = function() {
|
|
4467
|
-
return this.started = !0,
|
|
4494
|
+
return this.started = !0, C.process.nextTick(this._doStart), this;
|
|
4468
4495
|
};
|
|
4469
4496
|
J.prototype.override = function(t, e, r) {
|
|
4470
4497
|
return t;
|
|
4471
4498
|
};
|
|
4472
|
-
function
|
|
4499
|
+
function ia(t) {
|
|
4473
4500
|
if (t && typeof t == "object" && typeof t.default == "function" && (t = t.default), !(t && (typeof t == "function" || typeof t.then == "function")))
|
|
4474
|
-
throw new
|
|
4501
|
+
throw new Xs(typeof t);
|
|
4475
4502
|
return t;
|
|
4476
4503
|
}
|
|
4477
4504
|
J.prototype[It] = !0;
|
|
@@ -4480,17 +4507,17 @@ J.prototype.use = function(t, e) {
|
|
|
4480
4507
|
};
|
|
4481
4508
|
J.prototype._loadRegistered = function() {
|
|
4482
4509
|
const t = this._current[0];
|
|
4483
|
-
return !this.started && !this.booted &&
|
|
4510
|
+
return !this.started && !this.booted && C.process.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
|
|
4484
4511
|
};
|
|
4485
|
-
Object.defineProperty(J.prototype, "then", { get:
|
|
4512
|
+
Object.defineProperty(J.prototype, "then", { get: Un });
|
|
4486
4513
|
J.prototype._addPlugin = function(t, e, r) {
|
|
4487
|
-
if (t =
|
|
4488
|
-
throw new
|
|
4514
|
+
if (t = ia(t), e = e || {}, this.booted)
|
|
4515
|
+
throw new Zs();
|
|
4489
4516
|
const o = this._current[0], s = new cr(this, t, e, r);
|
|
4490
4517
|
if (s.once("start", (u, l, f) => {
|
|
4491
4518
|
const d = this.pluginTree.start(o.name, l, f);
|
|
4492
|
-
s.once("loaded", (A, g,
|
|
4493
|
-
this.pluginTree.stop(d,
|
|
4519
|
+
s.once("loaded", (A, g, w) => {
|
|
4520
|
+
this.pluginTree.stop(d, w);
|
|
4494
4521
|
});
|
|
4495
4522
|
}), o.loaded)
|
|
4496
4523
|
throw new Error(s.name, o.name);
|
|
@@ -4503,7 +4530,7 @@ J.prototype.after = function(t) {
|
|
|
4503
4530
|
return this._loadRegistered();
|
|
4504
4531
|
this._addPlugin(e.bind(this), {}, !0);
|
|
4505
4532
|
function e(r, o, s) {
|
|
4506
|
-
|
|
4533
|
+
$n.call(this, t, s);
|
|
4507
4534
|
}
|
|
4508
4535
|
return this;
|
|
4509
4536
|
};
|
|
@@ -4530,7 +4557,7 @@ J.prototype.close = function(t) {
|
|
|
4530
4557
|
};
|
|
4531
4558
|
});
|
|
4532
4559
|
return this.ready(() => {
|
|
4533
|
-
this._error = null, this._closeQ.push(t),
|
|
4560
|
+
this._error = null, this._closeQ.push(t), C.process.nextTick(this._closeQ.resume.bind(this._closeQ));
|
|
4534
4561
|
}), e;
|
|
4535
4562
|
};
|
|
4536
4563
|
J.prototype.ready = function(t) {
|
|
@@ -4544,7 +4571,7 @@ J.prototype.ready = function(t) {
|
|
|
4544
4571
|
this._readyQ.push(s), this.start();
|
|
4545
4572
|
const o = this._current[0].server;
|
|
4546
4573
|
function s(u, l, f) {
|
|
4547
|
-
u ? r(u) : e(o),
|
|
4574
|
+
u ? r(u) : e(o), C.process.nextTick(f);
|
|
4548
4575
|
}
|
|
4549
4576
|
});
|
|
4550
4577
|
};
|
|
@@ -4554,40 +4581,40 @@ J.prototype.prettyPrint = function() {
|
|
|
4554
4581
|
J.prototype.toJSON = function() {
|
|
4555
4582
|
return this.pluginTree.toJSON();
|
|
4556
4583
|
};
|
|
4557
|
-
function
|
|
4584
|
+
function zr() {
|
|
4558
4585
|
}
|
|
4559
|
-
function
|
|
4586
|
+
function Un() {
|
|
4560
4587
|
if (this.booted) {
|
|
4561
|
-
|
|
4588
|
+
Ze("thenify returning null because we are already booted");
|
|
4562
4589
|
return;
|
|
4563
4590
|
}
|
|
4564
4591
|
if (this[Wt]) {
|
|
4565
4592
|
this[Wt] = !1;
|
|
4566
4593
|
return;
|
|
4567
4594
|
}
|
|
4568
|
-
return
|
|
4595
|
+
return Ze("thenify"), (t, e) => this._loadRegistered().then(() => (this[Wt] = !0, t(this._server)), e);
|
|
4569
4596
|
}
|
|
4570
|
-
function
|
|
4597
|
+
function $n(t, e) {
|
|
4571
4598
|
const r = this._server, o = this._error;
|
|
4572
4599
|
let s;
|
|
4573
4600
|
if (this._error = null, t.length === 0)
|
|
4574
|
-
this._error = o, s = t(), s && !s[It] && typeof s.then == "function" ? s.then(() =>
|
|
4601
|
+
this._error = o, s = t(), s && !s[It] && typeof s.then == "function" ? s.then(() => C.process.nextTick(e), (u) => C.process.nextTick(e, u)) : C.process.nextTick(e);
|
|
4575
4602
|
else if (t.length === 1)
|
|
4576
|
-
s = t(o), s && !s[It] && typeof s.then == "function" ? s.then(() =>
|
|
4603
|
+
s = t(o), s && !s[It] && typeof s.then == "function" ? s.then(() => C.process.nextTick(e), (u) => C.process.nextTick(e, u)) : C.process.nextTick(e);
|
|
4577
4604
|
else if (this._timeout === 0) {
|
|
4578
4605
|
const u = (l) => {
|
|
4579
4606
|
this._error = l, e(this._error);
|
|
4580
4607
|
};
|
|
4581
4608
|
t.length === 2 ? t(o, u) : t(o, r, u);
|
|
4582
4609
|
} else
|
|
4583
|
-
|
|
4610
|
+
oa.call(this, t, o, r, e);
|
|
4584
4611
|
}
|
|
4585
|
-
function
|
|
4612
|
+
function oa(t, e, r, o) {
|
|
4586
4613
|
const s = t.name;
|
|
4587
|
-
|
|
4614
|
+
Ze("setting up ready timeout", s, this._timeout);
|
|
4588
4615
|
let u = setTimeout(() => {
|
|
4589
|
-
|
|
4590
|
-
const f = new
|
|
4616
|
+
Ze("timed out", s), u = null;
|
|
4617
|
+
const f = new ea(s);
|
|
4591
4618
|
f.fn = t, this._error = f, o(f);
|
|
4592
4619
|
}, this._timeout);
|
|
4593
4620
|
t.length === 2 ? t(e, l.bind(this)) : t(e, r, l.bind(this));
|
|
@@ -4595,26 +4622,26 @@ function na(t, e, r, o) {
|
|
|
4595
4622
|
u && (clearTimeout(u), this._error = f, o(this._error));
|
|
4596
4623
|
}
|
|
4597
4624
|
}
|
|
4598
|
-
function
|
|
4625
|
+
function sa(t, e) {
|
|
4599
4626
|
const r = this._server, o = t[this._isOnCloseHandlerKey];
|
|
4600
4627
|
if (t.length === 0 || t.length === 1) {
|
|
4601
4628
|
let s;
|
|
4602
|
-
o ? s = t(r) : s = t(this._error), s && typeof s.then == "function" ? (
|
|
4603
|
-
() =>
|
|
4604
|
-
(u) =>
|
|
4605
|
-
)) :
|
|
4629
|
+
o ? s = t(r) : s = t(this._error), s && typeof s.then == "function" ? (Ze("resolving close/onClose promise"), s.then(
|
|
4630
|
+
() => C.process.nextTick(e),
|
|
4631
|
+
(u) => C.process.nextTick(e, u)
|
|
4632
|
+
)) : C.process.nextTick(e);
|
|
4606
4633
|
} else
|
|
4607
4634
|
t.length === 2 ? t(o ? r : this._error, e) : o ? t(r, e) : t(this._error, r, e);
|
|
4608
4635
|
}
|
|
4609
|
-
function
|
|
4636
|
+
function aa(t, e) {
|
|
4610
4637
|
return r.bind(e);
|
|
4611
4638
|
function r(o, s) {
|
|
4612
4639
|
let u;
|
|
4613
4640
|
t.length === 0 ? (u = t(), u && u.then ? u.then(function() {
|
|
4614
|
-
|
|
4615
|
-
}, s) :
|
|
4616
|
-
|
|
4617
|
-
}, s) :
|
|
4641
|
+
C.process.nextTick(s);
|
|
4642
|
+
}, s) : C.process.nextTick(s)) : t.length === 1 ? (u = t(this), u && u.then ? u.then(function() {
|
|
4643
|
+
C.process.nextTick(s);
|
|
4644
|
+
}, s) : C.process.nextTick(s)) : t(this, s);
|
|
4618
4645
|
}
|
|
4619
4646
|
}
|
|
4620
4647
|
function Jt(t, e) {
|
|
@@ -4622,10 +4649,10 @@ function Jt(t, e) {
|
|
|
4622
4649
|
function r(o, s) {
|
|
4623
4650
|
let u;
|
|
4624
4651
|
t ? t.length === 0 ? (u = t(), u && u.then ? u.then(function() {
|
|
4625
|
-
|
|
4626
|
-
}, s) :
|
|
4627
|
-
|
|
4628
|
-
}, s) :
|
|
4652
|
+
C.process.nextTick(s, o);
|
|
4653
|
+
}, s) : C.process.nextTick(s, o)) : t.length === 1 ? (u = t(o), u && u.then ? u.then(function() {
|
|
4654
|
+
C.process.nextTick(s);
|
|
4655
|
+
}, s) : C.process.nextTick(s)) : t.length === 2 ? t(o, s) : t(o, this, s) : C.process.nextTick(s);
|
|
4629
4656
|
}
|
|
4630
4657
|
}
|
|
4631
4658
|
dr.exports = J;
|
|
@@ -4636,11 +4663,11 @@ dr.exports.express = function(t) {
|
|
|
4636
4663
|
}
|
|
4637
4664
|
});
|
|
4638
4665
|
};
|
|
4639
|
-
var
|
|
4640
|
-
const
|
|
4641
|
-
function
|
|
4642
|
-
const o = e ? "https://grpc-web.streamlayer.io:443" : "https://grpc-web.next.streamlayer.io:443", s =
|
|
4643
|
-
return s.use(
|
|
4666
|
+
var ua = dr.exports;
|
|
4667
|
+
const ca = /* @__PURE__ */ Wn(ua);
|
|
4668
|
+
function _a(t, e = !0, r = !0) {
|
|
4669
|
+
const o = e ? "https://grpc-web.streamlayer.io:443" : "https://grpc-web.next.streamlayer.io:443", s = ca(/* @__PURE__ */ Object.create({}), { autostart: !1 });
|
|
4670
|
+
return s.use(Bi), s.use(Si, { sdkKey: t, host: o }), s.use(_i), s.use(Ci), s.use(to), s.use(Qi), r && s.after(async (u, l, f) => {
|
|
4644
4671
|
if (u)
|
|
4645
4672
|
throw u;
|
|
4646
4673
|
await l.sdk.initializeApp(), f();
|
|
@@ -4649,5 +4676,5 @@ function Fa(t, e = !0, r = !0) {
|
|
|
4649
4676
|
}), s;
|
|
4650
4677
|
}
|
|
4651
4678
|
export {
|
|
4652
|
-
|
|
4679
|
+
_a as StreamLayer
|
|
4653
4680
|
};
|