@datapos/datapos-tool-csv-parse 0.0.130 → 0.0.131

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.
@@ -30,7 +30,7 @@ function Ge(t) {
30
30
  o.push(er(t, f, f + s > a ? a : f + s));
31
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
32
  }
33
- function ve(t, e, r, n, i) {
33
+ function be(t, e, r, n, i) {
34
34
  var o, s, f = i * 8 - n - 1, a = (1 << f) - 1, u = a >> 1, h = -7, c = r ? i - 1 : 0, p = r ? -1 : 1, m = t[e + c];
35
35
  for (c += p, o = m & (1 << -h) - 1, m >>= -h, h += f; h > 0; o = o * 256 + t[e + c], c += p, h -= 8)
36
36
  ;
@@ -46,23 +46,23 @@ function ve(t, e, r, n, i) {
46
46
  return (m ? -1 : 1) * s * Math.pow(2, o - n);
47
47
  }
48
48
  function ct(t, e, r, n, i, o) {
49
- var s, f, a, u = o * 8 - i - 1, h = (1 << u) - 1, c = h >> 1, p = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, m = n ? 0 : o - 1, x = n ? 1 : -1, y = 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 * (a = Math.pow(2, -s)) < 1 && (s--, a *= 2), s + c >= 1 ? e += p / a : e += p * Math.pow(2, 1 - c), e * a >= 2 && (s++, a /= 2), s + c >= h ? (f = 0, s = h) : s + c >= 1 ? (f = (e * a - 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 + m] = f & 255, m += x, f /= 256, i -= 8)
49
+ var s, f, a, u = o * 8 - i - 1, h = (1 << u) - 1, c = h >> 1, p = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, m = n ? 0 : o - 1, E = n ? 1 : -1, y = 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 * (a = Math.pow(2, -s)) < 1 && (s--, a *= 2), s + c >= 1 ? e += p / a : e += p * Math.pow(2, 1 - c), e * a >= 2 && (s++, a /= 2), s + c >= h ? (f = 0, s = h) : s + c >= 1 ? (f = (e * a - 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 + m] = f & 255, m += E, f /= 256, i -= 8)
51
51
  ;
52
- for (s = s << i | f, u += i; u > 0; t[r + m] = s & 255, m += x, s /= 256, u -= 8)
52
+ for (s = s << i | f, u += i; u > 0; t[r + m] = s & 255, m += E, s /= 256, u -= 8)
53
53
  ;
54
- t[r + m - x] |= y * 128;
54
+ t[r + m - E] |= y * 128;
55
55
  }
56
56
  var tr = {}.toString, ht = Array.isArray || function(t) {
57
57
  return tr.call(t) == "[object Array]";
58
58
  }, rr = 50;
59
59
  l.TYPED_ARRAY_SUPPORT = ie.TYPED_ARRAY_SUPPORT !== void 0 ? ie.TYPED_ARRAY_SUPPORT : !0;
60
- _e();
61
- function _e() {
60
+ we();
61
+ function we() {
62
62
  return l.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
63
63
  }
64
64
  function q(t, e) {
65
- if (_e() < e)
65
+ if (we() < e)
66
66
  throw new RangeError("Invalid typed array length");
67
67
  return l.TYPED_ARRAY_SUPPORT ? (t = new Uint8Array(e), t.__proto__ = l.prototype) : (t === null && (t = new l(e)), t.length = e), t;
68
68
  }
@@ -151,11 +151,11 @@ function sr(t, e) {
151
151
  throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
152
152
  }
153
153
  function ze(t) {
154
- if (t >= _e())
155
- throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + _e().toString(16) + " bytes");
154
+ if (t >= we())
155
+ throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + we().toString(16) + " bytes");
156
156
  return t | 0;
157
157
  }
158
- l.isBuffer = D;
158
+ l.isBuffer = N;
159
159
  function $(t) {
160
160
  return !!(t != null && t._isBuffer);
161
161
  }
@@ -223,7 +223,7 @@ function mt(t, e) {
223
223
  case "utf8":
224
224
  case "utf-8":
225
225
  case void 0:
226
- return we(t).length;
226
+ return ye(t).length;
227
227
  case "ucs2":
228
228
  case "ucs-2":
229
229
  case "utf16le":
@@ -232,9 +232,9 @@ function mt(t, e) {
232
232
  case "hex":
233
233
  return r >>> 1;
234
234
  case "base64":
235
- return Et(t).length;
235
+ return xt(t).length;
236
236
  default:
237
- if (n) return we(t).length;
237
+ if (n) return ye(t).length;
238
238
  e = ("" + e).toLowerCase(), n = !0;
239
239
  }
240
240
  }
@@ -348,8 +348,8 @@ function Ze(t, e, r, n, i) {
348
348
  return -1;
349
349
  o = 2, s /= 2, f /= 2, r /= 2;
350
350
  }
351
- function a(m, x) {
352
- return o === 1 ? m[x] : m.readUInt16BE(x * o);
351
+ function a(m, E) {
352
+ return o === 1 ? m[E] : m.readUInt16BE(E * o);
353
353
  }
354
354
  var u;
355
355
  if (i) {
@@ -394,19 +394,19 @@ function ar(t, e, r, n) {
394
394
  return s;
395
395
  }
396
396
  function lr(t, e, r, n) {
397
- return xe(we(e, t.length - r), t, r, n);
397
+ return Se(ye(e, t.length - r), t, r, n);
398
398
  }
399
399
  function _t(t, e, r, n) {
400
- return xe(xr(e), t, r, n);
400
+ return Se(Er(e), t, r, n);
401
401
  }
402
402
  function ur(t, e, r, n) {
403
403
  return _t(t, e, r, n);
404
404
  }
405
405
  function cr(t, e, r, n) {
406
- return xe(Et(e), t, r, n);
406
+ return Se(xt(e), t, r, n);
407
407
  }
408
408
  function hr(t, e, r, n) {
409
- return xe(Sr(e, t.length - r), t, r, n);
409
+ return Se(Sr(e, t.length - r), t, r, n);
410
410
  }
411
411
  l.prototype.write = function(e, r, n, i) {
412
412
  if (r === void 0)
@@ -510,7 +510,7 @@ function _r(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 += Er(t[o]);
513
+ i += xr(t[o]);
514
514
  return i;
515
515
  }
516
516
  function wr(t, e, r) {
@@ -595,18 +595,18 @@ l.prototype.readInt32BE = function(e, r) {
595
595
  return r || T(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
596
596
  };
597
597
  l.prototype.readFloatLE = function(e, r) {
598
- return r || T(e, 4, this.length), ve(this, e, !0, 23, 4);
598
+ return r || T(e, 4, this.length), be(this, e, !0, 23, 4);
599
599
  };
600
600
  l.prototype.readFloatBE = function(e, r) {
601
- return r || T(e, 4, this.length), ve(this, e, !1, 23, 4);
601
+ return r || T(e, 4, this.length), be(this, e, !1, 23, 4);
602
602
  };
603
603
  l.prototype.readDoubleLE = function(e, r) {
604
- return r || T(e, 8, this.length), ve(this, e, !0, 52, 8);
604
+ return r || T(e, 8, this.length), be(this, e, !0, 52, 8);
605
605
  };
606
606
  l.prototype.readDoubleBE = function(e, r) {
607
- return r || T(e, 8, this.length), ve(this, e, !1, 52, 8);
607
+ return r || T(e, 8, this.length), be(this, e, !1, 52, 8);
608
608
  };
609
- function N(t, e, r, n, i, o) {
609
+ function F(t, e, r, n, i, o) {
610
610
  if (!$(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");
@@ -614,7 +614,7 @@ function N(t, e, r, n, i, o) {
614
614
  l.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
- N(this, e, r, n, o, 0);
617
+ F(this, e, r, n, o, 0);
618
618
  }
619
619
  var s = 1, f = 0;
620
620
  for (this[r] = e & 255; ++f < n && (s *= 256); )
@@ -624,7 +624,7 @@ l.prototype.writeUIntLE = function(e, r, n, i) {
624
624
  l.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
- N(this, e, r, n, o, 0);
627
+ F(this, e, r, n, o, 0);
628
628
  }
629
629
  var s = n - 1, f = 1;
630
630
  for (this[r + s] = e & 255; --s >= 0 && (f *= 256); )
@@ -632,18 +632,18 @@ l.prototype.writeUIntBE = function(e, r, n, i) {
632
632
  return r + n;
633
633
  };
634
634
  l.prototype.writeUInt8 = function(e, r, n) {
635
- return e = +e, r = r | 0, n || N(this, e, r, 1, 255, 0), l.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), this[r] = e & 255, r + 1;
635
+ return e = +e, r = r | 0, n || F(this, e, r, 1, 255, 0), l.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), this[r] = e & 255, r + 1;
636
636
  };
637
- function be(t, e, r, n) {
637
+ function xe(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
642
  l.prototype.writeUInt16LE = function(e, r, n) {
643
- return e = +e, r = r | 0, n || N(this, e, r, 2, 65535, 0), l.TYPED_ARRAY_SUPPORT ? (this[r] = e & 255, this[r + 1] = e >>> 8) : be(this, e, r, !0), r + 2;
643
+ return e = +e, r = r | 0, n || F(this, e, r, 2, 65535, 0), l.TYPED_ARRAY_SUPPORT ? (this[r] = e & 255, this[r + 1] = e >>> 8) : xe(this, e, r, !0), r + 2;
644
644
  };
645
645
  l.prototype.writeUInt16BE = function(e, r, n) {
646
- return e = +e, r = r | 0, n || N(this, e, r, 2, 65535, 0), l.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 8, this[r + 1] = e & 255) : be(this, e, r, !1), r + 2;
646
+ return e = +e, r = r | 0, n || F(this, e, r, 2, 65535, 0), l.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 8, this[r + 1] = e & 255) : xe(this, e, r, !1), r + 2;
647
647
  };
648
648
  function Ee(t, e, r, n) {
649
649
  e < 0 && (e = 4294967295 + e + 1);
@@ -651,15 +651,15 @@ function Ee(t, e, r, n) {
651
651
  t[r + i] = e >>> (n ? i : 3 - i) * 8 & 255;
652
652
  }
653
653
  l.prototype.writeUInt32LE = function(e, r, n) {
654
- return e = +e, r = r | 0, n || N(this, e, r, 4, 4294967295, 0), l.TYPED_ARRAY_SUPPORT ? (this[r + 3] = e >>> 24, this[r + 2] = e >>> 16, this[r + 1] = e >>> 8, this[r] = e & 255) : Ee(this, e, r, !0), r + 4;
654
+ return e = +e, r = r | 0, n || F(this, e, r, 4, 4294967295, 0), l.TYPED_ARRAY_SUPPORT ? (this[r + 3] = e >>> 24, this[r + 2] = e >>> 16, this[r + 1] = e >>> 8, this[r] = e & 255) : Ee(this, e, r, !0), r + 4;
655
655
  };
656
656
  l.prototype.writeUInt32BE = function(e, r, n) {
657
- return e = +e, r = r | 0, n || N(this, e, r, 4, 4294967295, 0), l.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = e & 255) : Ee(this, e, r, !1), r + 4;
657
+ return e = +e, r = r | 0, n || F(this, e, r, 4, 4294967295, 0), l.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = e & 255) : Ee(this, e, r, !1), r + 4;
658
658
  };
659
659
  l.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
- N(this, e, r, n, o - 1, -o);
662
+ F(this, e, r, n, o - 1, -o);
663
663
  }
664
664
  var s = 0, f = 1, a = 0;
665
665
  for (this[r] = e & 255; ++s < n && (f *= 256); )
@@ -669,7 +669,7 @@ l.prototype.writeIntLE = function(e, r, n, i) {
669
669
  l.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
- N(this, e, r, n, o - 1, -o);
672
+ F(this, e, r, n, o - 1, -o);
673
673
  }
674
674
  var s = n - 1, f = 1, a = 0;
675
675
  for (this[r + s] = e & 255; --s >= 0 && (f *= 256); )
@@ -677,19 +677,19 @@ l.prototype.writeIntBE = function(e, r, n, i) {
677
677
  return r + n;
678
678
  };
679
679
  l.prototype.writeInt8 = function(e, r, n) {
680
- return e = +e, r = r | 0, n || N(this, e, r, 1, 127, -128), l.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), e < 0 && (e = 255 + e + 1), this[r] = e & 255, r + 1;
680
+ return e = +e, r = r | 0, n || F(this, e, r, 1, 127, -128), l.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), e < 0 && (e = 255 + e + 1), this[r] = e & 255, r + 1;
681
681
  };
682
682
  l.prototype.writeInt16LE = function(e, r, n) {
683
- return e = +e, r = r | 0, n || N(this, e, r, 2, 32767, -32768), l.TYPED_ARRAY_SUPPORT ? (this[r] = e & 255, this[r + 1] = e >>> 8) : be(this, e, r, !0), r + 2;
683
+ return e = +e, r = r | 0, n || F(this, e, r, 2, 32767, -32768), l.TYPED_ARRAY_SUPPORT ? (this[r] = e & 255, this[r + 1] = e >>> 8) : xe(this, e, r, !0), r + 2;
684
684
  };
685
685
  l.prototype.writeInt16BE = function(e, r, n) {
686
- return e = +e, r = r | 0, n || N(this, e, r, 2, 32767, -32768), l.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 8, this[r + 1] = e & 255) : be(this, e, r, !1), r + 2;
686
+ return e = +e, r = r | 0, n || F(this, e, r, 2, 32767, -32768), l.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 8, this[r + 1] = e & 255) : xe(this, e, r, !1), r + 2;
687
687
  };
688
688
  l.prototype.writeInt32LE = function(e, r, n) {
689
- return e = +e, r = r | 0, n || N(this, e, r, 4, 2147483647, -2147483648), l.TYPED_ARRAY_SUPPORT ? (this[r] = e & 255, this[r + 1] = e >>> 8, this[r + 2] = e >>> 16, this[r + 3] = e >>> 24) : Ee(this, e, r, !0), r + 4;
689
+ return e = +e, r = r | 0, n || F(this, e, r, 4, 2147483647, -2147483648), l.TYPED_ARRAY_SUPPORT ? (this[r] = e & 255, this[r + 1] = e >>> 8, this[r + 2] = e >>> 16, this[r + 3] = e >>> 24) : Ee(this, e, r, !0), r + 4;
690
690
  };
691
691
  l.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), l.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = e & 255) : Ee(this, e, r, !1), r + 4;
