@streamlayer/sdk-web 0.28.20 → 0.28.22

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