@voicenter-team/events-sdk 0.0.67 → 0.0.68

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,10 +1,10 @@
1
- var Er = Object.defineProperty;
2
- var Ar = (t, e, r) => e in t ? Er(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var H = (t, e, r) => (Ar(t, typeof e != "symbol" ? e + "" : e, r), r);
4
- function Tr(t) {
1
+ var xr = Object.defineProperty;
2
+ var Ir = (t, e, r) => e in t ? xr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var H = (t, e, r) => (Ir(t, typeof e != "symbol" ? e + "" : e, r), r);
4
+ function Rr(t) {
5
5
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
6
6
  }
7
- var Ve = { exports: {} }, $e = { exports: {} };
7
+ var er = { exports: {} }, rr = { exports: {} };
8
8
  (function() {
9
9
  var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", e = {
10
10
  // Bit-wise rotation left
@@ -68,18 +68,18 @@ var Ve = { exports: {} }, $e = { exports: {} };
68
68
  return n;
69
69
  }
70
70
  };
71
- $e.exports = e;
71
+ rr.exports = e;
72
72
  })();
73
- var Nr = $e.exports, he = {
73
+ var Br = rr.exports, ue = {
74
74
  // UTF-8 encoding
75
75
  utf8: {
76
76
  // Convert a string to a byte array
77
77
  stringToBytes: function(t) {
78
- return he.bin.stringToBytes(unescape(encodeURIComponent(t)));
78
+ return ue.bin.stringToBytes(unescape(encodeURIComponent(t)));
79
79
  },
80
80
  // Convert a byte array to a string
81
81
  bytesToString: function(t) {
82
- return decodeURIComponent(escape(he.bin.bytesToString(t)));
82
+ return decodeURIComponent(escape(ue.bin.bytesToString(t)));
83
83
  }
84
84
  },
85
85
  // Binary encoding
@@ -97,55 +97,55 @@ var Nr = $e.exports, he = {
97
97
  return e.join("");
98
98
  }
99
99
  }
100
- }, Be = he;
100
+ }, Ue = ue;
101
101
  /*!
102
102
  * Determine if an object is a Buffer
103
103
  *
104
104
  * @author Feross Aboukhadijeh <https://feross.org>
105
105
  * @license MIT
106
106
  */
