apple-mail-mcp 2.8.6 → 2.8.8

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 (2) hide show
  1. package/build/index.js +349 -750
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -20707,7 +20707,7 @@ var require_thread_stream = __commonJS({
20707
20707
  var { version: version3 } = require_package2();
20708
20708
  var { EventEmitter } = __require("events");
20709
20709
  var { Worker } = __require("worker_threads");
20710
- var { join: join5 } = __require("path");
20710
+ var { join: join6 } = __require("path");
20711
20711
  var { pathToFileURL } = __require("url");
20712
20712
  var { wait } = require_wait();
20713
20713
  var {
@@ -20758,7 +20758,7 @@ var require_thread_stream = __commonJS({
20758
20758
  function createWorker(stream, opts) {
20759
20759
  const { filename, workerData } = opts;
20760
20760
  const bundlerOverrides = "__bundlerPathsOverrides" in globalThis ? globalThis.__bundlerPathsOverrides : {};
20761
- const toExecute = bundlerOverrides["thread-stream-worker"] || join5(__dirname, "lib", "worker.js");
20761
+ const toExecute = bundlerOverrides["thread-stream-worker"] || join6(__dirname, "lib", "worker.js");
20762
20762
  const worker = new Worker(toExecute, {
20763
20763
  ...opts.workerOpts,
20764
20764
  name: opts.workerOpts?.name || "thread-stream",
@@ -21224,9 +21224,9 @@ var require_transport = __commonJS({
21224
21224
  "node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/transport.js"(exports, module) {
21225
21225
  "use strict";
21226
21226
  var { createRequire: createRequire2 } = __require("module");
21227
- var { existsSync: existsSync5 } = __require("node:fs");
21227
+ var { existsSync: existsSync6 } = __require("node:fs");
21228
21228
  var getCallers = require_caller();
21229
- var { join: join5, isAbsolute: isAbsolute3, sep: sep2 } = __require("node:path");
21229
+ var { join: join6, isAbsolute: isAbsolute3, sep: sep2 } = __require("node:path");
21230
21230
  var { fileURLToPath } = __require("node:url");
21231
21231
  var sleep2 = require_atomic_sleep();
21232
21232
  var onExit = require_on_exit_leak_free();
@@ -21298,7 +21298,7 @@ var require_transport = __commonJS({
21298
21298
  return false;
21299
21299
  }
21300
21300
  }
21301
- return isAbsolute3(path) && !existsSync5(path);
21301
+ return isAbsolute3(path) && !existsSync6(path);
21302
21302
  }
21303
21303
  function stripQuotes(value) {
21304
21304
  const first = value[0];
@@ -21379,7 +21379,7 @@ var require_transport = __commonJS({
21379
21379
  throw new Error("only one of target or targets can be specified");
21380
21380
  }
21381
21381
  if (targets) {
21382
- target = bundlerOverrides["pino-worker"] || join5(__dirname, "worker.js");
21382
+ target = bundlerOverrides["pino-worker"] || join6(__dirname, "worker.js");
21383
21383
  options.targets = targets.filter((dest) => dest.target).map((dest) => {
21384
21384
  return {
21385
21385
  ...dest,
@@ -21397,7 +21397,7 @@ var require_transport = __commonJS({
21397
21397
  });
21398
21398
  });
21399
21399
  } else if (pipeline) {
21400
- target = bundlerOverrides["pino-worker"] || join5(__dirname, "worker.js");
21400
+ target = bundlerOverrides["pino-worker"] || join6(__dirname, "worker.js");
21401
21401
  options.pipelines = [pipeline.map((dest) => {
21402
21402
  return {
21403
21403
  ...dest,
@@ -21420,7 +21420,7 @@ var require_transport = __commonJS({
21420
21420
  return origin;
21421
21421
  }
21422
21422
  if (origin === "pino/file") {
21423
- return join5(__dirname, "..", "file.js");
21423
+ return join6(__dirname, "..", "file.js");
21424
21424
  }
21425
21425
  let fixTarget2;
21426
21426
  for (const filePath of callers) {
@@ -22400,7 +22400,7 @@ var require_safe_stable_stringify = __commonJS({
22400
22400
  return circularValue;
22401
22401
  }
22402
22402
  let res = "";
22403
- let join5 = ",";
22403
+ let join6 = ",";
22404
22404
  const originalIndentation = indentation;
22405
22405
  if (Array.isArray(value)) {
22406
22406
  if (value.length === 0) {
@@ -22414,7 +22414,7 @@ var require_safe_stable_stringify = __commonJS({
22414
22414
  indentation += spacer;
22415
22415
  res += `
22416
22416
  ${indentation}`;
22417
- join5 = `,
22417
+ join6 = `,
22418
22418
  ${indentation}`;
22419
22419
  }
22420
22420
  const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
@@ -22422,13 +22422,13 @@ ${indentation}`;
22422
22422
  for (; i < maximumValuesToStringify - 1; i++) {
22423
22423
  const tmp2 = stringifyFnReplacer(String(i), value, stack, replacer, spacer, indentation);
22424
22424
  res += tmp2 !== void 0 ? tmp2 : "null";
22425
- res += join5;
22425
+ res += join6;
22426
22426
  }
22427
22427
  const tmp = stringifyFnReplacer(String(i), value, stack, replacer, spacer, indentation);
22428
22428
  res += tmp !== void 0 ? tmp : "null";
22429
22429
  if (value.length - 1 > maximumBreadth) {
22430
22430
  const removedKeys = value.length - maximumBreadth - 1;
22431
- res += `${join5}"... ${getItemCount(removedKeys)} not stringified"`;
22431
+ res += `${join6}"... ${getItemCount(removedKeys)} not stringified"`;
22432
22432
  }
22433
22433
  if (spacer !== "") {
22434
22434
  res += `
@@ -22449,7 +22449,7 @@ ${originalIndentation}`;
22449
22449
  let separator = "";
22450
22450
  if (spacer !== "") {
22451
22451
  indentation += spacer;
22452
- join5 = `,
22452
+ join6 = `,
22453
22453
  ${indentation}`;
22454
22454
  whitespace = " ";
22455
22455
  }
@@ -22463,13 +22463,13 @@ ${indentation}`;
22463
22463
  const tmp = stringifyFnReplacer(key2, value, stack, replacer, spacer, indentation);
22464
22464
  if (tmp !== void 0) {
22465
22465
  res += `${separator}${strEscape(key2)}:${whitespace}${tmp}`;
22466
- separator = join5;
22466
+ separator = join6;
22467
22467
  }
22468
22468
  }
22469
22469
  if (keyLength > maximumBreadth) {
22470
22470
  const removedKeys = keyLength - maximumBreadth;
22471
22471
  res += `${separator}"...":${whitespace}"${getItemCount(removedKeys)} not stringified"`;
22472
- separator = join5;
22472
+ separator = join6;
22473
22473
  }
22474
22474
  if (spacer !== "" && separator.length > 1) {
22475
22475
  res = `
@@ -22510,7 +22510,7 @@ ${originalIndentation}`;
22510
22510
  }
22511
22511
  const originalIndentation = indentation;
22512
22512
  let res = "";
22513
- let join5 = ",";
22513
+ let join6 = ",";
22514
22514
  if (Array.isArray(value)) {
22515
22515
  if (value.length === 0) {
22516
22516
  return "[]";
@@ -22523,7 +22523,7 @@ ${originalIndentation}`;
22523
22523
  indentation += spacer;
22524
22524
  res += `
22525
22525
  ${indentation}`;
22526
- join5 = `,
22526
+ join6 = `,
22527
22527
  ${indentation}`;
22528
22528
  }
22529
22529
  const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
@@ -22531,13 +22531,13 @@ ${indentation}`;
22531
22531
  for (; i < maximumValuesToStringify - 1; i++) {
22532
22532
  const tmp2 = stringifyArrayReplacer(String(i), value[i], stack, replacer, spacer, indentation);
22533
22533
  res += tmp2 !== void 0 ? tmp2 : "null";
22534
- res += join5;
22534
+ res += join6;
22535
22535
  }
22536
22536
  const tmp = stringifyArrayReplacer(String(i), value[i], stack, replacer, spacer, indentation);
22537
22537
  res += tmp !== void 0 ? tmp : "null";
22538
22538
  if (value.length - 1 > maximumBreadth) {
22539
22539
  const removedKeys = value.length - maximumBreadth - 1;
22540
- res += `${join5}"... ${getItemCount(removedKeys)} not stringified"`;
22540
+ res += `${join6}"... ${getItemCount(removedKeys)} not stringified"`;
22541
22541
  }
22542
22542
  if (spacer !== "") {
22543
22543
  res += `
@@ -22550,7 +22550,7 @@ ${originalIndentation}`;
22550
22550
  let whitespace = "";
22551
22551
  if (spacer !== "") {
22552
22552
  indentation += spacer;
22553
- join5 = `,
22553
+ join6 = `,
22554
22554
  ${indentation}`;
22555
22555
  whitespace = " ";
22556
22556
  }
@@ -22559,7 +22559,7 @@ ${indentation}`;
22559
22559
  const tmp = stringifyArrayReplacer(key2, value[key2], stack, replacer, spacer, indentation);
22560
22560
  if (tmp !== void 0) {
22561
22561
  res += `${separator}${strEscape(key2)}:${whitespace}${tmp}`;
22562
- separator = join5;
22562
+ separator = join6;
22563
22563
  }
22564
22564
  }
22565
22565
  if (spacer !== "" && separator.length > 1) {
@@ -22617,20 +22617,20 @@ ${originalIndentation}`;
22617
22617
  indentation += spacer;
22618
22618
  let res2 = `
22619
22619
  ${indentation}`;
22620
- const join6 = `,
22620
+ const join7 = `,
22621
22621
  ${indentation}`;
22622
22622
  const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
22623
22623
  let i = 0;
22624
22624
  for (; i < maximumValuesToStringify - 1; i++) {
22625
22625
  const tmp2 = stringifyIndent(String(i), value[i], stack, spacer, indentation);
22626
22626
  res2 += tmp2 !== void 0 ? tmp2 : "null";
22627
- res2 += join6;
22627
+ res2 += join7;
22628
22628
  }
22629
22629
  const tmp = stringifyIndent(String(i), value[i], stack, spacer, indentation);
22630
22630
  res2 += tmp !== void 0 ? tmp : "null";
22631
22631
  if (value.length - 1 > maximumBreadth) {
22632
22632
  const removedKeys = value.length - maximumBreadth - 1;
22633
- res2 += `${join6}"... ${getItemCount(removedKeys)} not stringified"`;
22633
+ res2 += `${join7}"... ${getItemCount(removedKeys)} not stringified"`;
22634
22634
  }
22635
22635
  res2 += `
22636
22636
  ${originalIndentation}`;
@@ -22646,16 +22646,16 @@ ${originalIndentation}`;
22646
22646
  return '"[Object]"';
22647
22647
  }
22648
22648
  indentation += spacer;
22649
- const join5 = `,
22649
+ const join6 = `,
22650
22650
  ${indentation}`;
22651
22651
  let res = "";
22652
22652
  let separator = "";
22653
22653
  let maximumPropertiesToStringify = Math.min(keyLength, maximumBreadth);
22654
22654
  if (isTypedArrayWithEntries(value)) {
22655
- res += stringifyTypedArray(value, join5, maximumBreadth);
22655
+ res += stringifyTypedArray(value, join6, maximumBreadth);
22656
22656
  keys = keys.slice(value.length);
22657
22657
  maximumPropertiesToStringify -= value.length;
22658
- separator = join5;
22658
+ separator = join6;
22659
22659
  }
22660
22660
  if (deterministic) {
22661
22661
  keys = sort(keys, comparator);
@@ -22666,13 +22666,13 @@ ${indentation}`;
22666
22666
  const tmp = stringifyIndent(key2, value[key2], stack, spacer, indentation);
22667
22667
  if (tmp !== void 0) {
22668
22668
  res += `${separator}${strEscape(key2)}: ${tmp}`;
22669
- separator = join5;
22669
+ separator = join6;
22670
22670
  }
22671
22671
  }
22672
22672
  if (keyLength > maximumBreadth) {
22673
22673
  const removedKeys = keyLength - maximumBreadth;
22674
22674
  res += `${separator}"...": "${getItemCount(removedKeys)} not stringified"`;
22675
- separator = join5;
22675
+ separator = join6;
22676
22676
  }
22677
22677
  if (separator !== "") {
22678
22678
  res = `
@@ -23198,9 +23198,9 @@ var require_pino = __commonJS({
23198
23198
  }
23199
23199
  });
23200
23200
 
23201
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/logger.js
23201
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/logger.js
23202
23202
  var require_logger = __commonJS({
23203
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/logger.js"(exports, module) {
23203
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/logger.js"(exports, module) {
23204
23204
  "use strict";
23205
23205
  var logger = require_pino()();
23206
23206
  logger.level = "trace";
@@ -23276,9 +23276,9 @@ var require_safer = __commonJS({
23276
23276
  }
23277
23277
  });
23278
23278
 
23279
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/lib/bom-handling.js
23279
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/lib/bom-handling.js
23280
23280
  var require_bom_handling = __commonJS({
23281
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/lib/bom-handling.js"(exports) {
23281
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/lib/bom-handling.js"(exports) {
23282
23282
  "use strict";
23283
23283
  var BOMChar = "\uFEFF";
23284
23284
  exports.PrependBOM = PrependBOMWrapper;
@@ -23322,9 +23322,9 @@ var require_bom_handling = __commonJS({
23322
23322
  }
23323
23323
  });
23324
23324
 
23325
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/lib/helpers/merge-exports.js
23325
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/lib/helpers/merge-exports.js
23326
23326
  var require_merge_exports = __commonJS({
23327
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/lib/helpers/merge-exports.js"(exports, module) {
23327
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/lib/helpers/merge-exports.js"(exports, module) {
23328
23328
  "use strict";
23329
23329
  var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn;
23330
23330
  function mergeModules(target, module2) {
@@ -23338,9 +23338,9 @@ var require_merge_exports = __commonJS({
23338
23338
  }
23339
23339
  });
23340
23340
 
23341
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/internal.js
23341
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/internal.js
23342
23342
  var require_internal = __commonJS({
23343
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/internal.js"(exports, module) {
23343
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/internal.js"(exports, module) {
23344
23344
  "use strict";
23345
23345
  var Buffer2 = require_safer().Buffer;
23346
23346
  module.exports = {
@@ -23519,9 +23519,9 @@ var require_internal = __commonJS({
23519
23519
  }
23520
23520
  });
23521
23521
 
23522
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/utf32.js
23522
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/utf32.js
23523
23523
  var require_utf32 = __commonJS({
23524
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/utf32.js"(exports) {
23524
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/utf32.js"(exports) {
23525
23525
  "use strict";
23526
23526
  var Buffer2 = require_safer().Buffer;
23527
23527
  exports._utf32 = Utf32Codec;
@@ -23542,7 +23542,7 @@ var require_utf32 = __commonJS({
23542
23542
  }
23543
23543
  Utf32Encoder.prototype.write = function(str2) {
23544
23544
  var src = Buffer2.from(str2, "ucs2");
23545
- var dst = Buffer2.alloc(src.length * 2);
23545
+ var dst = Buffer2.alloc(src.length * 2 + 4);
23546
23546
  var write32 = this.isLE ? dst.writeUInt32LE : dst.writeUInt32BE;
23547
23547
  var offset = 0;
23548
23548
  for (var i = 0; i < src.length; i += 2) {
@@ -23609,9 +23609,9 @@ var require_utf32 = __commonJS({
23609
23609
  }
23610
23610
  if (overflow.length === 4) {
23611
23611
  if (isLE) {
23612
- codepoint = overflow[i] | overflow[i + 1] << 8 | overflow[i + 2] << 16 | overflow[i + 3] << 24;
23612
+ codepoint = overflow[0] | overflow[1] << 8 | overflow[2] << 16 | overflow[3] << 24;
23613
23613
  } else {
23614
- codepoint = overflow[i + 3] | overflow[i + 2] << 8 | overflow[i + 1] << 16 | overflow[i] << 24;
23614
+ codepoint = overflow[3] | overflow[2] << 8 | overflow[1] << 16 | overflow[0] << 24;
23615
23615
  }
23616
23616
  overflow.length = 0;
23617
23617
  offset = _writeCodepoint(dst, offset, codepoint, badChar);
@@ -23646,7 +23646,11 @@ var require_utf32 = __commonJS({
23646
23646
  return offset;
23647
23647
  }
23648
23648
  Utf32Decoder.prototype.end = function() {
23649
+ if (this.overflow.length === 0) {
23650
+ return;
23651
+ }
23649
23652
  this.overflow.length = 0;
23653
+ return String.fromCharCode(this.badChar);
23650
23654
  };
23651
23655
  exports.utf32 = Utf32AutoCodec;
23652
23656
  exports.ucs4 = "utf32";
@@ -23750,9 +23754,9 @@ var require_utf32 = __commonJS({
23750
23754
  }
23751
23755
  });
23752
23756
 
23753
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/utf16.js
23757
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/utf16.js
23754
23758
  var require_utf16 = __commonJS({
23755
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/utf16.js"(exports) {
23759
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/utf16.js"(exports) {
23756
23760
  "use strict";
23757
23761
  var Buffer2 = require_safer().Buffer;
23758
23762
  exports.utf16be = Utf16BECodec;
@@ -23893,9 +23897,9 @@ var require_utf16 = __commonJS({
23893
23897
  }
23894
23898
  });
23895
23899
 
23896
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/utf7.js
23900
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/utf7.js
23897
23901
  var require_utf7 = __commonJS({
23898
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/utf7.js"(exports) {
23902
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/utf7.js"(exports) {
23899
23903
  "use strict";
23900
23904
  var Buffer2 = require_safer().Buffer;
23901
23905
  exports.utf7 = Utf7Codec;
@@ -24111,9 +24115,9 @@ var require_utf7 = __commonJS({
24111
24115
  }
24112
24116
  });
24113
24117
 
24114
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/sbcs-codec.js
24118
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/sbcs-codec.js
24115
24119
  var require_sbcs_codec = __commonJS({
24116
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/sbcs-codec.js"(exports) {
24120
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/sbcs-codec.js"(exports) {
24117
24121
  "use strict";
24118
24122
  var Buffer2 = require_safer().Buffer;
24119
24123
  exports._sbcs = SBCSCodec;
@@ -24173,9 +24177,9 @@ var require_sbcs_codec = __commonJS({
24173
24177
  }
24174
24178
  });
24175
24179
 
24176
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/sbcs-data.js
24180
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/sbcs-data.js
24177
24181
  var require_sbcs_data = __commonJS({
24178
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/sbcs-data.js"(exports, module) {
24182
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/sbcs-data.js"(exports, module) {
24179
24183
  "use strict";
24180
24184
  module.exports = {
24181
24185
  // Not supported by iconv, not sure why.
@@ -24271,6 +24275,8 @@ var require_sbcs_data = __commonJS({
24271
24275
  elot928: "iso88597",
24272
24276
  hebrew: "iso88598",
24273
24277
  hebrew8: "iso88598",
24278
+ iso88598i: "iso88598",
24279
+ iso88598e: "iso88598",
24274
24280
  turkish: "iso88599",
24275
24281
  turkish8: "iso88599",
24276
24282
  thai: "iso885911",
@@ -24326,9 +24332,9 @@ var require_sbcs_data = __commonJS({
24326
24332
  }
24327
24333
  });
24328
24334
 
24329
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/sbcs-data-generated.js
24335
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/sbcs-data-generated.js
24330
24336
  var require_sbcs_data_generated = __commonJS({
24331
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports, module) {
24337
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports, module) {
24332
24338
  "use strict";
24333
24339
  module.exports = {
24334
24340
  "437": "cp437",
@@ -24781,9 +24787,9 @@ var require_sbcs_data_generated = __commonJS({
24781
24787
  }
24782
24788
  });
24783
24789
 
24784
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/dbcs-codec.js
24790
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/dbcs-codec.js
24785
24791
  var require_dbcs_codec = __commonJS({
24786
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/dbcs-codec.js"(exports) {
24792
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/dbcs-codec.js"(exports) {
24787
24793
  "use strict";
24788
24794
  var Buffer2 = require_safer().Buffer;
24789
24795
  exports._dbcs = DBCSCodec;
@@ -25241,9 +25247,9 @@ var require_dbcs_codec = __commonJS({
25241
25247
  }
25242
25248
  });
25243
25249
 
25244
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/tables/shiftjis.json
25250
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/shiftjis.json
25245
25251
  var require_shiftjis = __commonJS({
25246
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports, module) {
25252
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports, module) {
25247
25253
  module.exports = [
25248
25254
  ["0", "\0", 128],
25249
25255
  ["a1", "\uFF61", 62],
@@ -25372,9 +25378,9 @@ var require_shiftjis = __commonJS({
25372
25378
  }
25373
25379
  });
25374
25380
 
25375
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/tables/eucjp.json
25381
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/eucjp.json
25376
25382
  var require_eucjp = __commonJS({
25377
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/tables/eucjp.json"(exports, module) {
25383
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/eucjp.json"(exports, module) {
25378
25384
  module.exports = [
25379
25385
  ["0", "\0", 127],
25380
25386
  ["8ea1", "\uFF61", 62],
@@ -25560,9 +25566,9 @@ var require_eucjp = __commonJS({
25560
25566
  }
25561
25567
  });
25562
25568
 
25563
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/tables/cp936.json
25569
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/cp936.json
25564
25570
  var require_cp936 = __commonJS({
25565
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/tables/cp936.json"(exports, module) {
25571
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/cp936.json"(exports, module) {
25566
25572
  module.exports = [
25567
25573
  ["0", "\0", 127, "\u20AC"],
25568
25574
  ["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"],
@@ -25830,9 +25836,9 @@ var require_cp936 = __commonJS({
25830
25836
  }
25831
25837
  });
25832
25838
 
25833
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/tables/gbk-added.json
25839
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/gbk-added.json
25834
25840
  var require_gbk_added = __commonJS({
25835
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports, module) {
25841
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports, module) {
25836
25842
  module.exports = [
25837
25843
  ["a140", "\uE4C6", 62],
25838
25844
  ["a180", "\uE505", 32],
@@ -25892,16 +25898,16 @@ var require_gbk_added = __commonJS({
25892
25898
  }
25893
25899
  });
25894
25900
 
25895
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
25901
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
25896
25902
  var require_gb18030_ranges = __commonJS({
25897
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports, module) {
25903
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports, module) {
25898
25904
  module.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] };
25899
25905
  }
25900
25906
  });
25901
25907
 
25902
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/tables/cp949.json
25908
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/cp949.json
25903
25909
  var require_cp949 = __commonJS({
25904
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/tables/cp949.json"(exports, module) {
25910
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/cp949.json"(exports, module) {
25905
25911
  module.exports = [
25906
25912
  ["0", "\0", 127],
25907
25913
  ["8141", "\uAC02\uAC03\uAC05\uAC06\uAC0B", 4, "\uAC18\uAC1E\uAC1F\uAC21\uAC22\uAC23\uAC25", 6, "\uAC2E\uAC32\uAC33\uAC34"],
@@ -26178,9 +26184,9 @@ var require_cp949 = __commonJS({
26178
26184
  }
26179
26185
  });
26180
26186
 
26181
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/tables/cp950.json
26187
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/cp950.json
26182
26188
  var require_cp950 = __commonJS({
26183
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/tables/cp950.json"(exports, module) {
26189
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/cp950.json"(exports, module) {
26184
26190
  module.exports = [
26185
26191
  ["0", "\0", 127],
26186
26192
  ["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"],
@@ -26361,9 +26367,9 @@ var require_cp950 = __commonJS({
26361
26367
  }
26362
26368
  });
26363
26369
 
26364
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/tables/big5-added.json
26370
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/big5-added.json
26365
26371
  var require_big5_added = __commonJS({
26366
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/tables/big5-added.json"(exports, module) {
26372
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/big5-added.json"(exports, module) {
26367
26373
  module.exports = [
26368
26374
  ["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"],
26369
26375
  ["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"],
@@ -26489,9 +26495,9 @@ var require_big5_added = __commonJS({
26489
26495
  }
26490
26496
  });
26491
26497
 
26492
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/dbcs-data.js
26498
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/dbcs-data.js
26493
26499
  var require_dbcs_data = __commonJS({
26494
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/dbcs-data.js"(exports, module) {
26500
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/dbcs-data.js"(exports, module) {
26495
26501
  "use strict";
26496
26502
  module.exports = {
26497
26503
  // == Japanese/ShiftJIS ====================================================
@@ -26736,9 +26742,9 @@ var require_dbcs_data = __commonJS({
26736
26742
  }
26737
26743
  });
26738
26744
 
26739
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/index.js
26745
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/index.js
26740
26746
  var require_encodings = __commonJS({
26741
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/encodings/index.js"(exports, module) {
26747
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/index.js"(exports, module) {
26742
26748
  "use strict";
26743
26749
  var mergeModules = require_merge_exports();
26744
26750
  var modules = [
@@ -26761,9 +26767,9 @@ var require_encodings = __commonJS({
26761
26767
  }
26762
26768
  });
26763
26769
 
26764
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/lib/streams.js
26770
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/lib/streams.js
26765
26771
  var require_streams = __commonJS({
26766
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/lib/streams.js"(exports, module) {
26772
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/lib/streams.js"(exports, module) {
26767
26773
  "use strict";
26768
26774
  var Buffer2 = require_safer().Buffer;
26769
26775
  module.exports = function(streamModule) {
@@ -26858,9 +26864,9 @@ var require_streams = __commonJS({
26858
26864
  }
26859
26865
  });
26860
26866
 
26861
- // node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/lib/index.js
26867
+ // node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/lib/index.js
26862
26868
  var require_lib = __commonJS({
26863
- "node_modules/.pnpm/iconv-lite@0.7.2/node_modules/iconv-lite/lib/index.js"(exports, module) {
26869
+ "node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/lib/index.js"(exports, module) {
26864
26870
  "use strict";
26865
26871
  var Buffer2 = require_safer().Buffer;
26866
26872
  var bomHandling = require_bom_handling();
@@ -43426,9 +43432,9 @@ var require_src = __commonJS({
43426
43432
  }
43427
43433
  });
43428
43434
 
43429
- // node_modules/.pnpm/libmime@5.4.0/node_modules/libmime/lib/charsets.js
43435
+ // node_modules/.pnpm/libmime@5.4.1/node_modules/libmime/lib/charsets.js
43430
43436
  var require_charsets = __commonJS({
43431
- "node_modules/.pnpm/libmime@5.4.0/node_modules/libmime/lib/charsets.js"(exports, module) {
43437
+ "node_modules/.pnpm/libmime@5.4.1/node_modules/libmime/lib/charsets.js"(exports, module) {
43432
43438
  "use strict";
43433
43439
  module.exports = {
43434
43440
  "866": "IBM866",
@@ -43641,9 +43647,9 @@ var require_charsets = __commonJS({
43641
43647
  }
43642
43648
  });
43643
43649
 
43644
- // node_modules/.pnpm/libmime@5.4.0/node_modules/libmime/lib/charset.js
43650
+ // node_modules/.pnpm/libmime@5.4.1/node_modules/libmime/lib/charset.js
43645
43651
  var require_charset = __commonJS({
43646
- "node_modules/.pnpm/libmime@5.4.0/node_modules/libmime/lib/charset.js"(exports, module) {
43652
+ "node_modules/.pnpm/libmime@5.4.1/node_modules/libmime/lib/charset.js"(exports, module) {
43647
43653
  "use strict";
43648
43654
  var { Buffer: Buffer2 } = __require("node:buffer");
43649
43655
  var iconv = require_lib();
@@ -44120,9 +44126,9 @@ var require_libqp = __commonJS({
44120
44126
  }
44121
44127
  });
44122
44128
 
44123
- // node_modules/.pnpm/libmime@5.4.0/node_modules/libmime/lib/mimetypes.js
44129
+ // node_modules/.pnpm/libmime@5.4.1/node_modules/libmime/lib/mimetypes.js
44124
44130
  var require_mimetypes = __commonJS({
44125
- "node_modules/.pnpm/libmime@5.4.0/node_modules/libmime/lib/mimetypes.js"(exports, module) {
44131
+ "node_modules/.pnpm/libmime@5.4.1/node_modules/libmime/lib/mimetypes.js"(exports, module) {
44126
44132
  "use strict";
44127
44133
  module.exports = {
44128
44134
  list: {
@@ -46171,9 +46177,9 @@ var require_mimetypes = __commonJS({
46171
46177
  }
46172
46178
  });
46173
46179
 
46174
- // node_modules/.pnpm/libmime@5.4.0/node_modules/libmime/lib/libmime.js
46180
+ // node_modules/.pnpm/libmime@5.4.1/node_modules/libmime/lib/libmime.js
46175
46181
  var require_libmime = __commonJS({
46176
- "node_modules/.pnpm/libmime@5.4.0/node_modules/libmime/lib/libmime.js"(exports, module) {
46182
+ "node_modules/.pnpm/libmime@5.4.1/node_modules/libmime/lib/libmime.js"(exports, module) {
46177
46183
  "use strict";
46178
46184
  var { Buffer: Buffer2 } = __require("node:buffer");
46179
46185
  var libcharset = require_charset();
@@ -46893,9 +46899,9 @@ var require_libmime = __commonJS({
46893
46899
  }
46894
46900
  });
46895
46901
 
46896
- // node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/lib/headers.js
46902
+ // node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/headers.js
46897
46903
  var require_headers = __commonJS({
46898
- "node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/lib/headers.js"(exports, module) {
46904
+ "node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/headers.js"(exports, module) {
46899
46905
  "use strict";
46900
46906
  var libmime = require_libmime();
46901
46907
  var Libmime = (
@@ -47199,9 +47205,9 @@ var require_headers = __commonJS({
47199
47205
  }
47200
47206
  });
47201
47207
 
47202
- // node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/lib/mime-node.js
47208
+ // node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/mime-node.js
47203
47209
  var require_mime_node2 = __commonJS({
47204
- "node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/lib/mime-node.js"(exports, module) {
47210
+ "node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/mime-node.js"(exports, module) {
47205
47211
  "use strict";
47206
47212
  var Headers = require_headers();
47207
47213
  var libmime = require_libmime();
@@ -47497,9 +47503,9 @@ var require_mime_node2 = __commonJS({
47497
47503
  }
47498
47504
  });
47499
47505
 
47500
- // node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/lib/message-splitter.js
47506
+ // node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/message-splitter.js
47501
47507
  var require_message_splitter = __commonJS({
47502
- "node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/lib/message-splitter.js"(exports, module) {
47508
+ "node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/message-splitter.js"(exports, module) {
47503
47509
  "use strict";
47504
47510
  var Transform = __require("stream").Transform;
47505
47511
  var MimeNode = require_mime_node2();
@@ -47890,9 +47896,9 @@ var require_message_splitter = __commonJS({
47890
47896
  }
47891
47897
  });
47892
47898
 
47893
- // node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/lib/message-joiner.js
47899
+ // node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/message-joiner.js
47894
47900
  var require_message_joiner = __commonJS({
47895
- "node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/lib/message-joiner.js"(exports, module) {
47901
+ "node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/message-joiner.js"(exports, module) {
47896
47902
  "use strict";
47897
47903
  var Transform = __require("stream").Transform;
47898
47904
  var MessageJoiner = class extends Transform {
@@ -47934,9 +47940,9 @@ var require_message_joiner = __commonJS({
47934
47940
  }
47935
47941
  });
47936
47942
 
47937
- // node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/lib/flowed-decoder.js
47943
+ // node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/flowed-decoder.js
47938
47944
  var require_flowed_decoder = __commonJS({
47939
- "node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/lib/flowed-decoder.js"(exports, module) {
47945
+ "node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/flowed-decoder.js"(exports, module) {
47940
47946
  "use strict";
47941
47947
  var Transform = __require("stream").Transform;
47942
47948
  var libmime = require_libmime();
@@ -47992,9 +47998,9 @@ var require_flowed_decoder = __commonJS({
47992
47998
  }
47993
47999
  });
47994
48000
 
47995
- // node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/lib/node-rewriter.js
48001
+ // node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/node-rewriter.js
47996
48002
  var require_node_rewriter = __commonJS({
47997
- "node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/lib/node-rewriter.js"(exports, module) {
48003
+ "node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/node-rewriter.js"(exports, module) {
47998
48004
  "use strict";
47999
48005
  var Transform = __require("stream").Transform;
48000
48006
  var FlowedDecoder = require_flowed_decoder();
@@ -48180,9 +48186,9 @@ var require_node_rewriter = __commonJS({
48180
48186
  }
48181
48187
  });
48182
48188
 
48183
- // node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/lib/node-streamer.js
48189
+ // node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/node-streamer.js
48184
48190
  var require_node_streamer = __commonJS({
48185
- "node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/lib/node-streamer.js"(exports, module) {
48191
+ "node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/node-streamer.js"(exports, module) {
48186
48192
  "use strict";
48187
48193
  var Transform = __require("stream").Transform;
48188
48194
  var FlowedDecoder = require_flowed_decoder();
@@ -48316,9 +48322,9 @@ var require_node_streamer = __commonJS({
48316
48322
  }
48317
48323
  });
48318
48324
 
48319
- // node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/lib/chunked-passthrough.js
48325
+ // node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/chunked-passthrough.js
48320
48326
  var require_chunked_passthrough = __commonJS({
48321
- "node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/lib/chunked-passthrough.js"(exports, module) {
48327
+ "node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/chunked-passthrough.js"(exports, module) {
48322
48328
  "use strict";
48323
48329
  var { Transform } = __require("stream");
48324
48330
  var ChunkedPassthrough = class extends Transform {
@@ -48364,9 +48370,9 @@ var require_chunked_passthrough = __commonJS({
48364
48370
  }
48365
48371
  });
48366
48372
 
48367
- // node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/index.js
48373
+ // node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/index.js
48368
48374
  var require_mailsplit = __commonJS({
48369
- "node_modules/.pnpm/@zone-eu+mailsplit@5.4.13/node_modules/@zone-eu/mailsplit/index.js"(exports, module) {
48375
+ "node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/index.js"(exports, module) {
48370
48376
  "use strict";
48371
48377
  var MessageSplitter = require_message_splitter();
48372
48378
  var MessageJoiner = require_message_joiner();
@@ -48387,9 +48393,9 @@ var require_mailsplit = __commonJS({
48387
48393
  }
48388
48394
  });
48389
48395
 
48390
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/limited-passthrough.js
48396
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/limited-passthrough.js
48391
48397
  var require_limited_passthrough = __commonJS({
48392
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/limited-passthrough.js"(exports, module) {
48398
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/limited-passthrough.js"(exports, module) {
48393
48399
  "use strict";
48394
48400
  var { Transform } = __require("stream");
48395
48401
  var LimitedPassthrough = class extends Transform {
@@ -48423,9 +48429,9 @@ var require_limited_passthrough = __commonJS({
48423
48429
  }
48424
48430
  });
48425
48431
 
48426
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/handler/imap-stream.js
48432
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-stream.js
48427
48433
  var require_imap_stream = __commonJS({
48428
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/handler/imap-stream.js"(exports, module) {
48434
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-stream.js"(exports, module) {
48429
48435
  "use strict";
48430
48436
  var Transform = __require("stream").Transform;
48431
48437
  var logger = require_logger();
@@ -48703,9 +48709,9 @@ var require_imap_stream = __commonJS({
48703
48709
  }
48704
48710
  });
48705
48711
 
48706
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/handler/imap-formal-syntax.js
48712
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-formal-syntax.js
48707
48713
  var require_imap_formal_syntax = __commonJS({
48708
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/handler/imap-formal-syntax.js"(exports, module) {
48714
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-formal-syntax.js"(exports, module) {
48709
48715
  "use strict";
48710
48716
  function expandRange(start, end) {
48711
48717
  let chars = [];
@@ -48849,9 +48855,9 @@ var require_imap_formal_syntax = __commonJS({
48849
48855
  }
48850
48856
  });
48851
48857
 
48852
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/handler/token-parser.js
48858
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/token-parser.js
48853
48859
  var require_token_parser = __commonJS({
48854
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/handler/token-parser.js"(exports, module) {
48860
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/token-parser.js"(exports, module) {
48855
48861
  "use strict";
48856
48862
  var imapFormalSyntax = require_imap_formal_syntax();
48857
48863
  var STATE_ATOM = 1;
@@ -49399,9 +49405,9 @@ var require_token_parser = __commonJS({
49399
49405
  }
49400
49406
  });
49401
49407
 
49402
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/handler/parser-instance.js
49408
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/parser-instance.js
49403
49409
  var require_parser_instance = __commonJS({
49404
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/handler/parser-instance.js"(exports, module) {
49410
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/parser-instance.js"(exports, module) {
49405
49411
  "use strict";
49406
49412
  var imapFormalSyntax = require_imap_formal_syntax();
49407
49413
  var { TokenParser } = require_token_parser();
@@ -49588,9 +49594,9 @@ var require_parser_instance = __commonJS({
49588
49594
  }
49589
49595
  });
49590
49596
 
49591
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/handler/imap-parser.js
49597
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-parser.js
49592
49598
  var require_imap_parser = __commonJS({
49593
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/handler/imap-parser.js"(exports, module) {
49599
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-parser.js"(exports, module) {
49594
49600
  "use strict";
49595
49601
  var imapFormalSyntax = require_imap_formal_syntax();
49596
49602
  var { ParserInstance } = require_parser_instance();
@@ -49645,9 +49651,9 @@ var require_imap_parser = __commonJS({
49645
49651
  }
49646
49652
  });
49647
49653
 
49648
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/handler/imap-compiler.js
49654
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-compiler.js
49649
49655
  var require_imap_compiler = __commonJS({
49650
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/handler/imap-compiler.js"(exports, module) {
49656
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-compiler.js"(exports, module) {
49651
49657
  "use strict";
49652
49658
  var imapFormalSyntax = require_imap_formal_syntax();
49653
49659
  var formatRespEntry = (entry, returnEmpty) => {
@@ -49795,9 +49801,9 @@ var require_imap_compiler = __commonJS({
49795
49801
  }
49796
49802
  });
49797
49803
 
49798
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/handler/imap-handler.js
49804
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-handler.js
49799
49805
  var require_imap_handler = __commonJS({
49800
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/handler/imap-handler.js"(exports, module) {
49806
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-handler.js"(exports, module) {
49801
49807
  "use strict";
49802
49808
  var parser = require_imap_parser();
49803
49809
  var compiler = require_imap_compiler();
@@ -49808,12 +49814,12 @@ var require_imap_handler = __commonJS({
49808
49814
  }
49809
49815
  });
49810
49816
 
49811
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/package.json
49817
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/package.json
49812
49818
  var require_package4 = __commonJS({
49813
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/package.json"(exports, module) {
49819
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/package.json"(exports, module) {
49814
49820
  module.exports = {
49815
49821
  name: "imapflow",
49816
- version: "1.4.3",
49822
+ version: "1.4.6",
49817
49823
  description: "IMAP Client for Node",
49818
49824
  main: "lib/imap-flow.js",
49819
49825
  types: "lib/imap-flow.d.ts",
@@ -49841,27 +49847,27 @@ var require_package4 = __commonJS({
49841
49847
  homepage: "https://imapflow.com/",
49842
49848
  devDependencies: {
49843
49849
  "@eslint/js": "10.0.1",
49844
- "@types/node": "26.0.1",
49850
+ "@types/node": "26.1.0",
49845
49851
  c8: "11.0.0",
49846
- eslint: "10.5.0",
49852
+ eslint: "10.6.0",
49847
49853
  "eslint-config-nodemailer": "1.2.0",
49848
49854
  "eslint-config-prettier": "10.1.8",
49849
49855
  grunt: "1.6.2",
49850
49856
  "grunt-cli": "1.5.0",
49851
49857
  "grunt-contrib-nodeunit": "5.0.0",
49852
49858
  "grunt-eslint": "26.0.0",
49853
- prettier: "3.8.4",
49859
+ prettier: "3.9.4",
49854
49860
  proxyquire: "^2.1.3",
49855
49861
  typescript: "6.0.3"
49856
49862
  },
49857
49863
  dependencies: {
49858
- "@zone-eu/mailsplit": "5.4.13",
49864
+ "@zone-eu/mailsplit": "5.4.14",
49859
49865
  "encoding-japanese": "2.2.0",
49860
- "iconv-lite": "0.7.2",
49866
+ "iconv-lite": "0.7.3",
49861
49867
  libbase64: "1.3.0",
49862
- libmime: "5.4.0",
49868
+ libmime: "5.4.1",
49863
49869
  libqp: "2.1.1",
49864
- nodemailer: "9.0.1",
49870
+ nodemailer: "9.0.3",
49865
49871
  pino: "10.3.1",
49866
49872
  socks: "2.8.9"
49867
49873
  }
@@ -49869,481 +49875,6 @@ var require_package4 = __commonJS({
49869
49875
  }
49870
49876
  });
49871
49877
 
49872
- // node_modules/.pnpm/nodemailer@9.0.1/node_modules/nodemailer/lib/punycode/index.js
49873
- var require_punycode2 = __commonJS({
49874
- "node_modules/.pnpm/nodemailer@9.0.1/node_modules/nodemailer/lib/punycode/index.js"(exports, module) {
49875
- "use strict";
49876
- var maxInt = 2147483647;
49877
- var base = 36;
49878
- var tMin = 1;
49879
- var tMax = 26;
49880
- var skew = 38;
49881
- var damp = 700;
49882
- var initialBias = 72;
49883
- var initialN = 128;
49884
- var delimiter = "-";
49885
- var regexPunycode = /^xn--/;
49886
- var regexNonASCII = /[^\0-\x7F]/;
49887
- var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g;
49888
- var errors = {
49889
- overflow: "Overflow: input needs wider integers to process",
49890
- "not-basic": "Illegal input >= 0x80 (not a basic code point)",
49891
- "invalid-input": "Invalid input"
49892
- };
49893
- var baseMinusTMin = base - tMin;
49894
- var floor = Math.floor;
49895
- var stringFromCharCode = String.fromCharCode;
49896
- function error2(type) {
49897
- throw new RangeError(errors[type]);
49898
- }
49899
- function map(array2, callback) {
49900
- const result = [];
49901
- let length = array2.length;
49902
- while (length--) {
49903
- result[length] = callback(array2[length]);
49904
- }
49905
- return result;
49906
- }
49907
- function mapDomain(domain, callback) {
49908
- const parts = domain.split("@");
49909
- let result = "";
49910
- if (parts.length > 1) {
49911
- result = parts[0] + "@";
49912
- domain = parts[1];
49913
- }
49914
- domain = domain.replace(regexSeparators, ".");
49915
- const labels = domain.split(".");
49916
- const encoded = map(labels, callback).join(".");
49917
- return result + encoded;
49918
- }
49919
- function ucs2decode(string3) {
49920
- const output = [];
49921
- let counter = 0;
49922
- const length = string3.length;
49923
- while (counter < length) {
49924
- const value = string3.charCodeAt(counter++);
49925
- if (value >= 55296 && value <= 56319 && counter < length) {
49926
- const extra = string3.charCodeAt(counter++);
49927
- if ((extra & 64512) == 56320) {
49928
- output.push(((value & 1023) << 10) + (extra & 1023) + 65536);
49929
- } else {
49930
- output.push(value);
49931
- counter--;
49932
- }
49933
- } else {
49934
- output.push(value);
49935
- }
49936
- }
49937
- return output;
49938
- }
49939
- var ucs2encode = (codePoints) => String.fromCodePoint(...codePoints);
49940
- var basicToDigit = function(codePoint) {
49941
- if (codePoint >= 48 && codePoint < 58) {
49942
- return 26 + (codePoint - 48);
49943
- }
49944
- if (codePoint >= 65 && codePoint < 91) {
49945
- return codePoint - 65;
49946
- }
49947
- if (codePoint >= 97 && codePoint < 123) {
49948
- return codePoint - 97;
49949
- }
49950
- return base;
49951
- };
49952
- var digitToBasic = function(digit, flag) {
49953
- return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
49954
- };
49955
- var adapt = function(delta, numPoints, firstTime) {
49956
- let k = 0;
49957
- delta = firstTime ? floor(delta / damp) : delta >> 1;
49958
- delta += floor(delta / numPoints);
49959
- for (
49960
- ;
49961
- /* no initialization */
49962
- delta > baseMinusTMin * tMax >> 1;
49963
- k += base
49964
- ) {
49965
- delta = floor(delta / baseMinusTMin);
49966
- }
49967
- return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
49968
- };
49969
- var decode = function(input) {
49970
- const output = [];
49971
- const inputLength = input.length;
49972
- let i = 0;
49973
- let n = initialN;
49974
- let bias = initialBias;
49975
- let basic = input.lastIndexOf(delimiter);
49976
- if (basic < 0) {
49977
- basic = 0;
49978
- }
49979
- for (let j = 0; j < basic; ++j) {
49980
- if (input.charCodeAt(j) >= 128) {
49981
- error2("not-basic");
49982
- }
49983
- output.push(input.charCodeAt(j));
49984
- }
49985
- for (let index = basic > 0 ? basic + 1 : 0; index < inputLength; ) {
49986
- const oldi = i;
49987
- for (let w = 1, k = base; ; k += base) {
49988
- if (index >= inputLength) {
49989
- error2("invalid-input");
49990
- }
49991
- const digit = basicToDigit(input.charCodeAt(index++));
49992
- if (digit >= base) {
49993
- error2("invalid-input");
49994
- }
49995
- if (digit > floor((maxInt - i) / w)) {
49996
- error2("overflow");
49997
- }
49998
- i += digit * w;
49999
- const t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
50000
- if (digit < t) {
50001
- break;
50002
- }
50003
- const baseMinusT = base - t;
50004
- if (w > floor(maxInt / baseMinusT)) {
50005
- error2("overflow");
50006
- }
50007
- w *= baseMinusT;
50008
- }
50009
- const out = output.length + 1;
50010
- bias = adapt(i - oldi, out, oldi == 0);
50011
- if (floor(i / out) > maxInt - n) {
50012
- error2("overflow");
50013
- }
50014
- n += floor(i / out);
50015
- i %= out;
50016
- output.splice(i++, 0, n);
50017
- }
50018
- return String.fromCodePoint(...output);
50019
- };
50020
- var encode = function(input) {
50021
- const output = [];
50022
- input = ucs2decode(input);
50023
- const inputLength = input.length;
50024
- let n = initialN;
50025
- let delta = 0;
50026
- let bias = initialBias;
50027
- for (const currentValue of input) {
50028
- if (currentValue < 128) {
50029
- output.push(stringFromCharCode(currentValue));
50030
- }
50031
- }
50032
- const basicLength = output.length;
50033
- let handledCPCount = basicLength;
50034
- if (basicLength) {
50035
- output.push(delimiter);
50036
- }
50037
- while (handledCPCount < inputLength) {
50038
- let m = maxInt;
50039
- for (const currentValue of input) {
50040
- if (currentValue >= n && currentValue < m) {
50041
- m = currentValue;
50042
- }
50043
- }
50044
- const handledCPCountPlusOne = handledCPCount + 1;
50045
- if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
50046
- error2("overflow");
50047
- }
50048
- delta += (m - n) * handledCPCountPlusOne;
50049
- n = m;
50050
- for (const currentValue of input) {
50051
- if (currentValue < n && ++delta > maxInt) {
50052
- error2("overflow");
50053
- }
50054
- if (currentValue === n) {
50055
- let q = delta;
50056
- for (let k = base; ; k += base) {
50057
- const t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
50058
- if (q < t) {
50059
- break;
50060
- }
50061
- const qMinusT = q - t;
50062
- const baseMinusT = base - t;
50063
- output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));
50064
- q = floor(qMinusT / baseMinusT);
50065
- }
50066
- output.push(stringFromCharCode(digitToBasic(q, 0)));
50067
- bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
50068
- delta = 0;
50069
- ++handledCPCount;
50070
- }
50071
- }
50072
- ++delta;
50073
- ++n;
50074
- }
50075
- return output.join("");
50076
- };
50077
- var toUnicode = function(input) {
50078
- return mapDomain(input, function(string3) {
50079
- return regexPunycode.test(string3) ? decode(string3.slice(4).toLowerCase()) : string3;
50080
- });
50081
- };
50082
- var toASCII = function(input) {
50083
- return mapDomain(input, function(string3) {
50084
- return regexNonASCII.test(string3) ? "xn--" + encode(string3) : string3;
50085
- });
50086
- };
50087
- var punycode = {
50088
- /**
50089
- * A string representing the current Punycode.js version number.
50090
- * @memberOf punycode
50091
- * @type String
50092
- */
50093
- version: "2.3.1",
50094
- /**
50095
- * An object of methods to convert from JavaScript's internal character
50096
- * representation (UCS-2) to Unicode code points, and back.
50097
- * @see <https://mathiasbynens.be/notes/javascript-encoding>
50098
- * @memberOf punycode
50099
- * @type Object
50100
- */
50101
- ucs2: {
50102
- decode: ucs2decode,
50103
- encode: ucs2encode
50104
- },
50105
- decode,
50106
- encode,
50107
- toASCII,
50108
- toUnicode
50109
- };
50110
- module.exports = punycode;
50111
- }
50112
- });
50113
-
50114
- // node_modules/.pnpm/nodemailer@9.0.1/node_modules/nodemailer/lib/shared/url.js
50115
- var require_url2 = __commonJS({
50116
- "node_modules/.pnpm/nodemailer@9.0.1/node_modules/nodemailer/lib/shared/url.js"(exports, module) {
50117
- "use strict";
50118
- var urllib = __require("url");
50119
- var punycode = require_punycode2();
50120
- var URLImpl = typeof URL !== "undefined" && URL || urllib.URL;
50121
- var SLASHLESS_AUTHORITY = /^([a-zA-Z][a-zA-Z0-9+.-]*:)(?!\/\/)(.+)$/;
50122
- function safeDecode(str2) {
50123
- try {
50124
- return decodeURIComponent(str2);
50125
- } catch (_err) {
50126
- return str2;
50127
- }
50128
- }
50129
- function normalizeHostname(raw) {
50130
- let hostname2 = raw || "";
50131
- if (!hostname2) {
50132
- return "";
50133
- }
50134
- if (hostname2.charAt(0) === "[" && hostname2.charAt(hostname2.length - 1) === "]") {
50135
- return hostname2.slice(1, -1);
50136
- }
50137
- return punycode.toASCII(safeDecode(hostname2));
50138
- }
50139
- module.exports.parse = (input, parseQueryString) => {
50140
- input = input || "";
50141
- if (!URLImpl) {
50142
- return urllib.parse(input, parseQueryString);
50143
- }
50144
- const slashless = SLASHLESS_AUTHORITY.exec(input);
50145
- const normalized = slashless ? slashless[1] + "//" + slashless[2] : input;
50146
- let u;
50147
- try {
50148
- u = new URLImpl(normalized);
50149
- } catch (_err) {
50150
- return urllib.parse(input, parseQueryString);
50151
- }
50152
- const hostname2 = normalizeHostname(u.hostname);
50153
- const port = u.port || null;
50154
- const pathname = u.pathname || null;
50155
- const search = u.search || null;
50156
- let auth = null;
50157
- if (u.username || u.password) {
50158
- auth = safeDecode(u.username) + (u.password ? ":" + safeDecode(u.password) : "");
50159
- }
50160
- let query;
50161
- if (parseQueryString) {
50162
- query = /* @__PURE__ */ Object.create(null);
50163
- u.searchParams.forEach((value, key) => {
50164
- if (Object.prototype.hasOwnProperty.call(query, key)) {
50165
- if (Array.isArray(query[key])) {
50166
- query[key].push(value);
50167
- } else {
50168
- query[key] = [query[key], value];
50169
- }
50170
- } else {
50171
- query[key] = value;
50172
- }
50173
- });
50174
- } else {
50175
- query = search ? search.slice(1) : null;
50176
- }
50177
- return {
50178
- protocol: u.protocol || null,
50179
- host: u.host || null,
50180
- hostname: hostname2,
50181
- port,
50182
- pathname,
50183
- search,
50184
- path: (pathname || "") + (search || "") || null,
50185
- href: u.href,
50186
- auth,
50187
- query
50188
- };
50189
- };
50190
- module.exports.resolve = (from, to) => {
50191
- if (!URLImpl) {
50192
- return urllib.resolve(from, to);
50193
- }
50194
- try {
50195
- return new URLImpl(to, from).href;
50196
- } catch (_err) {
50197
- return urllib.resolve(from, to);
50198
- }
50199
- };
50200
- }
50201
- });
50202
-
50203
- // node_modules/.pnpm/nodemailer@9.0.1/node_modules/nodemailer/lib/errors.js
50204
- var require_errors3 = __commonJS({
50205
- "node_modules/.pnpm/nodemailer@9.0.1/node_modules/nodemailer/lib/errors.js"(exports, module) {
50206
- "use strict";
50207
- var ERROR_CODES = {
50208
- // Connection errors
50209
- ECONNECTION: "Connection closed unexpectedly",
50210
- ETIMEDOUT: "Connection or operation timed out",
50211
- ESOCKET: "Socket-level error",
50212
- EDNS: "DNS resolution failed",
50213
- // TLS/Security errors
50214
- ETLS: "TLS handshake or STARTTLS failed",
50215
- EREQUIRETLS: "REQUIRETLS not supported by server (RFC 8689)",
50216
- // Protocol errors
50217
- EPROTOCOL: "Invalid SMTP server response",
50218
- EENVELOPE: "Invalid mail envelope (sender or recipients)",
50219
- EMESSAGE: "Message delivery error",
50220
- ESTREAM: "Stream processing error",
50221
- // Authentication errors
50222
- EAUTH: "Authentication failed",
50223
- ENOAUTH: "Authentication credentials not provided",
50224
- EOAUTH2: "OAuth2 token generation or refresh error",
50225
- // Resource errors
50226
- EMAXLIMIT: "Pool resource limit reached (max messages per connection)",
50227
- // Transport-specific errors
50228
- ESENDMAIL: "Sendmail command error",
50229
- ESES: "AWS SES transport error",
50230
- // Configuration and access errors
50231
- ECONFIG: "Invalid configuration",
50232
- EPROXY: "Proxy connection error",
50233
- EFILEACCESS: "File access rejected (disableFileAccess is set)",
50234
- EURLACCESS: "URL access rejected (disableUrlAccess is set)",
50235
- EFETCH: "HTTP fetch error"
50236
- };
50237
- module.exports = { ERROR_CODES };
50238
- for (const code of Object.keys(ERROR_CODES)) {
50239
- module.exports[code] = code;
50240
- }
50241
- }
50242
- });
50243
-
50244
- // node_modules/.pnpm/nodemailer@9.0.1/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js
50245
- var require_http_proxy_client2 = __commonJS({
50246
- "node_modules/.pnpm/nodemailer@9.0.1/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js"(exports, module) {
50247
- "use strict";
50248
- var net = __require("net");
50249
- var tls = __require("tls");
50250
- var urllib = require_url2();
50251
- var errors = require_errors3();
50252
- function httpProxyClient(proxyUrl, destinationPort, destinationHost, tlsOptions, callback) {
50253
- if (typeof tlsOptions === "function") {
50254
- callback = tlsOptions;
50255
- tlsOptions = {};
50256
- }
50257
- tlsOptions = tlsOptions || {};
50258
- const proxy = urllib.parse(proxyUrl);
50259
- const connectOptions = {
50260
- host: proxy.hostname,
50261
- port: Number(proxy.port) ? Number(proxy.port) : proxy.protocol === "https:" ? 443 : 80
50262
- };
50263
- let connect;
50264
- if (proxy.protocol === "https:") {
50265
- connectOptions.rejectUnauthorized = tlsOptions.rejectUnauthorized !== false;
50266
- connect = tls.connect.bind(tls);
50267
- } else {
50268
- connect = net.connect.bind(net);
50269
- }
50270
- let socket;
50271
- let finished = false;
50272
- const tempSocketErr = (err) => {
50273
- if (finished) {
50274
- return;
50275
- }
50276
- finished = true;
50277
- try {
50278
- socket.destroy();
50279
- } catch (_E) {
50280
- }
50281
- callback(err);
50282
- };
50283
- const timeoutErr = () => {
50284
- const err = new Error("Proxy socket timed out");
50285
- err.code = "ETIMEDOUT";
50286
- tempSocketErr(err);
50287
- };
50288
- socket = connect(connectOptions, () => {
50289
- if (finished) {
50290
- return;
50291
- }
50292
- const reqHeaders = {
50293
- Host: destinationHost + ":" + destinationPort,
50294
- Connection: "close"
50295
- };
50296
- if (proxy.auth) {
50297
- reqHeaders["Proxy-Authorization"] = "Basic " + Buffer.from(proxy.auth).toString("base64");
50298
- }
50299
- socket.write(
50300
- // HTTP method
50301
- "CONNECT " + destinationHost + ":" + destinationPort + " HTTP/1.1\r\n" + // HTTP request headers
50302
- Object.keys(reqHeaders).map((key) => key + ": " + reqHeaders[key]).join("\r\n") + // End request
50303
- "\r\n\r\n"
50304
- );
50305
- let headers = "";
50306
- const onSocketData = (chunk) => {
50307
- let match;
50308
- let remainder;
50309
- if (finished) {
50310
- return;
50311
- }
50312
- headers += chunk.toString("binary");
50313
- if (match = headers.match(/\r\n\r\n/)) {
50314
- socket.removeListener("data", onSocketData);
50315
- remainder = headers.substr(match.index + match[0].length);
50316
- headers = headers.substr(0, match.index);
50317
- if (remainder) {
50318
- socket.unshift(Buffer.from(remainder, "binary"));
50319
- }
50320
- finished = true;
50321
- match = headers.match(/^HTTP\/\d+\.\d+ (\d+)/i);
50322
- if (!match || (match[1] || "").charAt(0) !== "2") {
50323
- try {
50324
- socket.destroy();
50325
- } catch (_E) {
50326
- }
50327
- const err = new Error("Invalid response from proxy" + (match && ": " + match[1] || ""));
50328
- err.code = errors.EPROXY;
50329
- return callback(err);
50330
- }
50331
- socket.removeListener("error", tempSocketErr);
50332
- socket.removeListener("timeout", timeoutErr);
50333
- socket.setTimeout(0);
50334
- return callback(null, socket);
50335
- }
50336
- };
50337
- socket.on("data", onSocketData);
50338
- });
50339
- socket.setTimeout(httpProxyClient.timeout || 30 * 1e3);
50340
- socket.on("timeout", timeoutErr);
50341
- socket.once("error", tempSocketErr);
50342
- }
50343
- module.exports = httpProxyClient;
50344
- }
50345
- });
50346
-
50347
49878
  // node_modules/.pnpm/smart-buffer@4.2.0/node_modules/smart-buffer/build/utils.js
50348
49879
  var require_utils2 = __commonJS({
50349
49880
  "node_modules/.pnpm/smart-buffer@4.2.0/node_modules/smart-buffer/build/utils.js"(exports) {
@@ -54488,11 +54019,11 @@ var require_build = __commonJS({
54488
54019
  }
54489
54020
  });
54490
54021
 
54491
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/proxy-connection.js
54022
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/proxy-connection.js
54492
54023
  var require_proxy_connection = __commonJS({
54493
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/proxy-connection.js"(exports, module) {
54024
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/proxy-connection.js"(exports, module) {
54494
54025
  "use strict";
54495
- var httpProxyClient = require_http_proxy_client2();
54026
+ var httpProxyClient = require_http_proxy_client();
54496
54027
  var { SocksClient } = require_build();
54497
54028
  var util2 = __require("util");
54498
54029
  var httpProxyClientAsync = util2.promisify(httpProxyClient);
@@ -54617,9 +54148,9 @@ var require_proxy_connection = __commonJS({
54617
54148
  }
54618
54149
  });
54619
54150
 
54620
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/charsets.js
54151
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/charsets.js
54621
54152
  var require_charsets2 = __commonJS({
54622
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/charsets.js"(exports, module) {
54153
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/charsets.js"(exports, module) {
54623
54154
  "use strict";
54624
54155
  var CHARACTER_SETS = [
54625
54156
  "US-ASCII",
@@ -54896,9 +54427,9 @@ var require_charsets2 = __commonJS({
54896
54427
  }
54897
54428
  });
54898
54429
 
54899
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/jp-decoder.js
54430
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/jp-decoder.js
54900
54431
  var require_jp_decoder = __commonJS({
54901
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/jp-decoder.js"(exports, module) {
54432
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/jp-decoder.js"(exports, module) {
54902
54433
  "use strict";
54903
54434
  var { Transform } = __require("stream");
54904
54435
  var encodingJapanese = require_src();
@@ -54951,9 +54482,9 @@ var require_jp_decoder = __commonJS({
54951
54482
  }
54952
54483
  });
54953
54484
 
54954
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/tools.js
54485
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/tools.js
54955
54486
  var require_tools2 = __commonJS({
54956
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/tools.js"(exports, module) {
54487
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/tools.js"(exports, module) {
54957
54488
  "use strict";
54958
54489
  var libmime = require_libmime();
54959
54490
  var { resolveCharset } = require_charsets2();
@@ -55781,9 +55312,9 @@ var require_tools2 = __commonJS({
55781
55312
  }
55782
55313
  });
55783
55314
 
55784
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/id.js
55315
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/id.js
55785
55316
  var require_id2 = __commonJS({
55786
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/id.js"(exports, module) {
55317
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/id.js"(exports, module) {
55787
55318
  "use strict";
55788
55319
  var { formatDateTime } = require_tools2();
55789
55320
  module.exports = async (connection, clientInfo) => {
@@ -55833,9 +55364,9 @@ var require_id2 = __commonJS({
55833
55364
  }
55834
55365
  });
55835
55366
 
55836
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/capability.js
55367
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/capability.js
55837
55368
  var require_capability = __commonJS({
55838
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/capability.js"(exports, module) {
55369
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/capability.js"(exports, module) {
55839
55370
  "use strict";
55840
55371
  module.exports = async (connection) => {
55841
55372
  if (connection.capabilities.size && !connection.expectCapabilityUpdate) {
@@ -55854,9 +55385,9 @@ var require_capability = __commonJS({
55854
55385
  }
55855
55386
  });
55856
55387
 
55857
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/namespace.js
55388
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/namespace.js
55858
55389
  var require_namespace = __commonJS({
55859
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/namespace.js"(exports, module) {
55390
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/namespace.js"(exports, module) {
55860
55391
  "use strict";
55861
55392
  module.exports = async (connection) => {
55862
55393
  if (![connection.states.AUTHENTICATED, connection.states.SELECTED].includes(connection.state)) {
@@ -55961,9 +55492,9 @@ var require_namespace = __commonJS({
55961
55492
  }
55962
55493
  });
55963
55494
 
55964
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/login.js
55495
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/login.js
55965
55496
  var require_login = __commonJS({
55966
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/login.js"(exports, module) {
55497
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/login.js"(exports, module) {
55967
55498
  "use strict";
55968
55499
  var { getStatusCode, getErrorText } = require_tools2();
55969
55500
  module.exports = async (connection, username, password) => {
@@ -55992,9 +55523,9 @@ var require_login = __commonJS({
55992
55523
  }
55993
55524
  });
55994
55525
 
55995
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/logout.js
55526
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/logout.js
55996
55527
  var require_logout = __commonJS({
55997
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/logout.js"(exports, module) {
55528
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/logout.js"(exports, module) {
55998
55529
  "use strict";
55999
55530
  module.exports = async (connection) => {
56000
55531
  if (connection.state === connection.states.LOGOUT) {
@@ -56026,9 +55557,9 @@ var require_logout = __commonJS({
56026
55557
  }
56027
55558
  });
56028
55559
 
56029
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/starttls.js
55560
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/starttls.js
56030
55561
  var require_starttls = __commonJS({
56031
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/starttls.js"(exports, module) {
55562
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/starttls.js"(exports, module) {
56032
55563
  "use strict";
56033
55564
  module.exports = async (connection) => {
56034
55565
  if (!connection.capabilities.has("STARTTLS") || connection.secureConnection) {
@@ -56048,9 +55579,9 @@ var require_starttls = __commonJS({
56048
55579
  }
56049
55580
  });
56050
55581
 
56051
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/special-use.js
55582
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/special-use.js
56052
55583
  var require_special_use = __commonJS({
56053
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/special-use.js"(exports, module) {
55584
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/special-use.js"(exports, module) {
56054
55585
  "use strict";
56055
55586
  module.exports = {
56056
55587
  flags: ["\\All", "\\Archive", "\\Drafts", "\\Flagged", "\\Junk", "\\Sent", "\\Trash"],
@@ -56348,9 +55879,9 @@ var require_special_use = __commonJS({
56348
55879
  }
56349
55880
  });
56350
55881
 
56351
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/list.js
55882
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/list.js
56352
55883
  var require_list = __commonJS({
56353
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/list.js"(exports, module) {
55884
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/list.js"(exports, module) {
56354
55885
  "use strict";
56355
55886
  var { decodePath, encodePath, normalizePath } = require_tools2();
56356
55887
  var { specialUse } = require_special_use();
@@ -56602,9 +56133,9 @@ var require_list = __commonJS({
56602
56133
  }
56603
56134
  });
56604
56135
 
56605
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/enable.js
56136
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/enable.js
56606
56137
  var require_enable = __commonJS({
56607
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/enable.js"(exports, module) {
56138
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/enable.js"(exports, module) {
56608
56139
  "use strict";
56609
56140
  module.exports = async (connection, extensionList) => {
56610
56141
  if (!connection.capabilities.has("ENABLE") || connection.state !== connection.states.AUTHENTICATED) {
@@ -56649,9 +56180,9 @@ var require_enable = __commonJS({
56649
56180
  }
56650
56181
  });
56651
56182
 
56652
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/select.js
56183
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/select.js
56653
56184
  var require_select = __commonJS({
56654
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/select.js"(exports, module) {
56185
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/select.js"(exports, module) {
56655
56186
  "use strict";
56656
56187
  var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
56657
56188
  module.exports = async (connection, path, options) => {
@@ -56843,9 +56374,9 @@ var require_select = __commonJS({
56843
56374
  }
56844
56375
  });
56845
56376
 
56846
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/fetch.js
56377
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/fetch.js
56847
56378
  var require_fetch2 = __commonJS({
56848
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/fetch.js"(exports, module) {
56379
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/fetch.js"(exports, module) {
56849
56380
  "use strict";
56850
56381
  var { formatMessageResponse } = require_tools2();
56851
56382
  module.exports = async (connection, range, query, options) => {
@@ -57031,9 +56562,9 @@ var require_fetch2 = __commonJS({
57031
56562
  }
57032
56563
  });
57033
56564
 
57034
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/create.js
56565
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/create.js
57035
56566
  var require_create = __commonJS({
57036
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/create.js"(exports, module) {
56567
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/create.js"(exports, module) {
57037
56568
  "use strict";
57038
56569
  var { encodePath, normalizePath, getStatusCode, enhanceCommandError } = require_tools2();
57039
56570
  module.exports = async (connection, path) => {
@@ -57090,9 +56621,9 @@ var require_create = __commonJS({
57090
56621
  }
57091
56622
  });
57092
56623
 
57093
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/delete.js
56624
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/delete.js
57094
56625
  var require_delete = __commonJS({
57095
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/delete.js"(exports, module) {
56626
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/delete.js"(exports, module) {
57096
56627
  "use strict";
57097
56628
  var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
57098
56629
  module.exports = async (connection, path) => {
@@ -57120,9 +56651,9 @@ var require_delete = __commonJS({
57120
56651
  }
57121
56652
  });
57122
56653
 
57123
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/rename.js
56654
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/rename.js
57124
56655
  var require_rename = __commonJS({
57125
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/rename.js"(exports, module) {
56656
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/rename.js"(exports, module) {
57126
56657
  "use strict";
57127
56658
  var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
57128
56659
  module.exports = async (connection, path, newPath) => {
@@ -57155,9 +56686,9 @@ var require_rename = __commonJS({
57155
56686
  }
57156
56687
  });
57157
56688
 
57158
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/close.js
56689
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/close.js
57159
56690
  var require_close = __commonJS({
57160
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/close.js"(exports, module) {
56691
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/close.js"(exports, module) {
57161
56692
  "use strict";
57162
56693
  module.exports = async (connection) => {
57163
56694
  if (connection.state !== connection.states.SELECTED) {
@@ -57183,9 +56714,9 @@ var require_close = __commonJS({
57183
56714
  }
57184
56715
  });
57185
56716
 
57186
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/subscribe.js
56717
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/subscribe.js
57187
56718
  var require_subscribe = __commonJS({
57188
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/subscribe.js"(exports, module) {
56719
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/subscribe.js"(exports, module) {
57189
56720
  "use strict";
57190
56721
  var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
57191
56722
  module.exports = async (connection, path) => {
@@ -57207,9 +56738,9 @@ var require_subscribe = __commonJS({
57207
56738
  }
57208
56739
  });
57209
56740
 
57210
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/unsubscribe.js
56741
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/unsubscribe.js
57211
56742
  var require_unsubscribe = __commonJS({
57212
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/unsubscribe.js"(exports, module) {
56743
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/unsubscribe.js"(exports, module) {
57213
56744
  "use strict";
57214
56745
  var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
57215
56746
  module.exports = async (connection, path) => {
@@ -57231,9 +56762,9 @@ var require_unsubscribe = __commonJS({
57231
56762
  }
57232
56763
  });
57233
56764
 
57234
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/store.js
56765
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/store.js
57235
56766
  var require_store = __commonJS({
57236
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/store.js"(exports, module) {
56767
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/store.js"(exports, module) {
57237
56768
  "use strict";
57238
56769
  var { formatFlag, canUseFlag, enhanceCommandError } = require_tools2();
57239
56770
  module.exports = async (connection, range, flags, options) => {
@@ -57295,9 +56826,9 @@ var require_store = __commonJS({
57295
56826
  }
57296
56827
  });
57297
56828
 
57298
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/search-compiler.js
56829
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/search-compiler.js
57299
56830
  var require_search_compiler = __commonJS({
57300
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/search-compiler.js"(exports, module) {
56831
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/search-compiler.js"(exports, module) {
57301
56832
  "use strict";
57302
56833
  var { formatDate, formatFlag, canUseFlag, isDate } = require_tools2();
57303
56834
  var setBoolOpt = (attributes, term, value) => {
@@ -57612,9 +57143,9 @@ var require_search_compiler = __commonJS({
57612
57143
  }
57613
57144
  });
57614
57145
 
57615
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/search.js
57146
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/search.js
57616
57147
  var require_search = __commonJS({
57617
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/search.js"(exports, module) {
57148
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/search.js"(exports, module) {
57618
57149
  "use strict";
57619
57150
  var { enhanceCommandError } = require_tools2();
57620
57151
  var { searchCompiler } = require_search_compiler();
@@ -57751,9 +57282,9 @@ var require_search = __commonJS({
57751
57282
  }
57752
57283
  });
57753
57284
 
57754
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/noop.js
57285
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/noop.js
57755
57286
  var require_noop = __commonJS({
57756
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/noop.js"(exports, module) {
57287
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/noop.js"(exports, module) {
57757
57288
  "use strict";
57758
57289
  module.exports = async (connection) => {
57759
57290
  try {
@@ -57768,9 +57299,9 @@ var require_noop = __commonJS({
57768
57299
  }
57769
57300
  });
57770
57301
 
57771
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/expunge.js
57302
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/expunge.js
57772
57303
  var require_expunge = __commonJS({
57773
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/expunge.js"(exports, module) {
57304
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/expunge.js"(exports, module) {
57774
57305
  "use strict";
57775
57306
  var { enhanceCommandError } = require_tools2();
57776
57307
  module.exports = async (connection, range, options) => {
@@ -57804,9 +57335,9 @@ var require_expunge = __commonJS({
57804
57335
  }
57805
57336
  });
57806
57337
 
57807
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/append.js
57338
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/append.js
57808
57339
  var require_append = __commonJS({
57809
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/append.js"(exports, module) {
57340
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/append.js"(exports, module) {
57810
57341
  "use strict";
57811
57342
  var { formatFlag, canUseFlag, formatDateTime, normalizePath, encodePath, comparePaths, enhanceCommandError } = require_tools2();
57812
57343
  module.exports = async (connection, destination, content, flags, idate) => {
@@ -57906,9 +57437,9 @@ var require_append = __commonJS({
57906
57437
  }
57907
57438
  });
57908
57439
 
57909
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/status.js
57440
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/status.js
57910
57441
  var require_status = __commonJS({
57911
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/status.js"(exports, module) {
57442
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/status.js"(exports, module) {
57912
57443
  "use strict";
57913
57444
  var { encodePath, normalizePath } = require_tools2();
57914
57445
  module.exports = async (connection, path, query) => {
@@ -58029,9 +57560,9 @@ var require_status = __commonJS({
58029
57560
  }
58030
57561
  });
58031
57562
 
58032
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/copyuid-parser.js
57563
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/copyuid-parser.js
58033
57564
  var require_copyuid_parser = __commonJS({
58034
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/copyuid-parser.js"(exports, module) {
57565
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/copyuid-parser.js"(exports, module) {
58035
57566
  "use strict";
58036
57567
  var { expandRange } = require_tools2();
58037
57568
  function parseCopyUid(response, map) {
@@ -58054,9 +57585,9 @@ var require_copyuid_parser = __commonJS({
58054
57585
  }
58055
57586
  });
58056
57587
 
58057
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/copy.js
57588
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/copy.js
58058
57589
  var require_copy = __commonJS({
58059
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/copy.js"(exports, module) {
57590
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/copy.js"(exports, module) {
58060
57591
  "use strict";
58061
57592
  var { normalizePath, encodePath, enhanceCommandError } = require_tools2();
58062
57593
  var { parseCopyUid } = require_copyuid_parser();
@@ -58086,9 +57617,9 @@ var require_copy = __commonJS({
58086
57617
  }
58087
57618
  });
58088
57619
 
58089
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/move.js
57620
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/move.js
58090
57621
  var require_move = __commonJS({
58091
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/move.js"(exports, module) {
57622
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/move.js"(exports, module) {
58092
57623
  "use strict";
58093
57624
  var { normalizePath, encodePath, enhanceCommandError } = require_tools2();
58094
57625
  var { parseCopyUid } = require_copyuid_parser();
@@ -58129,9 +57660,9 @@ var require_move = __commonJS({
58129
57660
  }
58130
57661
  });
58131
57662
 
58132
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/compress.js
57663
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/compress.js
58133
57664
  var require_compress = __commonJS({
58134
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/compress.js"(exports, module) {
57665
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/compress.js"(exports, module) {
58135
57666
  "use strict";
58136
57667
  module.exports = async (connection) => {
58137
57668
  if (!connection.capabilities.has("COMPRESS=DEFLATE") || connection._inflate) {
@@ -58150,9 +57681,9 @@ var require_compress = __commonJS({
58150
57681
  }
58151
57682
  });
58152
57683
 
58153
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/quota.js
57684
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/quota.js
58154
57685
  var require_quota = __commonJS({
58155
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/quota.js"(exports, module) {
57686
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/quota.js"(exports, module) {
58156
57687
  "use strict";
58157
57688
  var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
58158
57689
  module.exports = async (connection, path) => {
@@ -58237,9 +57768,9 @@ var require_quota = __commonJS({
58237
57768
  }
58238
57769
  });
58239
57770
 
58240
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/idle.js
57771
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/idle.js
58241
57772
  var require_idle = __commonJS({
58242
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/idle.js"(exports, module) {
57773
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/idle.js"(exports, module) {
58243
57774
  "use strict";
58244
57775
  var NOOP_INTERVAL = 2 * 60 * 1e3;
58245
57776
  async function runIdle(connection) {
@@ -58420,9 +57951,9 @@ var require_idle = __commonJS({
58420
57951
  }
58421
57952
  });
58422
57953
 
58423
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/authenticate.js
57954
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/authenticate.js
58424
57955
  var require_authenticate = __commonJS({
58425
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/commands/authenticate.js"(exports, module) {
57956
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/authenticate.js"(exports, module) {
58426
57957
  "use strict";
58427
57958
  var { getStatusCode, getErrorText } = require_tools2();
58428
57959
  async function handleAuthError(err, errorResponse2) {
@@ -58549,9 +58080,9 @@ var require_authenticate = __commonJS({
58549
58080
  }
58550
58081
  });
58551
58082
 
58552
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/imap-commands.js
58083
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/imap-commands.js
58553
58084
  var require_imap_commands = __commonJS({
58554
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/imap-commands.js"(exports, module) {
58085
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/imap-commands.js"(exports, module) {
58555
58086
  "use strict";
58556
58087
  module.exports = /* @__PURE__ */ new Map([
58557
58088
  ["ID", require_id2()],
@@ -58586,9 +58117,9 @@ var require_imap_commands = __commonJS({
58586
58117
  }
58587
58118
  });
58588
58119
 
58589
- // node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/imap-flow.js
58120
+ // node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/imap-flow.js
58590
58121
  var require_imap_flow = __commonJS({
58591
- "node_modules/.pnpm/imapflow@1.4.3/node_modules/imapflow/lib/imap-flow.js"(exports, module) {
58122
+ "node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/imap-flow.js"(exports, module) {
58592
58123
  "use strict";
58593
58124
  var tls = __require("tls");
58594
58125
  var net = __require("net");
@@ -76147,9 +75678,9 @@ var StdioServerTransport = class {
76147
75678
 
76148
75679
  // src/services/appleMailManager.ts
76149
75680
  import { spawnSync as spawnSync2 } from "child_process";
76150
- import { existsSync as existsSync2, writeFileSync as writeFileSync3, readFileSync as readFileSync2, mkdtempSync as mkdtempSync2, rmSync as rmSync2 } from "fs";
76151
- import { isAbsolute, resolve, sep, join as join3 } from "path";
76152
- import { homedir as homedir2 } from "os";
75681
+ import { existsSync as existsSync3, writeFileSync as writeFileSync3, readFileSync as readFileSync2, mkdtempSync as mkdtempSync2, rmSync as rmSync2 } from "fs";
75682
+ import { isAbsolute, resolve, sep, join as join4 } from "path";
75683
+ import { homedir as homedir3 } from "os";
76153
75684
 
76154
75685
  // src/utils/applescript.ts
76155
75686
  import { execSync, spawnSync } from "child_process";
@@ -76685,6 +76216,114 @@ function materializeAttachments(attachments) {
76685
76216
  };
76686
76217
  }
76687
76218
 
76219
+ // src/utils/contactsDb.ts
76220
+ import { existsSync as existsSync2, readdirSync } from "fs";
76221
+ import { join as join3 } from "path";
76222
+ import { homedir as homedir2 } from "os";
76223
+ function loadSqlite() {
76224
+ try {
76225
+ const mod = __require("node:sqlite");
76226
+ if (!mod || typeof mod.DatabaseSync !== "function") {
76227
+ console.error(
76228
+ "[contactsDb] node:sqlite unavailable (no DatabaseSync export); returning no contacts"
76229
+ );
76230
+ return null;
76231
+ }
76232
+ return mod;
76233
+ } catch (err) {
76234
+ console.error(
76235
+ `[contactsDb] node:sqlite not available (requires Node >= 22.5); returning no contacts: ${err instanceof Error ? err.message : String(err)}`
76236
+ );
76237
+ return null;
76238
+ }
76239
+ }
76240
+ function resolveContactsDbPaths(baseDir) {
76241
+ const root = baseDir ?? join3(homedir2(), "Library", "Application Support", "AddressBook");
76242
+ const paths = [];
76243
+ const topLevel = join3(root, "AddressBook-v22.abcddb");
76244
+ if (existsSync2(topLevel)) paths.push(topLevel);
76245
+ const sourcesDir = join3(root, "Sources");
76246
+ if (existsSync2(sourcesDir)) {
76247
+ let entries = [];
76248
+ try {
76249
+ entries = readdirSync(sourcesDir);
76250
+ } catch {
76251
+ entries = [];
76252
+ }
76253
+ for (const entry of entries) {
76254
+ const candidate = join3(sourcesDir, entry, "AddressBook-v22.abcddb");
76255
+ if (existsSync2(candidate)) paths.push(candidate);
76256
+ }
76257
+ }
76258
+ return paths;
76259
+ }
76260
+ var RECORD_SQL = `
76261
+ SELECT r.Z_PK pk,
76262
+ TRIM(COALESCE(r.ZFIRSTNAME,'')||' '||COALESCE(r.ZLASTNAME,'')) fullname,
76263
+ r.ZORGANIZATION org, r.ZNICKNAME nick
76264
+ FROM ZABCDRECORD r
76265
+ WHERE lower(TRIM(COALESCE(r.ZFIRSTNAME,'')||' '||COALESCE(r.ZLASTNAME,''))) LIKE ?
76266
+ OR lower(COALESCE(r.ZORGANIZATION,'')) LIKE ?
76267
+ OR lower(COALESCE(r.ZNICKNAME,'')) LIKE ?
76268
+ OR r.Z_PK IN (SELECT ZOWNER FROM ZABCDEMAILADDRESS WHERE lower(COALESCE(ZADDRESS,'')) LIKE ?)
76269
+ `;
76270
+ var EMAILS_SQL = `SELECT ZADDRESS AS v FROM ZABCDEMAILADDRESS WHERE ZOWNER = ? AND ZADDRESS IS NOT NULL`;
76271
+ var PHONES_SQL = `SELECT ZFULLNUMBER AS v FROM ZABCDPHONENUMBER WHERE ZOWNER = ? AND ZFULLNUMBER IS NOT NULL`;
76272
+ function displayName(row) {
76273
+ const fullname = typeof row.fullname === "string" ? row.fullname.trim() : "";
76274
+ if (fullname) return fullname;
76275
+ const org = typeof row.org === "string" ? row.org.trim() : "";
76276
+ if (org) return org;
76277
+ const nick = typeof row.nick === "string" ? row.nick.trim() : "";
76278
+ if (nick) return nick;
76279
+ return "(no name)";
76280
+ }
76281
+ function searchOneDb(sqlite, dbPath, like) {
76282
+ let db = null;
76283
+ try {
76284
+ db = new sqlite.DatabaseSync(dbPath, { readOnly: true });
76285
+ const records = db.prepare(RECORD_SQL).all(like, like, like, like);
76286
+ const emailStmt = db.prepare(EMAILS_SQL);
76287
+ const phoneStmt = db.prepare(PHONES_SQL);
76288
+ const contacts = [];
76289
+ for (const rec of records) {
76290
+ const pk = rec.pk;
76291
+ const emails = emailStmt.all(pk).map((r) => r.v).filter((v) => typeof v === "string" && v.length > 0);
76292
+ const phones = phoneStmt.all(pk).map((r) => r.v).filter((v) => typeof v === "string" && v.length > 0);
76293
+ contacts.push({ name: displayName(rec), emails, phones });
76294
+ }
76295
+ return contacts;
76296
+ } catch (err) {
76297
+ console.error(
76298
+ `[contactsDb] skipping unreadable Contacts DB ${dbPath}: ${err instanceof Error ? err.message : String(err)}`
76299
+ );
76300
+ return [];
76301
+ } finally {
76302
+ try {
76303
+ db?.close();
76304
+ } catch {
76305
+ }
76306
+ }
76307
+ }
76308
+ function searchContactsDb(query, opts) {
76309
+ if (!query || !query.trim()) return [];
76310
+ const sqlite = loadSqlite();
76311
+ if (!sqlite) return [];
76312
+ const dbPaths = opts?.dbPaths ?? resolveContactsDbPaths();
76313
+ const like = `%${query.toLowerCase()}%`;
76314
+ const seen = /* @__PURE__ */ new Set();
76315
+ const results = [];
76316
+ for (const dbPath of dbPaths) {
76317
+ for (const contact of searchOneDb(sqlite, dbPath, like)) {
76318
+ const key = `${contact.name} ${[...contact.emails].sort().join(",")}`;
76319
+ if (seen.has(key)) continue;
76320
+ seen.add(key);
76321
+ results.push(contact);
76322
+ }
76323
+ }
76324
+ return results;
76325
+ }
76326
+
76688
76327
  // src/services/appleMailManager.ts
76689
76328
  function getMailboxScanThreshold() {
76690
76329
  const raw = process.env.APPLE_MAIL_MAX_SEARCH_MAILBOX;
@@ -76740,7 +76379,7 @@ function splitSearchDiagnostics(output, account) {
76740
76379
  }
76741
76380
  return { payload, diagnostics };
76742
76381
  }
76743
- var ALLOWED_SAVE_ROOTS = [homedir2(), "/tmp", "/private/tmp", "/Volumes"];
76382
+ var ALLOWED_SAVE_ROOTS = [homedir3(), "/tmp", "/private/tmp", "/Volumes"];
76744
76383
  function isPathWithinAllowedRoots(resolvedPath) {
76745
76384
  return ALLOWED_SAVE_ROOTS.some((root) => {
76746
76385
  const base = root.endsWith(sep) ? root.slice(0, -1) : root;
@@ -76778,13 +76417,17 @@ function escapeForAppleScript(text) {
76778
76417
  if (!text) return "";
76779
76418
  return text.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/[\x00-\x1f\x7f]/g, "");
76780
76419
  }
76420
+ function escapeForAppleScriptBody(text) {
76421
+ if (!text) return "";
76422
+ return text.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\r\n|\r|\n/g, "\\n").replace(/\t/g, "\\t").replace(/[\x00-\x1f\x7f]/g, "");
76423
+ }
76781
76424
  function buildAttachmentCommands(attachments) {
76782
76425
  if (!attachments || attachments.length === 0) return "";
76783
76426
  for (const filePath of attachments) {
76784
76427
  if (!isAbsolute(filePath)) {
76785
76428
  throw new Error(`Attachment path must be absolute: "${filePath}"`);
76786
76429
  }
76787
- if (!existsSync2(filePath)) {
76430
+ if (!existsSync3(filePath)) {
76788
76431
  throw new Error(`Attachment file not found: "${filePath}"`);
76789
76432
  }
76790
76433
  }
@@ -77781,7 +77424,7 @@ var AppleMailManager = class {
77781
77424
  // ───────────────────────────────────────────────────────────────────
77782
77425
  sendEmail(to, subject, body, cc, bcc, account, attachments) {
77783
77426
  const safeSubject = escapeForAppleScript(subject);
77784
- const safeBody = escapeForAppleScript(body);
77427
+ const safeBody = escapeForAppleScriptBody(body);
77785
77428
  let recipientCommands = "";
77786
77429
  for (const addr of to) {
77787
77430
  recipientCommands += `make new to recipient at end of to recipients with properties {address:"${escapeForAppleScript(addr)}"}
@@ -77911,7 +77554,7 @@ var AppleMailManager = class {
77911
77554
  */
77912
77555
  createDraft(to, subject, body, cc, bcc, account, attachments) {
77913
77556
  const safeSubject = escapeForAppleScript(subject);
77914
- const safeBody = escapeForAppleScript(body);
77557
+ const safeBody = escapeForAppleScriptBody(body);
77915
77558
  let recipientCommands = "";
77916
77559
  for (const addr of to) {
77917
77560
  recipientCommands += `make new to recipient at end of to recipients with properties {address:"${escapeForAppleScript(addr)}"}
@@ -77984,7 +77627,7 @@ var AppleMailManager = class {
77984
77627
  * @returns true if reply created/sent successfully
77985
77628
  */
77986
77629
  replyToMessage(id, body, replyAll = false, send = true) {
77987
- const safeBody = escapeForAppleScript(body);
77630
+ const safeBody = escapeForAppleScriptBody(body);
77988
77631
  const replyAllClause = replyAll ? " with reply to all" : "";
77989
77632
  const sendAction = send ? "send theReply" : "";
77990
77633
  const script = buildAppLevelScript(`
@@ -78025,7 +77668,7 @@ var AppleMailManager = class {
78025
77668
  * @returns true if forward created/sent successfully
78026
77669
  */
78027
77670
  forwardMessage(id, to, body, send = true) {
78028
- const safeBody = body ? escapeForAppleScript(body) : "";
77671
+ const safeBody = body ? escapeForAppleScriptBody(body) : "";
78029
77672
  const sendAction = send ? "send theForward" : "";
78030
77673
  let recipientCommands = "";
78031
77674
  for (const addr of to) {
@@ -78606,7 +78249,7 @@ var AppleMailManager = class {
78606
78249
  let dir = null;
78607
78250
  try {
78608
78251
  dir = mkdtempSync2("/private/tmp/amcp-fetch-");
78609
- const dest = join3(dir, attachmentName.replace(/[/\\]/g, "_"));
78252
+ const dest = join4(dir, attachmentName.replace(/[/\\]/g, "_"));
78610
78253
  const ok = this.saveAttachment(id, attachmentName, dest);
78611
78254
  if (!ok) {
78612
78255
  return {
@@ -79040,60 +78683,16 @@ ${actionStmts.join("\n")}
79040
78683
  // Contacts Integration
79041
78684
  // ===========================================================================
79042
78685
  /**
79043
- * Search contacts by name or email.
78686
+ * Search contacts by name, organization, nickname, or email address.
78687
+ *
78688
+ * Reads the macOS Contacts (AddressBook) SQLite databases directly via Full
78689
+ * Disk Access — it does NOT drive Contacts.app over AppleScript, so it raises
78690
+ * no Automation / Apple-Events permission prompt (the old path would hang on
78691
+ * that unanswerable prompt on headless/scheduled hosts). See
78692
+ * {@link searchContactsDb}.
79044
78693
  */
79045
78694
  searchContacts(query) {
79046
- const safeQuery = escapeForAppleScript(query);
79047
- const script = `
79048
- tell application "Contacts"
79049
- set matchedContacts to {}
79050
- set foundPeople to (every person whose name contains "${safeQuery}") & (every person whose value of emails contains "${safeQuery}")
79051
-
79052
- -- Deduplicate by tracking IDs
79053
- set seenIds to {}
79054
- repeat with p in foundPeople
79055
- set pid to id of p
79056
- if seenIds does not contain pid then
79057
- set end of seenIds to pid
79058
- -- Per-person try: one malformed contact (e.g. no emails) must not
79059
- -- abort the whole search and return an empty list (audit finding #13).
79060
- try
79061
- set pName to name of p
79062
- set pEmails to ""
79063
- repeat with e in emails of p
79064
- if pEmails is not "" then set pEmails to pEmails & ","
79065
- set pEmails to pEmails & (value of e)
79066
- end repeat
79067
- set pPhones to ""
79068
- repeat with ph in phones of p
79069
- if pPhones is not "" then set pPhones to pPhones & ","
79070
- set pPhones to pPhones & (value of ph)
79071
- end repeat
79072
- set end of matchedContacts to pName & "${FIELD_SEP}" & pEmails & "${FIELD_SEP}" & pPhones
79073
- end try
79074
- end if
79075
- end repeat
79076
-
79077
- set AppleScript's text item delimiters to "${RECORD_SEP}"
79078
- return matchedContacts as text
79079
- end tell
79080
- `;
79081
- const result = executeAppleScript(script);
79082
- if (!result.success || !result.output.trim()) {
79083
- return [];
79084
- }
79085
- const items = result.output.split(RECORD_SEP);
79086
- const contacts = [];
79087
- for (const item of items) {
79088
- const parts = item.split(FIELD_SEP);
79089
- if (parts.length < 3) continue;
79090
- contacts.push({
79091
- name: parts[0],
79092
- emails: parts[1] ? parts[1].split(",").filter(Boolean) : [],
79093
- phones: parts[2] ? parts[2].split(",").filter(Boolean) : []
79094
- });
79095
- }
79096
- return contacts;
78695
+ return searchContactsDb(query);
79097
78696
  }
79098
78697
  // ===========================================================================
79099
78698
  // Email Templates
@@ -79408,7 +79007,7 @@ import { resolve as resolvePath, join as joinPath } from "path";
79408
79007
  var import_nodemailer = __toESM(require_nodemailer(), 1);
79409
79008
  import { execFileSync } from "child_process";
79410
79009
  import { isAbsolute as isAbsolute2 } from "path";
79411
- import { existsSync as existsSync3 } from "fs";
79010
+ import { existsSync as existsSync4 } from "fs";
79412
79011
 
79413
79012
  // src/utils/docsUrls.ts
79414
79013
  var SETUP_GUIDE_URL = "https://github.com/sweetrb/apple-mail-mcp/blob/main/docs/IMAP-SETUP.md";
@@ -79484,7 +79083,7 @@ function buildAttachments(attachments) {
79484
79083
  return attachments.map((a) => {
79485
79084
  if (typeof a === "string") {
79486
79085
  if (!isAbsolute2(a)) throw new Error(`Attachment path must be absolute: "${a}"`);
79487
- if (!existsSync3(a)) throw new Error(`Attachment file not found: "${a}"`);
79086
+ if (!existsSync4(a)) throw new Error(`Attachment file not found: "${a}"`);
79488
79087
  return { path: a };
79489
79088
  }
79490
79089
  if (!a.filename || !a.contentBase64) {
@@ -81078,18 +80677,18 @@ var ImapIdleWatcher = class {
81078
80677
  };
81079
80678
 
81080
80679
  // src/services/fileConfig.ts
81081
- import { existsSync as existsSync4, readFileSync as readFileSync3 } from "fs";
81082
- import { join as join4 } from "path";
81083
- import { homedir as homedir3 } from "os";
80680
+ import { existsSync as existsSync5, readFileSync as readFileSync3 } from "fs";
80681
+ import { join as join5 } from "path";
80682
+ import { homedir as homedir4 } from "os";
81084
80683
  function fileConfigPath(env = process.env) {
81085
80684
  const override = env.APPLE_MAIL_MCP_CONFIG_FILE;
81086
80685
  if (override && override.trim()) return override.trim();
81087
- return join4(homedir3(), "Library", "Application Support", "apple-mail-mcp", "config.json");
80686
+ return join5(homedir4(), "Library", "Application Support", "apple-mail-mcp", "config.json");
81088
80687
  }
81089
80688
  function loadFileConfig(env = process.env, path = fileConfigPath(env)) {
81090
80689
  const applied = [];
81091
80690
  try {
81092
- if (!existsSync4(path)) return applied;
80691
+ if (!existsSync5(path)) return applied;
81093
80692
  const parsed = JSON.parse(readFileSync3(path, "utf8"));
81094
80693
  if (!parsed || typeof parsed !== "object") return applied;
81095
80694
  for (const [k, v] of Object.entries(parsed)) {
@@ -82697,7 +82296,7 @@ server.registerTool(
82697
82296
  server.registerTool(
82698
82297
  "search-contacts",
82699
82298
  {
82700
- description: "Use when: looking up a person in Contacts.app by name to find their email address(es) before composing or sending mail.\nReturns: matching contacts with their names and email addresses.\nDo not use when: searching email messages (use search-messages) \u2014 this queries Contacts, not the mailbox.",
82299
+ description: "Use when: looking up a person in Contacts by name, organization, nickname, or email to find their email address(es)/phone(s) before composing or sending mail. Reads the macOS Contacts database directly (needs Full Disk Access; does NOT require Contacts.app to be running or an Automation / Apple-Events grant).\nReturns: matching contacts with their names, email addresses, and phone numbers.\nDo not use when: searching email messages (use search-messages) \u2014 this queries Contacts, not the mailbox.",
82701
82300
  inputSchema: {
82702
82301
  query: external_exports.string().min(1, "Search query is required")
82703
82302
  },