@qwen-code/qwen-code 0.16.0 → 0.16.1-nightly.20260525.84f408017

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.
Files changed (30) hide show
  1. package/chunks/{agent-K6OWOMBN.js → agent-7ESX6RYX.js} +2 -2
  2. package/chunks/chunk-ELULJ6RZ.js +956 -0
  3. package/chunks/{chunk-WCZWAKFG.js → chunk-JFFFLAUN.js} +440 -523
  4. package/chunks/{chunk-VMOAQVBP.js → chunk-KFF4KXVH.js} +1 -1
  5. package/chunks/{chunk-L34E6AGL.js → chunk-Q5K6MABB.js} +5 -5
  6. package/chunks/{chunk-3T4ZT63H.js → chunk-RYMOJWDB.js} +359 -49
  7. package/chunks/{chunk-NOAHME6A.js → chunk-SSLVVGO5.js} +1 -1
  8. package/chunks/{contextCommand-7CPNXBLO.js → contextCommand-UEVGCMHA.js} +4 -4
  9. package/chunks/{edit-CBM5NDVK.js → edit-SCO2WJ6N.js} +2 -2
  10. package/chunks/{enter-worktree-XABKPLO6.js → enter-worktree-2PFD367Q.js} +2 -2
  11. package/chunks/{exit-worktree-56MN2PCL.js → exit-worktree-FWTA3FZW.js} +2 -2
  12. package/chunks/{exitPlanMode-YDNPCSCJ.js → exitPlanMode-S7VSWSNL.js} +2 -2
  13. package/chunks/{geminiContentGenerator-ZGPNBFDS.js → geminiContentGenerator-UT3I2CUW.js} +1 -1
  14. package/chunks/{glob-ZHA35VO5.js → glob-J25HUJZQ.js} +2 -2
  15. package/chunks/{grep-RV6V6T52.js → grep-7Z57EA3X.js} +2 -2
  16. package/chunks/{monitor-5G2OBGE5.js → monitor-FGW5T4TL.js} +2 -2
  17. package/chunks/{notebook-edit-XUBTCT6L.js → notebook-edit-2YRYVXSR.js} +2 -2
  18. package/chunks/{openaiContentGenerator-POYAZQ6I.js → openaiContentGenerator-W5FNIVHV.js} +2 -2
  19. package/chunks/{qwenContentGenerator-2E4H56DK.js → qwenContentGenerator-NRBSGD73.js} +3 -3
  20. package/chunks/{read-file-3JIOOXFT.js → read-file-A5DS6OFA.js} +1 -1
  21. package/chunks/{ripGrep-LEI3L6PM.js → ripGrep-MEPMAZYU.js} +2 -2
  22. package/chunks/{serve-CFVRMD4W.js → serve-HWS4DVOU.js} +4440 -360
  23. package/chunks/{shell-3B5DZ437.js → shell-7DJVBVOE.js} +2 -2
  24. package/chunks/{skill-STSZUBXR.js → skill-MFYAVRTI.js} +1 -1
  25. package/chunks/{src-ROFXAPEP.js → src-BRGGZM35.js} +4 -2
  26. package/chunks/{tool-search-ARWOD3GD.js → tool-search-54GDQMSY.js} +1 -1
  27. package/chunks/{write-file-6MRT7TEW.js → write-file-JHZZCQM6.js} +2 -2
  28. package/cli.js +624 -16436
  29. package/package.json +2 -2
  30. package/chunks/chunk-4J63U5QO.js +0 -1974
@@ -154,9 +154,9 @@ var require_safer = __commonJS({
154
154
  }
155
155
  });
156
156
 
