@voicenter-team/events-sdk 0.0.119 → 0.0.121

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.
@@ -2,7 +2,7 @@ var Ie = Object.defineProperty;
2
2
  var Re = (a, t, e) => t in a ? Ie(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
3
  var q = (a, t, e) => (Re(a, typeof t != "symbol" ? t + "" : t, e), e);
4
4
  import Be from "ws";
5
- import Ue, { LevelEnum as J, ActionNameEnum as Q, LogTypeEnum as Z } from "@voicenter-team/socketio-storage-logger";
5
+ import Ue, { LevelEnum as J, LogTypeEnum as Q, ActionNameEnum as Z } from "@voicenter-team/socketio-storage-logger";
6
6
  function xe(a) {
7
7
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
8
8
  }
@@ -58,8 +58,8 @@ var be = { exports: {} }, we = { exports: {} };
58
58
  // Convert a byte array to a base-64 string
59
59
  bytesToBase64: function(e) {
60
60
  for (var r = [], o = 0; o < e.length; o += 3)
61
- for (var c = e[o] << 16 | e[o + 1] << 8 | e[o + 2], u = 0; u < 4; u++)
62
- o * 8 + u * 6 <= e.length * 8 ? r.push(a.charAt(c >>> 6 * (3 - u) & 63)) : r.push("=");
61
+ for (var c = e[o] << 16 | e[o + 1] << 8 | e[o + 2], p = 0; p < 4; p++)
62
+ o * 8 + p * 6 <= e.length * 8 ? r.push(a.charAt(c >>> 6 * (3 - p) & 63)) : r.push("=");
63
63
  return r.join("");
64
64
  },
65
65
  // Convert a base-64 string to a byte array
@@ -116,34 +116,34 @@ function je(a) {
116
116
  return typeof a.readFloatLE == "function" && typeof a.slice == "function" && Ae(a.slice(0, 0));
117
117
  }
118
118
  (function() {
119
- var a = De, t = Te.utf8, e = Ve, r = Te.bin, o = function(c, u) {
120
- c.constructor == String ? u && u.encoding === "binary" ? c = r.stringToBytes(c) : c = t.stringToBytes(c) : e(c) ? c = Array.prototype.slice.call(c, 0) : !Array.isArray(c) && c.constructor !== Uint8Array && (c = c.toString());
121
- for (var h = a.bytesToWords(c), d = c.length * 8, i = 1732584193, p = -271733879, l = -1732584194, s = 271733878, n = 0; n < h.length; n++)
119
+ var a = De, t = Te.utf8, e = Ve, r = Te.bin, o = function(c, p) {
120
+ c.constructor == String ? p && p.encoding === "binary" ? c = r.stringToBytes(c) : c = t.stringToBytes(c) : e(c) ? c = Array.prototype.slice.call(c, 0) : !Array.isArray(c) && c.constructor !== Uint8Array && (c = c.toString());
121
+ for (var h = a.bytesToWords(c), d = c.length * 8, i = 1732584193, u = -271733879, l = -1732584194, s = 271733878, n = 0; n < h.length; n++)
122
122
  h[n] = (h[n] << 8 | h[n] >>> 24) & 16711935 | (h[n] << 24 | h[n] >>> 8) & 4278255360;
123
123
  h[d >>> 5] |= 128 << d % 32, h[(d + 64 >>> 9 << 4) + 14] = d;
124
124
  for (var f = o._ff, g = o._gg, y = o._hh, b = o._ii, n = 0; n < h.length; n += 16) {
125
- var j = i, x = p, P = l, I = s;
126
- i = f(i, p, l, s, h[n + 0], 7, -680876936), s = f(s, i, p, l, h[n + 1], 12, -389564586), l = f(l, s, i, p, h[n + 2], 17, 606105819), p = f(p, l, s, i, h[n + 3], 22, -1044525330), i = f(i, p, l, s, h[n + 4], 7, -176418897), s = f(s, i, p, l, h[n + 5], 12, 1200080426), l = f(l, s, i, p, h[n + 6], 17, -1473231341), p = f(p, l, s, i, h[n + 7], 22, -45705983), i = f(i, p, l, s, h[n + 8], 7, 1770035416), s = f(s, i, p, l, h[n + 9], 12, -1958414417), l = f(l, s, i, p, h[n + 10], 17, -42063), p = f(p, l, s, i, h[n + 11], 22, -1990404162), i = f(i, p, l, s, h[n + 12], 7, 1804603682), s = f(s, i, p, l, h[n + 13], 12, -40341101), l = f(l, s, i, p, h[n + 14], 17, -1502002290), p = f(p, l, s, i, h[n + 15], 22, 1236535329), i = g(i, p, l, s, h[n + 1], 5, -165796510), s = g(s, i, p, l, h[n + 6], 9, -1069501632), l = g(l, s, i, p, h[n + 11], 14, 643717713), p = g(p, l, s, i, h[n + 0], 20, -373897302), i = g(i, p, l, s, h[n + 5], 5, -701558691), s = g(s, i, p, l, h[n + 10], 9, 38016083), l = g(l, s, i, p, h[n + 15], 14, -660478335), p = g(p, l, s, i, h[n + 4], 20, -405537848), i = g(i, p, l, s, h[n + 9], 5, 568446438), s = g(s, i, p, l, h[n + 14], 9, -1019803690), l = g(l, s, i, p, h[n + 3], 14, -187363961), p = g(p, l, s, i, h[n + 8], 20, 1163531501), i = g(i, p, l, s, h[n + 13], 5, -1444681467), s = g(s, i, p, l, h[n + 2], 9, -51403784), l = g(l, s, i, p, h[n + 7], 14, 1735328473), p = g(p, l, s, i, h[n + 12], 20, -1926607734), i = y(i, p, l, s, h[n + 5], 4, -378558), s = y(s, i, p, l, h[n + 8], 11, -2022574463), l = y(l, s, i, p, h[n + 11], 16, 1839030562), p = y(p, l, s, i, h[n + 14], 23, -35309556), i = y(i, p, l, s, h[n + 1], 4, -1530992060), s = y(s, i, p, l, h[n + 4], 11, 1272893353), l = y(l, s, i, p, h[n + 7], 16, -155497632), p = y(p, l, s, i, h[n + 10], 23, -1094730640), i = y(i, p, l, s, h[n + 13], 4, 681279174), s = y(s, i, p, l, h[n + 0], 11, -358537222), l = y(l, s, i, p, h[n + 3], 16, -722521979), p = y(p, l, s, i, h[n + 6], 23, 76029189), i = y(i, p, l, s, h[n + 9], 4, -640364487), s = y(s, i, p, l, h[n + 12], 11, -421815835), l = y(l, s, i, p, h[n + 15], 16, 530742520), p = y(p, l, s, i, h[n + 2], 23, -995338651), i = b(i, p, l, s, h[n + 0], 6, -198630844), s = b(s, i, p, l, h[n + 7], 10, 1126891415), l = b(l, s, i, p, h[n + 14], 15, -1416354905), p = b(p, l, s, i, h[n + 5], 21, -57434055), i = b(i, p, l, s, h[n + 12], 6, 1700485571), s = b(s, i, p, l, h[n + 3], 10, -1894986606), l = b(l, s, i, p, h[n + 10], 15, -1051523), p = b(p, l, s, i, h[n + 1], 21, -2054922799), i = b(i, p, l, s, h[n + 8], 6, 1873313359), s = b(s, i, p, l, h[n + 15], 10, -30611744), l = b(l, s, i, p, h[n + 6], 15, -1560198380), p = b(p, l, s, i, h[n + 13], 21, 1309151649), i = b(i, p, l, s, h[n + 4], 6, -145523070), s = b(s, i, p, l, h[n + 11], 10, -1120210379), l = b(l, s, i, p, h[n + 2], 15, 718787259), p = b(p, l, s, i, h[n + 9], 21, -343485551), i = i + j >>> 0, p = p + x >>> 0, l = l + P >>> 0, s = s + I >>> 0;
125
+ var j = i, x = u, P = l, I = s;
126
+ i = f(i, u, l, s, h[n + 0], 7, -680876936), s = f(s, i, u, l, h[n + 1], 12, -389564586), l = f(l, s, i, u, h[n + 2], 17, 606105819), u = f(u, l, s, i, h[n + 3], 22, -1044525330), i = f(i, u, l, s, h[n + 4], 7, -176418897), s = f(s, i, u, l, h[n + 5], 12, 1200080426), l = f(l, s, i, u, h[n + 6], 17, -1473231341), u = f(u, l, s, i, h[n + 7], 22, -45705983), i = f(i, u, l, s, h[n + 8], 7, 1770035416), s = f(s, i, u, l, h[n + 9], 12, -1958414417), l = f(l, s, i, u, h[n + 10], 17, -42063), u = f(u, l, s, i, h[n + 11], 22, -1990404162), i = f(i, u, l, s, h[n + 12], 7, 1804603682), s = f(s, i, u, l, h[n + 13], 12, -40341101), l = f(l, s, i, u, h[n + 14], 17, -1502002290), u = f(u, l, s, i, h[n + 15], 22, 1236535329), i = g(i, u, l, s, h[n + 1], 5, -165796510), s = g(s, i, u, l, h[n + 6], 9, -1069501632), l = g(l, s, i, u, h[n + 11], 14, 643717713), u = g(u, l, s, i, h[n + 0], 20, -373897302), i = g(i, u, l, s, h[n + 5], 5, -701558691), s = g(s, i, u, l, h[n + 10], 9, 38016083), l = g(l, s, i, u, h[n + 15], 14, -660478335), u = g(u, l, s, i, h[n + 4], 20, -405537848), i = g(i, u, l, s, h[n + 9], 5, 568446438), s = g(s, i, u, l, h[n + 14], 9, -1019803690), l = g(l, s, i, u, h[n + 3], 14, -187363961), u = g(u, l, s, i, h[n + 8], 20, 1163531501), i = g(i, u, l, s, h[n + 13], 5, -1444681467), s = g(s, i, u, l, h[n + 2], 9, -51403784), l = g(l, s, i, u, h[n + 7], 14, 1735328473), u = g(u, l, s, i, h[n + 12], 20, -1926607734), i = y(i, u, l, s, h[n + 5], 4, -378558), s = y(s, i, u, l, h[n + 8], 11, -2022574463), l = y(l, s, i, u, h[n + 11], 16, 1839030562), u = y(u, l, s, i, h[n + 14], 23, -35309556), i = y(i, u, l, s, h[n + 1], 4, -1530992060), s = y(s, i, u, l, h[n + 4], 11, 1272893353), l = y(l, s, i, u, h[n + 7], 16, -155497632), u = y(u, l, s, i, h[n + 10], 23, -1094730640), i = y(i, u, l, s, h[n + 13], 4, 681279174), s = y(s, i, u, l, h[n + 0], 11, -358537222), l = y(l, s, i, u, h[n + 3], 16, -722521979), u = y(u, l, s, i, h[n + 6], 23, 76029189), i = y(i, u, l, s, h[n + 9], 4, -640364487), s = y(s, i, u, l, h[n + 12], 11, -421815835), l = y(l, s, i, u, h[n + 15], 16, 530742520), u = y(u, l, s, i, h[n + 2], 23, -995338651), i = b(i, u, l, s, h[n + 0], 6, -198630844), s = b(s, i, u, l, h[n + 7], 10, 1126891415), l = b(l, s, i, u, h[n + 14], 15, -1416354905), u = b(u, l, s, i, h[n + 5], 21, -57434055), i = b(i, u, l, s, h[n + 12], 6, 1700485571), s = b(s, i, u, l, h[n + 3], 10, -1894986606), l = b(l, s, i, u, h[n + 10], 15, -1051523), u = b(u, l, s, i, h[n + 1], 21, -2054922799), i = b(i, u, l, s, h[n + 8], 6, 1873313359), s = b(s, i, u, l, h[n + 15], 10, -30611744), l = b(l, s, i, u, h[n + 6], 15, -1560198380), u = b(u, l, s, i, h[n + 13], 21, 1309151649), i = b(i, u, l, s, h[n + 4], 6, -145523070), s = b(s, i, u, l, h[n + 11], 10, -1120210379), l = b(l, s, i, u, h[n + 2], 15, 718787259), u = b(u, l, s, i, h[n + 9], 21, -343485551), i = i + j >>> 0, u = u + x >>> 0, l = l + P >>> 0, s = s + I >>> 0;
127
127
  }
128
- return a.endian([i, p, l, s]);
128
+ return a.endian([i, u, l, s]);
129
129
  };
130
- o._ff = function(c, u, h, d, i, p, l) {
131
- var s = c + (u & h | ~u & d) + (i >>> 0) + l;
132
- return (s << p | s >>> 32 - p) + u;
133
- }, o._gg = function(c, u, h, d, i, p, l) {
134
- var s = c + (u & d | h & ~d) + (i >>> 0) + l;
135
- return (s << p | s >>> 32 - p) + u;
136
- }, o._hh = function(c, u, h, d, i, p, l) {
137
- var s = c + (u ^ h ^ d) + (i >>> 0) + l;
138
- return (s << p | s >>> 32 - p) + u;
139
- }, o._ii = function(c, u, h, d, i, p, l) {
140
- var s = c + (h ^ (u | ~d)) + (i >>> 0) + l;
141
- return (s << p | s >>> 32 - p) + u;
142
- }, o._blocksize = 16, o._digestsize = 16, be.exports = function(c, u) {
130
+ o._ff = function(c, p, h, d, i, u, l) {
131
+ var s = c + (p & h | ~p & d) + (i >>> 0) + l;
132
+ return (s << u | s >>> 32 - u) + p;
133
+ }, o._gg = function(c, p, h, d, i, u, l) {
134
+ var s = c + (p & d | h & ~d) + (i >>> 0) + l;
135
+ return (s << u | s >>> 32 - u) + p;
136
+ }, o._hh = function(c, p, h, d, i, u, l) {
137
+ var s = c + (p ^ h ^ d) + (i >>> 0) + l;
138
+ return (s << u | s >>> 32 - u) + p;
139
+ }, o._ii = function(c, p, h, d, i, u, l) {
140
+ var s = c + (h ^ (p | ~d)) + (i >>> 0) + l;
141
+ return (s << u | s >>> 32 - u) + p;
142
+ }, o._blocksize = 16, o._digestsize = 16, be.exports = function(c, p) {
143
143
  if (c == null)
144
144
  throw new Error("Illegal argument " + c);
145
- var h = a.wordsToBytes(o(c, u));
146
- return u && u.asBytes ? h : u && u.asString ? r.bytesToString(h) : a.bytesToHex(h);
145
+ var h = a.wordsToBytes(o(c, p));
146
+ return p && p.asBytes ? h : p && p.asString ? r.bytesToString(h) : a.bytesToHex(h);
147
147
  };
148
148
  })();
149
149
  var Fe = be.exports;
@@ -205,23 +205,23 @@ class Me {
205
205
  return e;
206
206
  }
207
207
  async userLoginFunction(t, e, r) {
208
- let o, c, u;
208
+ let o, c, p;
209
209
  return this.eventsSdkClass.options.isNewStack ? ((this.eventsSdkClass.options.loginType === H.TOKEN || this.eventsSdkClass.options.loginType === H.USER) && (o = await this.externalLogin(
210
210
  this.eventsSdkClass.options.loginUrl,
211
211
  t,
212
212
  r
213
- ), c = await this.getSettings(o.Data.AccessToken), u = {
213
+ ), c = await this.getSettings(o.Data.AccessToken), p = {
214
214
  ...o.Data,
215
215
  ...c
216
- }), this.eventsSdkClass.options.loginType === H.JWT && (c = await this.getSettings(t.token), u = {
216
+ }), this.eventsSdkClass.options.loginType === H.JWT && (c = await this.getSettings(t.token), p = {
217
217
  ...c
218
218
  })) : (o = await this.externalLogin(
219
219
  this.eventsSdkClass.options.loginUrl,
220
220
  t,
221
221
  r
222
- ), u = {
222
+ ), p = {
223
223
  ...o.Data.Socket
224
- }), await ce.updateSessionStorageKey(e, u), u;
224
+ }), await ce.updateSessionStorageKey(e, p), p;
225
225
  }
226
226
  onLoginResponse(t) {
227
227
  if (!this.eventsSdkClass.options.isNewStack && this.eventsSdkClass.options.servers && (this.eventsSdkClass.servers = [...this.eventsSdkClass.options.servers], this.eventsSdkClass.server = this.eventsSdkClass.servers.reduce(
@@ -251,12 +251,12 @@ class Me {
251
251
  this.eventsSdkClass.socketIoClass.closeAllConnections();
252
252
  let o, c;
253
253
  if (this.eventsSdkClass.options.isNewStack) {
254
- const u = await this.externalRefreshToken(
254
+ const p = await this.externalRefreshToken(
255
255
  this.eventsSdkClass.options.refreshTokenUrl,
256
256
  this.refreshToken
257
257
  );
258
- o = await this.getSettings(u.Data.AccessToken), c = {
259
- ...u.Data,
258
+ o = await this.getSettings(p.Data.AccessToken), c = {
259
+ ...p.Data,
260
260
  ...o
261
261
  };
262
262
  } else
@@ -275,15 +275,15 @@ class Me {
275
275
  async externalLogin(t, { password: e, token: r, email: o }, c) {
276
276
  if (!t)
277
277
  throw new Error("loginUrl not provided");
278
- let u;
279
- this.eventsSdkClass.options.isNewStack ? c === H.TOKEN ? u = JSON.stringify({
278
+ let p;
279
+ this.eventsSdkClass.options.isNewStack ? c === H.TOKEN ? p = JSON.stringify({
280
280
  identityType: H.TOKEN,
281
281
  token: r
282
- }) : u = JSON.stringify({
282
+ }) : p = JSON.stringify({
283
283
  identityType: H.USER,
284
284
  username: o,
285
285
  password: e
286
- }) : this.eventsSdkClass.options.loginType === H.TOKEN ? (u = JSON.stringify({ token: r }), t = `${t}/${H.TOKEN}`) : (u = JSON.stringify({
286
+ }) : this.eventsSdkClass.options.loginType === H.TOKEN ? (p = JSON.stringify({ token: r }), t = `${t}/${H.TOKEN}`) : (p = JSON.stringify({
287
287
  email: o,
288
288
  pin: e
289
289
  }), t = `${t}/${H.USER}`);
@@ -294,7 +294,7 @@ class Me {
294
294
  headers: {
295
295
  "Content-Type": "application/json"
296
296
  },
297
- body: u
297
+ body: p
298
298
  });
299
299
  if (!d.ok && d.status === 400)
300
300
  throw h = 400, new Error("Bad body request. Login type or isNewStack values not correct or not provided");
@@ -386,28 +386,28 @@ function qe() {
386
386
  return c(h, !0);
387
387
  throw new Error("Cannot find module '" + h + "'");
388
388
  }
389
- var p = e[h] = { exports: {} };
390
- t[h][0].call(p.exports, function(l) {
389
+ var u = e[h] = { exports: {} };
390
+ t[h][0].call(u.exports, function(l) {
391
391
  var s = t[h][1][l];
392
392
  return o(s || l);
393
- }, p, p.exports, a, t, e, r);
393
+ }, u, u.exports, a, t, e, r);
394
394
  }
395
395
  return e[h].exports;
396
396
  }
397
- for (var c = typeof require == "function" && require, u = 0; u < r.length; u++)
398
- o(r[u]);
397
+ for (var c = typeof require == "function" && require, p = 0; p < r.length; p++)
398
+ o(r[p]);
399
399
  return o;
400
400
  }({
401
401
  1: [function(a, t) {
402
402
  t.exports = a("./lib/");
403
403
  }, { "./lib/": 2 }],
404
404
  2: [function(a, t, e) {
405
- function r(i, p) {
406
- typeof i == "object" && (p = i, i = void 0), p = p || {};
405
+ function r(i, u) {
406
+ typeof i == "object" && (u = i, i = void 0), u = u || {};
407
407
  var l, s = o(i), n = s.source, f = s.id;
408
- return p.forceNew || p["force new connection"] || p.multiplex === !1 ? (h("ignoring socket cache for %s", n), l = u(n, p)) : (d[f] || (h("new io instance for %s", n), d[f] = u(n, p)), l = d[f]), l.socket(s.path);
408
+ return u.forceNew || u["force new connection"] || u.multiplex === !1 ? (h("ignoring socket cache for %s", n), l = p(n, u)) : (d[f] || (h("new io instance for %s", n), d[f] = p(n, u)), l = d[f]), l.socket(s.path);
409
409
  }
410
- var o = a("./url"), c = a("socket.io-parser"), u = a("./manager"), h = a("debug")("socket.io-client");
410
+ var o = a("./url"), c = a("socket.io-parser"), p = a("./manager"), h = a("debug")("socket.io-client");
411
411
  t.exports = e = r;
412
412
  var d = e.managers = {};
413
413
  e.protocol = c.protocol, e.connect = r, e.Manager = a("./manager"), e.Socket = a("./socket");
@@ -418,9 +418,9 @@ function qe() {
418
418
  min: this.reconnectionDelay(),
419
419
  max: this.reconnectionDelayMax(),
420
420
  jitter: this.randomizationFactor()
421
- }), this.timeout(n.timeout == null ? 2e4 : n.timeout), this.readyState = "closed", this.uri = s, this.connected = [], this.encoding = !1, this.packetBuffer = [], this.encoder = new u.Encoder(), this.decoder = new u.Decoder(), this.autoConnect = n.autoConnect !== !1, void (this.autoConnect && this.open())) : new e(s, n);
421
+ }), this.timeout(n.timeout == null ? 2e4 : n.timeout), this.readyState = "closed", this.uri = s, this.connected = [], this.encoding = !1, this.packetBuffer = [], this.encoder = new p.Encoder(), this.decoder = new p.Decoder(), this.autoConnect = n.autoConnect !== !1, void (this.autoConnect && this.open())) : new e(s, n);
422
422
  }
423
- var r = (a("./url"), a("engine.io-client")), o = a("./socket"), c = a("component-emitter"), u = a("socket.io-parser"), h = a("./on"), d = a("component-bind"), i = (a("object-component"), a("debug")("socket.io-client:manager")), p = a("indexof"), l = a("backo2");
423
+ var r = (a("./url"), a("engine.io-client")), o = a("./socket"), c = a("component-emitter"), p = a("socket.io-parser"), h = a("./on"), d = a("component-bind"), i = (a("object-component"), a("debug")("socket.io-client:manager")), u = a("indexof"), l = a("backo2");
424
424
  t.exports = e, e.prototype.emitAll = function() {
425
425
  this.emit.apply(this, arguments);
426
426
  for (var s in this.nsps)
@@ -486,12 +486,12 @@ function qe() {
486
486
  n = new o(this, s), this.nsps[s] = n;
487
487
  var f = this;
488
488
  n.on("connect", function() {
489
- n.id = f.engine.id, ~p(f.connected, n) || f.connected.push(n);
489
+ n.id = f.engine.id, ~u(f.connected, n) || f.connected.push(n);
490
490
  });
491
491
  }
492
492
  return n;
493
493
  }, e.prototype.destroy = function(s) {
494
- var n = p(this.connected, s);
494
+ var n = u(this.connected, s);
495
495
  ~n && this.connected.splice(n, 1), this.connected.length || this.close();
496
496
  }, e.prototype.packet = function(s) {
497
497
  i("writing packet %j", s);
@@ -565,7 +565,7 @@ function qe() {
565
565
  function r(n, f) {
566
566
  this.io = n, this.nsp = f, this.json = this, this.ids = 0, this.acks = {}, this.io.autoConnect && this.open(), this.receiveBuffer = [], this.sendBuffer = [], this.connected = !1, this.disconnected = !0;
567
567
  }
568
- var o = a("socket.io-parser"), c = a("component-emitter"), u = a("to-array"), h = a("./on"), d = a("component-bind"), i = a("debug")("socket.io-client:socket"), p = a("has-binary");
568
+ var o = a("socket.io-parser"), c = a("component-emitter"), p = a("to-array"), h = a("./on"), d = a("component-bind"), i = a("debug")("socket.io-client:socket"), u = a("has-binary");
569
569
  t.exports = r;
570
570
  var l = {
571
571
  connect: 1,
@@ -587,13 +587,13 @@ function qe() {
587
587
  }, r.prototype.open = r.prototype.connect = function() {
588
588
  return this.connected ? this : (this.subEvents(), this.io.open(), this.io.readyState == "open" && this.onopen(), this);
589
589
  }, r.prototype.send = function() {
590
- var n = u(arguments);
590
+ var n = p(arguments);
591
591
  return n.unshift("message"), this.emit.apply(this, n), this;
592
592
  }, r.prototype.emit = function(n) {
593
593
  if (l.hasOwnProperty(n))
594
594
  return s.apply(this, arguments), this;
595
- var f = u(arguments), g = o.EVENT;
596
- p(f) && (g = o.BINARY_EVENT);
595
+ var f = p(arguments), g = o.EVENT;
596
+ u(f) && (g = o.BINARY_EVENT);
597
597
  var y = { type: g, data: f };
598
598
  return typeof f[f.length - 1] == "function" && (i("emitting packet with ack id %d", this.ids), this.acks[this.ids] = f.pop(), y.id = this.ids++), this.connected ? this.packet(y) : this.sendBuffer.push(y), this;
599
599
  }, r.prototype.packet = function(n) {
@@ -634,9 +634,9 @@ function qe() {
634
634
  return function() {
635
635
  if (!g) {
636
636
  g = !0;
637
- var y = u(arguments);
637
+ var y = p(arguments);
638
638
  i("sending ack %j", y);
639
- var b = p(y) ? o.BINARY_ACK : o.ACK;
639
+ var b = u(y) ? o.BINARY_ACK : o.ACK;
640
640
  f.packet({ type: b, id: n, data: y });
641
641
  }
642
642
  };
@@ -676,9 +676,9 @@ function qe() {
676
676
  }],
677
677
  6: [function(a, t) {
678
678
  (function(e) {
679
- function r(u, i) {
680
- var d = u, i = i || e.location;
681
- return u == null && (u = i.protocol + "//" + i.host), typeof u == "string" && (u.charAt(0) == "/" && (u = u.charAt(1) == "/" ? i.protocol + u : i.hostname + u), /^(https?|wss?):\/\//.test(u) || (c("protocol-less url %s", u), u = typeof i < "u" ? i.protocol + "//" + u : "https://" + u), c("parse %s", u), d = o(u)), d.port || (/^(http|ws)$/.test(d.protocol) ? d.port = "80" : /^(http|ws)s$/.test(d.protocol) && (d.port = "443")), d.path = d.path || "/", d.id = d.protocol + "://" + d.host + ":" + d.port, d.href = d.protocol + "://" + d.host + (i && i.port == d.port ? "" : ":" + d.port), d;
679
+ function r(p, i) {
680
+ var d = p, i = i || e.location;
681
+ return p == null && (p = i.protocol + "//" + i.host), typeof p == "string" && (p.charAt(0) == "/" && (p = p.charAt(1) == "/" ? i.protocol + p : i.hostname + p), /^(https?|wss?):\/\//.test(p) || (c("protocol-less url %s", p), p = typeof i < "u" ? i.protocol + "//" + p : "https://" + p), c("parse %s", p), d = o(p)), d.port || (/^(http|ws)$/.test(d.protocol) ? d.port = "80" : /^(http|ws)s$/.test(d.protocol) && (d.port = "443")), d.path = d.path || "/", d.id = d.protocol + "://" + d.host + ":" + d.port, d.href = d.protocol + "://" + d.host + (i && i.port == d.port ? "" : ":" + d.port), d;
682
682
  }
683
683
  var o = a("parseuri"), c = a("debug")("socket.io-client:url");
684
684
  t.exports = r;
@@ -728,32 +728,32 @@ function qe() {
728
728
  t.exports = e, e.prototype.on = e.prototype.addEventListener = function(o, c) {
729
729
  return this._callbacks = this._callbacks || {}, (this._callbacks[o] = this._callbacks[o] || []).push(c), this;
730
730
  }, e.prototype.once = function(o, c) {
731
- function u() {
732
- h.off(o, u), c.apply(this, arguments);
731
+ function p() {
732
+ h.off(o, p), c.apply(this, arguments);
733
733
  }
734
734
  var h = this;
735
- return this._callbacks = this._callbacks || {}, u.fn = c, this.on(o, u), this;
735
+ return this._callbacks = this._callbacks || {}, p.fn = c, this.on(o, p), this;
736
736
  }, e.prototype.off = e.prototype.removeListener = e.prototype.removeAllListeners = e.prototype.removeEventListener = function(o, c) {
737
737
  if (this._callbacks = this._callbacks || {}, arguments.length == 0)
738
738
  return this._callbacks = {}, this;
739
- var u = this._callbacks[o];
740
- if (!u)
739
+ var p = this._callbacks[o];
740
+ if (!p)
741
741
  return this;
742
742
  if (arguments.length == 1)
743
743
  return delete this._callbacks[o], this;
744
- for (var h, d = 0; d < u.length; d++)
745
- if (h = u[d], h === c || h.fn === c) {
746
- u.splice(d, 1);
744
+ for (var h, d = 0; d < p.length; d++)
745
+ if (h = p[d], h === c || h.fn === c) {
746
+ p.splice(d, 1);
747
747
  break;
748
748
  }
749
749
  return this;
750
750
  }, e.prototype.emit = function(o) {
751
751
  this._callbacks = this._callbacks || {};
752
- var c = [].slice.call(arguments, 1), u = this._callbacks[o];
753
- if (u) {
754
- u = u.slice(0);
755
- for (var h = 0, d = u.length; d > h; ++h)
756
- u[h].apply(this, c);
752
+ var c = [].slice.call(arguments, 1), p = this._callbacks[o];
753
+ if (p) {
754
+ p = p.slice(0);
755
+ for (var h = 0, d = p.length; d > h; ++h)
756
+ p[h].apply(this, c);
757
757
  }
758
758
  return this;
759
759
  }, e.prototype.listeners = function(o) {
@@ -766,8 +766,8 @@ function qe() {
766
766
  function e(o) {
767
767
  return e.enabled(o) ? function(c) {
768
768
  c = r(c);
769
- var u = /* @__PURE__ */ new Date(), h = u - (e[o] || u);
770
- e[o] = u, c = o + " " + c + " +" + e.humanize(h), window.console && console.log && Function.prototype.apply.call(console.log, console, arguments);
769
+ var p = /* @__PURE__ */ new Date(), h = p - (e[o] || p);
770
+ e[o] = p, c = o + " " + c + " +" + e.humanize(h), window.console && console.log && Function.prototype.apply.call(console.log, console, arguments);
771
771
  } : function() {
772
772
  };
773
773
  }
@@ -779,18 +779,18 @@ function qe() {
779
779
  localStorage.debug = o;
780
780
  } catch {
781
781
  }
782
- for (var c = (o || "").split(/[\s,]+/), u = c.length, h = 0; u > h; h++)
782
+ for (var c = (o || "").split(/[\s,]+/), p = c.length, h = 0; p > h; h++)
783
783
  o = c[h].replace("*", ".*?"), o[0] === "-" ? e.skips.push(new RegExp("^" + o.substr(1) + "$")) : e.names.push(new RegExp("^" + o + "$"));
784
784
  }, e.disable = function() {
785
785
  e.enable("");
786
786
  }, e.humanize = function(o) {
787
- var c = 1e3, u = 6e4, h = 60 * u;
788
- return o >= h ? (o / h).toFixed(1) + "h" : o >= u ? (o / u).toFixed(1) + "m" : o >= c ? (o / c | 0) + "s" : o + "ms";
787
+ var c = 1e3, p = 6e4, h = 60 * p;
788
+ return o >= h ? (o / h).toFixed(1) + "h" : o >= p ? (o / p).toFixed(1) + "m" : o >= c ? (o / c | 0) + "s" : o + "ms";
789
789
  }, e.enabled = function(o) {
790
- for (var c = 0, u = e.skips.length; u > c; c++)
790
+ for (var c = 0, p = e.skips.length; p > c; c++)
791
791
  if (e.skips[c].test(o))
792
792
  return !1;
793
- for (var c = 0, u = e.names.length; u > c; c++)
793
+ for (var c = 0, p = e.names.length; p > c; c++)
794
794
  if (e.names[c].test(o))
795
795
  return !0;
796
796
  return !1;
@@ -811,7 +811,7 @@ function qe() {
811
811
  function r(n, f) {
812
812
  if (!(this instanceof r))
813
813
  return new r(n, f);
814
- if (f = f || {}, n && typeof n == "object" && (f = n, n = null), n && (n = p(n), f.host = n.host, f.secure = n.protocol == "https" || n.protocol == "wss", f.port = n.port, n.query && (f.query = n.query)), this.secure = f.secure != null ? f.secure : e.location && location.protocol == "https:", f.host) {
814
+ if (f = f || {}, n && typeof n == "object" && (f = n, n = null), n && (n = u(n), f.host = n.host, f.secure = n.protocol == "https" || n.protocol == "wss", f.port = n.port, n.query && (f.query = n.query)), this.secure = f.secure != null ? f.secure : e.location && location.protocol == "https:", f.host) {
815
815
  var g = f.host.split(":");
816
816
  f.hostname = g.shift(), g.length ? f.port = g.pop() : f.port || (f.port = this.secure ? "443" : "80");
817
817
  }
@@ -823,8 +823,8 @@ function qe() {
823
823
  n.hasOwnProperty(g) && (f[g] = n[g]);
824
824
  return f;
825
825
  }
826
- var c = a("./transports"), u = a("component-emitter"), h = a("debug")("engine.io-client:socket"), d = a("indexof"), i = a("engine.io-parser"), p = a("parseuri"), l = a("parsejson"), s = a("parseqs");
827
- t.exports = r, r.priorWebsocketSuccess = !1, u(r.prototype), r.protocol = i.protocol, r.Socket = r, r.Transport = a("./transport"), r.transports = a("./transports"), r.parser = a("engine.io-parser"), r.prototype.createTransport = function(n) {
826
+ var c = a("./transports"), p = a("component-emitter"), h = a("debug")("engine.io-client:socket"), d = a("indexof"), i = a("engine.io-parser"), u = a("parseuri"), l = a("parsejson"), s = a("parseqs");
827
+ t.exports = r, r.priorWebsocketSuccess = !1, p(r.prototype), r.protocol = i.protocol, r.Socket = r, r.Transport = a("./transport"), r.transports = a("./transports"), r.parser = a("engine.io-parser"), r.prototype.createTransport = function(n) {
828
828
  h('creating transport "%s"', n);
829
829
  var f = o(this.query);
830
830
  f.EIO = i.protocol, f.transport = n, this.id && (f.sid = this.id);
@@ -1033,9 +1033,9 @@ function qe() {
1033
1033
  this.path = c.path, this.hostname = c.hostname, this.port = c.port, this.secure = c.secure, this.query = c.query, this.timestampParam = c.timestampParam, this.timestampRequests = c.timestampRequests, this.readyState = "", this.agent = c.agent || !1, this.socket = c.socket, this.enablesXDR = c.enablesXDR, this.pfx = c.pfx, this.key = c.key, this.passphrase = c.passphrase, this.cert = c.cert, this.ca = c.ca, this.ciphers = c.ciphers, this.rejectUnauthorized = c.rejectUnauthorized;
1034
1034
  }
1035
1035
  var r = a("engine.io-parser"), o = a("component-emitter");
1036
- t.exports = e, o(e.prototype), e.timestamps = 0, e.prototype.onError = function(c, u) {
1036
+ t.exports = e, o(e.prototype), e.timestamps = 0, e.prototype.onError = function(c, p) {
1037
1037
  var h = new Error(c);
1038
- return h.type = "TransportError", h.description = u, this.emit("error", h), this;
1038
+ return h.type = "TransportError", h.description = p, this.emit("error", h), this;
1039
1039
  }, e.prototype.open = function() {
1040
1040
  return (this.readyState == "closed" || this.readyState == "") && (this.readyState = "opening", this.doOpen()), this;
1041
1041
  }, e.prototype.close = function() {
@@ -1047,8 +1047,8 @@ function qe() {
1047
1047
  }, e.prototype.onOpen = function() {
1048
1048
  this.readyState = "open", this.writable = !0, this.emit("open");
1049
1049
  }, e.prototype.onData = function(c) {
1050
- var u = r.decodePacket(c, this.socket.binaryType);
1051
- this.onPacket(u);
1050
+ var p = r.decodePacket(c, this.socket.binaryType);
1051
+ this.onPacket(p);
1052
1052
  }, e.prototype.onPacket = function(c) {
1053
1053
  this.emit("packet", c);
1054
1054
  }, e.prototype.onClose = function() {
@@ -1058,18 +1058,18 @@ function qe() {
1058
1058
  15: [function(a, t, e) {
1059
1059
  (function(r) {
1060
1060
  function o(i) {
1061
- var p, l = !1, s = !1, n = i.jsonp !== !1;
1061
+ var u, l = !1, s = !1, n = i.jsonp !== !1;
1062
1062
  if (r.location) {
1063
1063
  var f = location.protocol == "https:", g = location.port;
1064
1064
  g || (g = f ? 443 : 80), l = i.hostname != location.hostname || g != i.port, s = i.secure != f;
1065
1065
  }
1066
- if (i.xdomain = l, i.xscheme = s, p = new c(i), "open" in p && !i.forceJSONP)
1067
- return new u(i);
1066
+ if (i.xdomain = l, i.xscheme = s, u = new c(i), "open" in u && !i.forceJSONP)
1067
+ return new p(i);
1068
1068
  if (!n)
1069
1069
  throw new Error("JSONP disabled");
1070
1070
  return new h(i);
1071
1071
  }
1072
- var c = a("xmlhttprequest"), u = a("./polling-xhr"), h = a("./polling-jsonp"), d = a("./websocket");
1072
+ var c = a("xmlhttprequest"), p = a("./polling-xhr"), h = a("./polling-jsonp"), d = a("./websocket");
1073
1073
  e.polling = o, e.websocket = d;
1074
1074
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
1075
1075
  }, { "./polling-jsonp": 16, "./polling-xhr": 17, "./websocket": 19, xmlhttprequest: 20 }],
@@ -1077,8 +1077,8 @@ function qe() {
1077
1077
  (function(e) {
1078
1078
  function r() {
1079
1079
  }
1080
- function o(p) {
1081
- c.call(this, p), this.query = this.query || {}, h || (e.___eio || (e.___eio = []), h = e.___eio), this.index = h.length;
1080
+ function o(u) {
1081
+ c.call(this, u), this.query = this.query || {}, h || (e.___eio || (e.___eio = []), h = e.___eio), this.index = h.length;
1082
1082
  var l = this;
1083
1083
  h.push(function(s) {
1084
1084
  l.onData(s);
@@ -1086,15 +1086,15 @@ function qe() {
1086
1086
  l.script && (l.script.onerror = r);
1087
1087
  }, !1);
1088
1088
  }
1089
- var c = a("./polling"), u = a("component-inherit");
1089
+ var c = a("./polling"), p = a("component-inherit");
1090
1090
  t.exports = o;
1091
1091
  var h, d = /\n/g, i = /\\n/g;
1092
- u(o, c), o.prototype.supportsBinary = !1, o.prototype.doClose = function() {
1092
+ p(o, c), o.prototype.supportsBinary = !1, o.prototype.doClose = function() {
1093
1093
  this.script && (this.script.parentNode.removeChild(this.script), this.script = null), this.form && (this.form.parentNode.removeChild(this.form), this.form = null, this.iframe = null), c.prototype.doClose.call(this);
1094
1094
  }, o.prototype.doPoll = function() {
1095
- var p = this, l = document.createElement("script");
1095
+ var u = this, l = document.createElement("script");
1096
1096
  this.script && (this.script.parentNode.removeChild(this.script), this.script = null), l.async = !0, l.src = this.uri(), l.onerror = function(f) {
1097
- p.onError("jsonp poll error", f);
1097
+ u.onError("jsonp poll error", f);
1098
1098
  };
1099
1099
  var s = document.getElementsByTagName("script")[0];
1100
1100
  s.parentNode.insertBefore(l, s), this.script = l;
@@ -1103,7 +1103,7 @@ function qe() {
1103
1103
  var f = document.createElement("iframe");
1104
1104
  document.body.appendChild(f), document.body.removeChild(f);
1105
1105
  }, 100);
1106
- }, o.prototype.doWrite = function(p, l) {
1106
+ }, o.prototype.doWrite = function(u, l) {
1107
1107
  function s() {
1108
1108
  n(), l();
1109
1109
  }
@@ -1127,8 +1127,8 @@ function qe() {
1127
1127
  var g, y = document.createElement("form"), b = document.createElement("textarea"), j = this.iframeId = "eio_iframe_" + this.index;
1128
1128
  y.className = "socketio", y.style.position = "absolute", y.style.top = "-1000px", y.style.left = "-1000px", y.target = j, y.method = "POST", y.setAttribute("accept-charset", "utf-8"), b.name = "d", y.appendChild(b), document.body.appendChild(y), this.form = y, this.area = b;
1129
1129
  }
1130
- this.form.action = this.uri(), n(), p = p.replace(i, `\\
1131
- `), this.area.value = p.replace(d, "\\n");
1130
+ this.form.action = this.uri(), n(), u = u.replace(i, `\\
1131
+ `), this.area.value = u.replace(d, "\\n");
1132
1132
  try {
1133
1133
  this.form.submit();
1134
1134
  } catch {
@@ -1152,12 +1152,12 @@ function qe() {
1152
1152
  function c(s) {
1153
1153
  this.method = s.method || "GET", this.uri = s.uri, this.xd = !!s.xd, this.xs = !!s.xs, this.async = s.async !== !1, this.data = s.data != null ? s.data : null, this.agent = s.agent, this.isBinary = s.isBinary, this.supportsBinary = s.supportsBinary, this.enablesXDR = s.enablesXDR, this.pfx = s.pfx, this.key = s.key, this.passphrase = s.passphrase, this.cert = s.cert, this.ca = s.ca, this.ciphers = s.ciphers, this.rejectUnauthorized = s.rejectUnauthorized, this.create();
1154
1154
  }
1155
- function u() {
1155
+ function p() {
1156
1156
  for (var s in c.requests)
1157
1157
  c.requests.hasOwnProperty(s) && c.requests[s].abort();
1158
1158
  }
1159
- var h = a("xmlhttprequest"), d = a("./polling"), i = a("component-emitter"), p = a("component-inherit"), l = a("debug")("engine.io-client:polling-xhr");
1160
- t.exports = o, t.exports.Request = c, p(o, d), o.prototype.supportsBinary = !0, o.prototype.request = function(s) {
1159
+ var h = a("xmlhttprequest"), d = a("./polling"), i = a("component-emitter"), u = a("component-inherit"), l = a("debug")("engine.io-client:polling-xhr");
1160
+ t.exports = o, t.exports.Request = c, u(o, d), o.prototype.supportsBinary = !0, o.prototype.request = function(s) {
1161
1161
  return s = s || {}, s.uri = this.uri(), s.xd = this.xd, s.xs = this.xs, s.agent = this.agent || !1, s.supportsBinary = this.supportsBinary, s.enablesXDR = this.enablesXDR, s.pfx = this.pfx, s.key = this.key, s.passphrase = this.passphrase, s.cert = this.cert, s.ca = this.ca, s.ciphers = this.ciphers, s.rejectUnauthorized = this.rejectUnauthorized, new c(s);
1162
1162
  }, o.prototype.doWrite = function(s, n) {
1163
1163
  var f = typeof s != "string" && s !== void 0, g = this.request({ method: "POST", data: s, isBinary: f }), y = this;
@@ -1229,63 +1229,63 @@ function qe() {
1229
1229
  return typeof e.XDomainRequest < "u" && !this.xs && this.enablesXDR;
1230
1230
  }, c.prototype.abort = function() {
1231
1231
  this.cleanup();
1232
- }, e.document && (c.requestsCount = 0, c.requests = {}, e.attachEvent ? e.attachEvent("onunload", u) : e.addEventListener && e.addEventListener("beforeunload", u, !1));
1232
+ }, e.document && (c.requestsCount = 0, c.requests = {}, e.attachEvent ? e.attachEvent("onunload", p) : e.addEventListener && e.addEventListener("beforeunload", p, !1));
1233
1233
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
1234
1234
  }, { "./polling": 18, "component-emitter": 9, "component-inherit": 21, debug: 22, xmlhttprequest: 20 }],
1235
1235
  18: [function(a, t) {
1236
1236
  function e(i) {
1237
- var p = i && i.forceBase64;
1238
- (!d || p) && (this.supportsBinary = !1), r.call(this, i);
1237
+ var u = i && i.forceBase64;
1238
+ (!d || u) && (this.supportsBinary = !1), r.call(this, i);
1239
1239
  }
1240
- var r = a("../transport"), o = a("parseqs"), c = a("engine.io-parser"), u = a("component-inherit"), h = a("debug")("engine.io-client:polling");
1240
+ var r = a("../transport"), o = a("parseqs"), c = a("engine.io-parser"), p = a("component-inherit"), h = a("debug")("engine.io-client:polling");
1241
1241
  t.exports = e;
1242
1242
  var d = function() {
1243
- var i = a("xmlhttprequest"), p = new i({ xdomain: !1 });
1244
- return p.responseType != null;
1243
+ var i = a("xmlhttprequest"), u = new i({ xdomain: !1 });
1244
+ return u.responseType != null;
1245
1245
  }();
1246
- u(e, r), e.prototype.name = "polling", e.prototype.doOpen = function() {
1246
+ p(e, r), e.prototype.name = "polling", e.prototype.doOpen = function() {
1247
1247
  this.poll();
1248
1248
  }, e.prototype.pause = function(i) {
1249
- function p() {
1249
+ function u() {
1250
1250
  h("paused"), l.readyState = "paused", i();
1251
1251
  }
1252
1252
  var l = this;
1253
1253
  if (this.readyState = "pausing", this.polling || !this.writable) {
1254
1254
  var s = 0;
1255
1255
  this.polling && (h("we are currently polling - waiting to pause"), s++, this.once("pollComplete", function() {
1256
- h("pre-pause polling complete"), --s || p();
1256
+ h("pre-pause polling complete"), --s || u();
1257
1257
  })), this.writable || (h("we are currently writing - waiting to pause"), s++, this.once("drain", function() {
1258
- h("pre-pause writing complete"), --s || p();
1258
+ h("pre-pause writing complete"), --s || u();
1259
1259
  }));
1260
1260
  } else
1261
- p();
1261
+ u();
1262
1262
  }, e.prototype.poll = function() {
1263
1263
  h("polling"), this.polling = !0, this.doPoll(), this.emit("poll");
1264
1264
  }, e.prototype.onData = function(i) {
1265
- var p = this;
1265
+ var u = this;
1266
1266
  h("polling got data %s", i);
1267
1267
  var l = function(s) {
1268
- return p.readyState == "opening" && p.onOpen(), s.type == "close" ? (p.onClose(), !1) : void p.onPacket(s);
1268
+ return u.readyState == "opening" && u.onOpen(), s.type == "close" ? (u.onClose(), !1) : void u.onPacket(s);
1269
1269
  };
1270
1270
  c.decodePayload(i, this.socket.binaryType, l), this.readyState != "closed" && (this.polling = !1, this.emit("pollComplete"), this.readyState == "open" ? this.poll() : h('ignoring poll - transport state "%s"', this.readyState));
1271
1271
  }, e.prototype.doClose = function() {
1272
1272
  function i() {
1273
- h("writing close packet"), p.write([{ type: "close" }]);
1273
+ h("writing close packet"), u.write([{ type: "close" }]);
1274
1274
  }
1275
- var p = this;
1275
+ var u = this;
1276
1276
  this.readyState == "open" ? (h("transport open - closing"), i()) : (h("transport not open - deferring close"), this.once("open", i));
1277
1277
  }, e.prototype.write = function(i) {
1278
1278
  var l = this;
1279
1279
  this.writable = !1;
1280
- var p = function() {
1280
+ var u = function() {
1281
1281
  l.writable = !0, l.emit("drain");
1282
1282
  }, l = this;
1283
1283
  c.encodePayload(i, this.supportsBinary, function(s) {
1284
- l.doWrite(s, p);
1284
+ l.doWrite(s, u);
1285
1285
  });
1286
1286
  }, e.prototype.uri = function() {
1287
- var i = this.query || {}, p = this.secure ? "https" : "http", l = "";
1288
- return this.timestampRequests !== !1 && (i[this.timestampParam] = +/* @__PURE__ */ new Date() + "-" + r.timestamps++), this.supportsBinary || i.sid || (i.b64 = 1), i = o.encode(i), this.port && (p == "https" && this.port != 443 || p == "http" && this.port != 80) && (l = ":" + this.port), i.length && (i = "?" + i), p + "://" + this.hostname + l + this.path + i;
1287
+ var i = this.query || {}, u = this.secure ? "https" : "http", l = "";
1288
+ return this.timestampRequests !== !1 && (i[this.timestampParam] = +/* @__PURE__ */ new Date() + "-" + r.timestamps++), this.supportsBinary || i.sid || (i.b64 = 1), i = o.encode(i), this.port && (u == "https" && this.port != 443 || u == "http" && this.port != 80) && (l = ":" + this.port), i.length && (i = "?" + i), u + "://" + this.hostname + l + this.path + i;
1289
1289
  };
1290
1290
  }, {
1291
1291
  "../transport": 14,
@@ -1297,14 +1297,14 @@ function qe() {
1297
1297
  }],
1298
1298
  19: [function(a, t) {
1299
1299
  function e(i) {
1300
- var p = i && i.forceBase64;
1301
- p && (this.supportsBinary = !1), r.call(this, i);
1300
+ var u = i && i.forceBase64;
1301
+ u && (this.supportsBinary = !1), r.call(this, i);
1302
1302
  }
1303
- var r = a("../transport"), o = a("engine.io-parser"), c = a("parseqs"), u = a("component-inherit"), h = a("debug")("engine.io-client:websocket"), d = a("ws");
1304
- t.exports = e, u(e, r), e.prototype.name = "websocket", e.prototype.supportsBinary = !0, e.prototype.doOpen = function() {
1303
+ var r = a("../transport"), o = a("engine.io-parser"), c = a("parseqs"), p = a("component-inherit"), h = a("debug")("engine.io-client:websocket"), d = a("ws");
1304
+ t.exports = e, p(e, r), e.prototype.name = "websocket", e.prototype.supportsBinary = !0, e.prototype.doOpen = function() {
1305
1305
  if (this.check()) {
1306
- var i = this.uri(), p = void 0, l = { agent: this.agent };
1307
- l.pfx = this.pfx, l.key = this.key, l.passphrase = this.passphrase, l.cert = this.cert, l.ca = this.ca, l.ciphers = this.ciphers, l.rejectUnauthorized = this.rejectUnauthorized, this.ws = new d(i, p, l), this.ws.binaryType === void 0 && (this.supportsBinary = !1), this.ws.binaryType = "arraybuffer", this.addEventListeners();
1306
+ var i = this.uri(), u = void 0, l = { agent: this.agent };
1307
+ l.pfx = this.pfx, l.key = this.key, l.passphrase = this.passphrase, l.cert = this.cert, l.ca = this.ca, l.ciphers = this.ciphers, l.rejectUnauthorized = this.rejectUnauthorized, this.ws = new d(i, u, l), this.ws.binaryType === void 0 && (this.supportsBinary = !1), this.ws.binaryType = "arraybuffer", this.addEventListeners();
1308
1308
  }
1309
1309
  }, e.prototype.addEventListeners = function() {
1310
1310
  var i = this;
@@ -1312,18 +1312,18 @@ function qe() {
1312
1312
  i.onOpen();
1313
1313
  }, this.ws.onclose = function() {
1314
1314
  i.onClose();
1315
- }, this.ws.onmessage = function(p) {
1316
- i.onData(p.data);
1317
- }, this.ws.onerror = function(p) {
1318
- i.onError("websocket error", p);
1315
+ }, this.ws.onmessage = function(u) {
1316
+ i.onData(u.data);
1317
+ }, this.ws.onerror = function(u) {
1318
+ i.onError("websocket error", u);
1319
1319
  };
1320
1320
  }, typeof navigator < "u" && /iPad|iPhone|iPod/i.test(navigator.userAgent) && (e.prototype.onData = function(i) {
1321
- var p = this;
1321
+ var u = this;
1322
1322
  setTimeout(function() {
1323
- r.prototype.onData.call(p, i);
1323
+ r.prototype.onData.call(u, i);
1324
1324
  }, 0);
1325
1325
  }), e.prototype.write = function(i) {
1326
- function p() {
1326
+ function u() {
1327
1327
  l.writable = !0, l.emit("drain");
1328
1328
  }
1329
1329
  var l = this;
@@ -1336,14 +1336,14 @@ function qe() {
1336
1336
  h("websocket closed before onclose event");
1337
1337
  }
1338
1338
  });
1339
- setTimeout(p, 0);
1339
+ setTimeout(u, 0);
1340
1340
  }, e.prototype.onClose = function() {
1341
1341
  r.prototype.onClose.call(this);
1342
1342
  }, e.prototype.doClose = function() {
1343
1343
  typeof this.ws < "u" && this.ws.close();
1344
1344
  }, e.prototype.uri = function() {
1345
- var i = this.query || {}, p = this.secure ? "wss" : "ws", l = "";
1346
- return this.port && (p == "wss" && this.port != 443 || p == "ws" && this.port != 80) && (l = ":" + this.port), this.timestampRequests && (i[this.timestampParam] = +/* @__PURE__ */ new Date()), this.supportsBinary || (i.b64 = 1), i = c.encode(i), i.length && (i = "?" + i), p + "://" + this.hostname + l + this.path + i;
1345
+ var i = this.query || {}, u = this.secure ? "wss" : "ws", l = "";
1346
+ return this.port && (u == "wss" && this.port != 443 || u == "ws" && this.port != 80) && (l = ":" + this.port), this.timestampRequests && (i[this.timestampParam] = +/* @__PURE__ */ new Date()), this.supportsBinary || (i.b64 = 1), i = c.encode(i), i.length && (i = "?" + i), u + "://" + this.hostname + l + this.path + i;
1347
1347
  }, e.prototype.check = function() {
1348
1348
  return !(!d || "__initialize" in d && this.name === e.prototype.name);
1349
1349
  };
@@ -1351,14 +1351,14 @@ function qe() {
1351
1351
  20: [function(a, t) {
1352
1352
  var e = a("has-cors");
1353
1353
  t.exports = function(r) {
1354
- var o = r.xdomain, c = r.xscheme, u = r.enablesXDR;
1354
+ var o = r.xdomain, c = r.xscheme, p = r.enablesXDR;
1355
1355
  try {
1356
1356
  if (typeof XMLHttpRequest < "u" && (!o || e))
1357
1357
  return new XMLHttpRequest();
1358
1358
  } catch {
1359
1359
  }
1360
1360
  try {
1361
- if (typeof XDomainRequest < "u" && !c && u)
1361
+ if (typeof XDomainRequest < "u" && !c && p)
1362
1362
  return new XDomainRequest();
1363
1363
  } catch {
1364
1364
  }
@@ -1384,17 +1384,17 @@ function qe() {
1384
1384
  var d = arguments, i = this.useColors;
1385
1385
  if (d[0] = (i ? "%c" : "") + this.namespace + (i ? " %c" : " ") + d[0] + (i ? "%c " : " ") + "+" + e.humanize(this.diff), !i)
1386
1386
  return d;
1387
- var p = "color: " + this.color;
1388
- d = [d[0], p, "color: inherit"].concat(Array.prototype.slice.call(d, 1));
1387
+ var u = "color: " + this.color;
1388
+ d = [d[0], u, "color: inherit"].concat(Array.prototype.slice.call(d, 1));
1389
1389
  var l = 0, s = 0;
1390
1390
  return d[0].replace(/%[a-z%]/g, function(n) {
1391
1391
  n !== "%%" && (l++, n === "%c" && (s = l));
1392
- }), d.splice(s, 0, p), d;
1392
+ }), d.splice(s, 0, u), d;
1393
1393
  }
1394
1394
  function c() {
1395
1395
  return typeof console == "object" && typeof console.log == "function" && Function.prototype.apply.call(console.log, console, arguments);
1396
1396
  }
1397
- function u(d) {
1397
+ function p(d) {
1398
1398
  try {
1399
1399
  d == null ? localStorage.removeItem("debug") : localStorage.debug = d;
1400
1400
  } catch {
@@ -1408,13 +1408,13 @@ function qe() {
1408
1408
  }
1409
1409
  return d;
1410
1410
  }
1411
- e = t.exports = a("./debug"), e.log = c, e.formatArgs = o, e.save = u, e.load = h, e.useColors = r, e.colors = ["lightseagreen", "forestgreen", "goldenrod", "dodgerblue", "darkorchid", "crimson"], e.formatters.j = function(d) {
1411
+ e = t.exports = a("./debug"), e.log = c, e.formatArgs = o, e.save = p, e.load = h, e.useColors = r, e.colors = ["lightseagreen", "forestgreen", "goldenrod", "dodgerblue", "darkorchid", "crimson"], e.formatters.j = function(d) {
1412
1412
  return JSON.stringify(d);
1413
1413
  }, e.enable(h());
1414
1414
  }, { "./debug": 23 }],
1415
1415
  23: [function(a, t, e) {
1416
1416
  function r() {
1417
- return e.colors[p++ % e.colors.length];
1417
+ return e.colors[u++ % e.colors.length];
1418
1418
  }
1419
1419
  function o(l) {
1420
1420
  function s() {
@@ -1448,7 +1448,7 @@ function qe() {
1448
1448
  for (var s = (l || "").split(/[\s,]+/), n = s.length, f = 0; n > f; f++)
1449
1449
  s[f] && (l = s[f].replace(/\*/g, ".*?"), l[0] === "-" ? e.skips.push(new RegExp("^" + l.substr(1) + "$")) : e.names.push(new RegExp("^" + l + "$")));
1450
1450
  }
1451
- function u() {
1451
+ function p() {
1452
1452
  e.enable("");
1453
1453
  }
1454
1454
  function h(l) {
@@ -1464,8 +1464,8 @@ function qe() {
1464
1464
  function d(l) {
1465
1465
  return l instanceof Error ? l.stack || l.message : l;
1466
1466
  }
1467
- e = t.exports = o, e.coerce = d, e.disable = u, e.enable = c, e.enabled = h, e.humanize = a("ms"), e.names = [], e.skips = [], e.formatters = {};
1468
- var i, p = 0;
1467
+ e = t.exports = o, e.coerce = d, e.disable = p, e.enable = c, e.enabled = h, e.humanize = a("ms"), e.names = [], e.skips = [], e.formatters = {};
1468
+ var i, u = 0;
1469
1469
  }, { ms: 24 }],
1470
1470
  24: [function(a, t) {
1471
1471
  function e(l) {
@@ -1476,7 +1476,7 @@ function qe() {
1476
1476
  case "years":
1477
1477
  case "year":
1478
1478
  case "y":
1479
- return n * p;
1479
+ return n * u;
1480
1480
  case "days":
1481
1481
  case "day":
1482
1482
  case "d":
@@ -1492,22 +1492,22 @@ function qe() {
1492
1492
  case "seconds":
1493
1493
  case "second":
1494
1494
  case "s":
1495
- return n * u;
1495
+ return n * p;
1496
1496
  case "ms":
1497
1497
  return n;
1498
1498
  }
1499
1499
  }
1500
1500
  }
1501
1501
  function r(l) {
1502
- return l >= i ? Math.round(l / i) + "d" : l >= d ? Math.round(l / d) + "h" : l >= h ? Math.round(l / h) + "m" : l >= u ? Math.round(l / u) + "s" : l + "ms";
1502
+ return l >= i ? Math.round(l / i) + "d" : l >= d ? Math.round(l / d) + "h" : l >= h ? Math.round(l / h) + "m" : l >= p ? Math.round(l / p) + "s" : l + "ms";
1503
1503
  }
1504
1504
  function o(l) {
1505
- return c(l, i, "day") || c(l, d, "hour") || c(l, h, "minute") || c(l, u, "second") || l + " ms";
1505
+ return c(l, i, "day") || c(l, d, "hour") || c(l, h, "minute") || c(l, p, "second") || l + " ms";
1506
1506
  }
1507
1507
  function c(l, s, n) {
1508
1508
  return s > l ? void 0 : 1.5 * s > l ? Math.floor(l / s) + " " + n : Math.ceil(l / s) + " " + n + "s";
1509
1509
  }
1510
- var u = 1e3, h = 60 * u, d = 60 * h, i = 24 * d, p = 365.25 * i;
1510
+ var p = 1e3, h = 60 * p, d = 60 * h, i = 24 * d, u = 365.25 * i;
1511
1511
  t.exports = function(l, s) {
1512
1512
  return s = s || {}, typeof l == "string" ? e(l) : s.long ? o(l) : r(l);
1513
1513
  };
@@ -1527,7 +1527,7 @@ function qe() {
1527
1527
  O[B + 1] = m[B];
1528
1528
  return A(O.buffer);
1529
1529
  }
1530
- function u(k, w, A) {
1530
+ function p(k, w, A) {
1531
1531
  if (!w)
1532
1532
  return e.encodeBase64Packet(k, A);
1533
1533
  var v = new FileReader();
@@ -1539,7 +1539,7 @@ function qe() {
1539
1539
  if (!w)
1540
1540
  return e.encodeBase64Packet(k, A);
1541
1541
  if (b)
1542
- return u(k, w, A);
1542
+ return p(k, w, A);
1543
1543
  var v = new Uint8Array(1);
1544
1544
  v[0] = j[k.type];
1545
1545
  var m = new I([v.buffer, k.data]);
@@ -1553,7 +1553,7 @@ function qe() {
1553
1553
  }, B = 0; B < k.length; B++)
1554
1554
  O(B, k[B], m);
1555
1555
  }
1556
- var i = a("./keys"), p = a("has-binary"), l = a("arraybuffer.slice"), s = a("base64-arraybuffer"), n = a("after"), f = a("utf8"), g = navigator.userAgent.match(/Android/i), y = /PhantomJS/i.test(navigator.userAgent), b = g || y;
1556
+ var i = a("./keys"), u = a("has-binary"), l = a("arraybuffer.slice"), s = a("base64-arraybuffer"), n = a("after"), f = a("utf8"), g = navigator.userAgent.match(/Android/i), y = /PhantomJS/i.test(navigator.userAgent), b = g || y;
1557
1557
  e.protocol = 3;
1558
1558
  var j = e.packets = { open: 0, close: 1, ping: 2, pong: 3, message: 4, upgrade: 5, noop: 6 }, x = i(j), P = { type: "error", data: "parser error" }, I = a("blob");
1559
1559
  e.encodePacket = function(k, w, A, v) {
@@ -1619,7 +1619,7 @@ function qe() {
1619
1619
  });
1620
1620
  }
1621
1621
  typeof w == "function" && (A = w, w = null);
1622
- var O = p(k);
1622
+ var O = u(k);
1623
1623
  return w && O ? I && !b ? e.encodePayloadAsBlob(k, A) : e.encodePayloadAsArrayBuffer(k, A) : k.length ? void d(k, m, function(B, R) {
1624
1624
  return A(R.join(""));
1625
1625
  }) : A("0:");
@@ -1743,14 +1743,14 @@ function qe() {
1743
1743
  };
1744
1744
  }, {}],
1745
1745
  27: [function(a, t) {
1746
- function e(o, c, u) {
1747
- function h(i, p) {
1746
+ function e(o, c, p) {
1747
+ function h(i, u) {
1748
1748
  if (h.count <= 0)
1749
1749
  throw new Error("after called too many times");
1750
- --h.count, i ? (d = !0, c(i), c = u) : h.count !== 0 || d || c(null, p);
1750
+ --h.count, i ? (d = !0, c(i), c = p) : h.count !== 0 || d || c(null, u);
1751
1751
  }
1752
1752
  var d = !1;
1753
- return u = u || r, h.count = o, o === 0 ? c() : h;
1753
+ return p = p || r, h.count = o, o === 0 ? c() : h;
1754
1754
  }
1755
1755
  function r() {
1756
1756
  }
@@ -1763,69 +1763,69 @@ function qe() {
1763
1763
  return e.slice(r, o);
1764
1764
  if (0 > r && (r += c), 0 > o && (o += c), o > c && (o = c), r >= c || r >= o || c === 0)
1765
1765
  return new ArrayBuffer(0);
1766
- for (var u = new Uint8Array(e), h = new Uint8Array(o - r), d = r, i = 0; o > d; d++, i++)
1767
- h[i] = u[d];
1766
+ for (var p = new Uint8Array(e), h = new Uint8Array(o - r), d = r, i = 0; o > d; d++, i++)
1767
+ h[i] = p[d];
1768
1768
  return h.buffer;
1769
1769
  };
1770
1770
  }, {}],
1771
1771
  29: [function(a, t, e) {
1772
1772
  (function(r) {
1773
1773
  e.encode = function(o) {
1774
- var c, u = new Uint8Array(o), h = u.length, d = "";
1774
+ var c, p = new Uint8Array(o), h = p.length, d = "";
1775
1775
  for (c = 0; h > c; c += 3)
1776
- d += r[u[c] >> 2], d += r[(3 & u[c]) << 4 | u[c + 1] >> 4], d += r[(15 & u[c + 1]) << 2 | u[c + 2] >> 6], d += r[63 & u[c + 2]];
1776
+ d += r[p[c] >> 2], d += r[(3 & p[c]) << 4 | p[c + 1] >> 4], d += r[(15 & p[c + 1]) << 2 | p[c + 2] >> 6], d += r[63 & p[c + 2]];
1777
1777
  return h % 3 === 2 ? d = d.substring(0, d.length - 1) + "=" : h % 3 === 1 && (d = d.substring(0, d.length - 2) + "=="), d;
1778
1778
  }, e.decode = function(o) {
1779
- var c, u, h, d, i, p = 0.75 * o.length, l = o.length, s = 0;
1780
- o[o.length - 1] === "=" && (p--, o[o.length - 2] === "=" && p--);
1781
- var n = new ArrayBuffer(p), f = new Uint8Array(n);
1779
+ var c, p, h, d, i, u = 0.75 * o.length, l = o.length, s = 0;
1780
+ o[o.length - 1] === "=" && (u--, o[o.length - 2] === "=" && u--);
1781
+ var n = new ArrayBuffer(u), f = new Uint8Array(n);
1782
1782
  for (c = 0; l > c; c += 4)
1783
- u = r.indexOf(o[c]), h = r.indexOf(o[c + 1]), d = r.indexOf(o[c + 2]), i = r.indexOf(o[c + 3]), f[s++] = u << 2 | h >> 4, f[s++] = (15 & h) << 4 | d >> 2, f[s++] = (3 & d) << 6 | 63 & i;
1783
+ p = r.indexOf(o[c]), h = r.indexOf(o[c + 1]), d = r.indexOf(o[c + 2]), i = r.indexOf(o[c + 3]), f[s++] = p << 2 | h >> 4, f[s++] = (15 & h) << 4 | d >> 2, f[s++] = (3 & d) << 6 | 63 & i;
1784
1784
  return n;
1785
1785
  };
1786
1786
  })("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
1787
1787
  }, {}],
1788
1788
  30: [function(a, t) {
1789
1789
  (function(e) {
1790
- function r(p) {
1791
- for (var l = 0; l < p.length; l++) {
1792
- var s = p[l];
1790
+ function r(u) {
1791
+ for (var l = 0; l < u.length; l++) {
1792
+ var s = u[l];
1793
1793
  if (s.buffer instanceof ArrayBuffer) {
1794
1794
  var n = s.buffer;
1795
1795
  if (s.byteLength !== n.byteLength) {
1796
1796
  var f = new Uint8Array(s.byteLength);
1797
1797
  f.set(new Uint8Array(n, s.byteOffset, s.byteLength)), n = f.buffer;
1798
1798
  }
1799
- p[l] = n;
1799
+ u[l] = n;
1800
1800
  }
1801
1801
  }
1802
1802
  }
1803
- function o(p, l) {
1803
+ function o(u, l) {
1804
1804
  l = l || {};
1805
- var s = new u();
1806
- r(p);
1807
- for (var n = 0; n < p.length; n++)
1808
- s.append(p[n]);
1805
+ var s = new p();
1806
+ r(u);
1807
+ for (var n = 0; n < u.length; n++)
1808
+ s.append(u[n]);
1809
1809
  return l.type ? s.getBlob(l.type) : s.getBlob();
1810
1810
  }
1811
- function c(p, l) {
1812
- return r(p), new Blob(p, l || {});
1811
+ function c(u, l) {
1812
+ return r(u), new Blob(u, l || {});
1813
1813
  }
1814
- var u = e.BlobBuilder || e.WebKitBlobBuilder || e.MSBlobBuilder || e.MozBlobBuilder, h = function() {
1814
+ var p = e.BlobBuilder || e.WebKitBlobBuilder || e.MSBlobBuilder || e.MozBlobBuilder, h = function() {
1815
1815
  try {
1816
- var p = new Blob(["hi"]);
1817
- return p.size === 2;
1816
+ var u = new Blob(["hi"]);
1817
+ return u.size === 2;
1818
1818
  } catch {
1819
1819
  return !1;
1820
1820
  }
1821
1821
  }(), d = h && function() {
1822
1822
  try {
1823
- var p = new Blob([new Uint8Array([1, 2])]);
1824
- return p.size === 2;
1823
+ var u = new Blob([new Uint8Array([1, 2])]);
1824
+ return u.size === 2;
1825
1825
  } catch {
1826
1826
  return !1;
1827
1827
  }
1828
- }(), i = u && u.prototype.append && u.prototype.getBlob;
1828
+ }(), i = p && p.prototype.append && p.prototype.getBlob;
1829
1829
  t.exports = function() {
1830
1830
  return h ? d ? e.Blob : c : i ? o : void 0;
1831
1831
  }();
@@ -1839,7 +1839,7 @@ function qe() {
1839
1839
  m = v.charCodeAt(R++), m >= 55296 && 56319 >= m && S > R ? (O = v.charCodeAt(R++), (64512 & O) == 56320 ? B.push(((1023 & m) << 10) + (1023 & O) + 65536) : (B.push(m), R--)) : B.push(m);
1840
1840
  return B;
1841
1841
  }
1842
- function u(v) {
1842
+ function p(v) {
1843
1843
  for (var m, O = v.length, B = -1, R = ""; ++B < O; )
1844
1844
  m = v[B], m > 65535 && (m -= 65536, R += P(m >>> 10 & 1023 | 55296), m = 56320 | 1023 & m), R += P(m);
1845
1845
  return R;
@@ -1857,7 +1857,7 @@ function qe() {
1857
1857
  var m = "";
1858
1858
  return 4294965248 & v ? 4294901760 & v ? !(4292870144 & v) && (m = P(v >> 18 & 7 | 240), m += d(v, 12), m += d(v, 6)) : (h(v), m = P(v >> 12 & 15 | 224), m += d(v, 6)) : m = P(v >> 6 & 31 | 192), m += P(63 & v | 128);
1859
1859
  }
1860
- function p(v) {
1860
+ function u(v) {
1861
1861
  for (var m, O = c(v), B = O.length, R = -1, S = ""; ++R < B; )
1862
1862
  m = O[R], S += i(m);
1863
1863
  return S;
@@ -1897,11 +1897,11 @@ function qe() {
1897
1897
  b = c(v), j = b.length, x = 0;
1898
1898
  for (var m, O = []; (m = s()) !== !1; )
1899
1899
  O.push(m);
1900
- return u(O);
1900
+ return p(O);
1901
1901
  }
1902
1902
  var f = typeof e == "object" && e, g = typeof t == "object" && t && t.exports == f && t, y = typeof r == "object" && r;
1903
1903
  (y.global === y || y.window === y) && (o = y);
1904
- var b, j, x, P = String.fromCharCode, I = { version: "2.0.0", encode: p, decode: n };
1904
+ var b, j, x, P = String.fromCharCode, I = { version: "2.0.0", encode: u, decode: n };
1905
1905
  if (f && !f.nodeType)
1906
1906
  if (g)
1907
1907
  g.exports = I;
@@ -1917,9 +1917,9 @@ function qe() {
1917
1917
  }, {}],
1918
1918
  32: [function(a, t) {
1919
1919
  (function(e) {
1920
- var r = /^[\],:{}\s]*$/, o = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, c = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, u = /(?:^|:|,)(?:\s*\[)+/g, h = /^\s+/, d = /\s+$/;
1920
+ var r = /^[\],:{}\s]*$/, o = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, c = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, p = /(?:^|:|,)(?:\s*\[)+/g, h = /^\s+/, d = /\s+$/;
1921
1921
  t.exports = function(i) {
1922
- return typeof i == "string" && i ? (i = i.replace(h, "").replace(d, ""), e.JSON && JSON.parse ? JSON.parse(i) : r.test(i.replace(o, "@").replace(c, "]").replace(u, "")) ? new Function("return " + i)() : void 0) : null;
1922
+ return typeof i == "string" && i ? (i = i.replace(h, "").replace(d, ""), e.JSON && JSON.parse ? JSON.parse(i) : r.test(i.replace(o, "@").replace(c, "]").replace(p, "")) ? new Function("return " + i)() : void 0) : null;
1923
1923
  };
1924
1924
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
1925
1925
  }, {}],
@@ -1930,8 +1930,8 @@ function qe() {
1930
1930
  r.hasOwnProperty(c) && (o.length && (o += "&"), o += encodeURIComponent(c) + "=" + encodeURIComponent(r[c]));
1931
1931
  return o;
1932
1932
  }, e.decode = function(r) {
1933
- for (var o = {}, c = r.split("&"), u = 0, h = c.length; h > u; u++) {
1934
- var d = c[u].split("=");
1933
+ for (var o = {}, c = r.split("&"), p = 0, h = c.length; h > p; p++) {
1934
+ var d = c[p].split("=");
1935
1935
  o[decodeURIComponent(d[0])] = decodeURIComponent(d[1]);
1936
1936
  }
1937
1937
  return o;
@@ -1940,16 +1940,16 @@ function qe() {
1940
1940
  34: [function(a, t) {
1941
1941
  var e = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, r = ["source", "protocol", "authority", "userInfo", "user", "password", "host", "port", "relative", "path", "directory", "file", "query", "anchor"];
1942
1942
  t.exports = function(o) {
1943
- var c = o, u = o.indexOf("["), h = o.indexOf("]");
1944
- u != -1 && h != -1 && (o = o.substring(0, u) + o.substring(u, h).replace(/:/g, ";") + o.substring(h, o.length));
1945
- for (var d = e.exec(o || ""), i = {}, p = 14; p--; )
1946
- i[r[p]] = d[p] || "";
1947
- return u != -1 && h != -1 && (i.source = c, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i;
1943
+ var c = o, p = o.indexOf("["), h = o.indexOf("]");
1944
+ p != -1 && h != -1 && (o = o.substring(0, p) + o.substring(p, h).replace(/:/g, ";") + o.substring(h, o.length));
1945
+ for (var d = e.exec(o || ""), i = {}, u = 14; u--; )
1946
+ i[r[u]] = d[u] || "";
1947
+ return p != -1 && h != -1 && (i.source = c, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i;
1948
1948
  };
1949
1949
  }, {}],
1950
1950
  35: [function(a, t) {
1951
- function e(c, u) {
1952
- return u ? new o(c, u) : new o(c);
1951
+ function e(c, p) {
1952
+ return p ? new o(c, p) : new o(c);
1953
1953
  }
1954
1954
  var r = /* @__PURE__ */ function() {
1955
1955
  return self;
@@ -1959,24 +1959,24 @@ function qe() {
1959
1959
  36: [function(a, t) {
1960
1960
  (function(e) {
1961
1961
  function r(c) {
1962
- function u(h) {
1962
+ function p(h) {
1963
1963
  if (!h)
1964
1964
  return !1;
1965
1965
  if (e.Buffer && e.Buffer.isBuffer(h) || e.ArrayBuffer && h instanceof ArrayBuffer || e.Blob && h instanceof Blob || e.File && h instanceof File)
1966
1966
  return !0;
1967
1967
  if (o(h)) {
1968
1968
  for (var d = 0; d < h.length; d++)
1969
- if (u(h[d]))
1969
+ if (p(h[d]))
1970
1970
  return !0;
1971
1971
  } else if (h && typeof h == "object") {
1972
1972
  h.toJSON && (h = h.toJSON());
1973
1973
  for (var i in h)
1974
- if (Object.prototype.hasOwnProperty.call(h, i) && u(h[i]))
1974
+ if (Object.prototype.hasOwnProperty.call(h, i) && p(h[i]))
1975
1975
  return !0;
1976
1976
  }
1977
1977
  return !1;
1978
1978
  }
1979
- return u(c);
1979
+ return p(c);
1980
1980
  }
1981
1981
  var o = a("isarray");
1982
1982
  t.exports = r;
@@ -2015,17 +2015,17 @@ function qe() {
2015
2015
  var r = Object.prototype.hasOwnProperty;
2016
2016
  e.keys = Object.keys || function(o) {
2017
2017
  var c = [];
2018
- for (var u in o)
2019
- r.call(o, u) && c.push(u);
2018
+ for (var p in o)
2019
+ r.call(o, p) && c.push(p);
2020
2020
  return c;
2021
2021
  }, e.values = function(o) {
2022
2022
  var c = [];
2023
- for (var u in o)
2024
- r.call(o, u) && c.push(o[u]);
2023
+ for (var p in o)
2024
+ r.call(o, p) && c.push(o[p]);
2025
2025
  return c;
2026
2026
  }, e.merge = function(o, c) {
2027
- for (var u in c)
2028
- r.call(c, u) && (o[u] = c[u]);
2027
+ for (var p in c)
2028
+ r.call(c, p) && (o[p] = c[p]);
2029
2029
  return o;
2030
2030
  }, e.length = function(o) {
2031
2031
  return e.keys(o).length;
@@ -2036,15 +2036,15 @@ function qe() {
2036
2036
  42: [function(a, t) {
2037
2037
  var e = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, r = ["source", "protocol", "authority", "userInfo", "user", "password", "host", "port", "relative", "path", "directory", "file", "query", "anchor"];
2038
2038
  t.exports = function(o) {
2039
- for (var c = e.exec(o || ""), u = {}, h = 14; h--; )
2040
- u[r[h]] = c[h] || "";
2041
- return u;
2039
+ for (var c = e.exec(o || ""), p = {}, h = 14; h--; )
2040
+ p[r[h]] = c[h] || "";
2041
+ return p;
2042
2042
  };
2043
2043
  }, {}],
2044
2044
  43: [function(a, t, e) {
2045
2045
  (function(r) {
2046
2046
  var o = a("isarray"), c = a("./is-buffer");
2047
- e.deconstructPacket = function(u) {
2047
+ e.deconstructPacket = function(p) {
2048
2048
  function h(l) {
2049
2049
  if (!l)
2050
2050
  return l;
@@ -2065,13 +2065,13 @@ function qe() {
2065
2065
  }
2066
2066
  return l;
2067
2067
  }
2068
- var d = [], i = u.data, p = u;
2069
- return p.data = h(i), p.attachments = d.length, { packet: p, buffers: d };
2070
- }, e.reconstructPacket = function(u, h) {
2068
+ var d = [], i = p.data, u = p;
2069
+ return u.data = h(i), u.attachments = d.length, { packet: u, buffers: d };
2070
+ }, e.reconstructPacket = function(p, h) {
2071
2071
  function d(i) {
2072
2072
  if (i && i._placeholder) {
2073
- var p = h[i.num];
2074
- return p;
2073
+ var u = h[i.num];
2074
+ return u;
2075
2075
  }
2076
2076
  if (o(i)) {
2077
2077
  for (var l = 0; l < i.length; l++)
@@ -2085,8 +2085,8 @@ function qe() {
2085
2085
  }
2086
2086
  return i;
2087
2087
  }
2088
- return u.data = d(u.data), u.attachments = void 0, u;
2089
- }, e.removeBlobs = function(u, h) {
2088
+ return p.data = d(p.data), p.attachments = void 0, p;
2089
+ }, e.removeBlobs = function(p, h) {
2090
2090
  function d(l, s, n) {
2091
2091
  if (!l)
2092
2092
  return l;
@@ -2094,7 +2094,7 @@ function qe() {
2094
2094
  i++;
2095
2095
  var f = new FileReader();
2096
2096
  f.onload = function() {
2097
- n ? n[s] = this.result : p = this.result, --i || h(p);
2097
+ n ? n[s] = this.result : u = this.result, --i || h(u);
2098
2098
  }, f.readAsArrayBuffer(l);
2099
2099
  } else if (o(l))
2100
2100
  for (var g = 0; g < l.length; g++)
@@ -2103,8 +2103,8 @@ function qe() {
2103
2103
  for (var y in l)
2104
2104
  d(l[y], y, l);
2105
2105
  }
2106
- var i = 0, p = u;
2107
- d(p), i || h(p);
2106
+ var i = 0, u = p;
2107
+ d(u), i || h(u);
2108
2108
  };
2109
2109
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
2110
2110
  }, { "./is-buffer": 45, isarray: 46 }],
@@ -2113,7 +2113,7 @@ function qe() {
2113
2113
  }
2114
2114
  function o(g) {
2115
2115
  var y = "", b = !1;
2116
- return y += g.type, (e.BINARY_EVENT == g.type || e.BINARY_ACK == g.type) && (y += g.attachments, y += "-"), g.nsp && g.nsp != "/" && (b = !0, y += g.nsp), g.id != null && (b && (y += ",", b = !1), y += g.id), g.data != null && (b && (y += ","), y += l.stringify(g.data)), p("encoded %j as %s", g, y), y;
2116
+ return y += g.type, (e.BINARY_EVENT == g.type || e.BINARY_ACK == g.type) && (y += g.attachments, y += "-"), g.nsp && g.nsp != "/" && (b = !0, y += g.nsp), g.id != null && (b && (y += ",", b = !1), y += g.id), g.data != null && (b && (y += ","), y += l.stringify(g.data)), u("encoded %j as %s", g, y), y;
2117
2117
  }
2118
2118
  function c(g, y) {
2119
2119
  function b(j) {
@@ -2122,7 +2122,7 @@ function qe() {
2122
2122
  }
2123
2123
  n.removeBlobs(g, b);
2124
2124
  }
2125
- function u() {
2125
+ function p() {
2126
2126
  this.reconstructor = null;
2127
2127
  }
2128
2128
  function h(g) {
@@ -2163,7 +2163,7 @@ function qe() {
2163
2163
  } catch {
2164
2164
  return i();
2165
2165
  }
2166
- return p("decoded %s as %j", g, y), y;
2166
+ return u("decoded %s as %j", g, y), y;
2167
2167
  }
2168
2168
  function d(g) {
2169
2169
  this.reconPack = g, this.buffers = [];
@@ -2171,15 +2171,15 @@ function qe() {
2171
2171
  function i() {
2172
2172
  return { type: e.ERROR, data: "parser error" };
2173
2173
  }
2174
- var p = a("debug")("socket.io-parser"), l = a("json3"), s = (a("isarray"), a("component-emitter")), n = a("./binary"), f = a("./is-buffer");
2175
- e.protocol = 4, e.types = ["CONNECT", "DISCONNECT", "EVENT", "BINARY_EVENT", "ACK", "BINARY_ACK", "ERROR"], e.CONNECT = 0, e.DISCONNECT = 1, e.EVENT = 2, e.ACK = 3, e.ERROR = 4, e.BINARY_EVENT = 5, e.BINARY_ACK = 6, e.Encoder = r, e.Decoder = u, r.prototype.encode = function(g, y) {
2176
- if (p("encoding packet %j", g), e.BINARY_EVENT == g.type || e.BINARY_ACK == g.type)
2174
+ var u = a("debug")("socket.io-parser"), l = a("json3"), s = (a("isarray"), a("component-emitter")), n = a("./binary"), f = a("./is-buffer");
2175
+ e.protocol = 4, e.types = ["CONNECT", "DISCONNECT", "EVENT", "BINARY_EVENT", "ACK", "BINARY_ACK", "ERROR"], e.CONNECT = 0, e.DISCONNECT = 1, e.EVENT = 2, e.ACK = 3, e.ERROR = 4, e.BINARY_EVENT = 5, e.BINARY_ACK = 6, e.Encoder = r, e.Decoder = p, r.prototype.encode = function(g, y) {
2176
+ if (u("encoding packet %j", g), e.BINARY_EVENT == g.type || e.BINARY_ACK == g.type)
2177
2177
  c(g, y);
2178
2178
  else {
2179
2179
  var b = o(g);
2180
2180
  y([b]);
2181
2181
  }
2182
- }, s(u.prototype), u.prototype.add = function(g) {
2182
+ }, s(p.prototype), p.prototype.add = function(g) {
2183
2183
  var y;
2184
2184
  if (typeof g == "string")
2185
2185
  y = h(g), e.BINARY_EVENT == y.type || e.BINARY_ACK == y.type ? (this.reconstructor = new d(y), this.reconstructor.reconPack.attachments === 0 && this.emit("decoded", y)) : this.emit("decoded", y);
@@ -2190,7 +2190,7 @@ function qe() {
2190
2190
  throw new Error("got binary data when not reconstructing a packet");
2191
2191
  y = this.reconstructor.takeBinaryData(g), y && (this.reconstructor = null, this.emit("decoded", y));
2192
2192
  }
2193
- }, u.prototype.destroy = function() {
2193
+ }, p.prototype.destroy = function() {
2194
2194
  this.reconstructor && this.reconstructor.finishedReconstruction();
2195
2195
  }, d.prototype.takeBinaryData = function(g) {
2196
2196
  if (this.buffers.push(g), this.buffers.length == this.reconPack.attachments) {
@@ -2226,7 +2226,7 @@ function qe() {
2226
2226
  else {
2227
2227
  var T, V = '{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';
2228
2228
  if (E == "json-stringify") {
2229
- var C = p.stringify, U = typeof C == "function" && l;
2229
+ var C = u.stringify, U = typeof C == "function" && l;
2230
2230
  if (U) {
2231
2231
  (T = function() {
2232
2232
  return 1;
@@ -2244,7 +2244,7 @@ function qe() {
2244
2244
  _ = U;
2245
2245
  }
2246
2246
  if (E == "json-parse") {
2247
- var D = p.parse;
2247
+ var D = u.parse;
2248
2248
  if (typeof D == "function")
2249
2249
  try {
2250
2250
  if (D("0") === 0 && !D(!1)) {
@@ -2275,8 +2275,8 @@ function qe() {
2275
2275
  }
2276
2276
  return o[E] = !!_;
2277
2277
  }
2278
- var c, u, h, d = {}.toString, i = typeof JSON == "object" && JSON, p = typeof e == "object" && e && !e.nodeType && e;
2279
- p && i ? (p.stringify = i.stringify, p.parse = i.parse) : p = r.JSON = i || {};
2278
+ var c, p, h, d = {}.toString, i = typeof JSON == "object" && JSON, u = typeof e == "object" && e && !e.nodeType && e;
2279
+ u && i ? (u.stringify = i.stringify, u.parse = i.parse) : u = r.JSON = i || {};
2280
2280
  var l = /* @__PURE__ */ new Date(-3509827334573292);
2281
2281
  try {
2282
2282
  l = l.getUTCFullYear() == -109252 && l.getUTCMonth() === 0 && l.getUTCDate() === 1 && l.getUTCHours() == 10 && l.getUTCMinutes() == 37 && l.getUTCSeconds() == 6 && l.getUTCMilliseconds() == 708;
@@ -2302,14 +2302,14 @@ function qe() {
2302
2302
  var T = typeof E[_];
2303
2303
  return T == "object" ? !!E[_] : !k[T];
2304
2304
  };
2305
- if (u = function(E, _) {
2305
+ if (p = function(E, _) {
2306
2306
  var T, V, C, U = 0;
2307
2307
  (T = function() {
2308
2308
  this.valueOf = 0;
2309
2309
  }).prototype.valueOf = 0, V = new T();
2310
2310
  for (C in V)
2311
2311
  c.call(V, C) && U++;
2312
- return T = V = null, U ? u = U == 2 ? function(D, N) {
2312
+ return T = V = null, U ? p = U == 2 ? function(D, N) {
2313
2313
  var F, $ = {}, W = d.call(D) == s;
2314
2314
  for (F in D)
2315
2315
  W && F == "prototype" || c.call($, F) || !($[F] = 1) || !c.call(D, F) || N(F);
@@ -2318,13 +2318,13 @@ function qe() {
2318
2318
  for (F in D)
2319
2319
  W && F == "prototype" || !c.call(D, F) || ($ = F === "constructor") || N(F);
2320
2320
  ($ || c.call(D, F = "constructor")) && N(F);
2321
- } : (V = ["valueOf", "toString", "toLocaleString", "propertyIsEnumerable", "isPrototypeOf", "hasOwnProperty", "constructor"], u = function(D, N) {
2321
+ } : (V = ["valueOf", "toString", "toLocaleString", "propertyIsEnumerable", "isPrototypeOf", "hasOwnProperty", "constructor"], p = function(D, N) {
2322
2322
  var F, $, W = d.call(D) == s, Y = !W && typeof D.constructor != "function" && w(D, "hasOwnProperty") ? D.hasOwnProperty : c;
2323
2323
  for (F in D)
2324
2324
  W && F == "prototype" || !Y.call(D, F) || N(F);
2325
2325
  for ($ = V.length; F = V[--$]; Y.call(D, F) && N(F))
2326
2326
  ;
2327
- }), u(E, _);
2327
+ }), p(E, _);
2328
2328
  }, !o("json-stringify")) {
2329
2329
  var A = { 92: "\\\\", 34: '\\"', 8: "\\b", 12: "\\f", 10: "\\n", 13: "\\r", 9: "\\t" }, v = "000000", m = function(E, _) {
2330
2330
  return (v + (_ || 0)).slice(-E);
@@ -2352,7 +2352,7 @@ function qe() {
2352
2352
  }
2353
2353
  return T + '"';
2354
2354
  }, R = function(E, _, T, V, C, U, D) {
2355
- var N, F, $, W, Y, ie, he, pe, ue, fe, ee, de, le, ae, ge, ye;
2355
+ var N, F, $, W, Y, ie, he, ue, pe, fe, ee, de, le, ae, ge, ye;
2356
2356
  try {
2357
2357
  N = _[E];
2358
2358
  } catch {
@@ -2366,10 +2366,10 @@ function qe() {
2366
2366
  ;
2367
2367
  for (W = x((Y - I($, 0)) / 30.42); I($, W + 1) <= Y; W++)
2368
2368
  ;
2369
- Y = 1 + Y - I($, W), ie = (N % 864e5 + 864e5) % 864e5, he = x(ie / 36e5) % 24, pe = x(ie / 6e4) % 60, ue = x(ie / 1e3) % 60, fe = ie % 1e3;
2369
+ Y = 1 + Y - I($, W), ie = (N % 864e5 + 864e5) % 864e5, he = x(ie / 36e5) % 24, ue = x(ie / 6e4) % 60, pe = x(ie / 1e3) % 60, fe = ie % 1e3;
2370
2370
  } else
2371
- $ = N.getUTCFullYear(), W = N.getUTCMonth(), Y = N.getUTCDate(), he = N.getUTCHours(), pe = N.getUTCMinutes(), ue = N.getUTCSeconds(), fe = N.getUTCMilliseconds();
2372
- N = (0 >= $ || $ >= 1e4 ? (0 > $ ? "-" : "+") + m(6, 0 > $ ? -$ : $) : m(4, $)) + "-" + m(2, W + 1) + "-" + m(2, Y) + "T" + m(2, he) + ":" + m(2, pe) + ":" + m(2, ue) + "." + m(3, fe) + "Z";
2371
+ $ = N.getUTCFullYear(), W = N.getUTCMonth(), Y = N.getUTCDate(), he = N.getUTCHours(), ue = N.getUTCMinutes(), pe = N.getUTCSeconds(), fe = N.getUTCMilliseconds();
2372
+ N = (0 >= $ || $ >= 1e4 ? (0 > $ ? "-" : "+") + m(6, 0 > $ ? -$ : $) : m(4, $)) + "-" + m(2, W + 1) + "-" + m(2, Y) + "T" + m(2, he) + ":" + m(2, ue) + ":" + m(2, pe) + "." + m(3, fe) + "Z";
2373
2373
  } else
2374
2374
  N = null;
2375
2375
  if (T && (N = T.call(_, E, N)), N === null)
@@ -2392,7 +2392,7 @@ function qe() {
2392
2392
  ` + U) + `
2393
2393
  ` + ge + "]" : "[" + ee.join(",") + "]" : "[]";
2394
2394
  } else
2395
- u(V || N, function(ve) {
2395
+ p(V || N, function(ve) {
2396
2396
  var Ee = R(ve, N, T, V, C, U, D);
2397
2397
  Ee !== h && ee.push(B(ve) + ":" + (C ? " " : "") + Ee);
2398
2398
  }), ye = ee.length ? C ? `{
@@ -2402,7 +2402,7 @@ function qe() {
2402
2402
  return D.pop(), ye;
2403
2403
  }
2404
2404
  };
2405
- p.stringify = function(E, _, T) {
2405
+ u.stringify = function(E, _, T) {
2406
2406
  var V, C, U, D;
2407
2407
  if (typeof _ == "function" || typeof _ == "object" && _) {
2408
2408
  if ((D = d.call(_)) == s)
@@ -2530,12 +2530,12 @@ function qe() {
2530
2530
  for (V = C.length; V--; )
2531
2531
  Ce(C, V, T);
2532
2532
  else
2533
- u(C, function(U) {
2533
+ p(C, function(U) {
2534
2534
  Ce(C, U, T);
2535
2535
  });
2536
2536
  return T.call(E, _, C);
2537
2537
  };
2538
- p.parse = function(E, _) {
2538
+ u.parse = function(E, _) {
2539
2539
  var T, V;
2540
2540
  return S = 0, K = "" + E, T = oe(z()), z() != "$" && M(), S = K = null, _ && d.call(_) == s ? ke((V = {}, V[""] = T, V), "", _) : T;
2541
2541
  };
@@ -2547,8 +2547,8 @@ function qe() {
2547
2547
  function e(r, o) {
2548
2548
  var c = [];
2549
2549
  o = o || 0;
2550
- for (var u = o || 0; u < r.length; u++)
2551
- c[u - o] = r[u];
2550
+ for (var p = o || 0; p < r.length; p++)
2551
+ c[p - o] = r[p];
2552
2552
  return c;
2553
2553
  }
2554
2554
  t.exports = e;
@@ -2583,7 +2583,7 @@ const Se = Object.entries(Xe).reduce(
2583
2583
  var We = /* @__PURE__ */ ((a) => (a.RINGING = "Ringing", a.TALKING = "Talking", a.DIALING = "Dialing", a.HOLD = "Hold", a))(We || {}), He = /* @__PURE__ */ ((a) => (a.INCOMING = "Incoming", a.OUTGOING = "Outgoing", a))(He || {}), re = /* @__PURE__ */ ((a) => (a.CONNECTED = "connected", a.DISCONNECTED = "disconnected", a.TRYING_TO_CONNECT = "tryingToConnect", a))(re || {}), Ye = /* @__PURE__ */ ((a) => (a.AUTOMATIC = "Automatic", a.IVR = "IVR", a))(Ye || {}), Qe = /* @__PURE__ */ ((a) => (a.INCOMINC = "Incoming", a.OUTGOING = "Outgoing", a.SPY = "Spy", a.CLICK2CALL = "Click2Call", a))(Qe || {}), Ze = /* @__PURE__ */ ((a) => (a.RESPONSE_FROM_API_VALID = "RESPONSE_FROM_API_VALID", a.RESPONSE_FROM_API_INVALID = "RESPONSE_FROM_API_INVALID", a))(Ze || {}), L = /* @__PURE__ */ ((a) => (a.ALL_DIALER_STATUS = "AllDialersStatus", a.ALL_EXTENSION_STATUS = "AllExtensionsStatus", a.ALL_USERS_STATUS = "AllUsersStatus", a.CONNECT = "connect", a.DISCONNECT = "disconnect", a.CONNECT_ERROR_EVENT = "connect_error", a.EXTENSION_EVENT = "ExtensionEvent", a.KEEP_ALIVE = "keepalive", a.KEEP_ALIVE_RESPONSE = "keepaliveResponse", a.LOGIN_STATUS = "loginStatus", a.LOGIN_SUCCESS = "loginSuccess", a.QUEUE_EVENT = "QueueEvent", a.ONLINE_STATUS_EVENT = "onlineStatusEvent", a.DIALER_EVENT = "DialerEvent", a.EXTENSIONS_UPDATED = "ExtensionsUpdated", a.ALL_VOICEBOTS_STATUS = "AllVoicebotsStatus", a.VOICEBOT_SUBSCRIBE_TO_CALL_FAILED = "subscribeToCallFailed", a.VOICEBOT_SUBSCRIBED_TO_CALL = "subscribedToCall", a.VOICEBOT_INITIAL_CALL_HISTORY = "initialCallHistory", a.VOICEBOT_UNSUBSCRIBED_FROM_CALL = "unsubscribedFromCall", a.VOICEBOT_EVENT = "VoicebotEvent", a))(L || {}), Oe = /* @__PURE__ */ ((a) => (a.NEWCALL = "NEWCALL", a.ANSWER = "ANSWER", a.HOLD = "HOLD", a.UNHOLD = "UNHOLD", a.HANGUP = "HANGUP", a.USER_STATUS_UPDATE = "userStatusUpdate", a))(Oe || {}), et = /* @__PURE__ */ ((a) => (a.NORMAL_HANGUP = "Normal hangup", a.USER_BUSY = "User busy", a.CALL_REJECTED = "Call Rejected", a.UNALLOCATED_NUMBER = "Unallocated (unassigned) number", a.UNKNOWN = "Unknown", a.NO_USER_RESPONDING = "No user responding", a.USER_ALERTING = "User alerting, no answer", a.ANSWERED_ELSEWHERE = "Answered elsewhere", a))(et || {}), tt = /* @__PURE__ */ ((a) => (a.ANSWER = "ANSWER", a.ABANDONED = "ABANDONED", a.EXIT = "EXIT", a.JOIN = "JOIN", a))(tt || {});
2584
2584
  class te {
2585
2585
  static mapExtensionEvent(t) {
2586
- var u, h;
2586
+ var p, h;
2587
2587
  const e = t.reason;
2588
2588
  let r, o;
2589
2589
  t.data.currentCall && (o = this.mapExtensionCall(t, t.data.currentCall));
@@ -2597,7 +2597,7 @@ class te {
2597
2597
  ...o,
2598
2598
  duration: o.callAnswered_UTC_CLIENT ? Date.now() - o.callAnswered_UTC_CLIENT : 0
2599
2599
  } : void 0,
2600
- calls: (u = t.data.calls) == null ? void 0 : u.map((d) => {
2600
+ calls: (p = t.data.calls) == null ? void 0 : p.map((d) => {
2601
2601
  const i = this.mapExtensionCall(t, d);
2602
2602
  return {
2603
2603
  ...i,
@@ -2808,16 +2808,16 @@ class te {
2808
2808
  * @returns Original object extended with new _UTC and _UTC_CLIENT properties for each configured timestamp
2809
2809
  */
2810
2810
  static configureUTCForObject(t, e, r, o) {
2811
- const c = (r - o * 60) * 1e3, u = Date.now() - c, h = {};
2811
+ const c = (r - o * 60) * 1e3, p = Date.now() - c, h = {};
2812
2812
  return e.forEach((d) => {
2813
- const i = t[d.key], p = d.key;
2813
+ const i = t[d.key], u = d.key;
2814
2814
  if (i !== 0 && typeof i == "number" && !isNaN(i)) {
2815
2815
  let l = i;
2816
2816
  d.format === "ms" && (l = Math.floor(l / 1e3));
2817
2817
  const s = (l - o * 60) * 1e3;
2818
- this.assignProperty(h, `${p}_UTC`, s), this.assignProperty(h, `${p}_UTC_CLIENT`, s + u);
2818
+ this.assignProperty(h, `${u}_UTC`, s), this.assignProperty(h, `${u}_UTC_CLIENT`, s + p);
2819
2819
  } else
2820
- this.assignProperty(h, `${p}_UTC`, 0), this.assignProperty(h, `${p}_UTC_CLIENT`, 0);
2820
+ this.assignProperty(h, `${u}_UTC`, 0), this.assignProperty(h, `${u}_UTC_CLIENT`, 0);
2821
2821
  }), {
2822
2822
  ...t,
2823
2823
  ...h
@@ -2891,7 +2891,7 @@ class nt {
2891
2891
  this.connectionState = "connecting";
2892
2892
  const t = this.eventsSdkClass.authClass.token, e = this.eventsSdkClass.options.protocol, r = this.eventsSdkClass.server;
2893
2893
  try {
2894
- const o = r ? r.Domain : this.eventsSdkClass.URL, c = r ? `${e}://${o}` : this.eventsSdkClass.URL, u = {
2894
+ const o = r ? r.Domain : this.eventsSdkClass.URL, c = r ? `${e}://${o}` : this.eventsSdkClass.URL, p = {
2895
2895
  reconnection: !1,
2896
2896
  upgrade: !1,
2897
2897
  transports: ["websocket"],
@@ -2900,7 +2900,7 @@ class nt {
2900
2900
  timeout: this.eventsSdkClass.options.timeout
2901
2901
  };
2902
2902
  if (this.ioFunction && c)
2903
- this.io = this.ioFunction(c, u), this.initSocketEvents(), this.eventsSdkClass.eventEmitterClass.emit(
2903
+ this.io = this.ioFunction(c, p), this.initSocketEvents(), this.eventsSdkClass.eventEmitterClass.emit(
2904
2904
  L.ONLINE_STATUS_EVENT,
2905
2905
  {
2906
2906
  attemptToConnect: c,
@@ -3127,98 +3127,98 @@ class st {
3127
3127
  this.log({
3128
3128
  Message: `Sdk connected to the socket server ${this.eventsSdkClass.server && this.eventsSdkClass.server.Domain ? this.eventsSdkClass.server.Domain : this.eventsSdkClass.URL}`,
3129
3129
  Body: JSON.stringify(t, this.eventsSdkClass.getCircularReplacer()),
3130
- ActionName: Q.WSCONNECT,
3130
+ ActionName: Z.WSCONNECT,
3131
3131
  isShowClient: !1,
3132
3132
  Status: "Connection established",
3133
3133
  StatusCode: 200,
3134
3134
  Level: J.INFO,
3135
- LogType: Z.INFO
3135
+ LogType: Q.INFO
3136
3136
  });
3137
3137
  }
3138
3138
  sdkDisconnect(t) {
3139
3139
  this.log({
3140
3140
  Message: `Sdk disconnected from the socket server ${this.eventsSdkClass.server && this.eventsSdkClass.server.Domain ? this.eventsSdkClass.server.Domain : this.eventsSdkClass.URL} (${t})`,
3141
- ActionName: Q.WSCONNECT,
3141
+ ActionName: Z.WSCONNECT,
3142
3142
  isShowClient: !1,
3143
3143
  Status: "Connection closed",
3144
3144
  StatusCode: 200,
3145
3145
  Level: J.INFO,
3146
- LogType: Z.INFO
3146
+ LogType: Q.INFO
3147
3147
  });
3148
3148
  }
3149
3149
  sdkAttemptToConnect(t) {
3150
3150
  this.log({
3151
3151
  Message: `${this.eventsSdkClass.options.loggerConfig.system} is trying to connect to WS server ${t}`,
3152
- ActionName: Q.WSCONNECT,
3152
+ ActionName: Z.WSCONNECT,
3153
3153
  isShowClient: !1,
3154
3154
  Status: "Switching Protocols",
3155
3155
  StatusCode: 101,
3156
3156
  Level: J.INFO,
3157
- LogType: Z.INFO
3157
+ LogType: Q.INFO
3158
3158
  });
3159
3159
  }
3160
3160
  sdkAttemptToConnectError(t) {
3161
3161
  this.log({
3162
3162
  Message: `${t}`,
3163
- ActionName: Q.WSCONNECT,
3163
+ ActionName: Z.WSCONNECT,
3164
3164
  isShowClient: !1,
3165
3165
  Status: "Connection error",
3166
3166
  StatusCode: 500,
3167
3167
  Level: J.ERROR,
3168
- LogType: Z.ERROR
3168
+ LogType: Q.ERROR
3169
3169
  });
3170
3170
  }
3171
3171
  loginError(t, e, r, o) {
3172
3172
  this.log({
3173
3173
  Message: `External login request error with the login type ${t} ${t === H.TOKEN ? r : o}`,
3174
- ActionName: Q.WSCONNECT,
3174
+ ActionName: Z.WSCONNECT,
3175
3175
  isShowClient: !1,
3176
3176
  Status: "External login error",
3177
3177
  StatusCode: e || 400,
3178
3178
  Level: J.ERROR,
3179
- LogType: Z.ERROR
3179
+ LogType: Q.ERROR
3180
3180
  });
3181
3181
  }
3182
3182
  getSettingsError(t, e) {
3183
3183
  this.log({
3184
3184
  Message: `Get settings error with token ${t}, error: ${e}`,
3185
- ActionName: Q.WSCONNECT,
3185
+ ActionName: Z.WSCONNECT,
3186
3186
  isShowClient: !1,
3187
3187
  Status: "Get settings error",
3188
3188
  StatusCode: 400,
3189
3189
  Level: J.ERROR,
3190
- LogType: Z.ERROR
3190
+ LogType: Q.ERROR
3191
3191
  });
3192
3192
  }
3193
3193
  refreshTokenError(t, e, r) {
3194
3194
  this.log({
3195
3195
  Message: `Refresh token error with old refresh token ${t}, url: ${e}, error: ${r}`,
3196
- ActionName: Q.WSCONNECT,
3196
+ ActionName: Z.WSCONNECT,
3197
3197
  isShowClient: !1,
3198
3198
  Status: "Get settings error",
3199
3199
  StatusCode: 400,
3200
3200
  Level: J.ERROR,
3201
- LogType: Z.ERROR
3201
+ LogType: Q.ERROR
3202
3202
  });
3203
3203
  }
3204
3204
  keepAliveEmit() {
3205
3205
  this.log({
3206
3206
  Message: `Keep alive event emitted with this token: ${this.eventsSdkClass.authClass.token}`,
3207
- ActionName: Q.WSCONNECT,
3207
+ ActionName: Z.WSCONNECT,
3208
3208
  isShowClient: !1,
3209
3209
  Level: J.INFO,
3210
- LogType: Z.INFO
3210
+ LogType: Q.INFO
3211
3211
  });
3212
3212
  }
3213
3213
  keepAliveResponse(t) {
3214
3214
  this.log({
3215
3215
  Message: `Keep alive response: ${JSON.stringify(t)}`,
3216
- ActionName: Q.WSCONNECT,
3216
+ ActionName: Z.WSCONNECT,
3217
3217
  isShowClient: !1,
3218
3218
  Status: "Successful",
3219
3219
  StatusCode: 200,
3220
3220
  Level: J.INFO,
3221
- LogType: Z.INFO
3221
+ LogType: Q.INFO
3222
3222
  });
3223
3223
  }
3224
3224
  eventLog(t, e) {
@@ -3235,11 +3235,11 @@ class st {
3235
3235
  ...this.getStaticData(),
3236
3236
  ...e
3237
3237
  },
3238
- ActionName: Q.WSCONNECT,
3238
+ ActionName: Z.WSCONNECT,
3239
3239
  isShowClient: !1,
3240
3240
  Status: "Successful",
3241
3241
  Level: J.DEBUG,
3242
- LogType: Z.INFO
3242
+ LogType: Q.INFO
3243
3243
  });
3244
3244
  }
3245
3245
  getStaticData() {