107
- var xr = function(t) {
108
- return t != null && (Ge(t) || Or(t) || !!t._isBuffer);
107
+ var _r = function(t) {
108
+ return t != null && (nr(t) || Lr(t) || !!t._isBuffer);
109
109
  };
110
- function Ge(t) {
110
+ function nr(t) {
111
111
  return !!t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
112
112
  }
113
- function Or(t) {
114
- return typeof t.readFloatLE == "function" && typeof t.slice == "function" && Ge(t.slice(0, 0));
113
+ function Lr(t) {
114
+ return typeof t.readFloatLE == "function" && typeof t.slice == "function" && nr(t.slice(0, 0));
115
115
  }
116
116
  (function() {
117
- var t = Nr, e = Be.utf8, r = xr, n = Be.bin, o = function(i, u) {
117
+ var t = Br, e = Ue.utf8, r = _r, n = Ue.bin, o = function(i, u) {
118
118
  i.constructor == String ? u && u.encoding === "binary" ? i = n.stringToBytes(i) : i = e.stringToBytes(i) : r(i) ? i = Array.prototype.slice.call(i, 0) : !Array.isArray(i) && i.constructor !== Uint8Array && (i = i.toString());
119
- for (var h = t.bytesToWords(i), d = i.length * 8, c = 1732584193, l = -271733879, p = -1732584194, a = 271733878, s = 0; s < h.length; s++)
119
+ for (var h = t.bytesToWords(i), f = i.length * 8, c = 1732584193, l = -271733879, p = -1732584194, a = 271733878, s = 0; s < h.length; s++)
120
120
  h[s] = (h[s] << 8 | h[s] >>> 24) & 16711935 | (h[s] << 24 | h[s] >>> 8) & 4278255360;
121
- h[d >>> 5] |= 128 << d % 32, h[(d + 64 >>> 9 << 4) + 14] = d;
122
- for (var f = o._ff, y = o._gg, g = o._hh, w = o._ii, s = 0; s < h.length; s += 16) {
123
- var _ = c, B = l, b = p, S = a;
124
- c = f(c, l, p, a, h[s + 0], 7, -680876936), a = f(a, c, l, p, h[s + 1], 12, -389564586), p = f(p, a, c, l, h[s + 2], 17, 606105819), l = f(l, p, a, c, h[s + 3], 22, -1044525330), c = f(c, l, p, a, h[s + 4], 7, -176418897), a = f(a, c, l, p, h[s + 5], 12, 1200080426), p = f(p, a, c, l, h[s + 6], 17, -1473231341), l = f(l, p, a, c, h[s + 7], 22, -45705983), c = f(c, l, p, a, h[s + 8], 7, 1770035416), a = f(a, c, l, p, h[s + 9], 12, -1958414417), p = f(p, a, c, l, h[s + 10], 17, -42063), l = f(l, p, a, c, h[s + 11], 22, -1990404162), c = f(c, l, p, a, h[s + 12], 7, 1804603682), a = f(a, c, l, p, h[s + 13], 12, -40341101), p = f(p, a, c, l, h[s + 14], 17, -1502002290), l = f(l, p, a, c, h[s + 15], 22, 1236535329), c = y(c, l, p, a, h[s + 1], 5, -165796510), a = y(a, c, l, p, h[s + 6], 9, -1069501632), p = y(p, a, c, l, h[s + 11], 14, 643717713), l = y(l, p, a, c, h[s + 0], 20, -373897302), c = y(c, l, p, a, h[s + 5], 5, -701558691), a = y(a, c, l, p, h[s + 10], 9, 38016083), p = y(p, a, c, l, h[s + 15], 14, -660478335), l = y(l, p, a, c, h[s + 4], 20, -405537848), c = y(c, l, p, a, h[s + 9], 5, 568446438), a = y(a, c, l, p, h[s + 14], 9, -1019803690), p = y(p, a, c, l, h[s + 3], 14, -187363961), l = y(l, p, a, c, h[s + 8], 20, 1163531501), c = y(c, l, p, a, h[s + 13], 5, -1444681467), a = y(a, c, l, p, h[s + 2], 9, -51403784), p = y(p, a, c, l, h[s + 7], 14, 1735328473), l = y(l, p, a, c, h[s + 12], 20, -1926607734), c = g(c, l, p, a, h[s + 5], 4, -378558), a = g(a, c, l, p, h[s + 8], 11, -2022574463), p = g(p, a, c, l, h[s + 11], 16, 1839030562), l = g(l, p, a, c, h[s + 14], 23, -35309556), c = g(c, l, p, a, h[s + 1], 4, -1530992060), a = g(a, c, l, p, h[s + 4], 11, 1272893353), p = g(p, a, c, l, h[s + 7], 16, -155497632), l = g(l, p, a, c, h[s + 10], 23, -1094730640), c = g(c, l, p, a, h[s + 13], 4, 681279174), a = g(a, c, l, p, h[s + 0], 11, -358537222), p = g(p, a, c, l, h[s + 3], 16, -722521979), l = g(l, p, a, c, h[s + 6], 23, 76029189), c = g(c, l, p, a, h[s + 9], 4, -640364487), a = g(a, c, l, p, h[s + 12], 11, -421815835), p = g(p, a, c, l, h[s + 15], 16, 530742520), l = g(l, p, a, c, h[s + 2], 23, -995338651), c = w(c, l, p, a, h[s + 0], 6, -198630844), a = w(a, c, l, p, h[s + 7], 10, 1126891415), p = w(p, a, c, l, h[s + 14], 15, -1416354905), l = w(l, p, a, c, h[s + 5], 21, -57434055), c = w(c, l, p, a, h[s + 12], 6, 1700485571), a = w(a, c, l, p, h[s + 3], 10, -1894986606), p = w(p, a, c, l, h[s + 10], 15, -1051523), l = w(l, p, a, c, h[s + 1], 21, -2054922799), c = w(c, l, p, a, h[s + 8], 6, 1873313359), a = w(a, c, l, p, h[s + 15], 10, -30611744), p = w(p, a, c, l, h[s + 6], 15, -1560198380), l = w(l, p, a, c, h[s + 13], 21, 1309151649), c = w(c, l, p, a, h[s + 4], 6, -145523070), a = w(a, c, l, p, h[s + 11], 10, -1120210379), p = w(p, a, c, l, h[s + 2], 15, 718787259), l = w(l, p, a, c, h[s + 9], 21, -343485551), c = c + _ >>> 0, l = l + B >>> 0, p = p + b >>> 0, a = a + S >>> 0;
121
+ h[f >>> 5] |= 128 << f % 32, h[(f + 64 >>> 9 << 4) + 14] = f;
122
+ for (var d = o._ff, y = o._gg, g = o._hh, w = o._ii, s = 0; s < h.length; s += 16) {
123
+ var B = c, _ = l, b = p, S = a;
124
+ c = d(c, l, p, a, h[s + 0], 7, -680876936), a = d(a, c, l, p, h[s + 1], 12, -389564586), p = d(p, a, c, l, h[s + 2], 17, 606105819), l = d(l, p, a, c, h[s + 3], 22, -1044525330), c = d(c, l, p, a, h[s + 4], 7, -176418897), a = d(a, c, l, p, h[s + 5], 12, 1200080426), p = d(p, a, c, l, h[s + 6], 17, -1473231341), l = d(l, p, a, c, h[s + 7], 22, -45705983), c = d(c, l, p, a, h[s + 8], 7, 1770035416), a = d(a, c, l, p, h[s + 9], 12, -1958414417), p = d(p, a, c, l, h[s + 10], 17, -42063), l = d(l, p, a, c, h[s + 11], 22, -1990404162), c = d(c, l, p, a, h[s + 12], 7, 1804603682), a = d(a, c, l, p, h[s + 13], 12, -40341101), p = d(p, a, c, l, h[s + 14], 17, -1502002290), l = d(l, p, a, c, h[s + 15], 22, 1236535329), c = y(c, l, p, a, h[s + 1], 5, -165796510), a = y(a, c, l, p, h[s + 6], 9, -1069501632), p = y(p, a, c, l, h[s + 11], 14, 643717713), l = y(l, p, a, c, h[s + 0], 20, -373897302), c = y(c, l, p, a, h[s + 5], 5, -701558691), a = y(a, c, l, p, h[s + 10], 9, 38016083), p = y(p, a, c, l, h[s + 15], 14, -660478335), l = y(l, p, a, c, h[s + 4], 20, -405537848), c = y(c, l, p, a, h[s + 9], 5, 568446438), a = y(a, c, l, p, h[s + 14], 9, -1019803690), p = y(p, a, c, l, h[s + 3], 14, -187363961), l = y(l, p, a, c, h[s + 8], 20, 1163531501), c = y(c, l, p, a, h[s + 13], 5, -1444681467), a = y(a, c, l, p, h[s + 2], 9, -51403784), p = y(p, a, c, l, h[s + 7], 14, 1735328473), l = y(l, p, a, c, h[s + 12], 20, -1926607734), c = g(c, l, p, a, h[s + 5], 4, -378558), a = g(a, c, l, p, h[s + 8], 11, -2022574463), p = g(p, a, c, l, h[s + 11], 16, 1839030562), l = g(l, p, a, c, h[s + 14], 23, -35309556), c = g(c, l, p, a, h[s + 1], 4, -1530992060), a = g(a, c, l, p, h[s + 4], 11, 1272893353), p = g(p, a, c, l, h[s + 7], 16, -155497632), l = g(l, p, a, c, h[s + 10], 23, -1094730640), c = g(c, l, p, a, h[s + 13], 4, 681279174), a = g(a, c, l, p, h[s + 0], 11, -358537222), p = g(p, a, c, l, h[s + 3], 16, -722521979), l = g(l, p, a, c, h[s + 6], 23, 76029189), c = g(c, l, p, a, h[s + 9], 4, -640364487), a = g(a, c, l, p, h[s + 12], 11, -421815835), p = g(p, a, c, l, h[s + 15], 16, 530742520), l = g(l, p, a, c, h[s + 2], 23, -995338651), c = w(c, l, p, a, h[s + 0], 6, -198630844), a = w(a, c, l, p, h[s + 7], 10, 1126891415), p = w(p, a, c, l, h[s + 14], 15, -1416354905), l = w(l, p, a, c, h[s + 5], 21, -57434055), c = w(c, l, p, a, h[s + 12], 6, 1700485571), a = w(a, c, l, p, h[s + 3], 10, -1894986606), p = w(p, a, c, l, h[s + 10], 15, -1051523), l = w(l, p, a, c, h[s + 1], 21, -2054922799), c = w(c, l, p, a, h[s + 8], 6, 1873313359), a = w(a, c, l, p, h[s + 15], 10, -30611744), p = w(p, a, c, l, h[s + 6], 15, -1560198380), l = w(l, p, a, c, h[s + 13], 21, 1309151649), c = w(c, l, p, a, h[s + 4], 6, -145523070), a = w(a, c, l, p, h[s + 11], 10, -1120210379), p = w(p, a, c, l, h[s + 2], 15, 718787259), l = w(l, p, a, c, h[s + 9], 21, -343485551), c = c + B >>> 0, l = l + _ >>> 0, p = p + b >>> 0, a = a + S >>> 0;
125
125
  }
126
126
  return t.endian([c, l, p, a]);
127
127
  };
128
- o._ff = function(i, u, h, d, c, l, p) {
129
- var a = i + (u & h | ~u & d) + (c >>> 0) + p;
128
+ o._ff = function(i, u, h, f, c, l, p) {
129
+ var a = i + (u & h | ~u & f) + (c >>> 0) + p;
130
130
  return (a << l | a >>> 32 - l) + u;
131
- }, o._gg = function(i, u, h, d, c, l, p) {
132
- var a = i + (u & d | h & ~d) + (c >>> 0) + p;
131
+ }, o._gg = function(i, u, h, f, c, l, p) {
132
+ var a = i + (u & f | h & ~f) + (c >>> 0) + p;
133
133
  return (a << l | a >>> 32 - l) + u;
134
- }, o._hh = function(i, u, h, d, c, l, p) {
135
- var a = i + (u ^ h ^ d) + (c >>> 0) + p;
134
+ }, o._hh = function(i, u, h, f, c, l, p) {
135
+ var a = i + (u ^ h ^ f) + (c >>> 0) + p;
136
136
  return (a << l | a >>> 32 - l) + u;
137
- }, o._ii = function(i, u, h, d, c, l, p) {
138
- var a = i + (h ^ (u | ~d)) + (c >>> 0) + p;
137
+ }, o._ii = function(i, u, h, f, c, l, p) {
138
+ var a = i + (h ^ (u | ~f)) + (c >>> 0) + p;
139
139
  return (a << l | a >>> 32 - l) + u;
140
- }, o._blocksize = 16, o._digestsize = 16, Ve.exports = function(i, u) {
140
+ }, o._blocksize = 16, o._digestsize = 16, er.exports = function(i, u) {
141
141
  if (i == null)
142
142
  throw new Error("Illegal argument " + i);
143
143
  var h = t.wordsToBytes(o(i, u));
144
144
  return u && u.asBytes ? h : u && u.asString ? n.bytesToString(h) : t.bytesToHex(h);
145
145
  };
146
146
  })();
147
- var Rr = Ve.exports;
148
- const Ir = /* @__PURE__ */ Tr(Rr);
147
+ var Ur = er.exports;
148
+ const Dr = /* @__PURE__ */ Rr(Ur);
149
149
  var vt = /* @__PURE__ */ ((t) => (t.MAIN = "main", t.NEXT = "next", t))(vt || {}), it = /* @__PURE__ */ ((t) => (t.USER = "User", t.TOKEN = "Token", t))(it || {});
150
150
  class It {
151
151
  static async getSessionStorageDataByKey(e, r = !0) {
@@ -169,11 +169,11 @@ class It {
169
169
  typeof chrome < "u" && typeof chrome.storage < "u" && chrome.storage.session.clear(), typeof window < "u" && typeof window.sessionStorage < "u" && typeof window.sessionStorage.clear == "function" && window.sessionStorage.clear();
170
170
  }
171
171
  }
172
- var _r = Object.defineProperty, Br = (t, e, r) => e in t ? _r(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, V = (t, e, r) => (Br(t, typeof e != "symbol" ? e + "" : e, r), r);
173
- function Lr(t) {
172
+ var Pr = Object.defineProperty, Fr = (t, e, r) => e in t ? Pr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, V = (t, e, r) => (Fr(t, typeof e != "symbol" ? e + "" : e, r), r);
173
+ function jr(t) {
174
174
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
175
175
  }
176
- function Ur(t) {
176
+ function Mr(t) {
177
177
  if (t.__esModule)
178
178
  return t;
179
179
  var e = t.default;
@@ -194,7 +194,7 @@ function Ur(t) {
194
194
  });
195
195
  }), r;
196
196
  }
197
- var pe = { exports: {} }, Dr = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, Pr = [
197
+ var le = { exports: {} }, qr = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, zr = [
198
198
  "source",
199
199
  "protocol",
200
200
  "authority",
@@ -209,35 +209,35 @@ var pe = { exports: {} }, Dr = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/
209
209
  "file",
210
210
  "query",
211
211
  "anchor"
212
- ], Ye = function(t) {
212
+ ], or = function(t) {
213
213
  var e = t, r = t.indexOf("["), n = t.indexOf("]");
214
214
  r != -1 && n != -1 && (t = t.substring(0, r) + t.substring(r, n).replace(/:/g, ";") + t.substring(n, t.length));
215
- for (var o = Dr.exec(t || ""), i = {}, u = 14; u--; )
216
- i[Pr[u]] = o[u] || "";
217
- return r != -1 && n != -1 && (i.source = e, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames = Fr(i, i.path), i.queryKey = jr(i, i.query), i;
215
+ for (var o = qr.exec(t || ""), i = {}, u = 14; u--; )
216
+ i[zr[u]] = o[u] || "";
217
+ return r != -1 && n != -1 && (i.source = e, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames = Xr(i, i.path), i.queryKey = Wr(i, i.query), i;
218
218
  };
219
- function Fr(t, e) {
219
+ function Xr(t, e) {
220
220
  var r = /\/{2,9}/g, n = e.replace(r, "/").split("/");
221
221
  return (e.substr(0, 1) == "/" || e.length === 0) && n.splice(0, 1), e.substr(e.length - 1, 1) == "/" && n.splice(n.length - 1, 1), n;
222
222
  }
223
- function jr(t, e) {
223
+ function Wr(t, e) {
224
224
  var r = {};
225
225
  return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function(n, o, i) {
226
226
  o && (r[o] = i);
227
227
  }), r;
228
228
  }
229
- var ue = { exports: {} }, le = { exports: {} }, _t = 1e3, Bt = _t * 60, Lt = Bt * 60, Ut = Lt * 24, Mr = Ut * 365.25, qr = function(t, e) {
229
+ var fe = { exports: {} }, de = { exports: {} }, Rt = 1e3, Bt = Rt * 60, _t = Bt * 60, Lt = _t * 24, Kr = Lt * 365.25, Hr = function(t, e) {
230
230
  e = e || {};
231
231
  var r = typeof t;
232
232
  if (r === "string" && t.length > 0)
233
- return zr(t);
233
+ return Jr(t);
234
234
  if (r === "number" && isNaN(t) === !1)
235
- return e.long ? Wr(t) : Xr(t);
235
+ return e.long ? $r(t) : Vr(t);
236
236
  throw new Error(
237
237
  "val is not a non-empty string or a valid number. val=" + JSON.stringify(t)
238
238
  );
239
239
  };
240
- function zr(t) {
240
+ function Jr(t) {
241
241
  if (t = String(t), !(t.length > 100)) {
242
242
  var e = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(
243
243
  t
@@ -250,17 +250,17 @@ function zr(t) {
250
250
  case "yrs":
251
251
  case "yr":
252
252
  case "y":
253
- return r * Mr;
253
+ return r * Kr;
254
254
  case "days":
255
255
  case "day":
256
256
  case "d":
257
- return r * Ut;
257
+ return r * Lt;
258
258
  case "hours":
259
259
  case "hour":
260
260
  case "hrs":
261
261
  case "hr":
262
262
  case "h":
263
- return r * Lt;
263
+ return r * _t;
264
264
  case "minutes":
265
265
  case "minute":
266
266
  case "mins":
@@ -272,7 +272,7 @@ function zr(t) {
272
272
  case "secs":
273
273
  case "sec":
274
274
  case "s":
275
- return r * _t;
275
+ return r * Rt;
276
276
  case "milliseconds":
277
277
  case "millisecond":
278
278
  case "msecs":
@@ -285,18 +285,18 @@ function zr(t) {
285
285
  }
286
286
  }
287
287
  }
288
- function Xr(t) {
289
- return t >= Ut ? Math.round(t / Ut) + "d" : t >= Lt ? Math.round(t / Lt) + "h" : t >= Bt ? Math.round(t / Bt) + "m" : t >= _t ? Math.round(t / _t) + "s" : t + "ms";
288
+ function Vr(t) {
289
+ return t >= Lt ? Math.round(t / Lt) + "d" : t >= _t ? Math.round(t / _t) + "h" : t >= Bt ? Math.round(t / Bt) + "m" : t >= Rt ? Math.round(t / Rt) + "s" : t + "ms";
290
290
  }
291
- function Wr(t) {
292
- return Pt(t, Ut, "day") || Pt(t, Lt, "hour") || Pt(t, Bt, "minute") || Pt(t, _t, "second") || t + " ms";
291
+ function $r(t) {
292
+ return Dt(t, Lt, "day") || Dt(t, _t, "hour") || Dt(t, Bt, "minute") || Dt(t, Rt, "second") || t + " ms";
293
293
  }
294
- function Pt(t, e, r) {
294
+ function Dt(t, e, r) {
295
295
  if (!(t < e))
296
296
  return t < e * 1.5 ? Math.floor(t / e) + " " + r : Math.ceil(t / e) + " " + r + "s";
297
297
  }
298
298
  (function(t, e) {
299
- e = t.exports = n.debug = n.default = n, e.coerce = d, e.disable = u, e.enable = i, e.enabled = h, e.humanize = qr, e.instances = [], e.names = [], e.skips = [], e.formatters = {};
299
+ e = t.exports = n.debug = n.default = n, e.coerce = f, e.disable = u, e.enable = i, e.enabled = h, e.humanize = Hr, e.instances = [], e.names = [], e.skips = [], e.formatters = {};
300
300
  function r(c) {
301
301
  var l = 0, p;
302
302
  for (p in c)
@@ -307,25 +307,25 @@ function Pt(t, e, r) {
307
307
  var l;
308
308
  function p() {
309
309
  if (p.enabled) {
310
- var a = p, s = +/* @__PURE__ */ new Date(), f = s - (l || s);
311
- a.diff = f, a.prev = l, a.curr = s, l = s;
310
+ var a = p, s = +/* @__PURE__ */ new Date(), d = s - (l || s);
311
+ a.diff = d, a.prev = l, a.curr = s, l = s;
312
312
  for (var y = new Array(arguments.length), g = 0; g < y.length; g++)
313
313
  y[g] = arguments[g];
314
314
  y[0] = e.coerce(y[0]), typeof y[0] != "string" && y.unshift("%O");
315
315
  var w = 0;
316
- y[0] = y[0].replace(/%([a-zA-Z%])/g, function(B, b) {
317
- if (B === "%%")
318
- return B;
316
+ y[0] = y[0].replace(/%([a-zA-Z%])/g, function(_, b) {
317
+ if (_ === "%%")
318
+ return _;
319
319
  w++;
320
320
  var S = e.formatters[b];
321
321
  if (typeof S == "function") {
322
322
  var m = y[w];
323
- B = S.call(a, m), y.splice(w, 1), w--;
323
+ _ = S.call(a, m), y.splice(w, 1), w--;
324
324
  }
325
- return B;
325
+ return _;
326
326
  }), e.formatArgs.call(a, y);
327
- var _ = p.log || e.log || console.log.bind(console);
328
- _.apply(a, y);
327
+ var B = p.log || e.log || console.log.bind(console);
328
+ B.apply(a, y);
329
329
  }
330
330
  }
331
331
  return p.namespace = c, p.enabled = e.enabled(c), p.useColors = e.useColors(), p.color = r(c), p.destroy = o, typeof e.init == "function" && e.init(p), e.instances.push(p), p;
@@ -359,13 +359,13 @@ function Pt(t, e, r) {
359
359
  return !0;
360
360
  return !1;
361
361
  }
362
- function d(c) {
362
+ function f(c) {
363
363
  return c instanceof Error ? c.stack || c.message : c;
364
364
  }
365
- })(le, le.exports);
366
- var Kr = le.exports;
365
+ })(de, de.exports);
366
+ var Gr = de.exports;
367
367
  (function(t, e) {
368
- e = t.exports = Kr, e.log = o, e.formatArgs = n, e.save = i, e.load = u, e.useColors = r, e.storage = typeof chrome < "u" && typeof chrome.storage < "u" ? chrome.storage.local : h(), e.colors = [
368
+ e = t.exports = Gr, e.log = o, e.formatArgs = n, e.save = i, e.load = u, e.useColors = r, e.storage = typeof chrome < "u" && typeof chrome.storage < "u" ? chrome.storage.local : h(), e.colors = [
369
369
  "#0000CC",
370
370
  "#0000FF",
371
371
  "#0033CC",
@@ -450,40 +450,40 @@ var Kr = le.exports;
450
450
  typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // double check webkit in userAgent just in case we are in a worker
451
451
  typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
452
452
  }
453
- e.formatters.j = function(d) {
453
+ e.formatters.j = function(f) {
454
454
  try {
455
- return JSON.stringify(d);
455
+ return JSON.stringify(f);
456
456
  } catch (c) {
457
457
  return "[UnexpectedJSONParseError]: " + c.message;
458
458
  }
459
459
  };
460
- function n(d) {
460
+ function n(f) {
461
461
  var c = this.useColors;
462
- if (d[0] = (c ? "%c" : "") + this.namespace + (c ? " %c" : " ") + d[0] + (c ? "%c " : " ") + "+" + e.humanize(this.diff), !!c) {
462
+ if (f[0] = (c ? "%c" : "") + this.namespace + (c ? " %c" : " ") + f[0] + (c ? "%c " : " ") + "+" + e.humanize(this.diff), !!c) {
463
463
  var l = "color: " + this.color;
464
- d.splice(1, 0, l, "color: inherit");
464
+ f.splice(1, 0, l, "color: inherit");
465
465
  var p = 0, a = 0;
466
- d[0].replace(/%[a-zA-Z%]/g, function(s) {
466
+ f[0].replace(/%[a-zA-Z%]/g, function(s) {
467
467
  s !== "%%" && (p++, s === "%c" && (a = p));
468
- }), d.splice(a, 0, l);
468
+ }), f.splice(a, 0, l);
469
469
  }
470
470
  }
471
471
  function o() {
472
472
  return typeof console == "object" && console.log && Function.prototype.apply.call(console.log, console, arguments);
473
473
  }
474
- function i(d) {
474
+ function i(f) {
475
475
  try {
476
- d == null ? e.storage.removeItem("debug") : e.storage.debug = d;
476
+ f == null ? e.storage.removeItem("debug") : e.storage.debug = f;
477
477
  } catch {
478
478
  }
479
479
  }
480
480
  function u() {
481
- var d;
481
+ var f;
482
482
  try {
483
- d = e.storage.debug;
483
+ f = e.storage.debug;
484
484
  } catch {
485
485
  }
486
- return !d && typeof process < "u" && "env" in process && (d = process.env.DEBUG), d;
486
+ return !f && typeof process < "u" && "env" in process && (f = process.env.DEBUG), f;
487
487
  }
488
488
  e.enable(u());
489
489
  function h() {
@@ -492,15 +492,15 @@ var Kr = le.exports;
492
492
  } catch {
493
493
  }
494
494
  }
495
- })(ue, ue.exports);
496
- var lt = ue.exports, Hr = Ye, Le = lt("socket.io-client:url"), Jr = Vr;
497
- function Vr(t, e) {
495
+ })(fe, fe.exports);
496
+ var lt = fe.exports, Yr = or, De = lt("socket.io-client:url"), Qr = Zr;
497
+ function Zr(t, e) {
498
498
  var r = t;
499
- e = e || typeof location < "u" && location, t == null && (t = e.protocol + "//" + e.host), typeof t == "string" && (t.charAt(0) === "/" && (t.charAt(1) === "/" ? t = e.protocol + t : t = e.host + t), /^(https?|wss?):\/\//.test(t) || (Le("protocol-less url %s", t), typeof e < "u" ? t = e.protocol + "//" + t : t = "https://" + t), Le("parse %s", t), r = Hr(t)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
499
+ e = e || typeof location < "u" && location, t == null && (t = e.protocol + "//" + e.host), typeof t == "string" && (t.charAt(0) === "/" && (t.charAt(1) === "/" ? t = e.protocol + t : t = e.host + t), /^(https?|wss?):\/\//.test(t) || (De("protocol-less url %s", t), typeof e < "u" ? t = e.protocol + "//" + t : t = "https://" + t), De("parse %s", t), r = Yr(t)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
500
500
  var n = r.host.indexOf(":") !== -1, o = n ? "[" + r.host + "]" : r.host;
501
501
  return r.id = r.protocol + "://" + o + ":" + r.port, r.href = r.protocol + "://" + o + (e && e.port === r.port ? "" : ":" + r.port), r;
502
502
  }
503
- var Kt = {}, Qe = { exports: {} };
503
+ var Xt = {}, sr = { exports: {} };
504
504
  (function(t) {
505
505
  t.exports = e;
506
506
  function e(n) {
@@ -548,42 +548,42 @@ var Kt = {}, Qe = { exports: {} };
548
548
  }, e.prototype.hasListeners = function(n) {
549
549
  return !!this.listeners(n).length;
550
550
  };
551
- })(Qe);
552
- var St = Qe.exports, Ht = {}, $r = {}.toString, ke = Array.isArray || function(t) {
553
- return $r.call(t) == "[object Array]";
554
- }, Ze = Zr, Gr = typeof Buffer == "function" && typeof Buffer.isBuffer == "function", Yr = typeof ArrayBuffer == "function", Qr = function(t) {
551
+ })(sr);
552
+ var St = sr.exports, Wt = {}, tn = {}.toString, Ce = Array.isArray || function(t) {
553
+ return tn.call(t) == "[object Array]";
554
+ }, ir = on, en = typeof Buffer == "function" && typeof Buffer.isBuffer == "function", rn = typeof ArrayBuffer == "function", nn = function(t) {
555
555
  return typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(t) : t.buffer instanceof ArrayBuffer;
556
556
  };
557
- function Zr(t) {
558
- return Gr && Buffer.isBuffer(t) || Yr && (t instanceof ArrayBuffer || Qr(t));
557
+ function on(t) {
558
+ return en && Buffer.isBuffer(t) || rn && (t instanceof ArrayBuffer || nn(t));
559
559
  }
560
- var be = ke, tr = Ze, er = Object.prototype.toString, tn = typeof Blob == "function" || typeof Blob < "u" && er.call(Blob) === "[object BlobConstructor]", en = typeof File == "function" || typeof File < "u" && er.call(File) === "[object FileConstructor]";
561
- Ht.deconstructPacket = function(t) {
560
+ var we = Ce, ar = ir, cr = Object.prototype.toString, sn = typeof Blob == "function" || typeof Blob < "u" && cr.call(Blob) === "[object BlobConstructor]", an = typeof File == "function" || typeof File < "u" && cr.call(File) === "[object FileConstructor]";
561
+ Wt.deconstructPacket = function(t) {
562
562
  var e = [], r = t.data, n = t;
563
- return n.data = fe(r, e), n.attachments = e.length, { packet: n, buffers: e };
563
+ return n.data = ye(r, e), n.attachments = e.length, { packet: n, buffers: e };
564
564
  };
565
- function fe(t, e) {
565
+ function ye(t, e) {
566
566
  if (!t)
567
567
  return t;
568
- if (tr(t)) {
568
+ if (ar(t)) {
569
569
  var r = { _placeholder: !0, num: e.length };
570
570
  return e.push(t), r;
571
- } else if (be(t)) {
571
+ } else if (we(t)) {
572
572
  for (var n = new Array(t.length), o = 0; o < t.length; o++)
573
- n[o] = fe(t[o], e);
573
+ n[o] = ye(t[o], e);
574
574
  return n;
575
575
  } else if (typeof t == "object" && !(t instanceof Date)) {
576
576
  var n = {};
577
577
  for (var i in t)
578
- n[i] = fe(t[i], e);
578
+ n[i] = ye(t[i], e);
579
579
  return n;
580
580
  }
581
581
  return t;
582
582
  }
583
- Ht.reconstructPacket = function(t, e) {
584
- return t.data = de(t.data, e), t.attachments = void 0, t;
583
+ Wt.reconstructPacket = function(t, e) {
584
+ return t.data = ge(t.data, e), t.attachments = void 0, t;
585
585
  };
586
- function de(t, e) {
586
+ function ge(t, e) {
587
587
  if (!t)
588
588
  return t;
589
589
  if (t && t._placeholder === !0) {
@@ -591,28 +591,28 @@ function de(t, e) {
591
591
  if (r)
592
592
  return e[t.num];
593
593
  throw new Error("illegal attachments");
594
- } else if (be(t))
594
+ } else if (we(t))
595
595
  for (var n = 0; n < t.length; n++)
596
- t[n] = de(t[n], e);
596
+ t[n] = ge(t[n], e);
597
597
  else if (typeof t == "object")
598
598
  for (var o in t)
599
- t[o] = de(t[o], e);
599
+ t[o] = ge(t[o], e);
600
600
  return t;
601
601
  }
602
- Ht.removeBlobs = function(t, e) {
602
+ Wt.removeBlobs = function(t, e) {
603
603
  function r(i, u, h) {
604
604
  if (!i)
605
605
  return i;
606
- if (tn && i instanceof Blob || en && i instanceof File) {
606
+ if (sn && i instanceof Blob || an && i instanceof File) {
607
607
  n++;
608
- var d = new FileReader();
609
- d.onload = function() {
608
+ var f = new FileReader();
609
+ f.onload = function() {
610
610
  h ? h[u] = this.result : o = this.result, --n || e(o);
611
- }, d.readAsArrayBuffer(i);
612
- } else if (be(i))
611
+ }, f.readAsArrayBuffer(i);
612
+ } else if (we(i))
613
613
  for (var c = 0; c < i.length; c++)
614
614
  r(i[c], c, i);
615
- else if (typeof i == "object" && !tr(i))
615
+ else if (typeof i == "object" && !ar(i))
616
616
  for (var l in i)
617
617
  r(i[l], l, i);
618
618
  }
@@ -620,7 +620,7 @@ Ht.removeBlobs = function(t, e) {
620
620
  r(o), n || e(o);
621
621
  };
622
622
  (function(t) {
623
- var e = lt("socket.io-parser"), r = St, n = Ht, o = ke, i = Ze;
623
+ var e = lt("socket.io-parser"), r = St, n = Wt, o = Ce, i = ir;
624
624
  t.protocol = 4, t.types = [
625
625
  "CONNECT",
626
626
  "DISCONNECT",
@@ -637,16 +637,16 @@ Ht.removeBlobs = function(t, e) {
637
637
  if (e("encoding packet %j", g), t.BINARY_EVENT === g.type || t.BINARY_ACK === g.type)
638
638
  l(g, w);
639
639
  else {
640
- var _ = d(g);
641
- w([_]);
640
+ var B = f(g);
641
+ w([B]);
642
642
  }
643
643
  };
644
- function d(g) {
644
+ function f(g) {
645
645
  var w = "" + g.type;
646
646
  if ((t.BINARY_EVENT === g.type || t.BINARY_ACK === g.type) && (w += g.attachments + "-"), g.nsp && g.nsp !== "/" && (w += g.nsp + ","), g.id != null && (w += g.id), g.data != null) {
647
- var _ = c(g.data);
648
- if (_ !== !1)
649
- w += _;
647
+ var B = c(g.data);
648
+ if (B !== !1)
649
+ w += B;
650
650
  else
651
651
  return h;
652
652
  }
@@ -660,11 +660,11 @@ Ht.removeBlobs = function(t, e) {
660
660
  }
661
661
  }
662
662
  function l(g, w) {
663
- function _(B) {
664
- var b = n.deconstructPacket(B), S = d(b.packet), m = b.buffers;
663
+ function B(_) {
664
+ var b = n.deconstructPacket(_), S = f(b.packet), m = b.buffers;
665
665
  m.unshift(S), w(m);
666
666
  }
667
- n.removeBlobs(g, _);
667
+ n.removeBlobs(g, B);
668
668
  }
669
669
  function p() {
670
670
  this.reconstructor = null;
@@ -674,7 +674,7 @@ Ht.removeBlobs = function(t, e) {
674
674
  if (typeof g == "string") {
675
675
  if (this.reconstructor)
676
676
  throw new Error("got plaintext data when reconstructing a packet");
677
- w = a(g), t.BINARY_EVENT === w.type || t.BINARY_ACK === w.type ? (this.reconstructor = new f(w), this.reconstructor.reconPack.attachments === 0 && this.emit("decoded", w)) : this.emit("decoded", w);
677
+ w = a(g), t.BINARY_EVENT === w.type || t.BINARY_ACK === w.type ? (this.reconstructor = new d(w), this.reconstructor.reconPack.attachments === 0 && this.emit("decoded", w)) : this.emit("decoded", w);
678
678
  } else if (i(g) || g.base64)
679
679
  if (this.reconstructor)
680
680
  w = this.reconstructor.takeBinaryData(g), w && (this.reconstructor = null, this.emit("decoded", w));
@@ -684,31 +684,31 @@ Ht.removeBlobs = function(t, e) {
684
684
  throw new Error("Unknown type: " + g);
685
685
  };
686
686
  function a(g) {
687
- var w = 0, _ = {
687
+ var w = 0, B = {
688
688
  type: Number(g.charAt(0))
689
689
  };
690
- if (t.types[_.type] == null)
691
- return y("unknown packet type " + _.type);
692
- if (t.BINARY_EVENT === _.type || t.BINARY_ACK === _.type) {
693
- for (var B = w + 1; g.charAt(++w) !== "-" && w != g.length; )
690
+ if (t.types[B.type] == null)
691
+ return y("unknown packet type " + B.type);
692
+ if (t.BINARY_EVENT === B.type || t.BINARY_ACK === B.type) {
693
+ for (var _ = w + 1; g.charAt(++w) !== "-" && w != g.length; )
694
694
  ;
695
- var b = g.substring(B, w);
695
+ var b = g.substring(_, w);
696
696
  if (b != Number(b) || g.charAt(w) !== "-")
697
697
  throw new Error("Illegal attachments");
698
- _.attachments = Number(b);
698
+ B.attachments = Number(b);
699
699
  }
700
700
  if (g.charAt(w + 1) === "/") {
701
- for (var B = w + 1; ++w; ) {
701
+ for (var _ = w + 1; ++w; ) {
702
702
  var S = g.charAt(w);
703
703
  if (S === "," || w === g.length)
704
704
  break;
705
705
  }
706
- _.nsp = g.substring(B, w);
706
+ B.nsp = g.substring(_, w);
707
707
  } else
708
- _.nsp = "/";
708
+ B.nsp = "/";
709
709
  var m = g.charAt(w + 1);
710
710
  if (m !== "" && Number(m) == m) {
711
- for (var B = w + 1; ++w; ) {
711
+ for (var _ = w + 1; ++w; ) {
712
712
  var S = g.charAt(w);
713
713
  if (S == null || Number(S) != S) {
714
714
  --w;
@@ -717,16 +717,16 @@ Ht.removeBlobs = function(t, e) {
717
717
  if (w === g.length)
718
718
  break;
719
719
  }
720
- _.id = Number(g.substring(B, w + 1));
720
+ B.id = Number(g.substring(_, w + 1));
721
721
  }
722
722
  if (g.charAt(++w)) {
723
- var C = s(g.substr(w)), E = C !== !1 && (_.type === t.ERROR || o(C));
723
+ var C = s(g.substr(w)), E = C !== !1 && (B.type === t.ERROR || o(C));
724
724
  if (E)
725
- _.data = C;
725
+ B.data = C;
726
726
  else
727
727
  return y("invalid payload");
728
728
  }
729
- return e("decoded %s as %j", g, _), _;
729
+ return e("decoded %s as %j", g, B), B;
730
730
  }
731
731
  function s(g) {
732
732
  try {
@@ -738,16 +738,16 @@ Ht.removeBlobs = function(t, e) {
738
738
  p.prototype.destroy = function() {
739
739
  this.reconstructor && this.reconstructor.finishedReconstruction();
740
740
  };
741
- function f(g) {
741
+ function d(g) {
742
742
  this.reconPack = g, this.buffers = [];
743
743
  }
744
- f.prototype.takeBinaryData = function(g) {
744
+ d.prototype.takeBinaryData = function(g) {
745
745
  if (this.buffers.push(g), this.buffers.length === this.reconPack.attachments) {
746
746
  var w = n.reconstructPacket(this.reconPack, this.buffers);
747
747
  return this.finishedReconstruction(), w;
748
748
  }
749
749
  return null;
750
- }, f.prototype.finishedReconstruction = function() {
750
+ }, d.prototype.finishedReconstruction = function() {
751
751
  this.reconPack = null, this.buffers = [];
752
752
  };
753
753
  function y(g) {
@@ -756,19 +756,19 @@ Ht.removeBlobs = function(t, e) {
756
756
  data: "parser error: " + g
757
757
  };
758
758
  }
759
- })(Kt);
760
- var Ce = { exports: {} }, Jt = {}, ye = { exports: {} };
759
+ })(Xt);
760
+ var Se = { exports: {} }, Kt = {}, me = { exports: {} };
761
761
  try {
762
- ye.exports = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
762
+ me.exports = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
763
763
  } catch {
764
- ye.exports = !1;
764
+ me.exports = !1;
765
765
  }
766
- var rn = ye.exports, we = function() {
766
+ var cn = me.exports, Ee = function() {
767
767
  return typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
768
- }(), nn = rn, on = we, Se = function(t) {
768
+ }(), hn = cn, pn = Ee, Ae = function(t) {
769
769
  var e = t.xdomain, r = t.xscheme, n = t.enablesXDR;
770
770
  try {
771
- if (typeof XMLHttpRequest < "u" && (!e || nn))
771
+ if (typeof XMLHttpRequest < "u" && (!e || hn))
772
772
  return new XMLHttpRequest();
773
773
  } catch {
774
774
  }
@@ -779,34 +779,42 @@ var rn = ye.exports, we = function() {
779
779
  }
780
780
  if (!e)
781
781
  try {
782
- return new on[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP");
782
+ return new pn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP");
783
783
  } catch {
784
784
  }
785
- }, Ee = { exports: {} }, kt = {}, sn = Object.keys || function(t) {
785
+ }, Te = { exports: {} }, kt = {}, un = Object.keys || function(t) {
786
786
  var e = [], r = Object.prototype.hasOwnProperty;
787
787
  for (var n in t)
788
788
  r.call(t, n) && e.push(n);
789
789
  return e;
790
- }, an = ke, rr = Object.prototype.toString, cn = typeof Blob == "function" || typeof Blob < "u" && rr.call(Blob) === "[object BlobConstructor]", hn = typeof File == "function" || typeof File < "u" && rr.call(File) === "[object FileConstructor]", nr = Mt;
791
- function Mt(t) {
792
- if (!t || typeof t != "object")
793
- return !1;
794
- if (an(t)) {
795
- for (var e = 0, r = t.length; e < r; e++)
796
- if (Mt(t[e]))
790
+ }, re, Pe;
791
+ function hr() {
792
+ if (Pe)
793
+ return re;
794
+ Pe = 1;
795
+ var t = Ce, e = Object.prototype.toString, r = typeof Blob == "function" || typeof Blob < "u" && e.call(Blob) === "[object BlobConstructor]", n = typeof File == "function" || typeof File < "u" && e.call(File) === "[object FileConstructor]";
796
+ re = o;
797
+ function o(i) {
798
+ if (!i || typeof i != "object")
799
+ return !1;
800
+ if (t(i)) {
801
+ for (var u = 0, h = i.length; u < h; u++)
802
+ if (o(i[u]))
803
+ return !0;
804
+ return !1;
805
+ }
806
+ if (typeof Buffer == "function" && Buffer.isBuffer && Buffer.isBuffer(i) || typeof ArrayBuffer == "function" && i instanceof ArrayBuffer || r && i instanceof Blob || n && i instanceof File)
807
+ return !0;
808
+ if (i.toJSON && typeof i.toJSON == "function" && arguments.length === 1)
809
+ return o(i.toJSON(), !0);
810
+ for (var f in i)
811
+ if (Object.prototype.hasOwnProperty.call(i, f) && o(i[f]))
797
812
  return !0;
798
813
  return !1;
799
814
  }
800
- if (typeof Buffer == "function" && Buffer.isBuffer && Buffer.isBuffer(t) || typeof ArrayBuffer == "function" && t instanceof ArrayBuffer || cn && t instanceof Blob || hn && t instanceof File)
801
- return !0;
802
- if (t.toJSON && typeof t.toJSON == "function" && arguments.length === 1)
803
- return Mt(t.toJSON(), !0);
804
- for (var n in t)
805
- if (Object.prototype.hasOwnProperty.call(t, n) && Mt(t[n]))
806
- return !0;
807
- return !1;
815
+ return re;
808
816
  }
809
- var pn = function(t, e, r) {
817
+ var ln = function(t, e, r) {
810
818
  var n = t.byteLength;
811
819
  if (e = e || 0, r = r || n, t.slice)
812
820
  return t.slice(e, r);
@@ -815,31 +823,31 @@ var pn = function(t, e, r) {
815
823
  for (var o = new Uint8Array(t), i = new Uint8Array(r - e), u = e, h = 0; u < r; u++, h++)
816
824
  i[h] = o[u];
817
825
  return i.buffer;
818
- }, un = ln;
819
- function ln(t, e, r) {
826
+ }, fn = dn;
827
+ function dn(t, e, r) {
820
828
  var n = !1;
821
- return r = r || fn, o.count = t, t === 0 ? e() : o;
829
+ return r = r || yn, o.count = t, t === 0 ? e() : o;
822
830
  function o(i, u) {
823
831
  if (o.count <= 0)
824
832
  throw new Error("after called too many times");
825
833
  --o.count, i ? (n = !0, e(i), e = r) : o.count === 0 && !n && e(null, u);
826
834
  }
827
835
  }
828
- function fn() {
836
+ function yn() {
829
837
  }
830
838
  /*! https://mths.be/utf8js v2.1.2 by @mathias */
831
839
  var dt = String.fromCharCode;
832
- function or(t) {
840
+ function pr(t) {
833
841
  for (var e = [], r = 0, n = t.length, o, i; r < n; )
834
842
  o = t.charCodeAt(r++), o >= 55296 && o <= 56319 && r < n ? (i = t.charCodeAt(r++), (i & 64512) == 56320 ? e.push(((o & 1023) << 10) + (i & 1023) + 65536) : (e.push(o), r--)) : e.push(o);
835
843
  return e;
836
844
  }
837
- function dn(t) {
845
+ function gn(t) {
838
846
  for (var e = t.length, r = -1, n, o = ""; ++r < e; )
839
847
  n = t[r], n > 65535 && (n -= 65536, o += dt(n >>> 10 & 1023 | 55296), n = 56320 | n & 1023), o += dt(n);
840
848
  return o;
841
849
  }
842
- function sr(t, e) {
850
+ function ur(t, e) {
843
851
  if (t >= 55296 && t <= 57343) {
844
852
  if (e)
845
853
  throw Error(
@@ -852,33 +860,33 @@ function sr(t, e) {
852
860
  function ne(t, e) {
853
861
  return dt(t >> e & 63 | 128);
854
862
  }
855
- function yn(t, e) {
863
+ function mn(t, e) {
856
864
  if (!(t & 4294967168))
857
865
  return dt(t);
858
866
  var r = "";
859
- return t & 4294965248 ? t & 4294901760 ? t & 4292870144 || (r = dt(t >> 18 & 7 | 240), r += ne(t, 12), r += ne(t, 6)) : (sr(t, e) || (t = 65533), r = dt(t >> 12 & 15 | 224), r += ne(t, 6)) : r = dt(t >> 6 & 31 | 192), r += dt(t & 63 | 128), r;
867
+ return t & 4294965248 ? t & 4294901760 ? t & 4292870144 || (r = dt(t >> 18 & 7 | 240), r += ne(t, 12), r += ne(t, 6)) : (ur(t, e) || (t = 65533), r = dt(t >> 12 & 15 | 224), r += ne(t, 6)) : r = dt(t >> 6 & 31 | 192), r += dt(t & 63 | 128), r;
860
868
  }
861
- function gn(t, e) {
869
+ function vn(t, e) {
862
870
  e = e || {};
863
- for (var r = e.strict !== !1, n = or(t), o = n.length, i = -1, u, h = ""; ++i < o; )
864
- u = n[i], h += yn(u, r);
871
+ for (var r = e.strict !== !1, n = pr(t), o = n.length, i = -1, u, h = ""; ++i < o; )
872
+ u = n[i], h += mn(u, r);
865
873
  return h;
866
874
  }
867
875
  function bt() {
868
- if (yt >= zt)
876
+ if (yt >= Mt)
869
877
  throw Error("Invalid byte index");
870
- var t = qt[yt] & 255;
878
+ var t = jt[yt] & 255;
871
879
  if (yt++, (t & 192) == 128)
872
880
  return t & 63;
873
881
  throw Error("Invalid continuation byte");
874
882
  }
875
- function mn(t) {
883
+ function kn(t) {
876
884
  var e, r, n, o, i;
877
- if (yt > zt)
885
+ if (yt > Mt)
878
886
  throw Error("Invalid byte index");
879
- if (yt == zt)
887
+ if (yt == Mt)
880
888
  return !1;
881
- if (e = qt[yt] & 255, yt++, !(e & 128))
889
+ if (e = jt[yt] & 255, yt++, !(e & 128))
882
890
  return e;
883
891
  if ((e & 224) == 192) {
884
892
  if (r = bt(), i = (e & 31) << 6 | r, i >= 128)
@@ -887,49 +895,49 @@ function mn(t) {
887
895
  }
888
896
  if ((e & 240) == 224) {
889
897
  if (r = bt(), n = bt(), i = (e & 15) << 12 | r << 6 | n, i >= 2048)
890
- return sr(i, t) ? i : 65533;
898
+ return ur(i, t) ? i : 65533;
891
899
  throw Error("Invalid continuation byte");
892
900
  }
893
901
  if ((e & 248) == 240 && (r = bt(), n = bt(), o = bt(), i = (e & 7) << 18 | r << 12 | n << 6 | o, i >= 65536 && i <= 1114111))
894
902
  return i;
895
903
  throw Error("Invalid UTF-8 detected");
896
904
  }
897
- var qt, zt, yt;
898
- function vn(t, e) {
905
+ var jt, Mt, yt;
906
+ function bn(t, e) {
899
907
  e = e || {};
900
908
  var r = e.strict !== !1;
901
- qt = or(t), zt = qt.length, yt = 0;
902
- for (var n = [], o; (o = mn(r)) !== !1; )
909
+ jt = pr(t), Mt = jt.length, yt = 0;
910
+ for (var n = [], o; (o = kn(r)) !== !1; )
903
911
  n.push(o);
904
- return dn(n);
912
+ return gn(n);
905
913
  }
906
- var kn = {
914
+ var Cn = {
907
915
  version: "2.1.2",
908
- encode: gn,
909
- decode: vn
910
- }, oe = {}, Ue;
911
- function bn() {
912
- return Ue || (Ue = 1, function(t) {
916
+ encode: vn,
917
+ decode: bn
918
+ }, oe = {}, Fe;
919
+ function wn() {
920
+ return Fe || (Fe = 1, function(t) {
913
921
  oe.encode = function(e) {
914
922
  var r = new Uint8Array(e), n, o = r.length, i = "";
915
923
  for (n = 0; n < o; n += 3)
916
924
  i += t[r[n] >> 2], i += t[(r[n] & 3) << 4 | r[n + 1] >> 4], i += t[(r[n + 1] & 15) << 2 | r[n + 2] >> 6], i += t[r[n + 2] & 63];
917
925
  return o % 3 === 2 ? i = i.substring(0, i.length - 1) + "=" : o % 3 === 1 && (i = i.substring(0, i.length - 2) + "=="), i;
918
926
  }, oe.decode = function(e) {
919
- var r = e.length * 0.75, n = e.length, o, i = 0, u, h, d, c;
927
+ var r = e.length * 0.75, n = e.length, o, i = 0, u, h, f, c;
920
928
  e[e.length - 1] === "=" && (r--, e[e.length - 2] === "=" && r--);
921
929
  var l = new ArrayBuffer(r), p = new Uint8Array(l);
922
930
  for (o = 0; o < n; o += 4)
923
- u = t.indexOf(e[o]), h = t.indexOf(e[o + 1]), d = t.indexOf(e[o + 2]), c = t.indexOf(e[o + 3]), p[i++] = u << 2 | h >> 4, p[i++] = (h & 15) << 4 | d >> 2, p[i++] = (d & 3) << 6 | c & 63;
931
+ u = t.indexOf(e[o]), h = t.indexOf(e[o + 1]), f = t.indexOf(e[o + 2]), c = t.indexOf(e[o + 3]), p[i++] = u << 2 | h >> 4, p[i++] = (h & 15) << 4 | f >> 2, p[i++] = (f & 3) << 6 | c & 63;
924
932
  return l;
925
933
  };
926
934
  }("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")), oe;
927
935
  }
928
- var se, De;
929
- function Cn() {
930
- if (De)
936
+ var se, je;
937
+ function Sn() {
938
+ if (je)
931
939
  return se;
932
- De = 1;
940
+ je = 1;
933
941
  var t = typeof t < "u" ? t : typeof WebKitBlobBuilder < "u" ? WebKitBlobBuilder : typeof MSBlobBuilder < "u" ? MSBlobBuilder : typeof MozBlobBuilder < "u" ? MozBlobBuilder : !1, e = function() {
934
942
  try {
935
943
  var h = new Blob(["hi"]);
@@ -946,36 +954,36 @@ function Cn() {
946
954
  }
947
955
  }(), n = t && t.prototype.append && t.prototype.getBlob;
948
956
  function o(h) {
949
- return h.map(function(d) {
950
- if (d.buffer instanceof ArrayBuffer) {
951
- var c = d.buffer;
952
- if (d.byteLength !== c.byteLength) {
953
- var l = new Uint8Array(d.byteLength);
954
- l.set(new Uint8Array(c, d.byteOffset, d.byteLength)), c = l.buffer;
957
+ return h.map(function(f) {
958
+ if (f.buffer instanceof ArrayBuffer) {
959
+ var c = f.buffer;
960
+ if (f.byteLength !== c.byteLength) {
961
+ var l = new Uint8Array(f.byteLength);
962
+ l.set(new Uint8Array(c, f.byteOffset, f.byteLength)), c = l.buffer;
955
963
  }
956
964
  return c;
957
965
  }
958
- return d;
966
+ return f;
959
967
  });
960
968
  }
961
- function i(h, d) {
962
- d = d || {};
969
+ function i(h, f) {
970
+ f = f || {};
963
971
  var c = new t();
964
972
  return o(h).forEach(function(l) {
965
973
  c.append(l);
966
- }), d.type ? c.getBlob(d.type) : c.getBlob();
974
+ }), f.type ? c.getBlob(f.type) : c.getBlob();
967
975
  }
968
- function u(h, d) {
969
- return new Blob(o(h), d || {});
976
+ function u(h, f) {
977
+ return new Blob(o(h), f || {});
970
978
  }
971
979
  return typeof Blob < "u" && (i.prototype = Blob.prototype, u.prototype = Blob.prototype), se = /* @__PURE__ */ function() {
972
980
  return e ? r ? Blob : u : n ? i : void 0;
973
981
  }(), se;
974
982
  }
975
983
  (function(t) {
976
- var e = sn, r = nr, n = pn, o = un, i = kn, u;
977
- typeof ArrayBuffer < "u" && (u = bn());
978
- var h = typeof navigator < "u" && /Android/i.test(navigator.userAgent), d = typeof navigator < "u" && /PhantomJS/i.test(navigator.userAgent), c = h || d;
984
+ var e = un, r = hr(), n = ln, o = fn, i = Cn, u;
985
+ typeof ArrayBuffer < "u" && (u = wn());
986
+ var h = typeof navigator < "u" && /Android/i.test(navigator.userAgent), f = typeof navigator < "u" && /PhantomJS/i.test(navigator.userAgent), c = h || f;
979
987
  t.protocol = 3;
980
988
  var l = t.packets = {
981
989
  open: 0,
@@ -985,7 +993,7 @@ function Cn() {
985
993
  message: 4,
986
994
  upgrade: 5,
987
995
  noop: 6
988
- }, p = e(l), a = { type: "error", data: "parser error" }, s = Cn();
996
+ }, p = e(l), a = { type: "error", data: "parser error" }, s = Sn();
989
997
  t.encodePacket = function(b, S, m, C) {
990
998
  typeof S == "function" && (C = S, S = !1), typeof m == "function" && (C = m, m = null);
991
999
  var E = b.data === void 0 ? void 0 : b.data.buffer || b.data;
@@ -994,11 +1002,11 @@ function Cn() {
994
1002
  if (typeof s < "u" && E instanceof s)
995
1003
  return w(b, S, C);
996
1004
  if (E && E.base64)
997
- return f(b, C);
1005
+ return d(b, C);
998
1006
  var v = l[b.type];
999
1007
  return b.data !== void 0 && (v += m ? i.encode(String(b.data), { strict: !1 }) : String(b.data)), C("" + v);
1000
1008
  };
1001
- function f(b, S) {
1009
+ function d(b, S) {
1002
1010
  var m = "b" + t.packets[b.type] + b.data.data;
1003
1011
  return S(m);
1004
1012
  }
@@ -1034,8 +1042,8 @@ function Cn() {
1034
1042
  if (typeof s < "u" && b.data instanceof s) {
1035
1043
  var C = new FileReader();
1036
1044
  return C.onload = function() {
1037
- var x = C.result.split(",")[1];
1038
- S(m + x);
1045
+ var O = C.result.split(",")[1];
1046
+ S(m + O);
1039
1047
  }, C.readAsDataURL(b.data);
1040
1048
  }
1041
1049
  var E;
@@ -1053,7 +1061,7 @@ function Cn() {
1053
1061
  if (typeof b == "string") {
1054
1062
  if (b.charAt(0) === "b")
1055
1063
  return t.decodeBase64Packet(b.substr(1), S);
1056
- if (m && (b = _(b), b === !1))
1064
+ if (m && (b = B(b), b === !1))
1057
1065
  return a;
1058
1066
  var E = b.charAt(0);
1059
1067
  return Number(E) != E || !p[E] ? a : b.length > 1 ? { type: p[E], data: b.substring(1) } : { type: p[E] };
@@ -1061,7 +1069,7 @@ function Cn() {
1061
1069
  var C = new Uint8Array(b), E = C[0], v = n(b, 1);
1062
1070
  return s && S === "blob" && (v = new s([v])), { type: p[E], data: v };
1063
1071
  };
1064
- function _(b) {
1072
+ function B(b) {
1065
1073
  try {
1066
1074
  b = i.decode(b, { strict: !1 });
1067
1075
  } catch {
@@ -1086,18 +1094,18 @@ function Cn() {
1086
1094
  return k.length + ":" + k;
1087
1095
  }
1088
1096
  function v(k, T) {
1089
- t.encodePacket(k, C ? S : !1, !1, function(x) {
1090
- T(null, E(x));
1097
+ t.encodePacket(k, C ? S : !1, !1, function(O) {
1098
+ T(null, E(O));
1091
1099
  });
1092
1100
  }
1093
- B(b, v, function(k, T) {
1101
+ _(b, v, function(k, T) {
1094
1102
  return m(T.join(""));
1095
1103
  });
1096
1104
  };
1097
- function B(b, S, m) {
1098
- for (var C = new Array(b.length), E = o(b.length, m), v = function(T, x, O) {
1099
- S(x, function(A, q) {
1100
- C[T] = q, O(A, C);
1105
+ function _(b, S, m) {
1106
+ for (var C = new Array(b.length), E = o(b.length, m), v = function(T, O, x) {
1107
+ S(O, function(A, q) {
1108
+ C[T] = q, x(A, C);
1101
1109
  });
1102
1110
  }, k = 0; k < b.length; k++)
1103
1111
  v(k, b[k], E);
@@ -1109,10 +1117,10 @@ function Cn() {
1109
1117
  var C;
1110
1118
  if (b === "")
1111
1119
  return m(a, 0, 1);
1112
- for (var E = "", v, k, T = 0, x = b.length; T < x; T++) {
1113
- var O = b.charAt(T);
1114
- if (O !== ":") {
1115
- E += O;
1120
+ for (var E = "", v, k, T = 0, O = b.length; T < O; T++) {
1121
+ var x = b.charAt(T);
1122
+ if (x !== ":") {
1123
+ E += x;
1116
1124
  continue;
1117
1125
  }
1118
1126
  if (E === "" || E != (v = Number(E)) || (k = b.substr(T + 1, v), E != k.length))
@@ -1120,7 +1128,7 @@ function Cn() {
1120
1128
  if (k.length) {
1121
1129
  if (C = t.decodePacket(k, S, !1), a.type === C.type && a.data === C.data)
1122
1130
  return m(a, 0, 1);
1123
- var A = m(C, T + v, x);
1131
+ var A = m(C, T + v, O);
1124
1132
  if (A === !1)
1125
1133
  return;
1126
1134
  }
@@ -1136,19 +1144,19 @@ function Cn() {
1136
1144
  return E(null, v);
1137
1145
  });
1138
1146
  }
1139
- B(b, m, function(C, E) {
1140
- var v = E.reduce(function(x, O) {
1147
+ _(b, m, function(C, E) {
1148
+ var v = E.reduce(function(O, x) {
1141
1149
  var A;
1142
- return typeof O == "string" ? A = O.length : A = O.byteLength, x + A.toString().length + A + 2;
1150
+ return typeof x == "string" ? A = x.length : A = x.byteLength, O + A.toString().length + A + 2;
1143
1151
  }, 0), k = new Uint8Array(v), T = 0;
1144
- return E.forEach(function(x) {
1145
- var O = typeof x == "string", A = x;
1146
- if (O) {
1147
- for (var q = new Uint8Array(x.length), j = 0; j < x.length; j++)
1148
- q[j] = x.charCodeAt(j);
1152
+ return E.forEach(function(O) {
1153
+ var x = typeof O == "string", A = O;
1154
+ if (x) {
1155
+ for (var q = new Uint8Array(O.length), j = 0; j < O.length; j++)
1156
+ q[j] = O.charCodeAt(j);
1149
1157
  A = q.buffer;
1150
1158
  }
1151
- O ? k[T++] = 0 : k[T++] = 1;
1159
+ x ? k[T++] = 0 : k[T++] = 1;
1152
1160
  for (var $ = A.byteLength.toString(), j = 0; j < $.length; j++)
1153
1161
  k[T++] = parseInt($[j]);
1154
1162
  k[T++] = 255;
@@ -1161,41 +1169,41 @@ function Cn() {
1161
1169
  t.encodePacket(C, !0, !0, function(v) {
1162
1170
  var k = new Uint8Array(1);
1163
1171
  if (k[0] = 1, typeof v == "string") {
1164
- for (var T = new Uint8Array(v.length), x = 0; x < v.length; x++)
1165
- T[x] = v.charCodeAt(x);
1172
+ for (var T = new Uint8Array(v.length), O = 0; O < v.length; O++)
1173
+ T[O] = v.charCodeAt(O);
1166
1174
  v = T.buffer, k[0] = 0;
1167
1175
  }
1168
- for (var O = v instanceof ArrayBuffer ? v.byteLength : v.size, A = O.toString(), q = new Uint8Array(A.length + 1), x = 0; x < A.length; x++)
1169
- q[x] = parseInt(A[x]);
1176
+ for (var x = v instanceof ArrayBuffer ? v.byteLength : v.size, A = x.toString(), q = new Uint8Array(A.length + 1), O = 0; O < A.length; O++)
1177
+ q[O] = parseInt(A[O]);
1170
1178
  if (q[A.length] = 255, s) {
1171
1179
  var j = new s([k.buffer, q.buffer, v]);
1172
1180
  E(null, j);
1173
1181
  }
1174
1182
  });
1175
1183
  }
1176
- B(b, m, function(C, E) {
1184
+ _(b, m, function(C, E) {
1177
1185
  return S(new s(E));
1178
1186
  });
1179
1187
  }, t.decodePayloadAsBinary = function(b, S, m) {
1180
1188
  typeof S == "function" && (m = S, S = null);
1181
1189
  for (var C = b, E = []; C.byteLength > 0; ) {
1182
- for (var v = new Uint8Array(C), k = v[0] === 0, T = "", x = 1; v[x] !== 255; x++) {
1190
+ for (var v = new Uint8Array(C), k = v[0] === 0, T = "", O = 1; v[O] !== 255; O++) {
1183
1191
  if (T.length > 310)
1184
1192
  return m(a, 0, 1);
1185
- T += v[x];
1193
+ T += v[O];
1186
1194
  }
1187
1195
  C = n(C, 2 + T.length), T = parseInt(T);
1188
- var O = n(C, 0, T);
1196
+ var x = n(C, 0, T);
1189
1197
  if (k)
1190
1198
  try {
1191
- O = String.fromCharCode.apply(null, new Uint8Array(O));
1199
+ x = String.fromCharCode.apply(null, new Uint8Array(x));
1192
1200
  } catch {
1193
- var A = new Uint8Array(O);
1194
- O = "";
1195
- for (var x = 0; x < A.length; x++)
1196
- O += String.fromCharCode(A[x]);
1201
+ var A = new Uint8Array(x);
1202
+ x = "";
1203
+ for (var O = 0; O < A.length; O++)
1204
+ x += String.fromCharCode(A[O]);
1197
1205
  }
1198
- E.push(O), C = n(C, T);
1206
+ E.push(x), C = n(C, T);
1199
1207
  }
1200
1208
  var q = E.length;
1201
1209
  E.forEach(function(j, $) {
@@ -1203,11 +1211,11 @@ function Cn() {
1203
1211
  });
1204
1212
  };
1205
1213
  })(kt);
1206
- var ie, Pe;
1207
- function Ae() {
1208
- if (Pe)
1214
+ var ie, Me;
1215
+ function Ne() {
1216
+ if (Me)
1209
1217
  return ie;
1210
- Pe = 1;
1218
+ Me = 1;
1211
1219
  var t = kt, e = St;
1212
1220
  ie = r;
1213
1221
  function r(n) {
@@ -1236,55 +1244,56 @@ function Ae() {
1236
1244
  this.readyState = "closed", this.emit("close");
1237
1245
  }, ie;
1238
1246
  }
1239
- var Et = {};
1240
- Et.encode = function(t) {
1241
- var e = "";
1242
- for (var r in t)
1243
- t.hasOwnProperty(r) && (e.length && (e += "&"), e += encodeURIComponent(r) + "=" + encodeURIComponent(t[r]));
1244
- return e;
1245
- };
1246
- Et.decode = function(t) {
1247
- for (var e = {}, r = t.split("&"), n = 0, o = r.length; n < o; n++) {
1248
- var i = r[n].split("=");
1249
- e[decodeURIComponent(i[0])] = decodeURIComponent(i[1]);
1250
- }
1251
- return e;
1252
- };
1253
- var Vt = function(t, e) {
1247
+ var ae = {}, qe;
1248
+ function Ht() {
1249
+ return qe || (qe = 1, ae.encode = function(t) {
1250
+ var e = "";
1251
+ for (var r in t)
1252
+ t.hasOwnProperty(r) && (e.length && (e += "&"), e += encodeURIComponent(r) + "=" + encodeURIComponent(t[r]));
1253
+ return e;
1254
+ }, ae.decode = function(t) {
1255
+ for (var e = {}, r = t.split("&"), n = 0, o = r.length; n < o; n++) {
1256
+ var i = r[n].split("=");
1257
+ e[decodeURIComponent(i[0])] = decodeURIComponent(i[1]);
1258
+ }
1259
+ return e;
1260
+ }), ae;
1261
+ }
1262
+ var Jt = function(t, e) {
1254
1263
  var r = function() {
1255
1264
  };
1256
1265
  r.prototype = e.prototype, t.prototype = new r(), t.prototype.constructor = t;
1257
- }, ir = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), Xt = 64, ar = {}, Fe = 0, gt = 0, je;
1258
- function ge(t) {
1266
+ }, lr = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), qt = 64, fr = {}, ze = 0, gt = 0, Xe;
1267
+ function ve(t) {
1259
1268
  var e = "";
1260
1269
  do
1261
- e = ir[t % Xt] + e, t = Math.floor(t / Xt);
1270
+ e = lr[t % qt] + e, t = Math.floor(t / qt);
1262
1271
  while (t > 0);
1263
1272
  return e;
1264
1273
  }
1265
- function wn(t) {
1274
+ function En(t) {
1266
1275
  var e = 0;
1267
1276
  for (gt = 0; gt < t.length; gt++)
1268
- e = e * Xt + ar[t.charAt(gt)];
1277
+ e = e * qt + fr[t.charAt(gt)];
1269
1278
  return e;
1270
1279
  }
1271
- function Te() {
1272
- var t = ge(+/* @__PURE__ */ new Date());
1273
- return t !== je ? (Fe = 0, je = t) : t + "." + ge(Fe++);
1280
+ function Oe() {
1281
+ var t = ve(+/* @__PURE__ */ new Date());
1282
+ return t !== Xe ? (ze = 0, Xe = t) : t + "." + ve(ze++);
1274
1283
  }
1275
- for (; gt < Xt; gt++)
1276
- ar[ir[gt]] = gt;
1277
- Te.encode = ge;
1278
- Te.decode = wn;
1279
- var cr = Te, hr = Ae(), Sn = Et, pr = kt, En = Vt, An = cr, ht = lt("engine.io-client:polling"), ur = pt, Tn = function() {
1280
- var t = Se, e = new t({ xdomain: !1 });
1284
+ for (; gt < qt; gt++)
1285
+ fr[lr[gt]] = gt;
1286
+ Oe.encode = ve;
1287
+ Oe.decode = En;
1288
+ var dr = Oe, yr = Ne(), An = Ht(), gr = kt, Tn = Jt, Nn = dr, ht = lt("engine.io-client:polling"), mr = pt, On = function() {
1289
+ var t = Ae, e = new t({ xdomain: !1 });
1281
1290
  return e.responseType != null;
1282
1291
  }();
1283
1292
  function pt(t) {
1284
1293
  var e = t && t.forceBase64;
1285
- (!Tn || e) && (this.supportsBinary = !1), hr.call(this, t);
1294
+ (!On || e) && (this.supportsBinary = !1), yr.call(this, t);
1286
1295
  }
1287
- En(pt, hr);
1296
+ Tn(pt, yr);
1288
1297
  pt.prototype.name = "polling";
1289
1298
  pt.prototype.doOpen = function() {
1290
1299
  this.poll();
@@ -1316,7 +1325,7 @@ pt.prototype.onData = function(t) {
1316
1325
  return e.onClose(), !1;
1317
1326
  e.onPacket(n);
1318
1327
  };
1319
- pr.decodePayload(t, this.socket.binaryType, r), this.readyState !== "closed" && (this.polling = !1, this.emit("pollComplete"), this.readyState === "open" ? this.poll() : ht('ignoring poll - transport state "%s"', this.readyState));
1328
+ gr.decodePayload(t, this.socket.binaryType, r), this.readyState !== "closed" && (this.polling = !1, this.emit("pollComplete"), this.readyState === "open" ? this.poll() : ht('ignoring poll - transport state "%s"', this.readyState));
1320
1329
  };
1321
1330
  pt.prototype.doClose = function() {
1322
1331
  var t = this;
@@ -1331,40 +1340,40 @@ pt.prototype.write = function(t) {
1331
1340
  var r = function() {
1332
1341
  e.writable = !0, e.emit("drain");
1333
1342
  };
1334
- pr.encodePayload(t, this.supportsBinary, function(n) {
1343
+ gr.encodePayload(t, this.supportsBinary, function(n) {
1335
1344
  e.doWrite(n, r);
1336
1345
  });
1337
1346
  };
1338
1347
  pt.prototype.uri = function() {
1339
1348
  var t = this.query || {}, e = this.secure ? "https" : "http", r = "";
1340
- this.timestampRequests !== !1 && (t[this.timestampParam] = An()), !this.supportsBinary && !t.sid && (t.b64 = 1), t = Sn.encode(t), this.port && (e === "https" && Number(this.port) !== 443 || e === "http" && Number(this.port) !== 80) && (r = ":" + this.port), t.length && (t = "?" + t);
1349
+ this.timestampRequests !== !1 && (t[this.timestampParam] = Nn()), !this.supportsBinary && !t.sid && (t.b64 = 1), t = An.encode(t), this.port && (e === "https" && Number(this.port) !== 443 || e === "http" && Number(this.port) !== 80) && (r = ":" + this.port), t.length && (t = "?" + t);
1341
1350
  var n = this.hostname.indexOf(":") !== -1;
1342
1351
  return e + "://" + (n ? "[" + this.hostname + "]" : this.hostname) + r + this.path + t;
1343
1352
  };
1344
- var Nn = Se, lr = ur, xn = St, On = Vt, me = lt("engine.io-client:polling-xhr"), Rn = we;
1345
- Ee.exports = At;
1346
- Ee.exports.Request = Y;
1347
- function Me() {
1353
+ var xn = Ae, vr = mr, In = St, Rn = Jt, ke = lt("engine.io-client:polling-xhr"), Bn = Ee;
1354
+ Te.exports = Et;
1355
+ Te.exports.Request = Y;
1356
+ function We() {
1348
1357
  }
1349
- function At(t) {
1350
- if (lr.call(this, t), this.requestTimeout = t.requestTimeout, this.extraHeaders = t.extraHeaders, typeof location < "u") {
1358
+ function Et(t) {
1359
+ if (vr.call(this, t), this.requestTimeout = t.requestTimeout, this.extraHeaders = t.extraHeaders, typeof location < "u") {
1351
1360
  var e = location.protocol === "https:", r = location.port;
1352
1361
  r || (r = e ? 443 : 80), this.xd = typeof location < "u" && t.hostname !== location.hostname || r !== t.port, this.xs = t.secure !== e;
1353
1362
  }
1354
1363
  }
1355
- On(At, lr);
1356
- At.prototype.supportsBinary = !0;
1357
- At.prototype.request = function(t) {
1364
+ Rn(Et, vr);
1365
+ Et.prototype.supportsBinary = !0;
1366
+ Et.prototype.request = function(t) {
1358
1367
  return t = t || {}, t.uri = this.uri(), t.xd = this.xd, t.xs = this.xs, t.agent = this.agent || !1, t.supportsBinary = this.supportsBinary, t.enablesXDR = this.enablesXDR, t.withCredentials = this.withCredentials, t.pfx = this.pfx, t.key = this.key, t.passphrase = this.passphrase, t.cert = this.cert, t.ca = this.ca, t.ciphers = this.ciphers, t.rejectUnauthorized = this.rejectUnauthorized, t.requestTimeout = this.requestTimeout, t.extraHeaders = this.extraHeaders, new Y(t);
1359
1368
  };
1360
- At.prototype.doWrite = function(t, e) {
1369
+ Et.prototype.doWrite = function(t, e) {
1361
1370
  var r = typeof t != "string" && t !== void 0, n = this.request({ method: "POST", data: t, isBinary: r }), o = this;
1362
1371
  n.on("success", e), n.on("error", function(i) {
1363
1372
  o.onError("xhr post error", i);
1364
1373
  }), this.sendXhr = n;
1365
1374
  };
1366
- At.prototype.doPoll = function() {
1367
- me("xhr poll");
1375
+ Et.prototype.doPoll = function() {
1376
+ ke("xhr poll");
1368
1377
  var t = this.request(), e = this;
1369
1378
  t.on("data", function(r) {
1370
1379
  e.onData(r);
@@ -1375,13 +1384,13 @@ At.prototype.doPoll = function() {
1375
1384
  function Y(t) {
1376
1385
  this.method = t.method || "GET", this.uri = t.uri, this.xd = !!t.xd, this.xs = !!t.xs, this.async = t.async !== !1, this.data = t.data !== void 0 ? t.data : null, this.agent = t.agent, this.isBinary = t.isBinary, this.supportsBinary = t.supportsBinary, this.enablesXDR = t.enablesXDR, this.withCredentials = t.withCredentials, this.requestTimeout = t.requestTimeout, this.pfx = t.pfx, this.key = t.key, this.passphrase = t.passphrase, this.cert = t.cert, this.ca = t.ca, this.ciphers = t.ciphers, this.rejectUnauthorized = t.rejectUnauthorized, this.extraHeaders = t.extraHeaders, this.create();
1377
1386
  }
1378
- xn(Y.prototype);
1387
+ In(Y.prototype);
1379
1388
  Y.prototype.create = function() {
1380
1389
  var t = { agent: this.agent, xdomain: this.xd, xscheme: this.xs, enablesXDR: this.enablesXDR };
1381
1390
  t.pfx = this.pfx, t.key = this.key, t.passphrase = this.passphrase, t.cert = this.cert, t.ca = this.ca, t.ciphers = this.ciphers, t.rejectUnauthorized = this.rejectUnauthorized;
1382
- var e = this.xhr = new Nn(t), r = this;
1391
+ var e = this.xhr = new xn(t), r = this;
1383
1392
  try {
1384
- me("xhr open %s: %s", this.method, this.uri), e.open(this.method, this.uri, this.async);
1393
+ ke("xhr open %s: %s", this.method, this.uri), e.open(this.method, this.uri, this.async);
1385
1394
  try {
1386
1395
  if (this.extraHeaders) {
1387
1396
  e.setDisableHeaderCheck && e.setDisableHeaderCheck(!0);
@@ -1413,7 +1422,7 @@ Y.prototype.create = function() {
1413
1422
  e.readyState === 4 && (e.status === 200 || e.status === 1223 ? r.onLoad() : setTimeout(function() {
1414
1423
  r.onError(typeof e.status == "number" ? e.status : 0);
1415
1424
  }, 0));
1416
- }, me("xhr data %s", this.data), e.send(this.data);
1425
+ }, ke("xhr data %s", this.data), e.send(this.data);
1417
1426
  } catch (o) {
1418
1427
  setTimeout(function() {
1419
1428
  r.onError(o);
@@ -1433,7 +1442,7 @@ Y.prototype.onError = function(t) {
1433
1442
  };
1434
1443
  Y.prototype.cleanup = function(t) {
1435
1444
  if (!(typeof this.xhr > "u" || this.xhr === null)) {
1436
- if (this.hasXDR() ? this.xhr.onload = this.xhr.onerror = Me : this.xhr.onreadystatechange = Me, t)
1445
+ if (this.hasXDR() ? this.xhr.onload = this.xhr.onerror = We : this.xhr.onreadystatechange = We, t)
1437
1446
  try {
1438
1447
  this.xhr.abort();
1439
1448
  } catch {
@@ -1465,34 +1474,34 @@ Y.requestsCount = 0;
1465
1474
  Y.requests = {};
1466
1475
  if (typeof document < "u") {
1467
1476
  if (typeof attachEvent == "function")
1468
- attachEvent("onunload", qe);
1477
+ attachEvent("onunload", Ke);
1469
1478
  else if (typeof addEventListener == "function") {
1470
- var In = "onpagehide" in Rn ? "pagehide" : "unload";
1471
- addEventListener(In, qe, !1);
1479
+ var _n = "onpagehide" in Bn ? "pagehide" : "unload";
1480
+ addEventListener(_n, Ke, !1);
1472
1481
  }
1473
1482
  }
1474
- function qe() {
1483
+ function Ke() {
1475
1484
  for (var t in Y.requests)
1476
1485
  Y.requests.hasOwnProperty(t) && Y.requests[t].abort();
1477
1486
  }
1478
- var _n = Ee.exports, Ne = ur, Bn = Vt, ze = we, Ln = Tt, Un = /\n/g, Dn = /\\n/g, Ft;
1479
- function Pn() {
1487
+ var Ln = Te.exports, xe = mr, Un = Jt, He = Ee, Dn = At, Pn = /\n/g, Fn = /\\n/g, Pt;
1488
+ function jn() {
1480
1489
  }
1481
- function Tt(t) {
1482
- Ne.call(this, t), this.query = this.query || {}, Ft || (Ft = ze.___eio = ze.___eio || []), this.index = Ft.length;
1490
+ function At(t) {
1491
+ xe.call(this, t), this.query = this.query || {}, Pt || (Pt = He.___eio = He.___eio || []), this.index = Pt.length;
1483
1492
  var e = this;
1484
- Ft.push(function(r) {
1493
+ Pt.push(function(r) {
1485
1494
  e.onData(r);
1486
1495
  }), this.query.j = this.index, typeof addEventListener == "function" && addEventListener("beforeunload", function() {
1487
- e.script && (e.script.onerror = Pn);
1496
+ e.script && (e.script.onerror = jn);
1488
1497
  }, !1);
1489
1498
  }
1490
- Bn(Tt, Ne);
1491
- Tt.prototype.supportsBinary = !1;
1492
- Tt.prototype.doClose = function() {
1493
- 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), Ne.prototype.doClose.call(this);
1499
+ Un(At, xe);
1500
+ At.prototype.supportsBinary = !1;
1501
+ At.prototype.doClose = function() {
1502
+ 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), xe.prototype.doClose.call(this);
1494
1503
  };
1495
- Tt.prototype.doPoll = function() {
1504
+ At.prototype.doPoll = function() {
1496
1505
  var t = this, e = document.createElement("script");
1497
1506
  this.script && (this.script.parentNode.removeChild(this.script), this.script = null), e.async = !0, e.src = this.uri(), e.onerror = function(o) {
1498
1507
  t.onError("jsonp poll error", o);
@@ -1505,7 +1514,7 @@ Tt.prototype.doPoll = function() {
1505
1514
  document.body.appendChild(o), document.body.removeChild(o);
1506
1515
  }, 100);
1507
1516
  };
1508
- Tt.prototype.doWrite = function(t, e) {
1517
+ At.prototype.doWrite = function(t, e) {
1509
1518
  var r = this;
1510
1519
  if (!this.form) {
1511
1520
  var n = document.createElement("form"), o = document.createElement("textarea"), i = this.iframeId = "eio_iframe_" + this.index, u;
@@ -1513,9 +1522,9 @@ Tt.prototype.doWrite = function(t, e) {
1513
1522
  }
1514
1523
  this.form.action = this.uri();
1515
1524
  function h() {
1516
- d(), e();
1525
+ f(), e();
1517
1526
  }
1518
- function d() {
1527
+ function f() {
1519
1528
  if (r.iframe)
1520
1529
  try {
1521
1530
  r.form.removeChild(r.iframe);
@@ -1530,8 +1539,8 @@ Tt.prototype.doWrite = function(t, e) {
1530
1539
  }
1531
1540
  u.id = r.iframeId, r.form.appendChild(u), r.iframe = u;
1532
1541
  }
1533
- d(), t = t.replace(Dn, `\\
1534
- `), this.area.value = t.replace(Un, "\\n");
1542
+ f(), t = t.replace(Fn, `\\
1543
+ `), this.area.value = t.replace(Pn, "\\n");
1535
1544
  try {
1536
1545
  this.form.submit();
1537
1546
  } catch {
@@ -1540,23 +1549,23 @@ Tt.prototype.doWrite = function(t, e) {
1540
1549
  r.iframe.readyState === "complete" && h();
1541
1550
  } : this.iframe.onload = h;
1542
1551
  };
1543
- const Fn = {}, jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1552
+ const Mn = {}, qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1544
1553
  __proto__: null,
1545
- default: Fn
1546
- }, Symbol.toStringTag, { value: "Module" })), Mn = /* @__PURE__ */ Ur(jn);
1547
- var xe = Ae(), qn = kt, zn = Et, Xn = Vt, Wn = cr, Kn = lt("engine.io-client:websocket"), Wt, Oe;
1548
- typeof WebSocket < "u" ? Wt = WebSocket : typeof self < "u" && (Wt = self.WebSocket || self.MozWebSocket);
1554
+ default: Mn
1555
+ }, Symbol.toStringTag, { value: "Module" })), zn = /* @__PURE__ */ Mr(qn);
1556
+ var Ie = Ne(), Xn = kt, Wn = Ht(), Kn = Jt, Hn = dr, Jn = lt("engine.io-client:websocket"), zt, Re;
1557
+ typeof WebSocket < "u" ? zt = WebSocket : typeof self < "u" && (zt = self.WebSocket || self.MozWebSocket);
1549
1558
  if (typeof window > "u")
1550
1559
  try {
1551
- Oe = Mn;
1560
+ Re = zn;
1552
1561
  } catch {
1553
1562
  }
1554
- var wt = Wt || Oe, Hn = st;
1563
+ var wt = zt || Re, Vn = st;
1555
1564
  function st(t) {
1556
1565
  var e = t && t.forceBase64;
1557
- e && (this.supportsBinary = !1), this.perMessageDeflate = t.perMessageDeflate, this.usingBrowserWebSocket = Wt && !t.forceNode, this.protocols = t.protocols, this.usingBrowserWebSocket || (wt = Oe), xe.call(this, t);
1566
+ e && (this.supportsBinary = !1), this.perMessageDeflate = t.perMessageDeflate, this.usingBrowserWebSocket = zt && !t.forceNode, this.protocols = t.protocols, this.usingBrowserWebSocket || (wt = Re), Ie.call(this, t);
1558
1567
  }
1559
- Xn(st, xe);
1568
+ Kn(st, Ie);
1560
1569
  st.prototype.name = "websocket";
1561
1570
  st.prototype.supportsBinary = !0;
1562
1571
  st.prototype.doOpen = function() {
@@ -1588,18 +1597,18 @@ st.prototype.write = function(t) {
1588
1597
  this.writable = !1;
1589
1598
  for (var r = t.length, n = 0, o = r; n < o; n++)
1590
1599
  (function(u) {
1591
- qn.encodePacket(u, e.supportsBinary, function(h) {
1600
+ Xn.encodePacket(u, e.supportsBinary, function(h) {
1592
1601
  if (!e.usingBrowserWebSocket) {
1593
- var d = {};
1594
- if (u.options && (d.compress = u.options.compress), e.perMessageDeflate) {
1602
+ var f = {};
1603
+ if (u.options && (f.compress = u.options.compress), e.perMessageDeflate) {
1595
1604
  var c = typeof h == "string" ? Buffer.byteLength(h) : h.length;
1596
- c < e.perMessageDeflate.threshold && (d.compress = !1);
1605
+ c < e.perMessageDeflate.threshold && (f.compress = !1);
1597
1606
  }
1598
1607
  }
1599
1608
  try {
1600
- e.usingBrowserWebSocket ? e.ws.send(h) : e.ws.send(h, d);
1609
+ e.usingBrowserWebSocket ? e.ws.send(h) : e.ws.send(h, f);
1601
1610
  } catch {
1602
- Kn("websocket closed before onclose event");
1611
+ Jn("websocket closed before onclose event");
1603
1612
  }
1604
1613
  --r || i();
1605
1614
  });
@@ -1611,62 +1620,62 @@ st.prototype.write = function(t) {
1611
1620
  }
1612
1621
  };
1613
1622
  st.prototype.onClose = function() {
1614
- xe.prototype.onClose.call(this);
1623
+ Ie.prototype.onClose.call(this);
1615
1624
  };
1616
1625
  st.prototype.doClose = function() {
1617
1626
  typeof this.ws < "u" && this.ws.close();
1618
1627
  };
1619
1628
  st.prototype.uri = function() {
1620
1629
  var t = this.query || {}, e = this.secure ? "wss" : "ws", r = "";
1621
- this.port && (e === "wss" && Number(this.port) !== 443 || e === "ws" && Number(this.port) !== 80) && (r = ":" + this.port), this.timestampRequests && (t[this.timestampParam] = Wn()), this.supportsBinary || (t.b64 = 1), t = zn.encode(t), t.length && (t = "?" + t);
1630
+ this.port && (e === "wss" && Number(this.port) !== 443 || e === "ws" && Number(this.port) !== 80) && (r = ":" + this.port), this.timestampRequests && (t[this.timestampParam] = Hn()), this.supportsBinary || (t.b64 = 1), t = Wn.encode(t), t.length && (t = "?" + t);
1622
1631
  var n = this.hostname.indexOf(":") !== -1;
1623
1632
  return e + "://" + (n ? "[" + this.hostname + "]" : this.hostname) + r + this.path + t;
1624
1633
  };
1625
1634
  st.prototype.check = function() {
1626
1635
  return !!wt && !("__initialize" in wt && this.name === st.prototype.name);
1627
1636
  };
1628
- var Jn = Se, Vn = _n, $n = Ln, Gn = Hn;
1629
- Jt.polling = Yn;
1630
- Jt.websocket = Gn;
1631
- function Yn(t) {
1637
+ var $n = Ae, Gn = Ln, Yn = Dn, Qn = Vn;
1638
+ Kt.polling = Zn;
1639
+ Kt.websocket = Qn;
1640
+ function Zn(t) {
1632
1641
  var e, r = !1, n = !1, o = t.jsonp !== !1;
1633
1642
  if (typeof location < "u") {
1634
1643
  var i = location.protocol === "https:", u = location.port;
1635
1644
  u || (u = i ? 443 : 80), r = t.hostname !== location.hostname || u !== t.port, n = t.secure !== i;
1636
1645
  }
1637
- if (t.xdomain = r, t.xscheme = n, e = new Jn(t), "open" in e && !t.forceJSONP)
1638
- return new Vn(t);
1646
+ if (t.xdomain = r, t.xscheme = n, e = new $n(t), "open" in e && !t.forceJSONP)
1647
+ return new Gn(t);
1639
1648
  if (!o)
1640
1649
  throw new Error("JSONP disabled");
1641
- return new $n(t);
1650
+ return new Yn(t);
1642
1651
  }
1643
- var Qn = [].indexOf, fr = function(t, e) {
1644
- if (Qn)
1652
+ var to = [].indexOf, kr = function(t, e) {
1653
+ if (to)
1645
1654
  return t.indexOf(e);
1646
1655
  for (var r = 0; r < t.length; ++r)
1647
1656
  if (t[r] === e)
1648
1657
  return r;
1649
1658
  return -1;
1650
- }, Zn = Jt, to = St, G = lt("engine.io-client:socket"), eo = fr, dr = kt, Xe = Ye, ro = Et, no = W;
1659
+ }, eo = Kt, ro = St, G = lt("engine.io-client:socket"), no = kr, br = kt, Je = or, oo = Ht(), so = W;
1651
1660
  function W(t, e) {
1652
1661
  if (!(this instanceof W))
1653
1662
  return new W(t, e);
1654
- e = e || {}, t && typeof t == "object" && (e = t, t = null), t ? (t = Xe(t), e.hostname = t.host, e.secure = t.protocol === "https" || t.protocol === "wss", e.port = t.port, t.query && (e.query = t.query)) : e.host && (e.hostname = Xe(e.host).host), this.secure = e.secure != null ? e.secure : typeof location < "u" && location.protocol === "https:", e.hostname && !e.port && (e.port = this.secure ? "443" : "80"), this.agent = e.agent || !1, this.hostname = e.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = e.port || (typeof location < "u" && location.port ? location.port : this.secure ? 443 : 80), this.query = e.query || {}, typeof this.query == "string" && (this.query = ro.decode(this.query)), this.upgrade = e.upgrade !== !1, this.path = (e.path || "/engine.io").replace(/\/$/, "") + "/", this.forceJSONP = !!e.forceJSONP, this.jsonp = e.jsonp !== !1, this.forceBase64 = !!e.forceBase64, this.enablesXDR = !!e.enablesXDR, this.withCredentials = e.withCredentials !== !1, this.timestampParam = e.timestampParam || "t", this.timestampRequests = e.timestampRequests, this.transports = e.transports || ["polling", "websocket"], this.transportOptions = e.transportOptions || {}, this.readyState = "", this.writeBuffer = [], this.prevBufferLen = 0, this.policyPort = e.policyPort || 843, this.rememberUpgrade = e.rememberUpgrade || !1, this.binaryType = null, this.onlyBinaryUpgrades = e.onlyBinaryUpgrades, this.perMessageDeflate = e.perMessageDeflate !== !1 ? e.perMessageDeflate || {} : !1, this.perMessageDeflate === !0 && (this.perMessageDeflate = {}), this.perMessageDeflate && this.perMessageDeflate.threshold == null && (this.perMessageDeflate.threshold = 1024), this.pfx = e.pfx || void 0, this.key = e.key || void 0, this.passphrase = e.passphrase || void 0, this.cert = e.cert || void 0, this.ca = e.ca || void 0, this.ciphers = e.ciphers || void 0, this.rejectUnauthorized = e.rejectUnauthorized === void 0 ? !0 : e.rejectUnauthorized, this.forceNode = !!e.forceNode, this.isReactNative = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative", (typeof self > "u" || this.isReactNative) && (e.extraHeaders && Object.keys(e.extraHeaders).length > 0 && (this.extraHeaders = e.extraHeaders), e.localAddress && (this.localAddress = e.localAddress)), this.id = null, this.upgrades = null, this.pingInterval = null, this.pingTimeout = null, this.pingIntervalTimer = null, this.pingTimeoutTimer = null, this.open();
1663
+ e = e || {}, t && typeof t == "object" && (e = t, t = null), t ? (t = Je(t), e.hostname = t.host, e.secure = t.protocol === "https" || t.protocol === "wss", e.port = t.port, t.query && (e.query = t.query)) : e.host && (e.hostname = Je(e.host).host), this.secure = e.secure != null ? e.secure : typeof location < "u" && location.protocol === "https:", e.hostname && !e.port && (e.port = this.secure ? "443" : "80"), this.agent = e.agent || !1, this.hostname = e.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = e.port || (typeof location < "u" && location.port ? location.port : this.secure ? 443 : 80), this.query = e.query || {}, typeof this.query == "string" && (this.query = oo.decode(this.query)), this.upgrade = e.upgrade !== !1, this.path = (e.path || "/engine.io").replace(/\/$/, "") + "/", this.forceJSONP = !!e.forceJSONP, this.jsonp = e.jsonp !== !1, this.forceBase64 = !!e.forceBase64, this.enablesXDR = !!e.enablesXDR, this.withCredentials = e.withCredentials !== !1, this.timestampParam = e.timestampParam || "t", this.timestampRequests = e.timestampRequests, this.transports = e.transports || ["polling", "websocket"], this.transportOptions = e.transportOptions || {}, this.readyState = "", this.writeBuffer = [], this.prevBufferLen = 0, this.policyPort = e.policyPort || 843, this.rememberUpgrade = e.rememberUpgrade || !1, this.binaryType = null, this.onlyBinaryUpgrades = e.onlyBinaryUpgrades, this.perMessageDeflate = e.perMessageDeflate !== !1 ? e.perMessageDeflate || {} : !1, this.perMessageDeflate === !0 && (this.perMessageDeflate = {}), this.perMessageDeflate && this.perMessageDeflate.threshold == null && (this.perMessageDeflate.threshold = 1024), this.pfx = e.pfx || void 0, this.key = e.key || void 0, this.passphrase = e.passphrase || void 0, this.cert = e.cert || void 0, this.ca = e.ca || void 0, this.ciphers = e.ciphers || void 0, this.rejectUnauthorized = e.rejectUnauthorized === void 0 ? !0 : e.rejectUnauthorized, this.forceNode = !!e.forceNode, this.isReactNative = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative", (typeof self > "u" || this.isReactNative) && (e.extraHeaders && Object.keys(e.extraHeaders).length > 0 && (this.extraHeaders = e.extraHeaders), e.localAddress && (this.localAddress = e.localAddress)), this.id = null, this.upgrades = null, this.pingInterval = null, this.pingTimeout = null, this.pingIntervalTimer = null, this.pingTimeoutTimer = null, this.open();
1655
1664
  }
1656
1665
  W.priorWebsocketSuccess = !1;
1657
- to(W.prototype);
1658
- W.protocol = dr.protocol;
1666
+ ro(W.prototype);
1667
+ W.protocol = br.protocol;
1659
1668
  W.Socket = W;
1660
- W.Transport = Ae();
1661
- W.transports = Jt;
1669
+ W.Transport = Ne();
1670
+ W.transports = Kt;
1662
1671
  W.parser = kt;
1663
1672
  W.prototype.createTransport = function(t) {
1664
1673
  G('creating transport "%s"', t);
1665
- var e = oo(this.query);
1666
- e.EIO = dr.protocol, e.transport = t;
1674
+ var e = io(this.query);
1675
+ e.EIO = br.protocol, e.transport = t;
1667
1676
  var r = this.transportOptions[t] || {};
1668
1677
  this.id && (e.sid = this.id);
1669
- var n = new Zn[t]({
1678
+ var n = new eo[t]({
1670
1679
  query: e,
1671
1680
  socket: this,
1672
1681
  agent: r.agent || this.agent,
@@ -1699,7 +1708,7 @@ W.prototype.createTransport = function(t) {
1699
1708
  });
1700
1709
  return n;
1701
1710
  };
1702
- function oo(t) {
1711
+ function io(t) {
1703
1712
  var e = {};
1704
1713
  for (var r in t)
1705
1714
  t.hasOwnProperty(r) && (e[r] = t[r]);
@@ -1773,16 +1782,16 @@ W.prototype.probe = function(t) {
1773
1782
  function h() {
1774
1783
  u("transport closed");
1775
1784
  }
1776
- function d() {
1785
+ function f() {
1777
1786
  u("socket closed");
1778
1787
  }
1779
1788
  function c(p) {
1780
1789
  e && p.name !== e.name && (G('"%s" works - aborting "%s"', p.name, e.name), i());
1781
1790
  }
1782
1791
  function l() {
1783
- e.removeListener("open", o), e.removeListener("error", u), e.removeListener("close", h), n.removeListener("close", d), n.removeListener("upgrading", c);
1792
+ e.removeListener("open", o), e.removeListener("error", u), e.removeListener("close", h), n.removeListener("close", f), n.removeListener("upgrading", c);
1784
1793
  }
1785
- e.once("open", o), e.once("error", u), e.once("close", h), this.once("close", d), this.once("upgrading", c), e.open();
1794
+ e.once("open", o), e.once("error", u), e.once("close", h), this.once("close", f), this.once("upgrading", c), e.open();
1786
1795
  };
1787
1796
  W.prototype.onOpen = function() {
1788
1797
  if (G("socket open"), this.readyState = "open", W.priorWebsocketSuccess = this.transport.name === "websocket", this.emit("open"), this.flush(), this.readyState === "open" && this.upgrade && this.transport.pause) {
@@ -1884,165 +1893,173 @@ W.prototype.onClose = function(t, e) {
1884
1893
  };
1885
1894
  W.prototype.filterUpgrades = function(t) {
1886
1895
  for (var e = [], r = 0, n = t.length; r < n; r++)
1887
- ~eo(this.transports, t[r]) && e.push(t[r]);
1896
+ ~no(this.transports, t[r]) && e.push(t[r]);
1888
1897
  return e;
1889
1898
  };
1890
- Ce.exports = no;
1891
- Ce.exports.parser = kt;
1892
- var so = Ce.exports, yr = { exports: {} }, io = ao;
1893
- function ao(t, e) {
1894
- var r = [];
1895
- e = e || 0;
1896
- for (var n = e || 0; n < t.length; n++)
1897
- r[n - e] = t[n];
1898
- return r;
1899
+ Se.exports = so;
1900
+ Se.exports.parser = kt;
1901
+ var ao = Se.exports, Ve = { exports: {} }, ce, $e;
1902
+ function co() {
1903
+ if ($e)
1904
+ return ce;
1905
+ $e = 1, ce = t;
1906
+ function t(e, r) {
1907
+ var n = [];
1908
+ r = r || 0;
1909
+ for (var o = r || 0; o < e.length; o++)
1910
+ n[o - r] = e[o];
1911
+ return n;
1912
+ }
1913
+ return ce;
1899
1914
  }
1900
- var gr = co;
1901
- function co(t, e, r) {
1915
+ var Cr = ho;
1916
+ function ho(t, e, r) {
1902
1917
  return t.on(e, r), {
1903
1918
  destroy: function() {
1904
1919
  t.removeListener(e, r);
1905
1920
  }
1906
1921
  };
1907
1922
  }
1908
- var We = [].slice, mr = function(t, e) {
1923
+ var Ge = [].slice, wr = function(t, e) {
1909
1924
  if (typeof e == "string" && (e = t[e]), typeof e != "function")
1910
1925
  throw new Error("bind() requires a function");
1911
- var r = We.call(arguments, 2);
1926
+ var r = Ge.call(arguments, 2);
1912
1927
  return function() {
1913
- return e.apply(t, r.concat(We.call(arguments)));
1928
+ return e.apply(t, r.concat(Ge.call(arguments)));
1914
1929
  };
1915
- };
1916
- (function(t, e) {
1917
- var r = Kt, n = St, o = io, i = gr, u = mr, h = lt("socket.io-client:socket"), d = Et, c = nr;
1918
- t.exports = a;
1919
- var l = {
1920
- connect: 1,
1921
- connect_error: 1,
1922
- connect_timeout: 1,
1923
- connecting: 1,
1924
- disconnect: 1,
1925
- error: 1,
1926
- reconnect: 1,
1927
- reconnect_attempt: 1,
1928
- reconnect_failed: 1,
1929
- reconnect_error: 1,
1930
- reconnecting: 1,
1931
- ping: 1,
1932
- pong: 1
1933
- }, p = n.prototype.emit;
1934
- function a(s, f, y) {
1935
- this.io = s, this.nsp = f, this.json = this, this.ids = 0, this.acks = {}, this.receiveBuffer = [], this.sendBuffer = [], this.connected = !1, this.disconnected = !0, this.flags = {}, y && y.query && (this.query = y.query), this.io.autoConnect && this.open();
1936
- }
1937
- n(a.prototype), a.prototype.subEvents = function() {
1938
- if (!this.subs) {
1939
- var s = this.io;
1940
- this.subs = [
1941
- i(s, "open", u(this, "onopen")),
1942
- i(s, "packet", u(this, "onpacket")),
1943
- i(s, "close", u(this, "onclose"))
1944
- ];
1930
+ }, Ye;
1931
+ function Sr() {
1932
+ return Ye || (Ye = 1, function(t, e) {
1933
+ var r = Xt, n = St, o = co(), i = Cr, u = wr, h = lt("socket.io-client:socket"), f = Ht(), c = hr();
1934
+ t.exports = a;
1935
+ var l = {
1936
+ connect: 1,
1937
+ connect_error: 1,
1938
+ connect_timeout: 1,
1939
+ connecting: 1,
1940
+ disconnect: 1,
1941
+ error: 1,
1942
+ reconnect: 1,
1943
+ reconnect_attempt: 1,
1944
+ reconnect_failed: 1,
1945
+ reconnect_error: 1,
1946
+ reconnecting: 1,
1947
+ ping: 1,
1948
+ pong: 1
1949
+ }, p = n.prototype.emit;
1950
+ function a(s, d, y) {
1951
+ this.io = s, this.nsp = d, this.json = this, this.ids = 0, this.acks = {}, this.receiveBuffer = [], this.sendBuffer = [], this.connected = !1, this.disconnected = !0, this.flags = {}, y && y.query && (this.query = y.query), this.io.autoConnect && this.open();
1945
1952
  }
1946
- }, a.prototype.open = a.prototype.connect = function() {
1947
- return this.connected ? this : (this.subEvents(), this.io.reconnecting || this.io.open(), this.io.readyState === "open" && this.onopen(), this.emit("connecting"), this);
1948
- }, a.prototype.send = function() {
1949
- var s = o(arguments);
1950
- return s.unshift("message"), this.emit.apply(this, s), this;
1951
- }, a.prototype.emit = function(s) {
1952
- if (l.hasOwnProperty(s))
1953
- return p.apply(this, arguments), this;
1954
- var f = o(arguments), y = {
1955
- type: (this.flags.binary !== void 0 ? this.flags.binary : c(f)) ? r.BINARY_EVENT : r.EVENT,
1956
- data: f
1957
- };
1958
- return y.options = {}, y.options.compress = !this.flags || this.flags.compress !== !1, typeof f[f.length - 1] == "function" && (h("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.flags = {}, this;
1959
- }, a.prototype.packet = function(s) {
1960
- s.nsp = this.nsp, this.io.packet(s);
1961
- }, a.prototype.onopen = function() {
1962
- if (h("transport is open - connecting"), this.nsp !== "/")
1963
- if (this.query) {
1964
- var s = typeof this.query == "object" ? d.encode(this.query) : this.query;
1965
- h("sending connect packet with query %s", s), this.packet({ type: r.CONNECT, query: s });
1966
- } else
1967
- this.packet({ type: r.CONNECT });
1968
- }, a.prototype.onclose = function(s) {
1969
- h("close (%s)", s), this.connected = !1, this.disconnected = !0, delete this.id, this.emit("disconnect", s);
1970
- }, a.prototype.onpacket = function(s) {
1971
- var f = s.nsp === this.nsp, y = s.type === r.ERROR && s.nsp === "/";
1972
- if (!(!f && !y))
1973
- switch (s.type) {
1974
- case r.CONNECT:
1975
- this.onconnect();
1976
- break;
1977
- case r.EVENT:
1978
- this.onevent(s);
1979
- break;
1980
- case r.BINARY_EVENT:
1981
- this.onevent(s);
1982
- break;
1983
- case r.ACK:
1984
- this.onack(s);
1985
- break;
1986
- case r.BINARY_ACK:
1987
- this.onack(s);
1988
- break;
1989
- case r.DISCONNECT:
1990
- this.ondisconnect();
1991
- break;
1992
- case r.ERROR:
1993
- this.emit("error", s.data);
1994
- break;
1953
+ n(a.prototype), a.prototype.subEvents = function() {
1954
+ if (!this.subs) {
1955
+ var s = this.io;
1956
+ this.subs = [
1957
+ i(s, "open", u(this, "onopen")),
1958
+ i(s, "packet", u(this, "onpacket")),
1959
+ i(s, "close", u(this, "onclose"))
1960
+ ];
1995
1961
  }
1996
- }, a.prototype.onevent = function(s) {
1997
- var f = s.data || [];
1998
- h("emitting event %j", f), s.id != null && (h("attaching ack callback to event"), f.push(this.ack(s.id))), this.connected ? p.apply(this, f) : this.receiveBuffer.push(f);
1999
- }, a.prototype.ack = function(s) {
2000
- var f = this, y = !1;
2001
- return function() {
2002
- if (!y) {
2003
- y = !0;
2004
- var g = o(arguments);
2005
- h("sending ack %j", g), f.packet({
2006
- type: c(g) ? r.BINARY_ACK : r.ACK,
2007
- id: s,
2008
- data: g
2009
- });
1962
+ }, a.prototype.open = a.prototype.connect = function() {
1963
+ return this.connected ? this : (this.subEvents(), this.io.reconnecting || this.io.open(), this.io.readyState === "open" && this.onopen(), this.emit("connecting"), this);
1964
+ }, a.prototype.send = function() {
1965
+ var s = o(arguments);
1966
+ return s.unshift("message"), this.emit.apply(this, s), this;
1967
+ }, a.prototype.emit = function(s) {
1968
+ if (l.hasOwnProperty(s))
1969
+ return p.apply(this, arguments), this;
1970
+ var d = o(arguments), y = {
1971
+ type: (this.flags.binary !== void 0 ? this.flags.binary : c(d)) ? r.BINARY_EVENT : r.EVENT,
1972
+ data: d
1973
+ };
1974
+ return y.options = {}, y.options.compress = !this.flags || this.flags.compress !== !1, typeof d[d.length - 1] == "function" && (h("emitting packet with ack id %d", this.ids), this.acks[this.ids] = d.pop(), y.id = this.ids++), this.connected ? this.packet(y) : this.sendBuffer.push(y), this.flags = {}, this;
1975
+ }, a.prototype.packet = function(s) {
1976
+ s.nsp = this.nsp, this.io.packet(s);
1977
+ }, a.prototype.onopen = function() {
1978
+ if (h("transport is open - connecting"), this.nsp !== "/")
1979
+ if (this.query) {
1980
+ var s = typeof this.query == "object" ? f.encode(this.query) : this.query;
1981
+ h("sending connect packet with query %s", s), this.packet({ type: r.CONNECT, query: s });
1982
+ } else
1983
+ this.packet({ type: r.CONNECT });
1984
+ }, a.prototype.onclose = function(s) {
1985
+ h("close (%s)", s), this.connected = !1, this.disconnected = !0, delete this.id, this.emit("disconnect", s);
1986
+ }, a.prototype.onpacket = function(s) {
1987
+ var d = s.nsp === this.nsp, y = s.type === r.ERROR && s.nsp === "/";
1988
+ if (!(!d && !y))
1989
+ switch (s.type) {
1990
+ case r.CONNECT:
1991
+ this.onconnect();
1992
+ break;
1993
+ case r.EVENT:
1994
+ this.onevent(s);
1995
+ break;
1996
+ case r.BINARY_EVENT:
1997
+ this.onevent(s);
1998
+ break;
1999
+ case r.ACK:
2000
+ this.onack(s);
2001
+ break;
2002
+ case r.BINARY_ACK:
2003
+ this.onack(s);
2004
+ break;
2005
+ case r.DISCONNECT:
2006
+ this.ondisconnect();
2007
+ break;
2008
+ case r.ERROR:
2009
+ this.emit("error", s.data);
2010
+ break;
2011
+ }
2012
+ }, a.prototype.onevent = function(s) {
2013
+ var d = s.data || [];
2014
+ h("emitting event %j", d), s.id != null && (h("attaching ack callback to event"), d.push(this.ack(s.id))), this.connected ? p.apply(this, d) : this.receiveBuffer.push(d);
2015
+ }, a.prototype.ack = function(s) {
2016
+ var d = this, y = !1;
2017
+ return function() {
2018
+ if (!y) {
2019
+ y = !0;
2020
+ var g = o(arguments);
2021
+ h("sending ack %j", g), d.packet({
2022
+ type: c(g) ? r.BINARY_ACK : r.ACK,
2023
+ id: s,
2024
+ data: g
2025
+ });
2026
+ }
2027
+ };
2028
+ }, a.prototype.onack = function(s) {
2029
+ var d = this.acks[s.id];
2030
+ typeof d == "function" ? (h("calling ack %s with %j", s.id, s.data), d.apply(this, s.data), delete this.acks[s.id]) : h("bad ack %s", s.id);
2031
+ }, a.prototype.onconnect = function() {
2032
+ this.connected = !0, this.disconnected = !1, this.emitBuffered(), this.emit("connect");
2033
+ }, a.prototype.emitBuffered = function() {
2034
+ var s;
2035
+ for (s = 0; s < this.receiveBuffer.length; s++)
2036
+ p.apply(this, this.receiveBuffer[s]);
2037
+ for (this.receiveBuffer = [], s = 0; s < this.sendBuffer.length; s++)
2038
+ this.packet(this.sendBuffer[s]);
2039
+ this.sendBuffer = [];
2040
+ }, a.prototype.ondisconnect = function() {
2041
+ h("server disconnect (%s)", this.nsp), this.destroy(), this.onclose("io server disconnect");
2042
+ }, a.prototype.destroy = function() {
2043
+ if (this.subs) {
2044
+ for (var s = 0; s < this.subs.length; s++)
2045
+ this.subs[s].destroy();
2046
+ this.subs = null;
2010
2047
  }
2048
+ this.io.destroy(this);
2049
+ }, a.prototype.close = a.prototype.disconnect = function() {
2050
+ return this.connected && (h("performing disconnect (%s)", this.nsp), this.packet({ type: r.DISCONNECT })), this.destroy(), this.connected && this.onclose("io client disconnect"), this;
2051
+ }, a.prototype.compress = function(s) {
2052
+ return this.flags.compress = s, this;
2053
+ }, a.prototype.binary = function(s) {
2054
+ return this.flags.binary = s, this;
2011
2055
  };
2012
- }, a.prototype.onack = function(s) {
2013
- var f = this.acks[s.id];
2014
- typeof f == "function" ? (h("calling ack %s with %j", s.id, s.data), f.apply(this, s.data), delete this.acks[s.id]) : h("bad ack %s", s.id);
2015
- }, a.prototype.onconnect = function() {
2016
- this.connected = !0, this.disconnected = !1, this.emitBuffered(), this.emit("connect");
2017
- }, a.prototype.emitBuffered = function() {
2018
- var s;
2019
- for (s = 0; s < this.receiveBuffer.length; s++)
2020
- p.apply(this, this.receiveBuffer[s]);
2021
- for (this.receiveBuffer = [], s = 0; s < this.sendBuffer.length; s++)
2022
- this.packet(this.sendBuffer[s]);
2023
- this.sendBuffer = [];
2024
- }, a.prototype.ondisconnect = function() {
2025
- h("server disconnect (%s)", this.nsp), this.destroy(), this.onclose("io server disconnect");
2026
- }, a.prototype.destroy = function() {
2027
- if (this.subs) {
2028
- for (var s = 0; s < this.subs.length; s++)
2029
- this.subs[s].destroy();
2030
- this.subs = null;
2031
- }
2032
- this.io.destroy(this);
2033
- }, a.prototype.close = a.prototype.disconnect = function() {
2034
- return this.connected && (h("performing disconnect (%s)", this.nsp), this.packet({ type: r.DISCONNECT })), this.destroy(), this.connected && this.onclose("io client disconnect"), this;
2035
- }, a.prototype.compress = function(s) {
2036
- return this.flags.compress = s, this;
2037
- }, a.prototype.binary = function(s) {
2038
- return this.flags.binary = s, this;
2039
- };
2040
- })(yr);
2041
- var vr = yr.exports, ho = Nt;
2042
- function Nt(t) {
2056
+ }(Ve)), Ve.exports;
2057
+ }
2058
+ var po = Tt;
2059
+ function Tt(t) {
2043
2060
  t = t || {}, this.ms = t.min || 100, this.max = t.max || 1e4, this.factor = t.factor || 2, this.jitter = t.jitter > 0 && t.jitter <= 1 ? t.jitter : 0, this.attempts = 0;
2044
2061
  }
2045
- Nt.prototype.duration = function() {
2062
+ Tt.prototype.duration = function() {
2046
2063
  var t = this.ms * Math.pow(this.factor, this.attempts++);
2047
2064
  if (this.jitter) {
2048
2065
  var e = Math.random(), r = Math.floor(e * this.jitter * t);
@@ -2050,43 +2067,43 @@ Nt.prototype.duration = function() {
2050
2067
  }
2051
2068
  return Math.min(t, this.max) | 0;
2052
2069
  };
2053
- Nt.prototype.reset = function() {
2070
+ Tt.prototype.reset = function() {
2054
2071
  this.attempts = 0;
2055
2072
  };
2056
- Nt.prototype.setMin = function(t) {
2073
+ Tt.prototype.setMin = function(t) {
2057
2074
  this.ms = t;
2058
2075
  };
2059
- Nt.prototype.setMax = function(t) {
2076
+ Tt.prototype.setMax = function(t) {
2060
2077
  this.max = t;
2061
2078
  };
2062
- Nt.prototype.setJitter = function(t) {
2079
+ Tt.prototype.setJitter = function(t) {
2063
2080
  this.jitter = t;
2064
2081
  };
2065
- var po = so, uo = vr, lo = St, fo = Kt, ft = gr, Ct = mr, Z = lt("socket.io-client:manager"), kr = fr, yo = ho, br = Object.prototype.hasOwnProperty, Ke = K;
2082
+ var uo = ao, lo = Sr(), fo = St, yo = Xt, ft = Cr, Ct = wr, Z = lt("socket.io-client:manager"), Er = kr, go = po, Ar = Object.prototype.hasOwnProperty, Qe = K;
2066
2083
  function K(t, e) {
2067
2084
  if (!(this instanceof K))
2068
2085
  return new K(t, e);
2069
- t && typeof t == "object" && (e = t, t = void 0), e = e || {}, e.path = e.path || "/socket.io", this.nsps = {}, this.subs = [], this.opts = e, this.reconnection(e.reconnection !== !1), this.reconnectionAttempts(e.reconnectionAttempts || 1 / 0), this.reconnectionDelay(e.reconnectionDelay || 1e3), this.reconnectionDelayMax(e.reconnectionDelayMax || 5e3), this.randomizationFactor(e.randomizationFactor || 0.5), this.backoff = new yo({
2086
+ t && typeof t == "object" && (e = t, t = void 0), e = e || {}, e.path = e.path || "/socket.io", this.nsps = {}, this.subs = [], this.opts = e, this.reconnection(e.reconnection !== !1), this.reconnectionAttempts(e.reconnectionAttempts || 1 / 0), this.reconnectionDelay(e.reconnectionDelay || 1e3), this.reconnectionDelayMax(e.reconnectionDelayMax || 5e3), this.randomizationFactor(e.randomizationFactor || 0.5), this.backoff = new go({
2070
2087
  min: this.reconnectionDelay(),
2071
2088
  max: this.reconnectionDelayMax(),
2072
2089
  jitter: this.randomizationFactor()
2073
2090
  }), this.timeout(e.timeout == null ? 2e4 : e.timeout), this.readyState = "closed", this.uri = t, this.connecting = [], this.lastPing = null, this.encoding = !1, this.packetBuffer = [];
2074
- var r = e.parser || fo;
2091
+ var r = e.parser || yo;
2075
2092
  this.encoder = new r.Encoder(), this.decoder = new r.Decoder(), this.autoConnect = e.autoConnect !== !1, this.autoConnect && this.open();
2076
2093
  }
2077
2094
  K.prototype.emitAll = function() {
2078
2095
  this.emit.apply(this, arguments);
2079
2096
  for (var t in this.nsps)
2080
- br.call(this.nsps, t) && this.nsps[t].emit.apply(this.nsps[t], arguments);
2097
+ Ar.call(this.nsps, t) && this.nsps[t].emit.apply(this.nsps[t], arguments);
2081
2098
  };
2082
2099
  K.prototype.updateSocketIds = function() {
2083
2100
  for (var t in this.nsps)
2084
- br.call(this.nsps, t) && (this.nsps[t].id = this.generateId(t));
2101
+ Ar.call(this.nsps, t) && (this.nsps[t].id = this.generateId(t));
2085
2102
  };
2086
2103
  K.prototype.generateId = function(t) {
2087
2104
  return (t === "/" ? "" : t + "#") + this.engine.id;
2088
2105
  };
2089
- lo(K.prototype);
2106
+ fo(K.prototype);
2090
2107
  K.prototype.reconnection = function(t) {
2091
2108
  return arguments.length ? (this._reconnection = !!t, this) : this._reconnection;
2092
2109
  };
@@ -2111,15 +2128,15 @@ K.prototype.maybeReconnectOnOpen = function() {
2111
2128
  K.prototype.open = K.prototype.connect = function(t, e) {
2112
2129
  if (Z("readyState %s", this.readyState), ~this.readyState.indexOf("open"))
2113
2130
  return this;
2114
- Z("opening %s", this.uri), this.engine = po(this.uri, this.opts);
2131
+ Z("opening %s", this.uri), this.engine = uo(this.uri, this.opts);
2115
2132
  var r = this.engine, n = this;
2116
2133
  this.readyState = "opening", this.skipReconnect = !1;
2117
2134
  var o = ft(r, "open", function() {
2118
2135
  n.onopen(), t && t();
2119
- }), i = ft(r, "error", function(d) {
2120
- if (Z("connect_error"), n.cleanup(), n.readyState = "closed", n.emitAll("connect_error", d), t) {
2136
+ }), i = ft(r, "error", function(f) {
2137
+ if (Z("connect_error"), n.cleanup(), n.readyState = "closed", n.emitAll("connect_error", f), t) {
2121
2138
  var c = new Error("Connection error");
2122
- c.data = d, t(c);
2139
+ c.data = f, t(c);
2123
2140
  } else
2124
2141
  n.maybeReconnectOnOpen();
2125
2142
  });
@@ -2160,19 +2177,19 @@ K.prototype.onerror = function(t) {
2160
2177
  K.prototype.socket = function(t, e) {
2161
2178
  var r = this.nsps[t];
2162
2179
  if (!r) {
2163
- r = new uo(this, t, e), this.nsps[t] = r;
2180
+ r = new lo(this, t, e), this.nsps[t] = r;
2164
2181
  var n = this;
2165
2182
  r.on("connecting", o), r.on("connect", function() {
2166
2183
  r.id = n.generateId(t);
2167
2184
  }), this.autoConnect && o();
2168
2185
  }
2169
2186
  function o() {
2170
- ~kr(n.connecting, r) || n.connecting.push(r);
2187
+ ~Er(n.connecting, r) || n.connecting.push(r);
2171
2188
  }
2172
2189
  return r;
2173
2190
  };
2174
2191
  K.prototype.destroy = function(t) {
2175
- var e = kr(this.connecting, t);
2192
+ var e = Er(this.connecting, t);
2176
2193
  ~e && this.connecting.splice(e, 1), !this.connecting.length && this.close();
2177
2194
  };
2178
2195
  K.prototype.packet = function(t) {
@@ -2230,42 +2247,42 @@ K.prototype.onreconnect = function() {
2230
2247
  this.reconnecting = !1, this.backoff.reset(), this.updateSocketIds(), this.emitAll("reconnect", t);
2231
2248
  };
2232
2249
  (function(t, e) {
2233
- var r = Jr, n = Kt, o = Ke, i = lt("socket.io-client");
2250
+ var r = Qr, n = Xt, o = Qe, i = lt("socket.io-client");
2234
2251
  t.exports = e = h;
2235
2252
  var u = e.managers = {};
2236
- function h(d, c) {
2237
- typeof d == "object" && (c = d, d = void 0), c = c || {};
2238
- var l = r(d), p = l.source, a = l.id, s = l.path, f = u[a] && s in u[a].nsps, y = c.forceNew || c["force new connection"] || c.multiplex === !1 || f, g;
2253
+ function h(f, c) {
2254
+ typeof f == "object" && (c = f, f = void 0), c = c || {};
2255
+ var l = r(f), p = l.source, a = l.id, s = l.path, d = u[a] && s in u[a].nsps, y = c.forceNew || c["force new connection"] || c.multiplex === !1 || d, g;
2239
2256
  return y ? (i("ignoring socket cache for %s", p), g = o(p, c)) : (u[a] || (i("new io instance for %s", p), u[a] = o(p, c)), g = u[a]), l.query && !c.query && (c.query = l.query), g.socket(l.path, c);
2240
2257
  }
2241
- e.protocol = n.protocol, e.connect = h, e.Manager = Ke, e.Socket = vr;
2242
- })(pe, pe.exports);
2243
- var go = pe.exports;
2244
- const mo = /* @__PURE__ */ Lr(go);
2245
- let jt;
2246
- const vo = new Uint8Array(16);
2247
- function ko() {
2248
- if (!jt && (jt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !jt))
2258
+ e.protocol = n.protocol, e.connect = h, e.Manager = Qe, e.Socket = Sr();
2259
+ })(le, le.exports);
2260
+ var mo = le.exports;
2261
+ const vo = /* @__PURE__ */ jr(mo);
2262
+ let Ft;
2263
+ const ko = new Uint8Array(16);
2264
+ function bo() {
2265
+ if (!Ft && (Ft = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ft))
2249
2266
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
2250
- return jt(vo);
2267
+ return Ft(ko);
2251
2268
  }
2252
2269
  const Q = [];
2253
2270
  for (let t = 0; t < 256; ++t)
2254
2271
  Q.push((t + 256).toString(16).slice(1));
2255
- function bo(t, e = 0) {
2272
+ function Co(t, e = 0) {
2256
2273
  return Q[t[e + 0]] + Q[t[e + 1]] + Q[t[e + 2]] + Q[t[e + 3]] + "-" + Q[t[e + 4]] + Q[t[e + 5]] + "-" + Q[t[e + 6]] + Q[t[e + 7]] + "-" + Q[t[e + 8]] + Q[t[e + 9]] + "-" + Q[t[e + 10]] + Q[t[e + 11]] + Q[t[e + 12]] + Q[t[e + 13]] + Q[t[e + 14]] + Q[t[e + 15]];
2257
2274
  }
2258
- const Co = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), He = {
2259
- randomUUID: Co
2275
+ const wo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ze = {
2276
+ randomUUID: wo
2260
2277
  };
2261
- function wo(t, e, r) {
2262
- if (He.randomUUID && !e && !t)
2263
- return He.randomUUID();
2278
+ function So(t, e, r) {
2279
+ if (Ze.randomUUID && !e && !t)
2280
+ return Ze.randomUUID();
2264
2281
  t = t || {};
2265
- const n = t.random || (t.rng || ko)();
2266
- return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, bo(n);
2282
+ const n = t.random || (t.rng || bo)();
2283
+ return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Co(n);
2267
2284
  }
2268
- function So(t, e) {
2285
+ function Eo(t, e) {
2269
2286
  const r = e.map((o) => JSON.stringify(o)).join(" "), n = (/* @__PURE__ */ new Date()).toISOString();
2270
2287
  return JSON.stringify({
2271
2288
  level: t,
@@ -2273,11 +2290,11 @@ function So(t, e) {
2273
2290
  message: r
2274
2291
  });
2275
2292
  }
2276
- function Eo(t, e) {
2293
+ function Ao(t, e) {
2277
2294
  const r = JSON.parse(t);
2278
2295
  return e.forEach((n) => delete r[n]), r;
2279
2296
  }
2280
- function Ao(t) {
2297
+ function To(t) {
2281
2298
  if (typeof t == "object" && t !== null)
2282
2299
  return t;
2283
2300
  try {
@@ -2286,7 +2303,7 @@ function Ao(t) {
2286
2303
  return { extraData: t };
2287
2304
  }
2288
2305
  }
2289
- function To(t) {
2306
+ function No(t) {
2290
2307
  const e = /\(([^)]+)\)/, r = t.match(e);
2291
2308
  if (r && r[1]) {
2292
2309
  const n = r[1].split(";");
@@ -2296,7 +2313,7 @@ function To(t) {
2296
2313
  }
2297
2314
  return "Unknown";
2298
2315
  }
2299
- function Je(t) {
2316
+ function tr(t) {
2300
2317
  return (...e) => new Promise((r, n) => {
2301
2318
  try {
2302
2319
  const o = t(...e);
@@ -2306,7 +2323,7 @@ function Je(t) {
2306
2323
  }
2307
2324
  });
2308
2325
  }
2309
- const No = {
2326
+ const Oo = {
2310
2327
  reconnection: !0,
2311
2328
  reconnectionDelay: 5e3,
2312
2329
  reconnectionAttempts: 10,
@@ -2314,7 +2331,7 @@ const No = {
2314
2331
  upgrade: !1,
2315
2332
  transports: ["websocket"],
2316
2333
  debug: !1
2317
- }, ae = {
2334
+ }, he = {
2318
2335
  logToConsole: !0,
2319
2336
  overloadGlobalConsole: !1,
2320
2337
  socketEmitInterval: 6e4
@@ -2371,7 +2388,7 @@ const No = {
2371
2388
  DEBUG: "debug"
2372
2389
  };
2373
2390
  let rt = console;
2374
- class Oo {
2391
+ class Io {
2375
2392
  /**
2376
2393
  * Initialize storage logger
2377
2394
  * @param options The configuration of the logger.
@@ -2381,7 +2398,7 @@ class Oo {
2381
2398
  const { loggerOptions: r } = e;
2382
2399
  if (!r.system)
2383
2400
  throw new Error("Config property 'system' should be provided!");
2384
- this.isGetItemAsync = r.isGetItemAsync || !1, this.isSetItemAsync = r.isSetItemAsync || !1, this.setupStorageFunctions(r.getItem, r.setItem, r.parseLog), this.system = r.system, this.socketEmitInterval = r.socketEmitInterval || ae.socketEmitInterval, this.logToConsole = r.logToConsole !== void 0 ? r.logToConsole : ae.logToConsole, this.overloadGlobalConsole = r.overloadGlobalConsole !== void 0 ? r.overloadGlobalConsole : ae.overloadGlobalConsole, this.storageId = this.getStorageName(), this.queue = [], this.processing = !1, this.storageInitialized = !1, this.emitInProgress = !1, this.logIndex = 0, this.init(e);
2401
+ this.isGetItemAsync = r.isGetItemAsync || !1, this.isSetItemAsync = r.isSetItemAsync || !1, this.setupStorageFunctions(r.getItem, r.setItem, r.parseLog), this.system = r.system, this.socketEmitInterval = r.socketEmitInterval || he.socketEmitInterval, this.logToConsole = r.logToConsole !== void 0 ? r.logToConsole : he.logToConsole, this.overloadGlobalConsole = r.overloadGlobalConsole !== void 0 ? r.overloadGlobalConsole : he.overloadGlobalConsole, this.storageId = this.getStorageName(), this.queue = [], this.processing = !1, this.storageInitialized = !1, this.emitInProgress = !1, this.logIndex = 0, this.init(e);
2385
2402
  }
2386
2403
  /**
2387
2404
  * Used to setup storage functions and logs parser function.
@@ -2391,7 +2408,7 @@ class Oo {
2391
2408
  * @return void
2392
2409
  */
2393
2410
  setupStorageFunctions(e, r, n) {
2394
- this.getItem = e && typeof e == "function" ? this.isGetItemAsync ? e : Je(e) : this.defaultGetItemFunction, this.setItem = r && typeof r == "function" ? this.isSetItemAsync ? r : Je(r) : this.defaultSetItemFunction, this.parseLog = n && typeof n == "function" ? n : So;
2411
+ this.getItem = e && typeof e == "function" ? this.isGetItemAsync ? e : tr(e) : this.defaultGetItemFunction, this.setItem = r && typeof r == "function" ? this.isSetItemAsync ? r : tr(r) : this.defaultSetItemFunction, this.parseLog = n && typeof n == "function" ? n : Eo;
2395
2412
  }
2396
2413
  /**
2397
2414
  * Used to initialize logger. Initializes storage, establishes socket connection and overloads console if needed
@@ -2420,10 +2437,10 @@ class Oo {
2420
2437
  */
2421
2438
  createConnection(e, r = {}) {
2422
2439
  const n = {
2423
- ...No,
2440
+ ...Oo,
2424
2441
  ...r
2425
2442
  };
2426
- return mo(e, n);
2443
+ return vo(e, n);
2427
2444
  }
2428
2445
  /**
2429
2446
  * Emits stored logs to the server and clears the log storage in case the emit operation was successful
@@ -2445,17 +2462,17 @@ class Oo {
2445
2462
  return;
2446
2463
  if (!this.socket || !this.socket.connected)
2447
2464
  throw new Error("Socket is disconnected");
2448
- for (const d of i) {
2449
- const c = Ao(n[d]), l = {
2465
+ for (const f of i) {
2466
+ const c = To(n[f]), l = {
2450
2467
  ...this.staticObject,
2451
2468
  ...c
2452
2469
  }, p = this.populateSendingLog(l);
2453
- await this.socket.emit("Log", JSON.stringify(p)), o.push(d);
2470
+ await this.socket.emit("Log", JSON.stringify(p)), o.push(f);
2454
2471
  }
2455
2472
  const u = await this.getItem(this.storageId);
2456
2473
  if (!u)
2457
2474
  return;
2458
- const h = Eo(u, o);
2475
+ const h = Ao(u, o);
2459
2476
  this.localObject = {}, await this.setItem(this.storageId, JSON.stringify(h));
2460
2477
  } catch (e) {
2461
2478
  this._errorMethod(e);
@@ -2489,7 +2506,7 @@ class Oo {
2489
2506
  let r;
2490
2507
  typeof window < "u" && typeof window.document < "u" ? r = window == null ? void 0 : window.navigator.userAgent : typeof self < "u" && self.navigator && (r = self.navigator.userAgent);
2491
2508
  let n;
2492
- return r && (n = To(r)), {
2509
+ return r && (n = No(r)), {
2493
2510
  System: this.system,
2494
2511
  DateTime: e,
2495
2512
  UserAgent: r,
@@ -2501,20 +2518,16 @@ class Oo {
2501
2518
  * @return void
2502
2519
  */
2503
2520
  async stop() {
2504
- if (!this.socket || !this.socket.connected)
2505
- throw new Error("Socket connection doesn't exists!");
2506
- clearInterval(this.interval), await this.emitLogs(), this.socket.disconnect();
2521
+ !this.socket || !this.socket.connected || (clearInterval(this.interval), await this.emitLogs(), this.socket.disconnect());
2507
2522
  }
2508
2523
  /**
2509
2524
  * Used to start logger and reconnect socket connection
2510
2525
  * @return void
2511
2526
  */
2512
2527
  async start() {
2513
- if (this.socket && this.socket.connected)
2514
- throw new Error("Socket connection already exists!");
2515
- this.socket.connect(), this.interval = setInterval(async () => {
2528
+ this.socket && this.socket.connected || (this.socket.connect(), this.interval = setInterval(async () => {
2516
2529
  await this.emitLogs();
2517
- }, this.socketEmitInterval);
2530
+ }, this.socketEmitInterval));
2518
2531
  }
2519
2532
  /**
2520
2533
  * Used to overload the global console object by logger methods.
@@ -2559,7 +2572,7 @@ class Oo {
2559
2572
  * @return string
2560
2573
  */
2561
2574
  getStorageName() {
2562
- const e = wo();
2575
+ const e = So();
2563
2576
  return this.system.toString().toUpperCase() + e + Date.now();
2564
2577
  }
2565
2578
  /**
@@ -2687,7 +2700,7 @@ class Ro {
2687
2700
  email: this.eventsSdkClass.options.email && this.eventsSdkClass.options.email,
2688
2701
  password: this.eventsSdkClass.options.password && this.eventsSdkClass.options.password
2689
2702
  };
2690
- if (this.storageKey = Ir(JSON.stringify({
2703
+ if (this.storageKey = Dr(JSON.stringify({
2691
2704
  ...this.eventsSdkClass.options,
2692
2705
  loggerSocketConnection: null
2693
2706
  }, this.eventsSdkClass.getCircularReplacer())), this.lastLoginTimestamp && this.lastLoginTimestamp + this.delay > (/* @__PURE__ */ new Date()).getTime())
@@ -2799,10 +2812,10 @@ class Ro {
2799
2812
  throw new Error("Unauthorized. Invalid token provided");
2800
2813
  if (!h.ok && h.status === 403)
2801
2814
  throw new Error("Forbidden. Identity token not provided or not valid");
2802
- const d = await h.json();
2803
- if (d.error)
2804
- throw new Error(d.error);
2805
- return d;
2815
+ const f = await h.json();
2816
+ if (f.error)
2817
+ throw new Error(f.error);
2818
+ return f;
2806
2819
  } catch (h) {
2807
2820
  throw this.eventsSdkClass.loggerClass.log({
2808
2821
  Message: `External login request error with the login type ${it} ${i === it.TOKEN ? { token: n } : {
@@ -2867,7 +2880,7 @@ class Ro {
2867
2880
  return e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
2868
2881
  }
2869
2882
  }
2870
- const Io = {
2883
+ const Bo = {
2871
2884
  isNewStack: !1,
2872
2885
  loginUrl: "https://loginapi.voicenter.co.il/monitorAPI/Login",
2873
2886
  refreshTokenUrl: "https://loginapi.voicenter.co.il/monitorAPI/RefreshIdentityToken",
@@ -2903,11 +2916,11 @@ const Io = {
2903
2916
  };
2904
2917
  function _o() {
2905
2918
  return typeof window < "u" && (typeof window.navigator > "u" || typeof window.navigator.userAgent > "u") && (window.navigator.userAgent = "react-native"), function t(e, r, n) {
2906
- function o(h, d) {
2919
+ function o(h, f) {
2907
2920
  if (!r[h]) {
2908
2921
  if (!e[h]) {
2909
2922
  var c = typeof require == "function" && require;
2910
- if (!d && c)
2923
+ if (!f && c)
2911
2924
  return c(h, !0);
2912
2925
  if (i)
2913
2926
  return i(h, !0);
@@ -2931,12 +2944,12 @@ function _o() {
2931
2944
  2: [function(t, e, r) {
2932
2945
  function n(c, l) {
2933
2946
  typeof c == "object" && (l = c, c = void 0), l = l || {};
2934
- var p, a = o(c), s = a.source, f = a.id;
2935
- return l.forceNew || l["force new connection"] || l.multiplex === !1 ? (h("ignoring socket cache for %s", s), p = u(s, l)) : (d[f] || (h("new io instance for %s", s), d[f] = u(s, l)), p = d[f]), p.socket(a.path);
2947
+ var p, a = o(c), s = a.source, d = a.id;
2948
+ return l.forceNew || l["force new connection"] || l.multiplex === !1 ? (h("ignoring socket cache for %s", s), p = u(s, l)) : (f[d] || (h("new io instance for %s", s), f[d] = u(s, l)), p = f[d]), p.socket(a.path);
2936
2949
  }
2937
2950
  var o = t("./url"), i = t("socket.io-parser"), u = t("./manager"), h = t("debug")("socket.io-client");
2938
2951
  e.exports = r = n;
2939
- var d = r.managers = {};
2952
+ var f = r.managers = {};
2940
2953
  r.protocol = i.protocol, r.connect = n, r.Manager = t("./manager"), r.Socket = t("./socket");
2941
2954
  }, { "./manager": 3, "./socket": 5, "./url": 6, debug: 10, "socket.io-parser": 44 }],
2942
2955
  3: [function(t, e) {
@@ -2947,7 +2960,7 @@ function _o() {
2947
2960
  jitter: this.randomizationFactor()
2948
2961
  }), this.timeout(s.timeout == null ? 2e4 : s.timeout), this.readyState = "closed", this.uri = a, this.connected = [], this.encoding = !1, this.packetBuffer = [], this.encoder = new u.Encoder(), this.decoder = new u.Decoder(), this.autoConnect = s.autoConnect !== !1, void (this.autoConnect && this.open())) : new r(a, s);
2949
2962
  }
2950
- var n = (t("./url"), t("engine.io-client")), o = t("./socket"), i = t("component-emitter"), u = t("socket.io-parser"), h = t("./on"), d = t("component-bind"), c = (t("object-component"), t("debug")("socket.io-client:manager")), l = t("indexof"), p = t("backo2");
2963
+ var n = (t("./url"), t("engine.io-client")), o = t("./socket"), i = t("component-emitter"), u = t("socket.io-parser"), h = t("./on"), f = t("component-bind"), c = (t("object-component"), t("debug")("socket.io-client:manager")), l = t("indexof"), p = t("backo2");
2951
2964
  e.exports = r, r.prototype.emitAll = function() {
2952
2965
  this.emit.apply(this, arguments);
2953
2966
  for (var a in this.nsps)
@@ -2973,26 +2986,26 @@ function _o() {
2973
2986
  if (c("readyState %s", this.readyState), ~this.readyState.indexOf("open"))
2974
2987
  return this;
2975
2988
  c("opening %s", this.uri), this.engine = n(this.uri, this.opts);
2976
- var s = this.engine, f = this;
2989
+ var s = this.engine, d = this;
2977
2990
  this.readyState = "opening", this.skipReconnect = !1;
2978
2991
  var y = h(s, "open", function() {
2979
- f.onopen(), a && a();
2980
- }), g = h(s, "error", function(B) {
2981
- if (c("connect_error"), f.cleanup(), f.readyState = "closed", f.emitAll("connect_error", B), a) {
2992
+ d.onopen(), a && a();
2993
+ }), g = h(s, "error", function(_) {
2994
+ if (c("connect_error"), d.cleanup(), d.readyState = "closed", d.emitAll("connect_error", _), a) {
2982
2995
  var b = new Error("Connection error");
2983
- b.data = B, a(b);
2996
+ b.data = _, a(b);
2984
2997
  } else
2985
- f.maybeReconnectOnOpen();
2998
+ d.maybeReconnectOnOpen();
2986
2999
  });
2987
3000
  if (this._timeout !== !1) {
2988
3001
  var w = this._timeout;
2989
3002
  c("connect attempt will timeout after %d", w);
2990
- var _ = setTimeout(function() {
2991
- c("connect attempt timed out after %d", w), y.destroy(), s.close(), s.emit("error", "timeout"), f.emitAll("connect_timeout", w);
3003
+ var B = setTimeout(function() {
3004
+ c("connect attempt timed out after %d", w), y.destroy(), s.close(), s.emit("error", "timeout"), d.emitAll("connect_timeout", w);
2992
3005
  }, w);
2993
3006
  this.subs.push({
2994
3007
  destroy: function() {
2995
- clearTimeout(_);
3008
+ clearTimeout(B);
2996
3009
  }
2997
3010
  });
2998
3011
  }
@@ -3000,7 +3013,7 @@ function _o() {
3000
3013
  }, r.prototype.onopen = function() {
3001
3014
  c("open"), this.cleanup(), this.readyState = "open", this.emit("open");
3002
3015
  var a = this.engine;
3003
- this.subs.push(h(a, "data", d(this, "ondata"))), this.subs.push(h(this.decoder, "decoded", d(this, "ondecoded"))), this.subs.push(h(a, "error", d(this, "onerror"))), this.subs.push(h(a, "close", d(this, "onclose")));
3016
+ this.subs.push(h(a, "data", f(this, "ondata"))), this.subs.push(h(this.decoder, "decoded", f(this, "ondecoded"))), this.subs.push(h(a, "error", f(this, "onerror"))), this.subs.push(h(a, "close", f(this, "onclose")));
3004
3017
  }, r.prototype.ondata = function(a) {
3005
3018
  this.decoder.add(a);
3006
3019
  }, r.prototype.ondecoded = function(a) {
@@ -3011,9 +3024,9 @@ function _o() {
3011
3024
  var s = this.nsps[a];
3012
3025
  if (!s) {
3013
3026
  s = new o(this, a), this.nsps[a] = s;
3014
- var f = this;
3027
+ var d = this;
3015
3028
  s.on("connect", function() {
3016
- s.id = f.engine.id, ~l(f.connected, s) || f.connected.push(s);
3029
+ s.id = d.engine.id, ~l(d.connected, s) || d.connected.push(s);
3017
3030
  });
3018
3031
  }
3019
3032
  return s;
@@ -3023,9 +3036,9 @@ function _o() {
3023
3036
  }, r.prototype.packet = function(a) {
3024
3037
  c("writing packet %j", a);
3025
3038
  var s = this;
3026
- s.encoding ? s.packetBuffer.push(a) : (s.encoding = !0, this.encoder.encode(a, function(f) {
3027
- for (var y = 0; y < f.length; y++)
3028
- s.engine.write(f[y]);
3039
+ s.encoding ? s.packetBuffer.push(a) : (s.encoding = !0, this.encoder.encode(a, function(d) {
3040
+ for (var y = 0; y < d.length; y++)
3041
+ s.engine.write(d[y]);
3029
3042
  s.encoding = !1, s.processPacketQueue();
3030
3043
  }));
3031
3044
  }, r.prototype.processPacketQueue = function() {
@@ -3050,14 +3063,14 @@ function _o() {
3050
3063
  else {
3051
3064
  var s = this.backoff.duration();
3052
3065
  c("will wait %dms before reconnect attempt", s), this.reconnecting = !0;
3053
- var f = setTimeout(function() {
3066
+ var d = setTimeout(function() {
3054
3067
  a.skipReconnect || (c("attempting reconnect"), a.emitAll("reconnect_attempt", a.backoff.attempts), a.emitAll("reconnecting", a.backoff.attempts), a.skipReconnect || a.open(function(y) {
3055
3068
  y ? (c("reconnect attempt error"), a.reconnecting = !1, a.reconnect(), a.emitAll("reconnect_error", y.data)) : (c("reconnect success"), a.onreconnect());
3056
3069
  }));
3057
3070
  }, s);
3058
3071
  this.subs.push({
3059
3072
  destroy: function() {
3060
- clearTimeout(f);
3073
+ clearTimeout(d);
3061
3074
  }
3062
3075
  });
3063
3076
  }
@@ -3089,10 +3102,10 @@ function _o() {
3089
3102
  e.exports = r;
3090
3103
  }, {}],
3091
3104
  5: [function(t, e, r) {
3092
- function n(s, f) {
3093
- this.io = s, 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;
3105
+ function n(s, d) {
3106
+ this.io = s, this.nsp = d, this.json = this, this.ids = 0, this.acks = {}, this.io.autoConnect && this.open(), this.receiveBuffer = [], this.sendBuffer = [], this.connected = !1, this.disconnected = !0;
3094
3107
  }
3095
- var o = t("socket.io-parser"), i = t("component-emitter"), u = t("to-array"), h = t("./on"), d = t("component-bind"), c = t("debug")("socket.io-client:socket"), l = t("has-binary");
3108
+ var o = t("socket.io-parser"), i = t("component-emitter"), u = t("to-array"), h = t("./on"), f = t("component-bind"), c = t("debug")("socket.io-client:socket"), l = t("has-binary");
3096
3109
  e.exports = n;
3097
3110
  var p = {
3098
3111
  connect: 1,
@@ -3109,7 +3122,7 @@ function _o() {
3109
3122
  i(n.prototype), n.prototype.subEvents = function() {
3110
3123
  if (!this.subs) {
3111
3124
  var s = this.io;
3112
- this.subs = [h(s, "open", d(this, "onopen")), h(s, "packet", d(this, "onpacket")), h(s, "close", d(this, "onclose"))];
3125
+ this.subs = [h(s, "open", f(this, "onopen")), h(s, "packet", f(this, "onpacket")), h(s, "close", f(this, "onclose"))];
3113
3126
  }
3114
3127
  }, n.prototype.open = n.prototype.connect = function() {
3115
3128
  return this.connected ? this : (this.subEvents(), this.io.open(), this.io.readyState == "open" && this.onopen(), this);
@@ -3119,10 +3132,10 @@ function _o() {
3119
3132
  }, n.prototype.emit = function(s) {
3120
3133
  if (p.hasOwnProperty(s))
3121
3134
  return a.apply(this, arguments), this;
3122
- var f = u(arguments), y = o.EVENT;
3123
- l(f) && (y = o.BINARY_EVENT);
3124
- var g = { type: y, data: f };
3125
- return typeof f[f.length - 1] == "function" && (c("emitting packet with ack id %d", this.ids), this.acks[this.ids] = f.pop(), g.id = this.ids++), this.connected ? this.packet(g) : this.sendBuffer.push(g), this;
3135
+ var d = u(arguments), y = o.EVENT;
3136
+ l(d) && (y = o.BINARY_EVENT);
3137
+ var g = { type: y, data: d };
3138
+ return typeof d[d.length - 1] == "function" && (c("emitting packet with ack id %d", this.ids), this.acks[this.ids] = d.pop(), g.id = this.ids++), this.connected ? this.packet(g) : this.sendBuffer.push(g), this;
3126
3139
  }, n.prototype.packet = function(s) {
3127
3140
  s.nsp = this.nsp, this.io.packet(s);
3128
3141
  }, n.prototype.onopen = function() {
@@ -3154,23 +3167,23 @@ function _o() {
3154
3167
  this.emit("error", s.data);
3155
3168
  }
3156
3169
  }, n.prototype.onevent = function(s) {
3157
- var f = s.data || [];
3158
- c("emitting event %j", f), s.id != null && (c("attaching ack callback to event"), f.push(this.ack(s.id))), this.connected ? a.apply(this, f) : this.receiveBuffer.push(f);
3170
+ var d = s.data || [];
3171
+ c("emitting event %j", d), s.id != null && (c("attaching ack callback to event"), d.push(this.ack(s.id))), this.connected ? a.apply(this, d) : this.receiveBuffer.push(d);
3159
3172
  }, n.prototype.ack = function(s) {
3160
- var f = this, y = !1;
3173
+ var d = this, y = !1;
3161
3174
  return function() {
3162
3175
  if (!y) {
3163
3176
  y = !0;
3164
3177
  var g = u(arguments);
3165
3178
  c("sending ack %j", g);
3166
3179
  var w = l(g) ? o.BINARY_ACK : o.ACK;
3167
- f.packet({ type: w, id: s, data: g });
3180
+ d.packet({ type: w, id: s, data: g });
3168
3181
  }
3169
3182
  };
3170
3183
  }, n.prototype.onack = function(s) {
3171
3184
  c("calling ack %s with %j", s.id, s.data);
3172
- var f = this.acks[s.id];
3173
- f.apply(this, s.data), delete this.acks[s.id];
3185
+ var d = this.acks[s.id];
3186
+ d.apply(this, s.data), delete this.acks[s.id];
3174
3187
  }, n.prototype.onconnect = function() {
3175
3188
  this.connected = !0, this.disconnected = !1, this.emit("connect"), this.emitBuffered();
3176
3189
  }, n.prototype.emitBuffered = function() {
@@ -3204,8 +3217,8 @@ function _o() {
3204
3217
  6: [function(t, e) {
3205
3218
  (function(r) {
3206
3219
  function n(u, c) {
3207
- var d = u, c = c || r.location;
3208
- return u == null && (u = c.protocol + "//" + c.host), typeof u == "string" && (u.charAt(0) == "/" && (u = u.charAt(1) == "/" ? c.protocol + u : c.hostname + u), /^(https?|wss?):\/\//.test(u) || (i("protocol-less url %s", u), u = typeof c < "u" ? c.protocol + "//" + u : "https://" + u), i("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 + (c && c.port == d.port ? "" : ":" + d.port), d;
3220
+ var f = u, c = c || r.location;
3221
+ return u == null && (u = c.protocol + "//" + c.host), typeof u == "string" && (u.charAt(0) == "/" && (u = u.charAt(1) == "/" ? c.protocol + u : c.hostname + u), /^(https?|wss?):\/\//.test(u) || (i("protocol-less url %s", u), u = typeof c < "u" ? c.protocol + "//" + u : "https://" + u), i("parse %s", u), f = o(u)), f.port || (/^(http|ws)$/.test(f.protocol) ? f.port = "80" : /^(http|ws)s$/.test(f.protocol) && (f.port = "443")), f.path = f.path || "/", f.id = f.protocol + "://" + f.host + ":" + f.port, f.href = f.protocol + "://" + f.host + (c && c.port == f.port ? "" : ":" + f.port), f;
3209
3222
  }
3210
3223
  var o = t("parseuri"), i = t("debug")("socket.io-client:url");
3211
3224
  e.exports = n;
@@ -3268,9 +3281,9 @@ function _o() {
3268
3281
  return this;
3269
3282
  if (arguments.length == 1)
3270
3283
  return delete this._callbacks[o], this;
3271
- for (var h, d = 0; d < u.length; d++)
3272
- if (h = u[d], h === i || h.fn === i) {
3273
- u.splice(d, 1);
3284
+ for (var h, f = 0; f < u.length; f++)
3285
+ if (h = u[f], h === i || h.fn === i) {
3286
+ u.splice(f, 1);
3274
3287
  break;
3275
3288
  }
3276
3289
  return this;
@@ -3279,7 +3292,7 @@ function _o() {
3279
3292
  var i = [].slice.call(arguments, 1), u = this._callbacks[o];
3280
3293
  if (u) {
3281
3294
  u = u.slice(0);
3282
- for (var h = 0, d = u.length; d > h; ++h)
3295
+ for (var h = 0, f = u.length; f > h; ++h)
3283
3296
  u[h].apply(this, i);
3284
3297
  }
3285
3298
  return this;
@@ -3335,33 +3348,33 @@ function _o() {
3335
3348
  }, { "./socket": 13, "engine.io-parser": 25 }],
3336
3349
  13: [function(t, e) {
3337
3350
  (function(r) {
3338
- function n(s, f) {
3351
+ function n(s, d) {
3339
3352
  if (!(this instanceof n))
3340
- return new n(s, f);
3341
- if (f = f || {}, s && typeof s == "object" && (f = s, s = null), s && (s = l(s), f.host = s.host, f.secure = s.protocol == "https" || s.protocol == "wss", f.port = s.port, s.query && (f.query = s.query)), this.secure = f.secure != null ? f.secure : r.location && location.protocol == "https:", f.host) {
3342
- var y = f.host.split(":");
3343
- f.hostname = y.shift(), y.length ? f.port = y.pop() : f.port || (f.port = this.secure ? "443" : "80");
3353
+ return new n(s, d);
3354
+ if (d = d || {}, s && typeof s == "object" && (d = s, s = null), s && (s = l(s), d.host = s.host, d.secure = s.protocol == "https" || s.protocol == "wss", d.port = s.port, s.query && (d.query = s.query)), this.secure = d.secure != null ? d.secure : r.location && location.protocol == "https:", d.host) {
3355
+ var y = d.host.split(":");
3356
+ d.hostname = y.shift(), y.length ? d.port = y.pop() : d.port || (d.port = this.secure ? "443" : "80");
3344
3357
  }
3345
- this.agent = f.agent || !1, this.hostname = f.hostname || (r.location ? location.hostname : "localhost"), this.port = f.port || (r.location && location.port ? location.port : this.secure ? 443 : 80), this.query = f.query || {}, typeof this.query == "string" && (this.query = a.decode(this.query)), this.upgrade = f.upgrade !== !1, this.path = (f.path || "/engine.io").replace(/\/$/, "") + "/", this.forceJSONP = !!f.forceJSONP, this.jsonp = f.jsonp !== !1, this.forceBase64 = !!f.forceBase64, this.enablesXDR = !!f.enablesXDR, this.timestampParam = f.timestampParam || "t", this.timestampRequests = f.timestampRequests, this.transports = f.transports || ["polling", "websocket"], this.readyState = "", this.writeBuffer = [], this.callbackBuffer = [], this.policyPort = f.policyPort || 843, this.rememberUpgrade = f.rememberUpgrade || !1, this.binaryType = null, this.onlyBinaryUpgrades = f.onlyBinaryUpgrades, this.pfx = f.pfx || null, this.key = f.key || null, this.passphrase = f.passphrase || null, this.cert = f.cert || null, this.ca = f.ca || null, this.ciphers = f.ciphers || null, this.rejectUnauthorized = f.rejectUnauthorized || null, this.open();
3358
+ this.agent = d.agent || !1, this.hostname = d.hostname || (r.location ? location.hostname : "localhost"), this.port = d.port || (r.location && location.port ? location.port : this.secure ? 443 : 80), this.query = d.query || {}, typeof this.query == "string" && (this.query = a.decode(this.query)), this.upgrade = d.upgrade !== !1, this.path = (d.path || "/engine.io").replace(/\/$/, "") + "/", this.forceJSONP = !!d.forceJSONP, this.jsonp = d.jsonp !== !1, this.forceBase64 = !!d.forceBase64, this.enablesXDR = !!d.enablesXDR, this.timestampParam = d.timestampParam || "t", this.timestampRequests = d.timestampRequests, this.transports = d.transports || ["polling", "websocket"], this.readyState = "", this.writeBuffer = [], this.callbackBuffer = [], this.policyPort = d.policyPort || 843, this.rememberUpgrade = d.rememberUpgrade || !1, this.binaryType = null, this.onlyBinaryUpgrades = d.onlyBinaryUpgrades, this.pfx = d.pfx || null, this.key = d.key || null, this.passphrase = d.passphrase || null, this.cert = d.cert || null, this.ca = d.ca || null, this.ciphers = d.ciphers || null, this.rejectUnauthorized = d.rejectUnauthorized || null, this.open();
3346
3359
  }
3347
3360
  function o(s) {
3348
- var f = {};
3361
+ var d = {};
3349
3362
  for (var y in s)
3350
- s.hasOwnProperty(y) && (f[y] = s[y]);
3351
- return f;
3363
+ s.hasOwnProperty(y) && (d[y] = s[y]);
3364
+ return d;
3352
3365
  }
3353
- var i = t("./transports"), u = t("component-emitter"), h = t("debug")("engine.io-client:socket"), d = t("indexof"), c = t("engine.io-parser"), l = t("parseuri"), p = t("parsejson"), a = t("parseqs");
3366
+ var i = t("./transports"), u = t("component-emitter"), h = t("debug")("engine.io-client:socket"), f = t("indexof"), c = t("engine.io-parser"), l = t("parseuri"), p = t("parsejson"), a = t("parseqs");
3354
3367
  e.exports = n, n.priorWebsocketSuccess = !1, u(n.prototype), n.protocol = c.protocol, n.Socket = n, n.Transport = t("./transport"), n.transports = t("./transports"), n.parser = t("engine.io-parser"), n.prototype.createTransport = function(s) {
3355
3368
  h('creating transport "%s"', s);
3356
- var f = o(this.query);
3357
- f.EIO = c.protocol, f.transport = s, this.id && (f.sid = this.id);
3369
+ var d = o(this.query);
3370
+ d.EIO = c.protocol, d.transport = s, this.id && (d.sid = this.id);
3358
3371
  var y = new i[s]({
3359
3372
  agent: this.agent,
3360
3373
  hostname: this.hostname,
3361
3374
  port: this.port,
3362
3375
  secure: this.secure,
3363
3376
  path: this.path,
3364
- query: f,
3377
+ query: d,
3365
3378
  forceJSONP: this.forceJSONP,
3366
3379
  jsonp: this.jsonp,
3367
3380
  forceBase64: this.forceBase64,
@@ -3380,9 +3393,9 @@ function _o() {
3380
3393
  });
3381
3394
  return y;
3382
3395
  }, n.prototype.open = function() {
3383
- var f;
3396
+ var d;
3384
3397
  if (this.rememberUpgrade && n.priorWebsocketSuccess && this.transports.indexOf("websocket") != -1)
3385
- f = "websocket";
3398
+ d = "websocket";
3386
3399
  else {
3387
3400
  if (this.transports.length == 0) {
3388
3401
  var s = this;
@@ -3390,30 +3403,30 @@ function _o() {
3390
3403
  s.emit("error", "No transports available");
3391
3404
  }, 0);
3392
3405
  }
3393
- f = this.transports[0];
3406
+ d = this.transports[0];
3394
3407
  }
3395
3408
  this.readyState = "opening";
3396
- var f;
3409
+ var d;
3397
3410
  try {
3398
- f = this.createTransport(f);
3411
+ d = this.createTransport(d);
3399
3412
  } catch {
3400
3413
  return this.transports.shift(), void this.open();
3401
3414
  }
3402
- f.open(), this.setTransport(f);
3415
+ d.open(), this.setTransport(d);
3403
3416
  }, n.prototype.setTransport = function(s) {
3404
3417
  h("setting transport %s", s.name);
3405
- var f = this;
3418
+ var d = this;
3406
3419
  this.transport && (h("clearing existing transport %s", this.transport.name), this.transport.removeAllListeners()), this.transport = s, s.on("drain", function() {
3407
- f.onDrain();
3420
+ d.onDrain();
3408
3421
  }).on("packet", function(y) {
3409
- f.onPacket(y);
3422
+ d.onPacket(y);
3410
3423
  }).on("error", function(y) {
3411
- f.onError(y);
3424
+ d.onError(y);
3412
3425
  }).on("close", function() {
3413
- f.onClose("transport close");
3426
+ d.onClose("transport close");
3414
3427
  });
3415
3428
  }, n.prototype.probe = function(s) {
3416
- function f() {
3429
+ function d() {
3417
3430
  if (C.onlyBinaryUpgrades) {
3418
3431
  var E = !this.supportsBinary && C.transport.supportsBinary;
3419
3432
  m = m || E;
@@ -3446,22 +3459,22 @@ function _o() {
3446
3459
  function w() {
3447
3460
  g("transport closed");
3448
3461
  }
3449
- function _() {
3462
+ function B() {
3450
3463
  g("socket closed");
3451
3464
  }
3452
- function B(E) {
3465
+ function _(E) {
3453
3466
  S && E.name != S.name && (h('"%s" works - aborting "%s"', E.name, S.name), y());
3454
3467
  }
3455
3468
  function b() {
3456
- S.removeListener("open", f), S.removeListener("error", g), S.removeListener("close", w), C.removeListener("close", _), C.removeListener("upgrading", B);
3469
+ S.removeListener("open", d), S.removeListener("error", g), S.removeListener("close", w), C.removeListener("close", B), C.removeListener("upgrading", _);
3457
3470
  }
3458
3471
  h('probing transport "%s"', s);
3459
3472
  var S = this.createTransport(s, { probe: 1 }), m = !1, C = this;
3460
- n.priorWebsocketSuccess = !1, S.once("open", f), S.once("error", g), S.once("close", w), this.once("close", _), this.once("upgrading", B), S.open();
3473
+ n.priorWebsocketSuccess = !1, S.once("open", d), S.once("error", g), S.once("close", w), this.once("close", B), this.once("upgrading", _), S.open();
3461
3474
  }, n.prototype.onOpen = function() {
3462
3475
  if (h("socket open"), this.readyState = "open", n.priorWebsocketSuccess = this.transport.name == "websocket", this.emit("open"), this.flush(), this.readyState == "open" && this.upgrade && this.transport.pause) {
3463
3476
  h("starting upgrade probes");
3464
- for (var s = 0, f = this.upgrades.length; f > s; s++)
3477
+ for (var s = 0, d = this.upgrades.length; d > s; s++)
3465
3478
  this.probe(this.upgrades[s]);
3466
3479
  }
3467
3480
  }, n.prototype.onPacket = function(s) {
@@ -3474,8 +3487,8 @@ function _o() {
3474
3487
  this.setPing();
3475
3488
  break;
3476
3489
  case "error":
3477
- var f = new Error("server error");
3478
- f.code = s.data, this.emit("error", f);
3490
+ var d = new Error("server error");
3491
+ d.code = s.data, this.emit("error", d);
3479
3492
  break;
3480
3493
  case "message":
3481
3494
  this.emit("data", s.data), this.emit("message", s.data);
@@ -3486,10 +3499,10 @@ function _o() {
3486
3499
  this.emit("handshake", s), this.id = s.sid, this.transport.query.sid = s.sid, this.upgrades = this.filterUpgrades(s.upgrades), this.pingInterval = s.pingInterval, this.pingTimeout = s.pingTimeout, this.onOpen(), this.readyState != "closed" && (this.setPing(), this.removeListener("heartbeat", this.onHeartbeat), this.on("heartbeat", this.onHeartbeat));
3487
3500
  }, n.prototype.onHeartbeat = function(s) {
3488
3501
  clearTimeout(this.pingTimeoutTimer);
3489
- var f = this;
3490
- f.pingTimeoutTimer = setTimeout(function() {
3491
- f.readyState != "closed" && f.onClose("ping timeout");
3492
- }, s || f.pingInterval + f.pingTimeout);
3502
+ var d = this;
3503
+ d.pingTimeoutTimer = setTimeout(function() {
3504
+ d.readyState != "closed" && d.onClose("ping timeout");
3505
+ }, s || d.pingInterval + d.pingTimeout);
3493
3506
  }, n.prototype.setPing = function() {
3494
3507
  var s = this;
3495
3508
  clearTimeout(s.pingIntervalTimer), s.pingIntervalTimer = setTimeout(function() {
@@ -3503,22 +3516,22 @@ function _o() {
3503
3516
  this.writeBuffer.splice(0, this.prevBufferLen), this.callbackBuffer.splice(0, this.prevBufferLen), this.prevBufferLen = 0, this.writeBuffer.length == 0 ? this.emit("drain") : this.flush();
3504
3517
  }, n.prototype.flush = function() {
3505
3518
  this.readyState != "closed" && this.transport.writable && !this.upgrading && this.writeBuffer.length && (h("flushing %d packets in socket", this.writeBuffer.length), this.transport.send(this.writeBuffer), this.prevBufferLen = this.writeBuffer.length, this.emit("flush"));
3506
- }, n.prototype.write = n.prototype.send = function(s, f) {
3507
- return this.sendPacket("message", s, f), this;
3508
- }, n.prototype.sendPacket = function(s, f, y) {
3519
+ }, n.prototype.write = n.prototype.send = function(s, d) {
3520
+ return this.sendPacket("message", s, d), this;
3521
+ }, n.prototype.sendPacket = function(s, d, y) {
3509
3522
  if (this.readyState != "closing" && this.readyState != "closed") {
3510
- var g = { type: s, data: f };
3523
+ var g = { type: s, data: d };
3511
3524
  this.emit("packetCreate", g), this.writeBuffer.push(g), this.callbackBuffer.push(y), this.flush();
3512
3525
  }
3513
3526
  }, n.prototype.close = function() {
3514
3527
  function s() {
3515
3528
  g.onClose("forced close"), h("socket closing - telling transport to close"), g.transport.close();
3516
3529
  }
3517
- function f() {
3518
- g.removeListener("upgrade", f), g.removeListener("upgradeError", f), s();
3530
+ function d() {
3531
+ g.removeListener("upgrade", d), g.removeListener("upgradeError", d), s();
3519
3532
  }
3520
3533
  function y() {
3521
- g.once("upgrade", f), g.once("upgradeError", f);
3534
+ g.once("upgrade", d), g.once("upgradeError", d);
3522
3535
  }
3523
3536
  if (this.readyState == "opening" || this.readyState == "open") {
3524
3537
  this.readyState = "closing";
@@ -3530,18 +3543,18 @@ function _o() {
3530
3543
  return this;
3531
3544
  }, n.prototype.onError = function(s) {
3532
3545
  h("socket error %j", s), n.priorWebsocketSuccess = !1, this.emit("error", s), this.onClose("transport error", s);
3533
- }, n.prototype.onClose = function(s, f) {
3546
+ }, n.prototype.onClose = function(s, d) {
3534
3547
  if (this.readyState == "opening" || this.readyState == "open" || this.readyState == "closing") {
3535
3548
  h('socket close with reason: "%s"', s);
3536
3549
  var y = this;
3537
3550
  clearTimeout(this.pingIntervalTimer), clearTimeout(this.pingTimeoutTimer), setTimeout(function() {
3538
3551
  y.writeBuffer = [], y.callbackBuffer = [], y.prevBufferLen = 0;
3539
- }, 0), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), this.readyState = "closed", this.id = null, this.emit("close", s, f);
3552
+ }, 0), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), this.readyState = "closed", this.id = null, this.emit("close", s, d);
3540
3553
  }
3541
3554
  }, n.prototype.filterUpgrades = function(s) {
3542
- for (var f = [], y = 0, g = s.length; g > y; y++)
3543
- ~d(this.transports, s[y]) && f.push(s[y]);
3544
- return f;
3555
+ for (var d = [], y = 0, g = s.length; g > y; y++)
3556
+ ~f(this.transports, s[y]) && d.push(s[y]);
3557
+ return d;
3545
3558
  };
3546
3559
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
3547
3560
  }, {
@@ -3587,8 +3600,8 @@ function _o() {
3587
3600
  function o(c) {
3588
3601
  var l, p = !1, a = !1, s = c.jsonp !== !1;
3589
3602
  if (n.location) {
3590
- var f = location.protocol == "https:", y = location.port;
3591
- y || (y = f ? 443 : 80), p = c.hostname != location.hostname || y != c.port, a = c.secure != f;
3603
+ var d = location.protocol == "https:", y = location.port;
3604
+ y || (y = d ? 443 : 80), p = c.hostname != location.hostname || y != c.port, a = c.secure != d;
3592
3605
  }
3593
3606
  if (c.xdomain = p, c.xscheme = a, l = new i(c), "open" in l && !c.forceJSONP)
3594
3607
  return new u(c);
@@ -3596,8 +3609,8 @@ function _o() {
3596
3609
  throw new Error("JSONP disabled");
3597
3610
  return new h(c);
3598
3611
  }
3599
- var i = t("xmlhttprequest"), u = t("./polling-xhr"), h = t("./polling-jsonp"), d = t("./websocket");
3600
- r.polling = o, r.websocket = d;
3612
+ var i = t("xmlhttprequest"), u = t("./polling-xhr"), h = t("./polling-jsonp"), f = t("./websocket");
3613
+ r.polling = o, r.websocket = f;
3601
3614
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
3602
3615
  }, { "./polling-jsonp": 16, "./polling-xhr": 17, "./websocket": 19, xmlhttprequest: 20 }],
3603
3616
  16: [function(t, e) {
@@ -3615,53 +3628,53 @@ function _o() {
3615
3628
  }
3616
3629
  var i = t("./polling"), u = t("component-inherit");
3617
3630
  e.exports = o;
3618
- var h, d = /\n/g, c = /\\n/g;
3631
+ var h, f = /\n/g, c = /\\n/g;
3619
3632
  u(o, i), o.prototype.supportsBinary = !1, o.prototype.doClose = function() {
3620
3633
  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), i.prototype.doClose.call(this);
3621
3634
  }, o.prototype.doPoll = function() {
3622
3635
  var l = this, p = document.createElement("script");
3623
- this.script && (this.script.parentNode.removeChild(this.script), this.script = null), p.async = !0, p.src = this.uri(), p.onerror = function(f) {
3624
- l.onError("jsonp poll error", f);
3636
+ this.script && (this.script.parentNode.removeChild(this.script), this.script = null), p.async = !0, p.src = this.uri(), p.onerror = function(d) {
3637
+ l.onError("jsonp poll error", d);
3625
3638
  };
3626
3639
  var a = document.getElementsByTagName("script")[0];
3627
3640
  a.parentNode.insertBefore(p, a), this.script = p;
3628
3641
  var s = typeof navigator < "u" && /gecko/i.test(navigator.userAgent);
3629
3642
  s && setTimeout(function() {
3630
- var f = document.createElement("iframe");
3631
- document.body.appendChild(f), document.body.removeChild(f);
3643
+ var d = document.createElement("iframe");
3644
+ document.body.appendChild(d), document.body.removeChild(d);
3632
3645
  }, 100);
3633
3646
  }, o.prototype.doWrite = function(l, p) {
3634
3647
  function a() {
3635
3648
  s(), p();
3636
3649
  }
3637
3650
  function s() {
3638
- if (f.iframe)
3651
+ if (d.iframe)
3639
3652
  try {
3640
- f.form.removeChild(f.iframe);
3653
+ d.form.removeChild(d.iframe);
3641
3654
  } catch (b) {
3642
- f.onError("jsonp polling iframe removal error", b);
3655
+ d.onError("jsonp polling iframe removal error", b);
3643
3656
  }
3644
3657
  try {
3645
- var B = '<iframe src="javascript:0" name="' + f.iframeId + '">';
3646
- y = document.createElement(B);
3658
+ var _ = '<iframe src="javascript:0" name="' + d.iframeId + '">';
3659
+ y = document.createElement(_);
3647
3660
  } catch {
3648
- y = document.createElement("iframe"), y.name = f.iframeId, y.src = "javascript:0";
3661
+ y = document.createElement("iframe"), y.name = d.iframeId, y.src = "javascript:0";
3649
3662
  }
3650
- y.id = f.iframeId, f.form.appendChild(y), f.iframe = y;
3663
+ y.id = d.iframeId, d.form.appendChild(y), d.iframe = y;
3651
3664
  }
3652
- var f = this;
3665
+ var d = this;
3653
3666
  if (!this.form) {
3654
- var y, g = document.createElement("form"), w = document.createElement("textarea"), _ = this.iframeId = "eio_iframe_" + this.index;
3655
- g.className = "socketio", g.style.position = "absolute", g.style.top = "-1000px", g.style.left = "-1000px", g.target = _, g.method = "POST", g.setAttribute("accept-charset", "utf-8"), w.name = "d", g.appendChild(w), document.body.appendChild(g), this.form = g, this.area = w;
3667
+ var y, g = document.createElement("form"), w = document.createElement("textarea"), B = this.iframeId = "eio_iframe_" + this.index;
3668
+ g.className = "socketio", g.style.position = "absolute", g.style.top = "-1000px", g.style.left = "-1000px", g.target = B, g.method = "POST", g.setAttribute("accept-charset", "utf-8"), w.name = "d", g.appendChild(w), document.body.appendChild(g), this.form = g, this.area = w;
3656
3669
  }
3657
3670
  this.form.action = this.uri(), s(), l = l.replace(c, `\\
3658
- `), this.area.value = l.replace(d, "\\n");
3671
+ `), this.area.value = l.replace(f, "\\n");
3659
3672
  try {
3660
3673
  this.form.submit();
3661
3674
  } catch {
3662
3675
  }
3663
3676
  this.iframe.attachEvent ? this.iframe.onreadystatechange = function() {
3664
- f.iframe.readyState == "complete" && a();
3677
+ d.iframe.readyState == "complete" && a();
3665
3678
  } : this.iframe.onload = a;
3666
3679
  };
3667
3680
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -3671,9 +3684,9 @@ function _o() {
3671
3684
  function n() {
3672
3685
  }
3673
3686
  function o(a) {
3674
- if (d.call(this, a), r.location) {
3675
- var s = location.protocol == "https:", f = location.port;
3676
- f || (f = s ? 443 : 80), this.xd = a.hostname != r.location.hostname || f != a.port, this.xs = a.secure != s;
3687
+ if (f.call(this, a), r.location) {
3688
+ var s = location.protocol == "https:", d = location.port;
3689
+ d || (d = s ? 443 : 80), this.xd = a.hostname != r.location.hostname || d != a.port, this.xs = a.secure != s;
3677
3690
  }
3678
3691
  }
3679
3692
  function i(a) {
@@ -3683,26 +3696,26 @@ function _o() {
3683
3696
  for (var a in i.requests)
3684
3697
  i.requests.hasOwnProperty(a) && i.requests[a].abort();
3685
3698
  }
3686
- var h = t("xmlhttprequest"), d = t("./polling"), c = t("component-emitter"), l = t("component-inherit"), p = t("debug")("engine.io-client:polling-xhr");
3687
- e.exports = o, e.exports.Request = i, l(o, d), o.prototype.supportsBinary = !0, o.prototype.request = function(a) {
3699
+ var h = t("xmlhttprequest"), f = t("./polling"), c = t("component-emitter"), l = t("component-inherit"), p = t("debug")("engine.io-client:polling-xhr");
3700
+ e.exports = o, e.exports.Request = i, l(o, f), o.prototype.supportsBinary = !0, o.prototype.request = function(a) {
3688
3701
  return a = a || {}, a.uri = this.uri(), a.xd = this.xd, a.xs = this.xs, a.agent = this.agent || !1, a.supportsBinary = this.supportsBinary, a.enablesXDR = this.enablesXDR, a.pfx = this.pfx, a.key = this.key, a.passphrase = this.passphrase, a.cert = this.cert, a.ca = this.ca, a.ciphers = this.ciphers, a.rejectUnauthorized = this.rejectUnauthorized, new i(a);
3689
3702
  }, o.prototype.doWrite = function(a, s) {
3690
- var f = typeof a != "string" && a !== void 0, y = this.request({ method: "POST", data: a, isBinary: f }), g = this;
3703
+ var d = typeof a != "string" && a !== void 0, y = this.request({ method: "POST", data: a, isBinary: d }), g = this;
3691
3704
  y.on("success", s), y.on("error", function(w) {
3692
3705
  g.onError("xhr post error", w);
3693
3706
  }), this.sendXhr = y;
3694
3707
  }, o.prototype.doPoll = function() {
3695
3708
  p("xhr poll");
3696
3709
  var a = this.request(), s = this;
3697
- a.on("data", function(f) {
3698
- s.onData(f);
3699
- }), a.on("error", function(f) {
3700
- s.onError("xhr poll error", f);
3710
+ a.on("data", function(d) {
3711
+ s.onData(d);
3712
+ }), a.on("error", function(d) {
3713
+ s.onError("xhr poll error", d);
3701
3714
  }), this.pollXhr = a;
3702
3715
  }, c(i.prototype), i.prototype.create = function() {
3703
3716
  var a = { agent: this.agent, xdomain: this.xd, xscheme: this.xs, enablesXDR: this.enablesXDR };
3704
3717
  a.pfx = this.pfx, a.key = this.key, a.passphrase = this.passphrase, a.cert = this.cert, a.ca = this.ca, a.ciphers = this.ciphers, a.rejectUnauthorized = this.rejectUnauthorized;
3705
- var s = this.xhr = new h(a), f = this;
3718
+ var s = this.xhr = new h(a), d = this;
3706
3719
  try {
3707
3720
  if (p("xhr open %s: %s", this.method, this.uri), s.open(this.method, this.uri, this.async), this.supportsBinary && (s.responseType = "arraybuffer"), this.method == "POST")
3708
3721
  try {
@@ -3710,17 +3723,17 @@ function _o() {
3710
3723
  } catch {
3711
3724
  }
3712
3725
  "withCredentials" in s && (s.withCredentials = !0), this.hasXDR() ? (s.onload = function() {
3713
- f.onLoad();
3726
+ d.onLoad();
3714
3727
  }, s.onerror = function() {
3715
- f.onError(s.responseText);
3728
+ d.onError(s.responseText);
3716
3729
  }) : s.onreadystatechange = function() {
3717
- s.readyState == 4 && (s.status == 200 || s.status == 1223 ? f.onLoad() : setTimeout(function() {
3718
- f.onError(s.status);
3730
+ s.readyState == 4 && (s.status == 200 || s.status == 1223 ? d.onLoad() : setTimeout(function() {
3731
+ d.onError(s.status);
3719
3732
  }, 0));
3720
3733
  }, p("xhr data %s", this.data), s.send(this.data);
3721
3734
  } catch (y) {
3722
3735
  return void setTimeout(function() {
3723
- f.onError(y);
3736
+ d.onError(y);
3724
3737
  }, 0);
3725
3738
  }
3726
3739
  r.document && (this.index = i.requestsCount++, i.requests[this.index] = this);
@@ -3748,8 +3761,8 @@ function _o() {
3748
3761
  } catch {
3749
3762
  }
3750
3763
  a = s === "application/octet-stream" ? this.xhr.response : this.supportsBinary ? "ok" : this.xhr.responseText;
3751
- } catch (f) {
3752
- this.onError(f);
3764
+ } catch (d) {
3765
+ this.onError(d);
3753
3766
  }
3754
3767
  a != null && this.onData(a);
3755
3768
  }, i.prototype.hasXDR = function() {
@@ -3762,11 +3775,11 @@ function _o() {
3762
3775
  18: [function(t, e) {
3763
3776
  function r(c) {
3764
3777
  var l = c && c.forceBase64;
3765
- (!d || l) && (this.supportsBinary = !1), n.call(this, c);
3778
+ (!f || l) && (this.supportsBinary = !1), n.call(this, c);
3766
3779
  }
3767
3780
  var n = t("../transport"), o = t("parseqs"), i = t("engine.io-parser"), u = t("component-inherit"), h = t("debug")("engine.io-client:polling");
3768
3781
  e.exports = r;
3769
- var d = function() {
3782
+ var f = function() {
3770
3783
  var c = t("xmlhttprequest"), l = new c({ xdomain: !1 });
3771
3784
  return l.responseType != null;
3772
3785
  }();
@@ -3827,11 +3840,11 @@ function _o() {
3827
3840
  var l = c && c.forceBase64;
3828
3841
  l && (this.supportsBinary = !1), n.call(this, c);
3829
3842
  }
3830
- var n = t("../transport"), o = t("engine.io-parser"), i = t("parseqs"), u = t("component-inherit"), h = t("debug")("engine.io-client:websocket"), d = t("ws");
3843
+ var n = t("../transport"), o = t("engine.io-parser"), i = t("parseqs"), u = t("component-inherit"), h = t("debug")("engine.io-client:websocket"), f = t("ws");
3831
3844
  e.exports = r, u(r, n), r.prototype.name = "websocket", r.prototype.supportsBinary = !0, r.prototype.doOpen = function() {
3832
3845
  if (this.check()) {
3833
3846
  var c = this.uri(), l = void 0, p = { agent: this.agent };
3834
- p.pfx = this.pfx, p.key = this.key, p.passphrase = this.passphrase, p.cert = this.cert, p.ca = this.ca, p.ciphers = this.ciphers, p.rejectUnauthorized = this.rejectUnauthorized, this.ws = new d(c, l, p), this.ws.binaryType === void 0 && (this.supportsBinary = !1), this.ws.binaryType = "arraybuffer", this.addEventListeners();
3847
+ p.pfx = this.pfx, p.key = this.key, p.passphrase = this.passphrase, p.cert = this.cert, p.ca = this.ca, p.ciphers = this.ciphers, p.rejectUnauthorized = this.rejectUnauthorized, this.ws = new f(c, l, p), this.ws.binaryType === void 0 && (this.supportsBinary = !1), this.ws.binaryType = "arraybuffer", this.addEventListeners();
3835
3848
  }
3836
3849
  }, r.prototype.addEventListeners = function() {
3837
3850
  var c = this;
@@ -3856,9 +3869,9 @@ function _o() {
3856
3869
  var p = this;
3857
3870
  this.writable = !1;
3858
3871
  for (var a = 0, s = c.length; s > a; a++)
3859
- o.encodePacket(c[a], this.supportsBinary, function(f) {
3872
+ o.encodePacket(c[a], this.supportsBinary, function(d) {
3860
3873
  try {
3861
- p.ws.send(f);
3874
+ p.ws.send(d);
3862
3875
  } catch {
3863
3876
  h("websocket closed before onclose event");
3864
3877
  }
@@ -3872,7 +3885,7 @@ function _o() {
3872
3885
  var c = this.query || {}, l = this.secure ? "wss" : "ws", p = "";
3873
3886
  return this.port && (l == "wss" && this.port != 443 || l == "ws" && this.port != 80) && (p = ":" + this.port), this.timestampRequests && (c[this.timestampParam] = +/* @__PURE__ */ new Date()), this.supportsBinary || (c.b64 = 1), c = i.encode(c), c.length && (c = "?" + c), l + "://" + this.hostname + p + this.path + c;
3874
3887
  }, r.prototype.check = function() {
3875
- return !(!d || "__initialize" in d && this.name === r.prototype.name);
3888
+ return !(!f || "__initialize" in f && this.name === r.prototype.name);
3876
3889
  };
3877
3890
  }, { "../transport": 14, "component-inherit": 21, debug: 22, "engine.io-parser": 25, parseqs: 33, ws: 35 }],
3878
3891
  20: [function(t, e) {
@@ -3908,35 +3921,35 @@ function _o() {
3908
3921
  return "WebkitAppearance" in document.documentElement.style || window.console && (console.firebug || console.exception && console.table) || navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31;
3909
3922
  }
3910
3923
  function o() {
3911
- var d = arguments, c = this.useColors;
3912
- if (d[0] = (c ? "%c" : "") + this.namespace + (c ? " %c" : " ") + d[0] + (c ? "%c " : " ") + "+" + r.humanize(this.diff), !c)
3913
- return d;
3924
+ var f = arguments, c = this.useColors;
3925
+ if (f[0] = (c ? "%c" : "") + this.namespace + (c ? " %c" : " ") + f[0] + (c ? "%c " : " ") + "+" + r.humanize(this.diff), !c)
3926
+ return f;
3914
3927
  var l = "color: " + this.color;
3915
- d = [d[0], l, "color: inherit"].concat(Array.prototype.slice.call(d, 1));
3928
+ f = [f[0], l, "color: inherit"].concat(Array.prototype.slice.call(f, 1));
3916
3929
  var p = 0, a = 0;
3917
- return d[0].replace(/%[a-z%]/g, function(s) {
3930
+ return f[0].replace(/%[a-z%]/g, function(s) {
3918
3931
  s !== "%%" && (p++, s === "%c" && (a = p));
3919
- }), d.splice(a, 0, l), d;
3932
+ }), f.splice(a, 0, l), f;
3920
3933
  }
3921
3934
  function i() {
3922
3935
  return typeof console == "object" && typeof console.log == "function" && Function.prototype.apply.call(console.log, console, arguments);
3923
3936
  }
3924
- function u(d) {
3937
+ function u(f) {
3925
3938
  try {
3926
- d == null ? localStorage.removeItem("debug") : localStorage.debug = d;
3939
+ f == null ? localStorage.removeItem("debug") : localStorage.debug = f;
3927
3940
  } catch {
3928
3941
  }
3929
3942
  }
3930
3943
  function h() {
3931
- var d;
3944
+ var f;
3932
3945
  try {
3933
- d = localStorage.debug;
3946
+ f = localStorage.debug;
3934
3947
  } catch {
3935
3948
  }
3936
- return d;
3949
+ return f;
3937
3950
  }
3938
- r = e.exports = t("./debug"), r.log = i, r.formatArgs = o, r.save = u, r.load = h, r.useColors = n, r.colors = ["lightseagreen", "forestgreen", "goldenrod", "dodgerblue", "darkorchid", "crimson"], r.formatters.j = function(d) {
3939
- return JSON.stringify(d);
3951
+ r = e.exports = t("./debug"), r.log = i, r.formatArgs = o, r.save = u, r.load = h, r.useColors = n, r.colors = ["lightseagreen", "forestgreen", "goldenrod", "dodgerblue", "darkorchid", "crimson"], r.formatters.j = function(f) {
3952
+ return JSON.stringify(f);
3940
3953
  }, r.enable(h());
3941
3954
  }, { "./debug": 23 }],
3942
3955
  23: [function(t, e, r) {
@@ -3949,31 +3962,31 @@ function _o() {
3949
3962
  function s() {
3950
3963
  var y = s, g = +/* @__PURE__ */ new Date(), w = g - (c || g);
3951
3964
  y.diff = w, y.prev = c, y.curr = g, c = g, y.useColors == null && (y.useColors = r.useColors()), y.color == null && y.useColors && (y.color = n());
3952
- var _ = Array.prototype.slice.call(arguments);
3953
- _[0] = r.coerce(_[0]), typeof _[0] != "string" && (_ = ["%o"].concat(_));
3954
- var B = 0;
3955
- _[0] = _[0].replace(/%([a-z%])/g, function(S, m) {
3965
+ var B = Array.prototype.slice.call(arguments);
3966
+ B[0] = r.coerce(B[0]), typeof B[0] != "string" && (B = ["%o"].concat(B));
3967
+ var _ = 0;
3968
+ B[0] = B[0].replace(/%([a-z%])/g, function(S, m) {
3956
3969
  if (S === "%%")
3957
3970
  return S;
3958
- B++;
3971
+ _++;
3959
3972
  var C = r.formatters[m];
3960
3973
  if (typeof C == "function") {
3961
- var E = _[B];
3962
- S = C.call(y, E), _.splice(B, 1), B--;
3974
+ var E = B[_];
3975
+ S = C.call(y, E), B.splice(_, 1), _--;
3963
3976
  }
3964
3977
  return S;
3965
- }), typeof r.formatArgs == "function" && (_ = r.formatArgs.apply(y, _));
3978
+ }), typeof r.formatArgs == "function" && (B = r.formatArgs.apply(y, B));
3966
3979
  var b = s.log || r.log || console.log.bind(console);
3967
- b.apply(y, _);
3980
+ b.apply(y, B);
3968
3981
  }
3969
3982
  a.enabled = !1, s.enabled = !0;
3970
- var f = r.enabled(p) ? s : a;
3971
- return f.namespace = p, f;
3983
+ var d = r.enabled(p) ? s : a;
3984
+ return d.namespace = p, d;
3972
3985
  }
3973
3986
  function i(p) {
3974
3987
  r.save(p);
3975
- for (var a = (p || "").split(/[\s,]+/), s = a.length, f = 0; s > f; f++)
3976
- a[f] && (p = a[f].replace(/\*/g, ".*?"), p[0] === "-" ? r.skips.push(new RegExp("^" + p.substr(1) + "$")) : r.names.push(new RegExp("^" + p + "$")));
3988
+ for (var a = (p || "").split(/[\s,]+/), s = a.length, d = 0; s > d; d++)
3989
+ a[d] && (p = a[d].replace(/\*/g, ".*?"), p[0] === "-" ? r.skips.push(new RegExp("^" + p.substr(1) + "$")) : r.names.push(new RegExp("^" + p + "$")));
3977
3990
  }
3978
3991
  function u() {
3979
3992
  r.enable("");
@@ -3988,18 +4001,18 @@ function _o() {
3988
4001
  return !0;
3989
4002
  return !1;
3990
4003
  }
3991
- function d(p) {
4004
+ function f(p) {
3992
4005
  return p instanceof Error ? p.stack || p.message : p;
3993
4006
  }
3994
- r = e.exports = o, r.coerce = d, r.disable = u, r.enable = i, r.enabled = h, r.humanize = t("ms"), r.names = [], r.skips = [], r.formatters = {};
4007
+ r = e.exports = o, r.coerce = f, r.disable = u, r.enable = i, r.enabled = h, r.humanize = t("ms"), r.names = [], r.skips = [], r.formatters = {};
3995
4008
  var c, l = 0;
3996
4009
  }, { ms: 24 }],
3997
4010
  24: [function(t, e) {
3998
4011
  function r(p) {
3999
4012
  var a = /^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(p);
4000
4013
  if (a) {
4001
- var s = parseFloat(a[1]), f = (a[2] || "ms").toLowerCase();
4002
- switch (f) {
4014
+ var s = parseFloat(a[1]), d = (a[2] || "ms").toLowerCase();
4015
+ switch (d) {
4003
4016
  case "years":
4004
4017
  case "year":
4005
4018
  case "y":
@@ -4011,7 +4024,7 @@ function _o() {
4011
4024
  case "hours":
4012
4025
  case "hour":
4013
4026
  case "h":
4014
- return s * d;
4027
+ return s * f;
4015
4028
  case "minutes":
4016
4029
  case "minute":
4017
4030
  case "m":
@@ -4026,15 +4039,15 @@ function _o() {
4026
4039
  }
4027
4040
  }
4028
4041
  function n(p) {
4029
- return p >= c ? Math.round(p / c) + "d" : p >= d ? Math.round(p / d) + "h" : p >= h ? Math.round(p / h) + "m" : p >= u ? Math.round(p / u) + "s" : p + "ms";
4042
+ return p >= c ? Math.round(p / c) + "d" : p >= f ? Math.round(p / f) + "h" : p >= h ? Math.round(p / h) + "m" : p >= u ? Math.round(p / u) + "s" : p + "ms";
4030
4043
  }
4031
4044
  function o(p) {
4032
- return i(p, c, "day") || i(p, d, "hour") || i(p, h, "minute") || i(p, u, "second") || p + " ms";
4045
+ return i(p, c, "day") || i(p, f, "hour") || i(p, h, "minute") || i(p, u, "second") || p + " ms";
4033
4046
  }
4034
4047
  function i(p, a, s) {
4035
4048
  return a > p ? void 0 : 1.5 * a > p ? Math.floor(p / a) + " " + s : Math.ceil(p / a) + " " + s + "s";
4036
4049
  }
4037
- var u = 1e3, h = 60 * u, d = 60 * h, c = 24 * d, l = 365.25 * c;
4050
+ var u = 1e3, h = 60 * u, f = 60 * h, c = 24 * f, l = 365.25 * c;
4038
4051
  e.exports = function(p, a) {
4039
4052
  return a = a || {}, typeof p == "string" ? r(p) : a.long ? o(p) : n(p);
4040
4053
  };
@@ -4049,9 +4062,9 @@ function _o() {
4049
4062
  if (!C)
4050
4063
  return r.encodeBase64Packet(m, E);
4051
4064
  var v = m.data, k = new Uint8Array(v), T = new Uint8Array(1 + v.byteLength);
4052
- T[0] = _[m.type];
4053
- for (var x = 0; x < k.length; x++)
4054
- T[x + 1] = k[x];
4065
+ T[0] = B[m.type];
4066
+ for (var O = 0; O < k.length; O++)
4067
+ T[O + 1] = k[O];
4055
4068
  return E(T.buffer);
4056
4069
  }
4057
4070
  function u(m, C, E) {
@@ -4068,21 +4081,21 @@ function _o() {
4068
4081
  if (w)
4069
4082
  return u(m, C, E);
4070
4083
  var v = new Uint8Array(1);
4071
- v[0] = _[m.type];
4084
+ v[0] = B[m.type];
4072
4085
  var k = new S([v.buffer, m.data]);
4073
4086
  return E(k);
4074
4087
  }
4075
- function d(m, C, E) {
4076
- for (var v = new Array(m.length), k = s(m.length, E), T = function(O, A, q) {
4088
+ function f(m, C, E) {
4089
+ for (var v = new Array(m.length), k = s(m.length, E), T = function(x, A, q) {
4077
4090
  C(A, function(j, $) {
4078
- v[O] = $, q(j, v);
4091
+ v[x] = $, q(j, v);
4079
4092
  });
4080
- }, x = 0; x < m.length; x++)
4081
- T(x, m[x], k);
4093
+ }, O = 0; O < m.length; O++)
4094
+ T(O, m[O], k);
4082
4095
  }
4083
- var c = t("./keys"), l = t("has-binary"), p = t("arraybuffer.slice"), a = t("base64-arraybuffer"), s = t("after"), f = t("utf8"), y = navigator.userAgent.match(/Android/i), g = /PhantomJS/i.test(navigator.userAgent), w = y || g;
4096
+ var c = t("./keys"), l = t("has-binary"), p = t("arraybuffer.slice"), a = t("base64-arraybuffer"), s = t("after"), d = t("utf8"), y = navigator.userAgent.match(/Android/i), g = /PhantomJS/i.test(navigator.userAgent), w = y || g;
4084
4097
  r.protocol = 3;
4085
- var _ = r.packets = { open: 0, close: 1, ping: 2, pong: 3, message: 4, upgrade: 5, noop: 6 }, B = c(_), b = { type: "error", data: "parser error" }, S = t("blob");
4098
+ var B = r.packets = { open: 0, close: 1, ping: 2, pong: 3, message: 4, upgrade: 5, noop: 6 }, _ = c(B), b = { type: "error", data: "parser error" }, S = t("blob");
4086
4099
  r.encodePacket = function(m, C, E, v) {
4087
4100
  typeof C == "function" && (v = C, C = !1), typeof E == "function" && (v = E, E = null);
4088
4101
  var k = m.data === void 0 ? void 0 : m.data.buffer || m.data;
@@ -4092,8 +4105,8 @@ function _o() {
4092
4105
  return h(m, C, v);
4093
4106
  if (k && k.base64)
4094
4107
  return o(m, v);
4095
- var T = _[m.type];
4096
- return m.data !== void 0 && (T += E ? f.encode(String(m.data)) : String(m.data)), v("" + T);
4108
+ var T = B[m.type];
4109
+ return m.data !== void 0 && (T += E ? d.encode(String(m.data)) : String(m.data)), v("" + T);
4097
4110
  }, r.encodeBase64Packet = function(m, C) {
4098
4111
  var E = "b" + r.packets[m.type];
4099
4112
  if (S && m.data instanceof S) {
@@ -4107,9 +4120,9 @@ function _o() {
4107
4120
  try {
4108
4121
  k = String.fromCharCode.apply(null, new Uint8Array(m.data));
4109
4122
  } catch {
4110
- for (var T = new Uint8Array(m.data), x = new Array(T.length), O = 0; O < T.length; O++)
4111
- x[O] = T[O];
4112
- k = String.fromCharCode.apply(null, x);
4123
+ for (var T = new Uint8Array(m.data), O = new Array(T.length), x = 0; x < T.length; x++)
4124
+ O[x] = T[x];
4125
+ k = String.fromCharCode.apply(null, O);
4113
4126
  }
4114
4127
  return E += n.btoa(k), C(E);
4115
4128
  }, r.decodePacket = function(m, C, E) {
@@ -4118,37 +4131,37 @@ function _o() {
4118
4131
  return r.decodeBase64Packet(m.substr(1), C);
4119
4132
  if (E)
4120
4133
  try {
4121
- m = f.decode(m);
4134
+ m = d.decode(m);
4122
4135
  } catch {
4123
4136
  return b;
4124
4137
  }
4125
4138
  var k = m.charAt(0);
4126
- return Number(k) == k && B[k] ? m.length > 1 ? {
4127
- type: B[k],
4139
+ return Number(k) == k && _[k] ? m.length > 1 ? {
4140
+ type: _[k],
4128
4141
  data: m.substring(1)
4129
- } : { type: B[k] } : b;
4142
+ } : { type: _[k] } : b;
4130
4143
  }
4131
4144
  var v = new Uint8Array(m), k = v[0], T = p(m, 1);
4132
- return S && C === "blob" && (T = new S([T])), { type: B[k], data: T };
4145
+ return S && C === "blob" && (T = new S([T])), { type: _[k], data: T };
4133
4146
  }, r.decodeBase64Packet = function(m, C) {
4134
- var E = B[m.charAt(0)];
4147
+ var E = _[m.charAt(0)];
4135
4148
  if (!n.ArrayBuffer)
4136
4149
  return { type: E, data: { base64: !0, data: m.substr(1) } };
4137
4150
  var v = a.decode(m.substr(1));
4138
4151
  return C === "blob" && S && (v = new S([v])), { type: E, data: v };
4139
4152
  }, r.encodePayload = function(m, C, E) {
4140
- function v(x) {
4141
- return x.length + ":" + x;
4153
+ function v(O) {
4154
+ return O.length + ":" + O;
4142
4155
  }
4143
- function k(x, O) {
4144
- r.encodePacket(x, T ? C : !1, !0, function(A) {
4145
- O(null, v(A));
4156
+ function k(O, x) {
4157
+ r.encodePacket(O, T ? C : !1, !0, function(A) {
4158
+ x(null, v(A));
4146
4159
  });
4147
4160
  }
4148
4161
  typeof C == "function" && (E = C, C = null);
4149
4162
  var T = l(m);
4150
- return C && T ? S && !w ? r.encodePayloadAsBlob(m, E) : r.encodePayloadAsArrayBuffer(m, E) : m.length ? void d(m, k, function(x, O) {
4151
- return E(O.join(""));
4163
+ return C && T ? S && !w ? r.encodePayloadAsBlob(m, E) : r.encodePayloadAsArrayBuffer(m, E) : m.length ? void f(m, k, function(O, x) {
4164
+ return E(x.join(""));
4152
4165
  }) : E("0:");
4153
4166
  }, r.decodePayload = function(m, C, E) {
4154
4167
  if (typeof m != "string")
@@ -4157,35 +4170,35 @@ function _o() {
4157
4170
  var v;
4158
4171
  if (m == "")
4159
4172
  return E(b, 0, 1);
4160
- for (var k, T, x = "", O = 0, A = m.length; A > O; O++) {
4161
- var q = m.charAt(O);
4173
+ for (var k, T, O = "", x = 0, A = m.length; A > x; x++) {
4174
+ var q = m.charAt(x);
4162
4175
  if (q != ":")
4163
- x += q;
4176
+ O += q;
4164
4177
  else {
4165
- if (x == "" || x != (k = Number(x)) || (T = m.substr(O + 1, k), x != T.length))
4178
+ if (O == "" || O != (k = Number(O)) || (T = m.substr(x + 1, k), O != T.length))
4166
4179
  return E(b, 0, 1);
4167
4180
  if (T.length) {
4168
4181
  if (v = r.decodePacket(T, C, !0), b.type == v.type && b.data == v.data)
4169
4182
  return E(b, 0, 1);
4170
- var j = E(v, O + k, A);
4183
+ var j = E(v, x + k, A);
4171
4184
  if (j === !1)
4172
4185
  return;
4173
4186
  }
4174
- O += k, x = "";
4187
+ x += k, O = "";
4175
4188
  }
4176
4189
  }
4177
- return x != "" ? E(b, 0, 1) : void 0;
4190
+ return O != "" ? E(b, 0, 1) : void 0;
4178
4191
  }, r.encodePayloadAsArrayBuffer = function(m, C) {
4179
4192
  function E(v, k) {
4180
4193
  r.encodePacket(v, !0, !0, function(T) {
4181
4194
  return k(null, T);
4182
4195
  });
4183
4196
  }
4184
- return m.length ? void d(m, E, function(v, k) {
4197
+ return m.length ? void f(m, E, function(v, k) {
4185
4198
  var T = k.reduce(function(A, q) {
4186
4199
  var j;
4187
4200
  return j = typeof q == "string" ? q.length : q.byteLength, A + j.toString().length + j + 2;
4188
- }, 0), x = new Uint8Array(T), O = 0;
4201
+ }, 0), O = new Uint8Array(T), x = 0;
4189
4202
  return k.forEach(function(A) {
4190
4203
  var q = typeof A == "string", j = A;
4191
4204
  if (q) {
@@ -4193,49 +4206,49 @@ function _o() {
4193
4206
  $[X] = A.charCodeAt(X);
4194
4207
  j = $.buffer;
4195
4208
  }
4196
- x[O++] = q ? 0 : 1;
4209
+ O[x++] = q ? 0 : 1;
4197
4210
  for (var et = j.byteLength.toString(), X = 0; X < et.length; X++)
4198
- x[O++] = parseInt(et[X]);
4199
- x[O++] = 255;
4211
+ O[x++] = parseInt(et[X]);
4212
+ O[x++] = 255;
4200
4213
  for (var $ = new Uint8Array(j), X = 0; X < $.length; X++)
4201
- x[O++] = $[X];
4202
- }), C(x.buffer);
4214
+ O[x++] = $[X];
4215
+ }), C(O.buffer);
4203
4216
  }) : C(new ArrayBuffer(0));
4204
4217
  }, r.encodePayloadAsBlob = function(m, C) {
4205
4218
  function E(v, k) {
4206
4219
  r.encodePacket(v, !0, !0, function(T) {
4207
- var x = new Uint8Array(1);
4208
- if (x[0] = 1, typeof T == "string") {
4209
- for (var O = new Uint8Array(T.length), A = 0; A < T.length; A++)
4210
- O[A] = T.charCodeAt(A);
4211
- T = O.buffer, x[0] = 0;
4220
+ var O = new Uint8Array(1);
4221
+ if (O[0] = 1, typeof T == "string") {
4222
+ for (var x = new Uint8Array(T.length), A = 0; A < T.length; A++)
4223
+ x[A] = T.charCodeAt(A);
4224
+ T = x.buffer, O[0] = 0;
4212
4225
  }
4213
4226
  for (var q = T instanceof ArrayBuffer ? T.byteLength : T.size, j = q.toString(), $ = new Uint8Array(j.length + 1), A = 0; A < j.length; A++)
4214
4227
  $[A] = parseInt(j[A]);
4215
4228
  if ($[j.length] = 255, S) {
4216
- var X = new S([x.buffer, $.buffer, T]);
4229
+ var X = new S([O.buffer, $.buffer, T]);
4217
4230
  k(null, X);
4218
4231
  }
4219
4232
  });
4220
4233
  }
4221
- d(m, E, function(v, k) {
4234
+ f(m, E, function(v, k) {
4222
4235
  return C(new S(k));
4223
4236
  });
4224
4237
  }, r.decodePayloadAsBinary = function(m, C, E) {
4225
4238
  typeof C == "function" && (E = C, C = null);
4226
4239
  for (var v = m, k = [], T = !1; v.byteLength > 0; ) {
4227
- for (var x = new Uint8Array(v), O = x[0] === 0, A = "", q = 1; x[q] != 255; q++) {
4240
+ for (var O = new Uint8Array(v), x = O[0] === 0, A = "", q = 1; O[q] != 255; q++) {
4228
4241
  if (A.length > 310) {
4229
4242
  T = !0;
4230
4243
  break;
4231
4244
  }
4232
- A += x[q];
4245
+ A += O[q];
4233
4246
  }
4234
4247
  if (T)
4235
4248
  return E(b, 0, 1);
4236
4249
  v = p(v, 2 + A.length), A = parseInt(A);
4237
4250
  var j = p(v, 0, A);
4238
- if (O)
4251
+ if (x)
4239
4252
  try {
4240
4253
  j = String.fromCharCode.apply(null, new Uint8Array(j));
4241
4254
  } catch {
@@ -4247,8 +4260,8 @@ function _o() {
4247
4260
  k.push(j), v = p(v, A);
4248
4261
  }
4249
4262
  var X = k.length;
4250
- k.forEach(function(et, xt) {
4251
- E(r.decodePacket(et, C, !0), xt, X);
4263
+ k.forEach(function(et, Nt) {
4264
+ E(r.decodePacket(et, C, !0), Nt, X);
4252
4265
  });
4253
4266
  };
4254
4267
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -4274,9 +4287,9 @@ function _o() {
4274
4287
  function h(c, l) {
4275
4288
  if (h.count <= 0)
4276
4289
  throw new Error("after called too many times");
4277
- --h.count, c ? (d = !0, i(c), i = u) : h.count !== 0 || d || i(null, l);
4290
+ --h.count, c ? (f = !0, i(c), i = u) : h.count !== 0 || f || i(null, l);
4278
4291
  }
4279
- var d = !1;
4292
+ var f = !1;
4280
4293
  return u = u || n, h.count = o, o === 0 ? i() : h;
4281
4294
  }
4282
4295
  function n() {
@@ -4290,24 +4303,24 @@ function _o() {
4290
4303
  return r.slice(n, o);
4291
4304
  if (0 > n && (n += i), 0 > o && (o += i), o > i && (o = i), n >= i || n >= o || i === 0)
4292
4305
  return new ArrayBuffer(0);
4293
- for (var u = new Uint8Array(r), h = new Uint8Array(o - n), d = n, c = 0; o > d; d++, c++)
4294
- h[c] = u[d];
4306
+ for (var u = new Uint8Array(r), h = new Uint8Array(o - n), f = n, c = 0; o > f; f++, c++)
4307
+ h[c] = u[f];
4295
4308
  return h.buffer;
4296
4309
  };
4297
4310
  }, {}],
4298
4311
  29: [function(t, e, r) {
4299
4312
  (function(n) {
4300
4313
  r.encode = function(o) {
4301
- var i, u = new Uint8Array(o), h = u.length, d = "";
4314
+ var i, u = new Uint8Array(o), h = u.length, f = "";
4302
4315
  for (i = 0; h > i; i += 3)
4303
- d += n[u[i] >> 2], d += n[(3 & u[i]) << 4 | u[i + 1] >> 4], d += n[(15 & u[i + 1]) << 2 | u[i + 2] >> 6], d += n[63 & u[i + 2]];
4304
- return h % 3 === 2 ? d = d.substring(0, d.length - 1) + "=" : h % 3 === 1 && (d = d.substring(0, d.length - 2) + "=="), d;
4316
+ f += n[u[i] >> 2], f += n[(3 & u[i]) << 4 | u[i + 1] >> 4], f += n[(15 & u[i + 1]) << 2 | u[i + 2] >> 6], f += n[63 & u[i + 2]];
4317
+ return h % 3 === 2 ? f = f.substring(0, f.length - 1) + "=" : h % 3 === 1 && (f = f.substring(0, f.length - 2) + "=="), f;
4305
4318
  }, r.decode = function(o) {
4306
- var i, u, h, d, c, l = 0.75 * o.length, p = o.length, a = 0;
4319
+ var i, u, h, f, c, l = 0.75 * o.length, p = o.length, a = 0;
4307
4320
  o[o.length - 1] === "=" && (l--, o[o.length - 2] === "=" && l--);
4308
- var s = new ArrayBuffer(l), f = new Uint8Array(s);
4321
+ var s = new ArrayBuffer(l), d = new Uint8Array(s);
4309
4322
  for (i = 0; p > i; i += 4)
4310
- u = n.indexOf(o[i]), h = n.indexOf(o[i + 1]), d = n.indexOf(o[i + 2]), c = n.indexOf(o[i + 3]), f[a++] = u << 2 | h >> 4, f[a++] = (15 & h) << 4 | d >> 2, f[a++] = (3 & d) << 6 | 63 & c;
4323
+ u = n.indexOf(o[i]), h = n.indexOf(o[i + 1]), f = n.indexOf(o[i + 2]), c = n.indexOf(o[i + 3]), d[a++] = u << 2 | h >> 4, d[a++] = (15 & h) << 4 | f >> 2, d[a++] = (3 & f) << 6 | 63 & c;
4311
4324
  return s;
4312
4325
  };
4313
4326
  })("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
@@ -4320,8 +4333,8 @@ function _o() {
4320
4333
  if (a.buffer instanceof ArrayBuffer) {
4321
4334
  var s = a.buffer;
4322
4335
  if (a.byteLength !== s.byteLength) {
4323
- var f = new Uint8Array(a.byteLength);
4324
- f.set(new Uint8Array(s, a.byteOffset, a.byteLength)), s = f.buffer;
4336
+ var d = new Uint8Array(a.byteLength);
4337
+ d.set(new Uint8Array(s, a.byteOffset, a.byteLength)), s = d.buffer;
4325
4338
  }
4326
4339
  l[p] = s;
4327
4340
  }
@@ -4345,7 +4358,7 @@ function _o() {
4345
4358
  } catch {
4346
4359
  return !1;
4347
4360
  }
4348
- }(), d = h && function() {
4361
+ }(), f = h && function() {
4349
4362
  try {
4350
4363
  var l = new Blob([new Uint8Array([1, 2])]);
4351
4364
  return l.size === 2;
@@ -4354,7 +4367,7 @@ function _o() {
4354
4367
  }
4355
4368
  }(), c = u && u.prototype.append && u.prototype.getBlob;
4356
4369
  e.exports = function() {
4357
- return h ? d ? r.Blob : i : c ? o : void 0;
4370
+ return h ? f ? r.Blob : i : c ? o : void 0;
4358
4371
  }();
4359
4372
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
4360
4373
  }, {}],
@@ -4362,80 +4375,80 @@ function _o() {
4362
4375
  (function(n) {
4363
4376
  (function(o) {
4364
4377
  function i(v) {
4365
- for (var k, T, x = [], O = 0, A = v.length; A > O; )
4366
- k = v.charCodeAt(O++), k >= 55296 && 56319 >= k && A > O ? (T = v.charCodeAt(O++), (64512 & T) == 56320 ? x.push(((1023 & k) << 10) + (1023 & T) + 65536) : (x.push(k), O--)) : x.push(k);
4367
- return x;
4378
+ for (var k, T, O = [], x = 0, A = v.length; A > x; )
4379
+ k = v.charCodeAt(x++), k >= 55296 && 56319 >= k && A > x ? (T = v.charCodeAt(x++), (64512 & T) == 56320 ? O.push(((1023 & k) << 10) + (1023 & T) + 65536) : (O.push(k), x--)) : O.push(k);
4380
+ return O;
4368
4381
  }
4369
4382
  function u(v) {
4370
- for (var k, T = v.length, x = -1, O = ""; ++x < T; )
4371
- k = v[x], k > 65535 && (k -= 65536, O += b(k >>> 10 & 1023 | 55296), k = 56320 | 1023 & k), O += b(k);
4372
- return O;
4383
+ for (var k, T = v.length, O = -1, x = ""; ++O < T; )
4384
+ k = v[O], k > 65535 && (k -= 65536, x += b(k >>> 10 & 1023 | 55296), k = 56320 | 1023 & k), x += b(k);
4385
+ return x;
4373
4386
  }
4374
4387
  function h(v) {
4375
4388
  if (v >= 55296 && 57343 >= v)
4376
4389
  throw Error("Lone surrogate U+" + v.toString(16).toUpperCase() + " is not a scalar value");
4377
4390
  }
4378
- function d(v, k) {
4391
+ function f(v, k) {
4379
4392
  return b(v >> k & 63 | 128);
4380
4393
  }
4381
4394
  function c(v) {
4382
4395
  if (!(4294967168 & v))
4383
4396
  return b(v);
4384
4397
  var k = "";
4385
- return 4294965248 & v ? 4294901760 & v ? !(4292870144 & v) && (k = b(v >> 18 & 7 | 240), k += d(v, 12), k += d(v, 6)) : (h(v), k = b(v >> 12 & 15 | 224), k += d(v, 6)) : k = b(v >> 6 & 31 | 192), k += b(63 & v | 128);
4398
+ return 4294965248 & v ? 4294901760 & v ? !(4292870144 & v) && (k = b(v >> 18 & 7 | 240), k += f(v, 12), k += f(v, 6)) : (h(v), k = b(v >> 12 & 15 | 224), k += f(v, 6)) : k = b(v >> 6 & 31 | 192), k += b(63 & v | 128);
4386
4399
  }
4387
4400
  function l(v) {
4388
- for (var k, T = i(v), x = T.length, O = -1, A = ""; ++O < x; )
4389
- k = T[O], A += c(k);
4401
+ for (var k, T = i(v), O = T.length, x = -1, A = ""; ++x < O; )
4402
+ k = T[x], A += c(k);
4390
4403
  return A;
4391
4404
  }
4392
4405
  function p() {
4393
- if (B >= _)
4406
+ if (_ >= B)
4394
4407
  throw Error("Invalid byte index");
4395
- var v = 255 & w[B];
4396
- if (B++, (192 & v) == 128)
4408
+ var v = 255 & w[_];
4409
+ if (_++, (192 & v) == 128)
4397
4410
  return 63 & v;
4398
4411
  throw Error("Invalid continuation byte");
4399
4412
  }
4400
4413
  function a() {
4401
- var v, k, T, x, O;
4402
- if (B > _)
4414
+ var v, k, T, O, x;
4415
+ if (_ > B)
4403
4416
  throw Error("Invalid byte index");
4404
- if (B == _)
4417
+ if (_ == B)
4405
4418
  return !1;
4406
- if (v = 255 & w[B], B++, (128 & v) == 0)
4419
+ if (v = 255 & w[_], _++, (128 & v) == 0)
4407
4420
  return v;
4408
4421
  if ((224 & v) == 192) {
4409
4422
  var k = p();
4410
- if (O = (31 & v) << 6 | k, O >= 128)
4411
- return O;
4423
+ if (x = (31 & v) << 6 | k, x >= 128)
4424
+ return x;
4412
4425
  throw Error("Invalid continuation byte");
4413
4426
  }
4414
4427
  if ((240 & v) == 224) {
4415
- if (k = p(), T = p(), O = (15 & v) << 12 | k << 6 | T, O >= 2048)
4416
- return h(O), O;
4428
+ if (k = p(), T = p(), x = (15 & v) << 12 | k << 6 | T, x >= 2048)
4429
+ return h(x), x;
4417
4430
  throw Error("Invalid continuation byte");
4418
4431
  }
4419
- if ((248 & v) == 240 && (k = p(), T = p(), x = p(), O = (15 & v) << 18 | k << 12 | T << 6 | x, O >= 65536 && 1114111 >= O))
4420
- return O;
4432
+ if ((248 & v) == 240 && (k = p(), T = p(), O = p(), x = (15 & v) << 18 | k << 12 | T << 6 | O, x >= 65536 && 1114111 >= x))
4433
+ return x;
4421
4434
  throw Error("Invalid UTF-8 detected");
4422
4435
  }
4423
4436
  function s(v) {
4424
- w = i(v), _ = w.length, B = 0;
4437
+ w = i(v), B = w.length, _ = 0;
4425
4438
  for (var k, T = []; (k = a()) !== !1; )
4426
4439
  T.push(k);
4427
4440
  return u(T);
4428
4441
  }
4429
- var f = typeof r == "object" && r, y = typeof e == "object" && e && e.exports == f && e, g = typeof n == "object" && n;
4442
+ var d = typeof r == "object" && r, y = typeof e == "object" && e && e.exports == d && e, g = typeof n == "object" && n;
4430
4443
  (g.global === g || g.window === g) && (o = g);
4431
- var w, _, B, b = String.fromCharCode, S = { version: "2.0.0", encode: l, decode: s };
4432
- if (f && !f.nodeType)
4444
+ var w, B, _, b = String.fromCharCode, S = { version: "2.0.0", encode: l, decode: s };
4445
+ if (d && !d.nodeType)
4433
4446
  if (y)
4434
4447
  y.exports = S;
4435
4448
  else {
4436
4449
  var m = {}, C = m.hasOwnProperty;
4437
4450
  for (var E in S)
4438
- C.call(S, E) && (f[E] = S[E]);
4451
+ C.call(S, E) && (d[E] = S[E]);
4439
4452
  }
4440
4453
  else
4441
4454
  o.utf8 = S;
@@ -4444,9 +4457,9 @@ function _o() {
4444
4457
  }, {}],
4445
4458
  32: [function(t, e) {
4446
4459
  (function(r) {
4447
- var n = /^[\],:{}\s]*$/, o = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, i = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, u = /(?:^|:|,)(?:\s*\[)+/g, h = /^\s+/, d = /\s+$/;
4460
+ var n = /^[\],:{}\s]*$/, o = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, i = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, u = /(?:^|:|,)(?:\s*\[)+/g, h = /^\s+/, f = /\s+$/;
4448
4461
  e.exports = function(c) {
4449
- return typeof c == "string" && c ? (c = c.replace(h, "").replace(d, ""), r.JSON && JSON.parse ? JSON.parse(c) : n.test(c.replace(o, "@").replace(i, "]").replace(u, "")) ? new Function("return " + c)() : void 0) : null;
4462
+ return typeof c == "string" && c ? (c = c.replace(h, "").replace(f, ""), r.JSON && JSON.parse ? JSON.parse(c) : n.test(c.replace(o, "@").replace(i, "]").replace(u, "")) ? new Function("return " + c)() : void 0) : null;
4450
4463
  };
4451
4464
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
4452
4465
  }, {}],
@@ -4458,8 +4471,8 @@ function _o() {
4458
4471
  return o;
4459
4472
  }, r.decode = function(n) {
4460
4473
  for (var o = {}, i = n.split("&"), u = 0, h = i.length; h > u; u++) {
4461
- var d = i[u].split("=");
4462
- o[decodeURIComponent(d[0])] = decodeURIComponent(d[1]);
4474
+ var f = i[u].split("=");
4475
+ o[decodeURIComponent(f[0])] = decodeURIComponent(f[1]);
4463
4476
  }
4464
4477
  return o;
4465
4478
  };
@@ -4469,8 +4482,8 @@ function _o() {
4469
4482
  e.exports = function(o) {
4470
4483
  var i = o, u = o.indexOf("["), h = o.indexOf("]");
4471
4484
  u != -1 && h != -1 && (o = o.substring(0, u) + o.substring(u, h).replace(/:/g, ";") + o.substring(h, o.length));
4472
- for (var d = r.exec(o || ""), c = {}, l = 14; l--; )
4473
- c[n[l]] = d[l] || "";
4485
+ for (var f = r.exec(o || ""), c = {}, l = 14; l--; )
4486
+ c[n[l]] = f[l] || "";
4474
4487
  return u != -1 && h != -1 && (c.source = i, c.host = c.host.substring(1, c.host.length - 1).replace(/;/g, ":"), c.authority = c.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), c.ipv6uri = !0), c;
4475
4488
  };
4476
4489
  }, {}],
@@ -4492,8 +4505,8 @@ function _o() {
4492
4505
  if (r.Buffer && r.Buffer.isBuffer(h) || r.ArrayBuffer && h instanceof ArrayBuffer || r.Blob && h instanceof Blob || r.File && h instanceof File)
4493
4506
  return !0;
4494
4507
  if (o(h)) {
4495
- for (var d = 0; d < h.length; d++)
4496
- if (u(h[d]))
4508
+ for (var f = 0; f < h.length; f++)
4509
+ if (u(h[f]))
4497
4510
  return !0;
4498
4511
  } else if (h && typeof h == "object") {
4499
4512
  h.toJSON && (h = h.toJSON());
@@ -4576,12 +4589,12 @@ function _o() {
4576
4589
  if (!p)
4577
4590
  return p;
4578
4591
  if (i(p)) {
4579
- var a = { _placeholder: !0, num: d.length };
4580
- return d.push(p), a;
4592
+ var a = { _placeholder: !0, num: f.length };
4593
+ return f.push(p), a;
4581
4594
  }
4582
4595
  if (o(p)) {
4583
- for (var s = new Array(p.length), f = 0; f < p.length; f++)
4584
- s[f] = h(p[f]);
4596
+ for (var s = new Array(p.length), d = 0; d < p.length; d++)
4597
+ s[d] = h(p[d]);
4585
4598
  return s;
4586
4599
  }
4587
4600
  if (typeof p == "object" && !(p instanceof Date)) {
@@ -4592,46 +4605,46 @@ function _o() {
4592
4605
  }
4593
4606
  return p;
4594
4607
  }
4595
- var d = [], c = u.data, l = u;
4596
- return l.data = h(c), l.attachments = d.length, { packet: l, buffers: d };
4608
+ var f = [], c = u.data, l = u;
4609
+ return l.data = h(c), l.attachments = f.length, { packet: l, buffers: f };
4597
4610
  }, r.reconstructPacket = function(u, h) {
4598
- function d(c) {
4611
+ function f(c) {
4599
4612
  if (c && c._placeholder) {
4600
4613
  var l = h[c.num];
4601
4614
  return l;
4602
4615
  }
4603
4616
  if (o(c)) {
4604
4617
  for (var p = 0; p < c.length; p++)
4605
- c[p] = d(c[p]);
4618
+ c[p] = f(c[p]);
4606
4619
  return c;
4607
4620
  }
4608
4621
  if (c && typeof c == "object") {
4609
4622
  for (var a in c)
4610
- c[a] = d(c[a]);
4623
+ c[a] = f(c[a]);
4611
4624
  return c;
4612
4625
  }
4613
4626
  return c;
4614
4627
  }
4615
- return u.data = d(u.data), u.attachments = void 0, u;
4628
+ return u.data = f(u.data), u.attachments = void 0, u;
4616
4629
  }, r.removeBlobs = function(u, h) {
4617
- function d(p, a, s) {
4630
+ function f(p, a, s) {
4618
4631
  if (!p)
4619
4632
  return p;
4620
4633
  if (n.Blob && p instanceof Blob || n.File && p instanceof File) {
4621
4634
  c++;
4622
- var f = new FileReader();
4623
- f.onload = function() {
4635
+ var d = new FileReader();
4636
+ d.onload = function() {
4624
4637
  s ? s[a] = this.result : l = this.result, --c || h(l);
4625
- }, f.readAsArrayBuffer(p);
4638
+ }, d.readAsArrayBuffer(p);
4626
4639
  } else if (o(p))
4627
4640
  for (var y = 0; y < p.length; y++)
4628
- d(p[y], y, p);
4641
+ f(p[y], y, p);
4629
4642
  else if (p && typeof p == "object" && !i(p))
4630
4643
  for (var g in p)
4631
- d(p[g], g, p);
4644
+ f(p[g], g, p);
4632
4645
  }
4633
4646
  var c = 0, l = u;
4634
- d(l), c || h(l);
4647
+ f(l), c || h(l);
4635
4648
  };
4636
4649
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
4637
4650
  }, { "./is-buffer": 45, isarray: 46 }],
@@ -4643,8 +4656,8 @@ function _o() {
4643
4656
  return g += y.type, (r.BINARY_EVENT == y.type || r.BINARY_ACK == y.type) && (g += y.attachments, g += "-"), y.nsp && y.nsp != "/" && (w = !0, g += y.nsp), y.id != null && (w && (g += ",", w = !1), g += y.id), y.data != null && (w && (g += ","), g += p.stringify(y.data)), l("encoded %j as %s", y, g), g;
4644
4657
  }
4645
4658
  function i(y, g) {
4646
- function w(_) {
4647
- var B = s.deconstructPacket(_), b = o(B.packet), S = B.buffers;
4659
+ function w(B) {
4660
+ var _ = s.deconstructPacket(B), b = o(_.packet), S = _.buffers;
4648
4661
  S.unshift(b), g(S);
4649
4662
  }
4650
4663
  s.removeBlobs(y, w);
@@ -4657,16 +4670,16 @@ function _o() {
4657
4670
  if (g.type = Number(y.charAt(0)), r.types[g.type] == null)
4658
4671
  return c();
4659
4672
  if (r.BINARY_EVENT == g.type || r.BINARY_ACK == g.type) {
4660
- for (var _ = ""; y.charAt(++w) != "-" && (_ += y.charAt(w), w != y.length); )
4673
+ for (var B = ""; y.charAt(++w) != "-" && (B += y.charAt(w), w != y.length); )
4661
4674
  ;
4662
- if (_ != Number(_) || y.charAt(w) != "-")
4675
+ if (B != Number(B) || y.charAt(w) != "-")
4663
4676
  throw new Error("Illegal attachments");
4664
- g.attachments = Number(_);
4677
+ g.attachments = Number(B);
4665
4678
  }
4666
4679
  if (y.charAt(w + 1) == "/")
4667
4680
  for (g.nsp = ""; ++w; ) {
4668
- var B = y.charAt(w);
4669
- if (B == "," || (g.nsp += B, w == y.length))
4681
+ var _ = y.charAt(w);
4682
+ if (_ == "," || (g.nsp += _, w == y.length))
4670
4683
  break;
4671
4684
  }
4672
4685
  else
@@ -4674,8 +4687,8 @@ function _o() {
4674
4687
  var b = y.charAt(w + 1);
4675
4688
  if (b !== "" && Number(b) == b) {
4676
4689
  for (g.id = ""; ++w; ) {
4677
- var B = y.charAt(w);
4678
- if (B == null || Number(B) != B) {
4690
+ var _ = y.charAt(w);
4691
+ if (_ == null || Number(_) != _) {
4679
4692
  --w;
4680
4693
  break;
4681
4694
  }
@@ -4692,13 +4705,13 @@ function _o() {
4692
4705
  }
4693
4706
  return l("decoded %s as %j", y, g), g;
4694
4707
  }
4695
- function d(y) {
4708
+ function f(y) {
4696
4709
  this.reconPack = y, this.buffers = [];
4697
4710
  }
4698
4711
  function c() {
4699
4712
  return { type: r.ERROR, data: "parser error" };
4700
4713
  }
4701
- var l = t("debug")("socket.io-parser"), p = t("json3"), a = (t("isarray"), t("component-emitter")), s = t("./binary"), f = t("./is-buffer");
4714
+ var l = t("debug")("socket.io-parser"), p = t("json3"), a = (t("isarray"), t("component-emitter")), s = t("./binary"), d = t("./is-buffer");
4702
4715
  r.protocol = 4, r.types = ["CONNECT", "DISCONNECT", "EVENT", "BINARY_EVENT", "ACK", "BINARY_ACK", "ERROR"], r.CONNECT = 0, r.DISCONNECT = 1, r.EVENT = 2, r.ACK = 3, r.ERROR = 4, r.BINARY_EVENT = 5, r.BINARY_ACK = 6, r.Encoder = n, r.Decoder = u, n.prototype.encode = function(y, g) {
4703
4716
  if (l("encoding packet %j", y), r.BINARY_EVENT == y.type || r.BINARY_ACK == y.type)
4704
4717
  i(y, g);
@@ -4709,9 +4722,9 @@ function _o() {
4709
4722
  }, a(u.prototype), u.prototype.add = function(y) {
4710
4723
  var g;
4711
4724
  if (typeof y == "string")
4712
- g = h(y), r.BINARY_EVENT == g.type || r.BINARY_ACK == g.type ? (this.reconstructor = new d(g), this.reconstructor.reconPack.attachments === 0 && this.emit("decoded", g)) : this.emit("decoded", g);
4725
+ g = h(y), r.BINARY_EVENT == g.type || r.BINARY_ACK == g.type ? (this.reconstructor = new f(g), this.reconstructor.reconPack.attachments === 0 && this.emit("decoded", g)) : this.emit("decoded", g);
4713
4726
  else {
4714
- if (!f(y) && !y.base64)
4727
+ if (!d(y) && !y.base64)
4715
4728
  throw new Error("Unknown type: " + y);
4716
4729
  if (!this.reconstructor)
4717
4730
  throw new Error("got binary data when not reconstructing a packet");
@@ -4719,13 +4732,13 @@ function _o() {
4719
4732
  }
4720
4733
  }, u.prototype.destroy = function() {
4721
4734
  this.reconstructor && this.reconstructor.finishedReconstruction();
4722
- }, d.prototype.takeBinaryData = function(y) {
4735
+ }, f.prototype.takeBinaryData = function(y) {
4723
4736
  if (this.buffers.push(y), this.buffers.length == this.reconPack.attachments) {
4724
4737
  var g = s.reconstructPacket(this.reconPack, this.buffers);
4725
4738
  return this.finishedReconstruction(), g;
4726
4739
  }
4727
4740
  return null;
4728
- }, d.prototype.finishedReconstruction = function() {
4741
+ }, f.prototype.finishedReconstruction = function() {
4729
4742
  this.reconPack = null, this.buffers = [];
4730
4743
  };
4731
4744
  }, { "./binary": 43, "./is-buffer": 45, "component-emitter": 9, debug: 10, isarray: 46, json3: 47 }],
@@ -4742,25 +4755,25 @@ function _o() {
4742
4755
  }, {}],
4743
4756
  47: [function(t, e, r) {
4744
4757
  (function(n) {
4745
- function o(R) {
4746
- if (o[R] !== h)
4747
- return o[R];
4758
+ function o(I) {
4759
+ if (o[I] !== h)
4760
+ return o[I];
4748
4761
  var U;
4749
- if (R == "bug-string-char-index")
4762
+ if (I == "bug-string-char-index")
4750
4763
  U = !1;
4751
- else if (R == "json")
4764
+ else if (I == "json")
4752
4765
  U = o("json-stringify") && o("json-parse");
4753
4766
  else {
4754
- var I, F = '{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';
4755
- if (R == "json-stringify") {
4767
+ var R, F = '{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';
4768
+ if (I == "json-stringify") {
4756
4769
  var N = l.stringify, D = typeof N == "function" && p;
4757
4770
  if (D) {
4758
- (I = function() {
4771
+ (R = function() {
4759
4772
  return 1;
4760
- }).toJSON = I;
4773
+ }).toJSON = R;
4761
4774
  try {
4762
- D = N(0) === "0" && N(new Number()) === "0" && N(new String()) == '""' && N(d) === h && N(h) === h && N() === h && N(I) === "1" && N([I]) == "[1]" && N([h]) == "[null]" && N(null) == "null" && N([h, d, null]) == "[null,null,null]" && N({ a: [I, !0, !1, null, `\0\b
4763
- \f\r `] }) == F && N(null, I) === "1" && N([1, 2], null, 1) == `[
4775
+ D = N(0) === "0" && N(new Number()) === "0" && N(new String()) == '""' && N(f) === h && N(h) === h && N() === h && N(R) === "1" && N([R]) == "[1]" && N([h]) == "[null]" && N(null) == "null" && N([h, f, null]) == "[null,null,null]" && N({ a: [R, !0, !1, null, `\0\b
4776
+ \f\r `] }) == F && N(null, R) === "1" && N([1, 2], null, 1) == `[
4764
4777
  1,
4765
4778
  2
4766
4779
  ]` && N(/* @__PURE__ */ new Date(-864e13)) == '"-271821-04-20T00:00:00.000Z"' && N(/* @__PURE__ */ new Date(864e13)) == '"+275760-09-13T00:00:00.000Z"' && N(/* @__PURE__ */ new Date(-621987552e5)) == '"-000001-01-01T00:00:00.000Z"' && N(/* @__PURE__ */ new Date(-1)) == '"1969-12-31T23:59:59.999Z"';
@@ -4770,13 +4783,13 @@ function _o() {
4770
4783
  }
4771
4784
  U = D;
4772
4785
  }
4773
- if (R == "json-parse") {
4786
+ if (I == "json-parse") {
4774
4787
  var P = l.parse;
4775
4788
  if (typeof P == "function")
4776
4789
  try {
4777
4790
  if (P("0") === 0 && !P(!1)) {
4778
- I = P(F);
4779
- var L = I.a.length == 5 && I.a[0] === 1;
4791
+ R = P(F);
4792
+ var L = R.a.length == 5 && R.a[0] === 1;
4780
4793
  if (L) {
4781
4794
  try {
4782
4795
  L = !P('" "');
@@ -4800,9 +4813,9 @@ function _o() {
4800
4813
  U = L;
4801
4814
  }
4802
4815
  }
4803
- return o[R] = !!U;
4816
+ return o[I] = !!U;
4804
4817
  }
4805
- var i, u, h, d = {}.toString, c = typeof JSON == "object" && JSON, l = typeof r == "object" && r && !r.nodeType && r;
4818
+ var i, u, h, f = {}.toString, c = typeof JSON == "object" && JSON, l = typeof r == "object" && r && !r.nodeType && r;
4806
4819
  l && c ? (l.stringify = c.stringify, l.parse = c.parse) : l = n.JSON = c || {};
4807
4820
  var p = /* @__PURE__ */ new Date(-3509827334573292);
4808
4821
  try {
@@ -4810,55 +4823,55 @@ function _o() {
4810
4823
  } catch {
4811
4824
  }
4812
4825
  if (!o("json")) {
4813
- var a = "[object Function]", s = "[object Date]", f = "[object Number]", y = "[object String]", g = "[object Array]", w = "[object Boolean]", _ = o("bug-string-char-index");
4826
+ var a = "[object Function]", s = "[object Date]", d = "[object Number]", y = "[object String]", g = "[object Array]", w = "[object Boolean]", B = o("bug-string-char-index");
4814
4827
  if (!p)
4815
- var B = Math.floor, b = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], S = function(R, U) {
4816
- return b[U] + 365 * (R - 1970) + B((R - 1969 + (U = +(U > 1))) / 4) - B((R - 1901 + U) / 100) + B((R - 1601 + U) / 400);
4828
+ var _ = Math.floor, b = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], S = function(I, U) {
4829
+ return b[U] + 365 * (I - 1970) + _((I - 1969 + (U = +(U > 1))) / 4) - _((I - 1901 + U) / 100) + _((I - 1601 + U) / 400);
4817
4830
  };
4818
- (i = {}.hasOwnProperty) || (i = function(R) {
4819
- var U, I = {};
4820
- return (I.__proto__ = null, I.__proto__ = { toString: 1 }, I).toString != d ? i = function(F) {
4831
+ (i = {}.hasOwnProperty) || (i = function(I) {
4832
+ var U, R = {};
4833
+ return (R.__proto__ = null, R.__proto__ = { toString: 1 }, R).toString != f ? i = function(F) {
4821
4834
  var N = this.__proto__, D = F in (this.__proto__ = null, this);
4822
4835
  return this.__proto__ = N, D;
4823
- } : (U = I.constructor, i = function(F) {
4836
+ } : (U = R.constructor, i = function(F) {
4824
4837
  var N = (this.constructor || U).prototype;
4825
4838
  return F in this && !(F in N && this[F] === N[F]);
4826
- }), I = null, i.call(this, R);
4839
+ }), R = null, i.call(this, I);
4827
4840
  });
4828
- var m = { boolean: 1, number: 1, string: 1, undefined: 1 }, C = function(R, U) {
4829
- var I = typeof R[U];
4830
- return I == "object" ? !!R[U] : !m[I];
4841
+ var m = { boolean: 1, number: 1, string: 1, undefined: 1 }, C = function(I, U) {
4842
+ var R = typeof I[U];
4843
+ return R == "object" ? !!I[U] : !m[R];
4831
4844
  };
4832
- if (u = function(R, U) {
4833
- var I, F, N, D = 0;
4834
- (I = function() {
4845
+ if (u = function(I, U) {
4846
+ var R, F, N, D = 0;
4847
+ (R = function() {
4835
4848
  this.valueOf = 0;
4836
- }).prototype.valueOf = 0, F = new I();
4849
+ }).prototype.valueOf = 0, F = new R();
4837
4850
  for (N in F)
4838
4851
  i.call(F, N) && D++;
4839
- return I = F = null, D ? u = D == 2 ? function(P, L) {
4840
- var M, J = {}, nt = d.call(P) == a;
4852
+ return R = F = null, D ? u = D == 2 ? function(P, L) {
4853
+ var M, J = {}, nt = f.call(P) == a;
4841
4854
  for (M in P)
4842
4855
  nt && M == "prototype" || i.call(J, M) || !(J[M] = 1) || !i.call(P, M) || L(M);
4843
4856
  } : function(P, L) {
4844
- var M, J, nt = d.call(P) == a;
4857
+ var M, J, nt = f.call(P) == a;
4845
4858
  for (M in P)
4846
4859
  nt && M == "prototype" || !i.call(P, M) || (J = M === "constructor") || L(M);
4847
4860
  (J || i.call(P, M = "constructor")) && L(M);
4848
4861
  } : (F = ["valueOf", "toString", "toLocaleString", "propertyIsEnumerable", "isPrototypeOf", "hasOwnProperty", "constructor"], u = function(P, L) {
4849
- var M, J, nt = d.call(P) == a, ot = !nt && typeof P.constructor != "function" && C(P, "hasOwnProperty") ? P.hasOwnProperty : i;
4862
+ var M, J, nt = f.call(P) == a, ot = !nt && typeof P.constructor != "function" && C(P, "hasOwnProperty") ? P.hasOwnProperty : i;
4850
4863
  for (M in P)
4851
4864
  nt && M == "prototype" || !ot.call(P, M) || L(M);
4852
4865
  for (J = F.length; M = F[--J]; ot.call(P, M) && L(M))
4853
4866
  ;
4854
- }), u(R, U);
4867
+ }), u(I, U);
4855
4868
  }, !o("json-stringify")) {
4856
- var E = { 92: "\\\\", 34: '\\"', 8: "\\b", 12: "\\f", 10: "\\n", 13: "\\r", 9: "\\t" }, v = "000000", k = function(R, U) {
4857
- return (v + (U || 0)).slice(-R);
4858
- }, T = "\\u00", x = function(R) {
4859
- var U, I = '"', F = 0, N = R.length, D = N > 10 && _;
4860
- for (D && (U = R.split("")); N > F; F++) {
4861
- var P = R.charCodeAt(F);
4869
+ var E = { 92: "\\\\", 34: '\\"', 8: "\\b", 12: "\\f", 10: "\\n", 13: "\\r", 9: "\\t" }, v = "000000", k = function(I, U) {
4870
+ return (v + (U || 0)).slice(-I);
4871
+ }, T = "\\u00", O = function(I) {
4872
+ var U, R = '"', F = 0, N = I.length, D = N > 10 && B;
4873
+ for (D && (U = I.split("")); N > F; F++) {
4874
+ var P = I.charCodeAt(F);
4862
4875
  switch (P) {
4863
4876
  case 8:
4864
4877
  case 9:
@@ -4867,87 +4880,87 @@ function _o() {
4867
4880
  case 13:
4868
4881
  case 34:
4869
4882
  case 92:
4870
- I += E[P];
4883
+ R += E[P];
4871
4884
  break;
4872
4885
  default:
4873
4886
  if (32 > P) {
4874
- I += T + k(2, P.toString(16));
4887
+ R += T + k(2, P.toString(16));
4875
4888
  break;
4876
4889
  }
4877
- I += D ? U[F] : _ ? R.charAt(F) : R[F];
4890
+ R += D ? U[F] : B ? I.charAt(F) : I[F];
4878
4891
  }
4879
4892
  }
4880
- return I + '"';
4881
- }, O = function(R, U, I, F, N, D, P) {
4882
- var L, M, J, nt, ot, Ot, $t, Gt, Yt, Qt, ut, Zt, Dt, Rt, te, ee;
4893
+ return R + '"';
4894
+ }, x = function(I, U, R, F, N, D, P) {
4895
+ var L, M, J, nt, ot, Ot, Vt, $t, Gt, Yt, ut, Qt, Ut, xt, Zt, te;
4883
4896
  try {
4884
- L = U[R];
4897
+ L = U[I];
4885
4898
  } catch {
4886
4899
  }
4887
4900
  if (typeof L == "object" && L)
4888
- if (M = d.call(L), M != s || i.call(L, "toJSON"))
4889
- typeof L.toJSON == "function" && (M != f && M != y && M != g || i.call(L, "toJSON")) && (L = L.toJSON(R));
4901
+ if (M = f.call(L), M != s || i.call(L, "toJSON"))
4902
+ typeof L.toJSON == "function" && (M != d && M != y && M != g || i.call(L, "toJSON")) && (L = L.toJSON(I));
4890
4903
  else if (L > -1 / 0 && 1 / 0 > L) {
4891
4904
  if (S) {
4892
- for (ot = B(L / 864e5), J = B(ot / 365.2425) + 1970 - 1; S(J + 1, 0) <= ot; J++)
4905
+ for (ot = _(L / 864e5), J = _(ot / 365.2425) + 1970 - 1; S(J + 1, 0) <= ot; J++)
4893
4906
  ;
4894
- for (nt = B((ot - S(J, 0)) / 30.42); S(J, nt + 1) <= ot; nt++)
4907
+ for (nt = _((ot - S(J, 0)) / 30.42); S(J, nt + 1) <= ot; nt++)
4895
4908
  ;
4896
- ot = 1 + ot - S(J, nt), Ot = (L % 864e5 + 864e5) % 864e5, $t = B(Ot / 36e5) % 24, Gt = B(Ot / 6e4) % 60, Yt = B(Ot / 1e3) % 60, Qt = Ot % 1e3;
4909
+ ot = 1 + ot - S(J, nt), Ot = (L % 864e5 + 864e5) % 864e5, Vt = _(Ot / 36e5) % 24, $t = _(Ot / 6e4) % 60, Gt = _(Ot / 1e3) % 60, Yt = Ot % 1e3;
4897
4910
  } else
4898
- J = L.getUTCFullYear(), nt = L.getUTCMonth(), ot = L.getUTCDate(), $t = L.getUTCHours(), Gt = L.getUTCMinutes(), Yt = L.getUTCSeconds(), Qt = L.getUTCMilliseconds();
4899
- L = (0 >= J || J >= 1e4 ? (0 > J ? "-" : "+") + k(6, 0 > J ? -J : J) : k(4, J)) + "-" + k(2, nt + 1) + "-" + k(2, ot) + "T" + k(2, $t) + ":" + k(2, Gt) + ":" + k(2, Yt) + "." + k(3, Qt) + "Z";
4911
+ J = L.getUTCFullYear(), nt = L.getUTCMonth(), ot = L.getUTCDate(), Vt = L.getUTCHours(), $t = L.getUTCMinutes(), Gt = L.getUTCSeconds(), Yt = L.getUTCMilliseconds();
4912
+ L = (0 >= J || J >= 1e4 ? (0 > J ? "-" : "+") + k(6, 0 > J ? -J : J) : k(4, J)) + "-" + k(2, nt + 1) + "-" + k(2, ot) + "T" + k(2, Vt) + ":" + k(2, $t) + ":" + k(2, Gt) + "." + k(3, Yt) + "Z";
4900
4913
  } else
4901
4914
  L = null;
4902
- if (I && (L = I.call(U, R, L)), L === null)
4915
+ if (R && (L = R.call(U, I, L)), L === null)
4903
4916
  return "null";
4904
- if (M = d.call(L), M == w)
4917
+ if (M = f.call(L), M == w)
4905
4918
  return "" + L;
4906
- if (M == f)
4919
+ if (M == d)
4907
4920
  return L > -1 / 0 && 1 / 0 > L ? "" + L : "null";
4908
4921
  if (M == y)
4909
- return x("" + L);
4922
+ return O("" + L);
4910
4923
  if (typeof L == "object") {
4911
- for (Rt = P.length; Rt--; )
4912
- if (P[Rt] === L)
4924
+ for (xt = P.length; xt--; )
4925
+ if (P[xt] === L)
4913
4926
  throw TypeError();
4914
- if (P.push(L), ut = [], te = D, D += N, M == g) {
4915
- for (Dt = 0, Rt = L.length; Rt > Dt; Dt++)
4916
- Zt = O(Dt, L, I, F, N, D, P), ut.push(Zt === h ? "null" : Zt);
4917
- ee = ut.length ? N ? `[
4927
+ if (P.push(L), ut = [], Zt = D, D += N, M == g) {
4928
+ for (Ut = 0, xt = L.length; xt > Ut; Ut++)
4929
+ Qt = x(Ut, L, R, F, N, D, P), ut.push(Qt === h ? "null" : Qt);
4930
+ te = ut.length ? N ? `[
4918
4931
  ` + D + ut.join(`,
4919
4932
  ` + D) + `
4920
- ` + te + "]" : "[" + ut.join(",") + "]" : "[]";
4933
+ ` + Zt + "]" : "[" + ut.join(",") + "]" : "[]";
4921
4934
  } else
4922
- u(F || L, function(re) {
4923
- var _e = O(re, L, I, F, N, D, P);
4924
- _e !== h && ut.push(x(re) + ":" + (N ? " " : "") + _e);
4925
- }), ee = ut.length ? N ? `{
4935
+ u(F || L, function(ee) {
4936
+ var Le = x(ee, L, R, F, N, D, P);
4937
+ Le !== h && ut.push(O(ee) + ":" + (N ? " " : "") + Le);
4938
+ }), te = ut.length ? N ? `{
4926
4939
  ` + D + ut.join(`,
4927
4940
  ` + D) + `
4928
- ` + te + "}" : "{" + ut.join(",") + "}" : "{}";
4929
- return P.pop(), ee;
4941
+ ` + Zt + "}" : "{" + ut.join(",") + "}" : "{}";
4942
+ return P.pop(), te;
4930
4943
  }
4931
4944
  };
4932
- l.stringify = function(R, U, I) {
4945
+ l.stringify = function(I, U, R) {
4933
4946
  var F, N, D, P;
4934
4947
  if (typeof U == "function" || typeof U == "object" && U) {
4935
- if ((P = d.call(U)) == a)
4948
+ if ((P = f.call(U)) == a)
4936
4949
  N = U;
4937
4950
  else if (P == g) {
4938
4951
  D = {};
4939
- for (var L, M = 0, J = U.length; J > M; L = U[M++], P = d.call(L), (P == y || P == f) && (D[L] = 1))
4952
+ for (var L, M = 0, J = U.length; J > M; L = U[M++], P = f.call(L), (P == y || P == d) && (D[L] = 1))
4940
4953
  ;
4941
4954
  }
4942
4955
  }
4943
- if (I)
4944
- if ((P = d.call(I)) == f) {
4945
- if ((I -= I % 1) > 0)
4946
- for (F = "", I > 10 && (I = 10); F.length < I; F += " ")
4956
+ if (R)
4957
+ if ((P = f.call(R)) == d) {
4958
+ if ((R -= R % 1) > 0)
4959
+ for (F = "", R > 10 && (R = 10); F.length < R; F += " ")
4947
4960
  ;
4948
4961
  } else
4949
- P == y && (F = I.length <= 10 ? I : I.slice(0, 10));
4950
- return O("", (L = {}, L[""] = R, L), N, D, F, "", []);
4962
+ P == y && (F = R.length <= 10 ? R : R.slice(0, 10));
4963
+ return x("", (L = {}, L[""] = I, L), N, D, F, "", []);
4951
4964
  };
4952
4965
  }
4953
4966
  if (!o("json-parse")) {
@@ -4955,7 +4968,7 @@ function _o() {
4955
4968
  `, 102: "\f", 114: "\r" }, X = function() {
4956
4969
  throw A = q = null, SyntaxError();
4957
4970
  }, et = function() {
4958
- for (var R, U, I, F, N, D = q, P = D.length; P > A; )
4971
+ for (var I, U, R, F, N, D = q, P = D.length; P > A; )
4959
4972
  switch (N = D.charCodeAt(A)) {
4960
4973
  case 9:
4961
4974
  case 10:
@@ -4969,9 +4982,9 @@ function _o() {
4969
4982
  case 93:
4970
4983
  case 58:
4971
4984
  case 44:
4972
- return R = _ ? D.charAt(A) : D[A], A++, R;
4985
+ return I = B ? D.charAt(A) : D[A], A++, I;
4973
4986
  case 34:
4974
- for (R = "@", A++; P > A; )
4987
+ for (I = "@", A++; P > A; )
4975
4988
  if (N = D.charCodeAt(A), 32 > N)
4976
4989
  X();
4977
4990
  else if (N == 92)
@@ -4984,12 +4997,12 @@ function _o() {
4984
4997
  case 110:
4985
4998
  case 102:
4986
4999
  case 114:
4987
- R += $[N], A++;
5000
+ I += $[N], A++;
4988
5001
  break;
4989
5002
  case 117:
4990
- for (U = ++A, I = A + 4; I > A; A++)
5003
+ for (U = ++A, R = A + 4; R > A; A++)
4991
5004
  N = D.charCodeAt(A), N >= 48 && 57 >= N || N >= 97 && 102 >= N || N >= 65 && 70 >= N || X();
4992
- R += j("0x" + D.slice(U, A));
5005
+ I += j("0x" + D.slice(U, A));
4993
5006
  break;
4994
5007
  default:
4995
5008
  X();
@@ -4999,24 +5012,24 @@ function _o() {
4999
5012
  break;
5000
5013
  for (N = D.charCodeAt(A), U = A; N >= 32 && N != 92 && N != 34; )
5001
5014
  N = D.charCodeAt(++A);
5002
- R += D.slice(U, A);
5015
+ I += D.slice(U, A);
5003
5016
  }
5004
5017
  if (D.charCodeAt(A) == 34)
5005
- return A++, R;
5018
+ return A++, I;
5006
5019
  X();
5007
5020
  default:
5008
5021
  if (U = A, N == 45 && (F = !0, N = D.charCodeAt(++A)), N >= 48 && 57 >= N) {
5009
5022
  for (N == 48 && (N = D.charCodeAt(A + 1), N >= 48 && 57 >= N) && X(), F = !1; P > A && (N = D.charCodeAt(A), N >= 48 && 57 >= N); A++)
5010
5023
  ;
5011
5024
  if (D.charCodeAt(A) == 46) {
5012
- for (I = ++A; P > I && (N = D.charCodeAt(I), N >= 48 && 57 >= N); I++)
5025
+ for (R = ++A; P > R && (N = D.charCodeAt(R), N >= 48 && 57 >= N); R++)
5013
5026
  ;
5014
- I == A && X(), A = I;
5027
+ R == A && X(), A = R;
5015
5028
  }
5016
5029
  if (N = D.charCodeAt(A), N == 101 || N == 69) {
5017
- for (N = D.charCodeAt(++A), (N == 43 || N == 45) && A++, I = A; P > I && (N = D.charCodeAt(I), N >= 48 && 57 >= N); I++)
5030
+ for (N = D.charCodeAt(++A), (N == 43 || N == 45) && A++, R = A; P > R && (N = D.charCodeAt(R), N >= 48 && 57 >= N); R++)
5018
5031
  ;
5019
- I == A && X(), A = I;
5032
+ R == A && X(), A = R;
5020
5033
  }
5021
5034
  return +D.slice(U, A);
5022
5035
  }
@@ -5029,42 +5042,42 @@ function _o() {
5029
5042
  X();
5030
5043
  }
5031
5044
  return "$";
5032
- }, xt = function(R) {
5033
- var U, I;
5034
- if (R == "$" && X(), typeof R == "string") {
5035
- if ((_ ? R.charAt(0) : R[0]) == "@")
5036
- return R.slice(1);
5037
- if (R == "[") {
5038
- for (U = []; R = et(), R != "]"; I || (I = !0))
5039
- I && (R == "," ? (R = et(), R == "]" && X()) : X()), R == "," && X(), U.push(xt(R));
5045
+ }, Nt = function(I) {
5046
+ var U, R;
5047
+ if (I == "$" && X(), typeof I == "string") {
5048
+ if ((B ? I.charAt(0) : I[0]) == "@")
5049
+ return I.slice(1);
5050
+ if (I == "[") {
5051
+ for (U = []; I = et(), I != "]"; R || (R = !0))
5052
+ R && (I == "," ? (I = et(), I == "]" && X()) : X()), I == "," && X(), U.push(Nt(I));
5040
5053
  return U;
5041
5054
  }
5042
- if (R == "{") {
5043
- for (U = {}; R = et(), R != "}"; I || (I = !0))
5044
- I && (R == "," ? (R = et(), R == "}" && X()) : X()), (R == "," || typeof R != "string" || (_ ? R.charAt(0) : R[0]) != "@" || et() != ":") && X(), U[R.slice(1)] = xt(et());
5055
+ if (I == "{") {
5056
+ for (U = {}; I = et(), I != "}"; R || (R = !0))
5057
+ R && (I == "," ? (I = et(), I == "}" && X()) : X()), (I == "," || typeof I != "string" || (B ? I.charAt(0) : I[0]) != "@" || et() != ":") && X(), U[I.slice(1)] = Nt(et());
5045
5058
  return U;
5046
5059
  }
5047
5060
  X();
5048
5061
  }
5049
- return R;
5050
- }, Re = function(R, U, I) {
5051
- var F = Ie(R, U, I);
5052
- F === h ? delete R[U] : R[U] = F;
5053
- }, Ie = function(R, U, I) {
5054
- var F, N = R[U];
5062
+ return I;
5063
+ }, Be = function(I, U, R) {
5064
+ var F = _e(I, U, R);
5065
+ F === h ? delete I[U] : I[U] = F;
5066
+ }, _e = function(I, U, R) {
5067
+ var F, N = I[U];
5055
5068
  if (typeof N == "object" && N)
5056
- if (d.call(N) == g)
5069
+ if (f.call(N) == g)
5057
5070
  for (F = N.length; F--; )
5058
- Re(N, F, I);
5071
+ Be(N, F, R);
5059
5072
  else
5060
5073
  u(N, function(D) {
5061
- Re(N, D, I);
5074
+ Be(N, D, R);
5062
5075
  });
5063
- return I.call(R, U, N);
5076
+ return R.call(I, U, N);
5064
5077
  };
5065
- l.parse = function(R, U) {
5066
- var I, F;
5067
- return A = 0, q = "" + R, I = xt(et()), et() != "$" && X(), A = q = null, U && d.call(U) == a ? Ie((F = {}, F[""] = I, F), "", U) : I;
5078
+ l.parse = function(I, U) {
5079
+ var R, F;
5080
+ return A = 0, q = "" + I, R = Nt(et()), et() != "$" && X(), A = q = null, U && f.call(U) == a ? _e((F = {}, F[""] = R, F), "", U) : R;
5068
5081
  };
5069
5082
  }
5070
5083
  }
@@ -5082,40 +5095,40 @@ function _o() {
5082
5095
  }, {}]
5083
5096
  }, {}, [1])(1);
5084
5097
  }
5085
- const Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5098
+ const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5086
5099
  __proto__: null,
5087
5100
  default: _o
5088
- }, Symbol.toStringTag, { value: "Module" })), Lo = /* @__PURE__ */ Object.assign({
5089
- "./v1_3_7.js": Bo
5090
- }), Uo = /v\d+_\d+_\d+/;
5091
- function Do(t) {
5101
+ }, Symbol.toStringTag, { value: "Module" })), Uo = /* @__PURE__ */ Object.assign({
5102
+ "./v1_3_7.js": Lo
5103
+ }), Do = /v\d+_\d+_\d+/;
5104
+ function Po(t) {
5092
5105
  return typeof t == "function";
5093
5106
  }
5094
- const ve = Object.entries(Lo).reduce(
5107
+ const be = Object.entries(Uo).reduce(
5095
5108
  (t, e) => {
5096
5109
  var o;
5097
- const r = e[1].default, n = (o = e[0].match(Uo)) == null ? void 0 : o[0];
5098
- return Do(r) && n && (t[n] = r()), t;
5110
+ const r = e[1].default, n = (o = e[0].match(Do)) == null ? void 0 : o[0];
5111
+ return Po(r) && n && (t[n] = r()), t;
5099
5112
  },
5100
5113
  {}
5101
- ), Cr = (t) => {
5102
- if (t in ve)
5103
- return ve[t];
5114
+ ), Tr = (t) => {
5115
+ if (t in be)
5116
+ return be[t];
5104
5117
  throw new Error(`Socket version ${t} not found`);
5105
- }, Po = (t, ...e) => Cr(t)(...e), Fo = {
5106
- ...ve,
5107
- getSocketVersion: Cr,
5108
- makeSocketVersion: Po
5118
+ }, Fo = (t, ...e) => Tr(t)(...e), jo = {
5119
+ ...be,
5120
+ getSocketVersion: Tr,
5121
+ makeSocketVersion: Fo
5109
5122
  };
5110
- var jo = /* @__PURE__ */ ((t) => (t.RINGING = "Ringing", t.TALKING = "Talking", t.DIALING = "Dialing", t.HOLD = "Hold", t))(jo || {}), Mo = /* @__PURE__ */ ((t) => (t.INCOMING = "Incoming", t.OUTGOING = "Outgoing", t))(Mo || {}), mt = /* @__PURE__ */ ((t) => (t.CONNECTED = "connected", t.DISCONNECTED = "disconnected", t.TRYING_TO_CONNECT = "tryingToConnect", t))(mt || {}), qo = /* @__PURE__ */ ((t) => (t.AUTOMATIC = "Automatic", t.IVR = "IVR", t))(qo || {}), zo = /* @__PURE__ */ ((t) => (t.INCOMINC = "Incoming", t.OUTGOING = "Outgoing", t.SPY = "Spy", t.CLICK2CALL = "Click2Call", t))(zo || {}), Xo = /* @__PURE__ */ ((t) => (t.RESPONSE_FROM_API_VALID = "RESPONSE_FROM_API_VALID", t.RESPONSE_FROM_API_INVALID = "RESPONSE_FROM_API_INVALID", t))(Xo || {}), z = /* @__PURE__ */ ((t) => (t.ALL_DIALER_STATUS = "AllDialersStatus", t.ALL_EXTENSION_STATUS = "AllExtensionsStatus", t.ALL_USERS_STATUS = "AllUsersStatus", t.CONNECT = "connect", t.DISCONNECT = "disconnect", t.CONNECT_ERROR_EVENT = "connect_error", t.EXTENSION_EVENT = "ExtensionEvent", t.KEEP_ALIVE = "keepalive", t.KEEP_ALIVE_RESPONSE = "keepaliveResponse", t.LOGIN_STATUS = "loginStatus", t.LOGIN_SUCCESS = "loginSuccess", t.QUEUE_EVENT = "QueueEvent", t.ONLINE_STATUS_EVENT = "onlineStatusEvent", t.DIALER_EVENT = "DialerEvent", t.EXTENSIONS_UPDATED = "ExtensionsUpdated", t))(z || {}), wr = /* @__PURE__ */ ((t) => (t.NEWCALL = "NEWCALL", t.ANSWER = "ANSWER", t.HOLD = "HOLD", t.UNHOLD = "UNHOLD", t.HANGUP = "HANGUP", t.USER_STATUS_UPDATE = "userStatusUpdate", t))(wr || {}), Wo = /* @__PURE__ */ ((t) => (t.NORMAL_HANGUP = "Normal hangup", t.USER_BUSY = "User busy", t.CALL_REJECTED = "Call Rejected", t.UNALLOCATED_NUMBER = "Unallocated (unassigned) number", t.UNKNOWN = "Unknown", t.NO_USER_RESPONDING = "No user responding", t.USER_ALERTING = "User alerting, no answer", t.ANSWERED_ELSEWHERE = "Answered elsewhere", t))(Wo || {}), Ko = /* @__PURE__ */ ((t) => (t.ANSWER = "ANSWER", t.ABANDONED = "ABANDONED", t.EXIT = "EXIT", t.JOIN = "JOIN", t))(Ko || {});
5111
- class ce {
5123
+ var Mo = /* @__PURE__ */ ((t) => (t.RINGING = "Ringing", t.TALKING = "Talking", t.DIALING = "Dialing", t.HOLD = "Hold", t))(Mo || {}), qo = /* @__PURE__ */ ((t) => (t.INCOMING = "Incoming", t.OUTGOING = "Outgoing", t))(qo || {}), mt = /* @__PURE__ */ ((t) => (t.CONNECTED = "connected", t.DISCONNECTED = "disconnected", t.TRYING_TO_CONNECT = "tryingToConnect", t))(mt || {}), zo = /* @__PURE__ */ ((t) => (t.AUTOMATIC = "Automatic", t.IVR = "IVR", t))(zo || {}), Xo = /* @__PURE__ */ ((t) => (t.INCOMINC = "Incoming", t.OUTGOING = "Outgoing", t.SPY = "Spy", t.CLICK2CALL = "Click2Call", t))(Xo || {}), Wo = /* @__PURE__ */ ((t) => (t.RESPONSE_FROM_API_VALID = "RESPONSE_FROM_API_VALID", t.RESPONSE_FROM_API_INVALID = "RESPONSE_FROM_API_INVALID", t))(Wo || {}), z = /* @__PURE__ */ ((t) => (t.ALL_DIALER_STATUS = "AllDialersStatus", t.ALL_EXTENSION_STATUS = "AllExtensionsStatus", t.ALL_USERS_STATUS = "AllUsersStatus", t.CONNECT = "connect", t.DISCONNECT = "disconnect", t.CONNECT_ERROR_EVENT = "connect_error", t.EXTENSION_EVENT = "ExtensionEvent", t.KEEP_ALIVE = "keepalive", t.KEEP_ALIVE_RESPONSE = "keepaliveResponse", t.LOGIN_STATUS = "loginStatus", t.LOGIN_SUCCESS = "loginSuccess", t.QUEUE_EVENT = "QueueEvent", t.ONLINE_STATUS_EVENT = "onlineStatusEvent", t.DIALER_EVENT = "DialerEvent", t.EXTENSIONS_UPDATED = "ExtensionsUpdated", t))(z || {}), Nr = /* @__PURE__ */ ((t) => (t.NEWCALL = "NEWCALL", t.ANSWER = "ANSWER", t.HOLD = "HOLD", t.UNHOLD = "UNHOLD", t.HANGUP = "HANGUP", t.USER_STATUS_UPDATE = "userStatusUpdate", t))(Nr || {}), Ko = /* @__PURE__ */ ((t) => (t.NORMAL_HANGUP = "Normal hangup", t.USER_BUSY = "User busy", t.CALL_REJECTED = "Call Rejected", t.UNALLOCATED_NUMBER = "Unallocated (unassigned) number", t.UNKNOWN = "Unknown", t.NO_USER_RESPONDING = "No user responding", t.USER_ALERTING = "User alerting, no answer", t.ANSWERED_ELSEWHERE = "Answered elsewhere", t))(Ko || {}), Ho = /* @__PURE__ */ ((t) => (t.ANSWER = "ANSWER", t.ABANDONED = "ABANDONED", t.EXIT = "EXIT", t.JOIN = "JOIN", t))(Ho || {});
5124
+ class pe {
5112
5125
  static mapExtensionEvent(e) {
5113
5126
  var u, h;
5114
5127
  const r = e.reason;
5115
5128
  let n, o;
5116
5129
  e.data.currentCall && (o = this.mapExtensionCall(e, e.data.currentCall));
5117
5130
  const i = this.mapExtensionData(e, e.data);
5118
- return r === wr.HANGUP ? n = {
5131
+ return r === Nr.HANGUP ? n = {
5119
5132
  ...e,
5120
5133
  reason: r,
5121
5134
  data: {
@@ -5124,8 +5137,8 @@ class ce {
5124
5137
  ...o,
5125
5138
  duration: o.callAnswered_UTC_CLIENT ? Date.now() - o.callAnswered_UTC_CLIENT : 0
5126
5139
  } : void 0,
5127
- calls: (u = e.data.calls) == null ? void 0 : u.map((d) => {
5128
- const c = this.mapExtensionCall(e, d);
5140
+ calls: (u = e.data.calls) == null ? void 0 : u.map((f) => {
5141
+ const c = this.mapExtensionCall(e, f);
5129
5142
  return {
5130
5143
  ...c,
5131
5144
  duration: c.callAnswered_UTC_CLIENT ? Date.now() - c.callAnswered_UTC_CLIENT : 0
@@ -5137,7 +5150,7 @@ class ce {
5137
5150
  data: {
5138
5151
  ...i,
5139
5152
  currentCall: o,
5140
- calls: (h = e.data.calls) == null ? void 0 : h.map((d) => this.mapExtensionCall(e, d))
5153
+ calls: (h = e.data.calls) == null ? void 0 : h.map((f) => this.mapExtensionCall(e, f))
5141
5154
  },
5142
5155
  reason: r
5143
5156
  }, n;
@@ -5231,11 +5244,11 @@ class ce {
5231
5244
  */
5232
5245
  static configureUTCForObject(e, r, n, o) {
5233
5246
  const i = (n - o * 60) * 1e3, u = Date.now() - i, h = {};
5234
- return r.forEach((d) => {
5235
- const c = e[d.key], l = d.key;
5247
+ return r.forEach((f) => {
5248
+ const c = e[f.key], l = f.key;
5236
5249
  if (c !== 0 && typeof c == "number" && !isNaN(c)) {
5237
5250
  let p = c;
5238
- d.format === "ms" && (p = Math.floor(p / 1e3));
5251
+ f.format === "ms" && (p = Math.floor(p / 1e3));
5239
5252
  const a = (p - o * 60) * 1e3;
5240
5253
  this.assignProperty(h, `${l}_UTC`, a), this.assignProperty(h, `${l}_UTC_CLIENT`, a + u);
5241
5254
  } else
@@ -5246,8 +5259,8 @@ class ce {
5246
5259
  };
5247
5260
  }
5248
5261
  }
5249
- var Sr = /* @__PURE__ */ ((t) => (t.UPDATE_MONITORED_EXTENSIONS = "updateMonitoredExtensions", t.KEEP_ALIVE = "keepAlive", t))(Sr || {});
5250
- class Ho {
5262
+ var Or = /* @__PURE__ */ ((t) => (t.UPDATE_MONITORED_EXTENSIONS = "updateMonitoredExtensions", t.KEEP_ALIVE = "keepAlive", t))(Or || {});
5263
+ class Jo {
5251
5264
  constructor(e) {
5252
5265
  H(this, "io");
5253
5266
  H(this, "ioFunction");
@@ -5260,7 +5273,7 @@ class Ho {
5260
5273
  }
5261
5274
  getSocketIoFunction(e) {
5262
5275
  const r = e.split("v="), n = "v".concat(r[r.length - 1]).replaceAll(".", "_");
5263
- this.ioFunction = Fo.getSocketVersion(n);
5276
+ this.ioFunction = jo.getSocketVersion(n);
5264
5277
  }
5265
5278
  initSocketConnection() {
5266
5279
  const e = this.eventsSdkClass.authClass.token, r = this.eventsSdkClass.options.protocol, n = this.eventsSdkClass.server;
@@ -5315,7 +5328,7 @@ class Ho {
5315
5328
  initKeepAlive() {
5316
5329
  this.clearKeepAliveInterval(), this.keepAliveInterval = setInterval(async () => {
5317
5330
  if ((/* @__PURE__ */ new Date()).getTime() > this.lastEventTimestamp + this.eventsSdkClass.options.keepAliveTimeout && this.io && this.eventsSdkClass.authClass.token) {
5318
- this.eventsSdkClass.emit(Sr.KEEP_ALIVE, this.eventsSdkClass.authClass.token), this.eventsSdkClass.loggerClass.log({
5331
+ this.eventsSdkClass.emit(Or.KEEP_ALIVE, this.eventsSdkClass.authClass.token), this.eventsSdkClass.loggerClass.log({
5319
5332
  Message: `Keep alive event emitted with this token: ${this.eventsSdkClass.authClass.token}`,
5320
5333
  ActionName: at.WSCONNECT,
5321
5334
  isShowClient: !1,
@@ -5337,10 +5350,10 @@ class Ho {
5337
5350
  this.eventsSdkClass.eventEmitterClass.emit(z.LOGIN_SUCCESS, e);
5338
5351
  }
5339
5352
  onQueueEvent(e) {
5340
- this.eventsSdkClass.eventEmitterClass.emit(z.QUEUE_EVENT, ce.mapQueueEvent(e));
5353
+ this.eventsSdkClass.eventEmitterClass.emit(z.QUEUE_EVENT, pe.mapQueueEvent(e));
5341
5354
  }
5342
5355
  onExtensionEvent(e) {
5343
- const r = ce.mapExtensionEvent(e);
5356
+ const r = pe.mapExtensionEvent(e);
5344
5357
  r && this.eventsSdkClass.eventEmitterClass.emit(z.EXTENSION_EVENT, r);
5345
5358
  }
5346
5359
  onDialerEvent(e) {
@@ -5350,7 +5363,7 @@ class Ho {
5350
5363
  this.eventsSdkClass.eventEmitterClass.emit(z.LOGIN_STATUS, e);
5351
5364
  }
5352
5365
  onAllExtensionStatus(e) {
5353
- const r = ce.mapAllExtensionStatus(e);
5366
+ const r = pe.mapAllExtensionStatus(e);
5354
5367
  this.eventsSdkClass.eventEmitterClass.emit(z.ALL_EXTENSION_STATUS, r);
5355
5368
  }
5356
5369
  onAllDialerStatus(e) {
@@ -5419,7 +5432,7 @@ class Ho {
5419
5432
  );
5420
5433
  }
5421
5434
  }
5422
- class Jo {
5435
+ class Vo {
5423
5436
  constructor(e) {
5424
5437
  H(this, "storageLogger");
5425
5438
  this.eventsSdkClass = e, this.eventsSdkClass = e;
@@ -5435,15 +5448,13 @@ class Jo {
5435
5448
  this.eventsSdkClass.options.loggerSocketConnection && (e = this.eventsSdkClass.options.loggerSocketConnection), this.eventsSdkClass.socketIoClass.ioFunction && !e && (e = this.eventsSdkClass.socketIoClass.ioFunction(
5436
5449
  this.eventsSdkClass.options.loggerServer,
5437
5450
  this.eventsSdkClass.options.loggerConnectOptions
5438
- )), e && (this.storageLogger = new Oo({
5451
+ )), e && (this.storageLogger = new Io({
5439
5452
  socket: e,
5440
5453
  loggerOptions: this.eventsSdkClass.options.loggerConfig
5441
5454
  }));
5442
5455
  }
5443
5456
  stop() {
5444
- if (!this.storageLogger)
5445
- throw new Error("Storage Logger doesn't exists!");
5446
- this.storageLogger.stop();
5457
+ this.storageLogger && this.storageLogger.stop();
5447
5458
  }
5448
5459
  log(e) {
5449
5460
  this.storageLogger ? e.Level === tt.INFO ? this.storageLogger.log(e) : e.Level === tt.ERROR && this.storageLogger.error(e) : e.Level === tt.INFO ? console.log(e) : e.Level === tt.ERROR && console.error(e);
@@ -5466,7 +5477,7 @@ class Jo {
5466
5477
  });
5467
5478
  }
5468
5479
  }
5469
- class Vo {
5480
+ class $o {
5470
5481
  constructor(e) {
5471
5482
  H(this, "listeners", {
5472
5483
  [z.ALL_EXTENSION_STATUS]: [],
@@ -5510,7 +5521,7 @@ class Vo {
5510
5521
  this.allListeners.forEach((o) => o(n));
5511
5522
  }
5512
5523
  }
5513
- class Go {
5524
+ class Yo {
5514
5525
  constructor(e) {
5515
5526
  H(this, "options");
5516
5527
  H(this, "servers", []);
@@ -5521,9 +5532,9 @@ class Go {
5521
5532
  H(this, "mainServer");
5522
5533
  H(this, "alreadyAttemptedOtherServers", []);
5523
5534
  H(this, "authClass", new Ro(this));
5524
- H(this, "socketIoClass", new Ho(this));
5525
- H(this, "loggerClass", new Jo(this));
5526
- H(this, "eventEmitterClass", new Vo(this));
5535
+ H(this, "socketIoClass", new Jo(this));
5536
+ H(this, "loggerClass", new Vo(this));
5537
+ H(this, "eventEmitterClass", new $o(this));
5527
5538
  H(this, "getCircularReplacer", () => {
5528
5539
  const e = /* @__PURE__ */ new WeakSet();
5529
5540
  return (r, n) => {
@@ -5538,7 +5549,7 @@ class Go {
5538
5549
  };
5539
5550
  });
5540
5551
  this.options = {
5541
- ...Io,
5552
+ ...Bo,
5542
5553
  ...e
5543
5554
  };
5544
5555
  }
@@ -5591,18 +5602,18 @@ class Go {
5591
5602
  }
5592
5603
  }
5593
5604
  export {
5594
- jo as CallStatusEnum,
5595
- Mo as CallTypeEnum,
5605
+ Mo as CallStatusEnum,
5606
+ qo as CallTypeEnum,
5596
5607
  mt as ConnectionStatusEnum,
5597
- qo as DialerTypeEnum,
5598
- zo as DirectionEnum,
5599
- Xo as DoNotCallMeStatusCodeEnum,
5608
+ zo as DialerTypeEnum,
5609
+ Xo as DirectionEnum,
5610
+ Wo as DoNotCallMeStatusCodeEnum,
5600
5611
  z as EventsEnum,
5601
- wr as ExtensionEventReasonEnum,
5602
- Wo as ExtensionHangupCauseEnum,
5612
+ Nr as ExtensionEventReasonEnum,
5613
+ Ko as ExtensionHangupCauseEnum,
5603
5614
  it as LoginType,
5604
- Ko as QueueEventReasonEnum,
5605
- Sr as ServerListenerEventsEnum,
5606
- Go as default
5615
+ Ho as QueueEventReasonEnum,
5616
+ Or as ServerListenerEventsEnum,
5617
+ Yo as default
5607
5618
  };
5608
5619
  //# sourceMappingURL=voicenter-events-sdk.es.js.map