@prisma/internals 5.23.0-dev.3 → 5.23.0-dev.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/{chunk-INHGTPT5.js → chunk-2QKZVM2V.js} +14 -14
  2. package/dist/{chunk-CSRUIX22.js → chunk-2V6E3NJE.js} +11 -11
  3. package/dist/{chunk-QEVSPE5U.js → chunk-4UICZCJY.js} +5 -5
  4. package/dist/{chunk-5I4BOTBV.js → chunk-5MCWLJSR.js} +3 -9
  5. package/dist/{chunk-IABMG3F4.js → chunk-77IC3DNO.js} +5 -5
  6. package/dist/{chunk-WMIBAVWZ.js → chunk-C47SCASR.js} +5 -5
  7. package/dist/{chunk-J3JE5NVO.js → chunk-CZDIXJEO.js} +56 -32
  8. package/dist/{chunk-4ILHL6B6.js → chunk-D3LFVZLN.js} +5 -5
  9. package/dist/{chunk-U5YRV2DX.js → chunk-FVGHMKZ4.js} +12 -12
  10. package/dist/{chunk-OSOXVAZB.js → chunk-HPF5G47V.js} +9 -9
  11. package/dist/{chunk-IAEMHQAC.js → chunk-I4467NNA.js} +5 -5
  12. package/dist/{chunk-5UACJAAB.js → chunk-IU2KEKIW.js} +13 -13
  13. package/dist/{chunk-ARF6SWJF.js → chunk-JATUFQUW.js} +61 -172
  14. package/dist/{chunk-4NFLAUKD.js → chunk-KQOJB3ZW.js} +70 -70
  15. package/dist/{chunk-LIB5PV7H.js → chunk-KVN6IW67.js} +5 -5
  16. package/dist/{chunk-KRKPM7DP.js → chunk-L7ZGUCB6.js} +5 -5
  17. package/dist/{chunk-3U2ANLD3.js → chunk-MGZOEY6N.js} +6 -6
  18. package/dist/{chunk-KVN73FD7.js → chunk-O42DIVPW.js} +11 -11
  19. package/dist/{chunk-SZKPXBSP.js → chunk-OF2M4ACU.js} +12 -12
  20. package/dist/{chunk-ZMMFFAZY.js → chunk-QTR66D2H.js} +5 -5
  21. package/dist/{chunk-7NNOHWLC.js → chunk-R4E6C4CX.js} +837 -177
  22. package/dist/{chunk-FTS2IEWX.js → chunk-S57RMXZW.js} +5 -5
  23. package/dist/{chunk-XLYQ6PQW.js → chunk-SLBBRUQS.js} +15 -15
  24. package/dist/{chunk-ZY4F5GPM.js → chunk-TCUF6GAF.js} +5 -5
  25. package/dist/{chunk-WJNKNGND.js → chunk-TGTMHYII.js} +13 -13
  26. package/dist/{chunk-PK7HIANT.js → chunk-TROE7RQA.js} +7 -7
  27. package/dist/{chunk-WCRKL55L.js → chunk-V2ZF7ETH.js} +7 -7
  28. package/dist/{chunk-RAJSVWMK.js → chunk-V77BRSP2.js} +14 -14
  29. package/dist/{chunk-4M4LPJPC.js → chunk-VAAPHITN.js} +5 -5
  30. package/dist/{chunk-YDZVEVUG.js → chunk-VRT7T6MF.js} +73 -73
  31. package/dist/{chunk-CCFQQATH.js → chunk-W423I6QD.js} +5 -5
  32. package/dist/{chunk-BATSRJXK.js → chunk-WBU4GQXU.js} +8 -8
  33. package/dist/{chunk-ZA3RMW2P.js → chunk-ZKAW5JSN.js} +5 -8
  34. package/dist/cli/checkUnsupportedDataProxy.js +25 -25
  35. package/dist/cli/getSchema.js +30 -30
  36. package/dist/cli/hashes.js +25 -25
  37. package/dist/engine-commands/errorHelpers.js +4 -4
  38. package/dist/engine-commands/formatSchema.js +24 -24
  39. package/dist/engine-commands/getConfig.js +12 -12
  40. package/dist/engine-commands/getDmmf.js +9 -9
  41. package/dist/engine-commands/index.js +33 -33
  42. package/dist/engine-commands/lintSchema.js +8 -8
  43. package/dist/engine-commands/mergeSchemas.js +9 -9
  44. package/dist/engine-commands/queryEngineCommons.js +6 -6
  45. package/dist/engine-commands/relativizePathInPSLError.js +2 -2
  46. package/dist/engine-commands/validate.js +9 -9
  47. package/dist/errorReporting.js +6 -6
  48. package/dist/get-generators/generatorResolvers/generatorResolvers.js +24 -24
  49. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +3 -3
  50. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +4 -4
  51. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +24 -24
  52. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +3 -3
  53. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +25 -25
  54. package/dist/get-generators/getGenerators.js +27 -27
  55. package/dist/getPackedPackage.js +2 -2
  56. package/dist/index.js +58 -58
  57. package/dist/{multipart-parser-LCETWFPE.js → multipart-parser-32AROPTR.js} +9 -6
  58. package/dist/sendPanic.js +24 -24
  59. package/dist/utils/cloudflareD1.js +2 -2
  60. package/dist/utils/getCommandWithExecutor.js +3 -3
  61. package/dist/utils/getEnvPaths.js +24 -24
  62. package/dist/utils/getGitHubIssueUrl.js +3 -3
  63. package/dist/utils/getVersionFromPackageJson.js +3 -3
  64. package/dist/utils/handlePanic.js +24 -24
  65. package/dist/utils/isCurrentBinInstalledGlobally.d.ts +1 -1
  66. package/dist/utils/isCurrentBinInstalledGlobally.js +2 -2
  67. package/dist/utils/loadEnvFile.js +24 -24
  68. package/dist/wasm.js +4 -4
  69. package/package.json +11 -11
  70. package/dist/chunk-2DXAGCPS.js +0 -177
  71. package/dist/chunk-5XRQ7ONW.js +0 -122
  72. package/dist/chunk-QIVUAERL.js +0 -2202
  73. package/dist/chunk-QJZIYUVB.js +0 -110
  74. package/dist/chunk-TFSZCVKC.js +0 -166
  75. package/dist/chunk-V2VWODV3.js +0 -54
  76. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.d.ts +0 -9
  77. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +0 -132