692
+ return e = +e, r = r | 0, n || F(this, e, r, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), l.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = e & 255) : Ee(this, e, r, !1), r + 4;
693
693
  };
694
694
  function yt(t, e, r, n, i, o) {
695
695
  if (r + n > t.length) throw new RangeError("Index out of range");
@@ -756,7 +756,7 @@ l.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 = $(e) ? e : we(new l(e, i).toString()), a = f.length;
759
+ var f = $(e) ? e : ye(new l(e, i).toString()), a = f.length;
760
760
  for (s = 0; s < n - r; ++s)
761
761
  this[s + r] = f[s % a];
762
762
  }
@@ -772,10 +772,10 @@ function vr(t) {
772
772
  function br(t) {
773
773
  return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "");
774
774
  }
775
- function Er(t) {
775
+ function xr(t) {
776
776
  return t < 16 ? "0" + t.toString(16) : t.toString(16);
777
777
  }
778
- function we(t, e) {
778
+ function ye(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,7 +825,7 @@ function we(t, e) {
825
825
  }
826
826
  return o;
827
827
  }
828
- function xr(t) {
828
+ function Er(t) {
829
829
  for (var e = [], r = 0; r < t.length; ++r)
830
830
  e.push(t.charCodeAt(r) & 255);
831
831
  return e;
@@ -835,10 +835,10 @@ function Sr(t, e) {
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 Et(t) {
838
+ function xt(t) {
839
839
  return Xt(vr(t));
840
840
  }
841
- function xe(t, e, r, n) {
841
+ function Se(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;
@@ -846,14 +846,14 @@ function xe(t, e, r, n) {
846
846
  function Rr(t) {
847
847
  return t !== t;
848
848
  }
849
- function D(t) {
850
- return t != null && (!!t._isBuffer || xt(t) || Ir(t));
849
+ function N(t) {
850
+ return t != null && (!!t._isBuffer || Et(t) || Ir(t));
851
851
  }
852
- function xt(t) {
852
+ function Et(t) {
853
853
  return !!t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
854
854
  }
855
855
  function Ir(t) {
856
- return typeof t.readFloatLE == "function" && typeof t.slice == "function" && xt(t.slice(0, 0));
856
+ return typeof t.readFloatLE == "function" && typeof t.slice == "function" && Et(t.slice(0, 0));
857
857
  }
858
858
  var Ce;
859
859
  function H() {
@@ -886,35 +886,35 @@ function Cr(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 = le(t, n), o = 0; o < n; ++o)
890
890
  i[o].call(r);
891
891
  }
892
892
  function Or(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 = le(t, i), s = 0; s < i; ++s)
897
897
  o[s].call(r, n);
898
898
  }
899
899
  function Ar(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)
903
+ for (var o = t.length, s = le(t, o), f = 0; f < o; ++f)
904
904
  s[f].call(r, n, i);
905
905
  }
906
906
  function Tr(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), a = 0; a < s; ++a)
910
+ for (var s = t.length, f = le(t, s), a = 0; a < s; ++a)
911
911
  f[a].call(r, n, i, o);
912
912
  }
913
913
  function Lr(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 = le(t, i), s = 0; s < i; ++s)
918
918
  o[s].apply(r, n);
919
919
  }
920
920
  g.prototype.emit = function(e) {
@@ -1077,7 +1077,7 @@ function Nr(t, e) {
1077
1077
  t[r] = t[n];
1078
1078
  t.pop();
1079
1079
  }
1080
- function ae(t, e) {
1080
+ function le(t, e) {
1081
1081
  for (var r = new Array(e); e--; )
1082
1082
  r[e] = t[e];
1083
1083
  return r;
@@ -1126,18 +1126,18 @@ function Mr(t) {
1126
1126
  }
1127
1127
  }
1128
1128
  }
1129
- var z = [], ne = !1, ee, me = -1;
1129
+ var z = [], ne = !1, ee, ge = -1;
1130
1130
  function Br() {
1131
- !ne || !ee || (ne = !1, ee.length ? z = ee.concat(z) : me = -1, z.length && Lt());
1131
+ !ne || !ee || (ne = !1, ee.length ? z = ee.concat(z) : ge = -1, z.length && Lt());
1132
1132
  }
1133
1133
  function Lt() {
1134
1134
  if (!ne) {
1135
1135
  var t = Tt(Br);
1136
1136
  ne = !0;
1137
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;
1138
+ for (ee = z, z = []; ++ge < e; )
1139
+ ee && ee[ge].run();
1140
+ ge = -1, e = z.length;
1141
1141
  }
1142
1142
  ee = null, ne = !1, Mr(t);
1143
1143
  }
@@ -1155,9 +1155,9 @@ function Dt(t, e) {
1155
1155
  Dt.prototype.run = function() {
1156
1156
  this.fun.apply(null, this.array);
1157
1157
  };
1158
- var Ur = {}, se = ie.performance || {};
1159
- se.now || se.mozNow || se.msNow || se.oNow || se.webkitNow;
1160
- var ge = {
1158
+ var Ur = {}, fe = ie.performance || {};
1159
+ fe.now || fe.mozNow || fe.msNow || fe.oNow || fe.webkitNow;
1160
+ var _e = {
1161
1161
  env: Ur
1162
1162
  }, ke;
1163
1163
  typeof Object.create == "function" ? ke = function(e, r) {
@@ -1200,7 +1200,7 @@ function Pr(t) {
1200
1200
  return f;
1201
1201
  }
1202
1202
  }), s = n[r]; r < i; s = n[++r])
1203
- Ve(s) || !le(s) ? o += " " + s : o += " " + G(s);
1203
+ Ve(s) || !ue(s) ? o += " " + s : o += " " + G(s);
1204
1204
  return o;
1205
1205
  }
1206
1206
  function Nt(t, e) {
@@ -1208,39 +1208,39 @@ function Nt(t, e) {
1208
1208
  return function() {
1209
1209
  return Nt(t, e).apply(this, arguments);
1210
1210
  };
1211
- if (ge.noDeprecation === !0)
1211
+ if (_e.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 (_e.throwDeprecation)
1217
1217
  throw new Error(e);
1218
- ge.traceDeprecation ? console.trace(e) : console.error(e), r = !0;
1218
+ _e.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 = {}, Oe;
1224
+ var me = {}, Oe;
1225
1225
  function $r(t) {
1226
- if (Q(Oe) && (Oe = ge.env.NODE_DEBUG || ""), t = t.toUpperCase(), !pe[t])
1226
+ if (Q(Oe) && (Oe = _e.env.NODE_DEBUG || ""), t = t.toUpperCase(), !me[t])
1227
1227
  if (new RegExp("\\b" + t + "\\b", "i").test(Oe)) {
1228
1228
  var e = 0;
1229
- pe[t] = function() {
1229
+ me[t] = function() {
1230
1230
  var r = Pr.apply(null, arguments);
1231
1231
  console.error("%s %d: %s", t, e, r);
1232
1232
  };
1233
1233
  } else
1234
- pe[t] = function() {
1234
+ me[t] = function() {
1235
1235
  };
1236
- return pe[t];
1236
+ return me[t];
1237
1237
  }
1238
1238
  function G(t, e) {
1239
1239
  var r = {
1240
1240
  seen: [],
1241
1241
  stylize: qr
1242
1242
  };
1243
- return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), Ft(e) ? r.showHidden = e : e && Hr(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 = jr), ye(r, t, r.depth);
1243
+ return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), Ft(e) ? r.showHidden = e : e && Hr(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 = jr), ve(r, t, r.depth);
1244
1244
  }
1245
1245
  G.colors = {
1246
1246
  bold: [1, 22],
@@ -1281,12 +1281,12 @@ function zr(t) {
1281
1281
  e[r] = !0;
1282
1282
  }), e;
1283
1283
  }
1284
- function ye(t, e, r) {
1284
+ function ve(t, e, r) {
1285
1285
  if (t.customInspect && e && De(e.inspect) && // Filter out the util module, it's inspect function is special
1286
1286
  e.inspect !== G && // 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 Je(n) || (n = ye(t, n, r)), n;
1289
+ return Je(n) || (n = ve(t, n, r)), n;
1290
1290
  }
1291
1291
  var i = Vr(t, e);
1292
1292
  if (i)
@@ -1361,7 +1361,7 @@ function Jr(t, e, r, n, i) {
1361
1361
  }
1362
1362
  function Pe(t, e, r, n, i, o) {
1363
1363
  var s, f, a;
1364
- if (a = Object.getOwnPropertyDescriptor(e, i) || { value: e[i] }, a.get ? a.set ? f = t.stylize("[Getter/Setter]", "special") : f = t.stylize("[Getter]", "special") : a.set && (f = t.stylize("[Setter]", "special")), Mt(n, i) || (s = "[" + i + "]"), f || (t.seen.indexOf(a.value) < 0 ? (Ve(r) ? f = ye(t, a.value, null) : f = ye(t, a.value, r - 1), f.indexOf(`
1364
+ if (a = Object.getOwnPropertyDescriptor(e, i) || { value: e[i] }, a.get ? a.set ? f = t.stylize("[Getter/Setter]", "special") : f = t.stylize("[Getter]", "special") : a.set && (f = t.stylize("[Setter]", "special")), Mt(n, i) || (s = "[" + i + "]"), f || (t.seen.indexOf(a.value) < 0 ? (Ve(r) ? f = ve(t, a.value, null) : f = ve(t, a.value, r - 1), f.indexOf(`
1365
1365
  `) > -1 && (o ? f = f.split(`
1366
1366
  `).map(function(u) {
1367
1367
  return " " + u;
@@ -1406,16 +1406,16 @@ function Q(t) {
1406
1406
  return t === void 0;
1407
1407
  }
1408
1408
  function Te(t) {
1409
- return le(t) && Ye(t) === "[object RegExp]";
1409
+ return ue(t) && Ye(t) === "[object RegExp]";
1410
1410
  }
1411
- function le(t) {
1411
+ function ue(t) {
1412
1412
  return typeof t == "object" && t !== null;
1413
1413
  }
1414
1414
  function Ke(t) {
1415
- return le(t) && Ye(t) === "[object Date]";
1415
+ return ue(t) && Ye(t) === "[object Date]";
1416
1416
  }
1417
1417
  function Le(t) {
1418
- return le(t) && (Ye(t) === "[object Error]" || t instanceof Error);
1418
+ return ue(t) && (Ye(t) === "[object Error]" || t instanceof Error);
1419
1419
  }
1420
1420
  function De(t) {
1421
1421
  return typeof t == "function";
@@ -1424,7 +1424,7 @@ function Ye(t) {
1424
1424
  return Object.prototype.toString.call(t);
1425
1425
  }
1426
1426
  function Hr(t, e) {
1427
- if (!e || !le(e)) return t;
1427
+ if (!e || !ue(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;
@@ -1487,7 +1487,7 @@ function Zr(t) {
1487
1487
  if (t && !Gr(t))
1488
1488
  throw new Error("Unknown encoding: " + t);
1489
1489
  }
1490
- function ue(t) {
1490
+ function ce(t) {
1491
1491
  switch (this.encoding = (t || "utf8").toLowerCase().replace(/[-_]/, ""), Zr(t), this.encoding) {
1492
1492
  case "utf8":
1493
1493
  this.surrogateSize = 3;
@@ -1505,7 +1505,7 @@ function ue(t) {
1505
1505
  }
1506
1506
  this.charBuffer = new l(6), this.charReceived = 0, this.charLength = 0;
1507
1507
  }
1508
- ue.prototype.write = function(t) {
1508
+ ce.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
+ ce.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
+ ce.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;
@@ -1566,7 +1566,7 @@ function en(t) {
1566
1566
  this.charReceived = t.length % 3, this.charLength = this.charReceived ? 3 : 0;
1567
1567
  }
1568
1568
  C.ReadableState = Bt;
1569
- var E = $r("stream");
1569
+ var x = $r("stream");
1570
1570
  oe(C, g);
1571
1571
  function tn(t, e, r) {
1572
1572
  if (typeof t.prependListener == "function")
@@ -1579,7 +1579,7 @@ function rn(t, e) {
1579
1579
  function Bt(t, e) {
1580
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 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 ce(t.encoding), this.encoding = t.encoding);
1583
1583
  }
1584
1584
  function C(t) {
1585
1585
  if (!(this instanceof C)) return new C(t);
@@ -1611,7 +1611,7 @@ function Ut(t, e, r, n, i) {
1611
1611
  t.emit("error", f);
1612
1612
  } else {
1613
1613
  var a;
1614
- e.decoder && !i && !n && (r = e.decoder.write(r), a = !e.objectMode && r.length === 0), i || (e.reading = !1), a || (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))), an(t, e);
1614
+ e.decoder && !i && !n && (r = e.decoder.write(r), a = !e.objectMode && r.length === 0), i || (e.reading = !1), a || (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 && Re(t))), an(t, e);
1615
1615
  }
1616
1616
  else i || (e.reading = !1);
1617
1617
  return nn(e);
@@ -1620,7 +1620,7 @@ function nn(t) {
1620
1620
  return !t.ended && (t.needReadable || t.length < t.highWaterMark || t.length === 0);
1621
1621
  }
1622
1622
  C.prototype.setEncoding = function(t) {
1623
- return this._readableState.decoder = new ue(t), this._readableState.encoding = t, this;
1623
+ return this._readableState.decoder = new ce(t), this._readableState.encoding = t, this;
1624
1624
  };
1625
1625
  var et = 8388608;
1626
1626
  function on(t) {
@@ -1630,20 +1630,20 @@ function tt(t, e) {
1630
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 = on(t)), t <= e.length ? t : e.ended ? e.length : (e.needReadable = !0, 0));
1631
1631
  }
1632
1632
  C.prototype.read = function(t) {
1633
- E("read", t), t = parseInt(t, 10);
1633
+ x("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 E("read: emitReadable", e.length, e.ended), e.length === 0 && e.ended ? Ne(this) : Se(this), null;
1636
+ return x("read: emitReadable", e.length, e.ended), e.length === 0 && e.ended ? Ne(this) : Re(this), null;
1637
1637
  if (t = tt(t, e), t === 0 && e.ended)
1638
1638
  return e.length === 0 && Ne(this), null;
1639
1639
  var n = e.needReadable;
1640
- E("need readable", n), (e.length === 0 || e.length - t < e.highWaterMark) && (n = !0, E("length less than watermark", n)), e.ended || e.reading ? (n = !1, E("reading or ended", n)) : n && (E("do read"), e.reading = !0, e.sync = !0, e.length === 0 && (e.needReadable = !0), this._read(e.highWaterMark), e.sync = !1, e.reading || (t = tt(r, e)));
1640
+ x("need readable", n), (e.length === 0 || e.length - t < e.highWaterMark) && (n = !0, x("length less than watermark", n)), e.ended || e.reading ? (n = !1, x("reading or ended", n)) : n && (x("do read"), e.reading = !0, e.sync = !0, e.length === 0 && (e.needReadable = !0), this._read(e.highWaterMark), e.sync = !1, e.reading || (t = tt(r, e)));
1641
1641
  var i;
1642
1642
  return t > 0 ? i = kt(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 && Ne(this)), i !== null && this.emit("data", i), i;
1643
1643
  };
1644
1644
  function sn(t, e) {
1645
1645
  var r = null;
1646
- return !D(e) && typeof e != "string" && e !== null && e !== void 0 && !t.objectMode && (r = new TypeError("Invalid non-string/buffer chunk")), r;
1646
+ return !N(e) && typeof e != "string" && e !== null && e !== void 0 && !t.objectMode && (r = new TypeError("Invalid non-string/buffer chunk")), r;
1647
1647
  }
1648
1648
  function fn(t, e) {
1649
1649
  if (!e.ended) {
@@ -1651,21 +1651,21 @@ function fn(t, e) {
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, Re(t);
1655
1655
  }
1656
1656
  }
1657
- function Se(t) {
1657
+ function Re(t) {
1658
1658
  var e = t._readableState;
1659
- e.needReadable = !1, e.emittedReadable || (E("emitReadable", e.flowing), e.emittedReadable = !0, e.sync ? U(rt, t) : rt(t));
1659
+ e.needReadable = !1, e.emittedReadable || (x("emitReadable", e.flowing), e.emittedReadable = !0, e.sync ? U(rt, t) : rt(t));
1660
1660
  }
1661
1661
  function rt(t) {
1662
- E("emit readable"), t.emit("readable"), We(t);
1662
+ x("emit readable"), t.emit("readable"), We(t);
1663
1663
  }
1664
1664
  function an(t, e) {
1665
1665
  e.readingMore || (e.readingMore = !0, U(ln, t, e));
1666
1666
  }
1667
1667
  function ln(t, e) {
1668
- for (var r = e.length; !e.reading && !e.flowing && !e.ended && e.length < e.highWaterMark && (E("maybeReadMore read 0"), t.read(0), r !== e.length); )
1668
+ for (var r = e.length; !e.reading && !e.flowing && !e.ended && e.length < e.highWaterMark && (x("maybeReadMore read 0"), t.read(0), r !== e.length); )
1669
1669
  r = e.length;
1670
1670
  e.readingMore = !1;
1671
1671
  }
@@ -1685,49 +1685,49 @@ C.prototype.pipe = function(t, e) {
1685
1685
  n.pipes.push(t);
1686
1686
  break;
1687
1687
  }
1688
- n.pipesCount += 1, E("pipe count=%d opts=%j", n.pipesCount, e);
1688
+ n.pipesCount += 1, x("pipe count=%d opts=%j", n.pipesCount, e);
1689
1689
  var i = !e || e.end !== !1, o = i ? f : h;
1690
1690
  n.endEmitted ? U(o) : r.once("end", o), t.on("unpipe", s);
1691
- function s(I) {
1692
- E("onunpipe"), I === r && h();
1691
+ function s(S) {
1692
+ x("onunpipe"), S === r && h();
1693
1693
  }
1694
1694
  function f() {
1695
- E("onend"), t.end();
1695
+ x("onend"), t.end();
1696
1696
  }
1697
1697
  var a = un(r);
1698
1698
  t.on("drain", a);
1699
1699
  var u = !1;
1700
1700
  function h() {
1701
- E("cleanup"), t.removeListener("close", x), t.removeListener("finish", y), t.removeListener("drain", a), t.removeListener("error", m), t.removeListener("unpipe", s), r.removeListener("end", f), r.removeListener("end", h), r.removeListener("data", p), u = !0, n.awaitDrain && (!t._writableState || t._writableState.needDrain) && a();
1701
+ x("cleanup"), t.removeListener("close", E), t.removeListener("finish", y), t.removeListener("drain", a), t.removeListener("error", m), t.removeListener("unpipe", s), r.removeListener("end", f), r.removeListener("end", h), r.removeListener("data", p), u = !0, n.awaitDrain && (!t._writableState || t._writableState.needDrain) && a();
1702
1702
  }
1703
1703
  var c = !1;
1704
1704
  r.on("data", p);
1705
- function p(I) {
1706
- E("ondata"), c = !1;
1707
- var v = t.write(I);
1708
- v === !1 && !c && ((n.pipesCount === 1 && n.pipes === t || n.pipesCount > 1 && Pt(n.pipes, t) !== -1) && !u && (E("false write response, pause", r._readableState.awaitDrain), r._readableState.awaitDrain++, c = !0), r.pause());
1705
+ function p(S) {
1706
+ x("ondata"), c = !1;
1707
+ var v = t.write(S);
1708
+ v === !1 && !c && ((n.pipesCount === 1 && n.pipes === t || n.pipesCount > 1 && Pt(n.pipes, t) !== -1) && !u && (x("false write response, pause", r._readableState.awaitDrain), r._readableState.awaitDrain++, c = !0), r.pause());
1709
1709
  }
1710
- function m(I) {
1711
- E("onerror", I), S(), t.removeListener("error", m), rn(t, "error") === 0 && t.emit("error", I);
1710
+ function m(S) {
1711
+ x("onerror", S), R(), t.removeListener("error", m), rn(t, "error") === 0 && t.emit("error", S);
1712
1712
  }
1713
1713
  tn(t, "error", m);
1714
- function x() {
1715
- t.removeListener("finish", y), S();
1714
+ function E() {
1715
+ t.removeListener("finish", y), R();
1716
1716
  }
1717
- t.once("close", x);
1717
+ t.once("close", E);
1718
1718
  function y() {
1719
- E("onfinish"), t.removeListener("close", x), S();
1719
+ x("onfinish"), t.removeListener("close", E), R();
1720
1720
  }
1721
1721
  t.once("finish", y);
1722
- function S() {
1723
- E("unpipe"), r.unpipe(t);
1722
+ function R() {
1723
+ x("unpipe"), r.unpipe(t);
1724
1724
  }
1725
- return t.emit("pipe", r), n.flowing || (E("pipe resume"), r.resume()), t;
1725
+ return t.emit("pipe", r), n.flowing || (x("pipe resume"), r.resume()), t;
1726
1726
  };
1727
1727
  function un(t) {
1728
1728
  return function() {
1729
1729
  var e = t._readableState;
1730
- E("pipeOnDrain", e.awaitDrain), e.awaitDrain && e.awaitDrain--, e.awaitDrain === 0 && t.listeners("data").length && (e.flowing = !0, We(t));
1730
+ x("pipeOnDrain", e.awaitDrain), e.awaitDrain && e.awaitDrain--, e.awaitDrain === 0 && t.listeners("data").length && (e.flowing = !0, We(t));
1731
1731
  };
1732
1732
  }
1733
1733
  C.prototype.unpipe = function(t) {
@@ -1751,42 +1751,42 @@ C.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) : U(cn, this));
1754
+ !n.endEmitted && !n.readableListening && (n.readableListening = n.needReadable = !0, n.emittedReadable = !1, n.reading ? n.length && Re(this) : U(cn, this));
1755
1755
  }
1756
1756
  return r;
1757
1757
  };
1758
1758
  C.prototype.addListener = C.prototype.on;
1759
1759
  function cn(t) {
1760
- E("readable nexttick read 0"), t.read(0);
1760
+ x("readable nexttick read 0"), t.read(0);
1761
1761
  }
1762
1762
  C.prototype.resume = function() {
1763
1763
  var t = this._readableState;
1764
- return t.flowing || (E("resume"), t.flowing = !0, hn(this, t)), this;
1764
+ return t.flowing || (x("resume"), t.flowing = !0, hn(this, t)), this;
1765
1765
  };
1766
1766
  function hn(t, e) {
1767
1767
  e.resumeScheduled || (e.resumeScheduled = !0, U(dn, t, e));
1768
1768
  }
1769
1769
  function dn(t, e) {
1770
- e.reading || (E("resume read 0"), t.read(0)), e.resumeScheduled = !1, e.awaitDrain = 0, t.emit("resume"), We(t), e.flowing && !e.reading && t.read(0);
1770
+ e.reading || (x("resume read 0"), t.read(0)), e.resumeScheduled = !1, e.awaitDrain = 0, t.emit("resume"), We(t), e.flowing && !e.reading && t.read(0);
1771
1771
  }
1772
1772
  C.prototype.pause = function() {
1773
- return E("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (E("pause"), this._readableState.flowing = !1, this.emit("pause")), this;
1773
+ return x("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (x("pause"), this._readableState.flowing = !1, this.emit("pause")), this;
1774
1774
  };
1775
1775
  function We(t) {
1776
1776
  var e = t._readableState;
1777
- for (E("flow", e.flowing); e.flowing && t.read() !== null; )
1777
+ for (x("flow", e.flowing); e.flowing && t.read() !== null; )
1778
1778
  ;
1779
1779
  }
1780
1780
  C.prototype.wrap = function(t) {
1781
1781
  var e = this._readableState, r = !1, n = this;
1782
1782
  t.on("end", function() {
1783
- if (E("wrapped end"), e.decoder && !e.ended) {
1783
+ if (x("wrapped end"), e.decoder && !e.ended) {
1784
1784
  var s = e.decoder.end();
1785
1785
  s && s.length && n.push(s);
1786
1786
  }
1787
1787
  n.push(null);
1788
1788
  }), t.on("data", function(s) {
1789
- if (E("wrapped data"), e.decoder && (s = e.decoder.write(s)), !(e.objectMode && s == null) && !(!e.objectMode && (!s || !s.length))) {
1789
+ if (x("wrapped data"), e.decoder && (s = e.decoder.write(s)), !(e.objectMode && s == null) && !(!e.objectMode && (!s || !s.length))) {
1790
1790
  var f = n.push(s);
1791
1791
  f || (r = !0, t.pause());
1792
1792
  }
@@ -1801,7 +1801,7 @@ C.prototype.wrap = function(t) {
1801
1801
  return wn(o, function(s) {
1802
1802
  t.on(s, n.emit.bind(n, s));
1803
1803
  }), n._read = function(s) {
1804
- E("wrapped _read", s), r && (r = !1, t.resume());
1804
+ x("wrapped _read", s), r && (r = !1, t.resume());
1805
1805
  }, n;
1806
1806
  };
1807
1807
  C._fromList = kt;
@@ -1855,8 +1855,8 @@ function Pt(t, e) {
1855
1855
  if (t[r] === e) return r;
1856
1856
  return -1;
1857
1857
  }
1858
- L.WritableState = Qe;
1859
- oe(L, g);
1858
+ D.WritableState = Qe;
1859
+ oe(D, g);
1860
1860
  function yn() {
1861
1861
  }
1862
1862
  function vn(t, e, r) {
@@ -1880,42 +1880,42 @@ Qe.prototype.getBuffer = function() {
1880
1880
  r.push(e), e = e.next;
1881
1881
  return r;
1882
1882
  };
1883
- function L(t) {
1884
- if (!(this instanceof L) && !(this instanceof B)) return new L(t);
1883
+ function D(t) {
1884
+ if (!(this instanceof D) && !(this instanceof B)) return new D(t);
1885
1885
  this._writableState = new Qe(t, this), this.writable = !0, t && (typeof t.write == "function" && (this._write = t.write), typeof t.writev == "function" && (this._writev = t.writev)), g.call(this);
1886
1886
  }
1887
- L.prototype.pipe = function() {
1887
+ D.prototype.pipe = function() {
1888
1888
  this.emit("error", new Error("Cannot pipe, not readable"));
1889
1889
  };
1890
1890
  function bn(t, e) {
1891
1891
  var r = new Error("write after end");
1892
1892
  t.emit("error", r), U(e, r);
1893
1893
  }
1894
- function En(t, e, r, n) {
1894
+ function xn(t, e, r, n) {
1895
1895
  var i = !0, o = !1;
1896
1896
  return r === null ? o = new TypeError("May not write null values to stream") : !l.isBuffer(r) && typeof r != "string" && r !== void 0 && !e.objectMode && (o = new TypeError("Invalid non-string/buffer chunk")), o && (t.emit("error", o), U(n, o), i = !1), i;
1897
1897
  }
1898
- L.prototype.write = function(t, e, r) {
1898
+ D.prototype.write = function(t, e, r) {
1899
1899
  var n = this._writableState, i = !1;
1900
- return typeof e == "function" && (r = e, e = null), l.isBuffer(t) ? e = "buffer" : e || (e = n.defaultEncoding), typeof r != "function" && (r = yn), n.ended ? bn(this, r) : En(this, n, t, r) && (n.pendingcb++, i = Sn(this, n, t, e, r)), i;
1900
+ return typeof e == "function" && (r = e, e = null), l.isBuffer(t) ? e = "buffer" : e || (e = n.defaultEncoding), typeof r != "function" && (r = yn), n.ended ? bn(this, r) : xn(this, n, t, r) && (n.pendingcb++, i = Sn(this, n, t, e, r)), i;
1901
1901
  };
1902
- L.prototype.cork = function() {
1902
+ D.prototype.cork = function() {
1903
1903
  var t = this._writableState;
1904
1904
  t.corked++;
1905
1905
  };
1906
- L.prototype.uncork = function() {
1906
+ D.prototype.uncork = function() {
1907
1907
  var t = this._writableState;
1908
1908
  t.corked && (t.corked--, !t.writing && !t.corked && !t.finished && !t.bufferProcessing && t.bufferedRequest && $t(this, t));
1909
1909
  };
1910
- L.prototype.setDefaultEncoding = function(e) {
1910
+ D.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 xn(t, e, r) {
1914
+ function En(t, e, r) {
1915
1915
  return !t.objectMode && t.decodeStrings !== !1 && typeof e == "string" && (e = l.from(e, r)), e;
1916
1916
  }
1917
1917
  function Sn(t, e, r, n, i) {
1918
- r = xn(e, r, n), l.isBuffer(r) && (n = "buffer");
1918
+ r = En(e, r, n), l.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;
@@ -1968,11 +1968,11 @@ function $t(t, e) {
1968
1968
  }
1969
1969
  e.bufferedRequestCount = 0, e.bufferedRequest = r, e.bufferProcessing = !1;
1970
1970
  }
1971
- L.prototype._write = function(t, e, r) {
1971
+ D.prototype._write = function(t, e, r) {
1972
1972
  r(new Error("not implemented"));
1973
1973
  };
1974
- L.prototype._writev = null;
1975
- L.prototype.end = function(t, e, r) {
1974
+ D.prototype._writev = null;
1975
+ D.prototype.end = function(t, e, r) {
1976
1976
  var n = this._writableState;
1977
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 && An(this, n, r);
1978
1978
  };
@@ -2001,14 +2001,14 @@ function zt(t) {
2001
2001
  };
2002
2002
  }
2003
2003
  oe(B, C);
2004
- var ot = Object.keys(L.prototype);
2004
+ var ot = Object.keys(D.prototype);
2005
2005
  for (var Fe = 0; Fe < ot.length; Fe++) {
2006
2006
  var Me = ot[Fe];
2007
- B.prototype[Me] || (B.prototype[Me] = L.prototype[Me]);
2007
+ B.prototype[Me] || (B.prototype[Me] = D.prototype[Me]);
2008
2008
  }
2009
2009
  function B(t) {
2010
2010
  if (!(this instanceof B)) return new B(t);
2011
- C.call(this, t), L.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", Tn);
2011
+ C.call(this, t), D.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", Tn);
2012
2012
  }
2013
2013
  function Tn() {
2014
2014
  this.allowHalfOpen || this._writableState.ended || U(Ln, this);
@@ -2065,20 +2065,20 @@ function st(t, e) {
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);
2068
+ oe(ae, k);
2069
+ function ae(t) {
2070
+ if (!(this instanceof ae)) return new ae(t);
2071
2071
  k.call(this, t);
2072
2072
  }
2073
- fe.prototype._transform = function(t, e, r) {
2073
+ ae.prototype._transform = function(t, e, r) {
2074
2074
  r(null, t);
2075
2075
  };
2076
2076
  oe(V, g);
2077
2077
  V.Readable = C;
2078
- V.Writable = L;
2078
+ V.Writable = D;
2079
2079
  V.Duplex = B;
2080
2080
  V.Transform = k;
2081
- V.PassThrough = fe;
2081
+ V.PassThrough = ae;
2082
2082
  V.Stream = V;
2083
2083
  function V() {
2084
2084
  g.call(this);
@@ -2119,7 +2119,7 @@ class w extends Error {
2119
2119
  for (const o of i)
2120
2120
  for (const s in o) {
2121
2121
  const f = o[s];
2122
- this[s] = D(f) ? f.toString(n.encoding) : f == null ? f : JSON.parse(JSON.stringify(f));
2122
+ this[s] = N(f) ? f.toString(n.encoding) : f == null ? f : JSON.parse(JSON.stringify(f));
2123
2123
  }
2124
2124
  }
2125
2125
  }
@@ -2153,7 +2153,7 @@ class ft {
2153
2153
  this.size = e, this.length = 0, this.buf = l.allocUnsafe(e);
2154
2154
  }
2155
2155
  prepend(e) {
2156
- if (D(e)) {
2156
+ if (N(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");
@@ -2199,7 +2199,7 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2199
2199
  error: void 0,
2200
2200
  enabled: t.from_line === 1,
2201
2201
  escaping: !1,
2202
- escapeIsQuote: D(t.escape) && D(t.quote) && l.compare(t.escape, t.quote) === 0,
2202
+ escapeIsQuote: N(t.escape) && N(t.quote) && l.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
2205
  field: new ft(20),
@@ -2341,7 +2341,7 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = 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 = l.from(e.comment, e.encoding)), !D(e.comment))
2344
+ else if (typeof e.comment == "string" && (e.comment = l.from(e.comment, e.encoding)), !N(e.comment))
2345
2345
  throw new w(
2346
2346
  "CSV_INVALID_OPTION_COMMENT",
2347
2347
  [
@@ -2377,7 +2377,7 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2377
2377
  if (e.delimiter = e.delimiter.map(function(n) {
2378
2378
  if (n == null || n === !1)
2379
2379
  return l.from(",", e.encoding);
2380
- if (typeof n == "string" && (n = l.from(n, e.encoding)), !D(n) || n.length === 0)
2380
+ if (typeof n == "string" && (n = l.from(n, e.encoding)), !N(n) || n.length === 0)
2381
2381
  throw new w(
2382
2382
  "CSV_INVALID_OPTION_DELIMITER",
2383
2383
  [
@@ -2388,7 +2388,7 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2388
2388
  e
2389
2389
  );
2390
2390
  return n;
2391
- }), e.escape === void 0 || e.escape === !0 ? e.escape = l.from('"', e.encoding) : typeof e.escape == "string" ? e.escape = l.from(e.escape, e.encoding) : (e.escape === null || e.escape === !1) && (e.escape = null), e.escape !== null && !D(e.escape))
2391
+ }), e.escape === void 0 || e.escape === !0 ? e.escape = l.from('"', e.encoding) : typeof e.escape == "string" ? e.escape = l.from(e.escape, e.encoding) : (e.escape === null || e.escape === !1) && (e.escape = null), e.escape !== null && !N(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
  );
@@ -2453,7 +2453,7 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = 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 (D(e.objname)) {
2456
+ else if (N(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));
@@ -2492,7 +2492,7 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = 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 = l.from('"', e.encoding) : typeof e.quote == "string" && (e.quote = l.from(e.quote, e.encoding)), !D(e.quote))
2495
+ else if (e.quote === void 0 || e.quote === !0 ? e.quote = l.from('"', e.encoding) : typeof e.quote == "string" && (e.quote = l.from(e.quote, e.encoding)), !N(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,7 +2504,7 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = 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" || D(e.record_delimiter)) {
2507
+ else if (typeof e.record_delimiter == "string" || N(e.record_delimiter)) {
2508
2508
  if (e.record_delimiter.length === 0)
2509
2509
  throw new w(
2510
2510
  "CSV_INVALID_OPTION_RECORD_DELIMITER",
@@ -2527,7 +2527,7 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = 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" && !D(n))
2530
+ if (typeof n != "string" && !N(n))
2531
2531
  throw new w(
2532
2532
  "CSV_INVALID_OPTION_RECORD_DELIMITER",
2533
2533
  [
@@ -2692,22 +2692,22 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2692
2692
  ltrim: c,
2693
2693
  max_record_size: p,
2694
2694
  raw: m,
2695
- relax_quotes: x,
2695
+ relax_quotes: E,
2696
2696
  rtrim: y,
2697
- skip_empty_lines: S,
2698
- to: I,
2697
+ skip_empty_lines: R,
2698
+ to: S,
2699
2699
  to_line: v
2700
2700
  } = this.options;
2701
- let { comment: _, escape: R, quote: F, record_delimiter: Re } = this.options;
2702
- const { bomSkipped: Qt, previousBuf: ce, rawBuffer: Ht, escapeIsQuote: Gt } = this.state;
2701
+ let { comment: _, escape: L, quote: I, record_delimiter: se } = this.options;
2702
+ const { bomSkipped: Qt, previousBuf: he, rawBuffer: Ht, escapeIsQuote: Gt } = this.state;
2703
2703
  let b;
2704
- if (ce === void 0)
2704
+ if (he === void 0)
2705
2705
  if (n === void 0) {
2706
2706
  s();
2707
2707
  return;
2708
2708
  } else
2709
2709
  b = n;
2710
- else ce !== void 0 && n === void 0 ? b = ce : b = l.concat([ce, n]);
2710
+ else he !== void 0 && n === void 0 ? b = he : b = l.concat([he, n]);
2711
2711
  if (Qt === !1)
2712
2712
  if (f === !1)
2713
2713
  this.state.bomSkipped = !0;
@@ -2721,13 +2721,13 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2721
2721
  if (re[O].compare(b, 0, re[O].length) === 0) {
2722
2722
  const J = re[O].length;
2723
2723
  this.state.bufBytesStart += J, b = b.slice(J);
2724
- const he = at({
2724
+ const de = at({
2725
2725
  ...this.original_options,
2726
2726
  encoding: O
2727
2727
  });
2728
- for (const A in he)
2729
- this.options[A] = he[A];
2730
- ({ comment: _, escape: R, quote: F } = this.options);
2728
+ for (const A in de)
2729
+ this.options[A] = de[A];
2730
+ ({ comment: _, escape: L, quote: I } = this.options);
2731
2731
  break;
2732
2732
  }
2733
2733
  this.state.bomSkipped = !0;
@@ -2739,37 +2739,37 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
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 && se.length === 0 && this.__autoDiscoverRecordDelimiter(
2743
2743
  b,
2744
2744
  d
2745
- ) && (Re = this.options.record_delimiter);
2745
+ ) && (se = this.options.record_delimiter);
2746
2746
  const O = b[d];
2747
2747
  if (m === !0 && Ht.append(O), (O === jn || O === qn) && this.state.wasRowDelimiter === !1 && (this.state.wasRowDelimiter = !0), this.state.escaping === !0)
2748
2748
  this.state.escaping = !1;
2749
2749
  else {
2750
- if (R !== null && this.state.quoting === !0 && this.__isEscape(b, d, O) && d + R.length < Ie)
2750
+ if (L !== null && this.state.quoting === !0 && this.__isEscape(b, d, O) && d + L.length < Ie)
2751
2751
  if (Gt) {
2752
- if (this.__isQuote(b, d + R.length)) {
2753
- this.state.escaping = !0, d += R.length - 1;
2752
+ if (this.__isQuote(b, 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 += R.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(b, d))
2761
2761
  if (this.state.quoting === !0) {
2762
- const A = b[d + F.length], Z = y && this.__isCharTrimable(b, d + F.length), j = _ !== null && this.__compareBytes(_, b, d + F.length, A), X = this.__isDelimiter(
2762
+ const A = b[d + I.length], Z = y && this.__isCharTrimable(b, d + I.length), j = _ !== null && this.__compareBytes(_, b, d + I.length, A), X = this.__isDelimiter(
2763
2763
  b,
2764
- d + F.length,
2764
+ d + I.length,
2765
2765
  A
2766
- ), de = Re.length === 0 ? this.__autoDiscoverRecordDelimiter(b, d + F.length) : this.__isRecordDelimiter(A, b, d + F.length);
2767
- if (R !== null && this.__isEscape(b, d, O) && this.__isQuote(b, d + R.length))
2768
- d += R.length - 1;
2769
- else if (!A || X || de || j || Z) {
2770
- this.state.quoting = !1, this.state.wasQuoting = !0, d += F.length - 1;
2766
+ ), pe = se.length === 0 ? this.__autoDiscoverRecordDelimiter(b, d + I.length) : this.__isRecordDelimiter(A, b, d + I.length);
2767
+ if (L !== null && this.__isEscape(b, d, O) && this.__isQuote(b, d + L.length))
2768
+ d += L.length - 1;
2769
+ else if (!A || X || pe || j || Z) {
2770
+ this.state.quoting = !1, this.state.wasQuoting = !0, d += I.length - 1;
2771
2771
  continue;
2772
- } else if (x === !1) {
2772
+ } else if (E === !1) {
2773
2773
  const He = this.__error(
2774
2774
  new w(
2775
2775
  "CSV_INVALID_CLOSING_QUOTE",
@@ -2786,9 +2786,9 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2786
2786
  );
2787
2787
  if (He !== void 0) return He;
2788
2788
  } else
2789
- this.state.quoting = !1, this.state.wasQuoting = !0, this.state.field.prepend(F), d += F.length - 1;
2789
+ this.state.quoting = !1, this.state.wasQuoting = !0, this.state.field.prepend(I), d += I.length - 1;
2790
2790
  } else if (this.state.field.length !== 0) {
2791
- if (x === !1) {
2791
+ if (E === !1) {
2792
2792
  const A = this.__infoField(), Z = Object.keys(re).map(
2793
2793
  (X) => re[X].equals(this.state.field.toString()) ? X : !1
2794
2794
  ).filter(Boolean)[0], j = this.__error(
@@ -2809,7 +2809,7 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2809
2809
  if (j !== void 0) return j;
2810
2810
  }
2811
2811
  } else {
2812
- this.state.quoting = !0, d += F.length - 1;
2812
+ this.state.quoting = !0, d += I.length - 1;
2813
2813
  continue;
2814
2814
  }
2815
2815
  if (this.state.quoting === !1) {
@@ -2826,7 +2826,7 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2826
2826
  this.state.enabled = !0, this.__resetField(), this.__resetRecord(), d += A - 1;
2827
2827
  continue;
2828
2828
  }
2829
- if (S === !0 && this.state.wasQuoting === !1 && this.state.record.length === 0 && this.state.field.length === 0) {
2829
+ if (R === !0 && this.state.wasQuoting === !1 && this.state.record.length === 0 && this.state.field.length === 0) {
2830
2830
  this.info.empty_lines++, d += A - 1;
2831
2831
  continue;
2832
2832
  }
@@ -2834,9 +2834,9 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2834
2834
  const X = this.__onField();
2835
2835
  if (X !== void 0) return X;
2836
2836
  this.info.bytes = this.state.bufBytesStart + d + A;
2837
- const de = this.__onRecord(o);
2838
- if (de !== void 0) return de;
2839
- if (I !== -1 && this.info.records >= I) {
2837
+ const pe = this.__onRecord(o);
2838
+ if (pe !== void 0) return pe;
2839
+ if (S !== -1 && this.info.records >= S) {
2840
2840
  this.state.stop = !0, s();
2841
2841
  return;
2842
2842
  }
@@ -2874,8 +2874,8 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2874
2874
  this.__infoField()
2875
2875
  )
2876
2876
  );
2877
- const J = c === !1 || this.state.quoting === !0 || this.state.field.length !== 0 || !this.__isCharTrimable(b, d), he = y === !1 || this.state.wasQuoting === !1;
2878
- if (J === !0 && he === !0)
2877
+ const J = c === !1 || this.state.quoting === !0 || this.state.field.length !== 0 || !this.__isCharTrimable(b, d), de = y === !1 || this.state.wasQuoting === !1;
2878
+ if (J === !0 && de === !0)
2879
2879
  this.state.field.append(O);
2880
2880
  else {
2881
2881
  if (y === !0 && !this.__isCharTrimable(b, d))
@@ -2932,10 +2932,10 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2932
2932
  relax_column_count_more: c,
2933
2933
  raw: p,
2934
2934
  skip_records_with_empty_values: m
2935
- } = this.options, { enabled: x, record: y } = this.state;
2936
- if (x === !1)
2935
+ } = this.options, { enabled: E, record: y } = this.state;
2936
+ if (E === !1)
2937
2937
  return this.__resetRecord();
2938
- const S = y.length;
2938
+ const R = y.length;
2939
2939
  if (i === !0) {
2940
2940
  if (m === !0 && lt(y)) {
2941
2941
  this.__resetRecord();
@@ -2943,13 +2943,13 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2943
2943
  }
2944
2944
  return this.__firstLineToColumns(y);
2945
2945
  }
2946
- if (i === !1 && this.info.records === 0 && (this.state.expectedRecordLength = S), S !== this.state.expectedRecordLength) {
2947
- const I = i === !1 ? new w(
2946
+ if (i === !1 && this.info.records === 0 && (this.state.expectedRecordLength = R), R !== this.state.expectedRecordLength) {
2947
+ const S = i === !1 ? new w(
2948
2948
  "CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",
2949
2949
  [
2950
2950
  "Invalid Record Length:",
2951
2951
  `expect ${this.state.expectedRecordLength},`,
2952
- `got ${S} on line ${this.info.lines}`
2952
+ `got ${R} on line ${this.info.lines}`
2953
2953
  ],
2954
2954
  this.options,
2955
2955
  this.__infoField(),
@@ -2962,7 +2962,7 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2962
2962
  "Invalid Record Length:",
2963
2963
  `columns length is ${i.length},`,
2964
2964
  // rename columns
2965
- `got ${S} on line ${this.info.lines}`
2965
+ `got ${R} on line ${this.info.lines}`
2966
2966
  ],
2967
2967
  this.options,
2968
2968
  this.__infoField(),
@@ -2970,10 +2970,10 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2970
2970
  record: y
2971
2971
  }
2972
2972
  );
2973
- if (u === !0 || h === !0 && S < this.state.expectedRecordLength || c === !0 && S > this.state.expectedRecordLength)
2974
- this.info.invalid_field_length++, this.state.error = I;
2973
+ if (u === !0 || h === !0 && R < this.state.expectedRecordLength || c === !0 && R > this.state.expectedRecordLength)
2974
+ this.info.invalid_field_length++, this.state.error = S;
2975
2975
  else {
2976
- const v = this.__error(I);
2976
+ const v = this.__error(S);
2977
2977
  if (v) return v;
2978
2978
  }
2979
2979
  }
@@ -2986,25 +2986,25 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2986
2986
  return;
2987
2987
  }
2988
2988
  if (this.info.records++, a === 1 || this.info.records >= a) {
2989
- const { objname: I } = this.options;
2989
+ const { objname: S } = this.options;
2990
2990
  if (i !== !1) {
2991
2991
  const v = {};
2992
- for (let _ = 0, R = y.length; _ < R; _++)
2992
+ for (let _ = 0, L = y.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(y[_]) : v[i[_].name] = [v[i[_].name], y[_]] : v[i[_].name] = y[_]);
2994
2994
  if (p === !0 || f === !0) {
2995
2995
  const _ = Object.assign(
2996
2996
  { record: v },
2997
2997
  p === !0 ? { raw: this.state.rawBuffer.toString(s) } : {},
2998
2998
  f === !0 ? { info: this.__infoRecord() } : {}
2999
- ), R = this.__push(
3000
- I === void 0 ? _ : [v[I], _],
2999
+ ), L = this.__push(
3000
+ S === void 0 ? _ : [v[S], _],
3001
3001
  n
3002
3002
  );
3003
- if (R)
3004
- return R;
3003
+ if (L)
3004
+ return L;
3005
3005
  } else {
3006
3006
  const _ = this.__push(
3007
- I === void 0 ? v : [v[I], v],
3007
+ S === void 0 ? v : [v[S], v],
3008
3008
  n
3009
3009
  );
3010
3010
  if (_)
@@ -3016,14 +3016,14 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
3016
3016
  p === !0 ? { raw: this.state.rawBuffer.toString(s) } : {},
3017
3017
  f === !0 ? { info: this.__infoRecord() } : {}
3018
3018
  ), _ = this.__push(
3019
- I === void 0 ? v : [y[I], v],
3019
+ S === void 0 ? v : [y[S], v],
3020
3020
  n
3021
3021
  );
3022
3022
  if (_)
3023
3023
  return _;
3024
3024
  } else {
3025
3025
  const v = this.__push(
3026
- I === void 0 ? y : [y[I], y],
3026
+ S === void 0 ? y : [y[S], y],
3027
3027
  n
3028
3028
  );
3029
3029
  if (v)
@@ -3296,7 +3296,7 @@ const Yt = 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" || D(o)))
3299
+ if (t === void 0 && (typeof o == "string" || N(o)))
3300
3300
  t = o;
3301
3301
  else if (e === void 0 && Vt(o))
3302
3302
  e = o;
@@ -3425,50 +3425,51 @@ class ni {
3425
3425
  const m = () => {
3426
3426
  if (p) return;
3427
3427
  p = !0;
3428
- const S = a;
3429
- a = void 0, h = void 0, S != null && (Be(() => S.removeAllListeners()), Be(() => S.end())), Be(() => {
3428
+ const R = a;
3429
+ a = void 0, h = void 0, R != null && (Be(() => R.removeAllListeners()), Be(() => R.end())), Be(() => {
3430
3430
  u?.cancel();
3431
3431
  }), u = void 0;
3432
3432
  };
3433
3433
  i.signal.addEventListener("abort", m, { once: !0 });
3434
- const x = (S) => {
3435
- c || (c = !0, m(), i.signal.aborted || i.abort(S), f(S));
3434
+ const E = (R) => {
3435
+ c || (c = !0, m(), i.signal.aborted || i.abort(R), f(R));
3436
3436
  };
3437
3437
  (async () => {
3438
- a = Yt({
3438
+ const R = {
3439
3439
  ...Wt,
3440
3440
  ...r,
3441
- cast: (R, F) => ({ value: R, wasValueQuoted: F.quoting })
3442
- }), h = Kn({ chunk: o, chunkSize: e.chunkSize ?? Zn }), a.on("readable", () => {
3441
+ cast: (I, se) => ({ value: I, wasValueQuoted: se.quoting })
3442
+ };
3443
+ console.log("xxxx", R), a = Yt(R), h = Kn({ chunk: o, chunkSize: e.chunkSize ?? Zn }), a.on("readable", () => {
3443
3444
  try {
3444
3445
  if (a == null || h == null) return;
3445
- let R;
3446
- for (; (R = a.read()) != null; ) {
3446
+ let I;
3447
+ for (; (I = a.read()) != null; ) {
3447
3448
  if (c) return;
3448
- i.signal.throwIfAborted(), h.push(R);
3449
+ i.signal.throwIfAborted(), h.push(I);
3449
3450
  }
3450
- } catch (R) {
3451
- x(R);
3451
+ } catch (I) {
3452
+ E(I);
3452
3453
  }
3453
- }), a.on("error", (R) => x(R)), a.on("end", () => {
3454
+ }), a.on("error", (I) => E(I)), a.on("end", () => {
3454
3455
  c || (h?.flush(), s(ei(a)));
3455
3456
  });
3456
3457
  const S = await fetch(encodeURI(n), { signal: i.signal });
3457
3458
  if (!S.ok || S.body == null)
3458
3459
  throw await Qn(S, `Failed to fetch '${n}' file.`, "datapos-connector-file-store-emulator|Connector|retrieve");
3459
3460
  u = S.body.getReader();
3460
- const I = new TextDecoder(e.encodingId);
3461
- let v = await u.read();
3462
- for (; !v.done; ) {
3461
+ const v = new TextDecoder(e.encodingId);
3462
+ let _ = await u.read();
3463
+ for (; !_.done; ) {
3463
3464
  if (c) return;
3464
3465
  i.signal.throwIfAborted();
3465
- const R = I.decode(v.value, { stream: !0 });
3466
- R.length > 0 && a.write(R), v = await u.read();
3466
+ const I = v.decode(_.value, { stream: !0 });
3467
+ I.length > 0 && a.write(I), _ = await u.read();
3467
3468
  }
3468
3469
  if (c) return;
3469
- const _ = I.decode();
3470
- _.length > 0 && a.write(_), a.end();
3471
- })().catch((S) => x(S));
3470
+ const L = v.decode();
3471
+ L.length > 0 && a.write(L), a.end();
3472
+ })().catch((R) => E(R));
3472
3473
  });
3473
3474
  }
3474
3475
  /**
@@ -3530,15 +3531,15 @@ async function ri(t, e) {
3530
3531
  try {
3531
3532
  const m = [];
3532
3533
  c.on("readable", () => {
3533
- let x;
3534
- for (; (x = c.read()) != null; ) {
3534
+ let E;
3535
+ for (; (E = c.read()) != null; ) {
3535
3536
  u++;
3536
- const y = x.length;
3537
- a != null && (h += Math.abs(y - a)), a = y, f += y, m.push(x);
3537
+ const y = E.length;
3538
+ a != null && (h += Math.abs(y - a)), a = y, f += y, m.push(E);
3538
3539
  }
3539
3540
  }), c.on("error", () => p()), c.on("end", () => {
3540
- const x = f / u;
3541
- (!i || h <= i) && (!n || x > n) && (r = s, n = x, i = h, o = [...m]), p();
3541
+ const E = f / u;
3542
+ (!i || h <= i) && (!n || E > n) && (r = s, n = E, i = h, o = [...m]), p();
3542
3543
  }), c.write(t), c.end();
3543
3544
  } catch {
3544
3545
  p();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-tool-csv-parse",
3
- "version": "0.0.130",
3
+ "version": "0.0.131",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "private": false,