prisma 6.16.0-dev.12 → 6.16.0-dev.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -392,7 +392,7 @@ var require_windows = __commonJS({
392
392
  module2.exports = isexe2;
393
393
  isexe2.sync = sync2;
394
394
  var fs5 = require("fs");
395
- function checkPathExt2(path11, options2) {
395
+ function checkPathExt2(path12, options2) {
396
396
  var pathext = options2.pathExt !== void 0 ? options2.pathExt : process.env.PATHEXT;
397
397
  if (!pathext) {
398
398
  return true;
@@ -403,25 +403,25 @@ var require_windows = __commonJS({
403
403
  }
404
404
  for (var i2 = 0; i2 < pathext.length; i2++) {
405
405
  var p2 = pathext[i2].toLowerCase();
406
- if (p2 && path11.substr(-p2.length).toLowerCase() === p2) {
406
+ if (p2 && path12.substr(-p2.length).toLowerCase() === p2) {
407
407
  return true;
408
408
  }
409
409
  }
410
410
  return false;
411
411
  }
412
- function checkStat2(stat, path11, options2) {
412
+ function checkStat2(stat, path12, options2) {
413
413
  if (!stat.isSymbolicLink() && !stat.isFile()) {
414
414
  return false;
415
415
  }
416
- return checkPathExt2(path11, options2);
416
+ return checkPathExt2(path12, options2);
417
417
  }
418
- function isexe2(path11, options2, cb) {
419
- fs5.stat(path11, function(er, stat) {
420
- cb(er, er ? false : checkStat2(stat, path11, options2));
418
+ function isexe2(path12, options2, cb) {
419
+ fs5.stat(path12, function(er, stat) {
420
+ cb(er, er ? false : checkStat2(stat, path12, options2));
421
421
  });
422
422
  }
423
- function sync2(path11, options2) {
424
- return checkStat2(fs5.statSync(path11), path11, options2);
423
+ function sync2(path12, options2) {
424
+ return checkStat2(fs5.statSync(path12), path12, options2);
425
425
  }
426
426
  }
427
427
  });
@@ -433,13 +433,13 @@ var require_mode = __commonJS({
433
433
  module2.exports = isexe2;
434
434
  isexe2.sync = sync2;
435
435
  var fs5 = require("fs");
436
- function isexe2(path11, options2, cb) {
437
- fs5.stat(path11, function(er, stat) {
436
+ function isexe2(path12, options2, cb) {
437
+ fs5.stat(path12, function(er, stat) {
438
438
  cb(er, er ? false : checkStat2(stat, options2));
439
439
  });
440
440
  }
441
- function sync2(path11, options2) {
442
- return checkStat2(fs5.statSync(path11), options2);
441
+ function sync2(path12, options2) {
442
+ return checkStat2(fs5.statSync(path12), options2);
443
443
  }
444
444
  function checkStat2(stat, options2) {
445
445
  return stat.isFile() && checkMode2(stat, options2);
@@ -473,7 +473,7 @@ var require_isexe = __commonJS({
473
473
  }
474
474
  module2.exports = isexe2;
475
475
  isexe2.sync = sync2;
476
- function isexe2(path11, options2, cb) {
476
+ function isexe2(path12, options2, cb) {
477
477
  if (typeof options2 === "function") {
478
478
  cb = options2;
479
479
  options2 = {};
@@ -483,7 +483,7 @@ var require_isexe = __commonJS({
483
483
  throw new TypeError("callback not provided");
484
484
  }
485
485
  return new Promise(function(resolve3, reject) {
486
- isexe2(path11, options2 || {}, function(er, is) {
486
+ isexe2(path12, options2 || {}, function(er, is) {
487
487
  if (er) {
488
488
  reject(er);
489
489
  } else {
@@ -492,7 +492,7 @@ var require_isexe = __commonJS({
492
492
  });
493
493
  });
494
494
  }
495
- core2(path11, options2 || {}, function(er, is) {
495
+ core2(path12, options2 || {}, function(er, is) {
496
496
  if (er) {
497
497
  if (er.code === "EACCES" || options2 && options2.ignoreErrors) {
498
498
  er = null;
@@ -502,9 +502,9 @@ var require_isexe = __commonJS({
502
502
  cb(er, is);
503
503
  });
504
504
  }
505
- function sync2(path11, options2) {
505
+ function sync2(path12, options2) {
506
506
  try {
507
- return core2.sync(path11, options2 || {});
507
+ return core2.sync(path12, options2 || {});
508
508
  } catch (er) {
509
509
  if (options2 && options2.ignoreErrors || er.code === "EACCES") {
510
510
  return false;
@@ -521,7 +521,7 @@ var require_which = __commonJS({
521
521
  "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module2) {
522
522
  "use strict";
523
523
  var isWindows2 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
524
- var path11 = require("path");
524
+ var path12 = require("path");
525
525
  var COLON2 = isWindows2 ? ";" : ":";
526
526
  var isexe2 = require_isexe();
527
527
  var getNotFoundError2 = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -559,7 +559,7 @@ var require_which = __commonJS({
559
559
  return opt.all && found.length ? resolve3(found) : reject(getNotFoundError2(cmd));
560
560
  const ppRaw = pathEnv[i2];
561
561
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
562
- const pCmd = path11.join(pathPart, cmd);
562
+ const pCmd = path12.join(pathPart, cmd);
563
563
  const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
564
564
  resolve3(subStep(p2, i2, 0));
565
565
  });
@@ -586,7 +586,7 @@ var require_which = __commonJS({
586
586
  for (let i2 = 0; i2 < pathEnv.length; i2++) {
587
587
  const ppRaw = pathEnv[i2];
588
588
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
589
- const pCmd = path11.join(pathPart, cmd);
589
+ const pCmd = path12.join(pathPart, cmd);
590
590
  const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
591
591
  for (let j2 = 0; j2 < pathExt.length; j2++) {
592
592
  const cur = p2 + pathExt[j2];
@@ -634,7 +634,7 @@ var require_path_key = __commonJS({
634
634
  var require_resolveCommand = __commonJS({
635
635
  "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
636
636
  "use strict";
637
- var path11 = require("path");
637
+ var path12 = require("path");
638
638
  var which2 = require_which();
639
639
  var getPathKey2 = require_path_key();
640
640
  function resolveCommandAttempt2(parsed, withoutPathExt) {
@@ -652,7 +652,7 @@ var require_resolveCommand = __commonJS({
652
652
  try {
653
653
  resolved = which2.sync(parsed.command, {
654
654
  path: env3[getPathKey2({ env: env3 })],
655
- pathExt: withoutPathExt ? path11.delimiter : void 0
655
+ pathExt: withoutPathExt ? path12.delimiter : void 0
656
656
  });
657
657
  } catch (e2) {
658
658
  } finally {
@@ -661,7 +661,7 @@ var require_resolveCommand = __commonJS({
661
661
  }
662
662
  }
663
663
  if (resolved) {
664
- resolved = path11.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
664
+ resolved = path12.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
665
665
  }
666
666
  return resolved;
667
667
  }
@@ -715,8 +715,8 @@ var require_shebang_command = __commonJS({
715
715
  if (!match) {
716
716
  return null;
717
717
  }
718
- const [path11, argument] = match[0].replace(/#! ?/, "").split(" ");
719
- const binary = path11.split("/").pop();
718
+ const [path12, argument] = match[0].replace(/#! ?/, "").split(" ");
719
+ const binary = path12.split("/").pop();
720
720
  if (binary === "env") {
721
721
  return argument;
722
722
  }
@@ -751,7 +751,7 @@ var require_readShebang = __commonJS({
751
751
  var require_parse = __commonJS({
752
752
  "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
753
753
  "use strict";
754
- var path11 = require("path");
754
+ var path12 = require("path");
755
755
  var resolveCommand2 = require_resolveCommand();
756
756
  var escape2 = require_escape();
757
757
  var readShebang2 = require_readShebang();
@@ -776,7 +776,7 @@ var require_parse = __commonJS({
776
776
  const needsShell = !isExecutableRegExp2.test(commandFile);
777
777
  if (parsed.options.forceShell || needsShell) {
778
778
  const needsDoubleEscapeMetaChars = isCmdShimRegExp2.test(commandFile);
779
- parsed.command = path11.normalize(parsed.command);
779
+ parsed.command = path12.normalize(parsed.command);
780
780
  parsed.command = escape2.command(parsed.command);
781
781
  parsed.args = parsed.args.map((arg) => escape2.argument(arg, needsDoubleEscapeMetaChars));
782
782
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -908,7 +908,7 @@ var require_strip_final_newline = __commonJS({
908
908
  var require_npm_run_path = __commonJS({
909
909
  "../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js"(exports2, module2) {
910
910
  "use strict";
911
- var path11 = require("path");
911
+ var path12 = require("path");
912
912
  var pathKey2 = require_path_key();
913
913
  var npmRunPath2 = (options2) => {
914
914
  options2 = {
@@ -918,16 +918,16 @@ var require_npm_run_path = __commonJS({
918
918
  ...options2
919
919
  };
920
920
  let previous;
921
- let cwdPath = path11.resolve(options2.cwd);
921
+ let cwdPath = path12.resolve(options2.cwd);
922
922
  const result = [];
923
923
  while (previous !== cwdPath) {
924
- result.push(path11.join(cwdPath, "node_modules/.bin"));
924
+ result.push(path12.join(cwdPath, "node_modules/.bin"));
925
925
  previous = cwdPath;
926
- cwdPath = path11.resolve(cwdPath, "..");
926
+ cwdPath = path12.resolve(cwdPath, "..");
927
927
  }
928
- const execPathDir = path11.resolve(options2.cwd, options2.execPath, "..");
928
+ const execPathDir = path12.resolve(options2.cwd, options2.execPath, "..");
929
929
  result.push(execPathDir);
930
- return result.concat(options2.path).join(path11.delimiter);
930
+ return result.concat(options2.path).join(path12.delimiter);
931
931
  };
932
932
  module2.exports = npmRunPath2;
933
933
  module2.exports.default = npmRunPath2;
@@ -937,9 +937,9 @@ var require_npm_run_path = __commonJS({
937
937
  ...options2
938
938
  };
939
939
  const env3 = { ...options2.env };
940
- const path12 = pathKey2({ env: env3 });
941
- options2.path = env3[path12];
942
- env3[path12] = module2.exports(options2);
940
+ const path13 = pathKey2({ env: env3 });
941
+ options2.path = env3[path13];
942
+ env3[path13] = module2.exports(options2);
943
943
  return env3;
944
944
  };
945
945
  }
@@ -1557,11 +1557,11 @@ var require_signals2 = __commonJS({
1557
1557
  var require_signal_exit = __commonJS({
1558
1558
  "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports2, module2) {
1559
1559
  "use strict";
1560
- var process3 = global.process;
1561
- var processOk2 = function(process4) {
1562
- return process4 && typeof process4 === "object" && typeof process4.removeListener === "function" && typeof process4.emit === "function" && typeof process4.reallyExit === "function" && typeof process4.listeners === "function" && typeof process4.kill === "function" && typeof process4.pid === "number" && typeof process4.on === "function";
1560
+ var process5 = global.process;
1561
+ var processOk2 = function(process6) {
1562
+ return process6 && typeof process6 === "object" && typeof process6.removeListener === "function" && typeof process6.emit === "function" && typeof process6.reallyExit === "function" && typeof process6.listeners === "function" && typeof process6.kill === "function" && typeof process6.pid === "number" && typeof process6.on === "function";
1563
1563
  };
1564
- if (!processOk2(process3)) {
1564
+ if (!processOk2(process5)) {
1565
1565
  module2.exports = function() {
1566
1566
  return function() {
1567
1567
  };
@@ -1569,15 +1569,15 @@ var require_signal_exit = __commonJS({
1569
1569
  } else {
1570
1570
  assert = require("assert");
1571
1571
  signals2 = require_signals2();
1572
- isWin2 = /^win/i.test(process3.platform);
1572
+ isWin2 = /^win/i.test(process5.platform);
1573
1573
  EE = require("events");
1574
1574
  if (typeof EE !== "function") {
1575
1575
  EE = EE.EventEmitter;
1576
1576
  }
1577
- if (process3.__signal_exit_emitter__) {
1578
- emitter = process3.__signal_exit_emitter__;
1577
+ if (process5.__signal_exit_emitter__) {
1578
+ emitter = process5.__signal_exit_emitter__;
1579
1579
  } else {
1580
- emitter = process3.__signal_exit_emitter__ = new EE();
1580
+ emitter = process5.__signal_exit_emitter__ = new EE();
1581
1581
  emitter.count = 0;
1582
1582
  emitter.emitted = {};
1583
1583
  }
@@ -1614,12 +1614,12 @@ var require_signal_exit = __commonJS({
1614
1614
  loaded = false;
1615
1615
  signals2.forEach(function(sig) {
1616
1616
  try {
1617
- process3.removeListener(sig, sigListeners[sig]);
1617
+ process5.removeListener(sig, sigListeners[sig]);
1618
1618
  } catch (er) {
1619
1619
  }
1620
1620
  });
1621
- process3.emit = originalProcessEmit;
1622
- process3.reallyExit = originalProcessReallyExit;
1621
+ process5.emit = originalProcessEmit;
1622
+ process5.reallyExit = originalProcessReallyExit;
1623
1623
  emitter.count -= 1;
1624
1624
  };
1625
1625
  module2.exports.unload = unload2;
@@ -1636,7 +1636,7 @@ var require_signal_exit = __commonJS({
1636
1636
  if (!processOk2(global.process)) {
1637
1637
  return;
1638
1638
  }
1639
- var listeners = process3.listeners(sig);
1639
+ var listeners = process5.listeners(sig);
1640
1640
  if (listeners.length === emitter.count) {
1641
1641
  unload2();
1642
1642
  emit("exit", null, sig);
@@ -1644,7 +1644,7 @@ var require_signal_exit = __commonJS({
1644
1644
  if (isWin2 && sig === "SIGHUP") {
1645
1645
  sig = "SIGINT";
1646
1646
  }
1647
- process3.kill(process3.pid, sig);
1647
+ process5.kill(process5.pid, sig);
1648
1648
  }
1649
1649
  };
1650
1650
  });
@@ -1660,36 +1660,36 @@ var require_signal_exit = __commonJS({
1660
1660
  emitter.count += 1;
1661
1661
  signals2 = signals2.filter(function(sig) {
1662
1662
  try {
1663
- process3.on(sig, sigListeners[sig]);
1663
+ process5.on(sig, sigListeners[sig]);
1664
1664
  return true;
1665
1665
  } catch (er) {
1666
1666
  return false;
1667
1667
  }
1668
1668
  });
1669
- process3.emit = processEmit;
1670
- process3.reallyExit = processReallyExit;
1669
+ process5.emit = processEmit;
1670
+ process5.reallyExit = processReallyExit;
1671
1671
  };
1672
1672
  module2.exports.load = load2;
1673
- originalProcessReallyExit = process3.reallyExit;
1673
+ originalProcessReallyExit = process5.reallyExit;
1674
1674
  processReallyExit = function processReallyExit2(code) {
1675
1675
  if (!processOk2(global.process)) {
1676
1676
  return;
1677
1677
  }
1678
- process3.exitCode = code || /* istanbul ignore next */
1678
+ process5.exitCode = code || /* istanbul ignore next */
1679
1679
  0;
1680
- emit("exit", process3.exitCode, null);
1681
- emit("afterexit", process3.exitCode, null);
1682
- originalProcessReallyExit.call(process3, process3.exitCode);
1680
+ emit("exit", process5.exitCode, null);
1681
+ emit("afterexit", process5.exitCode, null);
1682
+ originalProcessReallyExit.call(process5, process5.exitCode);
1683
1683
  };
1684
- originalProcessEmit = process3.emit;
1684
+ originalProcessEmit = process5.emit;
1685
1685
  processEmit = function processEmit2(ev, arg) {
1686
1686
  if (ev === "exit" && processOk2(global.process)) {
1687
1687
  if (arg !== void 0) {
1688
- process3.exitCode = arg;
1688
+ process5.exitCode = arg;
1689
1689
  }
1690
1690
  var ret = originalProcessEmit.apply(this, arguments);
1691
- emit("exit", process3.exitCode, null);
1692
- emit("afterexit", process3.exitCode, null);
1691
+ emit("exit", process5.exitCode, null);
1692
+ emit("afterexit", process5.exitCode, null);
1693
1693
  return ret;
1694
1694
  } else {
1695
1695
  return originalProcessEmit.apply(this, arguments);
@@ -2123,7 +2123,7 @@ var require_command = __commonJS({
2123
2123
  var require_execa = __commonJS({
2124
2124
  "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(exports2, module2) {
2125
2125
  "use strict";
2126
- var path11 = require("path");
2126
+ var path12 = require("path");
2127
2127
  var childProcess2 = require("child_process");
2128
2128
  var crossSpawn2 = require_cross_spawn();
2129
2129
  var stripFinalNewline2 = require_strip_final_newline();
@@ -2165,7 +2165,7 @@ var require_execa = __commonJS({
2165
2165
  };
2166
2166
  options2.env = getEnv2(options2);
2167
2167
  options2.stdio = normalizeStdio2(options2);
2168
- if (process.platform === "win32" && path11.basename(file2, ".exe") === "cmd") {
2168
+ if (process.platform === "win32" && path12.basename(file2, ".exe") === "cmd") {
2169
2169
  args.unshift("/q");
2170
2170
  }
2171
2171
  return { file: file2, args, options: options2, parsed };
@@ -2428,14 +2428,14 @@ var require_polyfills = __commonJS({
2428
2428
  fs5.fstatSync = statFixSync(fs5.fstatSync);
2429
2429
  fs5.lstatSync = statFixSync(fs5.lstatSync);
2430
2430
  if (fs5.chmod && !fs5.lchmod) {
2431
- fs5.lchmod = function(path11, mode2, cb) {
2431
+ fs5.lchmod = function(path12, mode2, cb) {
2432
2432
  if (cb) process.nextTick(cb);
2433
2433
  };
2434
2434
  fs5.lchmodSync = function() {
2435
2435
  };
2436
2436
  }
2437
2437
  if (fs5.chown && !fs5.lchown) {
2438
- fs5.lchown = function(path11, uid, gid, cb) {
2438
+ fs5.lchown = function(path12, uid, gid, cb) {
2439
2439
  if (cb) process.nextTick(cb);
2440
2440
  };
2441
2441
  fs5.lchownSync = function() {
@@ -2502,9 +2502,9 @@ var require_polyfills = __commonJS({
2502
2502
  };
2503
2503
  }(fs5.readSync);
2504
2504
  function patchLchmod(fs6) {
2505
- fs6.lchmod = function(path11, mode2, callback) {
2505
+ fs6.lchmod = function(path12, mode2, callback) {
2506
2506
  fs6.open(
2507
- path11,
2507
+ path12,
2508
2508
  constants2.O_WRONLY | constants2.O_SYMLINK,
2509
2509
  mode2,
2510
2510
  function(err, fd) {
@@ -2520,8 +2520,8 @@ var require_polyfills = __commonJS({
2520
2520
  }
2521
2521
  );
2522
2522
  };
2523
- fs6.lchmodSync = function(path11, mode2) {
2524
- var fd = fs6.openSync(path11, constants2.O_WRONLY | constants2.O_SYMLINK, mode2);
2523
+ fs6.lchmodSync = function(path12, mode2) {
2524
+ var fd = fs6.openSync(path12, constants2.O_WRONLY | constants2.O_SYMLINK, mode2);
2525
2525
  var threw = true;
2526
2526
  var ret;
2527
2527
  try {
@@ -2542,8 +2542,8 @@ var require_polyfills = __commonJS({
2542
2542
  }
2543
2543
  function patchLutimes(fs6) {
2544
2544
  if (constants2.hasOwnProperty("O_SYMLINK") && fs6.futimes) {
2545
- fs6.lutimes = function(path11, at, mt, cb) {
2546
- fs6.open(path11, constants2.O_SYMLINK, function(er, fd) {
2545
+ fs6.lutimes = function(path12, at, mt, cb) {
2546
+ fs6.open(path12, constants2.O_SYMLINK, function(er, fd) {
2547
2547
  if (er) {
2548
2548
  if (cb) cb(er);
2549
2549
  return;
@@ -2555,8 +2555,8 @@ var require_polyfills = __commonJS({
2555
2555
  });
2556
2556
  });
2557
2557
  };
2558
- fs6.lutimesSync = function(path11, at, mt) {
2559
- var fd = fs6.openSync(path11, constants2.O_SYMLINK);
2558
+ fs6.lutimesSync = function(path12, at, mt) {
2559
+ var fd = fs6.openSync(path12, constants2.O_SYMLINK);
2560
2560
  var ret;
2561
2561
  var threw = true;
2562
2562
  try {
@@ -2675,11 +2675,11 @@ var require_legacy_streams = __commonJS({
2675
2675
  ReadStream,
2676
2676
  WriteStream
2677
2677
  };
2678
- function ReadStream(path11, options2) {
2679
- if (!(this instanceof ReadStream)) return new ReadStream(path11, options2);
2678
+ function ReadStream(path12, options2) {
2679
+ if (!(this instanceof ReadStream)) return new ReadStream(path12, options2);
2680
2680
  Stream.call(this);
2681
2681
  var self2 = this;
2682
- this.path = path11;
2682
+ this.path = path12;
2683
2683
  this.fd = null;
2684
2684
  this.readable = true;
2685
2685
  this.paused = false;
@@ -2724,10 +2724,10 @@ var require_legacy_streams = __commonJS({
2724
2724
  self2._read();
2725
2725
  });
2726
2726
  }
2727
- function WriteStream(path11, options2) {
2728
- if (!(this instanceof WriteStream)) return new WriteStream(path11, options2);
2727
+ function WriteStream(path12, options2) {
2728
+ if (!(this instanceof WriteStream)) return new WriteStream(path12, options2);
2729
2729
  Stream.call(this);
2730
- this.path = path11;
2730
+ this.path = path12;
2731
2731
  this.fd = null;
2732
2732
  this.writable = true;
2733
2733
  this.flags = "w";
@@ -2871,14 +2871,14 @@ var require_graceful_fs = __commonJS({
2871
2871
  fs6.createWriteStream = createWriteStream2;
2872
2872
  var fs$readFile = fs6.readFile;
2873
2873
  fs6.readFile = readFile;
2874
- function readFile(path11, options2, cb) {
2874
+ function readFile(path12, options2, cb) {
2875
2875
  if (typeof options2 === "function")
2876
2876
  cb = options2, options2 = null;
2877
- return go$readFile(path11, options2, cb);
2878
- function go$readFile(path12, options3, cb2, startTime) {
2879
- return fs$readFile(path12, options3, function(err) {
2877
+ return go$readFile(path12, options2, cb);
2878
+ function go$readFile(path13, options3, cb2, startTime) {
2879
+ return fs$readFile(path13, options3, function(err) {
2880
2880
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
2881
- enqueue([go$readFile, [path12, options3, cb2], err, startTime || Date.now(), Date.now()]);
2881
+ enqueue([go$readFile, [path13, options3, cb2], err, startTime || Date.now(), Date.now()]);
2882
2882
  else {
2883
2883
  if (typeof cb2 === "function")
2884
2884
  cb2.apply(this, arguments);
@@ -2888,14 +2888,14 @@ var require_graceful_fs = __commonJS({
2888
2888
  }
2889
2889
  var fs$writeFile = fs6.writeFile;
2890
2890
  fs6.writeFile = writeFile;
2891
- function writeFile(path11, data, options2, cb) {
2891
+ function writeFile(path12, data, options2, cb) {
2892
2892
  if (typeof options2 === "function")
2893
2893
  cb = options2, options2 = null;
2894
- return go$writeFile(path11, data, options2, cb);
2895
- function go$writeFile(path12, data2, options3, cb2, startTime) {
2896
- return fs$writeFile(path12, data2, options3, function(err) {
2894
+ return go$writeFile(path12, data, options2, cb);
2895
+ function go$writeFile(path13, data2, options3, cb2, startTime) {
2896
+ return fs$writeFile(path13, data2, options3, function(err) {
2897
2897
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
2898
- enqueue([go$writeFile, [path12, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
2898
+ enqueue([go$writeFile, [path13, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
2899
2899
  else {
2900
2900
  if (typeof cb2 === "function")
2901
2901
  cb2.apply(this, arguments);
@@ -2906,14 +2906,14 @@ var require_graceful_fs = __commonJS({
2906
2906
  var fs$appendFile = fs6.appendFile;
2907
2907
  if (fs$appendFile)
2908
2908
  fs6.appendFile = appendFile;
2909
- function appendFile(path11, data, options2, cb) {
2909
+ function appendFile(path12, data, options2, cb) {
2910
2910
  if (typeof options2 === "function")
2911
2911
  cb = options2, options2 = null;
2912
- return go$appendFile(path11, data, options2, cb);
2913
- function go$appendFile(path12, data2, options3, cb2, startTime) {
2914
- return fs$appendFile(path12, data2, options3, function(err) {
2912
+ return go$appendFile(path12, data, options2, cb);
2913
+ function go$appendFile(path13, data2, options3, cb2, startTime) {
2914
+ return fs$appendFile(path13, data2, options3, function(err) {
2915
2915
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
2916
- enqueue([go$appendFile, [path12, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
2916
+ enqueue([go$appendFile, [path13, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
2917
2917
  else {
2918
2918
  if (typeof cb2 === "function")
2919
2919
  cb2.apply(this, arguments);
@@ -2944,31 +2944,31 @@ var require_graceful_fs = __commonJS({
2944
2944
  var fs$readdir = fs6.readdir;
2945
2945
  fs6.readdir = readdir;
2946
2946
  var noReaddirOptionVersions = /^v[0-5]\./;
2947
- function readdir(path11, options2, cb) {
2947
+ function readdir(path12, options2, cb) {
2948
2948
  if (typeof options2 === "function")
2949
2949
  cb = options2, options2 = null;
2950
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path12, options3, cb2, startTime) {
2951
- return fs$readdir(path12, fs$readdirCallback(
2952
- path12,
2950
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path13, options3, cb2, startTime) {
2951
+ return fs$readdir(path13, fs$readdirCallback(
2952
+ path13,
2953
2953
  options3,
2954
2954
  cb2,
2955
2955
  startTime
2956
2956
  ));
2957
- } : function go$readdir2(path12, options3, cb2, startTime) {
2958
- return fs$readdir(path12, options3, fs$readdirCallback(
2959
- path12,
2957
+ } : function go$readdir2(path13, options3, cb2, startTime) {
2958
+ return fs$readdir(path13, options3, fs$readdirCallback(
2959
+ path13,
2960
2960
  options3,
2961
2961
  cb2,
2962
2962
  startTime
2963
2963
  ));
2964
2964
  };
2965
- return go$readdir(path11, options2, cb);
2966
- function fs$readdirCallback(path12, options3, cb2, startTime) {
2965
+ return go$readdir(path12, options2, cb);
2966
+ function fs$readdirCallback(path13, options3, cb2, startTime) {
2967
2967
  return function(err, files) {
2968
2968
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
2969
2969
  enqueue([
2970
2970
  go$readdir,
2971
- [path12, options3, cb2],
2971
+ [path13, options3, cb2],
2972
2972
  err,
2973
2973
  startTime || Date.now(),
2974
2974
  Date.now()
@@ -3039,7 +3039,7 @@ var require_graceful_fs = __commonJS({
3039
3039
  enumerable: true,
3040
3040
  configurable: true
3041
3041
  });
3042
- function ReadStream(path11, options2) {
3042
+ function ReadStream(path12, options2) {
3043
3043
  if (this instanceof ReadStream)
3044
3044
  return fs$ReadStream.apply(this, arguments), this;
3045
3045
  else
@@ -3059,7 +3059,7 @@ var require_graceful_fs = __commonJS({
3059
3059
  }
3060
3060
  });
3061
3061
  }
3062
- function WriteStream(path11, options2) {
3062
+ function WriteStream(path12, options2) {
3063
3063
  if (this instanceof WriteStream)
3064
3064
  return fs$WriteStream.apply(this, arguments), this;
3065
3065
  else
@@ -3077,22 +3077,22 @@ var require_graceful_fs = __commonJS({
3077
3077
  }
3078
3078
  });
3079
3079
  }
3080
- function createReadStream2(path11, options2) {
3081
- return new fs6.ReadStream(path11, options2);
3080
+ function createReadStream2(path12, options2) {
3081
+ return new fs6.ReadStream(path12, options2);
3082
3082
  }
3083
- function createWriteStream2(path11, options2) {
3084
- return new fs6.WriteStream(path11, options2);
3083
+ function createWriteStream2(path12, options2) {
3084
+ return new fs6.WriteStream(path12, options2);
3085
3085
  }
3086
3086
  var fs$open = fs6.open;
3087
3087
  fs6.open = open;
3088
- function open(path11, flags, mode2, cb) {
3088
+ function open(path12, flags, mode2, cb) {
3089
3089
  if (typeof mode2 === "function")
3090
3090
  cb = mode2, mode2 = null;
3091
- return go$open(path11, flags, mode2, cb);
3092
- function go$open(path12, flags2, mode3, cb2, startTime) {
3093
- return fs$open(path12, flags2, mode3, function(err, fd) {
3091
+ return go$open(path12, flags, mode2, cb);
3092
+ function go$open(path13, flags2, mode3, cb2, startTime) {
3093
+ return fs$open(path13, flags2, mode3, function(err, fd) {
3094
3094
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3095
- enqueue([go$open, [path12, flags2, mode3, cb2], err, startTime || Date.now(), Date.now()]);
3095
+ enqueue([go$open, [path13, flags2, mode3, cb2], err, startTime || Date.now(), Date.now()]);
3096
3096
  else {
3097
3097
  if (typeof cb2 === "function")
3098
3098
  cb2.apply(this, arguments);
@@ -3275,10 +3275,10 @@ var require_fs = __commonJS({
3275
3275
  var require_utils = __commonJS({
3276
3276
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports2, module2) {
3277
3277
  "use strict";
3278
- var path11 = require("path");
3278
+ var path12 = require("path");
3279
3279
  module2.exports.checkPath = function checkPath(pth) {
3280
3280
  if (process.platform === "win32") {
3281
- const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path11.parse(pth).root, ""));
3281
+ const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path12.parse(pth).root, ""));
3282
3282
  if (pathHasInvalidWinCharacters) {
3283
3283
  const error = new Error(`Path contains invalid characters: ${pth}`);
3284
3284
  error.code = "EINVAL";
@@ -3342,8 +3342,8 @@ var require_path_exists = __commonJS({
3342
3342
  "use strict";
3343
3343
  var u2 = require_universalify().fromPromise;
3344
3344
  var fs5 = require_fs();
3345
- function pathExists2(path11) {
3346
- return fs5.access(path11).then(() => true).catch(() => false);
3345
+ function pathExists2(path12) {
3346
+ return fs5.access(path12).then(() => true).catch(() => false);
3347
3347
  }
3348
3348
  module2.exports = {
3349
3349
  pathExists: u2(pathExists2),
@@ -3358,8 +3358,8 @@ var require_utimes = __commonJS({
3358
3358
  "use strict";
3359
3359
  var fs5 = require_fs();
3360
3360
  var u2 = require_universalify().fromPromise;
3361
- async function utimesMillis(path11, atime, mtime) {
3362
- const fd = await fs5.open(path11, "r+");
3361
+ async function utimesMillis(path12, atime, mtime) {
3362
+ const fd = await fs5.open(path12, "r+");
3363
3363
  let closeErr = null;
3364
3364
  try {
3365
3365
  await fs5.futimes(fd, atime, mtime);
@@ -3374,8 +3374,8 @@ var require_utimes = __commonJS({
3374
3374
  throw closeErr;
3375
3375
  }
3376
3376
  }
3377
- function utimesMillisSync(path11, atime, mtime) {
3378
- const fd = fs5.openSync(path11, "r+");
3377
+ function utimesMillisSync(path12, atime, mtime) {
3378
+ const fd = fs5.openSync(path12, "r+");
3379
3379
  fs5.futimesSync(fd, atime, mtime);
3380
3380
  return fs5.closeSync(fd);
3381
3381
  }
@@ -3391,7 +3391,7 @@ var require_stat = __commonJS({
3391
3391
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
3392
3392
  "use strict";
3393
3393
  var fs5 = require_fs();
3394
- var path11 = require("path");
3394
+ var path12 = require("path");
3395
3395
  var u2 = require_universalify().fromPromise;
3396
3396
  function getStats(src2, dest, opts) {
3397
3397
  const statFunc = opts.dereference ? (file2) => fs5.stat(file2, { bigint: true }) : (file2) => fs5.lstat(file2, { bigint: true });
@@ -3419,8 +3419,8 @@ var require_stat = __commonJS({
3419
3419
  const { srcStat, destStat } = await getStats(src2, dest, opts);
3420
3420
  if (destStat) {
3421
3421
  if (areIdentical(srcStat, destStat)) {
3422
- const srcBaseName = path11.basename(src2);
3423
- const destBaseName = path11.basename(dest);
3422
+ const srcBaseName = path12.basename(src2);
3423
+ const destBaseName = path12.basename(dest);
3424
3424
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
3425
3425
  return { srcStat, destStat, isChangingCase: true };
3426
3426
  }
@@ -3442,8 +3442,8 @@ var require_stat = __commonJS({
3442
3442
  const { srcStat, destStat } = getStatsSync(src2, dest, opts);
3443
3443
  if (destStat) {
3444
3444
  if (areIdentical(srcStat, destStat)) {
3445
- const srcBaseName = path11.basename(src2);
3446
- const destBaseName = path11.basename(dest);
3445
+ const srcBaseName = path12.basename(src2);
3446
+ const destBaseName = path12.basename(dest);
3447
3447
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
3448
3448
  return { srcStat, destStat, isChangingCase: true };
3449
3449
  }
@@ -3462,9 +3462,9 @@ var require_stat = __commonJS({
3462
3462
  return { srcStat, destStat };
3463
3463
  }
3464
3464
  async function checkParentPaths(src2, srcStat, dest, funcName) {
3465
- const srcParent = path11.resolve(path11.dirname(src2));
3466
- const destParent = path11.resolve(path11.dirname(dest));
3467
- if (destParent === srcParent || destParent === path11.parse(destParent).root) return;
3465
+ const srcParent = path12.resolve(path12.dirname(src2));
3466
+ const destParent = path12.resolve(path12.dirname(dest));
3467
+ if (destParent === srcParent || destParent === path12.parse(destParent).root) return;
3468
3468
  let destStat;
3469
3469
  try {
3470
3470
  destStat = await fs5.stat(destParent, { bigint: true });
@@ -3478,9 +3478,9 @@ var require_stat = __commonJS({
3478
3478
  return checkParentPaths(src2, srcStat, destParent, funcName);
3479
3479
  }
3480
3480
  function checkParentPathsSync(src2, srcStat, dest, funcName) {
3481
- const srcParent = path11.resolve(path11.dirname(src2));
3482
- const destParent = path11.resolve(path11.dirname(dest));
3483
- if (destParent === srcParent || destParent === path11.parse(destParent).root) return;
3481
+ const srcParent = path12.resolve(path12.dirname(src2));
3482
+ const destParent = path12.resolve(path12.dirname(dest));
3483
+ if (destParent === srcParent || destParent === path12.parse(destParent).root) return;
3484
3484
  let destStat;
3485
3485
  try {
3486
3486
  destStat = fs5.statSync(destParent, { bigint: true });
@@ -3497,8 +3497,8 @@ var require_stat = __commonJS({
3497
3497
  return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
3498
3498
  }
3499
3499
  function isSrcSubdir(src2, dest) {
3500
- const srcArr = path11.resolve(src2).split(path11.sep).filter((i2) => i2);
3501
- const destArr = path11.resolve(dest).split(path11.sep).filter((i2) => i2);
3500
+ const srcArr = path12.resolve(src2).split(path12.sep).filter((i2) => i2);
3501
+ const destArr = path12.resolve(dest).split(path12.sep).filter((i2) => i2);
3502
3502
  return srcArr.every((cur, i2) => destArr[i2] === cur);
3503
3503
  }
3504
3504
  function errMsg(src2, dest, funcName) {
@@ -3523,7 +3523,7 @@ var require_copy = __commonJS({
3523
3523
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
3524
3524
  "use strict";
3525
3525
  var fs5 = require_fs();
3526
- var path11 = require("path");
3526
+ var path12 = require("path");
3527
3527
  var { mkdirs } = require_mkdirs();
3528
3528
  var { pathExists: pathExists2 } = require_path_exists();
3529
3529
  var { utimesMillis } = require_utimes();
@@ -3545,7 +3545,7 @@ var require_copy = __commonJS({
3545
3545
  await stat.checkParentPaths(src2, srcStat, dest, "copy");
3546
3546
  const include = await runFilter(src2, dest, opts);
3547
3547
  if (!include) return;
3548
- const destParent = path11.dirname(dest);
3548
+ const destParent = path12.dirname(dest);
3549
3549
  const dirExists = await pathExists2(destParent);
3550
3550
  if (!dirExists) {
3551
3551
  await mkdirs(destParent);
@@ -3599,8 +3599,8 @@ var require_copy = __commonJS({
3599
3599
  }
3600
3600
  const promises2 = [];
3601
3601
  for await (const item2 of await fs5.opendir(src2)) {
3602
- const srcItem = path11.join(src2, item2.name);
3603
- const destItem = path11.join(dest, item2.name);
3602
+ const srcItem = path12.join(src2, item2.name);
3603
+ const destItem = path12.join(dest, item2.name);
3604
3604
  promises2.push(
3605
3605
  runFilter(srcItem, destItem, opts).then((include) => {
3606
3606
  if (include) {
@@ -3619,7 +3619,7 @@ var require_copy = __commonJS({
3619
3619
  async function onLink(destStat, src2, dest, opts) {
3620
3620
  let resolvedSrc = await fs5.readlink(src2);
3621
3621
  if (opts.dereference) {
3622
- resolvedSrc = path11.resolve(process.cwd(), resolvedSrc);
3622
+ resolvedSrc = path12.resolve(process.cwd(), resolvedSrc);
3623
3623
  }
3624
3624
  if (!destStat) {
3625
3625
  return fs5.symlink(resolvedSrc, dest);
@@ -3632,7 +3632,7 @@ var require_copy = __commonJS({
3632
3632
  throw e2;
3633
3633
  }
3634
3634
  if (opts.dereference) {
3635
- resolvedDest = path11.resolve(process.cwd(), resolvedDest);
3635
+ resolvedDest = path12.resolve(process.cwd(), resolvedDest);
3636
3636
  }
3637
3637
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
3638
3638
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -3652,7 +3652,7 @@ var require_copy_sync = __commonJS({
3652
3652
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
3653
3653
  "use strict";
3654
3654
  var fs5 = require_graceful_fs();
3655
- var path11 = require("path");
3655
+ var path12 = require("path");
3656
3656
  var mkdirsSync = require_mkdirs().mkdirsSync;
3657
3657
  var utimesMillisSync = require_utimes().utimesMillisSync;
3658
3658
  var stat = require_stat();
@@ -3673,7 +3673,7 @@ var require_copy_sync = __commonJS({
3673
3673
  const { srcStat, destStat } = stat.checkPathsSync(src2, dest, "copy", opts);
3674
3674
  stat.checkParentPathsSync(src2, srcStat, dest, "copy");
3675
3675
  if (opts.filter && !opts.filter(src2, dest)) return;
3676
- const destParent = path11.dirname(dest);
3676
+ const destParent = path12.dirname(dest);
3677
3677
  if (!fs5.existsSync(destParent)) mkdirsSync(destParent);
3678
3678
  return getStats(destStat, src2, dest, opts);
3679
3679
  }
@@ -3742,8 +3742,8 @@ var require_copy_sync = __commonJS({
3742
3742
  }
3743
3743
  }
3744
3744
  function copyDirItem(item2, src2, dest, opts) {
3745
- const srcItem = path11.join(src2, item2);
3746
- const destItem = path11.join(dest, item2);
3745
+ const srcItem = path12.join(src2, item2);
3746
+ const destItem = path12.join(dest, item2);
3747
3747
  if (opts.filter && !opts.filter(srcItem, destItem)) return;
3748
3748
  const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
3749
3749
  return getStats(destStat, srcItem, destItem, opts);
@@ -3751,7 +3751,7 @@ var require_copy_sync = __commonJS({
3751
3751
  function onLink(destStat, src2, dest, opts) {
3752
3752
  let resolvedSrc = fs5.readlinkSync(src2);
3753
3753
  if (opts.dereference) {
3754
- resolvedSrc = path11.resolve(process.cwd(), resolvedSrc);
3754
+ resolvedSrc = path12.resolve(process.cwd(), resolvedSrc);
3755
3755
  }
3756
3756
  if (!destStat) {
3757
3757
  return fs5.symlinkSync(resolvedSrc, dest);
@@ -3764,7 +3764,7 @@ var require_copy_sync = __commonJS({
3764
3764
  throw err;
3765
3765
  }
3766
3766
  if (opts.dereference) {
3767
- resolvedDest = path11.resolve(process.cwd(), resolvedDest);
3767
+ resolvedDest = path12.resolve(process.cwd(), resolvedDest);
3768
3768
  }
3769
3769
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
3770
3770
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -3801,11 +3801,11 @@ var require_remove = __commonJS({
3801
3801
  "use strict";
3802
3802
  var fs5 = require_graceful_fs();
3803
3803
  var u2 = require_universalify().fromCallback;
3804
- function remove2(path11, callback) {
3805
- fs5.rm(path11, { recursive: true, force: true }, callback);
3804
+ function remove2(path12, callback) {
3805
+ fs5.rm(path12, { recursive: true, force: true }, callback);
3806
3806
  }
3807
- function removeSync(path11) {
3808
- fs5.rmSync(path11, { recursive: true, force: true });
3807
+ function removeSync(path12) {
3808
+ fs5.rmSync(path12, { recursive: true, force: true });
3809
3809
  }
3810
3810
  module2.exports = {
3811
3811
  remove: u2(remove2),
@@ -3820,7 +3820,7 @@ var require_empty = __commonJS({
3820
3820
  "use strict";
3821
3821
  var u2 = require_universalify().fromPromise;
3822
3822
  var fs5 = require_fs();
3823
- var path11 = require("path");
3823
+ var path12 = require("path");
3824
3824
  var mkdir = require_mkdirs();
3825
3825
  var remove2 = require_remove();
3826
3826
  var emptyDir = u2(async function emptyDir2(dir) {
@@ -3830,7 +3830,7 @@ var require_empty = __commonJS({
3830
3830
  } catch {
3831
3831
  return mkdir.mkdirs(dir);
3832
3832
  }
3833
- return Promise.all(items.map((item2) => remove2.remove(path11.join(dir, item2))));
3833
+ return Promise.all(items.map((item2) => remove2.remove(path12.join(dir, item2))));
3834
3834
  });
3835
3835
  function emptyDirSync(dir) {
3836
3836
  let items;
@@ -3840,7 +3840,7 @@ var require_empty = __commonJS({
3840
3840
  return mkdir.mkdirsSync(dir);
3841
3841
  }
3842
3842
  items.forEach((item2) => {
3843
- item2 = path11.join(dir, item2);
3843
+ item2 = path12.join(dir, item2);
3844
3844
  remove2.removeSync(item2);
3845
3845
  });
3846
3846
  }
@@ -3858,7 +3858,7 @@ var require_file = __commonJS({
3858
3858
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
3859
3859
  "use strict";
3860
3860
  var u2 = require_universalify().fromPromise;
3861
- var path11 = require("path");
3861
+ var path12 = require("path");
3862
3862
  var fs5 = require_fs();
3863
3863
  var mkdir = require_mkdirs();
3864
3864
  async function createFile(file2) {
@@ -3868,7 +3868,7 @@ var require_file = __commonJS({
3868
3868
  } catch {
3869
3869
  }
3870
3870
  if (stats && stats.isFile()) return;
3871
- const dir = path11.dirname(file2);
3871
+ const dir = path12.dirname(file2);
3872
3872
  let dirStats = null;
3873
3873
  try {
3874
3874
  dirStats = await fs5.stat(dir);
@@ -3894,7 +3894,7 @@ var require_file = __commonJS({
3894
3894
  } catch {
3895
3895
  }
3896
3896
  if (stats && stats.isFile()) return;
3897
- const dir = path11.dirname(file2);
3897
+ const dir = path12.dirname(file2);
3898
3898
  try {
3899
3899
  if (!fs5.statSync(dir).isDirectory()) {
3900
3900
  fs5.readdirSync(dir);
@@ -3917,7 +3917,7 @@ var require_link = __commonJS({
3917
3917
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
3918
3918
  "use strict";
3919
3919
  var u2 = require_universalify().fromPromise;
3920
- var path11 = require("path");
3920
+ var path12 = require("path");
3921
3921
  var fs5 = require_fs();
3922
3922
  var mkdir = require_mkdirs();
3923
3923
  var { pathExists: pathExists2 } = require_path_exists();
@@ -3936,7 +3936,7 @@ var require_link = __commonJS({
3936
3936
  throw err;
3937
3937
  }
3938
3938
  if (dstStat && areIdentical(srcStat, dstStat)) return;
3939
- const dir = path11.dirname(dstpath);
3939
+ const dir = path12.dirname(dstpath);
3940
3940
  const dirExists = await pathExists2(dir);
3941
3941
  if (!dirExists) {
3942
3942
  await mkdir.mkdirs(dir);
@@ -3956,7 +3956,7 @@ var require_link = __commonJS({
3956
3956
  err.message = err.message.replace("lstat", "ensureLink");
3957
3957
  throw err;
3958
3958
  }
3959
- const dir = path11.dirname(dstpath);
3959
+ const dir = path12.dirname(dstpath);
3960
3960
  const dirExists = fs5.existsSync(dir);
3961
3961
  if (dirExists) return fs5.linkSync(srcpath, dstpath);
3962
3962
  mkdir.mkdirsSync(dir);
@@ -3973,12 +3973,12 @@ var require_link = __commonJS({
3973
3973
  var require_symlink_paths = __commonJS({
3974
3974
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
3975
3975
  "use strict";
3976
- var path11 = require("path");
3976
+ var path12 = require("path");
3977
3977
  var fs5 = require_fs();
3978
3978
  var { pathExists: pathExists2 } = require_path_exists();
3979
3979
  var u2 = require_universalify().fromPromise;
3980
3980
  async function symlinkPaths(srcpath, dstpath) {
3981
- if (path11.isAbsolute(srcpath)) {
3981
+ if (path12.isAbsolute(srcpath)) {
3982
3982
  try {
3983
3983
  await fs5.lstat(srcpath);
3984
3984
  } catch (err) {
@@ -3990,8 +3990,8 @@ var require_symlink_paths = __commonJS({
3990
3990
  toDst: srcpath
3991
3991
  };
3992
3992
  }
3993
- const dstdir = path11.dirname(dstpath);
3994
- const relativeToDst = path11.join(dstdir, srcpath);
3993
+ const dstdir = path12.dirname(dstpath);
3994
+ const relativeToDst = path12.join(dstdir, srcpath);
3995
3995
  const exists = await pathExists2(relativeToDst);
3996
3996
  if (exists) {
3997
3997
  return {
@@ -4007,11 +4007,11 @@ var require_symlink_paths = __commonJS({
4007
4007
  }
4008
4008
  return {
4009
4009
  toCwd: srcpath,
4010
- toDst: path11.relative(dstdir, srcpath)
4010
+ toDst: path12.relative(dstdir, srcpath)
4011
4011
  };
4012
4012
  }
4013
4013
  function symlinkPathsSync(srcpath, dstpath) {
4014
- if (path11.isAbsolute(srcpath)) {
4014
+ if (path12.isAbsolute(srcpath)) {
4015
4015
  const exists2 = fs5.existsSync(srcpath);
4016
4016
  if (!exists2) throw new Error("absolute srcpath does not exist");
4017
4017
  return {
@@ -4019,8 +4019,8 @@ var require_symlink_paths = __commonJS({
4019
4019
  toDst: srcpath
4020
4020
  };
4021
4021
  }
4022
- const dstdir = path11.dirname(dstpath);
4023
- const relativeToDst = path11.join(dstdir, srcpath);
4022
+ const dstdir = path12.dirname(dstpath);
4023
+ const relativeToDst = path12.join(dstdir, srcpath);
4024
4024
  const exists = fs5.existsSync(relativeToDst);
4025
4025
  if (exists) {
4026
4026
  return {
@@ -4032,7 +4032,7 @@ var require_symlink_paths = __commonJS({
4032
4032
  if (!srcExists) throw new Error("relative srcpath does not exist");
4033
4033
  return {
4034
4034
  toCwd: srcpath,
4035
- toDst: path11.relative(dstdir, srcpath)
4035
+ toDst: path12.relative(dstdir, srcpath)
4036
4036
  };
4037
4037
  }
4038
4038
  module2.exports = {
@@ -4080,7 +4080,7 @@ var require_symlink = __commonJS({
4080
4080
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
4081
4081
  "use strict";
4082
4082
  var u2 = require_universalify().fromPromise;
4083
- var path11 = require("path");
4083
+ var path12 = require("path");
4084
4084
  var fs5 = require_fs();
4085
4085
  var { mkdirs, mkdirsSync } = require_mkdirs();
4086
4086
  var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
@@ -4103,7 +4103,7 @@ var require_symlink = __commonJS({
4103
4103
  const relative = await symlinkPaths(srcpath, dstpath);
4104
4104
  srcpath = relative.toDst;
4105
4105
  const toType = await symlinkType(relative.toCwd, type);
4106
- const dir = path11.dirname(dstpath);
4106
+ const dir = path12.dirname(dstpath);
4107
4107
  if (!await pathExists2(dir)) {
4108
4108
  await mkdirs(dir);
4109
4109
  }
@@ -4123,7 +4123,7 @@ var require_symlink = __commonJS({
4123
4123
  const relative = symlinkPathsSync(srcpath, dstpath);
4124
4124
  srcpath = relative.toDst;
4125
4125
  type = symlinkTypeSync(relative.toCwd, type);
4126
- const dir = path11.dirname(dstpath);
4126
+ const dir = path12.dirname(dstpath);
4127
4127
  const exists = fs5.existsSync(dir);
4128
4128
  if (exists) return fs5.symlinkSync(srcpath, dstpath, type);
4129
4129
  mkdirsSync(dir);
@@ -4275,18 +4275,18 @@ var require_output_file = __commonJS({
4275
4275
  "use strict";
4276
4276
  var u2 = require_universalify().fromPromise;
4277
4277
  var fs5 = require_fs();
4278
- var path11 = require("path");
4278
+ var path12 = require("path");
4279
4279
  var mkdir = require_mkdirs();
4280
4280
  var pathExists2 = require_path_exists().pathExists;
4281
4281
  async function outputFile(file2, data, encoding = "utf-8") {
4282
- const dir = path11.dirname(file2);
4282
+ const dir = path12.dirname(file2);
4283
4283
  if (!await pathExists2(dir)) {
4284
4284
  await mkdir.mkdirs(dir);
4285
4285
  }
4286
4286
  return fs5.writeFile(file2, data, encoding);
4287
4287
  }
4288
4288
  function outputFileSync(file2, ...args) {
4289
- const dir = path11.dirname(file2);
4289
+ const dir = path12.dirname(file2);
4290
4290
  if (!fs5.existsSync(dir)) {
4291
4291
  mkdir.mkdirsSync(dir);
4292
4292
  }
@@ -4350,7 +4350,7 @@ var require_move = __commonJS({
4350
4350
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
4351
4351
  "use strict";
4352
4352
  var fs5 = require_fs();
4353
- var path11 = require("path");
4353
+ var path12 = require("path");
4354
4354
  var { copy } = require_copy2();
4355
4355
  var { remove: remove2 } = require_remove();
4356
4356
  var { mkdirp } = require_mkdirs();
@@ -4360,8 +4360,8 @@ var require_move = __commonJS({
4360
4360
  const overwrite = opts.overwrite || opts.clobber || false;
4361
4361
  const { srcStat, isChangingCase = false } = await stat.checkPaths(src2, dest, "move", opts);
4362
4362
  await stat.checkParentPaths(src2, srcStat, dest, "move");
4363
- const destParent = path11.dirname(dest);
4364
- const parsedParentPath = path11.parse(destParent);
4363
+ const destParent = path12.dirname(dest);
4364
+ const parsedParentPath = path12.parse(destParent);
4365
4365
  if (parsedParentPath.root !== destParent) {
4366
4366
  await mkdirp(destParent);
4367
4367
  }
@@ -4402,7 +4402,7 @@ var require_move_sync = __commonJS({
4402
4402
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
4403
4403
  "use strict";
4404
4404
  var fs5 = require_graceful_fs();
4405
- var path11 = require("path");
4405
+ var path12 = require("path");
4406
4406
  var copySync = require_copy2().copySync;
4407
4407
  var removeSync = require_remove().removeSync;
4408
4408
  var mkdirpSync = require_mkdirs().mkdirpSync;
@@ -4412,12 +4412,12 @@ var require_move_sync = __commonJS({
4412
4412
  const overwrite = opts.overwrite || opts.clobber || false;
4413
4413
  const { srcStat, isChangingCase = false } = stat.checkPathsSync(src2, dest, "move", opts);
4414
4414
  stat.checkParentPathsSync(src2, srcStat, dest, "move");
4415
- if (!isParentRoot(dest)) mkdirpSync(path11.dirname(dest));
4415
+ if (!isParentRoot(dest)) mkdirpSync(path12.dirname(dest));
4416
4416
  return doRename(src2, dest, overwrite, isChangingCase);
4417
4417
  }
4418
4418
  function isParentRoot(dest) {
4419
- const parent = path11.dirname(dest);
4420
- const parsedPath = path11.parse(parent);
4419
+ const parent = path12.dirname(dest);
4420
+ const parsedPath = path12.parse(parent);
4421
4421
  return parsedPath.root === parent;
4422
4422
  }
4423
4423
  function doRename(src2, dest, overwrite, isChangingCase) {
@@ -4489,8 +4489,8 @@ var require_common_path_prefix = __commonJS({
4489
4489
  "use strict";
4490
4490
  var { sep: DEFAULT_SEPARATOR } = require("path");
4491
4491
  var determineSeparator = (paths2) => {
4492
- for (const path11 of paths2) {
4493
- const match = /(\/|\\)/.exec(path11);
4492
+ for (const path12 of paths2) {
4493
+ const match = /(\/|\\)/.exec(path12);
4494
4494
  if (match !== null) return match[0];
4495
4495
  }
4496
4496
  return DEFAULT_SEPARATOR;
@@ -4500,8 +4500,8 @@ var require_common_path_prefix = __commonJS({
4500
4500
  if (first === "" || remaining.length === 0) return "";
4501
4501
  const parts = first.split(sep2);
4502
4502
  let endOfPrefix = parts.length;
4503
- for (const path11 of remaining) {
4504
- const compare = path11.split(sep2);
4503
+ for (const path12 of remaining) {
4504
+ const compare = path12.split(sep2);
4505
4505
  for (let i2 = 0; i2 < endOfPrefix; i2++) {
4506
4506
  if (compare[i2] !== parts[i2]) {
4507
4507
  endOfPrefix = i2;
@@ -4694,8 +4694,8 @@ var require_path_parse = __commonJS({
4694
4694
  var require_node_modules_paths = __commonJS({
4695
4695
  "../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/node-modules-paths.js"(exports2, module2) {
4696
4696
  "use strict";
4697
- var path11 = require("path");
4698
- var parse2 = path11.parse || require_path_parse();
4697
+ var path12 = require("path");
4698
+ var parse2 = path12.parse || require_path_parse();
4699
4699
  var getNodeModulesDirs = function getNodeModulesDirs2(absoluteStart, modules) {
4700
4700
  var prefix = "/";
4701
4701
  if (/^([A-Za-z]:)/.test(absoluteStart)) {
@@ -4711,7 +4711,7 @@ var require_node_modules_paths = __commonJS({
4711
4711
  }
4712
4712
  return paths2.reduce(function(dirs, aPath) {
4713
4713
  return dirs.concat(modules.map(function(moduleDir) {
4714
- return path11.resolve(prefix, aPath, moduleDir);
4714
+ return path12.resolve(prefix, aPath, moduleDir);
4715
4715
  }));
4716
4716
  }, []);
4717
4717
  };
@@ -5076,7 +5076,7 @@ var require_async = __commonJS({
5076
5076
  "use strict";
5077
5077
  var fs5 = require("fs");
5078
5078
  var getHomedir = require_homedir();
5079
- var path11 = require("path");
5079
+ var path12 = require("path");
5080
5080
  var caller = require_caller();
5081
5081
  var nodeModulesPaths = require_node_modules_paths();
5082
5082
  var normalizeOptions = require_normalize_options();
@@ -5085,8 +5085,8 @@ var require_async = __commonJS({
5085
5085
  var homedir = getHomedir();
5086
5086
  var defaultPaths = function() {
5087
5087
  return [
5088
- path11.join(homedir, ".node_modules"),
5089
- path11.join(homedir, ".node_libraries")
5088
+ path12.join(homedir, ".node_modules"),
5089
+ path12.join(homedir, ".node_libraries")
5090
5090
  ];
5091
5091
  };
5092
5092
  var defaultIsFile = function isFile(file2, cb) {
@@ -5136,7 +5136,7 @@ var require_async = __commonJS({
5136
5136
  var getPackageCandidates = function getPackageCandidates2(x2, start, opts) {
5137
5137
  var dirs = nodeModulesPaths(start, opts, x2);
5138
5138
  for (var i2 = 0; i2 < dirs.length; i2++) {
5139
- dirs[i2] = path11.join(dirs[i2], x2);
5139
+ dirs[i2] = path12.join(dirs[i2], x2);
5140
5140
  }
5141
5141
  return dirs;
5142
5142
  };
@@ -5168,10 +5168,10 @@ var require_async = __commonJS({
5168
5168
  var packageIterator = opts.packageIterator;
5169
5169
  var extensions = opts.extensions || [".js"];
5170
5170
  var includeCoreModules = opts.includeCoreModules !== false;
5171
- var basedir = opts.basedir || path11.dirname(caller());
5171
+ var basedir = opts.basedir || path12.dirname(caller());
5172
5172
  var parent = opts.filename || basedir;
5173
5173
  opts.paths = opts.paths || defaultPaths();
5174
- var absoluteStart = path11.resolve(basedir);
5174
+ var absoluteStart = path12.resolve(basedir);
5175
5175
  maybeRealpath(
5176
5176
  realpath,
5177
5177
  absoluteStart,
@@ -5184,7 +5184,7 @@ var require_async = __commonJS({
5184
5184
  var res;
5185
5185
  function init3(basedir2) {
5186
5186
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x2)) {
5187
- res = path11.resolve(basedir2, x2);
5187
+ res = path12.resolve(basedir2, x2);
5188
5188
  if (x2 === "." || x2 === ".." || x2.slice(-1) === "/") res += "/";
5189
5189
  if (/\/$/.test(x2) && res === basedir2) {
5190
5190
  loadAsDirectory(res, opts.package, onfile);
@@ -5242,17 +5242,17 @@ var require_async = __commonJS({
5242
5242
  var file2 = x4 + exts2[0];
5243
5243
  var pkg = loadPackage;
5244
5244
  if (pkg) onpkg(null, pkg);
5245
- else loadpkg(path11.dirname(file2), onpkg);
5245
+ else loadpkg(path12.dirname(file2), onpkg);
5246
5246
  function onpkg(err2, pkg_, dir) {
5247
5247
  pkg = pkg_;
5248
5248
  if (err2) return cb2(err2);
5249
5249
  if (dir && pkg && opts.pathFilter) {
5250
- var rfile = path11.relative(dir, file2);
5250
+ var rfile = path12.relative(dir, file2);
5251
5251
  var rel = rfile.slice(0, rfile.length - exts2[0].length);
5252
5252
  var r2 = opts.pathFilter(pkg, x4, rel);
5253
5253
  if (r2) return load2(
5254
5254
  [""].concat(extensions.slice()),
5255
- path11.resolve(dir, r2),
5255
+ path12.resolve(dir, r2),
5256
5256
  pkg
5257
5257
  );
5258
5258
  }
@@ -5272,10 +5272,10 @@ var require_async = __commonJS({
5272
5272
  }
5273
5273
  if (/[/\\]node_modules[/\\]*$/.test(dir)) return cb2(null);
5274
5274
  maybeRealpath(realpath, dir, opts, function(unwrapErr, pkgdir) {
5275
- if (unwrapErr) return loadpkg(path11.dirname(dir), cb2);
5276
- var pkgfile = path11.join(pkgdir, "package.json");
5275
+ if (unwrapErr) return loadpkg(path12.dirname(dir), cb2);
5276
+ var pkgfile = path12.join(pkgdir, "package.json");
5277
5277
  isFile(pkgfile, function(err2, ex) {
5278
- if (!ex) return loadpkg(path11.dirname(dir), cb2);
5278
+ if (!ex) return loadpkg(path12.dirname(dir), cb2);
5279
5279
  readPackage(readFile, pkgfile, function(err3, pkgParam) {
5280
5280
  if (err3) cb2(err3);
5281
5281
  var pkg = pkgParam;
@@ -5296,10 +5296,10 @@ var require_async = __commonJS({
5296
5296
  }
5297
5297
  maybeRealpath(realpath, x3, opts, function(unwrapErr, pkgdir) {
5298
5298
  if (unwrapErr) return cb2(unwrapErr);
5299
- var pkgfile = path11.join(pkgdir, "package.json");
5299
+ var pkgfile = path12.join(pkgdir, "package.json");
5300
5300
  isFile(pkgfile, function(err2, ex) {
5301
5301
  if (err2) return cb2(err2);
5302
- if (!ex) return loadAsFile(path11.join(x3, "index"), fpkg, cb2);
5302
+ if (!ex) return loadAsFile(path12.join(x3, "index"), fpkg, cb2);
5303
5303
  readPackage(readFile, pkgfile, function(err3, pkgParam) {
5304
5304
  if (err3) return cb2(err3);
5305
5305
  var pkg = pkgParam;
@@ -5315,20 +5315,20 @@ var require_async = __commonJS({
5315
5315
  if (pkg.main === "." || pkg.main === "./") {
5316
5316
  pkg.main = "index";
5317
5317
  }
5318
- loadAsFile(path11.resolve(x3, pkg.main), pkg, function(err4, m2, pkg2) {
5318
+ loadAsFile(path12.resolve(x3, pkg.main), pkg, function(err4, m2, pkg2) {
5319
5319
  if (err4) return cb2(err4);
5320
5320
  if (m2) return cb2(null, m2, pkg2);
5321
- if (!pkg2) return loadAsFile(path11.join(x3, "index"), pkg2, cb2);
5322
- var dir = path11.resolve(x3, pkg2.main);
5321
+ if (!pkg2) return loadAsFile(path12.join(x3, "index"), pkg2, cb2);
5322
+ var dir = path12.resolve(x3, pkg2.main);
5323
5323
  loadAsDirectory(dir, pkg2, function(err5, n2, pkg3) {
5324
5324
  if (err5) return cb2(err5);
5325
5325
  if (n2) return cb2(null, n2, pkg3);
5326
- loadAsFile(path11.join(x3, "index"), pkg3, cb2);
5326
+ loadAsFile(path12.join(x3, "index"), pkg3, cb2);
5327
5327
  });
5328
5328
  });
5329
5329
  return;
5330
5330
  }
5331
- loadAsFile(path11.join(x3, "/index"), pkg, cb2);
5331
+ loadAsFile(path12.join(x3, "/index"), pkg, cb2);
5332
5332
  });
5333
5333
  });
5334
5334
  });
@@ -5336,7 +5336,7 @@ var require_async = __commonJS({
5336
5336
  function processDirs(cb2, dirs) {
5337
5337
  if (dirs.length === 0) return cb2(null, void 0);
5338
5338
  var dir = dirs[0];
5339
- isDirectory(path11.dirname(dir), isdir);
5339
+ isDirectory(path12.dirname(dir), isdir);
5340
5340
  function isdir(err2, isdir2) {
5341
5341
  if (err2) return cb2(err2);
5342
5342
  if (!isdir2) return processDirs(cb2, dirs.slice(1));
@@ -5568,7 +5568,7 @@ var require_sync = __commonJS({
5568
5568
  "use strict";
5569
5569
  var isCore = require_is_core_module();
5570
5570
  var fs5 = require("fs");
5571
- var path11 = require("path");
5571
+ var path12 = require("path");
5572
5572
  var getHomedir = require_homedir();
5573
5573
  var caller = require_caller();
5574
5574
  var nodeModulesPaths = require_node_modules_paths();
@@ -5577,8 +5577,8 @@ var require_sync = __commonJS({
5577
5577
  var homedir = getHomedir();
5578
5578
  var defaultPaths = function() {
5579
5579
  return [
5580
- path11.join(homedir, ".node_modules"),
5581
- path11.join(homedir, ".node_libraries")
5580
+ path12.join(homedir, ".node_modules"),
5581
+ path12.join(homedir, ".node_libraries")
5582
5582
  ];
5583
5583
  };
5584
5584
  var defaultIsFile = function isFile(file2) {
@@ -5626,7 +5626,7 @@ var require_sync = __commonJS({
5626
5626
  var getPackageCandidates = function getPackageCandidates2(x2, start, opts) {
5627
5627
  var dirs = nodeModulesPaths(start, opts, x2);
5628
5628
  for (var i2 = 0; i2 < dirs.length; i2++) {
5629
- dirs[i2] = path11.join(dirs[i2], x2);
5629
+ dirs[i2] = path12.join(dirs[i2], x2);
5630
5630
  }
5631
5631
  return dirs;
5632
5632
  };
@@ -5646,12 +5646,12 @@ var require_sync = __commonJS({
5646
5646
  var packageIterator = opts.packageIterator;
5647
5647
  var extensions = opts.extensions || [".js"];
5648
5648
  var includeCoreModules = opts.includeCoreModules !== false;
5649
- var basedir = opts.basedir || path11.dirname(caller());
5649
+ var basedir = opts.basedir || path12.dirname(caller());
5650
5650
  var parent = opts.filename || basedir;
5651
5651
  opts.paths = opts.paths || defaultPaths();
5652
- var absoluteStart = maybeRealpathSync(realpathSync, path11.resolve(basedir), opts);
5652
+ var absoluteStart = maybeRealpathSync(realpathSync, path12.resolve(basedir), opts);
5653
5653
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x2)) {
5654
- var res = path11.resolve(absoluteStart, x2);
5654
+ var res = path12.resolve(absoluteStart, x2);
5655
5655
  if (x2 === "." || x2 === ".." || x2.slice(-1) === "/") res += "/";
5656
5656
  var m2 = loadAsFileSync(res) || loadAsDirectorySync(res);
5657
5657
  if (m2) return maybeRealpathSync(realpathSync, m2, opts);
@@ -5665,12 +5665,12 @@ var require_sync = __commonJS({
5665
5665
  err.code = "MODULE_NOT_FOUND";
5666
5666
  throw err;
5667
5667
  function loadAsFileSync(x3) {
5668
- var pkg = loadpkg(path11.dirname(x3));
5668
+ var pkg = loadpkg(path12.dirname(x3));
5669
5669
  if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
5670
- var rfile = path11.relative(pkg.dir, x3);
5670
+ var rfile = path12.relative(pkg.dir, x3);
5671
5671
  var r2 = opts.pathFilter(pkg.pkg, x3, rfile);
5672
5672
  if (r2) {
5673
- x3 = path11.resolve(pkg.dir, r2);
5673
+ x3 = path12.resolve(pkg.dir, r2);
5674
5674
  }
5675
5675
  }
5676
5676
  if (isFile(x3)) {
@@ -5689,9 +5689,9 @@ var require_sync = __commonJS({
5689
5689
  return;
5690
5690
  }
5691
5691
  if (/[/\\]node_modules[/\\]*$/.test(dir)) return;
5692
- var pkgfile = path11.join(maybeRealpathSync(realpathSync, dir, opts), "package.json");
5692
+ var pkgfile = path12.join(maybeRealpathSync(realpathSync, dir, opts), "package.json");
5693
5693
  if (!isFile(pkgfile)) {
5694
- return loadpkg(path11.dirname(dir));
5694
+ return loadpkg(path12.dirname(dir));
5695
5695
  }
5696
5696
  var pkg = readPackageSync(readFileSync, pkgfile);
5697
5697
  if (pkg && opts.packageFilter) {
@@ -5704,7 +5704,7 @@ var require_sync = __commonJS({
5704
5704
  return { pkg, dir };
5705
5705
  }
5706
5706
  function loadAsDirectorySync(x3) {
5707
- var pkgfile = path11.join(maybeRealpathSync(realpathSync, x3, opts), "/package.json");
5707
+ var pkgfile = path12.join(maybeRealpathSync(realpathSync, x3, opts), "/package.json");
5708
5708
  if (isFile(pkgfile)) {
5709
5709
  try {
5710
5710
  var pkg = readPackageSync(readFileSync, pkgfile);
@@ -5727,15 +5727,15 @@ var require_sync = __commonJS({
5727
5727
  pkg.main = "index";
5728
5728
  }
5729
5729
  try {
5730
- var m3 = loadAsFileSync(path11.resolve(x3, pkg.main));
5730
+ var m3 = loadAsFileSync(path12.resolve(x3, pkg.main));
5731
5731
  if (m3) return m3;
5732
- var n3 = loadAsDirectorySync(path11.resolve(x3, pkg.main));
5732
+ var n3 = loadAsDirectorySync(path12.resolve(x3, pkg.main));
5733
5733
  if (n3) return n3;
5734
5734
  } catch (e2) {
5735
5735
  }
5736
5736
  }
5737
5737
  }
5738
- return loadAsFileSync(path11.join(x3, "/index"));
5738
+ return loadAsFileSync(path12.join(x3, "/index"));
5739
5739
  }
5740
5740
  function loadNodeModulesSync(x3, start) {
5741
5741
  var thunk = function() {
@@ -5744,7 +5744,7 @@ var require_sync = __commonJS({
5744
5744
  var dirs = packageIterator ? packageIterator(x3, start, thunk, opts) : thunk();
5745
5745
  for (var i2 = 0; i2 < dirs.length; i2++) {
5746
5746
  var dir = dirs[i2];
5747
- if (isDirectory(path11.dirname(dir))) {
5747
+ if (isDirectory(path12.dirname(dir))) {
5748
5748
  var m3 = loadAsFileSync(dir);
5749
5749
  if (m3) return m3;
5750
5750
  var n3 = loadAsDirectorySync(dir);
@@ -5943,42 +5943,42 @@ var require_lib2 = __commonJS({
5943
5943
  var require_env_paths = __commonJS({
5944
5944
  "../../node_modules/.pnpm/env-paths@2.2.1/node_modules/env-paths/index.js"(exports2, module2) {
5945
5945
  "use strict";
5946
- var path11 = require("path");
5946
+ var path12 = require("path");
5947
5947
  var os3 = require("os");
5948
5948
  var homedir = os3.homedir();
5949
5949
  var tmpdir = os3.tmpdir();
5950
5950
  var { env: env3 } = process;
5951
5951
  var macos = (name) => {
5952
- const library = path11.join(homedir, "Library");
5952
+ const library = path12.join(homedir, "Library");
5953
5953
  return {
5954
- data: path11.join(library, "Application Support", name),
5955
- config: path11.join(library, "Preferences", name),
5956
- cache: path11.join(library, "Caches", name),
5957
- log: path11.join(library, "Logs", name),
5958
- temp: path11.join(tmpdir, name)
5954
+ data: path12.join(library, "Application Support", name),
5955
+ config: path12.join(library, "Preferences", name),
5956
+ cache: path12.join(library, "Caches", name),
5957
+ log: path12.join(library, "Logs", name),
5958
+ temp: path12.join(tmpdir, name)
5959
5959
  };
5960
5960
  };
5961
5961
  var windows2 = (name) => {
5962
- const appData = env3.APPDATA || path11.join(homedir, "AppData", "Roaming");
5963
- const localAppData = env3.LOCALAPPDATA || path11.join(homedir, "AppData", "Local");
5962
+ const appData = env3.APPDATA || path12.join(homedir, "AppData", "Roaming");
5963
+ const localAppData = env3.LOCALAPPDATA || path12.join(homedir, "AppData", "Local");
5964
5964
  return {
5965
5965
  // Data/config/cache/log are invented by me as Windows isn't opinionated about this
5966
- data: path11.join(localAppData, name, "Data"),
5967
- config: path11.join(appData, name, "Config"),
5968
- cache: path11.join(localAppData, name, "Cache"),
5969
- log: path11.join(localAppData, name, "Log"),
5970
- temp: path11.join(tmpdir, name)
5966
+ data: path12.join(localAppData, name, "Data"),
5967
+ config: path12.join(appData, name, "Config"),
5968
+ cache: path12.join(localAppData, name, "Cache"),
5969
+ log: path12.join(localAppData, name, "Log"),
5970
+ temp: path12.join(tmpdir, name)
5971
5971
  };
5972
5972
  };
5973
5973
  var linux = (name) => {
5974
- const username = path11.basename(homedir);
5974
+ const username = path12.basename(homedir);
5975
5975
  return {
5976
- data: path11.join(env3.XDG_DATA_HOME || path11.join(homedir, ".local", "share"), name),
5977
- config: path11.join(env3.XDG_CONFIG_HOME || path11.join(homedir, ".config"), name),
5978
- cache: path11.join(env3.XDG_CACHE_HOME || path11.join(homedir, ".cache"), name),
5976
+ data: path12.join(env3.XDG_DATA_HOME || path12.join(homedir, ".local", "share"), name),
5977
+ config: path12.join(env3.XDG_CONFIG_HOME || path12.join(homedir, ".config"), name),
5978
+ cache: path12.join(env3.XDG_CACHE_HOME || path12.join(homedir, ".cache"), name),
5979
5979
  // https://wiki.debian.org/XDGBaseDirectorySpecification#state
5980
- log: path11.join(env3.XDG_STATE_HOME || path11.join(homedir, ".local", "state"), name),
5981
- temp: path11.join(tmpdir, username, name)
5980
+ log: path12.join(env3.XDG_STATE_HOME || path12.join(homedir, ".local", "state"), name),
5981
+ temp: path12.join(tmpdir, username, name)
5982
5982
  };
5983
5983
  };
5984
5984
  var envPaths = (name, options2) => {
@@ -6002,195 +6002,6 @@ var require_env_paths = __commonJS({
6002
6002
  }
6003
6003
  });
6004
6004
 
6005
- // ../../node_modules/.pnpm/path-exists@3.0.0/node_modules/path-exists/index.js
6006
- var require_path_exists2 = __commonJS({
6007
- "../../node_modules/.pnpm/path-exists@3.0.0/node_modules/path-exists/index.js"(exports2, module2) {
6008
- "use strict";
6009
- var fs5 = require("fs");
6010
- module2.exports = (fp) => new Promise((resolve3) => {
6011
- fs5.access(fp, (err) => {
6012
- resolve3(!err);
6013
- });
6014
- });
6015
- module2.exports.sync = (fp) => {
6016
- try {
6017
- fs5.accessSync(fp);
6018
- return true;
6019
- } catch (err) {
6020
- return false;
6021
- }
6022
- };
6023
- }
6024
- });
6025
-
6026
- // ../../node_modules/.pnpm/p-try@2.2.0/node_modules/p-try/index.js
6027
- var require_p_try = __commonJS({
6028
- "../../node_modules/.pnpm/p-try@2.2.0/node_modules/p-try/index.js"(exports2, module2) {
6029
- "use strict";
6030
- var pTry = (fn, ...arguments_) => new Promise((resolve3) => {
6031
- resolve3(fn(...arguments_));
6032
- });
6033
- module2.exports = pTry;
6034
- module2.exports.default = pTry;
6035
- }
6036
- });
6037
-
6038
- // ../../node_modules/.pnpm/p-limit@2.3.0/node_modules/p-limit/index.js
6039
- var require_p_limit = __commonJS({
6040
- "../../node_modules/.pnpm/p-limit@2.3.0/node_modules/p-limit/index.js"(exports2, module2) {
6041
- "use strict";
6042
- var pTry = require_p_try();
6043
- var pLimit3 = (concurrency) => {
6044
- if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) {
6045
- return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));
6046
- }
6047
- const queue = [];
6048
- let activeCount = 0;
6049
- const next = () => {
6050
- activeCount--;
6051
- if (queue.length > 0) {
6052
- queue.shift()();
6053
- }
6054
- };
6055
- const run2 = (fn, resolve3, ...args) => {
6056
- activeCount++;
6057
- const result = pTry(fn, ...args);
6058
- resolve3(result);
6059
- result.then(next, next);
6060
- };
6061
- const enqueue = (fn, resolve3, ...args) => {
6062
- if (activeCount < concurrency) {
6063
- run2(fn, resolve3, ...args);
6064
- } else {
6065
- queue.push(run2.bind(null, fn, resolve3, ...args));
6066
- }
6067
- };
6068
- const generator = (fn, ...args) => new Promise((resolve3) => enqueue(fn, resolve3, ...args));
6069
- Object.defineProperties(generator, {
6070
- activeCount: {
6071
- get: () => activeCount
6072
- },
6073
- pendingCount: {
6074
- get: () => queue.length
6075
- },
6076
- clearQueue: {
6077
- value: () => {
6078
- queue.length = 0;
6079
- }
6080
- }
6081
- });
6082
- return generator;
6083
- };
6084
- module2.exports = pLimit3;
6085
- module2.exports.default = pLimit3;
6086
- }
6087
- });
6088
-
6089
- // ../../node_modules/.pnpm/p-locate@3.0.0/node_modules/p-locate/index.js
6090
- var require_p_locate = __commonJS({
6091
- "../../node_modules/.pnpm/p-locate@3.0.0/node_modules/p-locate/index.js"(exports2, module2) {
6092
- "use strict";
6093
- var pLimit3 = require_p_limit();
6094
- var EndError2 = class extends Error {
6095
- constructor(value) {
6096
- super();
6097
- this.value = value;
6098
- }
6099
- };
6100
- var testElement2 = (el, tester) => Promise.resolve(el).then(tester);
6101
- var finder2 = (el) => Promise.all(el).then((val) => val[1] === true && Promise.reject(new EndError2(val[0])));
6102
- module2.exports = (iterable, tester, opts) => {
6103
- opts = Object.assign({
6104
- concurrency: Infinity,
6105
- preserveOrder: true
6106
- }, opts);
6107
- const limit = pLimit3(opts.concurrency);
6108
- const items = [...iterable].map((el) => [el, limit(testElement2, el, tester)]);
6109
- const checkLimit = pLimit3(opts.preserveOrder ? 1 : Infinity);
6110
- return Promise.all(items.map((el) => checkLimit(finder2, el))).then(() => {
6111
- }).catch((err) => err instanceof EndError2 ? err.value : Promise.reject(err));
6112
- };
6113
- }
6114
- });
6115
-
6116
- // ../../node_modules/.pnpm/locate-path@3.0.0/node_modules/locate-path/index.js
6117
- var require_locate_path = __commonJS({
6118
- "../../node_modules/.pnpm/locate-path@3.0.0/node_modules/locate-path/index.js"(exports2, module2) {
6119
- "use strict";
6120
- var path11 = require("path");
6121
- var pathExists2 = require_path_exists2();
6122
- var pLocate3 = require_p_locate();
6123
- module2.exports = (iterable, options2) => {
6124
- options2 = Object.assign({
6125
- cwd: process.cwd()
6126
- }, options2);
6127
- return pLocate3(iterable, (el) => pathExists2(path11.resolve(options2.cwd, el)), options2);
6128
- };
6129
- module2.exports.sync = (iterable, options2) => {
6130
- options2 = Object.assign({
6131
- cwd: process.cwd()
6132
- }, options2);
6133
- for (const el of iterable) {
6134
- if (pathExists2.sync(path11.resolve(options2.cwd, el))) {
6135
- return el;
6136
- }
6137
- }
6138
- };
6139
- }
6140
- });
6141
-
6142
- // ../../node_modules/.pnpm/find-up@3.0.0/node_modules/find-up/index.js
6143
- var require_find_up = __commonJS({
6144
- "../../node_modules/.pnpm/find-up@3.0.0/node_modules/find-up/index.js"(exports2, module2) {
6145
- "use strict";
6146
- var path11 = require("path");
6147
- var locatePath3 = require_locate_path();
6148
- module2.exports = (filename, opts = {}) => {
6149
- const startDir = path11.resolve(opts.cwd || "");
6150
- const { root } = path11.parse(startDir);
6151
- const filenames = [].concat(filename);
6152
- return new Promise((resolve3) => {
6153
- (function find(dir) {
6154
- locatePath3(filenames, { cwd: dir }).then((file2) => {
6155
- if (file2) {
6156
- resolve3(path11.join(dir, file2));
6157
- } else if (dir === root) {
6158
- resolve3(null);
6159
- } else {
6160
- find(path11.dirname(dir));
6161
- }
6162
- });
6163
- })(startDir);
6164
- });
6165
- };
6166
- module2.exports.sync = (filename, opts = {}) => {
6167
- let dir = path11.resolve(opts.cwd || "");
6168
- const { root } = path11.parse(dir);
6169
- const filenames = [].concat(filename);
6170
- while (true) {
6171
- const file2 = locatePath3.sync(filenames, { cwd: dir });
6172
- if (file2) {
6173
- return path11.join(dir, file2);
6174
- }
6175
- if (dir === root) {
6176
- return null;
6177
- }
6178
- dir = path11.dirname(dir);
6179
- }
6180
- };
6181
- }
6182
- });
6183
-
6184
- // ../../node_modules/.pnpm/pkg-up@3.1.0/node_modules/pkg-up/index.js
6185
- var require_pkg_up = __commonJS({
6186
- "../../node_modules/.pnpm/pkg-up@3.1.0/node_modules/pkg-up/index.js"(exports2, module2) {
6187
- "use strict";
6188
- var findUp3 = require_find_up();
6189
- module2.exports = async ({ cwd: cwd2 } = {}) => findUp3("package.json", { cwd: cwd2 });
6190
- module2.exports.sync = ({ cwd: cwd2 } = {}) => findUp3.sync("package.json", { cwd: cwd2 });
6191
- }
6192
- });
6193
-
6194
6005
  // ../ts-builders/src/KeyType.ts
6195
6006
  var KeyType_exports = {};
6196
6007
  __export(KeyType_exports, {
@@ -6693,7 +6504,7 @@ __export(generator_exports, {
6693
6504
  externalToInternalDmmf: () => externalToInternalDmmf
6694
6505
  });
6695
6506
  module.exports = __toCommonJS(generator_exports);
6696
- var import_node_path5 = __toESM(require("node:path"));
6507
+ var import_node_path6 = __toESM(require("node:path"));
6697
6508
 
6698
6509
  // ../client-common/src/Cache.ts
6699
6510
  var Cache = class {
@@ -7535,15 +7346,55 @@ function setClassName(classObject, name) {
7535
7346
  var import_crypto2 = require("crypto");
7536
7347
  var import_env_paths = __toESM(require_env_paths());
7537
7348
  var import_fs2 = require("fs");
7538
- var import_promises = __toESM(require("fs/promises"));
7349
+ var import_promises2 = __toESM(require("fs/promises"));
7539
7350
  var import_fs_extra = __toESM(require_lib());
7351
+
7352
+ // ../../node_modules/.pnpm/package-up@5.0.0/node_modules/package-up/index.js
7353
+ var import_node_process3 = __toESM(require("node:process"), 1);
7354
+
7355
+ // ../../node_modules/.pnpm/find-up-simple@1.0.1/node_modules/find-up-simple/index.js
7356
+ var import_node_process2 = __toESM(require("node:process"), 1);
7357
+ var import_promises = __toESM(require("node:fs/promises"), 1);
7358
+ var import_node_url = require("node:url");
7359
+ var import_node_path = __toESM(require("node:path"), 1);
7360
+ var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
7361
+ async function findUp2(name, {
7362
+ cwd: cwd2 = import_node_process2.default.cwd(),
7363
+ type = "file",
7364
+ stopAt
7365
+ } = {}) {
7366
+ let directory = import_node_path.default.resolve(toPath(cwd2) ?? "");
7367
+ const { root } = import_node_path.default.parse(directory);
7368
+ stopAt = import_node_path.default.resolve(directory, toPath(stopAt ?? root));
7369
+ const isAbsoluteName = import_node_path.default.isAbsolute(name);
7370
+ while (directory) {
7371
+ const filePath = isAbsoluteName ? name : import_node_path.default.join(directory, name);
7372
+ try {
7373
+ const stats = await import_promises.default.stat(filePath);
7374
+ if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) {
7375
+ return filePath;
7376
+ }
7377
+ } catch {
7378
+ }
7379
+ if (directory === stopAt || directory === root) {
7380
+ break;
7381
+ }
7382
+ directory = import_node_path.default.dirname(directory);
7383
+ }
7384
+ }
7385
+
7386
+ // ../../node_modules/.pnpm/package-up@5.0.0/node_modules/package-up/index.js
7387
+ async function packageUp({ cwd: cwd2 = import_node_process3.default.cwd() } = {}) {
7388
+ return findUp2("package.json", { cwd: cwd2 });
7389
+ }
7390
+
7391
+ // ../client-generator-js/src/generateClient.ts
7540
7392
  var import_path6 = __toESM(require("path"));
7541
- var import_pkg_up = __toESM(require_pkg_up());
7542
7393
 
7543
7394
  // package.json
7544
7395
  var package_default = {
7545
7396
  name: "@prisma/client",
7546
- version: "6.16.0-dev.12",
7397
+ version: "6.16.0-dev.13",
7547
7398
  description: "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
7548
7399
  keywords: [
7549
7400
  "ORM",
@@ -13313,7 +13164,7 @@ async function getDefaultOutdir(outputDir) {
13313
13164
  if ((0, import_fs2.existsSync)(import_path6.default.join(process.env.INIT_CWD, "package.json"))) {
13314
13165
  return import_path6.default.join(process.env.INIT_CWD, "node_modules/.prisma/client");
13315
13166
  }
13316
- const packagePath = await (0, import_pkg_up.default)({ cwd: process.env.INIT_CWD });
13167
+ const packagePath = await packageUp({ cwd: process.env.INIT_CWD });
13317
13168
  if (packagePath) {
13318
13169
  return import_path6.default.join(import_path6.default.dirname(packagePath), "node_modules/.prisma/client");
13319
13170
  }
@@ -13410,20 +13261,20 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
13410
13261
  }
13411
13262
  }
13412
13263
  const schemaTargetPath = import_path6.default.join(outputDir, "schema.prisma");
13413
- await import_promises.default.writeFile(schemaTargetPath, datamodel, { encoding: "utf-8" });
13264
+ await import_promises2.default.writeFile(schemaTargetPath, datamodel, { encoding: "utf-8" });
13414
13265
  if (generator.previewFeatures.includes("driverAdapters") && isWasmEngineSupported(provider) && copyEngine && !testMode) {
13415
13266
  const suffix = provider === "postgres" ? "postgresql" : provider;
13416
13267
  const filename = clientEngineType === "client" /* Client */ ? "query_compiler_bg" : "query_engine_bg";
13417
13268
  const wasmJsBundlePath = import_path6.default.join(runtimeSourcePath, `${filename}.${suffix}.wasm-base64.js`);
13418
13269
  const wasmBase64 = require(wasmJsBundlePath).wasm;
13419
- await import_promises.default.writeFile(import_path6.default.join(outputDir, `${filename}.wasm`), Buffer.from(wasmBase64, "base64"));
13420
- await import_promises.default.copyFile(import_path6.default.join(runtimeSourcePath, `${filename}.${suffix}.js`), import_path6.default.join(outputDir, `${filename}.js`));
13270
+ await import_promises2.default.writeFile(import_path6.default.join(outputDir, `${filename}.wasm`), Buffer.from(wasmBase64, "base64"));
13271
+ await import_promises2.default.copyFile(import_path6.default.join(runtimeSourcePath, `${filename}.${suffix}.js`), import_path6.default.join(outputDir, `${filename}.js`));
13421
13272
  }
13422
13273
  try {
13423
13274
  const prismaCache = (0, import_env_paths.default)("prisma").cache;
13424
13275
  const signalsPath = import_path6.default.join(prismaCache, "last-generate");
13425
- await import_promises.default.mkdir(prismaCache, { recursive: true });
13426
- await import_promises.default.writeFile(signalsPath, Date.now().toString());
13276
+ await import_promises2.default.mkdir(prismaCache, { recursive: true });
13277
+ await import_promises2.default.writeFile(signalsPath, Date.now().toString());
13427
13278
  } catch {
13428
13279
  }
13429
13280
  }
@@ -13431,11 +13282,11 @@ function writeFileMap(outputDir, fileMap) {
13431
13282
  return Promise.all(
13432
13283
  Object.entries(fileMap).map(async ([fileName, content]) => {
13433
13284
  const absolutePath = import_path6.default.join(outputDir, fileName);
13434
- await import_promises.default.rm(absolutePath, { recursive: true, force: true });
13285
+ await import_promises2.default.rm(absolutePath, { recursive: true, force: true });
13435
13286
  if (typeof content === "string") {
13436
- await import_promises.default.writeFile(absolutePath, content);
13287
+ await import_promises2.default.writeFile(absolutePath, content);
13437
13288
  } else {
13438
- await import_promises.default.mkdir(absolutePath);
13289
+ await import_promises2.default.mkdir(absolutePath);
13439
13290
  await writeFileMap(absolutePath, content);
13440
13291
  }
13441
13292
  })
@@ -13540,7 +13391,7 @@ async function getGenerationDirs({
13540
13391
  if (isCustomOutput) {
13541
13392
  await verifyOutputDirectory(userOutputDir, datamodel, schemaPath);
13542
13393
  }
13543
- const userPackageRoot = await (0, import_pkg_up.default)({ cwd: import_path6.default.dirname(userOutputDir) });
13394
+ const userPackageRoot = await packageUp({ cwd: import_path6.default.dirname(userOutputDir) });
13544
13395
  const userProjectRoot = userPackageRoot ? import_path6.default.dirname(userPackageRoot) : process.cwd();
13545
13396
  return {
13546
13397
  runtimeBase: userRuntimeImport,
@@ -13551,7 +13402,7 @@ async function getGenerationDirs({
13551
13402
  async function verifyOutputDirectory(directory, datamodel, schemaPath) {
13552
13403
  let content;
13553
13404
  try {
13554
- content = await import_promises.default.readFile(import_path6.default.join(directory, "package.json"), "utf8");
13405
+ content = await import_promises2.default.readFile(import_path6.default.join(directory, "package.json"), "utf8");
13555
13406
  } catch (e2) {
13556
13407
  if (e2.code === "ENOENT") {
13557
13408
  return;
@@ -13632,10 +13483,10 @@ async function copyRuntimeFiles({ from, to, runtimeName, sourceMaps }) {
13632
13483
  const sourcePath = import_path6.default.join(from, file2);
13633
13484
  const targetPath = import_path6.default.join(to, file2);
13634
13485
  if (file2.endsWith(".js")) {
13635
- const content = await import_promises.default.readFile(sourcePath, "utf-8");
13636
- await import_promises.default.writeFile(targetPath, addPreamble(content));
13486
+ const content = await import_promises2.default.readFile(sourcePath, "utf-8");
13487
+ await import_promises2.default.writeFile(targetPath, addPreamble(content));
13637
13488
  } else {
13638
- await import_promises.default.copyFile(sourcePath, targetPath);
13489
+ await import_promises2.default.copyFile(sourcePath, targetPath);
13639
13490
  }
13640
13491
  })
13641
13492
  );
@@ -13644,7 +13495,7 @@ async function deleteOutputDir(outputDir) {
13644
13495
  try {
13645
13496
  debug2(`attempting to delete ${outputDir} recursively`);
13646
13497
  if (require(`${outputDir}/package.json`).name?.startsWith(GENERATED_PACKAGE_NAME_PREFIX)) {
13647
- await import_promises.default.rmdir(outputDir, { recursive: true }).catch(() => {
13498
+ await import_promises2.default.rmdir(outputDir, { recursive: true }).catch(() => {
13648
13499
  debug2(`failed to delete ${outputDir} recursively`);
13649
13500
  });
13650
13501
  }
@@ -13660,35 +13511,35 @@ function getUniquePackageName(datamodel) {
13660
13511
  var GENERATED_PACKAGE_NAME_PREFIX = "prisma-client-";
13661
13512
 
13662
13513
  // ../client-generator-js/src/generator.ts
13663
- var import_node_path3 = __toESM(require("node:path"));
13514
+ var import_node_path4 = __toESM(require("node:path"));
13664
13515
  var import_engines_version = __toESM(require_engines_version());
13665
13516
 
13666
13517
  // ../client-generator-js/package.json
13667
- var version = "6.16.0-dev.12";
13518
+ var version = "6.16.0-dev.13";
13668
13519
 
13669
13520
  // ../client-generator-js/src/resolvePrismaClient.ts
13670
- var import_promises4 = __toESM(require("node:fs/promises"));
13671
- var import_node_path2 = __toESM(require("node:path"));
13521
+ var import_promises5 = __toESM(require("node:fs/promises"));
13522
+ var import_node_path3 = __toESM(require("node:path"));
13672
13523
 
13673
13524
  // ../../node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/dist/shared/ni.f699cf8a.mjs
13674
13525
  var import_node_fs = __toESM(require("node:fs"), 1);
13675
- var import_node_path = __toESM(require("node:path"), 1);
13676
- var import_node_process2 = __toESM(require("node:process"), 1);
13526
+ var import_node_path2 = __toESM(require("node:path"), 1);
13527
+ var import_node_process4 = __toESM(require("node:process"), 1);
13677
13528
  var import_node_buffer = require("node:buffer");
13678
13529
  var import_node_child_process = __toESM(require("node:child_process"), 1);
13679
13530
  var import_child_process = __toESM(require("child_process"), 1);
13680
13531
  var import_path7 = __toESM(require("path"), 1);
13681
13532
  var import_fs3 = __toESM(require("fs"), 1);
13682
- var import_node_url = __toESM(require("node:url"), 1);
13533
+ var import_node_url2 = __toESM(require("node:url"), 1);
13683
13534
  var import_node_os = __toESM(require("node:os"), 1);
13684
- var import_promises2 = require("node:timers/promises");
13535
+ var import_promises3 = require("node:timers/promises");
13685
13536
  var import_stream2 = __toESM(require("stream"), 1);
13686
13537
  var import_node_util = require("node:util");
13687
13538
  var import_os2 = __toESM(require("os"), 1);
13688
13539
  var import_tty = __toESM(require("tty"), 1);
13689
13540
  var import_readline = __toESM(require("readline"), 1);
13690
13541
  var import_events = __toESM(require("events"), 1);
13691
- var import_promises3 = __toESM(require("fs/promises"), 1);
13542
+ var import_promises4 = __toESM(require("fs/promises"), 1);
13692
13543
  function npmRun(agent) {
13693
13544
  return (args) => {
13694
13545
  if (args.length > 1)
@@ -13799,7 +13650,7 @@ function requireWindows() {
13799
13650
  windows = isexe2;
13800
13651
  isexe2.sync = sync2;
13801
13652
  var fs5 = import_fs3.default;
13802
- function checkPathExt2(path11, options2) {
13653
+ function checkPathExt2(path12, options2) {
13803
13654
  var pathext = options2.pathExt !== void 0 ? options2.pathExt : process.env.PATHEXT;
13804
13655
  if (!pathext) {
13805
13656
  return true;
@@ -13810,25 +13661,25 @@ function requireWindows() {
13810
13661
  }
13811
13662
  for (var i2 = 0; i2 < pathext.length; i2++) {
13812
13663
  var p2 = pathext[i2].toLowerCase();
13813
- if (p2 && path11.substr(-p2.length).toLowerCase() === p2) {
13664
+ if (p2 && path12.substr(-p2.length).toLowerCase() === p2) {
13814
13665
  return true;
13815
13666
  }
13816
13667
  }
13817
13668
  return false;
13818
13669
  }
13819
- function checkStat2(stat, path11, options2) {
13670
+ function checkStat2(stat, path12, options2) {
13820
13671
  if (!stat.isSymbolicLink() && !stat.isFile()) {
13821
13672
  return false;
13822
13673
  }
13823
- return checkPathExt2(path11, options2);
13674
+ return checkPathExt2(path12, options2);
13824
13675
  }
13825
- function isexe2(path11, options2, cb) {
13826
- fs5.stat(path11, function(er, stat) {
13827
- cb(er, er ? false : checkStat2(stat, path11, options2));
13676
+ function isexe2(path12, options2, cb) {
13677
+ fs5.stat(path12, function(er, stat) {
13678
+ cb(er, er ? false : checkStat2(stat, path12, options2));
13828
13679
  });
13829
13680
  }
13830
- function sync2(path11, options2) {
13831
- return checkStat2(fs5.statSync(path11), path11, options2);
13681
+ function sync2(path12, options2) {
13682
+ return checkStat2(fs5.statSync(path12), path12, options2);
13832
13683
  }
13833
13684
  return windows;
13834
13685
  }
@@ -13840,13 +13691,13 @@ function requireMode() {
13840
13691
  mode = isexe2;
13841
13692
  isexe2.sync = sync2;
13842
13693
  var fs5 = import_fs3.default;
13843
- function isexe2(path11, options2, cb) {
13844
- fs5.stat(path11, function(er, stat) {
13694
+ function isexe2(path12, options2, cb) {
13695
+ fs5.stat(path12, function(er, stat) {
13845
13696
  cb(er, er ? false : checkStat2(stat, options2));
13846
13697
  });
13847
13698
  }
13848
- function sync2(path11, options2) {
13849
- return checkStat2(fs5.statSync(path11), options2);
13699
+ function sync2(path12, options2) {
13700
+ return checkStat2(fs5.statSync(path12), options2);
13850
13701
  }
13851
13702
  function checkStat2(stat, options2) {
13852
13703
  return stat.isFile() && checkMode2(stat, options2);
@@ -13874,7 +13725,7 @@ if (process.platform === "win32" || commonjsGlobal.TESTING_WINDOWS) {
13874
13725
  }
13875
13726
  var isexe_1 = isexe$4;
13876
13727
  isexe$4.sync = sync$2;
13877
- function isexe$4(path11, options2, cb) {
13728
+ function isexe$4(path12, options2, cb) {
13878
13729
  if (typeof options2 === "function") {
13879
13730
  cb = options2;
13880
13731
  options2 = {};
@@ -13884,7 +13735,7 @@ function isexe$4(path11, options2, cb) {
13884
13735
  throw new TypeError("callback not provided");
13885
13736
  }
13886
13737
  return new Promise(function(resolve3, reject) {
13887
- isexe$4(path11, options2 || {}, function(er, is) {
13738
+ isexe$4(path12, options2 || {}, function(er, is) {
13888
13739
  if (er) {
13889
13740
  reject(er);
13890
13741
  } else {
@@ -13893,7 +13744,7 @@ function isexe$4(path11, options2, cb) {
13893
13744
  });
13894
13745
  });
13895
13746
  }
13896
- core(path11, options2 || {}, function(er, is) {
13747
+ core(path12, options2 || {}, function(er, is) {
13897
13748
  if (er) {
13898
13749
  if (er.code === "EACCES" || options2 && options2.ignoreErrors) {
13899
13750
  er = null;
@@ -13903,9 +13754,9 @@ function isexe$4(path11, options2, cb) {
13903
13754
  cb(er, is);
13904
13755
  });
13905
13756
  }
13906
- function sync$2(path11, options2) {
13757
+ function sync$2(path12, options2) {
13907
13758
  try {
13908
- return core.sync(path11, options2 || {});
13759
+ return core.sync(path12, options2 || {});
13909
13760
  } catch (er) {
13910
13761
  if (options2 && options2.ignoreErrors || er.code === "EACCES") {
13911
13762
  return false;
@@ -14077,8 +13928,8 @@ var shebangCommand$1 = (string = "") => {
14077
13928
  if (!match) {
14078
13929
  return null;
14079
13930
  }
14080
- const [path11, argument] = match[0].replace(/#! ?/, "").split(" ");
14081
- const binary = path11.split("/").pop();
13931
+ const [path12, argument] = match[0].replace(/#! ?/, "").split(" ");
13932
+ const binary = path12.split("/").pop();
14082
13933
  if (binary === "env") {
14083
13934
  return argument;
14084
13935
  }
@@ -14099,7 +13950,7 @@ function readShebang$1(command) {
14099
13950
  return shebangCommand(buffer.toString());
14100
13951
  }
14101
13952
  var readShebang_1 = readShebang$1;
14102
- var path6 = import_path7.default;
13953
+ var path7 = import_path7.default;
14103
13954
  var resolveCommand = resolveCommand_1;
14104
13955
  var escape = _escape;
14105
13956
  var readShebang = readShebang_1;
@@ -14124,7 +13975,7 @@ function parseNonShell(parsed) {
14124
13975
  const needsShell = !isExecutableRegExp.test(commandFile);
14125
13976
  if (parsed.options.forceShell || needsShell) {
14126
13977
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
14127
- parsed.command = path6.normalize(parsed.command);
13978
+ parsed.command = path7.normalize(parsed.command);
14128
13979
  parsed.command = escape.command(parsed.command);
14129
13980
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
14130
13981
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -14242,27 +14093,27 @@ function pathKey(options2 = {}) {
14242
14093
  }
14243
14094
  function npmRunPath(options2 = {}) {
14244
14095
  const {
14245
- cwd: cwd2 = import_node_process2.default.cwd(),
14246
- path: path_ = import_node_process2.default.env[pathKey()],
14247
- execPath = import_node_process2.default.execPath
14096
+ cwd: cwd2 = import_node_process4.default.cwd(),
14097
+ path: path_ = import_node_process4.default.env[pathKey()],
14098
+ execPath = import_node_process4.default.execPath
14248
14099
  } = options2;
14249
14100
  let previous;
14250
- const cwdString = cwd2 instanceof URL ? import_node_url.default.fileURLToPath(cwd2) : cwd2;
14251
- let cwdPath = import_node_path.default.resolve(cwdString);
14101
+ const cwdString = cwd2 instanceof URL ? import_node_url2.default.fileURLToPath(cwd2) : cwd2;
14102
+ let cwdPath = import_node_path2.default.resolve(cwdString);
14252
14103
  const result = [];
14253
14104
  while (previous !== cwdPath) {
14254
- result.push(import_node_path.default.join(cwdPath, "node_modules/.bin"));
14105
+ result.push(import_node_path2.default.join(cwdPath, "node_modules/.bin"));
14255
14106
  previous = cwdPath;
14256
- cwdPath = import_node_path.default.resolve(cwdPath, "..");
14107
+ cwdPath = import_node_path2.default.resolve(cwdPath, "..");
14257
14108
  }
14258
- result.push(import_node_path.default.resolve(cwdString, execPath, ".."));
14259
- return [...result, path_].join(import_node_path.default.delimiter);
14109
+ result.push(import_node_path2.default.resolve(cwdString, execPath, ".."));
14110
+ return [...result, path_].join(import_node_path2.default.delimiter);
14260
14111
  }
14261
- function npmRunPathEnv({ env: env3 = import_node_process2.default.env, ...options2 } = {}) {
14112
+ function npmRunPathEnv({ env: env3 = import_node_process4.default.env, ...options2 } = {}) {
14262
14113
  env3 = { ...env3 };
14263
- const path11 = pathKey({ env: env3 });
14264
- options2.path = env3[path11];
14265
- env3[path11] = npmRunPath(options2);
14114
+ const path12 = pathKey({ env: env3 });
14115
+ options2.path = env3[path12];
14116
+ env3[path12] = npmRunPath(options2);
14266
14117
  return env3;
14267
14118
  }
14268
14119
  var copyProperty = (to, from, property2, ignoreNonConfigurable) => {
@@ -14719,7 +14570,7 @@ var makeError = ({
14719
14570
  timedOut,
14720
14571
  isCanceled,
14721
14572
  killed,
14722
- parsed: { options: { timeout, cwd: cwd2 = import_node_process2.default.cwd() } }
14573
+ parsed: { options: { timeout, cwd: cwd2 = import_node_process4.default.cwd() } }
14723
14574
  }) => {
14724
14575
  exitCode = exitCode === null ? void 0 : exitCode;
14725
14576
  signal = signal === null ? void 0 : signal;
@@ -14802,7 +14653,7 @@ if (process.platform !== "win32") {
14802
14653
  if (process.platform === "linux") {
14803
14654
  signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
14804
14655
  }
14805
- var processOk = (process3) => !!process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
14656
+ var processOk = (process5) => !!process5 && typeof process5 === "object" && typeof process5.removeListener === "function" && typeof process5.emit === "function" && typeof process5.reallyExit === "function" && typeof process5.listeners === "function" && typeof process5.kill === "function" && typeof process5.pid === "number" && typeof process5.on === "function";
14806
14657
  var kExitEmitter = Symbol.for("signal-exit emitter");
14807
14658
  var global$1 = globalThis;
14808
14659
  var ObjectDefineProperty = Object.defineProperty.bind(Object);
@@ -14895,15 +14746,15 @@ var SignalExit = class extends SignalExitBase {
14895
14746
  #originalProcessReallyExit;
14896
14747
  #sigListeners = {};
14897
14748
  #loaded = false;
14898
- constructor(process3) {
14749
+ constructor(process5) {
14899
14750
  super();
14900
- this.#process = process3;
14751
+ this.#process = process5;
14901
14752
  this.#sigListeners = {};
14902
14753
  for (const sig of signals) {
14903
14754
  this.#sigListeners[sig] = () => {
14904
14755
  const listeners = this.#process.listeners(sig);
14905
14756
  let { count } = this.#emitter;
14906
- const p2 = process3;
14757
+ const p2 = process5;
14907
14758
  if (typeof p2.__signal_exit_emitter__ === "object" && typeof p2.__signal_exit_emitter__.count === "number") {
14908
14759
  count += p2.__signal_exit_emitter__.count;
14909
14760
  }
@@ -14912,12 +14763,12 @@ var SignalExit = class extends SignalExitBase {
14912
14763
  const ret = this.#emitter.emit("exit", null, sig);
14913
14764
  const s2 = sig === "SIGHUP" ? this.#hupSig : sig;
14914
14765
  if (!ret)
14915
- process3.kill(process3.pid, s2);
14766
+ process5.kill(process5.pid, s2);
14916
14767
  }
14917
14768
  };
14918
14769
  }
14919
- this.#originalProcessReallyExit = process3.reallyExit;
14920
- this.#originalProcessEmit = process3.emit;
14770
+ this.#originalProcessReallyExit = process5.reallyExit;
14771
+ this.#originalProcessEmit = process5.emit;
14921
14772
  }
14922
14773
  onExit(cb, opts) {
14923
14774
  if (!processOk(this.#process)) {
@@ -15379,7 +15230,7 @@ var getBufferedData = async (stream2, streamPromise) => {
15379
15230
  if (!stream2 || streamPromise === void 0) {
15380
15231
  return;
15381
15232
  }
15382
- await (0, import_promises2.setTimeout)(0);
15233
+ await (0, import_promises3.setTimeout)(0);
15383
15234
  stream2.destroy();
15384
15235
  try {
15385
15236
  return await streamPromise;
@@ -15481,12 +15332,12 @@ var logCommand = (escapedCommand, { verbose }) => {
15481
15332
  if (!verbose) {
15482
15333
  return;
15483
15334
  }
15484
- import_node_process2.default.stderr.write(`[${getTimestamp()}] ${escapedCommand}
15335
+ import_node_process4.default.stderr.write(`[${getTimestamp()}] ${escapedCommand}
15485
15336
  `);
15486
15337
  };
15487
15338
  var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
15488
15339
  var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
15489
- const env3 = extendEnv ? { ...import_node_process2.default.env, ...envOption } : envOption;
15340
+ const env3 = extendEnv ? { ...import_node_process4.default.env, ...envOption } : envOption;
15490
15341
  if (preferLocal) {
15491
15342
  return npmRunPathEnv({ env: env3, cwd: localDir, execPath });
15492
15343
  }
@@ -15503,8 +15354,8 @@ var handleArguments = (file2, args, options2 = {}) => {
15503
15354
  stripFinalNewline: true,
15504
15355
  extendEnv: true,
15505
15356
  preferLocal: false,
15506
- localDir: options2.cwd || import_node_process2.default.cwd(),
15507
- execPath: import_node_process2.default.execPath,
15357
+ localDir: options2.cwd || import_node_process4.default.cwd(),
15358
+ execPath: import_node_process4.default.execPath,
15508
15359
  encoding: "utf8",
15509
15360
  reject: true,
15510
15361
  cleanup: true,
@@ -15515,7 +15366,7 @@ var handleArguments = (file2, args, options2 = {}) => {
15515
15366
  };
15516
15367
  options2.env = getEnv(options2);
15517
15368
  options2.stdio = normalizeStdio(options2);
15518
- if (import_node_process2.default.platform === "win32" && import_node_path.default.basename(file2, ".exe") === "cmd") {
15369
+ if (import_node_process4.default.platform === "win32" && import_node_path2.default.basename(file2, ".exe") === "cmd") {
15519
15370
  args.unshift("/q");
15520
15371
  }
15521
15372
  return { file: file2, args, options: options2, parsed };
@@ -15750,9 +15601,9 @@ function checkType(type) {
15750
15601
  throw new Error(`Invalid type specified: ${type}`);
15751
15602
  }
15752
15603
  var matchType = (type, stat) => stat[typeMappings2[type]]();
15753
- var toPath$1 = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
15604
+ var toPath$1 = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
15754
15605
  async function locatePath2(paths2, {
15755
- cwd: cwd2 = import_node_process2.default.cwd(),
15606
+ cwd: cwd2 = import_node_process4.default.cwd(),
15756
15607
  type = "file",
15757
15608
  allowSymlinks = true,
15758
15609
  concurrency,
@@ -15763,19 +15614,19 @@ async function locatePath2(paths2, {
15763
15614
  const statFunction = allowSymlinks ? import_node_fs.promises.stat : import_node_fs.promises.lstat;
15764
15615
  return pLocate2(paths2, async (path_) => {
15765
15616
  try {
15766
- const stat = await statFunction(import_node_path.default.resolve(cwd2, path_));
15617
+ const stat = await statFunction(import_node_path2.default.resolve(cwd2, path_));
15767
15618
  return matchType(type, stat);
15768
15619
  } catch {
15769
15620
  return false;
15770
15621
  }
15771
15622
  }, { concurrency, preserveOrder });
15772
15623
  }
15773
- var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
15624
+ var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
15774
15625
  var findUpStop2 = Symbol("findUpStop");
15775
15626
  async function findUpMultiple(name, options2 = {}) {
15776
- let directory = import_node_path.default.resolve(toPath(options2.cwd) || "");
15777
- const { root } = import_node_path.default.parse(directory);
15778
- const stopAt = import_node_path.default.resolve(directory, options2.stopAt || root);
15627
+ let directory = import_node_path2.default.resolve(toPath2(options2.cwd) || "");
15628
+ const { root } = import_node_path2.default.parse(directory);
15629
+ const stopAt = import_node_path2.default.resolve(directory, options2.stopAt || root);
15779
15630
  const limit = options2.limit || Number.POSITIVE_INFINITY;
15780
15631
  const paths2 = [name].flat();
15781
15632
  const runMatcher = async (locateOptions) => {
@@ -15795,16 +15646,16 @@ async function findUpMultiple(name, options2 = {}) {
15795
15646
  break;
15796
15647
  }
15797
15648
  if (foundPath) {
15798
- matches.push(import_node_path.default.resolve(directory, foundPath));
15649
+ matches.push(import_node_path2.default.resolve(directory, foundPath));
15799
15650
  }
15800
15651
  if (directory === stopAt || matches.length >= limit) {
15801
15652
  break;
15802
15653
  }
15803
- directory = import_node_path.default.dirname(directory);
15654
+ directory = import_node_path2.default.dirname(directory);
15804
15655
  }
15805
15656
  return matches;
15806
15657
  }
15807
- async function findUp2(name, options2 = {}) {
15658
+ async function findUp3(name, options2 = {}) {
15808
15659
  const matches = await findUpMultiple(name, { ...options2, limit: 1 });
15809
15660
  return matches[0];
15810
15661
  }
@@ -18199,11 +18050,11 @@ var posix$1 = {};
18199
18050
  Object.defineProperty(posix$1, "__esModule", { value: true });
18200
18051
  posix$1.sync = posix$1.isexe = void 0;
18201
18052
  var fs_1$1 = import_fs3.default;
18202
- var promises_1$1 = import_promises3.default;
18203
- var isexe$2 = async (path11, options2 = {}) => {
18053
+ var promises_1$1 = import_promises4.default;
18054
+ var isexe$2 = async (path12, options2 = {}) => {
18204
18055
  const { ignoreErrors = false } = options2;
18205
18056
  try {
18206
- return checkStat$1(await (0, promises_1$1.stat)(path11), options2);
18057
+ return checkStat$1(await (0, promises_1$1.stat)(path12), options2);
18207
18058
  } catch (e2) {
18208
18059
  const er = e2;
18209
18060
  if (ignoreErrors || er.code === "EACCES")
@@ -18212,10 +18063,10 @@ var isexe$2 = async (path11, options2 = {}) => {
18212
18063
  }
18213
18064
  };
18214
18065
  posix$1.isexe = isexe$2;
18215
- var sync$1 = (path11, options2 = {}) => {
18066
+ var sync$1 = (path12, options2 = {}) => {
18216
18067
  const { ignoreErrors = false } = options2;
18217
18068
  try {
18218
- return checkStat$1((0, fs_1$1.statSync)(path11), options2);
18069
+ return checkStat$1((0, fs_1$1.statSync)(path12), options2);
18219
18070
  } catch (e2) {
18220
18071
  const er = e2;
18221
18072
  if (ignoreErrors || er.code === "EACCES")
@@ -18246,11 +18097,11 @@ var win32 = {};
18246
18097
  Object.defineProperty(win32, "__esModule", { value: true });
18247
18098
  win32.sync = win32.isexe = void 0;
18248
18099
  var fs_1 = import_fs3.default;
18249
- var promises_1 = import_promises3.default;
18250
- var isexe$1 = async (path11, options2 = {}) => {
18100
+ var promises_1 = import_promises4.default;
18101
+ var isexe$1 = async (path12, options2 = {}) => {
18251
18102
  const { ignoreErrors = false } = options2;
18252
18103
  try {
18253
- return checkStat(await (0, promises_1.stat)(path11), path11, options2);
18104
+ return checkStat(await (0, promises_1.stat)(path12), path12, options2);
18254
18105
  } catch (e2) {
18255
18106
  const er = e2;
18256
18107
  if (ignoreErrors || er.code === "EACCES")
@@ -18259,10 +18110,10 @@ var isexe$1 = async (path11, options2 = {}) => {
18259
18110
  }
18260
18111
  };
18261
18112
  win32.isexe = isexe$1;
18262
- var sync = (path11, options2 = {}) => {
18113
+ var sync = (path12, options2 = {}) => {
18263
18114
  const { ignoreErrors = false } = options2;
18264
18115
  try {
18265
- return checkStat((0, fs_1.statSync)(path11), path11, options2);
18116
+ return checkStat((0, fs_1.statSync)(path12), path12, options2);
18266
18117
  } catch (e2) {
18267
18118
  const er = e2;
18268
18119
  if (ignoreErrors || er.code === "EACCES")
@@ -18271,7 +18122,7 @@ var sync = (path11, options2 = {}) => {
18271
18122
  }
18272
18123
  };
18273
18124
  win32.sync = sync;
18274
- var checkPathExt = (path11, options2) => {
18125
+ var checkPathExt = (path12, options2) => {
18275
18126
  const { pathExt = process.env.PATHEXT || "" } = options2;
18276
18127
  const peSplit = pathExt.split(";");
18277
18128
  if (peSplit.indexOf("") !== -1) {
@@ -18279,14 +18130,14 @@ var checkPathExt = (path11, options2) => {
18279
18130
  }
18280
18131
  for (let i2 = 0; i2 < peSplit.length; i2++) {
18281
18132
  const p2 = peSplit[i2].toLowerCase();
18282
- const ext = path11.substring(path11.length - p2.length).toLowerCase();
18133
+ const ext = path12.substring(path12.length - p2.length).toLowerCase();
18283
18134
  if (p2 && ext === p2) {
18284
18135
  return true;
18285
18136
  }
18286
18137
  }
18287
18138
  return false;
18288
18139
  };
18289
- var checkStat = (stat, path11, options2) => stat.isFile() && checkPathExt(path11, options2);
18140
+ var checkStat = (stat, path12, options2) => stat.isFile() && checkPathExt(path12, options2);
18290
18141
  var options = {};
18291
18142
  Object.defineProperty(options, "__esModule", { value: true });
18292
18143
  (function(exports2) {
@@ -18415,19 +18266,19 @@ var whichSync = (cmd, opt = {}) => {
18415
18266
  var lib = which;
18416
18267
  which.sync = whichSync;
18417
18268
  var which$1 = /* @__PURE__ */ getDefaultExportFromCjs(lib);
18418
- var CLI_TEMP_DIR = (0, import_node_path.join)(import_node_os.default.tmpdir(), "antfu-ni");
18269
+ var CLI_TEMP_DIR = (0, import_node_path2.join)(import_node_os.default.tmpdir(), "antfu-ni");
18419
18270
  function cmdExists(cmd) {
18420
18271
  return which$1.sync(cmd, { nothrow: true }) !== null;
18421
18272
  }
18422
18273
  async function detect({ autoInstall, programmatic, cwd: cwd2 } = {}) {
18423
18274
  let agent = null;
18424
18275
  let version2 = null;
18425
- const lockPath = await findUp2(Object.keys(LOCKS), { cwd: cwd2 });
18276
+ const lockPath = await findUp3(Object.keys(LOCKS), { cwd: cwd2 });
18426
18277
  let packageJsonPath;
18427
18278
  if (lockPath)
18428
- packageJsonPath = import_node_path.default.resolve(lockPath, "../package.json");
18279
+ packageJsonPath = import_node_path2.default.resolve(lockPath, "../package.json");
18429
18280
  else
18430
- packageJsonPath = await findUp2("package.json", { cwd: cwd2 });
18281
+ packageJsonPath = await findUp3("package.json", { cwd: cwd2 });
18431
18282
  if (packageJsonPath && import_node_fs.default.existsSync(packageJsonPath)) {
18432
18283
  try {
18433
18284
  const pkg = JSON.parse(import_node_fs.default.readFileSync(packageJsonPath, "utf8"));
@@ -18449,13 +18300,13 @@ async function detect({ autoInstall, programmatic, cwd: cwd2 } = {}) {
18449
18300
  }
18450
18301
  }
18451
18302
  if (!agent && lockPath)
18452
- agent = LOCKS[import_node_path.default.basename(lockPath)];
18303
+ agent = LOCKS[import_node_path2.default.basename(lockPath)];
18453
18304
  if (agent && !cmdExists(agent.split("@")[0]) && !programmatic) {
18454
18305
  if (!autoInstall) {
18455
18306
  console.warn(`[ni] Detected ${agent} but it doesn't seem to be installed.
18456
18307
  `);
18457
- if (import_node_process2.default.env.CI)
18458
- import_node_process2.default.exit(1);
18308
+ if (import_node_process4.default.env.CI)
18309
+ import_node_process4.default.exit(1);
18459
18310
  const link = terminalLink(agent, INSTALL_PAGE[agent]);
18460
18311
  const { tryInstall } = await prompts$1({
18461
18312
  name: "tryInstall",
@@ -18463,15 +18314,15 @@ async function detect({ autoInstall, programmatic, cwd: cwd2 } = {}) {
18463
18314
  message: `Would you like to globally install ${link}?`
18464
18315
  });
18465
18316
  if (!tryInstall)
18466
- import_node_process2.default.exit(1);
18317
+ import_node_process4.default.exit(1);
18467
18318
  }
18468
18319
  await execaCommand(`npm i -g ${agent.split("@")[0]}${version2 ? `@${version2}` : ""}`, { stdio: "inherit", cwd: cwd2 });
18469
18320
  }
18470
18321
  return agent;
18471
18322
  }
18472
- var customRcPath = import_node_process2.default.env.NI_CONFIG_FILE;
18473
- var home = import_node_process2.default.platform === "win32" ? import_node_process2.default.env.USERPROFILE : import_node_process2.default.env.HOME;
18474
- var defaultRcPath = import_node_path.default.join(home || "~/", ".nirc");
18323
+ var customRcPath = import_node_process4.default.env.NI_CONFIG_FILE;
18324
+ var home = import_node_process4.default.platform === "win32" ? import_node_process4.default.env.USERPROFILE : import_node_process4.default.env.HOME;
18325
+ var defaultRcPath = import_node_path2.default.join(home || "~/", ".nirc");
18475
18326
  var UnsupportedCommand = class extends Error {
18476
18327
  constructor({ agent, command }) {
18477
18328
  super(`Command "${command}" is not support by agent "${agent}"`);
@@ -18622,7 +18473,7 @@ async function resolveOrInstallPrismaClient(baseDir, version2) {
18622
18473
  projectRoot = baseDir;
18623
18474
  }
18624
18475
  try {
18625
- await import_promises4.default.stat(import_node_path2.default.join(projectRoot, "package.json"));
18476
+ await import_promises5.default.stat(import_node_path3.default.join(projectRoot, "package.json"));
18626
18477
  } catch (err) {
18627
18478
  if (err.code === "ENOENT") {
18628
18479
  console.warn(
@@ -18654,7 +18505,7 @@ async function resolveOrInstallPrismaClient(baseDir, version2) {
18654
18505
  await runPackageCmd(projectRoot, "add", `prisma@${version2}`, "-D", "--silent");
18655
18506
  }
18656
18507
  await runPackageCmd(projectRoot, "add", `@prisma/client@${version2}`, "--silent");
18657
- prismaClientDir = await findPrismaClientDir(import_node_path2.default.join(".", baseDir));
18508
+ prismaClientDir = await findPrismaClientDir(import_node_path3.default.join(".", baseDir));
18658
18509
  if (!prismaClientDir) {
18659
18510
  throw new Error(
18660
18511
  `Could not resolve @prisma/client despite the installation that we just tried.
@@ -18673,12 +18524,12 @@ async function findPrismaClientDir(baseDir) {
18673
18524
  const resolveOpts = { basedir: baseDir, preserveSymlinks: true };
18674
18525
  const cliDir = await resolvePkg("prisma", resolveOpts);
18675
18526
  const clientDir = await resolvePkg("@prisma/client", resolveOpts);
18676
- const resolvedClientDir = clientDir && await import_promises4.default.realpath(clientDir);
18527
+ const resolvedClientDir = clientDir && await import_promises5.default.realpath(clientDir);
18677
18528
  debug3("prismaCliDir", cliDir);
18678
18529
  debug3("prismaClientDir", clientDir);
18679
18530
  if (cliDir === void 0) return resolvedClientDir;
18680
18531
  if (clientDir === void 0) return resolvedClientDir;
18681
- const relDir = import_node_path2.default.relative(cliDir, clientDir).split(import_node_path2.default.sep);
18532
+ const relDir = import_node_path3.default.relative(cliDir, clientDir).split(import_node_path3.default.sep);
18682
18533
  if (relDir[0] !== ".." || relDir[1] === "..") return void 0;
18683
18534
  return resolvedClientDir;
18684
18535
  }
@@ -18754,14 +18605,14 @@ var PrismaClientJsGenerator = class {
18754
18605
  if (this.#cachedPrismaClientPath) {
18755
18606
  return this.#cachedPrismaClientPath;
18756
18607
  }
18757
- this.#cachedPrismaClientPath = await this.#resolveOrInstallPrismaClient(import_node_path3.default.dirname(config.sourceFilePath));
18608
+ this.#cachedPrismaClientPath = await this.#resolveOrInstallPrismaClient(import_node_path4.default.dirname(config.sourceFilePath));
18758
18609
  return this.#cachedPrismaClientPath;
18759
18610
  }
18760
18611
  async #getRuntimePath(config) {
18761
18612
  if (this.#runtimePath) {
18762
18613
  return this.#runtimePath;
18763
18614
  }
18764
- this.#runtimePath = import_node_path3.default.join(await this.#getPrismaClientPath(config), "runtime");
18615
+ this.#runtimePath = import_node_path4.default.join(await this.#getPrismaClientPath(config), "runtime");
18765
18616
  return this.#runtimePath;
18766
18617
  }
18767
18618
  async #resolveOrInstallPrismaClient(baseDir) {
@@ -18774,7 +18625,7 @@ var PrismaClientJsGenerator = class {
18774
18625
  };
18775
18626
 
18776
18627
  // ../client-generator-js/src/utils/types/dmmfToTypes.ts
18777
- var import_node_path4 = __toESM(require("node:path"));
18628
+ var import_node_path5 = __toESM(require("node:path"));
18778
18629
  function dmmfToTypes(dmmf) {
18779
18630
  return new TSClient({
18780
18631
  dmmf,
@@ -18784,7 +18635,7 @@ function dmmfToTypes(dmmf) {
18784
18635
  runtimeBase: "@prisma/client",
18785
18636
  runtimeNameJs: "library",
18786
18637
  runtimeNameTs: "library",
18787
- runtimeSourcePath: import_node_path4.default.join(__dirname, "../../../runtime"),
18638
+ runtimeSourcePath: import_node_path5.default.join(__dirname, "../../../runtime"),
18788
18639
  schemaPath: "",
18789
18640
  outputDir: "",
18790
18641
  activeProvider: "",
@@ -18814,7 +18665,7 @@ function dmmfToTypes(dmmf) {
18814
18665
  if (process.argv[1] === __filename) {
18815
18666
  const generator = new PrismaClientJsGenerator({
18816
18667
  shouldResolvePrismaClient: false,
18817
- runtimePath: import_node_path5.default.join(__dirname, "..", "runtime")
18668
+ runtimePath: import_node_path6.default.join(__dirname, "..", "runtime")
18818
18669
  });
18819
18670
  generatorHandler({
18820
18671
  onManifest(config) {