157
- // packages/core/node_modules/iconv-lite/lib/bom-handling.js
157
+ // node_modules/iconv-lite/lib/bom-handling.js
158
158
  var require_bom_handling = __commonJS({
159
- "packages/core/node_modules/iconv-lite/lib/bom-handling.js"(exports2) {
159
+ "node_modules/iconv-lite/lib/bom-handling.js"(exports2) {
160
160
  "use strict";
161
161
  init_esbuild_shims();
162
162
  var BOMChar = "\uFEFF";
@@ -185,14 +185,12 @@ var require_bom_handling = __commonJS({
185
185
  __name(StripBOMWrapper, "StripBOMWrapper");
186
186
  StripBOMWrapper.prototype.write = function(buf) {
187
187
  var res = this.decoder.write(buf);
188
- if (this.pass || !res) {
188
+ if (this.pass || !res)
189
189
  return res;
190
- }
191
190
  if (res[0] === BOMChar) {
192
191
  res = res.slice(1);
193
- if (typeof this.options.stripBOM === "function") {
192
+ if (typeof this.options.stripBOM === "function")
194
193
  this.options.stripBOM();
195
- }
196
194
  }
197
195
  this.pass = true;
198
196
  return res;
@@ -203,27 +201,9 @@ var require_bom_handling = __commonJS({
203
201
  }
204
202
  });
205
203
 
206
- // packages/core/node_modules/iconv-lite/lib/helpers/merge-exports.js
207
- var require_merge_exports = __commonJS({
208
- "packages/core/node_modules/iconv-lite/lib/helpers/merge-exports.js"(exports2, module2) {
209
- "use strict";
210
- init_esbuild_shims();
211
- var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn;
212
- function mergeModules(target, module3) {
213
- for (var key in module3) {
214
- if (hasOwn(module3, key)) {
215
- target[key] = module3[key];
216
- }
217
- }
218
- }
219
- __name(mergeModules, "mergeModules");
220
- module2.exports = mergeModules;
221
- }
222
- });
223
-
224
- // packages/core/node_modules/iconv-lite/encodings/internal.js
204
+ // node_modules/iconv-lite/encodings/internal.js
225
205
  var require_internal = __commonJS({
226
- "packages/core/node_modules/iconv-lite/encodings/internal.js"(exports2, module2) {
206
+ "node_modules/iconv-lite/encodings/internal.js"(exports2, module2) {
227
207
  "use strict";
228
208
  init_esbuild_shims();
229
209
  var Buffer3 = require_safer().Buffer;
@@ -243,11 +223,9 @@ var require_internal = __commonJS({
243
223
  function InternalCodec(codecOptions, iconv) {
244
224
  this.enc = codecOptions.encodingName;
245
225
  this.bomAware = codecOptions.bomAware;
246
- if (this.enc === "base64") {
226
+ if (this.enc === "base64")
247
227
  this.encoder = InternalEncoderBase64;
248
- } else if (this.enc === "utf8") {
249
- this.encoder = InternalEncoderUtf8;
250
- } else if (this.enc === "cesu8") {
228
+ else if (this.enc === "cesu8") {
251
229
  this.enc = "utf8";
252
230
  this.encoder = InternalEncoderCesu8;
253
231
  if (Buffer3.from("eda0bdedb2a9", "hex").toString() !== "\u{1F4A9}") {
@@ -260,6 +238,9 @@ var require_internal = __commonJS({
260
238
  InternalCodec.prototype.encoder = InternalEncoder;
261
239
  InternalCodec.prototype.decoder = InternalDecoder;
262
240
  var StringDecoder = __require("string_decoder").StringDecoder;
241
+ if (!StringDecoder.prototype.end)
242
+ StringDecoder.prototype.end = function() {
243
+ };
263
244
  function InternalDecoder(options, codec) {
264
245
  this.decoder = new StringDecoder(codec.enc);
265
246
  }
@@ -300,13 +281,12 @@ var require_internal = __commonJS({
300
281
  }
301
282
  __name(InternalEncoderCesu8, "InternalEncoderCesu8");
302
283
  InternalEncoderCesu8.prototype.write = function(str) {
303
- var buf = Buffer3.alloc(str.length * 3);
304
- var bufIdx = 0;
284
+ var buf = Buffer3.alloc(str.length * 3), bufIdx = 0;
305
285
  for (var i = 0; i < str.length; i++) {
306
286
  var charCode = str.charCodeAt(i);
307
- if (charCode < 128) {
287
+ if (charCode < 128)
308
288
  buf[bufIdx++] = charCode;
309
- } else if (charCode < 2048) {
289
+ else if (charCode < 2048) {
310
290
  buf[bufIdx++] = 192 + (charCode >>> 6);
311
291
  buf[bufIdx++] = 128 + (charCode & 63);
312
292
  } else {
@@ -327,10 +307,7 @@ var require_internal = __commonJS({
327
307
  }
328
308
  __name(InternalDecoderCesu8, "InternalDecoderCesu8");
329
309
  InternalDecoderCesu8.prototype.write = function(buf) {
330
- var acc = this.acc;
331
- var contBytes = this.contBytes;
332
- var accBytes = this.accBytes;
333
- var res = "";
310
+ var acc = this.acc, contBytes = this.contBytes, accBytes = this.accBytes, res = "";
334
311
  for (var i = 0; i < buf.length; i++) {
335
312
  var curByte = buf[i];
336
313
  if ((curByte & 192) !== 128) {
@@ -357,13 +334,12 @@ var require_internal = __commonJS({
357
334
  contBytes--;
358
335
  accBytes++;
359
336
  if (contBytes === 0) {
360
- if (accBytes === 2 && acc < 128 && acc > 0) {
337
+ if (accBytes === 2 && acc < 128 && acc > 0)
361
338
  res += this.defaultCharUnicode;
362
- } else if (accBytes === 3 && acc < 2048) {
339
+ else if (accBytes === 3 && acc < 2048)
363
340
  res += this.defaultCharUnicode;
364
- } else {
341
+ else
365
342
  res += String.fromCharCode(acc);
366
- }
367
343
  }
368
344
  } else {
369
345
  res += this.defaultCharUnicode;
@@ -377,42 +353,16 @@ var require_internal = __commonJS({
377
353
  };
378
354
  InternalDecoderCesu8.prototype.end = function() {
379
355
  var res = 0;
380
- if (this.contBytes > 0) {
356
+ if (this.contBytes > 0)
381
357
  res += this.defaultCharUnicode;
382
- }
383
358
  return res;
384
359
  };
385
- function InternalEncoderUtf8(options, codec) {
386
- this.highSurrogate = "";
387
- }
388
- __name(InternalEncoderUtf8, "InternalEncoderUtf8");
389
- InternalEncoderUtf8.prototype.write = function(str) {
390
- if (this.highSurrogate) {
391
- str = this.highSurrogate + str;
392
- this.highSurrogate = "";
393
- }
394
- if (str.length > 0) {
395
- var charCode = str.charCodeAt(str.length - 1);
396
- if (charCode >= 55296 && charCode < 56320) {
397
- this.highSurrogate = str[str.length - 1];
398
- str = str.slice(0, str.length - 1);
399
- }
400
- }
401
- return Buffer3.from(str, this.enc);
402
- };
403
- InternalEncoderUtf8.prototype.end = function() {
404
- if (this.highSurrogate) {
405
- var str = this.highSurrogate;
406
- this.highSurrogate = "";
407
- return Buffer3.from(str, this.enc);
408
- }
409
- };
410
360
  }
411
361
  });
412
362
 
413
- // packages/core/node_modules/iconv-lite/encodings/utf32.js
363
+ // node_modules/iconv-lite/encodings/utf32.js
414
364
  var require_utf32 = __commonJS({
415
- "packages/core/node_modules/iconv-lite/encodings/utf32.js"(exports2) {
365
+ "node_modules/iconv-lite/encodings/utf32.js"(exports2) {
416
366
  "use strict";
417
367
  init_esbuild_shims();
418
368
  var Buffer3 = require_safer().Buffer;
@@ -441,8 +391,8 @@ var require_utf32 = __commonJS({
441
391
  var offset = 0;
442
392
  for (var i = 0; i < src.length; i += 2) {
443
393
  var code = src.readUInt16LE(i);
444
- var isHighSurrogate = code >= 55296 && code < 56320;
445
- var isLowSurrogate = code >= 56320 && code < 57344;
394
+ var isHighSurrogate = 55296 <= code && code < 56320;
395
+ var isLowSurrogate = 56320 <= code && code < 57344;
446
396
  if (this.highSurrogate) {
447
397
  if (isHighSurrogate || !isLowSurrogate) {
448
398
  write32.call(dst, this.highSurrogate, offset);
@@ -455,29 +405,26 @@ var require_utf32 = __commonJS({
455
405
  continue;
456
406
  }
457
407
  }
458
- if (isHighSurrogate) {
408
+ if (isHighSurrogate)
459
409
  this.highSurrogate = code;
460
- } else {
410
+ else {
461
411
  write32.call(dst, code, offset);
462
412
  offset += 4;
463
413
  this.highSurrogate = 0;
464
414
  }
465
415
  }
466
- if (offset < dst.length) {
416
+ if (offset < dst.length)
467
417
  dst = dst.slice(0, offset);
468
- }
469
418
  return dst;
470
419
  };
471
420
  Utf32Encoder.prototype.end = function() {
472
- if (!this.highSurrogate) {
421
+ if (!this.highSurrogate)
473
422
  return;
474
- }
475
423
  var buf = Buffer3.alloc(4);
476
- if (this.isLE) {
424
+ if (this.isLE)
477
425
  buf.writeUInt32LE(this.highSurrogate, 0);
478
- } else {
426
+ else
479
427
  buf.writeUInt32BE(this.highSurrogate, 0);
480
- }
481
428
  this.highSurrogate = 0;
482
429
  return buf;
483
430
  };
@@ -488,9 +435,8 @@ var require_utf32 = __commonJS({
488
435
  }
489
436
  __name(Utf32Decoder, "Utf32Decoder");
490
437
  Utf32Decoder.prototype.write = function(src) {
491
- if (src.length === 0) {
438
+ if (src.length === 0)
492
439
  return "";
493
- }
494
440
  var i = 0;
495
441
  var codepoint = 0;
496
442
  var dst = Buffer3.alloc(src.length + 4);
@@ -499,9 +445,8 @@ var require_utf32 = __commonJS({
499
445
  var overflow = this.overflow;
500
446
  var badChar = this.badChar;
501
447
  if (overflow.length > 0) {
502
- for (; i < src.length && overflow.length < 4; i++) {
448
+ for (; i < src.length && overflow.length < 4; i++)
503
449
  overflow.push(src[i]);
504
- }
505
450
  if (overflow.length === 4) {
506
451
  if (isLE) {
507
452
  codepoint = overflow[i] | overflow[i + 1] << 8 | overflow[i + 2] << 16 | overflow[i + 3] << 24;
@@ -554,9 +499,8 @@ var require_utf32 = __commonJS({
554
499
  Utf32AutoCodec.prototype.decoder = Utf32AutoDecoder;
555
500
  function Utf32AutoEncoder(options, codec) {
556
501
  options = options || {};
557
- if (options.addBOM === void 0) {
502
+ if (options.addBOM === void 0)
558
503
  options.addBOM = true;
559
- }
560
504
  this.encoder = codec.iconv.getEncoder(options.defaultEncoding || "utf-32le", options);
561
505
  }
562
506
  __name(Utf32AutoEncoder, "Utf32AutoEncoder");
@@ -578,15 +522,13 @@ var require_utf32 = __commonJS({
578
522
  if (!this.decoder) {
579
523
  this.initialBufs.push(buf);
580
524
  this.initialBufsLen += buf.length;
581
- if (this.initialBufsLen < 32) {
525
+ if (this.initialBufsLen < 32)
582
526
  return "";
583
- }
584
527
  var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
585
528
  this.decoder = this.iconv.getDecoder(encoding, this.options);
586
529
  var resStr = "";
587
- for (var i = 0; i < this.initialBufs.length; i++) {
530
+ for (var i = 0; i < this.initialBufs.length; i++)
588
531
  resStr += this.decoder.write(this.initialBufs[i]);
589
- }
590
532
  this.initialBufs.length = this.initialBufsLen = 0;
591
533
  return resStr;
592
534
  }
@@ -597,13 +539,11 @@ var require_utf32 = __commonJS({
597
539
  var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
598
540
  this.decoder = this.iconv.getDecoder(encoding, this.options);
599
541
  var resStr = "";
600
- for (var i = 0; i < this.initialBufs.length; i++) {
542
+ for (var i = 0; i < this.initialBufs.length; i++)
601
543
  resStr += this.decoder.write(this.initialBufs[i]);
602
- }
603
544
  var trail = this.decoder.end();
604
- if (trail) {
545
+ if (trail)
605
546
  resStr += trail;
606
- }
607
547
  this.initialBufs.length = this.initialBufsLen = 0;
608
548
  return resStr;
609
549
  }
@@ -612,11 +552,9 @@ var require_utf32 = __commonJS({
612
552
  function detectEncoding(bufs, defaultEncoding) {
613
553
  var b = [];
614
554
  var charsProcessed = 0;
615
- var invalidLE = 0;
616
- var invalidBE = 0;
617
- var bmpCharsLE = 0;
618
- var bmpCharsBE = 0;
619
- outerLoop:
555
+ var invalidLE = 0, invalidBE = 0;
556
+ var bmpCharsLE = 0, bmpCharsBE = 0;
557
+ outer_loop:
620
558
  for (var i = 0; i < bufs.length; i++) {
621
559
  var buf = bufs[i];
622
560
  for (var j = 0; j < buf.length; j++) {
@@ -637,7 +575,7 @@ var require_utf32 = __commonJS({
637
575
  b.length = 0;
638
576
  charsProcessed++;
639
577
  if (charsProcessed >= 100) {
640
- break outerLoop;
578
+ break outer_loop;
641
579
  }
642
580
  }
643
581
  }
@@ -650,9 +588,9 @@ var require_utf32 = __commonJS({
650
588
  }
651
589
  });
652
590
 
653
- // packages/core/node_modules/iconv-lite/encodings/utf16.js
591
+ // node_modules/iconv-lite/encodings/utf16.js
654
592
  var require_utf16 = __commonJS({
655
- "packages/core/node_modules/iconv-lite/encodings/utf16.js"(exports2) {
593
+ "node_modules/iconv-lite/encodings/utf16.js"(exports2) {
656
594
  "use strict";
657
595
  init_esbuild_shims();
658
596
  var Buffer3 = require_safer().Buffer;
@@ -682,12 +620,9 @@ var require_utf16 = __commonJS({
682
620
  }
683
621
  __name(Utf16BEDecoder, "Utf16BEDecoder");
684
622
  Utf16BEDecoder.prototype.write = function(buf) {
685
- if (buf.length == 0) {
623
+ if (buf.length == 0)
686
624
  return "";
687
- }
688
- var buf2 = Buffer3.alloc(buf.length + 1);
689
- var i = 0;
690
- var j = 0;
625
+ var buf2 = Buffer3.alloc(buf.length + 1), i = 0, j = 0;
691
626
  if (this.overflowByte !== -1) {
692
627
  buf2[0] = buf[0];
693
628
  buf2[1] = this.overflowByte;
@@ -713,9 +648,8 @@ var require_utf16 = __commonJS({
713
648
  Utf16Codec.prototype.decoder = Utf16Decoder;
714
649
  function Utf16Encoder(options, codec) {
715
650
  options = options || {};
716
- if (options.addBOM === void 0) {
651
+ if (options.addBOM === void 0)
717
652
  options.addBOM = true;
718
- }
719
653
  this.encoder = codec.iconv.getEncoder("utf-16le", options);
720
654
  }
721
655
  __name(Utf16Encoder, "Utf16Encoder");
@@ -737,15 +671,13 @@ var require_utf16 = __commonJS({
737
671
  if (!this.decoder) {
738
672
  this.initialBufs.push(buf);
739
673
  this.initialBufsLen += buf.length;
740
- if (this.initialBufsLen < 16) {
674
+ if (this.initialBufsLen < 16)
741
675
  return "";
742
- }
743
676
  var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
744
677
  this.decoder = this.iconv.getDecoder(encoding, this.options);
745
678
  var resStr = "";
746
- for (var i = 0; i < this.initialBufs.length; i++) {
679
+ for (var i = 0; i < this.initialBufs.length; i++)
747
680
  resStr += this.decoder.write(this.initialBufs[i]);
748
- }
749
681
  this.initialBufs.length = this.initialBufsLen = 0;
750
682
  return resStr;
751
683
  }
@@ -756,13 +688,11 @@ var require_utf16 = __commonJS({
756
688
  var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
757
689
  this.decoder = this.iconv.getDecoder(encoding, this.options);
758
690
  var resStr = "";
759
- for (var i = 0; i < this.initialBufs.length; i++) {
691
+ for (var i = 0; i < this.initialBufs.length; i++)
760
692
  resStr += this.decoder.write(this.initialBufs[i]);
761
- }
762
693
  var trail = this.decoder.end();
763
- if (trail) {
694
+ if (trail)
764
695
  resStr += trail;
765
- }
766
696
  this.initialBufs.length = this.initialBufsLen = 0;
767
697
  return resStr;
768
698
  }
@@ -771,9 +701,8 @@ var require_utf16 = __commonJS({
771
701
  function detectEncoding(bufs, defaultEncoding) {
772
702
  var b = [];
773
703
  var charsProcessed = 0;
774
- var asciiCharsLE = 0;
775
- var asciiCharsBE = 0;
776
- outerLoop:
704
+ var asciiCharsLE = 0, asciiCharsBE = 0;
705
+ outer_loop:
777
706
  for (var i = 0; i < bufs.length; i++) {
778
707
  var buf = bufs[i];
779
708
  for (var j = 0; j < buf.length; j++) {
@@ -788,7 +717,7 @@ var require_utf16 = __commonJS({
788
717
  b.length = 0;
789
718
  charsProcessed++;
790
719
  if (charsProcessed >= 100) {
791
- break outerLoop;
720
+ break outer_loop;
792
721
  }
793
722
  }
794
723
  }
@@ -801,9 +730,9 @@ var require_utf16 = __commonJS({
801
730
  }
802
731
  });
803
732
 
804
- // packages/core/node_modules/iconv-lite/encodings/utf7.js
733
+ // node_modules/iconv-lite/encodings/utf7.js
805
734
  var require_utf7 = __commonJS({
806
- "packages/core/node_modules/iconv-lite/encodings/utf7.js"(exports2) {
735
+ "node_modules/iconv-lite/encodings/utf7.js"(exports2) {
807
736
  "use strict";
808
737
  init_esbuild_shims();
809
738
  var Buffer3 = require_safer().Buffer;
@@ -836,18 +765,14 @@ var require_utf7 = __commonJS({
836
765
  __name(Utf7Decoder, "Utf7Decoder");
837
766
  var base64Regex = /[A-Za-z0-9\/+]/;
838
767
  var base64Chars = [];
839
- for (i = 0; i < 256; i++) {
768
+ for (i = 0; i < 256; i++)
840
769
  base64Chars[i] = base64Regex.test(String.fromCharCode(i));
841
- }
842
770
  var i;
843
771
  var plusChar = "+".charCodeAt(0);
844
772
  var minusChar = "-".charCodeAt(0);
845
773
  var andChar = "&".charCodeAt(0);
846
774
  Utf7Decoder.prototype.write = function(buf) {
847
- var res = "";
848
- var lastI = 0;
849
- var inBase64 = this.inBase64;
850
- var base64Accum = this.base64Accum;
775
+ var res = "", lastI = 0, inBase64 = this.inBase64, base64Accum = this.base64Accum;
851
776
  for (var i2 = 0; i2 < buf.length; i2++) {
852
777
  if (!inBase64) {
853
778
  if (buf[i2] == plusChar) {
@@ -863,9 +788,8 @@ var require_utf7 = __commonJS({
863
788
  var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i2), "ascii");
864
789
  res += this.iconv.decode(Buffer3.from(b64str, "base64"), "utf16-be");
865
790
  }
866
- if (buf[i2] != minusChar) {
791
+ if (buf[i2] != minusChar)
867
792
  i2--;
868
- }
869
793
  lastI = i2 + 1;
870
794
  inBase64 = false;
871
795
  base64Accum = "";
@@ -887,9 +811,8 @@ var require_utf7 = __commonJS({
887
811
  };
888
812
  Utf7Decoder.prototype.end = function() {
889
813
  var res = "";
890
- if (this.inBase64 && this.base64Accum.length > 0) {
814
+ if (this.inBase64 && this.base64Accum.length > 0)
891
815
  res = this.iconv.decode(Buffer3.from(this.base64Accum, "base64"), "utf16-be");
892
- }
893
816
  this.inBase64 = false;
894
817
  this.base64Accum = "";
895
818
  return res;
@@ -910,14 +833,10 @@ var require_utf7 = __commonJS({
910
833
  }
911
834
  __name(Utf7IMAPEncoder, "Utf7IMAPEncoder");
912
835
  Utf7IMAPEncoder.prototype.write = function(str) {
913
- var inBase64 = this.inBase64;
914
- var base64Accum = this.base64Accum;
915
- var base64AccumIdx = this.base64AccumIdx;
916
- var buf = Buffer3.alloc(str.length * 5 + 10);
917
- var bufIdx = 0;
836
+ var inBase64 = this.inBase64, base64Accum = this.base64Accum, base64AccumIdx = this.base64AccumIdx, buf = Buffer3.alloc(str.length * 5 + 10), bufIdx = 0;
918
837
  for (var i2 = 0; i2 < str.length; i2++) {
919
838
  var uChar = str.charCodeAt(i2);
920
- if (uChar >= 32 && uChar <= 126) {
839
+ if (32 <= uChar && uChar <= 126) {
921
840
  if (inBase64) {
922
841
  if (base64AccumIdx > 0) {
923
842
  bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx);
@@ -928,9 +847,8 @@ var require_utf7 = __commonJS({
928
847
  }
929
848
  if (!inBase64) {
930
849
  buf[bufIdx++] = uChar;
931
- if (uChar === andChar) {
850
+ if (uChar === andChar)
932
851
  buf[bufIdx++] = minusChar;
933
- }
934
852
  }
935
853
  } else {
936
854
  if (!inBase64) {
@@ -952,8 +870,7 @@ var require_utf7 = __commonJS({
952
870
  return buf.slice(0, bufIdx);
953
871
  };
954
872
  Utf7IMAPEncoder.prototype.end = function() {
955
- var buf = Buffer3.alloc(10);
956
- var bufIdx = 0;
873
+ var buf = Buffer3.alloc(10), bufIdx = 0;
957
874
  if (this.inBase64) {
958
875
  if (this.base64AccumIdx > 0) {
959
876
  bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx);
@@ -973,10 +890,7 @@ var require_utf7 = __commonJS({
973
890
  var base64IMAPChars = base64Chars.slice();
974
891
  base64IMAPChars[",".charCodeAt(0)] = true;
975
892
  Utf7IMAPDecoder.prototype.write = function(buf) {
976
- var res = "";
977
- var lastI = 0;
978
- var inBase64 = this.inBase64;
979
- var base64Accum = this.base64Accum;
893
+ var res = "", lastI = 0, inBase64 = this.inBase64, base64Accum = this.base64Accum;
980
894
  for (var i2 = 0; i2 < buf.length; i2++) {
981
895
  if (!inBase64) {
982
896
  if (buf[i2] == andChar) {
@@ -992,9 +906,8 @@ var require_utf7 = __commonJS({
992
906
  var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i2), "ascii").replace(/,/g, "/");
993
907
  res += this.iconv.decode(Buffer3.from(b64str, "base64"), "utf16-be");
994
908
  }
995
- if (buf[i2] != minusChar) {
909
+ if (buf[i2] != minusChar)
996
910
  i2--;
997
- }
998
911
  lastI = i2 + 1;
999
912
  inBase64 = false;
1000
913
  base64Accum = "";
@@ -1016,9 +929,8 @@ var require_utf7 = __commonJS({
1016
929
  };
1017
930
  Utf7IMAPDecoder.prototype.end = function() {
1018
931
  var res = "";
1019
- if (this.inBase64 && this.base64Accum.length > 0) {
932
+ if (this.inBase64 && this.base64Accum.length > 0)
1020
933
  res = this.iconv.decode(Buffer3.from(this.base64Accum, "base64"), "utf16-be");
1021
- }
1022
934
  this.inBase64 = false;
1023
935
  this.base64Accum = "";
1024
936
  return res;
@@ -1026,32 +938,28 @@ var require_utf7 = __commonJS({
1026
938
  }
1027
939
  });
1028
940
 
1029
- // packages/core/node_modules/iconv-lite/encodings/sbcs-codec.js
941
+ // node_modules/iconv-lite/encodings/sbcs-codec.js
1030
942
  var require_sbcs_codec = __commonJS({
1031
- "packages/core/node_modules/iconv-lite/encodings/sbcs-codec.js"(exports2) {
943
+ "node_modules/iconv-lite/encodings/sbcs-codec.js"(exports2) {
1032
944
  "use strict";
1033
945
  init_esbuild_shims();
1034
946
  var Buffer3 = require_safer().Buffer;
1035
947
  exports2._sbcs = SBCSCodec;
1036
948
  function SBCSCodec(codecOptions, iconv) {
1037
- if (!codecOptions) {
949
+ if (!codecOptions)
1038
950
  throw new Error("SBCS codec is called without the data.");
1039
- }
1040
- if (!codecOptions.chars || codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256) {
951
+ if (!codecOptions.chars || codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256)
1041
952
  throw new Error("Encoding '" + codecOptions.type + "' has incorrect 'chars' (must be of len 128 or 256)");
1042
- }
1043
953
  if (codecOptions.chars.length === 128) {
1044
954
  var asciiString = "";
1045
- for (var i = 0; i < 128; i++) {
955
+ for (var i = 0; i < 128; i++)
1046
956
  asciiString += String.fromCharCode(i);
1047
- }
1048
957
  codecOptions.chars = asciiString + codecOptions.chars;
1049
958
  }
1050
959
  this.decodeBuf = Buffer3.from(codecOptions.chars, "ucs2");
1051
960
  var encodeBuf = Buffer3.alloc(65536, iconv.defaultCharSingleByte.charCodeAt(0));
1052
- for (var i = 0; i < codecOptions.chars.length; i++) {
961
+ for (var i = 0; i < codecOptions.chars.length; i++)
1053
962
  encodeBuf[codecOptions.chars.charCodeAt(i)] = i;
1054
- }
1055
963
  this.encodeBuf = encodeBuf;
1056
964
  }
1057
965
  __name(SBCSCodec, "SBCSCodec");
@@ -1063,9 +971,8 @@ var require_sbcs_codec = __commonJS({
1063
971
  __name(SBCSEncoder, "SBCSEncoder");
1064
972
  SBCSEncoder.prototype.write = function(str) {
1065
973
  var buf = Buffer3.alloc(str.length);
1066
- for (var i = 0; i < str.length; i++) {
974
+ for (var i = 0; i < str.length; i++)
1067
975
  buf[i] = this.encodeBuf[str.charCodeAt(i)];
1068
- }
1069
976
  return buf;
1070
977
  };
1071
978
  SBCSEncoder.prototype.end = function() {
@@ -1077,8 +984,7 @@ var require_sbcs_codec = __commonJS({
1077
984
  SBCSDecoder.prototype.write = function(buf) {
1078
985
  var decodeBuf = this.decodeBuf;
1079
986
  var newBuf = Buffer3.alloc(buf.length * 2);
1080
- var idx1 = 0;
1081
- var idx2 = 0;
987
+ var idx1 = 0, idx2 = 0;
1082
988
  for (var i = 0; i < buf.length; i++) {
1083
989
  idx1 = buf[i] * 2;
1084
990
  idx2 = i * 2;
@@ -1092,163 +998,163 @@ var require_sbcs_codec = __commonJS({
1092
998
  }
1093
999
  });
1094
1000
 
1095
- // packages/core/node_modules/iconv-lite/encodings/sbcs-data.js
1001
+ // node_modules/iconv-lite/encodings/sbcs-data.js
1096
1002
  var require_sbcs_data = __commonJS({
1097
- "packages/core/node_modules/iconv-lite/encodings/sbcs-data.js"(exports2, module2) {
1003
+ "node_modules/iconv-lite/encodings/sbcs-data.js"(exports2, module2) {
1098
1004
  "use strict";
1099
1005
  init_esbuild_shims();
1100
1006
  module2.exports = {
1101
1007
  // Not supported by iconv, not sure why.
1102
- 10029: "maccenteuro",
1103
- maccenteuro: {
1104
- type: "_sbcs",
1105
- chars: "\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7"
1008
+ "10029": "maccenteuro",
1009
+ "maccenteuro": {
1010
+ "type": "_sbcs",
1011
+ "chars": "\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7"
1106
1012
  },
1107
- 808: "cp808",
1108
- ibm808: "cp808",
1109
- cp808: {
1110
- type: "_sbcs",
1111
- chars: "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\u20AC\u25A0\xA0"
1013
+ "808": "cp808",
1014
+ "ibm808": "cp808",
1015
+ "cp808": {
1016
+ "type": "_sbcs",
1017
+ "chars": "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\u20AC\u25A0\xA0"
1112
1018
  },
1113
- mik: {
1114
- type: "_sbcs",
1115
- chars: "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2514\u2534\u252C\u251C\u2500\u253C\u2563\u2551\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xA7\u2557\u255D\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
1019
+ "mik": {
1020
+ "type": "_sbcs",
1021
+ "chars": "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2514\u2534\u252C\u251C\u2500\u253C\u2563\u2551\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xA7\u2557\u255D\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
1116
1022
  },
1117
- cp720: {
1118
- type: "_sbcs",
1119
- chars: "\x80\x81\xE9\xE2\x84\xE0\x86\xE7\xEA\xEB\xE8\xEF\xEE\x8D\x8E\x8F\x90\u0651\u0652\xF4\xA4\u0640\xFB\xF9\u0621\u0622\u0623\u0624\xA3\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0636\u0637\u0638\u0639\u063A\u0641\xB5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u2261\u064B\u064C\u064D\u064E\u064F\u0650\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
1023
+ "cp720": {
1024
+ "type": "_sbcs",
1025
+ "chars": "\x80\x81\xE9\xE2\x84\xE0\x86\xE7\xEA\xEB\xE8\xEF\xEE\x8D\x8E\x8F\x90\u0651\u0652\xF4\xA4\u0640\xFB\xF9\u0621\u0622\u0623\u0624\xA3\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0636\u0637\u0638\u0639\u063A\u0641\xB5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u2261\u064B\u064C\u064D\u064E\u064F\u0650\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
1120
1026
  },
1121
1027
  // Aliases of generated encodings.
1122
- ascii8bit: "ascii",
1123
- usascii: "ascii",
1124
- ansix34: "ascii",
1125
- ansix341968: "ascii",
1126
- ansix341986: "ascii",
1127
- csascii: "ascii",
1128
- cp367: "ascii",
1129
- ibm367: "ascii",
1130
- isoir6: "ascii",
1131
- iso646us: "ascii",
1132
- iso646irv: "ascii",
1133
- us: "ascii",
1134
- latin1: "iso88591",
1135
- latin2: "iso88592",
1136
- latin3: "iso88593",
1137
- latin4: "iso88594",
1138
- latin5: "iso88599",
1139
- latin6: "iso885910",
1140
- latin7: "iso885913",
1141
- latin8: "iso885914",
1142
- latin9: "iso885915",
1143
- latin10: "iso885916",
1144
- csisolatin1: "iso88591",
1145
- csisolatin2: "iso88592",
1146
- csisolatin3: "iso88593",
1147
- csisolatin4: "iso88594",
1148
- csisolatincyrillic: "iso88595",
1149
- csisolatinarabic: "iso88596",
1150
- csisolatingreek: "iso88597",
1151
- csisolatinhebrew: "iso88598",
1152
- csisolatin5: "iso88599",
1153
- csisolatin6: "iso885910",
1154
- l1: "iso88591",
1155
- l2: "iso88592",
1156
- l3: "iso88593",
1157
- l4: "iso88594",
1158
- l5: "iso88599",
1159
- l6: "iso885910",
1160
- l7: "iso885913",
1161
- l8: "iso885914",
1162
- l9: "iso885915",
1163
- l10: "iso885916",
1164
- isoir14: "iso646jp",
1165
- isoir57: "iso646cn",
1166
- isoir100: "iso88591",
1167
- isoir101: "iso88592",
1168
- isoir109: "iso88593",
1169
- isoir110: "iso88594",
1170
- isoir144: "iso88595",
1171
- isoir127: "iso88596",
1172
- isoir126: "iso88597",
1173
- isoir138: "iso88598",
1174
- isoir148: "iso88599",
1175
- isoir157: "iso885910",
1176
- isoir166: "tis620",
1177
- isoir179: "iso885913",
1178
- isoir199: "iso885914",
1179
- isoir203: "iso885915",
1180
- isoir226: "iso885916",
1181
- cp819: "iso88591",
1182
- ibm819: "iso88591",
1183
- cyrillic: "iso88595",
1184
- arabic: "iso88596",
1185
- arabic8: "iso88596",
1186
- ecma114: "iso88596",
1187
- asmo708: "iso88596",
1188
- greek: "iso88597",
1189
- greek8: "iso88597",
1190
- ecma118: "iso88597",
1191
- elot928: "iso88597",
1192
- hebrew: "iso88598",
1193
- hebrew8: "iso88598",
1194
- turkish: "iso88599",
1195
- turkish8: "iso88599",
1196
- thai: "iso885911",
1197
- thai8: "iso885911",
1198
- celtic: "iso885914",
1199
- celtic8: "iso885914",
1200
- isoceltic: "iso885914",
1201
- tis6200: "tis620",
1202
- tis62025291: "tis620",
1203
- tis62025330: "tis620",
1204
- 1e4: "macroman",
1205
- 10006: "macgreek",
1206
- 10007: "maccyrillic",
1207
- 10079: "maciceland",
1208
- 10081: "macturkish",
1209
- cspc8codepage437: "cp437",
1210
- cspc775baltic: "cp775",
1211
- cspc850multilingual: "cp850",
1212
- cspcp852: "cp852",
1213
- cspc862latinhebrew: "cp862",
1214
- cpgr: "cp869",
1215
- msee: "cp1250",
1216
- mscyrl: "cp1251",
1217
- msansi: "cp1252",
1218
- msgreek: "cp1253",
1219
- msturk: "cp1254",
1220
- mshebr: "cp1255",
1221
- msarab: "cp1256",
1222
- winbaltrim: "cp1257",
1223
- cp20866: "koi8r",
1224
- 20866: "koi8r",
1225
- ibm878: "koi8r",
1226
- cskoi8r: "koi8r",
1227
- cp21866: "koi8u",
1228
- 21866: "koi8u",
1229
- ibm1168: "koi8u",
1230
- strk10482002: "rk1048",
1231
- tcvn5712: "tcvn",
1232
- tcvn57121: "tcvn",
1233
- gb198880: "iso646cn",
1234
- cn: "iso646cn",
1235
- csiso14jisc6220ro: "iso646jp",
1236
- jisc62201969ro: "iso646jp",
1237
- jp: "iso646jp",
1238
- cshproman8: "hproman8",
1239
- r8: "hproman8",
1240
- roman8: "hproman8",
1241
- xroman8: "hproman8",
1242
- ibm1051: "hproman8",
1243
- mac: "macintosh",
1244
- csmacintosh: "macintosh"
1028
+ "ascii8bit": "ascii",
1029
+ "usascii": "ascii",
1030
+ "ansix34": "ascii",
1031
+ "ansix341968": "ascii",
1032
+ "ansix341986": "ascii",
1033
+ "csascii": "ascii",
1034
+ "cp367": "ascii",
1035
+ "ibm367": "ascii",
1036
+ "isoir6": "ascii",
1037
+ "iso646us": "ascii",
1038
+ "iso646irv": "ascii",
1039
+ "us": "ascii",
1040
+ "latin1": "iso88591",
1041
+ "latin2": "iso88592",
1042
+ "latin3": "iso88593",
1043
+ "latin4": "iso88594",
1044
+ "latin5": "iso88599",
1045
+ "latin6": "iso885910",
1046
+ "latin7": "iso885913",
1047
+ "latin8": "iso885914",
1048
+ "latin9": "iso885915",
1049
+ "latin10": "iso885916",
1050
+ "csisolatin1": "iso88591",
1051
+ "csisolatin2": "iso88592",
1052
+ "csisolatin3": "iso88593",
1053
+ "csisolatin4": "iso88594",
1054
+ "csisolatincyrillic": "iso88595",
1055
+ "csisolatinarabic": "iso88596",
1056
+ "csisolatingreek": "iso88597",
1057
+ "csisolatinhebrew": "iso88598",
1058
+ "csisolatin5": "iso88599",
1059
+ "csisolatin6": "iso885910",
1060
+ "l1": "iso88591",
1061
+ "l2": "iso88592",
1062
+ "l3": "iso88593",
1063
+ "l4": "iso88594",
1064
+ "l5": "iso88599",
1065
+ "l6": "iso885910",
1066
+ "l7": "iso885913",
1067
+ "l8": "iso885914",
1068
+ "l9": "iso885915",
1069
+ "l10": "iso885916",
1070
+ "isoir14": "iso646jp",
1071
+ "isoir57": "iso646cn",
1072
+ "isoir100": "iso88591",
1073
+ "isoir101": "iso88592",
1074
+ "isoir109": "iso88593",
1075
+ "isoir110": "iso88594",
1076
+ "isoir144": "iso88595",
1077
+ "isoir127": "iso88596",
1078
+ "isoir126": "iso88597",
1079
+ "isoir138": "iso88598",
1080
+ "isoir148": "iso88599",
1081
+ "isoir157": "iso885910",
1082
+ "isoir166": "tis620",
1083
+ "isoir179": "iso885913",
1084
+ "isoir199": "iso885914",
1085
+ "isoir203": "iso885915",
1086
+ "isoir226": "iso885916",
1087
+ "cp819": "iso88591",
1088
+ "ibm819": "iso88591",
1089
+ "cyrillic": "iso88595",
1090
+ "arabic": "iso88596",
1091
+ "arabic8": "iso88596",
1092
+ "ecma114": "iso88596",
1093
+ "asmo708": "iso88596",
1094
+ "greek": "iso88597",
1095
+ "greek8": "iso88597",
1096
+ "ecma118": "iso88597",
1097
+ "elot928": "iso88597",
1098
+ "hebrew": "iso88598",
1099
+ "hebrew8": "iso88598",
1100
+ "turkish": "iso88599",
1101
+ "turkish8": "iso88599",
1102
+ "thai": "iso885911",
1103
+ "thai8": "iso885911",
1104
+ "celtic": "iso885914",
1105
+ "celtic8": "iso885914",
1106
+ "isoceltic": "iso885914",
1107
+ "tis6200": "tis620",
1108
+ "tis62025291": "tis620",
1109
+ "tis62025330": "tis620",
1110
+ "10000": "macroman",
1111
+ "10006": "macgreek",
1112
+ "10007": "maccyrillic",
1113
+ "10079": "maciceland",
1114
+ "10081": "macturkish",
1115
+ "cspc8codepage437": "cp437",
1116
+ "cspc775baltic": "cp775",
1117
+ "cspc850multilingual": "cp850",
1118
+ "cspcp852": "cp852",
1119
+ "cspc862latinhebrew": "cp862",
1120
+ "cpgr": "cp869",
1121
+ "msee": "cp1250",
1122
+ "mscyrl": "cp1251",
1123
+ "msansi": "cp1252",
1124
+ "msgreek": "cp1253",
1125
+ "msturk": "cp1254",
1126
+ "mshebr": "cp1255",
1127
+ "msarab": "cp1256",
1128
+ "winbaltrim": "cp1257",
1129
+ "cp20866": "koi8r",
1130
+ "20866": "koi8r",
1131
+ "ibm878": "koi8r",
1132
+ "cskoi8r": "koi8r",
1133
+ "cp21866": "koi8u",
1134
+ "21866": "koi8u",
1135
+ "ibm1168": "koi8u",
1136
+ "strk10482002": "rk1048",
1137
+ "tcvn5712": "tcvn",
1138
+ "tcvn57121": "tcvn",
1139
+ "gb198880": "iso646cn",
1140
+ "cn": "iso646cn",
1141
+ "csiso14jisc6220ro": "iso646jp",
1142
+ "jisc62201969ro": "iso646jp",
1143
+ "jp": "iso646jp",
1144
+ "cshproman8": "hproman8",
1145
+ "r8": "hproman8",
1146
+ "roman8": "hproman8",
1147
+ "xroman8": "hproman8",
1148
+ "ibm1051": "hproman8",
1149
+ "mac": "macintosh",
1150
+ "csmacintosh": "macintosh"
1245
1151
  };
1246
1152
  }
1247
1153
  });
1248
1154
 
1249
- // packages/core/node_modules/iconv-lite/encodings/sbcs-data-generated.js
1155
+ // node_modules/iconv-lite/encodings/sbcs-data-generated.js
1250
1156
  var require_sbcs_data_generated = __commonJS({
1251
- "packages/core/node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports2, module2) {
1157
+ "node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports2, module2) {
1252
1158
  "use strict";
1253
1159
  init_esbuild_shims();
1254
1160
  module2.exports = {
@@ -1702,9 +1608,9 @@ var require_sbcs_data_generated = __commonJS({
1702
1608
  }
1703
1609
  });
1704
1610
 
1705
- // packages/core/node_modules/iconv-lite/encodings/dbcs-codec.js
1611
+ // node_modules/iconv-lite/encodings/dbcs-codec.js
1706
1612
  var require_dbcs_codec = __commonJS({
1707
- "packages/core/node_modules/iconv-lite/encodings/dbcs-codec.js"(exports2) {
1613
+ "node_modules/iconv-lite/encodings/dbcs-codec.js"(exports2) {
1708
1614
  "use strict";
1709
1615
  init_esbuild_shims();
1710
1616
  var Buffer3 = require_safer().Buffer;
@@ -1715,25 +1621,21 @@ var require_dbcs_codec = __commonJS({
1715
1621
  var NODE_START = -1e3;
1716
1622
  var UNASSIGNED_NODE = new Array(256);
1717
1623
  var DEF_CHAR = -1;
1718
- for (i = 0; i < 256; i++) {
1624
+ for (i = 0; i < 256; i++)
1719
1625
  UNASSIGNED_NODE[i] = UNASSIGNED;
1720
- }
1721
1626
  var i;
1722
1627
  function DBCSCodec(codecOptions, iconv) {
1723
1628
  this.encodingName = codecOptions.encodingName;
1724
- if (!codecOptions) {
1629
+ if (!codecOptions)
1725
1630
  throw new Error("DBCS codec is called without the data.");
1726
- }
1727
- if (!codecOptions.table) {
1631
+ if (!codecOptions.table)
1728
1632
  throw new Error("Encoding '" + this.encodingName + "' has no data.");
1729
- }
1730
1633
  var mappingTable = codecOptions.table();
1731
1634
  this.decodeTables = [];
1732
1635
  this.decodeTables[0] = UNASSIGNED_NODE.slice(0);
1733
1636
  this.decodeTableSeq = [];
1734
- for (var i2 = 0; i2 < mappingTable.length; i2++) {
1637
+ for (var i2 = 0; i2 < mappingTable.length; i2++)
1735
1638
  this._addDecodeChunk(mappingTable[i2]);
1736
- }
1737
1639
  if (typeof codecOptions.gb18030 === "function") {
1738
1640
  this.gb18030 = codecOptions.gb18030();
1739
1641
  var commonThirdByteNodeIdx = this.decodeTables.length;
@@ -1760,9 +1662,8 @@ var require_dbcs_codec = __commonJS({
1760
1662
  }
1761
1663
  var fourthByteNode = this.decodeTables[NODE_START - thirdByteNode[k]];
1762
1664
  for (var l = 48; l <= 57; l++) {
1763
- if (fourthByteNode[l] === UNASSIGNED) {
1665
+ if (fourthByteNode[l] === UNASSIGNED)
1764
1666
  fourthByteNode[l] = GB18030_CODE;
1765
- }
1766
1667
  }
1767
1668
  }
1768
1669
  }
@@ -1772,25 +1673,20 @@ var require_dbcs_codec = __commonJS({
1772
1673
  this.encodeTable = [];
1773
1674
  this.encodeTableSeq = [];
1774
1675
  var skipEncodeChars = {};
1775
- if (codecOptions.encodeSkipVals) {
1676
+ if (codecOptions.encodeSkipVals)
1776
1677
  for (var i2 = 0; i2 < codecOptions.encodeSkipVals.length; i2++) {
1777
1678
  var val = codecOptions.encodeSkipVals[i2];
1778
- if (typeof val === "number") {
1679
+ if (typeof val === "number")
1779
1680
  skipEncodeChars[val] = true;
1780
- } else {
1781
- for (var j = val.from; j <= val.to; j++) {
1681
+ else
1682
+ for (var j = val.from; j <= val.to; j++)
1782
1683
  skipEncodeChars[j] = true;
1783
- }
1784
- }
1785
1684
  }
1786
- }
1787
1685
  this._fillEncodeTable(0, 0, skipEncodeChars);
1788
1686
  if (codecOptions.encodeAdd) {
1789
- for (var uChar in codecOptions.encodeAdd) {
1790
- if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar)) {
1687
+ for (var uChar in codecOptions.encodeAdd)
1688
+ if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar))
1791
1689
  this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]);
1792
- }
1793
- }
1794
1690
  }
1795
1691
  this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)];
1796
1692
  if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]["?"];
@@ -1801,12 +1697,10 @@ var require_dbcs_codec = __commonJS({
1801
1697
  DBCSCodec.prototype.decoder = DBCSDecoder;
1802
1698
  DBCSCodec.prototype._getDecodeTrieNode = function(addr) {
1803
1699
  var bytes = [];
1804
- for (; addr > 0; addr >>>= 8) {
1700
+ for (; addr > 0; addr >>>= 8)
1805
1701
  bytes.push(addr & 255);
1806
- }
1807
- if (bytes.length == 0) {
1702
+ if (bytes.length == 0)
1808
1703
  bytes.push(0);
1809
- }
1810
1704
  var node = this.decodeTables[0];
1811
1705
  for (var i2 = bytes.length - 1; i2 > 0; i2--) {
1812
1706
  var val = node[bytes[i2]];
@@ -1815,9 +1709,8 @@ var require_dbcs_codec = __commonJS({
1815
1709
  this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));
1816
1710
  } else if (val <= NODE_START) {
1817
1711
  node = this.decodeTables[NODE_START - val];
1818
- } else {
1712
+ } else
1819
1713
  throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16));
1820
- }
1821
1714
  }
1822
1715
  return node;
1823
1716
  };
@@ -1830,53 +1723,45 @@ var require_dbcs_codec = __commonJS({
1830
1723
  if (typeof part === "string") {
1831
1724
  for (var l = 0; l < part.length; ) {
1832
1725
  var code = part.charCodeAt(l++);
1833
- if (code >= 55296 && code < 56320) {
1726
+ if (55296 <= code && code < 56320) {
1834
1727
  var codeTrail = part.charCodeAt(l++);
1835
- if (codeTrail >= 56320 && codeTrail < 57344) {
1728
+ if (56320 <= codeTrail && codeTrail < 57344)
1836
1729
  writeTable[curAddr++] = 65536 + (code - 55296) * 1024 + (codeTrail - 56320);
1837
- } else {
1730
+ else
1838
1731
  throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]);
1839
- }
1840
- } else if (code > 4080 && code <= 4095) {
1732
+ } else if (4080 < code && code <= 4095) {
1841
1733
  var len = 4095 - code + 2;
1842
1734
  var seq = [];
1843
- for (var m = 0; m < len; m++) {
1735
+ for (var m = 0; m < len; m++)
1844
1736
  seq.push(part.charCodeAt(l++));
1845
- }
1846
1737
  writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length;
1847
1738
  this.decodeTableSeq.push(seq);
1848
- } else {
1739
+ } else
1849
1740
  writeTable[curAddr++] = code;
1850
- }
1851
1741
  }
1852
1742
  } else if (typeof part === "number") {
1853
1743
  var charCode = writeTable[curAddr - 1] + 1;
1854
- for (var l = 0; l < part; l++) {
1744
+ for (var l = 0; l < part; l++)
1855
1745
  writeTable[curAddr++] = charCode++;
1856
- }
1857
- } else {
1746
+ } else
1858
1747
  throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]);
1859
- }
1860
1748
  }
1861
- if (curAddr > 255) {
1749
+ if (curAddr > 255)
1862
1750
  throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr);
1863
- }
1864
1751
  };
1865
1752
  DBCSCodec.prototype._getEncodeBucket = function(uCode) {
1866
1753
  var high = uCode >> 8;
1867
- if (this.encodeTable[high] === void 0) {
1754
+ if (this.encodeTable[high] === void 0)
1868
1755
  this.encodeTable[high] = UNASSIGNED_NODE.slice(0);
1869
- }
1870
1756
  return this.encodeTable[high];
1871
1757
  };
1872
1758
  DBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) {
1873
1759
  var bucket = this._getEncodeBucket(uCode);
1874
1760
  var low = uCode & 255;
1875
- if (bucket[low] <= SEQ_START) {
1761
+ if (bucket[low] <= SEQ_START)
1876
1762
  this.encodeTableSeq[SEQ_START - bucket[low]][DEF_CHAR] = dbcsCode;
1877
- } else if (bucket[low] == UNASSIGNED) {
1763
+ else if (bucket[low] == UNASSIGNED)
1878
1764
  bucket[low] = dbcsCode;
1879
- }
1880
1765
  };
1881
1766
  DBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) {
1882
1767
  var uCode = seq[0];
@@ -1893,13 +1778,12 @@ var require_dbcs_codec = __commonJS({
1893
1778
  }
1894
1779
  for (var j = 1; j < seq.length - 1; j++) {
1895
1780
  var oldVal = node[uCode];
1896
- if (typeof oldVal === "object") {
1781
+ if (typeof oldVal === "object")
1897
1782
  node = oldVal;
1898
- } else {
1783
+ else {
1899
1784
  node = node[uCode] = {};
1900
- if (oldVal !== void 0) {
1785
+ if (oldVal !== void 0)
1901
1786
  node[DEF_CHAR] = oldVal;
1902
- }
1903
1787
  }
1904
1788
  }
1905
1789
  uCode = seq[seq.length - 1];
@@ -1912,9 +1796,8 @@ var require_dbcs_codec = __commonJS({
1912
1796
  for (var i2 = 0; i2 < 256; i2++) {
1913
1797
  var uCode = node[i2];
1914
1798
  var mbCode = prefix + i2;
1915
- if (skipEncodeChars[mbCode]) {
1799
+ if (skipEncodeChars[mbCode])
1916
1800
  continue;
1917
- }
1918
1801
  if (uCode >= 0) {
1919
1802
  this._setEncodeChar(uCode, mbCode);
1920
1803
  hasValues = true;
@@ -1922,11 +1805,10 @@ var require_dbcs_codec = __commonJS({
1922
1805
  var subNodeIdx = NODE_START - uCode;
1923
1806
  if (!subNodeEmpty[subNodeIdx]) {
1924
1807
  var newPrefix = mbCode << 8 >>> 0;
1925
- if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars)) {
1808
+ if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars))
1926
1809
  hasValues = true;
1927
- } else {
1810
+ else
1928
1811
  subNodeEmpty[subNodeIdx] = true;
1929
- }
1930
1812
  }
1931
1813
  } else if (uCode <= SEQ_START) {
1932
1814
  this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode);
@@ -1945,12 +1827,7 @@ var require_dbcs_codec = __commonJS({
1945
1827
  }
1946
1828
  __name(DBCSEncoder, "DBCSEncoder");
1947
1829
  DBCSEncoder.prototype.write = function(str) {
1948
- var newBuf = Buffer3.alloc(str.length * (this.gb18030 ? 4 : 3));
1949
- var leadSurrogate = this.leadSurrogate;
1950
- var seqObj = this.seqObj;
1951
- var nextChar = -1;
1952
- var i2 = 0;
1953
- var j = 0;
1830
+ var newBuf = Buffer3.alloc(str.length * (this.gb18030 ? 4 : 3)), leadSurrogate = this.leadSurrogate, seqObj = this.seqObj, nextChar = -1, i2 = 0, j = 0;
1954
1831
  while (true) {
1955
1832
  if (nextChar === -1) {
1956
1833
  if (i2 == str.length) break;
@@ -1959,7 +1836,7 @@ var require_dbcs_codec = __commonJS({
1959
1836
  var uCode = nextChar;
1960
1837
  nextChar = -1;
1961
1838
  }
1962
- if (uCode >= 55296 && uCode < 57344) {
1839
+ if (55296 <= uCode && uCode < 57344) {
1963
1840
  if (uCode < 56320) {
1964
1841
  if (leadSurrogate === -1) {
1965
1842
  leadSurrogate = uCode;
@@ -1987,7 +1864,7 @@ var require_dbcs_codec = __commonJS({
1987
1864
  if (typeof resCode === "object") {
1988
1865
  seqObj = resCode;
1989
1866
  continue;
1990
- } else if (typeof resCode === "number") {
1867
+ } else if (typeof resCode == "number") {
1991
1868
  dbcsCode = resCode;
1992
1869
  } else if (resCode == void 0) {
1993
1870
  resCode = seqObj[DEF_CHAR];
@@ -2000,9 +1877,8 @@ var require_dbcs_codec = __commonJS({
2000
1877
  seqObj = void 0;
2001
1878
  } else if (uCode >= 0) {
2002
1879
  var subtable = this.encodeTable[uCode >> 8];
2003
- if (subtable !== void 0) {
1880
+ if (subtable !== void 0)
2004
1881
  dbcsCode = subtable[uCode & 255];
2005
- }
2006
1882
  if (dbcsCode <= SEQ_START) {
2007
1883
  seqObj = this.encodeTableSeq[SEQ_START - dbcsCode];
2008
1884
  continue;
@@ -2022,9 +1898,8 @@ var require_dbcs_codec = __commonJS({
2022
1898
  }
2023
1899
  }
2024
1900
  }
2025
- if (dbcsCode === UNASSIGNED) {
1901
+ if (dbcsCode === UNASSIGNED)
2026
1902
  dbcsCode = this.defaultCharSingleByte;
2027
- }
2028
1903
  if (dbcsCode < 256) {
2029
1904
  newBuf[j++] = dbcsCode;
2030
1905
  } else if (dbcsCode < 65536) {
@@ -2046,11 +1921,9 @@ var require_dbcs_codec = __commonJS({
2046
1921
  return newBuf.slice(0, j);
2047
1922
  };
2048
1923
  DBCSEncoder.prototype.end = function() {
2049
- if (this.leadSurrogate === -1 && this.seqObj === void 0) {
1924
+ if (this.leadSurrogate === -1 && this.seqObj === void 0)
2050
1925
  return;
2051
- }
2052
- var newBuf = Buffer3.alloc(10);
2053
- var j = 0;
1926
+ var newBuf = Buffer3.alloc(10), j = 0;
2054
1927
  if (this.seqObj) {
2055
1928
  var dbcsCode = this.seqObj[DEF_CHAR];
2056
1929
  if (dbcsCode !== void 0) {
@@ -2081,12 +1954,7 @@ var require_dbcs_codec = __commonJS({
2081
1954
  }
2082
1955
  __name(DBCSDecoder, "DBCSDecoder");
2083
1956
  DBCSDecoder.prototype.write = function(buf) {
2084
- var newBuf = Buffer3.alloc(buf.length * 2);
2085
- var nodeIdx = this.nodeIdx;
2086
- var prevBytes = this.prevBytes;
2087
- var prevOffset = this.prevBytes.length;
2088
- var seqStart = -this.prevBytes.length;
2089
- var uCode;
1957
+ var newBuf = Buffer3.alloc(buf.length * 2), nodeIdx = this.nodeIdx, prevBytes = this.prevBytes, prevOffset = this.prevBytes.length, seqStart = -this.prevBytes.length, uCode;
2090
1958
  for (var i2 = 0, j = 0; i2 < buf.length; i2++) {
2091
1959
  var curByte = i2 >= 0 ? buf[i2] : prevBytes[i2 + prevOffset];
2092
1960
  var uCode = this.decodeTables[nodeIdx][curByte];
@@ -2113,9 +1981,8 @@ var require_dbcs_codec = __commonJS({
2113
1981
  newBuf[j++] = uCode >> 8;
2114
1982
  }
2115
1983
  uCode = seq[seq.length - 1];
2116
- } else {
1984
+ } else
2117
1985
  throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte);
2118
- }
2119
1986
  if (uCode >= 65536) {
2120
1987
  uCode -= 65536;
2121
1988
  var uCodeLead = 55296 | uCode >> 10;
@@ -2139,27 +2006,23 @@ var require_dbcs_codec = __commonJS({
2139
2006
  var bytesArr = this.prevBytes.slice(1);
2140
2007
  this.prevBytes = [];
2141
2008
  this.nodeIdx = 0;
2142
- if (bytesArr.length > 0) {
2009
+ if (bytesArr.length > 0)
2143
2010
  ret += this.write(bytesArr);
2144
- }
2145
2011
  }
2146
2012
  this.prevBytes = [];
2147
2013
  this.nodeIdx = 0;
2148
2014
  return ret;
2149
2015
  };
2150
2016
  function findIdx(table, val) {
2151
- if (table[0] > val) {
2017
+ if (table[0] > val)
2152
2018
  return -1;
2153
- }
2154
- var l = 0;
2155
- var r = table.length;
2019
+ var l = 0, r = table.length;
2156
2020
  while (l < r - 1) {
2157
2021
  var mid = l + (r - l + 1 >> 1);
2158
- if (table[mid] <= val) {
2022
+ if (table[mid] <= val)
2159
2023
  l = mid;
2160
- } else {
2024
+ else
2161
2025
  r = mid;
2162
- }
2163
2026
  }
2164
2027
  return l;
2165
2028
  }
@@ -2167,9 +2030,9 @@ var require_dbcs_codec = __commonJS({
2167
2030
  }
2168
2031
  });
2169
2032
 
2170
- // packages/core/node_modules/iconv-lite/encodings/tables/shiftjis.json
2033
+ // node_modules/iconv-lite/encodings/tables/shiftjis.json
2171
2034
  var require_shiftjis = __commonJS({
2172
- "packages/core/node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports2, module2) {
2035
+ "node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports2, module2) {
2173
2036
  module2.exports = [
2174
2037
  ["0", "\0", 128],
2175
2038
  ["a1", "\uFF61", 62],
@@ -2298,9 +2161,9 @@ var require_shiftjis = __commonJS({
2298
2161
  }
2299
2162
  });
2300
2163
 
2301
- // packages/core/node_modules/iconv-lite/encodings/tables/eucjp.json
2164
+ // node_modules/iconv-lite/encodings/tables/eucjp.json
2302
2165
  var require_eucjp = __commonJS({
2303
- "packages/core/node_modules/iconv-lite/encodings/tables/eucjp.json"(exports2, module2) {
2166
+ "node_modules/iconv-lite/encodings/tables/eucjp.json"(exports2, module2) {
2304
2167
  module2.exports = [
2305
2168
  ["0", "\0", 127],
2306
2169
  ["8ea1", "\uFF61", 62],
@@ -2486,9 +2349,9 @@ var require_eucjp = __commonJS({
2486
2349
  }
2487
2350
  });
2488
2351
 
2489
- // packages/core/node_modules/iconv-lite/encodings/tables/cp936.json
2352
+ // node_modules/iconv-lite/encodings/tables/cp936.json
2490
2353
  var require_cp936 = __commonJS({
2491
- "packages/core/node_modules/iconv-lite/encodings/tables/cp936.json"(exports2, module2) {
2354
+ "node_modules/iconv-lite/encodings/tables/cp936.json"(exports2, module2) {
2492
2355
  module2.exports = [
2493
2356
  ["0", "\0", 127, "\u20AC"],
2494
2357
  ["8140", "\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A", 5, "\u4E72\u4E74", 9, "\u4E7F", 6, "\u4E87\u4E8A"],
@@ -2756,9 +2619,9 @@ var require_cp936 = __commonJS({
2756
2619
  }
2757
2620
  });
2758
2621
 
2759
- // packages/core/node_modules/iconv-lite/encodings/tables/gbk-added.json
2622
+ // node_modules/iconv-lite/encodings/tables/gbk-added.json
2760
2623
  var require_gbk_added = __commonJS({
2761
- "packages/core/node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports2, module2) {
2624
+ "node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports2, module2) {
2762
2625
  module2.exports = [
2763
2626
  ["a140", "\uE4C6", 62],
2764
2627
  ["a180", "\uE505", 32],
@@ -2818,16 +2681,16 @@ var require_gbk_added = __commonJS({
2818
2681
  }
2819
2682
  });
2820
2683
 
2821
- // packages/core/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
2684
+ // node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
2822
2685
  var require_gb18030_ranges = __commonJS({
2823
- "packages/core/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports2, module2) {
2686
+ "node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports2, module2) {
2824
2687
  module2.exports = { uChars: [128, 165, 169, 178, 184, 216, 226, 235, 238, 244, 248, 251, 253, 258, 276, 284, 300, 325, 329, 334, 364, 463, 465, 467, 469, 471, 473, 475, 477, 506, 594, 610, 712, 716, 730, 930, 938, 962, 970, 1026, 1104, 1106, 8209, 8215, 8218, 8222, 8231, 8241, 8244, 8246, 8252, 8365, 8452, 8454, 8458, 8471, 8482, 8556, 8570, 8596, 8602, 8713, 8720, 8722, 8726, 8731, 8737, 8740, 8742, 8748, 8751, 8760, 8766, 8777, 8781, 8787, 8802, 8808, 8816, 8854, 8858, 8870, 8896, 8979, 9322, 9372, 9548, 9588, 9616, 9622, 9634, 9652, 9662, 9672, 9676, 9680, 9702, 9735, 9738, 9793, 9795, 11906, 11909, 11913, 11917, 11928, 11944, 11947, 11951, 11956, 11960, 11964, 11979, 12284, 12292, 12312, 12319, 12330, 12351, 12436, 12447, 12535, 12543, 12586, 12842, 12850, 12964, 13200, 13215, 13218, 13253, 13263, 13267, 13270, 13384, 13428, 13727, 13839, 13851, 14617, 14703, 14801, 14816, 14964, 15183, 15471, 15585, 16471, 16736, 17208, 17325, 17330, 17374, 17623, 17997, 18018, 18212, 18218, 18301, 18318, 18760, 18811, 18814, 18820, 18823, 18844, 18848, 18872, 19576, 19620, 19738, 19887, 40870, 59244, 59336, 59367, 59413, 59417, 59423, 59431, 59437, 59443, 59452, 59460, 59478, 59493, 63789, 63866, 63894, 63976, 63986, 64016, 64018, 64021, 64025, 64034, 64037, 64042, 65074, 65093, 65107, 65112, 65127, 65132, 65375, 65510, 65536], gbChars: [0, 36, 38, 45, 50, 81, 89, 95, 96, 100, 103, 104, 105, 109, 126, 133, 148, 172, 175, 179, 208, 306, 307, 308, 309, 310, 311, 312, 313, 341, 428, 443, 544, 545, 558, 741, 742, 749, 750, 805, 819, 820, 7922, 7924, 7925, 7927, 7934, 7943, 7944, 7945, 7950, 8062, 8148, 8149, 8152, 8164, 8174, 8236, 8240, 8262, 8264, 8374, 8380, 8381, 8384, 8388, 8390, 8392, 8393, 8394, 8396, 8401, 8406, 8416, 8419, 8424, 8437, 8439, 8445, 8482, 8485, 8496, 8521, 8603, 8936, 8946, 9046, 9050, 9063, 9066, 9076, 9092, 9100, 9108, 9111, 9113, 9131, 9162, 9164, 9218, 9219, 11329, 11331, 11334, 11336, 11346, 11361, 11363, 11366, 11370, 11372, 11375, 11389, 11682, 11686, 11687, 11692, 11694, 11714, 11716, 11723, 11725, 11730, 11736, 11982, 11989, 12102, 12336, 12348, 12350, 12384, 12393, 12395, 12397, 12510, 12553, 12851, 12962, 12973, 13738, 13823, 13919, 13933, 14080, 14298, 14585, 14698, 15583, 15847, 16318, 16434, 16438, 16481, 16729, 17102, 17122, 17315, 17320, 17402, 17418, 17859, 17909, 17911, 17915, 17916, 17936, 17939, 17961, 18664, 18703, 18814, 18962, 19043, 33469, 33470, 33471, 33484, 33485, 33490, 33497, 33501, 33505, 33513, 33520, 33536, 33550, 37845, 37921, 37948, 38029, 38038, 38064, 38065, 38066, 38069, 38075, 38076, 38078, 39108, 39109, 39113, 39114, 39115, 39116, 39265, 39394, 189e3] };
2825
2688
  }
2826
2689
  });
2827
2690
 
2828
- // packages/core/node_modules/iconv-lite/encodings/tables/cp949.json
2691
+ // node_modules/iconv-lite/encodings/tables/cp949.json
2829
2692
  var require_cp949 = __commonJS({
2830
- "packages/core/node_modules/iconv-lite/encodings/tables/cp949.json"(exports2, module2) {
2693
+ "node_modules/iconv-lite/encodings/tables/cp949.json"(exports2, module2) {
2831
2694
  module2.exports = [
2832
2695
  ["0", "\0", 127],
2833
2696
  ["8141", "\uAC02\uAC03\uAC05\uAC06\uAC0B", 4, "\uAC18\uAC1E\uAC1F\uAC21\uAC22\uAC23\uAC25", 6, "\uAC2E\uAC32\uAC33\uAC34"],
@@ -3104,9 +2967,9 @@ var require_cp949 = __commonJS({
3104
2967
  }
3105
2968
  });
3106
2969
 
3107
- // packages/core/node_modules/iconv-lite/encodings/tables/cp950.json
2970
+ // node_modules/iconv-lite/encodings/tables/cp950.json
3108
2971
  var require_cp950 = __commonJS({
3109
- "packages/core/node_modules/iconv-lite/encodings/tables/cp950.json"(exports2, module2) {
2972
+ "node_modules/iconv-lite/encodings/tables/cp950.json"(exports2, module2) {
3110
2973
  module2.exports = [
3111
2974
  ["0", "\0", 127],
3112
2975
  ["a140", "\u3000\uFF0C\u3001\u3002\uFF0E\u2027\uFF1B\uFF1A\uFF1F\uFF01\uFE30\u2026\u2025\uFE50\uFE51\uFE52\xB7\uFE54\uFE55\uFE56\uFE57\uFF5C\u2013\uFE31\u2014\uFE33\u2574\uFE34\uFE4F\uFF08\uFF09\uFE35\uFE36\uFF5B\uFF5D\uFE37\uFE38\u3014\u3015\uFE39\uFE3A\u3010\u3011\uFE3B\uFE3C\u300A\u300B\uFE3D\uFE3E\u3008\u3009\uFE3F\uFE40\u300C\u300D\uFE41\uFE42\u300E\u300F\uFE43\uFE44\uFE59\uFE5A"],
@@ -3287,9 +3150,9 @@ var require_cp950 = __commonJS({
3287
3150
  }
3288
3151
  });
3289
3152
 
3290
- // packages/core/node_modules/iconv-lite/encodings/tables/big5-added.json
3153
+ // node_modules/iconv-lite/encodings/tables/big5-added.json
3291
3154
  var require_big5_added = __commonJS({
3292
- "packages/core/node_modules/iconv-lite/encodings/tables/big5-added.json"(exports2, module2) {
3155
+ "node_modules/iconv-lite/encodings/tables/big5-added.json"(exports2, module2) {
3293
3156
  module2.exports = [
3294
3157
  ["8740", "\u43F0\u4C32\u4603\u45A6\u4578\u{27267}\u4D77\u45B3\u{27CB1}\u4CE2\u{27CC5}\u3B95\u4736\u4744\u4C47\u4C40\u{242BF}\u{23617}\u{27352}\u{26E8B}\u{270D2}\u4C57\u{2A351}\u474F\u45DA\u4C85\u{27C6C}\u4D07\u4AA4\u46A1\u{26B23}\u7225\u{25A54}\u{21A63}\u{23E06}\u{23F61}\u664D\u56FB"],
3295
3158
  ["8767", "\u7D95\u591D\u{28BB9}\u3DF4\u9734\u{27BEF}\u5BDB\u{21D5E}\u5AA4\u3625\u{29EB0}\u5AD1\u5BB7\u5CFC\u676E\u8593\u{29945}\u7461\u749D\u3875\u{21D53}\u{2369E}\u{26021}\u3EEC"],
@@ -3415,16 +3278,16 @@ var require_big5_added = __commonJS({
3415
3278
  }
3416
3279
  });
3417
3280
 
3418
- // packages/core/node_modules/iconv-lite/encodings/dbcs-data.js
3281
+ // node_modules/iconv-lite/encodings/dbcs-data.js
3419
3282
  var require_dbcs_data = __commonJS({
3420
- "packages/core/node_modules/iconv-lite/encodings/dbcs-data.js"(exports2, module2) {
3283
+ "node_modules/iconv-lite/encodings/dbcs-data.js"(exports2, module2) {
3421
3284
  "use strict";
3422
3285
  init_esbuild_shims();
3423
3286
  module2.exports = {
3424
3287
  // == Japanese/ShiftJIS ====================================================
3425
3288
  // All japanese encodings are based on JIS X set of standards:
3426
3289
  // JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF.
3427
- // JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes.
3290
+ // JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes.
3428
3291
  // Has several variations in 1978, 1983, 1990 and 1997.
3429
3292
  // JIS X 0212 - Supplementary plane of 6067 chars in 94x94 plane. 1990. Effectively dead.
3430
3293
  // JIS X 0213 - Extension and modern replacement of 0208 and 0212. Total chars: 11233.
@@ -3441,7 +3304,7 @@ var require_dbcs_data = __commonJS({
3441
3304
  // 0x8F, (0xA1-0xFE)x2 - 0212 plane (94x94).
3442
3305
  // * JIS X 208: 7-bit, direct encoding of 0208. Byte ranges: 0x21-0x7E (94 values). Uncommon.
3443
3306
  // Used as-is in ISO2022 family.
3444
- // * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII,
3307
+ // * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII,
3445
3308
  // 0201-1976 Roman, 0208-1978, 0208-1983.
3446
3309
  // * ISO2022-JP-1: Adds esc seq for 0212-1990.
3447
3310
  // * ISO2022-JP-2: Adds esc seq for GB2313-1980, KSX1001-1992, ISO8859-1, ISO8859-7.
@@ -3451,7 +3314,7 @@ var require_dbcs_data = __commonJS({
3451
3314
  // After JIS X 0213 appeared, Shift_JIS-2004, EUC-JISX0213 and ISO2022-JP-2004 followed, with just changing the planes.
3452
3315
  //
3453
3316
  // Overall, it seems that it's a mess :( http://www8.plala.or.jp/tkubota1/unicode-symbols-map2.html
3454
- shiftjis: {
3317
+ "shiftjis": {
3455
3318
  type: "_dbcs",
3456
3319
  table: /* @__PURE__ */ __name(function() {
3457
3320
  return require_shiftjis();
@@ -3459,17 +3322,17 @@ var require_dbcs_data = __commonJS({
3459
3322
  encodeAdd: { "\xA5": 92, "\u203E": 126 },
3460
3323
  encodeSkipVals: [{ from: 60736, to: 63808 }]
3461
3324
  },
3462
- csshiftjis: "shiftjis",
3463
- mskanji: "shiftjis",
3464
- sjis: "shiftjis",
3465
- windows31j: "shiftjis",
3466
- ms31j: "shiftjis",
3467
- xsjis: "shiftjis",
3468
- windows932: "shiftjis",
3469
- ms932: "shiftjis",
3470
- 932: "shiftjis",
3471
- cp932: "shiftjis",
3472
- eucjp: {
3325
+ "csshiftjis": "shiftjis",
3326
+ "mskanji": "shiftjis",
3327
+ "sjis": "shiftjis",
3328
+ "windows31j": "shiftjis",
3329
+ "ms31j": "shiftjis",
3330
+ "xsjis": "shiftjis",
3331
+ "windows932": "shiftjis",
3332
+ "ms932": "shiftjis",
3333
+ "932": "shiftjis",
3334
+ "cp932": "shiftjis",
3335
+ "eucjp": {
3473
3336
  type: "_dbcs",
3474
3337
  table: /* @__PURE__ */ __name(function() {
3475
3338
  return require_eucjp();
@@ -3483,37 +3346,37 @@ var require_dbcs_data = __commonJS({
3483
3346
  // http://en.wikipedia.org/wiki/GBK
3484
3347
  // We mostly implement W3C recommendation: https://www.w3.org/TR/encoding/#gbk-encoder
3485
3348
  // Oldest GB2312 (1981, ~7600 chars) is a subset of CP936
3486
- gb2312: "cp936",
3487
- gb231280: "cp936",
3488
- gb23121980: "cp936",
3489
- csgb2312: "cp936",
3490
- csiso58gb231280: "cp936",
3491
- euccn: "cp936",
3349
+ "gb2312": "cp936",
3350
+ "gb231280": "cp936",
3351
+ "gb23121980": "cp936",
3352
+ "csgb2312": "cp936",
3353
+ "csiso58gb231280": "cp936",
3354
+ "euccn": "cp936",
3492
3355
  // Microsoft's CP936 is a subset and approximation of GBK.
3493
- windows936: "cp936",
3494
- ms936: "cp936",
3495
- 936: "cp936",
3496
- cp936: {
3356
+ "windows936": "cp936",
3357
+ "ms936": "cp936",
3358
+ "936": "cp936",
3359
+ "cp936": {
3497
3360
  type: "_dbcs",
3498
3361
  table: /* @__PURE__ */ __name(function() {
3499
3362
  return require_cp936();
3500
3363
  }, "table")
3501
3364
  },
3502
3365
  // GBK (~22000 chars) is an extension of CP936 that added user-mapped chars and some other.
3503
- gbk: {
3366
+ "gbk": {
3504
3367
  type: "_dbcs",
3505
3368
  table: /* @__PURE__ */ __name(function() {
3506
3369
  return require_cp936().concat(require_gbk_added());
3507
3370
  }, "table")
3508
3371
  },
3509
- xgbk: "gbk",
3510
- isoir58: "gbk",
3372
+ "xgbk": "gbk",
3373
+ "isoir58": "gbk",
3511
3374
  // GB18030 is an algorithmic extension of GBK.
3512
3375
  // Main source: https://www.w3.org/TR/encoding/#gbk-encoder
3513
3376
  // http://icu-project.org/docs/papers/gb18030.html
3514
3377
  // http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml
3515
3378
  // http://www.khngai.com/chinese/charmap/tblgbk.php?page=0
3516
- gb18030: {
3379
+ "gb18030": {
3517
3380
  type: "_dbcs",
3518
3381
  table: /* @__PURE__ */ __name(function() {
3519
3382
  return require_cp936().concat(require_gbk_added());
@@ -3524,26 +3387,26 @@ var require_dbcs_data = __commonJS({
3524
3387
  encodeSkipVals: [128],
3525
3388
  encodeAdd: { "\u20AC": 41699 }
3526
3389
  },
3527
- chinese: "gb18030",
3390
+ "chinese": "gb18030",
3528
3391
  // == Korean ===============================================================
3529
3392
  // EUC-KR, KS_C_5601 and KS X 1001 are exactly the same.
3530
- windows949: "cp949",
3531
- ms949: "cp949",
3532
- 949: "cp949",
3533
- cp949: {
3393
+ "windows949": "cp949",
3394
+ "ms949": "cp949",
3395
+ "949": "cp949",
3396
+ "cp949": {
3534
3397
  type: "_dbcs",
3535
3398
  table: /* @__PURE__ */ __name(function() {
3536
3399
  return require_cp949();
3537
3400
  }, "table")
3538
3401
  },
3539
- cseuckr: "cp949",
3540
- csksc56011987: "cp949",
3541
- euckr: "cp949",
3542
- isoir149: "cp949",
3543
- korean: "cp949",
3544
- ksc56011987: "cp949",
3545
- ksc56011989: "cp949",
3546
- ksc5601: "cp949",
3402
+ "cseuckr": "cp949",
3403
+ "csksc56011987": "cp949",
3404
+ "euckr": "cp949",
3405
+ "isoir149": "cp949",
3406
+ "korean": "cp949",
3407
+ "ksc56011987": "cp949",
3408
+ "ksc56011989": "cp949",
3409
+ "ksc5601": "cp949",
3547
3410
  // == Big5/Taiwan/Hong Kong ================================================
3548
3411
  // There are lots of tables for Big5 and cp950. Please see the following links for history:
3549
3412
  // http://moztw.org/docs/big5/ http://www.haible.de/bruno/charsets/conversion-tables/Big5.html
@@ -3552,7 +3415,7 @@ var require_dbcs_data = __commonJS({
3552
3415
  // * Windows CP 951: Microsoft variant of Big5-HKSCS-2001. Seems to be never public. http://me.abelcheung.org/articles/research/what-is-cp951/
3553
3416
  // * Big5-2003 (Taiwan standard) almost superset of cp950.
3554
3417
  // * Unicode-at-on (UAO) / Mozilla 1.8. Falling out of use on the Web. Not supported by other browsers.
3555
- // * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard.
3418
+ // * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard.
3556
3419
  // many unicode code points moved from PUA to Supplementary plane (U+2XXXX) over the years.
3557
3420
  // Plus, it has 4 combining sequences.
3558
3421
  // Seems that Mozilla refused to support it for 10 yrs. https://bugzilla.mozilla.org/show_bug.cgi?id=162431 https://bugzilla.mozilla.org/show_bug.cgi?id=310299
@@ -3563,21 +3426,21 @@ var require_dbcs_data = __commonJS({
3563
3426
  // In the encoder, it might make sense to support encoding old PUA mappings to Big5 bytes seq-s.
3564
3427
  // Official spec: http://www.ogcio.gov.hk/en/business/tech_promotion/ccli/terms/doc/2003cmp_2008.txt
3565
3428
  // http://www.ogcio.gov.hk/tc/business/tech_promotion/ccli/terms/doc/hkscs-2008-big5-iso.txt
3566
- //
3429
+ //
3567
3430
  // Current understanding of how to deal with Big5(-HKSCS) is in the Encoding Standard, http://encoding.spec.whatwg.org/#big5-encoder
3568
3431
  // Unicode mapping (http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT) is said to be wrong.
3569
- windows950: "cp950",
3570
- ms950: "cp950",
3571
- 950: "cp950",
3572
- cp950: {
3432
+ "windows950": "cp950",
3433
+ "ms950": "cp950",
3434
+ "950": "cp950",
3435
+ "cp950": {
3573
3436
  type: "_dbcs",
3574
3437
  table: /* @__PURE__ */ __name(function() {
3575
3438
  return require_cp950();
3576
3439
  }, "table")
3577
3440
  },
3578
3441
  // Big5 has many variations and is an extension of cp950. We use Encoding Standard's as a consensus.
3579
- big5: "big5hkscs",
3580
- big5hkscs: {
3442
+ "big5": "big5hkscs",
3443
+ "big5hkscs": {
3581
3444
  type: "_dbcs",
3582
3445
  table: /* @__PURE__ */ __name(function() {
3583
3446
  return require_cp950().concat(require_big5_added());
@@ -3656,19 +3519,18 @@ var require_dbcs_data = __commonJS({
3656
3519
  41678
3657
3520
  ]
3658
3521
  },
3659
- cnbig5: "big5hkscs",
3660
- csbig5: "big5hkscs",
3661
- xxbig5: "big5hkscs"
3522
+ "cnbig5": "big5hkscs",
3523
+ "csbig5": "big5hkscs",
3524
+ "xxbig5": "big5hkscs"
3662
3525
  };
3663
3526
  }
3664
3527
  });
3665
3528
 
3666
- // packages/core/node_modules/iconv-lite/encodings/index.js
3529
+ // node_modules/iconv-lite/encodings/index.js
3667
3530
  var require_encodings = __commonJS({
3668
- "packages/core/node_modules/iconv-lite/encodings/index.js"(exports2, module2) {
3531
+ "node_modules/iconv-lite/encodings/index.js"(exports2, module2) {
3669
3532
  "use strict";
3670
3533
  init_esbuild_shims();
3671
- var mergeModules = require_merge_exports();
3672
3534
  var modules = [
3673
3535
  require_internal(),
3674
3536
  require_utf32(),
@@ -3682,21 +3544,24 @@ var require_encodings = __commonJS({
3682
3544
  ];
3683
3545
  for (i = 0; i < modules.length; i++) {
3684
3546
  module2 = modules[i];
3685
- mergeModules(exports2, module2);
3547
+ for (enc in module2)
3548
+ if (Object.prototype.hasOwnProperty.call(module2, enc))
3549
+ exports2[enc] = module2[enc];
3686
3550
  }
3687
3551
  var module2;
3552
+ var enc;
3688
3553
  var i;
3689
3554
  }
3690
3555
  });
3691
3556
 
3692
- // packages/core/node_modules/iconv-lite/lib/streams.js
3557
+ // node_modules/iconv-lite/lib/streams.js
3693
3558
  var require_streams = __commonJS({
3694
- "packages/core/node_modules/iconv-lite/lib/streams.js"(exports2, module2) {
3559
+ "node_modules/iconv-lite/lib/streams.js"(exports2, module2) {
3695
3560
  "use strict";
3696
3561
  init_esbuild_shims();
3697
3562
  var Buffer3 = require_safer().Buffer;
3698
- module2.exports = function(streamModule) {
3699
- var Transform = streamModule.Transform;
3563
+ module2.exports = function(stream_module) {
3564
+ var Transform = stream_module.Transform;
3700
3565
  function IconvLiteEncoderStream(conv, options) {
3701
3566
  this.conv = conv;
3702
3567
  options = options || {};
@@ -3708,9 +3573,8 @@ var require_streams = __commonJS({
3708
3573
  constructor: { value: IconvLiteEncoderStream }
3709
3574
  });
3710
3575
  IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) {
3711
- if (typeof chunk !== "string") {
3576
+ if (typeof chunk != "string")
3712
3577
  return done(new Error("Iconv encoding stream needs strings as its input."));
3713
- }
3714
3578
  try {
3715
3579
  var res = this.conv.write(chunk);
3716
3580
  if (res && res.length) this.push(res);
@@ -3750,9 +3614,8 @@ var require_streams = __commonJS({
3750
3614
  constructor: { value: IconvLiteDecoderStream }
3751
3615
  });
3752
3616
  IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) {
3753
- if (!Buffer3.isBuffer(chunk) && !(chunk instanceof Uint8Array)) {
3617
+ if (!Buffer3.isBuffer(chunk) && !(chunk instanceof Uint8Array))
3754
3618
  return done(new Error("Iconv decoding stream needs buffers as its input."));
3755
- }
3756
3619
  try {
3757
3620
  var res = this.conv.write(chunk);
3758
3621
  if (res && res.length) this.push(res, this.encoding);
@@ -3789,14 +3652,13 @@ var require_streams = __commonJS({
3789
3652
  }
3790
3653
  });
3791
3654
 
3792
- // packages/core/node_modules/iconv-lite/lib/index.js
3655
+ // node_modules/iconv-lite/lib/index.js
3793
3656
  var require_lib = __commonJS({
3794
- "packages/core/node_modules/iconv-lite/lib/index.js"(exports2, module2) {
3657
+ "node_modules/iconv-lite/lib/index.js"(exports2, module2) {
3795
3658
  "use strict";
3796
3659
  init_esbuild_shims();
3797
3660
  var Buffer3 = require_safer().Buffer;
3798
3661
  var bomHandling = require_bom_handling();
3799
- var mergeModules = require_merge_exports();
3800
3662
  var iconv = module2.exports;
3801
3663
  iconv.encodings = null;
3802
3664
  iconv.defaultCharUnicode = "\uFFFD";
@@ -3831,38 +3693,31 @@ var require_lib = __commonJS({
3831
3693
  }, "encodingExists");
3832
3694
  iconv.toEncoding = iconv.encode;
3833
3695
  iconv.fromEncoding = iconv.decode;
3834
- iconv._codecDataCache = { __proto__: null };
3696
+ iconv._codecDataCache = {};
3835
3697
  iconv.getCodec = /* @__PURE__ */ __name(function getCodec(encoding) {
3836
- if (!iconv.encodings) {
3837
- var raw = require_encodings();
3838
- iconv.encodings = { __proto__: null };
3839
- mergeModules(iconv.encodings, raw);
3840
- }
3698
+ if (!iconv.encodings)
3699
+ iconv.encodings = require_encodings();
3841
3700
  var enc = iconv._canonicalizeEncoding(encoding);
3842
3701
  var codecOptions = {};
3843
3702
  while (true) {
3844
3703
  var codec = iconv._codecDataCache[enc];
3845
- if (codec) {
3704
+ if (codec)
3846
3705
  return codec;
3847
- }
3848
3706
  var codecDef = iconv.encodings[enc];
3849
3707
  switch (typeof codecDef) {
3850
3708
  case "string":
3851
3709
  enc = codecDef;
3852
3710
  break;
3853
3711
  case "object":
3854
- for (var key in codecDef) {
3712
+ for (var key in codecDef)
3855
3713
  codecOptions[key] = codecDef[key];
3856
- }
3857
- if (!codecOptions.encodingName) {
3714
+ if (!codecOptions.encodingName)
3858
3715
  codecOptions.encodingName = enc;
3859
- }
3860
3716
  enc = codecDef.type;
3861
3717
  break;
3862
3718
  case "function":
3863
- if (!codecOptions.encodingName) {
3719
+ if (!codecOptions.encodingName)
3864
3720
  codecOptions.encodingName = enc;
3865
- }
3866
3721
  codec = new codecDef(codecOptions, iconv);
3867
3722
  iconv._codecDataCache[codecOptions.encodingName] = codec;
3868
3723
  return codec;
@@ -3875,26 +3730,21 @@ var require_lib = __commonJS({
3875
3730
  return ("" + encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
3876
3731
  };
3877
3732
  iconv.getEncoder = /* @__PURE__ */ __name(function getEncoder(encoding, options) {
3878
- var codec = iconv.getCodec(encoding);
3879
- var encoder = new codec.encoder(options, codec);
3880
- if (codec.bomAware && options && options.addBOM) {
3733
+ var codec = iconv.getCodec(encoding), encoder = new codec.encoder(options, codec);
3734
+ if (codec.bomAware && options && options.addBOM)
3881
3735
  encoder = new bomHandling.PrependBOM(encoder, options);
3882
- }
3883
3736
  return encoder;
3884
3737
  }, "getEncoder");
3885
3738
  iconv.getDecoder = /* @__PURE__ */ __name(function getDecoder(encoding, options) {
3886
- var codec = iconv.getCodec(encoding);
3887
- var decoder = new codec.decoder(options, codec);
3888
- if (codec.bomAware && !(options && options.stripBOM === false)) {
3739
+ var codec = iconv.getCodec(encoding), decoder = new codec.decoder(options, codec);
3740
+ if (codec.bomAware && !(options && options.stripBOM === false))
3889
3741
  decoder = new bomHandling.StripBOM(decoder, options);
3890
- }
3891
3742
  return decoder;
3892
3743
  }, "getDecoder");
3893
- iconv.enableStreamingAPI = /* @__PURE__ */ __name(function enableStreamingAPI(streamModule2) {
3894
- if (iconv.supportsStreams) {
3744
+ iconv.enableStreamingAPI = /* @__PURE__ */ __name(function enableStreamingAPI(stream_module2) {
3745
+ if (iconv.supportsStreams)
3895
3746
  return;
3896
- }
3897
- var streams = require_streams()(streamModule2);
3747
+ var streams = require_streams()(stream_module2);
3898
3748
  iconv.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;
3899
3749
  iconv.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;
3900
3750
  iconv.encodeStream = /* @__PURE__ */ __name(function encodeStream(encoding, options) {
@@ -3905,13 +3755,13 @@ var require_lib = __commonJS({
3905
3755
  }, "decodeStream");
3906
3756
  iconv.supportsStreams = true;
3907
3757
  }, "enableStreamingAPI");
3908
- var streamModule;
3758
+ var stream_module;
3909
3759
  try {
3910
- streamModule = __require("stream");
3760
+ stream_module = __require("stream");
3911
3761
  } catch (e) {
3912
3762
  }
3913
- if (streamModule && streamModule.Transform) {
3914
- iconv.enableStreamingAPI(streamModule);
3763
+ if (stream_module && stream_module.Transform) {
3764
+ iconv.enableStreamingAPI(stream_module);
3915
3765
  } else {
3916
3766
  iconv.encodeStream = iconv.decodeStream = function() {
3917
3767
  throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.");
@@ -63619,9 +63469,14 @@ function parseNotebook(content) {
63619
63469
  }
63620
63470
  __name(parseNotebook, "parseNotebook");
63621
63471
  function inferNotebookJsonFormat(content) {
63622
- const lineMatch = content.match(/\n( +)"/);
63472
+ const lineMatch = content.match(/\n([ \t]+)"/);
63473
+ const indent = lineMatch?.[1];
63474
+ let inferredIndent;
63475
+ if (indent !== void 0) {
63476
+ inferredIndent = /^ +$/.test(indent) ? indent.length : indent;
63477
+ }
63623
63478
  return {
63624
- indent: lineMatch?.[1]?.length,
63479
+ indent: inferredIndent,
63625
63480
  trailingNewline: content.endsWith("\n")
63626
63481
  };
63627
63482
  }
@@ -69196,7 +69051,11 @@ function startLLMRequestSpan(model, promptId) {
69196
69051
  const attributes = {
69197
69052
  "qwen-code.model": model,
69198
69053
  "qwen-code.prompt_id": promptId,
69199
- "llm_request.context": parentCtx ? "interaction" : "standalone"
69054
+ "llm_request.context": parentCtx ? "interaction" : "standalone",
69055
+ // Dual-emit OTel GenAI semantic convention (Stable). Private name
69056
+ // (qwen-code.model) remains authoritative; gen_ai.* is a compat layer
69057
+ // for spec-aware backends. See docs/design/telemetry-llm-request-timing-design.md (D8).
69058
+ "gen_ai.request.model": model
69200
69059
  };
69201
69060
  const span = getTracer().startSpan(
69202
69061
  SPAN_LLM_REQUEST,
@@ -69224,10 +69083,41 @@ function endLLMRequestSpan(span, metadata) {
69224
69083
  const duration = metadata?.durationMs ?? Date.now() - spanCtx.startTime;
69225
69084
  const endAttributes = { duration_ms: duration };
69226
69085
  if (metadata) {
69227
- if (metadata.inputTokens !== void 0)
69086
+ if (metadata.inputTokens !== void 0) {
69228
69087
  endAttributes["input_tokens"] = metadata.inputTokens;
69229
- if (metadata.outputTokens !== void 0)
69088
+ endAttributes["gen_ai.usage.input_tokens"] = metadata.inputTokens;
69089
+ }
69090
+ if (metadata.outputTokens !== void 0) {
69230
69091
  endAttributes["output_tokens"] = metadata.outputTokens;
69092
+ endAttributes["gen_ai.usage.output_tokens"] = metadata.outputTokens;
69093
+ }
69094
+ if (metadata.cachedInputTokens !== void 0) {
69095
+ endAttributes["cached_input_tokens"] = metadata.cachedInputTokens;
69096
+ endAttributes["gen_ai.usage.cached_tokens"] = metadata.cachedInputTokens;
69097
+ }
69098
+ if (metadata.ttftMs !== void 0) {
69099
+ endAttributes["ttft_ms"] = metadata.ttftMs;
69100
+ endAttributes["gen_ai.server.time_to_first_token"] = metadata.ttftMs / 1e3;
69101
+ }
69102
+ if (metadata.requestSetupMs !== void 0) {
69103
+ endAttributes["request_setup_ms"] = metadata.requestSetupMs;
69104
+ }
69105
+ if (metadata.attempt !== void 0) {
69106
+ endAttributes["attempt"] = metadata.attempt;
69107
+ }
69108
+ if (metadata.retryTotalDelayMs !== void 0) {
69109
+ endAttributes["retry_total_delay_ms"] = metadata.retryTotalDelayMs;
69110
+ }
69111
+ if (metadata.ttftMs !== void 0) {
69112
+ const samplingMs = Math.max(
69113
+ 0,
69114
+ duration - metadata.ttftMs - (metadata.requestSetupMs ?? 0)
69115
+ );
69116
+ endAttributes["sampling_ms"] = samplingMs;
69117
+ if (samplingMs > 0 && metadata.outputTokens !== void 0) {
69118
+ endAttributes["output_tokens_per_second"] = Math.round(metadata.outputTokens / (samplingMs / 1e3) * 100) / 100;
69119
+ }
69120
+ }
69231
69121
  endAttributes["success"] = metadata.success;
69232
69122
  if (metadata.error !== void 0)
69233
69123
  endAttributes["error"] = truncateSpanError(metadata.error);
@@ -70208,6 +70098,26 @@ var TelemetryTarget = /* @__PURE__ */ ((TelemetryTarget2) => {
70208
70098
  var DEFAULT_TELEMETRY_TARGET = "local" /* LOCAL */;
70209
70099
  var DEFAULT_OTLP_ENDPOINT = "http://localhost:4317";
70210
70100
 
70101
+ // packages/core/src/core/loggingContentGenerator/streamContentDetection.ts
70102
+ init_esbuild_shims();
70103
+ function hasUserVisibleContent(chunk) {
70104
+ const parts = chunk.candidates?.[0]?.content?.parts;
70105
+ if (!parts || parts.length === 0) return false;
70106
+ return parts.some(isUserVisiblePart);
70107
+ }
70108
+ __name(hasUserVisibleContent, "hasUserVisibleContent");
70109
+ function isUserVisiblePart(part) {
70110
+ if (part === null || typeof part !== "object") return false;
70111
+ const p = part;
70112
+ if (typeof p.text === "string" && p.text.length > 0) return true;
70113
+ if (p.functionCall !== void 0) return true;
70114
+ if (p.inlineData !== void 0) return true;
70115
+ if (p.executableCode !== void 0) return true;
70116
+ if (p.thought === true) return true;
70117
+ return false;
70118
+ }
70119
+ __name(isUserVisiblePart, "isUserVisiblePart");
70120
+
70211
70121
  // packages/core/src/core/loggingContentGenerator/loggingContentGenerator.ts
70212
70122
  var debugLogger9 = createDebugLogger("LOGGING_CONTENT_GENERATOR");
70213
70123
  var MAX_RESPONSE_TEXT_LENGTH = 4096;
@@ -70372,6 +70282,7 @@ var LoggingContentGenerator = class {
70372
70282
  success: true,
70373
70283
  inputTokens: response.usageMetadata?.promptTokenCount,
70374
70284
  outputTokens: response.usageMetadata?.candidatesTokenCount,
70285
+ cachedInputTokens: response.usageMetadata?.cachedContentTokenCount,
70375
70286
  durationMs: Date.now() - startTime
70376
70287
  });
70377
70288
  return response;
@@ -70503,6 +70414,7 @@ var LoggingContentGenerator = class {
70503
70414
  let firstModelVersion = "";
70504
70415
  let lastUsageMetadata;
70505
70416
  let errorOccurred = false;
70417
+ let ttftMs;
70506
70418
  let spanEndedByTimeout = false;
70507
70419
  const runInSpan = /* @__PURE__ */ __name((fn) => spanContext ? context.with(spanContext, fn) : fn(), "runInSpan");
70508
70420
  const STREAM_IDLE_TIMEOUT_MS = 5 * 6e4;
@@ -70539,6 +70451,9 @@ var LoggingContentGenerator = class {
70539
70451
  if (response.usageMetadata) {
70540
70452
  lastUsageMetadata = response.usageMetadata;
70541
70453
  }
70454
+ if (ttftMs === void 0 && hasUserVisibleContent(response)) {
70455
+ ttftMs = Date.now() - startTime;
70456
+ }
70542
70457
  resetSpanTimeout?.();
70543
70458
  yield response;
70544
70459
  }
@@ -70605,6 +70520,8 @@ var LoggingContentGenerator = class {
70605
70520
  success: !errorOccurred,
70606
70521
  inputTokens: lastUsageMetadata?.promptTokenCount,
70607
70522
  outputTokens: lastUsageMetadata?.candidatesTokenCount,
70523
+ cachedInputTokens: lastUsageMetadata?.cachedContentTokenCount,
70524
+ ttftMs,
70608
70525
  durationMs: Date.now() - startTime,
70609
70526
  error: errorOccurred ? aborted ? API_CALL_ABORTED_SPAN_STATUS_MESSAGE : API_CALL_FAILED_SPAN_STATUS_MESSAGE : void 0
70610
70527
  });
@@ -72293,11 +72210,11 @@ async function createContentGenerator(generatorConfig, config, isInitialAuth) {
72293
72210
  }
72294
72211
  let baseGenerator;
72295
72212
  if (authType === "openai" /* USE_OPENAI */) {
72296
- const { createOpenAIContentGenerator } = await import("./openaiContentGenerator-POYAZQ6I.js");
72213
+ const { createOpenAIContentGenerator } = await import("./openaiContentGenerator-W5FNIVHV.js");
72297
72214
  baseGenerator = createOpenAIContentGenerator(generatorConfig, config);
72298
72215
  } else if (authType === "qwen-oauth" /* QWEN_OAUTH */) {
72299
72216
  const { getQwenOAuthClient: getQwenOauthClient } = await import("./qwenOAuth2-EEJGROP7.js");
72300
- const { QwenContentGenerator } = await import("./qwenContentGenerator-2E4H56DK.js");
72217
+ const { QwenContentGenerator } = await import("./qwenContentGenerator-NRBSGD73.js");
72301
72218
  try {
72302
72219
  const qwenClient = await getQwenOauthClient(
72303
72220
  config,
@@ -72317,7 +72234,7 @@ async function createContentGenerator(generatorConfig, config, isInitialAuth) {
72317
72234
  const { createAnthropicContentGenerator } = await import("./anthropicContentGenerator-RQJNXJIY.js");
72318
72235
  baseGenerator = createAnthropicContentGenerator(generatorConfig, config);
72319
72236
  } else if (authType === "gemini" /* USE_GEMINI */ || authType === "vertex-ai" /* USE_VERTEX_AI */) {
72320
- const { createGeminiContentGenerator } = await import("./geminiContentGenerator-ZGPNBFDS.js");
72237
+ const { createGeminiContentGenerator } = await import("./geminiContentGenerator-UT3I2CUW.js");
72321
72238
  baseGenerator = createGeminiContentGenerator(generatorConfig, config);
72322
72239
  } else {
72323
72240
  throw new Error(