@sawport/peers-caller 0.0.1 → 1.0.0-alpha.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.
@@ -1,22 +1,22 @@
1
1
  var Eo = Object.defineProperty, Ro = Object.defineProperties;
2
2
  var Po = Object.getOwnPropertyDescriptors;
3
3
  var et = Object.getOwnPropertySymbols;
4
- var cn = Object.prototype.hasOwnProperty, un = Object.prototype.propertyIsEnumerable;
4
+ var un = Object.prototype.hasOwnProperty, fn = Object.prototype.propertyIsEnumerable;
5
5
  var ne = Math.pow, mt = (n, e, t) => e in n ? Eo(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, He = (n, e) => {
6
6
  for (var t in e || (e = {}))
7
- cn.call(e, t) && mt(n, t, e[t]);
7
+ un.call(e, t) && mt(n, t, e[t]);
8
8
  if (et)
9
9
  for (var t of et(e))
10
- un.call(e, t) && mt(n, t, e[t]);
10
+ fn.call(e, t) && mt(n, t, e[t]);
11
11
  return n;
12
12
  }, vt = (n, e) => Ro(n, Po(e));
13
13
  var bt = (n, e) => {
14
14
  var t = {};
15
15
  for (var o in n)
16
- cn.call(n, o) && e.indexOf(o) < 0 && (t[o] = n[o]);
16
+ un.call(n, o) && e.indexOf(o) < 0 && (t[o] = n[o]);
17
17
  if (n != null && et)
18
18
  for (var o of et(n))
19
- e.indexOf(o) < 0 && un.call(n, o) && (t[o] = n[o]);
19
+ e.indexOf(o) < 0 && fn.call(n, o) && (t[o] = n[o]);
20
20
  return t;
21
21
  };
22
22
  var Ee = (n, e, t) => mt(n, typeof e != "symbol" ? e + "" : e, t);
@@ -35,7 +35,7 @@ typeof wt == "undefined" ? globalThis.process = {
35
35
  setTimeout(() => n(...e), 0);
36
36
  });
37
37
  typeof globalThis == "undefined" && (globalThis.global = globalThis);
