@streamlayer/sdk-web 0.32.0 → 0.32.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1,47 +1,47 @@
1
- import { QuestionType as fe, QuestionStatus as dt, SilenceSetting as oi } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
1
+ import { QuestionType as fe, QuestionStatus as dt, SilenceSetting as ai } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
2
2
  import "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
3
- import { SdkOverlayType as Fe } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
4
- import { computed as ln, map as si, atom as kt, onMount as fn } from "nanostores";
3
+ import { SdkOverlayType as Oe } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
4
+ import { computed as dn, map as ui, atom as Bt, onMount as hn } from "nanostores";
5
5
  import "@nanostores/logger";
6
6
  import "microdiff";
7
- import { nanoid as ai } from "nanoid";
8
- import { ConnectError as Br, Code as Lr, createPromiseClient as Pr } from "@connectrpc/connect";
9
- import { createGrpcWebTransport as Rr } from "@connectrpc/connect-web";
7
+ import { nanoid as ci } from "nanoid";
8
+ import { ConnectError as Br, Code as Pr, createPromiseClient as Rr } from "@connectrpc/connect";
9
+ import { createGrpcWebTransport as Dr } from "@connectrpc/connect-web";
10
10
  import { nanoquery as Nr } from "@nanostores/query";
11
- import { Events as ui } from "@streamlayer/sl-eslib/sports/events/events_connect";
11
+ import { Events as li } from "@streamlayer/sl-eslib/sports/events/events_connect";
12
12
  import { Client as yt } from "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
13
- import { Users as yr } from "@streamlayer/sl-eslib/users/users_connect";
14
- import { pino as ci } from "pino";
15
- import { Feed as _e } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
16
- import { Leaderboard as dn } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
13
+ import { Users as gr } from "@streamlayer/sl-eslib/users/users_connect";
14
+ import { pino as fi } from "pino";
15
+ import { Feed as Ce } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
16
+ import { Leaderboard as pn } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
17
17
  import "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb";