@@ -26,11 +26,10 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_7NNOHWLC_exports = {};
30
- __export2(chunk_7NNOHWLC_exports, {
29
+ var chunk_R4E6C4CX_exports = {};
30
+ __export2(chunk_R4E6C4CX_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
- checkYarnVersion: () => checkYarnVersion,
34
33
  debug: () => debug5,
35
34
  forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
36
35
  formatSchema: () => formatSchema,
@@ -56,15 +55,15 @@ __export2(chunk_7NNOHWLC_exports, {
56
55
  sendPanic: () => sendPanic,
57
56
  skipIndex: () => skipIndex
58
57
  });
59
- module.exports = __toCommonJS2(chunk_7NNOHWLC_exports);
60
- var import_chunk_IABMG3F4 = require("./chunk-IABMG3F4.js");
61
- var import_chunk_3U2ANLD3 = require("./chunk-3U2ANLD3.js");
62
- var import_chunk_FTS2IEWX = require("./chunk-FTS2IEWX.js");
58
+ module.exports = __toCommonJS2(chunk_R4E6C4CX_exports);
59
+ var import_chunk_77IC3DNO = require("./chunk-77IC3DNO.js");
60
+ var import_chunk_MGZOEY6N = require("./chunk-MGZOEY6N.js");
61
+ var import_chunk_S57RMXZW = require("./chunk-S57RMXZW.js");
63
62
  var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
64
63
  var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
65
64
  var import_chunk_KEBDP2C3 = require("./chunk-KEBDP2C3.js");
66
65
  var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
67
- var import_chunk_5XRQ7ONW = require("./chunk-5XRQ7ONW.js");
66
+ var import_chunk_D4MCOTL5 = require("./chunk-D4MCOTL5.js");
68
67
  var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
69
68
  var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
70
69
  var import_chunk_ONHKZPSV = require("./chunk-ONHKZPSV.js");
@@ -77,27 +76,25 @@ var import_chunk_2MWIMEFK = require("./chunk-2MWIMEFK.js");
77
76
  var import_chunk_L6GBFCXG = require("./chunk-L6GBFCXG.js");
78
77
  var import_chunk_KDHESRKE = require("./chunk-KDHESRKE.js");
79
78
  var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
80
- var import_chunk_XLYQ6PQW = require("./chunk-XLYQ6PQW.js");
79
+ var import_chunk_SLBBRUQS = require("./chunk-SLBBRUQS.js");
81
80
  var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
82
81
  var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
83
82
  var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
84
- var import_chunk_4M4LPJPC = require("./chunk-4M4LPJPC.js");
85
- var import_chunk_SZKPXBSP = require("./chunk-SZKPXBSP.js");
86
- var import_chunk_INHGTPT5 = require("./chunk-INHGTPT5.js");
87
- var import_chunk_CSRUIX22 = require("./chunk-CSRUIX22.js");
83
+ var import_chunk_VAAPHITN = require("./chunk-VAAPHITN.js");
84
+ var import_chunk_OF2M4ACU = require("./chunk-OF2M4ACU.js");
85
+ var import_chunk_V77BRSP2 = require("./chunk-V77BRSP2.js");
86
+ var import_chunk_2V6E3NJE = require("./chunk-2V6E3NJE.js");
88
87
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
89
88
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
90
- var import_chunk_QEVSPE5U = require("./chunk-QEVSPE5U.js");
89
+ var import_chunk_W423I6QD = require("./chunk-W423I6QD.js");
91
90
  var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
92
91
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
93
92
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
94
- var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
95
93
  var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
96
- var import_chunk_QIVUAERL = require("./chunk-QIVUAERL.js");
97
94
  var import_chunk_635TMBAP = require("./chunk-635TMBAP.js");
98
95
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
99
- var import_chunk_4NFLAUKD = require("./chunk-4NFLAUKD.js");
100
- var import_chunk_J3JE5NVO = require("./chunk-J3JE5NVO.js");
96
+ var import_chunk_KQOJB3ZW = require("./chunk-KQOJB3ZW.js");
97
+ var import_chunk_CZDIXJEO = require("./chunk-CZDIXJEO.js");
101
98
  var import_chunk_FUUQ6FJ4 = require("./chunk-FUUQ6FJ4.js");
102
99
  var import_chunk_KKMREGHN = require("./chunk-KKMREGHN.js");
103
100
  var import_chunk_AZNLB67U = require("./chunk-AZNLB67U.js");
@@ -441,7 +438,7 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
441
438
  module2.exports = readdirGlob;
442
439
  var fs8 = (0, import_chunk_WWAWV7DQ.__require)("fs");
443
440
  var { EventEmitter } = (0, import_chunk_WWAWV7DQ.__require)("events");
444
- var { Minimatch } = (0, import_chunk_J3JE5NVO.require_minimatch)();
441
+ var { Minimatch } = (0, import_chunk_CZDIXJEO.require_minimatch)();
445
442
  var { resolve } = (0, import_chunk_WWAWV7DQ.__require)("path");
446
443
  function readdir(dir2, strict) {
447
444
  return new Promise((resolve2, reject2) => {
@@ -456,12 +453,16 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
456
453
  }
457
454
  break;
458
455
  case "ENOTSUP":
456
+ // Operation not supported
459
457
  case "ENOENT":
458
+ // No such file or directory
460
459
  case "ENAMETOOLONG":
460
+ // Filename too long
461
461
  case "UNKNOWN":
462
462
  resolve2([]);
463
463
  break;
464
464
  case "ELOOP":
465
+ // Too many levels of symbolic links
465
466
  default:
466
467
  reject2(err);
467
468
  break;
@@ -2507,6 +2508,778 @@ var init_async = (0, import_chunk_WWAWV7DQ.__esm)({
2507
2508
  async_default = index;
2508
2509
  }
2509
2510
  });
2511
+ var require_polyfills = (0, import_chunk_WWAWV7DQ.__commonJS)({
2512
+ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports2, module2) {
2513
+ "use strict";
2514
+ var constants2 = (0, import_chunk_WWAWV7DQ.__require)("constants");
2515
+ var origCwd = process.cwd;
2516
+ var cwd = null;
2517
+ var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
2518
+ process.cwd = function() {
2519
+ if (!cwd)
2520
+ cwd = origCwd.call(process);
2521
+ return cwd;
2522
+ };
2523
+ try {
2524
+ process.cwd();
2525
+ } catch (er) {
2526
+ }
2527
+ if (typeof process.chdir === "function") {
2528
+ chdir = process.chdir;
2529
+ process.chdir = function(d2) {
2530
+ cwd = null;
2531
+ chdir.call(process, d2);
2532
+ };
2533
+ if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
2534
+ }
2535
+ var chdir;
2536
+ module2.exports = patch;
2537
+ function patch(fs8) {
2538
+ if (constants2.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
2539
+ patchLchmod(fs8);
2540
+ }
2541
+ if (!fs8.lutimes) {
2542
+ patchLutimes(fs8);
2543
+ }
2544
+ fs8.chown = chownFix(fs8.chown);
2545
+ fs8.fchown = chownFix(fs8.fchown);
2546
+ fs8.lchown = chownFix(fs8.lchown);
2547
+ fs8.chmod = chmodFix(fs8.chmod);
2548
+ fs8.fchmod = chmodFix(fs8.fchmod);
2549
+ fs8.lchmod = chmodFix(fs8.lchmod);
2550
+ fs8.chownSync = chownFixSync(fs8.chownSync);
2551
+ fs8.fchownSync = chownFixSync(fs8.fchownSync);
2552
+ fs8.lchownSync = chownFixSync(fs8.lchownSync);
2553
+ fs8.chmodSync = chmodFixSync(fs8.chmodSync);
2554
+ fs8.fchmodSync = chmodFixSync(fs8.fchmodSync);
2555
+ fs8.lchmodSync = chmodFixSync(fs8.lchmodSync);
2556
+ fs8.stat = statFix(fs8.stat);
2557
+ fs8.fstat = statFix(fs8.fstat);
2558
+ fs8.lstat = statFix(fs8.lstat);
2559
+ fs8.statSync = statFixSync(fs8.statSync);
2560
+ fs8.fstatSync = statFixSync(fs8.fstatSync);
2561
+ fs8.lstatSync = statFixSync(fs8.lstatSync);
2562
+ if (fs8.chmod && !fs8.lchmod) {
2563
+ fs8.lchmod = function(path8, mode, cb) {
2564
+ if (cb) process.nextTick(cb);
2565
+ };
2566
+ fs8.lchmodSync = function() {
2567
+ };
2568
+ }
2569
+ if (fs8.chown && !fs8.lchown) {
2570
+ fs8.lchown = function(path8, uid, gid, cb) {
2571
+ if (cb) process.nextTick(cb);
2572
+ };
2573
+ fs8.lchownSync = function() {
2574
+ };
2575
+ }
2576
+ if (platform === "win32") {
2577
+ fs8.rename = typeof fs8.rename !== "function" ? fs8.rename : function(fs$rename) {
2578
+ function rename(from, to, cb) {
2579
+ var start = Date.now();
2580
+ var backoff = 0;
2581
+ fs$rename(from, to, function CB(er) {
2582
+ if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
2583
+ setTimeout(function() {
2584
+ fs8.stat(to, function(stater, st) {
2585
+ if (stater && stater.code === "ENOENT")
2586
+ fs$rename(from, to, CB);
2587
+ else
2588
+ cb(er);
2589
+ });
2590
+ }, backoff);
2591
+ if (backoff < 100)
2592
+ backoff += 10;
2593
+ return;
2594
+ }
2595
+ if (cb) cb(er);
2596
+ });
2597
+ }
2598
+ if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
2599
+ return rename;
2600
+ }(fs8.rename);
2601
+ }
2602
+ fs8.read = typeof fs8.read !== "function" ? fs8.read : function(fs$read) {
2603
+ function read(fd, buffer, offset, length, position, callback_) {
2604
+ var callback;
2605
+ if (callback_ && typeof callback_ === "function") {
2606
+ var eagCounter = 0;
2607
+ callback = function(er, _2, __) {
2608
+ if (er && er.code === "EAGAIN" && eagCounter < 10) {
2609
+ eagCounter++;
2610
+ return fs$read.call(fs8, fd, buffer, offset, length, position, callback);
2611
+ }
2612
+ callback_.apply(this, arguments);
2613
+ };
2614
+ }
2615
+ return fs$read.call(fs8, fd, buffer, offset, length, position, callback);
2616
+ }
2617
+ if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
2618
+ return read;
2619
+ }(fs8.read);
2620
+ fs8.readSync = typeof fs8.readSync !== "function" ? fs8.readSync : /* @__PURE__ */ function(fs$readSync) {
2621
+ return function(fd, buffer, offset, length, position) {
2622
+ var eagCounter = 0;
2623
+ while (true) {
2624
+ try {
2625
+ return fs$readSync.call(fs8, fd, buffer, offset, length, position);
2626
+ } catch (er) {
2627
+ if (er.code === "EAGAIN" && eagCounter < 10) {
2628
+ eagCounter++;
2629
+ continue;
2630
+ }
2631
+ throw er;
2632
+ }
2633
+ }
2634
+ };
2635
+ }(fs8.readSync);
2636
+ function patchLchmod(fs9) {
2637
+ fs9.lchmod = function(path8, mode, callback) {
2638
+ fs9.open(
2639
+ path8,
2640
+ constants2.O_WRONLY | constants2.O_SYMLINK,
2641
+ mode,
2642
+ function(err, fd) {
2643
+ if (err) {
2644
+ if (callback) callback(err);
2645
+ return;
2646
+ }
2647
+ fs9.fchmod(fd, mode, function(err2) {
2648
+ fs9.close(fd, function(err22) {
2649
+ if (callback) callback(err2 || err22);
2650
+ });
2651
+ });
2652
+ }
2653
+ );
2654
+ };
2655
+ fs9.lchmodSync = function(path8, mode) {
2656
+ var fd = fs9.openSync(path8, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
2657
+ var threw = true;
2658
+ var ret;
2659
+ try {
2660
+ ret = fs9.fchmodSync(fd, mode);
2661
+ threw = false;
2662
+ } finally {
2663
+ if (threw) {
2664
+ try {
2665
+ fs9.closeSync(fd);
2666
+ } catch (er) {
2667
+ }
2668
+ } else {
2669
+ fs9.closeSync(fd);
2670
+ }
2671
+ }
2672
+ return ret;
2673
+ };
2674
+ }
2675
+ function patchLutimes(fs9) {
2676
+ if (constants2.hasOwnProperty("O_SYMLINK") && fs9.futimes) {
2677
+ fs9.lutimes = function(path8, at, mt, cb) {
2678
+ fs9.open(path8, constants2.O_SYMLINK, function(er, fd) {
2679
+ if (er) {
2680
+ if (cb) cb(er);
2681
+ return;
2682
+ }
2683
+ fs9.futimes(fd, at, mt, function(er2) {
2684
+ fs9.close(fd, function(er22) {
2685
+ if (cb) cb(er2 || er22);
2686
+ });
2687
+ });
2688
+ });
2689
+ };
2690
+ fs9.lutimesSync = function(path8, at, mt) {
2691
+ var fd = fs9.openSync(path8, constants2.O_SYMLINK);
2692
+ var ret;
2693
+ var threw = true;
2694
+ try {
2695
+ ret = fs9.futimesSync(fd, at, mt);
2696
+ threw = false;
2697
+ } finally {
2698
+ if (threw) {
2699
+ try {
2700
+ fs9.closeSync(fd);
2701
+ } catch (er) {
2702
+ }
2703
+ } else {
2704
+ fs9.closeSync(fd);
2705
+ }
2706
+ }
2707
+ return ret;
2708
+ };
2709
+ } else if (fs9.futimes) {
2710
+ fs9.lutimes = function(_a, _b, _c, cb) {
2711
+ if (cb) process.nextTick(cb);
2712
+ };
2713
+ fs9.lutimesSync = function() {
2714
+ };
2715
+ }
2716
+ }
2717
+ function chmodFix(orig) {
2718
+ if (!orig) return orig;
2719
+ return function(target, mode, cb) {
2720
+ return orig.call(fs8, target, mode, function(er) {
2721
+ if (chownErOk(er)) er = null;
2722
+ if (cb) cb.apply(this, arguments);
2723
+ });
2724
+ };
2725
+ }
2726
+ function chmodFixSync(orig) {
2727
+ if (!orig) return orig;
2728
+ return function(target, mode) {
2729
+ try {
2730
+ return orig.call(fs8, target, mode);
2731
+ } catch (er) {
2732
+ if (!chownErOk(er)) throw er;
2733
+ }
2734
+ };
2735
+ }
2736
+ function chownFix(orig) {
2737
+ if (!orig) return orig;
2738
+ return function(target, uid, gid, cb) {
2739
+ return orig.call(fs8, target, uid, gid, function(er) {
2740
+ if (chownErOk(er)) er = null;
2741
+ if (cb) cb.apply(this, arguments);
2742
+ });
2743
+ };
2744
+ }
2745
+ function chownFixSync(orig) {
2746
+ if (!orig) return orig;
2747
+ return function(target, uid, gid) {
2748
+ try {
2749
+ return orig.call(fs8, target, uid, gid);
2750
+ } catch (er) {
2751
+ if (!chownErOk(er)) throw er;
2752
+ }
2753
+ };
2754
+ }
2755
+ function statFix(orig) {
2756
+ if (!orig) return orig;
2757
+ return function(target, options2, cb) {
2758
+ if (typeof options2 === "function") {
2759
+ cb = options2;
2760
+ options2 = null;
2761
+ }
2762
+ function callback(er, stats) {
2763
+ if (stats) {
2764
+ if (stats.uid < 0) stats.uid += 4294967296;
2765
+ if (stats.gid < 0) stats.gid += 4294967296;
2766
+ }
2767
+ if (cb) cb.apply(this, arguments);
2768
+ }
2769
+ return options2 ? orig.call(fs8, target, options2, callback) : orig.call(fs8, target, callback);
2770
+ };
2771
+ }
2772
+ function statFixSync(orig) {
2773
+ if (!orig) return orig;
2774
+ return function(target, options2) {
2775
+ var stats = options2 ? orig.call(fs8, target, options2) : orig.call(fs8, target);
2776
+ if (stats) {
2777
+ if (stats.uid < 0) stats.uid += 4294967296;
2778
+ if (stats.gid < 0) stats.gid += 4294967296;
2779
+ }
2780
+ return stats;
2781
+ };
2782
+ }
2783
+ function chownErOk(er) {
2784
+ if (!er)
2785
+ return true;
2786
+ if (er.code === "ENOSYS")
2787
+ return true;
2788
+ var nonroot = !process.getuid || process.getuid() !== 0;
2789
+ if (nonroot) {
2790
+ if (er.code === "EINVAL" || er.code === "EPERM")
2791
+ return true;
2792
+ }
2793
+ return false;
2794
+ }
2795
+ }
2796
+ }
2797
+ });
2798
+ var require_legacy_streams = (0, import_chunk_WWAWV7DQ.__commonJS)({
2799
+ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
2800
+ "use strict";
2801
+ var Stream = (0, import_chunk_WWAWV7DQ.__require)("stream").Stream;
2802
+ module2.exports = legacy;
2803
+ function legacy(fs8) {
2804
+ return {
2805
+ ReadStream,
2806
+ WriteStream
2807
+ };
2808
+ function ReadStream(path8, options2) {
2809
+ if (!(this instanceof ReadStream)) return new ReadStream(path8, options2);
2810
+ Stream.call(this);
2811
+ var self2 = this;
2812
+ this.path = path8;
2813
+ this.fd = null;
2814
+ this.readable = true;
2815
+ this.paused = false;
2816
+ this.flags = "r";
2817
+ this.mode = 438;
2818
+ this.bufferSize = 64 * 1024;
2819
+ options2 = options2 || {};
2820
+ var keys = Object.keys(options2);
2821
+ for (var index2 = 0, length = keys.length; index2 < length; index2++) {
2822
+ var key = keys[index2];
2823
+ this[key] = options2[key];
2824
+ }
2825
+ if (this.encoding) this.setEncoding(this.encoding);
2826
+ if (this.start !== void 0) {
2827
+ if ("number" !== typeof this.start) {
2828
+ throw TypeError("start must be a Number");
2829
+ }
2830
+ if (this.end === void 0) {
2831
+ this.end = Infinity;
2832
+ } else if ("number" !== typeof this.end) {
2833
+ throw TypeError("end must be a Number");
2834
+ }
2835
+ if (this.start > this.end) {
2836
+ throw new Error("start must be <= end");
2837
+ }
2838
+ this.pos = this.start;
2839
+ }
2840
+ if (this.fd !== null) {
2841
+ process.nextTick(function() {
2842
+ self2._read();
2843
+ });
2844
+ return;
2845
+ }
2846
+ fs8.open(this.path, this.flags, this.mode, function(err, fd) {
2847
+ if (err) {
2848
+ self2.emit("error", err);
2849
+ self2.readable = false;
2850
+ return;
2851
+ }
2852
+ self2.fd = fd;
2853
+ self2.emit("open", fd);
2854
+ self2._read();
2855
+ });
2856
+ }
2857
+ function WriteStream(path8, options2) {
2858
+ if (!(this instanceof WriteStream)) return new WriteStream(path8, options2);
2859
+ Stream.call(this);
2860
+ this.path = path8;
2861
+ this.fd = null;
2862
+ this.writable = true;
2863
+ this.flags = "w";
2864
+ this.encoding = "binary";
2865
+ this.mode = 438;
2866
+ this.bytesWritten = 0;
2867
+ options2 = options2 || {};
2868
+ var keys = Object.keys(options2);
2869
+ for (var index2 = 0, length = keys.length; index2 < length; index2++) {
2870
+ var key = keys[index2];
2871
+ this[key] = options2[key];
2872
+ }
2873
+ if (this.start !== void 0) {
2874
+ if ("number" !== typeof this.start) {
2875
+ throw TypeError("start must be a Number");
2876
+ }
2877
+ if (this.start < 0) {
2878
+ throw new Error("start must be >= zero");
2879
+ }
2880
+ this.pos = this.start;
2881
+ }
2882
+ this.busy = false;
2883
+ this._queue = [];
2884
+ if (this.fd === null) {
2885
+ this._open = fs8.open;
2886
+ this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
2887
+ this.flush();
2888
+ }
2889
+ }
2890
+ }
2891
+ }
2892
+ });
2893
+ var require_clone = (0, import_chunk_WWAWV7DQ.__commonJS)({
2894
+ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports2, module2) {
2895
+ "use strict";
2896
+ module2.exports = clone;
2897
+ var getPrototypeOf = Object.getPrototypeOf || function(obj) {
2898
+ return obj.__proto__;
2899
+ };
2900
+ function clone(obj) {
2901
+ if (obj === null || typeof obj !== "object")
2902
+ return obj;
2903
+ if (obj instanceof Object)
2904
+ var copy = { __proto__: getPrototypeOf(obj) };
2905
+ else
2906
+ var copy = /* @__PURE__ */ Object.create(null);
2907
+ Object.getOwnPropertyNames(obj).forEach(function(key) {
2908
+ Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
2909
+ });
2910
+ return copy;
2911
+ }
2912
+ }
2913
+ });
2914
+ var require_graceful_fs = (0, import_chunk_WWAWV7DQ.__commonJS)({
2915
+ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
2916
+ "use strict";
2917
+ var fs8 = (0, import_chunk_WWAWV7DQ.__require)("fs");
2918
+ var polyfills = require_polyfills();
2919
+ var legacy = require_legacy_streams();
2920
+ var clone = require_clone();
2921
+ var util = (0, import_chunk_WWAWV7DQ.__require)("util");
2922
+ var gracefulQueue;
2923
+ var previousSymbol;
2924
+ if (typeof Symbol === "function" && typeof Symbol.for === "function") {
2925
+ gracefulQueue = Symbol.for("graceful-fs.queue");
2926
+ previousSymbol = Symbol.for("graceful-fs.previous");
2927
+ } else {
2928
+ gracefulQueue = "___graceful-fs.queue";
2929
+ previousSymbol = "___graceful-fs.previous";
2930
+ }
2931
+ function noop() {
2932
+ }
2933
+ function publishQueue(context, queue3) {
2934
+ Object.defineProperty(context, gracefulQueue, {
2935
+ get: function() {
2936
+ return queue3;
2937
+ }
2938
+ });
2939
+ }
2940
+ var debug8 = noop;
2941
+ if (util.debuglog)
2942
+ debug8 = util.debuglog("gfs4");
2943
+ else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
2944
+ debug8 = function() {
2945
+ var m2 = util.format.apply(util, arguments);
2946
+ m2 = "GFS4: " + m2.split(/\n/).join("\nGFS4: ");
2947
+ console.error(m2);
2948
+ };
2949
+ if (!fs8[gracefulQueue]) {
2950
+ queue2 = global[gracefulQueue] || [];
2951
+ publishQueue(fs8, queue2);
2952
+ fs8.close = function(fs$close) {
2953
+ function close(fd, cb) {
2954
+ return fs$close.call(fs8, fd, function(err) {
2955
+ if (!err) {
2956
+ resetQueue();
2957
+ }
2958
+ if (typeof cb === "function")
2959
+ cb.apply(this, arguments);
2960
+ });
2961
+ }
2962
+ Object.defineProperty(close, previousSymbol, {
2963
+ value: fs$close
2964
+ });
2965
+ return close;
2966
+ }(fs8.close);
2967
+ fs8.closeSync = function(fs$closeSync) {
2968
+ function closeSync(fd) {
2969
+ fs$closeSync.apply(fs8, arguments);
2970
+ resetQueue();
2971
+ }
2972
+ Object.defineProperty(closeSync, previousSymbol, {
2973
+ value: fs$closeSync
2974
+ });
2975
+ return closeSync;
2976
+ }(fs8.closeSync);
2977
+ if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
2978
+ process.on("exit", function() {
2979
+ debug8(fs8[gracefulQueue]);
2980
+ (0, import_chunk_WWAWV7DQ.__require)("assert").equal(fs8[gracefulQueue].length, 0);
2981
+ });
2982
+ }
2983
+ }
2984
+ var queue2;
2985
+ if (!global[gracefulQueue]) {
2986
+ publishQueue(global, fs8[gracefulQueue]);
2987
+ }
2988
+ module2.exports = patch(clone(fs8));
2989
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs8.__patched) {
2990
+ module2.exports = patch(fs8);
2991
+ fs8.__patched = true;
2992
+ }
2993
+ function patch(fs9) {
2994
+ polyfills(fs9);
2995
+ fs9.gracefulify = patch;
2996
+ fs9.createReadStream = createReadStream;
2997
+ fs9.createWriteStream = createWriteStream;
2998
+ var fs$readFile = fs9.readFile;
2999
+ fs9.readFile = readFile2;
3000
+ function readFile2(path8, options2, cb) {
3001
+ if (typeof options2 === "function")
3002
+ cb = options2, options2 = null;
3003
+ return go$readFile(path8, options2, cb);
3004
+ function go$readFile(path9, options3, cb2, startTime) {
3005
+ return fs$readFile(path9, options3, function(err) {
3006
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3007
+ enqueue([go$readFile, [path9, options3, cb2], err, startTime || Date.now(), Date.now()]);
3008
+ else {
3009
+ if (typeof cb2 === "function")
3010
+ cb2.apply(this, arguments);
3011
+ }
3012
+ });
3013
+ }
3014
+ }
3015
+ var fs$writeFile = fs9.writeFile;
3016
+ fs9.writeFile = writeFile;
3017
+ function writeFile(path8, data, options2, cb) {
3018
+ if (typeof options2 === "function")
3019
+ cb = options2, options2 = null;
3020
+ return go$writeFile(path8, data, options2, cb);
3021
+ function go$writeFile(path9, data2, options3, cb2, startTime) {
3022
+ return fs$writeFile(path9, data2, options3, function(err) {
3023
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3024
+ enqueue([go$writeFile, [path9, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
3025
+ else {
3026
+ if (typeof cb2 === "function")
3027
+ cb2.apply(this, arguments);
3028
+ }
3029
+ });
3030
+ }
3031
+ }
3032
+ var fs$appendFile = fs9.appendFile;
3033
+ if (fs$appendFile)
3034
+ fs9.appendFile = appendFile;
3035
+ function appendFile(path8, data, options2, cb) {
3036
+ if (typeof options2 === "function")
3037
+ cb = options2, options2 = null;
3038
+ return go$appendFile(path8, data, options2, cb);
3039
+ function go$appendFile(path9, data2, options3, cb2, startTime) {
3040
+ return fs$appendFile(path9, data2, options3, function(err) {
3041
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3042
+ enqueue([go$appendFile, [path9, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
3043
+ else {
3044
+ if (typeof cb2 === "function")
3045
+ cb2.apply(this, arguments);
3046
+ }
3047
+ });
3048
+ }
3049
+ }
3050
+ var fs$copyFile = fs9.copyFile;
3051
+ if (fs$copyFile)
3052
+ fs9.copyFile = copyFile;
3053
+ function copyFile(src, dest, flags, cb) {
3054
+ if (typeof flags === "function") {
3055
+ cb = flags;
3056
+ flags = 0;
3057
+ }
3058
+ return go$copyFile(src, dest, flags, cb);
3059
+ function go$copyFile(src2, dest2, flags2, cb2, startTime) {
3060
+ return fs$copyFile(src2, dest2, flags2, function(err) {
3061
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3062
+ enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
3063
+ else {
3064
+ if (typeof cb2 === "function")
3065
+ cb2.apply(this, arguments);
3066
+ }
3067
+ });
3068
+ }
3069
+ }
3070
+ var fs$readdir = fs9.readdir;
3071
+ fs9.readdir = readdir;
3072
+ var noReaddirOptionVersions = /^v[0-5]\./;
3073
+ function readdir(path8, options2, cb) {
3074
+ if (typeof options2 === "function")
3075
+ cb = options2, options2 = null;
3076
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path9, options3, cb2, startTime) {
3077
+ return fs$readdir(path9, fs$readdirCallback(
3078
+ path9,
3079
+ options3,
3080
+ cb2,
3081
+ startTime
3082
+ ));
3083
+ } : function go$readdir2(path9, options3, cb2, startTime) {
3084
+ return fs$readdir(path9, options3, fs$readdirCallback(
3085
+ path9,
3086
+ options3,
3087
+ cb2,
3088
+ startTime
3089
+ ));
3090
+ };
3091
+ return go$readdir(path8, options2, cb);
3092
+ function fs$readdirCallback(path9, options3, cb2, startTime) {
3093
+ return function(err, files) {
3094
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3095
+ enqueue([
3096
+ go$readdir,
3097
+ [path9, options3, cb2],
3098
+ err,
3099
+ startTime || Date.now(),
3100
+ Date.now()
3101
+ ]);
3102
+ else {
3103
+ if (files && files.sort)
3104
+ files.sort();
3105
+ if (typeof cb2 === "function")
3106
+ cb2.call(this, err, files);
3107
+ }
3108
+ };
3109
+ }
3110
+ }
3111
+ if (process.version.substr(0, 4) === "v0.8") {
3112
+ var legStreams = legacy(fs9);
3113
+ ReadStream = legStreams.ReadStream;
3114
+ WriteStream = legStreams.WriteStream;
3115
+ }
3116
+ var fs$ReadStream = fs9.ReadStream;
3117
+ if (fs$ReadStream) {
3118
+ ReadStream.prototype = Object.create(fs$ReadStream.prototype);
3119
+ ReadStream.prototype.open = ReadStream$open;
3120
+ }
3121
+ var fs$WriteStream = fs9.WriteStream;
3122
+ if (fs$WriteStream) {
3123
+ WriteStream.prototype = Object.create(fs$WriteStream.prototype);
3124
+ WriteStream.prototype.open = WriteStream$open;
3125
+ }
3126
+ Object.defineProperty(fs9, "ReadStream", {
3127
+ get: function() {
3128
+ return ReadStream;
3129
+ },
3130
+ set: function(val) {
3131
+ ReadStream = val;
3132
+ },
3133
+ enumerable: true,
3134
+ configurable: true
3135
+ });
3136
+ Object.defineProperty(fs9, "WriteStream", {
3137
+ get: function() {
3138
+ return WriteStream;
3139
+ },
3140
+ set: function(val) {
3141
+ WriteStream = val;
3142
+ },
3143
+ enumerable: true,
3144
+ configurable: true
3145
+ });
3146
+ var FileReadStream = ReadStream;
3147
+ Object.defineProperty(fs9, "FileReadStream", {
3148
+ get: function() {
3149
+ return FileReadStream;
3150
+ },
3151
+ set: function(val) {
3152
+ FileReadStream = val;
3153
+ },
3154
+ enumerable: true,
3155
+ configurable: true
3156
+ });
3157
+ var FileWriteStream = WriteStream;
3158
+ Object.defineProperty(fs9, "FileWriteStream", {
3159
+ get: function() {
3160
+ return FileWriteStream;
3161
+ },
3162
+ set: function(val) {
3163
+ FileWriteStream = val;
3164
+ },
3165
+ enumerable: true,
3166
+ configurable: true
3167
+ });
3168
+ function ReadStream(path8, options2) {
3169
+ if (this instanceof ReadStream)
3170
+ return fs$ReadStream.apply(this, arguments), this;
3171
+ else
3172
+ return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
3173
+ }
3174
+ function ReadStream$open() {
3175
+ var that = this;
3176
+ open(that.path, that.flags, that.mode, function(err, fd) {
3177
+ if (err) {
3178
+ if (that.autoClose)
3179
+ that.destroy();
3180
+ that.emit("error", err);
3181
+ } else {
3182
+ that.fd = fd;
3183
+ that.emit("open", fd);
3184
+ that.read();
3185
+ }
3186
+ });
3187
+ }
3188
+ function WriteStream(path8, options2) {
3189
+ if (this instanceof WriteStream)
3190
+ return fs$WriteStream.apply(this, arguments), this;
3191
+ else
3192
+ return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
3193
+ }
3194
+ function WriteStream$open() {
3195
+ var that = this;
3196
+ open(that.path, that.flags, that.mode, function(err, fd) {
3197
+ if (err) {
3198
+ that.destroy();
3199
+ that.emit("error", err);
3200
+ } else {
3201
+ that.fd = fd;
3202
+ that.emit("open", fd);
3203
+ }
3204
+ });
3205
+ }
3206
+ function createReadStream(path8, options2) {
3207
+ return new fs9.ReadStream(path8, options2);
3208
+ }
3209
+ function createWriteStream(path8, options2) {
3210
+ return new fs9.WriteStream(path8, options2);
3211
+ }
3212
+ var fs$open = fs9.open;
3213
+ fs9.open = open;
3214
+ function open(path8, flags, mode, cb) {
3215
+ if (typeof mode === "function")
3216
+ cb = mode, mode = null;
3217
+ return go$open(path8, flags, mode, cb);
3218
+ function go$open(path9, flags2, mode2, cb2, startTime) {
3219
+ return fs$open(path9, flags2, mode2, function(err, fd) {
3220
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3221
+ enqueue([go$open, [path9, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
3222
+ else {
3223
+ if (typeof cb2 === "function")
3224
+ cb2.apply(this, arguments);
3225
+ }
3226
+ });
3227
+ }
3228
+ }
3229
+ return fs9;
3230
+ }
3231
+ function enqueue(elem) {
3232
+ debug8("ENQUEUE", elem[0].name, elem[1]);
3233
+ fs8[gracefulQueue].push(elem);
3234
+ retry2();
3235
+ }
3236
+ var retryTimer;
3237
+ function resetQueue() {
3238
+ var now = Date.now();
3239
+ for (var i = 0; i < fs8[gracefulQueue].length; ++i) {
3240
+ if (fs8[gracefulQueue][i].length > 2) {
3241
+ fs8[gracefulQueue][i][3] = now;
3242
+ fs8[gracefulQueue][i][4] = now;
3243
+ }
3244
+ }
3245
+ retry2();
3246
+ }
3247
+ function retry2() {
3248
+ clearTimeout(retryTimer);
3249
+ retryTimer = void 0;
3250
+ if (fs8[gracefulQueue].length === 0)
3251
+ return;
3252
+ var elem = fs8[gracefulQueue].shift();
3253
+ var fn = elem[0];
3254
+ var args = elem[1];
3255
+ var err = elem[2];
3256
+ var startTime = elem[3];
3257
+ var lastTime = elem[4];
3258
+ if (startTime === void 0) {
3259
+ debug8("RETRY", fn.name, args);
3260
+ fn.apply(null, args);
3261
+ } else if (Date.now() - startTime >= 6e4) {
3262
+ debug8("TIMEOUT", fn.name, args);
3263
+ var cb = args.pop();
3264
+ if (typeof cb === "function")
3265
+ cb.call(null, err);
3266
+ } else {
3267
+ var sinceAttempt = Date.now() - lastTime;
3268
+ var sinceStart = Math.max(lastTime - startTime, 1);
3269
+ var desiredDelay = Math.min(sinceStart * 1.2, 100);
3270
+ if (sinceAttempt >= desiredDelay) {
3271
+ debug8("RETRY", fn.name, args);
3272
+ fn.apply(null, args.concat([startTime]));
3273
+ } else {
3274
+ fs8[gracefulQueue].push(elem);
3275
+ }
3276
+ }
3277
+ if (retryTimer === void 0) {
3278
+ retryTimer = setTimeout(retry2, 0);
3279
+ }
3280
+ }
3281
+ }
3282
+ });
2510
3283
  var require_process_nextick_args = (0, import_chunk_WWAWV7DQ.__commonJS)({
2511
3284
  "../../node_modules/.pnpm/process-nextick-args@2.0.1/node_modules/process-nextick-args/index.js"(exports2, module2) {
2512
3285
  "use strict";
@@ -2848,7 +3621,7 @@ var require_stream_writable = (0, import_chunk_WWAWV7DQ.__commonJS)({
2848
3621
  var Duplex;
2849
3622
  Writable.WritableState = WritableState;
2850
3623
  var util = Object.create(require_util());
2851
- util.inherits = (0, import_chunk_J3JE5NVO.require_inherits)();
3624
+ util.inherits = (0, import_chunk_CZDIXJEO.require_inherits)();
2852
3625
  var internalUtil = {
2853
3626
  deprecate: require_node()
2854
3627
  };
@@ -3286,7 +4059,7 @@ var require_stream_duplex = (0, import_chunk_WWAWV7DQ.__commonJS)({
3286
4059
  };
3287
4060
  module2.exports = Duplex;
3288
4061
  var util = Object.create(require_util());
3289
- util.inherits = (0, import_chunk_J3JE5NVO.require_inherits)();
4062
+ util.inherits = (0, import_chunk_CZDIXJEO.require_inherits)();
3290
4063
  var Readable = require_stream_readable();
3291
4064
  var Writable = require_stream_writable();
3292
4065
  util.inherits(Duplex, Readable);
@@ -3607,7 +4380,7 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
3607
4380
  return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
3608
4381
  }
3609
4382
  var util = Object.create(require_util());
3610
- util.inherits = (0, import_chunk_J3JE5NVO.require_inherits)();
4383
+ util.inherits = (0, import_chunk_CZDIXJEO.require_inherits)();
3611
4384
  var debugUtil = (0, import_chunk_WWAWV7DQ.__require)("util");
3612
4385
  var debug8 = void 0;
3613
4386
  if (debugUtil && debugUtil.debuglog) {
@@ -4274,7 +5047,7 @@ var require_stream_transform = (0, import_chunk_WWAWV7DQ.__commonJS)({
4274
5047
  module2.exports = Transform;
4275
5048
  var Duplex = require_stream_duplex();
4276
5049
  var util = Object.create(require_util());
4277
- util.inherits = (0, import_chunk_J3JE5NVO.require_inherits)();
5050
+ util.inherits = (0, import_chunk_CZDIXJEO.require_inherits)();
4278
5051
  util.inherits(Transform, Duplex);
4279
5052
  function afterTransform(er, data) {
4280
5053
  var ts = this._transformState;
@@ -4372,7 +5145,7 @@ var require_stream_passthrough = (0, import_chunk_WWAWV7DQ.__commonJS)({
4372
5145
  module2.exports = PassThrough;
4373
5146
  var Transform = require_stream_transform();
4374
5147
  var util = Object.create(require_util());
4375
- util.inherits = (0, import_chunk_J3JE5NVO.require_inherits)();
5148
+ util.inherits = (0, import_chunk_CZDIXJEO.require_inherits)();
4376
5149
  util.inherits(PassThrough, Transform);
4377
5150
  function PassThrough(options2) {
4378
5151
  if (!(this instanceof PassThrough)) return new PassThrough(options2);
@@ -5658,7 +6431,7 @@ var require_stream_writable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5658
6431
  var ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END;
5659
6432
  var ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;
5660
6433
  var errorOrDestroy = destroyImpl.errorOrDestroy;
5661
- (0, import_chunk_J3JE5NVO.require_inherits)()(Writable, Stream);
6434
+ (0, import_chunk_CZDIXJEO.require_inherits)()(Writable, Stream);
5662
6435
  function nop() {
5663
6436
  }
5664
6437
  function WritableState(options2, stream, isDuplex) {
@@ -6100,7 +6873,7 @@ var require_stream_duplex2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
6100
6873
  module2.exports = Duplex;
6101
6874
  var Readable = require_stream_readable2();
6102
6875
  var Writable = require_stream_writable2();
6103
- (0, import_chunk_J3JE5NVO.require_inherits)()(Duplex, Readable);
6876
+ (0, import_chunk_CZDIXJEO.require_inherits)()(Duplex, Readable);
6104
6877
  {
6105
6878
  keys = objectKeys(Writable.prototype);
6106
6879
  for (v = 0; v < keys.length; v++) {
@@ -6877,7 +7650,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
6877
7650
  var StringDecoder;
6878
7651
  var createReadableStreamAsyncIterator;
6879
7652
  var from;
6880
- (0, import_chunk_J3JE5NVO.require_inherits)()(Readable, Stream);
7653
+ (0, import_chunk_CZDIXJEO.require_inherits)()(Readable, Stream);
6881
7654
  var errorOrDestroy = destroyImpl.errorOrDestroy;
6882
7655
  var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
6883
7656
  function prependListener(emitter, event, fn) {
@@ -7582,7 +8355,7 @@ var require_stream_transform2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
7582
8355
  var ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING;
7583
8356
  var ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;
7584
8357
  var Duplex = require_stream_duplex2();
7585
- (0, import_chunk_J3JE5NVO.require_inherits)()(Transform, Duplex);
8358
+ (0, import_chunk_CZDIXJEO.require_inherits)()(Transform, Duplex);
7586
8359
  function afterTransform(er, data) {
7587
8360
  var ts = this._transformState;
7588
8361
  ts.transforming = false;
@@ -7676,7 +8449,7 @@ var require_stream_passthrough2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
7676
8449
  "use strict";
7677
8450
  module2.exports = PassThrough;
7678
8451
  var Transform = require_stream_transform2();
7679
- (0, import_chunk_J3JE5NVO.require_inherits)()(PassThrough, Transform);
8452
+ (0, import_chunk_CZDIXJEO.require_inherits)()(PassThrough, Transform);
7680
8453
  function PassThrough(options2) {
7681
8454
  if (!(this instanceof PassThrough)) return new PassThrough(options2);
7682
8455
  Transform.call(this, options2);
@@ -8544,13 +9317,13 @@ var require_isPlainObject = (0, import_chunk_WWAWV7DQ.__commonJS)({
8544
9317
  var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
8545
9318
  "../../node_modules/.pnpm/archiver-utils@4.0.1/node_modules/archiver-utils/file.js"(exports2, module2) {
8546
9319
  "use strict";
8547
- var fs8 = (0, import_chunk_QIVUAERL.require_graceful_fs)();
9320
+ var fs8 = require_graceful_fs();
8548
9321
  var path8 = (0, import_chunk_WWAWV7DQ.__require)("path");
8549
9322
  var flatten = require_flatten();
8550
9323
  var difference = require_difference();
8551
9324
  var union = require_union();
8552
9325
  var isPlainObject = require_isPlainObject();
8553
- var glob = (0, import_chunk_J3JE5NVO.require_glob)();
9326
+ var glob = (0, import_chunk_CZDIXJEO.require_glob)();
8554
9327
  var file = module2.exports = {};
8555
9328
  var pathSeparatorRe = /[\/\\]/g;
8556
9329
  var processPatterns = function(patterns, fn) {
@@ -8696,7 +9469,7 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
8696
9469
  var require_archiver_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
8697
9470
  "../../node_modules/.pnpm/archiver-utils@4.0.1/node_modules/archiver-utils/index.js"(exports2, module2) {
8698
9471
  "use strict";
8699
- var fs8 = (0, import_chunk_QIVUAERL.require_graceful_fs)();
9472
+ var fs8 = require_graceful_fs();
8700
9473
  var path8 = (0, import_chunk_WWAWV7DQ.__require)("path");
8701
9474
  var lazystream = require_lazystream();
8702
9475
  var normalizePath = require_normalize_path();
@@ -13800,6 +14573,8 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
13800
14573
  this.inc("patch", identifier, identifierBase);
13801
14574
  this.inc("pre", identifier, identifierBase);
13802
14575
  break;
14576
+ // If the input is a non-prerelease version, this acts the same as
14577
+ // prepatch.
13803
14578
  case "prerelease":
13804
14579
  if (this.prerelease.length === 0) {
13805
14580
  this.inc("patch", identifier, identifierBase);
@@ -13827,6 +14602,8 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
13827
14602
  }
13828
14603
  this.prerelease = [];
13829
14604
  break;
14605
+ // This probably shouldn't be used publicly.
14606
+ // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
13830
14607
  case "pre": {
13831
14608
  const base = Number(identifierBase) ? 1 : 0;
13832
14609
  if (!identifier && identifierBase === false) {
@@ -14707,7 +15484,6 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14707
15484
  }
14708
15485
  });
14709
15486
  var import_find_up = (0, import_chunk_WWAWV7DQ.__toESM)(require_find_up());
14710
- var import_execa = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_7XNZDY2V.require_execa)());
14711
15487
  var readFile = (0, import_util.promisify)(import_fs3.default.readFile);
14712
15488
  var stat = (0, import_util.promisify)(import_fs3.default.stat);
14713
15489
  var debug2 = (0, import_debug3.Debug)("prisma:getSchema");
@@ -14746,7 +15522,7 @@ async function readSchemaFromDirectory(schemaPath2) {
14746
15522
  }
14747
15523
  const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
14748
15524
  debug2("Loading config");
14749
- const config2 = await (0, import_chunk_INHGTPT5.getConfig)({
15525
+ const config2 = await (0, import_chunk_V77BRSP2.getConfig)({
14750
15526
  datamodel: files,
14751
15527
  ignoreEnvVarErrors: true
14752
15528
  });
@@ -14813,14 +15589,9 @@ async function getSchemaWithPathInternal(schemaPathFromArgs, { cwd, argumentName
14813
15589
  if (defaultResult.ok) {
14814
15590
  return defaultResult;
14815
15591
  }
14816
- const yarnResult = await getSchemaFromYarn1Workspace(cwd, defaultResult.error.failures);
14817
- if (yarnResult.ok) {
14818
- return yarnResult;
14819
- }
14820
- const finalError = yarnResult.error.kind === "Yarn1WorkspaceSchemaNotFound" ? defaultResult.error : yarnResult.error;
14821
15592
  return {
14822
15593
  ok: false,
14823
- error: finalError
15594
+ error: defaultResult.error
14824
15595
  };
14825
15596
  }
14826
15597
  function renderLookupError(error) {
@@ -14855,7 +15626,7 @@ function renderDefaultLookupError(error, cwd) {
14855
15626
  return parts.join("\n");
14856
15627
  }
14857
15628
  async function getPrismaConfigFromPackageJson(cwd) {
14858
- const pkgJson = await (0, import_chunk_J3JE5NVO.readPackageUp)({ cwd, normalize: false });
15629
+ const pkgJson = await (0, import_chunk_CZDIXJEO.readPackageUp)({ cwd, normalize: false });
14859
15630
  const prismaPropertyFromPkgJson = pkgJson?.packageJson?.prisma;
14860
15631
  if (!pkgJson) {
14861
15632
  return null;
@@ -14895,47 +15666,6 @@ async function getSchemaFromPackageJson(cwd) {
14895
15666
  }
14896
15667
  return lookupResult;
14897
15668
  }
14898
- async function getSchemaFromYarn1Workspace(cwd, pastFailures) {
14899
- if (!process.env.npm_config_user_agent?.includes("yarn")) {
14900
- return { ok: false, error: { kind: "Yarn1WorkspaceSchemaNotFound" } };
14901
- }
14902
- let workspaces;
14903
- try {
14904
- const { stdout: version3 } = await import_execa.default.command("yarn --version", {
14905
- cwd
14906
- });
14907
- if (version3.startsWith("2")) {
14908
- return { ok: false, error: { kind: "Yarn1WorkspaceSchemaNotFound" } };
14909
- }
14910
- const { stdout } = await import_execa.default.command("yarn workspaces info --json", {
14911
- cwd
14912
- });
14913
- const json = getJson(stdout);
14914
- workspaces = Object.values(json);
14915
- } catch {
14916
- return { ok: false, error: { kind: "Yarn1WorkspaceSchemaNotFound" } };
14917
- }
14918
- const workspaceRootDir = await findWorkspaceRoot(cwd);
14919
- if (!workspaceRootDir) {
14920
- return { ok: false, error: { kind: "Yarn1WorkspaceSchemaNotFound" } };
14921
- }
14922
- for (const workspace of workspaces) {
14923
- const workspacePath = import_path2.default.join(workspaceRootDir, workspace.location);
14924
- const workspaceSchema = await tryWorkspacePath(workspacePath, pastFailures);
14925
- if (workspaceSchema.ok) {
14926
- return workspaceSchema;
14927
- }
14928
- }
14929
- const rootPathSchema = await tryWorkspacePath(workspaceRootDir, pastFailures);
14930
- return rootPathSchema;
14931
- }
14932
- async function tryWorkspacePath(cwd, pastFailures) {
14933
- const pkgJson = await getSchemaFromPackageJson(cwd);
14934
- if (pkgJson.ok) {
14935
- return pkgJson;
14936
- }
14937
- return getDefaultSchema(cwd, pastFailures);
14938
- }
14939
15669
  async function getDefaultSchema(cwd, failures = []) {
14940
15670
  const schemaPrisma = {
14941
15671
  schemaPath: {
@@ -15014,44 +15744,6 @@ async function getSchema(schemaPathFromArgs) {
15014
15744
  const schemaPathResult = await getSchemaWithPath(schemaPathFromArgs);
15015
15745
  return schemaPathResult.schemas;
15016
15746
  }
15017
- function getJson(stdout) {
15018
- const firstCurly = stdout.indexOf("{");
15019
- const lastCurly = stdout.lastIndexOf("}");
15020
- const sliced = stdout.slice(firstCurly, lastCurly + 1);
15021
- return JSON.parse(sliced);
15022
- }
15023
- function isPkgJsonWorkspaceRoot(pkgJson) {
15024
- const workspaces = pkgJson.workspaces;
15025
- if (!workspaces) {
15026
- return false;
15027
- }
15028
- return Array.isArray(workspaces) || workspaces.packages !== void 0;
15029
- }
15030
- async function isNearestPkgJsonWorkspaceRoot(cwd) {
15031
- const pkgJson = await (0, import_chunk_J3JE5NVO.readPackageUp)({ cwd, normalize: false });
15032
- if (!pkgJson) {
15033
- return null;
15034
- }
15035
- return {
15036
- isRoot: isPkgJsonWorkspaceRoot(pkgJson.packageJson),
15037
- path: pkgJson.path
15038
- };
15039
- }
15040
- async function findWorkspaceRoot(cwd) {
15041
- let pkgJson = await isNearestPkgJsonWorkspaceRoot(cwd);
15042
- if (!pkgJson) {
15043
- return null;
15044
- }
15045
- if (pkgJson.isRoot === true) {
15046
- return import_path2.default.dirname(pkgJson.path);
15047
- }
15048
- const pkgJsonParentDir = import_path2.default.dirname(import_path2.default.dirname(pkgJson.path));
15049
- pkgJson = await isNearestPkgJsonWorkspaceRoot(pkgJsonParentDir);
15050
- if (!pkgJson || pkgJson.isRoot === false) {
15051
- return null;
15052
- }
15053
- return import_path2.default.dirname(pkgJson.path);
15054
- }
15055
15747
  var debug3 = (0, import_debug2.default)("prisma:loadEnv");
15056
15748
  async function getEnvPaths(schemaPath2, opts = { cwd: process.cwd() }) {
15057
15749
  const rootEnvPath = getProjectRootEnvPath({ cwd: opts.cwd }) ?? null;
@@ -15138,8 +15830,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
15138
15830
  if (argName.includes("schema")) {
15139
15831
  await loadEnvFile({ schemaPath: argValue, printMessage: false });
15140
15832
  const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
15141
- const config2 = await (0, import_chunk_INHGTPT5.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15142
- const url = (0, import_chunk_INHGTPT5.resolveUrl)((0, import_chunk_INHGTPT5.getEffectiveUrl)(config2.datasources[0]));
15833
+ const config2 = await (0, import_chunk_V77BRSP2.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15834
+ const url = (0, import_chunk_V77BRSP2.resolveUrl)((0, import_chunk_V77BRSP2.getEffectiveUrl)(config2.datasources[0]));
15143
15835
  if (url?.startsWith("prisma://")) {
15144
15836
  return forbiddenCmdWithDataProxyFlagMessage(command);
15145
15837
  }
@@ -15160,7 +15852,7 @@ function getCLIPathHash() {
15160
15852
  const cliPath = process.argv[1];
15161
15853
  return import_crypto.default.createHash("sha256").update(cliPath).digest("hex").substring(0, 8);
15162
15854
  }
15163
- var import_p_map = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_J3JE5NVO.require_p_map)());
15855
+ var import_p_map = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_CZDIXJEO.require_p_map)());
15164
15856
  var debug4 = (0, import_debug6.default)("prisma:generator");
15165
15857
  async function checkTypeScriptVersion() {
15166
15858
  const minVersion = "4.1.0";
@@ -15186,42 +15878,10 @@ async function checkTypeScriptVersion() {
15186
15878
  } catch (e) {
15187
15879
  }
15188
15880
  }
15189
- function checkYarnVersion() {
15190
- if (process.env.npm_config_user_agent) {
15191
- const match = parseUserAgentString(process.env.npm_config_user_agent);
15192
- if (match) {
15193
- const { agent, major, minor, patch } = match;
15194
- if (agent === "yarn" && major === 1) {
15195
- const currentYarnVersion = `${major}.${minor}.${patch}`;
15196
- const minYarnVersion = "1.19.2";
15197
- if ((0, import_chunk_EUTJYQDW.semverLt)(currentYarnVersion, minYarnVersion)) {
15198
- import_chunk_AZNLB67U.logger_exports.warn(
15199
- `Your ${(0, import_chunk_PG5FDKSF.bold)("yarn")} has version ${currentYarnVersion}, which is outdated. Please update it to ${(0, import_chunk_PG5FDKSF.bold)(
15200
- minYarnVersion
15201
- )} or ${(0, import_chunk_PG5FDKSF.bold)("newer")} in order to use Prisma.`
15202
- );
15203
- }
15204
- }
15205
- }
15206
- }
15207
- }
15208
- function parseUserAgentString(str) {
15209
- const userAgentRegex = /(\w+)\/(\d+)\.(\d+)\.(\d+)/;
15210
- const match = userAgentRegex.exec(str);
15211
- if (match) {
15212
- const agent = match[1];
15213
- const major = parseInt(match[2]);
15214
- const minor = parseInt(match[3]);
15215
- const patch = parseInt(match[4]);
15216
- return { agent, major, minor, patch };
15217
- }
15218
- return null;
15219
- }
15220
15881
  var debug5 = (0, import_debug5.default)("prisma:generator");
15221
15882
  async function prismaClientResolver(baseDir, version3) {
15222
15883
  let prismaClientDir = await (0, import_chunk_KEBDP2C3.findPrismaClientDir)(baseDir);
15223
15884
  debug5("baseDir", baseDir);
15224
- checkYarnVersion();
15225
15885
  await checkTypeScriptVersion();
15226
15886
  if (!prismaClientDir && !process.env.PRISMA_GENERATE_SKIP_AUTOINSTALL) {
15227
15887
  let projectRoot = (0, import_chunk_J77ZIDXB.longestCommonPathPrefix)(baseDir, process.cwd());
@@ -15247,30 +15907,30 @@ async function prismaClientResolver(baseDir, version3) {
15247
15907
  );
15248
15908
  }
15249
15909
  const prismaCliDir = await (0, import_chunk_FUUQ6FJ4.resolvePkg)("prisma", { basedir: baseDir });
15250
- if (process.platform === "win32" && await (0, import_chunk_FTS2IEWX.isYarnUsed)(baseDir)) {
15910
+ if (process.platform === "win32" && await (0, import_chunk_S57RMXZW.isYarnUsed)(baseDir)) {
15251
15911
  const hasCli = (s2) => prismaCliDir !== void 0 ? s2 : "";
15252
15912
  const missingCli = (s2) => prismaCliDir === void 0 ? s2 : "";
15253
15913
  throw new Error(
15254
15914
  `Could not resolve ${missingCli(`${(0, import_chunk_PG5FDKSF.bold)("prisma")} and `)}${(0, import_chunk_PG5FDKSF.bold)(
15255
15915
  "@prisma/client"
15256
15916
  )} in the current project. Please install ${hasCli("it")}${missingCli("them")} with ${missingCli(
15257
- `${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "add", "prisma", "-D")}`))} and `
15258
- )}${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "add", "@prisma/client")}`))}, and rerun ${(0, import_chunk_PG5FDKSF.bold)(
15259
- await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "execute", "prisma generate")
15917
+ `${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "add", "prisma", "-D")}`))} and `
15918
+ )}${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "add", "@prisma/client")}`))}, and rerun ${(0, import_chunk_PG5FDKSF.bold)(
15919
+ await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "execute", "prisma generate")
15260
15920
  )} \u{1F64F}.`
15261
15921
  );
15262
15922
  }
15263
15923
  if (!prismaCliDir) {
15264
- await (0, import_chunk_IABMG3F4.runPackageCmd)(projectRoot, "add", `prisma@${version3 ?? "latest"}`, "-D", "--silent");
15924
+ await (0, import_chunk_77IC3DNO.runPackageCmd)(projectRoot, "add", `prisma@${version3 ?? "latest"}`, "-D", "--silent");
15265
15925
  }
15266
- await (0, import_chunk_IABMG3F4.runPackageCmd)(projectRoot, "add", `@prisma/client@${version3 ?? "latest"}`, "--silent");
15926
+ await (0, import_chunk_77IC3DNO.runPackageCmd)(projectRoot, "add", `@prisma/client@${version3 ?? "latest"}`, "--silent");
15267
15927
  prismaClientDir = await (0, import_chunk_KEBDP2C3.findPrismaClientDir)(import_path4.default.join(".", baseDir));
15268
15928
  if (!prismaClientDir) {
15269
15929
  throw new Error(
15270
15930
  `Could not resolve @prisma/client despite the installation that we just tried.
15271
15931
  Please try to install it by hand with ${(0, import_chunk_PG5FDKSF.bold)(
15272
- (0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "add", "@prisma/client")}`)
15273
- )} and rerun ${(0, import_chunk_PG5FDKSF.bold)(await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "execute", "prisma generate"))} \u{1F64F}.`
15932
+ (0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "add", "@prisma/client")}`)
15933
+ )} and rerun ${(0, import_chunk_PG5FDKSF.bold)(await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "execute", "prisma generate"))} \u{1F64F}.`
15274
15934
  );
15275
15935
  }
15276
15936
  console.info(
@@ -15282,7 +15942,7 @@ Please try to install it by hand with ${(0, import_chunk_PG5FDKSF.bold)(
15282
15942
  throw new Error(
15283
15943
  `Could not resolve @prisma/client.
15284
15944
  Please try to install it with ${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)("npm install @prisma/client"))} and rerun ${(0, import_chunk_PG5FDKSF.bold)(
15285
- await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "execute", "prisma generate")
15945
+ await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "execute", "prisma generate")
15286
15946
  )} \u{1F64F}.`
15287
15947
  );
15288
15948
  }
@@ -15343,7 +16003,7 @@ async function getGenerators(options) {
15343
16003
  prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
15344
16004
  }
15345
16005
  }
15346
- const config = await (0, import_chunk_INHGTPT5.getConfig)({
16006
+ const config = await (0, import_chunk_V77BRSP2.getConfig)({
15347
16007
  datamodel: schemas,
15348
16008
  datamodelPath: schemaPath,
15349
16009
  prismaPath,
@@ -15354,7 +16014,7 @@ async function getGenerators(options) {
15354
16014
  }
15355
16015
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
15356
16016
  const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
15357
- const dmmf = await (0, import_chunk_CSRUIX22.getDMMF)({
16017
+ const dmmf = await (0, import_chunk_2V6E3NJE.getDMMF)({
15358
16018
  datamodel: schemas,
15359
16019
  datamodelPath: schemaPath,
15360
16020
  prismaPath,
@@ -15415,7 +16075,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
15415
16075
  fromEnvVar: "null"
15416
16076
  };
15417
16077
  }
15418
- const datamodel = (0, import_chunk_SZKPXBSP.mergeSchemas)({ schemas });
16078
+ const datamodel = (0, import_chunk_OF2M4ACU.mergeSchemas)({ schemas });
15419
16079
  const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
15420
16080
  const options2 = {
15421
16081
  datamodel,
@@ -15482,7 +16142,7 @@ generator gen {
15482
16142
  }
15483
16143
  }
15484
16144
  debug6("neededVersions", JSON.stringify(neededVersions, null, 2));
15485
- const binaryPathsByVersion = await (0, import_chunk_5XRQ7ONW.getBinaryPathsByVersion)({
16145
+ const binaryPathsByVersion = await (0, import_chunk_D4MCOTL5.getBinaryPathsByVersion)({
15486
16146
  neededVersions,
15487
16147
  binaryTarget,
15488
16148
  version,
@@ -15498,7 +16158,7 @@ generator gen {
15498
16158
  debug6({ generatorBinaryPaths });
15499
16159
  generator.setBinaryPaths(generatorBinaryPaths);
15500
16160
  if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
15501
- const customDmmf = await (0, import_chunk_CSRUIX22.getDMMF)({
16161
+ const customDmmf = await (0, import_chunk_2V6E3NJE.getDMMF)({
15502
16162
  datamodel: schemas,
15503
16163
  datamodelPath: schemaPath,
15504
16164
  prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
@@ -15666,16 +16326,16 @@ async function sendPanic({
15666
16326
  sqlDump: void 0,
15667
16327
  dbVersion
15668
16328
  };
15669
- const signedUrl = await (0, import_chunk_4NFLAUKD.createErrorReport)(params);
16329
+ const signedUrl = await (0, import_chunk_KQOJB3ZW.createErrorReport)(params);
15670
16330
  try {
15671
16331
  if (error.schemaPath) {
15672
16332
  const zip = await makeErrorZip(error);
15673
- await (0, import_chunk_4NFLAUKD.uploadZip)(zip, signedUrl);
16333
+ await (0, import_chunk_KQOJB3ZW.uploadZip)(zip, signedUrl);
15674
16334
  }
15675
16335
  } catch (zipUploadError) {
15676
16336
  console.error(`Error uploading zip file: ${zipUploadError.message}`);
15677
16337
  }
15678
- const id = await (0, import_chunk_4NFLAUKD.makeErrorReportCompleted)(signedUrl);
16338
+ const id = await (0, import_chunk_KQOJB3ZW.makeErrorReportCompleted)(signedUrl);
15679
16339
  return id;
15680
16340
  }
15681
16341
  function concatSchemaForReport(schemaFiles) {
@@ -15782,7 +16442,7 @@ ${(0, import_chunk_PG5FDKSF.bold)("Thanks a lot for your help! \u{1F64F}")}`);
15782
16442
  console.error(`${(0, import_chunk_PG5FDKSF.gray)("Error report submission failed due to: ")}`, error2);
15783
16443
  }
15784
16444
  }
15785
- await (0, import_chunk_XLYQ6PQW.wouldYouLikeToCreateANewIssue)({
16445
+ await (0, import_chunk_SLBBRUQS.wouldYouLikeToCreateANewIssue)({
15786
16446
  prompt: !shouldSubmitReport,
15787
16447
  error,
15788
16448
  cliVersion: cliVersion2,
@@ -15796,7 +16456,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
15796
16456
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
15797
16457
  handleFormatPanic(
15798
16458
  () => {
15799
- import_chunk_QEVSPE5U.prismaSchemaWasm.debug_panic();
16459
+ import_chunk_W423I6QD.prismaSchemaWasm.debug_panic();
15800
16460
  },
15801
16461
  { schemas: schemas2 }
15802
16462
  );
@@ -15816,12 +16476,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
15816
16476
  () => {
15817
16477
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
15818
16478
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
15819
- const lintDiagnostics2 = (0, import_chunk_4M4LPJPC.lintSchema)({ schemas: formattedMultipleSchemas2 });
16479
+ const lintDiagnostics2 = (0, import_chunk_VAAPHITN.lintSchema)({ schemas: formattedMultipleSchemas2 });
15820
16480
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
15821
16481
  },
15822
16482
  { schemas: schemas2 }
15823
16483
  );
15824
- const lintWarnings = (0, import_chunk_4M4LPJPC.getLintWarningsAsText)(lintDiagnostics);
16484
+ const lintWarnings = (0, import_chunk_VAAPHITN.getLintWarningsAsText)(lintDiagnostics);
15825
16485
  if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
15826
16486
  console.warn(lintWarnings);
15827
16487
  }
@@ -15851,7 +16511,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
15851
16511
  }
15852
16512
  }
15853
16513
  function formatWasm(schema, documentFormattingParams) {
15854
- const formattedSchema = import_chunk_QEVSPE5U.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
16514
+ const formattedSchema = import_chunk_W423I6QD.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15855
16515
  return formattedSchema;
15856
16516
  }
15857
16517
  /*! Bundled license information: