@compass-labs/api-sdk 1.0.26 → 1.0.27-rc0

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.
package/bin/mcp-server.js CHANGED
@@ -5375,12 +5375,14 @@ var require_bom_handling = __commonJS((exports) => {
5375
5375
  }
5376
5376
  StripBOMWrapper.prototype.write = function(buf) {
5377
5377
  var res = this.decoder.write(buf);
5378
- if (this.pass || !res)
5378
+ if (this.pass || !res) {
5379
5379
  return res;
5380
+ }
5380
5381
  if (res[0] === BOMChar) {
5381
5382
  res = res.slice(1);
5382
- if (typeof this.options.stripBOM === "function")
5383
+ if (typeof this.options.stripBOM === "function") {
5383
5384
  this.options.stripBOM();
5385
+ }
5384
5386
  }
5385
5387
  this.pass = true;
5386
5388
  return res;
@@ -5390,6 +5392,19 @@ var require_bom_handling = __commonJS((exports) => {
5390
5392
  };
5391
5393
  });
5392
5394
 
5395
+ // node_modules/raw-body/node_modules/iconv-lite/lib/helpers/merge-exports.js
5396
+ var require_merge_exports = __commonJS((exports, module) => {
5397
+ var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn;
5398
+ function mergeModules(target, module2) {
5399
+ for (var key in module2) {
5400
+ if (hasOwn(module2, key)) {
5401
+ target[key] = module2[key];
5402
+ }
5403
+ }
5404
+ }
5405
+ module.exports = mergeModules;
5406
+ });
5407
+
5393
5408
  // node_modules/raw-body/node_modules/iconv-lite/encodings/internal.js
5394
5409
  var require_internal = __commonJS((exports, module) => {
5395
5410
  var Buffer2 = require_safer().Buffer;
@@ -5407,9 +5422,11 @@ var require_internal = __commonJS((exports, module) => {
5407
5422
  function InternalCodec(codecOptions, iconv) {
5408
5423
  this.enc = codecOptions.encodingName;
5409
5424
  this.bomAware = codecOptions.bomAware;
5410
- if (this.enc === "base64")
5425
+ if (this.enc === "base64") {
5411
5426
  this.encoder = InternalEncoderBase64;
5412
- else if (this.enc === "cesu8") {
5427
+ } else if (this.enc === "utf8") {
5428
+ this.encoder = InternalEncoderUtf8;
5429
+ } else if (this.enc === "cesu8") {
5413
5430
  this.enc = "utf8";
5414
5431
  this.encoder = InternalEncoderCesu8;
5415
5432
  if (Buffer2.from("eda0bdedb2a9", "hex").toString() !== "\uD83D\uDCA9") {
@@ -5421,8 +5438,6 @@ var require_internal = __commonJS((exports, module) => {
5421
5438
  InternalCodec.prototype.encoder = InternalEncoder;
5422
5439
  InternalCodec.prototype.decoder = InternalDecoder;
5423
5440
  var StringDecoder = __require("string_decoder").StringDecoder;
5424
- if (!StringDecoder.prototype.end)
5425
- StringDecoder.prototype.end = function() {};
5426
5441
  function InternalDecoder(options, codec) {
5427
5442
  this.decoder = new StringDecoder(codec.enc);
5428
5443
  }
@@ -5457,12 +5472,13 @@ var require_internal = __commonJS((exports, module) => {
5457
5472
  };
5458
5473
  function InternalEncoderCesu8(options, codec) {}
5459
5474
  InternalEncoderCesu8.prototype.write = function(str) {
5460
- var buf = Buffer2.alloc(str.length * 3), bufIdx = 0;
5475
+ var buf = Buffer2.alloc(str.length * 3);
5476
+ var bufIdx = 0;
5461
5477
  for (var i = 0;i < str.length; i++) {
5462
5478
  var charCode = str.charCodeAt(i);
5463
- if (charCode < 128)
5479
+ if (charCode < 128) {
5464
5480
  buf[bufIdx++] = charCode;
5465
- else if (charCode < 2048) {
5481
+ } else if (charCode < 2048) {
5466
5482
  buf[bufIdx++] = 192 + (charCode >>> 6);
5467
5483
  buf[bufIdx++] = 128 + (charCode & 63);
5468
5484
  } else {
@@ -5481,7 +5497,10 @@ var require_internal = __commonJS((exports, module) => {
5481
5497
  this.defaultCharUnicode = codec.defaultCharUnicode;
5482
5498
  }
5483
5499
  InternalDecoderCesu8.prototype.write = function(buf) {
5484
- var acc = this.acc, contBytes = this.contBytes, accBytes = this.accBytes, res = "";
5500
+ var acc = this.acc;
5501
+ var contBytes = this.contBytes;
5502
+ var accBytes = this.accBytes;
5503
+ var res = "";
5485
5504
  for (var i = 0;i < buf.length; i++) {
5486
5505
  var curByte = buf[i];
5487
5506
  if ((curByte & 192) !== 128) {
@@ -5508,12 +5527,13 @@ var require_internal = __commonJS((exports, module) => {
5508
5527
  contBytes--;
5509
5528
  accBytes++;
5510
5529
  if (contBytes === 0) {
5511
- if (accBytes === 2 && acc < 128 && acc > 0)
5530
+ if (accBytes === 2 && acc < 128 && acc > 0) {
5512
5531
  res += this.defaultCharUnicode;
5513
- else if (accBytes === 3 && acc < 2048)
5532
+ } else if (accBytes === 3 && acc < 2048) {
5514
5533
  res += this.defaultCharUnicode;
5515
- else
5534
+ } else {
5516
5535
  res += String.fromCharCode(acc);
5536
+ }
5517
5537
  }
5518
5538
  } else {
5519
5539
  res += this.defaultCharUnicode;
@@ -5527,10 +5547,35 @@ var require_internal = __commonJS((exports, module) => {
5527
5547
  };
5528
5548
  InternalDecoderCesu8.prototype.end = function() {
5529
5549
  var res = 0;
5530
- if (this.contBytes > 0)
5550
+ if (this.contBytes > 0) {
5531
5551
  res += this.defaultCharUnicode;
5552
+ }
5532
5553
  return res;
5533
5554
  };
5555
+ function InternalEncoderUtf8(options, codec) {
5556
+ this.highSurrogate = "";
5557
+ }
5558
+ InternalEncoderUtf8.prototype.write = function(str) {
5559
+ if (this.highSurrogate) {
5560
+ str = this.highSurrogate + str;
5561
+ this.highSurrogate = "";
5562
+ }
5563
+ if (str.length > 0) {
5564
+ var charCode = str.charCodeAt(str.length - 1);
5565
+ if (charCode >= 55296 && charCode < 56320) {
5566
+ this.highSurrogate = str[str.length - 1];
5567
+ str = str.slice(0, str.length - 1);
5568
+ }
5569
+ }
5570
+ return Buffer2.from(str, this.enc);
5571
+ };
5572
+ InternalEncoderUtf8.prototype.end = function() {
5573
+ if (this.highSurrogate) {
5574
+ var str = this.highSurrogate;
5575
+ this.highSurrogate = "";
5576
+ return Buffer2.from(str, this.enc);
5577
+ }
5578
+ };
5534
5579
  });
5535
5580
 
5536
5581
  // node_modules/raw-body/node_modules/iconv-lite/encodings/utf32.js
@@ -5559,8 +5604,8 @@ var require_utf32 = __commonJS((exports) => {
5559
5604
  var offset = 0;
5560
5605
  for (var i = 0;i < src.length; i += 2) {
5561
5606
  var code = src.readUInt16LE(i);
5562
- var isHighSurrogate = 55296 <= code && code < 56320;
5563
- var isLowSurrogate = 56320 <= code && code < 57344;
5607
+ var isHighSurrogate = code >= 55296 && code < 56320;
5608
+ var isLowSurrogate = code >= 56320 && code < 57344;
5564
5609
  if (this.highSurrogate) {
5565
5610
  if (isHighSurrogate || !isLowSurrogate) {
5566
5611
  write32.call(dst, this.highSurrogate, offset);
@@ -5573,26 +5618,29 @@ var require_utf32 = __commonJS((exports) => {
5573
5618
  continue;
5574
5619
  }
5575
5620
  }
5576
- if (isHighSurrogate)
5621
+ if (isHighSurrogate) {
5577
5622
  this.highSurrogate = code;
5578
- else {
5623
+ } else {
5579
5624
  write32.call(dst, code, offset);
5580
5625
  offset += 4;
5581
5626
  this.highSurrogate = 0;
5582
5627
  }
5583
5628
  }
5584
- if (offset < dst.length)
5629
+ if (offset < dst.length) {
5585
5630
  dst = dst.slice(0, offset);
5631
+ }
5586
5632
  return dst;
5587
5633
  };
5588
5634
  Utf32Encoder.prototype.end = function() {
5589
- if (!this.highSurrogate)
5635
+ if (!this.highSurrogate) {
5590
5636
  return;
5637
+ }
5591
5638
  var buf = Buffer2.alloc(4);
5592
- if (this.isLE)
5639
+ if (this.isLE) {
5593
5640
  buf.writeUInt32LE(this.highSurrogate, 0);
5594
- else
5641
+ } else {
5595
5642
  buf.writeUInt32BE(this.highSurrogate, 0);
5643
+ }
5596
5644
  this.highSurrogate = 0;
5597
5645
  return buf;
5598
5646
  };
@@ -5602,8 +5650,9 @@ var require_utf32 = __commonJS((exports) => {
5602
5650
  this.overflow = [];
5603
5651
  }
5604
5652
  Utf32Decoder.prototype.write = function(src) {
5605
- if (src.length === 0)
5653
+ if (src.length === 0) {
5606
5654
  return "";
5655
+ }
5607
5656
  var i = 0;
5608
5657
  var codepoint = 0;
5609
5658
  var dst = Buffer2.alloc(src.length + 4);
@@ -5612,8 +5661,9 @@ var require_utf32 = __commonJS((exports) => {
5612
5661
  var overflow = this.overflow;
5613
5662
  var badChar = this.badChar;
5614
5663
  if (overflow.length > 0) {
5615
- for (;i < src.length && overflow.length < 4; i++)
5664
+ for (;i < src.length && overflow.length < 4; i++) {
5616
5665
  overflow.push(src[i]);
5666
+ }
5617
5667
  if (overflow.length === 4) {
5618
5668
  if (isLE) {
5619
5669
  codepoint = overflow[i] | overflow[i + 1] << 8 | overflow[i + 2] << 16 | overflow[i + 3] << 24;
@@ -5664,8 +5714,9 @@ var require_utf32 = __commonJS((exports) => {
5664
5714
  Utf32AutoCodec.prototype.decoder = Utf32AutoDecoder;
5665
5715
  function Utf32AutoEncoder(options, codec) {
5666
5716
  options = options || {};
5667
- if (options.addBOM === undefined)
5717
+ if (options.addBOM === undefined) {
5668
5718
  options.addBOM = true;
5719
+ }
5669
5720
  this.encoder = codec.iconv.getEncoder(options.defaultEncoding || "utf-32le", options);
5670
5721
  }
5671
5722
  Utf32AutoEncoder.prototype.write = function(str) {
@@ -5685,13 +5736,15 @@ var require_utf32 = __commonJS((exports) => {
5685
5736
  if (!this.decoder) {
5686
5737
  this.initialBufs.push(buf);
5687
5738
  this.initialBufsLen += buf.length;
5688
- if (this.initialBufsLen < 32)
5739
+ if (this.initialBufsLen < 32) {
5689
5740
  return "";
5741
+ }
5690
5742
  var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
5691
5743
  this.decoder = this.iconv.getDecoder(encoding, this.options);
5692
5744
  var resStr = "";
5693
- for (var i = 0;i < this.initialBufs.length; i++)
5745
+ for (var i = 0;i < this.initialBufs.length; i++) {
5694
5746
  resStr += this.decoder.write(this.initialBufs[i]);
5747
+ }
5695
5748
  this.initialBufs.length = this.initialBufsLen = 0;
5696
5749
  return resStr;
5697
5750
  }
@@ -5702,11 +5755,13 @@ var require_utf32 = __commonJS((exports) => {
5702
5755
  var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
5703
5756
  this.decoder = this.iconv.getDecoder(encoding, this.options);
5704
5757
  var resStr = "";
5705
- for (var i = 0;i < this.initialBufs.length; i++)
5758
+ for (var i = 0;i < this.initialBufs.length; i++) {
5706
5759
  resStr += this.decoder.write(this.initialBufs[i]);
5760
+ }
5707
5761
  var trail = this.decoder.end();
5708
- if (trail)
5762
+ if (trail) {
5709
5763
  resStr += trail;
5764
+ }
5710
5765
  this.initialBufs.length = this.initialBufsLen = 0;
5711
5766
  return resStr;
5712
5767
  }
@@ -5715,9 +5770,11 @@ var require_utf32 = __commonJS((exports) => {
5715
5770
  function detectEncoding(bufs, defaultEncoding) {
5716
5771
  var b = [];
5717
5772
  var charsProcessed = 0;
5718
- var invalidLE = 0, invalidBE = 0;
5719
- var bmpCharsLE = 0, bmpCharsBE = 0;
5720
- outer_loop:
5773
+ var invalidLE = 0;
5774
+ var invalidBE = 0;
5775
+ var bmpCharsLE = 0;
5776
+ var bmpCharsBE = 0;
5777
+ outerLoop:
5721
5778
  for (var i = 0;i < bufs.length; i++) {
5722
5779
  var buf = bufs[i];
5723
5780
  for (var j2 = 0;j2 < buf.length; j2++) {
@@ -5742,7 +5799,7 @@ var require_utf32 = __commonJS((exports) => {
5742
5799
  b.length = 0;
5743
5800
  charsProcessed++;
5744
5801
  if (charsProcessed >= 100) {
5745
- break outer_loop;
5802
+ break outerLoop;
5746
5803
  }
5747
5804
  }
5748
5805
  }
@@ -5778,9 +5835,12 @@ var require_utf16 = __commonJS((exports) => {
5778
5835
  this.overflowByte = -1;
5779
5836
  }
5780
5837
  Utf16BEDecoder.prototype.write = function(buf) {
5781
- if (buf.length == 0)
5838
+ if (buf.length == 0) {
5782
5839
  return "";
5783
- var buf2 = Buffer2.alloc(buf.length + 1), i = 0, j2 = 0;
5840
+ }
5841
+ var buf2 = Buffer2.alloc(buf.length + 1);
5842
+ var i = 0;
5843
+ var j2 = 0;
5784
5844
  if (this.overflowByte !== -1) {
5785
5845
  buf2[0] = buf[0];
5786
5846
  buf2[1] = this.overflowByte;
@@ -5805,8 +5865,9 @@ var require_utf16 = __commonJS((exports) => {
5805
5865
  Utf16Codec.prototype.decoder = Utf16Decoder;
5806
5866
  function Utf16Encoder(options, codec) {
5807
5867
  options = options || {};
5808
- if (options.addBOM === undefined)
5868
+ if (options.addBOM === undefined) {
5809
5869
  options.addBOM = true;
5870
+ }
5810
5871
  this.encoder = codec.iconv.getEncoder("utf-16le", options);
5811
5872
  }
5812
5873
  Utf16Encoder.prototype.write = function(str) {
@@ -5826,13 +5887,15 @@ var require_utf16 = __commonJS((exports) => {
5826
5887
  if (!this.decoder) {
5827
5888
  this.initialBufs.push(buf);
5828
5889
  this.initialBufsLen += buf.length;
5829
- if (this.initialBufsLen < 16)
5890
+ if (this.initialBufsLen < 16) {
5830
5891
  return "";
5892
+ }
5831
5893
  var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
5832
5894
  this.decoder = this.iconv.getDecoder(encoding, this.options);
5833
5895
  var resStr = "";
5834
- for (var i = 0;i < this.initialBufs.length; i++)
5896
+ for (var i = 0;i < this.initialBufs.length; i++) {
5835
5897
  resStr += this.decoder.write(this.initialBufs[i]);
5898
+ }
5836
5899
  this.initialBufs.length = this.initialBufsLen = 0;
5837
5900
  return resStr;
5838
5901
  }
@@ -5843,11 +5906,13 @@ var require_utf16 = __commonJS((exports) => {
5843
5906
  var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
5844
5907
  this.decoder = this.iconv.getDecoder(encoding, this.options);
5845
5908
  var resStr = "";
5846
- for (var i = 0;i < this.initialBufs.length; i++)
5909
+ for (var i = 0;i < this.initialBufs.length; i++) {
5847
5910
  resStr += this.decoder.write(this.initialBufs[i]);
5911
+ }
5848
5912
  var trail = this.decoder.end();
5849
- if (trail)
5913
+ if (trail) {
5850
5914
  resStr += trail;
5915
+ }
5851
5916
  this.initialBufs.length = this.initialBufsLen = 0;
5852
5917
  return resStr;
5853
5918
  }
@@ -5856,8 +5921,9 @@ var require_utf16 = __commonJS((exports) => {
5856
5921
  function detectEncoding(bufs, defaultEncoding) {
5857
5922
  var b = [];
5858
5923
  var charsProcessed = 0;
5859
- var asciiCharsLE = 0, asciiCharsBE = 0;
5860
- outer_loop:
5924
+ var asciiCharsLE = 0;
5925
+ var asciiCharsBE = 0;
5926
+ outerLoop:
5861
5927
  for (var i = 0;i < bufs.length; i++) {
5862
5928
  var buf = bufs[i];
5863
5929
  for (var j2 = 0;j2 < buf.length; j2++) {
@@ -5876,7 +5942,7 @@ var require_utf16 = __commonJS((exports) => {
5876
5942
  b.length = 0;
5877
5943
  charsProcessed++;
5878
5944
  if (charsProcessed >= 100) {
5879
- break outer_loop;
5945
+ break outerLoop;
5880
5946
  }
5881
5947
  }
5882
5948
  }
@@ -5917,14 +5983,18 @@ var require_utf7 = __commonJS((exports) => {
5917
5983
  }
5918
5984
  var base64Regex2 = /[A-Za-z0-9\/+]/;
5919
5985
  var base64Chars = [];
5920
- for (i = 0;i < 256; i++)
5986
+ for (i = 0;i < 256; i++) {
5921
5987
  base64Chars[i] = base64Regex2.test(String.fromCharCode(i));
5988
+ }
5922
5989
  var i;
5923
5990
  var plusChar = 43;
5924
5991
  var minusChar = 45;
5925
5992
  var andChar = 38;
5926
5993
  Utf7Decoder.prototype.write = function(buf) {
5927
- var res = "", lastI = 0, inBase64 = this.inBase64, base64Accum = this.base64Accum;
5994
+ var res = "";
5995
+ var lastI = 0;
5996
+ var inBase64 = this.inBase64;
5997
+ var base64Accum = this.base64Accum;
5928
5998
  for (var i2 = 0;i2 < buf.length; i2++) {
5929
5999
  if (!inBase64) {
5930
6000
  if (buf[i2] == plusChar) {
@@ -5940,8 +6010,9 @@ var require_utf7 = __commonJS((exports) => {
5940
6010
  var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i2), "ascii");
5941
6011
  res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be");
5942
6012
  }
5943
- if (buf[i2] != minusChar)
6013
+ if (buf[i2] != minusChar) {
5944
6014
  i2--;
6015
+ }
5945
6016
  lastI = i2 + 1;
5946
6017
  inBase64 = false;
5947
6018
  base64Accum = "";
@@ -5963,8 +6034,9 @@ var require_utf7 = __commonJS((exports) => {
5963
6034
  };
5964
6035
  Utf7Decoder.prototype.end = function() {
5965
6036
  var res = "";
5966
- if (this.inBase64 && this.base64Accum.length > 0)
6037
+ if (this.inBase64 && this.base64Accum.length > 0) {
5967
6038
  res = this.iconv.decode(Buffer2.from(this.base64Accum, "base64"), "utf16-be");
6039
+ }
5968
6040
  this.inBase64 = false;
5969
6041
  this.base64Accum = "";
5970
6042
  return res;
@@ -5983,10 +6055,14 @@ var require_utf7 = __commonJS((exports) => {
5983
6055
  this.base64AccumIdx = 0;
5984
6056
  }
5985
6057
  Utf7IMAPEncoder.prototype.write = function(str) {
5986
- var inBase64 = this.inBase64, base64Accum = this.base64Accum, base64AccumIdx = this.base64AccumIdx, buf = Buffer2.alloc(str.length * 5 + 10), bufIdx = 0;
6058
+ var inBase64 = this.inBase64;
6059
+ var base64Accum = this.base64Accum;
6060
+ var base64AccumIdx = this.base64AccumIdx;
6061
+ var buf = Buffer2.alloc(str.length * 5 + 10);
6062
+ var bufIdx = 0;
5987
6063
  for (var i2 = 0;i2 < str.length; i2++) {
5988
6064
  var uChar = str.charCodeAt(i2);
5989
- if (32 <= uChar && uChar <= 126) {
6065
+ if (uChar >= 32 && uChar <= 126) {
5990
6066
  if (inBase64) {
5991
6067
  if (base64AccumIdx > 0) {
5992
6068
  bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx);
@@ -5997,8 +6073,9 @@ var require_utf7 = __commonJS((exports) => {
5997
6073
  }
5998
6074
  if (!inBase64) {
5999
6075
  buf[bufIdx++] = uChar;
6000
- if (uChar === andChar)
6076
+ if (uChar === andChar) {
6001
6077
  buf[bufIdx++] = minusChar;
6078
+ }
6002
6079
  }
6003
6080
  } else {
6004
6081
  if (!inBase64) {
@@ -6020,7 +6097,8 @@ var require_utf7 = __commonJS((exports) => {
6020
6097
  return buf.slice(0, bufIdx);
6021
6098
  };
6022
6099
  Utf7IMAPEncoder.prototype.end = function() {
6023
- var buf = Buffer2.alloc(10), bufIdx = 0;
6100
+ var buf = Buffer2.alloc(10);
6101
+ var bufIdx = 0;
6024
6102
  if (this.inBase64) {
6025
6103
  if (this.base64AccumIdx > 0) {
6026
6104
  bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx);
@@ -6039,7 +6117,10 @@ var require_utf7 = __commonJS((exports) => {
6039
6117
  var base64IMAPChars = base64Chars.slice();
6040
6118
  base64IMAPChars[44] = true;
6041
6119
  Utf7IMAPDecoder.prototype.write = function(buf) {
6042
- var res = "", lastI = 0, inBase64 = this.inBase64, base64Accum = this.base64Accum;
6120
+ var res = "";
6121
+ var lastI = 0;
6122
+ var inBase64 = this.inBase64;
6123
+ var base64Accum = this.base64Accum;
6043
6124
  for (var i2 = 0;i2 < buf.length; i2++) {
6044
6125
  if (!inBase64) {
6045
6126
  if (buf[i2] == andChar) {
@@ -6055,8 +6136,9 @@ var require_utf7 = __commonJS((exports) => {
6055
6136
  var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i2), "ascii").replace(/,/g, "/");
6056
6137
  res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be");
6057
6138
  }
6058
- if (buf[i2] != minusChar)
6139
+ if (buf[i2] != minusChar) {
6059
6140
  i2--;
6141
+ }
6060
6142
  lastI = i2 + 1;
6061
6143
  inBase64 = false;
6062
6144
  base64Accum = "";
@@ -6078,8 +6160,9 @@ var require_utf7 = __commonJS((exports) => {
6078
6160
  };
6079
6161
  Utf7IMAPDecoder.prototype.end = function() {
6080
6162
  var res = "";
6081
- if (this.inBase64 && this.base64Accum.length > 0)
6163
+ if (this.inBase64 && this.base64Accum.length > 0) {
6082
6164
  res = this.iconv.decode(Buffer2.from(this.base64Accum, "base64"), "utf16-be");
6165
+ }
6083
6166
  this.inBase64 = false;
6084
6167
  this.base64Accum = "";
6085
6168
  return res;
@@ -6091,20 +6174,24 @@ var require_sbcs_codec = __commonJS((exports) => {
6091
6174
  var Buffer2 = require_safer().Buffer;
6092
6175
  exports._sbcs = SBCSCodec;
6093
6176
  function SBCSCodec(codecOptions, iconv) {
6094
- if (!codecOptions)
6177
+ if (!codecOptions) {
6095
6178
  throw new Error("SBCS codec is called without the data.");
6096
- if (!codecOptions.chars || codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256)
6179
+ }
6180
+ if (!codecOptions.chars || codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256) {
6097
6181
  throw new Error("Encoding '" + codecOptions.type + "' has incorrect 'chars' (must be of len 128 or 256)");
6182
+ }
6098
6183
  if (codecOptions.chars.length === 128) {
6099
6184
  var asciiString = "";
6100
- for (var i = 0;i < 128; i++)
6185
+ for (var i = 0;i < 128; i++) {
6101
6186
  asciiString += String.fromCharCode(i);
6187
+ }
6102
6188
  codecOptions.chars = asciiString + codecOptions.chars;
6103
6189
  }
6104
6190
  this.decodeBuf = Buffer2.from(codecOptions.chars, "ucs2");
6105
6191
  var encodeBuf = Buffer2.alloc(65536, iconv.defaultCharSingleByte.charCodeAt(0));
6106
- for (var i = 0;i < codecOptions.chars.length; i++)
6192
+ for (var i = 0;i < codecOptions.chars.length; i++) {
6107
6193
  encodeBuf[codecOptions.chars.charCodeAt(i)] = i;
6194
+ }
6108
6195
  this.encodeBuf = encodeBuf;
6109
6196
  }
6110
6197
  SBCSCodec.prototype.encoder = SBCSEncoder;
@@ -6114,8 +6201,9 @@ var require_sbcs_codec = __commonJS((exports) => {
6114
6201
  }
6115
6202
  SBCSEncoder.prototype.write = function(str) {
6116
6203
  var buf = Buffer2.alloc(str.length);
6117
- for (var i = 0;i < str.length; i++)
6204
+ for (var i = 0;i < str.length; i++) {
6118
6205
  buf[i] = this.encodeBuf[str.charCodeAt(i)];
6206
+ }
6119
6207
  return buf;
6120
6208
  };
6121
6209
  SBCSEncoder.prototype.end = function() {};
@@ -6125,7 +6213,8 @@ var require_sbcs_codec = __commonJS((exports) => {
6125
6213
  SBCSDecoder.prototype.write = function(buf) {
6126
6214
  var decodeBuf = this.decodeBuf;
6127
6215
  var newBuf = Buffer2.alloc(buf.length * 2);
6128
- var idx1 = 0, idx2 = 0;
6216
+ var idx1 = 0;
6217
+ var idx2 = 0;
6129
6218
  for (var i = 0;i < buf.length; i++) {
6130
6219
  idx1 = buf[i] * 2;
6131
6220
  idx2 = i * 2;
@@ -6140,12 +6229,12 @@ var require_sbcs_codec = __commonJS((exports) => {
6140
6229
  // node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-data.js
6141
6230
  var require_sbcs_data = __commonJS((exports, module) => {
6142
6231
  module.exports = {
6143
- "10029": "maccenteuro",
6232
+ 10029: "maccenteuro",
6144
6233
  maccenteuro: {
6145
6234
  type: "_sbcs",
6146
6235
  chars: "ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ"
6147
6236
  },
6148
- "808": "cp808",
6237
+ 808: "cp808",
6149
6238
  ibm808: "cp808",
6150
6239
  cp808: {
6151
6240
  type: "_sbcs",
@@ -6241,11 +6330,11 @@ var require_sbcs_data = __commonJS((exports, module) => {
6241
6330
  tis6200: "tis620",
6242
6331
  tis62025291: "tis620",
6243
6332
  tis62025330: "tis620",
6244
- "10000": "macroman",
6245
- "10006": "macgreek",
6246
- "10007": "maccyrillic",
6247
- "10079": "maciceland",
6248
- "10081": "macturkish",
6333
+ 1e4: "macroman",
6334
+ 10006: "macgreek",
6335
+ 10007: "maccyrillic",
6336
+ 10079: "maciceland",
6337
+ 10081: "macturkish",
6249
6338
  cspc8codepage437: "cp437",
6250
6339
  cspc775baltic: "cp775",
6251
6340
  cspc850multilingual: "cp850",
@@ -6261,11 +6350,11 @@ var require_sbcs_data = __commonJS((exports, module) => {
6261
6350
  msarab: "cp1256",
6262
6351
  winbaltrim: "cp1257",
6263
6352
  cp20866: "koi8r",
6264
- "20866": "koi8r",
6353
+ 20866: "koi8r",
6265
6354
  ibm878: "koi8r",
6266
6355
  cskoi8r: "koi8r",
6267
6356
  cp21866: "koi8u",
6268
- "21866": "koi8u",
6357
+ 21866: "koi8u",
6269
6358
  ibm1168: "koi8u",
6270
6359
  strk10482002: "rk1048",
6271
6360
  tcvn5712: "tcvn",
@@ -6752,21 +6841,25 @@ var require_dbcs_codec = __commonJS((exports) => {
6752
6841
  var NODE_START = -1000;
6753
6842
  var UNASSIGNED_NODE = new Array(256);
6754
6843
  var DEF_CHAR = -1;
6755
- for (i = 0;i < 256; i++)
6844
+ for (i = 0;i < 256; i++) {
6756
6845
  UNASSIGNED_NODE[i] = UNASSIGNED;
6846
+ }
6757
6847
  var i;
6758
6848
  function DBCSCodec(codecOptions, iconv) {
6759
6849
  this.encodingName = codecOptions.encodingName;
6760
- if (!codecOptions)
6850
+ if (!codecOptions) {
6761
6851
  throw new Error("DBCS codec is called without the data.");
6762
- if (!codecOptions.table)
6852
+ }
6853
+ if (!codecOptions.table) {
6763
6854
  throw new Error("Encoding '" + this.encodingName + "' has no data.");
6855
+ }
6764
6856
  var mappingTable = codecOptions.table();
6765
6857
  this.decodeTables = [];
6766
6858
  this.decodeTables[0] = UNASSIGNED_NODE.slice(0);
6767
6859
  this.decodeTableSeq = [];
6768
- for (var i2 = 0;i2 < mappingTable.length; i2++)
6860
+ for (var i2 = 0;i2 < mappingTable.length; i2++) {
6769
6861
  this._addDecodeChunk(mappingTable[i2]);
6862
+ }
6770
6863
  if (typeof codecOptions.gb18030 === "function") {
6771
6864
  this.gb18030 = codecOptions.gb18030();
6772
6865
  var commonThirdByteNodeIdx = this.decodeTables.length;
@@ -6793,8 +6886,9 @@ var require_dbcs_codec = __commonJS((exports) => {
6793
6886
  }
6794
6887
  var fourthByteNode = this.decodeTables[NODE_START - thirdByteNode[k2]];
6795
6888
  for (var l = 48;l <= 57; l++) {
6796
- if (fourthByteNode[l] === UNASSIGNED)
6889
+ if (fourthByteNode[l] === UNASSIGNED) {
6797
6890
  fourthByteNode[l] = GB18030_CODE;
6891
+ }
6798
6892
  }
6799
6893
  }
6800
6894
  }
@@ -6804,20 +6898,25 @@ var require_dbcs_codec = __commonJS((exports) => {
6804
6898
  this.encodeTable = [];
6805
6899
  this.encodeTableSeq = [];
6806
6900
  var skipEncodeChars = {};
6807
- if (codecOptions.encodeSkipVals)
6901
+ if (codecOptions.encodeSkipVals) {
6808
6902
  for (var i2 = 0;i2 < codecOptions.encodeSkipVals.length; i2++) {
6809
6903
  var val = codecOptions.encodeSkipVals[i2];
6810
- if (typeof val === "number")
6904
+ if (typeof val === "number") {
6811
6905
  skipEncodeChars[val] = true;
6812
- else
6813
- for (var j2 = val.from;j2 <= val.to; j2++)
6906
+ } else {
6907
+ for (var j2 = val.from;j2 <= val.to; j2++) {
6814
6908
  skipEncodeChars[j2] = true;
6909
+ }
6910
+ }
6815
6911
  }
6912
+ }
6816
6913
  this._fillEncodeTable(0, 0, skipEncodeChars);
6817
6914
  if (codecOptions.encodeAdd) {
6818
- for (var uChar in codecOptions.encodeAdd)
6819
- if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar))
6915
+ for (var uChar in codecOptions.encodeAdd) {
6916
+ if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar)) {
6820
6917
  this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]);
6918
+ }
6919
+ }
6821
6920
  }
6822
6921
  this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)];
6823
6922
  if (this.defCharSB === UNASSIGNED)
@@ -6829,10 +6928,12 @@ var require_dbcs_codec = __commonJS((exports) => {
6829
6928
  DBCSCodec.prototype.decoder = DBCSDecoder;
6830
6929
  DBCSCodec.prototype._getDecodeTrieNode = function(addr) {
6831
6930
  var bytes = [];
6832
- for (;addr > 0; addr >>>= 8)
6931
+ for (;addr > 0; addr >>>= 8) {
6833
6932
  bytes.push(addr & 255);
6834
- if (bytes.length == 0)
6933
+ }
6934
+ if (bytes.length == 0) {
6835
6935
  bytes.push(0);
6936
+ }
6836
6937
  var node = this.decodeTables[0];
6837
6938
  for (var i2 = bytes.length - 1;i2 > 0; i2--) {
6838
6939
  var val = node[bytes[i2]];
@@ -6841,8 +6942,9 @@ var require_dbcs_codec = __commonJS((exports) => {
6841
6942
  this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));
6842
6943
  } else if (val <= NODE_START) {
6843
6944
  node = this.decodeTables[NODE_START - val];
6844
- } else
6945
+ } else {
6845
6946
  throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16));
6947
+ }
6846
6948
  }
6847
6949
  return node;
6848
6950
  };
@@ -6855,45 +6957,53 @@ var require_dbcs_codec = __commonJS((exports) => {
6855
6957
  if (typeof part === "string") {
6856
6958
  for (var l = 0;l < part.length; ) {
6857
6959
  var code = part.charCodeAt(l++);
6858
- if (55296 <= code && code < 56320) {
6960
+ if (code >= 55296 && code < 56320) {
6859
6961
  var codeTrail = part.charCodeAt(l++);
6860
- if (56320 <= codeTrail && codeTrail < 57344)
6962
+ if (codeTrail >= 56320 && codeTrail < 57344) {
6861
6963
  writeTable[curAddr++] = 65536 + (code - 55296) * 1024 + (codeTrail - 56320);
6862
- else
6964
+ } else {
6863
6965
  throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]);
6864
- } else if (4080 < code && code <= 4095) {
6966
+ }
6967
+ } else if (code > 4080 && code <= 4095) {
6865
6968
  var len = 4095 - code + 2;
6866
6969
  var seq = [];
6867
- for (var m = 0;m < len; m++)
6970
+ for (var m = 0;m < len; m++) {
6868
6971
  seq.push(part.charCodeAt(l++));
6972
+ }
6869
6973
  writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length;
6870
6974
  this.decodeTableSeq.push(seq);
6871
- } else
6975
+ } else {
6872
6976
  writeTable[curAddr++] = code;
6977
+ }
6873
6978
  }
6874
6979
  } else if (typeof part === "number") {
6875
6980
  var charCode = writeTable[curAddr - 1] + 1;
6876
- for (var l = 0;l < part; l++)
6981
+ for (var l = 0;l < part; l++) {
6877
6982
  writeTable[curAddr++] = charCode++;
6878
- } else
6983
+ }
6984
+ } else {
6879
6985
  throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]);
6986
+ }
6880
6987
  }
6881
- if (curAddr > 255)
6988
+ if (curAddr > 255) {
6882
6989
  throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr);
6990
+ }
6883
6991
  };
6884
6992
  DBCSCodec.prototype._getEncodeBucket = function(uCode) {
6885
6993
  var high = uCode >> 8;
6886
- if (this.encodeTable[high] === undefined)
6994
+ if (this.encodeTable[high] === undefined) {
6887
6995
  this.encodeTable[high] = UNASSIGNED_NODE.slice(0);
6996
+ }
6888
6997
  return this.encodeTable[high];
6889
6998
  };
6890
6999
  DBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) {
6891
7000
  var bucket = this._getEncodeBucket(uCode);
6892
7001
  var low = uCode & 255;
6893
- if (bucket[low] <= SEQ_START)
7002
+ if (bucket[low] <= SEQ_START) {
6894
7003
  this.encodeTableSeq[SEQ_START - bucket[low]][DEF_CHAR] = dbcsCode;
6895
- else if (bucket[low] == UNASSIGNED)
7004
+ } else if (bucket[low] == UNASSIGNED) {
6896
7005
  bucket[low] = dbcsCode;
7006
+ }
6897
7007
  };
6898
7008
  DBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) {
6899
7009
  var uCode = seq[0];
@@ -6911,12 +7021,13 @@ var require_dbcs_codec = __commonJS((exports) => {
6911
7021
  }
6912
7022
  for (var j2 = 1;j2 < seq.length - 1; j2++) {
6913
7023
  var oldVal = node[uCode];
6914
- if (typeof oldVal === "object")
7024
+ if (typeof oldVal === "object") {
6915
7025
  node = oldVal;
6916
- else {
7026
+ } else {
6917
7027
  node = node[uCode] = {};
6918
- if (oldVal !== undefined)
7028
+ if (oldVal !== undefined) {
6919
7029
  node[DEF_CHAR] = oldVal;
7030
+ }
6920
7031
  }
6921
7032
  }
6922
7033
  uCode = seq[seq.length - 1];
@@ -6929,8 +7040,9 @@ var require_dbcs_codec = __commonJS((exports) => {
6929
7040
  for (var i2 = 0;i2 < 256; i2++) {
6930
7041
  var uCode = node[i2];
6931
7042
  var mbCode = prefix + i2;
6932
- if (skipEncodeChars[mbCode])
7043
+ if (skipEncodeChars[mbCode]) {
6933
7044
  continue;
7045
+ }
6934
7046
  if (uCode >= 0) {
6935
7047
  this._setEncodeChar(uCode, mbCode);
6936
7048
  hasValues = true;
@@ -6938,10 +7050,11 @@ var require_dbcs_codec = __commonJS((exports) => {
6938
7050
  var subNodeIdx = NODE_START - uCode;
6939
7051
  if (!subNodeEmpty[subNodeIdx]) {
6940
7052
  var newPrefix = mbCode << 8 >>> 0;
6941
- if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars))
7053
+ if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars)) {
6942
7054
  hasValues = true;
6943
- else
7055
+ } else {
6944
7056
  subNodeEmpty[subNodeIdx] = true;
7057
+ }
6945
7058
  }
6946
7059
  } else if (uCode <= SEQ_START) {
6947
7060
  this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode);
@@ -6959,7 +7072,12 @@ var require_dbcs_codec = __commonJS((exports) => {
6959
7072
  this.gb18030 = codec.gb18030;
6960
7073
  }
6961
7074
  DBCSEncoder.prototype.write = function(str) {
6962
- var newBuf = Buffer2.alloc(str.length * (this.gb18030 ? 4 : 3)), leadSurrogate = this.leadSurrogate, seqObj = this.seqObj, nextChar = -1, i2 = 0, j2 = 0;
7075
+ var newBuf = Buffer2.alloc(str.length * (this.gb18030 ? 4 : 3));
7076
+ var leadSurrogate = this.leadSurrogate;
7077
+ var seqObj = this.seqObj;
7078
+ var nextChar = -1;
7079
+ var i2 = 0;
7080
+ var j2 = 0;
6963
7081
  while (true) {
6964
7082
  if (nextChar === -1) {
6965
7083
  if (i2 == str.length)
@@ -6969,7 +7087,7 @@ var require_dbcs_codec = __commonJS((exports) => {
6969
7087
  var uCode = nextChar;
6970
7088
  nextChar = -1;
6971
7089
  }
6972
- if (55296 <= uCode && uCode < 57344) {
7090
+ if (uCode >= 55296 && uCode < 57344) {
6973
7091
  if (uCode < 56320) {
6974
7092
  if (leadSurrogate === -1) {
6975
7093
  leadSurrogate = uCode;
@@ -6997,7 +7115,7 @@ var require_dbcs_codec = __commonJS((exports) => {
6997
7115
  if (typeof resCode === "object") {
6998
7116
  seqObj = resCode;
6999
7117
  continue;
7000
- } else if (typeof resCode == "number") {
7118
+ } else if (typeof resCode === "number") {
7001
7119
  dbcsCode = resCode;
7002
7120
  } else if (resCode == undefined) {
7003
7121
  resCode = seqObj[DEF_CHAR];
@@ -7009,8 +7127,9 @@ var require_dbcs_codec = __commonJS((exports) => {
7009
7127
  seqObj = undefined;
7010
7128
  } else if (uCode >= 0) {
7011
7129
  var subtable = this.encodeTable[uCode >> 8];
7012
- if (subtable !== undefined)
7130
+ if (subtable !== undefined) {
7013
7131
  dbcsCode = subtable[uCode & 255];
7132
+ }
7014
7133
  if (dbcsCode <= SEQ_START) {
7015
7134
  seqObj = this.encodeTableSeq[SEQ_START - dbcsCode];
7016
7135
  continue;
@@ -7030,8 +7149,9 @@ var require_dbcs_codec = __commonJS((exports) => {
7030
7149
  }
7031
7150
  }
7032
7151
  }
7033
- if (dbcsCode === UNASSIGNED)
7152
+ if (dbcsCode === UNASSIGNED) {
7034
7153
  dbcsCode = this.defaultCharSingleByte;
7154
+ }
7035
7155
  if (dbcsCode < 256) {
7036
7156
  newBuf[j2++] = dbcsCode;
7037
7157
  } else if (dbcsCode < 65536) {
@@ -7053,9 +7173,11 @@ var require_dbcs_codec = __commonJS((exports) => {
7053
7173
  return newBuf.slice(0, j2);
7054
7174
  };
7055
7175
  DBCSEncoder.prototype.end = function() {
7056
- if (this.leadSurrogate === -1 && this.seqObj === undefined)
7176
+ if (this.leadSurrogate === -1 && this.seqObj === undefined) {
7057
7177
  return;
7058
- var newBuf = Buffer2.alloc(10), j2 = 0;
7178
+ }
7179
+ var newBuf = Buffer2.alloc(10);
7180
+ var j2 = 0;
7059
7181
  if (this.seqObj) {
7060
7182
  var dbcsCode = this.seqObj[DEF_CHAR];
7061
7183
  if (dbcsCode !== undefined) {
@@ -7084,7 +7206,12 @@ var require_dbcs_codec = __commonJS((exports) => {
7084
7206
  this.gb18030 = codec.gb18030;
7085
7207
  }
7086
7208
  DBCSDecoder.prototype.write = function(buf) {
7087
- var newBuf = Buffer2.alloc(buf.length * 2), nodeIdx = this.nodeIdx, prevBytes = this.prevBytes, prevOffset = this.prevBytes.length, seqStart = -this.prevBytes.length, uCode;
7209
+ var newBuf = Buffer2.alloc(buf.length * 2);
7210
+ var nodeIdx = this.nodeIdx;
7211
+ var prevBytes = this.prevBytes;
7212
+ var prevOffset = this.prevBytes.length;
7213
+ var seqStart = -this.prevBytes.length;
7214
+ var uCode;
7088
7215
  for (var i2 = 0, j2 = 0;i2 < buf.length; i2++) {
7089
7216
  var curByte = i2 >= 0 ? buf[i2] : prevBytes[i2 + prevOffset];
7090
7217
  var uCode = this.decodeTables[nodeIdx][curByte];
@@ -7110,8 +7237,9 @@ var require_dbcs_codec = __commonJS((exports) => {
7110
7237
  newBuf[j2++] = uCode >> 8;
7111
7238
  }
7112
7239
  uCode = seq[seq.length - 1];
7113
- } else
7240
+ } else {
7114
7241
  throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte);
7242
+ }
7115
7243
  if (uCode >= 65536) {
7116
7244
  uCode -= 65536;
7117
7245
  var uCodeLead = 55296 | uCode >> 10;
@@ -7135,23 +7263,27 @@ var require_dbcs_codec = __commonJS((exports) => {
7135
7263
  var bytesArr = this.prevBytes.slice(1);
7136
7264
  this.prevBytes = [];
7137
7265
  this.nodeIdx = 0;
7138
- if (bytesArr.length > 0)
7266
+ if (bytesArr.length > 0) {
7139
7267
  ret += this.write(bytesArr);
7268
+ }
7140
7269
  }
7141
7270
  this.prevBytes = [];
7142
7271
  this.nodeIdx = 0;
7143
7272
  return ret;
7144
7273
  };
7145
7274
  function findIdx(table, val) {
7146
- if (table[0] > val)
7275
+ if (table[0] > val) {
7147
7276
  return -1;
7148
- var l = 0, r = table.length;
7277
+ }
7278
+ var l = 0;
7279
+ var r = table.length;
7149
7280
  while (l < r - 1) {
7150
7281
  var mid = l + (r - l + 1 >> 1);
7151
- if (table[mid] <= val)
7282
+ if (table[mid] <= val) {
7152
7283
  l = mid;
7153
- else
7284
+ } else {
7154
7285
  r = mid;
7286
+ }
7155
7287
  }
7156
7288
  return l;
7157
7289
  }
@@ -8408,7 +8540,7 @@ var require_dbcs_data = __commonJS((exports, module) => {
8408
8540
  xsjis: "shiftjis",
8409
8541
  windows932: "shiftjis",
8410
8542
  ms932: "shiftjis",
8411
- "932": "shiftjis",
8543
+ 932: "shiftjis",
8412
8544
  cp932: "shiftjis",
8413
8545
  eucjp: {
8414
8546
  type: "_dbcs",
@@ -8425,7 +8557,7 @@ var require_dbcs_data = __commonJS((exports, module) => {
8425
8557
  euccn: "cp936",
8426
8558
  windows936: "cp936",
8427
8559
  ms936: "cp936",
8428
- "936": "cp936",
8560
+ 936: "cp936",
8429
8561
  cp936: {
8430
8562
  type: "_dbcs",
8431
8563
  table: function() {
@@ -8454,7 +8586,7 @@ var require_dbcs_data = __commonJS((exports, module) => {
8454
8586
  chinese: "gb18030",
8455
8587
  windows949: "cp949",
8456
8588
  ms949: "cp949",
8457
- "949": "cp949",
8589
+ 949: "cp949",
8458
8590
  cp949: {
8459
8591
  type: "_dbcs",
8460
8592
  table: function() {
@@ -8471,7 +8603,7 @@ var require_dbcs_data = __commonJS((exports, module) => {
8471
8603
  ksc5601: "cp949",
8472
8604
  windows950: "cp950",
8473
8605
  ms950: "cp950",
8474
- "950": "cp950",
8606
+ 950: "cp950",
8475
8607
  cp950: {
8476
8608
  type: "_dbcs",
8477
8609
  table: function() {
@@ -8562,6 +8694,7 @@ var require_dbcs_data = __commonJS((exports, module) => {
8562
8694
 
8563
8695
  // node_modules/raw-body/node_modules/iconv-lite/encodings/index.js
8564
8696
  var require_encodings = __commonJS((exports, module) => {
8697
+ var mergeModules = require_merge_exports();
8565
8698
  var modules = [
8566
8699
  require_internal(),
8567
8700
  require_utf32(),
@@ -8575,20 +8708,17 @@ var require_encodings = __commonJS((exports, module) => {
8575
8708
  ];
8576
8709
  for (i = 0;i < modules.length; i++) {
8577
8710
  module = modules[i];
8578
- for (enc in module)
8579
- if (Object.prototype.hasOwnProperty.call(module, enc))
8580
- exports[enc] = module[enc];
8711
+ mergeModules(exports, module);
8581
8712
  }
8582
8713
  var module;
8583
- var enc;
8584
8714
  var i;
8585
8715
  });
8586
8716
 
8587
8717
  // node_modules/raw-body/node_modules/iconv-lite/lib/streams.js
8588
8718
  var require_streams = __commonJS((exports, module) => {
8589
8719
  var Buffer2 = require_safer().Buffer;
8590
- module.exports = function(stream_module) {
8591
- var Transform = stream_module.Transform;
8720
+ module.exports = function(streamModule) {
8721
+ var Transform = streamModule.Transform;
8592
8722
  function IconvLiteEncoderStream(conv, options) {
8593
8723
  this.conv = conv;
8594
8724
  options = options || {};
@@ -8599,8 +8729,9 @@ var require_streams = __commonJS((exports, module) => {
8599
8729
  constructor: { value: IconvLiteEncoderStream }
8600
8730
  });
8601
8731
  IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) {
8602
- if (typeof chunk != "string")
8732
+ if (typeof chunk !== "string") {
8603
8733
  return done(new Error("Iconv encoding stream needs strings as its input."));
8734
+ }
8604
8735
  try {
8605
8736
  var res = this.conv.write(chunk);
8606
8737
  if (res && res.length)
@@ -8641,8 +8772,9 @@ var require_streams = __commonJS((exports, module) => {
8641
8772
  constructor: { value: IconvLiteDecoderStream }
8642
8773
  });
8643
8774
  IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) {
8644
- if (!Buffer2.isBuffer(chunk) && !(chunk instanceof Uint8Array))
8775
+ if (!Buffer2.isBuffer(chunk) && !(chunk instanceof Uint8Array)) {
8645
8776
  return done(new Error("Iconv decoding stream needs buffers as its input."));
8777
+ }
8646
8778
  try {
8647
8779
  var res = this.conv.write(chunk);
8648
8780
  if (res && res.length)
@@ -8684,6 +8816,7 @@ var require_streams = __commonJS((exports, module) => {
8684
8816
  var require_lib = __commonJS((exports, module) => {
8685
8817
  var Buffer2 = require_safer().Buffer;
8686
8818
  var bomHandling = require_bom_handling();
8819
+ var mergeModules = require_merge_exports();
8687
8820
  var iconv = exports;
8688
8821
  iconv.encodings = null;
8689
8822
  iconv.defaultCharUnicode = "�";
@@ -8718,31 +8851,38 @@ var require_lib = __commonJS((exports, module) => {
8718
8851
  };
8719
8852
  iconv.toEncoding = iconv.encode;
8720
8853
  iconv.fromEncoding = iconv.decode;
8721
- iconv._codecDataCache = {};
8854
+ iconv._codecDataCache = { __proto__: null };
8722
8855
  iconv.getCodec = function getCodec(encoding) {
8723
- if (!iconv.encodings)
8724
- iconv.encodings = require_encodings();
8856
+ if (!iconv.encodings) {
8857
+ var raw = require_encodings();
8858
+ iconv.encodings = { __proto__: null };
8859
+ mergeModules(iconv.encodings, raw);
8860
+ }
8725
8861
  var enc = iconv._canonicalizeEncoding(encoding);
8726
8862
  var codecOptions = {};
8727
8863
  while (true) {
8728
8864
  var codec = iconv._codecDataCache[enc];
8729
- if (codec)
8865
+ if (codec) {
8730
8866
  return codec;
8867
+ }
8731
8868
  var codecDef = iconv.encodings[enc];
8732
8869
  switch (typeof codecDef) {
8733
8870
  case "string":
8734
8871
  enc = codecDef;
8735
8872
  break;
8736
8873
  case "object":
8737
- for (var key in codecDef)
8874
+ for (var key in codecDef) {
8738
8875
  codecOptions[key] = codecDef[key];
8739
- if (!codecOptions.encodingName)
8876
+ }
8877
+ if (!codecOptions.encodingName) {
8740
8878
  codecOptions.encodingName = enc;
8879
+ }
8741
8880
  enc = codecDef.type;
8742
8881
  break;
8743
8882
  case "function":
8744
- if (!codecOptions.encodingName)
8883
+ if (!codecOptions.encodingName) {
8745
8884
  codecOptions.encodingName = enc;
8885
+ }
8746
8886
  codec = new codecDef(codecOptions, iconv);
8747
8887
  iconv._codecDataCache[codecOptions.encodingName] = codec;
8748
8888
  return codec;
@@ -8755,21 +8895,26 @@ var require_lib = __commonJS((exports, module) => {
8755
8895
  return ("" + encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
8756
8896
  };
8757
8897
  iconv.getEncoder = function getEncoder(encoding, options) {
8758
- var codec = iconv.getCodec(encoding), encoder = new codec.encoder(options, codec);
8759
- if (codec.bomAware && options && options.addBOM)
8898
+ var codec = iconv.getCodec(encoding);
8899
+ var encoder = new codec.encoder(options, codec);
8900
+ if (codec.bomAware && options && options.addBOM) {
8760
8901
  encoder = new bomHandling.PrependBOM(encoder, options);
8902
+ }
8761
8903
  return encoder;
8762
8904
  };
8763
8905
  iconv.getDecoder = function getDecoder(encoding, options) {
8764
- var codec = iconv.getCodec(encoding), decoder = new codec.decoder(options, codec);
8765
- if (codec.bomAware && !(options && options.stripBOM === false))
8906
+ var codec = iconv.getCodec(encoding);
8907
+ var decoder = new codec.decoder(options, codec);
8908
+ if (codec.bomAware && !(options && options.stripBOM === false)) {
8766
8909
  decoder = new bomHandling.StripBOM(decoder, options);
8910
+ }
8767
8911
  return decoder;
8768
8912
  };
8769
- iconv.enableStreamingAPI = function enableStreamingAPI(stream_module2) {
8770
- if (iconv.supportsStreams)
8913
+ iconv.enableStreamingAPI = function enableStreamingAPI(streamModule2) {
8914
+ if (iconv.supportsStreams) {
8771
8915
  return;
8772
- var streams = require_streams()(stream_module2);
8916
+ }
8917
+ var streams = require_streams()(streamModule2);
8773
8918
  iconv.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;
8774
8919
  iconv.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;
8775
8920
  iconv.encodeStream = function encodeStream(encoding, options) {
@@ -8780,12 +8925,12 @@ var require_lib = __commonJS((exports, module) => {
8780
8925
  };
8781
8926
  iconv.supportsStreams = true;
8782
8927
  };
8783
- var stream_module;
8928
+ var streamModule;
8784
8929
  try {
8785
- stream_module = __require("stream");
8930
+ streamModule = __require("stream");
8786
8931
  } catch (e) {}
8787
- if (stream_module && stream_module.Transform) {
8788
- iconv.enableStreamingAPI(stream_module);
8932
+ if (streamModule && streamModule.Transform) {
8933
+ iconv.enableStreamingAPI(streamModule);
8789
8934
  } else {
8790
8935
  iconv.encodeStream = iconv.decodeStream = function() {
8791
8936
  throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.");
@@ -34264,9 +34409,9 @@ var init_config = __esm(() => {
34264
34409
  SDK_METADATA = {
34265
34410
  language: "typescript",
34266
34411
  openapiDocVersion: "0.0.1",
34267
- sdkVersion: "1.0.26",
34268
- genVersion: "2.687.11",
34269
- userAgent: "speakeasy-sdk/typescript 1.0.26 2.687.11 0.0.1 @compass-labs/api-sdk"
34412
+ sdkVersion: "1.0.27-rc0",
34413
+ genVersion: "2.701.8",
34414
+ userAgent: "speakeasy-sdk/typescript 1.0.27-rc0 2.701.8 0.0.1 @compass-labs/api-sdk"
34270
34415
  };
34271
34416
  });
34272
34417
 
@@ -55718,7 +55863,7 @@ it to be traded on DeFi protocols.`,
55718
55863
  function createMCPServer(deps) {
55719
55864
  const server = new McpServer({
55720
55865
  name: "CompassApiSDK",
55721
- version: "1.0.26"
55866
+ version: "1.0.27-rc0"
55722
55867
  });
55723
55868
  const client = new CompassApiSDKCore({
55724
55869
  apiKeyAuth: deps.apiKeyAuth,
@@ -57092,7 +57237,7 @@ var routes = ln({
57092
57237
  var app = _e(routes, {
57093
57238
  name: "mcp",
57094
57239
  versionInfo: {
57095
- currentVersion: "1.0.26"
57240
+ currentVersion: "1.0.27-rc0"
57096
57241
  }
57097
57242
  });
57098
57243
  Yt(app, process3.argv.slice(2), buildContext(process3));
@@ -57100,5 +57245,5 @@ export {
57100
57245
  app
57101
57246
  };
57102
57247
 
57103
- //# debugId=748FCB3ABEE4C1EF64756E2164756E21
57248
+ //# debugId=3F6ABF3F5CA61F9064756E2164756E21
57104
57249
  //# sourceMappingURL=mcp-server.js.map