18
- import { LinksClient as li } from "@streamlayer/sl-eslib/shortLinks/linksClient_connect";
19
- function fi(t) {
18
+ import { LinksClient as di } from "@streamlayer/sl-eslib/shortLinks/linksClient_connect";
19
+ function hi(t) {
20
20
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
21
21
  }
22
- var hn = { exports: {} }, Y = hn.exports = {}, ye, ge;
23
- function nr() {
22
+ var yn = { exports: {} }, Y = yn.exports = {}, ye, ge;
23
+ function ir() {
24
24
  throw new Error("setTimeout has not been defined");
25
25
  }
26
- function ir() {
26
+ function or() {
27
27
  throw new Error("clearTimeout has not been defined");
28
28
  }
29
29
  (function() {
30
30
  try {
31
- typeof setTimeout == "function" ? ye = setTimeout : ye = nr;
31
+ typeof setTimeout == "function" ? ye = setTimeout : ye = ir;
32
32
  } catch {
33
- ye = nr;
33
+ ye = ir;
34
34
  }
35
35
  try {
36
- typeof clearTimeout == "function" ? ge = clearTimeout : ge = ir;
36
+ typeof clearTimeout == "function" ? ge = clearTimeout : ge = or;
37
37
  } catch {
38
- ge = ir;
38
+ ge = or;
39
39
  }
40
40
  })();
41
- function pn(t) {
41
+ function gn(t) {
42
42
  if (ye === setTimeout)
43
43
  return setTimeout(t, 0);
44
- if ((ye === nr || !ye) && setTimeout)
44
+ if ((ye === ir || !ye) && setTimeout)
45
45
  return ye = setTimeout, setTimeout(t, 0);
46
46
  try {
47
47
  return ye(t, 0);
@@ -53,10 +53,10 @@ function pn(t) {
53
53
  }
54
54
  }
55
55
  }
56
- function di(t) {
56
+ function pi(t) {
57
57
  if (ge === clearTimeout)
58
58
  return clearTimeout(t);
59
- if ((ge === ir || !ge) && clearTimeout)
59
+ if ((ge === or || !ge) && clearTimeout)
60
60
  return ge = clearTimeout, clearTimeout(t);
61
61
  try {
62
62
  return ge(t);
@@ -68,20 +68,20 @@ function di(t) {
68
68
  }
69
69
  }
70
70
  }
71
- var Oe = [], et = !1, Ue, bt = -1;
72
- function hi() {
73
- !et || !Ue || (et = !1, Ue.length ? Oe = Ue.concat(Oe) : bt = -1, Oe.length && yn());
71
+ var _e = [], et = !1, je, St = -1;
72
+ function yi() {
73
+ !et || !je || (et = !1, je.length ? _e = je.concat(_e) : St = -1, _e.length && mn());
74
74
  }
75
- function yn() {
75
+ function mn() {
76
76
  if (!et) {
77
- var t = pn(hi);
77
+ var t = gn(yi);
78
78
  et = !0;
79
- for (var e = Oe.length; e; ) {
80
- for (Ue = Oe, Oe = []; ++bt < e; )
81
- Ue && Ue[bt].run();
82
- bt = -1, e = Oe.length;
79
+ for (var e = _e.length; e; ) {
80
+ for (je = _e, _e = []; ++St < e; )
81
+ je && je[St].run();
82
+ St = -1, e = _e.length;
83
83
  }
84
- Ue = null, et = !1, di(t);
84
+ je = null, et = !1, pi(t);
85
85
  }
86
86
  }
87
87
  Y.nextTick = function(t) {
@@ -89,12 +89,12 @@ Y.nextTick = function(t) {
89
89
  if (arguments.length > 1)
90
90
  for (var r = 1; r < arguments.length; r++)
91
91
  e[r - 1] = arguments[r];
92
- Oe.push(new gn(t, e)), Oe.length === 1 && !et && pn(yn);
92
+ _e.push(new wn(t, e)), _e.length === 1 && !et && gn(mn);
93
93
  };
94
- function gn(t, e) {
94
+ function wn(t, e) {
95
95
  this.fun = t, this.array = e;
96
96
  }
97
- gn.prototype.run = function() {
97
+ wn.prototype.run = function() {
98
98
  this.fun.apply(null, this.array);
99
99
  };
100
100
  Y.title = "browser";
@@ -103,17 +103,17 @@ Y.env = {};
103
103
  Y.argv = [];
104
104
  Y.version = "";
105
105
  Y.versions = {};
106
- function Ce() {
106
+ function ke() {
107
107
  }
108
- Y.on = Ce;
109
- Y.addListener = Ce;
110
- Y.once = Ce;
111
- Y.off = Ce;
112
- Y.removeListener = Ce;
113
- Y.removeAllListeners = Ce;
114
- Y.emit = Ce;
115
- Y.prependListener = Ce;
116
- Y.prependOnceListener = Ce;
108
+ Y.on = ke;
109
+ Y.addListener = ke;
110
+ Y.once = ke;
111
+ Y.off = ke;
112
+ Y.removeListener = ke;
113
+ Y.removeAllListeners = ke;
114
+ Y.emit = ke;
115
+ Y.prependListener = ke;
116
+ Y.prependOnceListener = ke;
117
117
  Y.listeners = function(t) {
118
118
  return [];
119
119
  };
@@ -129,12 +129,12 @@ Y.chdir = function(t) {
129
129
  Y.umask = function() {
130
130
  return 0;
131
131
  };
132
- var pi = hn.exports;
133
- const P = /* @__PURE__ */ fi(pi);
134
- class yi {
132
+ var gi = yn.exports;
133
+ const P = /* @__PURE__ */ hi(gi);
134
+ class mi {
135
135
  }
136
136
  window.slStore = /* @__PURE__ */ Object.create(null);
137
- class Bt {
137
+ class Pt {
138
138
  /**
139
139
  * store instance (nanostores)
140
140
  */
@@ -150,33 +150,33 @@ class Bt {
150
150
  return this.store;
151
151
  }
152
152
  }
153
- const gi = (t) => {
153
+ const wi = (t) => {
154
154
  const e = Object.keys(t);
155
- return ln(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((i, s) => [i, r[s]])));
155
+ return dn(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((i, s) => [i, r[s]])));
156
156
  };
157
- class tt extends Bt {
157
+ class tt extends Pt {
158
158
  getValues = () => this.getStore().get();
159
159
  getValue = (e) => this.getStore().get()[e];
160
160
  setValue = (e, r) => this.getStore().setKey(e, r);
161
161
  subscribe = (...e) => this.getStore().subscribe(...e);
162
162
  unsubscribe = () => this.getStore().off();
163
163
  }
164
- const Te = (t) => si(t);
165
- var Ee;
164
+ const Te = (t) => ui(t);
165
+ var Ie;
166
166
  (function(t) {
167
167
  t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
168
- })(Ee || (Ee = {}));
169
- const mi = {
170
- [Fe.BETTING]: "betting",
171
- [Fe.GAMES]: "games",
172
- [Fe.PUBLIC_CHAT]: "publicChat",
173
- [Fe.TWITTER]: "twitter"
168
+ })(Ie || (Ie = {}));
169
+ const bi = {
170
+ [Oe.BETTING]: "betting",
171
+ [Oe.GAMES]: "games",
172
+ [Oe.PUBLIC_CHAT]: "publicChat",
173
+ [Oe.TWITTER]: "twitter"
174
174
  };
175
175
  var rt;
176
176
  (function(t) {
177
177
  t.Ready = "ready", t.Suspended = "suspended";
178
178
  })(rt || (rt = {}));
179
- class mn {
179
+ class bn {
180
180
  status;
181
181
  source;
182
182
  config;
@@ -184,7 +184,7 @@ class mn {
184
184
  listeners = /* @__PURE__ */ new Set();
185
185
  settingsKey;
186
186
  constructor({ settings: e, ...r }, i) {
187
- this.settingsKey = mi[r.type], this.status = kt(rt.Suspended), this.config = new tt(Te(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new tt(Te(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new tt(Te({}), `feature:settings:${this.settingsKey}`), this.source = i;
187
+ this.settingsKey = bi[r.type], this.status = Bt(rt.Suspended), this.config = new tt(Te(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new tt(Te(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new tt(Te({}), `feature:settings:${this.settingsKey}`), this.source = i;
188
188
  }
189
189
  get featureConfig() {
190
190
  return this.config.getStore();
@@ -215,7 +215,7 @@ class mn {
215
215
  }
216
216
  };
217
217
  update = (e, r) => {
218
- this.source === Ee.STREAM && r === Ee.ORGANIZATION || (this.setFeatureConfig(e), this.source = r);
218
+ this.source === Ie.STREAM && r === Ie.ORGANIZATION || (this.setFeatureConfig(e), this.source = r);
219
219
  };
220
220
  fireEvent(e) {
221
221
  for (const r of this.listeners.values())
@@ -226,7 +226,7 @@ class mn {
226
226
  }
227
227
  }
228
228
  }
229
- class se extends Bt {
229
+ class se extends Pt {
230
230
  getValue = () => this.getStore().get();
231
231
  getValues() {
232
232
  throw new Error("not implemented");
@@ -241,11 +241,11 @@ class se extends Bt {
241
241
  return this.getStore().get();
242
242
  }
243
243
  }
244
- const re = (t) => kt(t);
245
- class de extends Bt {
244
+ const re = (t) => Bt(t);
245
+ class de extends Pt {
246
246
  atomStore;
247
247
  constructor(e, r, i) {
248
- super(e, `api:${r}`), this.atomStore = kt(), i && e.subscribe((s) => {
248
+ super(e, `api:${r}`), this.atomStore = Bt(), i && e.subscribe((s) => {
249
249
  const a = this.atomStore.get(), c = i(s, a);
250
250
  a !== c && this.atomStore.set(c);
251
251
  });
@@ -273,7 +273,7 @@ class de extends Bt {
273
273
  key = () => this.getStore().key;
274
274
  off = () => this.getStore().off();
275
275
  }
276
- async function* wi(t, e) {
276
+ async function* vi(t, e) {
277
277
  for await (const r of e) {
278
278
  t.response.message = r, t.received_at = Date.now();
279
279
  const i = {
@@ -283,7 +283,7 @@ async function* wi(t, e) {
283
283
  window.postMessage(i), yield r;
284
284
  }
285
285
  }
286
- const bi = () => (t) => async (e) => {
286
+ const Si = () => (t) => async (e) => {
287
287
  const r = {
288
288
  name: e.url,
289
289
  stream: e.stream,
@@ -307,7 +307,7 @@ const bi = () => (t) => async (e) => {
307
307
  };
308
308
  return window.postMessage(s), {
309
309
  ...i,
310
- message: wi(r, i.message)
310
+ message: vi(r, i.message)
311
311
  };
312
312
  } else {
313
313
  r.request.message = e.message, r.response.message = i.message, r.latency = r.received_at - r.sent_at;
@@ -335,7 +335,7 @@ var le;
335
335
  (function(t) {
336
336
  t.Init = "init", t.Ready = "ready", t.Connecting = "connecting", t.Connected = "connected", t.Disconnected = "disconnected", t.Failed = "failed", t.Reconnect = "reconnect", t.Reconnecting = "reconnecting";
337
337
  })(le || (le = {}));
338
- class vi {
338
+ class Ai {
339
339
  params;
340
340
  streamCancel;
341
341
  method;
@@ -388,7 +388,7 @@ class vi {
388
388
  for await (const a of s)
389
389
  this.attempt = 0, this.onData(a);
390
390
  } catch (i) {
391
- i instanceof Br && i.code != Lr.Canceled && this.onStreamError(i);
391
+ i instanceof Br && i.code != Pr.Canceled && this.onStreamError(i);
392
392
  }
393
393
  })(), this.updateState(le.Connected);
394
394
  };
@@ -428,7 +428,7 @@ class vi {
428
428
  */
429
429
  onStreamError = (e) => {
430
430
  if (this.addStateLog(`error => ${e ? JSON.stringify(e) : "undefined"}}`), e !== void 0) {
431
- if (e instanceof Br && e.code !== Lr.Canceled) {
431
+ if (e instanceof Br && e.code !== Pr.Canceled) {
432
432
  this.updateState(le.Failed), this.state.setValue("error", e), this.reconnect();
433
433
  return;
434
434
  }
@@ -436,14 +436,14 @@ class vi {
436
436
  }
437
437
  };
438
438
  }
439
- const Si = () => {
439
+ const Ei = () => {
440
440
  const t = localStorage.getItem("sl-device-id");
441
441
  if (t)
442
442
  return t;
443
- const e = ai();
443
+ const e = ci();
444
444
  return localStorage.setItem("sl-device-id", e), e;
445
445
  };
446
- class Ai {
446
+ class Ii {
447
447
  toJsonOptions = {
448
448
  emitDefaultValues: !1,
449
449
  enumAsInteger: !0,
@@ -462,15 +462,15 @@ class Ai {
462
462
  subscriptions;
463
463
  constructor(e) {
464
464
  this.host = e, this.$headers = new tt(Te({
465
- "sl-device-id": Si()
465
+ "sl-device-id": Ei()
466
466
  }), "transport:headers"), this.initInterceptors(), this.clients = /* @__PURE__ */ new Map(), this.callbackClients = /* @__PURE__ */ new Map(), this.subscriptions = /* @__PURE__ */ new Map();
467
467
  const [r, i, s] = Nr();
468
- this.nanoquery = { createFetcherStore: r, createMutatorStore: i, utils: s }, this.transport = Rr({
468
+ this.nanoquery = { createFetcherStore: r, createMutatorStore: i, utils: s }, this.transport = Dr({
469
469
  baseUrl: e,
470
470
  defaultTimeoutMs: 3e4,
471
471
  interceptors: this.interceptors,
472
472
  useBinaryFormat: !0
473
- }), this.streamTransport = Rr({
473
+ }), this.streamTransport = Dr({
474
474
  baseUrl: e,
475
475
  interceptors: this.interceptors,
476
476
  useBinaryFormat: !0
@@ -483,7 +483,7 @@ class Ai {
483
483
  const s = this.subscriptions.get(r);
484
484
  if (s)
485
485
  return s;
486
- const a = new vi(this.$headers, e, r, i);
486
+ const a = new Ai(this.$headers, e, r, i);
487
487
  return this.subscriptions.set(r, a), a;
488
488
  };
489
489
  removeSubscription = (e) => {
@@ -507,14 +507,14 @@ class Ai {
507
507
  const r = e.typeName;
508
508
  if (this.clients.has(r))
509
509
  return this.clients.get(r);
510
- const i = Pr(e, this.transport);
510
+ const i = Rr(e, this.transport);
511
511
  return this.clients.set(r, i), i;
512
512
  };
513
513
  getStreamClient = (e) => {
514
514
  const r = `stream-${e.typeName}`;
515
515
  if (this.clients.has(r))
516
516
  return this.clients.get(r);
517
- const i = Pr(e, this.streamTransport);
517
+ const i = Rr(e, this.streamTransport);
518
518
  return this.clients.set(r, i), i;
519
519
  };
520
520
  // create unary client, used for query request
@@ -546,11 +546,11 @@ class Ai {
546
546
  i.header.set(a, s[a]);
547
547
  return r(i);
548
548
  };
549
- this.interceptors.push(e), this.interceptors.push(bi());
549
+ this.interceptors.push(e), this.interceptors.push(Si());
550
550
  };
551
551
  }
552
- const Ei = (t, e) => {
553
- const { client: r, queryKey: i } = e.createPromiseClient(ui, {
552
+ const Fi = (t, e) => {
553
+ const { client: r, queryKey: i } = e.createPromiseClient(li, {
554
554
  method: "retrieveEventId",
555
555
  params: [t]
556
556
  });
@@ -567,7 +567,7 @@ const Ei = (t, e) => {
567
567
  }
568
568
  }
569
569
  });
570
- }, Ii = (t, e) => {
570
+ }, Oi = (t, e) => {
571
571
  const { client: r, queryKey: i } = e.createPromiseClient(yt, { method: "getStream", params: [t] });
572
572
  return e.nanoquery.createFetcherStore(i, {
573
573
  fetcher: async (s, a, c) => c ? (await r.getStream({
@@ -575,23 +575,23 @@ const Ei = (t, e) => {
575
575
  // we are sure that id is a string
576
576
  })).data?.attributes : void 0
577
577
  });
578
- }, Fi = (t, e) => {
579
- const { queryKey: r, client: i } = e.createPromiseClient(yr, { method: "me", params: [t] });
578
+ }, _i = (t, e) => {
579
+ const { queryKey: r, client: i } = e.createPromiseClient(gr, { method: "me", params: [t] });
580
580
  return e.nanoquery.createFetcherStore(r, {
581
581
  fetcher: () => i.me({})
582
582
  });
583
- }, Oi = (t) => {
584
- const { client: e } = t.createPromiseClient(yr, { method: "bypassAuth" });
583
+ }, Ti = (t) => {
584
+ const { client: e } = t.createPromiseClient(gr, { method: "bypassAuth" });
585
585
  return async ({ userKey: r, schema: i, init: s, inviterKey: a }) => {
586
586
  const c = await e.bypassAuth({ userKey: r, schema: i, init: s });
587
587
  return c.meta && (c.meta.inviterKey = a), c;
588
588
  };
589
- }, Ti = (t, e) => {
589
+ }, Ci = (t, e) => {
590
590
  const { client: r, queryKey: i } = e.createPromiseClient(yt, { method: "get", params: [t] });
591
591
  return e.nanoquery.createFetcherStore(i, {
592
592
  fetcher: async () => (await r.get({})).data?.attributes
593
593
  });
594
- }, _i = (t, e) => {
594
+ }, ki = (t, e) => {
595
595
  const { client: r, queryKey: i } = e.createPromiseClient(yt, { method: "getOrganization", params: [t] });
596
596
  return e.nanoquery.createFetcherStore(i, {
597
597
  fetcher: async () => {
@@ -602,7 +602,7 @@ const Ei = (t, e) => {
602
602
  } : void 0;
603
603
  }
604
604
  });
605
- }, Ci = (t, e) => {
605
+ }, xi = (t, e) => {
606
606
  const { client: r, queryKey: i } = e.createPromiseClient(yt, {
607
607
  method: "getOrganizationAdvertising",
608
608
  params: [t]
@@ -610,10 +610,10 @@ const Ei = (t, e) => {
610
610
  return e.nanoquery.createFetcherStore(i, {
611
611
  fetcher: async () => (await r.getOrganizationAdvertising({})).data?.attributes
612
612
  });
613
- }, xi = (t, e, r) => {
614
- t.transport = new Ai(e.host), t.sdk.host = t.transport.host, t.transport.setSdkKey(e.sdkKey), t.transport.setHeader("sl-sdk-version", e.version || "-"), r();
613
+ }, Li = (t, e, r) => {
614
+ t.transport = new Ii(e.host), t.sdk.host = t.transport.host, t.transport.setSdkKey(e.sdkKey), t.transport.setHeader("sl-sdk-version", e.version || "-"), r();
615
615
  };
616
- class Lt {
616
+ class Rt {
617
617
  delimiter = ":";
618
618
  prefix;
619
619
  storage;
@@ -637,50 +637,50 @@ class Lt {
637
637
  this.storage.removeItem(this.generateKey(e));
638
638
  };
639
639
  }
640
- var Ae;
640
+ var Ee;
641
641
  (function(t) {
642
642
  t.SCHEMA = "schema", t.EXTERNAL_TOKEN = "eToken", t.TOKEN = "token";
643
- })(Ae || (Ae = {}));
644
- class Ye extends Lt {
643
+ })(Ee || (Ee = {}));
644
+ class Ye extends Rt {
645
645
  constructor() {
646
646
  super("user");
647
647
  }
648
648
  // Schema
649
649
  setSchema = (e) => {
650
- this.write(Ae.SCHEMA, e);
650
+ this.write(Ee.SCHEMA, e);
651
651
  };
652
- getSchema = () => this.read(Ae.SCHEMA);
652
+ getSchema = () => this.read(Ee.SCHEMA);
653
653
  // Token
654
654
  setToken = (e) => {
655
- this.write(Ae.TOKEN, e);
655
+ this.write(Ee.TOKEN, e);
656
656
  };
657
- getToken = () => this.read(Ae.TOKEN);
657
+ getToken = () => this.read(Ee.TOKEN);
658
658
  // External Token
659
659
  setExternalToken = (e) => {
660
- this.write(Ae.EXTERNAL_TOKEN, e);
660
+ this.write(Ee.EXTERNAL_TOKEN, e);
661
661
  };
662
- getExternalToken = () => this.read(Ae.EXTERNAL_TOKEN);
662
+ getExternalToken = () => this.read(Ee.EXTERNAL_TOKEN);
663
663
  removeToken = () => {
664
- this.remove(Ae.TOKEN);
664
+ this.remove(Ee.TOKEN);
665
665
  };
666
666
  }
667
- var Ie;
667
+ var Fe;
668
668
  (function(t) {
669
669
  t.DISABLED = "disabled", t.INITIALIZATION = "initialization", t.READY = "ready", t.FAILED = "failed", t.SUSPENDED = "suspended";
670
- })(Ie || (Ie = {}));
671
- const ki = (t) => {
672
- const e = new Ye(), r = new se(re(e.getExternalToken()), "userKey"), i = new se(re(e.getToken()), "userToken"), s = new de(Fi(i.getStore(), t), "user", ({ data: c, error: d, loading: p }, m) => {
670
+ })(Fe || (Fe = {}));
671
+ const Bi = (t) => {
672
+ const e = new Ye(), r = new se(re(e.getExternalToken()), "userKey"), i = new se(re(e.getToken()), "userToken"), s = new de(_i(i.getStore(), t), "user", ({ data: c, error: d, loading: p }, m) => {
673
673
  if (!d)
674
674
  return c?.data?.id ? c.data.id : p === !1 ? void 0 : m;
675
- }), a = new de(Ti(i.getStore(), t), "userSettings");
675
+ }), a = new de(Ci(i.getStore(), t), "userSettings");
676
676
  return {
677
677
  userKey: r,
678
678
  userToken: i,
679
679
  user: s,
680
680
  userSettings: a
681
681
  };
682
- }, Bi = (t) => {
683
- const e = new se(re(void 0), "providerStreamId"), r = new de(Ei(e.getStore(), t), "slStreamId", (s) => s?.data), i = new de(Ii(r.getAtomStore(), t), "streamSettings");
682
+ }, Pi = (t) => {
683
+ const e = new se(re(void 0), "providerStreamId"), r = new de(Fi(e.getStore(), t), "slStreamId", (s) => s?.data), i = new de(Oi(r.getAtomStore(), t), "streamSettings");
684
684
  return r.getAtomStore().listen((s) => {
685
685
  (s === "" || s === void 0) && i.getStore().mutate(void 0);
686
686
  }), {
@@ -688,8 +688,8 @@ const ki = (t) => {
688
688
  slStreamId: r,
689
689
  streamSettings: i
690
690
  };
691
- }, Li = (t) => {
692
- const e = new se(re(void 0), "enabled"), r = new se(re(Ie.DISABLED), "status"), i = new de(_i(e.getStore(), t), "organizationSettings", (d) => d?.data?.id), s = new de(Ci(i.getAtomStore(), t), "organizationAdvertising"), a = ki(t), c = Bi(t);
691
+ }, Ri = (t) => {
692
+ const e = new se(re(void 0), "enabled"), r = new se(re(Fe.DISABLED), "status"), i = new de(ki(e.getStore(), t), "organizationSettings", (d) => d?.data?.id), s = new de(xi(i.getAtomStore(), t), "organizationAdvertising"), a = Bi(t), c = Pi(t);
693
693
  return {
694
694
  enabled: e,
695
695
  status: r,
@@ -704,10 +704,10 @@ const ki = (t) => {
704
704
  organizationAdvertising: s
705
705
  };
706
706
  };
707
- class Pi extends Bt {
707
+ class Di extends Pt {
708
708
  stores;
709
709
  constructor(e) {
710
- const r = Li(e), i = gi(r);
710
+ const r = Ri(e), i = wi(r);
711
711
  super(i, "core"), this.stores = r;
712
712
  }
713
713
  getValue() {
@@ -728,7 +728,7 @@ class Pi extends Bt {
728
728
  };
729
729
  unsubscribe = () => this.getStore().off();
730
730
  }
731
- const Ri = ci({
731
+ const Ni = fi({
732
732
  level: "trace",
733
733
  enabled: !!window.localStorage.getItem("SL_DEBUG"),
734
734
  browser: {
@@ -736,8 +736,8 @@ const Ri = ci({
736
736
  console.log(t);
737
737
  }
738
738
  }
739
- }), Pt = (t, e) => Ri.child({ name: t }, e);
740
- class Ni extends Lt {
739
+ }), gt = (t, e) => Ni.child({ name: t }, e);
740
+ class $i extends Rt {
741
741
  get = this.read;
742
742
  set = this.write;
743
743
  del = this.remove;
@@ -745,51 +745,58 @@ class Ni extends Lt {
745
745
  super("deep-link-context", window.sessionStorage);
746
746
  }
747
747
  }
748
- const Dr = "sldl", Rt = "sldl_uid", wn = "sldl_eid", bn = "sldl_e_eid", Di = /* @__PURE__ */ new Set([Rt, wn, bn]), $r = (t) => {
748
+ const $r = "sldl", Dt = "sldl_uid", vn = "sldl_eid", Sn = "sldl_e_eid", Ui = /* @__PURE__ */ new Set([Dt, vn, Sn]), Ur = (t) => {
749
749
  const e = {}, r = {};
750
750
  for (const [i, s] of t)
751
- Di.has(i) ? e[i] = s : r[i] = s;
751
+ Ui.has(i) ? e[i] = s : r[i] = s;
752
752
  return { result: e, remain: r };
753
- }, $i = ({ hash: t, search: e }) => {
754
- if (t && t.includes(Dr)) {
753
+ }, ji = ({ hash: t, search: e }) => {
754
+ if (t && t.includes($r)) {
755
755
  const r = new URLSearchParams(t.substr(1));
756
- return { hash: $r(r) };
756
+ return { hash: Ur(r) };
757
757
  }
758
- if (e && e.includes(Dr)) {
758
+ if (e && e.includes($r)) {
759
759
  const r = new URLSearchParams(e);
760
- return { search: $r(r) };
760
+ return { search: Ur(r) };
761
761
  }
762
762
  return null;
763
- }, je = Pt("deep_link"), Ui = (t, e) => {
763
+ }, jr = gt("deep_link"), me = {
764
+ debug: (...t) => {
765
+ jr.debug(...t), console.log(...t);
766
+ },
767
+ trace: (...t) => {
768
+ jr.trace(...t), console.log(...t);
769
+ }
770
+ }, Mi = (t, e) => {
764
771
  const { hash: r, search: i } = window.location;
765
- if (je.debug({ hash: r, search: i }, "get deep link data from"), r || i) {
766
- const s = $i({ hash: r, search: i });
767
- if (je.debug(s, "parse deep link result"), s) {
772
+ if (me.debug({ hash: r, search: i }, "get deep link data from"), r || i) {
773
+ const s = ji({ hash: r, search: i });
774
+ if (me.debug(s, "parse deep link result"), s) {
768
775
  const { hash: a, search: c } = s, { result: d, remain: p } = a || c;
769
776
  if (Object.keys(d).length !== 0) {
770
777
  t.setValue("data", d);
771
778
  const m = Object.keys(p).length !== 0;
772
779
  if (a) {
773
780
  let l = "";
774
- m && (l = `#${new URLSearchParams(p).toString()}`, je.debug({ updatedHash: l }, "update hash")), window.history.replaceState(null, "", window.location.pathname + window.location.search + l);
781
+ m && (l = `#${new URLSearchParams(p).toString()}`, me.debug({ updatedHash: l }, "update hash")), window.history.replaceState(null, "", window.location.pathname + window.location.search + l);
775
782
  }
776
783
  if (c) {
777
784
  let l = "";
778
- m && (l = `?${new URLSearchParams(p).toString()}`, je.debug({ updatedSearch: l }, "update search")), window.history.replaceState(null, "", window.location.pathname + l + window.location.hash);
785
+ m && (l = `?${new URLSearchParams(p).toString()}`, me.debug({ updatedSearch: l }, "update search")), window.history.replaceState(null, "", window.location.pathname + l + window.location.hash);
779
786
  }
780
787
  e(d);
781
788
  }
782
789
  }
783
790
  }
784
791
  t.setValue("parsed", !0);
785
- }, ji = (t, e, r) => {
786
- const i = new Ni(), s = i.get("sl-deep-link-store");
792
+ }, Vi = (t, e, r) => {
793
+ const i = new $i(), s = i.get("sl-deep-link-store");
787
794
  let a = {};
788
795
  if (s)
789
796
  try {
790
797
  a = JSON.parse(s);
791
798
  } catch (d) {
792
- je.debug(d);
799
+ me.debug(d);
793
800
  }
794
801
  t.deepLink = {
795
802
  $store: new tt(Te(a), "deep-link-context"),
@@ -799,37 +806,37 @@ const Dr = "sldl", Rt = "sldl_uid", wn = "sldl_eid", bn = "sldl_e_eid", Di = /*
799
806
  },
800
807
  // we are logged in with inviter id
801
808
  deepLinkUsed: (d) => {
802
- je.debug(`logged in with inviterId: ${d}`), t.deepLink.$store.setValue("used", !0);
809
+ me.debug(`logged in with inviterId: ${d}`), t.deepLink.$store.setValue("used", !0);
803
810
  },
804
811
  onDeepLinkHandlers: /* @__PURE__ */ new Set()
805
812
  }, t.sdk.getInviter = () => {
806
813
  const { data: d, used: p } = t.deepLink.getDeepLinkData();
807
- return p ? d?.[Rt] : void 0;
814
+ return p ? d?.[Dt] : void 0;
808
815
  }, t.sdk.inviteDisplayed = () => {
809
816
  t.deepLink.$store.getStore().set({}), t.deepLink.$store.getStore().off(), i.del("sl-deep-link-store");
810
817
  }, t.deepLink.$store.subscribe((d) => i.set("sl-deep-link-store", JSON.stringify(d))), t.sdk.addDeepLinkHandler = (d) => {
811
- t.deepLink.onDeepLinkHandlers.add(d);
812
- }, t.sdk.removeDeepLinkHandler = (d) => {
813
- t.deepLink.onDeepLinkHandlers.delete(d);
818
+ me.trace("adding deep link handler"), t.deepLink.onDeepLinkHandlers.add(d);
819
+ }, e.onDeepLinkHandled && t.sdk.addDeepLinkHandler(e.onDeepLinkHandled), t.sdk.removeDeepLinkHandler = (d) => {
820
+ me.trace("removing deep link handler"), t.deepLink.onDeepLinkHandlers.delete(d);
814
821
  };
815
822
  const c = (d) => {
816
- t.deepLink.$store.setValue("handled", !0);
823
+ t.deepLink.$store.setValue("handled", !0), me.trace({ size: t.deepLink.onDeepLinkHandlers.size }, "deep link handled, call callbacks");
817
824
  for (const p of t.deepLink.onDeepLinkHandlers)
818
825
  try {
819
- je.debug("called handler"), p(d);
826
+ me.trace("called handler"), p(d);
820
827
  } catch (m) {
821
828
  console.error(m);
822
829
  }
823
830
  };
824
- Ui(t.deepLink.$store, c), r();
825
- }, Ur = Pt("bypass");
826
- class Mi extends yi {
831
+ Mi(t.deepLink.$store, c), r();
832
+ }, qi = gt("bypass");
833
+ class Qi extends mi {
827
834
  $coreStore;
828
835
  deepLink;
829
836
  transport;
830
837
  bypassLogin;
831
838
  constructor(e, r, i) {
832
- super(), this.$coreStore = e, this.deepLink = i, this.transport = r, this.bypassLogin = Oi(this.transport), this.connect();
839
+ super(), this.$coreStore = e, this.deepLink = i, this.transport = r, this.bypassLogin = Ti(this.transport), this.connect();
833
840
  }
834
841
  me = async () => (this.$coreStore.getValues().user.invalidate(), (await this.$coreStore.getValues().user.getValue())?.data);
835
842
  /**
@@ -840,8 +847,8 @@ class Mi extends yi {
840
847
  */
841
848
  login = async (e, r) => {
842
849
  this.$coreStore.getValues().userKey.setValue(r);
843
- const { used: i, data: s } = this.deepLink.getDeepLinkData(), a = i ? "" : s?.[Rt];
844
- Ur.debug("inviterKey", a);
850
+ const { used: i, data: s } = this.deepLink.getDeepLinkData(), a = i ? "" : s?.[Dt];
851
+ qi.debug({ inviterKey: a }, "login with inviterKey");
845
852
  const c = await this.bypassLogin({
846
853
  schema: e,
847
854
  userKey: r,
@@ -850,7 +857,7 @@ class Mi extends yi {
850
857
  }), d = c.meta?.jwt, p = c.data?.id;
851
858
  if (!d || !p)
852
859
  throw new Error("internal: token missing");
853
- return Ur.debug("user", c), c.meta?.inviterKey && this.deepLink.deepLinkUsed(c.meta.inviterKey), this.$coreStore.getValues().user.getStore().mutate(c), this.saveUser(d, p), d;
860
+ return c.meta?.inviterKey && this.deepLink.deepLinkUsed(c.meta.inviterKey), this.$coreStore.getValues().user.getStore().mutate(c), this.saveUser(d, p), d;
854
861
  };
855
862
  isAuthenticated = () => this.me();
856
863
  /**
@@ -910,9 +917,9 @@ class Mi extends yi {
910
917
  });
911
918
  };
912
919
  }
913
- const ft = new Ye(), Vi = (t, e, r) => {
914
- t.auth = new Mi(t.store, t.transport, t.deepLink), t.stores.status.listen((i) => {
915
- i === Ie.READY && t.auth.reLogin();
920
+ const ft = new Ye(), Gi = (t, e, r) => {
921
+ t.auth = new Qi(t.store, t.transport, t.deepLink), t.stores.status.listen((i) => {
922
+ i === Fe.READY && t.auth.reLogin();
916
923
  }), t.sdk.userId = t.stores.user.getAtomStore, t.sdk.authorizationBypass = async (i, s) => {
917
924
  if (!(ft.getSchema() === i && ft.getExternalToken() === s && t.transport.getHeader("authorization")))
918
925
  try {
@@ -923,43 +930,53 @@ const ft = new Ye(), Vi = (t, e, r) => {
923
930
  }, t.sdk.logout = () => {
924
931
  t.auth.logout(), ft.clear();
925
932
  }, t.sdk.getUserStore = () => t.stores.user.getStore(), t.sdk.isUserAuthorized = () => t.auth.isAuthenticated(), r();
926
- }, qi = (t, e, r) => {
927
- t.store = new Pi(t.transport), t.stores = t.store.getValues(), t.sdk.enabled = t.stores.enabled.getStore(), t.sdk.status = t.stores.status.getStore(), t.sdk.sdkStore = Object.fromEntries(Object.entries(t.stores).map(([i, s]) => [i, s.getStore()])), t.sdk.organizationStore = () => t.stores.organizationSettings.getStore(), t.sdk.streamStore = () => t.stores.streamSettings.getStore(), t.storeUnsubscribe = () => {
933
+ }, zi = (t, e, r) => {
934
+ t.store = new Di(t.transport), t.stores = t.store.getValues(), t.sdk.enabled = t.stores.enabled.getStore(), t.sdk.status = t.stores.status.getStore(), t.sdk.sdkStore = Object.fromEntries(Object.entries(t.stores).map(([i, s]) => [i, s.getStore()])), t.sdk.organizationStore = () => t.stores.organizationSettings.getStore(), t.sdk.streamStore = () => t.stores.streamSettings.getStore(), t.storeUnsubscribe = () => {
928
935
  t.store.unsubscribe();
929
936
  }, r();
930
- }, Qi = (t, e, r) => {
937
+ }, Mr = gt("video_player"), bt = {
938
+ debug: (...t) => {
939
+ Mr.debug(...t), console.log(...t);
940
+ },
941
+ trace: (...t) => {
942
+ Mr.trace(...t), console.log(...t);
943
+ }
944
+ }, Ki = (t, e, r) => {
931
945
  t.videoPlayer = {
932
946
  controllers: /* @__PURE__ */ new Set()
933
947
  }, t.sdk.addVideoPlayerController = (i) => {
934
- t.videoPlayer.controllers.add(i);
935
- }, t.sdk.removeVideoPlayerController = (i) => {
936
- t.videoPlayer.controllers.delete(i);
948
+ bt.trace("adding video player controller"), t.videoPlayer.controllers.add(i);
949
+ }, e.videoPlayerController && t.sdk.addVideoPlayerController(e.videoPlayerController), t.sdk.removeVideoPlayerController = (i) => {
950
+ bt.trace("removing video player controller"), t.videoPlayer.controllers.delete(i);
937
951
  }, t.sdk.controlVideoPlayer = (i) => {
938
- for (const s of t.videoPlayer.controllers)
952
+ bt.trace("controlling video player");
953
+ for (const s of t.videoPlayer.controllers) {
954
+ bt.trace("calling video player controller");
939
955
  try {
940
956
  s(i);
941
957
  } catch (a) {
942
958
  console.error(a);
943
959
  }
960
+ }
944
961
  }, r();
945
- }, Gi = (t, e, r) => {
962
+ }, Wi = (t, e, r) => {
946
963
  t.sdk = /* @__PURE__ */ Object.create(null), t.sdk.initializeApp = async (i) => {
947
964
  if (t.contextConfig = i, t.stores.enabled.get() === "on")
948
965
  return { enabled: !0 };
949
- t.storeSubscribe(), t.stores.enabled.setValue("on"), t.stores.status.setValue(Ie.INITIALIZATION);
966
+ t.storeSubscribe(), t.stores.enabled.setValue("on"), t.stores.status.setValue(Fe.INITIALIZATION);
950
967
  try {
951
968
  const s = await t.stores.organizationSettings.getValue();
952
- return s ? (t.stores.status.setValue(Ie.READY), { enabled: !!s }) : (t.stores.status.setValue(Ie.FAILED), { err: "failed" });
969
+ return s ? (t.stores.status.setValue(Fe.READY), { enabled: !!s }) : (t.stores.status.setValue(Fe.FAILED), { err: "failed" });
953
970
  } catch (s) {
954
- return t.stores.enabled.setValue(), t.stores.status.setValue(Ie.FAILED), { err: `${s}` };
971
+ return t.stores.enabled.setValue(), t.stores.status.setValue(Fe.FAILED), { err: `${s}` };
955
972
  }
956
973
  }, t.sdk.disableApp = () => {
957
- t.stores.enabled.get() === "on" && (t.stores.enabled.setValue(), t.stores.status.setValue(Ie.DISABLED), t.stores.slStreamId.setValue(), t.stores.providerStreamId.setValue(), t.sdk.closeFeature(!0), t.storeUnsubscribe(), t.transport.disconnect());
974
+ t.stores.enabled.get() === "on" && (t.stores.enabled.setValue(), t.stores.status.setValue(Fe.DISABLED), t.stores.slStreamId.setValue(), t.stores.providerStreamId.setValue(), t.sdk.closeFeature(!0), t.storeUnsubscribe(), t.transport.disconnect());
958
975
  }, t.sdk.createEventSession = (i) => {
959
976
  t.stores.providerStreamId.setValue(i);
960
977
  }, r();
961
- }, zi = (t, e, r) => {
962
- const { client: i, queryKey: s } = r.createPromiseClient(dn, {
978
+ }, Hi = (t, e, r) => {
979
+ const { client: i, queryKey: s } = r.createPromiseClient(pn, {
963
980
  method: "summary",
964
981
  params: [t, e]
965
982
  });
@@ -969,26 +986,26 @@ const ft = new Ye(), Vi = (t, e, r) => {
969
986
  userId: p
970
987
  })).data?.attributes
971
988
  });
972
- }, Ki = (t) => {
973
- const { client: e } = t.createPromiseClient(dn, { method: "list" });
989
+ }, Ji = (t) => {
990
+ const { client: e } = t.createPromiseClient(pn, { method: "list" });
974
991
  return (r) => e.list(r);
975
- }, Wi = (t, e) => {
976
- const { client: r, queryKey: i } = e.createPromiseClient(yr, {
992
+ }, Yi = (t, e) => {
993
+ const { client: r, queryKey: i } = e.createPromiseClient(gr, {
977
994
  method: "getFriends",
978
995
  params: [t]
979
996
  });
980
997
  return e.nanoquery.createFetcherStore(i, {
981
998
  fetcher: async (s, a, c) => c ? (await r.getFriends({})).data : []
982
999
  });
983
- }, Hi = (t, e) => {
984
- const { client: r, queryKey: i } = e.createPromiseClient(_e, { method: "get", params: [t] });
1000
+ }, Xi = (t, e) => {
1001
+ const { client: r, queryKey: i } = e.createPromiseClient(Ce, { method: "get", params: [t] });
985
1002
  return e.nanoquery.createFetcherStore(i, {
986
1003
  fetcher: async (s, a, c) => (await r.get({
987
1004
  eventId: c
988
1005
  })).data?.attributes
989
1006
  });
990
- }, Ji = (t, e) => {
991
- const { client: r, queryKey: i } = e.createPromiseClient(_e, { method: "syncQuestion", params: [t] });
1007
+ }, Zi = (t, e) => {
1008
+ const { client: r, queryKey: i } = e.createPromiseClient(Ce, { method: "syncQuestion", params: [t] });
992
1009
  return e.nanoquery.createFetcherStore(i, {
993
1010
  fetcher: async (s, a, c) => c ? (await r.syncQuestion({
994
1011
  filter: {
@@ -996,21 +1013,21 @@ const ft = new Ye(), Vi = (t, e, r) => {
996
1013
  }
997
1014
  })).data?.attributes : void 0
998
1015
  });
999
- }, Yi = (t, e) => {
1000
- const { client: r } = e.createStreamClient(_e), i = kt({ eventId: t.get() || "", feedId: "" });
1016
+ }, eo = (t, e) => {
1017
+ const { client: r } = e.createStreamClient(Ce), i = Bt({ eventId: t.get() || "", feedId: "" });
1001
1018
  return t.subscribe((a = "") => {
1002
1019
  i.set({ eventId: a, feedId: "" });
1003
1020
  }), e.addSubscription(r.subscription, i, { name: "feedSubscription" });
1004
- }, Xi = (t, e) => {
1005
- const { client: r } = e.createStreamClient(_e);
1021
+ }, to = (t, e) => {
1022
+ const { client: r } = e.createStreamClient(Ce);
1006
1023
  return e.addSubscription(r.questionSubscription, { questionId: t }, { name: "questionSubscription" });
1007
- }, vn = async (t, e) => {
1008
- const { client: r } = e.createPromiseClient(_e, { method: "questionByUser", params: [t] });
1024
+ }, An = async (t, e) => {
1025
+ const { client: r } = e.createPromiseClient(Ce, { method: "questionByUser", params: [t] });
1009
1026
  return (await r.questionByUser({
1010
1027
  questionId: t
1011
1028
  })).data?.attributes?.question;
1012
- }, Zi = (t, e, r) => {
1013
- const { client: i, queryKey: s } = r.createPromiseClient(_e, {
1029
+ }, ro = (t, e, r) => {
1030
+ const { client: i, queryKey: s } = r.createPromiseClient(Ce, {
1014
1031
  method: "list",
1015
1032
  params: [t, e]
1016
1033
  });
@@ -1024,16 +1041,16 @@ const ft = new Ye(), Vi = (t, e, r) => {
1024
1041
  })).data : []
1025
1042
  });
1026
1043
  };
1027
- var Sn = {}, Nt = {};
1028
- Nt.byteLength = ro;
1029
- Nt.toByteArray = io;
1030
- Nt.fromByteArray = ao;
1031
- var me = [], ie = [], eo = typeof Uint8Array < "u" ? Uint8Array : Array, Vt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1032
- for (var Ke = 0, to = Vt.length; Ke < to; ++Ke)
1033
- me[Ke] = Vt[Ke], ie[Vt.charCodeAt(Ke)] = Ke;
1044
+ var En = {}, Nt = {};
1045
+ Nt.byteLength = oo;
1046
+ Nt.toByteArray = ao;
1047
+ Nt.fromByteArray = lo;
1048
+ var we = [], ie = [], no = typeof Uint8Array < "u" ? Uint8Array : Array, qt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1049
+ for (var Ke = 0, io = qt.length; Ke < io; ++Ke)
1050
+ we[Ke] = qt[Ke], ie[qt.charCodeAt(Ke)] = Ke;
1034
1051
  ie[45] = 62;
1035
1052
  ie[95] = 63;
1036
- function An(t) {
1053
+ function In(t) {
1037
1054
  var e = t.length;
1038
1055
  if (e % 4 > 0)
1039
1056
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -1042,39 +1059,39 @@ function An(t) {
1042
1059
  var i = r === e ? 0 : 4 - r % 4;
1043
1060
  return [r, i];
1044
1061
  }
1045
- function ro(t) {
1046
- var e = An(t), r = e[0], i = e[1];
1062
+ function oo(t) {
1063
+ var e = In(t), r = e[0], i = e[1];
1047
1064
  return (r + i) * 3 / 4 - i;
1048
1065
  }
1049
- function no(t, e, r) {
1066
+ function so(t, e, r) {
1050
1067
  return (e + r) * 3 / 4 - r;
1051
1068
  }
1052
- function io(t) {
1053
- var e, r = An(t), i = r[0], s = r[1], a = new eo(no(t, i, s)), c = 0, d = s > 0 ? i - 4 : i, p;
1069
+ function ao(t) {
1070
+ var e, r = In(t), i = r[0], s = r[1], a = new no(so(t, i, s)), c = 0, d = s > 0 ? i - 4 : i, p;
1054
1071
  for (p = 0; p < d; p += 4)
1055
1072
  e = ie[t.charCodeAt(p)] << 18 | ie[t.charCodeAt(p + 1)] << 12 | ie[t.charCodeAt(p + 2)] << 6 | ie[t.charCodeAt(p + 3)], a[c++] = e >> 16 & 255, a[c++] = e >> 8 & 255, a[c++] = e & 255;
1056
1073
  return s === 2 && (e = ie[t.charCodeAt(p)] << 2 | ie[t.charCodeAt(p + 1)] >> 4, a[c++] = e & 255), s === 1 && (e = ie[t.charCodeAt(p)] << 10 | ie[t.charCodeAt(p + 1)] << 4 | ie[t.charCodeAt(p + 2)] >> 2, a[c++] = e >> 8 & 255, a[c++] = e & 255), a;
1057
1074
  }
1058
- function oo(t) {
1059
- return me[t >> 18 & 63] + me[t >> 12 & 63] + me[t >> 6 & 63] + me[t & 63];
1075
+ function uo(t) {
1076
+ return we[t >> 18 & 63] + we[t >> 12 & 63] + we[t >> 6 & 63] + we[t & 63];
1060
1077
  }
1061
- function so(t, e, r) {
1078
+ function co(t, e, r) {
1062
1079
  for (var i, s = [], a = e; a < r; a += 3)
1063
- i = (t[a] << 16 & 16711680) + (t[a + 1] << 8 & 65280) + (t[a + 2] & 255), s.push(oo(i));
1080
+ i = (t[a] << 16 & 16711680) + (t[a + 1] << 8 & 65280) + (t[a + 2] & 255), s.push(uo(i));
1064
1081
  return s.join("");
1065
1082
  }
1066
- function ao(t) {
1083
+ function lo(t) {
1067
1084
  for (var e, r = t.length, i = r % 3, s = [], a = 16383, c = 0, d = r - i; c < d; c += a)
1068
- s.push(so(t, c, c + a > d ? d : c + a));
1085
+ s.push(co(t, c, c + a > d ? d : c + a));
1069
1086
  return i === 1 ? (e = t[r - 1], s.push(
1070
- me[e >> 2] + me[e << 4 & 63] + "=="
1087
+ we[e >> 2] + we[e << 4 & 63] + "=="
1071
1088
  )) : i === 2 && (e = (t[r - 2] << 8) + t[r - 1], s.push(
1072
- me[e >> 10] + me[e >> 4 & 63] + me[e << 2 & 63] + "="
1089
+ we[e >> 10] + we[e >> 4 & 63] + we[e << 2 & 63] + "="
1073
1090
  )), s.join("");
1074
1091
  }
1075
- var gr = {};
1092
+ var mr = {};
1076
1093
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
1077
- gr.read = function(t, e, r, i, s) {
1094
+ mr.read = function(t, e, r, i, s) {
1078
1095
  var a, c, d = s * 8 - i - 1, p = (1 << d) - 1, m = p >> 1, l = -7, w = r ? s - 1 : 0, E = r ? -1 : 1, F = t[e + w];
1079
1096
  for (w += E, a = F & (1 << -l) - 1, F >>= -l, l += d; l > 0; a = a * 256 + t[e + w], w += E, l -= 8)
1080
1097
  ;
@@ -1089,13 +1106,13 @@ gr.read = function(t, e, r, i, s) {
1089
1106
  }
1090
1107
  return (F ? -1 : 1) * c * Math.pow(2, a - i);
1091
1108
  };
1092
- gr.write = function(t, e, r, i, s, a) {
1093
- var c, d, p, m = a * 8 - s - 1, l = (1 << m) - 1, w = l >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, F = i ? 0 : a - 1, _ = i ? 1 : -1, x = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
1094
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (d = isNaN(e) ? 1 : 0, c = l) : (c = Math.floor(Math.log(e) / Math.LN2), e * (p = Math.pow(2, -c)) < 1 && (c--, p *= 2), c + w >= 1 ? e += E / p : e += E * Math.pow(2, 1 - w), e * p >= 2 && (c++, p /= 2), c + w >= l ? (d = 0, c = l) : c + w >= 1 ? (d = (e * p - 1) * Math.pow(2, s), c = c + w) : (d = e * Math.pow(2, w - 1) * Math.pow(2, s), c = 0)); s >= 8; t[r + F] = d & 255, F += _, d /= 256, s -= 8)
1109
+ mr.write = function(t, e, r, i, s, a) {
1110
+ var c, d, p, m = a * 8 - s - 1, l = (1 << m) - 1, w = l >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, F = i ? 0 : a - 1, T = i ? 1 : -1, k = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
1111
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (d = isNaN(e) ? 1 : 0, c = l) : (c = Math.floor(Math.log(e) / Math.LN2), e * (p = Math.pow(2, -c)) < 1 && (c--, p *= 2), c + w >= 1 ? e += E / p : e += E * Math.pow(2, 1 - w), e * p >= 2 && (c++, p /= 2), c + w >= l ? (d = 0, c = l) : c + w >= 1 ? (d = (e * p - 1) * Math.pow(2, s), c = c + w) : (d = e * Math.pow(2, w - 1) * Math.pow(2, s), c = 0)); s >= 8; t[r + F] = d & 255, F += T, d /= 256, s -= 8)
1095
1112
  ;
1096
- for (c = c << s | d, m += s; m > 0; t[r + F] = c & 255, F += _, c /= 256, m -= 8)
1113
+ for (c = c << s | d, m += s; m > 0; t[r + F] = c & 255, F += T, c /= 256, m -= 8)
1097
1114
  ;
1098
- t[r + F - _] |= x * 128;
1115
+ t[r + F - T] |= k * 128;
1099
1116
  };
1100
1117
  /*!
1101
1118
  * The buffer module from node.js, for the browser.
@@ -1104,7 +1121,7 @@ gr.write = function(t, e, r, i, s, a) {
1104
1121
  * @license MIT
1105
1122
  */
1106
1123
  (function(t) {
1107
- const e = Nt, r = gr, i = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
1124
+ const e = Nt, r = mr, i = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
1108
1125
  t.Buffer = l, t.SlowBuffer = C, t.INSPECT_MAX_BYTES = 50;
1109
1126
  const s = 2147483647;
1110
1127
  t.kMaxLength = s;
@@ -1147,14 +1164,14 @@ gr.write = function(t, e, r, i, s, a) {
1147
1164
  throw new TypeError(
1148
1165
  'The "string" argument must be of type string. Received type number'
1149
1166
  );
1150
- return _(u);
1167
+ return T(u);
1151
1168
  }
1152
1169
  return w(u, n, o);
1153
1170
  }
1154
1171
  l.poolSize = 8192;
1155
1172
  function w(u, n, o) {
1156
1173
  if (typeof u == "string")
1157
- return x(u, n);
1174
+ return k(u, n);
1158
1175
  if (c.isView(u))
1159
1176
  return I(u);
1160
1177
  if (u == null)
@@ -1162,7 +1179,7 @@ gr.write = function(t, e, r, i, s, a) {
1162
1179
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof u
1163
1180
  );
1164
1181
  if (pe(u, c) || u && pe(u.buffer, c) || typeof d < "u" && (pe(u, d) || u && pe(u.buffer, d)))
1165
- return T(u, n, o);
1182
+ return _(u, n, o);
1166
1183
  if (typeof u == "number")
1167
1184
  throw new TypeError(
1168
1185
  'The "value" argument must not be of type number. Received type number'
@@ -1194,24 +1211,24 @@ gr.write = function(t, e, r, i, s, a) {
1194
1211
  l.alloc = function(u, n, o) {
1195
1212
  return F(u, n, o);
1196
1213
  };
1197
- function _(u) {
1198
- return E(u), m(u < 0 ? 0 : L(u) | 0);
1214
+ function T(u) {
1215
+ return E(u), m(u < 0 ? 0 : B(u) | 0);
1199
1216
  }
1200
1217
  l.allocUnsafe = function(u) {
1201
- return _(u);
1218
+ return T(u);
1202
1219
  }, l.allocUnsafeSlow = function(u) {
1203
- return _(u);
1220
+ return T(u);
1204
1221
  };
1205
- function x(u, n) {
1222
+ function k(u, n) {
1206
1223
  if ((typeof n != "string" || n === "") && (n = "utf8"), !l.isEncoding(n))
1207
1224
  throw new TypeError("Unknown encoding: " + n);
1208
- const o = k(u, n) | 0;
1225
+ const o = x(u, n) | 0;
1209
1226
  let f = m(o);
1210
1227
  const h = f.write(u, n);
1211
1228
  return h !== o && (f = f.slice(0, h)), f;
1212
1229
  }
1213
- function N(u) {
1214
- const n = u.length < 0 ? 0 : L(u.length) | 0, o = m(n);
1230
+ function D(u) {
1231
+ const n = u.length < 0 ? 0 : B(u.length) | 0, o = m(n);
1215
1232
  for (let f = 0; f < n; f += 1)
1216
1233
  o[f] = u[f] & 255;
1217
1234
  return o;
@@ -1219,11 +1236,11 @@ gr.write = function(t, e, r, i, s, a) {
1219
1236
  function I(u) {
1220
1237
  if (pe(u, a)) {
1221
1238
  const n = new a(u);
1222
- return T(n.buffer, n.byteOffset, n.byteLength);
1239
+ return _(n.buffer, n.byteOffset, n.byteLength);
1223
1240
  }
1224
- return N(u);
1241
+ return D(u);
1225
1242
  }
1226
- function T(u, n, o) {
1243
+ function _(u, n, o) {
1227
1244
  if (n < 0 || u.byteLength < n)
1228
1245
  throw new RangeError('"offset" is outside of buffer bounds');
1229
1246
  if (u.byteLength < n + (o || 0))
@@ -1233,15 +1250,15 @@ gr.write = function(t, e, r, i, s, a) {
1233
1250
  }
1234
1251
  function j(u) {
1235
1252
  if (l.isBuffer(u)) {
1236
- const n = L(u.length) | 0, o = m(n);
1253
+ const n = B(u.length) | 0, o = m(n);
1237
1254
  return o.length === 0 || u.copy(o, 0, 0, n), o;
1238
1255
  }
1239
1256
  if (u.length !== void 0)
1240
- return typeof u.length != "number" || Mt(u.length) ? m(0) : N(u);
1257
+ return typeof u.length != "number" || Vt(u.length) ? m(0) : D(u);
1241
1258
  if (u.type === "Buffer" && Array.isArray(u.data))
1242
- return N(u.data);
1259
+ return D(u.data);
1243
1260
  }
1244
- function L(u) {
1261
+ function B(u) {
1245
1262
  if (u >= s)
1246
1263
  throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + s.toString(16) + " bytes");
1247
1264
  return u | 0;
@@ -1309,7 +1326,7 @@ gr.write = function(t, e, r, i, s, a) {
1309
1326
  }
1310
1327
  return h;
1311
1328
  };
1312
- function k(u, n) {
1329
+ function x(u, n) {
1313
1330
  if (l.isBuffer(u))
1314
1331
  return u.length;
1315
1332
  if (c.isView(u) || pe(u, c))
@@ -1339,15 +1356,15 @@ gr.write = function(t, e, r, i, s, a) {
1339
1356
  case "hex":
1340
1357
  return o >>> 1;
1341
1358
  case "base64":
1342
- return kr(u).length;
1359
+ return Lr(u).length;
1343
1360
  default:
1344
1361
  if (h)
1345
1362
  return f ? -1 : lt(u).length;
1346
1363
  n = ("" + n).toLowerCase(), h = !0;
1347
1364
  }
1348
1365
  }
1349
- l.byteLength = k;
1350
- function B(u, n, o) {
1366
+ l.byteLength = x;
1367
+ function L(u, n, o) {
1351
1368
  let f = !1;
1352
1369
  if ((n === void 0 || n < 0) && (n = 0), n > this.length || ((o === void 0 || o > this.length) && (o = this.length), o <= 0) || (o >>>= 0, n >>>= 0, o <= n))
1353
1370
  return "";
@@ -1359,7 +1376,7 @@ gr.write = function(t, e, r, i, s, a) {
1359
1376
  case "utf-8":
1360
1377
  return Ge(this, n, o);
1361
1378
  case "ascii":
1362
- return ke(this, n, o);
1379
+ return Le(this, n, o);
1363
1380
  case "latin1":
1364
1381
  case "binary":
1365
1382
  return ze(this, n, o);
@@ -1404,7 +1421,7 @@ gr.write = function(t, e, r, i, s, a) {
1404
1421
  return this;
1405
1422
  }, l.prototype.toString = function() {
1406
1423
  const n = this.length;
1407
- return n === 0 ? "" : arguments.length === 0 ? Ge(this, 0, n) : B.apply(this, arguments);
1424
+ return n === 0 ? "" : arguments.length === 0 ? Ge(this, 0, n) : L.apply(this, arguments);
1408
1425
  }, l.prototype.toLocaleString = l.prototype.toString, l.prototype.equals = function(n) {
1409
1426
  if (!l.isBuffer(n))
1410
1427
  throw new TypeError("Argument must be a Buffer");
@@ -1428,19 +1445,19 @@ gr.write = function(t, e, r, i, s, a) {
1428
1445
  return 1;
1429
1446
  if (o >>>= 0, f >>>= 0, h >>>= 0, y >>>= 0, this === n)
1430
1447
  return 0;
1431
- let b = y - h, D = f - o;
1432
- const W = Math.min(b, D), K = this.slice(h, y), H = n.slice(o, f);
1448
+ let b = y - h, N = f - o;
1449
+ const W = Math.min(b, N), K = this.slice(h, y), H = n.slice(o, f);
1433
1450
  for (let z = 0; z < W; ++z)
1434
1451
  if (K[z] !== H[z]) {
1435
- b = K[z], D = H[z];
1452
+ b = K[z], N = H[z];
1436
1453
  break;
1437
1454
  }
1438
- return b < D ? -1 : D < b ? 1 : 0;
1455
+ return b < N ? -1 : N < b ? 1 : 0;
1439
1456
  };
1440
1457
  function ne(u, n, o, f, h) {
1441
1458
  if (u.length === 0)
1442
1459
  return -1;
1443
- if (typeof o == "string" ? (f = o, o = 0) : o > 2147483647 ? o = 2147483647 : o < -2147483648 && (o = -2147483648), o = +o, Mt(o) && (o = h ? 0 : u.length - 1), o < 0 && (o = u.length + o), o >= u.length) {
1460
+ if (typeof o == "string" ? (f = o, o = 0) : o > 2147483647 ? o = 2147483647 : o < -2147483648 && (o = -2147483648), o = +o, Vt(o) && (o = h ? 0 : u.length - 1), o < 0 && (o = u.length + o), o >= u.length) {
1444
1461
  if (h)
1445
1462
  return -1;
1446
1463
  o = u.length - 1;
@@ -1450,17 +1467,17 @@ gr.write = function(t, e, r, i, s, a) {
1450
1467
  else
1451
1468
  return -1;
1452
1469
  if (typeof n == "string" && (n = l.from(n, f)), l.isBuffer(n))
1453
- return n.length === 0 ? -1 : we(u, n, o, f, h);
1470
+ return n.length === 0 ? -1 : be(u, n, o, f, h);
1454
1471
  if (typeof n == "number")
1455
- return n = n & 255, typeof a.prototype.indexOf == "function" ? h ? a.prototype.indexOf.call(u, n, o) : a.prototype.lastIndexOf.call(u, n, o) : we(u, [n], o, f, h);
1472
+ return n = n & 255, typeof a.prototype.indexOf == "function" ? h ? a.prototype.indexOf.call(u, n, o) : a.prototype.lastIndexOf.call(u, n, o) : be(u, [n], o, f, h);
1456
1473
  throw new TypeError("val must be string, number or Buffer");
1457
1474
  }
1458
- function we(u, n, o, f, h) {
1459
- let y = 1, b = u.length, D = n.length;
1475
+ function be(u, n, o, f, h) {
1476
+ let y = 1, b = u.length, N = n.length;
1460
1477
  if (f !== void 0 && (f = String(f).toLowerCase(), f === "ucs2" || f === "ucs-2" || f === "utf16le" || f === "utf-16le")) {
1461
1478
  if (u.length < 2 || n.length < 2)
1462
1479
  return -1;
1463
- y = 2, b /= 2, D /= 2, o /= 2;
1480
+ y = 2, b /= 2, N /= 2, o /= 2;
1464
1481
  }
1465
1482
  function W(H, z) {
1466
1483
  return y === 1 ? H[z] : H.readUInt16BE(z * y);
@@ -1470,14 +1487,14 @@ gr.write = function(t, e, r, i, s, a) {
1470
1487
  let H = -1;
1471
1488
  for (K = o; K < b; K++)
1472
1489
  if (W(u, K) === W(n, H === -1 ? 0 : K - H)) {
1473
- if (H === -1 && (H = K), K - H + 1 === D)
1490
+ if (H === -1 && (H = K), K - H + 1 === N)
1474
1491
  return H * y;
1475
1492
  } else
1476
1493
  H !== -1 && (K -= K - H), H = -1;
1477
1494
  } else
1478
- for (o + D > b && (o = b - D), K = o; K >= 0; K--) {
1495
+ for (o + N > b && (o = b - N), K = o; K >= 0; K--) {
1479
1496
  let H = !0;
1480
- for (let z = 0; z < D; z++)
1497
+ for (let z = 0; z < N; z++)
1481
1498
  if (W(u, K + z) !== W(n, z)) {
1482
1499
  H = !1;
1483
1500
  break;
@@ -1494,7 +1511,7 @@ gr.write = function(t, e, r, i, s, a) {
1494
1511
  }, l.prototype.lastIndexOf = function(n, o, f) {
1495
1512
  return ne(this, n, o, f, !1);
1496
1513
  };
1497
- function be(u, n, o, f) {
1514
+ function ve(u, n, o, f) {
1498
1515
  o = Number(o) || 0;
1499
1516
  const h = u.length - o;
1500
1517
  f ? (f = Number(f), f > h && (f = h)) : f = h;
@@ -1502,24 +1519,24 @@ gr.write = function(t, e, r, i, s, a) {
1502
1519
  f > y / 2 && (f = y / 2);
1503
1520
  let b;
1504
1521
  for (b = 0; b < f; ++b) {
1505
- const D = parseInt(n.substr(b * 2, 2), 16);
1506
- if (Mt(D))
1522
+ const N = parseInt(n.substr(b * 2, 2), 16);
1523
+ if (Vt(N))
1507
1524
  return b;
1508
- u[o + b] = D;
1525
+ u[o + b] = N;
1509
1526
  }
1510
1527
  return b;
1511
1528
  }
1512
1529
  function ae(u, n, o, f) {
1513
- return mt(lt(n, u.length - o), u, o, f);
1530
+ return wt(lt(n, u.length - o), u, o, f);
1514
1531
  }
1515
1532
  function ct(u, n, o, f) {
1516
- return mt(xr(n), u, o, f);
1533
+ return wt(xr(n), u, o, f);
1517
1534
  }
1518
1535
  function he(u, n, o, f) {
1519
- return mt(kr(n), u, o, f);
1536
+ return wt(Lr(n), u, o, f);
1520
1537
  }
1521
- function Pe(u, n, o, f) {
1522
- return mt(ri(n, u.length - o), u, o, f);
1538
+ function Re(u, n, o, f) {
1539
+ return wt(ii(n, u.length - o), u, o, f);
1523
1540
  }
1524
1541
  l.prototype.write = function(n, o, f, h) {
1525
1542
  if (o === void 0)
@@ -1540,7 +1557,7 @@ gr.write = function(t, e, r, i, s, a) {
1540
1557
  for (; ; )
1541
1558
  switch (h) {
1542
1559
  case "hex":
1543
- return be(this, n, o, f);
1560
+ return ve(this, n, o, f);
1544
1561
  case "utf8":
1545
1562
  case "utf-8":
1546
1563
  return ae(this, n, o, f);
@@ -1554,7 +1571,7 @@ gr.write = function(t, e, r, i, s, a) {
1554
1571
  case "ucs-2":
1555
1572
  case "utf16le":
1556
1573
  case "utf-16le":
1557
- return Pe(this, n, o, f);
1574
+ return Re(this, n, o, f);
1558
1575
  default:
1559
1576
  if (b)
1560
1577
  throw new TypeError("Unknown encoding: " + h);
@@ -1575,10 +1592,10 @@ gr.write = function(t, e, r, i, s, a) {
1575
1592
  let h = n;
1576
1593
  for (; h < o; ) {
1577
1594
  const y = u[h];
1578
- let b = null, D = y > 239 ? 4 : y > 223 ? 3 : y > 191 ? 2 : 1;
1579
- if (h + D <= o) {
1595
+ let b = null, N = y > 239 ? 4 : y > 223 ? 3 : y > 191 ? 2 : 1;
1596
+ if (h + N <= o) {
1580
1597
  let W, K, H, z;
1581
- switch (D) {
1598
+ switch (N) {
1582
1599
  case 1:
1583
1600
  y < 128 && (b = y);
1584
1601
  break;
@@ -1592,24 +1609,24 @@ gr.write = function(t, e, r, i, s, a) {
1592
1609
  W = u[h + 1], K = u[h + 2], H = u[h + 3], (W & 192) === 128 && (K & 192) === 128 && (H & 192) === 128 && (z = (y & 15) << 18 | (W & 63) << 12 | (K & 63) << 6 | H & 63, z > 65535 && z < 1114112 && (b = z));
1593
1610
  }
1594
1611
  }
1595
- b === null ? (b = 65533, D = 1) : b > 65535 && (b -= 65536, f.push(b >>> 10 & 1023 | 55296), b = 56320 | b & 1023), f.push(b), h += D;
1612
+ b === null ? (b = 65533, N = 1) : b > 65535 && (b -= 65536, f.push(b >>> 10 & 1023 | 55296), b = 56320 | b & 1023), f.push(b), h += N;
1596
1613
  }
1597
1614
  return ue(f);
1598
1615
  }
1599
- const ve = 4096;
1616
+ const Se = 4096;
1600
1617
  function ue(u) {
1601
1618
  const n = u.length;
1602
- if (n <= ve)
1619
+ if (n <= Se)
1603
1620
  return String.fromCharCode.apply(String, u);
1604
1621
  let o = "", f = 0;
1605
1622
  for (; f < n; )
1606
1623
  o += String.fromCharCode.apply(
1607
1624
  String,
1608
- u.slice(f, f += ve)
1625
+ u.slice(f, f += Se)
1609
1626
  );
1610
1627
  return o;
1611
1628
  }
1612
- function ke(u, n, o) {
1629
+ function Le(u, n, o) {
1613
1630
  let f = "";
1614
1631
  o = Math.min(u.length, o);
1615
1632
  for (let h = n; h < o; ++h)
@@ -1628,7 +1645,7 @@ gr.write = function(t, e, r, i, s, a) {
1628
1645
  (!n || n < 0) && (n = 0), (!o || o < 0 || o > f) && (o = f);
1629
1646
  let h = "";
1630
1647
  for (let y = n; y < o; ++y)
1631
- h += ni[u[y]];
1648
+ h += oi[u[y]];
1632
1649
  return h;
1633
1650
  }
1634
1651
  function v(u, n, o) {
@@ -1672,16 +1689,16 @@ gr.write = function(t, e, r, i, s, a) {
1672
1689
  return n = n >>> 0, o || S(n, 4, this.length), (this[n] | this[n + 1] << 8 | this[n + 2] << 16) + this[n + 3] * 16777216;
1673
1690
  }, l.prototype.readUint32BE = l.prototype.readUInt32BE = function(n, o) {
1674
1691
  return n = n >>> 0, o || S(n, 4, this.length), this[n] * 16777216 + (this[n + 1] << 16 | this[n + 2] << 8 | this[n + 3]);
1675
- }, l.prototype.readBigUInt64LE = Le(function(n) {
1676
- n = n >>> 0, Se(n, "offset");
1692
+ }, l.prototype.readBigUInt64LE = Pe(function(n) {
1693
+ n = n >>> 0, Ae(n, "offset");
1677
1694
  const o = this[n], f = this[n + 7];
1678
- (o === void 0 || f === void 0) && De(n, this.length - 8);
1695
+ (o === void 0 || f === void 0) && $e(n, this.length - 8);
1679
1696
  const h = o + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + this[++n] * 2 ** 24, y = this[++n] + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + f * 2 ** 24;
1680
1697
  return BigInt(h) + (BigInt(y) << BigInt(32));
1681
- }), l.prototype.readBigUInt64BE = Le(function(n) {
1682
- n = n >>> 0, Se(n, "offset");
1698
+ }), l.prototype.readBigUInt64BE = Pe(function(n) {
1699
+ n = n >>> 0, Ae(n, "offset");
1683
1700
  const o = this[n], f = this[n + 7];
1684
- (o === void 0 || f === void 0) && De(n, this.length - 8);
1701
+ (o === void 0 || f === void 0) && $e(n, this.length - 8);
1685
1702
  const h = o * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + this[++n], y = this[++n] * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + f;
1686
1703
  return (BigInt(h) << BigInt(32)) + BigInt(y);
1687
1704
  }), l.prototype.readIntLE = function(n, o, f) {
@@ -1710,16 +1727,16 @@ gr.write = function(t, e, r, i, s, a) {
1710
1727
  return n = n >>> 0, o || S(n, 4, this.length), this[n] | this[n + 1] << 8 | this[n + 2] << 16 | this[n + 3] << 24;
1711
1728
  }, l.prototype.readInt32BE = function(n, o) {
1712
1729
  return n = n >>> 0, o || S(n, 4, this.length), this[n] << 24 | this[n + 1] << 16 | this[n + 2] << 8 | this[n + 3];
1713
- }, l.prototype.readBigInt64LE = Le(function(n) {
1714
- n = n >>> 0, Se(n, "offset");
1730
+ }, l.prototype.readBigInt64LE = Pe(function(n) {
1731
+ n = n >>> 0, Ae(n, "offset");
1715
1732
  const o = this[n], f = this[n + 7];
1716
- (o === void 0 || f === void 0) && De(n, this.length - 8);
1733
+ (o === void 0 || f === void 0) && $e(n, this.length - 8);
1717
1734
  const h = this[n + 4] + this[n + 5] * 2 ** 8 + this[n + 6] * 2 ** 16 + (f << 24);
1718
1735
  return (BigInt(h) << BigInt(32)) + BigInt(o + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + this[++n] * 2 ** 24);
1719
- }), l.prototype.readBigInt64BE = Le(function(n) {
1720
- n = n >>> 0, Se(n, "offset");
1736
+ }), l.prototype.readBigInt64BE = Pe(function(n) {
1737
+ n = n >>> 0, Ae(n, "offset");
1721
1738
  const o = this[n], f = this[n + 7];
1722
- (o === void 0 || f === void 0) && De(n, this.length - 8);
1739
+ (o === void 0 || f === void 0) && $e(n, this.length - 8);
1723
1740
  const h = (o << 24) + // Overflow
1724
1741
  this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + this[++n];
1725
1742
  return (BigInt(h) << BigInt(32)) + BigInt(this[++n] * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + f);
@@ -1742,8 +1759,8 @@ gr.write = function(t, e, r, i, s, a) {
1742
1759
  }
1743
1760
  l.prototype.writeUintLE = l.prototype.writeUIntLE = function(n, o, f, h) {
1744
1761
  if (n = +n, o = o >>> 0, f = f >>> 0, !h) {
1745
- const D = Math.pow(2, 8 * f) - 1;
1746
- O(this, n, o, f, D, 0);
1762
+ const N = Math.pow(2, 8 * f) - 1;
1763
+ O(this, n, o, f, N, 0);
1747
1764
  }
1748
1765
  let y = 1, b = 0;
1749
1766
  for (this[o] = n & 255; ++b < f && (y *= 256); )
@@ -1751,8 +1768,8 @@ gr.write = function(t, e, r, i, s, a) {
1751
1768
  return o + f;
1752
1769
  }, l.prototype.writeUintBE = l.prototype.writeUIntBE = function(n, o, f, h) {
1753
1770
  if (n = +n, o = o >>> 0, f = f >>> 0, !h) {
1754
- const D = Math.pow(2, 8 * f) - 1;
1755
- O(this, n, o, f, D, 0);
1771
+ const N = Math.pow(2, 8 * f) - 1;
1772
+ O(this, n, o, f, N, 0);
1756
1773
  }
1757
1774
  let y = f - 1, b = 1;
1758
1775
  for (this[o + y] = n & 255; --y >= 0 && (b *= 256); )
@@ -1783,27 +1800,27 @@ gr.write = function(t, e, r, i, s, a) {
1783
1800
  let b = Number(n >> BigInt(32) & BigInt(4294967295));
1784
1801
  return u[o + 3] = b, b = b >> 8, u[o + 2] = b, b = b >> 8, u[o + 1] = b, b = b >> 8, u[o] = b, o + 8;
1785
1802
  }
1786
- l.prototype.writeBigUInt64LE = Le(function(n, o = 0) {
1803
+ l.prototype.writeBigUInt64LE = Pe(function(n, o = 0) {
1787
1804
  return M(this, n, o, BigInt(0), BigInt("0xffffffffffffffff"));
1788
- }), l.prototype.writeBigUInt64BE = Le(function(n, o = 0) {
1805
+ }), l.prototype.writeBigUInt64BE = Pe(function(n, o = 0) {
1789
1806
  return V(this, n, o, BigInt(0), BigInt("0xffffffffffffffff"));
1790
1807
  }), l.prototype.writeIntLE = function(n, o, f, h) {
1791
1808
  if (n = +n, o = o >>> 0, !h) {
1792
1809
  const W = Math.pow(2, 8 * f - 1);
1793
1810
  O(this, n, o, f, W - 1, -W);
1794
1811
  }
1795
- let y = 0, b = 1, D = 0;
1812
+ let y = 0, b = 1, N = 0;
1796
1813
  for (this[o] = n & 255; ++y < f && (b *= 256); )
1797
- n < 0 && D === 0 && this[o + y - 1] !== 0 && (D = 1), this[o + y] = (n / b >> 0) - D & 255;
1814
+ n < 0 && N === 0 && this[o + y - 1] !== 0 && (N = 1), this[o + y] = (n / b >> 0) - N & 255;
1798
1815
  return o + f;
1799
1816
  }, l.prototype.writeIntBE = function(n, o, f, h) {
1800
1817
  if (n = +n, o = o >>> 0, !h) {
1801
1818
  const W = Math.pow(2, 8 * f - 1);
1802
1819
  O(this, n, o, f, W - 1, -W);
1803
1820
  }
1804
- let y = f - 1, b = 1, D = 0;
1821
+ let y = f - 1, b = 1, N = 0;
1805
1822
  for (this[o + y] = n & 255; --y >= 0 && (b *= 256); )
1806
- n < 0 && D === 0 && this[o + y + 1] !== 0 && (D = 1), this[o + y] = (n / b >> 0) - D & 255;
1823
+ n < 0 && N === 0 && this[o + y + 1] !== 0 && (N = 1), this[o + y] = (n / b >> 0) - N & 255;
1807
1824
  return o + f;
1808
1825
  }, l.prototype.writeInt8 = function(n, o, f) {
1809
1826
  return n = +n, o = o >>> 0, f || O(this, n, o, 1, 127, -128), n < 0 && (n = 255 + n + 1), this[o] = n & 255, o + 1;
@@ -1815,9 +1832,9 @@ gr.write = function(t, e, r, i, s, a) {
1815
1832
  return n = +n, o = o >>> 0, f || O(this, n, o, 4, 2147483647, -2147483648), this[o] = n & 255, this[o + 1] = n >>> 8, this[o + 2] = n >>> 16, this[o + 3] = n >>> 24, o + 4;
1816
1833
  }, l.prototype.writeInt32BE = function(n, o, f) {
1817
1834
  return n = +n, o = o >>> 0, f || O(this, n, o, 4, 2147483647, -2147483648), n < 0 && (n = 4294967295 + n + 1), this[o] = n >>> 24, this[o + 1] = n >>> 16, this[o + 2] = n >>> 8, this[o + 3] = n & 255, o + 4;
1818
- }, l.prototype.writeBigInt64LE = Le(function(n, o = 0) {
1835
+ }, l.prototype.writeBigInt64LE = Pe(function(n, o = 0) {
1819
1836
  return M(this, n, o, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1820
- }), l.prototype.writeBigInt64BE = Le(function(n, o = 0) {
1837
+ }), l.prototype.writeBigInt64BE = Pe(function(n, o = 0) {
1821
1838
  return V(this, n, o, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1822
1839
  });
1823
1840
  function R(u, n, o, f, h, y) {
@@ -1881,11 +1898,11 @@ gr.write = function(t, e, r, i, s, a) {
1881
1898
  for (y = o; y < f; ++y)
1882
1899
  this[y] = n;
1883
1900
  else {
1884
- const b = l.isBuffer(n) ? n : l.from(n, h), D = b.length;
1885
- if (D === 0)
1901
+ const b = l.isBuffer(n) ? n : l.from(n, h), N = b.length;
1902
+ if (N === 0)
1886
1903
  throw new TypeError('The value "' + n + '" is invalid for argument "value"');
1887
1904
  for (y = 0; y < f - o; ++y)
1888
- this[y + o] = b[y % D];
1905
+ this[y + o] = b[y % N];
1889
1906
  }
1890
1907
  return this;
1891
1908
  };
@@ -1931,11 +1948,11 @@ gr.write = function(t, e, r, i, s, a) {
1931
1948
  "ERR_OUT_OF_RANGE",
1932
1949
  function(u, n, o) {
1933
1950
  let f = `The value of "${u}" is out of range.`, h = o;
1934
- return Number.isInteger(o) && Math.abs(o) > 2 ** 32 ? h = Re(String(o)) : typeof o == "bigint" && (h = String(o), (o > BigInt(2) ** BigInt(32) || o < -(BigInt(2) ** BigInt(32))) && (h = Re(h)), h += "n"), f += ` It must be ${n}. Received ${h}`, f;
1951
+ return Number.isInteger(o) && Math.abs(o) > 2 ** 32 ? h = De(String(o)) : typeof o == "bigint" && (h = String(o), (o > BigInt(2) ** BigInt(32) || o < -(BigInt(2) ** BigInt(32))) && (h = De(h)), h += "n"), f += ` It must be ${n}. Received ${h}`, f;
1935
1952
  },
1936
1953
  RangeError
1937
1954
  );
1938
- function Re(u) {
1955
+ function De(u) {
1939
1956
  let n = "", o = u.length;
1940
1957
  const f = u[0] === "-" ? 1 : 0;
1941
1958
  for (; o >= f + 4; o -= 3)
@@ -1943,30 +1960,30 @@ gr.write = function(t, e, r, i, s, a) {
1943
1960
  return `${u.slice(0, o)}${n}`;
1944
1961
  }
1945
1962
  function Be(u, n, o) {
1946
- Se(n, "offset"), (u[n] === void 0 || u[n + o] === void 0) && De(n, u.length - (o + 1));
1963
+ Ae(n, "offset"), (u[n] === void 0 || u[n + o] === void 0) && $e(n, u.length - (o + 1));
1947
1964
  }
1948
1965
  function Ne(u, n, o, f, h, y) {
1949
1966
  if (u > o || u < n) {
1950
1967
  const b = typeof n == "bigint" ? "n" : "";
1951
- let D;
1952
- throw y > 3 ? n === 0 || n === BigInt(0) ? D = `>= 0${b} and < 2${b} ** ${(y + 1) * 8}${b}` : D = `>= -(2${b} ** ${(y + 1) * 8 - 1}${b}) and < 2 ** ${(y + 1) * 8 - 1}${b}` : D = `>= ${n}${b} and <= ${o}${b}`, new J.ERR_OUT_OF_RANGE("value", D, u);
1968
+ let N;
1969
+ throw y > 3 ? n === 0 || n === BigInt(0) ? N = `>= 0${b} and < 2${b} ** ${(y + 1) * 8}${b}` : N = `>= -(2${b} ** ${(y + 1) * 8 - 1}${b}) and < 2 ** ${(y + 1) * 8 - 1}${b}` : N = `>= ${n}${b} and <= ${o}${b}`, new J.ERR_OUT_OF_RANGE("value", N, u);
1953
1970
  }
1954
1971
  Be(f, h, y);
1955
1972
  }
1956
- function Se(u, n) {
1973
+ function Ae(u, n) {
1957
1974
  if (typeof u != "number")
1958
1975
  throw new J.ERR_INVALID_ARG_TYPE(n, "number", u);
1959
1976
  }
1960
- function De(u, n, o) {
1961
- throw Math.floor(u) !== u ? (Se(u, o), new J.ERR_OUT_OF_RANGE(o || "offset", "an integer", u)) : n < 0 ? new J.ERR_BUFFER_OUT_OF_BOUNDS() : new J.ERR_OUT_OF_RANGE(
1977
+ function $e(u, n, o) {
1978
+ throw Math.floor(u) !== u ? (Ae(u, o), new J.ERR_OUT_OF_RANGE(o || "offset", "an integer", u)) : n < 0 ? new J.ERR_BUFFER_OUT_OF_BOUNDS() : new J.ERR_OUT_OF_RANGE(
1962
1979
  o || "offset",
1963
1980
  `>= ${o ? 1 : 0} and <= ${n}`,
1964
1981
  u
1965
1982
  );
1966
1983
  }
1967
- const jt = /[^+/0-9A-Za-z-_]/g;
1984
+ const Mt = /[^+/0-9A-Za-z-_]/g;
1968
1985
  function A(u) {
1969
- if (u = u.split("=")[0], u = u.trim().replace(jt, ""), u.length < 2)
1986
+ if (u = u.split("=")[0], u = u.trim().replace(Mt, ""), u.length < 2)
1970
1987
  return "";
1971
1988
  for (; u.length % 4 !== 0; )
1972
1989
  u = u + "=";
@@ -2037,17 +2054,17 @@ gr.write = function(t, e, r, i, s, a) {
2037
2054
  n.push(u.charCodeAt(o) & 255);
2038
2055
  return n;
2039
2056
  }
2040
- function ri(u, n) {
2057
+ function ii(u, n) {
2041
2058
  let o, f, h;
2042
2059
  const y = [];
2043
2060
  for (let b = 0; b < u.length && !((n -= 2) < 0); ++b)
2044
2061
  o = u.charCodeAt(b), f = o >> 8, h = o % 256, y.push(h), y.push(f);
2045
2062
  return y;
2046
2063
  }
2047
- function kr(u) {
2064
+ function Lr(u) {
2048
2065
  return e.toByteArray(A(u));
2049
2066
  }
2050
- function mt(u, n, o, f) {
2067
+ function wt(u, n, o, f) {
2051
2068
  let h;
2052
2069
  for (h = 0; h < f && !(h + o >= n.length || h >= u.length); ++h)
2053
2070
  n[h + o] = u[h];
@@ -2056,10 +2073,10 @@ gr.write = function(t, e, r, i, s, a) {
2056
2073
  function pe(u, n) {
2057
2074
  return u instanceof n || u != null && u.constructor != null && u.constructor.name != null && u.constructor.name === n.name;
2058
2075
  }
2059
- function Mt(u) {
2076
+ function Vt(u) {
2060
2077
  return u !== u;
2061
2078
  }
2062
- const ni = function() {
2079
+ const oi = function() {
2063
2080
  const u = "0123456789abcdef", n = new Array(256);
2064
2081
  for (let o = 0; o < 16; ++o) {
2065
2082
  const f = o * 16;
@@ -2068,57 +2085,57 @@ gr.write = function(t, e, r, i, s, a) {
2068
2085
  }
2069
2086
  return n;
2070
2087
  }();
2071
- function Le(u) {
2072
- return typeof BigInt > "u" ? ii : u;
2088
+ function Pe(u) {
2089
+ return typeof BigInt > "u" ? si : u;
2073
2090
  }
2074
- function ii() {
2091
+ function si() {
2075
2092
  throw new Error("BigInt not supported");
2076
2093
  }
2077
- })(Sn);
2078
- const jr = Sn.Buffer;
2079
- var En = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2080
- function uo(t) {
2094
+ })(En);
2095
+ const Vr = En.Buffer;
2096
+ var Fn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2097
+ function fo(t) {
2081
2098
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2082
2099
  }
2083
- var mr = { exports: {} };
2084
- const co = Object.getPrototypeOf({});
2085
- function wr(t) {
2100
+ var wr = { exports: {} };
2101
+ const ho = Object.getPrototypeOf({});
2102
+ function br(t) {
2086
2103
  function e(I) {
2087
2104
  return I !== "constructor" && I !== "prototype" && I !== "__proto__";
2088
2105
  }
2089
2106
  function r(I) {
2090
- let T = 0;
2091
- const j = I.length, L = new Array(j);
2092
- for (T = 0; T < j; ++T)
2093
- L[T] = F(I[T]);
2094
- return L;
2107
+ let _ = 0;
2108
+ const j = I.length, B = new Array(j);
2109
+ for (_ = 0; _ < j; ++_)
2110
+ B[_] = F(I[_]);
2111
+ return B;
2095
2112
  }
2096
2113
  function i(I) {
2097
- const T = {};
2098
- if (p && Object.getPrototypeOf(I) !== co)
2114
+ const _ = {};
2115
+ if (p && Object.getPrototypeOf(I) !== ho)
2099
2116
  return p(I);
2100
2117
  const j = d(I);
2101
- let L, C, k;
2102
- for (L = 0, C = j.length; L < C; ++L)
2103
- e(k = j[L]) && (T[k] = F(I[k]));
2104
- return T;
2118
+ let B, C, x;
2119
+ for (B = 0, C = j.length; B < C; ++B)
2120
+ e(x = j[B]) && (_[x] = F(I[x]));
2121
+ return _;
2105
2122
  }
2106
- function s(I, T) {
2107
- const j = I.length, L = T.length;
2123
+ function s(I, _) {
2124
+ const j = I.length, B = _.length;
2108
2125
  let C = 0;
2109
- const k = new Array(j + L);
2126
+ const x = new Array(j + B);
2110
2127
  for (C = 0; C < j; ++C)
2111
- k[C] = F(I[C]);
2112
- for (C = 0; C < L; ++C)
2113
- k[C + j] = F(T[C]);
2114
- return k;
2128
+ x[C] = F(I[C]);
2129
+ for (C = 0; C < B; ++C)
2130
+ x[C + j] = F(_[C]);
2131
+ return x;
2115
2132
  }
2116
2133
  const a = Object.prototype.propertyIsEnumerable;
2117
2134
  function c(I) {
2118
- const T = Object.keys(I), j = Object.getOwnPropertySymbols(I);
2119
- for (let L = 0, C = j.length; L < C; ++L)
2120
- a.call(I, j[L]) && T.push(j[L]);
2121
- return T;
2135
+ const _ = Object.keys(I), j = Object.getOwnPropertySymbols(I);
2136
+ for (let B = 0, C = j.length; B < C; ++B)
2137
+ a.call(I, j[B]) && _.push(j[B]);
2138
+ return _;
2122
2139
  }
2123
2140
  const d = t && t.symbols ? c : Object.keys, p = typeof t?.cloneProtoObject == "function" ? t.cloneProtoObject : void 0;
2124
2141
  function m(I) {
@@ -2127,51 +2144,51 @@ function wr(t) {
2127
2144
  function l(I) {
2128
2145
  return typeof I != "object" || I === null;
2129
2146
  }
2130
- const w = typeof jr < "u" ? (I) => typeof I != "object" || I === null || I instanceof RegExp || I instanceof Date || I instanceof jr : (I) => typeof I != "object" || I === null || I instanceof RegExp || I instanceof Date, E = t && typeof t.mergeArray == "function" ? t.mergeArray({ clone: F, deepmerge: x, getKeys: d, isMergeableObject: m }) : s;
2147
+ const w = typeof Vr < "u" ? (I) => typeof I != "object" || I === null || I instanceof RegExp || I instanceof Date || I instanceof Vr : (I) => typeof I != "object" || I === null || I instanceof RegExp || I instanceof Date, E = t && typeof t.mergeArray == "function" ? t.mergeArray({ clone: F, deepmerge: k, getKeys: d, isMergeableObject: m }) : s;
2131
2148
  function F(I) {
2132
2149
  return m(I) ? Array.isArray(I) ? r(I) : i(I) : I;
2133
2150
  }
2134
- function _(I, T) {
2135
- const j = {}, L = d(I), C = d(T);
2136
- let k, B, q;
2137
- for (k = 0, B = L.length; k < B; ++k)
2138
- e(q = L[k]) && C.indexOf(q) === -1 && (j[q] = F(I[q]));
2139
- for (k = 0, B = C.length; k < B; ++k)
2140
- e(q = C[k]) && (q in I && (L.indexOf(q) !== -1 && (j[q] = x(I[q], T[q])), !0) || // eslint-disable-line no-mixed-operators
2141
- (j[q] = F(T[q])));
2151
+ function T(I, _) {
2152
+ const j = {}, B = d(I), C = d(_);
2153
+ let x, L, q;
2154
+ for (x = 0, L = B.length; x < L; ++x)
2155
+ e(q = B[x]) && C.indexOf(q) === -1 && (j[q] = F(I[q]));
2156
+ for (x = 0, L = C.length; x < L; ++x)
2157
+ e(q = C[x]) && (q in I && (B.indexOf(q) !== -1 && (j[q] = k(I[q], _[q])), !0) || // eslint-disable-line no-mixed-operators
2158
+ (j[q] = F(_[q])));
2142
2159
  return j;
2143
2160
  }
2144
- function x(I, T) {
2145
- const j = Array.isArray(T), L = Array.isArray(I);
2146
- return l(T) ? T : w(I) ? F(T) : j && L ? E(I, T) : j !== L ? F(T) : _(I, T);
2161
+ function k(I, _) {
2162
+ const j = Array.isArray(_), B = Array.isArray(I);
2163
+ return l(_) ? _ : w(I) ? F(_) : j && B ? E(I, _) : j !== B ? F(_) : T(I, _);
2147
2164
  }
2148
- function N() {
2165
+ function D() {
2149
2166
  switch (arguments.length) {
2150
2167
  case 0:
2151
2168
  return {};
2152
2169
  case 1:
2153
2170
  return F(arguments[0]);
2154
2171
  case 2:
2155
- return x(arguments[0], arguments[1]);
2172
+ return k(arguments[0], arguments[1]);
2156
2173
  }
2157
2174
  let I;
2158
- for (let T = 0, j = arguments.length; T < j; ++T)
2159
- I = x(I, arguments[T]);
2175
+ for (let _ = 0, j = arguments.length; _ < j; ++_)
2176
+ I = k(I, arguments[_]);
2160
2177
  return I;
2161
2178
  }
2162
- return t && t.all ? N : x;
2179
+ return t && t.all ? D : k;
2163
2180
  }
2164
- mr.exports = wr;
2165
- mr.exports.default = wr;
2166
- var lo = mr.exports.deepmerge = wr;
2167
- const fo = (t) => (e, r) => {
2181
+ wr.exports = br;
2182
+ wr.exports.default = br;
2183
+ var po = wr.exports.deepmerge = br;
2184
+ const yo = (t) => (e, r) => {
2168
2185
  let i = 0;
2169
2186
  const s = e.length, a = r.length, c = Math.max(s, a), d = new Array(c);
2170
2187
  for (i = 0; i < c; ++i)
2171
2188
  i < a ? d[i] = t.deepmerge(e[i], r[i]) : d[i] = t.clone(e[i]);
2172
2189
  return d;
2173
- }, ho = lo({ mergeArray: fo }), po = (t, e, r) => {
2174
- const i = ln([e, r], (c, d) => {
2190
+ }, go = po({ mergeArray: yo }), mo = (t, e, r) => {
2191
+ const i = dn([e, r], (c, d) => {
2175
2192
  if (c) {
2176
2193
  const p = d.data?.find((m) => m.id === c);
2177
2194
  if (p)
@@ -2186,7 +2203,7 @@ const fo = (t) => (e, r) => {
2186
2203
  return i.subscribe(async (c) => {
2187
2204
  if (c && c.type === "question") {
2188
2205
  s.setKey("loading", !0);
2189
- const d = await vn(c.id, t);
2206
+ const d = await An(c.id, t);
2190
2207
  s.set({ data: d, loading: !1 });
2191
2208
  return;
2192
2209
  }
@@ -2196,14 +2213,14 @@ const fo = (t) => (e, r) => {
2196
2213
  if (d && c?.answers)
2197
2214
  for (const p of c.answers)
2198
2215
  p.youVoted !== !0 && delete p.youVoted;
2199
- s.set({ data: ho(d, c) });
2216
+ s.set({ data: go(d, c) });
2200
2217
  } };
2201
2218
  };
2202
2219
  var Ve;
2203
2220
  (function(t) {
2204
2221
  t.ALLOWED = "allowed", t.DISALLOWED = "disallowed";
2205
2222
  })(Ve || (Ve = {}));
2206
- class yo {
2223
+ class wo {
2207
2224
  /** sl event id */
2208
2225
  slStreamId;
2209
2226
  /** organization id */
@@ -2233,13 +2250,13 @@ class yo {
2233
2250
  notifications;
2234
2251
  log;
2235
2252
  constructor(e) {
2236
- this.log = Pt("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new se(re(void 0), "moderationId").getStore(), this.interactiveAllowed = new se(re(Ve.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new se(re(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new de(Hi(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new de(Zi(this.slStreamId, this.interactiveAllowed, e.transport), "gamification:feedList"), this.activeQuestionId = new de(Ji(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = po(e.transport, this.openedQuestionId, this.feedList.getStore()), this.openedQuestionId.listen((r) => {
2237
- this.log.debug({ questionId: r }, "received question"), r ? (this.questionSubscription = Xi(r, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (i) => {
2253
+ this.log = gt("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new se(re(void 0), "moderationId").getStore(), this.interactiveAllowed = new se(re(Ve.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new se(re(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new de(Xi(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new de(ro(this.slStreamId, this.interactiveAllowed, e.transport), "gamification:feedList"), this.activeQuestionId = new de(Zi(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = mo(e.transport, this.openedQuestionId, this.feedList.getStore()), this.openedQuestionId.listen((r) => {
2254
+ this.log.debug({ questionId: r }, "received question"), r ? (this.questionSubscription = to(r, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (i) => {
2238
2255
  window.requestAnimationFrame(() => {
2239
2256
  this.openedQuestion.updateExtendedQuestion(i.data?.attributes?.question);
2240
2257
  });
2241
2258
  }), this.questionSubscription.connect()) : (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0));
2242
- }), this.feedSubscription = Yi(this.slStreamId, e.transport), this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
2259
+ }), this.feedSubscription = eo(this.slStreamId, e.transport), this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
2243
2260
  const i = this.activeQuestionId.getStore();
2244
2261
  i && i.mutate(r.data?.attributes);
2245
2262
  }), this.feedSubscription.addListener("moderation update", (r) => {
@@ -2280,7 +2297,7 @@ class yo {
2280
2297
  this.openedQuestionId.set(void 0), e && this.notifications.markAsViewed(this.getCurrentSessionId({ prefix: "notification", entity: e }));
2281
2298
  };
2282
2299
  }
2283
- class go {
2300
+ class bo {
2284
2301
  notificationsList;
2285
2302
  notifications;
2286
2303
  store;
@@ -2290,7 +2307,7 @@ class go {
2290
2307
  options;
2291
2308
  logger;
2292
2309
  constructor(e) {
2293
- this.options = e, this.logger = Pt("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notifications = new se(re(/* @__PURE__ */ new Map()), "notifications-queue"), this.notificationsList = this.notifications.getStore();
2310
+ this.options = e, this.logger = gt("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notifications = new se(re(/* @__PURE__ */ new Map()), "notifications-queue"), this.notificationsList = this.notifications.getStore();
2294
2311
  }
2295
2312
  addToQueue = (e) => {
2296
2313
  if (this.store.has(e.id)) {
@@ -2359,18 +2376,18 @@ class go {
2359
2376
  this.store.delete(e), this.activeQueue.delete(e), this.waitingQueue.delete(e), this.tickWaitingQueue(), this.logger.debug({ notificationId: e }, "notification hiding");
2360
2377
  };
2361
2378
  }
2362
- var Ft;
2379
+ var _t;
2363
2380
  (function(t) {
2364
2381
  t.OPENED = "opened";
2365
- })(Ft || (Ft = {}));
2366
- class mo extends Lt {
2382
+ })(_t || (_t = {}));
2383
+ class vo extends Rt {
2367
2384
  constructor() {
2368
2385
  super("notification");
2369
2386
  }
2370
2387
  setOpened = (e) => {
2371
- this.write(Ft.OPENED, e, "true");
2388
+ this.write(_t.OPENED, e, "true");
2372
2389
  };
2373
- isOpened = (e) => this.read(Ft.OPENED, e);
2390
+ isOpened = (e) => this.read(_t.OPENED, e);
2374
2391
  clearNotification = () => {
2375
2392
  this.clear();
2376
2393
  };
@@ -2379,11 +2396,11 @@ var Me;
2379
2396
  (function(t) {
2380
2397
  t[t.ONBOARDING = 1] = "ONBOARDING", t[t.QUESTION = 2] = "QUESTION", t[t.QUESTION_RESOLVED = 3] = "QUESTION_RESOLVED";
2381
2398
  })(Me || (Me = {}));
2382
- class wo {
2399
+ class So {
2383
2400
  queue;
2384
2401
  storage;
2385
2402
  constructor(e = {}) {
2386
- this.storage = new mo(), this.queue = new go({ concurrency: 1, animationDelay: 1600, ...e });
2403
+ this.storage = new vo(), this.queue = new bo({ concurrency: 1, animationDelay: 1600, ...e });
2387
2404
  }
2388
2405
  add = (e) => {
2389
2406
  this.storage.isOpened(e.id) || this.queue.addToQueue(e);
@@ -2396,23 +2413,23 @@ class wo {
2396
2413
  this.storage.setOpened(e);
2397
2414
  };
2398
2415
  }
2399
- const bo = (t, e, r) => {
2400
- t.notifications = new wo(), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), r();
2401
- }, vo = (t, e) => {
2402
- const { client: r } = t.createPromiseClient(_e, { method: "submitAnswer" });
2416
+ const Ao = (t, e, r) => {
2417
+ t.notifications = new So(), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), r();
2418
+ }, Eo = (t, e) => {
2419
+ const { client: r } = t.createPromiseClient(Ce, { method: "submitAnswer" });
2403
2420
  return r.submitAnswer({ data: e });
2404
- }, So = (t, e) => {
2405
- const { client: r } = t.createPromiseClient(_e, { method: "submitInplay" });
2421
+ }, Io = (t, e) => {
2422
+ const { client: r } = t.createPromiseClient(Ce, { method: "submitInplay" });
2406
2423
  return r.submitInplay({ data: { eventId: +e } });
2407
- }, Ao = (t, e) => {
2408
- const { client: r } = t.createPromiseClient(_e, { method: "skipQuestion" });
2424
+ }, Fo = (t, e) => {
2425
+ const { client: r } = t.createPromiseClient(Ce, { method: "skipQuestion" });
2409
2426
  return r.skipQuestion({ data: { id: e } });
2410
2427
  };
2411
2428
  var Xe;
2412
2429
  (function(t) {
2413
2430
  t.ONBOARDING = "onboarding", t.ONBOARDING_IO = "onboarding_io";
2414
2431
  })(Xe || (Xe = {}));
2415
- class In extends Lt {
2432
+ class On extends Rt {
2416
2433
  constructor() {
2417
2434
  super("gamification");
2418
2435
  }
@@ -2429,51 +2446,51 @@ class In extends Lt {
2429
2446
  return window.sessionStorage.getItem(s);
2430
2447
  };
2431
2448
  }
2432
- const Mr = {
2449
+ const qr = {
2433
2450
  pageSize: 10
2434
- }, Eo = (t, e, r, i, s) => {
2451
+ }, Oo = (t, e, r, i, s) => {
2435
2452
  let a = 0;
2436
- const c = re({ pageSize: s?.pageSize || Mr.pageSize, page: 0 }), d = Te({
2453
+ const c = re({ pageSize: s?.pageSize || qr.pageSize, page: 0 }), d = Te({
2437
2454
  data: [],
2438
2455
  key: Date.now(),
2439
2456
  hasMore: !0,
2440
2457
  loading: void 0,
2441
2458
  error: void 0
2442
- }), p = Ki(t), m = async () => {
2443
- const E = e.get(), F = i.getStore().get().data?.map((_) => _.slId) || [];
2459
+ }), p = Ji(t), m = async () => {
2460
+ const E = e.get(), F = i.getStore().get().data?.map((T) => T.slId) || [];
2444
2461
  if (E && F?.length) {
2445
- const _ = r.get();
2446
- _ && F.push(_), d.setKey("loading", !0), d.setKey("data", []);
2447
- const x = {
2462
+ const T = r.get();
2463
+ T && F.push(T), d.setKey("loading", !0), d.setKey("data", []);
2464
+ const k = {
2448
2465
  eventId: E,
2449
2466
  usersIds: F,
2450
- pagination: { page: 0, pageSize: s?.pageSize || Mr.pageSize }
2451
- }, N = await p(x);
2467
+ pagination: { page: 0, pageSize: s?.pageSize || qr.pageSize }
2468
+ }, D = await p(k);
2452
2469
  d.set({
2453
- data: N.data.map((I) => I.attributes),
2470
+ data: D.data.map((I) => I.attributes),
2454
2471
  hasMore: !0,
2455
2472
  key: Date.now(),
2456
2473
  loading: !1
2457
- }), N.meta && (a = Math.round(N.meta.count / N.meta.pageSize)), c.set(x.pagination);
2474
+ }), D.meta && (a = Math.round(D.meta.count / D.meta.pageSize)), c.set(k.pagination);
2458
2475
  }
2459
2476
  }, l = () => {
2460
2477
  m();
2461
2478
  }, w = (E) => {
2462
- const F = c.get(), _ = E || F.page + 1;
2463
- _ <= a && c.set({ ...F, page: _ });
2479
+ const F = c.get(), T = E || F.page + 1;
2480
+ T <= a && c.set({ ...F, page: T });
2464
2481
  };
2465
- return fn(d, () => {
2466
- const E = e.listen(m), F = i.listen(m), _ = c.listen(async (x) => {
2467
- const N = e.get();
2468
- if (x.page > 0 && N)
2469
- if (x.page < a) {
2482
+ return hn(d, () => {
2483
+ const E = e.listen(m), F = i.listen(m), T = c.listen(async (k) => {
2484
+ const D = e.get();
2485
+ if (k.page > 0 && D)
2486
+ if (k.page < a) {
2470
2487
  d.setKey("loading", !0);
2471
- const T = await p({
2472
- eventId: N,
2473
- pagination: x
2488
+ const _ = await p({
2489
+ eventId: D,
2490
+ pagination: k
2474
2491
  }), j = d.get().data || [];
2475
2492
  d.set({
2476
- data: [...j, ...T.data.map((L) => L.attributes)],
2493
+ data: [...j, ..._.data.map((B) => B.attributes)],
2477
2494
  key: d.get().key,
2478
2495
  loading: !1,
2479
2496
  hasMore: !0
@@ -2482,10 +2499,10 @@ const Mr = {
2482
2499
  d.setKey("hasMore", !1);
2483
2500
  });
2484
2501
  return () => {
2485
- E(), F(), _();
2502
+ E(), F(), T();
2486
2503
  };
2487
2504
  }), { $store: d, fetchMore: w, invalidate: l };
2488
- }, Io = (t, e) => {
2505
+ }, _o = (t, e) => {
2489
2506
  const { client: r, queryKey: i } = t.createPromiseClient(yt, {
2490
2507
  method: "generateDeepLink",
2491
2508
  params: e
@@ -2495,29 +2512,29 @@ const Mr = {
2495
2512
  data: { gamification: !0, externalEventId: d, eventId: c }
2496
2513
  })).data?.attributes : {}
2497
2514
  });
2498
- }, Fo = (t, { web: e, mobile: r }) => {
2499
- const { client: i } = t.createPromiseClient(li, { method: "generate" });
2515
+ }, To = (t, { web: e, mobile: r }) => {
2516
+ const { client: i } = t.createPromiseClient(di, { method: "generate" });
2500
2517
  return i.generate({ web: e, mobile: r });
2501
- }, Vr = (t, e) => {
2518
+ }, Qr = (t, e) => {
2502
2519
  const r = new URLSearchParams(t);
2503
2520
  for (const [i, s] of Object.entries(e))
2504
2521
  r.append(i, s);
2505
2522
  return r.toString();
2506
- }, Oo = (t, e, r, i) => {
2523
+ }, Co = (t, e, r, i) => {
2507
2524
  const s = Te({});
2508
- return fn(s, () => Io(t, [e, r]).subscribe(async ({ data: d, error: p, loading: m }) => {
2509
- const l = p ? "https://masters.com" : d?.url, w = i.get() || "", E = e.get() || "", F = r.get() || "", _ = {
2510
- [Rt]: w,
2511
- [wn]: E,
2512
- [bn]: F
2525
+ return hn(s, () => _o(t, [e, r]).subscribe(async ({ data: d, error: p, loading: m }) => {
2526
+ const l = p ? "https://masters.com" : d?.url, w = i.get() || "", E = e.get() || "", F = r.get() || "", T = {
2527
+ [Dt]: w,
2528
+ [vn]: E,
2529
+ [Sn]: F
2513
2530
  };
2514
2531
  if (!m && l) {
2515
2532
  s.setKey("loading", !0);
2516
- let x = window.location.search, N = window.location.hash;
2517
- x && N || N ? x = `?${Vr(x, _)}` : N = `#${Vr("", _)}`;
2518
- const I = window.location.origin + window.location.pathname + x + N, T = await Fo(t, { web: I, mobile: l });
2533
+ let k = window.location.search, D = window.location.hash;
2534
+ k && D || D ? k = `?${Qr(k, T)}` : D = `#${Qr("", T)}`;
2535
+ const I = window.location.origin + window.location.pathname + k + D, _ = await To(t, { web: I, mobile: l });
2519
2536
  s.set({
2520
- data: T.data?.link,
2537
+ data: _.data?.link,
2521
2538
  loading: !1
2522
2539
  });
2523
2540
  } else
@@ -2528,7 +2545,7 @@ var ee;
2528
2545
  (function(t) {
2529
2546
  t.Unset = "unset", t.Required = "required", t.Optional = "optional", t.Completed = "completed", t.Disabled = "disabled", t.Unavailable = "unavailable";
2530
2547
  })(ee || (ee = {}));
2531
- const To = (t, e, r, i) => {
2548
+ const ko = (t, e, r, i) => {
2532
2549
  const { inplayGame: s } = t.featureSettings.get(), a = e.getCurrentSessionId({ prefix: "onboarding" });
2533
2550
  s && r.add({
2534
2551
  type: Me.ONBOARDING,
@@ -2548,7 +2565,7 @@ const To = (t, e, r, i) => {
2548
2565
  }
2549
2566
  }
2550
2567
  });
2551
- }, wt = (t, e, r, i, s, a) => {
2568
+ }, vt = (t, e, r, i, s, a) => {
2552
2569
  try {
2553
2570
  const c = e.userId.get();
2554
2571
  if (!c)
@@ -2571,27 +2588,27 @@ const To = (t, e, r, i) => {
2571
2588
  } catch (c) {
2572
2589
  console.error(c);
2573
2590
  }
2574
- }, _o = (t, e, r, i) => {
2591
+ }, xo = (t, e, r, i) => {
2575
2592
  let s = !1;
2576
- const a = new In(), c = re(ee.Unset);
2593
+ const a = new On(), c = re(ee.Unset);
2577
2594
  c.subscribe((m) => {
2578
- m !== ee.Unset && ((m === ee.Optional || m === ee.Required) && s === !1 && (To(t, e, i, a), s = !0), m === ee.Completed && e.activeQuestionId.invalidate(), a.setOnboardingInstantOpen({
2595
+ m !== ee.Unset && ((m === ee.Optional || m === ee.Required) && s === !1 && (ko(t, e, i, a), s = !0), m === ee.Completed && e.activeQuestionId.invalidate(), a.setOnboardingInstantOpen({
2579
2596
  userId: e.userId.get() || "",
2580
2597
  organizationId: e.organizationId.get() || "",
2581
2598
  eventId: e.slStreamId.get() || ""
2582
2599
  }));
2583
2600
  });
2584
2601
  const d = [];
2585
- return wt(c, e, t, i, a, d), c.get() !== ee.Completed && (d.push(e.userId.listen((m) => {
2586
- m && wt(c, e, t, i, a, d);
2602
+ return vt(c, e, t, i, a, d), c.get() !== ee.Completed && (d.push(e.userId.listen((m) => {
2603
+ m && vt(c, e, t, i, a, d);
2587
2604
  })), d.push(e.moderation.listen((m) => {
2588
- m.data && wt(c, e, t, i, a, d);
2605
+ m.data && vt(c, e, t, i, a, d);
2589
2606
  })), d.push(t.featureSettings.listen((m) => {
2590
- m && wt(c, e, t, i, a, d);
2607
+ m && vt(c, e, t, i, a, d);
2591
2608
  }))), { $store: c, submitInplay: async () => {
2592
2609
  const m = e.slStreamId.get();
2593
2610
  if (m) {
2594
- await So(r, m), c.set(ee.Completed), a.saveOnboardingStatus({
2611
+ await Io(r, m), c.set(ee.Completed), a.saveOnboardingStatus({
2595
2612
  organizationId: e.organizationId.get() || "",
2596
2613
  userId: e.userId.get() || "",
2597
2614
  eventId: m
@@ -2600,8 +2617,8 @@ const To = (t, e, r, i) => {
2600
2617
  i.close(l);
2601
2618
  }
2602
2619
  } };
2603
- }, Co = /* @__PURE__ */ new Set([fe.POLL, fe.PREDICTION, fe.TRIVIA]);
2604
- class xo extends mn {
2620
+ }, Lo = /* @__PURE__ */ new Set([fe.POLL, fe.PREDICTION, fe.TRIVIA]);
2621
+ class Bo extends bn {
2605
2622
  /** user statistics (leaderboard panel) */
2606
2623
  userSummary;
2607
2624
  /** feed list (pick history) */
@@ -2630,7 +2647,7 @@ class xo extends mn {
2630
2647
  /** Browser cache */
2631
2648
  storage;
2632
2649
  constructor(e, r, i) {
2633
- super(e, r), this.background = new yo(i), this.storage = new In(), this.userSummary = new de(zi(this.background.slStreamId, this.background.userId, i.transport), "gamification:userSummary"), this.feedList = this.background.feedList, this.friends = new de(Wi(this.background.userId, i.transport), "gamification:friends"), this.currentUserId = this.background.userId, this.openedUser = re(void 0), this.leaderboardId = new se(re(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = _o(this, this.background, i.transport, i.notifications), this.notifications = i.notifications, this.transport = i.transport, this.closeFeature = () => i.sdk.closeFeature(!0), this.openFeature = () => i.sdk.openFeature(Fe.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = Oo(this.transport, this.background.slStreamId, i.stores.providerStreamId.getStore(), this.background.userId), this.leaderboardList = Eo(this.transport, this.background.slStreamId, this.background.userId, this.friends), this.status.subscribe((s) => {
2650
+ super(e, r), this.background = new wo(i), this.storage = new On(), this.userSummary = new de(Hi(this.background.slStreamId, this.background.userId, i.transport), "gamification:userSummary"), this.feedList = this.background.feedList, this.friends = new de(Yi(this.background.userId, i.transport), "gamification:friends"), this.currentUserId = this.background.userId, this.openedUser = re(void 0), this.leaderboardId = new se(re(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = xo(this, this.background, i.transport, i.notifications), this.notifications = i.notifications, this.transport = i.transport, this.closeFeature = () => i.sdk.closeFeature(!0), this.openFeature = () => i.sdk.openFeature(Oe.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = Co(this.transport, this.background.slStreamId, i.stores.providerStreamId.getStore(), this.background.userId), this.leaderboardList = Oo(this.transport, this.background.slStreamId, this.background.userId, this.friends), this.status.subscribe((s) => {
2634
2651
  s === rt.Ready ? this.connect(i.transport) : this.disconnect();
2635
2652
  }), this.userSummary.listen((s) => {
2636
2653
  this.leaderboardList.$store.lc !== 0 && s?.data?.summary && window.requestAnimationFrame(() => {
@@ -2655,7 +2672,7 @@ class xo extends mn {
2655
2672
  if (s === dt.RESOLVED && a === fe.PREDICTION) {
2656
2673
  const d = this.background.getCurrentSessionId({
2657
2674
  prefix: `notification-id:${c}`
2658
- }), p = await vn(c, e), m = p?.answers.find(({ correct: w }) => w), l = p?.answers.find(({ youVoted: w }) => w);
2675
+ }), p = await An(c, e), m = p?.answers.find(({ correct: w }) => w), l = p?.answers.find(({ youVoted: w }) => w);
2659
2676
  if (!l)
2660
2677
  return;
2661
2678
  this.notifications.add({
@@ -2691,10 +2708,10 @@ class xo extends mn {
2691
2708
  this.background.feedSubscription.removeListener("feed-subscription-questions-list");
2692
2709
  };
2693
2710
  submitAnswer = async (e, r) => {
2694
- await vo(this.transport, { questionId: e, answerId: r }), this.feedList.invalidate(), this.userSummary.invalidate();
2711
+ await Eo(this.transport, { questionId: e, answerId: r }), this.feedList.invalidate(), this.userSummary.invalidate();
2695
2712
  };
2696
2713
  skipQuestion = async (e) => {
2697
- await Ao(this.transport, e), this.feedList.invalidate(), this.userSummary.invalidate();
2714
+ await Fo(this.transport, e), this.feedList.invalidate(), this.userSummary.invalidate();
2698
2715
  };
2699
2716
  openQuestion = (e) => (this.openFeature(), this.notifications.close(this.background.getCurrentSessionId({
2700
2717
  prefix: "notification",
@@ -2716,8 +2733,8 @@ class xo extends mn {
2716
2733
  */
2717
2734
  showInApp = (e) => {
2718
2735
  const r = this.onboardingStatus.$store.get();
2719
- if (e && e.data && r && r !== ee.Unset && e.data.question?.id !== void 0 && e.data.question.notification !== void 0 && e.data.question?.bypassNotifications?.inAppSilence !== oi.ON && e.data.question.status === dt.ACTIVE) {
2720
- if (Co.has(e.data.question.type))
2736
+ if (e && e.data && r && r !== ee.Unset && e.data.question?.id !== void 0 && e.data.question.notification !== void 0 && e.data.question?.bypassNotifications?.inAppSilence !== ai.ON && e.data.question.status === dt.ACTIVE) {
2737
+ if (Lo.has(e.data.question.type))
2721
2738
  this.isInteractiveAllowed && this.notifications.add({
2722
2739
  type: Me.QUESTION,
2723
2740
  action: () => {
@@ -2740,7 +2757,7 @@ class xo extends mn {
2740
2757
  const i = e.data.question.options?.options.value, s = {
2741
2758
  heading: e.data.question.notification.title,
2742
2759
  body: e.data.question.notification.body,
2743
- imageMode: e.data.question.notification.imageMode,
2760
+ imageMode: e.data.question.appearance?.images,
2744
2761
  image: i?.image,
2745
2762
  video: {
2746
2763
  id: i?.video?.id || "",
@@ -2791,23 +2808,23 @@ class xo extends mn {
2791
2808
  }
2792
2809
  };
2793
2810
  }
2794
- const ko = {
2795
- [Fe.GAMES]: !0
2811
+ const Po = {
2812
+ [Oe.GAMES]: !0
2796
2813
  };
2797
- class Bo extends mn {
2814
+ class Ro extends bn {
2798
2815
  constructor(e, r) {
2799
2816
  super(e, r);
2800
2817
  }
2801
2818
  }
2802
- const Lo = (t, e, r) => t.type === Fe.GAMES ? new xo(t, e, r) : new Bo(t, e), Po = (t, e, r) => {
2803
- t.features = /* @__PURE__ */ new Map(), t.activeFeature = new se(re(Fe.UNSET), "activeFeature"), t.sdk.getFeatures = () => t.features, t.sdk.getFeature = (i) => t.features.get(i), t.sdk.getActiveFeature = () => t.activeFeature.getStore(), t.sdk.openFeature = (i) => {
2819
+ const Do = (t, e, r) => t.type === Oe.GAMES ? new Bo(t, e, r) : new Ro(t, e), No = (t, e, r) => {
2820
+ t.features = /* @__PURE__ */ new Map(), t.activeFeature = new se(re(Oe.UNSET), "activeFeature"), t.sdk.getFeatures = () => t.features, t.sdk.getFeature = (i) => t.features.get(i), t.sdk.getActiveFeature = () => t.activeFeature.getStore(), t.sdk.openFeature = (i) => {
2804
2821
  t.activeFeature.setValue(i);
2805
2822
  }, t.sdk.closeFeature = (i = !1) => {
2806
2823
  const s = t.activeFeature.getValue();
2807
- t.activeFeature.setValue(Fe.UNSET), i && s && t.features.delete(s);
2808
- }, t.initFeature = (i, s = Ee.ORGANIZATION) => {
2809
- if (i.type in ko && !t.features.has(i.type)) {
2810
- const a = Lo(i, s, t);
2824
+ t.activeFeature.setValue(Oe.UNSET), i && s && t.features.delete(s);
2825
+ }, t.initFeature = (i, s = Ie.ORGANIZATION) => {
2826
+ if (i.type in Po && !t.features.has(i.type)) {
2827
+ const a = Do(i, s, t);
2811
2828
  t.features.set(i.type, a);
2812
2829
  }
2813
2830
  }, t.updateFeature = (i, s) => {
@@ -2818,12 +2835,12 @@ const Lo = (t, e, r) => t.type === Fe.GAMES ? new xo(t, e, r) : new Bo(t, e), Po
2818
2835
  const i = await t.stores.organizationSettings.getValue();
2819
2836
  t.features.clear();
2820
2837
  for (const s of i?.overlays || [])
2821
- t.initFeature(s, Ee.ORGANIZATION);
2838
+ t.initFeature(s, Ie.ORGANIZATION);
2822
2839
  }, t.stores.providerStreamId.listen((i) => {
2823
2840
  i || t.reinitializeFeatures();
2824
2841
  }), t.storeSubscribe = () => {
2825
2842
  const i = (a, c) => {
2826
- if (c?.overlays && !(t.contextConfig?.skipOrganizationSettings && a === Ee.ORGANIZATION))
2843
+ if (c?.overlays && !(t.contextConfig?.skipOrganizationSettings && a === Ie.ORGANIZATION))
2827
2844
  for (const d of c.overlays)
2828
2845
  d.sdkEnable === !0 && (t.features.has(d.type) ? t.updateFeature(d, a) : t.initFeature(d, a));
2829
2846
  }, s = {
@@ -2839,7 +2856,7 @@ const Lo = (t, e, r) => t.type === Fe.GAMES ? new xo(t, e, r) : new Bo(t, e), Po
2839
2856
  organizationSettings: (a) => {
2840
2857
  if (a.data)
2841
2858
  try {
2842
- i(Ee.ORGANIZATION, a.data);
2859
+ i(Ie.ORGANIZATION, a.data);
2843
2860
  } catch (c) {
2844
2861
  console.log(c);
2845
2862
  }
@@ -2847,7 +2864,7 @@ const Lo = (t, e, r) => t.type === Fe.GAMES ? new xo(t, e, r) : new Bo(t, e), Po
2847
2864
  streamSettings: (a) => {
2848
2865
  if (a.data)
2849
2866
  try {
2850
- i(Ee.STREAM, a.data);
2867
+ i(Ie.STREAM, a.data);
2851
2868
  } catch (c) {
2852
2869
  console.log(c);
2853
2870
  }
@@ -2856,8 +2873,8 @@ const Lo = (t, e, r) => t.type === Fe.GAMES ? new xo(t, e, r) : new Bo(t, e), Po
2856
2873
  t.store.subscribe(s);
2857
2874
  }, r();
2858
2875
  };
2859
- var br = { exports: {} }, vr = { exports: {} };
2860
- function Ro(t) {
2876
+ var vr = { exports: {} }, Sr = { exports: {} };
2877
+ function $o(t) {
2861
2878
  var e = new t(), r = e;
2862
2879
  function i() {
2863
2880
  var a = e;
@@ -2871,12 +2888,12 @@ function Ro(t) {
2871
2888
  release: s
2872
2889
  };
2873
2890
  }
2874
- var No = Ro, Do = No;
2875
- function Fn(t, e, r) {
2891
+ var Uo = $o, jo = Uo;
2892
+ function _n(t, e, r) {
2876
2893
  if (typeof t == "function" && (r = e, e = t, t = null), r < 1)
2877
2894
  throw new Error("fastqueue concurrency must be greater than 1");
2878
- var i = Do($o), s = null, a = null, c = 0, d = null, p = {
2879
- push: x,
2895
+ var i = jo(Mo), s = null, a = null, c = 0, d = null, p = {
2896
+ push: k,
2880
2897
  drain: oe,
2881
2898
  saturated: oe,
2882
2899
  pause: l,
@@ -2884,14 +2901,14 @@ function Fn(t, e, r) {
2884
2901
  concurrency: r,
2885
2902
  running: m,
2886
2903
  resume: F,
2887
- idle: _,
2904
+ idle: T,
2888
2905
  length: w,
2889
2906
  getQueue: E,
2890
- unshift: N,
2907
+ unshift: D,
2891
2908
  empty: oe,
2892
- kill: T,
2909
+ kill: _,
2893
2910
  killAndDrain: j,
2894
- error: L
2911
+ error: B
2895
2912
  };
2896
2913
  return p;
2897
2914
  function m() {
@@ -2901,14 +2918,14 @@ function Fn(t, e, r) {
2901
2918
  p.paused = !0;
2902
2919
  }
2903
2920
  function w() {
2904
- for (var C = s, k = 0; C; )
2905
- C = C.next, k++;
2906
- return k;
2921
+ for (var C = s, x = 0; C; )
2922
+ C = C.next, x++;
2923
+ return x;
2907
2924
  }
2908
2925
  function E() {
2909
- for (var C = s, k = []; C; )
2910
- k.push(C.value), C = C.next;
2911
- return k;
2926
+ for (var C = s, x = []; C; )
2927
+ x.push(C.value), C = C.next;
2928
+ return x;
2912
2929
  }
2913
2930
  function F() {
2914
2931
  if (p.paused) {
@@ -2917,35 +2934,35 @@ function Fn(t, e, r) {
2917
2934
  c++, I();
2918
2935
  }
2919
2936
  }
2920
- function _() {
2937
+ function T() {
2921
2938
  return c === 0 && p.length() === 0;
2922
2939
  }
2923
- function x(C, k) {
2924
- var B = i.get();
2925
- B.context = t, B.release = I, B.value = C, B.callback = k || oe, B.errorHandler = d, c === p.concurrency || p.paused ? a ? (a.next = B, a = B) : (s = B, a = B, p.saturated()) : (c++, e.call(t, B.value, B.worked));
2940
+ function k(C, x) {
2941
+ var L = i.get();
2942
+ L.context = t, L.release = I, L.value = C, L.callback = x || oe, L.errorHandler = d, c === p.concurrency || p.paused ? a ? (a.next = L, a = L) : (s = L, a = L, p.saturated()) : (c++, e.call(t, L.value, L.worked));
2926
2943
  }
2927
- function N(C, k) {
2928
- var B = i.get();
2929
- B.context = t, B.release = I, B.value = C, B.callback = k || oe, B.errorHandler = d, c === p.concurrency || p.paused ? s ? (B.next = s, s = B) : (s = B, a = B, p.saturated()) : (c++, e.call(t, B.value, B.worked));
2944
+ function D(C, x) {
2945
+ var L = i.get();
2946
+ L.context = t, L.release = I, L.value = C, L.callback = x || oe, L.errorHandler = d, c === p.concurrency || p.paused ? s ? (L.next = s, s = L) : (s = L, a = L, p.saturated()) : (c++, e.call(t, L.value, L.worked));
2930
2947
  }
2931
2948
  function I(C) {
2932
2949
  C && i.release(C);
2933
- var k = s;
2934
- k ? p.paused ? c-- : (a === s && (a = null), s = k.next, k.next = null, e.call(t, k.value, k.worked), a === null && p.empty()) : --c === 0 && p.drain();
2950
+ var x = s;
2951
+ x ? p.paused ? c-- : (a === s && (a = null), s = x.next, x.next = null, e.call(t, x.value, x.worked), a === null && p.empty()) : --c === 0 && p.drain();
2935
2952
  }
2936
- function T() {
2953
+ function _() {
2937
2954
  s = null, a = null, p.drain = oe;
2938
2955
  }
2939
2956
  function j() {
2940
2957
  s = null, a = null, p.drain(), p.drain = oe;
2941
2958
  }
2942
- function L(C) {
2959
+ function B(C) {
2943
2960
  d = C;
2944
2961
  }
2945
2962
  }
2946
2963
  function oe() {
2947
2964
  }
2948
- function $o() {
2965
+ function Mo() {
2949
2966
  this.value = null, this.callback = oe, this.next = null, this.release = oe, this.context = null, this.errorHandler = null;
2950
2967
  var t = this;
2951
2968
  this.worked = function(r, i) {
@@ -2953,35 +2970,35 @@ function $o() {
2953
2970
  t.value = null, t.callback = oe, t.errorHandler && a(r, c), s.call(t.context, r, i), t.release(t);
2954
2971
  };
2955
2972
  }
2956
- function Uo(t, e, r) {
2973
+ function Vo(t, e, r) {
2957
2974
  typeof t == "function" && (r = e, e = t, t = null);
2958
2975
  function i(l, w) {
2959
2976
  e.call(this, l).then(function(E) {
2960
2977
  w(null, E);
2961
2978
  }, w);
2962
2979
  }
2963
- var s = Fn(t, i, r), a = s.push, c = s.unshift;
2980
+ var s = _n(t, i, r), a = s.push, c = s.unshift;
2964
2981
  return s.push = d, s.unshift = p, s.drained = m, s;
2965
2982
  function d(l) {
2966
2983
  var w = new Promise(function(E, F) {
2967
- a(l, function(_, x) {
2968
- if (_) {
2969
- F(_);
2984
+ a(l, function(T, k) {
2985
+ if (T) {
2986
+ F(T);
2970
2987
  return;
2971
2988
  }
2972
- E(x);
2989
+ E(k);
2973
2990
  });
2974
2991
  });
2975
2992
  return w.catch(oe), w;
2976
2993
  }
2977
2994
  function p(l) {
2978
2995
  var w = new Promise(function(E, F) {
2979
- c(l, function(_, x) {
2980
- if (_) {
2981
- F(_);
2996
+ c(l, function(T, k) {
2997
+ if (T) {
2998
+ F(T);
2982
2999
  return;
2983
3000
  }
2984
- E(x);
3001
+ E(k);
2985
3002
  });
2986
3003
  });
2987
3004
  return w.catch(oe), w;
@@ -2999,60 +3016,60 @@ function Uo(t, e, r) {
2999
3016
  return w;
3000
3017
  }
3001
3018
  }
3002
- vr.exports = Fn;
3003
- vr.exports.promise = Uo;
3004
- var On = vr.exports, Sr = { exports: {} }, nt = typeof Reflect == "object" ? Reflect : null, qr = nt && typeof nt.apply == "function" ? nt.apply : function(e, r, i) {
3019
+ Sr.exports = _n;
3020
+ Sr.exports.promise = Vo;
3021
+ var Tn = Sr.exports, Ar = { exports: {} }, nt = typeof Reflect == "object" ? Reflect : null, Gr = nt && typeof nt.apply == "function" ? nt.apply : function(e, r, i) {
3005
3022
  return Function.prototype.apply.call(e, r, i);
3006
- }, vt;
3007
- nt && typeof nt.ownKeys == "function" ? vt = nt.ownKeys : Object.getOwnPropertySymbols ? vt = function(e) {
3023
+ }, At;
3024
+ nt && typeof nt.ownKeys == "function" ? At = nt.ownKeys : Object.getOwnPropertySymbols ? At = function(e) {
3008
3025
  return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
3009
- } : vt = function(e) {
3026
+ } : At = function(e) {
3010
3027
  return Object.getOwnPropertyNames(e);
3011
3028
  };
3012
- function jo(t) {
3029
+ function qo(t) {
3013
3030
  console && console.warn && console.warn(t);
3014
3031
  }
3015
- var Tn = Number.isNaN || function(e) {
3032
+ var Cn = Number.isNaN || function(e) {
3016
3033
  return e !== e;
3017
3034
  };
3018
3035
  function G() {
3019
3036
  G.init.call(this);
3020
3037
  }
3021
- Sr.exports = G;
3022
- Sr.exports.once = Qo;
3038
+ Ar.exports = G;
3039
+ Ar.exports.once = Ko;
3023
3040
  G.EventEmitter = G;
3024
3041
  G.prototype._events = void 0;
3025
3042
  G.prototype._eventsCount = 0;
3026
3043
  G.prototype._maxListeners = void 0;
3027
- var Qr = 10;
3028
- function Dt(t) {
3044
+ var zr = 10;
3045
+ function $t(t) {
3029
3046
  if (typeof t != "function")
3030
3047
  throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
3031
3048
  }
3032
3049
  Object.defineProperty(G, "defaultMaxListeners", {
3033
3050
  enumerable: !0,
3034
3051
  get: function() {
3035
- return Qr;
3052
+ return zr;
3036
3053
  },
3037
3054
  set: function(t) {
3038
- if (typeof t != "number" || t < 0 || Tn(t))
3055
+ if (typeof t != "number" || t < 0 || Cn(t))
3039
3056
  throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
3040
- Qr = t;
3057
+ zr = t;
3041
3058
  }
3042
3059
  });
3043
3060
  G.init = function() {
3044
3061
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
3045
3062
  };
3046
3063
  G.prototype.setMaxListeners = function(e) {
3047
- if (typeof e != "number" || e < 0 || Tn(e))
3064
+ if (typeof e != "number" || e < 0 || Cn(e))
3048
3065
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
3049
3066
  return this._maxListeners = e, this;
3050
3067
  };
3051
- function _n(t) {
3068
+ function kn(t) {
3052
3069
  return t._maxListeners === void 0 ? G.defaultMaxListeners : t._maxListeners;
3053
3070
  }
3054
3071
  G.prototype.getMaxListeners = function() {
3055
- return _n(this);
3072
+ return kn(this);
3056
3073
  };
3057
3074
  G.prototype.emit = function(e) {
3058
3075
  for (var r = [], i = 1; i < arguments.length; i++)
@@ -3073,51 +3090,51 @@ G.prototype.emit = function(e) {
3073
3090
  if (p === void 0)
3074
3091
  return !1;
3075
3092
  if (typeof p == "function")
3076
- qr(p, this, r);
3093
+ Gr(p, this, r);
3077
3094
  else
3078
- for (var m = p.length, l = Ln(p, m), i = 0; i < m; ++i)
3079
- qr(l[i], this, r);
3095
+ for (var m = p.length, l = Rn(p, m), i = 0; i < m; ++i)
3096
+ Gr(l[i], this, r);
3080
3097
  return !0;
3081
3098
  };
3082
- function Cn(t, e, r, i) {
3099
+ function xn(t, e, r, i) {
3083
3100
  var s, a, c;
3084
- if (Dt(r), a = t._events, a === void 0 ? (a = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (a.newListener !== void 0 && (t.emit(
3101
+ if ($t(r), a = t._events, a === void 0 ? (a = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (a.newListener !== void 0 && (t.emit(
3085
3102
  "newListener",
3086
3103
  e,
3087
3104
  r.listener ? r.listener : r
3088
3105
  ), a = t._events), c = a[e]), c === void 0)
3089
3106
  c = a[e] = r, ++t._eventsCount;
3090
- else if (typeof c == "function" ? c = a[e] = i ? [r, c] : [c, r] : i ? c.unshift(r) : c.push(r), s = _n(t), s > 0 && c.length > s && !c.warned) {
3107
+ else if (typeof c == "function" ? c = a[e] = i ? [r, c] : [c, r] : i ? c.unshift(r) : c.push(r), s = kn(t), s > 0 && c.length > s && !c.warned) {
3091
3108
  c.warned = !0;
3092
3109
  var d = new Error("Possible EventEmitter memory leak detected. " + c.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
3093
- d.name = "MaxListenersExceededWarning", d.emitter = t, d.type = e, d.count = c.length, jo(d);
3110
+ d.name = "MaxListenersExceededWarning", d.emitter = t, d.type = e, d.count = c.length, qo(d);
3094
3111
  }
3095
3112
  return t;
3096
3113
  }
3097
3114
  G.prototype.addListener = function(e, r) {
3098
- return Cn(this, e, r, !1);
3115
+ return xn(this, e, r, !1);
3099
3116
  };
3100
3117
  G.prototype.on = G.prototype.addListener;
3101
3118
  G.prototype.prependListener = function(e, r) {
3102
- return Cn(this, e, r, !0);
3119
+ return xn(this, e, r, !0);
3103
3120
  };
3104
- function Mo() {
3121
+ function Qo() {
3105
3122
  if (!this.fired)
3106
3123
  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);
3107
3124
  }
3108
- function xn(t, e, r) {
3109
- var i = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s = Mo.bind(i);
3125
+ function Ln(t, e, r) {
3126
+ var i = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s = Qo.bind(i);
3110
3127
  return s.listener = r, i.wrapFn = s, s;
3111
3128
  }
3112
3129
  G.prototype.once = function(e, r) {
3113
- return Dt(r), this.on(e, xn(this, e, r)), this;
3130
+ return $t(r), this.on(e, Ln(this, e, r)), this;
3114
3131
  };
3115
3132
  G.prototype.prependOnceListener = function(e, r) {
3116
- return Dt(r), this.prependListener(e, xn(this, e, r)), this;
3133
+ return $t(r), this.prependListener(e, Ln(this, e, r)), this;
3117
3134
  };
3118
3135
  G.prototype.removeListener = function(e, r) {
3119
3136
  var i, s, a, c, d;
3120
- if (Dt(r), s = this._events, s === void 0)
3137
+ if ($t(r), s = this._events, s === void 0)
3121
3138
  return this;
3122
3139
  if (i = s[e], i === void 0)
3123
3140
  return this;
@@ -3131,7 +3148,7 @@ G.prototype.removeListener = function(e, r) {
3131
3148
  }
3132
3149
  if (a < 0)
3133
3150
  return this;
3134
- a === 0 ? i.shift() : Vo(i, a), i.length === 1 && (s[e] = i[0]), s.removeListener !== void 0 && this.emit("removeListener", e, d || r);
3151
+ a === 0 ? i.shift() : Go(i, a), i.length === 1 && (s[e] = i[0]), s.removeListener !== void 0 && this.emit("removeListener", e, d || r);
3135
3152
  }
3136
3153
  return this;
3137
3154
  };
@@ -3155,24 +3172,24 @@ G.prototype.removeAllListeners = function(e) {
3155
3172
  this.removeListener(e, r[s]);
3156
3173
  return this;
3157
3174
  };
3158
- function kn(t, e, r) {
3175
+ function Bn(t, e, r) {
3159
3176
  var i = t._events;
3160
3177
  if (i === void 0)
3161
3178
  return [];
3162
3179
  var s = i[e];
3163
- return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? qo(s) : Ln(s, s.length);
3180
+ return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? zo(s) : Rn(s, s.length);
3164
3181
  }
3165
3182
  G.prototype.listeners = function(e) {
3166
- return kn(this, e, !0);
3183
+ return Bn(this, e, !0);
3167
3184
  };
3168
3185
  G.prototype.rawListeners = function(e) {
3169
- return kn(this, e, !1);
3186
+ return Bn(this, e, !1);
3170
3187
  };
3171
3188
  G.listenerCount = function(t, e) {
3172
- return typeof t.listenerCount == "function" ? t.listenerCount(e) : Bn.call(t, e);
3189
+ return typeof t.listenerCount == "function" ? t.listenerCount(e) : Pn.call(t, e);
3173
3190
  };
3174
- G.prototype.listenerCount = Bn;
3175
- function Bn(t) {
3191
+ G.prototype.listenerCount = Pn;
3192
+ function Pn(t) {
3176
3193
  var e = this._events;
3177
3194
  if (e !== void 0) {
3178
3195
  var r = e[t];
@@ -3184,24 +3201,24 @@ function Bn(t) {
3184
3201
  return 0;
3185
3202
  }
3186
3203
  G.prototype.eventNames = function() {
3187
- return this._eventsCount > 0 ? vt(this._events) : [];
3204
+ return this._eventsCount > 0 ? At(this._events) : [];
3188
3205
  };
3189
- function Ln(t, e) {
3206
+ function Rn(t, e) {
3190
3207
  for (var r = new Array(e), i = 0; i < e; ++i)
3191
3208
  r[i] = t[i];
3192
3209
  return r;
3193
3210
  }
3194
- function Vo(t, e) {
3211
+ function Go(t, e) {
3195
3212
  for (; e + 1 < t.length; e++)
3196
3213
  t[e] = t[e + 1];
3197
3214
  t.pop();
3198
3215
  }
3199
- function qo(t) {
3216
+ function zo(t) {
3200
3217
  for (var e = new Array(t.length), r = 0; r < e.length; ++r)
3201
3218
  e[r] = t[r].listener || t[r];
3202
3219
  return e;
3203
3220
  }
3204
- function Qo(t, e) {
3221
+ function Ko(t, e) {
3205
3222
  return new Promise(function(r, i) {
3206
3223
  function s(c) {
3207
3224
  t.removeListener(e, a), i(c);
@@ -3209,13 +3226,13 @@ function Qo(t, e) {
3209
3226
  function a() {
3210
3227
  typeof t.removeListener == "function" && t.removeListener("error", s), r([].slice.call(arguments));
3211
3228
  }
3212
- Pn(t, e, a, { once: !0 }), e !== "error" && Go(t, s, { once: !0 });
3229
+ Dn(t, e, a, { once: !0 }), e !== "error" && Wo(t, s, { once: !0 });
3213
3230
  });
3214
3231
  }
3215
- function Go(t, e, r) {
3216
- typeof t.on == "function" && Pn(t, "error", e, r);
3232
+ function Wo(t, e, r) {
3233
+ typeof t.on == "function" && Dn(t, "error", e, r);
3217
3234
  }
3218
- function Pn(t, e, r, i) {
3235
+ function Dn(t, e, r, i) {
3219
3236
  if (typeof t.on == "function")
3220
3237
  i.once ? t.once(e, r) : t.on(e, r);
3221
3238
  else if (typeof t.addEventListener == "function")
@@ -3225,7 +3242,7 @@ function Pn(t, e, r, i) {
3225
3242
  else
3226
3243
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
3227
3244
  }
3228
- var Rn = Sr.exports, $t = {}, Nn = {}, Dn = function() {
3245
+ var Nn = Ar.exports, Ut = {}, $n = {}, Un = function() {
3229
3246
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
3230
3247
  return !1;
3231
3248
  if (typeof Symbol.iterator == "symbol")
@@ -3248,55 +3265,55 @@ var Rn = Sr.exports, $t = {}, Nn = {}, Dn = function() {
3248
3265
  return !1;
3249
3266
  }
3250
3267
  return !0;
3251
- }, zo = Dn, Ar = function() {
3252
- return zo() && !!Symbol.toStringTag;
3253
- }, Gr = typeof Symbol < "u" && Symbol, Ko = Dn, Wo = function() {
3254
- return typeof Gr != "function" || typeof Symbol != "function" || typeof Gr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Ko();
3255
- }, zr = {
3268
+ }, Ho = Un, Er = function() {
3269
+ return Ho() && !!Symbol.toStringTag;
3270
+ }, Kr = typeof Symbol < "u" && Symbol, Jo = Un, Yo = function() {
3271
+ return typeof Kr != "function" || typeof Symbol != "function" || typeof Kr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Jo();
3272
+ }, Wr = {
3256
3273
  foo: {}
3257
- }, Ho = Object, Jo = function() {
3258
- return { __proto__: zr }.foo === zr.foo && !({ __proto__: null } instanceof Ho);
3259
- }, Yo = "Function.prototype.bind called on incompatible ", Xo = Object.prototype.toString, Zo = Math.max, es = "[object Function]", Kr = function(e, r) {
3274
+ }, Xo = Object, Zo = function() {
3275
+ return { __proto__: Wr }.foo === Wr.foo && !({ __proto__: null } instanceof Xo);
3276
+ }, es = "Function.prototype.bind called on incompatible ", ts = Object.prototype.toString, rs = Math.max, ns = "[object Function]", Hr = function(e, r) {
3260
3277
  for (var i = [], s = 0; s < e.length; s += 1)
3261
3278
  i[s] = e[s];
3262
3279
  for (var a = 0; a < r.length; a += 1)
3263
3280
  i[a + e.length] = r[a];
3264
3281
  return i;
3265
- }, ts = function(e, r) {
3282
+ }, is = function(e, r) {
3266
3283
  for (var i = [], s = r || 0, a = 0; s < e.length; s += 1, a += 1)
3267
3284
  i[a] = e[s];
3268
3285
  return i;
3269
- }, rs = function(t, e) {
3286
+ }, os = function(t, e) {
3270
3287
  for (var r = "", i = 0; i < t.length; i += 1)
3271
3288
  r += t[i], i + 1 < t.length && (r += e);
3272
3289
  return r;
3273
- }, ns = function(e) {
3290
+ }, ss = function(e) {
3274
3291
  var r = this;
3275
- if (typeof r != "function" || Xo.apply(r) !== es)
3276
- throw new TypeError(Yo + r);
3277
- for (var i = ts(arguments, 1), s, a = function() {
3292
+ if (typeof r != "function" || ts.apply(r) !== ns)
3293
+ throw new TypeError(es + r);
3294
+ for (var i = is(arguments, 1), s, a = function() {
3278
3295
  if (this instanceof s) {
3279
3296
  var l = r.apply(
3280
3297
  this,
3281
- Kr(i, arguments)
3298
+ Hr(i, arguments)
3282
3299
  );
3283
3300
  return Object(l) === l ? l : this;
3284
3301
  }
3285
3302
  return r.apply(
3286
3303
  e,
3287
- Kr(i, arguments)
3304
+ Hr(i, arguments)
3288
3305
  );
3289
- }, c = Zo(0, r.length - i.length), d = [], p = 0; p < c; p++)
3306
+ }, c = rs(0, r.length - i.length), d = [], p = 0; p < c; p++)
3290
3307
  d[p] = "$" + p;
3291
- if (s = Function("binder", "return function (" + rs(d, ",") + "){ return binder.apply(this,arguments); }")(a), r.prototype) {
3308
+ if (s = Function("binder", "return function (" + os(d, ",") + "){ return binder.apply(this,arguments); }")(a), r.prototype) {
3292
3309
  var m = function() {
3293
3310
  };
3294
3311
  m.prototype = r.prototype, s.prototype = new m(), m.prototype = null;
3295
3312
  }
3296
3313
  return s;
3297
- }, is = ns, Er = Function.prototype.bind || is, os = Function.prototype.call, ss = Object.prototype.hasOwnProperty, as = Er, us = as.call(os, ss), U, ot = SyntaxError, $n = Function, it = TypeError, qt = function(t) {
3314
+ }, as = ss, Ir = Function.prototype.bind || as, us = Function.prototype.call, cs = Object.prototype.hasOwnProperty, ls = Ir, fs = ls.call(us, cs), U, ot = SyntaxError, jn = Function, it = TypeError, Qt = function(t) {
3298
3315
  try {
3299
- return $n('"use strict"; return (' + t + ").constructor;")();
3316
+ return jn('"use strict"; return (' + t + ").constructor;")();
3300
3317
  } catch {
3301
3318
  }
3302
3319
  }, qe = Object.getOwnPropertyDescriptor;
@@ -3306,21 +3323,21 @@ if (qe)
3306
3323
  } catch {
3307
3324
  qe = null;
3308
3325
  }
3309
- var Qt = function() {
3326
+ var Gt = function() {
3310
3327
  throw new it();
3311
- }, cs = qe ? function() {
3328
+ }, ds = qe ? function() {
3312
3329
  try {
3313
- return arguments.callee, Qt;
3330
+ return arguments.callee, Gt;
3314
3331
  } catch {
3315
3332
  try {
3316
3333
  return qe(arguments, "callee").get;
3317
3334
  } catch {
3318
- return Qt;
3335
+ return Gt;
3319
3336
  }
3320
3337
  }
3321
- }() : Qt, We = Wo(), ls = Jo(), X = Object.getPrototypeOf || (ls ? function(t) {
3338
+ }() : Gt, We = Yo(), hs = Zo(), X = Object.getPrototypeOf || (hs ? function(t) {
3322
3339
  return t.__proto__;
3323
- } : null), Je = {}, fs = typeof Uint8Array > "u" || !X ? U : X(Uint8Array), Qe = {
3340
+ } : null), Je = {}, ps = typeof Uint8Array > "u" || !X ? U : X(Uint8Array), Qe = {
3324
3341
  "%AggregateError%": typeof AggregateError > "u" ? U : AggregateError,
3325
3342
  "%Array%": Array,
3326
3343
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? U : ArrayBuffer,
@@ -3348,7 +3365,7 @@ var Qt = function() {
3348
3365
  "%Float32Array%": typeof Float32Array > "u" ? U : Float32Array,
3349
3366
  "%Float64Array%": typeof Float64Array > "u" ? U : Float64Array,
3350
3367
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? U : FinalizationRegistry,
3351
- "%Function%": $n,
3368
+ "%Function%": jn,
3352
3369
  "%GeneratorFunction%": Je,
3353
3370
  "%Int8Array%": typeof Int8Array > "u" ? U : Int8Array,
3354
3371
  "%Int16Array%": typeof Int16Array > "u" ? U : Int16Array,
@@ -3377,8 +3394,8 @@ var Qt = function() {
3377
3394
  "%StringIteratorPrototype%": We && X ? X(""[Symbol.iterator]()) : U,
3378
3395
  "%Symbol%": We ? Symbol : U,
3379
3396
  "%SyntaxError%": ot,
3380
- "%ThrowTypeError%": cs,
3381
- "%TypedArray%": fs,
3397
+ "%ThrowTypeError%": ds,
3398
+ "%TypedArray%": ps,
3382
3399
  "%TypeError%": it,
3383
3400
  "%Uint8Array%": typeof Uint8Array > "u" ? U : Uint8Array,
3384
3401
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? U : Uint8ClampedArray,
@@ -3393,17 +3410,17 @@ if (X)
3393
3410
  try {
3394
3411
  null.error;
3395
3412
  } catch (t) {
3396
- var ds = X(X(t));
3397
- Qe["%Error.prototype%"] = ds;
3413
+ var ys = X(X(t));
3414
+ Qe["%Error.prototype%"] = ys;
3398
3415
  }
3399
- var hs = function t(e) {
3416
+ var gs = function t(e) {
3400
3417
  var r;
3401
3418
  if (e === "%AsyncFunction%")
3402
- r = qt("async function () {}");
3419
+ r = Qt("async function () {}");
3403
3420
  else if (e === "%GeneratorFunction%")
3404
- r = qt("function* () {}");
3421
+ r = Qt("function* () {}");
3405
3422
  else if (e === "%AsyncGeneratorFunction%")
3406
- r = qt("async function* () {}");
3423
+ r = Qt("async function* () {}");
3407
3424
  else if (e === "%AsyncGenerator%") {
3408
3425
  var i = t("%AsyncGeneratorFunction%");
3409
3426
  i && (r = i.prototype);
@@ -3412,7 +3429,7 @@ var hs = function t(e) {
3412
3429
  s && X && (r = X(s.prototype));
3413
3430
  }
3414
3431
  return Qe[e] = r, r;
3415
- }, Wr = {
3432
+ }, Jr = {
3416
3433
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
3417
3434
  "%ArrayPrototype%": ["Array", "prototype"],
3418
3435
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -3464,21 +3481,21 @@ var hs = function t(e) {
3464
3481
  "%URIErrorPrototype%": ["URIError", "prototype"],
3465
3482
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3466
3483
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3467
- }, gt = Er, Ot = us, ps = gt.call(Function.call, Array.prototype.concat), ys = gt.call(Function.apply, Array.prototype.splice), Hr = gt.call(Function.call, String.prototype.replace), Tt = gt.call(Function.call, String.prototype.slice), gs = gt.call(Function.call, RegExp.prototype.exec), ms = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ws = /\\(\\)?/g, bs = function(e) {
3468
- var r = Tt(e, 0, 1), i = Tt(e, -1);
3484
+ }, mt = Ir, Tt = fs, ms = mt.call(Function.call, Array.prototype.concat), ws = mt.call(Function.apply, Array.prototype.splice), Yr = mt.call(Function.call, String.prototype.replace), Ct = mt.call(Function.call, String.prototype.slice), bs = mt.call(Function.call, RegExp.prototype.exec), vs = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ss = /\\(\\)?/g, As = function(e) {
3485
+ var r = Ct(e, 0, 1), i = Ct(e, -1);
3469
3486
  if (r === "%" && i !== "%")
3470
3487
  throw new ot("invalid intrinsic syntax, expected closing `%`");
3471
3488
  if (i === "%" && r !== "%")
3472
3489
  throw new ot("invalid intrinsic syntax, expected opening `%`");
3473
3490
  var s = [];
3474
- return Hr(e, ms, function(a, c, d, p) {
3475
- s[s.length] = d ? Hr(p, ws, "$1") : c || a;
3491
+ return Yr(e, vs, function(a, c, d, p) {
3492
+ s[s.length] = d ? Yr(p, Ss, "$1") : c || a;
3476
3493
  }), s;
3477
- }, vs = function(e, r) {
3494
+ }, Es = function(e, r) {
3478
3495
  var i = e, s;
3479
- if (Ot(Wr, i) && (s = Wr[i], i = "%" + s[0] + "%"), Ot(Qe, i)) {
3496
+ if (Tt(Jr, i) && (s = Jr[i], i = "%" + s[0] + "%"), Tt(Qe, i)) {
3480
3497
  var a = Qe[i];
3481
- if (a === Je && (a = hs(i)), typeof a > "u" && !r)
3498
+ if (a === Je && (a = gs(i)), typeof a > "u" && !r)
3482
3499
  throw new it("intrinsic " + e + " exists, but is not available. Please file an issue!");
3483
3500
  return {
3484
3501
  alias: s,
@@ -3492,15 +3509,15 @@ var hs = function t(e) {
3492
3509
  throw new it("intrinsic name must be a non-empty string");
3493
3510
  if (arguments.length > 1 && typeof r != "boolean")
3494
3511
  throw new it('"allowMissing" argument must be a boolean');
3495
- if (gs(/^%?[^%]*%?$/, e) === null)
3512
+ if (bs(/^%?[^%]*%?$/, e) === null)
3496
3513
  throw new ot("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3497
- var i = bs(e), s = i.length > 0 ? i[0] : "", a = vs("%" + s + "%", r), c = a.name, d = a.value, p = !1, m = a.alias;
3498
- m && (s = m[0], ys(i, ps([0, 1], m)));
3514
+ var i = As(e), s = i.length > 0 ? i[0] : "", a = Es("%" + s + "%", r), c = a.name, d = a.value, p = !1, m = a.alias;
3515
+ m && (s = m[0], ws(i, ms([0, 1], m)));
3499
3516
  for (var l = 1, w = !0; l < i.length; l += 1) {
3500
- var E = i[l], F = Tt(E, 0, 1), _ = Tt(E, -1);
3501
- if ((F === '"' || F === "'" || F === "`" || _ === '"' || _ === "'" || _ === "`") && F !== _)
3517
+ var E = i[l], F = Ct(E, 0, 1), T = Ct(E, -1);
3518
+ if ((F === '"' || F === "'" || F === "`" || T === '"' || T === "'" || T === "`") && F !== T)
3502
3519
  throw new ot("property names with quotes must have matching quotes");
3503
- if ((E === "constructor" || !w) && (p = !0), s += "." + E, c = "%" + s + "%", Ot(Qe, c))
3520
+ if ((E === "constructor" || !w) && (p = !0), s += "." + E, c = "%" + s + "%", Tt(Qe, c))
3504
3521
  d = Qe[c];
3505
3522
  else if (d != null) {
3506
3523
  if (!(E in d)) {
@@ -3509,47 +3526,47 @@ var hs = function t(e) {
3509
3526
  return;
3510
3527
  }
3511
3528
  if (qe && l + 1 >= i.length) {
3512
- var x = qe(d, E);
3513
- w = !!x, w && "get" in x && !("originalValue" in x.get) ? d = x.get : d = d[E];
3529
+ var k = qe(d, E);
3530
+ w = !!k, w && "get" in k && !("originalValue" in k.get) ? d = k.get : d = d[E];
3514
3531
  } else
3515
- w = Ot(d, E), d = d[E];
3532
+ w = Tt(d, E), d = d[E];
3516
3533
  w && !p && (Qe[c] = d);
3517
3534
  }
3518
3535
  }
3519
3536
  return d;
3520
- }, Un = { exports: {} }, Ss = at, or = Ss("%Object.defineProperty%", !0), sr = function() {
3521
- if (or)
3537
+ }, Mn = { exports: {} }, Is = at, sr = Is("%Object.defineProperty%", !0), ar = function() {
3538
+ if (sr)
3522
3539
  try {
3523
- return or({}, "a", { value: 1 }), !0;
3540
+ return sr({}, "a", { value: 1 }), !0;
3524
3541
  } catch {
3525
3542
  return !1;
3526
3543
  }
3527
3544
  return !1;
3528
3545
  };
3529
- sr.hasArrayLengthDefineBug = function() {
3530
- if (!sr())
3546
+ ar.hasArrayLengthDefineBug = function() {
3547
+ if (!ar())
3531
3548
  return null;
3532
3549
  try {
3533
- return or([], "length", { value: 1 }).length !== 1;
3550
+ return sr([], "length", { value: 1 }).length !== 1;
3534
3551
  } catch {
3535
3552
  return !0;
3536
3553
  }
3537
3554
  };
3538
- var jn = sr, As = at, St = As("%Object.getOwnPropertyDescriptor%", !0);
3539
- if (St)
3555
+ var Vn = ar, Fs = at, Et = Fs("%Object.getOwnPropertyDescriptor%", !0);
3556
+ if (Et)
3540
3557
  try {
3541
- St([], "length");
3558
+ Et([], "length");
3542
3559
  } catch {
3543
- St = null;
3560
+ Et = null;
3544
3561
  }
3545
- var Ir = St, Es = jn(), Fr = at, ht = Es && Fr("%Object.defineProperty%", !0);
3562
+ var Fr = Et, Os = Vn(), Or = at, ht = Os && Or("%Object.defineProperty%", !0);
3546
3563
  if (ht)
3547
3564
  try {
3548
3565
  ht({}, "a", { value: 1 });
3549
3566
  } catch {
3550
3567
  ht = !1;
3551
3568
  }
3552
- var Is = Fr("%SyntaxError%"), He = Fr("%TypeError%"), Jr = Ir, Fs = function(e, r, i) {
3569
+ var _s = Or("%SyntaxError%"), He = Or("%TypeError%"), Xr = Fr, Ts = function(e, r, i) {
3553
3570
  if (!e || typeof e != "object" && typeof e != "function")
3554
3571
  throw new He("`obj` must be an object or a function`");
3555
3572
  if (typeof r != "string" && typeof r != "symbol")
@@ -3562,7 +3579,7 @@ var Is = Fr("%SyntaxError%"), He = Fr("%TypeError%"), Jr = Ir, Fs = function(e,
3562
3579
  throw new He("`nonConfigurable`, if provided, must be a boolean or null");
3563
3580
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
3564
3581
  throw new He("`loose`, if provided, must be a boolean");
3565
- var s = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, c = arguments.length > 5 ? arguments[5] : null, d = arguments.length > 6 ? arguments[6] : !1, p = !!Jr && Jr(e, r);
3582
+ var s = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, c = arguments.length > 5 ? arguments[5] : null, d = arguments.length > 6 ? arguments[6] : !1, p = !!Xr && Xr(e, r);
3566
3583
  if (ht)
3567
3584
  ht(e, r, {
3568
3585
  configurable: c === null && p ? p.configurable : !c,
@@ -3573,25 +3590,25 @@ var Is = Fr("%SyntaxError%"), He = Fr("%TypeError%"), Jr = Ir, Fs = function(e,
3573
3590
  else if (d || !s && !a && !c)
3574
3591
  e[r] = i;
3575
3592
  else
3576
- throw new Is("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
3577
- }, Mn = at, Yr = Fs, Os = jn(), Xr = Ir, Zr = Mn("%TypeError%"), Ts = Mn("%Math.floor%"), _s = function(e, r) {
3593
+ throw new _s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
3594
+ }, qn = at, Zr = Ts, Cs = Vn(), en = Fr, tn = qn("%TypeError%"), ks = qn("%Math.floor%"), xs = function(e, r) {
3578
3595
  if (typeof e != "function")
3579
- throw new Zr("`fn` is not a function");
3580
- if (typeof r != "number" || r < 0 || r > 4294967295 || Ts(r) !== r)
3581
- throw new Zr("`length` must be a positive 32-bit integer");
3596
+ throw new tn("`fn` is not a function");
3597
+ if (typeof r != "number" || r < 0 || r > 4294967295 || ks(r) !== r)
3598
+ throw new tn("`length` must be a positive 32-bit integer");
3582
3599
  var i = arguments.length > 2 && !!arguments[2], s = !0, a = !0;
3583
- if ("length" in e && Xr) {
3584
- var c = Xr(e, "length");
3600
+ if ("length" in e && en) {
3601
+ var c = en(e, "length");
3585
3602
  c && !c.configurable && (s = !1), c && !c.writable && (a = !1);
3586
3603
  }
3587
- return (s || a || !i) && (Os ? Yr(
3604
+ return (s || a || !i) && (Cs ? Zr(
3588
3605
  /** @type {Parameters<define>[0]} */
3589
3606
  e,
3590
3607
  "length",
3591
3608
  r,
3592
3609
  !0,
3593
3610
  !0
3594
- ) : Yr(
3611
+ ) : Zr(
3595
3612
  /** @type {Parameters<define>[0]} */
3596
3613
  e,
3597
3614
  "length",
@@ -3599,7 +3616,7 @@ var Is = Fr("%SyntaxError%"), He = Fr("%TypeError%"), Jr = Ir, Fs = function(e,
3599
3616
  )), e;
3600
3617
  };
3601
3618
  (function(t) {
3602
- var e = Er, r = at, i = _s, s = r("%TypeError%"), a = r("%Function.prototype.apply%"), c = r("%Function.prototype.call%"), d = r("%Reflect.apply%", !0) || e.call(c, a), p = r("%Object.defineProperty%", !0), m = r("%Math.max%");
3619
+ var e = Ir, r = at, i = xs, s = r("%TypeError%"), a = r("%Function.prototype.apply%"), c = r("%Function.prototype.call%"), d = r("%Reflect.apply%", !0) || e.call(c, a), p = r("%Object.defineProperty%", !0), m = r("%Math.max%");
3603
3620
  if (p)
3604
3621
  try {
3605
3622
  p({}, "a", { value: 1 });
@@ -3620,122 +3637,122 @@ var Is = Fr("%SyntaxError%"), He = Fr("%TypeError%"), Jr = Ir, Fs = function(e,
3620
3637
  return d(e, a, arguments);
3621
3638
  };
3622
3639
  p ? p(t.exports, "apply", { value: l }) : t.exports.apply = l;
3623
- })(Un);
3624
- var Vn = Un.exports, qn = at, Qn = Vn, Cs = Qn(qn("String.prototype.indexOf")), Gn = function(e, r) {
3625
- var i = qn(e, !!r);
3626
- return typeof i == "function" && Cs(e, ".prototype.") > -1 ? Qn(i) : i;
3627
- }, xs = Ar(), ks = Gn, ar = ks("Object.prototype.toString"), Ut = function(e) {
3628
- return xs && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : ar(e) === "[object Arguments]";
3629
- }, zn = function(e) {
3630
- return Ut(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && ar(e) !== "[object Array]" && ar(e.callee) === "[object Function]";
3631
- }, Bs = function() {
3632
- return Ut(arguments);
3640
+ })(Mn);
3641
+ var Qn = Mn.exports, Gn = at, zn = Qn, Ls = zn(Gn("String.prototype.indexOf")), Kn = function(e, r) {
3642
+ var i = Gn(e, !!r);
3643
+ return typeof i == "function" && Ls(e, ".prototype.") > -1 ? zn(i) : i;
3644
+ }, Bs = Er(), Ps = Kn, ur = Ps("Object.prototype.toString"), jt = function(e) {
3645
+ return Bs && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : ur(e) === "[object Arguments]";
3646
+ }, Wn = function(e) {
3647
+ return jt(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && ur(e) !== "[object Array]" && ur(e.callee) === "[object Function]";
3648
+ }, Rs = function() {
3649
+ return jt(arguments);
3633
3650
  }();
3634
- Ut.isLegacyArguments = zn;
3635
- var Ls = Bs ? Ut : zn, Ps = Object.prototype.toString, Rs = Function.prototype.toString, Ns = /^\s*(?:function)?\*/, Kn = Ar(), Gt = Object.getPrototypeOf, Ds = function() {
3636
- if (!Kn)
3651
+ jt.isLegacyArguments = Wn;
3652
+ var Ds = Rs ? jt : Wn, Ns = Object.prototype.toString, $s = Function.prototype.toString, Us = /^\s*(?:function)?\*/, Hn = Er(), zt = Object.getPrototypeOf, js = function() {
3653
+ if (!Hn)
3637
3654
  return !1;
3638
3655
  try {
3639
3656
  return Function("return function*() {}")();
3640
3657
  } catch {
3641
3658
  }
3642
- }, zt, $s = function(e) {
3659
+ }, Kt, Ms = function(e) {
3643
3660
  if (typeof e != "function")
3644
3661
  return !1;
3645
- if (Ns.test(Rs.call(e)))
3662
+ if (Us.test($s.call(e)))
3646
3663
  return !0;
3647
- if (!Kn) {
3648
- var r = Ps.call(e);
3664
+ if (!Hn) {
3665
+ var r = Ns.call(e);
3649
3666
  return r === "[object GeneratorFunction]";
3650
3667
  }
3651
- if (!Gt)
3668
+ if (!zt)
3652
3669
  return !1;
3653
- if (typeof zt > "u") {
3654
- var i = Ds();
3655
- zt = i ? Gt(i) : !1;
3670
+ if (typeof Kt > "u") {
3671
+ var i = js();
3672
+ Kt = i ? zt(i) : !1;
3656
3673
  }
3657
- return Gt(e) === zt;
3658
- }, Wn = Function.prototype.toString, Ze = typeof Reflect == "object" && Reflect !== null && Reflect.apply, ur, At;
3674
+ return zt(e) === Kt;
3675
+ }, Jn = Function.prototype.toString, Ze = typeof Reflect == "object" && Reflect !== null && Reflect.apply, cr, It;
3659
3676
  if (typeof Ze == "function" && typeof Object.defineProperty == "function")
3660
3677
  try {
3661
- ur = Object.defineProperty({}, "length", {
3678
+ cr = Object.defineProperty({}, "length", {
3662
3679
  get: function() {
3663
- throw At;
3680
+ throw It;
3664
3681
  }
3665
- }), At = {}, Ze(function() {
3682
+ }), It = {}, Ze(function() {
3666
3683
  throw 42;
3667
- }, null, ur);
3684
+ }, null, cr);
3668
3685
  } catch (t) {
3669
- t !== At && (Ze = null);
3686
+ t !== It && (Ze = null);
3670
3687
  }
3671
3688
  else
3672
3689
  Ze = null;
3673
- var Us = /^\s*class\b/, cr = function(e) {
3690
+ var Vs = /^\s*class\b/, lr = function(e) {
3674
3691
  try {
3675
- var r = Wn.call(e);
3676
- return Us.test(r);
3692
+ var r = Jn.call(e);
3693
+ return Vs.test(r);
3677
3694
  } catch {
3678
3695
  return !1;
3679
3696
  }
3680
- }, Kt = function(e) {
3697
+ }, Wt = function(e) {
3681
3698
  try {
3682
- return cr(e) ? !1 : (Wn.call(e), !0);
3699
+ return lr(e) ? !1 : (Jn.call(e), !0);
3683
3700
  } catch {
3684
3701
  return !1;
3685
3702
  }
3686
- }, Et = Object.prototype.toString, js = "[object Object]", Ms = "[object Function]", Vs = "[object GeneratorFunction]", qs = "[object HTMLAllCollection]", Qs = "[object HTML document.all class]", Gs = "[object HTMLCollection]", zs = typeof Symbol == "function" && !!Symbol.toStringTag, Ks = !(0 in [,]), lr = function() {
3703
+ }, Ft = Object.prototype.toString, qs = "[object Object]", Qs = "[object Function]", Gs = "[object GeneratorFunction]", zs = "[object HTMLAllCollection]", Ks = "[object HTML document.all class]", Ws = "[object HTMLCollection]", Hs = typeof Symbol == "function" && !!Symbol.toStringTag, Js = !(0 in [,]), fr = function() {
3687
3704
  return !1;
3688
3705
  };
3689
3706
  if (typeof document == "object") {
3690
- var Ws = document.all;
3691
- Et.call(Ws) === Et.call(document.all) && (lr = function(e) {
3692
- if ((Ks || !e) && (typeof e > "u" || typeof e == "object"))
3707
+ var Ys = document.all;
3708
+ Ft.call(Ys) === Ft.call(document.all) && (fr = function(e) {
3709
+ if ((Js || !e) && (typeof e > "u" || typeof e == "object"))
3693
3710
  try {
3694
- var r = Et.call(e);
3695
- return (r === qs || r === Qs || r === Gs || r === js) && e("") == null;
3711
+ var r = Ft.call(e);
3712
+ return (r === zs || r === Ks || r === Ws || r === qs) && e("") == null;
3696
3713
  } catch {
3697
3714
  }
3698
3715
  return !1;
3699
3716
  });
3700
3717
  }
3701
- var Hs = Ze ? function(e) {
3702
- if (lr(e))
3718
+ var Xs = Ze ? function(e) {
3719
+ if (fr(e))
3703
3720
  return !0;
3704
3721
  if (!e || typeof e != "function" && typeof e != "object")
3705
3722
  return !1;
3706
3723
  try {
3707
- Ze(e, null, ur);
3724
+ Ze(e, null, cr);
3708
3725
  } catch (r) {
3709
- if (r !== At)
3726
+ if (r !== It)
3710
3727
  return !1;
3711
3728
  }
3712
- return !cr(e) && Kt(e);
3729
+ return !lr(e) && Wt(e);
3713
3730
  } : function(e) {
3714
- if (lr(e))
3731
+ if (fr(e))
3715
3732
  return !0;
3716
3733
  if (!e || typeof e != "function" && typeof e != "object")
3717
3734
  return !1;
3718
- if (zs)
3719
- return Kt(e);
3720
- if (cr(e))
3735
+ if (Hs)
3736
+ return Wt(e);
3737
+ if (lr(e))
3721
3738
  return !1;
3722
- var r = Et.call(e);
3723
- return r !== Ms && r !== Vs && !/^\[object HTML/.test(r) ? !1 : Kt(e);
3724
- }, Js = Hs, Ys = Object.prototype.toString, Hn = Object.prototype.hasOwnProperty, Xs = function(e, r, i) {
3739
+ var r = Ft.call(e);
3740
+ return r !== Qs && r !== Gs && !/^\[object HTML/.test(r) ? !1 : Wt(e);
3741
+ }, Zs = Xs, ea = Object.prototype.toString, Yn = Object.prototype.hasOwnProperty, ta = function(e, r, i) {
3725
3742
  for (var s = 0, a = e.length; s < a; s++)
3726
- Hn.call(e, s) && (i == null ? r(e[s], s, e) : r.call(i, e[s], s, e));
3727
- }, Zs = function(e, r, i) {
3743
+ Yn.call(e, s) && (i == null ? r(e[s], s, e) : r.call(i, e[s], s, e));
3744
+ }, ra = function(e, r, i) {
3728
3745
  for (var s = 0, a = e.length; s < a; s++)
3729
3746
  i == null ? r(e.charAt(s), s, e) : r.call(i, e.charAt(s), s, e);
3730
- }, ea = function(e, r, i) {
3747
+ }, na = function(e, r, i) {
3731
3748
  for (var s in e)
3732
- Hn.call(e, s) && (i == null ? r(e[s], s, e) : r.call(i, e[s], s, e));
3733
- }, ta = function(e, r, i) {
3734
- if (!Js(r))
3749
+ Yn.call(e, s) && (i == null ? r(e[s], s, e) : r.call(i, e[s], s, e));
3750
+ }, ia = function(e, r, i) {
3751
+ if (!Zs(r))
3735
3752
  throw new TypeError("iterator must be a function");
3736
3753
  var s;
3737
- arguments.length >= 3 && (s = i), Ys.call(e) === "[object Array]" ? Xs(e, r, s) : typeof e == "string" ? Zs(e, r, s) : ea(e, r, s);
3738
- }, ra = ta, Wt = [
3754
+ arguments.length >= 3 && (s = i), ea.call(e) === "[object Array]" ? ta(e, r, s) : typeof e == "string" ? ra(e, r, s) : na(e, r, s);
3755
+ }, oa = ia, Ht = [
3739
3756
  "BigInt64Array",
3740
3757
  "BigUint64Array",
3741
3758
  "Float32Array",
@@ -3747,61 +3764,61 @@ var Hs = Ze ? function(e) {
3747
3764
  "Uint32Array",
3748
3765
  "Uint8Array",
3749
3766
  "Uint8ClampedArray"
3750
- ], na = typeof globalThis > "u" ? En : globalThis, ia = function() {
3751
- for (var e = [], r = 0; r < Wt.length; r++)
3752
- typeof na[Wt[r]] == "function" && (e[e.length] = Wt[r]);
3767
+ ], sa = typeof globalThis > "u" ? Fn : globalThis, aa = function() {
3768
+ for (var e = [], r = 0; r < Ht.length; r++)
3769
+ typeof sa[Ht[r]] == "function" && (e[e.length] = Ht[r]);
3753
3770
  return e;
3754
- }, _t = ra, oa = ia, en = Vn, Or = Gn, It = Ir, sa = Or("Object.prototype.toString"), Jn = Ar(), tn = typeof globalThis > "u" ? En : globalThis, fr = oa(), Tr = Or("String.prototype.slice"), Ht = Object.getPrototypeOf, aa = Or("Array.prototype.indexOf", !0) || function(e, r) {
3771
+ }, kt = oa, ua = aa, rn = Qn, _r = Kn, Ot = Fr, ca = _r("Object.prototype.toString"), Xn = Er(), nn = typeof globalThis > "u" ? Fn : globalThis, dr = ua(), Tr = _r("String.prototype.slice"), Jt = Object.getPrototypeOf, la = _r("Array.prototype.indexOf", !0) || function(e, r) {
3755
3772
  for (var i = 0; i < e.length; i += 1)
3756
3773
  if (e[i] === r)
3757
3774
  return i;
3758
3775
  return -1;
3759
- }, Ct = { __proto__: null };
3760
- Jn && It && Ht ? _t(fr, function(t) {
3761
- var e = new tn[t]();
3776
+ }, xt = { __proto__: null };
3777
+ Xn && Ot && Jt ? kt(dr, function(t) {
3778
+ var e = new nn[t]();
3762
3779
  if (Symbol.toStringTag in e) {
3763
- var r = Ht(e), i = It(r, Symbol.toStringTag);
3780
+ var r = Jt(e), i = Ot(r, Symbol.toStringTag);
3764
3781
  if (!i) {
3765
- var s = Ht(r);
3766
- i = It(s, Symbol.toStringTag);
3782
+ var s = Jt(r);
3783
+ i = Ot(s, Symbol.toStringTag);
3767
3784
  }
3768
- Ct["$" + t] = en(i.get);
3785
+ xt["$" + t] = rn(i.get);
3769
3786
  }
3770
- }) : _t(fr, function(t) {
3771
- var e = new tn[t](), r = e.slice || e.set;
3772
- r && (Ct["$" + t] = en(r));
3787
+ }) : kt(dr, function(t) {
3788
+ var e = new nn[t](), r = e.slice || e.set;
3789
+ r && (xt["$" + t] = rn(r));
3773
3790
  });
3774
- var ua = function(e) {
3791
+ var fa = function(e) {
3775
3792
  var r = !1;
3776
- return _t(Ct, function(i, s) {
3793
+ return kt(xt, function(i, s) {
3777
3794
  if (!r)
3778
3795
  try {
3779
3796
  "$" + i(e) === s && (r = Tr(s, 1));
3780
3797
  } catch {
3781
3798
  }
3782
3799
  }), r;
3783
- }, ca = function(e) {
3800
+ }, da = function(e) {
3784
3801
  var r = !1;
3785
- return _t(Ct, function(i, s) {
3802
+ return kt(xt, function(i, s) {
3786
3803
  if (!r)
3787
3804
  try {
3788
3805
  i(e), r = Tr(s, 1);
3789
3806
  } catch {
3790
3807
  }
3791
3808
  }), r;
3792
- }, Yn = function(e) {
3809
+ }, Zn = function(e) {
3793
3810
  if (!e || typeof e != "object")
3794
3811
  return !1;
3795
- if (!Jn) {
3796
- var r = Tr(sa(e), 8, -1);
3797
- return aa(fr, r) > -1 ? r : r !== "Object" ? !1 : ca(e);
3812
+ if (!Xn) {
3813
+ var r = Tr(ca(e), 8, -1);
3814
+ return la(dr, r) > -1 ? r : r !== "Object" ? !1 : da(e);
3798
3815
  }
3799
- return It ? ua(e) : null;
3800
- }, la = Yn, fa = function(e) {
3801
- return !!la(e);
3816
+ return Ot ? fa(e) : null;
3817
+ }, ha = Zn, pa = function(e) {
3818
+ return !!ha(e);
3802
3819
  };
3803
3820
  (function(t) {
3804
- var e = Ls, r = $s, i = Yn, s = fa;
3821
+ var e = Ds, r = Ms, i = Zn, s = pa;
3805
3822
  function a(A) {
3806
3823
  return A.call.bind(A);
3807
3824
  }
@@ -3810,7 +3827,7 @@ var ua = function(e) {
3810
3827
  var E = a(BigInt.prototype.valueOf);
3811
3828
  if (d)
3812
3829
  var F = a(Symbol.prototype.valueOf);
3813
- function _(A, lt) {
3830
+ function T(A, lt) {
3814
3831
  if (typeof A != "object")
3815
3832
  return !1;
3816
3833
  try {
@@ -3820,42 +3837,42 @@ var ua = function(e) {
3820
3837
  }
3821
3838
  }
3822
3839
  t.isArgumentsObject = e, t.isGeneratorFunction = r, t.isTypedArray = s;
3823
- function x(A) {
3840
+ function k(A) {
3824
3841
  return typeof Promise < "u" && A instanceof Promise || A !== null && typeof A == "object" && typeof A.then == "function" && typeof A.catch == "function";
3825
3842
  }
3826
- t.isPromise = x;
3827
- function N(A) {
3843
+ t.isPromise = k;
3844
+ function D(A) {
3828
3845
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(A) : s(A) || v(A);
3829
3846
  }
3830
- t.isArrayBufferView = N;
3847
+ t.isArrayBufferView = D;
3831
3848
  function I(A) {
3832
3849
  return i(A) === "Uint8Array";
3833
3850
  }
3834
3851
  t.isUint8Array = I;
3835
- function T(A) {
3852
+ function _(A) {
3836
3853
  return i(A) === "Uint8ClampedArray";
3837
3854
  }
3838
- t.isUint8ClampedArray = T;
3855
+ t.isUint8ClampedArray = _;
3839
3856
  function j(A) {
3840
3857
  return i(A) === "Uint16Array";
3841
3858
  }
3842
3859
  t.isUint16Array = j;
3843
- function L(A) {
3860
+ function B(A) {
3844
3861
  return i(A) === "Uint32Array";
3845
3862
  }
3846
- t.isUint32Array = L;
3863
+ t.isUint32Array = B;
3847
3864
  function C(A) {
3848
3865
  return i(A) === "Int8Array";
3849
3866
  }
3850
3867
  t.isInt8Array = C;
3851
- function k(A) {
3868
+ function x(A) {
3852
3869
  return i(A) === "Int16Array";
3853
3870
  }
3854
- t.isInt16Array = k;
3855
- function B(A) {
3871
+ t.isInt16Array = x;
3872
+ function L(A) {
3856
3873
  return i(A) === "Int32Array";
3857
3874
  }
3858
- t.isInt32Array = B;
3875
+ t.isInt32Array = L;
3859
3876
  function q(A) {
3860
3877
  return i(A) === "Float32Array";
3861
3878
  }
@@ -3864,14 +3881,14 @@ var ua = function(e) {
3864
3881
  return i(A) === "Float64Array";
3865
3882
  }
3866
3883
  t.isFloat64Array = ne;
3867
- function we(A) {
3884
+ function be(A) {
3868
3885
  return i(A) === "BigInt64Array";
3869
3886
  }
3870
- t.isBigInt64Array = we;
3871
- function be(A) {
3887
+ t.isBigInt64Array = be;
3888
+ function ve(A) {
3872
3889
  return i(A) === "BigUint64Array";
3873
3890
  }
3874
- t.isBigUint64Array = be;
3891
+ t.isBigUint64Array = ve;
3875
3892
  function ae(A) {
3876
3893
  return p(A) === "[object Map]";
3877
3894
  }
@@ -3884,10 +3901,10 @@ var ua = function(e) {
3884
3901
  return p(A) === "[object Set]";
3885
3902
  }
3886
3903
  he.working = typeof Set < "u" && he(/* @__PURE__ */ new Set());
3887
- function Pe(A) {
3904
+ function Re(A) {
3888
3905
  return typeof Set > "u" ? !1 : he.working ? he(A) : A instanceof Set;
3889
3906
  }
3890
- t.isSet = Pe;
3907
+ t.isSet = Re;
3891
3908
  function xe(A) {
3892
3909
  return p(A) === "[object WeakMap]";
3893
3910
  }
@@ -3896,20 +3913,20 @@ var ua = function(e) {
3896
3913
  return typeof WeakMap > "u" ? !1 : xe.working ? xe(A) : A instanceof WeakMap;
3897
3914
  }
3898
3915
  t.isWeakMap = Ge;
3899
- function ve(A) {
3916
+ function Se(A) {
3900
3917
  return p(A) === "[object WeakSet]";
3901
3918
  }
3902
- ve.working = typeof WeakSet < "u" && ve(/* @__PURE__ */ new WeakSet());
3919
+ Se.working = typeof WeakSet < "u" && Se(/* @__PURE__ */ new WeakSet());
3903
3920
  function ue(A) {
3904
- return ve(A);
3921
+ return Se(A);
3905
3922
  }
3906
3923
  t.isWeakSet = ue;
3907
- function ke(A) {
3924
+ function Le(A) {
3908
3925
  return p(A) === "[object ArrayBuffer]";
3909
3926
  }
3910
- ke.working = typeof ArrayBuffer < "u" && ke(new ArrayBuffer());
3927
+ Le.working = typeof ArrayBuffer < "u" && Le(new ArrayBuffer());
3911
3928
  function ze(A) {
3912
- return typeof ArrayBuffer > "u" ? !1 : ke.working ? ke(A) : A instanceof ArrayBuffer;
3929
+ return typeof ArrayBuffer > "u" ? !1 : Le.working ? Le(A) : A instanceof ArrayBuffer;
3913
3930
  }
3914
3931
  t.isArrayBuffer = ze;
3915
3932
  function g(A) {
@@ -3949,33 +3966,33 @@ var ua = function(e) {
3949
3966
  }
3950
3967
  t.isWebAssemblyCompiledModule = J;
3951
3968
  function ce(A) {
3952
- return _(A, m);
3969
+ return T(A, m);
3953
3970
  }
3954
3971
  t.isNumberObject = ce;
3955
- function Re(A) {
3956
- return _(A, l);
3972
+ function De(A) {
3973
+ return T(A, l);
3957
3974
  }
3958
- t.isStringObject = Re;
3975
+ t.isStringObject = De;
3959
3976
  function Be(A) {
3960
- return _(A, w);
3977
+ return T(A, w);
3961
3978
  }
3962
3979
  t.isBooleanObject = Be;
3963
3980
  function Ne(A) {
3964
- return c && _(A, E);
3981
+ return c && T(A, E);
3965
3982
  }
3966
3983
  t.isBigIntObject = Ne;
3967
- function Se(A) {
3968
- return d && _(A, F);
3984
+ function Ae(A) {
3985
+ return d && T(A, F);
3969
3986
  }
3970
- t.isSymbolObject = Se;
3971
- function De(A) {
3972
- return ce(A) || Re(A) || Be(A) || Ne(A) || Se(A);
3987
+ t.isSymbolObject = Ae;
3988
+ function $e(A) {
3989
+ return ce(A) || De(A) || Be(A) || Ne(A) || Ae(A);
3973
3990
  }
3974
- t.isBoxedPrimitive = De;
3975
- function jt(A) {
3991
+ t.isBoxedPrimitive = $e;
3992
+ function Mt(A) {
3976
3993
  return typeof Uint8Array < "u" && (ze(A) || M(A));
3977
3994
  }
3978
- t.isAnyArrayBuffer = jt, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(A) {
3995
+ t.isAnyArrayBuffer = Mt, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(A) {
3979
3996
  Object.defineProperty(t, A, {
3980
3997
  enumerable: !1,
3981
3998
  value: function() {
@@ -3983,11 +4000,11 @@ var ua = function(e) {
3983
4000
  }
3984
4001
  });
3985
4002
  });
3986
- })(Nn);
3987
- var da = function(e) {
4003
+ })($n);
4004
+ var ya = function(e) {
3988
4005
  return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
3989
- }, dr = { exports: {} };
3990
- typeof Object.create == "function" ? dr.exports = function(e, r) {
4006
+ }, hr = { exports: {} };
4007
+ typeof Object.create == "function" ? hr.exports = function(e, r) {
3991
4008
  r && (e.super_ = r, e.prototype = Object.create(r.prototype, {
3992
4009
  constructor: {
3993
4010
  value: e,
@@ -3996,7 +4013,7 @@ typeof Object.create == "function" ? dr.exports = function(e, r) {
3996
4013
  configurable: !0
3997
4014
  }
3998
4015
  }));
3999
- } : dr.exports = function(e, r) {
4016
+ } : hr.exports = function(e, r) {
4000
4017
  if (r) {
4001
4018
  e.super_ = r;
4002
4019
  var i = function() {
@@ -4004,7 +4021,7 @@ typeof Object.create == "function" ? dr.exports = function(e, r) {
4004
4021
  i.prototype = r.prototype, e.prototype = new i(), e.prototype.constructor = e;
4005
4022
  }
4006
4023
  };
4007
- var ha = dr.exports;
4024
+ var ga = hr.exports;
4008
4025
  (function(t) {
4009
4026
  var e = Object.getOwnPropertyDescriptors || function(v) {
4010
4027
  for (var S = Object.keys(v), O = {}, M = 0; M < S.length; M++)
@@ -4037,7 +4054,7 @@ var ha = dr.exports;
4037
4054
  return $;
4038
4055
  }
4039
4056
  }), R = O[S]; S < M; R = O[++S])
4040
- T(R) || !ne(R) ? V += " " + R : V += " " + c(R);
4057
+ _(R) || !ne(R) ? V += " " + R : V += " " + c(R);
4041
4058
  return V;
4042
4059
  }, t.deprecate = function(g, v) {
4043
4060
  if (typeof P < "u" && P.noDeprecation === !0)
@@ -4080,7 +4097,7 @@ var ha = dr.exports;
4080
4097
  seen: [],
4081
4098
  stylize: p
4082
4099
  };
4083
- return arguments.length >= 3 && (S.depth = arguments[2]), arguments.length >= 4 && (S.colors = arguments[3]), I(v) ? S.showHidden = v : v && t._extend(S, v), B(S.showHidden) && (S.showHidden = !1), B(S.depth) && (S.depth = 2), B(S.colors) && (S.colors = !1), B(S.customInspect) && (S.customInspect = !0), S.colors && (S.stylize = d), l(S, g, S.depth);
4100
+ return arguments.length >= 3 && (S.depth = arguments[2]), arguments.length >= 4 && (S.colors = arguments[3]), I(v) ? S.showHidden = v : v && t._extend(S, v), L(S.showHidden) && (S.showHidden = !1), L(S.depth) && (S.depth = 2), L(S.colors) && (S.colors = !1), L(S.customInspect) && (S.customInspect = !0), S.colors && (S.stylize = d), l(S, g, S.depth);
4084
4101
  }
4085
4102
  t.inspect = c, c.colors = {
4086
4103
  bold: [1, 22],
@@ -4131,7 +4148,7 @@ var ha = dr.exports;
4131
4148
  if (M)
4132
4149
  return M;
4133
4150
  var V = Object.keys(v), R = m(V);
4134
- if (g.showHidden && (V = Object.getOwnPropertyNames(v)), be(v) && (V.indexOf("message") >= 0 || V.indexOf("description") >= 0))
4151
+ if (g.showHidden && (V = Object.getOwnPropertyNames(v)), ve(v) && (V.indexOf("message") >= 0 || V.indexOf("description") >= 0))
4135
4152
  return E(v);
4136
4153
  if (V.length === 0) {
4137
4154
  if (ae(v)) {
@@ -4140,38 +4157,38 @@ var ha = dr.exports;
4140
4157
  }
4141
4158
  if (q(v))
4142
4159
  return g.stylize(RegExp.prototype.toString.call(v), "regexp");
4143
- if (we(v))
4144
- return g.stylize(Date.prototype.toString.call(v), "date");
4145
4160
  if (be(v))
4161
+ return g.stylize(Date.prototype.toString.call(v), "date");
4162
+ if (ve(v))
4146
4163
  return E(v);
4147
4164
  }
4148
4165
  var Q = "", J = !1, ce = ["{", "}"];
4149
- if (N(v) && (J = !0, ce = ["[", "]"]), ae(v)) {
4150
- var Re = v.name ? ": " + v.name : "";
4151
- Q = " [Function" + Re + "]";
4166
+ if (D(v) && (J = !0, ce = ["[", "]"]), ae(v)) {
4167
+ var De = v.name ? ": " + v.name : "";
4168
+ Q = " [Function" + De + "]";
4152
4169
  }
4153
- if (q(v) && (Q = " " + RegExp.prototype.toString.call(v)), we(v) && (Q = " " + Date.prototype.toUTCString.call(v)), be(v) && (Q = " " + E(v)), V.length === 0 && (!J || v.length == 0))
4170
+ if (q(v) && (Q = " " + RegExp.prototype.toString.call(v)), be(v) && (Q = " " + Date.prototype.toUTCString.call(v)), ve(v) && (Q = " " + E(v)), V.length === 0 && (!J || v.length == 0))
4154
4171
  return ce[0] + Q + ce[1];
4155
4172
  if (S < 0)
4156
4173
  return q(v) ? g.stylize(RegExp.prototype.toString.call(v), "regexp") : g.stylize("[Object]", "special");
4157
4174
  g.seen.push(v);
4158
4175
  var Be;
4159
4176
  return J ? Be = F(g, v, S, R, V) : Be = V.map(function(Ne) {
4160
- return _(g, v, S, R, Ne, J);
4161
- }), g.seen.pop(), x(Be, Q, ce);
4177
+ return T(g, v, S, R, Ne, J);
4178
+ }), g.seen.pop(), k(Be, Q, ce);
4162
4179
  }
4163
4180
  function w(g, v) {
4164
- if (B(v))
4181
+ if (L(v))
4165
4182
  return g.stylize("undefined", "undefined");
4166
4183
  if (C(v)) {
4167
4184
  var S = "'" + JSON.stringify(v).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
4168
4185
  return g.stylize(S, "string");
4169
4186
  }
4170
- if (L(v))
4187
+ if (B(v))
4171
4188
  return g.stylize("" + v, "number");
4172
4189
  if (I(v))
4173
4190
  return g.stylize("" + v, "boolean");
4174
- if (T(v))
4191
+ if (_(v))
4175
4192
  return g.stylize("null", "null");
4176
4193
  }
4177
4194
  function E(g) {
@@ -4179,7 +4196,7 @@ var ha = dr.exports;
4179
4196
  }
4180
4197
  function F(g, v, S, O, M) {
4181
4198
  for (var V = [], R = 0, $ = v.length; R < $; ++R)
4182
- ve(v, String(R)) ? V.push(_(
4199
+ Se(v, String(R)) ? V.push(T(
4183
4200
  g,
4184
4201
  v,
4185
4202
  S,
@@ -4188,7 +4205,7 @@ var ha = dr.exports;
4188
4205
  !0
4189
4206
  )) : V.push("");
4190
4207
  return M.forEach(function(Q) {
4191
- Q.match(/^\d+$/) || V.push(_(
4208
+ Q.match(/^\d+$/) || V.push(T(
4192
4209
  g,
4193
4210
  v,
4194
4211
  S,
@@ -4198,9 +4215,9 @@ var ha = dr.exports;
4198
4215
  ));
4199
4216
  }), V;
4200
4217
  }
4201
- function _(g, v, S, O, M, V) {
4218
+ function T(g, v, S, O, M, V) {
4202
4219
  var R, $, Q;
4203
- if (Q = Object.getOwnPropertyDescriptor(v, M) || { value: v[M] }, Q.get ? Q.set ? $ = g.stylize("[Getter/Setter]", "special") : $ = g.stylize("[Getter]", "special") : Q.set && ($ = g.stylize("[Setter]", "special")), ve(O, M) || (R = "[" + M + "]"), $ || (g.seen.indexOf(Q.value) < 0 ? (T(S) ? $ = l(g, Q.value, null) : $ = l(g, Q.value, S - 1), $.indexOf(`
4220
+ if (Q = Object.getOwnPropertyDescriptor(v, M) || { value: v[M] }, Q.get ? Q.set ? $ = g.stylize("[Getter/Setter]", "special") : $ = g.stylize("[Getter]", "special") : Q.set && ($ = g.stylize("[Setter]", "special")), Se(O, M) || (R = "[" + M + "]"), $ || (g.seen.indexOf(Q.value) < 0 ? (_(S) ? $ = l(g, Q.value, null) : $ = l(g, Q.value, S - 1), $.indexOf(`
4204
4221
  `) > -1 && (V ? $ = $.split(`
4205
4222
  `).map(function(J) {
4206
4223
  return " " + J;
@@ -4210,14 +4227,14 @@ var ha = dr.exports;
4210
4227
  `).map(function(J) {
4211
4228
  return " " + J;
4212
4229
  }).join(`
4213
- `))) : $ = g.stylize("[Circular]", "special")), B(R)) {
4230
+ `))) : $ = g.stylize("[Circular]", "special")), L(R)) {
4214
4231
  if (V && M.match(/^\d+$/))
4215
4232
  return $;
4216
4233
  R = JSON.stringify("" + M), R.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (R = R.slice(1, -1), R = g.stylize(R, "name")) : (R = R.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), R = g.stylize(R, "string"));
4217
4234
  }
4218
4235
  return R + ": " + $;
4219
4236
  }
4220
- function x(g, v, S) {
4237
+ function k(g, v, S) {
4221
4238
  var O = g.reduce(function(M, V) {
4222
4239
  return V.indexOf(`
4223
4240
  `) >= 0, M + V.replace(/\u001b\[\d\d?m/g, "").length + 1;
@@ -4226,39 +4243,39 @@ var ha = dr.exports;
4226
4243
  `) + " " + g.join(`,
4227
4244
  `) + " " + S[1] : S[0] + v + " " + g.join(", ") + " " + S[1];
4228
4245
  }
4229
- t.types = Nn;
4230
- function N(g) {
4246
+ t.types = $n;
4247
+ function D(g) {
4231
4248
  return Array.isArray(g);
4232
4249
  }
4233
- t.isArray = N;
4250
+ t.isArray = D;
4234
4251
  function I(g) {
4235
4252
  return typeof g == "boolean";
4236
4253
  }
4237
4254
  t.isBoolean = I;
4238
- function T(g) {
4255
+ function _(g) {
4239
4256
  return g === null;
4240
4257
  }
4241
- t.isNull = T;
4258
+ t.isNull = _;
4242
4259
  function j(g) {
4243
4260
  return g == null;
4244
4261
  }
4245
4262
  t.isNullOrUndefined = j;
4246
- function L(g) {
4263
+ function B(g) {
4247
4264
  return typeof g == "number";
4248
4265
  }
4249
- t.isNumber = L;
4266
+ t.isNumber = B;
4250
4267
  function C(g) {
4251
4268
  return typeof g == "string";
4252
4269
  }
4253
4270
  t.isString = C;
4254
- function k(g) {
4271
+ function x(g) {
4255
4272
  return typeof g == "symbol";
4256
4273
  }
4257
- t.isSymbol = k;
4258
- function B(g) {
4274
+ t.isSymbol = x;
4275
+ function L(g) {
4259
4276
  return g === void 0;
4260
4277
  }
4261
- t.isUndefined = B;
4278
+ t.isUndefined = L;
4262
4279
  function q(g) {
4263
4280
  return ne(g) && he(g) === "[object RegExp]";
4264
4281
  }
@@ -4267,14 +4284,14 @@ var ha = dr.exports;
4267
4284
  return typeof g == "object" && g !== null;
4268
4285
  }
4269
4286
  t.isObject = ne;
4270
- function we(g) {
4287
+ function be(g) {
4271
4288
  return ne(g) && he(g) === "[object Date]";
4272
4289
  }
4273
- t.isDate = we, t.types.isDate = we;
4274
- function be(g) {
4290
+ t.isDate = be, t.types.isDate = be;
4291
+ function ve(g) {
4275
4292
  return ne(g) && (he(g) === "[object Error]" || g instanceof Error);
4276
4293
  }
4277
- t.isError = be, t.types.isNativeError = be;
4294
+ t.isError = ve, t.types.isNativeError = ve;
4278
4295
  function ae(g) {
4279
4296
  return typeof g == "function";
4280
4297
  }
@@ -4283,11 +4300,11 @@ var ha = dr.exports;
4283
4300
  return g === null || typeof g == "boolean" || typeof g == "number" || typeof g == "string" || typeof g == "symbol" || // ES6 symbol
4284
4301
  typeof g > "u";
4285
4302
  }
4286
- t.isPrimitive = ct, t.isBuffer = da;
4303
+ t.isPrimitive = ct, t.isBuffer = ya;
4287
4304
  function he(g) {
4288
4305
  return Object.prototype.toString.call(g);
4289
4306
  }
4290
- function Pe(g) {
4307
+ function Re(g) {
4291
4308
  return g < 10 ? "0" + g.toString(10) : g.toString(10);
4292
4309
  }
4293
4310
  var xe = [
@@ -4306,22 +4323,22 @@ var ha = dr.exports;
4306
4323
  ];
4307
4324
  function Ge() {
4308
4325
  var g = /* @__PURE__ */ new Date(), v = [
4309
- Pe(g.getHours()),
4310
- Pe(g.getMinutes()),
4311
- Pe(g.getSeconds())
4326
+ Re(g.getHours()),
4327
+ Re(g.getMinutes()),
4328
+ Re(g.getSeconds())
4312
4329
  ].join(":");
4313
4330
  return [g.getDate(), xe[g.getMonth()], v].join(" ");
4314
4331
  }
4315
4332
  t.log = function() {
4316
4333
  console.log("%s - %s", Ge(), t.format.apply(t, arguments));
4317
- }, t.inherits = ha, t._extend = function(g, v) {
4334
+ }, t.inherits = ga, t._extend = function(g, v) {
4318
4335
  if (!v || !ne(v))
4319
4336
  return g;
4320
4337
  for (var S = Object.keys(v), O = S.length; O--; )
4321
4338
  g[S[O]] = v[S[O]];
4322
4339
  return g;
4323
4340
  };
4324
- function ve(g, v) {
4341
+ function Se(g, v) {
4325
4342
  return Object.prototype.hasOwnProperty.call(g, v);
4326
4343
  }
4327
4344
  var ue = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
@@ -4364,7 +4381,7 @@ var ha = dr.exports;
4364
4381
  e(v)
4365
4382
  );
4366
4383
  }, t.promisify.custom = ue;
4367
- function ke(g, v) {
4384
+ function Le(g, v) {
4368
4385
  if (!g) {
4369
4386
  var S = new Error("Promise was rejected with a falsy value");
4370
4387
  S.reason = g, g = S;
@@ -4388,7 +4405,7 @@ var ha = dr.exports;
4388
4405
  P.nextTick(R.bind(null, null, $));
4389
4406
  },
4390
4407
  function($) {
4391
- P.nextTick(ke.bind(null, $, R));
4408
+ P.nextTick(Le.bind(null, $, R));
4392
4409
  }
4393
4410
  );
4394
4411
  }
@@ -4398,9 +4415,9 @@ var ha = dr.exports;
4398
4415
  ), v;
4399
4416
  }
4400
4417
  t.callbackify = ze;
4401
- })($t);
4402
- const { inherits: pa, format: Jt } = $t;
4403
- function $e(t, e, r = Error) {
4418
+ })(Ut);
4419
+ const { inherits: ma, format: Yt } = Ut;
4420
+ function Ue(t, e, r = Error) {
4404
4421
  if (!t)
4405
4422
  throw new Error("Avvio error code must not be empty");
4406
4423
  if (!e)
@@ -4408,39 +4425,39 @@ function $e(t, e, r = Error) {
4408
4425
  function i(s, a, c) {
4409
4426
  if (!new.target)
4410
4427
  return new i(s, a, c);
4411
- Error.captureStackTrace(this, i), this.code = t, this.message = e, this.name = "AvvioError", s && a && c ? this.message = Jt(e, s, a, c) : s && a ? this.message = Jt(e, s, a) : s ? this.message = Jt(e, s) : this.message = e;
4428
+ Error.captureStackTrace(this, i), this.code = t, this.message = e, this.name = "AvvioError", s && a && c ? this.message = Yt(e, s, a, c) : s && a ? this.message = Yt(e, s, a) : s ? this.message = Yt(e, s) : this.message = e;
4412
4429
  }
4413
4430
  return i.prototype[Symbol.toStringTag] = "Error", i.prototype.toString = function() {
4414
4431
  return `${this.name} [${this.code}]: ${this.message}`;
4415
- }, pa(i, r), i;
4432
+ }, ma(i, r), i;
4416
4433
  }
4417
- var Xn = {
4418
- createError: $e,
4419
- AVV_ERR_EXPOSE_ALREADY_DEFINED: $e(
4434
+ var ei = {
4435
+ createError: Ue,
4436
+ AVV_ERR_EXPOSE_ALREADY_DEFINED: Ue(
4420
4437
  "AVV_ERR_EXPOSE_ALREADY_DEFINED",
4421
4438
  "'%s' () is already defined, specify an expose option"
4422
4439
  ),
4423
- AVV_ERR_CALLBACK_NOT_FN: $e(
4440
+ AVV_ERR_CALLBACK_NOT_FN: Ue(
4424
4441
  "AVV_ERR_CALLBACK_NOT_FN",
4425
4442
  "Callback for '%s' hook is not a function. Received: '%s'"
4426
4443
  ),
4427
- AVV_ERR_PLUGIN_NOT_VALID: $e(
4444
+ AVV_ERR_PLUGIN_NOT_VALID: Ue(
4428
4445
  "AVV_ERR_PLUGIN_NOT_VALID",
4429
4446
  "Plugin must be a function or a promise. Received: '%s'"
4430
4447
  ),
4431
- AVV_ERR_ROOT_PLG_BOOTED: $e(
4448
+ AVV_ERR_ROOT_PLG_BOOTED: Ue(
4432
4449
  "AVV_ERR_PLUGIN_NOT_VALID",
4433
4450
  "Root plugin has already booted"
4434
4451
  ),
4435
- AVV_ERR_PARENT_PLG_LOADED: $e(
4452
+ AVV_ERR_PARENT_PLG_LOADED: Ue(
4436
4453
  "AVV_ERR_PARENT_PLG_LOADED",
4437
4454
  "Impossible to load '%s' plugin because the parent '%s' was already loaded"
4438
4455
  ),
4439
- AVV_ERR_READY_TIMEOUT: $e(
4456
+ AVV_ERR_READY_TIMEOUT: Ue(
4440
4457
  "AVV_ERR_READY_TIMEOUT",
4441
4458
  "Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise"
4442
4459
  )
4443
- }, ya = function t(e, r, i) {
4460
+ }, wa = function t(e, r, i) {
4444
4461
  r === void 0 && (r = ""), i || (i = {});
4445
4462
  var s = function(p) {
4446
4463
  var m = {
@@ -4462,15 +4479,15 @@ var Xn = {
4462
4479
  return r + s(l ? "└" : "├") + s("─") + s(w ? "┬" : "─") + " " + t(p, E, i).slice(r.length + 2);
4463
4480
  }).join("");
4464
4481
  };
4465
- const ga = ya, rn = Symbol("avvio.TimeTree.untrackNode"), Yt = Symbol("avvio.TimeTree.trackNode"), nn = Symbol("avvio.TimeTree.getParent"), on = Symbol("avvio.TimeTree.getNode"), sn = Symbol("avvio.TimeTree.addNode");
4466
- let ma = class {
4482
+ const ba = wa, on = Symbol("avvio.TimeTree.untrackNode"), Xt = Symbol("avvio.TimeTree.trackNode"), sn = Symbol("avvio.TimeTree.getParent"), an = Symbol("avvio.TimeTree.getNode"), un = Symbol("avvio.TimeTree.addNode");
4483
+ let va = class {
4467
4484
  constructor() {
4468
4485
  this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
4469
4486
  }
4470
- [Yt](e) {
4487
+ [Xt](e) {
4471
4488
  this.tableId.set(e.id, e), this.tableLabel.has(e.label) ? this.tableLabel.get(e.label).push(e) : this.tableLabel.set(e.label, [e]);
4472
4489
  }
4473
- [rn](e) {
4490
+ [on](e) {
4474
4491
  this.tableId.delete(e.id);
4475
4492
  const r = this.tableLabel.get(e.label);
4476
4493
  if (r.id) {
@@ -4479,54 +4496,54 @@ let ma = class {
4479
4496
  }
4480
4497
  r.pop(), r.length === 0 && this.tableLabel.delete(e.label);
4481
4498
  }
4482
- [nn](e) {
4499
+ [sn](e) {
4483
4500
  if (e === null)
4484
4501
  return this.root;
4485
4502
  const r = this.tableLabel.get(e);
4486
4503
  return r.id ? r : r[r.length - 1];
4487
4504
  }
4488
- [on](e) {
4505
+ [an](e) {
4489
4506
  return this.tableId.get(e);
4490
4507
  }
4491
- [sn](e, r, i) {
4508
+ [un](e, r, i) {
4492
4509
  if (e === null)
4493
4510
  return this.root = {
4494
4511
  id: "root",
4495
4512
  label: r,
4496
4513
  start: i,
4497
4514
  nodes: []
4498
- }, this[Yt](this.root), this.root.id;
4499
- const a = this[nn](e), c = `${r}-${Math.random()}`, d = {
4515
+ }, this[Xt](this.root), this.root.id;
4516
+ const a = this[sn](e), c = `${r}-${Math.random()}`, d = {
4500
4517
  id: c,
4501
4518
  parent: e,
4502
4519
  start: i,
4503
4520
  label: r,
4504
4521
  nodes: []
4505
4522
  };
4506
- return a.nodes.push(d), this[Yt](d), c;
4523
+ return a.nodes.push(d), this[Xt](d), c;
4507
4524
  }
4508
4525
  start(e, r, i = Date.now()) {
4509
- return this[sn](e, r, i);
4526
+ return this[un](e, r, i);
4510
4527
  }
4511
4528
  stop(e, r = Date.now()) {
4512
- const i = this[on](e);
4513
- i && (i.stop = r, i.diff = i.stop - i.start || 0, this[rn](i));
4529
+ const i = this[an](e);
4530
+ i && (i.stop = r, i.diff = i.stop - i.start || 0, this[on](i));
4514
4531
  }
4515
4532
  toJSON() {
4516
4533
  return Object.assign({}, this.root);
4517
4534
  }
4518
4535
  prittyPrint() {
4519
4536
  const e = (i) => (i.label = `${i.label} ${i.diff} ms`, i.nodes.length > 0 && (i.nodes = i.nodes.map((s) => e(s))), i), r = e(this.toJSON());
4520
- return ga(r);
4537
+ return ba(r);
4521
4538
  }
4522
4539
  };
4523
- var wa = ma, _r = { exports: {} }, hr = { exports: {} }, Xt, an;
4524
- function ba() {
4525
- if (an)
4526
- return Xt;
4527
- an = 1;
4540
+ var Sa = va, Cr = { exports: {} }, pr = { exports: {} }, Zt, cn;
4541
+ function Aa() {
4542
+ if (cn)
4543
+ return Zt;
4544
+ cn = 1;
4528
4545
  var t = 1e3, e = t * 60, r = e * 60, i = r * 24, s = i * 7, a = i * 365.25;
4529
- Xt = function(l, w) {
4546
+ Zt = function(l, w) {
4530
4547
  w = w || {};
4531
4548
  var E = typeof l;
4532
4549
  if (E === "string" && l.length > 0)
@@ -4598,13 +4615,13 @@ function ba() {
4598
4615
  return w >= i ? m(l, w, i, "day") : w >= r ? m(l, w, r, "hour") : w >= e ? m(l, w, e, "minute") : w >= t ? m(l, w, t, "second") : l + " ms";
4599
4616
  }
4600
4617
  function m(l, w, E, F) {
4601
- var _ = w >= E * 1.5;
4602
- return Math.round(l / E) + " " + F + (_ ? "s" : "");
4618
+ var T = w >= E * 1.5;
4619
+ return Math.round(l / E) + " " + F + (T ? "s" : "");
4603
4620
  }
4604
- return Xt;
4621
+ return Zt;
4605
4622
  }
4606
- function va(t) {
4607
- r.debug = r, r.default = r, r.coerce = p, r.disable = a, r.enable = s, r.enabled = c, r.humanize = ba(), r.destroy = m, Object.keys(t).forEach((l) => {
4623
+ function Ea(t) {
4624
+ r.debug = r, r.default = r, r.coerce = p, r.disable = a, r.enable = s, r.enabled = c, r.humanize = Aa(), r.destroy = m, Object.keys(t).forEach((l) => {
4608
4625
  r[l] = t[l];
4609
4626
  }), r.names = [], r.skips = [], r.formatters = {};
4610
4627
  function e(l) {
@@ -4615,33 +4632,33 @@ function va(t) {
4615
4632
  }
4616
4633
  r.selectColor = e;
4617
4634
  function r(l) {
4618
- let w, E = null, F, _;
4619
- function x(...N) {
4620
- if (!x.enabled)
4635
+ let w, E = null, F, T;
4636
+ function k(...D) {
4637
+ if (!k.enabled)
4621
4638
  return;
4622
- const I = x, T = Number(/* @__PURE__ */ new Date()), j = T - (w || T);
4623
- I.diff = j, I.prev = w, I.curr = T, w = T, N[0] = r.coerce(N[0]), typeof N[0] != "string" && N.unshift("%O");
4624
- let L = 0;
4625
- N[0] = N[0].replace(/%([a-zA-Z%])/g, (k, B) => {
4626
- if (k === "%%")
4639
+ const I = k, _ = Number(/* @__PURE__ */ new Date()), j = _ - (w || _);
4640
+ I.diff = j, I.prev = w, I.curr = _, w = _, D[0] = r.coerce(D[0]), typeof D[0] != "string" && D.unshift("%O");
4641
+ let B = 0;
4642
+ D[0] = D[0].replace(/%([a-zA-Z%])/g, (x, L) => {
4643
+ if (x === "%%")
4627
4644
  return "%";
4628
- L++;
4629
- const q = r.formatters[B];
4645
+ B++;
4646
+ const q = r.formatters[L];
4630
4647
  if (typeof q == "function") {
4631
- const ne = N[L];
4632
- k = q.call(I, ne), N.splice(L, 1), L--;
4648
+ const ne = D[B];
4649
+ x = q.call(I, ne), D.splice(B, 1), B--;
4633
4650
  }
4634
- return k;
4635
- }), r.formatArgs.call(I, N), (I.log || r.log).apply(I, N);
4651
+ return x;
4652
+ }), r.formatArgs.call(I, D), (I.log || r.log).apply(I, D);
4636
4653
  }
4637
- return x.namespace = l, x.useColors = r.useColors(), x.color = r.selectColor(l), x.extend = i, x.destroy = r.destroy, Object.defineProperty(x, "enabled", {
4654
+ return k.namespace = l, k.useColors = r.useColors(), k.color = r.selectColor(l), k.extend = i, k.destroy = r.destroy, Object.defineProperty(k, "enabled", {
4638
4655
  enumerable: !0,
4639
4656
  configurable: !1,
4640
- get: () => E !== null ? E : (F !== r.namespaces && (F = r.namespaces, _ = r.enabled(l)), _),
4641
- set: (N) => {
4642
- E = N;
4657
+ get: () => E !== null ? E : (F !== r.namespaces && (F = r.namespaces, T = r.enabled(l)), T),
4658
+ set: (D) => {
4659
+ E = D;
4643
4660
  }
4644
- }), typeof r.init == "function" && r.init(x), x;
4661
+ }), typeof r.init == "function" && r.init(k), k;
4645
4662
  }
4646
4663
  function i(l, w) {
4647
4664
  const E = r(this.namespace + (typeof w > "u" ? ":" : w) + l);
@@ -4684,7 +4701,7 @@ function va(t) {
4684
4701
  }
4685
4702
  return r.enable(r.load()), r;
4686
4703
  }
4687
- var Sa = va;
4704
+ var Ia = Ea;
4688
4705
  (function(t, e) {
4689
4706
  e.formatArgs = i, e.save = s, e.load = a, e.useColors = r, e.storage = c(), e.destroy = /* @__PURE__ */ (() => {
4690
4707
  let p = !1;
@@ -4808,7 +4825,7 @@ var Sa = va;
4808
4825
  } catch {
4809
4826
  }
4810
4827
  }
4811
- t.exports = Sa(e);
4828
+ t.exports = Ia(e);
4812
4829
  const { formatters: d } = t.exports;
4813
4830
  d.j = function(p) {
4814
4831
  try {
@@ -4817,23 +4834,23 @@ var Sa = va;
4817
4834
  return "[UnexpectedJSONParseError]: " + m.message;
4818
4835
  }
4819
4836
  };
4820
- })(hr, hr.exports);
4821
- var Zn = hr.exports;
4822
- const Aa = On, Ea = Rn.EventEmitter, Ia = $t.inherits, Z = Zn("avvio"), { AVV_ERR_READY_TIMEOUT: Fa } = Xn, Zt = Symbol.for("plugin-meta");
4823
- function Oa(t, e) {
4824
- return t[Zt] && t[Zt].name ? t[Zt].name : typeof e < "u" && typeof e != "function" && e.name ? e.name : t.name ? t.name : t.toString().split(`
4837
+ })(pr, pr.exports);
4838
+ var ti = pr.exports;
4839
+ const Fa = Tn, Oa = Nn.EventEmitter, _a = Ut.inherits, Z = ti("avvio"), { AVV_ERR_READY_TIMEOUT: Ta } = ei, er = Symbol.for("plugin-meta");
4840
+ function Ca(t, e) {
4841
+ return t[er] && t[er].name ? t[er].name : typeof e < "u" && typeof e != "function" && e.name ? e.name : t.name ? t.name : t.toString().split(`
4825
4842
  `).slice(0, 2).map((r) => r.trim()).join(" -- ");
4826
4843
  }
4827
- function Ta() {
4844
+ function ka() {
4828
4845
  const t = {};
4829
4846
  return t.promise = new Promise((e, r) => {
4830
4847
  t.resolve = e, t.reject = r;
4831
4848
  }), t;
4832
4849
  }
4833
4850
  function ut(t, e, r, i, s) {
4834
- 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 = Oa(e, r), this.isAfter = i, this.q = Aa(t, _a, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
4851
+ 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 = Ca(e, r), this.isAfter = i, this.q = Fa(t, xa, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
4835
4852
  }
4836
- Ia(ut, Ea);
4853
+ _a(ut, Oa);
4837
4854
  ut.prototype.exec = function(t, e) {
4838
4855
  const r = this.func;
4839
4856
  let i = !1;
@@ -4861,7 +4878,7 @@ ut.prototype.exec = function(t, e) {
4861
4878
  };
4862
4879
  this.timeout > 0 && (Z("setting up timeout", s, this.timeout), a = setTimeout(function() {
4863
4880
  Z("timed out", s), a = null;
4864
- const p = new Fa(s);
4881
+ const p = new Ta(s);
4865
4882
  p.fn = r, c(p);
4866
4883
  }, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
4867
4884
  const d = r(this.server, this.opts, c);
@@ -4879,7 +4896,7 @@ ut.prototype.loadedSoFar = function() {
4879
4896
  }), this.q.resume();
4880
4897
  };
4881
4898
  let e;
4882
- return this._promise ? e = Promise.resolve() : (this._promise = Ta(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
4899
+ return this._promise ? e = Promise.resolve() : (this._promise = ka(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
4883
4900
  };
4884
4901
  ut.prototype.enqueue = function(t, e) {
4885
4902
  Z("enqueue", this.name, t.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(t, e);
@@ -4904,19 +4921,19 @@ ut.prototype.finish = function(t, e) {
4904
4921
  r();
4905
4922
  else
4906
4923
  Z("delayed", this.name), this.q.drain = () => {
4907
- Z("drain", this.name), this.q.drain = Ca, queueMicrotask(i);
4924
+ Z("drain", this.name), this.q.drain = La, queueMicrotask(i);
4908
4925
  };
4909
4926
  };
4910
4927
  queueMicrotask(i), this.q.resume();
4911
4928
  };
4912
- function _a(t, e) {
4929
+ function xa(t, e) {
4913
4930
  const r = this;
4914
- P.nextTick(Cr.bind(r), t, e);
4931
+ P.nextTick(kr.bind(r), t, e);
4915
4932
  }
4916
- function Cr(t, e) {
4933
+ function kr(t, e) {
4917
4934
  if (typeof t.func.then == "function") {
4918
4935
  t.func.then((i) => {
4919
- typeof i.default == "function" && (i = i.default), t.func = i, Cr.call(this, t, e);
4936
+ typeof i.default == "function" && (i = i.default), t.func = i, kr.call(this, t, e);
4920
4937
  }, e);
4921
4938
  return;
4922
4939
  }
@@ -4927,59 +4944,59 @@ function Cr(t, e) {
4927
4944
  });
4928
4945
  });
4929
4946
  }
4930
- function Ca() {
4947
+ function La() {
4931
4948
  }
4932
- _r.exports = ut;
4933
- _r.exports.loadPlugin = Cr;
4934
- var xa = _r.exports;
4935
- const un = On, ka = Rn.EventEmitter, Ba = $t.inherits, {
4936
- AVV_ERR_EXPOSE_ALREADY_DEFINED: er,
4949
+ Cr.exports = ut;
4950
+ Cr.exports.loadPlugin = kr;
4951
+ var Ba = Cr.exports;
4952
+ const ln = Tn, Pa = Nn.EventEmitter, Ra = Ut.inherits, {
4953
+ AVV_ERR_EXPOSE_ALREADY_DEFINED: tr,
4937
4954
  AVV_ERR_CALLBACK_NOT_FN: pt,
4938
- AVV_ERR_PLUGIN_NOT_VALID: La,
4939
- AVV_ERR_ROOT_PLG_BOOTED: Pa,
4940
- AVV_ERR_READY_TIMEOUT: Ra
4941
- } = Xn, Na = wa, pr = xa, st = Zn("avvio"), xt = Symbol("kAvvio"), tr = Symbol("kThenifyDoNotWrap");
4942
- function Da(t, e, r) {
4955
+ AVV_ERR_PLUGIN_NOT_VALID: Da,
4956
+ AVV_ERR_ROOT_PLG_BOOTED: Na,
4957
+ AVV_ERR_READY_TIMEOUT: $a
4958
+ } = ei, Ua = Sa, yr = Ba, st = ti("avvio"), Lt = Symbol("kAvvio"), rr = Symbol("kThenifyDoNotWrap");
4959
+ function ja(t, e, r) {
4943
4960
  const i = e.expose || {}, s = i.use || "use", a = i.after || "after", c = i.ready || "ready", d = i.onClose || "onClose", p = i.close || "close";
4944
4961
  if (t[s])
4945
- throw new er(s);
4962
+ throw new tr(s);
4946
4963
  if (t[a])
4947
- throw new er(a);
4964
+ throw new tr(a);
4948
4965
  if (t[c])
4949
- throw new er(c);
4966
+ throw new tr(c);
4950
4967
  t[s] = function(m, l) {
4951
4968
  return r.use(m, l), this;
4952
- }, Object.defineProperty(t, "then", { get: ei.bind(r) }), t[xt] = !0, t[a] = function(m) {
4953
- return typeof m != "function" ? r._loadRegistered() : (r.after(rr(m, this)), this);
4969
+ }, Object.defineProperty(t, "then", { get: ri.bind(r) }), t[Lt] = !0, t[a] = function(m) {
4970
+ return typeof m != "function" ? r._loadRegistered() : (r.after(nr(m, this)), this);
4954
4971
  }, t[c] = function(m) {
4955
4972
  if (m && typeof m != "function")
4956
4973
  throw new pt(c, typeof m);
4957
- return r.ready(m ? rr(m, this) : void 0);
4974
+ return r.ready(m ? nr(m, this) : void 0);
4958
4975
  }, t[d] = function(m) {
4959
4976
  if (typeof m != "function")
4960
4977
  throw new pt(d, typeof m);
4961
- return r.onClose(Va(m, this)), this;
4978
+ return r.onClose(Ga(m, this)), this;
4962
4979
  }, t[p] = function(m) {
4963
4980
  if (m && typeof m != "function")
4964
4981
  throw new pt(p, typeof m);
4965
- return m ? (r.close(rr(m, this)), this) : r.close();
4982
+ return m ? (r.close(nr(m, this)), this) : r.close();
4966
4983
  };
4967
4984
  }
4968
4985
  function te(t, e, r) {
4969
4986
  if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof te)) {
4970
4987
  const i = new te(t, e, r);
4971
- return t && Da(t, e, i), i;
4988
+ return t && ja(t, e, i), i;
4972
4989
  }
4973
- 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 Na(), this._readyQ = un(this, ti, 1), this._readyQ.pause(), this._readyQ.drain = () => {
4974
- this.emit("start"), this._readyQ.drain = cn;
4975
- }, this._closeQ = un(this, Ma, 1), this._closeQ.pause(), this._closeQ.drain = () => {
4976
- this.emit("close"), this._closeQ.drain = cn;
4977
- }, this._doStart = null, this._root = new pr(this, $a.bind(this), e, !1, 0), this._root.once("start", (i, s, a) => {
4990
+ 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 Ua(), this._readyQ = ln(this, ni, 1), this._readyQ.pause(), this._readyQ.drain = () => {
4991
+ this.emit("start"), this._readyQ.drain = fn;
4992
+ }, this._closeQ = ln(this, Qa, 1), this._closeQ.pause(), this._closeQ.drain = () => {
4993
+ this.emit("close"), this._closeQ.drain = fn;
4994
+ }, this._doStart = null, this._root = new yr(this, Ma.bind(this), e, !1, 0), this._root.once("start", (i, s, a) => {
4978
4995
  const c = this.pluginTree.start(null, s, a);
4979
4996
  this._root.once("loaded", (d, p, m) => {
4980
4997
  this.pluginTree.stop(c, m);
4981
4998
  });
4982
- }), pr.loadPlugin.call(this, this._root, (i) => {
4999
+ }), yr.loadPlugin.call(this, this._root, (i) => {
4983
5000
  st("root plugin ready");
4984
5001
  try {
4985
5002
  this.emit("preReady"), this._root = null;
@@ -4994,22 +5011,22 @@ function te(t, e, r) {
4994
5011
  this._readyQ.resume();
4995
5012
  });
4996
5013
  }
4997
- function $a(t, e, r) {
5014
+ function Ma(t, e, r) {
4998
5015
  this._doStart = r, e.autostart && this.start();
4999
5016
  }
5000
- Ba(te, ka);
5017
+ Ra(te, Pa);
5001
5018
  te.prototype.start = function() {
5002
5019
  return this.started = !0, P.nextTick(this._doStart), this;
5003
5020
  };
5004
5021
  te.prototype.override = function(t, e, r) {
5005
5022
  return t;
5006
5023
  };
5007
- function Ua(t) {
5024
+ function Va(t) {
5008
5025
  if (t && typeof t == "object" && typeof t.default == "function" && (t = t.default), !(t && (typeof t == "function" || typeof t.then == "function")))
5009
- throw new La(typeof t);
5026
+ throw new Da(typeof t);
5010
5027
  return t;
5011
5028
  }
5012
- te.prototype[xt] = !0;
5029
+ te.prototype[Lt] = !0;
5013
5030
  te.prototype.use = function(t, e) {
5014
5031
  return this._lastUsed = this._addPlugin(t, e, !1), this;
5015
5032
  };
@@ -5017,11 +5034,11 @@ te.prototype._loadRegistered = function() {
5017
5034
  const t = this._current[0];
5018
5035
  return !this.started && !this.booted && P.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
5019
5036
  };
5020
- Object.defineProperty(te.prototype, "then", { get: ei });
5037
+ Object.defineProperty(te.prototype, "then", { get: ri });
5021
5038
  te.prototype._addPlugin = function(t, e, r) {
5022
- if (t = Ua(t), e = e || {}, this.booted)
5023
- throw new Pa();
5024
- const i = this._current[0], s = new pr(this, t, e, r);
5039
+ if (t = Va(t), e = e || {}, this.booted)
5040
+ throw new Na();
5041
+ const i = this._current[0], s = new yr(this, t, e, r);
5025
5042
  if (s.once("start", (a, c, d) => {
5026
5043
  const p = this.pluginTree.start(i.name, c, d);
5027
5044
  s.once("loaded", (m, l, w) => {
@@ -5038,7 +5055,7 @@ te.prototype.after = function(t) {
5038
5055
  return this._loadRegistered();
5039
5056
  this._addPlugin(e.bind(this), {}, !0);
5040
5057
  function e(r, i, s) {
5041
- ti.call(this, t, s);
5058
+ ni.call(this, t, s);
5042
5059
  }
5043
5060
  return this;
5044
5061
  };
@@ -5089,40 +5106,40 @@ te.prototype.prettyPrint = function() {
5089
5106
  te.prototype.toJSON = function() {
5090
5107
  return this.pluginTree.toJSON();
5091
5108
  };
5092
- function cn() {
5109
+ function fn() {
5093
5110
  }
5094
- function ei() {
5111
+ function ri() {
5095
5112
  if (this.booted) {
5096
5113
  st("thenify returning null because we are already booted");
5097
5114
  return;
5098
5115
  }
5099
- if (this[tr]) {
5100
- this[tr] = !1;
5116
+ if (this[rr]) {
5117
+ this[rr] = !1;
5101
5118
  return;
5102
5119
  }
5103
- return st("thenify"), (t, e) => this._loadRegistered().then(() => (this[tr] = !0, t(this._server)), e);
5120
+ return st("thenify"), (t, e) => this._loadRegistered().then(() => (this[rr] = !0, t(this._server)), e);
5104
5121
  }
5105
- function ti(t, e) {
5122
+ function ni(t, e) {
5106
5123
  const r = this._server, i = this._error;
5107
5124
  let s;
5108
5125
  if (this._error = null, t.length === 0)
5109
- this._error = i, s = t(), s && !s[xt] && typeof s.then == "function" ? s.then(() => P.nextTick(e), (a) => P.nextTick(e, a)) : P.nextTick(e);
5126
+ this._error = i, s = t(), s && !s[Lt] && typeof s.then == "function" ? s.then(() => P.nextTick(e), (a) => P.nextTick(e, a)) : P.nextTick(e);
5110
5127
  else if (t.length === 1)
5111
- s = t(i), s && !s[xt] && typeof s.then == "function" ? s.then(() => P.nextTick(e), (a) => P.nextTick(e, a)) : P.nextTick(e);
5128
+ s = t(i), s && !s[Lt] && typeof s.then == "function" ? s.then(() => P.nextTick(e), (a) => P.nextTick(e, a)) : P.nextTick(e);
5112
5129
  else if (this._timeout === 0) {
5113
5130
  const a = (c) => {
5114
5131
  this._error = c, e(this._error);
5115
5132
  };
5116
5133
  t.length === 2 ? t(i, a) : t(i, r, a);
5117
5134
  } else
5118
- ja.call(this, t, i, r, e);
5135
+ qa.call(this, t, i, r, e);
5119
5136
  }
5120
- function ja(t, e, r, i) {
5137
+ function qa(t, e, r, i) {
5121
5138
  const s = t.name;
5122
5139
  st("setting up ready timeout", s, this._timeout);
5123
5140
  let a = setTimeout(() => {
5124
5141
  st("timed out", s), a = null;
5125
- const d = new Ra(s);
5142
+ const d = new $a(s);
5126
5143
  d.fn = t, this._error = d, i(d);
5127
5144
  }, this._timeout);
5128
5145
  t.length === 2 ? t(e, c.bind(this)) : t(e, r, c.bind(this));
@@ -5130,7 +5147,7 @@ function ja(t, e, r, i) {
5130
5147
  a && (clearTimeout(a), this._error = d, i(this._error));
5131
5148
  }
5132
5149
  }
5133
- function Ma(t, e) {
5150
+ function Qa(t, e) {
5134
5151
  const r = this._server, i = t[this._isOnCloseHandlerKey];
5135
5152
  if (t.length === 0 || t.length === 1) {
5136
5153
  let s;
@@ -5141,7 +5158,7 @@ function Ma(t, e) {
5141
5158
  } else
5142
5159
  t.length === 2 ? t(i ? r : this._error, e) : i ? t(r, e) : t(this._error, r, e);
5143
5160
  }
5144
- function Va(t, e) {
5161
+ function Ga(t, e) {
5145
5162
  return r.bind(e);
5146
5163
  function r(i, s) {
5147
5164
  let a;
@@ -5152,7 +5169,7 @@ function Va(t, e) {
5152
5169
  }, s) : P.nextTick(s)) : t(this, s);
5153
5170
  }
5154
5171
  }
5155
- function rr(t, e) {
5172
+ function nr(t, e) {
5156
5173
  return r.bind(e);
5157
5174
  function r(i, s) {
5158
5175
  let a;
@@ -5163,16 +5180,16 @@ function rr(t, e) {
5163
5180
  }, s) : P.nextTick(s)) : t.length === 2 ? t(i, s) : t(i, this, s) : P.nextTick(s);
5164
5181
  }
5165
5182
  }
5166
- br.exports = te;
5167
- br.exports.express = function(t) {
5183
+ vr.exports = te;
5184
+ vr.exports.express = function(t) {
5168
5185
  return te(t, {
5169
5186
  expose: {
5170
5187
  use: "load"
5171
5188
  }
5172
5189
  });
5173
5190
  };
5174
- var qa = br.exports;
5175
- const Qa = /* @__PURE__ */ uo(qa);
5191
+ var za = vr.exports;
5192
+ const Ka = /* @__PURE__ */ fo(za);
5176
5193
  (function() {
5177
5194
  if (window.requestAnimationFrame && window.cancelAnimationFrame)
5178
5195
  return;
@@ -5190,9 +5207,10 @@ const Qa = /* @__PURE__ */ uo(qa);
5190
5207
  }, window.cancelAnimationFrame = clearTimeout;
5191
5208
  }
5192
5209
  })();
5193
- function fu(t, e = !0, r = !0, i) {
5194
- const s = e ? "https://grpc-sdk.streamlayer.io:443" : "https://grpc-sdk.next.streamlayer.io:443", a = Qa(/* @__PURE__ */ Object.create({}), { autostart: !1 });
5195
- return a.use(Gi), a.use(ji), a.use(Qi), a.use(xi, { sdkKey: t, host: s, version: i?.version }), a.use(qi), a.use(Vi), a.use(Po), a.use(bo), r && a.after(async (c, d, p) => {
5210
+ function pu(t, e = !0, r = !0, i) {
5211
+ console.log("start sdk");
5212
+ const s = e ? "https://grpc-sdk.streamlayer.io:443" : "https://grpc-sdk.next.streamlayer.io:443", a = Ka(/* @__PURE__ */ Object.create({}), { autostart: !1 });
5213
+ return a.use(Wi), a.use(Vi, { onDeepLinkHandled: i?.onDeepLinkHandled }), a.use(Ki, { videoPlayerController: i?.videoPlayerController }), a.use(Li, { sdkKey: t, host: s, version: i?.version }), a.use(zi), a.use(Gi), a.use(No), a.use(Ao), r && a.after(async (c, d, p) => {
5196
5214
  if (c)
5197
5215
  throw c;
5198
5216
  await d.sdk.initializeApp(), p();
@@ -5201,5 +5219,5 @@ function fu(t, e = !0, r = !0, i) {
5201
5219
  }), a;
5202
5220
  }
5203
5221
  export {
5204
- fu as StreamLayer
5222
+ pu as StreamLayer
5205
5223
  };