@datapos/datapos-tool-csv-parse 0.0.11 → 0.0.13

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,40 +1,40 @@
1
- var ie = typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : {}, P = [], F = [], Qt = typeof Uint8Array < "u" ? Uint8Array : Array, je = !1;
2
- function lt() {
3
- je = !0;
1
+ var ae = typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : {}, $ = [], M = [], sr = typeof Uint8Array < "u" ? Uint8Array : Array, Ye = !1;
2
+ function _t() {
3
+ Ye = !0;
4
4
  for (var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", e = 0, r = t.length; e < r; ++e)
5
- P[e] = t[e], F[t.charCodeAt(e)] = e;
6
- F[45] = 62, F[95] = 63;
5
+ $[e] = t[e], M[t.charCodeAt(e)] = e;
6
+ M[45] = 62, M[95] = 63;
7
7
  }
8
- function Ht(t) {
9
- je || lt();
10
- var e, r, n, i, o, s, f = t.length;
11
- if (f % 4 > 0)
8
+ function ar(t) {
9
+ Ye || _t();
10
+ var e, r, n, i, o, s, a = t.length;
11
+ if (a % 4 > 0)
12
12
  throw new Error("Invalid string. Length must be a multiple of 4");
13
- o = t[f - 2] === "=" ? 2 : t[f - 1] === "=" ? 1 : 0, s = new Qt(f * 3 / 4 - o), n = o > 0 ? f - 4 : f;
13
+ o = t[a - 2] === "=" ? 2 : t[a - 1] === "=" ? 1 : 0, s = new sr(a * 3 / 4 - o), n = o > 0 ? a - 4 : a;
14
14
  var l = 0;
15
15
  for (e = 0, r = 0; e < n; e += 4, r += 3)
16
- i = F[t.charCodeAt(e)] << 18 | F[t.charCodeAt(e + 1)] << 12 | F[t.charCodeAt(e + 2)] << 6 | F[t.charCodeAt(e + 3)], s[l++] = i >> 16 & 255, s[l++] = i >> 8 & 255, s[l++] = i & 255;
17
- return o === 2 ? (i = F[t.charCodeAt(e)] << 2 | F[t.charCodeAt(e + 1)] >> 4, s[l++] = i & 255) : o === 1 && (i = F[t.charCodeAt(e)] << 10 | F[t.charCodeAt(e + 1)] << 4 | F[t.charCodeAt(e + 2)] >> 2, s[l++] = i >> 8 & 255, s[l++] = i & 255), s;
16
+ i = M[t.charCodeAt(e)] << 18 | M[t.charCodeAt(e + 1)] << 12 | M[t.charCodeAt(e + 2)] << 6 | M[t.charCodeAt(e + 3)], s[l++] = i >> 16 & 255, s[l++] = i >> 8 & 255, s[l++] = i & 255;
17
+ return o === 2 ? (i = M[t.charCodeAt(e)] << 2 | M[t.charCodeAt(e + 1)] >> 4, s[l++] = i & 255) : o === 1 && (i = M[t.charCodeAt(e)] << 10 | M[t.charCodeAt(e + 1)] << 4 | M[t.charCodeAt(e + 2)] >> 2, s[l++] = i >> 8 & 255, s[l++] = i & 255), s;
18
18
  }
19
- function Gt(t) {
20
- return P[t >> 18 & 63] + P[t >> 12 & 63] + P[t >> 6 & 63] + P[t & 63];
19
+ function fr(t) {
20
+ return $[t >> 18 & 63] + $[t >> 12 & 63] + $[t >> 6 & 63] + $[t & 63];
21
21
  }
22
- function Zt(t, e, r) {
22
+ function lr(t, e, r) {
23
23
  for (var n, i = [], o = e; o < r; o += 3)
24
- n = (t[o] << 16) + (t[o + 1] << 8) + t[o + 2], i.push(Gt(n));
24
+ n = (t[o] << 16) + (t[o + 1] << 8) + t[o + 2], i.push(fr(n));
25
25
  return i.join("");
26
26
  }
27
- function He(t) {
28
- je || lt();
29
- for (var e, r = t.length, n = r % 3, i = "", o = [], s = 16383, f = 0, l = r - n; f < l; f += s)
30
- o.push(Zt(t, f, f + s > l ? l : f + s));
31
- return n === 1 ? (e = t[r - 1], i += P[e >> 2], i += P[e << 4 & 63], i += "==") : n === 2 && (e = (t[r - 2] << 8) + t[r - 1], i += P[e >> 10], i += P[e >> 4 & 63], i += P[e << 2 & 63], i += "="), o.push(i), o.join("");
32
- }
33
- function be(t, e, r, n, i) {
34
- var o, s, f = i * 8 - n - 1, l = (1 << f) - 1, u = l >> 1, h = -7, c = r ? i - 1 : 0, g = r ? -1 : 1, b = t[e + c];
35
- for (c += g, o = b & (1 << -h) - 1, b >>= -h, h += f; h > 0; o = o * 256 + t[e + c], c += g, h -= 8)
27
+ function tt(t) {
28
+ Ye || _t();
29
+ for (var e, r = t.length, n = r % 3, i = "", o = [], s = 16383, a = 0, l = r - n; a < l; a += s)
30
+ o.push(lr(t, a, a + s > l ? l : a + s));
31
+ return n === 1 ? (e = t[r - 1], i += $[e >> 2], i += $[e << 4 & 63], i += "==") : n === 2 && (e = (t[r - 2] << 8) + t[r - 1], i += $[e >> 10], i += $[e >> 4 & 63], i += $[e << 2 & 63], i += "="), o.push(i), o.join("");
32
+ }
33
+ function Se(t, e, r, n, i) {
34
+ var o, s, a = i * 8 - n - 1, l = (1 << a) - 1, u = l >> 1, c = -7, h = r ? i - 1 : 0, m = r ? -1 : 1, b = t[e + h];
35
+ for (h += m, o = b & (1 << -c) - 1, b >>= -c, c += a; c > 0; o = o * 256 + t[e + h], h += m, c -= 8)
36
36
  ;
37
- for (s = o & (1 << -h) - 1, o >>= -h, h += n; h > 0; s = s * 256 + t[e + c], c += g, h -= 8)
37
+ for (s = o & (1 << -c) - 1, o >>= -c, c += n; c > 0; s = s * 256 + t[e + h], h += m, c -= 8)
38
38
  ;
39
39
  if (o === 0)
40
40
  o = 1 - u;
@@ -45,121 +45,121 @@ function be(t, e, r, n, i) {
45
45
  }
46
46
  return (b ? -1 : 1) * s * Math.pow(2, o - n);
47
47
  }
48
- function ut(t, e, r, n, i, o) {
49
- var s, f, l, u = o * 8 - i - 1, h = (1 << u) - 1, c = h >> 1, g = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, b = n ? 0 : o - 1, A = n ? 1 : -1, x = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
50
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, s = h) : (s = Math.floor(Math.log(e) / Math.LN2), e * (l = Math.pow(2, -s)) < 1 && (s--, l *= 2), s + c >= 1 ? e += g / l : e += g * Math.pow(2, 1 - c), e * l >= 2 && (s++, l /= 2), s + c >= h ? (f = 0, s = h) : s + c >= 1 ? (f = (e * l - 1) * Math.pow(2, i), s = s + c) : (f = e * Math.pow(2, c - 1) * Math.pow(2, i), s = 0)); i >= 8; t[r + b] = f & 255, b += A, f /= 256, i -= 8)
48
+ function wt(t, e, r, n, i, o) {
49
+ var s, a, l, u = o * 8 - i - 1, c = (1 << u) - 1, h = c >> 1, m = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, b = n ? 0 : o - 1, T = n ? 1 : -1, x = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
50
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, s = c) : (s = Math.floor(Math.log(e) / Math.LN2), e * (l = Math.pow(2, -s)) < 1 && (s--, l *= 2), s + h >= 1 ? e += m / l : e += m * Math.pow(2, 1 - h), e * l >= 2 && (s++, l /= 2), s + h >= c ? (a = 0, s = c) : s + h >= 1 ? (a = (e * l - 1) * Math.pow(2, i), s = s + h) : (a = e * Math.pow(2, h - 1) * Math.pow(2, i), s = 0)); i >= 8; t[r + b] = a & 255, b += T, a /= 256, i -= 8)
51
51
  ;
52
- for (s = s << i | f, u += i; u > 0; t[r + b] = s & 255, b += A, s /= 256, u -= 8)
52
+ for (s = s << i | a, u += i; u > 0; t[r + b] = s & 255, b += T, s /= 256, u -= 8)
53
53
  ;
54
- t[r + b - A] |= x * 128;
55
- }
56
- var Xt = {}.toString, ht = Array.isArray || function(t) {
57
- return Xt.call(t) == "[object Array]";
58
- }, Kt = 50;
59
- a.TYPED_ARRAY_SUPPORT = ie.TYPED_ARRAY_SUPPORT !== void 0 ? ie.TYPED_ARRAY_SUPPORT : !0;
60
- _e();
61
- function _e() {
62
- return a.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
63
- }
64
- function q(t, e) {
65
- if (_e() < e)
54
+ t[r + b - T] |= x * 128;
55
+ }
56
+ var ur = {}.toString, yt = Array.isArray || function(t) {
57
+ return ur.call(t) == "[object Array]";
58
+ }, cr = 50;
59
+ f.TYPED_ARRAY_SUPPORT = ae.TYPED_ARRAY_SUPPORT !== void 0 ? ae.TYPED_ARRAY_SUPPORT : !0;
60
+ ve();
61
+ function ve() {
62
+ return f.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
63
+ }
64
+ function J(t, e) {
65
+ if (ve() < e)
66
66
  throw new RangeError("Invalid typed array length");
67
- return a.TYPED_ARRAY_SUPPORT ? (t = new Uint8Array(e), t.__proto__ = a.prototype) : (t === null && (t = new a(e)), t.length = e), t;
67
+ return f.TYPED_ARRAY_SUPPORT ? (t = new Uint8Array(e), t.__proto__ = f.prototype) : (t === null && (t = new f(e)), t.length = e), t;
68
68
  }
69
- function a(t, e, r) {
70
- if (!a.TYPED_ARRAY_SUPPORT && !(this instanceof a))
71
- return new a(t, e, r);
69
+ function f(t, e, r) {
70
+ if (!f.TYPED_ARRAY_SUPPORT && !(this instanceof f))
71
+ return new f(t, e, r);
72
72
  if (typeof t == "number") {
73
73
  if (typeof e == "string")
74
74
  throw new Error(
75
75
  "If encoding is specified then the first argument must be a string"
76
76
  );
77
- return $e(this, t);
77
+ return We(this, t);
78
78
  }
79
- return ct(this, t, e, r);
79
+ return bt(this, t, e, r);
80
80
  }
81
- a.poolSize = 8192;
82
- a._augment = function(t) {
83
- return t.__proto__ = a.prototype, t;
81
+ f.poolSize = 8192;
82
+ f._augment = function(t) {
83
+ return t.__proto__ = f.prototype, t;
84
84
  };
85
- function ct(t, e, r, n) {
85
+ function bt(t, e, r, n) {
86
86
  if (typeof e == "number")
87
87
  throw new TypeError('"value" argument must not be a number');
88
- return typeof ArrayBuffer < "u" && e instanceof ArrayBuffer ? rr(t, e, r, n) : typeof e == "string" ? tr(t, e, r) : nr(t, e);
88
+ return typeof ArrayBuffer < "u" && e instanceof ArrayBuffer ? pr(t, e, r, n) : typeof e == "string" ? dr(t, e, r) : gr(t, e);
89
89
  }
90
- a.from = function(t, e, r) {
91
- return ct(null, t, e, r);
90
+ f.from = function(t, e, r) {
91
+ return bt(null, t, e, r);
92
92
  };
93
- a.TYPED_ARRAY_SUPPORT && (a.prototype.__proto__ = Uint8Array.prototype, a.__proto__ = Uint8Array, typeof Symbol < "u" && Symbol.species && a[Symbol.species]);
94
- function dt(t) {
93
+ f.TYPED_ARRAY_SUPPORT && (f.prototype.__proto__ = Uint8Array.prototype, f.__proto__ = Uint8Array, typeof Symbol < "u" && Symbol.species && f[Symbol.species]);
94
+ function vt(t) {
95
95
  if (typeof t != "number")
96
96
  throw new TypeError('"size" argument must be a number');
97
97
  if (t < 0)
98
98
  throw new RangeError('"size" argument must not be negative');
99
99
  }
100
- function er(t, e, r, n) {
101
- return dt(e), e <= 0 ? q(t, e) : r !== void 0 ? typeof n == "string" ? q(t, e).fill(r, n) : q(t, e).fill(r) : q(t, e);
100
+ function hr(t, e, r, n) {
101
+ return vt(e), e <= 0 ? J(t, e) : r !== void 0 ? typeof n == "string" ? J(t, e).fill(r, n) : J(t, e).fill(r) : J(t, e);
102
102
  }
103
- a.alloc = function(t, e, r) {
104
- return er(null, t, e, r);
103
+ f.alloc = function(t, e, r) {
104
+ return hr(null, t, e, r);
105
105
  };
106
- function $e(t, e) {
107
- if (dt(e), t = q(t, e < 0 ? 0 : qe(e) | 0), !a.TYPED_ARRAY_SUPPORT)
106
+ function We(t, e) {
107
+ if (vt(e), t = J(t, e < 0 ? 0 : He(e) | 0), !f.TYPED_ARRAY_SUPPORT)
108
108
  for (var r = 0; r < e; ++r)
109
109
  t[r] = 0;
110
110
  return t;
111
111
  }
112
- a.allocUnsafe = function(t) {
113
- return $e(null, t);
112
+ f.allocUnsafe = function(t) {
113
+ return We(null, t);
114
114
  };
115
- a.allocUnsafeSlow = function(t) {
116
- return $e(null, t);
115
+ f.allocUnsafeSlow = function(t) {
116
+ return We(null, t);
117
117
  };
118
- function tr(t, e, r) {
119
- if ((typeof r != "string" || r === "") && (r = "utf8"), !a.isEncoding(r))
118
+ function dr(t, e, r) {
119
+ if ((typeof r != "string" || r === "") && (r = "utf8"), !f.isEncoding(r))
120
120
  throw new TypeError('"encoding" must be a valid string encoding');
121
- var n = pt(e, r) | 0;
122
- t = q(t, n);
121
+ var n = xt(e, r) | 0;
122
+ t = J(t, n);
123
123
  var i = t.write(e, r);
124
124
  return i !== n && (t = t.slice(0, i)), t;
125
125
  }
126
- function Be(t, e) {
127
- var r = e.length < 0 ? 0 : qe(e.length) | 0;
128
- t = q(t, r);
126
+ function je(t, e) {
127
+ var r = e.length < 0 ? 0 : He(e.length) | 0;
128
+ t = J(t, r);
129
129
  for (var n = 0; n < r; n += 1)
130
130
  t[n] = e[n] & 255;
131
131
  return t;
132
132
  }
133
- function rr(t, e, r, n) {
133
+ function pr(t, e, r, n) {
134
134
  if (e.byteLength, r < 0 || e.byteLength < r)
135
135
  throw new RangeError("'offset' is out of bounds");
136
136
  if (e.byteLength < r + (n || 0))
137
137
  throw new RangeError("'length' is out of bounds");
138
- return r === void 0 && n === void 0 ? e = new Uint8Array(e) : n === void 0 ? e = new Uint8Array(e, r) : e = new Uint8Array(e, r, n), a.TYPED_ARRAY_SUPPORT ? (t = e, t.__proto__ = a.prototype) : t = Be(t, e), t;
138
+ return r === void 0 && n === void 0 ? e = new Uint8Array(e) : n === void 0 ? e = new Uint8Array(e, r) : e = new Uint8Array(e, r, n), f.TYPED_ARRAY_SUPPORT ? (t = e, t.__proto__ = f.prototype) : t = je(t, e), t;
139
139
  }
140
- function nr(t, e) {
140
+ function gr(t, e) {
141
141
  if (j(e)) {
142
- var r = qe(e.length) | 0;
143
- return t = q(t, r), t.length === 0 || e.copy(t, 0, 0, r), t;
142
+ var r = He(e.length) | 0;
143
+ return t = J(t, r), t.length === 0 || e.copy(t, 0, 0, r), t;
144
144
  }
145
145
  if (e) {
146
146
  if (typeof ArrayBuffer < "u" && e.buffer instanceof ArrayBuffer || "length" in e)
147
- return typeof e.length != "number" || xr(e.length) ? q(t, 0) : Be(t, e);
148
- if (e.type === "Buffer" && ht(e.data))
149
- return Be(t, e.data);
147
+ return typeof e.length != "number" || Fr(e.length) ? J(t, 0) : je(t, e);
148
+ if (e.type === "Buffer" && yt(e.data))
149
+ return je(t, e.data);
150
150
  }
151
151
  throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
152
152
  }
153
- function qe(t) {
154
- if (t >= _e())
155
- throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + _e().toString(16) + " bytes");
153
+ function He(t) {
154
+ if (t >= ve())
155
+ throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + ve().toString(16) + " bytes");
156
156
  return t | 0;
157
157
  }
158
- a.isBuffer = L;
158
+ f.isBuffer = D;
159
159
  function j(t) {
160
160
  return !!(t != null && t._isBuffer);
161
161
  }
162
- a.compare = function(e, r) {
162
+ f.compare = function(e, r) {
163
163
  if (!j(e) || !j(r))
164
164
  throw new TypeError("Arguments must be Buffers");
165
165
  if (e === r) return 0;
@@ -170,7 +170,7 @@ a.compare = function(e, r) {
170
170
  }
171
171
  return n < i ? -1 : i < n ? 1 : 0;
172
172
  };
173
- a.isEncoding = function(e) {
173
+ f.isEncoding = function(e) {
174
174
  switch (String(e).toLowerCase()) {
175
175
  case "hex":
176
176
  case "utf8":
@@ -188,16 +188,16 @@ a.isEncoding = function(e) {
188
188
  return !1;
189
189
  }
190
190
  };
191
- a.concat = function(e, r) {
192
- if (!ht(e))
191
+ f.concat = function(e, r) {
192
+ if (!yt(e))
193
193
  throw new TypeError('"list" argument must be an Array of Buffers');
194
194
  if (e.length === 0)
195
- return a.alloc(0);
195
+ return f.alloc(0);
196
196
  var n;
197
197
  if (r === void 0)
198
198
  for (r = 0, n = 0; n < e.length; ++n)
199
199
  r += e[n].length;
200
- var i = a.allocUnsafe(r), o = 0;
200
+ var i = f.allocUnsafe(r), o = 0;
201
201
  for (n = 0; n < e.length; ++n) {
202
202
  var s = e[n];
203
203
  if (!j(s))
@@ -206,7 +206,7 @@ a.concat = function(e, r) {
206
206
  }
207
207
  return i;
208
208
  };
209
- function pt(t, e) {
209
+ function xt(t, e) {
210
210
  if (j(t))
211
211
  return t.length;
212
212
  if (typeof ArrayBuffer < "u" && typeof ArrayBuffer.isView == "function" && (ArrayBuffer.isView(t) || t instanceof ArrayBuffer))
@@ -223,7 +223,7 @@ function pt(t, e) {
223
223
  case "utf8":
224
224
  case "utf-8":
225
225
  case void 0:
226
- return we(t).length;
226
+ return xe(t).length;
227
227
  case "ucs2":
228
228
  case "ucs-2":
229
229
  case "utf16le":
@@ -232,83 +232,83 @@ function pt(t, e) {
232
232
  case "hex":
233
233
  return r >>> 1;
234
234
  case "base64":
235
- return vt(t).length;
235
+ return At(t).length;
236
236
  default:
237
- if (n) return we(t).length;
237
+ if (n) return xe(t).length;
238
238
  e = ("" + e).toLowerCase(), n = !0;
239
239
  }
240
240
  }
241
- a.byteLength = pt;
242
- function ir(t, e, r) {
241
+ f.byteLength = xt;
242
+ function mr(t, e, r) {
243
243
  var n = !1;
244
244
  if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((r === void 0 || r > this.length) && (r = this.length), r <= 0) || (r >>>= 0, e >>>= 0, r <= e))
245
245
  return "";
246
246
  for (t || (t = "utf8"); ; )
247
247
  switch (t) {
248
248
  case "hex":
249
- return pr(this, e, r);
249
+ return Ir(this, e, r);
250
250
  case "utf8":
251
251
  case "utf-8":
252
- return _t(this, e, r);
252
+ return Rt(this, e, r);
253
253
  case "ascii":
254
- return cr(this, e, r);
254
+ return Sr(this, e, r);
255
255
  case "latin1":
256
256
  case "binary":
257
- return dr(this, e, r);
257
+ return Rr(this, e, r);
258
258
  case "base64":
259
- return ur(this, e, r);
259
+ return xr(this, e, r);
260
260
  case "ucs2":
261
261
  case "ucs-2":
262
262
  case "utf16le":
263
263
  case "utf-16le":
264
- return mr(this, e, r);
264
+ return Cr(this, e, r);
265
265
  default:
266
266
  if (n) throw new TypeError("Unknown encoding: " + t);
267
267
  t = (t + "").toLowerCase(), n = !0;
268
268
  }
269
269
  }
270
- a.prototype._isBuffer = !0;
271
- function K(t, e, r) {
270
+ f.prototype._isBuffer = !0;
271
+ function re(t, e, r) {
272
272
  var n = t[e];
273
273
  t[e] = t[r], t[r] = n;
274
274
  }
275
- a.prototype.swap16 = function() {
275
+ f.prototype.swap16 = function() {
276
276
  var e = this.length;
277
277
  if (e % 2 !== 0)
278
278
  throw new RangeError("Buffer size must be a multiple of 16-bits");
279
279
  for (var r = 0; r < e; r += 2)
280
- K(this, r, r + 1);
280
+ re(this, r, r + 1);
281
281
  return this;
282
282
  };
283
- a.prototype.swap32 = function() {
283
+ f.prototype.swap32 = function() {
284
284
  var e = this.length;
285
285
  if (e % 4 !== 0)
286
286
  throw new RangeError("Buffer size must be a multiple of 32-bits");
287
287
  for (var r = 0; r < e; r += 4)
288
- K(this, r, r + 3), K(this, r + 1, r + 2);
288
+ re(this, r, r + 3), re(this, r + 1, r + 2);
289
289
  return this;
290
290
  };
291
- a.prototype.swap64 = function() {
291
+ f.prototype.swap64 = function() {
292
292
  var e = this.length;
293
293
  if (e % 8 !== 0)
294
294
  throw new RangeError("Buffer size must be a multiple of 64-bits");
295
295
  for (var r = 0; r < e; r += 8)
296
- K(this, r, r + 7), K(this, r + 1, r + 6), K(this, r + 2, r + 5), K(this, r + 3, r + 4);
296
+ re(this, r, r + 7), re(this, r + 1, r + 6), re(this, r + 2, r + 5), re(this, r + 3, r + 4);
297
297
  return this;
298
298
  };
299
- a.prototype.toString = function() {
299
+ f.prototype.toString = function() {
300
300
  var e = this.length | 0;
301
- return e === 0 ? "" : arguments.length === 0 ? _t(this, 0, e) : ir.apply(this, arguments);
301
+ return e === 0 ? "" : arguments.length === 0 ? Rt(this, 0, e) : mr.apply(this, arguments);
302
302
  };
303
- a.prototype.equals = function(e) {
303
+ f.prototype.equals = function(e) {
304
304
  if (!j(e)) throw new TypeError("Argument must be a Buffer");
305
- return this === e ? !0 : a.compare(this, e) === 0;
305
+ return this === e ? !0 : f.compare(this, e) === 0;
306
306
  };
307
- a.prototype.inspect = function() {
308
- var e = "", r = Kt;
307
+ f.prototype.inspect = function() {
308
+ var e = "", r = cr;
309
309
  return this.length > 0 && (e = this.toString("hex", 0, r).match(/.{2}/g).join(" "), this.length > r && (e += " ... ")), "<Buffer " + e + ">";
310
310
  };
311
- a.prototype.compare = function(e, r, n, i, o) {
311
+ f.prototype.compare = function(e, r, n, i, o) {
312
312
  if (!j(e))
313
313
  throw new TypeError("Argument must be a Buffer");
314
314
  if (r === void 0 && (r = 0), n === void 0 && (n = e ? e.length : 0), i === void 0 && (i = 0), o === void 0 && (o = this.length), r < 0 || n > e.length || i < 0 || o > this.length)
@@ -320,14 +320,14 @@ a.prototype.compare = function(e, r, n, i, o) {
320
320
  if (r >= n)
321
321
  return 1;
322
322
  if (r >>>= 0, n >>>= 0, i >>>= 0, o >>>= 0, this === e) return 0;
323
- for (var s = o - i, f = n - r, l = Math.min(s, f), u = this.slice(i, o), h = e.slice(r, n), c = 0; c < l; ++c)
324
- if (u[c] !== h[c]) {
325
- s = u[c], f = h[c];
323
+ for (var s = o - i, a = n - r, l = Math.min(s, a), u = this.slice(i, o), c = e.slice(r, n), h = 0; h < l; ++h)
324
+ if (u[h] !== c[h]) {
325
+ s = u[h], a = c[h];
326
326
  break;
327
327
  }
328
- return s < f ? -1 : f < s ? 1 : 0;
328
+ return s < a ? -1 : a < s ? 1 : 0;
329
329
  };
330
- function mt(t, e, r, n, i) {
330
+ function Et(t, e, r, n, i) {
331
331
  if (t.length === 0) return -1;
332
332
  if (typeof r == "string" ? (n = r, r = 0) : r > 2147483647 ? r = 2147483647 : r < -2147483648 && (r = -2147483648), r = +r, isNaN(r) && (r = i ? 0 : t.length - 1), r < 0 && (r = t.length + r), r >= t.length) {
333
333
  if (i) return -1;
@@ -335,51 +335,51 @@ function mt(t, e, r, n, i) {
335
335
  } else if (r < 0)
336
336
  if (i) r = 0;
337
337
  else return -1;
338
- if (typeof e == "string" && (e = a.from(e, n)), j(e))
339
- return e.length === 0 ? -1 : Ge(t, e, r, n, i);
338
+ if (typeof e == "string" && (e = f.from(e, n)), j(e))
339
+ return e.length === 0 ? -1 : rt(t, e, r, n, i);
340
340
  if (typeof e == "number")
341
- return e = e & 255, a.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? i ? Uint8Array.prototype.indexOf.call(t, e, r) : Uint8Array.prototype.lastIndexOf.call(t, e, r) : Ge(t, [e], r, n, i);
341
+ return e = e & 255, f.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? i ? Uint8Array.prototype.indexOf.call(t, e, r) : Uint8Array.prototype.lastIndexOf.call(t, e, r) : rt(t, [e], r, n, i);
342
342
  throw new TypeError("val must be string, number or Buffer");
343
343
  }
344
- function Ge(t, e, r, n, i) {
345
- var o = 1, s = t.length, f = e.length;
344
+ function rt(t, e, r, n, i) {
345
+ var o = 1, s = t.length, a = e.length;
346
346
  if (n !== void 0 && (n = String(n).toLowerCase(), n === "ucs2" || n === "ucs-2" || n === "utf16le" || n === "utf-16le")) {
347
347
  if (t.length < 2 || e.length < 2)
348
348
  return -1;
349
- o = 2, s /= 2, f /= 2, r /= 2;
349
+ o = 2, s /= 2, a /= 2, r /= 2;
350
350
  }
351
- function l(b, A) {
352
- return o === 1 ? b[A] : b.readUInt16BE(A * o);
351
+ function l(b, T) {
352
+ return o === 1 ? b[T] : b.readUInt16BE(T * o);
353
353
  }
354
354
  var u;
355
355
  if (i) {
356
- var h = -1;
356
+ var c = -1;
357
357
  for (u = r; u < s; u++)
358
- if (l(t, u) === l(e, h === -1 ? 0 : u - h)) {
359
- if (h === -1 && (h = u), u - h + 1 === f) return h * o;
358
+ if (l(t, u) === l(e, c === -1 ? 0 : u - c)) {
359
+ if (c === -1 && (c = u), u - c + 1 === a) return c * o;
360
360
  } else
361
- h !== -1 && (u -= u - h), h = -1;
361
+ c !== -1 && (u -= u - c), c = -1;
362
362
  } else
363
- for (r + f > s && (r = s - f), u = r; u >= 0; u--) {
364
- for (var c = !0, g = 0; g < f; g++)
365
- if (l(t, u + g) !== l(e, g)) {
366
- c = !1;
363
+ for (r + a > s && (r = s - a), u = r; u >= 0; u--) {
364
+ for (var h = !0, m = 0; m < a; m++)
365
+ if (l(t, u + m) !== l(e, m)) {
366
+ h = !1;
367
367
  break;
368
368
  }
369
- if (c) return u;
369
+ if (h) return u;
370
370
  }
371
371
  return -1;
372
372
  }
373
- a.prototype.includes = function(e, r, n) {
373
+ f.prototype.includes = function(e, r, n) {
374
374
  return this.indexOf(e, r, n) !== -1;
375
375
  };
376
- a.prototype.indexOf = function(e, r, n) {
377
- return mt(this, e, r, n, !0);
376
+ f.prototype.indexOf = function(e, r, n) {
377
+ return Et(this, e, r, n, !0);
378
378
  };
379
- a.prototype.lastIndexOf = function(e, r, n) {
380
- return mt(this, e, r, n, !1);
379
+ f.prototype.lastIndexOf = function(e, r, n) {
380
+ return Et(this, e, r, n, !1);
381
381
  };
382
- function or(t, e, r, n) {
382
+ function _r(t, e, r, n) {
383
383
  r = Number(r) || 0;
384
384
  var i = t.length - r;
385
385
  n ? (n = Number(n), n > i && (n = i)) : n = i;
@@ -387,28 +387,28 @@ function or(t, e, r, n) {
387
387
  if (o % 2 !== 0) throw new TypeError("Invalid hex string");
388
388
  n > o / 2 && (n = o / 2);
389
389
  for (var s = 0; s < n; ++s) {
390
- var f = parseInt(e.substr(s * 2, 2), 16);
391
- if (isNaN(f)) return s;
392
- t[r + s] = f;
390
+ var a = parseInt(e.substr(s * 2, 2), 16);
391
+ if (isNaN(a)) return s;
392
+ t[r + s] = a;
393
393
  }
394
394
  return s;
395
395
  }
396
- function sr(t, e, r, n) {
397
- return Ee(we(e, t.length - r), t, r, n);
396
+ function wr(t, e, r, n) {
397
+ return Ce(xe(e, t.length - r), t, r, n);
398
398
  }
399
- function gt(t, e, r, n) {
400
- return Ee(br(e), t, r, n);
399
+ function St(t, e, r, n) {
400
+ return Ce(Dr(e), t, r, n);
401
401
  }
402
- function fr(t, e, r, n) {
403
- return gt(t, e, r, n);
402
+ function yr(t, e, r, n) {
403
+ return St(t, e, r, n);
404
404
  }
405
- function ar(t, e, r, n) {
406
- return Ee(vt(e), t, r, n);
405
+ function br(t, e, r, n) {
406
+ return Ce(At(e), t, r, n);
407
407
  }
408
- function lr(t, e, r, n) {
409
- return Ee(vr(e, t.length - r), t, r, n);
408
+ function vr(t, e, r, n) {
409
+ return Ce(Nr(e, t.length - r), t, r, n);
410
410
  }
411
- a.prototype.write = function(e, r, n, i) {
411
+ f.prototype.write = function(e, r, n, i) {
412
412
  if (r === void 0)
413
413
  i = "utf8", n = this.length, r = 0;
414
414
  else if (n === void 0 && typeof r == "string")
@@ -426,107 +426,107 @@ a.prototype.write = function(e, r, n, i) {
426
426
  for (var s = !1; ; )
427
427
  switch (i) {
428
428
  case "hex":
429
- return or(this, e, r, n);
429
+ return _r(this, e, r, n);
430
430
  case "utf8":
431
431
  case "utf-8":
432
- return sr(this, e, r, n);
432
+ return wr(this, e, r, n);
433
433
  case "ascii":
434
- return gt(this, e, r, n);
434
+ return St(this, e, r, n);
435
435
  case "latin1":
436
436
  case "binary":
437
- return fr(this, e, r, n);
437
+ return yr(this, e, r, n);
438
438
  case "base64":
439
- return ar(this, e, r, n);
439
+ return br(this, e, r, n);
440
440
  case "ucs2":
441
441
  case "ucs-2":
442
442
  case "utf16le":
443
443
  case "utf-16le":
444
- return lr(this, e, r, n);
444
+ return vr(this, e, r, n);
445
445
  default:
446
446
  if (s) throw new TypeError("Unknown encoding: " + i);
447
447
  i = ("" + i).toLowerCase(), s = !0;
448
448
  }
449
449
  };
450
- a.prototype.toJSON = function() {
450
+ f.prototype.toJSON = function() {
451
451
  return {
452
452
  type: "Buffer",
453
453
  data: Array.prototype.slice.call(this._arr || this, 0)
454
454
  };
455
455
  };
456
- function ur(t, e, r) {
457
- return e === 0 && r === t.length ? He(t) : He(t.slice(e, r));
456
+ function xr(t, e, r) {
457
+ return e === 0 && r === t.length ? tt(t) : tt(t.slice(e, r));
458
458
  }
459
- function _t(t, e, r) {
459
+ function Rt(t, e, r) {
460
460
  r = Math.min(t.length, r);
461
461
  for (var n = [], i = e; i < r; ) {
462
- var o = t[i], s = null, f = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
463
- if (i + f <= r) {
464
- var l, u, h, c;
465
- switch (f) {
462
+ var o = t[i], s = null, a = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
463
+ if (i + a <= r) {
464
+ var l, u, c, h;
465
+ switch (a) {
466
466
  case 1:
467
467
  o < 128 && (s = o);
468
468
  break;
469
469
  case 2:
470
- l = t[i + 1], (l & 192) === 128 && (c = (o & 31) << 6 | l & 63, c > 127 && (s = c));
470
+ l = t[i + 1], (l & 192) === 128 && (h = (o & 31) << 6 | l & 63, h > 127 && (s = h));
471
471
  break;
472
472
  case 3:
473
- l = t[i + 1], u = t[i + 2], (l & 192) === 128 && (u & 192) === 128 && (c = (o & 15) << 12 | (l & 63) << 6 | u & 63, c > 2047 && (c < 55296 || c > 57343) && (s = c));
473
+ l = t[i + 1], u = t[i + 2], (l & 192) === 128 && (u & 192) === 128 && (h = (o & 15) << 12 | (l & 63) << 6 | u & 63, h > 2047 && (h < 55296 || h > 57343) && (s = h));
474
474
  break;
475
475
  case 4:
476
- l = t[i + 1], u = t[i + 2], h = t[i + 3], (l & 192) === 128 && (u & 192) === 128 && (h & 192) === 128 && (c = (o & 15) << 18 | (l & 63) << 12 | (u & 63) << 6 | h & 63, c > 65535 && c < 1114112 && (s = c));
476
+ l = t[i + 1], u = t[i + 2], c = t[i + 3], (l & 192) === 128 && (u & 192) === 128 && (c & 192) === 128 && (h = (o & 15) << 18 | (l & 63) << 12 | (u & 63) << 6 | c & 63, h > 65535 && h < 1114112 && (s = h));
477
477
  }
478
478
  }
479
- s === null ? (s = 65533, f = 1) : s > 65535 && (s -= 65536, n.push(s >>> 10 & 1023 | 55296), s = 56320 | s & 1023), n.push(s), i += f;
479
+ s === null ? (s = 65533, a = 1) : s > 65535 && (s -= 65536, n.push(s >>> 10 & 1023 | 55296), s = 56320 | s & 1023), n.push(s), i += a;
480
480
  }
481
- return hr(n);
481
+ return Er(n);
482
482
  }
483
- var Ze = 4096;
484
- function hr(t) {
483
+ var nt = 4096;
484
+ function Er(t) {
485
485
  var e = t.length;
486
- if (e <= Ze)
486
+ if (e <= nt)
487
487
  return String.fromCharCode.apply(String, t);
488
488
  for (var r = "", n = 0; n < e; )
489
489
  r += String.fromCharCode.apply(
490
490
  String,
491
- t.slice(n, n += Ze)
491
+ t.slice(n, n += nt)
492
492
  );
493
493
  return r;
494
494
  }
495
- function cr(t, e, r) {
495
+ function Sr(t, e, r) {
496
496
  var n = "";
497
497
  r = Math.min(t.length, r);
498
498
  for (var i = e; i < r; ++i)
499
499
  n += String.fromCharCode(t[i] & 127);
500
500
  return n;
501
501
  }
502
- function dr(t, e, r) {
502
+ function Rr(t, e, r) {
503
503
  var n = "";
504
504
  r = Math.min(t.length, r);
505
505
  for (var i = e; i < r; ++i)
506
506
  n += String.fromCharCode(t[i]);
507
507
  return n;
508
508
  }
509
- function pr(t, e, r) {
509
+ function Ir(t, e, r) {
510
510
  var n = t.length;
511
511
  (!e || e < 0) && (e = 0), (!r || r < 0 || r > n) && (r = n);
512
512
  for (var i = "", o = e; o < r; ++o)
513
- i += yr(t[o]);
513
+ i += Lr(t[o]);
514
514
  return i;
515
515
  }
516
- function mr(t, e, r) {
516
+ function Cr(t, e, r) {
517
517
  for (var n = t.slice(e, r), i = "", o = 0; o < n.length; o += 2)
518
518
  i += String.fromCharCode(n[o] + n[o + 1] * 256);
519
519
  return i;
520
520
  }
521
- a.prototype.slice = function(e, r) {
521
+ f.prototype.slice = function(e, r) {
522
522
  var n = this.length;
523
523
  e = ~~e, r = r === void 0 ? n : ~~r, e < 0 ? (e += n, e < 0 && (e = 0)) : e > n && (e = n), r < 0 ? (r += n, r < 0 && (r = 0)) : r > n && (r = n), r < e && (r = e);
524
524
  var i;
525
- if (a.TYPED_ARRAY_SUPPORT)
526
- i = this.subarray(e, r), i.__proto__ = a.prototype;
525
+ if (f.TYPED_ARRAY_SUPPORT)
526
+ i = this.subarray(e, r), i.__proto__ = f.prototype;
527
527
  else {
528
528
  var o = r - e;
529
- i = new a(o, void 0);
529
+ i = new f(o, void 0);
530
530
  for (var s = 0; s < o; ++s)
531
531
  i[s] = this[s + e];
532
532
  }
@@ -536,184 +536,184 @@ function O(t, e, r) {
536
536
  if (t % 1 !== 0 || t < 0) throw new RangeError("offset is not uint");
537
537
  if (t + e > r) throw new RangeError("Trying to access beyond buffer length");
538
538
  }
539
- a.prototype.readUIntLE = function(e, r, n) {
539
+ f.prototype.readUIntLE = function(e, r, n) {
540
540
  e = e | 0, r = r | 0, n || O(e, r, this.length);
541
541
  for (var i = this[e], o = 1, s = 0; ++s < r && (o *= 256); )
542
542
  i += this[e + s] * o;
543
543
  return i;
544
544
  };
545
- a.prototype.readUIntBE = function(e, r, n) {
545
+ f.prototype.readUIntBE = function(e, r, n) {
546
546
  e = e | 0, r = r | 0, n || O(e, r, this.length);
547
547
  for (var i = this[e + --r], o = 1; r > 0 && (o *= 256); )
548
548
  i += this[e + --r] * o;
549
549
  return i;
550
550
  };
551
- a.prototype.readUInt8 = function(e, r) {
551
+ f.prototype.readUInt8 = function(e, r) {
552
552
  return r || O(e, 1, this.length), this[e];
553
553
  };
554
- a.prototype.readUInt16LE = function(e, r) {
554
+ f.prototype.readUInt16LE = function(e, r) {
555
555
  return r || O(e, 2, this.length), this[e] | this[e + 1] << 8;
556
556
  };
557
- a.prototype.readUInt16BE = function(e, r) {
557
+ f.prototype.readUInt16BE = function(e, r) {
558
558
  return r || O(e, 2, this.length), this[e] << 8 | this[e + 1];
559
559
  };
560
- a.prototype.readUInt32LE = function(e, r) {
560
+ f.prototype.readUInt32LE = function(e, r) {
561
561
  return r || O(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
562
562
  };
563
- a.prototype.readUInt32BE = function(e, r) {
563
+ f.prototype.readUInt32BE = function(e, r) {
564
564
  return r || O(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
565
565
  };
566
- a.prototype.readIntLE = function(e, r, n) {
566
+ f.prototype.readIntLE = function(e, r, n) {
567
567
  e = e | 0, r = r | 0, n || O(e, r, this.length);
568
568
  for (var i = this[e], o = 1, s = 0; ++s < r && (o *= 256); )
569
569
  i += this[e + s] * o;
570
570
  return o *= 128, i >= o && (i -= Math.pow(2, 8 * r)), i;
571
571
  };
572
- a.prototype.readIntBE = function(e, r, n) {
572
+ f.prototype.readIntBE = function(e, r, n) {
573
573
  e = e | 0, r = r | 0, n || O(e, r, this.length);
574
574
  for (var i = r, o = 1, s = this[e + --i]; i > 0 && (o *= 256); )
575
575
  s += this[e + --i] * o;
576
576
  return o *= 128, s >= o && (s -= Math.pow(2, 8 * r)), s;
577
577
  };
578
- a.prototype.readInt8 = function(e, r) {
578
+ f.prototype.readInt8 = function(e, r) {
579
579
  return r || O(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
580
580
  };
581
- a.prototype.readInt16LE = function(e, r) {
581
+ f.prototype.readInt16LE = function(e, r) {
582
582
  r || O(e, 2, this.length);
583
583
  var n = this[e] | this[e + 1] << 8;
584
584
  return n & 32768 ? n | 4294901760 : n;
585
585
  };
586
- a.prototype.readInt16BE = function(e, r) {
586
+ f.prototype.readInt16BE = function(e, r) {
587
587
  r || O(e, 2, this.length);
588
588
  var n = this[e + 1] | this[e] << 8;
589
589
  return n & 32768 ? n | 4294901760 : n;
590
590
  };
591
- a.prototype.readInt32LE = function(e, r) {
591
+ f.prototype.readInt32LE = function(e, r) {
592
592
  return r || O(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
593
593
  };
594
- a.prototype.readInt32BE = function(e, r) {
594
+ f.prototype.readInt32BE = function(e, r) {
595
595
  return r || O(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
596
596
  };
597
- a.prototype.readFloatLE = function(e, r) {
598
- return r || O(e, 4, this.length), be(this, e, !0, 23, 4);
597
+ f.prototype.readFloatLE = function(e, r) {
598
+ return r || O(e, 4, this.length), Se(this, e, !0, 23, 4);
599
599
  };
600
- a.prototype.readFloatBE = function(e, r) {
601
- return r || O(e, 4, this.length), be(this, e, !1, 23, 4);
600
+ f.prototype.readFloatBE = function(e, r) {
601
+ return r || O(e, 4, this.length), Se(this, e, !1, 23, 4);
602
602
  };
603
- a.prototype.readDoubleLE = function(e, r) {
604
- return r || O(e, 8, this.length), be(this, e, !0, 52, 8);
603
+ f.prototype.readDoubleLE = function(e, r) {
604
+ return r || O(e, 8, this.length), Se(this, e, !0, 52, 8);
605
605
  };
606
- a.prototype.readDoubleBE = function(e, r) {
607
- return r || O(e, 8, this.length), be(this, e, !1, 52, 8);
606
+ f.prototype.readDoubleBE = function(e, r) {
607
+ return r || O(e, 8, this.length), Se(this, e, !1, 52, 8);
608
608
  };
609
609
  function N(t, e, r, n, i, o) {
610
610
  if (!j(t)) throw new TypeError('"buffer" argument must be a Buffer instance');
611
611
  if (e > i || e < o) throw new RangeError('"value" argument is out of bounds');
612
612
  if (r + n > t.length) throw new RangeError("Index out of range");
613
613
  }
614
- a.prototype.writeUIntLE = function(e, r, n, i) {
614
+ f.prototype.writeUIntLE = function(e, r, n, i) {
615
615
  if (e = +e, r = r | 0, n = n | 0, !i) {
616
616
  var o = Math.pow(2, 8 * n) - 1;
617
617
  N(this, e, r, n, o, 0);
618
618
  }
619
- var s = 1, f = 0;
620
- for (this[r] = e & 255; ++f < n && (s *= 256); )
621
- this[r + f] = e / s & 255;
619
+ var s = 1, a = 0;
620
+ for (this[r] = e & 255; ++a < n && (s *= 256); )
621
+ this[r + a] = e / s & 255;
622
622
  return r + n;
623
623
  };
624
- a.prototype.writeUIntBE = function(e, r, n, i) {
624
+ f.prototype.writeUIntBE = function(e, r, n, i) {
625
625
  if (e = +e, r = r | 0, n = n | 0, !i) {
626
626
  var o = Math.pow(2, 8 * n) - 1;
627
627
  N(this, e, r, n, o, 0);
628
628
  }
629
- var s = n - 1, f = 1;
630
- for (this[r + s] = e & 255; --s >= 0 && (f *= 256); )
631
- this[r + s] = e / f & 255;
629
+ var s = n - 1, a = 1;
630
+ for (this[r + s] = e & 255; --s >= 0 && (a *= 256); )
631
+ this[r + s] = e / a & 255;
632
632
  return r + n;
633
633
  };
634
- a.prototype.writeUInt8 = function(e, r, n) {
635
- return e = +e, r = r | 0, n || N(this, e, r, 1, 255, 0), a.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), this[r] = e & 255, r + 1;
634
+ f.prototype.writeUInt8 = function(e, r, n) {
635
+ return e = +e, r = r | 0, n || N(this, e, r, 1, 255, 0), f.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), this[r] = e & 255, r + 1;
636
636
  };
637
- function ve(t, e, r, n) {
637
+ function Re(t, e, r, n) {
638
638
  e < 0 && (e = 65535 + e + 1);
639
639
  for (var i = 0, o = Math.min(t.length - r, 2); i < o; ++i)
640
640
  t[r + i] = (e & 255 << 8 * (n ? i : 1 - i)) >>> (n ? i : 1 - i) * 8;
641
641
  }
642
- a.prototype.writeUInt16LE = function(e, r, n) {
643
- return e = +e, r = r | 0, n || N(this, e, r, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[r] = e & 255, this[r + 1] = e >>> 8) : ve(this, e, r, !0), r + 2;
642
+ f.prototype.writeUInt16LE = function(e, r, n) {
643
+ return e = +e, r = r | 0, n || N(this, e, r, 2, 65535, 0), f.TYPED_ARRAY_SUPPORT ? (this[r] = e & 255, this[r + 1] = e >>> 8) : Re(this, e, r, !0), r + 2;
644
644
  };
645
- a.prototype.writeUInt16BE = function(e, r, n) {
646
- return e = +e, r = r | 0, n || N(this, e, r, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 8, this[r + 1] = e & 255) : ve(this, e, r, !1), r + 2;
645
+ f.prototype.writeUInt16BE = function(e, r, n) {
646
+ return e = +e, r = r | 0, n || N(this, e, r, 2, 65535, 0), f.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 8, this[r + 1] = e & 255) : Re(this, e, r, !1), r + 2;
647
647
  };
648
- function xe(t, e, r, n) {
648
+ function Ie(t, e, r, n) {
649
649
  e < 0 && (e = 4294967295 + e + 1);
650
650
  for (var i = 0, o = Math.min(t.length - r, 4); i < o; ++i)
651
651
  t[r + i] = e >>> (n ? i : 3 - i) * 8 & 255;
652
652
  }
653
- a.prototype.writeUInt32LE = function(e, r, n) {
654
- return e = +e, r = r | 0, n || N(this, e, r, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[r + 3] = e >>> 24, this[r + 2] = e >>> 16, this[r + 1] = e >>> 8, this[r] = e & 255) : xe(this, e, r, !0), r + 4;
653
+ f.prototype.writeUInt32LE = function(e, r, n) {
654
+ return e = +e, r = r | 0, n || N(this, e, r, 4, 4294967295, 0), f.TYPED_ARRAY_SUPPORT ? (this[r + 3] = e >>> 24, this[r + 2] = e >>> 16, this[r + 1] = e >>> 8, this[r] = e & 255) : Ie(this, e, r, !0), r + 4;
655
655
  };
656
- a.prototype.writeUInt32BE = function(e, r, n) {
657
- return e = +e, r = r | 0, n || N(this, e, r, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = e & 255) : xe(this, e, r, !1), r + 4;
656
+ f.prototype.writeUInt32BE = function(e, r, n) {
657
+ return e = +e, r = r | 0, n || N(this, e, r, 4, 4294967295, 0), f.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = e & 255) : Ie(this, e, r, !1), r + 4;
658
658
  };
659
- a.prototype.writeIntLE = function(e, r, n, i) {
659
+ f.prototype.writeIntLE = function(e, r, n, i) {
660
660
  if (e = +e, r = r | 0, !i) {
661
661
  var o = Math.pow(2, 8 * n - 1);
662
662
  N(this, e, r, n, o - 1, -o);
663
663
  }
664
- var s = 0, f = 1, l = 0;
665
- for (this[r] = e & 255; ++s < n && (f *= 256); )
666
- e < 0 && l === 0 && this[r + s - 1] !== 0 && (l = 1), this[r + s] = (e / f >> 0) - l & 255;
664
+ var s = 0, a = 1, l = 0;
665
+ for (this[r] = e & 255; ++s < n && (a *= 256); )
666
+ e < 0 && l === 0 && this[r + s - 1] !== 0 && (l = 1), this[r + s] = (e / a >> 0) - l & 255;
667
667
  return r + n;
668
668
  };
669
- a.prototype.writeIntBE = function(e, r, n, i) {
669
+ f.prototype.writeIntBE = function(e, r, n, i) {
670
670
  if (e = +e, r = r | 0, !i) {
671
671
  var o = Math.pow(2, 8 * n - 1);
672
672
  N(this, e, r, n, o - 1, -o);
673
673
  }
674
- var s = n - 1, f = 1, l = 0;
675
- for (this[r + s] = e & 255; --s >= 0 && (f *= 256); )
676
- e < 0 && l === 0 && this[r + s + 1] !== 0 && (l = 1), this[r + s] = (e / f >> 0) - l & 255;
674
+ var s = n - 1, a = 1, l = 0;
675
+ for (this[r + s] = e & 255; --s >= 0 && (a *= 256); )
676
+ e < 0 && l === 0 && this[r + s + 1] !== 0 && (l = 1), this[r + s] = (e / a >> 0) - l & 255;
677
677
  return r + n;
678
678
  };
679
- a.prototype.writeInt8 = function(e, r, n) {
680
- return e = +e, r = r | 0, n || N(this, e, r, 1, 127, -128), a.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), e < 0 && (e = 255 + e + 1), this[r] = e & 255, r + 1;
679
+ f.prototype.writeInt8 = function(e, r, n) {
680
+ return e = +e, r = r | 0, n || N(this, e, r, 1, 127, -128), f.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), e < 0 && (e = 255 + e + 1), this[r] = e & 255, r + 1;
681
681
  };
682
- a.prototype.writeInt16LE = function(e, r, n) {
683
- return e = +e, r = r | 0, n || N(this, e, r, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[r] = e & 255, this[r + 1] = e >>> 8) : ve(this, e, r, !0), r + 2;
682
+ f.prototype.writeInt16LE = function(e, r, n) {
683
+ return e = +e, r = r | 0, n || N(this, e, r, 2, 32767, -32768), f.TYPED_ARRAY_SUPPORT ? (this[r] = e & 255, this[r + 1] = e >>> 8) : Re(this, e, r, !0), r + 2;
684
684
  };
685
- a.prototype.writeInt16BE = function(e, r, n) {
686
- return e = +e, r = r | 0, n || N(this, e, r, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 8, this[r + 1] = e & 255) : ve(this, e, r, !1), r + 2;
685
+ f.prototype.writeInt16BE = function(e, r, n) {
686
+ return e = +e, r = r | 0, n || N(this, e, r, 2, 32767, -32768), f.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 8, this[r + 1] = e & 255) : Re(this, e, r, !1), r + 2;
687
687
  };
688
- a.prototype.writeInt32LE = function(e, r, n) {
689
- return e = +e, r = r | 0, n || N(this, e, r, 4, 2147483647, -2147483648), a.TYPED_ARRAY_SUPPORT ? (this[r] = e & 255, this[r + 1] = e >>> 8, this[r + 2] = e >>> 16, this[r + 3] = e >>> 24) : xe(this, e, r, !0), r + 4;
688
+ f.prototype.writeInt32LE = function(e, r, n) {
689
+ return e = +e, r = r | 0, n || N(this, e, r, 4, 2147483647, -2147483648), f.TYPED_ARRAY_SUPPORT ? (this[r] = e & 255, this[r + 1] = e >>> 8, this[r + 2] = e >>> 16, this[r + 3] = e >>> 24) : Ie(this, e, r, !0), r + 4;
690
690
  };
691
- a.prototype.writeInt32BE = function(e, r, n) {
692
- return e = +e, r = r | 0, n || N(this, e, r, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), a.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = e & 255) : xe(this, e, r, !1), r + 4;
691
+ f.prototype.writeInt32BE = function(e, r, n) {
692
+ return e = +e, r = r | 0, n || N(this, e, r, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), f.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = e & 255) : Ie(this, e, r, !1), r + 4;
693
693
  };
694
- function wt(t, e, r, n, i, o) {
694
+ function It(t, e, r, n, i, o) {
695
695
  if (r + n > t.length) throw new RangeError("Index out of range");
696
696
  if (r < 0) throw new RangeError("Index out of range");
697
697
  }
698
- function yt(t, e, r, n, i) {
699
- return i || wt(t, e, r, 4), ut(t, e, r, n, 23, 4), r + 4;
698
+ function Ct(t, e, r, n, i) {
699
+ return i || It(t, e, r, 4), wt(t, e, r, n, 23, 4), r + 4;
700
700
  }
701
- a.prototype.writeFloatLE = function(e, r, n) {
702
- return yt(this, e, r, !0, n);
701
+ f.prototype.writeFloatLE = function(e, r, n) {
702
+ return Ct(this, e, r, !0, n);
703
703
  };
704
- a.prototype.writeFloatBE = function(e, r, n) {
705
- return yt(this, e, r, !1, n);
704
+ f.prototype.writeFloatBE = function(e, r, n) {
705
+ return Ct(this, e, r, !1, n);
706
706
  };
707
- function bt(t, e, r, n, i) {
708
- return i || wt(t, e, r, 8), ut(t, e, r, n, 52, 8), r + 8;
707
+ function Ot(t, e, r, n, i) {
708
+ return i || It(t, e, r, 8), wt(t, e, r, n, 52, 8), r + 8;
709
709
  }
710
- a.prototype.writeDoubleLE = function(e, r, n) {
711
- return bt(this, e, r, !0, n);
710
+ f.prototype.writeDoubleLE = function(e, r, n) {
711
+ return Ot(this, e, r, !0, n);
712
712
  };
713
- a.prototype.writeDoubleBE = function(e, r, n) {
714
- return bt(this, e, r, !1, n);
713
+ f.prototype.writeDoubleBE = function(e, r, n) {
714
+ return Ot(this, e, r, !1, n);
715
715
  };
716
- a.prototype.copy = function(e, r, n, i) {
716
+ f.prototype.copy = function(e, r, n, i) {
717
717
  if (n || (n = 0), !i && i !== 0 && (i = this.length), r >= e.length && (r = e.length), r || (r = 0), i > 0 && i < n && (i = n), i === n || e.length === 0 || this.length === 0) return 0;
718
718
  if (r < 0)
719
719
  throw new RangeError("targetStart out of bounds");
@@ -724,7 +724,7 @@ a.prototype.copy = function(e, r, n, i) {
724
724
  if (this === e && n < r && r < i)
725
725
  for (s = o - 1; s >= 0; --s)
726
726
  e[s + r] = this[s + n];
727
- else if (o < 1e3 || !a.TYPED_ARRAY_SUPPORT)
727
+ else if (o < 1e3 || !f.TYPED_ARRAY_SUPPORT)
728
728
  for (s = 0; s < o; ++s)
729
729
  e[s + r] = this[s + n];
730
730
  else
@@ -735,7 +735,7 @@ a.prototype.copy = function(e, r, n, i) {
735
735
  );
736
736
  return o;
737
737
  };
738
- a.prototype.fill = function(e, r, n, i) {
738
+ f.prototype.fill = function(e, r, n, i) {
739
739
  if (typeof e == "string") {
740
740
  if (typeof r == "string" ? (i = r, r = 0, n = this.length) : typeof n == "string" && (i = n, n = this.length), e.length === 1) {
741
741
  var o = e.charCodeAt(0);
@@ -743,7 +743,7 @@ a.prototype.fill = function(e, r, n, i) {
743
743
  }
744
744
  if (i !== void 0 && typeof i != "string")
745
745
  throw new TypeError("encoding must be a string");
746
- if (typeof i == "string" && !a.isEncoding(i))
746
+ if (typeof i == "string" && !f.isEncoding(i))
747
747
  throw new TypeError("Unknown encoding: " + i);
748
748
  } else typeof e == "number" && (e = e & 255);
749
749
  if (r < 0 || this.length < r || this.length < n)
@@ -756,26 +756,26 @@ a.prototype.fill = function(e, r, n, i) {
756
756
  for (s = r; s < n; ++s)
757
757
  this[s] = e;
758
758
  else {
759
- var f = j(e) ? e : we(new a(e, i).toString()), l = f.length;
759
+ var a = j(e) ? e : xe(new f(e, i).toString()), l = a.length;
760
760
  for (s = 0; s < n - r; ++s)
761
- this[s + r] = f[s % l];
761
+ this[s + r] = a[s % l];
762
762
  }
763
763
  return this;
764
764
  };
765
- var gr = /[^+\/0-9A-Za-z-_]/g;
766
- function _r(t) {
767
- if (t = wr(t).replace(gr, ""), t.length < 2) return "";
765
+ var Or = /[^+\/0-9A-Za-z-_]/g;
766
+ function Ar(t) {
767
+ if (t = Tr(t).replace(Or, ""), t.length < 2) return "";
768
768
  for (; t.length % 4 !== 0; )
769
769
  t = t + "=";
770
770
  return t;
771
771
  }
772
- function wr(t) {
772
+ function Tr(t) {
773
773
  return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "");
774
774
  }
775
- function yr(t) {
775
+ function Lr(t) {
776
776
  return t < 16 ? "0" + t.toString(16) : t.toString(16);
777
777
  }
778
- function we(t, e) {
778
+ function xe(t, e) {
779
779
  e = e || 1 / 0;
780
780
  for (var r, n = t.length, i = null, o = [], s = 0; s < n; ++s) {
781
781
  if (r = t.charCodeAt(s), r > 55295 && r < 57344) {
@@ -825,40 +825,40 @@ function we(t, e) {
825
825
  }
826
826
  return o;
827
827
  }
828
- function br(t) {
828
+ function Dr(t) {
829
829
  for (var e = [], r = 0; r < t.length; ++r)
830
830
  e.push(t.charCodeAt(r) & 255);
831
831
  return e;
832
832
  }
833
- function vr(t, e) {
833
+ function Nr(t, e) {
834
834
  for (var r, n, i, o = [], s = 0; s < t.length && !((e -= 2) < 0); ++s)
835
835
  r = t.charCodeAt(s), n = r >> 8, i = r % 256, o.push(i), o.push(n);
836
836
  return o;
837
837
  }
838
- function vt(t) {
839
- return Ht(_r(t));
838
+ function At(t) {
839
+ return ar(Ar(t));
840
840
  }
841
- function Ee(t, e, r, n) {
841
+ function Ce(t, e, r, n) {
842
842
  for (var i = 0; i < n && !(i + r >= e.length || i >= t.length); ++i)
843
843
  e[i + r] = t[i];
844
844
  return i;
845
845
  }
846
- function xr(t) {
846
+ function Fr(t) {
847
847
  return t !== t;
848
848
  }
849
- function L(t) {
850
- return t != null && (!!t._isBuffer || xt(t) || Er(t));
849
+ function D(t) {
850
+ return t != null && (!!t._isBuffer || Tt(t) || Mr(t));
851
851
  }
852
- function xt(t) {
852
+ function Tt(t) {
853
853
  return !!t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
854
854
  }
855
- function Er(t) {
856
- return typeof t.readFloatLE == "function" && typeof t.slice == "function" && xt(t.slice(0, 0));
855
+ function Mr(t) {
856
+ return typeof t.readFloatLE == "function" && typeof t.slice == "function" && Tt(t.slice(0, 0));
857
857
  }
858
- var Oe;
859
- function H() {
858
+ var Le;
859
+ function Z() {
860
860
  }
861
- H.prototype = /* @__PURE__ */ Object.create(null);
861
+ Z.prototype = /* @__PURE__ */ Object.create(null);
862
862
  function p() {
863
863
  p.init.call(this);
864
864
  }
@@ -869,58 +869,58 @@ p.prototype._events = void 0;
869
869
  p.prototype._maxListeners = void 0;
870
870
  p.defaultMaxListeners = 10;
871
871
  p.init = function() {
872
- this.domain = null, p.usingDomains && Oe.active && !(this instanceof Oe.Domain) && (this.domain = Oe.active), (!this._events || this._events === Object.getPrototypeOf(this)._events) && (this._events = new H(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
872
+ this.domain = null, p.usingDomains && Le.active && !(this instanceof Le.Domain) && (this.domain = Le.active), (!this._events || this._events === Object.getPrototypeOf(this)._events) && (this._events = new Z(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
873
873
  };
874
874
  p.prototype.setMaxListeners = function(e) {
875
875
  if (typeof e != "number" || e < 0 || isNaN(e))
876
876
  throw new TypeError('"n" argument must be a positive number');
877
877
  return this._maxListeners = e, this;
878
878
  };
879
- function Et(t) {
879
+ function Lt(t) {
880
880
  return t._maxListeners === void 0 ? p.defaultMaxListeners : t._maxListeners;
881
881
  }
882
882
  p.prototype.getMaxListeners = function() {
883
- return Et(this);
883
+ return Lt(this);
884
884
  };
885
- function Sr(t, e, r) {
885
+ function Br(t, e, r) {
886
886
  if (e)
887
887
  t.call(r);
888
888
  else
889
- for (var n = t.length, i = ae(t, n), o = 0; o < n; ++o)
889
+ for (var n = t.length, i = ce(t, n), o = 0; o < n; ++o)
890
890
  i[o].call(r);
891
891
  }
892
- function Rr(t, e, r, n) {
892
+ function kr(t, e, r, n) {
893
893
  if (e)
894
894
  t.call(r, n);
895
895
  else
896
- for (var i = t.length, o = ae(t, i), s = 0; s < i; ++s)
896
+ for (var i = t.length, o = ce(t, i), s = 0; s < i; ++s)
897
897
  o[s].call(r, n);
898
898
  }
899
- function Ir(t, e, r, n, i) {
899
+ function Ur(t, e, r, n, i) {
900
900
  if (e)
901
901
  t.call(r, n, i);
902
902
  else
903
- for (var o = t.length, s = ae(t, o), f = 0; f < o; ++f)
904
- s[f].call(r, n, i);
903
+ for (var o = t.length, s = ce(t, o), a = 0; a < o; ++a)
904
+ s[a].call(r, n, i);
905
905
  }
906
- function Or(t, e, r, n, i, o) {
906
+ function Pr(t, e, r, n, i, o) {
907
907
  if (e)
908
908
  t.call(r, n, i, o);
909
909
  else
910
- for (var s = t.length, f = ae(t, s), l = 0; l < s; ++l)
911
- f[l].call(r, n, i, o);
910
+ for (var s = t.length, a = ce(t, s), l = 0; l < s; ++l)
911
+ a[l].call(r, n, i, o);
912
912
  }
913
- function Cr(t, e, r, n) {
913
+ function $r(t, e, r, n) {
914
914
  if (e)
915
915
  t.apply(r, n);
916
916
  else
917
- for (var i = t.length, o = ae(t, i), s = 0; s < i; ++s)
917
+ for (var i = t.length, o = ce(t, i), s = 0; s < i; ++s)
918
918
  o[s].apply(r, n);
919
919
  }
920
920
  p.prototype.emit = function(e) {
921
- var r, n, i, o, s, f, l, u = e === "error";
922
- if (f = this._events, f)
923
- u = u && f.error == null;
921
+ var r, n, i, o, s, a, l, u = e === "error";
922
+ if (a = this._events, a)
923
+ u = u && a.error == null;
924
924
  else if (!u)
925
925
  return !1;
926
926
  if (l = this.domain, u) {
@@ -929,37 +929,37 @@ p.prototype.emit = function(e) {
929
929
  else {
930
930
  if (r instanceof Error)
931
931
  throw r;
932
- var h = new Error('Uncaught, unspecified "error" event. (' + r + ")");
933
- throw h.context = r, h;
932
+ var c = new Error('Uncaught, unspecified "error" event. (' + r + ")");
933
+ throw c.context = r, c;
934
934
  }
935
935
  return !1;
936
936
  }
937
- if (n = f[e], !n)
937
+ if (n = a[e], !n)
938
938
  return !1;
939
- var c = typeof n == "function";
939
+ var h = typeof n == "function";
940
940
  switch (i = arguments.length, i) {
941
941
  // fast cases
942
942
  case 1:
943
- Sr(n, c, this);
943
+ Br(n, h, this);
944
944
  break;
945
945
  case 2:
946
- Rr(n, c, this, arguments[1]);
946
+ kr(n, h, this, arguments[1]);
947
947
  break;
948
948
  case 3:
949
- Ir(n, c, this, arguments[1], arguments[2]);
949
+ Ur(n, h, this, arguments[1], arguments[2]);
950
950
  break;
951
951
  case 4:
952
- Or(n, c, this, arguments[1], arguments[2], arguments[3]);
952
+ Pr(n, h, this, arguments[1], arguments[2], arguments[3]);
953
953
  break;
954
954
  // slower
955
955
  default:
956
956
  for (o = new Array(i - 1), s = 1; s < i; s++)
957
957
  o[s - 1] = arguments[s];
958
- Cr(n, c, this, o);
958
+ $r(n, h, this, o);
959
959
  }
960
960
  return !0;
961
961
  };
962
- function St(t, e, r, n) {
962
+ function Dt(t, e, r, n) {
963
963
  var i, o, s;
964
964
  if (typeof r != "function")
965
965
  throw new TypeError('"listener" argument must be a function');
@@ -967,26 +967,26 @@ function St(t, e, r, n) {
967
967
  "newListener",
968
968
  e,
969
969
  r.listener ? r.listener : r
970
- ), o = t._events), s = o[e]) : (o = t._events = new H(), t._eventsCount = 0), !s)
970
+ ), o = t._events), s = o[e]) : (o = t._events = new Z(), t._eventsCount = 0), !s)
971
971
  s = o[e] = r, ++t._eventsCount;
972
- else if (typeof s == "function" ? s = o[e] = n ? [r, s] : [s, r] : n ? s.unshift(r) : s.push(r), !s.warned && (i = Et(t), i && i > 0 && s.length > i)) {
972
+ else if (typeof s == "function" ? s = o[e] = n ? [r, s] : [s, r] : n ? s.unshift(r) : s.push(r), !s.warned && (i = Lt(t), i && i > 0 && s.length > i)) {
973
973
  s.warned = !0;
974
- var f = new Error("Possible EventEmitter memory leak detected. " + s.length + " " + e + " listeners added. Use emitter.setMaxListeners() to increase limit");
975
- f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = s.length, Ar(f);
974
+ var a = new Error("Possible EventEmitter memory leak detected. " + s.length + " " + e + " listeners added. Use emitter.setMaxListeners() to increase limit");
975
+ a.name = "MaxListenersExceededWarning", a.emitter = t, a.type = e, a.count = s.length, jr(a);
976
976
  }
977
977
  return t;
978
978
  }
979
- function Ar(t) {
979
+ function jr(t) {
980
980
  typeof console.warn == "function" ? console.warn(t) : console.log(t);
981
981
  }
982
982
  p.prototype.addListener = function(e, r) {
983
- return St(this, e, r, !1);
983
+ return Dt(this, e, r, !1);
984
984
  };
985
985
  p.prototype.on = p.prototype.addListener;
986
986
  p.prototype.prependListener = function(e, r) {
987
- return St(this, e, r, !0);
987
+ return Dt(this, e, r, !0);
988
988
  };
989
- function Rt(t, e, r) {
989
+ function Nt(t, e, r) {
990
990
  var n = !1;
991
991
  function i() {
992
992
  t.removeListener(e, i), n || (n = !0, r.apply(t, arguments));
@@ -996,15 +996,15 @@ function Rt(t, e, r) {
996
996
  p.prototype.once = function(e, r) {
997
997
  if (typeof r != "function")
998
998
  throw new TypeError('"listener" argument must be a function');
999
- return this.on(e, Rt(this, e, r)), this;
999
+ return this.on(e, Nt(this, e, r)), this;
1000
1000
  };
1001
1001
  p.prototype.prependOnceListener = function(e, r) {
1002
1002
  if (typeof r != "function")
1003
1003
  throw new TypeError('"listener" argument must be a function');
1004
- return this.prependListener(e, Rt(this, e, r)), this;
1004
+ return this.prependListener(e, Nt(this, e, r)), this;
1005
1005
  };
1006
1006
  p.prototype.removeListener = function(e, r) {
1007
- var n, i, o, s, f;
1007
+ var n, i, o, s, a;
1008
1008
  if (typeof r != "function")
1009
1009
  throw new TypeError('"listener" argument must be a function');
1010
1010
  if (i = this._events, !i)
@@ -1012,22 +1012,22 @@ p.prototype.removeListener = function(e, r) {
1012
1012
  if (n = i[e], !n)
1013
1013
  return this;
1014
1014
  if (n === r || n.listener && n.listener === r)
1015
- --this._eventsCount === 0 ? this._events = new H() : (delete i[e], i.removeListener && this.emit("removeListener", e, n.listener || r));
1015
+ --this._eventsCount === 0 ? this._events = new Z() : (delete i[e], i.removeListener && this.emit("removeListener", e, n.listener || r));
1016
1016
  else if (typeof n != "function") {
1017
1017
  for (o = -1, s = n.length; s-- > 0; )
1018
1018
  if (n[s] === r || n[s].listener && n[s].listener === r) {
1019
- f = n[s].listener, o = s;
1019
+ a = n[s].listener, o = s;
1020
1020
  break;
1021
1021
  }
1022
1022
  if (o < 0)
1023
1023
  return this;
1024
1024
  if (n.length === 1) {
1025
1025
  if (n[0] = void 0, --this._eventsCount === 0)
1026
- return this._events = new H(), this;
1026
+ return this._events = new Z(), this;
1027
1027
  delete i[e];
1028
1028
  } else
1029
- Tr(n, o);
1030
- i.removeListener && this.emit("removeListener", e, f || r);
1029
+ qr(n, o);
1030
+ i.removeListener && this.emit("removeListener", e, a || r);
1031
1031
  }
1032
1032
  return this;
1033
1033
  };
@@ -1036,11 +1036,11 @@ p.prototype.removeAllListeners = function(e) {
1036
1036
  if (n = this._events, !n)
1037
1037
  return this;
1038
1038
  if (!n.removeListener)
1039
- return arguments.length === 0 ? (this._events = new H(), this._eventsCount = 0) : n[e] && (--this._eventsCount === 0 ? this._events = new H() : delete n[e]), this;
1039
+ return arguments.length === 0 ? (this._events = new Z(), this._eventsCount = 0) : n[e] && (--this._eventsCount === 0 ? this._events = new Z() : delete n[e]), this;
1040
1040
  if (arguments.length === 0) {
1041
1041
  for (var i = Object.keys(n), o = 0, s; o < i.length; ++o)
1042
1042
  s = i[o], s !== "removeListener" && this.removeAllListeners(s);
1043
- return this.removeAllListeners("removeListener"), this._events = new H(), this._eventsCount = 0, this;
1043
+ return this.removeAllListeners("removeListener"), this._events = new Z(), this._eventsCount = 0, this;
1044
1044
  }
1045
1045
  if (r = n[e], typeof r == "function")
1046
1046
  this.removeListener(e, r);
@@ -1052,13 +1052,13 @@ p.prototype.removeAllListeners = function(e) {
1052
1052
  };
1053
1053
  p.prototype.listeners = function(e) {
1054
1054
  var r, n, i = this._events;
1055
- return i ? (r = i[e], r ? typeof r == "function" ? n = [r.listener || r] : n = Lr(r) : n = []) : n = [], n;
1055
+ return i ? (r = i[e], r ? typeof r == "function" ? n = [r.listener || r] : n = zr(r) : n = []) : n = [], n;
1056
1056
  };
1057
1057
  p.listenerCount = function(t, e) {
1058
- return typeof t.listenerCount == "function" ? t.listenerCount(e) : It.call(t, e);
1058
+ return typeof t.listenerCount == "function" ? t.listenerCount(e) : Ft.call(t, e);
1059
1059
  };
1060
- p.prototype.listenerCount = It;
1061
- function It(t) {
1060
+ p.prototype.listenerCount = Ft;
1061
+ function Ft(t) {
1062
1062
  var e = this._events;
1063
1063
  if (e) {
1064
1064
  var r = e[t];
@@ -1072,95 +1072,95 @@ function It(t) {
1072
1072
  p.prototype.eventNames = function() {
1073
1073
  return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
1074
1074
  };
1075
- function Tr(t, e) {
1075
+ function qr(t, e) {
1076
1076
  for (var r = e, n = r + 1, i = t.length; n < i; r += 1, n += 1)
1077
1077
  t[r] = t[n];
1078
1078
  t.pop();
1079
1079
  }
1080
- function ae(t, e) {
1080
+ function ce(t, e) {
1081
1081
  for (var r = new Array(e); e--; )
1082
1082
  r[e] = t[e];
1083
1083
  return r;
1084
1084
  }
1085
- function Lr(t) {
1085
+ function zr(t) {
1086
1086
  for (var e = new Array(t.length), r = 0; r < e.length; ++r)
1087
1087
  e[r] = t[r].listener || t[r];
1088
1088
  return e;
1089
1089
  }
1090
- function Ot() {
1090
+ function Mt() {
1091
1091
  throw new Error("setTimeout has not been defined");
1092
1092
  }
1093
- function Ct() {
1093
+ function Bt() {
1094
1094
  throw new Error("clearTimeout has not been defined");
1095
1095
  }
1096
- var Y = Ot, W = Ct;
1097
- typeof ie.setTimeout == "function" && (Y = setTimeout);
1098
- typeof ie.clearTimeout == "function" && (W = clearTimeout);
1099
- function At(t) {
1100
- if (Y === setTimeout)
1096
+ var Q = Mt, G = Bt;
1097
+ typeof ae.setTimeout == "function" && (Q = setTimeout);
1098
+ typeof ae.clearTimeout == "function" && (G = clearTimeout);
1099
+ function kt(t) {
1100
+ if (Q === setTimeout)
1101
1101
  return setTimeout(t, 0);
1102
- if ((Y === Ot || !Y) && setTimeout)
1103
- return Y = setTimeout, setTimeout(t, 0);
1102
+ if ((Q === Mt || !Q) && setTimeout)
1103
+ return Q = setTimeout, setTimeout(t, 0);
1104
1104
  try {
1105
- return Y(t, 0);
1105
+ return Q(t, 0);
1106
1106
  } catch {
1107
1107
  try {
1108
- return Y.call(null, t, 0);
1108
+ return Q.call(null, t, 0);
1109
1109
  } catch {
1110
- return Y.call(this, t, 0);
1110
+ return Q.call(this, t, 0);
1111
1111
  }
1112
1112
  }
1113
1113
  }
1114
- function Nr(t) {
1115
- if (W === clearTimeout)
1114
+ function Vr(t) {
1115
+ if (G === clearTimeout)
1116
1116
  return clearTimeout(t);
1117
- if ((W === Ct || !W) && clearTimeout)
1118
- return W = clearTimeout, clearTimeout(t);
1117
+ if ((G === Bt || !G) && clearTimeout)
1118
+ return G = clearTimeout, clearTimeout(t);
1119
1119
  try {
1120
- return W(t);
1120
+ return G(t);
1121
1121
  } catch {
1122
1122
  try {
1123
- return W.call(null, t);
1123
+ return G.call(null, t);
1124
1124
  } catch {
1125
- return W.call(this, t);
1125
+ return G.call(this, t);
1126
1126
  }
1127
1127
  }
1128
1128
  }
1129
- var z = [], ne = !1, ee, me = -1;
1130
- function Dr() {
1131
- !ne || !ee || (ne = !1, ee.length ? z = ee.concat(z) : me = -1, z.length && Tt());
1129
+ var Y = [], se = !1, ne, ye = -1;
1130
+ function Jr() {
1131
+ !se || !ne || (se = !1, ne.length ? Y = ne.concat(Y) : ye = -1, Y.length && Ut());
1132
1132
  }
1133
- function Tt() {
1134
- if (!ne) {
1135
- var t = At(Dr);
1136
- ne = !0;
1137
- for (var e = z.length; e; ) {
1138
- for (ee = z, z = []; ++me < e; )
1139
- ee && ee[me].run();
1140
- me = -1, e = z.length;
1133
+ function Ut() {
1134
+ if (!se) {
1135
+ var t = kt(Jr);
1136
+ se = !0;
1137
+ for (var e = Y.length; e; ) {
1138
+ for (ne = Y, Y = []; ++ye < e; )
1139
+ ne && ne[ye].run();
1140
+ ye = -1, e = Y.length;
1141
1141
  }
1142
- ee = null, ne = !1, Nr(t);
1142
+ ne = null, se = !1, Vr(t);
1143
1143
  }
1144
1144
  }
1145
- function B(t) {
1145
+ function k(t) {
1146
1146
  var e = new Array(arguments.length - 1);
1147
1147
  if (arguments.length > 1)
1148
1148
  for (var r = 1; r < arguments.length; r++)
1149
1149
  e[r - 1] = arguments[r];
1150
- z.push(new Lt(t, e)), z.length === 1 && !ne && At(Tt);
1150
+ Y.push(new Pt(t, e)), Y.length === 1 && !se && kt(Ut);
1151
1151
  }
1152
- function Lt(t, e) {
1152
+ function Pt(t, e) {
1153
1153
  this.fun = t, this.array = e;
1154
1154
  }
1155
- Lt.prototype.run = function() {
1155
+ Pt.prototype.run = function() {
1156
1156
  this.fun.apply(null, this.array);
1157
1157
  };
1158
- var Fr = {}, se = ie.performance || {};
1159
- se.now || se.mozNow || se.msNow || se.oNow || se.webkitNow;
1160
- var ge = {
1161
- env: Fr
1162
- }, Ue;
1163
- typeof Object.create == "function" ? Ue = function(e, r) {
1158
+ var Yr = {}, le = ae.performance || {};
1159
+ le.now || le.mozNow || le.msNow || le.oNow || le.webkitNow;
1160
+ var be = {
1161
+ env: Yr
1162
+ }, qe;
1163
+ typeof Object.create == "function" ? qe = function(e, r) {
1164
1164
  e.super_ = r, e.prototype = Object.create(r.prototype, {
1165
1165
  constructor: {
1166
1166
  value: e,
@@ -1169,23 +1169,23 @@ typeof Object.create == "function" ? Ue = function(e, r) {
1169
1169
  configurable: !0
1170
1170
  }
1171
1171
  });
1172
- } : Ue = function(e, r) {
1172
+ } : qe = function(e, r) {
1173
1173
  e.super_ = r;
1174
1174
  var n = function() {
1175
1175
  };
1176
1176
  n.prototype = r.prototype, e.prototype = new n(), e.prototype.constructor = e;
1177
1177
  };
1178
- var oe = Ue, Mr = /%[sdj%]/g;
1179
- function Br(t) {
1180
- if (!Ve(t)) {
1178
+ var fe = qe, Wr = /%[sdj%]/g;
1179
+ function Hr(t) {
1180
+ if (!Ge(t)) {
1181
1181
  for (var e = [], r = 0; r < arguments.length; r++)
1182
- e.push(G(arguments[r]));
1182
+ e.push(K(arguments[r]));
1183
1183
  return e.join(" ");
1184
1184
  }
1185
- for (var r = 1, n = arguments, i = n.length, o = String(t).replace(Mr, function(f) {
1186
- if (f === "%%") return "%";
1187
- if (r >= i) return f;
1188
- switch (f) {
1185
+ for (var r = 1, n = arguments, i = n.length, o = String(t).replace(Wr, function(a) {
1186
+ if (a === "%%") return "%";
1187
+ if (r >= i) return a;
1188
+ switch (a) {
1189
1189
  case "%s":
1190
1190
  return String(n[r++]);
1191
1191
  case "%d":
@@ -1197,52 +1197,52 @@ function Br(t) {
1197
1197
  return "[Circular]";
1198
1198
  }
1199
1199
  default:
1200
- return f;
1200
+ return a;
1201
1201
  }
1202
1202
  }), s = n[r]; r < i; s = n[++r])
1203
- ze(s) || !le(s) ? o += " " + s : o += " " + G(s);
1203
+ Qe(s) || !he(s) ? o += " " + s : o += " " + K(s);
1204
1204
  return o;
1205
1205
  }
1206
- function Nt(t, e) {
1207
- if (Q(ie.process))
1206
+ function $t(t, e) {
1207
+ if (X(ae.process))
1208
1208
  return function() {
1209
- return Nt(t, e).apply(this, arguments);
1209
+ return $t(t, e).apply(this, arguments);
1210
1210
  };
1211
- if (ge.noDeprecation === !0)
1211
+ if (be.noDeprecation === !0)
1212
1212
  return t;
1213
1213
  var r = !1;
1214
1214
  function n() {
1215
1215
  if (!r) {
1216
- if (ge.throwDeprecation)
1216
+ if (be.throwDeprecation)
1217
1217
  throw new Error(e);
1218
- ge.traceDeprecation ? console.trace(e) : console.error(e), r = !0;
1218
+ be.traceDeprecation ? console.trace(e) : console.error(e), r = !0;
1219
1219
  }
1220
1220
  return t.apply(this, arguments);
1221
1221
  }
1222
1222
  return n;
1223
1223
  }
1224
- var pe = {}, Ce;
1225
- function Ur(t) {
1226
- if (Q(Ce) && (Ce = ge.env.NODE_DEBUG || ""), t = t.toUpperCase(), !pe[t])
1227
- if (new RegExp("\\b" + t + "\\b", "i").test(Ce)) {
1224
+ var _e = {}, De;
1225
+ function Qr(t) {
1226
+ if (X(De) && (De = be.env.NODE_DEBUG || ""), t = t.toUpperCase(), !_e[t])
1227
+ if (new RegExp("\\b" + t + "\\b", "i").test(De)) {
1228
1228
  var e = 0;
1229
- pe[t] = function() {
1230
- var r = Br.apply(null, arguments);
1229
+ _e[t] = function() {
1230
+ var r = Hr.apply(null, arguments);
1231
1231
  console.error("%s %d: %s", t, e, r);
1232
1232
  };
1233
1233
  } else
1234
- pe[t] = function() {
1234
+ _e[t] = function() {
1235
1235
  };
1236
- return pe[t];
1236
+ return _e[t];
1237
1237
  }
1238
- function G(t, e) {
1238
+ function K(t, e) {
1239
1239
  var r = {
1240
1240
  seen: [],
1241
- stylize: Pr
1241
+ stylize: Xr
1242
1242
  };
1243
- return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), Dt(e) ? r.showHidden = e : e && Yr(r, e), Q(r.showHidden) && (r.showHidden = !1), Q(r.depth) && (r.depth = 2), Q(r.colors) && (r.colors = !1), Q(r.customInspect) && (r.customInspect = !0), r.colors && (r.stylize = kr), ye(r, t, r.depth);
1243
+ return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), jt(e) ? r.showHidden = e : e && on(r, e), X(r.showHidden) && (r.showHidden = !1), X(r.depth) && (r.depth = 2), X(r.colors) && (r.colors = !1), X(r.customInspect) && (r.customInspect = !0), r.colors && (r.stylize = Gr), Ee(r, t, r.depth);
1244
1244
  }
1245
- G.colors = {
1245
+ K.colors = {
1246
1246
  bold: [1, 22],
1247
1247
  italic: [3, 23],
1248
1248
  underline: [4, 24],
@@ -1257,7 +1257,7 @@ G.colors = {
1257
1257
  red: [31, 39],
1258
1258
  yellow: [33, 39]
1259
1259
  };
1260
- G.styles = {
1260
+ K.styles = {
1261
1261
  special: "cyan",
1262
1262
  number: "yellow",
1263
1263
  boolean: "yellow",
@@ -1268,79 +1268,79 @@ G.styles = {
1268
1268
  // "name": intentionally not styling
1269
1269
  regexp: "red"
1270
1270
  };
1271
- function kr(t, e) {
1272
- var r = G.styles[e];
1273
- return r ? "\x1B[" + G.colors[r][0] + "m" + t + "\x1B[" + G.colors[r][1] + "m" : t;
1271
+ function Gr(t, e) {
1272
+ var r = K.styles[e];
1273
+ return r ? "\x1B[" + K.colors[r][0] + "m" + t + "\x1B[" + K.colors[r][1] + "m" : t;
1274
1274
  }
1275
- function Pr(t, e) {
1275
+ function Xr(t, e) {
1276
1276
  return t;
1277
1277
  }
1278
- function jr(t) {
1278
+ function Zr(t) {
1279
1279
  var e = {};
1280
1280
  return t.forEach(function(r, n) {
1281
1281
  e[r] = !0;
1282
1282
  }), e;
1283
1283
  }
1284
- function ye(t, e, r) {
1285
- if (t.customInspect && e && Ne(e.inspect) && // Filter out the util module, it's inspect function is special
1286
- e.inspect !== G && // Also filter out any prototype objects using the circular check.
1284
+ function Ee(t, e, r) {
1285
+ if (t.customInspect && e && Be(e.inspect) && // Filter out the util module, it's inspect function is special
1286
+ e.inspect !== K && // Also filter out any prototype objects using the circular check.
1287
1287
  !(e.constructor && e.constructor.prototype === e)) {
1288
1288
  var n = e.inspect(r, t);
1289
- return Ve(n) || (n = ye(t, n, r)), n;
1289
+ return Ge(n) || (n = Ee(t, n, r)), n;
1290
1290
  }
1291
- var i = $r(t, e);
1291
+ var i = Kr(t, e);
1292
1292
  if (i)
1293
1293
  return i;
1294
- var o = Object.keys(e), s = jr(o);
1295
- if (t.showHidden && (o = Object.getOwnPropertyNames(e)), Le(e) && (o.indexOf("message") >= 0 || o.indexOf("description") >= 0))
1296
- return Ae(e);
1294
+ var o = Object.keys(e), s = Zr(o);
1295
+ if (t.showHidden && (o = Object.getOwnPropertyNames(e)), Me(e) && (o.indexOf("message") >= 0 || o.indexOf("description") >= 0))
1296
+ return Ne(e);
1297
1297
  if (o.length === 0) {
1298
- if (Ne(e)) {
1299
- var f = e.name ? ": " + e.name : "";
1300
- return t.stylize("[Function" + f + "]", "special");
1298
+ if (Be(e)) {
1299
+ var a = e.name ? ": " + e.name : "";
1300
+ return t.stylize("[Function" + a + "]", "special");
1301
1301
  }
1302
- if (Te(e))
1302
+ if (Fe(e))
1303
1303
  return t.stylize(RegExp.prototype.toString.call(e), "regexp");
1304
- if (Xe(e))
1304
+ if (it(e))
1305
1305
  return t.stylize(Date.prototype.toString.call(e), "date");
1306
- if (Le(e))
1307
- return Ae(e);
1306
+ if (Me(e))
1307
+ return Ne(e);
1308
1308
  }
1309
- var l = "", u = !1, h = ["{", "}"];
1310
- if (Vr(e) && (u = !0, h = ["[", "]"]), Ne(e)) {
1311
- var c = e.name ? ": " + e.name : "";
1312
- l = " [Function" + c + "]";
1309
+ var l = "", u = !1, c = ["{", "}"];
1310
+ if (rn(e) && (u = !0, c = ["[", "]"]), Be(e)) {
1311
+ var h = e.name ? ": " + e.name : "";
1312
+ l = " [Function" + h + "]";
1313
1313
  }
1314
- if (Te(e) && (l = " " + RegExp.prototype.toString.call(e)), Xe(e) && (l = " " + Date.prototype.toUTCString.call(e)), Le(e) && (l = " " + Ae(e)), o.length === 0 && (!u || e.length == 0))
1315
- return h[0] + l + h[1];
1314
+ if (Fe(e) && (l = " " + RegExp.prototype.toString.call(e)), it(e) && (l = " " + Date.prototype.toUTCString.call(e)), Me(e) && (l = " " + Ne(e)), o.length === 0 && (!u || e.length == 0))
1315
+ return c[0] + l + c[1];
1316
1316
  if (r < 0)
1317
- return Te(e) ? t.stylize(RegExp.prototype.toString.call(e), "regexp") : t.stylize("[Object]", "special");
1317
+ return Fe(e) ? t.stylize(RegExp.prototype.toString.call(e), "regexp") : t.stylize("[Object]", "special");
1318
1318
  t.seen.push(e);
1319
- var g;
1320
- return u ? g = qr(t, e, r, s, o) : g = o.map(function(b) {
1321
- return ke(t, e, r, s, b, u);
1322
- }), t.seen.pop(), zr(g, l, h);
1319
+ var m;
1320
+ return u ? m = en(t, e, r, s, o) : m = o.map(function(b) {
1321
+ return ze(t, e, r, s, b, u);
1322
+ }), t.seen.pop(), tn(m, l, c);
1323
1323
  }
1324
- function $r(t, e) {
1325
- if (Q(e))
1324
+ function Kr(t, e) {
1325
+ if (X(e))
1326
1326
  return t.stylize("undefined", "undefined");
1327
- if (Ve(e)) {
1327
+ if (Ge(e)) {
1328
1328
  var r = "'" + JSON.stringify(e).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
1329
1329
  return t.stylize(r, "string");
1330
1330
  }
1331
- if (Jr(e))
1331
+ if (nn(e))
1332
1332
  return t.stylize("" + e, "number");
1333
- if (Dt(e))
1333
+ if (jt(e))
1334
1334
  return t.stylize("" + e, "boolean");
1335
- if (ze(e))
1335
+ if (Qe(e))
1336
1336
  return t.stylize("null", "null");
1337
1337
  }
1338
- function Ae(t) {
1338
+ function Ne(t) {
1339
1339
  return "[" + Error.prototype.toString.call(t) + "]";
1340
1340
  }
1341
- function qr(t, e, r, n, i) {
1342
- for (var o = [], s = 0, f = e.length; s < f; ++s)
1343
- Ft(e, String(s)) ? o.push(ke(
1341
+ function en(t, e, r, n, i) {
1342
+ for (var o = [], s = 0, a = e.length; s < a; ++s)
1343
+ qt(e, String(s)) ? o.push(ze(
1344
1344
  t,
1345
1345
  e,
1346
1346
  r,
@@ -1349,7 +1349,7 @@ function qr(t, e, r, n, i) {
1349
1349
  !0
1350
1350
  )) : o.push("");
1351
1351
  return i.forEach(function(l) {
1352
- l.match(/^\d+$/) || o.push(ke(
1352
+ l.match(/^\d+$/) || o.push(ze(
1353
1353
  t,
1354
1354
  e,
1355
1355
  r,
@@ -1359,26 +1359,26 @@ function qr(t, e, r, n, i) {
1359
1359
  ));
1360
1360
  }), o;
1361
1361
  }
1362
- function ke(t, e, r, n, i, o) {
1363
- var s, f, l;
1364
- if (l = Object.getOwnPropertyDescriptor(e, i) || { value: e[i] }, l.get ? l.set ? f = t.stylize("[Getter/Setter]", "special") : f = t.stylize("[Getter]", "special") : l.set && (f = t.stylize("[Setter]", "special")), Ft(n, i) || (s = "[" + i + "]"), f || (t.seen.indexOf(l.value) < 0 ? (ze(r) ? f = ye(t, l.value, null) : f = ye(t, l.value, r - 1), f.indexOf(`
1365
- `) > -1 && (o ? f = f.split(`
1362
+ function ze(t, e, r, n, i, o) {
1363
+ var s, a, l;
1364
+ if (l = Object.getOwnPropertyDescriptor(e, i) || { value: e[i] }, l.get ? l.set ? a = t.stylize("[Getter/Setter]", "special") : a = t.stylize("[Getter]", "special") : l.set && (a = t.stylize("[Setter]", "special")), qt(n, i) || (s = "[" + i + "]"), a || (t.seen.indexOf(l.value) < 0 ? (Qe(r) ? a = Ee(t, l.value, null) : a = Ee(t, l.value, r - 1), a.indexOf(`
1365
+ `) > -1 && (o ? a = a.split(`
1366
1366
  `).map(function(u) {
1367
1367
  return " " + u;
1368
1368
  }).join(`
1369
- `).substr(2) : f = `
1370
- ` + f.split(`
1369
+ `).substr(2) : a = `
1370
+ ` + a.split(`
1371
1371
  `).map(function(u) {
1372
1372
  return " " + u;
1373
1373
  }).join(`
1374
- `))) : f = t.stylize("[Circular]", "special")), Q(s)) {
1374
+ `))) : a = t.stylize("[Circular]", "special")), X(s)) {
1375
1375
  if (o && i.match(/^\d+$/))
1376
- return f;
1376
+ return a;
1377
1377
  s = JSON.stringify("" + i), s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (s = s.substr(1, s.length - 2), s = t.stylize(s, "name")) : (s = s.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), s = t.stylize(s, "string"));
1378
1378
  }
1379
- return s + ": " + f;
1379
+ return s + ": " + a;
1380
1380
  }
1381
- function zr(t, e, r) {
1381
+ function tn(t, e, r) {
1382
1382
  var n = t.reduce(function(i, o) {
1383
1383
  return o.indexOf(`
1384
1384
  `) >= 0, i + o.replace(/\u001b\[\d\d?m/g, "").length + 1;
@@ -1387,85 +1387,85 @@ function zr(t, e, r) {
1387
1387
  `) + " " + t.join(`,
1388
1388
  `) + " " + r[1] : r[0] + e + " " + t.join(", ") + " " + r[1];
1389
1389
  }
1390
- function Vr(t) {
1390
+ function rn(t) {
1391
1391
  return Array.isArray(t);
1392
1392
  }
1393
- function Dt(t) {
1393
+ function jt(t) {
1394
1394
  return typeof t == "boolean";
1395
1395
  }
1396
- function ze(t) {
1396
+ function Qe(t) {
1397
1397
  return t === null;
1398
1398
  }
1399
- function Jr(t) {
1399
+ function nn(t) {
1400
1400
  return typeof t == "number";
1401
1401
  }
1402
- function Ve(t) {
1402
+ function Ge(t) {
1403
1403
  return typeof t == "string";
1404
1404
  }
1405
- function Q(t) {
1405
+ function X(t) {
1406
1406
  return t === void 0;
1407
1407
  }
1408
- function Te(t) {
1409
- return le(t) && Je(t) === "[object RegExp]";
1408
+ function Fe(t) {
1409
+ return he(t) && Xe(t) === "[object RegExp]";
1410
1410
  }
1411
- function le(t) {
1411
+ function he(t) {
1412
1412
  return typeof t == "object" && t !== null;
1413
1413
  }
1414
- function Xe(t) {
1415
- return le(t) && Je(t) === "[object Date]";
1414
+ function it(t) {
1415
+ return he(t) && Xe(t) === "[object Date]";
1416
1416
  }
1417
- function Le(t) {
1418
- return le(t) && (Je(t) === "[object Error]" || t instanceof Error);
1417
+ function Me(t) {
1418
+ return he(t) && (Xe(t) === "[object Error]" || t instanceof Error);
1419
1419
  }
1420
- function Ne(t) {
1420
+ function Be(t) {
1421
1421
  return typeof t == "function";
1422
1422
  }
1423
- function Je(t) {
1423
+ function Xe(t) {
1424
1424
  return Object.prototype.toString.call(t);
1425
1425
  }
1426
- function Yr(t, e) {
1427
- if (!e || !le(e)) return t;
1426
+ function on(t, e) {
1427
+ if (!e || !he(e)) return t;
1428
1428
  for (var r = Object.keys(e), n = r.length; n--; )
1429
1429
  t[r[n]] = e[r[n]];
1430
1430
  return t;
1431
1431
  }
1432
- function Ft(t, e) {
1432
+ function qt(t, e) {
1433
1433
  return Object.prototype.hasOwnProperty.call(t, e);
1434
1434
  }
1435
- function te() {
1435
+ function ie() {
1436
1436
  this.head = null, this.tail = null, this.length = 0;
1437
1437
  }
1438
- te.prototype.push = function(t) {
1438
+ ie.prototype.push = function(t) {
1439
1439
  var e = { data: t, next: null };
1440
1440
  this.length > 0 ? this.tail.next = e : this.head = e, this.tail = e, ++this.length;
1441
1441
  };
1442
- te.prototype.unshift = function(t) {
1442
+ ie.prototype.unshift = function(t) {
1443
1443
  var e = { data: t, next: this.head };
1444
1444
  this.length === 0 && (this.tail = e), this.head = e, ++this.length;
1445
1445
  };
1446
- te.prototype.shift = function() {
1446
+ ie.prototype.shift = function() {
1447
1447
  if (this.length !== 0) {
1448
1448
  var t = this.head.data;
1449
1449
  return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, t;
1450
1450
  }
1451
1451
  };
1452
- te.prototype.clear = function() {
1452
+ ie.prototype.clear = function() {
1453
1453
  this.head = this.tail = null, this.length = 0;
1454
1454
  };
1455
- te.prototype.join = function(t) {
1455
+ ie.prototype.join = function(t) {
1456
1456
  if (this.length === 0) return "";
1457
1457
  for (var e = this.head, r = "" + e.data; e = e.next; )
1458
1458
  r += t + e.data;
1459
1459
  return r;
1460
1460
  };
1461
- te.prototype.concat = function(t) {
1462
- if (this.length === 0) return a.alloc(0);
1461
+ ie.prototype.concat = function(t) {
1462
+ if (this.length === 0) return f.alloc(0);
1463
1463
  if (this.length === 1) return this.head.data;
1464
- for (var e = a.allocUnsafe(t >>> 0), r = this.head, n = 0; r; )
1464
+ for (var e = f.allocUnsafe(t >>> 0), r = this.head, n = 0; r; )
1465
1465
  r.data.copy(e, n), n += r.data.length, r = r.next;
1466
1466
  return e;
1467
1467
  };
1468
- var Wr = a.isEncoding || function(t) {
1468
+ var sn = f.isEncoding || function(t) {
1469
1469
  switch (t && t.toLowerCase()) {
1470
1470
  case "hex":
1471
1471
  case "utf8":
@@ -1483,29 +1483,29 @@ var Wr = a.isEncoding || function(t) {
1483
1483
  return !1;
1484
1484
  }
1485
1485
  };
1486
- function Qr(t) {
1487
- if (t && !Wr(t))
1486
+ function an(t) {
1487
+ if (t && !sn(t))
1488
1488
  throw new Error("Unknown encoding: " + t);
1489
1489
  }
1490
- function ue(t) {
1491
- switch (this.encoding = (t || "utf8").toLowerCase().replace(/[-_]/, ""), Qr(t), this.encoding) {
1490
+ function de(t) {
1491
+ switch (this.encoding = (t || "utf8").toLowerCase().replace(/[-_]/, ""), an(t), this.encoding) {
1492
1492
  case "utf8":
1493
1493
  this.surrogateSize = 3;
1494
1494
  break;
1495
1495
  case "ucs2":
1496
1496
  case "utf16le":
1497
- this.surrogateSize = 2, this.detectIncompleteChar = Gr;
1497
+ this.surrogateSize = 2, this.detectIncompleteChar = ln;
1498
1498
  break;
1499
1499
  case "base64":
1500
- this.surrogateSize = 3, this.detectIncompleteChar = Zr;
1500
+ this.surrogateSize = 3, this.detectIncompleteChar = un;
1501
1501
  break;
1502
1502
  default:
1503
- this.write = Hr;
1503
+ this.write = fn;
1504
1504
  return;
1505
1505
  }
1506
- this.charBuffer = new a(6), this.charReceived = 0, this.charLength = 0;
1506
+ this.charBuffer = new f(6), this.charReceived = 0, this.charLength = 0;
1507
1507
  }
1508
- ue.prototype.write = function(t) {
1508
+ de.prototype.write = function(t) {
1509
1509
  for (var e = ""; this.charLength; ) {
1510
1510
  var r = t.length >= this.charLength - this.charReceived ? this.charLength - this.charReceived : t.length;
1511
1511
  if (t.copy(this.charBuffer, this.charReceived, 0, r), this.charReceived += r, this.charReceived < this.charLength)
@@ -1530,7 +1530,7 @@ ue.prototype.write = function(t) {
1530
1530
  }
1531
1531
  return e;
1532
1532
  };
1533
- ue.prototype.detectIncompleteChar = function(t) {
1533
+ de.prototype.detectIncompleteChar = function(t) {
1534
1534
  for (var e = t.length >= 3 ? 3 : t.length; e > 0; e--) {
1535
1535
  var r = t[t.length - e];
1536
1536
  if (e == 1 && r >> 5 == 6) {
@@ -1548,7 +1548,7 @@ ue.prototype.detectIncompleteChar = function(t) {
1548
1548
  }
1549
1549
  this.charReceived = e;
1550
1550
  };
1551
- ue.prototype.end = function(t) {
1551
+ de.prototype.end = function(t) {
1552
1552
  var e = "";
1553
1553
  if (t && t.length && (e = this.write(t)), this.charReceived) {
1554
1554
  var r = this.charReceived, n = this.charBuffer, i = this.encoding;
@@ -1556,115 +1556,115 @@ ue.prototype.end = function(t) {
1556
1556
  }
1557
1557
  return e;
1558
1558
  };
1559
- function Hr(t) {
1559
+ function fn(t) {
1560
1560
  return t.toString(this.encoding);
1561
1561
  }
1562
- function Gr(t) {
1562
+ function ln(t) {
1563
1563
  this.charReceived = t.length % 2, this.charLength = this.charReceived ? 2 : 0;
1564
1564
  }
1565
- function Zr(t) {
1565
+ function un(t) {
1566
1566
  this.charReceived = t.length % 3, this.charLength = this.charReceived ? 3 : 0;
1567
1567
  }
1568
- E.ReadableState = Mt;
1569
- var y = Ur("stream");
1570
- oe(E, p);
1571
- function Xr(t, e, r) {
1568
+ E.ReadableState = zt;
1569
+ var y = Qr("stream");
1570
+ fe(E, p);
1571
+ function cn(t, e, r) {
1572
1572
  if (typeof t.prependListener == "function")
1573
1573
  return t.prependListener(e, r);
1574
1574
  !t._events || !t._events[e] ? t.on(e, r) : Array.isArray(t._events[e]) ? t._events[e].unshift(r) : t._events[e] = [r, t._events[e]];
1575
1575
  }
1576
- function Kr(t, e) {
1576
+ function hn(t, e) {
1577
1577
  return t.listeners(e).length;
1578
1578
  }
1579
- function Mt(t, e) {
1580
- t = t || {}, this.objectMode = !!t.objectMode, e instanceof M && (this.objectMode = this.objectMode || !!t.readableObjectMode);
1579
+ function zt(t, e) {
1580
+ t = t || {}, this.objectMode = !!t.objectMode, e instanceof B && (this.objectMode = this.objectMode || !!t.readableObjectMode);
1581
1581
  var r = t.highWaterMark, n = this.objectMode ? 16 : 16 * 1024;
1582
- this.highWaterMark = r || r === 0 ? r : n, this.highWaterMark = ~~this.highWaterMark, this.buffer = new te(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.defaultEncoding = t.defaultEncoding || "utf8", this.ranOut = !1, this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, t.encoding && (this.decoder = new ue(t.encoding), this.encoding = t.encoding);
1582
+ this.highWaterMark = r || r === 0 ? r : n, this.highWaterMark = ~~this.highWaterMark, this.buffer = new ie(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.defaultEncoding = t.defaultEncoding || "utf8", this.ranOut = !1, this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, t.encoding && (this.decoder = new de(t.encoding), this.encoding = t.encoding);
1583
1583
  }
1584
1584
  function E(t) {
1585
1585
  if (!(this instanceof E)) return new E(t);
1586
- this._readableState = new Mt(t, this), this.readable = !0, t && typeof t.read == "function" && (this._read = t.read), p.call(this);
1586
+ this._readableState = new zt(t, this), this.readable = !0, t && typeof t.read == "function" && (this._read = t.read), p.call(this);
1587
1587
  }
1588
1588
  E.prototype.push = function(t, e) {
1589
1589
  var r = this._readableState;
1590
- return !r.objectMode && typeof t == "string" && (e = e || r.defaultEncoding, e !== r.encoding && (t = a.from(t, e), e = "")), Bt(this, r, t, e, !1);
1590
+ return !r.objectMode && typeof t == "string" && (e = e || r.defaultEncoding, e !== r.encoding && (t = f.from(t, e), e = "")), Vt(this, r, t, e, !1);
1591
1591
  };
1592
1592
  E.prototype.unshift = function(t) {
1593
1593
  var e = this._readableState;
1594
- return Bt(this, e, t, "", !0);
1594
+ return Vt(this, e, t, "", !0);
1595
1595
  };
1596
1596
  E.prototype.isPaused = function() {
1597
1597
  return this._readableState.flowing === !1;
1598
1598
  };
1599
- function Bt(t, e, r, n, i) {
1600
- var o = rn(e, r);
1599
+ function Vt(t, e, r, n, i) {
1600
+ var o = gn(e, r);
1601
1601
  if (o)
1602
1602
  t.emit("error", o);
1603
1603
  else if (r === null)
1604
- e.reading = !1, nn(t, e);
1604
+ e.reading = !1, mn(t, e);
1605
1605
  else if (e.objectMode || r && r.length > 0)
1606
1606
  if (e.ended && !i) {
1607
1607
  var s = new Error("stream.push() after EOF");
1608
1608
  t.emit("error", s);
1609
1609
  } else if (e.endEmitted && i) {
1610
- var f = new Error("stream.unshift() after end event");
1611
- t.emit("error", f);
1610
+ var a = new Error("stream.unshift() after end event");
1611
+ t.emit("error", a);
1612
1612
  } else {
1613
1613
  var l;
1614
- e.decoder && !i && !n && (r = e.decoder.write(r), l = !e.objectMode && r.length === 0), i || (e.reading = !1), l || (e.flowing && e.length === 0 && !e.sync ? (t.emit("data", r), t.read(0)) : (e.length += e.objectMode ? 1 : r.length, i ? e.buffer.unshift(r) : e.buffer.push(r), e.needReadable && Se(t))), on(t, e);
1614
+ e.decoder && !i && !n && (r = e.decoder.write(r), l = !e.objectMode && r.length === 0), i || (e.reading = !1), l || (e.flowing && e.length === 0 && !e.sync ? (t.emit("data", r), t.read(0)) : (e.length += e.objectMode ? 1 : r.length, i ? e.buffer.unshift(r) : e.buffer.push(r), e.needReadable && Oe(t))), _n(t, e);
1615
1615
  }
1616
1616
  else i || (e.reading = !1);
1617
- return en(e);
1617
+ return dn(e);
1618
1618
  }
1619
- function en(t) {
1619
+ function dn(t) {
1620
1620
  return !t.ended && (t.needReadable || t.length < t.highWaterMark || t.length === 0);
1621
1621
  }
1622
1622
  E.prototype.setEncoding = function(t) {
1623
- return this._readableState.decoder = new ue(t), this._readableState.encoding = t, this;
1623
+ return this._readableState.decoder = new de(t), this._readableState.encoding = t, this;
1624
1624
  };
1625
- var Ke = 8388608;
1626
- function tn(t) {
1627
- return t >= Ke ? t = Ke : (t--, t |= t >>> 1, t |= t >>> 2, t |= t >>> 4, t |= t >>> 8, t |= t >>> 16, t++), t;
1625
+ var ot = 8388608;
1626
+ function pn(t) {
1627
+ return t >= ot ? t = ot : (t--, t |= t >>> 1, t |= t >>> 2, t |= t >>> 4, t |= t >>> 8, t |= t >>> 16, t++), t;
1628
1628
  }
1629
- function et(t, e) {
1630
- return t <= 0 || e.length === 0 && e.ended ? 0 : e.objectMode ? 1 : t !== t ? e.flowing && e.length ? e.buffer.head.data.length : e.length : (t > e.highWaterMark && (e.highWaterMark = tn(t)), t <= e.length ? t : e.ended ? e.length : (e.needReadable = !0, 0));
1629
+ function st(t, e) {
1630
+ return t <= 0 || e.length === 0 && e.ended ? 0 : e.objectMode ? 1 : t !== t ? e.flowing && e.length ? e.buffer.head.data.length : e.length : (t > e.highWaterMark && (e.highWaterMark = pn(t)), t <= e.length ? t : e.ended ? e.length : (e.needReadable = !0, 0));
1631
1631
  }
1632
1632
  E.prototype.read = function(t) {
1633
1633
  y("read", t), t = parseInt(t, 10);
1634
1634
  var e = this._readableState, r = t;
1635
1635
  if (t !== 0 && (e.emittedReadable = !1), t === 0 && e.needReadable && (e.length >= e.highWaterMark || e.ended))
1636
- return y("read: emitReadable", e.length, e.ended), e.length === 0 && e.ended ? De(this) : Se(this), null;
1637
- if (t = et(t, e), t === 0 && e.ended)
1638
- return e.length === 0 && De(this), null;
1636
+ return y("read: emitReadable", e.length, e.ended), e.length === 0 && e.ended ? ke(this) : Oe(this), null;
1637
+ if (t = st(t, e), t === 0 && e.ended)
1638
+ return e.length === 0 && ke(this), null;
1639
1639
  var n = e.needReadable;
1640
- y("need readable", n), (e.length === 0 || e.length - t < e.highWaterMark) && (n = !0, y("length less than watermark", n)), e.ended || e.reading ? (n = !1, y("reading or ended", n)) : n && (y("do read"), e.reading = !0, e.sync = !0, e.length === 0 && (e.needReadable = !0), this._read(e.highWaterMark), e.sync = !1, e.reading || (t = et(r, e)));
1640
+ y("need readable", n), (e.length === 0 || e.length - t < e.highWaterMark) && (n = !0, y("length less than watermark", n)), e.ended || e.reading ? (n = !1, y("reading or ended", n)) : n && (y("do read"), e.reading = !0, e.sync = !0, e.length === 0 && (e.needReadable = !0), this._read(e.highWaterMark), e.sync = !1, e.reading || (t = st(r, e)));
1641
1641
  var i;
1642
- return t > 0 ? i = Ut(t, e) : i = null, i === null ? (e.needReadable = !0, t = 0) : e.length -= t, e.length === 0 && (e.ended || (e.needReadable = !0), r !== t && e.ended && De(this)), i !== null && this.emit("data", i), i;
1642
+ return t > 0 ? i = Jt(t, e) : i = null, i === null ? (e.needReadable = !0, t = 0) : e.length -= t, e.length === 0 && (e.ended || (e.needReadable = !0), r !== t && e.ended && ke(this)), i !== null && this.emit("data", i), i;
1643
1643
  };
1644
- function rn(t, e) {
1644
+ function gn(t, e) {
1645
1645
  var r = null;
1646
- return !L(e) && typeof e != "string" && e !== null && e !== void 0 && !t.objectMode && (r = new TypeError("Invalid non-string/buffer chunk")), r;
1646
+ return !D(e) && typeof e != "string" && e !== null && e !== void 0 && !t.objectMode && (r = new TypeError("Invalid non-string/buffer chunk")), r;
1647
1647
  }
1648
- function nn(t, e) {
1648
+ function mn(t, e) {
1649
1649
  if (!e.ended) {
1650
1650
  if (e.decoder) {
1651
1651
  var r = e.decoder.end();
1652
1652
  r && r.length && (e.buffer.push(r), e.length += e.objectMode ? 1 : r.length);
1653
1653
  }
1654
- e.ended = !0, Se(t);
1654
+ e.ended = !0, Oe(t);
1655
1655
  }
1656
1656
  }
1657
- function Se(t) {
1657
+ function Oe(t) {
1658
1658
  var e = t._readableState;
1659
- e.needReadable = !1, e.emittedReadable || (y("emitReadable", e.flowing), e.emittedReadable = !0, e.sync ? B(tt, t) : tt(t));
1659
+ e.needReadable = !1, e.emittedReadable || (y("emitReadable", e.flowing), e.emittedReadable = !0, e.sync ? k(at, t) : at(t));
1660
1660
  }
1661
- function tt(t) {
1662
- y("emit readable"), t.emit("readable"), Ye(t);
1661
+ function at(t) {
1662
+ y("emit readable"), t.emit("readable"), Ze(t);
1663
1663
  }
1664
- function on(t, e) {
1665
- e.readingMore || (e.readingMore = !0, B(sn, t, e));
1664
+ function _n(t, e) {
1665
+ e.readingMore || (e.readingMore = !0, k(wn, t, e));
1666
1666
  }
1667
- function sn(t, e) {
1667
+ function wn(t, e) {
1668
1668
  for (var r = e.length; !e.reading && !e.flowing && !e.ended && e.length < e.highWaterMark && (y("maybeReadMore read 0"), t.read(0), r !== e.length); )
1669
1669
  r = e.length;
1670
1670
  e.readingMore = !1;
@@ -1686,48 +1686,48 @@ E.prototype.pipe = function(t, e) {
1686
1686
  break;
1687
1687
  }
1688
1688
  n.pipesCount += 1, y("pipe count=%d opts=%j", n.pipesCount, e);
1689
- var i = !e || e.end !== !1, o = i ? f : h;
1690
- n.endEmitted ? B(o) : r.once("end", o), t.on("unpipe", s);
1689
+ var i = !e || e.end !== !1, o = i ? a : c;
1690
+ n.endEmitted ? k(o) : r.once("end", o), t.on("unpipe", s);
1691
1691
  function s(S) {
1692
- y("onunpipe"), S === r && h();
1692
+ y("onunpipe"), S === r && c();
1693
1693
  }
1694
- function f() {
1694
+ function a() {
1695
1695
  y("onend"), t.end();
1696
1696
  }
1697
- var l = fn(r);
1697
+ var l = yn(r);
1698
1698
  t.on("drain", l);
1699
1699
  var u = !1;
1700
- function h() {
1701
- y("cleanup"), t.removeListener("close", A), t.removeListener("finish", x), t.removeListener("drain", l), t.removeListener("error", b), t.removeListener("unpipe", s), r.removeListener("end", f), r.removeListener("end", h), r.removeListener("data", g), u = !0, n.awaitDrain && (!t._writableState || t._writableState.needDrain) && l();
1700
+ function c() {
1701
+ y("cleanup"), t.removeListener("close", T), t.removeListener("finish", x), t.removeListener("drain", l), t.removeListener("error", b), t.removeListener("unpipe", s), r.removeListener("end", a), r.removeListener("end", c), r.removeListener("data", m), u = !0, n.awaitDrain && (!t._writableState || t._writableState.needDrain) && l();
1702
1702
  }
1703
- var c = !1;
1704
- r.on("data", g);
1705
- function g(S) {
1706
- y("ondata"), c = !1;
1703
+ var h = !1;
1704
+ r.on("data", m);
1705
+ function m(S) {
1706
+ y("ondata"), h = !1;
1707
1707
  var v = t.write(S);
1708
- v === !1 && !c && ((n.pipesCount === 1 && n.pipes === t || n.pipesCount > 1 && kt(n.pipes, t) !== -1) && !u && (y("false write response, pause", r._readableState.awaitDrain), r._readableState.awaitDrain++, c = !0), r.pause());
1708
+ v === !1 && !h && ((n.pipesCount === 1 && n.pipes === t || n.pipesCount > 1 && Yt(n.pipes, t) !== -1) && !u && (y("false write response, pause", r._readableState.awaitDrain), r._readableState.awaitDrain++, h = !0), r.pause());
1709
1709
  }
1710
1710
  function b(S) {
1711
- y("onerror", S), D(), t.removeListener("error", b), Kr(t, "error") === 0 && t.emit("error", S);
1711
+ y("onerror", S), F(), t.removeListener("error", b), hn(t, "error") === 0 && t.emit("error", S);
1712
1712
  }
1713
- Xr(t, "error", b);
1714
- function A() {
1715
- t.removeListener("finish", x), D();
1713
+ cn(t, "error", b);
1714
+ function T() {
1715
+ t.removeListener("finish", x), F();
1716
1716
  }
1717
- t.once("close", A);
1717
+ t.once("close", T);
1718
1718
  function x() {
1719
- y("onfinish"), t.removeListener("close", A), D();
1719
+ y("onfinish"), t.removeListener("close", T), F();
1720
1720
  }
1721
1721
  t.once("finish", x);
1722
- function D() {
1722
+ function F() {
1723
1723
  y("unpipe"), r.unpipe(t);
1724
1724
  }
1725
1725
  return t.emit("pipe", r), n.flowing || (y("pipe resume"), r.resume()), t;
1726
1726
  };
1727
- function fn(t) {
1727
+ function yn(t) {
1728
1728
  return function() {
1729
1729
  var e = t._readableState;
1730
- y("pipeOnDrain", e.awaitDrain), e.awaitDrain && e.awaitDrain--, e.awaitDrain === 0 && t.listeners("data").length && (e.flowing = !0, Ye(t));
1730
+ y("pipeOnDrain", e.awaitDrain), e.awaitDrain && e.awaitDrain--, e.awaitDrain === 0 && t.listeners("data").length && (e.flowing = !0, Ze(t));
1731
1731
  };
1732
1732
  }
1733
1733
  E.prototype.unpipe = function(t) {
@@ -1742,7 +1742,7 @@ E.prototype.unpipe = function(t) {
1742
1742
  r[i].emit("unpipe", this);
1743
1743
  return this;
1744
1744
  }
1745
- var o = kt(e.pipes, t);
1745
+ var o = Yt(e.pipes, t);
1746
1746
  return o === -1 ? this : (e.pipes.splice(o, 1), e.pipesCount -= 1, e.pipesCount === 1 && (e.pipes = e.pipes[0]), t.emit("unpipe", this), this);
1747
1747
  };
1748
1748
  E.prototype.on = function(t, e) {
@@ -1751,28 +1751,28 @@ E.prototype.on = function(t, e) {
1751
1751
  this._readableState.flowing !== !1 && this.resume();
1752
1752
  else if (t === "readable") {
1753
1753
  var n = this._readableState;
1754
- !n.endEmitted && !n.readableListening && (n.readableListening = n.needReadable = !0, n.emittedReadable = !1, n.reading ? n.length && Se(this) : B(an, this));
1754
+ !n.endEmitted && !n.readableListening && (n.readableListening = n.needReadable = !0, n.emittedReadable = !1, n.reading ? n.length && Oe(this) : k(bn, this));
1755
1755
  }
1756
1756
  return r;
1757
1757
  };
1758
1758
  E.prototype.addListener = E.prototype.on;
1759
- function an(t) {
1759
+ function bn(t) {
1760
1760
  y("readable nexttick read 0"), t.read(0);
1761
1761
  }
1762
1762
  E.prototype.resume = function() {
1763
1763
  var t = this._readableState;
1764
- return t.flowing || (y("resume"), t.flowing = !0, ln(this, t)), this;
1764
+ return t.flowing || (y("resume"), t.flowing = !0, vn(this, t)), this;
1765
1765
  };
1766
- function ln(t, e) {
1767
- e.resumeScheduled || (e.resumeScheduled = !0, B(un, t, e));
1766
+ function vn(t, e) {
1767
+ e.resumeScheduled || (e.resumeScheduled = !0, k(xn, t, e));
1768
1768
  }
1769
- function un(t, e) {
1770
- e.reading || (y("resume read 0"), t.read(0)), e.resumeScheduled = !1, e.awaitDrain = 0, t.emit("resume"), Ye(t), e.flowing && !e.reading && t.read(0);
1769
+ function xn(t, e) {
1770
+ e.reading || (y("resume read 0"), t.read(0)), e.resumeScheduled = !1, e.awaitDrain = 0, t.emit("resume"), Ze(t), e.flowing && !e.reading && t.read(0);
1771
1771
  }
1772
1772
  E.prototype.pause = function() {
1773
1773
  return y("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (y("pause"), this._readableState.flowing = !1, this.emit("pause")), this;
1774
1774
  };
1775
- function Ye(t) {
1775
+ function Ze(t) {
1776
1776
  var e = t._readableState;
1777
1777
  for (y("flow", e.flowing); e.flowing && t.read() !== null; )
1778
1778
  ;
@@ -1787,8 +1787,8 @@ E.prototype.wrap = function(t) {
1787
1787
  n.push(null);
1788
1788
  }), t.on("data", function(s) {
1789
1789
  if (y("wrapped data"), e.decoder && (s = e.decoder.write(s)), !(e.objectMode && s == null) && !(!e.objectMode && (!s || !s.length))) {
1790
- var f = n.push(s);
1791
- f || (r = !0, t.pause());
1790
+ var a = n.push(s);
1791
+ a || (r = !0, t.pause());
1792
1792
  }
1793
1793
  });
1794
1794
  for (var i in t)
@@ -1798,23 +1798,23 @@ E.prototype.wrap = function(t) {
1798
1798
  };
1799
1799
  })(i));
1800
1800
  var o = ["error", "close", "destroy", "pause", "resume"];
1801
- return mn(o, function(s) {
1801
+ return Cn(o, function(s) {
1802
1802
  t.on(s, n.emit.bind(n, s));
1803
1803
  }), n._read = function(s) {
1804
1804
  y("wrapped _read", s), r && (r = !1, t.resume());
1805
1805
  }, n;
1806
1806
  };
1807
- E._fromList = Ut;
1808
- function Ut(t, e) {
1807
+ E._fromList = Jt;
1808
+ function Jt(t, e) {
1809
1809
  if (e.length === 0) return null;
1810
1810
  var r;
1811
- return e.objectMode ? r = e.buffer.shift() : !t || t >= e.length ? (e.decoder ? r = e.buffer.join("") : e.buffer.length === 1 ? r = e.buffer.head.data : r = e.buffer.concat(e.length), e.buffer.clear()) : r = hn(t, e.buffer, e.decoder), r;
1811
+ return e.objectMode ? r = e.buffer.shift() : !t || t >= e.length ? (e.decoder ? r = e.buffer.join("") : e.buffer.length === 1 ? r = e.buffer.head.data : r = e.buffer.concat(e.length), e.buffer.clear()) : r = En(t, e.buffer, e.decoder), r;
1812
1812
  }
1813
- function hn(t, e, r) {
1813
+ function En(t, e, r) {
1814
1814
  var n;
1815
- return t < e.head.data.length ? (n = e.head.data.slice(0, t), e.head.data = e.head.data.slice(t)) : t === e.head.data.length ? n = e.shift() : n = r ? cn(t, e) : dn(t, e), n;
1815
+ return t < e.head.data.length ? (n = e.head.data.slice(0, t), e.head.data = e.head.data.slice(t)) : t === e.head.data.length ? n = e.shift() : n = r ? Sn(t, e) : Rn(t, e), n;
1816
1816
  }
1817
- function cn(t, e) {
1817
+ function Sn(t, e) {
1818
1818
  var r = e.head, n = 1, i = r.data;
1819
1819
  for (t -= i.length; r = r.next; ) {
1820
1820
  var o = r.data, s = t > o.length ? o.length : t;
@@ -1826,8 +1826,8 @@ function cn(t, e) {
1826
1826
  }
1827
1827
  return e.length -= n, i;
1828
1828
  }
1829
- function dn(t, e) {
1830
- var r = a.allocUnsafe(t), n = e.head, i = 1;
1829
+ function Rn(t, e) {
1830
+ var r = f.allocUnsafe(t), n = e.head, i = 1;
1831
1831
  for (n.data.copy(r), t -= n.data.length; n = n.next; ) {
1832
1832
  var o = n.data, s = t > o.length ? o.length : t;
1833
1833
  if (o.copy(r, r.length - t, 0, s), t -= s, t === 0) {
@@ -1838,118 +1838,118 @@ function dn(t, e) {
1838
1838
  }
1839
1839
  return e.length -= i, r;
1840
1840
  }
1841
- function De(t) {
1841
+ function ke(t) {
1842
1842
  var e = t._readableState;
1843
1843
  if (e.length > 0) throw new Error('"endReadable()" called on non-empty stream');
1844
- e.endEmitted || (e.ended = !0, B(pn, e, t));
1844
+ e.endEmitted || (e.ended = !0, k(In, e, t));
1845
1845
  }
1846
- function pn(t, e) {
1846
+ function In(t, e) {
1847
1847
  !t.endEmitted && t.length === 0 && (t.endEmitted = !0, e.readable = !1, e.emit("end"));
1848
1848
  }
1849
- function mn(t, e) {
1849
+ function Cn(t, e) {
1850
1850
  for (var r = 0, n = t.length; r < n; r++)
1851
1851
  e(t[r], r);
1852
1852
  }
1853
- function kt(t, e) {
1853
+ function Yt(t, e) {
1854
1854
  for (var r = 0, n = t.length; r < n; r++)
1855
1855
  if (t[r] === e) return r;
1856
1856
  return -1;
1857
1857
  }
1858
- C.WritableState = We;
1859
- oe(C, p);
1860
- function gn() {
1858
+ A.WritableState = Ke;
1859
+ fe(A, p);
1860
+ function On() {
1861
1861
  }
1862
- function _n(t, e, r) {
1862
+ function An(t, e, r) {
1863
1863
  this.chunk = t, this.encoding = e, this.callback = r, this.next = null;
1864
1864
  }
1865
- function We(t, e) {
1865
+ function Ke(t, e) {
1866
1866
  Object.defineProperty(this, "buffer", {
1867
- get: Nt(function() {
1867
+ get: $t(function() {
1868
1868
  return this.getBuffer();
1869
1869
  }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")
1870
- }), t = t || {}, this.objectMode = !!t.objectMode, e instanceof M && (this.objectMode = this.objectMode || !!t.writableObjectMode);
1870
+ }), t = t || {}, this.objectMode = !!t.objectMode, e instanceof B && (this.objectMode = this.objectMode || !!t.writableObjectMode);
1871
1871
  var r = t.highWaterMark, n = this.objectMode ? 16 : 16 * 1024;
1872
1872
  this.highWaterMark = r || r === 0 ? r : n, this.highWaterMark = ~~this.highWaterMark, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1;
1873
1873
  var i = t.decodeStrings === !1;
1874
1874
  this.decodeStrings = !i, this.defaultEncoding = t.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(o) {
1875
- Sn(e, o);
1876
- }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.bufferedRequestCount = 0, this.corkedRequestsFree = new qt(this);
1875
+ Bn(e, o);
1876
+ }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.bufferedRequestCount = 0, this.corkedRequestsFree = new Gt(this);
1877
1877
  }
1878
- We.prototype.getBuffer = function() {
1878
+ Ke.prototype.getBuffer = function() {
1879
1879
  for (var e = this.bufferedRequest, r = []; e; )
1880
1880
  r.push(e), e = e.next;
1881
1881
  return r;
1882
1882
  };
1883
- function C(t) {
1884
- if (!(this instanceof C) && !(this instanceof M)) return new C(t);
1885
- this._writableState = new We(t, this), this.writable = !0, t && (typeof t.write == "function" && (this._write = t.write), typeof t.writev == "function" && (this._writev = t.writev)), p.call(this);
1883
+ function A(t) {
1884
+ if (!(this instanceof A) && !(this instanceof B)) return new A(t);
1885
+ this._writableState = new Ke(t, this), this.writable = !0, t && (typeof t.write == "function" && (this._write = t.write), typeof t.writev == "function" && (this._writev = t.writev)), p.call(this);
1886
1886
  }
1887
- C.prototype.pipe = function() {
1887
+ A.prototype.pipe = function() {
1888
1888
  this.emit("error", new Error("Cannot pipe, not readable"));
1889
1889
  };
1890
- function wn(t, e) {
1890
+ function Tn(t, e) {
1891
1891
  var r = new Error("write after end");
1892
- t.emit("error", r), B(e, r);
1892
+ t.emit("error", r), k(e, r);
1893
1893
  }
1894
- function yn(t, e, r, n) {
1894
+ function Ln(t, e, r, n) {
1895
1895
  var i = !0, o = !1;
1896
- return r === null ? o = new TypeError("May not write null values to stream") : !a.isBuffer(r) && typeof r != "string" && r !== void 0 && !e.objectMode && (o = new TypeError("Invalid non-string/buffer chunk")), o && (t.emit("error", o), B(n, o), i = !1), i;
1896
+ return r === null ? o = new TypeError("May not write null values to stream") : !f.isBuffer(r) && typeof r != "string" && r !== void 0 && !e.objectMode && (o = new TypeError("Invalid non-string/buffer chunk")), o && (t.emit("error", o), k(n, o), i = !1), i;
1897
1897
  }
1898
- C.prototype.write = function(t, e, r) {
1898
+ A.prototype.write = function(t, e, r) {
1899
1899
  var n = this._writableState, i = !1;
1900
- return typeof e == "function" && (r = e, e = null), a.isBuffer(t) ? e = "buffer" : e || (e = n.defaultEncoding), typeof r != "function" && (r = gn), n.ended ? wn(this, r) : yn(this, n, t, r) && (n.pendingcb++, i = vn(this, n, t, e, r)), i;
1900
+ return typeof e == "function" && (r = e, e = null), f.isBuffer(t) ? e = "buffer" : e || (e = n.defaultEncoding), typeof r != "function" && (r = On), n.ended ? Tn(this, r) : Ln(this, n, t, r) && (n.pendingcb++, i = Nn(this, n, t, e, r)), i;
1901
1901
  };
1902
- C.prototype.cork = function() {
1902
+ A.prototype.cork = function() {
1903
1903
  var t = this._writableState;
1904
1904
  t.corked++;
1905
1905
  };
1906
- C.prototype.uncork = function() {
1906
+ A.prototype.uncork = function() {
1907
1907
  var t = this._writableState;
1908
- t.corked && (t.corked--, !t.writing && !t.corked && !t.finished && !t.bufferProcessing && t.bufferedRequest && Pt(this, t));
1908
+ t.corked && (t.corked--, !t.writing && !t.corked && !t.finished && !t.bufferProcessing && t.bufferedRequest && Wt(this, t));
1909
1909
  };
1910
- C.prototype.setDefaultEncoding = function(e) {
1910
+ A.prototype.setDefaultEncoding = function(e) {
1911
1911
  if (typeof e == "string" && (e = e.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((e + "").toLowerCase()) > -1)) throw new TypeError("Unknown encoding: " + e);
1912
1912
  return this._writableState.defaultEncoding = e, this;
1913
1913
  };
1914
- function bn(t, e, r) {
1915
- return !t.objectMode && t.decodeStrings !== !1 && typeof e == "string" && (e = a.from(e, r)), e;
1914
+ function Dn(t, e, r) {
1915
+ return !t.objectMode && t.decodeStrings !== !1 && typeof e == "string" && (e = f.from(e, r)), e;
1916
1916
  }
1917
- function vn(t, e, r, n, i) {
1918
- r = bn(e, r, n), a.isBuffer(r) && (n = "buffer");
1917
+ function Nn(t, e, r, n, i) {
1918
+ r = Dn(e, r, n), f.isBuffer(r) && (n = "buffer");
1919
1919
  var o = e.objectMode ? 1 : r.length;
1920
1920
  e.length += o;
1921
1921
  var s = e.length < e.highWaterMark;
1922
1922
  if (s || (e.needDrain = !0), e.writing || e.corked) {
1923
- var f = e.lastBufferedRequest;
1924
- e.lastBufferedRequest = new _n(r, n, i), f ? f.next = e.lastBufferedRequest : e.bufferedRequest = e.lastBufferedRequest, e.bufferedRequestCount += 1;
1923
+ var a = e.lastBufferedRequest;
1924
+ e.lastBufferedRequest = new An(r, n, i), a ? a.next = e.lastBufferedRequest : e.bufferedRequest = e.lastBufferedRequest, e.bufferedRequestCount += 1;
1925
1925
  } else
1926
- Pe(t, e, !1, o, r, n, i);
1926
+ Ve(t, e, !1, o, r, n, i);
1927
1927
  return s;
1928
1928
  }
1929
- function Pe(t, e, r, n, i, o, s) {
1929
+ function Ve(t, e, r, n, i, o, s) {
1930
1930
  e.writelen = n, e.writecb = s, e.writing = !0, e.sync = !0, r ? t._writev(i, e.onwrite) : t._write(i, o, e.onwrite), e.sync = !1;
1931
1931
  }
1932
- function xn(t, e, r, n, i) {
1933
- --e.pendingcb, r ? B(i, n) : i(n), t._writableState.errorEmitted = !0, t.emit("error", n);
1932
+ function Fn(t, e, r, n, i) {
1933
+ --e.pendingcb, r ? k(i, n) : i(n), t._writableState.errorEmitted = !0, t.emit("error", n);
1934
1934
  }
1935
- function En(t) {
1935
+ function Mn(t) {
1936
1936
  t.writing = !1, t.writecb = null, t.length -= t.writelen, t.writelen = 0;
1937
1937
  }
1938
- function Sn(t, e) {
1938
+ function Bn(t, e) {
1939
1939
  var r = t._writableState, n = r.sync, i = r.writecb;
1940
- if (En(r), e) xn(t, r, n, e, i);
1940
+ if (Mn(r), e) Fn(t, r, n, e, i);
1941
1941
  else {
1942
- var o = jt(r);
1943
- !o && !r.corked && !r.bufferProcessing && r.bufferedRequest && Pt(t, r), n ? B(rt, t, r, o, i) : rt(t, r, o, i);
1942
+ var o = Ht(r);
1943
+ !o && !r.corked && !r.bufferProcessing && r.bufferedRequest && Wt(t, r), n ? k(ft, t, r, o, i) : ft(t, r, o, i);
1944
1944
  }
1945
1945
  }
1946
- function rt(t, e, r, n) {
1947
- r || Rn(t, e), e.pendingcb--, n(), $t(t, e);
1946
+ function ft(t, e, r, n) {
1947
+ r || kn(t, e), e.pendingcb--, n(), Qt(t, e);
1948
1948
  }
1949
- function Rn(t, e) {
1949
+ function kn(t, e) {
1950
1950
  e.length === 0 && e.needDrain && (e.needDrain = !1, t.emit("drain"));
1951
1951
  }
1952
- function Pt(t, e) {
1952
+ function Wt(t, e) {
1953
1953
  e.bufferProcessing = !0;
1954
1954
  var r = e.bufferedRequest;
1955
1955
  if (t._writev && r && r.next) {
@@ -1957,39 +1957,39 @@ function Pt(t, e) {
1957
1957
  o.entry = r;
1958
1958
  for (var s = 0; r; )
1959
1959
  i[s] = r, r = r.next, s += 1;
1960
- Pe(t, e, !0, e.length, i, "", o.finish), e.pendingcb++, e.lastBufferedRequest = null, o.next ? (e.corkedRequestsFree = o.next, o.next = null) : e.corkedRequestsFree = new qt(e);
1960
+ Ve(t, e, !0, e.length, i, "", o.finish), e.pendingcb++, e.lastBufferedRequest = null, o.next ? (e.corkedRequestsFree = o.next, o.next = null) : e.corkedRequestsFree = new Gt(e);
1961
1961
  } else {
1962
1962
  for (; r; ) {
1963
- var f = r.chunk, l = r.encoding, u = r.callback, h = e.objectMode ? 1 : f.length;
1964
- if (Pe(t, e, !1, h, f, l, u), r = r.next, e.writing)
1963
+ var a = r.chunk, l = r.encoding, u = r.callback, c = e.objectMode ? 1 : a.length;
1964
+ if (Ve(t, e, !1, c, a, l, u), r = r.next, e.writing)
1965
1965
  break;
1966
1966
  }
1967
1967
  r === null && (e.lastBufferedRequest = null);
1968
1968
  }
1969
1969
  e.bufferedRequestCount = 0, e.bufferedRequest = r, e.bufferProcessing = !1;
1970
1970
  }
1971
- C.prototype._write = function(t, e, r) {
1971
+ A.prototype._write = function(t, e, r) {
1972
1972
  r(new Error("not implemented"));
1973
1973
  };
1974
- C.prototype._writev = null;
1975
- C.prototype.end = function(t, e, r) {
1974
+ A.prototype._writev = null;
1975
+ A.prototype.end = function(t, e, r) {
1976
1976
  var n = this._writableState;
1977
- typeof t == "function" ? (r = t, t = null, e = null) : typeof e == "function" && (r = e, e = null), t != null && this.write(t, e), n.corked && (n.corked = 1, this.uncork()), !n.ending && !n.finished && In(this, n, r);
1977
+ typeof t == "function" ? (r = t, t = null, e = null) : typeof e == "function" && (r = e, e = null), t != null && this.write(t, e), n.corked && (n.corked = 1, this.uncork()), !n.ending && !n.finished && Un(this, n, r);
1978
1978
  };
1979
- function jt(t) {
1979
+ function Ht(t) {
1980
1980
  return t.ending && t.length === 0 && t.bufferedRequest === null && !t.finished && !t.writing;
1981
1981
  }
1982
- function nt(t, e) {
1982
+ function lt(t, e) {
1983
1983
  e.prefinished || (e.prefinished = !0, t.emit("prefinish"));
1984
1984
  }
1985
- function $t(t, e) {
1986
- var r = jt(e);
1987
- return r && (e.pendingcb === 0 ? (nt(t, e), e.finished = !0, t.emit("finish")) : nt(t, e)), r;
1985
+ function Qt(t, e) {
1986
+ var r = Ht(e);
1987
+ return r && (e.pendingcb === 0 ? (lt(t, e), e.finished = !0, t.emit("finish")) : lt(t, e)), r;
1988
1988
  }
1989
- function In(t, e, r) {
1990
- e.ending = !0, $t(t, e), r && (e.finished ? B(r) : t.once("finish", r)), e.ended = !0, t.writable = !1;
1989
+ function Un(t, e, r) {
1990
+ e.ending = !0, Qt(t, e), r && (e.finished ? k(r) : t.once("finish", r)), e.ended = !0, t.writable = !1;
1991
1991
  }
1992
- function qt(t) {
1992
+ function Gt(t) {
1993
1993
  var e = this;
1994
1994
  this.next = null, this.entry = null, this.finish = function(r) {
1995
1995
  var n = e.entry;
@@ -2000,29 +2000,29 @@ function qt(t) {
2000
2000
  t.corkedRequestsFree ? t.corkedRequestsFree.next = e : t.corkedRequestsFree = e;
2001
2001
  };
2002
2002
  }
2003
- oe(M, E);
2004
- var it = Object.keys(C.prototype);
2005
- for (var Fe = 0; Fe < it.length; Fe++) {
2006
- var Me = it[Fe];
2007
- M.prototype[Me] || (M.prototype[Me] = C.prototype[Me]);
2003
+ fe(B, E);
2004
+ var ut = Object.keys(A.prototype);
2005
+ for (var Ue = 0; Ue < ut.length; Ue++) {
2006
+ var Pe = ut[Ue];
2007
+ B.prototype[Pe] || (B.prototype[Pe] = A.prototype[Pe]);
2008
2008
  }
2009
- function M(t) {
2010
- if (!(this instanceof M)) return new M(t);
2011
- E.call(this, t), C.call(this, t), t && t.readable === !1 && (this.readable = !1), t && t.writable === !1 && (this.writable = !1), this.allowHalfOpen = !0, t && t.allowHalfOpen === !1 && (this.allowHalfOpen = !1), this.once("end", On);
2009
+ function B(t) {
2010
+ if (!(this instanceof B)) return new B(t);
2011
+ E.call(this, t), A.call(this, t), t && t.readable === !1 && (this.readable = !1), t && t.writable === !1 && (this.writable = !1), this.allowHalfOpen = !0, t && t.allowHalfOpen === !1 && (this.allowHalfOpen = !1), this.once("end", Pn);
2012
2012
  }
2013
- function On() {
2014
- this.allowHalfOpen || this._writableState.ended || B(Cn, this);
2013
+ function Pn() {
2014
+ this.allowHalfOpen || this._writableState.ended || k($n, this);
2015
2015
  }
2016
- function Cn(t) {
2016
+ function $n(t) {
2017
2017
  t.end();
2018
2018
  }
2019
- oe(k, M);
2020
- function An(t) {
2019
+ fe(P, B);
2020
+ function jn(t) {
2021
2021
  this.afterTransform = function(e, r) {
2022
- return Tn(t, e, r);
2022
+ return qn(t, e, r);
2023
2023
  }, this.needTransform = !1, this.transforming = !1, this.writecb = null, this.writechunk = null, this.writeencoding = null;
2024
2024
  }
2025
- function Tn(t, e, r) {
2025
+ function qn(t, e, r) {
2026
2026
  var n = t._transformState;
2027
2027
  n.transforming = !1;
2028
2028
  var i = n.writecb;
@@ -2031,99 +2031,99 @@ function Tn(t, e, r) {
2031
2031
  var o = t._readableState;
2032
2032
  o.reading = !1, (o.needReadable || o.length < o.highWaterMark) && t._read(o.highWaterMark);
2033
2033
  }
2034
- function k(t) {
2035
- if (!(this instanceof k)) return new k(t);
2036
- M.call(this, t), this._transformState = new An(this);
2034
+ function P(t) {
2035
+ if (!(this instanceof P)) return new P(t);
2036
+ B.call(this, t), this._transformState = new jn(this);
2037
2037
  var e = this;
2038
2038
  this._readableState.needReadable = !0, this._readableState.sync = !1, t && (typeof t.transform == "function" && (this._transform = t.transform), typeof t.flush == "function" && (this._flush = t.flush)), this.once("prefinish", function() {
2039
2039
  typeof this._flush == "function" ? this._flush(function(r) {
2040
- ot(e, r);
2041
- }) : ot(e);
2040
+ ct(e, r);
2041
+ }) : ct(e);
2042
2042
  });
2043
2043
  }
2044
- k.prototype.push = function(t, e) {
2045
- return this._transformState.needTransform = !1, M.prototype.push.call(this, t, e);
2044
+ P.prototype.push = function(t, e) {
2045
+ return this._transformState.needTransform = !1, B.prototype.push.call(this, t, e);
2046
2046
  };
2047
- k.prototype._transform = function(t, e, r) {
2047
+ P.prototype._transform = function(t, e, r) {
2048
2048
  throw new Error("Not implemented");
2049
2049
  };
2050
- k.prototype._write = function(t, e, r) {
2050
+ P.prototype._write = function(t, e, r) {
2051
2051
  var n = this._transformState;
2052
2052
  if (n.writecb = r, n.writechunk = t, n.writeencoding = e, !n.transforming) {
2053
2053
  var i = this._readableState;
2054
2054
  (n.needTransform || i.needReadable || i.length < i.highWaterMark) && this._read(i.highWaterMark);
2055
2055
  }
2056
2056
  };
2057
- k.prototype._read = function(t) {
2057
+ P.prototype._read = function(t) {
2058
2058
  var e = this._transformState;
2059
2059
  e.writechunk !== null && e.writecb && !e.transforming ? (e.transforming = !0, this._transform(e.writechunk, e.writeencoding, e.afterTransform)) : e.needTransform = !0;
2060
2060
  };
2061
- function ot(t, e) {
2061
+ function ct(t, e) {
2062
2062
  if (e) return t.emit("error", e);
2063
2063
  var r = t._writableState, n = t._transformState;
2064
2064
  if (r.length) throw new Error("Calling transform done when ws.length != 0");
2065
2065
  if (n.transforming) throw new Error("Calling transform done when still transforming");
2066
2066
  return t.push(null);
2067
2067
  }
2068
- oe(fe, k);
2069
- function fe(t) {
2070
- if (!(this instanceof fe)) return new fe(t);
2071
- k.call(this, t);
2068
+ fe(ue, P);
2069
+ function ue(t) {
2070
+ if (!(this instanceof ue)) return new ue(t);
2071
+ P.call(this, t);
2072
2072
  }
2073
- fe.prototype._transform = function(t, e, r) {
2073
+ ue.prototype._transform = function(t, e, r) {
2074
2074
  r(null, t);
2075
2075
  };
2076
- oe(V, p);
2077
- V.Readable = E;
2078
- V.Writable = C;
2079
- V.Duplex = M;
2080
- V.Transform = k;
2081
- V.PassThrough = fe;
2082
- V.Stream = V;
2083
- function V() {
2076
+ fe(W, p);
2077
+ W.Readable = E;
2078
+ W.Writable = A;
2079
+ W.Duplex = B;
2080
+ W.Transform = P;
2081
+ W.PassThrough = ue;
2082
+ W.Stream = W;
2083
+ function W() {
2084
2084
  p.call(this);
2085
2085
  }
2086
- V.prototype.pipe = function(t, e) {
2086
+ W.prototype.pipe = function(t, e) {
2087
2087
  var r = this;
2088
- function n(h) {
2089
- t.writable && t.write(h) === !1 && r.pause && r.pause();
2088
+ function n(c) {
2089
+ t.writable && t.write(c) === !1 && r.pause && r.pause();
2090
2090
  }
2091
2091
  r.on("data", n);
2092
2092
  function i() {
2093
2093
  r.readable && r.resume && r.resume();
2094
2094
  }
2095
- t.on("drain", i), !t._isStdio && (!e || e.end !== !1) && (r.on("end", s), r.on("close", f));
2095
+ t.on("drain", i), !t._isStdio && (!e || e.end !== !1) && (r.on("end", s), r.on("close", a));
2096
2096
  var o = !1;
2097
2097
  function s() {
2098
2098
  o || (o = !0, t.end());
2099
2099
  }
2100
- function f() {
2100
+ function a() {
2101
2101
  o || (o = !0, typeof t.destroy == "function" && t.destroy());
2102
2102
  }
2103
- function l(h) {
2103
+ function l(c) {
2104
2104
  if (u(), p.listenerCount(this, "error") === 0)
2105
- throw h;
2105
+ throw c;
2106
2106
  }
2107
2107
  r.on("error", l), t.on("error", l);
2108
2108
  function u() {
2109
- r.removeListener("data", n), t.removeListener("drain", i), r.removeListener("end", s), r.removeListener("close", f), r.removeListener("error", l), t.removeListener("error", l), r.removeListener("end", u), r.removeListener("close", u), t.removeListener("close", u);
2109
+ r.removeListener("data", n), t.removeListener("drain", i), r.removeListener("end", s), r.removeListener("close", a), r.removeListener("error", l), t.removeListener("error", l), r.removeListener("end", u), r.removeListener("close", u), t.removeListener("close", u);
2110
2110
  }
2111
2111
  return r.on("end", u), r.on("close", u), t.on("close", u), t.emit("pipe", r), t;
2112
2112
  };
2113
- const zt = function(t) {
2113
+ const Xt = function(t) {
2114
2114
  return typeof t == "object" && t !== null && !Array.isArray(t);
2115
2115
  };
2116
- class m extends Error {
2116
+ class g extends Error {
2117
2117
  constructor(e, r, n, ...i) {
2118
- Array.isArray(r) && (r = r.join(" ").trim()), super(r), Error.captureStackTrace !== void 0 && Error.captureStackTrace(this, m), this.code = e;
2118
+ Array.isArray(r) && (r = r.join(" ").trim()), super(r), Error.captureStackTrace !== void 0 && Error.captureStackTrace(this, g), this.code = e;
2119
2119
  for (const o of i)
2120
2120
  for (const s in o) {
2121
- const f = o[s];
2122
- this[s] = L(f) ? f.toString(n.encoding) : f == null ? f : JSON.parse(JSON.stringify(f));
2121
+ const a = o[s];
2122
+ this[s] = D(a) ? a.toString(n.encoding) : a == null ? a : JSON.parse(JSON.stringify(a));
2123
2123
  }
2124
2124
  }
2125
2125
  }
2126
- const Vt = function(t) {
2126
+ const Zt = function(t) {
2127
2127
  const e = [];
2128
2128
  for (let r = 0, n = t.length; r < n; r++) {
2129
2129
  const i = t[r];
@@ -2131,16 +2131,16 @@ const Vt = function(t) {
2131
2131
  e[r] = { disabled: !0 };
2132
2132
  else if (typeof i == "string")
2133
2133
  e[r] = { name: i };
2134
- else if (zt(i)) {
2134
+ else if (Xt(i)) {
2135
2135
  if (typeof i.name != "string")
2136
- throw new m("CSV_OPTION_COLUMNS_MISSING_NAME", [
2136
+ throw new g("CSV_OPTION_COLUMNS_MISSING_NAME", [
2137
2137
  "Option columns missing name:",
2138
2138
  `property "name" is required at position ${r}`,
2139
2139
  "when column is an object literal"
2140
2140
  ]);
2141
2141
  e[r] = i;
2142
2142
  } else
2143
- throw new m("CSV_INVALID_COLUMN_DEFINITION", [
2143
+ throw new g("CSV_INVALID_COLUMN_DEFINITION", [
2144
2144
  "Invalid column definition:",
2145
2145
  "expect a string or a literal object,",
2146
2146
  `got ${JSON.stringify(i)} at position ${r}`
@@ -2148,17 +2148,17 @@ const Vt = function(t) {
2148
2148
  }
2149
2149
  return e;
2150
2150
  };
2151
- class st {
2151
+ class ht {
2152
2152
  constructor(e = 100) {
2153
- this.size = e, this.length = 0, this.buf = a.allocUnsafe(e);
2153
+ this.size = e, this.length = 0, this.buf = f.allocUnsafe(e);
2154
2154
  }
2155
2155
  prepend(e) {
2156
- if (L(e)) {
2156
+ if (D(e)) {
2157
2157
  const r = this.length + e.length;
2158
2158
  if (r >= this.size && (this.resize(), r >= this.size))
2159
2159
  throw Error("INVALID_BUFFER_STATE");
2160
2160
  const n = this.buf;
2161
- this.buf = a.allocUnsafe(this.size), e.copy(this.buf, 0), n.copy(this.buf, e.length), this.length += e.length;
2161
+ this.buf = f.allocUnsafe(this.size), e.copy(this.buf, 0), n.copy(this.buf, e.length), this.length += e.length;
2162
2162
  } else {
2163
2163
  const r = this.length++;
2164
2164
  r === this.size && this.resize();
@@ -2171,12 +2171,12 @@ class st {
2171
2171
  r === this.size && this.resize(), this.buf[r] = e;
2172
2172
  }
2173
2173
  clone() {
2174
- return a.from(this.buf.slice(0, this.length));
2174
+ return f.from(this.buf.slice(0, this.length));
2175
2175
  }
2176
2176
  resize() {
2177
2177
  const e = this.length;
2178
2178
  this.size = this.size * 2;
2179
- const r = a.allocUnsafe(this.size);
2179
+ const r = f.allocUnsafe(this.size);
2180
2180
  this.buf.copy(r, 0, 0, e), this.buf = r;
2181
2181
  }
2182
2182
  toString(e) {
@@ -2189,7 +2189,7 @@ class st {
2189
2189
  this.length = 0;
2190
2190
  }
2191
2191
  }
2192
- const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2192
+ const zn = 12, Vn = 13, Jn = 10, Yn = 32, Wn = 9, Hn = function(t) {
2193
2193
  return {
2194
2194
  bomSkipped: !1,
2195
2195
  bufBytesStart: 0,
@@ -2199,10 +2199,10 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2199
2199
  error: void 0,
2200
2200
  enabled: t.from_line === 1,
2201
2201
  escaping: !1,
2202
- escapeIsQuote: L(t.escape) && L(t.quote) && a.compare(t.escape, t.quote) === 0,
2202
+ escapeIsQuote: D(t.escape) && D(t.quote) && f.compare(t.escape, t.quote) === 0,
2203
2203
  // columns can be `false`, `true`, `Array`
2204
2204
  expectedRecordLength: Array.isArray(t.columns) ? t.columns.length : void 0,
2205
- field: new st(20),
2205
+ field: new ht(20),
2206
2206
  firstLineToHeaders: t.cast_first_line_to_header,
2207
2207
  needMoreDataSize: Math.max(
2208
2208
  // Skip if the remaining buffer smaller than comment
@@ -2214,39 +2214,39 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2214
2214
  previousBuf: void 0,
2215
2215
  quoting: !1,
2216
2216
  stop: !1,
2217
- rawBuffer: new st(100),
2217
+ rawBuffer: new ht(100),
2218
2218
  record: [],
2219
2219
  recordHasError: !1,
2220
2220
  record_length: 0,
2221
2221
  recordDelimiterMaxLength: t.record_delimiter.length === 0 ? 0 : Math.max(...t.record_delimiter.map((e) => e.length)),
2222
2222
  trimChars: [
2223
- a.from(" ", t.encoding)[0],
2224
- a.from(" ", t.encoding)[0]
2223
+ f.from(" ", t.encoding)[0],
2224
+ f.from(" ", t.encoding)[0]
2225
2225
  ],
2226
2226
  wasQuoting: !1,
2227
2227
  wasRowDelimiter: !1,
2228
2228
  timchars: [
2229
- a.from(a.from([Nn], "utf8").toString(), t.encoding),
2230
- a.from(a.from([Dn], "utf8").toString(), t.encoding),
2231
- a.from(a.from([Ln], "utf8").toString(), t.encoding),
2232
- a.from(a.from([Fn], "utf8").toString(), t.encoding),
2233
- a.from(a.from([Mn], "utf8").toString(), t.encoding)
2229
+ f.from(f.from([Vn], "utf8").toString(), t.encoding),
2230
+ f.from(f.from([Jn], "utf8").toString(), t.encoding),
2231
+ f.from(f.from([zn], "utf8").toString(), t.encoding),
2232
+ f.from(f.from([Yn], "utf8").toString(), t.encoding),
2233
+ f.from(f.from([Wn], "utf8").toString(), t.encoding)
2234
2234
  ]
2235
2235
  };
2236
- }, Un = function(t) {
2236
+ }, Qn = function(t) {
2237
2237
  return t.replace(/([A-Z])/g, function(e, r) {
2238
2238
  return "_" + r.toLowerCase();
2239
2239
  });
2240
- }, ft = function(t) {
2240
+ }, dt = function(t) {
2241
2241
  const e = {};
2242
2242
  for (const n in t)
2243
- e[Un(n)] = t[n];
2243
+ e[Qn(n)] = t[n];
2244
2244
  if (e.encoding === void 0 || e.encoding === !0)
2245
2245
  e.encoding = "utf8";
2246
2246
  else if (e.encoding === null || e.encoding === !1)
2247
2247
  e.encoding = null;
2248
2248
  else if (typeof e.encoding != "string" && e.encoding !== null)
2249
- throw new m(
2249
+ throw new g(
2250
2250
  "CSV_INVALID_OPTION_ENCODING",
2251
2251
  [
2252
2252
  "Invalid option encoding:",
@@ -2258,7 +2258,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2258
2258
  if (e.bom === void 0 || e.bom === null || e.bom === !1)
2259
2259
  e.bom = !1;
2260
2260
  else if (e.bom !== !0)
2261
- throw new m(
2261
+ throw new g(
2262
2262
  "CSV_INVALID_OPTION_BOM",
2263
2263
  [
2264
2264
  "Invalid option bom:",
@@ -2272,7 +2272,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2272
2272
  else if (typeof e.cast == "function")
2273
2273
  e.cast_function = e.cast, e.cast = !0;
2274
2274
  else if (e.cast !== !0)
2275
- throw new m(
2275
+ throw new g(
2276
2276
  "CSV_INVALID_OPTION_CAST",
2277
2277
  [
2278
2278
  "Invalid option cast:",
@@ -2289,7 +2289,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2289
2289
  return isNaN(i) ? n : new Date(i);
2290
2290
  };
2291
2291
  else if (typeof e.cast_date != "function")
2292
- throw new m(
2292
+ throw new g(
2293
2293
  "CSV_INVALID_OPTION_CAST_DATE",
2294
2294
  [
2295
2295
  "Invalid option cast_date:",
@@ -2303,11 +2303,11 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2303
2303
  else if (typeof e.columns == "function")
2304
2304
  e.cast_first_line_to_header = e.columns, e.columns = !0;
2305
2305
  else if (Array.isArray(e.columns))
2306
- e.columns = Vt(e.columns);
2306
+ e.columns = Zt(e.columns);
2307
2307
  else if (e.columns === void 0 || e.columns === null || e.columns === !1)
2308
2308
  e.columns = !1;
2309
2309
  else
2310
- throw new m(
2310
+ throw new g(
2311
2311
  "CSV_INVALID_OPTION_COLUMNS",
2312
2312
  [
2313
2313
  "Invalid option columns:",
@@ -2320,7 +2320,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2320
2320
  e.group_columns_by_name = !1;
2321
2321
  else {
2322
2322
  if (e.group_columns_by_name !== !0)
2323
- throw new m(
2323
+ throw new g(
2324
2324
  "CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",
2325
2325
  [
2326
2326
  "Invalid option group_columns_by_name:",
@@ -2330,7 +2330,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2330
2330
  e
2331
2331
  );
2332
2332
  if (e.columns === !1)
2333
- throw new m(
2333
+ throw new g(
2334
2334
  "CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",
2335
2335
  [
2336
2336
  "Invalid option group_columns_by_name:",
@@ -2341,8 +2341,8 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2341
2341
  }
2342
2342
  if (e.comment === void 0 || e.comment === null || e.comment === !1 || e.comment === "")
2343
2343
  e.comment = null;
2344
- else if (typeof e.comment == "string" && (e.comment = a.from(e.comment, e.encoding)), !L(e.comment))
2345
- throw new m(
2344
+ else if (typeof e.comment == "string" && (e.comment = f.from(e.comment, e.encoding)), !D(e.comment))
2345
+ throw new g(
2346
2346
  "CSV_INVALID_OPTION_COMMENT",
2347
2347
  [
2348
2348
  "Invalid option comment:",
@@ -2354,7 +2354,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2354
2354
  if (e.comment_no_infix === void 0 || e.comment_no_infix === null || e.comment_no_infix === !1)
2355
2355
  e.comment_no_infix = !1;
2356
2356
  else if (e.comment_no_infix !== !0)
2357
- throw new m(
2357
+ throw new g(
2358
2358
  "CSV_INVALID_OPTION_COMMENT",
2359
2359
  [
2360
2360
  "Invalid option comment_no_infix:",
@@ -2365,7 +2365,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2365
2365
  );
2366
2366
  const r = JSON.stringify(e.delimiter);
2367
2367
  if (Array.isArray(e.delimiter) || (e.delimiter = [e.delimiter]), e.delimiter.length === 0)
2368
- throw new m(
2368
+ throw new g(
2369
2369
  "CSV_INVALID_OPTION_DELIMITER",
2370
2370
  [
2371
2371
  "Invalid option delimiter:",
@@ -2376,9 +2376,9 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2376
2376
  );
2377
2377
  if (e.delimiter = e.delimiter.map(function(n) {
2378
2378
  if (n == null || n === !1)
2379
- return a.from(",", e.encoding);
2380
- if (typeof n == "string" && (n = a.from(n, e.encoding)), !L(n) || n.length === 0)
2381
- throw new m(
2379
+ return f.from(",", e.encoding);
2380
+ if (typeof n == "string" && (n = f.from(n, e.encoding)), !D(n) || n.length === 0)
2381
+ throw new g(
2382
2382
  "CSV_INVALID_OPTION_DELIMITER",
2383
2383
  [
2384
2384
  "Invalid option delimiter:",
@@ -2388,7 +2388,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2388
2388
  e
2389
2389
  );
2390
2390
  return n;
2391
- }), e.escape === void 0 || e.escape === !0 ? e.escape = a.from('"', e.encoding) : typeof e.escape == "string" ? e.escape = a.from(e.escape, e.encoding) : (e.escape === null || e.escape === !1) && (e.escape = null), e.escape !== null && !L(e.escape))
2391
+ }), e.escape === void 0 || e.escape === !0 ? e.escape = f.from('"', e.encoding) : typeof e.escape == "string" ? e.escape = f.from(e.escape, e.encoding) : (e.escape === null || e.escape === !1) && (e.escape = null), e.escape !== null && !D(e.escape))
2392
2392
  throw new Error(
2393
2393
  `Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(e.escape)}`
2394
2394
  );
@@ -2419,7 +2419,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2419
2419
  else if (typeof e.ignore_last_delimiters == "number")
2420
2420
  e.ignore_last_delimiters = Math.floor(e.ignore_last_delimiters), e.ignore_last_delimiters === 0 && (e.ignore_last_delimiters = !1);
2421
2421
  else if (typeof e.ignore_last_delimiters != "boolean")
2422
- throw new m(
2422
+ throw new g(
2423
2423
  "CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS",
2424
2424
  [
2425
2425
  "Invalid option `ignore_last_delimiters`:",
@@ -2429,7 +2429,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2429
2429
  e
2430
2430
  );
2431
2431
  if (e.ignore_last_delimiters === !0 && e.columns === !1)
2432
- throw new m(
2432
+ throw new g(
2433
2433
  "CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS",
2434
2434
  [
2435
2435
  "The option `ignore_last_delimiters`",
@@ -2453,7 +2453,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2453
2453
  );
2454
2454
  if (e.objname === void 0 || e.objname === null || e.objname === !1)
2455
2455
  e.objname = void 0;
2456
- else if (L(e.objname)) {
2456
+ else if (D(e.objname)) {
2457
2457
  if (e.objname.length === 0)
2458
2458
  throw new Error("Invalid Option: objname must be a non empty buffer");
2459
2459
  e.encoding === null || (e.objname = e.objname.toString(e.encoding));
@@ -2477,7 +2477,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2477
2477
  if (e.on_record === void 0 || e.on_record === null)
2478
2478
  e.on_record = void 0;
2479
2479
  else if (typeof e.on_record != "function")
2480
- throw new m(
2480
+ throw new g(
2481
2481
  "CSV_INVALID_OPTION_ON_RECORD",
2482
2482
  [
2483
2483
  "Invalid option `on_record`:",
@@ -2492,7 +2492,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2492
2492
  );
2493
2493
  if (e.quote === null || e.quote === !1 || e.quote === "")
2494
2494
  e.quote = null;
2495
- else if (e.quote === void 0 || e.quote === !0 ? e.quote = a.from('"', e.encoding) : typeof e.quote == "string" && (e.quote = a.from(e.quote, e.encoding)), !L(e.quote))
2495
+ else if (e.quote === void 0 || e.quote === !0 ? e.quote = f.from('"', e.encoding) : typeof e.quote == "string" && (e.quote = f.from(e.quote, e.encoding)), !D(e.quote))
2496
2496
  throw new Error(
2497
2497
  `Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(e.quote)}`
2498
2498
  );
@@ -2504,9 +2504,9 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2504
2504
  );
2505
2505
  if (e.record_delimiter === void 0)
2506
2506
  e.record_delimiter = [];
2507
- else if (typeof e.record_delimiter == "string" || L(e.record_delimiter)) {
2507
+ else if (typeof e.record_delimiter == "string" || D(e.record_delimiter)) {
2508
2508
  if (e.record_delimiter.length === 0)
2509
- throw new m(
2509
+ throw new g(
2510
2510
  "CSV_INVALID_OPTION_RECORD_DELIMITER",
2511
2511
  [
2512
2512
  "Invalid option `record_delimiter`:",
@@ -2517,7 +2517,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2517
2517
  );
2518
2518
  e.record_delimiter = [e.record_delimiter];
2519
2519
  } else if (!Array.isArray(e.record_delimiter))
2520
- throw new m(
2520
+ throw new g(
2521
2521
  "CSV_INVALID_OPTION_RECORD_DELIMITER",
2522
2522
  [
2523
2523
  "Invalid option `record_delimiter`:",
@@ -2527,8 +2527,8 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2527
2527
  e
2528
2528
  );
2529
2529
  if (e.record_delimiter = e.record_delimiter.map(function(n, i) {
2530
- if (typeof n != "string" && !L(n))
2531
- throw new m(
2530
+ if (typeof n != "string" && !D(n))
2531
+ throw new g(
2532
2532
  "CSV_INVALID_OPTION_RECORD_DELIMITER",
2533
2533
  [
2534
2534
  "Invalid option `record_delimiter`:",
@@ -2539,7 +2539,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2539
2539
  e
2540
2540
  );
2541
2541
  if (n.length === 0)
2542
- throw new m(
2542
+ throw new g(
2543
2543
  "CSV_INVALID_OPTION_RECORD_DELIMITER",
2544
2544
  [
2545
2545
  "Invalid option `record_delimiter`:",
@@ -2549,7 +2549,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2549
2549
  ],
2550
2550
  e
2551
2551
  );
2552
- return typeof n == "string" && (n = a.from(n, e.encoding)), n;
2552
+ return typeof n == "string" && (n = f.from(n, e.encoding)), n;
2553
2553
  }), typeof e.relax_column_count != "boolean") if (e.relax_column_count === void 0 || e.relax_column_count === null)
2554
2554
  e.relax_column_count = !1;
2555
2555
  else
@@ -2635,21 +2635,21 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2635
2635
  `Invalid Option: to_line must be an integer, got ${JSON.stringify(t.to_line)}`
2636
2636
  );
2637
2637
  return e;
2638
- }, at = function(t) {
2638
+ }, pt = function(t) {
2639
2639
  return t.every(
2640
2640
  (e) => e == null || e.toString && e.toString().trim() === ""
2641
2641
  );
2642
- }, kn = 13, Pn = 10, re = {
2642
+ }, Gn = 13, Xn = 10, oe = {
2643
2643
  // Note, the following are equals:
2644
2644
  // Buffer.from("\ufeff")
2645
2645
  // Buffer.from([239, 187, 191])
2646
2646
  // Buffer.from('EFBBBF', 'hex')
2647
- utf8: a.from([239, 187, 191]),
2647
+ utf8: f.from([239, 187, 191]),
2648
2648
  // Note, the following are equals:
2649
2649
  // Buffer.from "\ufeff", 'utf16le
2650
2650
  // Buffer.from([255, 254])
2651
- utf16le: a.from([255, 254])
2652
- }, jn = function(t = {}) {
2651
+ utf16le: f.from([255, 254])
2652
+ }, Zn = function(t = {}) {
2653
2653
  const e = {
2654
2654
  bytes: 0,
2655
2655
  comment_lines: 0,
@@ -2657,59 +2657,59 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2657
2657
  invalid_field_length: 0,
2658
2658
  lines: 1,
2659
2659
  records: 0
2660
- }, r = ft(t);
2660
+ }, r = dt(t);
2661
2661
  return {
2662
2662
  info: e,
2663
2663
  original_options: t,
2664
2664
  options: r,
2665
- state: Bn(r),
2665
+ state: Hn(r),
2666
2666
  __needMoreData: function(n, i, o) {
2667
2667
  if (o) return !1;
2668
- const { encoding: s, escape: f, quote: l } = this.options, { quoting: u, needMoreDataSize: h, recordDelimiterMaxLength: c } = this.state, g = i - n - 1, b = Math.max(
2669
- h,
2668
+ const { encoding: s, escape: a, quote: l } = this.options, { quoting: u, needMoreDataSize: c, recordDelimiterMaxLength: h } = this.state, m = i - n - 1, b = Math.max(
2669
+ c,
2670
2670
  // Skip if the remaining buffer smaller than record delimiter
2671
2671
  // If "record_delimiter" is yet to be discovered:
2672
2672
  // 1. It is equals to `[]` and "recordDelimiterMaxLength" equals `0`
2673
2673
  // 2. We set the length to windows line ending in the current encoding
2674
2674
  // Note, that encoding is known from user or bom discovery at that point
2675
2675
  // recordDelimiterMaxLength,
2676
- c === 0 ? a.from(`\r
2677
- `, s).length : c,
2676
+ h === 0 ? f.from(`\r
2677
+ `, s).length : h,
2678
2678
  // Skip if remaining buffer can be an escaped quote
2679
- u ? (f === null ? 0 : f.length) + l.length : 0,
2679
+ u ? (a === null ? 0 : a.length) + l.length : 0,
2680
2680
  // Skip if remaining buffer can be record delimiter following the closing quote
2681
- u ? l.length + c : 0
2681
+ u ? l.length + h : 0
2682
2682
  );
2683
- return g < b;
2683
+ return m < b;
2684
2684
  },
2685
2685
  // Central parser implementation
2686
2686
  parse: function(n, i, o, s) {
2687
2687
  const {
2688
- bom: f,
2688
+ bom: a,
2689
2689
  comment_no_infix: l,
2690
2690
  encoding: u,
2691
- from_line: h,
2692
- ltrim: c,
2693
- max_record_size: g,
2691
+ from_line: c,
2692
+ ltrim: h,
2693
+ max_record_size: m,
2694
2694
  raw: b,
2695
- relax_quotes: A,
2695
+ relax_quotes: T,
2696
2696
  rtrim: x,
2697
- skip_empty_lines: D,
2697
+ skip_empty_lines: F,
2698
2698
  to: S,
2699
2699
  to_line: v
2700
2700
  } = this.options;
2701
- let { comment: _, escape: T, quote: U, record_delimiter: Re } = this.options;
2702
- const { bomSkipped: Jt, previousBuf: he, rawBuffer: Yt, escapeIsQuote: Wt } = this.state;
2701
+ let { comment: _, escape: L, quote: U, record_delimiter: Ae } = this.options;
2702
+ const { bomSkipped: nr, previousBuf: pe, rawBuffer: ir, escapeIsQuote: or } = this.state;
2703
2703
  let w;
2704
- if (he === void 0)
2704
+ if (pe === void 0)
2705
2705
  if (n === void 0) {
2706
2706
  s();
2707
2707
  return;
2708
2708
  } else
2709
2709
  w = n;
2710
- else he !== void 0 && n === void 0 ? w = he : w = a.concat([he, n]);
2711
- if (Jt === !1)
2712
- if (f === !1)
2710
+ else pe !== void 0 && n === void 0 ? w = pe : w = f.concat([pe, n]);
2711
+ if (nr === !1)
2712
+ if (a === !1)
2713
2713
  this.state.bomSkipped = !0;
2714
2714
  else if (w.length < 3) {
2715
2715
  if (i === !1) {
@@ -2717,65 +2717,65 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2717
2717
  return;
2718
2718
  }
2719
2719
  } else {
2720
- for (const R in re)
2721
- if (re[R].compare(w, 0, re[R].length) === 0) {
2722
- const J = re[R].length;
2723
- this.state.bufBytesStart += J, w = w.slice(J);
2724
- const ce = ft({
2720
+ for (const R in oe)
2721
+ if (oe[R].compare(w, 0, oe[R].length) === 0) {
2722
+ const H = oe[R].length;
2723
+ this.state.bufBytesStart += H, w = w.slice(H);
2724
+ const ge = dt({
2725
2725
  ...this.original_options,
2726
2726
  encoding: R
2727
2727
  });
2728
- for (const I in ce)
2729
- this.options[I] = ce[I];
2730
- ({ comment: _, escape: T, quote: U } = this.options);
2728
+ for (const C in ge)
2729
+ this.options[C] = ge[C];
2730
+ ({ comment: _, escape: L, quote: U } = this.options);
2731
2731
  break;
2732
2732
  }
2733
2733
  this.state.bomSkipped = !0;
2734
2734
  }
2735
- const Ie = w.length;
2735
+ const Te = w.length;
2736
2736
  let d;
2737
- for (d = 0; d < Ie && !this.__needMoreData(d, Ie, i); d++) {
2737
+ for (d = 0; d < Te && !this.__needMoreData(d, Te, i); d++) {
2738
2738
  if (this.state.wasRowDelimiter === !0 && (this.info.lines++, this.state.wasRowDelimiter = !1), v !== -1 && this.info.lines > v) {
2739
2739
  this.state.stop = !0, s();
2740
2740
  return;
2741
2741
  }
2742
- this.state.quoting === !1 && Re.length === 0 && this.__autoDiscoverRecordDelimiter(
2742
+ this.state.quoting === !1 && Ae.length === 0 && this.__autoDiscoverRecordDelimiter(
2743
2743
  w,
2744
2744
  d
2745
- ) && (Re = this.options.record_delimiter);
2745
+ ) && (Ae = this.options.record_delimiter);
2746
2746
  const R = w[d];
2747
- if (b === !0 && Yt.append(R), (R === kn || R === Pn) && this.state.wasRowDelimiter === !1 && (this.state.wasRowDelimiter = !0), this.state.escaping === !0)
2747
+ if (b === !0 && ir.append(R), (R === Gn || R === Xn) && this.state.wasRowDelimiter === !1 && (this.state.wasRowDelimiter = !0), this.state.escaping === !0)
2748
2748
  this.state.escaping = !1;
2749
2749
  else {
2750
- if (T !== null && this.state.quoting === !0 && this.__isEscape(w, d, R) && d + T.length < Ie)
2751
- if (Wt) {
2752
- if (this.__isQuote(w, d + T.length)) {
2753
- this.state.escaping = !0, d += T.length - 1;
2750
+ if (L !== null && this.state.quoting === !0 && this.__isEscape(w, d, R) && d + L.length < Te)
2751
+ if (or) {
2752
+ if (this.__isQuote(w, d + L.length)) {
2753
+ this.state.escaping = !0, d += L.length - 1;
2754
2754
  continue;
2755
2755
  }
2756
2756
  } else {
2757
- this.state.escaping = !0, d += T.length - 1;
2757
+ this.state.escaping = !0, d += L.length - 1;
2758
2758
  continue;
2759
2759
  }
2760
2760
  if (this.state.commenting === !1 && this.__isQuote(w, d))
2761
2761
  if (this.state.quoting === !0) {
2762
- const I = w[d + U.length], Z = x && this.__isCharTrimable(w, d + U.length), $ = _ !== null && this.__compareBytes(_, w, d + U.length, I), X = this.__isDelimiter(
2762
+ const C = w[d + U.length], ee = x && this.__isCharTrimable(w, d + U.length), z = _ !== null && this.__compareBytes(_, w, d + U.length, C), te = this.__isDelimiter(
2763
2763
  w,
2764
2764
  d + U.length,
2765
- I
2766
- ), de = Re.length === 0 ? this.__autoDiscoverRecordDelimiter(w, d + U.length) : this.__isRecordDelimiter(I, w, d + U.length);
2767
- if (T !== null && this.__isEscape(w, d, R) && this.__isQuote(w, d + T.length))
2768
- d += T.length - 1;
2769
- else if (!I || X || de || $ || Z) {
2765
+ C
2766
+ ), me = Ae.length === 0 ? this.__autoDiscoverRecordDelimiter(w, d + U.length) : this.__isRecordDelimiter(C, w, d + U.length);
2767
+ if (L !== null && this.__isEscape(w, d, R) && this.__isQuote(w, d + L.length))
2768
+ d += L.length - 1;
2769
+ else if (!C || te || me || z || ee) {
2770
2770
  this.state.quoting = !1, this.state.wasQuoting = !0, d += U.length - 1;
2771
2771
  continue;
2772
- } else if (A === !1) {
2773
- const Qe = this.__error(
2774
- new m(
2772
+ } else if (T === !1) {
2773
+ const et = this.__error(
2774
+ new g(
2775
2775
  "CSV_INVALID_CLOSING_QUOTE",
2776
2776
  [
2777
2777
  "Invalid Closing Quote:",
2778
- `got "${String.fromCharCode(I)}"`,
2778
+ `got "${String.fromCharCode(C)}"`,
2779
2779
  `at line ${this.info.lines}`,
2780
2780
  "instead of delimiter, record delimiter, trimable character",
2781
2781
  "(if activated) or comment"
@@ -2784,64 +2784,64 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2784
2784
  this.__infoField()
2785
2785
  )
2786
2786
  );
2787
- if (Qe !== void 0) return Qe;
2787
+ if (et !== void 0) return et;
2788
2788
  } else
2789
2789
  this.state.quoting = !1, this.state.wasQuoting = !0, this.state.field.prepend(U), d += U.length - 1;
2790
2790
  } else if (this.state.field.length !== 0) {
2791
- if (A === !1) {
2792
- const I = this.__infoField(), Z = Object.keys(re).map(
2793
- (X) => re[X].equals(this.state.field.toString()) ? X : !1
2794
- ).filter(Boolean)[0], $ = this.__error(
2795
- new m(
2791
+ if (T === !1) {
2792
+ const C = this.__infoField(), ee = Object.keys(oe).map(
2793
+ (te) => oe[te].equals(this.state.field.toString()) ? te : !1
2794
+ ).filter(Boolean)[0], z = this.__error(
2795
+ new g(
2796
2796
  "INVALID_OPENING_QUOTE",
2797
2797
  [
2798
2798
  "Invalid Opening Quote:",
2799
- `a quote is found on field ${JSON.stringify(I.column)} at line ${I.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,
2800
- Z ? `(${Z} bom)` : void 0
2799
+ `a quote is found on field ${JSON.stringify(C.column)} at line ${C.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,
2800
+ ee ? `(${ee} bom)` : void 0
2801
2801
  ],
2802
2802
  this.options,
2803
- I,
2803
+ C,
2804
2804
  {
2805
2805
  field: this.state.field
2806
2806
  }
2807
2807
  )
2808
2808
  );
2809
- if ($ !== void 0) return $;
2809
+ if (z !== void 0) return z;
2810
2810
  }
2811
2811
  } else {
2812
2812
  this.state.quoting = !0, d += U.length - 1;
2813
2813
  continue;
2814
2814
  }
2815
2815
  if (this.state.quoting === !1) {
2816
- const I = this.__isRecordDelimiter(
2816
+ const C = this.__isRecordDelimiter(
2817
2817
  R,
2818
2818
  w,
2819
2819
  d
2820
2820
  );
2821
- if (I !== 0) {
2821
+ if (C !== 0) {
2822
2822
  if (this.state.commenting && this.state.wasQuoting === !1 && this.state.record.length === 0 && this.state.field.length === 0)
2823
2823
  this.info.comment_lines++;
2824
2824
  else {
2825
- if (this.state.enabled === !1 && this.info.lines + (this.state.wasRowDelimiter === !0 ? 1 : 0) >= h) {
2826
- this.state.enabled = !0, this.__resetField(), this.__resetRecord(), d += I - 1;
2825
+ if (this.state.enabled === !1 && this.info.lines + (this.state.wasRowDelimiter === !0 ? 1 : 0) >= c) {
2826
+ this.state.enabled = !0, this.__resetField(), this.__resetRecord(), d += C - 1;
2827
2827
  continue;
2828
2828
  }
2829
- if (D === !0 && this.state.wasQuoting === !1 && this.state.record.length === 0 && this.state.field.length === 0) {
2830
- this.info.empty_lines++, d += I - 1;
2829
+ if (F === !0 && this.state.wasQuoting === !1 && this.state.record.length === 0 && this.state.field.length === 0) {
2830
+ this.info.empty_lines++, d += C - 1;
2831
2831
  continue;
2832
2832
  }
2833
2833
  this.info.bytes = this.state.bufBytesStart + d;
2834
- const X = this.__onField();
2835
- if (X !== void 0) return X;
2836
- this.info.bytes = this.state.bufBytesStart + d + I;
2837
- const de = this.__onRecord(o);
2838
- if (de !== void 0) return de;
2834
+ const te = this.__onField();
2835
+ if (te !== void 0) return te;
2836
+ this.info.bytes = this.state.bufBytesStart + d + C;
2837
+ const me = this.__onRecord(o);
2838
+ if (me !== void 0) return me;
2839
2839
  if (S !== -1 && this.info.records >= S) {
2840
2840
  this.state.stop = !0, s();
2841
2841
  return;
2842
2842
  }
2843
2843
  }
2844
- this.state.commenting = !1, d += I - 1;
2844
+ this.state.commenting = !1, d += C - 1;
2845
2845
  continue;
2846
2846
  }
2847
2847
  if (this.state.commenting)
@@ -2850,37 +2850,37 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2850
2850
  this.state.commenting = !0;
2851
2851
  continue;
2852
2852
  }
2853
- const Z = this.__isDelimiter(w, d, R);
2854
- if (Z !== 0) {
2853
+ const ee = this.__isDelimiter(w, d, R);
2854
+ if (ee !== 0) {
2855
2855
  this.info.bytes = this.state.bufBytesStart + d;
2856
- const $ = this.__onField();
2857
- if ($ !== void 0) return $;
2858
- d += Z - 1;
2856
+ const z = this.__onField();
2857
+ if (z !== void 0) return z;
2858
+ d += ee - 1;
2859
2859
  continue;
2860
2860
  }
2861
2861
  }
2862
2862
  }
2863
- if (this.state.commenting === !1 && g !== 0 && this.state.record_length + this.state.field.length > g)
2863
+ if (this.state.commenting === !1 && m !== 0 && this.state.record_length + this.state.field.length > m)
2864
2864
  return this.__error(
2865
- new m(
2865
+ new g(
2866
2866
  "CSV_MAX_RECORD_SIZE",
2867
2867
  [
2868
2868
  "Max Record Size:",
2869
2869
  "record exceed the maximum number of tolerated bytes",
2870
- `of ${g}`,
2870
+ `of ${m}`,
2871
2871
  `at line ${this.info.lines}`
2872
2872
  ],
2873
2873
  this.options,
2874
2874
  this.__infoField()
2875
2875
  )
2876
2876
  );
2877
- const J = c === !1 || this.state.quoting === !0 || this.state.field.length !== 0 || !this.__isCharTrimable(w, d), ce = x === !1 || this.state.wasQuoting === !1;
2878
- if (J === !0 && ce === !0)
2877
+ const H = h === !1 || this.state.quoting === !0 || this.state.field.length !== 0 || !this.__isCharTrimable(w, d), ge = x === !1 || this.state.wasQuoting === !1;
2878
+ if (H === !0 && ge === !0)
2879
2879
  this.state.field.append(R);
2880
2880
  else {
2881
2881
  if (x === !0 && !this.__isCharTrimable(w, d))
2882
2882
  return this.__error(
2883
- new m(
2883
+ new g(
2884
2884
  "CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",
2885
2885
  [
2886
2886
  "Invalid Closing Quote:",
@@ -2891,14 +2891,14 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2891
2891
  this.__infoField()
2892
2892
  )
2893
2893
  );
2894
- J === !1 && (d += this.__isCharTrimable(w, d) - 1);
2894
+ H === !1 && (d += this.__isCharTrimable(w, d) - 1);
2895
2895
  continue;
2896
2896
  }
2897
2897
  }
2898
2898
  if (i === !0)
2899
2899
  if (this.state.quoting === !0) {
2900
2900
  const R = this.__error(
2901
- new m(
2901
+ new g(
2902
2902
  "CSV_QUOTE_NOT_CLOSED",
2903
2903
  [
2904
2904
  "Quote Not Closed:",
@@ -2913,8 +2913,8 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2913
2913
  this.info.bytes = this.state.bufBytesStart + d;
2914
2914
  const R = this.__onField();
2915
2915
  if (R !== void 0) return R;
2916
- const J = this.__onRecord(o);
2917
- if (J !== void 0) return J;
2916
+ const H = this.__onRecord(o);
2917
+ if (H !== void 0) return H;
2918
2918
  } else this.state.wasRowDelimiter === !0 ? this.info.empty_lines++ : this.state.commenting === !0 && this.info.comment_lines++;
2919
2919
  else
2920
2920
  this.state.bufBytesStart += d, this.state.previousBuf = w.slice(d);
@@ -2925,44 +2925,44 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2925
2925
  columns: i,
2926
2926
  group_columns_by_name: o,
2927
2927
  encoding: s,
2928
- info: f,
2928
+ info: a,
2929
2929
  from: l,
2930
2930
  relax_column_count: u,
2931
- relax_column_count_less: h,
2932
- relax_column_count_more: c,
2933
- raw: g,
2931
+ relax_column_count_less: c,
2932
+ relax_column_count_more: h,
2933
+ raw: m,
2934
2934
  skip_records_with_empty_values: b
2935
- } = this.options, { enabled: A, record: x } = this.state;
2936
- if (A === !1)
2935
+ } = this.options, { enabled: T, record: x } = this.state;
2936
+ if (T === !1)
2937
2937
  return this.__resetRecord();
2938
- const D = x.length;
2938
+ const F = x.length;
2939
2939
  if (i === !0) {
2940
- if (b === !0 && at(x)) {
2940
+ if (b === !0 && pt(x)) {
2941
2941
  this.__resetRecord();
2942
2942
  return;
2943
2943
  }
2944
2944
  return this.__firstLineToColumns(x);
2945
2945
  }
2946
- if (i === !1 && this.info.records === 0 && (this.state.expectedRecordLength = D), D !== this.state.expectedRecordLength) {
2947
- const S = i === !1 ? new m(
2946
+ if (i === !1 && this.info.records === 0 && (this.state.expectedRecordLength = F), F !== this.state.expectedRecordLength) {
2947
+ const S = i === !1 ? new g(
2948
2948
  "CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",
2949
2949
  [
2950
2950
  "Invalid Record Length:",
2951
2951
  `expect ${this.state.expectedRecordLength},`,
2952
- `got ${D} on line ${this.info.lines}`
2952
+ `got ${F} on line ${this.info.lines}`
2953
2953
  ],
2954
2954
  this.options,
2955
2955
  this.__infoField(),
2956
2956
  {
2957
2957
  record: x
2958
2958
  }
2959
- ) : new m(
2959
+ ) : new g(
2960
2960
  "CSV_RECORD_INCONSISTENT_COLUMNS",
2961
2961
  [
2962
2962
  "Invalid Record Length:",
2963
2963
  `columns length is ${i.length},`,
2964
2964
  // rename columns
2965
- `got ${D} on line ${this.info.lines}`
2965
+ `got ${F} on line ${this.info.lines}`
2966
2966
  ],
2967
2967
  this.options,
2968
2968
  this.__infoField(),
@@ -2970,14 +2970,14 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2970
2970
  record: x
2971
2971
  }
2972
2972
  );
2973
- if (u === !0 || h === !0 && D < this.state.expectedRecordLength || c === !0 && D > this.state.expectedRecordLength)
2973
+ if (u === !0 || c === !0 && F < this.state.expectedRecordLength || h === !0 && F > this.state.expectedRecordLength)
2974
2974
  this.info.invalid_field_length++, this.state.error = S;
2975
2975
  else {
2976
2976
  const v = this.__error(S);
2977
2977
  if (v) return v;
2978
2978
  }
2979
2979
  }
2980
- if (b === !0 && at(x)) {
2980
+ if (b === !0 && pt(x)) {
2981
2981
  this.__resetRecord();
2982
2982
  return;
2983
2983
  }
@@ -2989,19 +2989,19 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
2989
2989
  const { objname: S } = this.options;
2990
2990
  if (i !== !1) {
2991
2991
  const v = {};
2992
- for (let _ = 0, T = x.length; _ < T; _++)
2992
+ for (let _ = 0, L = x.length; _ < L; _++)
2993
2993
  i[_] === void 0 || i[_].disabled || (o === !0 && v[i[_].name] !== void 0 ? Array.isArray(v[i[_].name]) ? v[i[_].name] = v[i[_].name].concat(x[_]) : v[i[_].name] = [v[i[_].name], x[_]] : v[i[_].name] = x[_]);
2994
- if (g === !0 || f === !0) {
2994
+ if (m === !0 || a === !0) {
2995
2995
  const _ = Object.assign(
2996
2996
  { record: v },
2997
- g === !0 ? { raw: this.state.rawBuffer.toString(s) } : {},
2998
- f === !0 ? { info: this.__infoRecord() } : {}
2999
- ), T = this.__push(
2997
+ m === !0 ? { raw: this.state.rawBuffer.toString(s) } : {},
2998
+ a === !0 ? { info: this.__infoRecord() } : {}
2999
+ ), L = this.__push(
3000
3000
  S === void 0 ? _ : [v[S], _],
3001
3001
  n
3002
3002
  );
3003
- if (T)
3004
- return T;
3003
+ if (L)
3004
+ return L;
3005
3005
  } else {
3006
3006
  const _ = this.__push(
3007
3007
  S === void 0 ? v : [v[S], v],
@@ -3010,11 +3010,11 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
3010
3010
  if (_)
3011
3011
  return _;
3012
3012
  }
3013
- } else if (g === !0 || f === !0) {
3013
+ } else if (m === !0 || a === !0) {
3014
3014
  const v = Object.assign(
3015
3015
  { record: x },
3016
- g === !0 ? { raw: this.state.rawBuffer.toString(s) } : {},
3017
- f === !0 ? { info: this.__infoRecord() } : {}
3016
+ m === !0 ? { raw: this.state.rawBuffer.toString(s) } : {},
3017
+ a === !0 ? { info: this.__infoRecord() } : {}
3018
3018
  ), _ = this.__push(
3019
3019
  S === void 0 ? v : [x[S], v],
3020
3020
  n
@@ -3038,7 +3038,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
3038
3038
  const o = i === void 0 ? n : i.call(null, n);
3039
3039
  if (!Array.isArray(o))
3040
3040
  return this.__error(
3041
- new m(
3041
+ new g(
3042
3042
  "CSV_INVALID_COLUMN_MAPPING",
3043
3043
  [
3044
3044
  "Invalid Column Mapping:",
@@ -3052,7 +3052,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
3052
3052
  }
3053
3053
  )
3054
3054
  );
3055
- const s = Vt(o);
3055
+ const s = Zt(o);
3056
3056
  this.state.expectedRecordLength = s.length, this.options.columns = s, this.__resetRecord();
3057
3057
  return;
3058
3058
  } catch (o) {
@@ -3063,14 +3063,14 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
3063
3063
  this.options.raw === !0 && this.state.rawBuffer.reset(), this.state.error = void 0, this.state.record = [], this.state.record_length = 0;
3064
3064
  },
3065
3065
  __onField: function() {
3066
- const { cast: n, encoding: i, rtrim: o, max_record_size: s } = this.options, { enabled: f, wasQuoting: l } = this.state;
3067
- if (f === !1)
3066
+ const { cast: n, encoding: i, rtrim: o, max_record_size: s } = this.options, { enabled: a, wasQuoting: l } = this.state;
3067
+ if (a === !1)
3068
3068
  return this.__resetField();
3069
3069
  let u = this.state.field.toString(i);
3070
3070
  if (o === !0 && l === !1 && (u = u.trimRight()), n === !0) {
3071
- const [h, c] = this.__cast(u);
3072
- if (h !== void 0) return h;
3073
- u = c;
3071
+ const [c, h] = this.__cast(u);
3072
+ if (c !== void 0) return c;
3073
+ u = h;
3074
3074
  }
3075
3075
  this.state.record.push(u), s !== 0 && typeof u == "string" && (this.state.record_length += u.length), this.__resetField();
3076
3076
  },
@@ -3083,8 +3083,8 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
3083
3083
  const s = this.__infoRecord();
3084
3084
  try {
3085
3085
  n = o.call(null, n, s);
3086
- } catch (f) {
3087
- return f;
3086
+ } catch (a) {
3087
+ return a;
3088
3088
  }
3089
3089
  if (n == null)
3090
3090
  return;
@@ -3098,28 +3098,28 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
3098
3098
  return [void 0, void 0];
3099
3099
  if (this.state.castField !== null)
3100
3100
  try {
3101
- const f = this.__infoField();
3102
- return [void 0, this.state.castField.call(null, n, f)];
3103
- } catch (f) {
3104
- return [f];
3101
+ const a = this.__infoField();
3102
+ return [void 0, this.state.castField.call(null, n, a)];
3103
+ } catch (a) {
3104
+ return [a];
3105
3105
  }
3106
3106
  if (this.__isFloat(n))
3107
3107
  return [void 0, parseFloat(n)];
3108
3108
  if (this.options.cast_date !== !1) {
3109
- const f = this.__infoField();
3110
- return [void 0, this.options.cast_date.call(null, n, f)];
3109
+ const a = this.__infoField();
3110
+ return [void 0, this.options.cast_date.call(null, n, a)];
3111
3111
  }
3112
3112
  return [void 0, n];
3113
3113
  },
3114
3114
  // Helper to test if a character is a space or a line delimiter
3115
3115
  __isCharTrimable: function(n, i) {
3116
- return ((s, f) => {
3116
+ return ((s, a) => {
3117
3117
  const { timchars: l } = this.state;
3118
3118
  e: for (let u = 0; u < l.length; u++) {
3119
- const h = l[u];
3120
- for (let c = 0; c < h.length; c++)
3121
- if (h[c] !== s[f + c]) continue e;
3122
- return h.length;
3119
+ const c = l[u];
3120
+ for (let h = 0; h < c.length; h++)
3121
+ if (c[h] !== s[a + h]) continue e;
3122
+ return c.length;
3123
3123
  }
3124
3124
  return 0;
3125
3125
  })(n, i);
@@ -3135,34 +3135,34 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
3135
3135
  },
3136
3136
  __compareBytes: function(n, i, o, s) {
3137
3137
  if (n[0] !== s) return 0;
3138
- const f = n.length;
3139
- for (let l = 1; l < f; l++)
3138
+ const a = n.length;
3139
+ for (let l = 1; l < a; l++)
3140
3140
  if (n[l] !== i[o + l]) return 0;
3141
- return f;
3141
+ return a;
3142
3142
  },
3143
3143
  __isDelimiter: function(n, i, o) {
3144
- const { delimiter: s, ignore_last_delimiters: f } = this.options;
3145
- if (f === !0 && this.state.record.length === this.options.columns.length - 1)
3144
+ const { delimiter: s, ignore_last_delimiters: a } = this.options;
3145
+ if (a === !0 && this.state.record.length === this.options.columns.length - 1)
3146
3146
  return 0;
3147
- if (f !== !1 && typeof f == "number" && this.state.record.length === f - 1)
3147
+ if (a !== !1 && typeof a == "number" && this.state.record.length === a - 1)
3148
3148
  return 0;
3149
3149
  e: for (let l = 0; l < s.length; l++) {
3150
3150
  const u = s[l];
3151
3151
  if (u[0] === o) {
3152
- for (let h = 1; h < u.length; h++)
3153
- if (u[h] !== n[i + h]) continue e;
3152
+ for (let c = 1; c < u.length; c++)
3153
+ if (u[c] !== n[i + c]) continue e;
3154
3154
  return u.length;
3155
3155
  }
3156
3156
  }
3157
3157
  return 0;
3158
3158
  },
3159
3159
  __isRecordDelimiter: function(n, i, o) {
3160
- const { record_delimiter: s } = this.options, f = s.length;
3161
- e: for (let l = 0; l < f; l++) {
3162
- const u = s[l], h = u.length;
3160
+ const { record_delimiter: s } = this.options, a = s.length;
3161
+ e: for (let l = 0; l < a; l++) {
3162
+ const u = s[l], c = u.length;
3163
3163
  if (u[0] === n) {
3164
- for (let c = 1; c < h; c++)
3165
- if (u[c] !== i[o + c])
3164
+ for (let h = 1; h < c; h++)
3165
+ if (u[h] !== i[o + h])
3166
3166
  continue e;
3167
3167
  return u.length;
3168
3168
  }
@@ -3172,9 +3172,9 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
3172
3172
  __isEscape: function(n, i, o) {
3173
3173
  const { escape: s } = this.options;
3174
3174
  if (s === null) return !1;
3175
- const f = s.length;
3175
+ const a = s.length;
3176
3176
  if (s[0] === o) {
3177
- for (let l = 0; l < f; l++)
3177
+ for (let l = 0; l < a; l++)
3178
3178
  if (s[l] !== n[i + l])
3179
3179
  return !1;
3180
3180
  return !0;
@@ -3185,36 +3185,36 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
3185
3185
  const { quote: o } = this.options;
3186
3186
  if (o === null) return !1;
3187
3187
  const s = o.length;
3188
- for (let f = 0; f < s; f++)
3189
- if (o[f] !== n[i + f])
3188
+ for (let a = 0; a < s; a++)
3189
+ if (o[a] !== n[i + a])
3190
3190
  return !1;
3191
3191
  return !0;
3192
3192
  },
3193
3193
  __autoDiscoverRecordDelimiter: function(n, i) {
3194
3194
  const { encoding: o } = this.options, s = [
3195
3195
  // Important, the windows line ending must be before mac os 9
3196
- a.from(`\r
3196
+ f.from(`\r
3197
3197
  `, o),
3198
- a.from(`
3198
+ f.from(`
3199
3199
  `, o),
3200
- a.from("\r", o)
3200
+ f.from("\r", o)
3201
3201
  ];
3202
- e: for (let f = 0; f < s.length; f++) {
3203
- const l = s[f].length;
3202
+ e: for (let a = 0; a < s.length; a++) {
3203
+ const l = s[a].length;
3204
3204
  for (let u = 0; u < l; u++)
3205
- if (s[f][u] !== n[i + u])
3205
+ if (s[a][u] !== n[i + u])
3206
3206
  continue e;
3207
- return this.options.record_delimiter.push(s[f]), this.state.recordDelimiterMaxLength = s[f].length, s[f].length;
3207
+ return this.options.record_delimiter.push(s[a]), this.state.recordDelimiterMaxLength = s[a].length, s[a].length;
3208
3208
  }
3209
3209
  return 0;
3210
3210
  },
3211
3211
  __error: function(n) {
3212
- const { encoding: i, raw: o, skip_records_with_error: s } = this.options, f = typeof n == "string" ? new Error(n) : n;
3212
+ const { encoding: i, raw: o, skip_records_with_error: s } = this.options, a = typeof n == "string" ? new Error(n) : n;
3213
3213
  if (s) {
3214
3214
  if (this.state.recordHasError = !0, this.options.on_skip !== void 0)
3215
3215
  try {
3216
3216
  this.options.on_skip(
3217
- f,
3217
+ a,
3218
3218
  o ? this.state.rawBuffer.toString(i) : void 0
3219
3219
  );
3220
3220
  } catch (l) {
@@ -3222,7 +3222,7 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
3222
3222
  }
3223
3223
  return;
3224
3224
  } else
3225
- return f;
3225
+ return a;
3226
3226
  },
3227
3227
  __infoDataSet: function() {
3228
3228
  return {
@@ -3250,9 +3250,9 @@ const Ln = 12, Nn = 13, Dn = 10, Fn = 32, Mn = 9, Bn = function(t) {
3250
3250
  }
3251
3251
  };
3252
3252
  };
3253
- class $n extends k {
3253
+ class Kn extends P {
3254
3254
  constructor(e = {}) {
3255
- super({ readableObjectMode: !0, ...e, encoding: null }), this.api = jn({
3255
+ super({ readableObjectMode: !0, ...e, encoding: null }), this.api = Zn({
3256
3256
  on_skip: (r, n) => {
3257
3257
  this.emit("skip", r, n);
3258
3258
  },
@@ -3292,24 +3292,24 @@ class $n extends k {
3292
3292
  e(r);
3293
3293
  }
3294
3294
  }
3295
- const qn = function() {
3295
+ const gt = function() {
3296
3296
  let t, e, r;
3297
3297
  for (const i in arguments) {
3298
3298
  const o = arguments[i], s = typeof o;
3299
- if (t === void 0 && (typeof o == "string" || L(o)))
3299
+ if (t === void 0 && (typeof o == "string" || D(o)))
3300
3300
  t = o;
3301
- else if (e === void 0 && zt(o))
3301
+ else if (e === void 0 && Xt(o))
3302
3302
  e = o;
3303
3303
  else if (r === void 0 && s === "function")
3304
3304
  r = o;
3305
3305
  else
3306
- throw new m(
3306
+ throw new g(
3307
3307
  "CSV_INVALID_ARGUMENT",
3308
3308
  ["Invalid argument:", `got ${JSON.stringify(o)} at index ${i}`],
3309
3309
  e || {}
3310
3310
  );
3311
3311
  }
3312
- const n = new $n(e);
3312
+ const n = new Kn(e);
3313
3313
  if (r) {
3314
3314
  const i = e === void 0 || e.objname === void 0 ? [] : {};
3315
3315
  n.on("readable", function() {
@@ -3330,19 +3330,285 @@ const qn = function() {
3330
3330
  }
3331
3331
  return n;
3332
3332
  };
3333
- function zn(t) {
3334
- {
3335
- const e = t.lastIndexOf(".");
3336
- if (e !== -1) return t.slice(Math.max(0, e + 1));
3337
- }
3333
+ let $e;
3334
+ // @__NO_SIDE_EFFECTS__
3335
+ function ei(t) {
3336
+ return {
3337
+ lang: t?.lang ?? $e?.lang,
3338
+ message: t?.message,
3339
+ abortEarly: t?.abortEarly ?? $e?.abortEarly,
3340
+ abortPipeEarly: t?.abortPipeEarly ?? $e?.abortPipeEarly
3341
+ };
3342
+ }
3343
+ let ti;
3344
+ // @__NO_SIDE_EFFECTS__
3345
+ function ri(t) {
3346
+ return ti?.get(t);
3347
+ }
3348
+ let ni;
3349
+ // @__NO_SIDE_EFFECTS__
3350
+ function ii(t) {
3351
+ return ni?.get(t);
3352
+ }
3353
+ let oi;
3354
+ // @__NO_SIDE_EFFECTS__
3355
+ function si(t, e) {
3356
+ return oi?.get(t)?.get(e);
3357
+ }
3358
+ // @__NO_SIDE_EFFECTS__
3359
+ function Kt(t) {
3360
+ const e = typeof t;
3361
+ return e === "string" ? `"${t}"` : e === "number" || e === "bigint" || e === "boolean" ? `${t}` : e === "object" || e === "function" ? (t && Object.getPrototypeOf(t)?.constructor?.name) ?? "null" : e;
3362
+ }
3363
+ function Je(t, e, r, n, i) {
3364
+ const o = i && "input" in i ? i.input : r.value, s = i?.expected ?? t.expects ?? null, a = i?.received ?? /* @__PURE__ */ Kt(o), l = {
3365
+ kind: t.kind,
3366
+ type: t.type,
3367
+ input: o,
3368
+ expected: s,
3369
+ received: a,
3370
+ message: `Invalid ${e}: ${s ? `Expected ${s} but r` : "R"}eceived ${a}`,
3371
+ requirement: t.requirement,
3372
+ path: i?.path,
3373
+ issues: i?.issues,
3374
+ lang: n.lang,
3375
+ abortEarly: n.abortEarly,
3376
+ abortPipeEarly: n.abortPipeEarly
3377
+ }, u = t.kind === "schema", c = i?.message ?? t.message ?? /* @__PURE__ */ si(t.reference, l.lang) ?? (u ? /* @__PURE__ */ ii(l.lang) : null) ?? n.message ?? /* @__PURE__ */ ri(l.lang);
3378
+ c !== void 0 && (l.message = typeof c == "function" ? c(l) : c), u && (r.typed = !1), r.issues ? r.issues.push(l) : r.issues = [l];
3379
+ }
3380
+ // @__NO_SIDE_EFFECTS__
3381
+ function er(t) {
3382
+ return {
3383
+ version: 1,
3384
+ vendor: "valibot",
3385
+ validate(e) {
3386
+ return t["~run"]({ value: e }, /* @__PURE__ */ ei());
3387
+ }
3388
+ };
3389
+ }
3390
+ // @__NO_SIDE_EFFECTS__
3391
+ function ai(t, e) {
3392
+ const r = [...new Set(t)];
3393
+ return r.length > 1 ? `(${r.join(` ${e} `)})` : r[0] ?? "never";
3394
+ }
3395
+ // @__NO_SIDE_EFFECTS__
3396
+ function tr(t, e) {
3397
+ return {
3398
+ kind: "schema",
3399
+ type: "literal",
3400
+ reference: tr,
3401
+ expects: /* @__PURE__ */ Kt(t),
3402
+ async: !1,
3403
+ literal: t,
3404
+ message: e,
3405
+ get "~standard"() {
3406
+ return /* @__PURE__ */ er(this);
3407
+ },
3408
+ "~run"(r, n) {
3409
+ return r.value === this.literal ? r.typed = !0 : Je(this, "type", r, n), r;
3410
+ }
3411
+ };
3412
+ }
3413
+ // @__NO_SIDE_EFFECTS__
3414
+ function mt(t) {
3415
+ let e;
3416
+ if (t) for (const r of t) e ? e.push(...r.issues) : e = r.issues;
3417
+ return e;
3338
3418
  }
3339
- class Vn {
3340
- /** Operations - Build parser. */
3419
+ // @__NO_SIDE_EFFECTS__
3420
+ function rr(t, e) {
3421
+ return {
3422
+ kind: "schema",
3423
+ type: "union",
3424
+ reference: rr,
3425
+ expects: /* @__PURE__ */ ai(t.map((r) => r.expects), "|"),
3426
+ async: !1,
3427
+ options: t,
3428
+ message: e,
3429
+ get "~standard"() {
3430
+ return /* @__PURE__ */ er(this);
3431
+ },
3432
+ "~run"(r, n) {
3433
+ let i, o, s;
3434
+ for (const a of this.options) {
3435
+ const l = a["~run"]({ value: r.value }, n);
3436
+ if (l.typed) if (l.issues) o ? o.push(l) : o = [l];
3437
+ else {
3438
+ i = l;
3439
+ break;
3440
+ }
3441
+ else s ? s.push(l) : s = [l];
3442
+ }
3443
+ if (i) return i;
3444
+ if (o) {
3445
+ if (o.length === 1) return o[0];
3446
+ Je(this, "type", r, n, { issues: /* @__PURE__ */ mt(o) }), r.typed = !0;
3447
+ } else {
3448
+ if (s?.length === 1) return s[0];
3449
+ Je(this, "type", r, n, { issues: /* @__PURE__ */ mt(s) });
3450
+ }
3451
+ return r;
3452
+ }
3453
+ };
3454
+ }
3455
+ const q = (t) => /* @__PURE__ */ rr(t.map((e) => /* @__PURE__ */ tr(e)));
3456
+ q(["amber", "green", "red", "other"]);
3457
+ q([
3458
+ "alpha",
3459
+ "beta",
3460
+ "generalAvailability",
3461
+ "notApplicable",
3462
+ "preAlpha",
3463
+ "proposed",
3464
+ "releaseCandidate",
3465
+ "unavailable",
3466
+ "underReview"
3467
+ ]);
3468
+ q([
3469
+ "app",
3470
+ "connector",
3471
+ "connectorConnection",
3472
+ "context",
3473
+ "contextModelGroup",
3474
+ "contextModel",
3475
+ "contextModelDimensionGroup",
3476
+ "contextModelDimension",
3477
+ "contextModelDimensionHierarchy",
3478
+ "contextModelEntityGroup",
3479
+ "contextModelEntity",
3480
+ "contextModelEntityDataItem",
3481
+ "contextModelEntityEvent",
3482
+ "contextModelEntityPrimaryMeasure",
3483
+ "contextModelSecondaryMeasureGroup",
3484
+ "contextModelSecondaryMeasure",
3485
+ "dataView",
3486
+ "dimension",
3487
+ "engine",
3488
+ "eventQuery",
3489
+ "presenter",
3490
+ "presenterPresentation",
3491
+ "tool"
3492
+ ]);
3493
+ q(["app", "engine", "connector", "context", "presenter", "tool"]);
3494
+ const V = (t) => {
3495
+ const e = Object.entries(t).filter((r) => typeof r[1] == "string");
3496
+ return new Map(e);
3497
+ };
3498
+ V({ "en-gb": "alpha" }), V({ "en-gb": "beta" }), V({ "en-gb": "" }), V({ "en-gb": "not-applicable" }), V({ "en-gb": "pre-alpha" }), V({ "en-gb": "proposed" }), V({ "en-gb": "release-candidate" }), V({ "en-gb": "unavailable" }), V({ "en-gb": "under-review" });
3499
+ q(["apiKey", "disabled", "oAuth2", "none"]);
3500
+ q(["application", "curatedDataset", "database", "fileStore"]);
3501
+ q([
3502
+ "abortOperation",
3503
+ "authenticateConnection",
3504
+ "createObject",
3505
+ "describeConnection",
3506
+ "dropObject",
3507
+ "findObject",
3508
+ "getReadableStream",
3509
+ "getRecord",
3510
+ "listNodes",
3511
+ "previewObject",
3512
+ "removeRecords",
3513
+ "retrieveChunks",
3514
+ "retrieveRecords",
3515
+ "upsertRecords"
3516
+ ]);
3517
+ q(["bidirectional", "destination", "source", "unknown"]);
3518
+ const we = (t) => {
3519
+ const e = Object.entries(t).filter((r) => typeof r[1] == "string");
3520
+ return new Map(e);
3521
+ };
3522
+ we({ "en-gb": "Application" }), we({ "en-gb": "Curated Dataset" }), we({ "en-gb": "Database" }), we({ "en-gb": "File Store" });
3523
+ q(["list"]);
3524
+ class fi extends Error {
3525
+ locator;
3526
+ constructor(e, r, n) {
3527
+ super(e, n), this.name = "DataPosError", this.locator = r;
3528
+ }
3529
+ }
3530
+ class li extends fi {
3531
+ constructor(e, r, n) {
3532
+ super(e, r, n), this.name = "ApplicationError";
3533
+ }
3534
+ }
3535
+ class ui extends li {
3536
+ body;
3537
+ constructor(e, r, n, i) {
3538
+ super(e, r, i), this.name = "FetchError", this.body = n;
3539
+ }
3540
+ }
3541
+ async function ci(t, e, r) {
3542
+ const n = ` - ${t.statusText}`, i = `${e} Response status '${t.status}${t.statusText ? n : ""}' received.`, o = await t.text();
3543
+ return new ui(i, r, o);
3544
+ }
3545
+ q(["list", "render", "setColorMode"]);
3546
+ const I = (t) => new Map(Object.entries(t));
3547
+ I({ "en-gb": "Delimited Text" }), I({ "en-gb": "Entity/Event" }), I({ "en-gb": "JSON Array" }), I({ "en-gb": "SPSS" }), I({ "en-gb": "XLS" }), I({ "en-gb": "XLSX" }), I({ "en-gb": "XML" });
3548
+ I({ "en-gb": "Newline" }), I({ "en-gb": "Carriage Return" }), I({ "en-gb": "Carriage Return/Newline" });
3549
+ I({ "en-gb": "Colon" }), I({ "en-gb": "Comma" }), I({ "en-gb": "Exclamation Mark" }), I({ "en-gb": "Record Separator" }), I({ "en-gb": "Semicolon" }), I({ "en-gb": "Space" }), I({ "en-gb": "Tab" }), I({ "en-gb": "Underscore" }), I({ "en-gb": "Unit Separator" }), I({ "en-gb": "Vertical Bar" });
3550
+ const hi = 4096;
3551
+ class di {
3552
+ parser = void 0;
3553
+ rowBuffer = void 0;
3554
+ /** Build parser. */
3341
3555
  buildParser(e) {
3342
- const r = zn("abcde.xyz");
3343
- return console.log(r), qn(e);
3556
+ return gt(e);
3557
+ }
3558
+ /** Parse stream. */
3559
+ async parseStream(e, r, n, i, o, s) {
3560
+ this.parser = gt(e), this.rowBuffer = this.constructRowBuffer({ chunk: () => {
3561
+ }, chunkSize: r.chunkSize ?? hi }), this.parser.on("readable", () => {
3562
+ try {
3563
+ let c;
3564
+ for (; (c = this.parser?.read()) != null; )
3565
+ i.throwIfAborted(), this.rowBuffer?.push(c);
3566
+ } catch (c) {
3567
+ o(c);
3568
+ }
3569
+ }), this.parser.on("error", (c) => o(c)), this.parser.on("end", () => s(this.constructSummary()));
3570
+ const a = await fetch(encodeURI(n), { signal: i });
3571
+ if (!a.ok || a.body == null)
3572
+ throw await ci(a, `Failed to fetch '${n}' file.`, "datapos-connector-file-store-emulator|Connector|retrieve");
3573
+ const l = a.body.pipeThrough(new TextDecoderStream(r.encodingId)).getReader();
3574
+ let u = await l.read();
3575
+ for (; !u.done; )
3576
+ i.throwIfAborted(), await this.writeToParser(u.value), u = await l.read();
3577
+ this.parser.end();
3578
+ }
3579
+ /** Parse string. */
3580
+ parseString() {
3581
+ }
3582
+ /** Construct row buffer. */
3583
+ constructRowBuffer(e) {
3584
+ let r = [];
3585
+ const n = () => {
3586
+ r.length !== 0 && (e.chunk(r), r = []);
3587
+ };
3588
+ return { flush: n, push: (o) => {
3589
+ r.push(o), r.length >= e.chunkSize && n();
3590
+ } };
3591
+ }
3592
+ /** Construct summary. */
3593
+ constructSummary() {
3594
+ return {
3595
+ byteCount: this.parser?.info.bytes ?? -1,
3596
+ commentLineCount: this.parser?.info.comment_lines ?? -1,
3597
+ emptyLineCount: this.parser?.info.empty_lines ?? -1,
3598
+ invalidFieldLengthCount: this.parser?.info.invalid_field_length ?? -1,
3599
+ lineCount: this.parser?.info.lines ?? -1,
3600
+ recordCount: this.parser?.info.records ?? -1
3601
+ };
3602
+ }
3603
+ /** Write to parser. */
3604
+ writeToParser(e) {
3605
+ return new Promise((r, n) => {
3606
+ this.parser?.write(e, (i) => {
3607
+ i ? n(i) : r();
3608
+ });
3609
+ });
3344
3610
  }
3345
3611
  }
3346
3612
  export {
3347
- Vn as Tool
3613
+ di as Tool
3348
3614
  };