38
- var Oo = Object.defineProperty, ko = (n, e, t) => e in n ? Oo(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Be = (n, e, t) => ko(n, typeof e != "symbol" ? e + "" : e, t), Ie = (n, e, t) => new Promise((o, l) => {
38
+ var Oo = Object.defineProperty, ko = (n, e, t) => e in n ? Oo(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Be = (n, e, t) => ko(n, typeof e != "symbol" ? e + "" : e, t), Ae = (n, e, t) => new Promise((o, l) => {
39
39
  var c = (f) => {
40
40
  try {
41
41
  a(t.next(f));
@@ -59,7 +59,7 @@ class Bo {
59
59
  * Connect to the WebSocket server
60
60
  */
61
61
  connect() {
62
- return Ie(this, null, function* () {
62
+ return Ae(this, null, function* () {
63
63
  return this.socket && this.socket.connected ? Promise.resolve() : (this.socket && (this.socket.removeAllListeners(), this.socket.disconnect(), this.socket = null), new Promise((e, t) => {
64
64
  try {
65
65
  this.socket = Ao(this.serverUrl, {
@@ -116,7 +116,7 @@ class Bo {
116
116
  * Emit a signaling event and wait for response
117
117
  */
118
118
  emitWithResponse(e, t, o = 1e4) {
119
- return Ie(this, null, function* () {
119
+ return Ae(this, null, function* () {
120
120
  if (!this.isConnected())
121
121
  throw new Error("Socket not connected");
122
122
  return console.log(`[CallSocket] Emitting ${e} with response:`, t), new Promise((l, c) => {
@@ -147,72 +147,72 @@ class Bo {
147
147
  /**
148
148
  * Start a new call
149
149
  */
150
- startCall(e, t) {
151
- return Ie(this, null, function* () {
152
- return this.emitWithResponse("call.start", { conversationId: e, userId: t });
150
+ startCall(e) {
151
+ return Ae(this, null, function* () {
152
+ return this.emitWithResponse("call.start", { roomId: e });
153
153
  });
154
154
  }
155
155
  /**
156
156
  * Join a call room for signaling
157
157
  */
158
- joinRoom(e, t) {
159
- return Ie(this, null, function* () {
160
- return this.emitWithResponse("call.join", { conversationId: e, userId: t });
158
+ joinRoom(e) {
159
+ return Ae(this, null, function* () {
160
+ return this.emitWithResponse("call.join", { roomId: e });
161
161
  });
162
162
  }
163
163
  /**
164
164
  * Leave a call
165
165
  */
166
- leaveCall(e, t) {
167
- return Ie(this, null, function* () {
168
- return this.emitWithResponse("call.leave", { conversationId: e, userId: t });
166
+ leaveCall(e) {
167
+ return Ae(this, null, function* () {
168
+ return this.emitWithResponse("call.leave", { roomId: e });
169
169
  });
170
170
  }
171
171
  /**
172
172
  * Send WebRTC offer
173
173
  */
174
- sendOffer(e, t, o, l) {
175
- this.emit("call.offer", { to: e, from: t, offer: o, conversationId: l });
174
+ sendOffer(e, t, o) {
175
+ this.emit("call.offer", { to: e, offer: t, roomId: o });
176
176
  }
177
177
  /**
178
178
  * Send WebRTC answer
179
179
  */
180
- sendAnswer(e, t, o, l) {
181
- this.emit("call.answer", { to: e, from: t, answer: o, conversationId: l });
180
+ sendAnswer(e, t, o) {
181
+ this.emit("call.answer", { to: e, answer: t, roomId: o });
182
182
  }
183
183
  /**
184
184
  * Send ICE candidate
185
185
  */
186
- sendCandidate(e, t, o, l) {
187
- this.emit("call.candidate", { to: e, from: t, candidate: o, conversationId: l });
186
+ sendCandidate(e, t, o) {
187
+ this.emit("call.candidate", { to: e, candidate: t, roomId: o });
188
188
  }
189
189
  /**
190
190
  * Send participant state update
191
191
  */
192
- sendStateUpdate(e, t, o, l) {
193
- this.emit("call.state", { to: e, from: t, state: o, conversationId: l });
192
+ sendStateUpdate(e, t, o) {
193
+ this.emit("call.state", { to: e, state: t, roomId: o });
194
194
  }
195
195
  /**
196
196
  * End call for specific participant (legacy method)
197
197
  */
198
198
  endCall(e, t, o) {
199
- this.emit("call.end", { conversationId: o, targetUserId: e });
199
+ this.emit("call.end", { roomId: o, targetUserId: e });
200
200
  }
201
201
  /**
202
202
  * End call for all participants
203
203
  */
204
204
  endCallForAll(e) {
205
- return Ie(this, null, function* () {
206
- this.emit("call.end", { conversationId: e });
205
+ return Ae(this, null, function* () {
206
+ this.emit("call.end", { roomId: e });
207
207
  });
208
208
  }
209
209
  /**
210
210
  * Start recording
211
211
  */
212
212
  startRecording(e, t) {
213
- return Ie(this, null, function* () {
213
+ return Ae(this, null, function* () {
214
214
  return this.emitWithResponse("call.recording.start", {
215
- conversationId: e,
215
+ roomId: e,
216
216
  recordingId: t
217
217
  });
218
218
  });
@@ -221,15 +221,15 @@ class Bo {
221
221
  * Send recording chunk
222
222
  */
223
223
  sendRecordingChunk(e, t, o) {
224
- this.emit("call.recording.chunk", { conversationId: e, recordingId: t, chunk: o });
224
+ this.emit("call.recording.chunk", { roomId: e, recordingId: t, chunk: o });
225
225
  }
226
226
  /**
227
227
  * End recording
228
228
  */
229
229
  endRecording(e, t) {
230
- return Ie(this, null, function* () {
230
+ return Ae(this, null, function* () {
231
231
  return this.emitWithResponse("call.recording.end", {
232
- conversationId: e,
232
+ roomId: e,
233
233
  recordingId: t
234
234
  });
235
235
  });
@@ -237,20 +237,27 @@ class Bo {
237
237
  /**
238
238
  * Send transcript
239
239
  */
240
- sendTranscript(e, t, o) {
240
+ sendTranscript(e, t) {
241
241
  this.emit("call.transcript", {
242
- conversationId: e,
243
- userId: t,
244
- transcript: o,
242
+ roomId: e,
243
+ transcript: t,
245
244
  timestamp: Date.now()
246
245
  });
247
246
  }
248
247
  /**
249
248
  * Check call status
250
249
  */
251
- checkCallStatus(e, t) {
252
- return Ie(this, null, function* () {
253
- return this.emitWithResponse("call.status", { conversationId: e, userId: t });
250
+ checkCallStatus(e) {
251
+ return Ae(this, null, function* () {
252
+ return this.emitWithResponse("call.status", { roomId: e });
253
+ });
254
+ }
255
+ /**
256
+ * Get ICE servers from backend
257
+ */
258
+ getIceServers(e) {
259
+ return Ae(this, null, function* () {
260
+ return this.emitWithResponse("call.ice-servers", { roomId: e });
254
261
  });
255
262
  }
256
263
  /**
@@ -488,13 +495,13 @@ class No {
488
495
  };
489
496
  }
490
497
  }
491
- function Zr(n) {
498
+ function Qr(n) {
492
499
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
493
500
  }
494
- var nt = { exports: {} }, _t, fn;
501
+ var nt = { exports: {} }, _t, dn;
495
502
  function Do() {
496
- if (fn) return _t;
497
- fn = 1;
503
+ if (dn) return _t;
504
+ dn = 1;
498
505
  var n = 1e3, e = n * 60, t = e * 60, o = t * 24, l = o * 7, c = o * 365.25;
499
506
  _t = function(w, A) {
500
507
  A = A || {};
@@ -573,10 +580,10 @@ function Do() {
573
580
  }
574
581
  return _t;
575
582
  }
576
- var St, dn;
583
+ var St, hn;
577
584
  function Fo() {
578
- if (dn) return St;
579
- dn = 1;
585
+ if (hn) return St;
586
+ hn = 1;
580
587
  function n(e) {
581
588
  o.debug = o, o.default = o, o.coerce = u, o.disable = a, o.enable = c, o.enabled = f, o.humanize = Do(), o.destroy = w, Object.keys(e).forEach((A) => {
582
589
  o[A] = e[A];
@@ -666,9 +673,9 @@ function Fo() {
666
673
  }
667
674
  return St = n, St;
668
675
  }
669
- var hn;
676
+ var pn;
670
677
  function jo() {
671
- return hn || (hn = 1, function(n, e) {
678
+ return pn || (pn = 1, function(n, e) {
672
679
  var t = { env: {} };
673
680
  e.formatArgs = l, e.save = c, e.load = E, e.useColors = o, e.storage = a(), e.destroy = /* @__PURE__ */ (() => {
674
681
  let u = !1;
@@ -808,9 +815,9 @@ function jo() {
808
815
  };
809
816
  }(nt, nt.exports)), nt.exports;
810
817
  }
811
- var Ct, pn;
818
+ var Ct, gn;
812
819
  function $o() {
813
- return pn || (pn = 1, Ct = function() {
820
+ return gn || (gn = 1, Ct = function() {
814
821
  if (typeof globalThis == "undefined") return null;
815
822
  var e = {
816
823
  RTCPeerConnection: globalThis.RTCPeerConnection || globalThis.mozRTCPeerConnection || globalThis.webkitRTCPeerConnection,
@@ -820,9 +827,9 @@ function $o() {
820
827
  return e.RTCPeerConnection ? e : null;
821
828
  }), Ct;
822
829
  }
823
- var it = { exports: {} }, ot = { exports: {} }, Et = {}, gn;
830
+ var it = { exports: {} }, ot = { exports: {} }, Et = {}, yn;
824
831
  function Ye() {
825
- return gn || (gn = 1, function(n) {
832
+ return yn || (yn = 1, function(n) {
826
833
  Object.defineProperties(n, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } });
827
834
  var e = {}, t = {};
828
835
  t.byteLength = w, t.toByteArray = C, t.fromByteArray = I;
@@ -951,12 +958,12 @@ function Ye() {
951
958
  if (typeof s == "string")
952
959
  return me(s, r);
953
960
  if (M.isView(s))
954
- return pe(s);
961
+ return ge(s);
955
962
  if (s == null)
956
963
  throw new TypeError(
957
964
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof s
958
965
  );
959
- if (Re(s, M) || s && Re(s.buffer, M) || typeof U != "undefined" && (Re(s, U) || s && Re(s.buffer, U)))
966
+ if (Pe(s, M) || s && Pe(s.buffer, M) || typeof U != "undefined" && (Pe(s, U) || s && Pe(s.buffer, U)))
960
967
  return ie(s, r, i);
961
968
  if (typeof s == "number")
962
969
  throw new TypeError(
@@ -1010,8 +1017,8 @@ function Ye() {
1010
1017
  i[m] = s[m] & 255;
1011
1018
  return i;
1012
1019
  }
1013
- function pe(s) {
1014
- if (Re(s, g)) {
1020
+ function ge(s) {
1021
+ if (Pe(s, g)) {
1015
1022
  const r = new g(s);
1016
1023
  return ie(r.buffer, r.byteOffset, r.byteLength);
1017
1024
  }
@@ -1046,7 +1053,7 @@ function Ye() {
1046
1053
  k.isBuffer = function(r) {
1047
1054
  return r != null && r._isBuffer === !0 && r !== k.prototype;
1048
1055
  }, k.compare = function(r, i) {
1049
- if (Re(r, g) && (r = k.from(r, r.offset, r.byteLength)), Re(i, g) && (i = k.from(i, i.offset, i.byteLength)), !k.isBuffer(r) || !k.isBuffer(i))
1056
+ if (Pe(r, g) && (r = k.from(r, r.offset, r.byteLength)), Pe(i, g) && (i = k.from(i, i.offset, i.byteLength)), !k.isBuffer(r) || !k.isBuffer(i))
1050
1057
  throw new TypeError(
1051
1058
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
1052
1059
  );
@@ -1088,7 +1095,7 @@ function Ye() {
1088
1095
  let N = 0;
1089
1096
  for (m = 0; m < r.length; ++m) {
1090
1097
  let W = r[m];
1091
- if (Re(W, g))
1098
+ if (Pe(W, g))
1092
1099
  N + W.length > T.length ? (k.isBuffer(W) || (W = k.from(W)), W.copy(T, N)) : g.prototype.set.call(
1093
1100
  T,
1094
1101
  W,
@@ -1105,7 +1112,7 @@ function Ye() {
1105
1112
  function $(s, r) {
1106
1113
  if (k.isBuffer(s))
1107
1114
  return s.length;
1108
- if (M.isView(s) || Re(s, M))
1115
+ if (M.isView(s) || Pe(s, M))
1109
1116
  return s.byteLength;
1110
1117
  if (typeof s != "string")
1111
1118
  throw new TypeError(
@@ -1131,7 +1138,7 @@ function Ye() {
1131
1138
  case "hex":
1132
1139
  return i >>> 1;
1133
1140
  case "base64":
1134
- return ln(s).length;
1141
+ return cn(s).length;
1135
1142
  default:
1136
1143
  if (T)
1137
1144
  return m ? -1 : gt(s).length;
@@ -1139,7 +1146,7 @@ function Ye() {
1139
1146
  }
1140
1147
  }
1141
1148
  k.byteLength = $;
1142
- function G(s, r, i) {
1149
+ function z(s, r, i) {
1143
1150
  let m = !1;
1144
1151
  if ((r === void 0 || r < 0) && (r = 0), r > this.length || ((i === void 0 || i > this.length) && (i = this.length), i <= 0) || (i >>>= 0, r >>>= 0, i <= r))
1145
1152
  return "";
@@ -1161,7 +1168,7 @@ function Ye() {
1161
1168
  case "ucs-2":
1162
1169
  case "utf16le":
1163
1170
  case "utf-16le":
1164
- return ge(this, r, i);
1171
+ return ye(this, r, i);
1165
1172
  default:
1166
1173
  if (m) throw new TypeError("Unknown encoding: " + s);
1167
1174
  s = (s + "").toLowerCase(), m = !0;
@@ -1195,7 +1202,7 @@ function Ye() {
1195
1202
  return this;
1196
1203
  }, k.prototype.toString = function() {
1197
1204
  const r = this.length;
1198
- return r === 0 ? "" : arguments.length === 0 ? H(this, 0, r) : G.apply(this, arguments);
1205
+ return r === 0 ? "" : arguments.length === 0 ? H(this, 0, r) : z.apply(this, arguments);
1199
1206
  }, k.prototype.toLocaleString = k.prototype.toString, k.prototype.equals = function(r) {
1200
1207
  if (!k.isBuffer(r)) throw new TypeError("Argument must be a Buffer");
1201
1208
  return this === r ? !0 : k.compare(this, r) === 0;
@@ -1204,7 +1211,7 @@ function Ye() {
1204
1211
  const i = b.INSPECT_MAX_BYTES;
1205
1212
  return r = this.toString("hex", 0, i).replace(/(.{2})/g, "$1 ").trim(), this.length > i && (r += " ... "), "<Buffer " + r + ">";
1206
1213
  }, R && (k.prototype[R] = k.prototype.inspect), k.prototype.compare = function(r, i, m, T, N) {
1207
- if (Re(r, g) && (r = k.from(r, r.offset, r.byteLength)), !k.isBuffer(r))
1214
+ if (Pe(r, g) && (r = k.from(r, r.offset, r.byteLength)), !k.isBuffer(r))
1208
1215
  throw new TypeError(
1209
1216
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof r
1210
1217
  );
@@ -1291,14 +1298,14 @@ function Ye() {
1291
1298
  }
1292
1299
  return W;
1293
1300
  }
1294
- function z(s, r, i, m) {
1301
+ function G(s, r, i, m) {
1295
1302
  return Qe(gt(r, s.length - i), s, i, m);
1296
1303
  }
1297
1304
  function V(s, r, i, m) {
1298
1305
  return Qe(wo(r), s, i, m);
1299
1306
  }
1300
1307
  function d(s, r, i, m) {
1301
- return Qe(ln(r), s, i, m);
1308
+ return Qe(cn(r), s, i, m);
1302
1309
  }
1303
1310
  function p(s, r, i, m) {
1304
1311
  return Qe(_o(r, s.length - i), s, i, m);
@@ -1325,7 +1332,7 @@ function Ye() {
1325
1332
  return D(this, r, i, m);
1326
1333
  case "utf8":
1327
1334
  case "utf-8":
1328
- return z(this, r, i, m);
1335
+ return G(this, r, i, m);
1329
1336
  case "ascii":
1330
1337
  case "latin1":
1331
1338
  case "binary":
@@ -1412,7 +1419,7 @@ function Ye() {
1412
1419
  T += So[s[N]];
1413
1420
  return T;
1414
1421
  }
1415
- function ge(s, r, i) {
1422
+ function ye(s, r, i) {
1416
1423
  const m = s.slice(r, i);
1417
1424
  let T = "";
1418
1425
  for (let N = 0; N < m.length - 1; N += 2)
@@ -1546,14 +1553,14 @@ function Ye() {
1546
1553
  return r = +r, i = i >>> 0, m || ue(this, r, i, 4, 4294967295, 0), this[i] = r >>> 24, this[i + 1] = r >>> 16, this[i + 2] = r >>> 8, this[i + 3] = r & 255, i + 4;
1547
1554
  };
1548
1555
  function Ce(s, r, i, m, T) {
1549
- sn(r, m, T, s, i, 7);
1556
+ ln(r, m, T, s, i, 7);
1550
1557
  let N = Number(r & BigInt(4294967295));
1551
1558
  s[i++] = N, N = N >> 8, s[i++] = N, N = N >> 8, s[i++] = N, N = N >> 8, s[i++] = N;
1552
1559
  let W = Number(r >> BigInt(32) & BigInt(4294967295));
1553
1560
  return s[i++] = W, W = W >> 8, s[i++] = W, W = W >> 8, s[i++] = W, W = W >> 8, s[i++] = W, i;
1554
1561
  }
1555
1562
  function De(s, r, i, m, T) {
1556
- sn(r, m, T, s, i, 7);
1563
+ ln(r, m, T, s, i, 7);
1557
1564
  let N = Number(r & BigInt(4294967295));
1558
1565
  s[i + 7] = N, N = N >> 8, s[i + 6] = N, N = N >> 8, s[i + 5] = N, N = N >> 8, s[i + 4] = N;
1559
1566
  let W = Number(r >> BigInt(32) & BigInt(4294967295));
@@ -1608,13 +1615,13 @@ function Ye() {
1608
1615
  }, k.prototype.writeFloatBE = function(r, i, m) {
1609
1616
  return Oe(this, r, i, !1, m);
1610
1617
  };
1611
- function Te(s, r, i, m, T) {
1618
+ function Ie(s, r, i, m, T) {
1612
1619
  return r = +r, i = i >>> 0, T || Fe(s, r, i, 8), _.write(s, r, i, m, 52, 8), i + 8;
1613
1620
  }
1614
1621
  k.prototype.writeDoubleLE = function(r, i, m) {
1615
- return Te(this, r, i, !0, m);
1622
+ return Ie(this, r, i, !0, m);
1616
1623
  }, k.prototype.writeDoubleBE = function(r, i, m) {
1617
- return Te(this, r, i, !1, m);
1624
+ return Ie(this, r, i, !1, m);
1618
1625
  }, k.prototype.copy = function(r, i, m, T) {
1619
1626
  if (!k.isBuffer(r)) throw new TypeError("argument should be a Buffer");
1620
1627
  if (m || (m = 0), !T && T !== 0 && (T = this.length), i >= r.length && (i = r.length), i || (i = 0), T > 0 && T < m && (T = m), T === m || r.length === 0 || this.length === 0) return 0;
@@ -1700,11 +1707,11 @@ function Ye() {
1700
1707
  "ERR_OUT_OF_RANGE",
1701
1708
  function(s, r, i) {
1702
1709
  let m = `The value of "${s}" is out of range.`, T = i;
1703
- return Number.isInteger(i) && Math.abs(i) > ne(2, 32) ? T = an(String(i)) : typeof i == "bigint" && (T = String(i), (i > ne(BigInt(2), BigInt(32)) || i < -ne(BigInt(2), BigInt(32))) && (T = an(T)), T += "n"), m += ` It must be ${r}. Received ${T}`, m;
1710
+ return Number.isInteger(i) && Math.abs(i) > ne(2, 32) ? T = sn(String(i)) : typeof i == "bigint" && (T = String(i), (i > ne(BigInt(2), BigInt(32)) || i < -ne(BigInt(2), BigInt(32))) && (T = sn(T)), T += "n"), m += ` It must be ${r}. Received ${T}`, m;
1704
1711
  },
1705
1712
  RangeError
1706
1713
  );
1707
- function an(s) {
1714
+ function sn(s) {
1708
1715
  let r = "", i = s.length;
1709
1716
  const m = s[0] === "-" ? 1 : 0;
1710
1717
  for (; i >= m + 4; i -= 3)
@@ -1714,7 +1721,7 @@ function Ye() {
1714
1721
  function mo(s, r, i) {
1715
1722
  je(r, "offset"), (s[r] === void 0 || s[r + i] === void 0) && Ve(r, s.length - (i + 1));
1716
1723
  }
1717
- function sn(s, r, i, m, T, N) {
1724
+ function ln(s, r, i, m, T, N) {
1718
1725
  if (s > i || s < r) {
1719
1726
  const W = typeof r == "bigint" ? "n" : "";
1720
1727
  let Z;
@@ -1807,7 +1814,7 @@ function Ye() {
1807
1814
  i = s.charCodeAt(W), m = i >> 8, T = i % 256, N.push(T), N.push(m);
1808
1815
  return N;
1809
1816
  }
1810
- function ln(s) {
1817
+ function cn(s) {
1811
1818
  return P.toByteArray(bo(s));
1812
1819
  }
1813
1820
  function Qe(s, r, i, m) {
@@ -1816,7 +1823,7 @@ function Ye() {
1816
1823
  r[T + i] = s[T];
1817
1824
  return T;
1818
1825
  }
1819
- function Re(s, r) {
1826
+ function Pe(s, r) {
1820
1827
  return s instanceof r || s != null && s.constructor != null && s.constructor.name != null && s.constructor.name === r.name;
1821
1828
  }
1822
1829
  function yt(s) {
@@ -1843,9 +1850,9 @@ function Ye() {
1843
1850
  }(Et)), Et;
1844
1851
  }
1845
1852
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
1846
- var yn;
1853
+ var mn;
1847
1854
  function Ki() {
1848
- return yn || (yn = 1, function(n, e) {
1855
+ return mn || (mn = 1, function(n, e) {
1849
1856
  var t = Ye(), o = t.Buffer;
1850
1857
  function l(E, a) {
1851
1858
  for (var f in E)
@@ -1875,10 +1882,10 @@ function Ki() {
1875
1882
  };
1876
1883
  }(ot, ot.exports)), ot.exports;
1877
1884
  }
1878
- var mn;
1885
+ var vn;
1879
1886
  function Uo() {
1880
- if (mn) return it.exports;
1881
- mn = 1;
1887
+ if (vn) return it.exports;
1888
+ vn = 1;
1882
1889
  var n = { env: {} }, e = 65536, t = 4294967295;
1883
1890
  function o() {
1884
1891
  throw new Error(`Secure random number generation is not supported by this browser.
@@ -1901,10 +1908,10 @@ Use Chrome, Firefox or Internet Explorer 11`);
1901
1908
  }
1902
1909
  return it.exports;
1903
1910
  }
1904
- var at = { exports: {} }, st = { exports: {} }, vn;
1905
- function Qr() {
1906
- if (vn) return st.exports;
1907
- vn = 1;
1911
+ var at = { exports: {} }, st = { exports: {} }, bn;
1912
+ function en() {
1913
+ if (bn) return st.exports;
1914
+ bn = 1;
1908
1915
  var n = typeof Reflect == "object" ? Reflect : null, e = n && typeof n.apply == "function" ? n.apply : function(R, v, g) {
1909
1916
  return Function.prototype.apply.call(R, v, g);
1910
1917
  }, t;
@@ -2113,13 +2120,13 @@ function Qr() {
2113
2120
  }
2114
2121
  return st.exports;
2115
2122
  }
2116
- var Rt, bn;
2123
+ var Rt, wn;
2117
2124
  function Xi() {
2118
- return bn || (bn = 1, Rt = Qr().EventEmitter), Rt;
2125
+ return wn || (wn = 1, Rt = en().EventEmitter), Rt;
2119
2126
  }
2120
- var Pt = {}, At = {}, Tt, wn;
2127
+ var Pt = {}, At = {}, Tt, _n;
2121
2128
  function Zi() {
2122
- return wn || (wn = 1, Tt = function() {
2129
+ return _n || (_n = 1, Tt = function() {
2123
2130
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
2124
2131
  return !1;
2125
2132
  if (typeof Symbol.iterator == "symbol")
@@ -2147,94 +2154,94 @@ function Zi() {
2147
2154
  return !0;
2148
2155
  }), Tt;
2149
2156
  }
2150
- var It, _n;
2157
+ var It, Sn;
2151
2158
  function dt() {
2152
- if (_n) return It;
2153
- _n = 1;
2159
+ if (Sn) return It;
2160
+ Sn = 1;
2154
2161
  var n = Zi();
2155
2162
  return It = function() {
2156
2163
  return n() && !!Symbol.toStringTag;
2157
2164
  }, It;
2158
2165
  }
2159
- var Ot, Sn;
2166
+ var Ot, Cn;
2160
2167
  function Qi() {
2161
- return Sn || (Sn = 1, Ot = Object), Ot;
2168
+ return Cn || (Cn = 1, Ot = Object), Ot;
2162
2169
  }
2163
- var kt, Cn;
2170
+ var kt, En;
2164
2171
  function qo() {
2165
- return Cn || (Cn = 1, kt = Error), kt;
2172
+ return En || (En = 1, kt = Error), kt;
2166
2173
  }
2167
- var Bt, En;
2174
+ var Bt, Rn;
2168
2175
  function xo() {
2169
- return En || (En = 1, Bt = EvalError), Bt;
2176
+ return Rn || (Rn = 1, Bt = EvalError), Bt;
2170
2177
  }
2171
- var Mt, Rn;
2178
+ var Mt, Pn;
2172
2179
  function Wo() {
2173
- return Rn || (Rn = 1, Mt = RangeError), Mt;
2180
+ return Pn || (Pn = 1, Mt = RangeError), Mt;
2174
2181
  }
2175
- var Lt, Pn;
2176
- function zo() {
2177
- return Pn || (Pn = 1, Lt = ReferenceError), Lt;
2182
+ var Lt, An;
2183
+ function Go() {
2184
+ return An || (An = 1, Lt = ReferenceError), Lt;
2178
2185
  }
2179
- var Nt, An;
2186
+ var Nt, Tn;
2180
2187
  function eo() {
2181
- return An || (An = 1, Nt = SyntaxError), Nt;
2188
+ return Tn || (Tn = 1, Nt = SyntaxError), Nt;
2182
2189
  }
2183
- var Dt, Tn;
2190
+ var Dt, In;
2184
2191
  function Ke() {
2185
- return Tn || (Tn = 1, Dt = TypeError), Dt;
2192
+ return In || (In = 1, Dt = TypeError), Dt;
2186
2193
  }
2187
- var Ft, In;
2188
- function Go() {
2189
- return In || (In = 1, Ft = URIError), Ft;
2194
+ var Ft, On;
2195
+ function zo() {
2196
+ return On || (On = 1, Ft = URIError), Ft;
2190
2197
  }
2191
- var jt, On;
2198
+ var jt, kn;
2192
2199
  function Vo() {
2193
- return On || (On = 1, jt = Math.abs), jt;
2200
+ return kn || (kn = 1, jt = Math.abs), jt;
2194
2201
  }
2195
- var $t, kn;
2202
+ var $t, Bn;
2196
2203
  function Ho() {
2197
- return kn || (kn = 1, $t = Math.floor), $t;
2204
+ return Bn || (Bn = 1, $t = Math.floor), $t;
2198
2205
  }
2199
- var Ut, Bn;
2206
+ var Ut, Mn;
2200
2207
  function Jo() {
2201
- return Bn || (Bn = 1, Ut = Math.max), Ut;
2208
+ return Mn || (Mn = 1, Ut = Math.max), Ut;
2202
2209
  }
2203
- var qt, Mn;
2210
+ var qt, Ln;
2204
2211
  function Yo() {
2205
- return Mn || (Mn = 1, qt = Math.min), qt;
2212
+ return Ln || (Ln = 1, qt = Math.min), qt;
2206
2213
  }
2207
- var xt, Ln;
2214
+ var xt, Nn;
2208
2215
  function Ko() {
2209
- return Ln || (Ln = 1, xt = Math.pow), xt;
2216
+ return Nn || (Nn = 1, xt = Math.pow), xt;
2210
2217
  }
2211
- var Wt, Nn;
2218
+ var Wt, Dn;
2212
2219
  function Xo() {
2213
- return Nn || (Nn = 1, Wt = Math.round), Wt;
2220
+ return Dn || (Dn = 1, Wt = Math.round), Wt;
2214
2221
  }
2215
- var zt, Dn;
2222
+ var Gt, Fn;
2216
2223
  function Zo() {
2217
- return Dn || (Dn = 1, zt = Number.isNaN || function(e) {
2224
+ return Fn || (Fn = 1, Gt = Number.isNaN || function(e) {
2218
2225
  return e !== e;
2219
- }), zt;
2226
+ }), Gt;
2220
2227
  }
2221
- var Gt, Fn;
2228
+ var zt, jn;
2222
2229
  function Qo() {
2223
- if (Fn) return Gt;
2224
- Fn = 1;
2230
+ if (jn) return zt;
2231
+ jn = 1;
2225
2232
  var n = /* @__PURE__ */ Zo();
2226
- return Gt = function(t) {
2233
+ return zt = function(t) {
2227
2234
  return n(t) || t === 0 ? t : t < 0 ? -1 : 1;
2228
- }, Gt;
2235
+ }, zt;
2229
2236
  }
2230
- var Vt, jn;
2237
+ var Vt, $n;
2231
2238
  function ea() {
2232
- return jn || (jn = 1, Vt = Object.getOwnPropertyDescriptor), Vt;
2239
+ return $n || ($n = 1, Vt = Object.getOwnPropertyDescriptor), Vt;
2233
2240
  }
2234
- var Ht, $n;
2241
+ var Ht, Un;
2235
2242
  function We() {
2236
- if ($n) return Ht;
2237
- $n = 1;
2243
+ if (Un) return Ht;
2244
+ Un = 1;
2238
2245
  var n = /* @__PURE__ */ ea();
2239
2246
  if (n)
2240
2247
  try {
@@ -2244,10 +2251,10 @@ function We() {
2244
2251
  }
2245
2252
  return Ht = n, Ht;
2246
2253
  }
2247
- var Jt, Un;
2254
+ var Jt, qn;
2248
2255
  function ht() {
2249
- if (Un) return Jt;
2250
- Un = 1;
2256
+ if (qn) return Jt;
2257
+ qn = 1;
2251
2258
  var n = Object.defineProperty || !1;
2252
2259
  if (n)
2253
2260
  try {
@@ -2257,23 +2264,23 @@ function ht() {
2257
2264
  }
2258
2265
  return Jt = n, Jt;
2259
2266
  }
2260
- var Yt, qn;
2267
+ var Yt, xn;
2261
2268
  function ta() {
2262
- if (qn) return Yt;
2263
- qn = 1;
2269
+ if (xn) return Yt;
2270
+ xn = 1;
2264
2271
  var n = typeof Symbol != "undefined" && Symbol, e = Zi();
2265
2272
  return Yt = function() {
2266
2273
  return typeof n != "function" || typeof Symbol != "function" || typeof n("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
2267
2274
  }, Yt;
2268
2275
  }
2269
- var Kt, xn;
2276
+ var Kt, Wn;
2270
2277
  function to() {
2271
- return xn || (xn = 1, Kt = typeof Reflect != "undefined" && Reflect.getPrototypeOf || null), Kt;
2278
+ return Wn || (Wn = 1, Kt = typeof Reflect != "undefined" && Reflect.getPrototypeOf || null), Kt;
2272
2279
  }
2273
- var Xt, Wn;
2280
+ var Xt, Gn;
2274
2281
  function ro() {
2275
- if (Wn) return Xt;
2276
- Wn = 1;
2282
+ if (Gn) return Xt;
2283
+ Gn = 1;
2277
2284
  var n = /* @__PURE__ */ Qi();
2278
2285
  return Xt = n.getPrototypeOf || null, Xt;
2279
2286
  }
@@ -2322,48 +2329,48 @@ function ra() {
2322
2329
  return A;
2323
2330
  }, Zt;
2324
2331
  }
2325
- var Qt, Gn;
2332
+ var Qt, Vn;
2326
2333
  function Xe() {
2327
- if (Gn) return Qt;
2328
- Gn = 1;
2334
+ if (Vn) return Qt;
2335
+ Vn = 1;
2329
2336
  var n = ra();
2330
2337
  return Qt = Function.prototype.bind || n, Qt;
2331
2338
  }
2332
- var er, Vn;
2333
- function en() {
2334
- return Vn || (Vn = 1, er = Function.prototype.call), er;
2335
- }
2336
- var tr, Hn;
2339
+ var er, Hn;
2337
2340
  function tn() {
2338
- return Hn || (Hn = 1, tr = Function.prototype.apply), tr;
2341
+ return Hn || (Hn = 1, er = Function.prototype.call), er;
2342
+ }
2343
+ var tr, Jn;
2344
+ function rn() {
2345
+ return Jn || (Jn = 1, tr = Function.prototype.apply), tr;
2339
2346
  }
2340
- var rr, Jn;
2347
+ var rr, Yn;
2341
2348
  function na() {
2342
- return Jn || (Jn = 1, rr = typeof Reflect != "undefined" && Reflect && Reflect.apply), rr;
2349
+ return Yn || (Yn = 1, rr = typeof Reflect != "undefined" && Reflect && Reflect.apply), rr;
2343
2350
  }
2344
- var nr, Yn;
2351
+ var nr, Kn;
2345
2352
  function no() {
2346
- if (Yn) return nr;
2347
- Yn = 1;
2348
- var n = Xe(), e = tn(), t = en(), o = na();
2353
+ if (Kn) return nr;
2354
+ Kn = 1;
2355
+ var n = Xe(), e = rn(), t = tn(), o = na();
2349
2356
  return nr = o || n.call(t, e), nr;
2350
2357
  }
2351
- var ir, Kn;
2352
- function rn() {
2353
- if (Kn) return ir;
2354
- Kn = 1;
2355
- var n = Xe(), e = /* @__PURE__ */ Ke(), t = en(), o = no();
2358
+ var ir, Xn;
2359
+ function nn() {
2360
+ if (Xn) return ir;
2361
+ Xn = 1;
2362
+ var n = Xe(), e = /* @__PURE__ */ Ke(), t = tn(), o = no();
2356
2363
  return ir = function(c) {
2357
2364
  if (c.length < 1 || typeof c[0] != "function")
2358
2365
  throw new e("a function is required");
2359
2366
  return o(n, t, c);
2360
2367
  }, ir;
2361
2368
  }
2362
- var or, Xn;
2369
+ var or, Zn;
2363
2370
  function ia() {
2364
- if (Xn) return or;
2365
- Xn = 1;
2366
- var n = rn(), e = /* @__PURE__ */ We(), t;
2371
+ if (Zn) return or;
2372
+ Zn = 1;
2373
+ var n = nn(), e = /* @__PURE__ */ We(), t;
2367
2374
  try {
2368
2375
  t = /** @type {{ __proto__?: typeof Array.prototype }} */
2369
2376
  [].__proto__ === Array.prototype;
@@ -2383,10 +2390,10 @@ function ia() {
2383
2390
  }
2384
2391
  ) : !1, or;
2385
2392
  }
2386
- var ar, Zn;
2387
- function nn() {
2388
- if (Zn) return ar;
2389
- Zn = 1;
2393
+ var ar, Qn;
2394
+ function on() {
2395
+ if (Qn) return ar;
2396
+ Qn = 1;
2390
2397
  var n = to(), e = ro(), t = /* @__PURE__ */ ia();
2391
2398
  return ar = n ? function(l) {
2392
2399
  return n(l);
@@ -2398,21 +2405,21 @@ function nn() {
2398
2405
  return t(l);
2399
2406
  } : null, ar;
2400
2407
  }
2401
- var sr, Qn;
2408
+ var sr, ei;
2402
2409
  function io() {
2403
- if (Qn) return sr;
2404
- Qn = 1;
2410
+ if (ei) return sr;
2411
+ ei = 1;
2405
2412
  var n = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Xe();
2406
2413
  return sr = t.call(n, e), sr;
2407
2414
  }
2408
- var lr, ei;
2415
+ var lr, ti;
2409
2416
  function oo() {
2410
- if (ei) return lr;
2411
- ei = 1;
2412
- var n, e = /* @__PURE__ */ Qi(), t = /* @__PURE__ */ qo(), o = /* @__PURE__ */ xo(), l = /* @__PURE__ */ Wo(), c = /* @__PURE__ */ zo(), E = /* @__PURE__ */ eo(), a = /* @__PURE__ */ Ke(), f = /* @__PURE__ */ Go(), u = /* @__PURE__ */ Vo(), w = /* @__PURE__ */ Ho(), A = /* @__PURE__ */ Jo(), C = /* @__PURE__ */ Yo(), j = /* @__PURE__ */ Ko(), y = /* @__PURE__ */ Xo(), I = /* @__PURE__ */ Qo(), S = Function, h = function(D) {
2417
+ if (ti) return lr;
2418
+ ti = 1;
2419
+ var n, e = /* @__PURE__ */ Qi(), t = /* @__PURE__ */ qo(), o = /* @__PURE__ */ xo(), l = /* @__PURE__ */ Wo(), c = /* @__PURE__ */ Go(), E = /* @__PURE__ */ eo(), a = /* @__PURE__ */ Ke(), f = /* @__PURE__ */ zo(), u = /* @__PURE__ */ Vo(), w = /* @__PURE__ */ Ho(), A = /* @__PURE__ */ Jo(), C = /* @__PURE__ */ Yo(), j = /* @__PURE__ */ Ko(), y = /* @__PURE__ */ Xo(), I = /* @__PURE__ */ Qo(), S = Function, h = function(D) {
2413
2420
  try {
2414
2421
  return S('"use strict"; return (' + D + ").constructor;")();
2415
- } catch (z) {
2422
+ } catch (G) {
2416
2423
  }
2417
2424
  }, b = /* @__PURE__ */ We(), P = /* @__PURE__ */ ht(), _ = function() {
2418
2425
  throw new a();
@@ -2422,11 +2429,11 @@ function oo() {
2422
2429
  } catch (D) {
2423
2430
  try {
2424
2431
  return b(arguments, "callee").get;
2425
- } catch (z) {
2432
+ } catch (G) {
2426
2433
  return _;
2427
2434
  }
2428
2435
  }
2429
- }() : _, v = ta()(), g = nn(), M = ro(), U = to(), F = tn(), J = en(), k = {}, te = typeof Uint8Array == "undefined" || !g ? n : g(Uint8Array), ee = {
2436
+ }() : _, v = ta()(), g = on(), M = ro(), U = to(), F = rn(), J = tn(), k = {}, te = typeof Uint8Array == "undefined" || !g ? n : g(Uint8Array), ee = {
2430
2437
  __proto__: null,
2431
2438
  "%AggregateError%": typeof AggregateError == "undefined" ? n : AggregateError,
2432
2439
  "%Array%": Array,
@@ -2517,22 +2524,22 @@ function oo() {
2517
2524
  var ae = g(g(D));
2518
2525
  ee["%Error.prototype%"] = ae;
2519
2526
  }
2520
- var le = function D(z) {
2527
+ var le = function D(G) {
2521
2528
  var V;
2522
- if (z === "%AsyncFunction%")
2529
+ if (G === "%AsyncFunction%")
2523
2530
  V = h("async function () {}");
2524
- else if (z === "%GeneratorFunction%")
2531
+ else if (G === "%GeneratorFunction%")
2525
2532
  V = h("function* () {}");
2526
- else if (z === "%AsyncGeneratorFunction%")
2533
+ else if (G === "%AsyncGeneratorFunction%")
2527
2534
  V = h("async function* () {}");
2528
- else if (z === "%AsyncGenerator%") {
2535
+ else if (G === "%AsyncGenerator%") {
2529
2536
  var d = D("%AsyncGeneratorFunction%");
2530
2537
  d && (V = d.prototype);
2531
- } else if (z === "%AsyncIteratorPrototype%") {
2538
+ } else if (G === "%AsyncIteratorPrototype%") {
2532
2539
  var p = D("%AsyncGenerator%");
2533
2540
  p && g && (V = g(p.prototype));
2534
2541
  }
2535
- return ee[z] = V, V;
2542
+ return ee[G] = V, V;
2536
2543
  }, me = {
2537
2544
  __proto__: null,
2538
2545
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
@@ -2586,67 +2593,67 @@ function oo() {
2586
2593
  "%URIErrorPrototype%": ["URIError", "prototype"],
2587
2594
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2588
2595
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2589
- }, ce = Xe(), pe = /* @__PURE__ */ io(), ie = ce.call(J, Array.prototype.concat), _e = ce.call(F, Array.prototype.splice), he = ce.call(J, String.prototype.replace), L = ce.call(J, String.prototype.slice), $ = ce.call(J, RegExp.prototype.exec), G = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Y = /\\(\\)?/g, B = function(z) {
2590
- var V = L(z, 0, 1), d = L(z, -1);
2596
+ }, ce = Xe(), ge = /* @__PURE__ */ io(), ie = ce.call(J, Array.prototype.concat), _e = ce.call(F, Array.prototype.splice), he = ce.call(J, String.prototype.replace), L = ce.call(J, String.prototype.slice), $ = ce.call(J, RegExp.prototype.exec), z = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Y = /\\(\\)?/g, B = function(G) {
2597
+ var V = L(G, 0, 1), d = L(G, -1);
2591
2598
  if (V === "%" && d !== "%")
2592
2599
  throw new E("invalid intrinsic syntax, expected closing `%`");
2593
2600
  if (d === "%" && V !== "%")
2594
2601
  throw new E("invalid intrinsic syntax, expected opening `%`");
2595
2602
  var p = [];
2596
- return he(z, G, function(x, H, K, X) {
2603
+ return he(G, z, function(x, H, K, X) {
2597
2604
  p[p.length] = K ? he(X, Y, "$1") : H || x;
2598
2605
  }), p;
2599
- }, O = function(z, V) {
2600
- var d = z, p;
2601
- if (pe(me, d) && (p = me[d], d = "%" + p[0] + "%"), pe(ee, d)) {
2606
+ }, O = function(G, V) {
2607
+ var d = G, p;
2608
+ if (ge(me, d) && (p = me[d], d = "%" + p[0] + "%"), ge(ee, d)) {
2602
2609
  var x = ee[d];
2603
2610
  if (x === k && (x = le(d)), typeof x == "undefined" && !V)
2604
- throw new a("intrinsic " + z + " exists, but is not available. Please file an issue!");
2611
+ throw new a("intrinsic " + G + " exists, but is not available. Please file an issue!");
2605
2612
  return {
2606
2613
  alias: p,
2607
2614
  name: d,
2608
2615
  value: x
2609
2616
  };
2610
2617
  }
2611
- throw new E("intrinsic " + z + " does not exist!");
2618
+ throw new E("intrinsic " + G + " does not exist!");
2612
2619
  };
2613
- return lr = function(z, V) {
2614
- if (typeof z != "string" || z.length === 0)
2620
+ return lr = function(G, V) {
2621
+ if (typeof G != "string" || G.length === 0)
2615
2622
  throw new a("intrinsic name must be a non-empty string");
2616
2623
  if (arguments.length > 1 && typeof V != "boolean")
2617
2624
  throw new a('"allowMissing" argument must be a boolean');
2618
- if ($(/^%?[^%]*%?$/, z) === null)
2625
+ if ($(/^%?[^%]*%?$/, G) === null)
2619
2626
  throw new E("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
2620
- var d = B(z), p = d.length > 0 ? d[0] : "", x = O("%" + p + "%", V), H = x.name, K = x.value, X = !1, Q = x.alias;
2627
+ var d = B(G), p = d.length > 0 ? d[0] : "", x = O("%" + p + "%", V), H = x.name, K = x.value, X = !1, Q = x.alias;
2621
2628
  Q && (p = Q[0], _e(d, ie([0, 1], Q)));
2622
2629
  for (var q = 1, ve = !0; q < d.length; q += 1) {
2623
- var ge = d[q], oe = L(ge, 0, 1), ue = L(ge, -1);
2630
+ var ye = d[q], oe = L(ye, 0, 1), ue = L(ye, -1);
2624
2631
  if ((oe === '"' || oe === "'" || oe === "`" || ue === '"' || ue === "'" || ue === "`") && oe !== ue)
2625
2632
  throw new E("property names with quotes must have matching quotes");
2626
- if ((ge === "constructor" || !ve) && (X = !0), p += "." + ge, H = "%" + p + "%", pe(ee, H))
2633
+ if ((ye === "constructor" || !ve) && (X = !0), p += "." + ye, H = "%" + p + "%", ge(ee, H))
2627
2634
  K = ee[H];
2628
2635
  else if (K != null) {
2629
- if (!(ge in K)) {
2636
+ if (!(ye in K)) {
2630
2637
  if (!V)
2631
- throw new a("base intrinsic for " + z + " exists, but the property is not available.");
2638
+ throw new a("base intrinsic for " + G + " exists, but the property is not available.");
2632
2639
  return;
2633
2640
  }
2634
2641
  if (b && q + 1 >= d.length) {
2635
- var Ce = b(K, ge);
2636
- ve = !!Ce, ve && "get" in Ce && !("originalValue" in Ce.get) ? K = Ce.get : K = K[ge];
2642
+ var Ce = b(K, ye);
2643
+ ve = !!Ce, ve && "get" in Ce && !("originalValue" in Ce.get) ? K = Ce.get : K = K[ye];
2637
2644
  } else
2638
- ve = pe(K, ge), K = K[ge];
2645
+ ve = ge(K, ye), K = K[ye];
2639
2646
  ve && !X && (ee[H] = K);
2640
2647
  }
2641
2648
  }
2642
2649
  return K;
2643
2650
  }, lr;
2644
2651
  }
2645
- var cr, ti;
2652
+ var cr, ri;
2646
2653
  function Ze() {
2647
- if (ti) return cr;
2648
- ti = 1;
2649
- var n = /* @__PURE__ */ oo(), e = rn(), t = e([n("%String.prototype.indexOf%")]);
2654
+ if (ri) return cr;
2655
+ ri = 1;
2656
+ var n = /* @__PURE__ */ oo(), e = nn(), t = e([n("%String.prototype.indexOf%")]);
2650
2657
  return cr = function(l, c) {
2651
2658
  var E = (
2652
2659
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
@@ -2658,10 +2665,10 @@ function Ze() {
2658
2665
  ) : E;
2659
2666
  }, cr;
2660
2667
  }
2661
- var ur, ri;
2668
+ var ur, ni;
2662
2669
  function oa() {
2663
- if (ri) return ur;
2664
- ri = 1;
2670
+ if (ni) return ur;
2671
+ ni = 1;
2665
2672
  var n = dt()(), e = /* @__PURE__ */ Ze(), t = e("Object.prototype.toString"), o = function(a) {
2666
2673
  return n && a && typeof a == "object" && Symbol.toStringTag in a ? !1 : t(a) === "[object Arguments]";
2667
2674
  }, l = function(a) {
@@ -2671,10 +2678,10 @@ function oa() {
2671
2678
  }();
2672
2679
  return o.isLegacyArguments = l, ur = c ? o : l, ur;
2673
2680
  }
2674
- var fr, ni;
2681
+ var fr, ii;
2675
2682
  function aa() {
2676
- if (ni) return fr;
2677
- ni = 1;
2683
+ if (ii) return fr;
2684
+ ii = 1;
2678
2685
  var n = /* @__PURE__ */ Ze(), e = dt()(), t = /* @__PURE__ */ io(), o = /* @__PURE__ */ We(), l;
2679
2686
  if (e) {
2680
2687
  var c = n("RegExp.prototype.exec"), E = {}, a = function() {
@@ -2715,10 +2722,10 @@ function aa() {
2715
2722
  }
2716
2723
  return fr = l, fr;
2717
2724
  }
2718
- var dr, ii;
2725
+ var dr, oi;
2719
2726
  function sa() {
2720
- if (ii) return dr;
2721
- ii = 1;
2727
+ if (oi) return dr;
2728
+ oi = 1;
2722
2729
  var n = /* @__PURE__ */ Ze(), e = aa(), t = n("RegExp.prototype.exec"), o = /* @__PURE__ */ Ke();
2723
2730
  return dr = function(c) {
2724
2731
  if (!e(c))
@@ -2728,11 +2735,11 @@ function sa() {
2728
2735
  };
2729
2736
  }, dr;
2730
2737
  }
2731
- var hr, oi;
2738
+ var hr, ai;
2732
2739
  function la() {
2733
- if (oi) return hr;
2734
- oi = 1;
2735
- var n = /* @__PURE__ */ Ze(), e = /* @__PURE__ */ sa(), t = e(/^\s*(?:function)?\*/), o = dt()(), l = nn(), c = n("Object.prototype.toString"), E = n("Function.prototype.toString"), a = function() {
2740
+ if (ai) return hr;
2741
+ ai = 1;
2742
+ var n = /* @__PURE__ */ Ze(), e = /* @__PURE__ */ sa(), t = e(/^\s*(?:function)?\*/), o = dt()(), l = on(), c = n("Object.prototype.toString"), E = n("Function.prototype.toString"), a = function() {
2736
2743
  if (!o)
2737
2744
  return !1;
2738
2745
  try {
@@ -2761,10 +2768,10 @@ function la() {
2761
2768
  return l(w) === f;
2762
2769
  }, hr;
2763
2770
  }
2764
- var pr, ai;
2771
+ var pr, si;
2765
2772
  function ca() {
2766
- if (ai) return pr;
2767
- ai = 1;
2773
+ if (si) return pr;
2774
+ si = 1;
2768
2775
  var n = Function.prototype.toString, e = typeof Reflect == "object" && Reflect !== null && Reflect.apply, t, o;
2769
2776
  if (typeof e == "function" && typeof Object.defineProperty == "function")
2770
2777
  try {
@@ -2833,10 +2840,10 @@ function ca() {
2833
2840
  return _ !== u && _ !== w && !/^\[object HTML/.test(_) ? !1 : E(P);
2834
2841
  }, pr;
2835
2842
  }
2836
- var gr, si;
2843
+ var gr, li;
2837
2844
  function ua() {
2838
- if (si) return gr;
2839
- si = 1;
2845
+ if (li) return gr;
2846
+ li = 1;
2840
2847
  var n = ca(), e = Object.prototype.toString, t = Object.prototype.hasOwnProperty, o = function(f, u, w) {
2841
2848
  for (var A = 0, C = f.length; A < C; A++)
2842
2849
  t.call(f, A) && (w == null ? u(f[A], A, f) : u.call(w, f[A], A, f));
@@ -2857,9 +2864,9 @@ function ua() {
2857
2864
  arguments.length >= 3 && (A = w), E(f) ? o(f, u, A) : typeof f == "string" ? l(f, u, A) : c(f, u, A);
2858
2865
  }, gr;
2859
2866
  }
2860
- var yr, li;
2867
+ var yr, ci;
2861
2868
  function fa() {
2862
- return li || (li = 1, yr = [
2869
+ return ci || (ci = 1, yr = [
2863
2870
  "Float16Array",
2864
2871
  "Float32Array",
2865
2872
  "Float64Array",
@@ -2874,10 +2881,10 @@ function fa() {
2874
2881
  "BigUint64Array"
2875
2882
  ]), yr;
2876
2883
  }
2877
- var mr, ci;
2884
+ var mr, ui;
2878
2885
  function da() {
2879
- if (ci) return mr;
2880
- ci = 1;
2886
+ if (ui) return mr;
2887
+ ui = 1;
2881
2888
  var n = /* @__PURE__ */ fa(), e = globalThis;
2882
2889
  return mr = function() {
2883
2890
  for (var o = [], l = 0; l < n.length; l++)
@@ -2885,10 +2892,10 @@ function da() {
2885
2892
  return o;
2886
2893
  }, mr;
2887
2894
  }
2888
- var vr = { exports: {} }, br, ui;
2895
+ var vr = { exports: {} }, br, fi;
2889
2896
  function ha() {
2890
- if (ui) return br;
2891
- ui = 1;
2897
+ if (fi) return br;
2898
+ fi = 1;
2892
2899
  var n = /* @__PURE__ */ ht(), e = /* @__PURE__ */ eo(), t = /* @__PURE__ */ Ke(), o = /* @__PURE__ */ We();
2893
2900
  return br = function(c, E, a) {
2894
2901
  if (!c || typeof c != "object" && typeof c != "function")
@@ -2917,10 +2924,10 @@ function ha() {
2917
2924
  throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
2918
2925
  }, br;
2919
2926
  }
2920
- var wr, fi;
2927
+ var wr, di;
2921
2928
  function pa() {
2922
- if (fi) return wr;
2923
- fi = 1;
2929
+ if (di) return wr;
2930
+ di = 1;
2924
2931
  var n = /* @__PURE__ */ ht(), e = function() {
2925
2932
  return !!n;
2926
2933
  };
@@ -2934,10 +2941,10 @@ function pa() {
2934
2941
  }
2935
2942
  }, wr = e, wr;
2936
2943
  }
2937
- var _r, di;
2944
+ var _r, hi;
2938
2945
  function ga() {
2939
- if (di) return _r;
2940
- di = 1;
2946
+ if (hi) return _r;
2947
+ hi = 1;
2941
2948
  var n = /* @__PURE__ */ oo(), e = /* @__PURE__ */ ha(), t = /* @__PURE__ */ pa()(), o = /* @__PURE__ */ We(), l = /* @__PURE__ */ Ke(), c = n("%Math.floor%");
2942
2949
  return _r = function(a, f) {
2943
2950
  if (typeof a != "function")
@@ -2964,19 +2971,19 @@ function ga() {
2964
2971
  )), a;
2965
2972
  }, _r;
2966
2973
  }
2967
- var Sr, hi;
2974
+ var Sr, pi;
2968
2975
  function ya() {
2969
- if (hi) return Sr;
2970
- hi = 1;
2971
- var n = Xe(), e = tn(), t = no();
2976
+ if (pi) return Sr;
2977
+ pi = 1;
2978
+ var n = Xe(), e = rn(), t = no();
2972
2979
  return Sr = function() {
2973
2980
  return t(n, e, arguments);
2974
2981
  }, Sr;
2975
2982
  }
2976
- var pi;
2983
+ var gi;
2977
2984
  function ma() {
2978
- return pi || (pi = 1, function(n) {
2979
- var e = /* @__PURE__ */ ga(), t = /* @__PURE__ */ ht(), o = rn(), l = ya();
2985
+ return gi || (gi = 1, function(n) {
2986
+ var e = /* @__PURE__ */ ga(), t = /* @__PURE__ */ ht(), o = nn(), l = ya();
2980
2987
  n.exports = function(E) {
2981
2988
  var a = o(arguments), f = E.length - (arguments.length - 1);
2982
2989
  return e(
@@ -2987,11 +2994,11 @@ function ma() {
2987
2994
  }, t ? t(n.exports, "apply", { value: l }) : n.exports.apply = l;
2988
2995
  }(vr)), vr.exports;
2989
2996
  }
2990
- var Cr, gi;
2997
+ var Cr, yi;
2991
2998
  function ao() {
2992
- if (gi) return Cr;
2993
- gi = 1;
2994
- var n = ua(), e = /* @__PURE__ */ da(), t = ma(), o = /* @__PURE__ */ Ze(), l = /* @__PURE__ */ We(), c = nn(), E = o("Object.prototype.toString"), a = dt()(), f = globalThis, u = e(), w = o("String.prototype.slice"), A = o("Array.prototype.indexOf", !0) || function(S, h) {
2999
+ if (yi) return Cr;
3000
+ yi = 1;
3001
+ var n = ua(), e = /* @__PURE__ */ da(), t = ma(), o = /* @__PURE__ */ Ze(), l = /* @__PURE__ */ We(), c = on(), E = o("Object.prototype.toString"), a = dt()(), f = globalThis, u = e(), w = o("String.prototype.slice"), A = o("Array.prototype.indexOf", !0) || function(S, h) {
2995
3002
  for (var b = 0; b < S.length; b += 1)
2996
3003
  if (S[b] === h)
2997
3004
  return b;
@@ -3057,18 +3064,18 @@ function ao() {
3057
3064
  return l ? j(S) : null;
3058
3065
  }, Cr;
3059
3066
  }
3060
- var Er, yi;
3067
+ var Er, mi;
3061
3068
  function va() {
3062
- if (yi) return Er;
3063
- yi = 1;
3069
+ if (mi) return Er;
3070
+ mi = 1;
3064
3071
  var n = /* @__PURE__ */ ao();
3065
3072
  return Er = function(t) {
3066
3073
  return !!n(t);
3067
3074
  }, Er;
3068
3075
  }
3069
- var mi;
3076
+ var vi;
3070
3077
  function ba() {
3071
- return mi || (mi = 1, function(n) {
3078
+ return vi || (vi = 1, function(n) {
3072
3079
  var e = /* @__PURE__ */ oa(), t = la(), o = /* @__PURE__ */ ao(), l = /* @__PURE__ */ va();
3073
3080
  function c(q) {
3074
3081
  return q.call.bind(q);
@@ -3083,7 +3090,7 @@ function ba() {
3083
3090
  return !1;
3084
3091
  try {
3085
3092
  return ve(q), !0;
3086
- } catch (ge) {
3093
+ } catch (ye) {
3087
3094
  return !1;
3088
3095
  }
3089
3096
  }
@@ -3168,10 +3175,10 @@ function ba() {
3168
3175
  return f(q) === "[object WeakSet]";
3169
3176
  }
3170
3177
  ce.working = typeof WeakSet != "undefined" && ce(/* @__PURE__ */ new WeakSet());
3171
- function pe(q) {
3178
+ function ge(q) {
3172
3179
  return ce(q);
3173
3180
  }
3174
- n.isWeakSet = pe;
3181
+ n.isWeakSet = ge;
3175
3182
  function ie(q) {
3176
3183
  return f(q) === "[object ArrayBuffer]";
3177
3184
  }
@@ -3189,11 +3196,11 @@ function ba() {
3189
3196
  }
3190
3197
  n.isDataView = L;
3191
3198
  var $ = typeof SharedArrayBuffer != "undefined" ? SharedArrayBuffer : void 0;
3192
- function G(q) {
3199
+ function z(q) {
3193
3200
  return f(q) === "[object SharedArrayBuffer]";
3194
3201
  }
3195
3202
  function Y(q) {
3196
- return typeof $ == "undefined" ? !1 : (typeof G.working == "undefined" && (G.working = G(new $())), G.working ? G(q) : q instanceof $);
3203
+ return typeof $ == "undefined" ? !1 : (typeof z.working == "undefined" && (z.working = z(new $())), z.working ? z(q) : q instanceof $);
3197
3204
  }
3198
3205
  n.isSharedArrayBuffer = Y;
3199
3206
  function B(q) {
@@ -3208,10 +3215,10 @@ function ba() {
3208
3215
  return f(q) === "[object Set Iterator]";
3209
3216
  }
3210
3217
  n.isSetIterator = D;
3211
- function z(q) {
3218
+ function G(q) {
3212
3219
  return f(q) === "[object Generator]";
3213
3220
  }
3214
- n.isGeneratorObject = z;
3221
+ n.isGeneratorObject = G;
3215
3222
  function V(q) {
3216
3223
  return f(q) === "[object WebAssembly.Module]";
3217
3224
  }
@@ -3253,15 +3260,15 @@ function ba() {
3253
3260
  });
3254
3261
  }(At)), At;
3255
3262
  }
3256
- var Rr, vi;
3263
+ var Rr, bi;
3257
3264
  function wa() {
3258
- return vi || (vi = 1, Rr = function(e) {
3265
+ return bi || (bi = 1, Rr = function(e) {
3259
3266
  return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
3260
3267
  }), Rr;
3261
3268
  }
3262
- var lt = { exports: {} }, bi;
3263
- function ze() {
3264
- return bi || (bi = 1, typeof Object.create == "function" ? lt.exports = function(e, t) {
3269
+ var lt = { exports: {} }, wi;
3270
+ function Ge() {
3271
+ return wi || (wi = 1, typeof Object.create == "function" ? lt.exports = function(e, t) {
3265
3272
  t && (e.super_ = t, e.prototype = Object.create(t.prototype, {
3266
3273
  constructor: {
3267
3274
  value: e,
@@ -3279,38 +3286,38 @@ function ze() {
3279
3286
  }
3280
3287
  }), lt.exports;
3281
3288
  }
3282
- var wi;
3289
+ var _i;
3283
3290
  function so() {
3284
- return wi || (wi = 1, function(n) {
3291
+ return _i || (_i = 1, function(n) {
3285
3292
  var e = { env: {} }, t = Object.getOwnPropertyDescriptors || function($) {
3286
- for (var G = Object.keys($), Y = {}, B = 0; B < G.length; B++)
3287
- Y[G[B]] = Object.getOwnPropertyDescriptor($, G[B]);
3293
+ for (var z = Object.keys($), Y = {}, B = 0; B < z.length; B++)
3294
+ Y[z[B]] = Object.getOwnPropertyDescriptor($, z[B]);
3288
3295
  return Y;
3289
3296
  }, o = /%[sdj%]/g;
3290
3297
  n.format = function(L) {
3291
3298
  if (!v(L)) {
3292
- for (var $ = [], G = 0; G < arguments.length; G++)
3293
- $.push(a(arguments[G]));
3299
+ for (var $ = [], z = 0; z < arguments.length; z++)
3300
+ $.push(a(arguments[z]));
3294
3301
  return $.join(" ");
3295
3302
  }
3296
- for (var G = 1, Y = arguments, B = Y.length, O = String(L).replace(o, function(z) {
3297
- if (z === "%%") return "%";
3298
- if (G >= B) return z;
3299
- switch (z) {
3303
+ for (var z = 1, Y = arguments, B = Y.length, O = String(L).replace(o, function(G) {
3304
+ if (G === "%%") return "%";
3305
+ if (z >= B) return G;
3306
+ switch (G) {
3300
3307
  case "%s":
3301
- return String(Y[G++]);
3308
+ return String(Y[z++]);
3302
3309
  case "%d":
3303
- return Number(Y[G++]);
3310
+ return Number(Y[z++]);
3304
3311
  case "%j":
3305
3312
  try {
3306
- return JSON.stringify(Y[G++]);
3313
+ return JSON.stringify(Y[z++]);
3307
3314
  } catch (V) {
3308
3315
  return "[Circular]";
3309
3316
  }
3310
3317
  default:
3311
- return z;
3318
+ return G;
3312
3319
  }
3313
- }), D = Y[G]; G < B; D = Y[++G])
3320
+ }), D = Y[z]; z < B; D = Y[++z])
3314
3321
  P(D) || !F(D) ? O += " " + D : O += " " + a(D);
3315
3322
  return O;
3316
3323
  }, n.deprecate = function(L, $) {
@@ -3320,12 +3327,12 @@ function so() {
3320
3327
  return function() {
3321
3328
  return n.deprecate(L, $).apply(this, arguments);
3322
3329
  };
3323
- var G = !1;
3330
+ var z = !1;
3324
3331
  function Y() {
3325
- if (!G) {
3332
+ if (!z) {
3326
3333
  if (e.throwDeprecation)
3327
3334
  throw new Error($);
3328
- e.traceDeprecation ? console.trace($) : console.error($), G = !0;
3335
+ e.traceDeprecation ? console.trace($) : console.error($), z = !0;
3329
3336
  }
3330
3337
  return L.apply(this, arguments);
3331
3338
  }
@@ -3341,8 +3348,8 @@ function so() {
3341
3348
  if (c.test(L)) {
3342
3349
  var $ = e.pid;
3343
3350
  l[L] = function() {
3344
- var G = n.format.apply(n, arguments);
3345
- console.error("%s %d: %s", L, $, G);
3351
+ var z = n.format.apply(n, arguments);
3352
+ console.error("%s %d: %s", L, $, z);
3346
3353
  };
3347
3354
  } else
3348
3355
  l[L] = function() {
@@ -3350,11 +3357,11 @@ function so() {
3350
3357
  return l[L];
3351
3358
  };
3352
3359
  function a(L, $) {
3353
- var G = {
3360
+ var z = {
3354
3361
  seen: [],
3355
3362
  stylize: u
3356
3363
  };
3357
- return arguments.length >= 3 && (G.depth = arguments[2]), arguments.length >= 4 && (G.colors = arguments[3]), b($) ? G.showHidden = $ : $ && n._extend(G, $), M(G.showHidden) && (G.showHidden = !1), M(G.depth) && (G.depth = 2), M(G.colors) && (G.colors = !1), M(G.customInspect) && (G.customInspect = !0), G.colors && (G.stylize = f), A(G, L, G.depth);
3364
+ return arguments.length >= 3 && (z.depth = arguments[2]), arguments.length >= 4 && (z.colors = arguments[3]), b($) ? z.showHidden = $ : $ && n._extend(z, $), M(z.showHidden) && (z.showHidden = !1), M(z.depth) && (z.depth = 2), M(z.colors) && (z.colors = !1), M(z.customInspect) && (z.customInspect = !0), z.colors && (z.stylize = f), A(z, L, z.depth);
3358
3365
  }
3359
3366
  n.inspect = a, a.colors = {
3360
3367
  bold: [1, 22],
@@ -3382,24 +3389,24 @@ function so() {
3382
3389
  regexp: "red"
3383
3390
  };
3384
3391
  function f(L, $) {
3385
- var G = a.styles[$];
3386
- return G ? "\x1B[" + a.colors[G][0] + "m" + L + "\x1B[" + a.colors[G][1] + "m" : L;
3392
+ var z = a.styles[$];
3393
+ return z ? "\x1B[" + a.colors[z][0] + "m" + L + "\x1B[" + a.colors[z][1] + "m" : L;
3387
3394
  }
3388
3395
  function u(L, $) {
3389
3396
  return L;
3390
3397
  }
3391
3398
  function w(L) {
3392
3399
  var $ = {};
3393
- return L.forEach(function(G, Y) {
3394
- $[G] = !0;
3400
+ return L.forEach(function(z, Y) {
3401
+ $[z] = !0;
3395
3402
  }), $;
3396
3403
  }
3397
- function A(L, $, G) {
3404
+ function A(L, $, z) {
3398
3405
  if (L.customInspect && $ && te($.inspect) && // Filter out the util module, it's inspect function is special
3399
3406
  $.inspect !== n.inspect && // Also filter out any prototype objects using the circular check.
3400
3407
  !($.constructor && $.constructor.prototype === $)) {
3401
- var Y = $.inspect(G, L);
3402
- return v(Y) || (Y = A(L, Y, G)), Y;
3408
+ var Y = $.inspect(z, L);
3409
+ return v(Y) || (Y = A(L, Y, z)), Y;
3403
3410
  }
3404
3411
  var B = C(L, $);
3405
3412
  if (B)
@@ -3409,8 +3416,8 @@ function so() {
3409
3416
  return j($);
3410
3417
  if (O.length === 0) {
3411
3418
  if (te($)) {
3412
- var z = $.name ? ": " + $.name : "";
3413
- return L.stylize("[Function" + z + "]", "special");
3419
+ var G = $.name ? ": " + $.name : "";
3420
+ return L.stylize("[Function" + G + "]", "special");
3414
3421
  }
3415
3422
  if (U($))
3416
3423
  return L.stylize(RegExp.prototype.toString.call($), "regexp");
@@ -3426,20 +3433,20 @@ function so() {
3426
3433
  }
3427
3434
  if (U($) && (V = " " + RegExp.prototype.toString.call($)), J($) && (V = " " + Date.prototype.toUTCString.call($)), k($) && (V = " " + j($)), O.length === 0 && (!d || $.length == 0))
3428
3435
  return p[0] + V + p[1];
3429
- if (G < 0)
3436
+ if (z < 0)
3430
3437
  return U($) ? L.stylize(RegExp.prototype.toString.call($), "regexp") : L.stylize("[Object]", "special");
3431
3438
  L.seen.push($);
3432
3439
  var H;
3433
- return d ? H = y(L, $, G, D, O) : H = O.map(function(K) {
3434
- return I(L, $, G, D, K, d);
3440
+ return d ? H = y(L, $, z, D, O) : H = O.map(function(K) {
3441
+ return I(L, $, z, D, K, d);
3435
3442
  }), L.seen.pop(), S(H, V, p);
3436
3443
  }
3437
3444
  function C(L, $) {
3438
3445
  if (M($))
3439
3446
  return L.stylize("undefined", "undefined");
3440
3447
  if (v($)) {
3441
- var G = "'" + JSON.stringify($).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
3442
- return L.stylize(G, "string");
3448
+ var z = "'" + JSON.stringify($).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
3449
+ return L.stylize(z, "string");
3443
3450
  }
3444
3451
  if (R($))
3445
3452
  return L.stylize("" + $, "number");
@@ -3451,12 +3458,12 @@ function so() {
3451
3458
  function j(L) {
3452
3459
  return "[" + Error.prototype.toString.call(L) + "]";
3453
3460
  }
3454
- function y(L, $, G, Y, B) {
3455
- for (var O = [], D = 0, z = $.length; D < z; ++D)
3456
- pe($, String(D)) ? O.push(I(
3461
+ function y(L, $, z, Y, B) {
3462
+ for (var O = [], D = 0, G = $.length; D < G; ++D)
3463
+ ge($, String(D)) ? O.push(I(
3457
3464
  L,
3458
3465
  $,
3459
- G,
3466
+ z,
3460
3467
  Y,
3461
3468
  String(D),
3462
3469
  !0
@@ -3465,40 +3472,40 @@ function so() {
3465
3472
  V.match(/^\d+$/) || O.push(I(
3466
3473
  L,
3467
3474
  $,
3468
- G,
3475
+ z,
3469
3476
  Y,
3470
3477
  V,
3471
3478
  !0
3472
3479
  ));
3473
3480
  }), O;
3474
3481
  }
3475
- function I(L, $, G, Y, B, O) {
3476
- var D, z, V;
3477
- if (V = Object.getOwnPropertyDescriptor($, B) || { value: $[B] }, V.get ? V.set ? z = L.stylize("[Getter/Setter]", "special") : z = L.stylize("[Getter]", "special") : V.set && (z = L.stylize("[Setter]", "special")), pe(Y, B) || (D = "[" + B + "]"), z || (L.seen.indexOf(V.value) < 0 ? (P(G) ? z = A(L, V.value, null) : z = A(L, V.value, G - 1), z.indexOf(`
3478
- `) > -1 && (O ? z = z.split(`
3482
+ function I(L, $, z, Y, B, O) {
3483
+ var D, G, V;
3484
+ if (V = Object.getOwnPropertyDescriptor($, B) || { value: $[B] }, V.get ? V.set ? G = L.stylize("[Getter/Setter]", "special") : G = L.stylize("[Getter]", "special") : V.set && (G = L.stylize("[Setter]", "special")), ge(Y, B) || (D = "[" + B + "]"), G || (L.seen.indexOf(V.value) < 0 ? (P(z) ? G = A(L, V.value, null) : G = A(L, V.value, z - 1), G.indexOf(`
3485
+ `) > -1 && (O ? G = G.split(`
3479
3486
  `).map(function(d) {
3480
3487
  return " " + d;
3481
3488
  }).join(`
3482
- `).slice(2) : z = `
3483
- ` + z.split(`
3489
+ `).slice(2) : G = `
3490
+ ` + G.split(`
3484
3491
  `).map(function(d) {
3485
3492
  return " " + d;
3486
3493
  }).join(`
3487
- `))) : z = L.stylize("[Circular]", "special")), M(D)) {
3494
+ `))) : G = L.stylize("[Circular]", "special")), M(D)) {
3488
3495
  if (O && B.match(/^\d+$/))
3489
- return z;
3496
+ return G;
3490
3497
  D = JSON.stringify("" + B), D.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (D = D.slice(1, -1), D = L.stylize(D, "name")) : (D = D.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), D = L.stylize(D, "string"));
3491
3498
  }
3492
- return D + ": " + z;
3499
+ return D + ": " + G;
3493
3500
  }
3494
- function S(L, $, G) {
3501
+ function S(L, $, z) {
3495
3502
  var Y = L.reduce(function(B, O) {
3496
3503
  return O.indexOf(`
3497
3504
  `) >= 0, B + O.replace(/\u001b\[\d\d?m/g, "").length + 1;
3498
3505
  }, 0);
3499
- return Y > 60 ? G[0] + ($ === "" ? "" : $ + `
3506
+ return Y > 60 ? z[0] + ($ === "" ? "" : $ + `
3500
3507
  `) + " " + L.join(`,
3501
- `) + " " + G[1] : G[0] + $ + " " + L.join(", ") + " " + G[1];
3508
+ `) + " " + z[1] : z[0] + $ + " " + L.join(", ") + " " + z[1];
3502
3509
  }
3503
3510
  n.types = ba();
3504
3511
  function h(L) {
@@ -3588,13 +3595,13 @@ function so() {
3588
3595
  }
3589
3596
  n.log = function() {
3590
3597
  console.log("%s - %s", ce(), n.format.apply(n, arguments));
3591
- }, n.inherits = ze(), n._extend = function(L, $) {
3598
+ }, n.inherits = Ge(), n._extend = function(L, $) {
3592
3599
  if (!$ || !F($)) return L;
3593
- for (var G = Object.keys($), Y = G.length; Y--; )
3594
- L[G[Y]] = $[G[Y]];
3600
+ for (var z = Object.keys($), Y = z.length; Y--; )
3601
+ L[z[Y]] = $[z[Y]];
3595
3602
  return L;
3596
3603
  };
3597
- function pe(L, $) {
3604
+ function ge(L, $) {
3598
3605
  return Object.prototype.hasOwnProperty.call(L, $);
3599
3606
  }
3600
3607
  var ie = typeof Symbol != "undefined" ? Symbol("util.promisify.custom") : void 0;
@@ -3602,21 +3609,21 @@ function so() {
3602
3609
  if (typeof $ != "function")
3603
3610
  throw new TypeError('The "original" argument must be of type Function');
3604
3611
  if (ie && $[ie]) {
3605
- var G = $[ie];
3606
- if (typeof G != "function")
3612
+ var z = $[ie];
3613
+ if (typeof z != "function")
3607
3614
  throw new TypeError('The "util.promisify.custom" argument must be of type Function');
3608
- return Object.defineProperty(G, ie, {
3609
- value: G,
3615
+ return Object.defineProperty(z, ie, {
3616
+ value: z,
3610
3617
  enumerable: !1,
3611
3618
  writable: !1,
3612
3619
  configurable: !0
3613
- }), G;
3620
+ }), z;
3614
3621
  }
3615
- function G() {
3622
+ function z() {
3616
3623
  for (var Y, B, O = new Promise(function(V, d) {
3617
3624
  Y = V, B = d;
3618
- }), D = [], z = 0; z < arguments.length; z++)
3619
- D.push(arguments[z]);
3625
+ }), D = [], G = 0; G < arguments.length; G++)
3626
+ D.push(arguments[G]);
3620
3627
  D.push(function(V, d) {
3621
3628
  V ? B(V) : Y(d);
3622
3629
  });
@@ -3627,20 +3634,20 @@ function so() {
3627
3634
  }
3628
3635
  return O;
3629
3636
  }
3630
- return Object.setPrototypeOf(G, Object.getPrototypeOf($)), ie && Object.defineProperty(G, ie, {
3631
- value: G,
3637
+ return Object.setPrototypeOf(z, Object.getPrototypeOf($)), ie && Object.defineProperty(z, ie, {
3638
+ value: z,
3632
3639
  enumerable: !1,
3633
3640
  writable: !1,
3634
3641
  configurable: !0
3635
3642
  }), Object.defineProperties(
3636
- G,
3643
+ z,
3637
3644
  t($)
3638
3645
  );
3639
3646
  }, n.promisify.custom = ie;
3640
3647
  function _e(L, $) {
3641
3648
  if (!L) {
3642
- var G = new Error("Promise was rejected with a falsy value");
3643
- G.reason = L, L = G;
3649
+ var z = new Error("Promise was rejected with a falsy value");
3650
+ z.reason = L, L = z;
3644
3651
  }
3645
3652
  return $(L);
3646
3653
  }
@@ -3648,20 +3655,20 @@ function so() {
3648
3655
  if (typeof L != "function")
3649
3656
  throw new TypeError('The "original" argument must be of type Function');
3650
3657
  function $() {
3651
- for (var G = [], Y = 0; Y < arguments.length; Y++)
3652
- G.push(arguments[Y]);
3653
- var B = G.pop();
3658
+ for (var z = [], Y = 0; Y < arguments.length; Y++)
3659
+ z.push(arguments[Y]);
3660
+ var B = z.pop();
3654
3661
  if (typeof B != "function")
3655
3662
  throw new TypeError("The last argument must be of type Function");
3656
3663
  var O = this, D = function() {
3657
3664
  return B.apply(O, arguments);
3658
3665
  };
3659
- L.apply(this, G).then(
3660
- function(z) {
3661
- e.nextTick(D.bind(null, null, z));
3666
+ L.apply(this, z).then(
3667
+ function(G) {
3668
+ e.nextTick(D.bind(null, null, G));
3662
3669
  },
3663
- function(z) {
3664
- e.nextTick(_e.bind(null, z, D));
3670
+ function(G) {
3671
+ e.nextTick(_e.bind(null, G, D));
3665
3672
  }
3666
3673
  );
3667
3674
  }
@@ -3673,10 +3680,10 @@ function so() {
3673
3680
  n.callbackify = he;
3674
3681
  }(Pt)), Pt;
3675
3682
  }
3676
- var Pr, _i;
3683
+ var Pr, Si;
3677
3684
  function _a() {
3678
- if (_i) return Pr;
3679
- _i = 1;
3685
+ if (Si) return Pr;
3686
+ Si = 1;
3680
3687
  function n(y, I) {
3681
3688
  var S = Object.keys(y);
3682
3689
  if (Object.getOwnPropertySymbols) {
@@ -3838,10 +3845,10 @@ function _a() {
3838
3845
  }]), y;
3839
3846
  }(), Pr;
3840
3847
  }
3841
- var Ar, Si;
3848
+ var Ar, Ci;
3842
3849
  function lo() {
3843
- if (Si) return Ar;
3844
- Si = 1;
3850
+ if (Ci) return Ar;
3851
+ Ci = 1;
3845
3852
  var n = { env: {} };
3846
3853
  function e(a, f) {
3847
3854
  var u = this, w = this._readableState && this._readableState.destroyed, A = this._writableState && this._writableState.destroyed;
@@ -3871,10 +3878,10 @@ function lo() {
3871
3878
  errorOrDestroy: E
3872
3879
  }, Ar;
3873
3880
  }
3874
- var Tr = {}, Ci;
3875
- function Ge() {
3876
- if (Ci) return Tr;
3877
- Ci = 1;
3881
+ var Tr = {}, Ei;
3882
+ function ze() {
3883
+ if (Ei) return Tr;
3884
+ Ei = 1;
3878
3885
  function n(a, f) {
3879
3886
  a.prototype = Object.create(f.prototype), a.prototype.constructor = a, a.__proto__ = f;
3880
3887
  }
@@ -3932,11 +3939,11 @@ function Ge() {
3932
3939
  return "Unknown encoding: " + a;
3933
3940
  }, TypeError), t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), Tr.codes = e, Tr;
3934
3941
  }
3935
- var Ir, Ei;
3942
+ var Ir, Ri;
3936
3943
  function co() {
3937
- if (Ei) return Ir;
3938
- Ei = 1;
3939
- var n = Ge().codes.ERR_INVALID_OPT_VALUE;
3944
+ if (Ri) return Ir;
3945
+ Ri = 1;
3946
+ var n = ze().codes.ERR_INVALID_OPT_VALUE;
3940
3947
  function e(o, l, c) {
3941
3948
  return o.highWaterMark != null ? o.highWaterMark : l ? o[c] : null;
3942
3949
  }
@@ -3955,10 +3962,10 @@ function co() {
3955
3962
  getHighWaterMark: t
3956
3963
  }, Ir;
3957
3964
  }
3958
- var Or, Ri;
3965
+ var Or, Pi;
3959
3966
  function Sa() {
3960
- if (Ri) return Or;
3961
- Ri = 1, Or = n;
3967
+ if (Pi) return Or;
3968
+ Pi = 1, Or = n;
3962
3969
  function n(t, o) {
3963
3970
  if (e("noDeprecation"))
3964
3971
  return t;
@@ -3984,10 +3991,10 @@ function Sa() {
3984
3991
  }
3985
3992
  return Or;
3986
3993
  }
3987
- var kr, Pi;
3994
+ var kr, Ai;
3988
3995
  function uo() {
3989
- if (Pi) return kr;
3990
- Pi = 1;
3996
+ if (Ai) return kr;
3997
+ Ai = 1;
3991
3998
  var n = { env: {} };
3992
3999
  kr = U;
3993
4000
  function e(B) {
@@ -4008,14 +4015,14 @@ function uo() {
4008
4015
  function f(B) {
4009
4016
  return c.isBuffer(B) || B instanceof E;
4010
4017
  }
4011
- var u = lo(), w = co(), A = w.getHighWaterMark, C = Ge().codes, j = C.ERR_INVALID_ARG_TYPE, y = C.ERR_METHOD_NOT_IMPLEMENTED, I = C.ERR_MULTIPLE_CALLBACK, S = C.ERR_STREAM_CANNOT_PIPE, h = C.ERR_STREAM_DESTROYED, b = C.ERR_STREAM_NULL_VALUES, P = C.ERR_STREAM_WRITE_AFTER_END, _ = C.ERR_UNKNOWN_ENCODING, R = u.errorOrDestroy;
4012
- ze()(U, l);
4018
+ var u = lo(), w = co(), A = w.getHighWaterMark, C = ze().codes, j = C.ERR_INVALID_ARG_TYPE, y = C.ERR_METHOD_NOT_IMPLEMENTED, I = C.ERR_MULTIPLE_CALLBACK, S = C.ERR_STREAM_CANNOT_PIPE, h = C.ERR_STREAM_DESTROYED, b = C.ERR_STREAM_NULL_VALUES, P = C.ERR_STREAM_WRITE_AFTER_END, _ = C.ERR_UNKNOWN_ENCODING, R = u.errorOrDestroy;
4019
+ Ge()(U, l);
4013
4020
  function v() {
4014
4021
  }
4015
4022
  function g(B, O, D) {
4016
4023
  t = t || xe(), B = B || {}, typeof D != "boolean" && (D = O instanceof t), this.objectMode = !!B.objectMode, D && (this.objectMode = this.objectMode || !!B.writableObjectMode), this.highWaterMark = A(this, B, "writableHighWaterMark", D), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
4017
- var z = B.decodeStrings === !1;
4018
- this.decodeStrings = !z, this.defaultEncoding = B.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(V) {
4024
+ var G = B.decodeStrings === !1;
4025
+ this.decodeStrings = !G, this.defaultEncoding = B.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(V) {
4019
4026
  me(O, V);
4020
4027
  }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = B.emitClose !== !1, this.autoDestroy = !!B.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
4021
4028
  }
@@ -4054,13 +4061,13 @@ function uo() {
4054
4061
  var D = new P();
4055
4062
  R(B, D), n.nextTick(O, D);
4056
4063
  }
4057
- function J(B, O, D, z) {
4064
+ function J(B, O, D, G) {
4058
4065
  var V;
4059
- return D === null ? V = new b() : typeof D != "string" && !O.objectMode && (V = new j("chunk", ["string", "Buffer"], D)), V ? (R(B, V), n.nextTick(z, V), !1) : !0;
4066
+ return D === null ? V = new b() : typeof D != "string" && !O.objectMode && (V = new j("chunk", ["string", "Buffer"], D)), V ? (R(B, V), n.nextTick(G, V), !1) : !0;
4060
4067
  }
4061
4068
  U.prototype.write = function(B, O, D) {
4062
- var z = this._writableState, V = !1, d = !z.objectMode && f(B);
4063
- return d && !c.isBuffer(B) && (B = a(B)), typeof O == "function" && (D = O, O = null), d ? O = "buffer" : O || (O = z.defaultEncoding), typeof D != "function" && (D = v), z.ending ? F(this, D) : (d || J(this, z, B, D)) && (z.pendingcb++, V = te(this, z, d, B, O, D)), V;
4069
+ var G = this._writableState, V = !1, d = !G.objectMode && f(B);
4070
+ return d && !c.isBuffer(B) && (B = a(B)), typeof O == "function" && (D = O, O = null), d ? O = "buffer" : O || (O = G.defaultEncoding), typeof D != "function" && (D = v), G.ending ? F(this, D) : (d || J(this, G, B, D)) && (G.pendingcb++, V = te(this, G, d, B, O, D)), V;
4064
4071
  }, U.prototype.cork = function() {
4065
4072
  this._writableState.corked++;
4066
4073
  }, U.prototype.uncork = function() {
@@ -4090,56 +4097,56 @@ function uo() {
4090
4097
  return this._writableState.highWaterMark;
4091
4098
  }
4092
4099
  });
4093
- function te(B, O, D, z, V, d) {
4100
+ function te(B, O, D, G, V, d) {
4094
4101
  if (!D) {
4095
- var p = k(O, z, V);
4096
- z !== p && (D = !0, V = "buffer", z = p);
4102
+ var p = k(O, G, V);
4103
+ G !== p && (D = !0, V = "buffer", G = p);
4097
4104
  }
4098
- var x = O.objectMode ? 1 : z.length;
4105
+ var x = O.objectMode ? 1 : G.length;
4099
4106
  O.length += x;
4100
4107
  var H = O.length < O.highWaterMark;
4101
4108
  if (H || (O.needDrain = !0), O.writing || O.corked) {
4102
4109
  var K = O.lastBufferedRequest;
4103
4110
  O.lastBufferedRequest = {
4104
- chunk: z,
4111
+ chunk: G,
4105
4112
  encoding: V,
4106
4113
  isBuf: D,
4107
4114
  callback: d,
4108
4115
  next: null
4109
4116
  }, K ? K.next = O.lastBufferedRequest : O.bufferedRequest = O.lastBufferedRequest, O.bufferedRequestCount += 1;
4110
4117
  } else
4111
- ee(B, O, !1, x, z, V, d);
4118
+ ee(B, O, !1, x, G, V, d);
4112
4119
  return H;
4113
4120
  }
4114
- function ee(B, O, D, z, V, d, p) {
4115
- O.writelen = z, O.writecb = p, O.writing = !0, O.sync = !0, O.destroyed ? O.onwrite(new h("write")) : D ? B._writev(V, O.onwrite) : B._write(V, d, O.onwrite), O.sync = !1;
4121
+ function ee(B, O, D, G, V, d, p) {
4122
+ O.writelen = G, O.writecb = p, O.writing = !0, O.sync = !0, O.destroyed ? O.onwrite(new h("write")) : D ? B._writev(V, O.onwrite) : B._write(V, d, O.onwrite), O.sync = !1;
4116
4123
  }
4117
- function ae(B, O, D, z, V) {
4118
- --O.pendingcb, D ? (n.nextTick(V, z), n.nextTick($, B, O), B._writableState.errorEmitted = !0, R(B, z)) : (V(z), B._writableState.errorEmitted = !0, R(B, z), $(B, O));
4124
+ function ae(B, O, D, G, V) {
4125
+ --O.pendingcb, D ? (n.nextTick(V, G), n.nextTick($, B, O), B._writableState.errorEmitted = !0, R(B, G)) : (V(G), B._writableState.errorEmitted = !0, R(B, G), $(B, O));
4119
4126
  }
4120
4127
  function le(B) {
4121
4128
  B.writing = !1, B.writecb = null, B.length -= B.writelen, B.writelen = 0;
4122
4129
  }
4123
4130
  function me(B, O) {
4124
- var D = B._writableState, z = D.sync, V = D.writecb;
4131
+ var D = B._writableState, G = D.sync, V = D.writecb;
4125
4132
  if (typeof V != "function") throw new I();
4126
- if (le(D), O) ae(B, D, z, O, V);
4133
+ if (le(D), O) ae(B, D, G, O, V);
4127
4134
  else {
4128
4135
  var d = _e(D) || B.destroyed;
4129
- !d && !D.corked && !D.bufferProcessing && D.bufferedRequest && ie(B, D), z ? n.nextTick(ce, B, D, d, V) : ce(B, D, d, V);
4136
+ !d && !D.corked && !D.bufferProcessing && D.bufferedRequest && ie(B, D), G ? n.nextTick(ce, B, D, d, V) : ce(B, D, d, V);
4130
4137
  }
4131
4138
  }
4132
- function ce(B, O, D, z) {
4133
- D || pe(B, O), O.pendingcb--, z(), $(B, O);
4139
+ function ce(B, O, D, G) {
4140
+ D || ge(B, O), O.pendingcb--, G(), $(B, O);
4134
4141
  }
4135
- function pe(B, O) {
4142
+ function ge(B, O) {
4136
4143
  O.length === 0 && O.needDrain && (O.needDrain = !1, B.emit("drain"));
4137
4144
  }
4138
4145
  function ie(B, O) {
4139
4146
  O.bufferProcessing = !0;
4140
4147
  var D = O.bufferedRequest;
4141
4148
  if (B._writev && D && D.next) {
4142
- var z = O.bufferedRequestCount, V = new Array(z), d = O.corkedRequestsFree;
4149
+ var G = O.bufferedRequestCount, V = new Array(G), d = O.corkedRequestsFree;
4143
4150
  d.entry = D;
4144
4151
  for (var p = 0, x = !0; D; )
4145
4152
  V[p] = D, D.isBuf || (x = !1), D = D.next, p += 1;
@@ -4157,8 +4164,8 @@ function uo() {
4157
4164
  U.prototype._write = function(B, O, D) {
4158
4165
  D(new y("_write()"));
4159
4166
  }, U.prototype._writev = null, U.prototype.end = function(B, O, D) {
4160
- var z = this._writableState;
4161
- return typeof B == "function" ? (D = B, B = null, O = null) : typeof O == "function" && (D = O, O = null), B != null && this.write(B, O), z.corked && (z.corked = 1, this.uncork()), z.ending || G(this, z, D), this;
4167
+ var G = this._writableState;
4168
+ return typeof B == "function" ? (D = B, B = null, O = null) : typeof O == "function" && (D = O, O = null), B != null && this.write(B, O), G.corked && (G.corked = 1, this.uncork()), G.ending || z(this, G, D), this;
4162
4169
  }, Object.defineProperty(U.prototype, "writableLength", {
4163
4170
  // making it explicit this property is not enumerable
4164
4171
  // because otherwise some prototype manipulation in
@@ -4182,19 +4189,19 @@ function uo() {
4182
4189
  function $(B, O) {
4183
4190
  var D = _e(O);
4184
4191
  if (D && (L(B, O), O.pendingcb === 0 && (O.finished = !0, B.emit("finish"), O.autoDestroy))) {
4185
- var z = B._readableState;
4186
- (!z || z.autoDestroy && z.endEmitted) && B.destroy();
4192
+ var G = B._readableState;
4193
+ (!G || G.autoDestroy && G.endEmitted) && B.destroy();
4187
4194
  }
4188
4195
  return D;
4189
4196
  }
4190
- function G(B, O, D) {
4197
+ function z(B, O, D) {
4191
4198
  O.ending = !0, $(B, O), D && (O.finished ? n.nextTick(D) : B.once("finish", D)), O.ended = !0, B.writable = !1;
4192
4199
  }
4193
4200
  function Y(B, O, D) {
4194
- var z = B.entry;
4195
- for (B.entry = null; z; ) {
4196
- var V = z.callback;
4197
- O.pendingcb--, V(D), z = z.next;
4201
+ var G = B.entry;
4202
+ for (B.entry = null; G; ) {
4203
+ var V = G.callback;
4204
+ O.pendingcb--, V(D), G = G.next;
4198
4205
  }
4199
4206
  O.corkedRequestsFree.next = B;
4200
4207
  }
@@ -4213,10 +4220,10 @@ function uo() {
4213
4220
  O(B);
4214
4221
  }, kr;
4215
4222
  }
4216
- var Br, Ai;
4223
+ var Br, Ti;
4217
4224
  function xe() {
4218
- if (Ai) return Br;
4219
- Ai = 1;
4225
+ if (Ti) return Br;
4226
+ Ti = 1;
4220
4227
  var n = { env: {} }, e = Object.keys || function(w) {
4221
4228
  var A = [];
4222
4229
  for (var C in w) A.push(C);
@@ -4224,7 +4231,7 @@ function xe() {
4224
4231
  };
4225
4232
  Br = a;
4226
4233
  var t = fo(), o = uo();
4227
- ze()(a, t);
4234
+ Ge()(a, t);
4228
4235
  for (var l = e(o.prototype), c = 0; c < l.length; c++) {
4229
4236
  var E = l[c];
4230
4237
  a.prototype[E] || (a.prototype[E] = o.prototype[E]);
@@ -4277,10 +4284,10 @@ function xe() {
4277
4284
  }
4278
4285
  }), Br;
4279
4286
  }
4280
- var Mr = {}, Ti;
4281
- function Ii() {
4282
- if (Ti) return Mr;
4283
- Ti = 1;
4287
+ var Mr = {}, Ii;
4288
+ function Oi() {
4289
+ if (Ii) return Mr;
4290
+ Ii = 1;
4284
4291
  var n = Ki().Buffer, e = n.isEncoding || function(h) {
4285
4292
  switch (h = "" + h, h && h.toLowerCase()) {
4286
4293
  case "hex":
@@ -4435,11 +4442,11 @@ function Ii() {
4435
4442
  }
4436
4443
  return Mr;
4437
4444
  }
4438
- var Lr, Oi;
4439
- function on() {
4440
- if (Oi) return Lr;
4441
- Oi = 1;
4442
- var n = Ge().codes.ERR_STREAM_PREMATURE_CLOSE;
4445
+ var Lr, ki;
4446
+ function an() {
4447
+ if (ki) return Lr;
4448
+ ki = 1;
4449
+ var n = ze().codes.ERR_STREAM_PREMATURE_CLOSE;
4443
4450
  function e(c) {
4444
4451
  var E = !1;
4445
4452
  return function() {
@@ -4482,10 +4489,10 @@ function on() {
4482
4489
  }
4483
4490
  return Lr = l, Lr;
4484
4491
  }
4485
- var Nr, ki;
4492
+ var Nr, Bi;
4486
4493
  function Ca() {
4487
- if (ki) return Nr;
4488
- ki = 1;
4494
+ if (Bi) return Nr;
4495
+ Bi = 1;
4489
4496
  var n = { env: {} }, e;
4490
4497
  function t(_, R, v) {
4491
4498
  return R = o(R), R in _ ? Object.defineProperty(_, R, { value: v, enumerable: !0, configurable: !0, writable: !0 }) : _[R] = v, _;
@@ -4504,7 +4511,7 @@ function Ca() {
4504
4511
  }
4505
4512
  return (R === "string" ? String : Number)(_);
4506
4513
  }
4507
- var c = on(), E = Symbol("lastResolve"), a = Symbol("lastReject"), f = Symbol("error"), u = Symbol("ended"), w = Symbol("lastPromise"), A = Symbol("handlePromise"), C = Symbol("stream");
4514
+ var c = an(), E = Symbol("lastResolve"), a = Symbol("lastReject"), f = Symbol("error"), u = Symbol("ended"), w = Symbol("lastPromise"), A = Symbol("handlePromise"), C = Symbol("stream");
4508
4515
  function j(_, R) {
4509
4516
  return {
4510
4517
  value: _,
@@ -4608,20 +4615,20 @@ function Ca() {
4608
4615
  };
4609
4616
  return Nr = P, Nr;
4610
4617
  }
4611
- var Dr, Bi;
4618
+ var Dr, Mi;
4612
4619
  function Ea() {
4613
- return Bi || (Bi = 1, Dr = function() {
4620
+ return Mi || (Mi = 1, Dr = function() {
4614
4621
  throw new Error("Readable.from is not available in the browser");
4615
4622
  }), Dr;
4616
4623
  }
4617
- var Fr, Mi;
4624
+ var Fr, Li;
4618
4625
  function fo() {
4619
- if (Mi) return Fr;
4620
- Mi = 1;
4626
+ if (Li) return Fr;
4627
+ Li = 1;
4621
4628
  var n = { env: {} };
4622
4629
  Fr = F;
4623
4630
  var e;
4624
- F.ReadableState = U, Qr().EventEmitter;
4631
+ F.ReadableState = U, en().EventEmitter;
4625
4632
  var t = function(p, x) {
4626
4633
  return p.listeners(x).length;
4627
4634
  }, o = Xi(), l = Ye().Buffer, c = (typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof self != "undefined" ? self : {}).Uint8Array || function() {
@@ -4635,15 +4642,15 @@ function fo() {
4635
4642
  var f = so(), u;
4636
4643
  f && f.debuglog ? u = f.debuglog("stream") : u = function() {
4637
4644
  };
4638
- var w = _a(), A = lo(), C = co(), j = C.getHighWaterMark, y = Ge().codes, I = y.ERR_INVALID_ARG_TYPE, S = y.ERR_STREAM_PUSH_AFTER_EOF, h = y.ERR_METHOD_NOT_IMPLEMENTED, b = y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, P, _, R;
4639
- ze()(F, o);
4645
+ var w = _a(), A = lo(), C = co(), j = C.getHighWaterMark, y = ze().codes, I = y.ERR_INVALID_ARG_TYPE, S = y.ERR_STREAM_PUSH_AFTER_EOF, h = y.ERR_METHOD_NOT_IMPLEMENTED, b = y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, P, _, R;
4646
+ Ge()(F, o);
4640
4647
  var v = A.errorOrDestroy, g = ["error", "close", "destroy", "pause", "resume"];
4641
4648
  function M(d, p, x) {
4642
4649
  if (typeof d.prependListener == "function") return d.prependListener(p, x);
4643
4650
  !d._events || !d._events[p] ? d.on(p, x) : Array.isArray(d._events[p]) ? d._events[p].unshift(x) : d._events[p] = [x, d._events[p]];
4644
4651
  }
4645
4652
  function U(d, p, x) {
4646
- e = e || xe(), d = d || {}, typeof x != "boolean" && (x = p instanceof e), this.objectMode = !!d.objectMode, x && (this.objectMode = this.objectMode || !!d.readableObjectMode), this.highWaterMark = j(this, d, "readableHighWaterMark", x), this.buffer = new w(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = d.emitClose !== !1, this.autoDestroy = !!d.autoDestroy, this.destroyed = !1, this.defaultEncoding = d.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, d.encoding && (P || (P = Ii().StringDecoder), this.decoder = new P(d.encoding), this.encoding = d.encoding);
4653
+ e = e || xe(), d = d || {}, typeof x != "boolean" && (x = p instanceof e), this.objectMode = !!d.objectMode, x && (this.objectMode = this.objectMode || !!d.readableObjectMode), this.highWaterMark = j(this, d, "readableHighWaterMark", x), this.buffer = new w(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = d.emitClose !== !1, this.autoDestroy = !!d.autoDestroy, this.destroyed = !1, this.defaultEncoding = d.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, d.encoding && (P || (P = Oi().StringDecoder), this.decoder = new P(d.encoding), this.encoding = d.encoding);
4647
4654
  }
4648
4655
  function F(d) {
4649
4656
  if (e = e || xe(), !(this instanceof F)) return new F(d);
@@ -4702,7 +4709,7 @@ function fo() {
4702
4709
  F.prototype.isPaused = function() {
4703
4710
  return this._readableState.flowing === !1;
4704
4711
  }, F.prototype.setEncoding = function(d) {
4705
- P || (P = Ii().StringDecoder);
4712
+ P || (P = Oi().StringDecoder);
4706
4713
  var p = new P(d);
4707
4714
  this._readableState.decoder = p, this._readableState.encoding = this._readableState.decoder.encoding;
4708
4715
  for (var x = this._readableState.buffer.head, H = ""; x !== null; )
@@ -4734,14 +4741,14 @@ function fo() {
4734
4741
  var x = p.decoder.end();
4735
4742
  x && x.length && (p.buffer.push(x), p.length += p.objectMode ? 1 : x.length);
4736
4743
  }
4737
- p.ended = !0, p.sync ? ce(d) : (p.needReadable = !1, p.emittedReadable || (p.emittedReadable = !0, pe(d)));
4744
+ p.ended = !0, p.sync ? ce(d) : (p.needReadable = !1, p.emittedReadable || (p.emittedReadable = !0, ge(d)));
4738
4745
  }
4739
4746
  }
4740
4747
  function ce(d) {
4741
4748
  var p = d._readableState;
4742
- u("emitReadable", p.needReadable, p.emittedReadable), p.needReadable = !1, p.emittedReadable || (u("emitReadable", p.flowing), p.emittedReadable = !0, n.nextTick(pe, d));
4749
+ u("emitReadable", p.needReadable, p.emittedReadable), p.needReadable = !1, p.emittedReadable || (u("emitReadable", p.flowing), p.emittedReadable = !0, n.nextTick(ge, d));
4743
4750
  }
4744
- function pe(d) {
4751
+ function ge(d) {
4745
4752
  var p = d._readableState;
4746
4753
  u("emitReadable_", p.destroyed, p.length, p.ended), !p.destroyed && (p.length || p.ended) && (d.emit("readable"), p.emittedReadable = !1), p.needReadable = !p.flowing && !p.ended && p.length <= p.highWaterMark, B(d);
4747
4754
  }
@@ -4774,26 +4781,26 @@ function fo() {
4774
4781
  H.pipesCount += 1, u("pipe count=%d opts=%j", H.pipesCount, p);
4775
4782
  var K = (!p || p.end !== !1) && d !== n.stdout && d !== n.stderr, X = K ? q : Oe;
4776
4783
  H.endEmitted ? n.nextTick(X) : x.once("end", X), d.on("unpipe", Q);
4777
- function Q(Te, Se) {
4778
- u("onunpipe"), Te === x && Se && Se.hasUnpiped === !1 && (Se.hasUnpiped = !0, oe());
4784
+ function Q(Ie, Se) {
4785
+ u("onunpipe"), Ie === x && Se && Se.hasUnpiped === !1 && (Se.hasUnpiped = !0, oe());
4779
4786
  }
4780
4787
  function q() {
4781
4788
  u("onend"), d.end();
4782
4789
  }
4783
4790
  var ve = he(x);
4784
4791
  d.on("drain", ve);
4785
- var ge = !1;
4792
+ var ye = !1;
4786
4793
  function oe() {
4787
- u("cleanup"), d.removeListener("close", De), d.removeListener("finish", Fe), d.removeListener("drain", ve), d.removeListener("error", Ce), d.removeListener("unpipe", Q), x.removeListener("end", q), x.removeListener("end", Oe), x.removeListener("data", ue), ge = !0, H.awaitDrain && (!d._writableState || d._writableState.needDrain) && ve();
4794
+ u("cleanup"), d.removeListener("close", De), d.removeListener("finish", Fe), d.removeListener("drain", ve), d.removeListener("error", Ce), d.removeListener("unpipe", Q), x.removeListener("end", q), x.removeListener("end", Oe), x.removeListener("data", ue), ye = !0, H.awaitDrain && (!d._writableState || d._writableState.needDrain) && ve();
4788
4795
  }
4789
4796
  x.on("data", ue);
4790
- function ue(Te) {
4797
+ function ue(Ie) {
4791
4798
  u("ondata");
4792
- var Se = d.write(Te);
4793
- u("dest.write", Se), Se === !1 && ((H.pipesCount === 1 && H.pipes === d || H.pipesCount > 1 && V(H.pipes, d) !== -1) && !ge && (u("false write response, pause", H.awaitDrain), H.awaitDrain++), x.pause());
4799
+ var Se = d.write(Ie);
4800
+ u("dest.write", Se), Se === !1 && ((H.pipesCount === 1 && H.pipes === d || H.pipesCount > 1 && V(H.pipes, d) !== -1) && !ye && (u("false write response, pause", H.awaitDrain), H.awaitDrain++), x.pause());
4794
4801
  }
4795
- function Ce(Te) {
4796
- u("onerror", Te), Oe(), d.removeListener("error", Ce), t(d, "error") === 0 && v(d, Te);
4802
+ function Ce(Ie) {
4803
+ u("onerror", Ie), Oe(), d.removeListener("error", Ce), t(d, "error") === 0 && v(d, Ie);
4797
4804
  }
4798
4805
  M(d, "error", Ce);
4799
4806
  function De() {
@@ -4851,9 +4858,9 @@ function fo() {
4851
4858
  }
4852
4859
  F.prototype.resume = function() {
4853
4860
  var d = this._readableState;
4854
- return d.flowing || (u("resume"), d.flowing = !d.readableListening, G(this, d)), d.paused = !1, this;
4861
+ return d.flowing || (u("resume"), d.flowing = !d.readableListening, z(this, d)), d.paused = !1, this;
4855
4862
  };
4856
- function G(d, p) {
4863
+ function z(d, p) {
4857
4864
  p.resumeScheduled || (p.resumeScheduled = !0, n.nextTick(Y, d, p));
4858
4865
  }
4859
4866
  function Y(d, p) {
@@ -4936,9 +4943,9 @@ function fo() {
4936
4943
  }
4937
4944
  function D(d) {
4938
4945
  var p = d._readableState;
4939
- u("endReadable", p.endEmitted), p.endEmitted || (p.ended = !0, n.nextTick(z, p, d));
4946
+ u("endReadable", p.endEmitted), p.endEmitted || (p.ended = !0, n.nextTick(G, p, d));
4940
4947
  }
4941
- function z(d, p) {
4948
+ function G(d, p) {
4942
4949
  if (u("endReadableNT", d.endEmitted, d.length), !d.endEmitted && d.length === 0 && (d.endEmitted = !0, p.readable = !1, p.emit("end"), d.autoDestroy)) {
4943
4950
  var x = p._writableState;
4944
4951
  (!x || x.autoDestroy && x.finished) && p.destroy();
@@ -4954,12 +4961,12 @@ function fo() {
4954
4961
  }
4955
4962
  return Fr;
4956
4963
  }
4957
- var jr, Li;
4964
+ var jr, Ni;
4958
4965
  function ho() {
4959
- if (Li) return jr;
4960
- Li = 1, jr = a;
4961
- var n = Ge().codes, e = n.ERR_METHOD_NOT_IMPLEMENTED, t = n.ERR_MULTIPLE_CALLBACK, o = n.ERR_TRANSFORM_ALREADY_TRANSFORMING, l = n.ERR_TRANSFORM_WITH_LENGTH_0, c = xe();
4962
- ze()(a, c);
4966
+ if (Ni) return jr;
4967
+ Ni = 1, jr = a;
4968
+ var n = ze().codes, e = n.ERR_METHOD_NOT_IMPLEMENTED, t = n.ERR_MULTIPLE_CALLBACK, o = n.ERR_TRANSFORM_ALREADY_TRANSFORMING, l = n.ERR_TRANSFORM_WITH_LENGTH_0, c = xe();
4969
+ Ge()(a, c);
4963
4970
  function E(w, A) {
4964
4971
  var C = this._transformState;
4965
4972
  C.transforming = !1;
@@ -5013,12 +5020,12 @@ function ho() {
5013
5020
  }
5014
5021
  return jr;
5015
5022
  }
5016
- var $r, Ni;
5023
+ var $r, Di;
5017
5024
  function Ra() {
5018
- if (Ni) return $r;
5019
- Ni = 1, $r = e;
5025
+ if (Di) return $r;
5026
+ Di = 1, $r = e;
5020
5027
  var n = ho();
5021
- ze()(e, n);
5028
+ Ge()(e, n);
5022
5029
  function e(t) {
5023
5030
  if (!(this instanceof e)) return new e(t);
5024
5031
  n.call(this, t);
@@ -5027,10 +5034,10 @@ function Ra() {
5027
5034
  l(null, t);
5028
5035
  }, $r;
5029
5036
  }
5030
- var Ur, Di;
5037
+ var Ur, Fi;
5031
5038
  function Pa() {
5032
- if (Di) return Ur;
5033
- Di = 1;
5039
+ if (Fi) return Ur;
5040
+ Fi = 1;
5034
5041
  var n;
5035
5042
  function e(C) {
5036
5043
  var j = !1;
@@ -5038,7 +5045,7 @@ function Pa() {
5038
5045
  j || (j = !0, C.apply(void 0, arguments));
5039
5046
  };
5040
5047
  }
5041
- var t = Ge().codes, o = t.ERR_MISSING_ARGS, l = t.ERR_STREAM_DESTROYED;
5048
+ var t = ze().codes, o = t.ERR_MISSING_ARGS, l = t.ERR_STREAM_DESTROYED;
5042
5049
  function c(C) {
5043
5050
  if (C) throw C;
5044
5051
  }
@@ -5050,7 +5057,7 @@ function Pa() {
5050
5057
  var S = !1;
5051
5058
  C.on("close", function() {
5052
5059
  S = !0;
5053
- }), n === void 0 && (n = on()), n(C, {
5060
+ }), n === void 0 && (n = an()), n(C, {
5054
5061
  readable: j,
5055
5062
  writable: y
5056
5063
  }, function(b) {
@@ -5091,26 +5098,26 @@ function Pa() {
5091
5098
  }
5092
5099
  return Ur = A, Ur;
5093
5100
  }
5094
- var Fi;
5101
+ var ji;
5095
5102
  function Aa() {
5096
- return Fi || (Fi = 1, function(n, e) {
5097
- e = n.exports = fo(), e.Stream = e, e.Readable = e, e.Writable = uo(), e.Duplex = xe(), e.Transform = ho(), e.PassThrough = Ra(), e.finished = on(), e.pipeline = Pa();
5103
+ return ji || (ji = 1, function(n, e) {
5104
+ e = n.exports = fo(), e.Stream = e, e.Readable = e, e.Writable = uo(), e.Duplex = xe(), e.Transform = ho(), e.PassThrough = Ra(), e.finished = an(), e.pipeline = Pa();
5098
5105
  }(at, at.exports)), at.exports;
5099
5106
  }
5100
5107
  /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
5101
- var qr, ji;
5108
+ var qr, $i;
5102
5109
  function Ta() {
5103
- if (ji) return qr;
5104
- ji = 1;
5110
+ if ($i) return qr;
5111
+ $i = 1;
5105
5112
  let n;
5106
5113
  return qr = typeof queueMicrotask == "function" ? queueMicrotask.bind(typeof window != "undefined" ? window : globalThis) : (e) => (n || (n = Promise.resolve())).then(e).catch((t) => setTimeout(() => {
5107
5114
  throw t;
5108
5115
  }, 0)), qr;
5109
5116
  }
5110
- var xr, $i;
5117
+ var xr, Ui;
5111
5118
  function Ia() {
5112
- if ($i) return xr;
5113
- $i = 1;
5119
+ if (Ui) return xr;
5120
+ Ui = 1;
5114
5121
  function n(t, o) {
5115
5122
  for (const l in o)
5116
5123
  Object.defineProperty(t, l, {
@@ -5136,10 +5143,10 @@ function Ia() {
5136
5143
  return xr = e, xr;
5137
5144
  }
5138
5145
  /*! simple-peer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
5139
- var Wr, Ui;
5146
+ var Wr, qi;
5140
5147
  function Oa() {
5141
- if (Ui) return Wr;
5142
- Ui = 1;
5148
+ if (qi) return Wr;
5149
+ qi = 1;
5143
5150
  const n = jo()("simple-peer"), e = $o(), t = Uo(), o = Aa(), l = Ta(), c = Ia(), { Buffer: E } = Ye(), a = 64 * 1024, f = 5 * 1e3, u = 5 * 1e3;
5144
5151
  function w(j) {
5145
5152
  return j.replace(/a=ice-options:trickle\s\n/g, "");
@@ -5604,8 +5611,8 @@ function Oa() {
5604
5611
  }, C.channelConfig = {}, Wr = C, Wr;
5605
5612
  }
5606
5613
  var ka = Oa();
5607
- const Ba = /* @__PURE__ */ Zr(ka);
5608
- var Ma = Object.defineProperty, La = (n, e, t) => e in n ? Ma(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Me = (n, e, t) => La(n, typeof e != "symbol" ? e + "" : e, t), zr = (n, e, t) => new Promise((o, l) => {
5614
+ const Ba = /* @__PURE__ */ Qr(ka);
5615
+ var Ma = Object.defineProperty, La = (n, e, t) => e in n ? Ma(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Me = (n, e, t) => La(n, typeof e != "symbol" ? e + "" : e, t), Gr = (n, e, t) => new Promise((o, l) => {
5609
5616
  var c = (f) => {
5610
5617
  try {
5611
5618
  a(t.next(f));
@@ -5629,7 +5636,7 @@ class Na {
5629
5636
  * Create and initialize the peer connection
5630
5637
  */
5631
5638
  createConnection(e) {
5632
- return zr(this, null, function* () {
5639
+ return Gr(this, null, function* () {
5633
5640
  try {
5634
5641
  console.log(
5635
5642
  `[CallPeerConnection] Creating connection to ${this.remoteUserId}, initiator: ${this.isInitiator}`
@@ -5770,7 +5777,7 @@ class Na {
5770
5777
  * Set bandwidth limits
5771
5778
  */
5772
5779
  setBandwidthLimit(e) {
5773
- return zr(this, null, function* () {
5780
+ return Gr(this, null, function* () {
5774
5781
  if (!this.peer) {
5775
5782
  console.warn(
5776
5783
  `[CallPeerConnection] Cannot set bandwidth for ${this.remoteUserId}: peer connection not available`
@@ -5814,7 +5821,7 @@ class Na {
5814
5821
  * Get connection statistics
5815
5822
  */
5816
5823
  getStats() {
5817
- return zr(this, null, function* () {
5824
+ return Gr(this, null, function* () {
5818
5825
  if (!this.peer)
5819
5826
  return null;
5820
5827
  try {
@@ -5929,7 +5936,7 @@ class Na {
5929
5936
  };
5930
5937
  }
5931
5938
  }
5932
- const qi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Je = /* @__PURE__ */ new Map(), ct = (n) => {
5939
+ const xi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Je = /* @__PURE__ */ new Map(), ct = (n) => {
5933
5940
  const e = Je.get(n);
5934
5941
  return e ? Object.fromEntries(
5935
5942
  Object.entries(e.stores).map(([t, o]) => [t, o.getState()])
@@ -5966,7 +5973,7 @@ const qi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Je
5966
5973
  const I = e, { enabled: c, anonymousActionType: E, store: a } = I, f = bt(I, ["enabled", "anonymousActionType", "store"]);
5967
5974
  let u;
5968
5975
  try {
5969
- u = (c != null ? c : (qi ? "production" : void 0) !== "production") && window.__REDUX_DEVTOOLS_EXTENSION__;
5976
+ u = (c != null ? c : (xi ? "production" : void 0) !== "production") && window.__REDUX_DEVTOOLS_EXTENSION__;
5970
5977
  } catch (h) {
5971
5978
  }
5972
5979
  if (!u)
@@ -6007,7 +6014,7 @@ const qi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Je
6007
6014
  let h = !1;
6008
6015
  const b = l.dispatch;
6009
6016
  l.dispatch = (...P) => {
6010
- (qi ? "production" : void 0) !== "production" && P[0].type === "__setState" && !h && (console.warn(
6017
+ (xi ? "production" : void 0) !== "production" && P[0].type === "__setState" && !h && (console.warn(
6011
6018
  '[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'
6012
6019
  ), h = !0), b(...P);
6013
6020
  };
@@ -6022,7 +6029,7 @@ const qi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Je
6022
6029
  );
6023
6030
  return;
6024
6031
  }
6025
- return Gr(
6032
+ return zr(
6026
6033
  h.payload,
6027
6034
  (P) => {
6028
6035
  if (P.type === "__setState") {
@@ -6057,7 +6064,7 @@ const qi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Je
6057
6064
  }
6058
6065
  return w == null ? void 0 : w.init(ct(f.name));
6059
6066
  case "ROLLBACK":
6060
- return Gr(h.state, (P) => {
6067
+ return zr(h.state, (P) => {
6061
6068
  if (a === void 0) {
6062
6069
  j(P), w == null || w.init(l.getState());
6063
6070
  return;
@@ -6066,7 +6073,7 @@ const qi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Je
6066
6073
  });
6067
6074
  case "JUMP_TO_STATE":
6068
6075
  case "JUMP_TO_ACTION":
6069
- return Gr(h.state, (P) => {
6076
+ return zr(h.state, (P) => {
6070
6077
  if (a === void 0) {
6071
6078
  j(P);
6072
6079
  return;
@@ -6089,7 +6096,7 @@ const qi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Je
6089
6096
  return;
6090
6097
  }
6091
6098
  }), y;
6092
- }, Ua = $a, Gr = (n, e) => {
6099
+ }, Ua = $a, zr = (n, e) => {
6093
6100
  let t;
6094
6101
  try {
6095
6102
  t = JSON.parse(n);
@@ -6101,14 +6108,14 @@ const qi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Je
6101
6108
  }
6102
6109
  t !== void 0 && e(t);
6103
6110
  };
6104
- var qa = { env: {} }, xa = Object.defineProperty, Wa = Object.defineProperties, za = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, po = Object.prototype.hasOwnProperty, go = Object.prototype.propertyIsEnumerable, xi = (n, e, t) => e in n ? xa(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Le = (n, e) => {
6111
+ var qa = { env: {} }, xa = Object.defineProperty, Wa = Object.defineProperties, Ga = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, po = Object.prototype.hasOwnProperty, go = Object.prototype.propertyIsEnumerable, Wi = (n, e, t) => e in n ? xa(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Le = (n, e) => {
6105
6112
  for (var t in e || (e = {}))
6106
- po.call(e, t) && xi(n, t, e[t]);
6113
+ po.call(e, t) && Wi(n, t, e[t]);
6107
6114
  if (ft)
6108
6115
  for (var t of ft(e))
6109
- go.call(e, t) && xi(n, t, e[t]);
6116
+ go.call(e, t) && Wi(n, t, e[t]);
6110
6117
  return n;
6111
- }, Vr = (n, e) => Wa(n, za(e)), Ga = (n) => typeof n == "symbol" ? n : n + "", Va = (n, e) => {
6118
+ }, Vr = (n, e) => Wa(n, Ga(e)), za = (n) => typeof n == "symbol" ? n : n + "", Va = (n, e) => {
6112
6119
  var t = {};
6113
6120
  for (var o in n)
6114
6121
  po.call(n, o) && e.indexOf(o) < 0 && (t[o] = n[o]);
@@ -6117,8 +6124,8 @@ var qa = { env: {} }, xa = Object.defineProperty, Wa = Object.defineProperties,
6117
6124
  e.indexOf(o) < 0 && go.call(n, o) && (t[o] = n[o]);
6118
6125
  return t;
6119
6126
  };
6120
- const Wi = {
6121
- conversationId: "",
6127
+ const Gi = {
6128
+ roomId: "",
6122
6129
  participants: {},
6123
6130
  localParticipant: null,
6124
6131
  isCalling: !1,
@@ -6131,9 +6138,9 @@ const Wi = {
6131
6138
  callStatusError: null
6132
6139
  }, we = To()(
6133
6140
  Ua(
6134
- (n) => Vr(Le({}, Wi), {
6135
- // Conversation management
6136
- setConversationId: (e) => n({ conversationId: e }, !1, "setConversationId"),
6141
+ (n) => Vr(Le({}, Gi), {
6142
+ // Room management
6143
+ setRoomId: (e) => n({ roomId: e }, !1, "setRoomId"),
6137
6144
  // Participant management
6138
6145
  setLocalParticipant: (e) => n({ localParticipant: e }, !1, "setLocalParticipant"),
6139
6146
  addParticipant: (e) => n(
@@ -6148,7 +6155,7 @@ const Wi = {
6148
6155
  removeParticipant: (e) => n(
6149
6156
  (t) => {
6150
6157
  const o = t.participants, { [e]: l } = o;
6151
- return { participants: Va(o, [Ga(e)]) };
6158
+ return { participants: Va(o, [za(e)]) };
6152
6159
  },
6153
6160
  !1,
6154
6161
  "removeParticipant"
@@ -6182,26 +6189,26 @@ const Wi = {
6182
6189
  setCallStatusLoading: (e) => n({ callStatusLoading: e }, !1, "setCallStatusLoading"),
6183
6190
  setCallStatusError: (e) => n({ callStatusError: e }, !1, "setCallStatusError"),
6184
6191
  // Reset store
6185
- resetCall: () => n(Le({}, Wi), !1, "resetCall")
6192
+ resetCall: () => n(Le({}, Gi), !1, "resetCall")
6186
6193
  }),
6187
6194
  {
6188
6195
  name: "peers-caller-store",
6189
6196
  enabled: qa.env.NODE_ENV === "development"
6190
6197
  }
6191
6198
  )
6192
- ), Rs = (n) => n.participants, Ha = (n) => Object.keys(n.participants).length, Ps = (n) => n.localParticipant, As = (n) => n.callStatus, Ts = (n) => n.callStatus === "connected", Is = (n) => n.error, Os = (n) => n.callStatusInfo, ks = (n) => n.callStatusLoading, Bs = (n) => n.callStatusError, Ms = (n) => {
6199
+ ), Ts = (n) => n.participants, Ha = (n) => Object.keys(n.participants).length, Is = (n) => n.localParticipant, Os = (n) => n.callStatus, ks = (n) => n.callStatus === "connected", Bs = (n) => n.error, Ms = (n) => n.callStatusInfo, Ls = (n) => n.callStatusLoading, Ns = (n) => n.callStatusError, Ds = (n) => {
6193
6200
  var e;
6194
6201
  return ((e = n.callStatusInfo) == null ? void 0 : e.canJoin) || !1;
6195
- }, Ls = (n) => {
6202
+ }, Fs = (n) => {
6196
6203
  var e;
6197
6204
  return ((e = n.callStatusInfo) == null ? void 0 : e.hasActiveCall) || !1;
6198
- }, Ja = (n) => we.getState().participants[n], Ns = (n) => {
6205
+ }, Ja = (n) => we.getState().participants[n], js = (n) => {
6199
6206
  const e = Ja(n);
6200
6207
  return !!(e != null && e.stream);
6201
- }, Ds = () => {
6208
+ }, $s = () => {
6202
6209
  const n = we.getState();
6203
6210
  return Object.values(n.participants);
6204
- }, Fs = (n = 4) => Ha(we.getState()) < n;
6211
+ }, Us = (n = 4) => Ha(we.getState()) < n;
6205
6212
  var Ya = Object.defineProperty, Ka = (n, e, t) => e in n ? Ya(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Xa = (n, e, t) => Ka(n, e + "", t);
6206
6213
  class yo {
6207
6214
  constructor(e) {
@@ -6219,14 +6226,14 @@ class yo {
6219
6226
  return this.store.getState();
6220
6227
  }
6221
6228
  }
6222
- var Za = Object.defineProperty, Qa = Object.defineProperties, es = Object.getOwnPropertyDescriptors, zi = Object.getOwnPropertySymbols, ts = Object.prototype.hasOwnProperty, rs = Object.prototype.propertyIsEnumerable, Yr = (n, e, t) => e in n ? Za(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Hr = (n, e) => {
6229
+ var Za = Object.defineProperty, Qa = Object.defineProperties, es = Object.getOwnPropertyDescriptors, zi = Object.getOwnPropertySymbols, ts = Object.prototype.hasOwnProperty, rs = Object.prototype.propertyIsEnumerable, Kr = (n, e, t) => e in n ? Za(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Hr = (n, e) => {
6223
6230
  for (var t in e || (e = {}))
6224
- ts.call(e, t) && Yr(n, t, e[t]);
6231
+ ts.call(e, t) && Kr(n, t, e[t]);
6225
6232
  if (zi)
6226
6233
  for (var t of zi(e))
6227
- rs.call(e, t) && Yr(n, t, e[t]);
6234
+ rs.call(e, t) && Kr(n, t, e[t]);
6228
6235
  return n;
6229
- }, ns = (n, e) => Qa(n, es(e)), $e = (n, e, t) => Yr(n, typeof e != "symbol" ? e + "" : e, t), ut = (n, e, t) => new Promise((o, l) => {
6236
+ }, ns = (n, e) => Qa(n, es(e)), $e = (n, e, t) => Kr(n, typeof e != "symbol" ? e + "" : e, t), ut = (n, e, t) => new Promise((o, l) => {
6230
6237
  var c = (f) => {
6231
6238
  try {
6232
6239
  a(t.next(f));
@@ -6242,7 +6249,7 @@ var Za = Object.defineProperty, Qa = Object.defineProperties, es = Object.getOwn
6242
6249
  }, a = (f) => f.done ? o(f.value) : Promise.resolve(f.value).then(c, E);
6243
6250
  a((t = t.apply(n, e)).next());
6244
6251
  });
6245
- class Gi extends yo {
6252
+ class Vi extends yo {
6246
6253
  constructor(e, t = {}, o = !1) {
6247
6254
  super(we), $e(this, "userId"), $e(this, "mediaStream", null), $e(this, "peerConnections", /* @__PURE__ */ new Map()), $e(this, "remoteStreams", /* @__PURE__ */ new Map()), $e(this, "isLocalParticipant", !1), $e(this, "callbacks"), this.userId = e, this.callbacks = t, this.isLocalParticipant = o;
6248
6255
  const l = {
@@ -6539,9 +6546,9 @@ class Gi extends yo {
6539
6546
  );
6540
6547
  }
6541
6548
  }
6542
- var Jr = { exports: {} }, Vi;
6549
+ var Jr = { exports: {} }, Hi;
6543
6550
  function is() {
6544
- return Vi || (Vi = 1, function(n) {
6551
+ return Hi || (Hi = 1, function(n) {
6545
6552
  function e(t, o) {
6546
6553
  var l = "Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";
6547
6554
  (function(v) {
@@ -6725,9 +6732,9 @@ function is() {
6725
6732
  }(Jr)), Jr.exports;
6726
6733
  }
6727
6734
  var os = is();
6728
- const as = /* @__PURE__ */ Zr(os);
6729
- var ss = Qr();
6730
- const ls = /* @__PURE__ */ Zr(ss);
6735
+ const as = /* @__PURE__ */ Qr(os);
6736
+ var ss = en();
6737
+ const ls = /* @__PURE__ */ Qr(ss);
6731
6738
  class cs extends ls {
6732
6739
  constructor(t, o = navigator.language) {
6733
6740
  super();
@@ -6761,14 +6768,14 @@ class cs extends ls {
6761
6768
  });
6762
6769
  }
6763
6770
  }
6764
- var us = Object.defineProperty, Hi = Object.getOwnPropertySymbols, fs = Object.prototype.hasOwnProperty, ds = Object.prototype.propertyIsEnumerable, Kr = (n, e, t) => e in n ? us(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, hs = (n, e) => {
6771
+ var us = Object.defineProperty, Ji = Object.getOwnPropertySymbols, fs = Object.prototype.hasOwnProperty, ds = Object.prototype.propertyIsEnumerable, Xr = (n, e, t) => e in n ? us(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, hs = (n, e) => {
6765
6772
  for (var t in e || (e = {}))
6766
- fs.call(e, t) && Kr(n, t, e[t]);
6767
- if (Hi)
6768
- for (var t of Hi(e))
6769
- ds.call(e, t) && Kr(n, t, e[t]);
6773
+ fs.call(e, t) && Xr(n, t, e[t]);
6774
+ if (Ji)
6775
+ for (var t of Ji(e))
6776
+ ds.call(e, t) && Xr(n, t, e[t]);
6770
6777
  return n;
6771
- }, Ue = (n, e, t) => Kr(n, typeof e != "symbol" ? e + "" : e, t), Ji = (n, e, t) => new Promise((o, l) => {
6778
+ }, Ue = (n, e, t) => Xr(n, typeof e != "symbol" ? e + "" : e, t), Yr = (n, e, t) => new Promise((o, l) => {
6772
6779
  var c = (f) => {
6773
6780
  try {
6774
6781
  a(t.next(f));
@@ -6785,7 +6792,7 @@ var us = Object.defineProperty, Hi = Object.getOwnPropertySymbols, fs = Object.p
6785
6792
  a((t = t.apply(n, e)).next());
6786
6793
  });
6787
6794
  class ps {
6788
- constructor(e, t, o = {}, l = {}) {
6795
+ constructor(e = {}, t = {}) {
6789
6796
  Ue(this, "mixer", null), Ue(this, "recorder", null), Ue(this, "localTranscriber", null), Ue(this, "isRecording", !1), Ue(this, "config"), Ue(this, "callbacks"), this.config = hs({
6790
6797
  mimeType: "video/webm;codecs=vp8,opus",
6791
6798
  videoBitsPerSecond: 1e6,
@@ -6793,15 +6800,13 @@ class ps {
6793
6800
  audioBitsPerSecond: 128e3,
6794
6801
  // 128kbps
6795
6802
  interval: 1e3
6796
- }, o), this.callbacks = l, console.log(
6797
- `[CallRecorder] Initialized for conversation ${e}, user ${t}`
6798
- );
6803
+ }, e), this.callbacks = t;
6799
6804
  }
6800
6805
  /**
6801
6806
  * Start recording with mixed streams and recording data
6802
6807
  */
6803
6808
  startRecording(e, t) {
6804
- return Ji(this, null, function* () {
6809
+ return Yr(this, null, function* () {
6805
6810
  var o, l, c, E;
6806
6811
  try {
6807
6812
  if (console.log(
@@ -6832,7 +6837,7 @@ class ps {
6832
6837
  * Stop recording
6833
6838
  */
6834
6839
  stopRecording() {
6835
- return Ji(this, null, function* () {
6840
+ return Yr(this, null, function* () {
6836
6841
  var e, t;
6837
6842
  try {
6838
6843
  if (console.log("[CallRecorder] Stopping recording"), !this.isRecording || !this.recorder)
@@ -6917,17 +6922,19 @@ class ps {
6917
6922
  * Cleanup recorder resources
6918
6923
  */
6919
6924
  cleanup() {
6920
- console.log("[CallRecorder] Cleaning up recorder"), this.isRecording && this.stopRecording(), this.localTranscriber && (this.localTranscriber.stop(), this.localTranscriber = null), this.mixer && (this.mixer.releaseStreams(), this.mixer = null), this.recorder = null;
6925
+ return Yr(this, null, function* () {
6926
+ console.log("[CallRecorder] Cleaning up recorder"), this.isRecording && (yield this.stopRecording()), this.localTranscriber && (this.localTranscriber.stop(), this.localTranscriber = null), this.mixer && (this.mixer.releaseStreams(), this.mixer = null), this.recorder = null;
6927
+ });
6921
6928
  }
6922
6929
  }
6923
- var gs = Object.defineProperty, Yi = Object.getOwnPropertySymbols, ys = Object.prototype.hasOwnProperty, ms = Object.prototype.propertyIsEnumerable, Xr = (n, e, t) => e in n ? gs(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, vs = (n, e) => {
6930
+ var gs = Object.defineProperty, ys = Object.defineProperties, ms = Object.getOwnPropertyDescriptors, Yi = Object.getOwnPropertySymbols, vs = Object.prototype.hasOwnProperty, bs = Object.prototype.propertyIsEnumerable, Zr = (n, e, t) => e in n ? gs(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, ws = (n, e) => {
6924
6931
  for (var t in e || (e = {}))
6925
- ys.call(e, t) && Xr(n, t, e[t]);
6932
+ vs.call(e, t) && Zr(n, t, e[t]);
6926
6933
  if (Yi)
6927
6934
  for (var t of Yi(e))
6928
- ms.call(e, t) && Xr(n, t, e[t]);
6935
+ bs.call(e, t) && Zr(n, t, e[t]);
6929
6936
  return n;
6930
- }, Pe = (n, e, t) => Xr(n, typeof e != "symbol" ? e + "" : e, t), ye = (n, e, t) => new Promise((o, l) => {
6937
+ }, _s = (n, e) => ys(n, ms(e)), Re = (n, e, t) => Zr(n, typeof e != "symbol" ? e + "" : e, t), pe = (n, e, t) => new Promise((o, l) => {
6931
6938
  var c = (f) => {
6932
6939
  try {
6933
6940
  a(t.next(f));
@@ -6943,23 +6950,27 @@ var gs = Object.defineProperty, Yi = Object.getOwnPropertySymbols, ys = Object.p
6943
6950
  }, a = (f) => f.done ? o(f.value) : Promise.resolve(f.value).then(c, E);
6944
6951
  a((t = t.apply(n, e)).next());
6945
6952
  });
6946
- class bs extends yo {
6953
+ class Ss extends yo {
6947
6954
  constructor(e, t = {}) {
6948
- super(we), Pe(this, "config"), Pe(this, "callbacks"), Pe(this, "socket"), Pe(this, "localParticipant", null), Pe(this, "participants", /* @__PURE__ */ new Map()), Pe(this, "recorder", null), Pe(this, "iceServers", []), Pe(this, "isInitialized", !1), Pe(this, "listenersSetup", !1), Pe(this, "eventListeners", /* @__PURE__ */ new Map()), this.config = vs({
6955
+ if (super(we), Re(this, "config"), Re(this, "callbacks"), Re(this, "socket"), Re(this, "localParticipant", null), Re(this, "participants", /* @__PURE__ */ new Map()), Re(this, "recorder", null), Re(this, "iceServers", []), Re(this, "isInitialized", !1), Re(this, "listenersSetup", !1), Re(this, "roomId"), Re(this, "eventListeners", /* @__PURE__ */ new Map()), this.roomId = e.roomId, !this.roomId)
6956
+ throw new Error("roomId must be provided in config");
6957
+ this.config = _s(ws({
6949
6958
  maxParticipants: 4,
6950
6959
  debug: !1,
6951
6960
  socketPath: "/apis/video-call",
6952
6961
  mediaConfig: { video: !0, audio: !0 }
6953
- }, e), this.callbacks = t, this.socket = new Bo(
6962
+ }, e), {
6963
+ roomId: this.roomId
6964
+ // Ensure roomId is set
6965
+ }), this.callbacks = t, this.socket = new Bo(
6954
6966
  this.config.socketUrl,
6955
6967
  this.config.token,
6956
6968
  this.config.socketPath
6957
6969
  ), this.iceServers = this.config.iceServers || [
6958
6970
  { urls: "stun:stun.l.google.com:19302" },
6959
6971
  { urls: "stun:stun1.l.google.com:19302" }
6960
- ], this.state.setConversationId(this.config.conversationId), console.log("[PeersCaller] Initialized with config:", {
6961
- conversationId: this.config.conversationId,
6962
- userId: this.config.userId,
6972
+ ], this.state.setRoomId(this.roomId), console.log("[PeersCaller] Initialized with config:", {
6973
+ roomId: this.roomId,
6963
6974
  tokenLength: this.config.token.length,
6964
6975
  maxParticipants: this.config.maxParticipants
6965
6976
  });
@@ -6968,13 +6979,13 @@ class bs extends yo {
6968
6979
  * Initialize the PeersCaller and establish WebSocket connection
6969
6980
  */
6970
6981
  initialize() {
6971
- return ye(this, null, function* () {
6982
+ return pe(this, null, function* () {
6972
6983
  try {
6973
6984
  if (console.log("[PeersCaller] Initializing..."), this.isInitialized) {
6974
6985
  console.warn("[PeersCaller] Already initialized");
6975
6986
  return;
6976
6987
  }
6977
- yield this.socket.connect(), this.setupSocketListeners(), yield this.initializeLocalParticipant(), this.isInitialized = !0, this.state.setCallStatus("idle"), console.log(
6988
+ yield this.socket.connect(), yield this.fetchIceServers(), this.setupSocketListeners(), yield this.initializeLocalParticipant(), this.isInitialized = !0, this.state.setCallStatus("idle"), console.log(
6978
6989
  "[PeersCaller] Initialization completed successfully (ready to start/join call)"
6979
6990
  );
6980
6991
  } catch (e) {
@@ -6986,7 +6997,7 @@ class bs extends yo {
6986
6997
  * Start a new call
6987
6998
  */
6988
6999
  startCall() {
6989
- return ye(this, arguments, function* (e = this.config.mediaConfig) {
7000
+ return pe(this, arguments, function* (e = this.config.mediaConfig) {
6990
7001
  var t, o;
6991
7002
  try {
6992
7003
  if (console.log("[PeersCaller] Starting call..."), this.isInitialized || (yield this.initialize()), this.localParticipant && !this.localParticipant.getCurrentStream()) {
@@ -6996,14 +7007,8 @@ class bs extends yo {
6996
7007
  };
6997
7008
  yield this.localParticipant.initialize(c);
6998
7009
  }
6999
- this.state.setIsCalling(!0), this.state.setCallStatus("connecting"), console.log(
7000
- "[PeersCaller] Starting call for conversation:",
7001
- this.config.conversationId
7002
- );
7003
- const l = yield this.socket.startCall(
7004
- this.config.conversationId,
7005
- this.config.userId
7006
- );
7010
+ this.state.setIsCalling(!0), this.state.setCallStatus("connecting"), console.log("[PeersCaller] Starting call for room:", this.config.roomId);
7011
+ const l = yield this.socket.startCall(this.config.roomId);
7007
7012
  if (console.log("[PeersCaller] Received call.start response:", l), l.success)
7008
7013
  this.state.setCallStatus("connected"), l.participants.forEach((c) => {
7009
7014
  c !== this.config.userId && this.handleParticipantJoined(c);
@@ -7022,7 +7027,7 @@ class bs extends yo {
7022
7027
  * Join an existing call
7023
7028
  */
7024
7029
  joinCall() {
7025
- return ye(this, arguments, function* (e = this.config.mediaConfig) {
7030
+ return pe(this, arguments, function* (e = this.config.mediaConfig) {
7026
7031
  try {
7027
7032
  console.log("[PeersCaller] Joining call..."), this.isInitialized || (yield this.initialize());
7028
7033
  const t = yield this.checkCallStatus();
@@ -7042,22 +7047,13 @@ class bs extends yo {
7042
7047
  l
7043
7048
  ), yield this.localParticipant.initialize(l);
7044
7049
  }
7045
- console.log(
7046
- "[PeersCaller] Joining call for conversation:",
7047
- this.config.conversationId
7048
- );
7049
- const o = yield this.socket.joinRoom(
7050
- this.config.conversationId,
7051
- this.config.userId
7052
- );
7050
+ console.log("[PeersCaller] Joining call for room:", this.config.roomId);
7051
+ const o = yield this.socket.joinRoom(this.config.roomId);
7053
7052
  console.log("[PeersCaller] Received call.join response:", o), this.state.setCallStatus("connected"), this.state.setIsCalling(!0), o.participants.forEach((l) => {
7054
7053
  l !== this.config.userId && this.handleParticipantJoined(l);
7055
7054
  }), console.log("[PeersCaller] Joined call successfully");
7056
7055
  } catch (t) {
7057
- throw console.error("[PeersCaller] Failed to join call:", t), this.state.setCallStatus("idle"), this.handleError(
7058
- "INVALID_CONVERSATION_ID",
7059
- `Failed to join call: ${t}`
7060
- ), t;
7056
+ throw console.error("[PeersCaller] Failed to join call:", t), this.state.setCallStatus("idle"), this.handleError("INVALID_ROOM_ID", `Failed to join call: ${t}`), t;
7061
7057
  }
7062
7058
  });
7063
7059
  }
@@ -7066,11 +7062,11 @@ class bs extends yo {
7066
7062
  * This sends a request to the server to end the call for all participants
7067
7063
  */
7068
7064
  endCall() {
7069
- return ye(this, null, function* () {
7065
+ return pe(this, null, function* () {
7070
7066
  try {
7071
- console.log("[PeersCaller] Ending call..."), this.recorder && this.state.isRecording && this.stopRecording();
7067
+ console.log("[PeersCaller] Ending call..."), this.recorder && this.state.isRecording && (yield this.stopRecording());
7072
7068
  try {
7073
- yield this.socket.endCallForAll(this.config.conversationId), console.log("[PeersCaller] End call request sent to server");
7069
+ yield this.socket.endCallForAll(this.config.roomId), console.log("[PeersCaller] End call request sent to server");
7074
7070
  } catch (e) {
7075
7071
  console.warn(
7076
7072
  "[PeersCaller] Failed to notify server of call end:",
@@ -7087,16 +7083,10 @@ class bs extends yo {
7087
7083
  * Leave the call gracefully (with server acknowledgement)
7088
7084
  */
7089
7085
  leaveCall() {
7090
- return ye(this, null, function* () {
7086
+ return pe(this, null, function* () {
7091
7087
  try {
7092
- console.log("[PeersCaller] Leaving call..."), this.recorder && this.state.isRecording && this.stopRecording(), console.log(
7093
- "[PeersCaller] Leaving call for conversation:",
7094
- this.config.conversationId
7095
- );
7096
- const e = yield this.socket.leaveCall(
7097
- this.config.conversationId,
7098
- this.config.userId
7099
- );
7088
+ console.log("[PeersCaller] Leaving call..."), console.log("[PeersCaller] Leaving call for room:", this.config.roomId);
7089
+ const e = yield this.socket.leaveCall(this.config.roomId);
7100
7090
  if (console.log("[PeersCaller] Received call.leave response:", e), e.success)
7101
7091
  this.cleanupAllParticipants(), this.state.setIsCalling(!1), this.state.setCallStatus("idle"), this.state.clearParticipants(), console.log("[PeersCaller] Left call successfully");
7102
7092
  else {
@@ -7124,7 +7114,7 @@ class bs extends yo {
7124
7114
  * Start screen sharing
7125
7115
  */
7126
7116
  startScreenShare() {
7127
- return ye(this, null, function* () {
7117
+ return pe(this, null, function* () {
7128
7118
  try {
7129
7119
  if (!this.localParticipant)
7130
7120
  throw new Error("Local participant not initialized");
@@ -7141,7 +7131,7 @@ class bs extends yo {
7141
7131
  * Stop screen sharing
7142
7132
  */
7143
7133
  stopScreenShare() {
7144
- return ye(this, null, function* () {
7134
+ return pe(this, null, function* () {
7145
7135
  try {
7146
7136
  if (!this.localParticipant)
7147
7137
  throw new Error("Local participant not initialized");
@@ -7155,7 +7145,7 @@ class bs extends yo {
7155
7145
  * Start recording the call
7156
7146
  */
7157
7147
  startRecording(e, t) {
7158
- return ye(this, null, function* () {
7148
+ return pe(this, null, function* () {
7159
7149
  var o;
7160
7150
  try {
7161
7151
  if (console.log("[PeersCaller] Starting recording..."), this.state.isRecording) {
@@ -7170,42 +7160,27 @@ class bs extends yo {
7170
7160
  }
7171
7161
  if (l.length === 0)
7172
7162
  throw new Error("No streams available for recording");
7173
- this.recorder = new ps(
7174
- this.config.conversationId,
7175
- this.config.userId,
7176
- t,
7177
- {
7178
- onRecordingStarted: (E) => {
7179
- this.socket.startRecording(
7180
- this.config.conversationId,
7181
- E.id
7182
- );
7183
- },
7184
- onRecordingChunk: (E, a) => {
7185
- this.socket.sendRecordingChunk(
7186
- this.config.conversationId,
7187
- a.id,
7188
- E
7189
- );
7190
- },
7191
- onRecordingStopped: (E) => {
7192
- this.socket.endRecording(
7193
- this.config.conversationId,
7194
- E.id
7195
- );
7196
- },
7197
- onTranscriptReceived: (E) => {
7198
- this.socket.sendTranscript(
7199
- this.config.conversationId,
7200
- E.userId,
7201
- E.text
7202
- );
7203
- },
7204
- onError: (E) => {
7205
- this.handleError("RECORDING_FAILED", E.message);
7206
- }
7163
+ this.recorder = new ps(t, {
7164
+ onRecordingStarted: (E) => {
7165
+ this.socket.startRecording(this.config.roomId, E.id);
7166
+ },
7167
+ onRecordingChunk: (E, a) => {
7168
+ this.socket.sendRecordingChunk(
7169
+ this.config.roomId,
7170
+ a.id,
7171
+ E
7172
+ );
7173
+ },
7174
+ onRecordingStopped: (E) => {
7175
+ this.socket.endRecording(this.config.roomId, E.id);
7176
+ },
7177
+ onTranscriptReceived: (E) => {
7178
+ this.socket.sendTranscript(this.config.roomId, E.text);
7179
+ },
7180
+ onError: (E) => {
7181
+ this.handleError("RECORDING_FAILED", E.message);
7207
7182
  }
7208
- ), yield this.recorder.startRecording(l, e), this.state.setIsRecording(!0), console.log("[PeersCaller] Recording started successfully");
7183
+ }), yield this.recorder.startRecording(l, e), this.state.setIsRecording(!0), console.log("[PeersCaller] Recording started successfully");
7209
7184
  } catch (l) {
7210
7185
  throw console.error("[PeersCaller] Failed to start recording:", l), this.handleError(
7211
7186
  "RECORDING_FAILED",
@@ -7218,7 +7193,7 @@ class bs extends yo {
7218
7193
  * Stop recording
7219
7194
  */
7220
7195
  stopRecording() {
7221
- return ye(this, null, function* () {
7196
+ return pe(this, null, function* () {
7222
7197
  try {
7223
7198
  if (console.log("[PeersCaller] Stopping recording..."), !this.recorder || !this.state.isRecording) {
7224
7199
  console.warn("[PeersCaller] No active recording to stop");
@@ -7287,8 +7262,8 @@ class bs extends yo {
7287
7262
  * Initialize local participant
7288
7263
  */
7289
7264
  initializeLocalParticipant() {
7290
- return ye(this, null, function* () {
7291
- this.localParticipant = new Gi(
7265
+ return pe(this, null, function* () {
7266
+ this.localParticipant = new Vi(
7292
7267
  this.config.userId,
7293
7268
  {
7294
7269
  onStateChanged: () => {
@@ -7401,7 +7376,7 @@ class bs extends yo {
7401
7376
  * Handle participant joined
7402
7377
  */
7403
7378
  handleParticipantJoined(e) {
7404
- return ye(this, null, function* () {
7379
+ return pe(this, null, function* () {
7405
7380
  var t, o;
7406
7381
  try {
7407
7382
  if (e === this.config.userId || this.participants.has(e))
@@ -7411,7 +7386,7 @@ class bs extends yo {
7411
7386
  return;
7412
7387
  }
7413
7388
  console.log(`[PeersCaller] Participant ${e} joined`);
7414
- const l = new Gi(
7389
+ const l = new Vi(
7415
7390
  e,
7416
7391
  {
7417
7392
  onStreamReceived: (a, f) => {
@@ -7469,15 +7444,12 @@ class bs extends yo {
7469
7444
  * Check call status for the conversation
7470
7445
  */
7471
7446
  checkCallStatus() {
7472
- return ye(this, null, function* () {
7447
+ return pe(this, null, function* () {
7473
7448
  try {
7474
7449
  if (console.log("[PeersCaller] Checking call status..."), !this.socket.isConnected())
7475
7450
  throw new Error("Socket not connected");
7476
7451
  this.state.setCallStatusLoading(!0), this.state.setCallStatusError(null);
7477
- const e = yield this.socket.checkCallStatus(
7478
- this.config.conversationId,
7479
- this.config.userId
7480
- );
7452
+ const e = yield this.socket.checkCallStatus(this.config.roomId);
7481
7453
  return this.state.setCallStatusInfo(e), this.state.setCallStatusLoading(!1), console.log("[PeersCaller] Call status received:", e), e;
7482
7454
  } catch (e) {
7483
7455
  console.error("[PeersCaller] Failed to check call status:", e);
@@ -7493,7 +7465,7 @@ class bs extends yo {
7493
7465
  * Handle WebRTC offer
7494
7466
  */
7495
7467
  handleOffer(e, t) {
7496
- return ye(this, null, function* () {
7468
+ return pe(this, null, function* () {
7497
7469
  try {
7498
7470
  if (!this.localParticipant) {
7499
7471
  console.warn(
@@ -7517,7 +7489,7 @@ class bs extends yo {
7517
7489
  * Handle WebRTC answer
7518
7490
  */
7519
7491
  handleAnswer(e, t) {
7520
- return ye(this, null, function* () {
7492
+ return pe(this, null, function* () {
7521
7493
  try {
7522
7494
  if (!this.localParticipant) {
7523
7495
  console.warn(
@@ -7541,7 +7513,7 @@ class bs extends yo {
7541
7513
  * Handle ICE candidate
7542
7514
  */
7543
7515
  handleCandidate(e, t) {
7544
- return ye(this, null, function* () {
7516
+ return pe(this, null, function* () {
7545
7517
  try {
7546
7518
  if (!this.localParticipant) {
7547
7519
  console.warn(
@@ -7584,27 +7556,24 @@ class bs extends yo {
7584
7556
  * Handle call ended notification from server
7585
7557
  */
7586
7558
  handleCallEnded(e) {
7587
- var t, o;
7588
- console.log(
7589
- `[PeersCaller] Call ended by ${e.endedBy}, reason: ${e.reason}`
7590
- );
7591
- try {
7592
- this.recorder && this.state.isRecording && this.stopRecording(), this.cleanupAllParticipants(), this.state.setIsCalling(!1), this.state.setCallStatus("idle"), this.state.clearParticipants(), (o = (t = this.callbacks).onCallEnded) == null || o.call(t, e), console.log("[PeersCaller] Call ended cleanup completed");
7593
- } catch (l) {
7594
- console.error("[PeersCaller] Error handling call ended:", l);
7595
- }
7559
+ return pe(this, null, function* () {
7560
+ var t, o;
7561
+ console.log(
7562
+ `[PeersCaller] Call ended by ${e.endedBy}, reason: ${e.reason}`
7563
+ );
7564
+ try {
7565
+ this.recorder && this.state.isRecording && (yield this.stopRecording()), this.cleanupAllParticipants(), this.state.setIsCalling(!1), this.state.setCallStatus("idle"), this.state.clearParticipants(), (o = (t = this.callbacks).onCallEnded) == null || o.call(t, e), console.log("[PeersCaller] Call ended cleanup completed");
7566
+ } catch (l) {
7567
+ console.error("[PeersCaller] Error handling call ended:", l);
7568
+ }
7569
+ });
7596
7570
  }
7597
7571
  /**
7598
7572
  * Broadcast state update to all participants
7599
7573
  */
7600
7574
  broadcastStateUpdate(e) {
7601
7575
  for (const t of this.participants.keys())
7602
- this.socket.sendStateUpdate(
7603
- t,
7604
- this.config.userId,
7605
- e,
7606
- this.config.conversationId
7607
- );
7576
+ this.socket.sendStateUpdate(t, e, this.config.roomId);
7608
7577
  }
7609
7578
  /**
7610
7579
  * Handle call status change
@@ -7628,6 +7597,31 @@ class bs extends yo {
7628
7597
  var o, l;
7629
7598
  console.error(`[PeersCaller] ${e}: ${t}`), this.state.setError(e, t), (l = (o = this.callbacks).onError) == null || l.call(o, e, t);
7630
7599
  }
7600
+ /**
7601
+ * Fetch ICE servers from the backend
7602
+ */
7603
+ fetchIceServers() {
7604
+ return pe(this, null, function* () {
7605
+ try {
7606
+ console.log("[PeersCaller] Fetching ICE servers from backend...");
7607
+ const e = yield this.socket.getIceServers(this.roomId);
7608
+ if (e.error) {
7609
+ console.warn(
7610
+ "[PeersCaller] Failed to fetch ICE servers from backend:",
7611
+ e.error
7612
+ ), console.log("[PeersCaller] Using default ICE servers");
7613
+ return;
7614
+ }
7615
+ e.iceServers && e.iceServers.length > 0 ? (this.iceServers = e.iceServers, console.log(
7616
+ `[PeersCaller] Successfully fetched ${e.iceServers.length} ICE servers from backend for room ${this.roomId}`
7617
+ )) : console.log(
7618
+ "[PeersCaller] No ICE servers received from backend, using defaults"
7619
+ );
7620
+ } catch (e) {
7621
+ console.warn("[PeersCaller] Error fetching ICE servers:", e), console.log("[PeersCaller] Using default ICE servers");
7622
+ }
7623
+ });
7624
+ }
7631
7625
  /**
7632
7626
  * Forward WebRTC signaling data to the server
7633
7627
  */
@@ -7638,27 +7632,16 @@ class bs extends yo {
7638
7632
  o.type
7639
7633
  ), o.type) {
7640
7634
  case "offer":
7641
- this.socket.sendOffer(
7642
- t,
7643
- e,
7644
- o,
7645
- this.config.conversationId
7646
- );
7635
+ this.socket.sendOffer(t, o, this.config.roomId);
7647
7636
  break;
7648
7637
  case "answer":
7649
- this.socket.sendAnswer(
7650
- t,
7651
- e,
7652
- o,
7653
- this.config.conversationId
7654
- );
7638
+ this.socket.sendAnswer(t, o, this.config.roomId);
7655
7639
  break;
7656
7640
  case "candidate":
7657
7641
  this.socket.sendCandidate(
7658
7642
  t,
7659
- e,
7660
7643
  o.candidate,
7661
- this.config.conversationId
7644
+ this.config.roomId
7662
7645
  );
7663
7646
  break;
7664
7647
  default:
@@ -7672,7 +7655,7 @@ class bs extends yo {
7672
7655
  }
7673
7656
  }
7674
7657
  }
7675
- var Ae = (n, e, t) => new Promise((o, l) => {
7658
+ var Te = (n, e, t) => new Promise((o, l) => {
7676
7659
  var c = (f) => {
7677
7660
  try {
7678
7661
  a(t.next(f));
@@ -7688,20 +7671,20 @@ var Ae = (n, e, t) => new Promise((o, l) => {
7688
7671
  }, a = (f) => f.done ? o(f.value) : Promise.resolve(f.value).then(c, E);
7689
7672
  a((t = t.apply(n, e)).next());
7690
7673
  });
7691
- function js(n) {
7674
+ function qs(n) {
7692
7675
  const [e, t] = Ne(null), [o, l] = Ne(!1), c = Io(!1), E = we.getState(), a = Object.values(
7693
7676
  we((g) => g.participants)
7694
- ), f = we((g) => g.localParticipant), u = we((g) => g.callStatus === "connected"), w = we((g) => g.isRecording), A = we((g) => g.error), C = be(() => Ae(null, null, function* () {
7677
+ ), f = we((g) => g.localParticipant), u = we((g) => g.callStatus === "connected"), w = we((g) => g.isRecording), A = we((g) => g.error), C = be(() => Te(null, null, function* () {
7695
7678
  if (!(c.current || e))
7696
7679
  try {
7697
7680
  c.current = !0;
7698
- const g = new bs(n, n.callbacks);
7681
+ const g = new Ss(n, n.callbacks);
7699
7682
  yield g.initialize(), t(g), l(!0);
7700
7683
  } catch (g) {
7701
7684
  throw console.error("[useVideoCall] Failed to initialize:", g), c.current = !1, g;
7702
7685
  }
7703
7686
  }), [n, e]), j = be(
7704
- (g) => Ae(null, null, function* () {
7687
+ (g) => Te(null, null, function* () {
7705
7688
  if (!e) {
7706
7689
  yield C();
7707
7690
  return;
@@ -7710,7 +7693,7 @@ function js(n) {
7710
7693
  }),
7711
7694
  [e, C]
7712
7695
  ), y = be(
7713
- (g) => Ae(null, null, function* () {
7696
+ (g) => Te(null, null, function* () {
7714
7697
  if (!e) {
7715
7698
  yield C();
7716
7699
  return;
@@ -7730,19 +7713,19 @@ function js(n) {
7730
7713
  e == null || e.toggleVideo(g);
7731
7714
  },
7732
7715
  [e]
7733
- ), b = be(() => Ae(null, null, function* () {
7716
+ ), b = be(() => Te(null, null, function* () {
7734
7717
  if (!e) throw new Error("PeersCaller not initialized");
7735
7718
  return e.startScreenShare();
7736
- }), [e]), P = be(() => Ae(null, null, function* () {
7719
+ }), [e]), P = be(() => Te(null, null, function* () {
7737
7720
  if (!e) throw new Error("PeersCaller not initialized");
7738
7721
  return e.stopScreenShare();
7739
7722
  }), [e]), _ = be(
7740
- (g) => Ae(null, null, function* () {
7723
+ (g) => Te(null, null, function* () {
7741
7724
  if (!e) throw new Error("PeersCaller not initialized");
7742
7725
  return e.startRecording(g);
7743
7726
  }),
7744
7727
  [e]
7745
- ), R = be(() => Ae(null, null, function* () {
7728
+ ), R = be(() => Te(null, null, function* () {
7746
7729
  if (!e) throw new Error("PeersCaller not initialized");
7747
7730
  return e.stopRecording();
7748
7731
  }), [e]), v = be(() => {
@@ -7778,7 +7761,7 @@ function js(n) {
7778
7761
  peersCaller: e
7779
7762
  };
7780
7763
  }
7781
- function $s(n) {
7764
+ function xs(n) {
7782
7765
  const [e, t] = Ne(
7783
7766
  null
7784
7767
  ), [o, l] = Ne(null), c = we((E) => E.participants[n]);
@@ -7799,10 +7782,10 @@ function $s(n) {
7799
7782
  participant: c
7800
7783
  };
7801
7784
  }
7802
- function Us() {
7785
+ function Ws() {
7803
7786
  const n = we();
7804
7787
  return {
7805
- conversationId: n.conversationId,
7788
+ roomId: n.roomId,
7806
7789
  participants: n.participants,
7807
7790
  localParticipant: n.localParticipant,
7808
7791
  isCalling: n.isCalling,
@@ -7816,8 +7799,8 @@ function Us() {
7816
7799
  hasError: !!n.error
7817
7800
  };
7818
7801
  }
7819
- function qs() {
7820
- const [n, e] = Ne({ videoDevices: [], audioDevices: [] }), [t, o] = Ne({ camera: null, microphone: null }), l = be(() => Ae(null, null, function* () {
7802
+ function Gs() {
7803
+ const [n, e] = Ne({ videoDevices: [], audioDevices: [] }), [t, o] = Ne({ camera: null, microphone: null }), l = be(() => Te(null, null, function* () {
7821
7804
  try {
7822
7805
  const a = yield navigator.mediaDevices.enumerateDevices();
7823
7806
  e({
@@ -7827,7 +7810,7 @@ function qs() {
7827
7810
  } catch (a) {
7828
7811
  console.error("[useMediaDevices] Failed to get devices:", a);
7829
7812
  }
7830
- }), []), c = be(() => Ae(null, null, function* () {
7813
+ }), []), c = be(() => Te(null, null, function* () {
7831
7814
  try {
7832
7815
  if ("permissions" in navigator) {
7833
7816
  const a = yield navigator.permissions.query({
@@ -7843,7 +7826,7 @@ function qs() {
7843
7826
  } catch (a) {
7844
7827
  console.error("[useMediaDevices] Failed to check permissions:", a);
7845
7828
  }
7846
- }), []), E = be(() => Ae(null, null, function* () {
7829
+ }), []), E = be(() => Te(null, null, function* () {
7847
7830
  try {
7848
7831
  return (yield navigator.mediaDevices.getUserMedia({
7849
7832
  video: !0,
@@ -7877,7 +7860,7 @@ function qs() {
7877
7860
  requestPermissions: E
7878
7861
  };
7879
7862
  }
7880
- function xs() {
7863
+ function zs() {
7881
7864
  const [n, e] = Ne({
7882
7865
  webRTC: !1,
7883
7866
  getUserMedia: !1,
@@ -7899,22 +7882,22 @@ function xs() {
7899
7882
  unsupportedFeatures: Object.entries(n).filter(([, t]) => !t).map(([t]) => t)
7900
7883
  };
7901
7884
  }
7902
- function Ws(n = "") {
7885
+ function Vs(n = "") {
7903
7886
  const e = Date.now().toString(36), t = Math.random().toString(36).substring(2, 8);
7904
7887
  return n ? `${n}_${e}_${t}` : `${e}_${t}`;
7905
7888
  }
7906
- const zs = () => `peer_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, Gs = (n) => !n || typeof n != "string" ? !1 : /^peer_\d+_[a-z0-9]{1,9}$/.test(n), Vs = (n) => {
7889
+ const Hs = () => `peer_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, Js = (n) => !n || typeof n != "string" ? !1 : /^peer_\d+_[a-z0-9]{1,9}$/.test(n), Ys = (n) => {
7907
7890
  var e, t;
7908
7891
  return {
7909
7892
  video: (e = n.video) != null ? e : !0,
7910
7893
  audio: (t = n.audio) != null ? t : !0
7911
7894
  };
7912
7895
  };
7913
- function Hs(n, e, t) {
7896
+ function Ks(n, e, t) {
7914
7897
  const o = `[${n}] ${e}`, l = new Error(o);
7915
7898
  return t && (l.details = t), l;
7916
7899
  }
7917
- function Js() {
7900
+ function Xs() {
7918
7901
  const n = {
7919
7902
  getUserMedia: !!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia),
7920
7903
  getDisplayMedia: !!(navigator.mediaDevices && navigator.mediaDevices.getDisplayMedia),
@@ -7928,14 +7911,14 @@ function Js() {
7928
7911
  missingFeatures: e
7929
7912
  };
7930
7913
  }
7931
- const Ys = () => {
7914
+ const Zs = () => {
7932
7915
  try {
7933
7916
  return typeof window != "undefined" && typeof window.RTCPeerConnection != "undefined" && typeof navigator != "undefined" && typeof navigator.mediaDevices != "undefined" && typeof navigator.mediaDevices.getUserMedia != "undefined";
7934
7917
  } catch (n) {
7935
7918
  return !1;
7936
7919
  }
7937
7920
  };
7938
- function Ks() {
7921
+ function Qs() {
7939
7922
  return [
7940
7923
  { urls: "stun:stun.l.google.com:19302" },
7941
7924
  { urls: "stun:stun1.l.google.com:19302" },
@@ -7945,39 +7928,39 @@ function Ks() {
7945
7928
  }
7946
7929
  export {
7947
7930
  No as CallMediaStream,
7948
- Gi as CallParticipant,
7931
+ Vi as CallParticipant,
7949
7932
  Na as CallPeerConnection,
7950
7933
  ps as CallRecorder,
7951
7934
  Bo as CallSocket,
7952
- bs as PeersCaller,
7953
- Fs as canAcceptMoreParticipants,
7954
- Js as checkWebRTCSupport,
7955
- Hs as formatError,
7956
- Vs as formatMediaConstraints,
7957
- Ws as generateId,
7958
- zs as generatePeerId,
7959
- Ks as getDefaultIceServers,
7935
+ Ss as PeersCaller,
7936
+ Us as canAcceptMoreParticipants,
7937
+ Xs as checkWebRTCSupport,
7938
+ Ks as formatError,
7939
+ Ys as formatMediaConstraints,
7940
+ Vs as generateId,
7941
+ Hs as generatePeerId,
7942
+ Qs as getDefaultIceServers,
7960
7943
  Ja as getParticipant,
7961
- Ds as getParticipantList,
7962
- Ns as isParticipantConnected,
7963
- Gs as isValidPeerId,
7964
- Ys as isWebRTCSupported,
7965
- As as selectCallStatus,
7966
- Bs as selectCallStatusError,
7967
- Os as selectCallStatusInfo,
7968
- ks as selectCallStatusLoading,
7969
- Ms as selectCanJoinCall,
7970
- Is as selectError,
7971
- Ls as selectIsCallActive,
7972
- Ts as selectIsConnected,
7973
- Ps as selectLocalParticipant,
7944
+ $s as getParticipantList,
7945
+ js as isParticipantConnected,
7946
+ Js as isValidPeerId,
7947
+ Zs as isWebRTCSupported,
7948
+ Os as selectCallStatus,
7949
+ Ns as selectCallStatusError,
7950
+ Ms as selectCallStatusInfo,
7951
+ Ls as selectCallStatusLoading,
7952
+ Ds as selectCanJoinCall,
7953
+ Bs as selectError,
7954
+ Fs as selectIsCallActive,
7955
+ ks as selectIsConnected,
7956
+ Is as selectLocalParticipant,
7974
7957
  Ha as selectParticipantCount,
7975
- Rs as selectParticipants,
7976
- xs as useBrowserSupport,
7977
- Us as useCallState,
7958
+ Ts as selectParticipants,
7959
+ zs as useBrowserSupport,
7960
+ Ws as useCallState,
7978
7961
  we as useCallStore,
7979
- qs as useMediaDevices,
7980
- $s as useParticipantVideo,
7981
- js as useVideoCall
7962
+ Gs as useMediaDevices,
7963
+ xs as useParticipantVideo,
7964
+ qs as useVideoCall
7982
7965
  };
7983
7966
  //# sourceMappingURL=peers-caller.es.js.map