@base44-preview/cli 0.0.11-pr.79.74a806c → 0.0.11-pr.82.5adefb8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli/index.js +1034 -510
  2. package/package.json +2 -1
package/dist/cli/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from "node:module";
3
3
  import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
4
- import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
5
- import nodePath, { basename, dirname, join, posix, resolve, win32 } from "node:path";
4
+ import childProcess, { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
5
+ import path, { basename, dirname, join, posix, resolve, win32 } from "node:path";
6
6
  import fs, { appendFileSync, createReadStream, createWriteStream, readFileSync, statSync, writeFileSync } from "node:fs";
7
- import y, { execArgv, execPath, hrtime, platform, stdin, stdout } from "node:process";
7
+ import process$1, { execArgv, execPath, hrtime, platform, stdin, stdout } from "node:process";
8
8
  import { aborted, callbackify, debuglog, inspect, promisify, stripVTControlCharacters } from "node:util";
9
9
  import * as g from "node:readline";
10
10
  import O from "node:readline";
@@ -12,10 +12,10 @@ import Stream, { Duplex, PassThrough, Readable, Transform, Writable, getDefaultH
12
12
  import os, { constants, homedir, tmpdir } from "node:os";
13
13
  import { fileURLToPath } from "node:url";
14
14
  import fs$1 from "fs";
15
- import path, { dirname as dirname$1, parse } from "path";
15
+ import path$1, { dirname as dirname$1, parse } from "path";
16
16
  import { finished } from "node:stream/promises";
17
17
  import EE, { EventEmitter as EventEmitter$1 } from "events";
18
- import fsPromises, { access, copyFile, mkdir, readFile, unlink, writeFile } from "node:fs/promises";
18
+ import fs$2, { access, constants as constants$1, copyFile, mkdir, readFile, unlink, writeFile } from "node:fs/promises";
19
19
  import { Buffer as Buffer$1 } from "buffer";
20
20
  import tty from "node:tty";
21
21
  import { randomBytes, randomUUID } from "node:crypto";
@@ -891,10 +891,10 @@ var require_suggestSimilar = /* @__PURE__ */ __commonJSMin(((exports) => {
891
891
  //#region node_modules/commander/lib/command.js
892
892
  var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
893
893
  const EventEmitter$2 = __require("node:events").EventEmitter;
894
- const childProcess = __require("node:child_process");
895
- const path$15 = __require("node:path");
896
- const fs$10 = __require("node:fs");
897
- const process$3 = __require("node:process");
894
+ const childProcess$1 = __require("node:child_process");
895
+ const path$16 = __require("node:path");
896
+ const fs$11 = __require("node:fs");
897
+ const process$4 = __require("node:process");
898
898
  const { Argument, humanReadableArgName } = require_argument();
899
899
  const { CommanderError } = require_error$1();
900
900
  const { Help } = require_help();
@@ -945,10 +945,10 @@ var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
945
945
  this._showHelpAfterError = false;
946
946
  this._showSuggestionAfterError = true;
947
947
  this._outputConfiguration = {
948
- writeOut: (str) => process$3.stdout.write(str),
949
- writeErr: (str) => process$3.stderr.write(str),
950
- getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
951
- getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
948
+ writeOut: (str) => process$4.stdout.write(str),
949
+ writeErr: (str) => process$4.stderr.write(str),
950
+ getOutHelpWidth: () => process$4.stdout.isTTY ? process$4.stdout.columns : void 0,
951
+ getErrHelpWidth: () => process$4.stderr.isTTY ? process$4.stderr.columns : void 0,
952
952
  outputError: (str, write) => write(str)
953
953
  };
954
954
  this._hidden = false;
@@ -1302,7 +1302,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1302
1302
  */
1303
1303
  _exit(exitCode, code$1, message) {
1304
1304
  if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code$1, message));
1305
- process$3.exit(exitCode);
1305
+ process$4.exit(exitCode);
1306
1306
  }
1307
1307
  /**
1308
1308
  * Register callback `fn` for the command.
@@ -1641,11 +1641,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
1641
1641
  if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
1642
1642
  parseOptions = parseOptions || {};
1643
1643
  if (argv === void 0 && parseOptions.from === void 0) {
1644
- if (process$3.versions?.electron) parseOptions.from = "electron";
1645
- const execArgv$1 = process$3.execArgv ?? [];
1644
+ if (process$4.versions?.electron) parseOptions.from = "electron";
1645
+ const execArgv$1 = process$4.execArgv ?? [];
1646
1646
  if (execArgv$1.includes("-e") || execArgv$1.includes("--eval") || execArgv$1.includes("-p") || execArgv$1.includes("--print")) parseOptions.from = "eval";
1647
1647
  }
1648
- if (argv === void 0) argv = process$3.argv;
1648
+ if (argv === void 0) argv = process$4.argv;
1649
1649
  this.rawArgs = argv.slice();
1650
1650
  let userArgs;
1651
1651
  switch (parseOptions.from) {
@@ -1655,7 +1655,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1655
1655
  userArgs = argv.slice(2);
1656
1656
  break;
1657
1657
  case "electron":
1658
- if (process$3.defaultApp) {
1658
+ if (process$4.defaultApp) {
1659
1659
  this._scriptPath = argv[1];
1660
1660
  userArgs = argv.slice(2);
1661
1661
  } else userArgs = argv.slice(1);
@@ -1740,10 +1740,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
1740
1740
  ".cjs"
1741
1741
  ];
1742
1742
  function findFile(baseDir, baseName) {
1743
- const localBin = path$15.resolve(baseDir, baseName);
1744
- if (fs$10.existsSync(localBin)) return localBin;
1745
- if (sourceExt.includes(path$15.extname(baseName))) return void 0;
1746
- const foundExt = sourceExt.find((ext) => fs$10.existsSync(`${localBin}${ext}`));
1743
+ const localBin = path$16.resolve(baseDir, baseName);
1744
+ if (fs$11.existsSync(localBin)) return localBin;
1745
+ if (sourceExt.includes(path$16.extname(baseName))) return void 0;
1746
+ const foundExt = sourceExt.find((ext) => fs$11.existsSync(`${localBin}${ext}`));
1747
1747
  if (foundExt) return `${localBin}${foundExt}`;
1748
1748
  }
1749
1749
  this._checkForMissingMandatoryOptions();
@@ -1753,31 +1753,31 @@ Expecting one of '${allowedValues.join("', '")}'`);
1753
1753
  if (this._scriptPath) {
1754
1754
  let resolvedScriptPath;
1755
1755
  try {
1756
- resolvedScriptPath = fs$10.realpathSync(this._scriptPath);
1756
+ resolvedScriptPath = fs$11.realpathSync(this._scriptPath);
1757
1757
  } catch (err) {
1758
1758
  resolvedScriptPath = this._scriptPath;
1759
1759
  }
1760
- executableDir = path$15.resolve(path$15.dirname(resolvedScriptPath), executableDir);
1760
+ executableDir = path$16.resolve(path$16.dirname(resolvedScriptPath), executableDir);
1761
1761
  }
1762
1762
  if (executableDir) {
1763
1763
  let localFile = findFile(executableDir, executableFile);
1764
1764
  if (!localFile && !subcommand._executableFile && this._scriptPath) {
1765
- const legacyName = path$15.basename(this._scriptPath, path$15.extname(this._scriptPath));
1765
+ const legacyName = path$16.basename(this._scriptPath, path$16.extname(this._scriptPath));
1766
1766
  if (legacyName !== this._name) localFile = findFile(executableDir, `${legacyName}-${subcommand._name}`);
1767
1767
  }
1768
1768
  executableFile = localFile || executableFile;
1769
1769
  }
1770
- launchWithNode = sourceExt.includes(path$15.extname(executableFile));
1770
+ launchWithNode = sourceExt.includes(path$16.extname(executableFile));
1771
1771
  let proc$1;
1772
- if (process$3.platform !== "win32") if (launchWithNode) {
1772
+ if (process$4.platform !== "win32") if (launchWithNode) {
1773
1773
  args.unshift(executableFile);
1774
- args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
1775
- proc$1 = childProcess.spawn(process$3.argv[0], args, { stdio: "inherit" });
1776
- } else proc$1 = childProcess.spawn(executableFile, args, { stdio: "inherit" });
1774
+ args = incrementNodeInspectorPort(process$4.execArgv).concat(args);
1775
+ proc$1 = childProcess$1.spawn(process$4.argv[0], args, { stdio: "inherit" });
1776
+ } else proc$1 = childProcess$1.spawn(executableFile, args, { stdio: "inherit" });
1777
1777
  else {
1778
1778
  args.unshift(executableFile);
1779
- args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
1780
- proc$1 = childProcess.spawn(process$3.execPath, args, { stdio: "inherit" });
1779
+ args = incrementNodeInspectorPort(process$4.execArgv).concat(args);
1780
+ proc$1 = childProcess$1.spawn(process$4.execPath, args, { stdio: "inherit" });
1781
1781
  }
1782
1782
  if (!proc$1.killed) [
1783
1783
  "SIGUSR1",
@@ -1786,14 +1786,14 @@ Expecting one of '${allowedValues.join("', '")}'`);
1786
1786
  "SIGINT",
1787
1787
  "SIGHUP"
1788
1788
  ].forEach((signal) => {
1789
- process$3.on(signal, () => {
1789
+ process$4.on(signal, () => {
1790
1790
  if (proc$1.killed === false && proc$1.exitCode === null) proc$1.kill(signal);
1791
1791
  });
1792
1792
  });
1793
1793
  const exitCallback = this._exitCallback;
1794
1794
  proc$1.on("close", (code$1) => {
1795
1795
  code$1 = code$1 ?? 1;
1796
- if (!exitCallback) process$3.exit(code$1);
1796
+ if (!exitCallback) process$4.exit(code$1);
1797
1797
  else exitCallback(new CommanderError(code$1, "commander.executeSubCommandAsync", "(close)"));
1798
1798
  });
1799
1799
  proc$1.on("error", (err) => {
@@ -1805,7 +1805,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1805
1805
  - ${executableDirMessage}`;
1806
1806
  throw new Error(executableMissing);
1807
1807
  } else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
1808
- if (!exitCallback) process$3.exit(1);
1808
+ if (!exitCallback) process$4.exit(1);
1809
1809
  else {
1810
1810
  const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
1811
1811
  wrappedError.nestedError = err;
@@ -2211,13 +2211,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
2211
2211
  */
2212
2212
  _parseOptionsEnv() {
2213
2213
  this.options.forEach((option) => {
2214
- if (option.envVar && option.envVar in process$3.env) {
2214
+ if (option.envVar && option.envVar in process$4.env) {
2215
2215
  const optionKey = option.attributeName();
2216
2216
  if (this.getOptionValue(optionKey) === void 0 || [
2217
2217
  "default",
2218
2218
  "config",
2219
2219
  "env"
2220
- ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
2220
+ ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$4.env[option.envVar]);
2221
2221
  else this.emit(`optionEnv:${option.name()}`);
2222
2222
  }
2223
2223
  });
@@ -2473,7 +2473,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2473
2473
  * @return {Command}
2474
2474
  */
2475
2475
  nameFromFilename(filename) {
2476
- this._name = path$15.basename(filename, path$15.extname(filename));
2476
+ this._name = path$16.basename(filename, path$16.extname(filename));
2477
2477
  return this;
2478
2478
  }
2479
2479
  /**
@@ -2487,9 +2487,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
2487
2487
  * @param {string} [path]
2488
2488
  * @return {(string|null|Command)}
2489
2489
  */
2490
- executableDir(path$16) {
2491
- if (path$16 === void 0) return this._executableDir;
2492
- this._executableDir = path$16;
2490
+ executableDir(path$17) {
2491
+ if (path$17 === void 0) return this._executableDir;
2492
+ this._executableDir = path$17;
2493
2493
  return this;
2494
2494
  }
2495
2495
  /**
@@ -2596,7 +2596,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2596
2596
  */
2597
2597
  help(contextOptions) {
2598
2598
  this.outputHelp(contextOptions);
2599
- let exitCode = process$3.exitCode || 0;
2599
+ let exitCode = process$4.exitCode || 0;
2600
2600
  if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
2601
2601
  this._exit(exitCode, "commander.help", "(outputHelp)");
2602
2602
  }
@@ -2712,16 +2712,16 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2712
2712
  const CSI = `${ESC}[`;
2713
2713
  const beep = "\x07";
2714
2714
  const cursor = {
2715
- to(x$2, y$2) {
2716
- if (!y$2) return `${CSI}${x$2 + 1}G`;
2717
- return `${CSI}${y$2 + 1};${x$2 + 1}H`;
2715
+ to(x$2, y$1) {
2716
+ if (!y$1) return `${CSI}${x$2 + 1}G`;
2717
+ return `${CSI}${y$1 + 1};${x$2 + 1}H`;
2718
2718
  },
2719
- move(x$2, y$2) {
2719
+ move(x$2, y$1) {
2720
2720
  let ret = "";
2721
2721
  if (x$2 < 0) ret += `${CSI}${-x$2}D`;
2722
2722
  else if (x$2 > 0) ret += `${CSI}${x$2}C`;
2723
- if (y$2 < 0) ret += `${CSI}${-y$2}A`;
2724
- else if (y$2 > 0) ret += `${CSI}${y$2}B`;
2723
+ if (y$1 < 0) ret += `${CSI}${-y$1}A`;
2724
+ else if (y$1 > 0) ret += `${CSI}${y$1}B`;
2725
2725
  return ret;
2726
2726
  },
2727
2727
  up: (count$1 = 1) => `${CSI}${count$1}A`,
@@ -2767,9 +2767,9 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2767
2767
  var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2768
2768
  let p = process || {}, argv = p.argv || [], env = p.env || {};
2769
2769
  let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
2770
- let formatter = (open, close, replace$1 = open) => (input) => {
2771
- let string$2 = "" + input, index = string$2.indexOf(close, open.length);
2772
- return ~index ? open + replaceClose(string$2, close, replace$1, index) + close : open + string$2 + close;
2770
+ let formatter = (open$1, close, replace$1 = open$1) => (input) => {
2771
+ let string$2 = "" + input, index = string$2.indexOf(close, open$1.length);
2772
+ return ~index ? open$1 + replaceClose(string$2, close, replace$1, index) + close : open$1 + string$2 + close;
2773
2773
  };
2774
2774
  let replaceClose = (string$2, close, replace$1, index) => {
2775
2775
  let result = "", cursor = 0;
@@ -3031,13 +3031,13 @@ function rD() {
3031
3031
  }
3032
3032
  }), r;
3033
3033
  }
3034
- const ED = rD(), d$1 = new Set(["\x1B", "›"]), oD = 39, y$1 = "\x07", V$1 = "[", nD = "]", G$1 = "m", _$1 = `${nD}8;;`, z = (e$1) => `${d$1.values().next().value}${V$1}${e$1}${G$1}`, K$1 = (e$1) => `${d$1.values().next().value}${_$1}${e$1}${y$1}`, aD = (e$1) => e$1.split(" ").map((u$2) => p(u$2)), k$1 = (e$1, u$2, t) => {
3034
+ const ED = rD(), d$1 = new Set(["\x1B", "›"]), oD = 39, y = "\x07", V$1 = "[", nD = "]", G$1 = "m", _$1 = `${nD}8;;`, z = (e$1) => `${d$1.values().next().value}${V$1}${e$1}${G$1}`, K$1 = (e$1) => `${d$1.values().next().value}${_$1}${e$1}${y}`, aD = (e$1) => e$1.split(" ").map((u$2) => p(u$2)), k$1 = (e$1, u$2, t) => {
3035
3035
  const F$1 = [...u$2];
3036
3036
  let s = !1, i$1 = !1, D$1 = p(P$1(e$1[e$1.length - 1]));
3037
3037
  for (const [C$1, n$1] of F$1.entries()) {
3038
3038
  const E = p(n$1);
3039
3039
  if (D$1 + E <= t ? e$1[e$1.length - 1] += n$1 : (e$1.push(n$1), D$1 = 0), d$1.has(n$1) && (s = !0, i$1 = F$1.slice(C$1 + 1).join("").startsWith(_$1)), s) {
3040
- i$1 ? n$1 === y$1 && (s = !1, i$1 = !1) : n$1 === G$1 && (s = !1);
3040
+ i$1 ? n$1 === y && (s = !1, i$1 = !1) : n$1 === G$1 && (s = !1);
3041
3041
  continue;
3042
3042
  }
3043
3043
  D$1 += E, D$1 === t && C$1 < F$1.length - 1 && (e$1.push(""), D$1 = 0);
@@ -3079,7 +3079,7 @@ const ED = rD(), d$1 = new Set(["\x1B", "›"]), oD = 39, y$1 = "\x07", V$1 = "["
3079
3079
  `)];
3080
3080
  for (const [E, a$1] of n$1.entries()) {
3081
3081
  if (F$1 += a$1, d$1.has(a$1)) {
3082
- const { groups: c$1 } = (/* @__PURE__ */ new RegExp(`(?:\\${V$1}(?<code>\\d+)m|\\${_$1}(?<uri>.*)${y$1})`)).exec(n$1.slice(E).join("")) || { groups: {} };
3082
+ const { groups: c$1 } = (/* @__PURE__ */ new RegExp(`(?:\\${V$1}(?<code>\\d+)m|\\${_$1}(?<uri>.*)${y})`)).exec(n$1.slice(E).join("")) || { groups: {} };
3083
3083
  if (c$1.code !== void 0) {
3084
3084
  const f = Number.parseFloat(c$1.code);
3085
3085
  s = f === oD ? void 0 : f;
@@ -3480,7 +3480,7 @@ var RD = class extends x$1 {
3480
3480
  //#endregion
3481
3481
  //#region node_modules/@clack/prompts/dist/index.mjs
3482
3482
  function ce() {
3483
- return y.platform !== "win32" ? y.env.TERM !== "linux" : !!y.env.CI || !!y.env.WT_SESSION || !!y.env.TERMINUS_SUBLIME || y.env.ConEmuTask === "{cmd::Cmder}" || y.env.TERM_PROGRAM === "Terminus-Sublime" || y.env.TERM_PROGRAM === "vscode" || y.env.TERM === "xterm-256color" || y.env.TERM === "alacritty" || y.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
3483
+ return process$1.platform !== "win32" ? process$1.env.TERM !== "linux" : !!process$1.env.CI || !!process$1.env.WT_SESSION || !!process$1.env.TERMINUS_SUBLIME || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
3484
3484
  }
3485
3485
  const V = ce(), u$1 = (t, n$1) => V ? t : n$1, le = u$1("◆", "*"), L = u$1("■", "x"), W = u$1("▲", "x"), C = u$1("◇", "o"), ue = u$1("┌", "T"), o$1 = u$1("│", "|"), d = u$1("└", "—"), k = u$1("●", ">"), P = u$1("○", " "), A = u$1("◻", "[•]"), T = u$1("◼", "[+]"), F = u$1("◻", "[ ]"), $e = u$1("▪", "•"), _ = u$1("─", "-"), me = u$1("╮", "+"), de = u$1("├", "+"), pe = u$1("╯", "+"), q = u$1("●", "•"), D = u$1("◆", "*"), U = u$1("▲", "!"), K = u$1("■", "x"), b = (t) => {
3486
3486
  switch (t) {
@@ -4292,11 +4292,11 @@ function aborted$1(x$2, startIndex = 0) {
4292
4292
  for (let i$1 = startIndex; i$1 < x$2.issues.length; i$1++) if (x$2.issues[i$1]?.continue !== true) return true;
4293
4293
  return false;
4294
4294
  }
4295
- function prefixIssues(path$16, issues) {
4295
+ function prefixIssues(path$17, issues) {
4296
4296
  return issues.map((iss) => {
4297
4297
  var _a$1;
4298
4298
  (_a$1 = iss).path ?? (_a$1.path = []);
4299
- iss.path.unshift(path$16);
4299
+ iss.path.unshift(path$17);
4300
4300
  return iss;
4301
4301
  });
4302
4302
  }
@@ -6628,7 +6628,7 @@ function initializeContext(params) {
6628
6628
  external: params?.external ?? void 0
6629
6629
  };
6630
6630
  }
6631
- function process$2(schema, ctx, _params = {
6631
+ function process$3(schema, ctx, _params = {
6632
6632
  path: [],
6633
6633
  schemaPath: []
6634
6634
  }) {
@@ -6665,7 +6665,7 @@ function process$2(schema, ctx, _params = {
6665
6665
  const parent = schema._zod.parent;
6666
6666
  if (parent) {
6667
6667
  if (!result.ref) result.ref = parent;
6668
- process$2(parent, ctx, params);
6668
+ process$3(parent, ctx, params);
6669
6669
  ctx.seen.get(parent).isParent = true;
6670
6670
  }
6671
6671
  }
@@ -6877,7 +6877,7 @@ const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
6877
6877
  ...params,
6878
6878
  processors
6879
6879
  });
6880
- process$2(schema, ctx);
6880
+ process$3(schema, ctx);
6881
6881
  extractDefs(ctx, schema);
6882
6882
  return finalize(ctx, schema);
6883
6883
  };
@@ -6889,7 +6889,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
6889
6889
  io,
6890
6890
  processors
6891
6891
  });
6892
- process$2(schema, ctx);
6892
+ process$3(schema, ctx);
6893
6893
  extractDefs(ctx, schema);
6894
6894
  return finalize(ctx, schema);
6895
6895
  };
@@ -6973,7 +6973,7 @@ const arrayProcessor = (schema, ctx, _json, params) => {
6973
6973
  if (typeof minimum === "number") json.minItems = minimum;
6974
6974
  if (typeof maximum === "number") json.maxItems = maximum;
6975
6975
  json.type = "array";
6976
- json.items = process$2(def.element, ctx, {
6976
+ json.items = process$3(def.element, ctx, {
6977
6977
  ...params,
6978
6978
  path: [...params.path, "items"]
6979
6979
  });
@@ -6984,7 +6984,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
6984
6984
  json.type = "object";
6985
6985
  json.properties = {};
6986
6986
  const shape = def.shape;
6987
- for (const key in shape) json.properties[key] = process$2(shape[key], ctx, {
6987
+ for (const key in shape) json.properties[key] = process$3(shape[key], ctx, {
6988
6988
  ...params,
6989
6989
  path: [
6990
6990
  ...params.path,
@@ -7002,7 +7002,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
7002
7002
  if (def.catchall?._zod.def.type === "never") json.additionalProperties = false;
7003
7003
  else if (!def.catchall) {
7004
7004
  if (ctx.io === "output") json.additionalProperties = false;
7005
- } else if (def.catchall) json.additionalProperties = process$2(def.catchall, ctx, {
7005
+ } else if (def.catchall) json.additionalProperties = process$3(def.catchall, ctx, {
7006
7006
  ...params,
7007
7007
  path: [...params.path, "additionalProperties"]
7008
7008
  });
@@ -7010,7 +7010,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
7010
7010
  const unionProcessor = (schema, ctx, json, params) => {
7011
7011
  const def = schema._zod.def;
7012
7012
  const isExclusive = def.inclusive === false;
7013
- const options = def.options.map((x$2, i$1) => process$2(x$2, ctx, {
7013
+ const options = def.options.map((x$2, i$1) => process$3(x$2, ctx, {
7014
7014
  ...params,
7015
7015
  path: [
7016
7016
  ...params.path,
@@ -7023,7 +7023,7 @@ const unionProcessor = (schema, ctx, json, params) => {
7023
7023
  };
7024
7024
  const intersectionProcessor = (schema, ctx, json, params) => {
7025
7025
  const def = schema._zod.def;
7026
- const a$1 = process$2(def.left, ctx, {
7026
+ const a$1 = process$3(def.left, ctx, {
7027
7027
  ...params,
7028
7028
  path: [
7029
7029
  ...params.path,
@@ -7031,7 +7031,7 @@ const intersectionProcessor = (schema, ctx, json, params) => {
7031
7031
  0
7032
7032
  ]
7033
7033
  });
7034
- const b$2 = process$2(def.right, ctx, {
7034
+ const b$2 = process$3(def.right, ctx, {
7035
7035
  ...params,
7036
7036
  path: [
7037
7037
  ...params.path,
@@ -7048,7 +7048,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
7048
7048
  json.type = "array";
7049
7049
  const prefixPath$1 = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
7050
7050
  const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
7051
- const prefixItems = def.items.map((x$2, i$1) => process$2(x$2, ctx, {
7051
+ const prefixItems = def.items.map((x$2, i$1) => process$3(x$2, ctx, {
7052
7052
  ...params,
7053
7053
  path: [
7054
7054
  ...params.path,
@@ -7056,7 +7056,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
7056
7056
  i$1
7057
7057
  ]
7058
7058
  }));
7059
- const rest = def.rest ? process$2(def.rest, ctx, {
7059
+ const rest = def.rest ? process$3(def.rest, ctx, {
7060
7060
  ...params,
7061
7061
  path: [
7062
7062
  ...params.path,
@@ -7082,7 +7082,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
7082
7082
  };
7083
7083
  const nullableProcessor = (schema, ctx, json, params) => {
7084
7084
  const def = schema._zod.def;
7085
- const inner = process$2(def.innerType, ctx, params);
7085
+ const inner = process$3(def.innerType, ctx, params);
7086
7086
  const seen = ctx.seen.get(schema);
7087
7087
  if (ctx.target === "openapi-3.0") {
7088
7088
  seen.ref = def.innerType;
@@ -7091,27 +7091,27 @@ const nullableProcessor = (schema, ctx, json, params) => {
7091
7091
  };
7092
7092
  const nonoptionalProcessor = (schema, ctx, _json, params) => {
7093
7093
  const def = schema._zod.def;
7094
- process$2(def.innerType, ctx, params);
7094
+ process$3(def.innerType, ctx, params);
7095
7095
  const seen = ctx.seen.get(schema);
7096
7096
  seen.ref = def.innerType;
7097
7097
  };
7098
7098
  const defaultProcessor = (schema, ctx, json, params) => {
7099
7099
  const def = schema._zod.def;
7100
- process$2(def.innerType, ctx, params);
7100
+ process$3(def.innerType, ctx, params);
7101
7101
  const seen = ctx.seen.get(schema);
7102
7102
  seen.ref = def.innerType;
7103
7103
  json.default = JSON.parse(JSON.stringify(def.defaultValue));
7104
7104
  };
7105
7105
  const prefaultProcessor = (schema, ctx, json, params) => {
7106
7106
  const def = schema._zod.def;
7107
- process$2(def.innerType, ctx, params);
7107
+ process$3(def.innerType, ctx, params);
7108
7108
  const seen = ctx.seen.get(schema);
7109
7109
  seen.ref = def.innerType;
7110
7110
  if (ctx.io === "input") json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
7111
7111
  };
7112
7112
  const catchProcessor = (schema, ctx, json, params) => {
7113
7113
  const def = schema._zod.def;
7114
- process$2(def.innerType, ctx, params);
7114
+ process$3(def.innerType, ctx, params);
7115
7115
  const seen = ctx.seen.get(schema);
7116
7116
  seen.ref = def.innerType;
7117
7117
  let catchValue;
@@ -7125,20 +7125,20 @@ const catchProcessor = (schema, ctx, json, params) => {
7125
7125
  const pipeProcessor = (schema, ctx, _json, params) => {
7126
7126
  const def = schema._zod.def;
7127
7127
  const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
7128
- process$2(innerType, ctx, params);
7128
+ process$3(innerType, ctx, params);
7129
7129
  const seen = ctx.seen.get(schema);
7130
7130
  seen.ref = innerType;
7131
7131
  };
7132
7132
  const readonlyProcessor = (schema, ctx, json, params) => {
7133
7133
  const def = schema._zod.def;
7134
- process$2(def.innerType, ctx, params);
7134
+ process$3(def.innerType, ctx, params);
7135
7135
  const seen = ctx.seen.get(schema);
7136
7136
  seen.ref = def.innerType;
7137
7137
  json.readOnly = true;
7138
7138
  };
7139
7139
  const optionalProcessor = (schema, ctx, _json, params) => {
7140
7140
  const def = schema._zod.def;
7141
- process$2(def.innerType, ctx, params);
7141
+ process$3(def.innerType, ctx, params);
7142
7142
  const seen = ctx.seen.get(schema);
7143
7143
  seen.ref = def.innerType;
7144
7144
  };
@@ -8770,8 +8770,8 @@ var require_package$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8770
8770
  //#endregion
8771
8771
  //#region node_modules/dotenv/lib/main.js
8772
8772
  var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8773
- const fs$9 = __require("fs");
8774
- const path$14 = __require("path");
8773
+ const fs$10 = __require("fs");
8774
+ const path$15 = __require("path");
8775
8775
  const os$3 = __require("os");
8776
8776
  const crypto = __require("crypto");
8777
8777
  const version = require_package$1().version;
@@ -8907,14 +8907,14 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8907
8907
  function _vaultPath(options) {
8908
8908
  let possibleVaultPath = null;
8909
8909
  if (options && options.path && options.path.length > 0) if (Array.isArray(options.path)) {
8910
- for (const filepath of options.path) if (fs$9.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
8910
+ for (const filepath of options.path) if (fs$10.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
8911
8911
  } else possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
8912
- else possibleVaultPath = path$14.resolve(process.cwd(), ".env.vault");
8913
- if (fs$9.existsSync(possibleVaultPath)) return possibleVaultPath;
8912
+ else possibleVaultPath = path$15.resolve(process.cwd(), ".env.vault");
8913
+ if (fs$10.existsSync(possibleVaultPath)) return possibleVaultPath;
8914
8914
  return null;
8915
8915
  }
8916
8916
  function _resolveHome(envPath) {
8917
- return envPath[0] === "~" ? path$14.join(os$3.homedir(), envPath.slice(1)) : envPath;
8917
+ return envPath[0] === "~" ? path$15.join(os$3.homedir(), envPath.slice(1)) : envPath;
8918
8918
  }
8919
8919
  function _configVault(options) {
8920
8920
  const debug = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options && options.debug);
@@ -8927,7 +8927,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8927
8927
  return { parsed };
8928
8928
  }
8929
8929
  function configDotenv(options) {
8930
- const dotenvPath = path$14.resolve(process.cwd(), ".env");
8930
+ const dotenvPath = path$15.resolve(process.cwd(), ".env");
8931
8931
  let encoding = "utf8";
8932
8932
  let processEnv = process.env;
8933
8933
  if (options && options.processEnv != null) processEnv = options.processEnv;
@@ -8943,11 +8943,11 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8943
8943
  }
8944
8944
  let lastError;
8945
8945
  const parsedAll = {};
8946
- for (const path$16 of optionPaths) try {
8947
- const parsed = DotenvModule.parse(fs$9.readFileSync(path$16, { encoding }));
8946
+ for (const path$17 of optionPaths) try {
8947
+ const parsed = DotenvModule.parse(fs$10.readFileSync(path$17, { encoding }));
8948
8948
  DotenvModule.populate(parsedAll, parsed, options);
8949
8949
  } catch (e$1) {
8950
- if (debug) _debug(`Failed to load ${path$16} ${e$1.message}`);
8950
+ if (debug) _debug(`Failed to load ${path$17} ${e$1.message}`);
8951
8951
  lastError = e$1;
8952
8952
  }
8953
8953
  const populated = DotenvModule.populate(processEnv, parsedAll, options);
@@ -8957,7 +8957,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8957
8957
  const keysCount = Object.keys(populated).length;
8958
8958
  const shortPaths = [];
8959
8959
  for (const filePath of optionPaths) try {
8960
- const relative = path$14.relative(process.cwd(), filePath);
8960
+ const relative = path$15.relative(process.cwd(), filePath);
8961
8961
  shortPaths.push(relative);
8962
8962
  } catch (e$1) {
8963
8963
  if (debug) _debug(`Failed to load ${filePath} ${e$1.message}`);
@@ -9275,7 +9275,7 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
9275
9275
  Object.defineProperty(exports, "__esModule", { value: true });
9276
9276
  exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
9277
9277
  const os$2 = __require("os");
9278
- const path$13 = __require("path");
9278
+ const path$14 = __require("path");
9279
9279
  const IS_WINDOWS_PLATFORM = os$2.platform() === "win32";
9280
9280
  const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
9281
9281
  /**
@@ -9304,7 +9304,7 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
9304
9304
  }
9305
9305
  exports.unixify = unixify;
9306
9306
  function makeAbsolute(cwd, filepath) {
9307
- return path$13.resolve(cwd, filepath);
9307
+ return path$14.resolve(cwd, filepath);
9308
9308
  }
9309
9309
  exports.makeAbsolute = makeAbsolute;
9310
9310
  function removeLeadingDotSegment(entry) {
@@ -9414,9 +9414,9 @@ var require_is_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9414
9414
  }
9415
9415
  }
9416
9416
  if (str[index] === "\\") {
9417
- var open = str[index + 1];
9417
+ var open$1 = str[index + 1];
9418
9418
  index += 2;
9419
- var close = chars[open];
9419
+ var close = chars[open$1];
9420
9420
  if (close) {
9421
9421
  var n$1 = str.indexOf(close, index);
9422
9422
  if (n$1 !== -1) index = n$1 + 1;
@@ -9432,9 +9432,9 @@ var require_is_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9432
9432
  while (index < str.length) {
9433
9433
  if (/[*?{}()[\]]/.test(str[index])) return true;
9434
9434
  if (str[index] === "\\") {
9435
- var open = str[index + 1];
9435
+ var open$1 = str[index + 1];
9436
9436
  index += 2;
9437
- var close = chars[open];
9437
+ var close = chars[open$1];
9438
9438
  if (close) {
9439
9439
  var n$1 = str.indexOf(close, index);
9440
9440
  if (n$1 !== -1) index = n$1 + 1;
@@ -10286,7 +10286,7 @@ var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10286
10286
  * Quotes: '|"|`
10287
10287
  */
10288
10288
  if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
10289
- const open = value;
10289
+ const open$1 = value;
10290
10290
  let next;
10291
10291
  if (options.keepQuotes !== true) value = "";
10292
10292
  while (index < length && (next = advance())) {
@@ -10294,7 +10294,7 @@ var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10294
10294
  value += next + advance();
10295
10295
  continue;
10296
10296
  }
10297
- if (next === open) {
10297
+ if (next === open$1) {
10298
10298
  if (options.keepQuotes === true) value += next;
10299
10299
  break;
10300
10300
  }
@@ -10356,8 +10356,8 @@ var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10356
10356
  if (value === CHAR_COMMA && depth > 0) {
10357
10357
  if (block.ranges > 0) {
10358
10358
  block.ranges = 0;
10359
- const open = block.nodes.shift();
10360
- block.nodes = [open, {
10359
+ const open$1 = block.nodes.shift();
10360
+ block.nodes = [open$1, {
10361
10361
  type: "text",
10362
10362
  value: stringify(block)
10363
10363
  }];
@@ -10570,7 +10570,7 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10570
10570
  //#endregion
10571
10571
  //#region node_modules/micromatch/node_modules/picomatch/lib/constants.js
10572
10572
  var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10573
- const path$12 = __require("path");
10573
+ const path$13 = __require("path");
10574
10574
  const WIN_SLASH = "\\\\/";
10575
10575
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
10576
10576
  /**
@@ -10695,7 +10695,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10695
10695
  CHAR_UNDERSCORE: 95,
10696
10696
  CHAR_VERTICAL_LINE: 124,
10697
10697
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
10698
- SEP: path$12.sep,
10698
+ SEP: path$13.sep,
10699
10699
  extglobChars(chars) {
10700
10700
  return {
10701
10701
  "!": {
@@ -10734,7 +10734,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10734
10734
  //#endregion
10735
10735
  //#region node_modules/micromatch/node_modules/picomatch/lib/utils.js
10736
10736
  var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
10737
- const path$11 = __require("path");
10737
+ const path$12 = __require("path");
10738
10738
  const win32 = process.platform === "win32";
10739
10739
  const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$1();
10740
10740
  exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
@@ -10754,7 +10754,7 @@ var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
10754
10754
  };
10755
10755
  exports.isWindows = (options) => {
10756
10756
  if (options && typeof options.windows === "boolean") return options.windows;
10757
- return win32 === true || path$11.sep === "\\";
10757
+ return win32 === true || path$12.sep === "\\";
10758
10758
  };
10759
10759
  exports.escapeLast = (input, char, lastIdx) => {
10760
10760
  const idx = input.lastIndexOf(char, lastIdx);
@@ -11462,15 +11462,15 @@ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11462
11462
  */
11463
11463
  if (value === "{" && opts.nobrace !== true) {
11464
11464
  increment$1("braces");
11465
- const open = {
11465
+ const open$1 = {
11466
11466
  type: "brace",
11467
11467
  value,
11468
11468
  output: "(",
11469
11469
  outputIndex: state.output.length,
11470
11470
  tokensIndex: state.tokens.length
11471
11471
  };
11472
- braces.push(open);
11473
- push$1(open);
11472
+ braces.push(open$1);
11473
+ push$1(open$1);
11474
11474
  continue;
11475
11475
  }
11476
11476
  if (value === "}") {
@@ -11930,7 +11930,7 @@ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11930
11930
  //#endregion
11931
11931
  //#region node_modules/micromatch/node_modules/picomatch/lib/picomatch.js
11932
11932
  var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11933
- const path$10 = __require("path");
11933
+ const path$11 = __require("path");
11934
11934
  const scan = require_scan();
11935
11935
  const parse = require_parse$2();
11936
11936
  const utils = require_utils$3();
@@ -12069,7 +12069,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12069
12069
  * @api public
12070
12070
  */
12071
12071
  picomatch.matchBase = (input, glob, options, posix$1 = utils.isWindows(options)) => {
12072
- return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path$10.basename(input));
12072
+ return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path$11.basename(input));
12073
12073
  };
12074
12074
  /**
12075
12075
  * Returns true if **any** of the given glob `patterns` match the specified `string`.
@@ -12627,7 +12627,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12627
12627
  var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
12628
12628
  Object.defineProperty(exports, "__esModule", { value: true });
12629
12629
  exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
12630
- const path$9 = __require("path");
12630
+ const path$10 = __require("path");
12631
12631
  const globParent = require_glob_parent();
12632
12632
  const micromatch = require_micromatch();
12633
12633
  const GLOBSTAR = "**";
@@ -12735,7 +12735,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
12735
12735
  }
12736
12736
  exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
12737
12737
  function isAffectDepthOfReadingPattern(pattern) {
12738
- const basename$1 = path$9.basename(pattern);
12738
+ const basename$1 = path$10.basename(pattern);
12739
12739
  return endsWithSlashGlobStar(pattern) || isStaticPattern(basename$1);
12740
12740
  }
12741
12741
  exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
@@ -12809,7 +12809,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
12809
12809
  }
12810
12810
  exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
12811
12811
  function isAbsolute(pattern) {
12812
- return path$9.isAbsolute(pattern);
12812
+ return path$10.isAbsolute(pattern);
12813
12813
  }
12814
12814
  exports.isAbsolute = isAbsolute;
12815
12815
  }));
@@ -13052,8 +13052,8 @@ var require_tasks = /* @__PURE__ */ __commonJSMin(((exports) => {
13052
13052
  var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
13053
13053
  Object.defineProperty(exports, "__esModule", { value: true });
13054
13054
  exports.read = void 0;
13055
- function read(path$16, settings, callback) {
13056
- settings.fs.lstat(path$16, (lstatError, lstat) => {
13055
+ function read(path$17, settings, callback) {
13056
+ settings.fs.lstat(path$17, (lstatError, lstat) => {
13057
13057
  if (lstatError !== null) {
13058
13058
  callFailureCallback(callback, lstatError);
13059
13059
  return;
@@ -13062,7 +13062,7 @@ var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
13062
13062
  callSuccessCallback(callback, lstat);
13063
13063
  return;
13064
13064
  }
13065
- settings.fs.stat(path$16, (statError, stat) => {
13065
+ settings.fs.stat(path$17, (statError, stat) => {
13066
13066
  if (statError !== null) {
13067
13067
  if (settings.throwErrorOnBrokenSymbolicLink) {
13068
13068
  callFailureCallback(callback, statError);
@@ -13090,11 +13090,11 @@ var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
13090
13090
  var require_sync$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
13091
13091
  Object.defineProperty(exports, "__esModule", { value: true });
13092
13092
  exports.read = void 0;
13093
- function read(path$16, settings) {
13094
- const lstat = settings.fs.lstatSync(path$16);
13093
+ function read(path$17, settings) {
13094
+ const lstat = settings.fs.lstatSync(path$17);
13095
13095
  if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) return lstat;
13096
13096
  try {
13097
- const stat = settings.fs.statSync(path$16);
13097
+ const stat = settings.fs.statSync(path$17);
13098
13098
  if (settings.markSymbolicLink) stat.isSymbolicLink = () => true;
13099
13099
  return stat;
13100
13100
  } catch (error) {
@@ -13110,12 +13110,12 @@ var require_sync$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
13110
13110
  var require_fs$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
13111
13111
  Object.defineProperty(exports, "__esModule", { value: true });
13112
13112
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
13113
- const fs$8 = __require("fs");
13113
+ const fs$9 = __require("fs");
13114
13114
  exports.FILE_SYSTEM_ADAPTER = {
13115
- lstat: fs$8.lstat,
13116
- stat: fs$8.stat,
13117
- lstatSync: fs$8.lstatSync,
13118
- statSync: fs$8.statSync
13115
+ lstat: fs$9.lstat,
13116
+ stat: fs$9.stat,
13117
+ lstatSync: fs$9.lstatSync,
13118
+ statSync: fs$9.statSync
13119
13119
  };
13120
13120
  function createFileSystemAdapter(fsMethods) {
13121
13121
  if (fsMethods === void 0) return exports.FILE_SYSTEM_ADAPTER;
@@ -13153,17 +13153,17 @@ var require_out$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
13153
13153
  const sync = require_sync$5();
13154
13154
  const settings_1 = require_settings$3();
13155
13155
  exports.Settings = settings_1.default;
13156
- function stat(path$16, optionsOrSettingsOrCallback, callback) {
13156
+ function stat(path$17, optionsOrSettingsOrCallback, callback) {
13157
13157
  if (typeof optionsOrSettingsOrCallback === "function") {
13158
- async.read(path$16, getSettings(), optionsOrSettingsOrCallback);
13158
+ async.read(path$17, getSettings(), optionsOrSettingsOrCallback);
13159
13159
  return;
13160
13160
  }
13161
- async.read(path$16, getSettings(optionsOrSettingsOrCallback), callback);
13161
+ async.read(path$17, getSettings(optionsOrSettingsOrCallback), callback);
13162
13162
  }
13163
13163
  exports.stat = stat;
13164
- function statSync(path$16, optionsOrSettings) {
13164
+ function statSync(path$17, optionsOrSettings) {
13165
13165
  const settings = getSettings(optionsOrSettings);
13166
- return sync.read(path$16, settings);
13166
+ return sync.read(path$17, settings);
13167
13167
  }
13168
13168
  exports.statSync = statSync;
13169
13169
  function getSettings(settingsOrOptions = {}) {
@@ -13362,16 +13362,16 @@ var require_async$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
13362
13362
  return;
13363
13363
  }
13364
13364
  rpl(names.map((name$1) => {
13365
- const path$16 = common.joinPathSegments(directory, name$1, settings.pathSegmentSeparator);
13365
+ const path$17 = common.joinPathSegments(directory, name$1, settings.pathSegmentSeparator);
13366
13366
  return (done) => {
13367
- fsStat.stat(path$16, settings.fsStatSettings, (error, stats) => {
13367
+ fsStat.stat(path$17, settings.fsStatSettings, (error, stats) => {
13368
13368
  if (error !== null) {
13369
13369
  done(error);
13370
13370
  return;
13371
13371
  }
13372
13372
  const entry = {
13373
13373
  name: name$1,
13374
- path: path$16,
13374
+ path: path$17,
13375
13375
  dirent: utils.fs.createDirentFromStats(name$1, stats)
13376
13376
  };
13377
13377
  if (settings.stats) entry.stats = stats;
@@ -13448,14 +13448,14 @@ var require_sync$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
13448
13448
  var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
13449
13449
  Object.defineProperty(exports, "__esModule", { value: true });
13450
13450
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
13451
- const fs$7 = __require("fs");
13451
+ const fs$8 = __require("fs");
13452
13452
  exports.FILE_SYSTEM_ADAPTER = {
13453
- lstat: fs$7.lstat,
13454
- stat: fs$7.stat,
13455
- lstatSync: fs$7.lstatSync,
13456
- statSync: fs$7.statSync,
13457
- readdir: fs$7.readdir,
13458
- readdirSync: fs$7.readdirSync
13453
+ lstat: fs$8.lstat,
13454
+ stat: fs$8.stat,
13455
+ lstatSync: fs$8.lstatSync,
13456
+ statSync: fs$8.statSync,
13457
+ readdir: fs$8.readdir,
13458
+ readdirSync: fs$8.readdirSync
13459
13459
  };
13460
13460
  function createFileSystemAdapter(fsMethods) {
13461
13461
  if (fsMethods === void 0) return exports.FILE_SYSTEM_ADAPTER;
@@ -13468,7 +13468,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
13468
13468
  //#region node_modules/@nodelib/fs.scandir/out/settings.js
13469
13469
  var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
13470
13470
  Object.defineProperty(exports, "__esModule", { value: true });
13471
- const path$8 = __require("path");
13471
+ const path$9 = __require("path");
13472
13472
  const fsStat = require_out$3();
13473
13473
  const fs = require_fs();
13474
13474
  var Settings = class {
@@ -13476,7 +13476,7 @@ var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
13476
13476
  this._options = _options;
13477
13477
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
13478
13478
  this.fs = fs.createFileSystemAdapter(this._options.fs);
13479
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$8.sep);
13479
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$9.sep);
13480
13480
  this.stats = this._getValue(this._options.stats, false);
13481
13481
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
13482
13482
  this.fsStatSettings = new fsStat.Settings({
@@ -13501,17 +13501,17 @@ var require_out$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
13501
13501
  const sync = require_sync$4();
13502
13502
  const settings_1 = require_settings$2();
13503
13503
  exports.Settings = settings_1.default;
13504
- function scandir(path$16, optionsOrSettingsOrCallback, callback) {
13504
+ function scandir(path$17, optionsOrSettingsOrCallback, callback) {
13505
13505
  if (typeof optionsOrSettingsOrCallback === "function") {
13506
- async.read(path$16, getSettings(), optionsOrSettingsOrCallback);
13506
+ async.read(path$17, getSettings(), optionsOrSettingsOrCallback);
13507
13507
  return;
13508
13508
  }
13509
- async.read(path$16, getSettings(optionsOrSettingsOrCallback), callback);
13509
+ async.read(path$17, getSettings(optionsOrSettingsOrCallback), callback);
13510
13510
  }
13511
13511
  exports.scandir = scandir;
13512
- function scandirSync(path$16, optionsOrSettings) {
13512
+ function scandirSync(path$17, optionsOrSettings) {
13513
13513
  const settings = getSettings(optionsOrSettings);
13514
- return sync.read(path$16, settings);
13514
+ return sync.read(path$17, settings);
13515
13515
  }
13516
13516
  exports.scandirSync = scandirSync;
13517
13517
  function getSettings(settingsOrOptions = {}) {
@@ -14081,7 +14081,7 @@ var require_sync$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
14081
14081
  //#region node_modules/@nodelib/fs.walk/out/settings.js
14082
14082
  var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
14083
14083
  Object.defineProperty(exports, "__esModule", { value: true });
14084
- const path$7 = __require("path");
14084
+ const path$8 = __require("path");
14085
14085
  const fsScandir = require_out$2();
14086
14086
  var Settings = class {
14087
14087
  constructor(_options = {}) {
@@ -14091,7 +14091,7 @@ var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
14091
14091
  this.deepFilter = this._getValue(this._options.deepFilter, null);
14092
14092
  this.entryFilter = this._getValue(this._options.entryFilter, null);
14093
14093
  this.errorFilter = this._getValue(this._options.errorFilter, null);
14094
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$7.sep);
14094
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$8.sep);
14095
14095
  this.fsScandirSettings = new fsScandir.Settings({
14096
14096
  followSymbolicLinks: this._options.followSymbolicLinks,
14097
14097
  fs: this._options.fs,
@@ -14145,7 +14145,7 @@ var require_out$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
14145
14145
  //#region node_modules/fast-glob/out/readers/reader.js
14146
14146
  var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
14147
14147
  Object.defineProperty(exports, "__esModule", { value: true });
14148
- const path$6 = __require("path");
14148
+ const path$7 = __require("path");
14149
14149
  const fsStat = require_out$3();
14150
14150
  const utils = require_utils$2();
14151
14151
  var Reader = class {
@@ -14158,7 +14158,7 @@ var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
14158
14158
  });
14159
14159
  }
14160
14160
  _getFullEntryPath(filepath) {
14161
- return path$6.resolve(this._settings.cwd, filepath);
14161
+ return path$7.resolve(this._settings.cwd, filepath);
14162
14162
  }
14163
14163
  _makeEntry(stats, pattern) {
14164
14164
  const entry = {
@@ -14502,7 +14502,7 @@ var require_entry = /* @__PURE__ */ __commonJSMin(((exports) => {
14502
14502
  //#region node_modules/fast-glob/out/providers/provider.js
14503
14503
  var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
14504
14504
  Object.defineProperty(exports, "__esModule", { value: true });
14505
- const path$5 = __require("path");
14505
+ const path$6 = __require("path");
14506
14506
  const deep_1 = require_deep();
14507
14507
  const entry_1 = require_entry$1();
14508
14508
  const error_1 = require_error();
@@ -14516,7 +14516,7 @@ var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
14516
14516
  this.entryTransformer = new entry_2.default(this._settings);
14517
14517
  }
14518
14518
  _getRootDirectory(task) {
14519
- return path$5.resolve(this._settings.cwd, task.base);
14519
+ return path$6.resolve(this._settings.cwd, task.base);
14520
14520
  }
14521
14521
  _getReaderOptions(task) {
14522
14522
  const basePath = task.base === "." ? "" : task.base;
@@ -14677,7 +14677,7 @@ var require_sync = /* @__PURE__ */ __commonJSMin(((exports) => {
14677
14677
  var require_settings = /* @__PURE__ */ __commonJSMin(((exports) => {
14678
14678
  Object.defineProperty(exports, "__esModule", { value: true });
14679
14679
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
14680
- const fs$6 = __require("fs");
14680
+ const fs$7 = __require("fs");
14681
14681
  const os$1 = __require("os");
14682
14682
  /**
14683
14683
  * The `os.cpus` method can return zero. We expect the number of cores to be greater than zero.
@@ -14685,12 +14685,12 @@ var require_settings = /* @__PURE__ */ __commonJSMin(((exports) => {
14685
14685
  */
14686
14686
  const CPU_COUNT = Math.max(os$1.cpus().length, 1);
14687
14687
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
14688
- lstat: fs$6.lstat,
14689
- lstatSync: fs$6.lstatSync,
14690
- stat: fs$6.stat,
14691
- statSync: fs$6.statSync,
14692
- readdir: fs$6.readdir,
14693
- readdirSync: fs$6.readdirSync
14688
+ lstat: fs$7.lstat,
14689
+ lstatSync: fs$7.lstatSync,
14690
+ stat: fs$7.stat,
14691
+ statSync: fs$7.statSync,
14692
+ readdir: fs$7.readdir,
14693
+ readdirSync: fs$7.readdirSync
14694
14694
  };
14695
14695
  var Settings = class {
14696
14696
  constructor(_options = {}) {
@@ -14969,14 +14969,14 @@ var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14969
14969
  makeArray(isString(pattern) ? splitPattern(pattern) : pattern).forEach(this._add, this);
14970
14970
  return this._added;
14971
14971
  }
14972
- test(path$16, checkUnignored, mode) {
14972
+ test(path$17, checkUnignored, mode) {
14973
14973
  let ignored = false;
14974
14974
  let unignored = false;
14975
14975
  let matchedRule;
14976
14976
  this._rules.forEach((rule) => {
14977
14977
  const { negative } = rule;
14978
14978
  if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) return;
14979
- if (!rule[mode].test(path$16)) return;
14979
+ if (!rule[mode].test(path$17)) return;
14980
14980
  ignored = !negative;
14981
14981
  unignored = negative;
14982
14982
  matchedRule = negative ? UNDEFINED : rule;
@@ -14992,13 +14992,13 @@ var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14992
14992
  const throwError = (message, Ctor) => {
14993
14993
  throw new Ctor(message);
14994
14994
  };
14995
- const checkPath = (path$16, originalPath, doThrow) => {
14996
- if (!isString(path$16)) return doThrow(`path must be a string, but got \`${originalPath}\``, TypeError);
14997
- if (!path$16) return doThrow(`path must not be empty`, TypeError);
14998
- if (checkPath.isNotRelative(path$16)) return doThrow(`path should be a \`path.relative()\`d string, but got "${originalPath}"`, RangeError);
14995
+ const checkPath = (path$17, originalPath, doThrow) => {
14996
+ if (!isString(path$17)) return doThrow(`path must be a string, but got \`${originalPath}\``, TypeError);
14997
+ if (!path$17) return doThrow(`path must not be empty`, TypeError);
14998
+ if (checkPath.isNotRelative(path$17)) return doThrow(`path should be a \`path.relative()\`d string, but got "${originalPath}"`, RangeError);
14999
14999
  return true;
15000
15000
  };
15001
- const isNotRelative = (path$16) => REGEX_TEST_INVALID_PATH.test(path$16);
15001
+ const isNotRelative = (path$17) => REGEX_TEST_INVALID_PATH.test(path$17);
15002
15002
  checkPath.isNotRelative = isNotRelative;
15003
15003
  /* istanbul ignore next */
15004
15004
  checkPath.convert = (p$1) => p$1;
@@ -15021,49 +15021,49 @@ var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15021
15021
  return this.add(pattern);
15022
15022
  }
15023
15023
  _test(originalPath, cache$1, checkUnignored, slices) {
15024
- const path$16 = originalPath && checkPath.convert(originalPath);
15025
- checkPath(path$16, originalPath, this._strictPathCheck ? throwError : RETURN_FALSE);
15026
- return this._t(path$16, cache$1, checkUnignored, slices);
15024
+ const path$17 = originalPath && checkPath.convert(originalPath);
15025
+ checkPath(path$17, originalPath, this._strictPathCheck ? throwError : RETURN_FALSE);
15026
+ return this._t(path$17, cache$1, checkUnignored, slices);
15027
15027
  }
15028
- checkIgnore(path$16) {
15029
- if (!REGEX_TEST_TRAILING_SLASH.test(path$16)) return this.test(path$16);
15030
- const slices = path$16.split(SLASH).filter(Boolean);
15028
+ checkIgnore(path$17) {
15029
+ if (!REGEX_TEST_TRAILING_SLASH.test(path$17)) return this.test(path$17);
15030
+ const slices = path$17.split(SLASH).filter(Boolean);
15031
15031
  slices.pop();
15032
15032
  if (slices.length) {
15033
15033
  const parent = this._t(slices.join(SLASH) + SLASH, this._testCache, true, slices);
15034
15034
  if (parent.ignored) return parent;
15035
15035
  }
15036
- return this._rules.test(path$16, false, MODE_CHECK_IGNORE);
15036
+ return this._rules.test(path$17, false, MODE_CHECK_IGNORE);
15037
15037
  }
15038
- _t(path$16, cache$1, checkUnignored, slices) {
15039
- if (path$16 in cache$1) return cache$1[path$16];
15040
- if (!slices) slices = path$16.split(SLASH).filter(Boolean);
15038
+ _t(path$17, cache$1, checkUnignored, slices) {
15039
+ if (path$17 in cache$1) return cache$1[path$17];
15040
+ if (!slices) slices = path$17.split(SLASH).filter(Boolean);
15041
15041
  slices.pop();
15042
- if (!slices.length) return cache$1[path$16] = this._rules.test(path$16, checkUnignored, MODE_IGNORE);
15042
+ if (!slices.length) return cache$1[path$17] = this._rules.test(path$17, checkUnignored, MODE_IGNORE);
15043
15043
  const parent = this._t(slices.join(SLASH) + SLASH, cache$1, checkUnignored, slices);
15044
- return cache$1[path$16] = parent.ignored ? parent : this._rules.test(path$16, checkUnignored, MODE_IGNORE);
15044
+ return cache$1[path$17] = parent.ignored ? parent : this._rules.test(path$17, checkUnignored, MODE_IGNORE);
15045
15045
  }
15046
- ignores(path$16) {
15047
- return this._test(path$16, this._ignoreCache, false).ignored;
15046
+ ignores(path$17) {
15047
+ return this._test(path$17, this._ignoreCache, false).ignored;
15048
15048
  }
15049
15049
  createFilter() {
15050
- return (path$16) => !this.ignores(path$16);
15050
+ return (path$17) => !this.ignores(path$17);
15051
15051
  }
15052
15052
  filter(paths) {
15053
15053
  return makeArray(paths).filter(this.createFilter());
15054
15054
  }
15055
- test(path$16) {
15056
- return this._test(path$16, this._testCache, true);
15055
+ test(path$17) {
15056
+ return this._test(path$17, this._testCache, true);
15057
15057
  }
15058
15058
  };
15059
15059
  const factory = (options) => new Ignore(options);
15060
- const isPathValid = (path$16) => checkPath(path$16 && checkPath.convert(path$16), path$16, RETURN_FALSE);
15060
+ const isPathValid = (path$17) => checkPath(path$17 && checkPath.convert(path$17), path$17, RETURN_FALSE);
15061
15061
  /* istanbul ignore next */
15062
15062
  const setupWindows = () => {
15063
15063
  const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
15064
15064
  checkPath.convert = makePosix;
15065
15065
  const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
15066
- checkPath.isNotRelative = (path$16) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path$16) || isNotRelative(path$16);
15066
+ checkPath.isNotRelative = (path$17) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path$17) || isNotRelative(path$17);
15067
15067
  };
15068
15068
  /* istanbul ignore next */
15069
15069
  if (typeof process !== "undefined" && process.platform === "win32") setupWindows();
@@ -15077,15 +15077,15 @@ var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15077
15077
  //#region node_modules/is-path-inside/index.js
15078
15078
  var import_ignore = /* @__PURE__ */ __toESM(require_ignore(), 1);
15079
15079
  function isPathInside(childPath, parentPath) {
15080
- const relation = nodePath.relative(parentPath, childPath);
15081
- return Boolean(relation && relation !== ".." && !relation.startsWith(`..${nodePath.sep}`) && relation !== nodePath.resolve(childPath));
15080
+ const relation = path.relative(parentPath, childPath);
15081
+ return Boolean(relation && relation !== ".." && !relation.startsWith(`..${path.sep}`) && relation !== path.resolve(childPath));
15082
15082
  }
15083
15083
 
15084
15084
  //#endregion
15085
15085
  //#region node_modules/slash/index.js
15086
- function slash(path$16) {
15087
- if (path$16.startsWith("\\\\?\\")) return path$16;
15088
- return path$16.replace(/\\/g, "/");
15086
+ function slash(path$17) {
15087
+ if (path$17.startsWith("\\\\?\\")) return path$17;
15088
+ return path$17.replace(/\\/g, "/");
15089
15089
  }
15090
15090
 
15091
15091
  //#endregion
@@ -15171,7 +15171,7 @@ const buildPathChain = (startPath, rootPath) => {
15171
15171
  let currentPath = startPath;
15172
15172
  chain.push(currentPath);
15173
15173
  while (currentPath !== rootPath) {
15174
- const parentPath = nodePath.dirname(currentPath);
15174
+ const parentPath = path.dirname(currentPath);
15175
15175
  if (parentPath === currentPath) break;
15176
15176
  currentPath = parentPath;
15177
15177
  chain.push(currentPath);
@@ -15180,7 +15180,7 @@ const buildPathChain = (startPath, rootPath) => {
15180
15180
  };
15181
15181
  const findGitRootInChain = async (paths, statMethod) => {
15182
15182
  for (const directory of paths) {
15183
- const gitPath = nodePath.join(directory, ".git");
15183
+ const gitPath = path.join(directory, ".git");
15184
15184
  try {
15185
15185
  if (pathHasGitDirectory(await statMethod(gitPath))) return directory;
15186
15186
  } catch {}
@@ -15189,11 +15189,11 @@ const findGitRootInChain = async (paths, statMethod) => {
15189
15189
  const findGitRootSyncUncached = (cwd, fsImplementation) => {
15190
15190
  const statSyncMethod = getStatSyncMethod$1(fsImplementation);
15191
15191
  if (!statSyncMethod) return;
15192
- const currentPath = nodePath.resolve(cwd);
15193
- const { root } = nodePath.parse(currentPath);
15192
+ const currentPath = path.resolve(cwd);
15193
+ const { root } = path.parse(currentPath);
15194
15194
  const chain = buildPathChain(currentPath, root);
15195
15195
  for (const directory of chain) {
15196
- const gitPath = nodePath.join(directory, ".git");
15196
+ const gitPath = path.join(directory, ".git");
15197
15197
  try {
15198
15198
  if (pathHasGitDirectory(statSyncMethod(gitPath))) return directory;
15199
15199
  } catch {}
@@ -15206,8 +15206,8 @@ const findGitRootSync = (cwd, fsImplementation) => {
15206
15206
  const findGitRootAsyncUncached = async (cwd, fsImplementation) => {
15207
15207
  const statMethod = getAsyncStatMethod(fsImplementation);
15208
15208
  if (!statMethod) return findGitRootSync(cwd, fsImplementation);
15209
- const currentPath = nodePath.resolve(cwd);
15210
- const { root } = nodePath.parse(currentPath);
15209
+ const currentPath = path.resolve(cwd);
15210
+ const { root } = path.parse(currentPath);
15211
15211
  return findGitRootInChain(buildPathChain(currentPath, root), statMethod);
15212
15212
  };
15213
15213
  const findGitRoot = async (cwd, fsImplementation) => {
@@ -15222,8 +15222,8 @@ Get paths to all .gitignore files from git root to cwd (inclusive).
15222
15222
  @returns {string[]} Array of .gitignore file paths to search for.
15223
15223
  */
15224
15224
  const isWithinGitRoot = (gitRoot, cwd) => {
15225
- const resolvedGitRoot = nodePath.resolve(gitRoot);
15226
- const resolvedCwd = nodePath.resolve(cwd);
15225
+ const resolvedGitRoot = path.resolve(gitRoot);
15226
+ const resolvedCwd = path.resolve(cwd);
15227
15227
  return resolvedCwd === resolvedGitRoot || isPathInside(resolvedCwd, resolvedGitRoot);
15228
15228
  };
15229
15229
  const getParentGitignorePaths = (gitRoot, cwd) => {
@@ -15231,7 +15231,7 @@ const getParentGitignorePaths = (gitRoot, cwd) => {
15231
15231
  if (typeof cwd !== "string") throw new TypeError("cwd must be a string");
15232
15232
  if (!gitRoot) return [];
15233
15233
  if (!isWithinGitRoot(gitRoot, cwd)) return [];
15234
- return [...buildPathChain(nodePath.resolve(cwd), nodePath.resolve(gitRoot))].reverse().map((directory) => nodePath.join(directory, ".gitignore"));
15234
+ return [...buildPathChain(path.resolve(cwd), path.resolve(gitRoot))].reverse().map((directory) => path.join(directory, ".gitignore"));
15235
15235
  };
15236
15236
  /**
15237
15237
  Convert ignore patterns to fast-glob compatible format.
@@ -15269,7 +15269,7 @@ const ignoreFilesGlobOptions = {
15269
15269
  dot: true
15270
15270
  };
15271
15271
  const GITIGNORE_FILES_PATTERN = "**/.gitignore";
15272
- const getReadFileMethod = (fsImplementation) => bindFsMethod(fsImplementation?.promises, "readFile") ?? bindFsMethod(fsPromises, "readFile") ?? promisifyFsMethod(fsImplementation, "readFile");
15272
+ const getReadFileMethod = (fsImplementation) => bindFsMethod(fsImplementation?.promises, "readFile") ?? bindFsMethod(fs$2, "readFile") ?? promisifyFsMethod(fsImplementation, "readFile");
15273
15273
  const getReadFileSyncMethod = (fsImplementation) => bindFsMethod(fsImplementation, "readFileSync") ?? bindFsMethod(fs, "readFileSync");
15274
15274
  const shouldSkipIgnoreFileError = (error, suppressErrors) => {
15275
15275
  if (!error) return Boolean(suppressErrors);
@@ -15338,18 +15338,18 @@ const applyBaseToPattern = (pattern, base) => {
15338
15338
  const slashIndex = cleanPattern.indexOf("/");
15339
15339
  const hasNonTrailingSlash = slashIndex !== -1 && slashIndex !== cleanPattern.length - 1;
15340
15340
  let result;
15341
- if (!hasNonTrailingSlash) result = nodePath.posix.join(base, "**", cleanPattern);
15342
- else if (cleanPattern.startsWith("/")) result = nodePath.posix.join(base, cleanPattern.slice(1));
15343
- else result = nodePath.posix.join(base, cleanPattern);
15341
+ if (!hasNonTrailingSlash) result = path.posix.join(base, "**", cleanPattern);
15342
+ else if (cleanPattern.startsWith("/")) result = path.posix.join(base, cleanPattern.slice(1));
15343
+ else result = path.posix.join(base, cleanPattern);
15344
15344
  return isNegative ? "!" + result : result;
15345
15345
  };
15346
15346
  const parseIgnoreFile = (file, cwd) => {
15347
- const base = slash(nodePath.relative(cwd, nodePath.dirname(file.filePath)));
15347
+ const base = slash(path.relative(cwd, path.dirname(file.filePath)));
15348
15348
  return file.content.split(/\r?\n/).filter((line) => line && !line.startsWith("#")).map((pattern) => applyBaseToPattern(pattern, base));
15349
15349
  };
15350
15350
  const toRelativePath = (fileOrDirectory, cwd) => {
15351
- if (nodePath.isAbsolute(fileOrDirectory)) {
15352
- const relativePath = nodePath.relative(cwd, fileOrDirectory);
15351
+ if (path.isAbsolute(fileOrDirectory)) {
15352
+ const relativePath = path.relative(cwd, fileOrDirectory);
15353
15353
  if (relativePath && !isPathInside(fileOrDirectory, cwd)) return;
15354
15354
  return relativePath;
15355
15355
  }
@@ -15359,11 +15359,11 @@ const toRelativePath = (fileOrDirectory, cwd) => {
15359
15359
  };
15360
15360
  const createIgnorePredicate = (patterns, cwd, baseDir) => {
15361
15361
  const ignores = (0, import_ignore.default)().add(patterns);
15362
- const resolvedCwd = nodePath.normalize(nodePath.resolve(cwd));
15363
- const resolvedBaseDir = nodePath.normalize(nodePath.resolve(baseDir));
15362
+ const resolvedCwd = path.normalize(path.resolve(cwd));
15363
+ const resolvedBaseDir = path.normalize(path.resolve(baseDir));
15364
15364
  return (fileOrDirectory) => {
15365
15365
  fileOrDirectory = toPath$1(fileOrDirectory);
15366
- if (nodePath.normalize(nodePath.resolve(fileOrDirectory)) === resolvedCwd) return false;
15366
+ if (path.normalize(path.resolve(fileOrDirectory)) === resolvedCwd) return false;
15367
15367
  const relativePath = toRelativePath(fileOrDirectory, resolvedBaseDir);
15368
15368
  if (relativePath === void 0) return false;
15369
15369
  return relativePath ? ignores.ignores(slash(relativePath)) : false;
@@ -15371,7 +15371,7 @@ const createIgnorePredicate = (patterns, cwd, baseDir) => {
15371
15371
  };
15372
15372
  const normalizeOptions$2 = (options = {}) => {
15373
15373
  const ignoreOption = options.ignore ? Array.isArray(options.ignore) ? options.ignore : [options.ignore] : [];
15374
- const cwd = toPath$1(options.cwd) ?? y.cwd();
15374
+ const cwd = toPath$1(options.cwd) ?? process$1.cwd();
15375
15375
  const deep = typeof options.deep === "number" ? Math.max(0, options.deep) + 1 : Number.POSITIVE_INFINITY;
15376
15376
  return {
15377
15377
  cwd,
@@ -15438,37 +15438,37 @@ const assertPatternsInput = (patterns) => {
15438
15438
  };
15439
15439
  const getStatMethod = (fsImplementation) => bindFsMethod(fsImplementation?.promises, "stat") ?? bindFsMethod(fs.promises, "stat") ?? promisifyFsMethod(fsImplementation, "stat");
15440
15440
  const getStatSyncMethod = (fsImplementation) => bindFsMethod(fsImplementation, "statSync") ?? bindFsMethod(fs, "statSync");
15441
- const isDirectory = async (path$16, fsImplementation) => {
15441
+ const isDirectory = async (path$17, fsImplementation) => {
15442
15442
  try {
15443
- return (await getStatMethod(fsImplementation)(path$16)).isDirectory();
15443
+ return (await getStatMethod(fsImplementation)(path$17)).isDirectory();
15444
15444
  } catch {
15445
15445
  return false;
15446
15446
  }
15447
15447
  };
15448
- const isDirectorySync = (path$16, fsImplementation) => {
15448
+ const isDirectorySync = (path$17, fsImplementation) => {
15449
15449
  try {
15450
- return getStatSyncMethod(fsImplementation)(path$16).isDirectory();
15450
+ return getStatSyncMethod(fsImplementation)(path$17).isDirectory();
15451
15451
  } catch {
15452
15452
  return false;
15453
15453
  }
15454
15454
  };
15455
15455
  const normalizePathForDirectoryGlob = (filePath, cwd) => {
15456
- const path$16 = isNegativePattern(filePath) ? filePath.slice(1) : filePath;
15457
- return nodePath.isAbsolute(path$16) ? path$16 : nodePath.join(cwd, path$16);
15456
+ const path$17 = isNegativePattern(filePath) ? filePath.slice(1) : filePath;
15457
+ return path.isAbsolute(path$17) ? path$17 : path.join(cwd, path$17);
15458
15458
  };
15459
15459
  const shouldExpandGlobstarDirectory = (pattern) => {
15460
15460
  const match = pattern?.match(/\*\*\/([^/]+)$/);
15461
15461
  if (!match) return false;
15462
15462
  const dirname$2 = match[1];
15463
15463
  const hasWildcards = /[*?[\]{}]/.test(dirname$2);
15464
- const hasExtension = nodePath.extname(dirname$2) && !dirname$2.startsWith(".");
15464
+ const hasExtension = path.extname(dirname$2) && !dirname$2.startsWith(".");
15465
15465
  return !hasWildcards && !hasExtension;
15466
15466
  };
15467
15467
  const getDirectoryGlob = ({ directoryPath, files, extensions }) => {
15468
15468
  const extensionGlob = extensions?.length > 0 ? `.${extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0]}` : "";
15469
- return files ? files.map((file) => nodePath.posix.join(directoryPath, `**/${nodePath.extname(file) ? file : `${file}${extensionGlob}`}`)) : [nodePath.posix.join(directoryPath, `**${extensionGlob ? `/*${extensionGlob}` : ""}`)];
15469
+ return files ? files.map((file) => path.posix.join(directoryPath, `**/${path.extname(file) ? file : `${file}${extensionGlob}`}`)) : [path.posix.join(directoryPath, `**${extensionGlob ? `/*${extensionGlob}` : ""}`)];
15470
15470
  };
15471
- const directoryToGlob = async (directoryPaths, { cwd = y.cwd(), files, extensions, fs: fsImplementation } = {}) => {
15471
+ const directoryToGlob = async (directoryPaths, { cwd = process$1.cwd(), files, extensions, fs: fsImplementation } = {}) => {
15472
15472
  return (await Promise.all(directoryPaths.map(async (directoryPath) => {
15473
15473
  if (shouldExpandGlobstarDirectory(isNegativePattern(directoryPath) ? directoryPath.slice(1) : directoryPath)) return getDirectoryGlob({
15474
15474
  directoryPath,
@@ -15482,7 +15482,7 @@ const directoryToGlob = async (directoryPaths, { cwd = y.cwd(), files, extension
15482
15482
  }) : directoryPath;
15483
15483
  }))).flat();
15484
15484
  };
15485
- const directoryToGlobSync = (directoryPaths, { cwd = y.cwd(), files, extensions, fs: fsImplementation } = {}) => directoryPaths.flatMap((directoryPath) => {
15485
+ const directoryToGlobSync = (directoryPaths, { cwd = process$1.cwd(), files, extensions, fs: fsImplementation } = {}) => directoryPaths.flatMap((directoryPath) => {
15486
15486
  if (shouldExpandGlobstarDirectory(isNegativePattern(directoryPath) ? directoryPath.slice(1) : directoryPath)) return getDirectoryGlob({
15487
15487
  directoryPath,
15488
15488
  files,
@@ -15578,15 +15578,15 @@ const applyIgnoreFilesAndGetFilterSync = (options) => {
15578
15578
  };
15579
15579
  const createFilterFunction = (isIgnored, cwd) => {
15580
15580
  const seen = /* @__PURE__ */ new Set();
15581
- const basePath = cwd || y.cwd();
15581
+ const basePath = cwd || process$1.cwd();
15582
15582
  const pathCache = /* @__PURE__ */ new Map();
15583
15583
  return (fastGlobResult) => {
15584
- const pathKey$1 = nodePath.normalize(fastGlobResult.path ?? fastGlobResult);
15584
+ const pathKey$1 = path.normalize(fastGlobResult.path ?? fastGlobResult);
15585
15585
  if (seen.has(pathKey$1)) return false;
15586
15586
  if (isIgnored) {
15587
15587
  let absolutePath = pathCache.get(pathKey$1);
15588
15588
  if (absolutePath === void 0) {
15589
- absolutePath = nodePath.isAbsolute(pathKey$1) ? pathKey$1 : nodePath.resolve(basePath, pathKey$1);
15589
+ absolutePath = path.isAbsolute(pathKey$1) ? pathKey$1 : path.resolve(basePath, pathKey$1);
15590
15590
  pathCache.set(pathKey$1, absolutePath);
15591
15591
  if (pathCache.size > 1e4) pathCache.clear();
15592
15592
  }
@@ -16659,9 +16659,9 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16659
16659
  //#endregion
16660
16660
  //#region src/core/utils/fs.ts
16661
16661
  var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
16662
- async function pathExists(path$16) {
16662
+ async function pathExists(path$17) {
16663
16663
  try {
16664
- await access(path$16);
16664
+ await access(path$17);
16665
16665
  return true;
16666
16666
  } catch {
16667
16667
  return false;
@@ -17207,8 +17207,8 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17207
17207
  * @module ejs
17208
17208
  * @public
17209
17209
  */
17210
- var fs$5 = __require("fs");
17211
- var path$4 = __require("path");
17210
+ var fs$6 = __require("fs");
17211
+ var path$5 = __require("path");
17212
17212
  var utils = require_utils();
17213
17213
  var scopeOptionWarned = false;
17214
17214
  /** @type {string} */
@@ -17249,7 +17249,7 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17249
17249
  *
17250
17250
  * @type {fileLoader}
17251
17251
  */
17252
- exports.fileLoader = fs$5.readFileSync;
17252
+ exports.fileLoader = fs$6.readFileSync;
17253
17253
  /**
17254
17254
  * Name of the object containing the locals.
17255
17255
  *
@@ -17278,9 +17278,9 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17278
17278
  * @return {String}
17279
17279
  */
17280
17280
  exports.resolveInclude = function(name$1, filename, isDir) {
17281
- var dirname$2 = path$4.dirname;
17282
- var extname = path$4.extname;
17283
- var resolve$1 = path$4.resolve;
17281
+ var dirname$2 = path$5.dirname;
17282
+ var extname = path$5.extname;
17283
+ var resolve$1 = path$5.resolve;
17284
17284
  var includePath = resolve$1(isDir ? filename : dirname$2(filename), name$1);
17285
17285
  if (!extname(name$1)) includePath += ".ejs";
17286
17286
  return includePath;
@@ -17296,7 +17296,7 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17296
17296
  var filePath;
17297
17297
  if (paths.some(function(v$1) {
17298
17298
  filePath = exports.resolveInclude(name$1, v$1, true);
17299
- return fs$5.existsSync(filePath);
17299
+ return fs$6.existsSync(filePath);
17300
17300
  })) return filePath;
17301
17301
  }
17302
17302
  /**
@@ -17306,22 +17306,22 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17306
17306
  * @param {Options} options compilation options
17307
17307
  * @return {String}
17308
17308
  */
17309
- function getIncludePath(path$16, options) {
17309
+ function getIncludePath(path$17, options) {
17310
17310
  var includePath;
17311
17311
  var filePath;
17312
17312
  var views = options.views;
17313
- var match = /^[A-Za-z]+:\\|^\//.exec(path$16);
17313
+ var match = /^[A-Za-z]+:\\|^\//.exec(path$17);
17314
17314
  if (match && match.length) {
17315
- path$16 = path$16.replace(/^\/*/, "");
17316
- if (Array.isArray(options.root)) includePath = resolvePaths(path$16, options.root);
17317
- else includePath = exports.resolveInclude(path$16, options.root || "/", true);
17315
+ path$17 = path$17.replace(/^\/*/, "");
17316
+ if (Array.isArray(options.root)) includePath = resolvePaths(path$17, options.root);
17317
+ else includePath = exports.resolveInclude(path$17, options.root || "/", true);
17318
17318
  } else {
17319
17319
  if (options.filename) {
17320
- filePath = exports.resolveInclude(path$16, options.filename);
17321
- if (fs$5.existsSync(filePath)) includePath = filePath;
17320
+ filePath = exports.resolveInclude(path$17, options.filename);
17321
+ if (fs$6.existsSync(filePath)) includePath = filePath;
17322
17322
  }
17323
- if (!includePath && Array.isArray(views)) includePath = resolvePaths(path$16, views);
17324
- if (!includePath && typeof options.includer !== "function") throw new Error("Could not find the include file \"" + options.escapeFunction(path$16) + "\"");
17323
+ if (!includePath && Array.isArray(views)) includePath = resolvePaths(path$17, views);
17324
+ if (!includePath && typeof options.includer !== "function") throw new Error("Could not find the include file \"" + options.escapeFunction(path$17) + "\"");
17325
17325
  }
17326
17326
  return includePath;
17327
17327
  }
@@ -17413,11 +17413,11 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17413
17413
  * Depending on the value of `options.client`, either type might be returned
17414
17414
  * @static
17415
17415
  */
17416
- function includeFile(path$16, options) {
17416
+ function includeFile(path$17, options) {
17417
17417
  var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
17418
- opts.filename = getIncludePath(path$16, opts);
17418
+ opts.filename = getIncludePath(path$17, opts);
17419
17419
  if (typeof options.includer === "function") {
17420
- var includerResult = options.includer(path$16, opts.filename);
17420
+ var includerResult = options.includer(path$17, opts.filename);
17421
17421
  if (includerResult) {
17422
17422
  if (includerResult.filename) opts.filename = includerResult.filename;
17423
17423
  if (includerResult.template) return handleCache(opts, includerResult.template);
@@ -17591,9 +17591,9 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17591
17591
  createRegex: function() {
17592
17592
  var str = _REGEX_STRING;
17593
17593
  var delim = utils.escapeRegExpChars(this.opts.delimiter);
17594
- var open = utils.escapeRegExpChars(this.opts.openDelimiter);
17594
+ var open$1 = utils.escapeRegExpChars(this.opts.openDelimiter);
17595
17595
  var close = utils.escapeRegExpChars(this.opts.closeDelimiter);
17596
- str = str.replace(/%/g, delim).replace(/</g, open).replace(/>/g, close);
17596
+ str = str.replace(/%/g, delim).replace(/</g, open$1).replace(/>/g, close);
17597
17597
  return new RegExp(str);
17598
17598
  },
17599
17599
  compile: function() {
@@ -17668,10 +17668,10 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17668
17668
  throw e$1;
17669
17669
  }
17670
17670
  var returnedFn = opts.client ? fn : function anonymous(data) {
17671
- var include = function(path$16, includeData) {
17671
+ var include = function(path$17, includeData) {
17672
17672
  var d$2 = utils.shallowCopy(utils.createNullProtoObjWherePossible(), data);
17673
17673
  if (includeData) d$2 = utils.shallowCopy(d$2, includeData);
17674
- return includeFile(path$16, opts)(d$2);
17674
+ return includeFile(path$17, opts)(d$2);
17675
17675
  };
17676
17676
  return fn.apply(opts.context, [
17677
17677
  data || utils.createNullProtoObjWherePossible(),
@@ -17682,7 +17682,7 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
17682
17682
  };
17683
17683
  if (opts.filename && typeof Object.defineProperty === "function") {
17684
17684
  var filename = opts.filename;
17685
- var basename$1 = path$4.basename(filename, path$4.extname(filename));
17685
+ var basename$1 = path$5.basename(filename, path$5.extname(filename));
17686
17686
  try {
17687
17687
  Object.defineProperty(returnedFn, "name", {
17688
17688
  value: basename$1,
@@ -25534,7 +25534,7 @@ async function createProjectFiles(options) {
25534
25534
 
25535
25535
  //#endregion
25536
25536
  //#region src/core/config.ts
25537
- const __dirname = dirname(fileURLToPath(import.meta.url));
25537
+ const __dirname$1 = dirname(fileURLToPath(import.meta.url));
25538
25538
  function getBase44GlobalDir() {
25539
25539
  return join(homedir(), ".base44");
25540
25540
  }
@@ -25542,7 +25542,7 @@ function getAuthFilePath() {
25542
25542
  return join(getBase44GlobalDir(), "auth", "auth.json");
25543
25543
  }
25544
25544
  function getTemplatesDir() {
25545
- return join(__dirname, "templates");
25545
+ return join(__dirname$1, "templates");
25546
25546
  }
25547
25547
  function getTemplatesIndexPath() {
25548
25548
  return join(getTemplatesDir(), "templates.json");
@@ -25958,13 +25958,13 @@ var ansi_styles_default = ansiStyles;
25958
25958
 
25959
25959
  //#endregion
25960
25960
  //#region node_modules/chalk/source/vendor/supports-color/index.js
25961
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : y.argv) {
25961
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
25962
25962
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
25963
25963
  const position = argv.indexOf(prefix + flag);
25964
25964
  const terminatorPosition = argv.indexOf("--");
25965
25965
  return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
25966
25966
  }
25967
- const { env } = y;
25967
+ const { env } = process$1;
25968
25968
  let flagForceColor;
25969
25969
  if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
25970
25970
  else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
@@ -25997,7 +25997,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
25997
25997
  if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
25998
25998
  const min = forceColor || 0;
25999
25999
  if (env.TERM === "dumb") return min;
26000
- if (y.platform === "win32") {
26000
+ if (process$1.platform === "win32") {
26001
26001
  const osRelease = os.release().split(".");
26002
26002
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
26003
26003
  return 1;
@@ -26155,18 +26155,18 @@ const proto = Object.defineProperties(() => {}, {
26155
26155
  }
26156
26156
  }
26157
26157
  });
26158
- const createStyler = (open, close, parent) => {
26158
+ const createStyler = (open$1, close, parent) => {
26159
26159
  let openAll;
26160
26160
  let closeAll;
26161
26161
  if (parent === void 0) {
26162
- openAll = open;
26162
+ openAll = open$1;
26163
26163
  closeAll = close;
26164
26164
  } else {
26165
- openAll = parent.openAll + open;
26165
+ openAll = parent.openAll + open$1;
26166
26166
  closeAll = close + parent.closeAll;
26167
26167
  }
26168
26168
  return {
26169
- open,
26169
+ open: open$1,
26170
26170
  close,
26171
26171
  openAll,
26172
26172
  closeAll,
@@ -27411,15 +27411,15 @@ var ReadStream = class extends Minipass {
27411
27411
  [_size];
27412
27412
  [_remain];
27413
27413
  [_autoClose];
27414
- constructor(path$16, opt) {
27414
+ constructor(path$17, opt) {
27415
27415
  opt = opt || {};
27416
27416
  super(opt);
27417
27417
  this.readable = true;
27418
27418
  this.writable = false;
27419
- if (typeof path$16 !== "string") throw new TypeError("path must be a string");
27419
+ if (typeof path$17 !== "string") throw new TypeError("path must be a string");
27420
27420
  this[_errored] = false;
27421
27421
  this[_fd] = typeof opt.fd === "number" ? opt.fd : void 0;
27422
- this[_path] = path$16;
27422
+ this[_path] = path$17;
27423
27423
  this[_readSize] = opt.readSize || 16 * 1024 * 1024;
27424
27424
  this[_reading] = false;
27425
27425
  this[_size] = typeof opt.size === "number" ? opt.size : Infinity;
@@ -27561,10 +27561,10 @@ var WriteStream = class extends EE {
27561
27561
  [_flags];
27562
27562
  [_finished] = false;
27563
27563
  [_pos];
27564
- constructor(path$16, opt) {
27564
+ constructor(path$17, opt) {
27565
27565
  opt = opt || {};
27566
27566
  super(opt);
27567
- this[_path] = path$16;
27567
+ this[_path] = path$17;
27568
27568
  this[_fd] = typeof opt.fd === "number" ? opt.fd : void 0;
27569
27569
  this[_mode] = opt.mode === void 0 ? 438 : opt.mode;
27570
27570
  this[_pos] = typeof opt.start === "number" ? opt.start : void 0;
@@ -27792,7 +27792,7 @@ const makeCommand = (syncFile, asyncFile, syncNoFile, asyncNoFile, validate$1) =
27792
27792
  /* c8 ignore start */
27793
27793
  const realZlibConstants = realZlib.constants || { ZLIB_VERNUM: 4736 };
27794
27794
  /* c8 ignore stop */
27795
- const constants$1 = Object.freeze(Object.assign(Object.create(null), {
27795
+ const constants$2 = Object.freeze(Object.assign(Object.create(null), {
27796
27796
  Z_NO_FLUSH: 0,
27797
27797
  Z_PARTIAL_FLUSH: 1,
27798
27798
  Z_SYNC_FLUSH: 2,
@@ -28054,9 +28054,9 @@ var Zlib = class extends ZlibBase {
28054
28054
  #strategy;
28055
28055
  constructor(opts, mode) {
28056
28056
  opts = opts || {};
28057
- opts.flush = opts.flush || constants$1.Z_NO_FLUSH;
28058
- opts.finishFlush = opts.finishFlush || constants$1.Z_FINISH;
28059
- opts.fullFlushFlag = constants$1.Z_FULL_FLUSH;
28057
+ opts.flush = opts.flush || constants$2.Z_NO_FLUSH;
28058
+ opts.finishFlush = opts.finishFlush || constants$2.Z_FINISH;
28059
+ opts.fullFlushFlag = constants$2.Z_FULL_FLUSH;
28060
28060
  super(opts, mode);
28061
28061
  this.#level = opts.level;
28062
28062
  this.#strategy = opts.strategy;
@@ -28068,7 +28068,7 @@ var Zlib = class extends ZlibBase {
28068
28068
  if (!this.handle.params) throw new Error("not supported in this implementation");
28069
28069
  /* c8 ignore stop */
28070
28070
  if (this.#level !== level || this.#strategy !== strategy) {
28071
- this.flush(constants$1.Z_SYNC_FLUSH);
28071
+ this.flush(constants$2.Z_SYNC_FLUSH);
28072
28072
  assert(this.handle, "zlib binding closed");
28073
28073
  const origFlush = this.handle.flush;
28074
28074
  this.handle.flush = (flushFlag, cb) => {
@@ -28115,9 +28115,9 @@ var Unzip = class extends Zlib {
28115
28115
  var Brotli = class extends ZlibBase {
28116
28116
  constructor(opts, mode) {
28117
28117
  opts = opts || {};
28118
- opts.flush = opts.flush || constants$1.BROTLI_OPERATION_PROCESS;
28119
- opts.finishFlush = opts.finishFlush || constants$1.BROTLI_OPERATION_FINISH;
28120
- opts.fullFlushFlag = constants$1.BROTLI_OPERATION_FLUSH;
28118
+ opts.flush = opts.flush || constants$2.BROTLI_OPERATION_PROCESS;
28119
+ opts.finishFlush = opts.finishFlush || constants$2.BROTLI_OPERATION_FINISH;
28120
+ opts.fullFlushFlag = constants$2.BROTLI_OPERATION_FLUSH;
28121
28121
  super(opts, mode);
28122
28122
  }
28123
28123
  };
@@ -28134,9 +28134,9 @@ var BrotliDecompress = class extends Brotli {
28134
28134
  var Zstd = class extends ZlibBase {
28135
28135
  constructor(opts, mode) {
28136
28136
  opts = opts || {};
28137
- opts.flush = opts.flush || constants$1.ZSTD_e_continue;
28138
- opts.finishFlush = opts.finishFlush || constants$1.ZSTD_e_end;
28139
- opts.fullFlushFlag = constants$1.ZSTD_e_flush;
28137
+ opts.flush = opts.flush || constants$2.ZSTD_e_continue;
28138
+ opts.finishFlush = opts.finishFlush || constants$2.ZSTD_e_end;
28139
+ opts.fullFlushFlag = constants$2.ZSTD_e_flush;
28140
28140
  super(opts, mode);
28141
28141
  }
28142
28142
  };
@@ -28323,10 +28323,10 @@ var Header = class {
28323
28323
  if (!(buf.length >= off + 512)) throw new Error("need 512 bytes for header");
28324
28324
  const prefixSize = this.ctime || this.atime ? 130 : 155;
28325
28325
  const split = splitPrefix(this.path || "", prefixSize);
28326
- const path$16 = split[0];
28326
+ const path$17 = split[0];
28327
28327
  const prefix = split[1];
28328
28328
  this.needPax = !!split[2];
28329
- this.needPax = encString(buf, off, 100, path$16) || this.needPax;
28329
+ this.needPax = encString(buf, off, 100, path$17) || this.needPax;
28330
28330
  this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
28331
28331
  this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
28332
28332
  this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
@@ -28522,8 +28522,8 @@ const parseKVLine = (set, line) => {
28522
28522
 
28523
28523
  //#endregion
28524
28524
  //#region node_modules/tar/dist/esm/normalize-windows-path.js
28525
- const platform$1 = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
28526
- const normalizeWindowsPath = platform$1 !== "win32" ? (p$1) => p$1 : (p$1) => p$1 && p$1.replace(/\\/g, "/");
28525
+ const platform$2 = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
28526
+ const normalizeWindowsPath = platform$2 !== "win32" ? (p$1) => p$1 : (p$1) => p$1 && p$1.replace(/\\/g, "/");
28527
28527
 
28528
28528
  //#endregion
28529
28529
  //#region node_modules/tar/dist/esm/read-entry.js
@@ -29165,16 +29165,16 @@ const modeFix = (mode, isDir, portable) => {
29165
29165
  //#endregion
29166
29166
  //#region node_modules/tar/dist/esm/strip-absolute-path.js
29167
29167
  const { isAbsolute, parse: parse$1 } = win32;
29168
- const stripAbsolutePath = (path$16) => {
29168
+ const stripAbsolutePath = (path$17) => {
29169
29169
  let r$1 = "";
29170
- let parsed = parse$1(path$16);
29171
- while (isAbsolute(path$16) || parsed.root) {
29172
- const root = path$16.charAt(0) === "/" && path$16.slice(0, 4) !== "//?/" ? "/" : parsed.root;
29173
- path$16 = path$16.slice(root.length);
29170
+ let parsed = parse$1(path$17);
29171
+ while (isAbsolute(path$17) || parsed.root) {
29172
+ const root = path$17.charAt(0) === "/" && path$17.slice(0, 4) !== "//?/" ? "/" : parsed.root;
29173
+ path$17 = path$17.slice(root.length);
29174
29174
  r$1 += root;
29175
- parsed = parse$1(path$16);
29175
+ parsed = parse$1(path$17);
29176
29176
  }
29177
- return [r$1, path$16];
29177
+ return [r$1, path$17];
29178
29178
  };
29179
29179
 
29180
29180
  //#endregion
@@ -29194,10 +29194,10 @@ const decode = (s) => win.reduce((s$1, c$1) => s$1.split(c$1).join(toRaw.get(c$1
29194
29194
 
29195
29195
  //#endregion
29196
29196
  //#region node_modules/tar/dist/esm/write-entry.js
29197
- const prefixPath = (path$16, prefix) => {
29198
- if (!prefix) return normalizeWindowsPath(path$16);
29199
- path$16 = normalizeWindowsPath(path$16).replace(/^\.(\/|$)/, "");
29200
- return stripTrailingSlashes(prefix) + "/" + path$16;
29197
+ const prefixPath = (path$17, prefix) => {
29198
+ if (!prefix) return normalizeWindowsPath(path$17);
29199
+ path$17 = normalizeWindowsPath(path$17).replace(/^\.(\/|$)/, "");
29200
+ return stripTrailingSlashes(prefix) + "/" + path$17;
29201
29201
  };
29202
29202
  const maxReadSize = 16 * 1024 * 1024;
29203
29203
  const PROCESS$1 = Symbol("process");
@@ -29279,7 +29279,7 @@ var WriteEntry = class extends Minipass {
29279
29279
  this.path = decode(this.path.replace(/\\/g, "/"));
29280
29280
  p$1 = p$1.replace(/\\/g, "/");
29281
29281
  }
29282
- this.absolute = normalizeWindowsPath(opt.absolute || path.resolve(this.cwd, p$1));
29282
+ this.absolute = normalizeWindowsPath(opt.absolute || path$1.resolve(this.cwd, p$1));
29283
29283
  if (this.path === "") this.path = "./";
29284
29284
  if (pathWarn) this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
29285
29285
  entry: this,
@@ -29321,8 +29321,8 @@ var WriteEntry = class extends Minipass {
29321
29321
  [MODE](mode) {
29322
29322
  return modeFix(mode, this.type === "Directory", this.portable);
29323
29323
  }
29324
- [PREFIX](path$16) {
29325
- return prefixPath(path$16, this.prefix);
29324
+ [PREFIX](path$17) {
29325
+ return prefixPath(path$17, this.prefix);
29326
29326
  }
29327
29327
  [HEADER]() {
29328
29328
  /* c8 ignore start */
@@ -29388,7 +29388,7 @@ var WriteEntry = class extends Minipass {
29388
29388
  if (!this.stat) throw new Error("cannot create link entry without stat");
29389
29389
  /* c8 ignore stop */
29390
29390
  this.type = "Link";
29391
- this.linkpath = normalizeWindowsPath(path.relative(this.cwd, linkpath));
29391
+ this.linkpath = normalizeWindowsPath(path$1.relative(this.cwd, linkpath));
29392
29392
  this.stat.size = 0;
29393
29393
  this[HEADER]();
29394
29394
  this.end();
@@ -29654,8 +29654,8 @@ var WriteEntryTar = class extends Minipass {
29654
29654
  super.write(b$2);
29655
29655
  readEntry.pipe(this);
29656
29656
  }
29657
- [PREFIX](path$16) {
29658
- return prefixPath(path$16, this.prefix);
29657
+ [PREFIX](path$17) {
29658
+ return prefixPath(path$17, this.prefix);
29659
29659
  }
29660
29660
  [MODE](mode) {
29661
29661
  return modeFix(mode, this.type === "Directory", this.portable);
@@ -29964,8 +29964,8 @@ var PackJob = class {
29964
29964
  pending = false;
29965
29965
  ignore = false;
29966
29966
  piped = false;
29967
- constructor(path$16, absolute) {
29968
- this.path = path$16 || "./";
29967
+ constructor(path$17, absolute) {
29968
+ this.path = path$17 || "./";
29969
29969
  this.absolute = absolute;
29970
29970
  }
29971
29971
  };
@@ -30070,36 +30070,36 @@ var Pack = class extends Minipass {
30070
30070
  [WRITE](chunk) {
30071
30071
  return super.write(chunk);
30072
30072
  }
30073
- add(path$16) {
30074
- this.write(path$16);
30073
+ add(path$17) {
30074
+ this.write(path$17);
30075
30075
  return this;
30076
30076
  }
30077
- end(path$16, encoding, cb) {
30077
+ end(path$17, encoding, cb) {
30078
30078
  /* c8 ignore start */
30079
- if (typeof path$16 === "function") {
30080
- cb = path$16;
30081
- path$16 = void 0;
30079
+ if (typeof path$17 === "function") {
30080
+ cb = path$17;
30081
+ path$17 = void 0;
30082
30082
  }
30083
30083
  if (typeof encoding === "function") {
30084
30084
  cb = encoding;
30085
30085
  encoding = void 0;
30086
30086
  }
30087
30087
  /* c8 ignore stop */
30088
- if (path$16) this.add(path$16);
30088
+ if (path$17) this.add(path$17);
30089
30089
  this[ENDED$1] = true;
30090
30090
  this[PROCESS]();
30091
30091
  /* c8 ignore next */
30092
30092
  if (cb) cb();
30093
30093
  return this;
30094
30094
  }
30095
- write(path$16) {
30095
+ write(path$17) {
30096
30096
  if (this[ENDED$1]) throw new Error("write after end");
30097
- if (path$16 instanceof ReadEntry) this[ADDTARENTRY](path$16);
30098
- else this[ADDFSENTRY](path$16);
30097
+ if (path$17 instanceof ReadEntry) this[ADDTARENTRY](path$17);
30098
+ else this[ADDFSENTRY](path$17);
30099
30099
  return this.flowing;
30100
30100
  }
30101
30101
  [ADDTARENTRY](p$1) {
30102
- const absolute = normalizeWindowsPath(path.resolve(this.cwd, p$1.path));
30102
+ const absolute = normalizeWindowsPath(path$1.resolve(this.cwd, p$1.path));
30103
30103
  if (!this.filter(p$1.path, p$1)) p$1.resume();
30104
30104
  else {
30105
30105
  const job = new PackJob(p$1.path, absolute);
@@ -30111,7 +30111,7 @@ var Pack = class extends Minipass {
30111
30111
  this[PROCESS]();
30112
30112
  }
30113
30113
  [ADDFSENTRY](p$1) {
30114
- const absolute = normalizeWindowsPath(path.resolve(this.cwd, p$1));
30114
+ const absolute = normalizeWindowsPath(path$1.resolve(this.cwd, p$1));
30115
30115
  this[QUEUE].push(new PackJob(p$1, absolute));
30116
30116
  this[PROCESS]();
30117
30117
  }
@@ -30312,7 +30312,7 @@ const createFile = (opt, files) => {
30312
30312
  const addFilesSync$1 = (p$1, files) => {
30313
30313
  files.forEach((file) => {
30314
30314
  if (file.charAt(0) === "@") list({
30315
- file: nodePath.resolve(p$1.cwd, file.slice(1)),
30315
+ file: path.resolve(p$1.cwd, file.slice(1)),
30316
30316
  sync: true,
30317
30317
  noResume: true,
30318
30318
  onReadEntry: (entry) => p$1.add(entry)
@@ -30325,7 +30325,7 @@ const addFilesAsync$1 = async (p$1, files) => {
30325
30325
  for (let i$1 = 0; i$1 < files.length; i$1++) {
30326
30326
  const file = String(files[i$1]);
30327
30327
  if (file.charAt(0) === "@") await list({
30328
- file: nodePath.resolve(String(p$1.cwd), file.slice(1)),
30328
+ file: path.resolve(String(p$1.cwd), file.slice(1)),
30329
30329
  noResume: true,
30330
30330
  onReadEntry: (entry) => {
30331
30331
  p$1.add(entry);
@@ -30363,9 +30363,9 @@ const getWriteFlag = !fMapEnabled ? () => "w" : (size) => size < fMapLimit ? fMa
30363
30363
 
30364
30364
  //#endregion
30365
30365
  //#region node_modules/chownr/dist/esm/index.js
30366
- const lchownSync = (path$16, uid, gid) => {
30366
+ const lchownSync = (path$17, uid, gid) => {
30367
30367
  try {
30368
- return fs.lchownSync(path$16, uid, gid);
30368
+ return fs.lchownSync(path$17, uid, gid);
30369
30369
  } catch (er) {
30370
30370
  if (er?.code !== "ENOENT") throw er;
30371
30371
  }
@@ -30376,11 +30376,11 @@ const chown = (cpath, uid, gid, cb) => {
30376
30376
  });
30377
30377
  };
30378
30378
  const chownrKid = (p$1, child, uid, gid, cb) => {
30379
- if (child.isDirectory()) chownr(nodePath.resolve(p$1, child.name), uid, gid, (er) => {
30379
+ if (child.isDirectory()) chownr(path.resolve(p$1, child.name), uid, gid, (er) => {
30380
30380
  if (er) return cb(er);
30381
- chown(nodePath.resolve(p$1, child.name), uid, gid, cb);
30381
+ chown(path.resolve(p$1, child.name), uid, gid, cb);
30382
30382
  });
30383
- else chown(nodePath.resolve(p$1, child.name), uid, gid, cb);
30383
+ else chown(path.resolve(p$1, child.name), uid, gid, cb);
30384
30384
  };
30385
30385
  const chownr = (p$1, uid, gid, cb) => {
30386
30386
  fs.readdir(p$1, { withFileTypes: true }, (er, children) => {
@@ -30402,8 +30402,8 @@ const chownr = (p$1, uid, gid, cb) => {
30402
30402
  });
30403
30403
  };
30404
30404
  const chownrKidSync = (p$1, child, uid, gid) => {
30405
- if (child.isDirectory()) chownrSync(nodePath.resolve(p$1, child.name), uid, gid);
30406
- lchownSync(nodePath.resolve(p$1, child.name), uid, gid);
30405
+ if (child.isDirectory()) chownrSync(path.resolve(p$1, child.name), uid, gid);
30406
+ lchownSync(path.resolve(p$1, child.name), uid, gid);
30407
30407
  };
30408
30408
  const chownrSync = (p$1, uid, gid) => {
30409
30409
  let children;
@@ -30425,9 +30425,9 @@ var CwdError = class extends Error {
30425
30425
  path;
30426
30426
  code;
30427
30427
  syscall = "chdir";
30428
- constructor(path$16, code$1) {
30429
- super(`${code$1}: Cannot cd into '${path$16}'`);
30430
- this.path = path$16;
30428
+ constructor(path$17, code$1) {
30429
+ super(`${code$1}: Cannot cd into '${path$17}'`);
30430
+ this.path = path$17;
30431
30431
  this.code = code$1;
30432
30432
  }
30433
30433
  get name() {
@@ -30442,10 +30442,10 @@ var SymlinkError = class extends Error {
30442
30442
  symlink;
30443
30443
  syscall = "symlink";
30444
30444
  code = "TAR_SYMLINK_ERROR";
30445
- constructor(symlink, path$16) {
30445
+ constructor(symlink, path$17) {
30446
30446
  super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link");
30447
30447
  this.symlink = symlink;
30448
- this.path = path$16;
30448
+ this.path = path$17;
30449
30449
  }
30450
30450
  get name() {
30451
30451
  return "SymlinkError";
@@ -30487,16 +30487,16 @@ const mkdir$1 = (dir, opt, cb) => {
30487
30487
  else cb();
30488
30488
  };
30489
30489
  if (dir === cwd) return checkCwd(dir, done);
30490
- if (preserve) return fsPromises.mkdir(dir, {
30490
+ if (preserve) return fs$2.mkdir(dir, {
30491
30491
  mode,
30492
30492
  recursive: true
30493
30493
  }).then((made) => done(null, made ?? void 0), done);
30494
- mkdir_(cwd, normalizeWindowsPath(nodePath.relative(cwd, dir)).split("/"), mode, unlink$1, cwd, void 0, done);
30494
+ mkdir_(cwd, normalizeWindowsPath(path.relative(cwd, dir)).split("/"), mode, unlink$1, cwd, void 0, done);
30495
30495
  };
30496
30496
  const mkdir_ = (base, parts, mode, unlink$1, cwd, created, cb) => {
30497
30497
  if (!parts.length) return cb(null, created);
30498
30498
  const p$1 = parts.shift();
30499
- const part = normalizeWindowsPath(nodePath.resolve(base + "/" + p$1));
30499
+ const part = normalizeWindowsPath(path.resolve(base + "/" + p$1));
30500
30500
  fs.mkdir(part, mode, onmkdir(part, parts, mode, unlink$1, cwd, created, cb));
30501
30501
  };
30502
30502
  const onmkdir = (part, parts, mode, unlink$1, cwd, created, cb) => (er) => {
@@ -30552,10 +30552,10 @@ const mkdirSync = (dir, opt) => {
30552
30552
  mode,
30553
30553
  recursive: true
30554
30554
  }) ?? void 0);
30555
- const parts = normalizeWindowsPath(nodePath.relative(cwd, dir)).split("/");
30555
+ const parts = normalizeWindowsPath(path.relative(cwd, dir)).split("/");
30556
30556
  let created = void 0;
30557
30557
  for (let p$1 = parts.shift(), part = cwd; p$1 && (part += "/" + p$1); p$1 = parts.shift()) {
30558
- part = normalizeWindowsPath(nodePath.resolve(part));
30558
+ part = normalizeWindowsPath(path.resolve(part));
30559
30559
  try {
30560
30560
  fs.mkdirSync(part, mode);
30561
30561
  created = created || part;
@@ -30595,11 +30595,11 @@ const normalizeUnicode = (s) => {
30595
30595
  //#endregion
30596
30596
  //#region node_modules/tar/dist/esm/path-reservations.js
30597
30597
  const isWindows$1 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
30598
- const getDirs = (path$16) => {
30599
- return path$16.split("/").slice(0, -1).reduce((set, path$17) => {
30598
+ const getDirs = (path$17) => {
30599
+ return path$17.split("/").slice(0, -1).reduce((set, path$18) => {
30600
30600
  const s = set[set.length - 1];
30601
- if (s !== void 0) path$17 = join(s, path$17);
30602
- set.push(path$17 || "/");
30601
+ if (s !== void 0) path$18 = join(s, path$18);
30602
+ set.push(path$18 || "/");
30603
30603
  return set;
30604
30604
  }, []);
30605
30605
  };
@@ -30611,7 +30611,7 @@ var PathReservations = class {
30611
30611
  paths = isWindows$1 ? ["win32 parallelization disabled"] : paths.map((p$1) => {
30612
30612
  return stripTrailingSlashes(join(normalizeUnicode(p$1))).toLowerCase();
30613
30613
  });
30614
- const dirs = new Set(paths.map((path$16) => getDirs(path$16)).reduce((a$1, b$2) => a$1.concat(b$2)));
30614
+ const dirs = new Set(paths.map((path$17) => getDirs(path$17)).reduce((a$1, b$2) => a$1.concat(b$2)));
30615
30615
  this.#reservations.set(fn, {
30616
30616
  dirs,
30617
30617
  paths
@@ -30638,8 +30638,8 @@ var PathReservations = class {
30638
30638
  if (!res) throw new Error("function does not have any path reservations");
30639
30639
  /* c8 ignore stop */
30640
30640
  return {
30641
- paths: res.paths.map((path$16) => this.#queues.get(path$16)),
30642
- dirs: [...res.dirs].map((path$16) => this.#queues.get(path$16))
30641
+ paths: res.paths.map((path$17) => this.#queues.get(path$17)),
30642
+ dirs: [...res.dirs].map((path$17) => this.#queues.get(path$17))
30643
30643
  };
30644
30644
  }
30645
30645
  check(fn) {
@@ -30660,14 +30660,14 @@ var PathReservations = class {
30660
30660
  /* c8 ignore stop */
30661
30661
  const { paths, dirs } = res;
30662
30662
  const next = /* @__PURE__ */ new Set();
30663
- for (const path$16 of paths) {
30664
- const q$2 = this.#queues.get(path$16);
30663
+ for (const path$17 of paths) {
30664
+ const q$2 = this.#queues.get(path$17);
30665
30665
  /* c8 ignore start */
30666
30666
  if (!q$2 || q$2?.[0] !== fn) continue;
30667
30667
  /* c8 ignore stop */
30668
30668
  const q0 = q$2[1];
30669
30669
  if (!q0) {
30670
- this.#queues.delete(path$16);
30670
+ this.#queues.delete(path$17);
30671
30671
  continue;
30672
30672
  }
30673
30673
  q$2.shift();
@@ -30724,20 +30724,20 @@ const CHECKED_CWD = Symbol("checkedCwd");
30724
30724
  const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
30725
30725
  const DEFAULT_MAX_DEPTH = 1024;
30726
30726
  /* c8 ignore start */
30727
- const unlinkFile = (path$16, cb) => {
30728
- if (!isWindows) return fs.unlink(path$16, cb);
30729
- const name$1 = path$16 + ".DELETE." + randomBytes(16).toString("hex");
30730
- fs.rename(path$16, name$1, (er) => {
30727
+ const unlinkFile = (path$17, cb) => {
30728
+ if (!isWindows) return fs.unlink(path$17, cb);
30729
+ const name$1 = path$17 + ".DELETE." + randomBytes(16).toString("hex");
30730
+ fs.rename(path$17, name$1, (er) => {
30731
30731
  if (er) return cb(er);
30732
30732
  fs.unlink(name$1, cb);
30733
30733
  });
30734
30734
  };
30735
30735
  /* c8 ignore stop */
30736
30736
  /* c8 ignore start */
30737
- const unlinkFileSync = (path$16) => {
30738
- if (!isWindows) return fs.unlinkSync(path$16);
30739
- const name$1 = path$16 + ".DELETE." + randomBytes(16).toString("hex");
30740
- fs.renameSync(path$16, name$1);
30737
+ const unlinkFileSync = (path$17) => {
30738
+ if (!isWindows) return fs.unlinkSync(path$17);
30739
+ const name$1 = path$17 + ".DELETE." + randomBytes(16).toString("hex");
30740
+ fs.renameSync(path$17, name$1);
30741
30741
  fs.unlinkSync(name$1);
30742
30742
  };
30743
30743
  /* c8 ignore stop */
@@ -30802,7 +30802,7 @@ var Unpack = class extends Parser {
30802
30802
  this.noMtime = !!opt.noMtime;
30803
30803
  this.preservePaths = !!opt.preservePaths;
30804
30804
  this.unlink = !!opt.unlink;
30805
- this.cwd = normalizeWindowsPath(nodePath.resolve(opt.cwd || process.cwd()));
30805
+ this.cwd = normalizeWindowsPath(path.resolve(opt.cwd || process.cwd()));
30806
30806
  this.strip = Number(opt.strip) || 0;
30807
30807
  this.processUmask = !this.chmod ? 0 : typeof opt.processUmask === "number" ? opt.processUmask : process.umask();
30808
30808
  this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
@@ -30822,22 +30822,22 @@ var Unpack = class extends Parser {
30822
30822
  }
30823
30823
  }
30824
30824
  [STRIPABSOLUTEPATH](entry, field) {
30825
- const path$16 = entry[field];
30826
- if (!path$16 || this.preservePaths) return true;
30827
- const parts = path$16.split("/");
30825
+ const path$17 = entry[field];
30826
+ if (!path$17 || this.preservePaths) return true;
30827
+ const parts = path$17.split("/");
30828
30828
  if (parts.includes("..") || isWindows && /^[a-z]:\.\.$/i.test(parts[0] ?? "")) {
30829
30829
  this.warn("TAR_ENTRY_ERROR", `${field} contains '..'`, {
30830
30830
  entry,
30831
- [field]: path$16
30831
+ [field]: path$17
30832
30832
  });
30833
30833
  return false;
30834
30834
  }
30835
- const [root, stripped] = stripAbsolutePath(path$16);
30835
+ const [root, stripped] = stripAbsolutePath(path$17);
30836
30836
  if (root) {
30837
30837
  entry[field] = String(stripped);
30838
30838
  this.warn("TAR_ENTRY_INFO", `stripping ${root} from absolute ${field}`, {
30839
30839
  entry,
30840
- [field]: path$16
30840
+ [field]: path$17
30841
30841
  });
30842
30842
  }
30843
30843
  return true;
@@ -30865,8 +30865,8 @@ var Unpack = class extends Parser {
30865
30865
  return false;
30866
30866
  }
30867
30867
  if (!this[STRIPABSOLUTEPATH](entry, "path") || !this[STRIPABSOLUTEPATH](entry, "linkpath")) return false;
30868
- if (nodePath.isAbsolute(entry.path)) entry.absolute = normalizeWindowsPath(nodePath.resolve(entry.path));
30869
- else entry.absolute = normalizeWindowsPath(nodePath.resolve(this.cwd, entry.path));
30868
+ if (path.isAbsolute(entry.path)) entry.absolute = normalizeWindowsPath(path.resolve(entry.path));
30869
+ else entry.absolute = normalizeWindowsPath(path.resolve(this.cwd, entry.path));
30870
30870
  /* c8 ignore start - defense in depth */
30871
30871
  if (!this.preservePaths && typeof entry.absolute === "string" && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
30872
30872
  this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
@@ -30880,9 +30880,9 @@ var Unpack = class extends Parser {
30880
30880
  /* c8 ignore stop */
30881
30881
  if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir") return false;
30882
30882
  if (this.win32) {
30883
- const { root: aRoot } = nodePath.win32.parse(String(entry.absolute));
30883
+ const { root: aRoot } = path.win32.parse(String(entry.absolute));
30884
30884
  entry.absolute = aRoot + encode(String(entry.absolute).slice(aRoot.length));
30885
- const { root: pRoot } = nodePath.win32.parse(entry.path);
30885
+ const { root: pRoot } = path.win32.parse(entry.path);
30886
30886
  entry.path = pRoot + encode(entry.path.slice(pRoot.length));
30887
30887
  }
30888
30888
  return true;
@@ -31028,7 +31028,7 @@ var Unpack = class extends Parser {
31028
31028
  this[LINK](entry, String(entry.linkpath), "symlink", done);
31029
31029
  }
31030
31030
  [HARDLINK](entry, done) {
31031
- const linkpath = normalizeWindowsPath(nodePath.resolve(this.cwd, String(entry.linkpath)));
31031
+ const linkpath = normalizeWindowsPath(path.resolve(this.cwd, String(entry.linkpath)));
31032
31032
  this[LINK](entry, linkpath, "link", done);
31033
31033
  }
31034
31034
  [PEND]() {
@@ -31068,7 +31068,7 @@ var Unpack = class extends Parser {
31068
31068
  };
31069
31069
  const start = () => {
31070
31070
  if (entry.absolute !== this.cwd) {
31071
- const parent = normalizeWindowsPath(nodePath.dirname(String(entry.absolute)));
31071
+ const parent = normalizeWindowsPath(path.dirname(String(entry.absolute)));
31072
31072
  if (parent !== this.cwd) return this[MKDIR](parent, this.dmode, (er) => {
31073
31073
  if (er) {
31074
31074
  this[ONERROR](er, entry);
@@ -31150,7 +31150,7 @@ var UnpackSync = class extends Unpack {
31150
31150
  this[CHECKED_CWD] = true;
31151
31151
  }
31152
31152
  if (entry.absolute !== this.cwd) {
31153
- const parent = normalizeWindowsPath(nodePath.dirname(String(entry.absolute)));
31153
+ const parent = normalizeWindowsPath(path.dirname(String(entry.absolute)));
31154
31154
  if (parent !== this.cwd) {
31155
31155
  const mkParent = this[MKDIR](parent, this.dmode);
31156
31156
  if (mkParent) return this[ONERROR](mkParent, entry);
@@ -31422,7 +31422,7 @@ const replaceAsync = (opt, files) => {
31422
31422
  const addFilesSync = (p$1, files) => {
31423
31423
  files.forEach((file) => {
31424
31424
  if (file.charAt(0) === "@") list({
31425
- file: nodePath.resolve(p$1.cwd, file.slice(1)),
31425
+ file: path.resolve(p$1.cwd, file.slice(1)),
31426
31426
  sync: true,
31427
31427
  noResume: true,
31428
31428
  onReadEntry: (entry) => p$1.add(entry)
@@ -31435,7 +31435,7 @@ const addFilesAsync = async (p$1, files) => {
31435
31435
  for (let i$1 = 0; i$1 < files.length; i$1++) {
31436
31436
  const file = String(files[i$1]);
31437
31437
  if (file.charAt(0) === "@") await list({
31438
- file: nodePath.resolve(String(p$1.cwd), file.slice(1)),
31438
+ file: path.resolve(String(p$1.cwd), file.slice(1)),
31439
31439
  noResume: true,
31440
31440
  onReadEntry: (entry) => p$1.add(entry)
31441
31441
  });
@@ -31470,7 +31470,7 @@ const update = makeCommand(replace.syncFile, replace.asyncFile, replace.syncNoFi
31470
31470
  const mtimeFilter = (opt) => {
31471
31471
  const filter = opt.filter;
31472
31472
  if (!opt.mtimeCache) opt.mtimeCache = /* @__PURE__ */ new Map();
31473
- opt.filter = filter ? (path$16, stat) => filter(path$16, stat) && !((opt.mtimeCache?.get(path$16) ?? stat.mtime ?? 0) > (stat.mtime ?? 0)) : (path$16, stat) => !((opt.mtimeCache?.get(path$16) ?? stat.mtime ?? 0) > (stat.mtime ?? 0));
31473
+ opt.filter = filter ? (path$17, stat) => filter(path$17, stat) && !((opt.mtimeCache?.get(path$17) ?? stat.mtime ?? 0) > (stat.mtime ?? 0)) : (path$17, stat) => !((opt.mtimeCache?.get(path$17) ?? stat.mtime ?? 0) > (stat.mtime ?? 0));
31474
31474
  };
31475
31475
 
31476
31476
  //#endregion
@@ -31709,9 +31709,9 @@ const getSubprocessResult = ({ stdout: stdout$1 }) => {
31709
31709
  //#region node_modules/execa/lib/utils/standard-stream.js
31710
31710
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
31711
31711
  const STANDARD_STREAMS = [
31712
- y.stdin,
31713
- y.stdout,
31714
- y.stderr
31712
+ process$1.stdin,
31713
+ process$1.stdout,
31714
+ process$1.stderr
31715
31715
  ];
31716
31716
  const STANDARD_STREAMS_ALIASES = [
31717
31717
  "stdin",
@@ -31836,9 +31836,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
31836
31836
  //#endregion
31837
31837
  //#region node_modules/is-unicode-supported/index.js
31838
31838
  function isUnicodeSupported() {
31839
- const { env: env$1 } = y;
31839
+ const { env: env$1 } = process$1;
31840
31840
  const { TERM, TERM_PROGRAM } = env$1;
31841
- if (y.platform !== "win32") return TERM !== "linux";
31841
+ if (process$1.platform !== "win32") return TERM !== "linux";
31842
31842
  return Boolean(env$1.WT_SESSION) || Boolean(env$1.TERMINUS_SUBLIME) || env$1.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env$1.TERMINAL_EMULATOR === "JetBrains-JediTerm";
31843
31843
  }
31844
31844
 
@@ -32128,9 +32128,9 @@ const replacements = Object.entries(specialMainSymbols);
32128
32128
  //#endregion
32129
32129
  //#region node_modules/yoctocolors/base.js
32130
32130
  const hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false;
32131
- const format = (open, close) => {
32131
+ const format = (open$1, close) => {
32132
32132
  if (!hasColors) return (input) => input;
32133
- const openCode = `\u001B[${open}m`;
32133
+ const openCode = `\u001B[${open$1}m`;
32134
32134
  const closeCode = `\u001B[${close}m`;
32135
32135
  return (input) => {
32136
32136
  const string$2 = input + "";
@@ -32331,29 +32331,29 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
32331
32331
  var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32332
32332
  module.exports = isexe;
32333
32333
  isexe.sync = sync;
32334
- var fs$4 = __require("fs");
32335
- function checkPathExt(path$16, options) {
32334
+ var fs$5 = __require("fs");
32335
+ function checkPathExt(path$17, options) {
32336
32336
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
32337
32337
  if (!pathext) return true;
32338
32338
  pathext = pathext.split(";");
32339
32339
  if (pathext.indexOf("") !== -1) return true;
32340
32340
  for (var i$1 = 0; i$1 < pathext.length; i$1++) {
32341
32341
  var p$1 = pathext[i$1].toLowerCase();
32342
- if (p$1 && path$16.substr(-p$1.length).toLowerCase() === p$1) return true;
32342
+ if (p$1 && path$17.substr(-p$1.length).toLowerCase() === p$1) return true;
32343
32343
  }
32344
32344
  return false;
32345
32345
  }
32346
- function checkStat(stat, path$16, options) {
32346
+ function checkStat(stat, path$17, options) {
32347
32347
  if (!stat.isSymbolicLink() && !stat.isFile()) return false;
32348
- return checkPathExt(path$16, options);
32348
+ return checkPathExt(path$17, options);
32349
32349
  }
32350
- function isexe(path$16, options, cb) {
32351
- fs$4.stat(path$16, function(er, stat) {
32352
- cb(er, er ? false : checkStat(stat, path$16, options));
32350
+ function isexe(path$17, options, cb) {
32351
+ fs$5.stat(path$17, function(er, stat) {
32352
+ cb(er, er ? false : checkStat(stat, path$17, options));
32353
32353
  });
32354
32354
  }
32355
- function sync(path$16, options) {
32356
- return checkStat(fs$4.statSync(path$16), path$16, options);
32355
+ function sync(path$17, options) {
32356
+ return checkStat(fs$5.statSync(path$17), path$17, options);
32357
32357
  }
32358
32358
  }));
32359
32359
 
@@ -32362,14 +32362,14 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32362
32362
  var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32363
32363
  module.exports = isexe;
32364
32364
  isexe.sync = sync;
32365
- var fs$3 = __require("fs");
32366
- function isexe(path$16, options, cb) {
32367
- fs$3.stat(path$16, function(er, stat) {
32365
+ var fs$4 = __require("fs");
32366
+ function isexe(path$17, options, cb) {
32367
+ fs$4.stat(path$17, function(er, stat) {
32368
32368
  cb(er, er ? false : checkStat(stat, options));
32369
32369
  });
32370
32370
  }
32371
- function sync(path$16, options) {
32372
- return checkStat(fs$3.statSync(path$16), options);
32371
+ function sync(path$17, options) {
32372
+ return checkStat(fs$4.statSync(path$17), options);
32373
32373
  }
32374
32374
  function checkStat(stat, options) {
32375
32375
  return stat.isFile() && checkMode(stat, options);
@@ -32397,7 +32397,7 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32397
32397
  else core = require_mode();
32398
32398
  module.exports = isexe;
32399
32399
  isexe.sync = sync;
32400
- function isexe(path$16, options, cb) {
32400
+ function isexe(path$17, options, cb) {
32401
32401
  if (typeof options === "function") {
32402
32402
  cb = options;
32403
32403
  options = {};
@@ -32405,13 +32405,13 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32405
32405
  if (!cb) {
32406
32406
  if (typeof Promise !== "function") throw new TypeError("callback not provided");
32407
32407
  return new Promise(function(resolve$1, reject) {
32408
- isexe(path$16, options || {}, function(er, is) {
32408
+ isexe(path$17, options || {}, function(er, is) {
32409
32409
  if (er) reject(er);
32410
32410
  else resolve$1(is);
32411
32411
  });
32412
32412
  });
32413
32413
  }
32414
- core(path$16, options || {}, function(er, is) {
32414
+ core(path$17, options || {}, function(er, is) {
32415
32415
  if (er) {
32416
32416
  if (er.code === "EACCES" || options && options.ignoreErrors) {
32417
32417
  er = null;
@@ -32421,9 +32421,9 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32421
32421
  cb(er, is);
32422
32422
  });
32423
32423
  }
32424
- function sync(path$16, options) {
32424
+ function sync(path$17, options) {
32425
32425
  try {
32426
- return core.sync(path$16, options || {});
32426
+ return core.sync(path$17, options || {});
32427
32427
  } catch (er) {
32428
32428
  if (options && options.ignoreErrors || er.code === "EACCES") return false;
32429
32429
  else throw er;
@@ -32435,7 +32435,7 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32435
32435
  //#region node_modules/which/which.js
32436
32436
  var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32437
32437
  const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
32438
- const path$3 = __require("path");
32438
+ const path$4 = __require("path");
32439
32439
  const COLON = isWindows ? ";" : ":";
32440
32440
  const isexe = require_isexe();
32441
32441
  const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -32465,7 +32465,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32465
32465
  if (i$1 === pathEnv.length) return opt.all && found.length ? resolve$1(found) : reject(getNotFoundError(cmd));
32466
32466
  const ppRaw = pathEnv[i$1];
32467
32467
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
32468
- const pCmd = path$3.join(pathPart, cmd);
32468
+ const pCmd = path$4.join(pathPart, cmd);
32469
32469
  resolve$1(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i$1, 0));
32470
32470
  });
32471
32471
  const subStep = (p$1, i$1, ii) => new Promise((resolve$1, reject) => {
@@ -32486,7 +32486,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32486
32486
  for (let i$1 = 0; i$1 < pathEnv.length; i$1++) {
32487
32487
  const ppRaw = pathEnv[i$1];
32488
32488
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
32489
- const pCmd = path$3.join(pathPart, cmd);
32489
+ const pCmd = path$4.join(pathPart, cmd);
32490
32490
  const p$1 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
32491
32491
  for (let j = 0; j < pathExt.length; j++) {
32492
32492
  const cur = p$1 + pathExt[j];
@@ -32519,7 +32519,7 @@ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32519
32519
  //#endregion
32520
32520
  //#region node_modules/cross-spawn/lib/util/resolveCommand.js
32521
32521
  var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32522
- const path$2 = __require("path");
32522
+ const path$3 = __require("path");
32523
32523
  const which = require_which();
32524
32524
  const getPathKey = require_path_key();
32525
32525
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -32534,12 +32534,12 @@ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) =>
32534
32534
  try {
32535
32535
  resolved = which.sync(parsed.command, {
32536
32536
  path: env$1[getPathKey({ env: env$1 })],
32537
- pathExt: withoutPathExt ? path$2.delimiter : void 0
32537
+ pathExt: withoutPathExt ? path$3.delimiter : void 0
32538
32538
  });
32539
32539
  } catch (e$1) {} finally {
32540
32540
  if (shouldSwitchCwd) process.chdir(cwd);
32541
32541
  }
32542
- if (resolved) resolved = path$2.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
32542
+ if (resolved) resolved = path$3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
32543
32543
  return resolved;
32544
32544
  }
32545
32545
  function resolveCommand(parsed) {
@@ -32582,8 +32582,8 @@ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) =
32582
32582
  module.exports = (string$2 = "") => {
32583
32583
  const match = string$2.match(shebangRegex);
32584
32584
  if (!match) return null;
32585
- const [path$16, argument] = match[0].replace(/#! ?/, "").split(" ");
32586
- const binary = path$16.split("/").pop();
32585
+ const [path$17, argument] = match[0].replace(/#! ?/, "").split(" ");
32586
+ const binary = path$17.split("/").pop();
32587
32587
  if (binary === "env") return argument;
32588
32588
  return argument ? `${binary} ${argument}` : binary;
32589
32589
  };
@@ -32592,16 +32592,16 @@ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) =
32592
32592
  //#endregion
32593
32593
  //#region node_modules/cross-spawn/lib/util/readShebang.js
32594
32594
  var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32595
- const fs$2 = __require("fs");
32595
+ const fs$3 = __require("fs");
32596
32596
  const shebangCommand = require_shebang_command();
32597
32597
  function readShebang(command) {
32598
32598
  const size = 150;
32599
32599
  const buffer = Buffer.alloc(size);
32600
32600
  let fd;
32601
32601
  try {
32602
- fd = fs$2.openSync(command, "r");
32603
- fs$2.readSync(fd, buffer, 0, size, 0);
32604
- fs$2.closeSync(fd);
32602
+ fd = fs$3.openSync(command, "r");
32603
+ fs$3.readSync(fd, buffer, 0, size, 0);
32604
+ fs$3.closeSync(fd);
32605
32605
  } catch (e$1) {}
32606
32606
  return shebangCommand(buffer.toString());
32607
32607
  }
@@ -32611,7 +32611,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32611
32611
  //#endregion
32612
32612
  //#region node_modules/cross-spawn/lib/parse.js
32613
32613
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32614
- const path$1 = __require("path");
32614
+ const path$2 = __require("path");
32615
32615
  const resolveCommand = require_resolveCommand();
32616
32616
  const escape = require_escape();
32617
32617
  const readShebang = require_readShebang();
@@ -32634,7 +32634,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32634
32634
  const needsShell = !isExecutableRegExp.test(commandFile);
32635
32635
  if (parsed.options.forceShell || needsShell) {
32636
32636
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
32637
- parsed.command = path$1.normalize(parsed.command);
32637
+ parsed.command = path$2.normalize(parsed.command);
32638
32638
  parsed.command = escape.command(parsed.command);
32639
32639
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
32640
32640
  parsed.args = [
@@ -32739,8 +32739,8 @@ var require_cross_spawn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32739
32739
  //#region node_modules/npm-run-path/node_modules/path-key/index.js
32740
32740
  var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn(), 1);
32741
32741
  function pathKey(options = {}) {
32742
- const { env: env$1 = process.env, platform: platform$2 = process.platform } = options;
32743
- if (platform$2 !== "win32") return "PATH";
32742
+ const { env: env$1 = process.env, platform: platform$3 = process.platform } = options;
32743
+ if (platform$3 !== "win32") return "PATH";
32744
32744
  return Object.keys(env$1).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
32745
32745
  }
32746
32746
 
@@ -32752,12 +32752,12 @@ function toPath(urlOrPath) {
32752
32752
  }
32753
32753
  function traversePathUp(startPath) {
32754
32754
  return { *[Symbol.iterator]() {
32755
- let currentPath = nodePath.resolve(toPath(startPath));
32755
+ let currentPath = path.resolve(toPath(startPath));
32756
32756
  let previousPath;
32757
32757
  while (previousPath !== currentPath) {
32758
32758
  yield currentPath;
32759
32759
  previousPath = currentPath;
32760
- currentPath = nodePath.resolve(currentPath, "..");
32760
+ currentPath = path.resolve(currentPath, "..");
32761
32761
  }
32762
32762
  } };
32763
32763
  }
@@ -32765,25 +32765,25 @@ const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
32765
32765
 
32766
32766
  //#endregion
32767
32767
  //#region node_modules/npm-run-path/index.js
32768
- const npmRunPath = ({ cwd = y.cwd(), path: pathOption = y.env[pathKey()], preferLocal = true, execPath: execPath$1 = y.execPath, addExecPath = true } = {}) => {
32769
- const cwdPath = nodePath.resolve(toPath(cwd));
32768
+ const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath: execPath$1 = process$1.execPath, addExecPath = true } = {}) => {
32769
+ const cwdPath = path.resolve(toPath(cwd));
32770
32770
  const result = [];
32771
- const pathParts = pathOption.split(nodePath.delimiter);
32771
+ const pathParts = pathOption.split(path.delimiter);
32772
32772
  if (preferLocal) applyPreferLocal(result, pathParts, cwdPath);
32773
32773
  if (addExecPath) applyExecPath(result, pathParts, execPath$1, cwdPath);
32774
- return pathOption === "" || pathOption === nodePath.delimiter ? `${result.join(nodePath.delimiter)}${pathOption}` : [...result, pathOption].join(nodePath.delimiter);
32774
+ return pathOption === "" || pathOption === path.delimiter ? `${result.join(path.delimiter)}${pathOption}` : [...result, pathOption].join(path.delimiter);
32775
32775
  };
32776
32776
  const applyPreferLocal = (result, pathParts, cwdPath) => {
32777
32777
  for (const directory of traversePathUp(cwdPath)) {
32778
- const pathPart = nodePath.join(directory, "node_modules/.bin");
32778
+ const pathPart = path.join(directory, "node_modules/.bin");
32779
32779
  if (!pathParts.includes(pathPart)) result.push(pathPart);
32780
32780
  }
32781
32781
  };
32782
32782
  const applyExecPath = (result, pathParts, execPath$1, cwdPath) => {
32783
- const pathPart = nodePath.resolve(cwdPath, toPath(execPath$1), "..");
32783
+ const pathPart = path.resolve(cwdPath, toPath(execPath$1), "..");
32784
32784
  if (!pathParts.includes(pathPart)) result.push(pathPart);
32785
32785
  };
32786
- const npmRunPathEnv = ({ env: env$1 = y.env, ...options } = {}) => {
32786
+ const npmRunPathEnv = ({ env: env$1 = process$1.env, ...options } = {}) => {
32787
32787
  env$1 = { ...env$1 };
32788
32788
  const pathName = pathKey({ env: env$1 });
32789
32789
  options.path = env$1[pathName];
@@ -33812,10 +33812,10 @@ const mapNode = ({ options }) => {
33812
33812
  node: true
33813
33813
  } };
33814
33814
  };
33815
- const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath: nodePath$1 = execPath, nodeOptions = execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath, ...options }) => {
33815
+ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath = execPath, nodeOptions = execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath, ...options }) => {
33816
33816
  if (formerNodePath !== void 0) throw new TypeError("The \"execPath\" option has been removed. Please use the \"nodePath\" option instead.");
33817
- const normalizedNodePath = safeNormalizeFileUrl(nodePath$1, "The \"nodePath\" option");
33818
- const resolvedNodePath = nodePath.resolve(cwd, normalizedNodePath);
33817
+ const normalizedNodePath = safeNormalizeFileUrl(nodePath, "The \"nodePath\" option");
33818
+ const resolvedNodePath = path.resolve(cwd, normalizedNodePath);
33819
33819
  const newOptions = {
33820
33820
  ...options,
33821
33821
  nodePath: resolvedNodePath,
@@ -33827,7 +33827,7 @@ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = fal
33827
33827
  commandArguments,
33828
33828
  newOptions
33829
33829
  ];
33830
- if (nodePath.basename(file, ".exe") === "node") throw new TypeError("When the \"node\" option is true, the first argument does not need to be \"node\".");
33830
+ if (path.basename(file, ".exe") === "node") throw new TypeError("When the \"node\" option is true, the first argument does not need to be \"node\".");
33831
33831
  return [
33832
33832
  resolvedNodePath,
33833
33833
  [
@@ -33914,11 +33914,11 @@ const serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encod
33914
33914
  //#region node_modules/execa/lib/arguments/cwd.js
33915
33915
  const normalizeCwd = (cwd = getDefaultCwd()) => {
33916
33916
  const cwdString = safeNormalizeFileUrl(cwd, "The \"cwd\" option");
33917
- return nodePath.resolve(cwdString);
33917
+ return path.resolve(cwdString);
33918
33918
  };
33919
33919
  const getDefaultCwd = () => {
33920
33920
  try {
33921
- return y.cwd();
33921
+ return process$1.cwd();
33922
33922
  } catch (error) {
33923
33923
  error.message = `The current directory does not exist.\n${error.message}`;
33924
33924
  throw error;
@@ -33953,7 +33953,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
33953
33953
  options.killSignal = normalizeKillSignal(options.killSignal);
33954
33954
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
33955
33955
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
33956
- if (y.platform === "win32" && nodePath.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
33956
+ if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
33957
33957
  return {
33958
33958
  file,
33959
33959
  commandArguments,
@@ -33978,15 +33978,15 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
33978
33978
  ipc,
33979
33979
  serialization
33980
33980
  });
33981
- const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath: nodePath$1 }) => {
33981
+ const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
33982
33982
  const env$1 = extendEnv ? {
33983
- ...y.env,
33983
+ ...process$1.env,
33984
33984
  ...envOption
33985
33985
  } : envOption;
33986
33986
  if (preferLocal || node) return npmRunPathEnv({
33987
33987
  env: env$1,
33988
33988
  cwd: localDirectory,
33989
- execPath: nodePath$1,
33989
+ execPath: nodePath,
33990
33990
  preferLocal,
33991
33991
  addExecPath: node
33992
33992
  });
@@ -34980,12 +34980,12 @@ const guessStreamDirection = {
34980
34980
  }
34981
34981
  };
34982
34982
  const getStandardStreamDirection = (value) => {
34983
- if ([0, y.stdin].includes(value)) return "input";
34983
+ if ([0, process$1.stdin].includes(value)) return "input";
34984
34984
  if ([
34985
34985
  1,
34986
34986
  2,
34987
- y.stdout,
34988
- y.stderr
34987
+ process$1.stdout,
34988
+ process$1.stderr
34989
34989
  ].includes(value)) return "output";
34990
34990
  };
34991
34991
  const DEFAULT_DIRECTION = "output";
@@ -35731,12 +35731,12 @@ const logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encodin
35731
35731
  }
35732
35732
  };
35733
35733
  const writeToFiles = (serializedResult, stdioItems, outputFiles) => {
35734
- for (const { path: path$16, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
35735
- const pathString = typeof path$16 === "string" ? path$16 : path$16.toString();
35736
- if (append || outputFiles.has(pathString)) appendFileSync(path$16, serializedResult);
35734
+ for (const { path: path$17, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
35735
+ const pathString = typeof path$17 === "string" ? path$17 : path$17.toString();
35736
+ if (append || outputFiles.has(pathString)) appendFileSync(path$17, serializedResult);
35737
35737
  else {
35738
35738
  outputFiles.add(pathString);
35739
- writeFileSync(path$16, serializedResult);
35739
+ writeFileSync(path$17, serializedResult);
35740
35740
  }
35741
35741
  }
35742
35742
  };
@@ -36049,9 +36049,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
36049
36049
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
36050
36050
  };
36051
36051
  const getIpcExport = () => {
36052
- const anyProcess = y;
36052
+ const anyProcess = process$1;
36053
36053
  const isSubprocess = true;
36054
- const ipc = y.channel !== void 0;
36054
+ const ipc = process$1.channel !== void 0;
36055
36055
  return {
36056
36056
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
36057
36057
  getCancelSignal: getCancelSignal$1.bind(void 0, {
@@ -36293,7 +36293,7 @@ if (process.platform === "linux") signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SI
36293
36293
 
36294
36294
  //#endregion
36295
36295
  //#region node_modules/signal-exit/dist/mjs/index.js
36296
- const processOk = (process$4) => !!process$4 && typeof process$4 === "object" && typeof process$4.removeListener === "function" && typeof process$4.emit === "function" && typeof process$4.reallyExit === "function" && typeof process$4.listeners === "function" && typeof process$4.kill === "function" && typeof process$4.pid === "number" && typeof process$4.on === "function";
36296
+ const processOk = (process$5) => !!process$5 && typeof process$5 === "object" && typeof process$5.removeListener === "function" && typeof process$5.emit === "function" && typeof process$5.reallyExit === "function" && typeof process$5.listeners === "function" && typeof process$5.kill === "function" && typeof process$5.pid === "number" && typeof process$5.on === "function";
36297
36297
  const kExitEmitter = Symbol.for("signal-exit emitter");
36298
36298
  const global$1 = globalThis;
36299
36299
  const ObjectDefineProperty = Object.defineProperty.bind(Object);
@@ -36361,7 +36361,7 @@ var SignalExitFallback = class extends SignalExitBase {
36361
36361
  };
36362
36362
  var SignalExit = class extends SignalExitBase {
36363
36363
  /* c8 ignore start */
36364
- #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
36364
+ #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
36365
36365
  /* c8 ignore stop */
36366
36366
  #emitter = new Emitter();
36367
36367
  #process;
@@ -36369,15 +36369,15 @@ var SignalExit = class extends SignalExitBase {
36369
36369
  #originalProcessReallyExit;
36370
36370
  #sigListeners = {};
36371
36371
  #loaded = false;
36372
- constructor(process$4) {
36372
+ constructor(process$5) {
36373
36373
  super();
36374
- this.#process = process$4;
36374
+ this.#process = process$5;
36375
36375
  this.#sigListeners = {};
36376
36376
  for (const sig of signals) this.#sigListeners[sig] = () => {
36377
36377
  const listeners = this.#process.listeners(sig);
36378
36378
  let { count: count$1 } = this.#emitter;
36379
36379
  /* c8 ignore start */
36380
- const p$1 = process$4;
36380
+ const p$1 = process$5;
36381
36381
  if (typeof p$1.__signal_exit_emitter__ === "object" && typeof p$1.__signal_exit_emitter__.count === "number") count$1 += p$1.__signal_exit_emitter__.count;
36382
36382
  /* c8 ignore stop */
36383
36383
  if (listeners.length === count$1) {
@@ -36385,11 +36385,11 @@ var SignalExit = class extends SignalExitBase {
36385
36385
  const ret = this.#emitter.emit("exit", null, sig);
36386
36386
  /* c8 ignore start */
36387
36387
  const s = sig === "SIGHUP" ? this.#hupSig : sig;
36388
- if (!ret) process$4.kill(process$4.pid, s);
36388
+ if (!ret) process$5.kill(process$5.pid, s);
36389
36389
  }
36390
36390
  };
36391
- this.#originalProcessReallyExit = process$4.reallyExit;
36392
- this.#originalProcessEmit = process$4.emit;
36391
+ this.#originalProcessReallyExit = process$5.reallyExit;
36392
+ this.#originalProcessEmit = process$5.emit;
36393
36393
  }
36394
36394
  onExit(cb, opts) {
36395
36395
  /* c8 ignore start */
@@ -36456,8 +36456,8 @@ var SignalExit = class extends SignalExitBase {
36456
36456
  } else return og.call(this.#process, ev, ...args);
36457
36457
  }
36458
36458
  };
36459
- const process$1 = globalThis.process;
36460
- const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
36459
+ const process$2 = globalThis.process;
36460
+ const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
36461
36461
 
36462
36462
  //#endregion
36463
36463
  //#region node_modules/execa/lib/terminate/cleanup.js
@@ -38214,8 +38214,8 @@ async function getDefaultTemplate() {
38214
38214
  return template;
38215
38215
  }
38216
38216
  function validateNonInteractiveFlags(command) {
38217
- const { name: name$1, path: path$16 } = command.opts();
38218
- const providedCount = [name$1, path$16].filter(Boolean).length;
38217
+ const { name: name$1, path: path$17 } = command.opts();
38218
+ const providedCount = [name$1, path$17].filter(Boolean).length;
38219
38219
  if (providedCount > 0 && providedCount < 2) command.error("Non-interactive mode requires all flags: --name, --path");
38220
38220
  }
38221
38221
  async function chooseCreate(options) {
@@ -38290,76 +38290,46 @@ async function executeCreate({ template, name: rawName, description, projectPath
38290
38290
  errorMessage: "Failed to create project"
38291
38291
  });
38292
38292
  await loadProjectEnv(resolvedPath);
38293
- const { project, entities, functions } = await readProjectConfig(resolvedPath);
38293
+ const { project, entities } = await readProjectConfig(resolvedPath);
38294
38294
  let finalAppUrl;
38295
- const hasBackend = entities.length > 0 || functions.length > 0;
38296
- const hasSite = !!project.site;
38297
- if (hasBackend || hasSite) {
38298
- let deploymentChoice = "none";
38295
+ if (entities.length > 0) {
38296
+ let shouldPushEntities;
38299
38297
  if (isInteractive) {
38300
- const options = [];
38301
- if (hasBackend) options.push({
38302
- value: "backend",
38303
- label: "Deploy backend",
38304
- hint: "Deploy entities and functions only"
38305
- });
38306
- if (hasBackend && hasSite) options.push({
38307
- value: "backend+client",
38308
- label: "Deploy backend+client",
38309
- hint: "Deploy entities, functions, and site"
38310
- });
38311
- else if (hasSite) options.push({
38312
- value: "backend+client",
38313
- label: "Deploy site",
38314
- hint: "Deploy the site to Base44"
38315
- });
38316
- if (options.length > 0) {
38317
- const result = await ve({
38318
- message: "What would you like to deploy?",
38319
- options: [...options, {
38320
- value: "none",
38321
- label: "Skip deployment",
38322
- hint: "You can deploy later"
38323
- }]
38324
- });
38325
- if (!pD(result)) deploymentChoice = result;
38326
- }
38327
- } else deploymentChoice = deploy ? "backend+client" : "none";
38328
- if (deploymentChoice === "backend" || deploymentChoice === "backend+client") {
38329
- if (entities.length > 0) await runTask(`Pushing ${entities.length} ${entities.length === 1 ? "entity" : "entities"} to Base44...`, async () => {
38330
- await pushEntities(entities);
38331
- }, {
38332
- successMessage: theme.colors.base44Orange(`${entities.length === 1 ? "Entity" : "Entities"} pushed successfully`),
38333
- errorMessage: "Failed to push entities"
38334
- });
38335
- if (functions.length > 0) await runTask(`Pushing ${functions.length} ${functions.length === 1 ? "function" : "functions"} to Base44...`, async () => {
38336
- await pushFunctions(functions);
38298
+ const result = await ye({ message: "Set up the backend data now? (This pushes the data models used by the template to Base44)" });
38299
+ shouldPushEntities = !pD(result) && result;
38300
+ } else shouldPushEntities = !!deploy;
38301
+ if (shouldPushEntities) await runTask(`Pushing ${entities.length} data models to Base44...`, async () => {
38302
+ await pushEntities(entities);
38303
+ }, {
38304
+ successMessage: theme.colors.base44Orange("Data models pushed successfully"),
38305
+ errorMessage: "Failed to push data models"
38306
+ });
38307
+ }
38308
+ if (project.site) {
38309
+ const { installCommand, buildCommand, outputDirectory } = project.site;
38310
+ let shouldDeploy;
38311
+ if (isInteractive) {
38312
+ const result = await ye({ message: "Would you like to deploy the site now? (Hosted on Base44)" });
38313
+ shouldDeploy = !pD(result) && result;
38314
+ } else shouldDeploy = !!deploy;
38315
+ if (shouldDeploy && installCommand && buildCommand && outputDirectory) {
38316
+ const { appUrl } = await runTask("Installing dependencies...", async (updateMessage) => {
38317
+ await execa({
38318
+ cwd: resolvedPath,
38319
+ shell: true
38320
+ })`${installCommand}`;
38321
+ updateMessage("Building project...");
38322
+ await execa({
38323
+ cwd: resolvedPath,
38324
+ shell: true
38325
+ })`${buildCommand}`;
38326
+ updateMessage("Deploying site...");
38327
+ return await deploySite(join(resolvedPath, outputDirectory));
38337
38328
  }, {
38338
- successMessage: theme.colors.base44Orange(`${functions.length === 1 ? "Function" : "Functions"} pushed successfully`),
38339
- errorMessage: "Failed to push functions"
38329
+ successMessage: theme.colors.base44Orange("Site deployed successfully"),
38330
+ errorMessage: "Failed to deploy site"
38340
38331
  });
38341
- }
38342
- if (deploymentChoice === "backend+client" && project.site) {
38343
- const { installCommand, buildCommand, outputDirectory } = project.site;
38344
- if (installCommand && buildCommand && outputDirectory) {
38345
- const { appUrl } = await runTask("Installing dependencies...", async (updateMessage) => {
38346
- await execa({
38347
- cwd: resolvedPath,
38348
- shell: true
38349
- })`${installCommand}`;
38350
- updateMessage("Building project...");
38351
- await execa({
38352
- cwd: resolvedPath,
38353
- shell: true
38354
- })`${buildCommand}`;
38355
- updateMessage("Deploying site...");
38356
- return await deploySite(join(resolvedPath, outputDirectory));
38357
- }, {
38358
- successMessage: theme.colors.base44Orange("Site deployed successfully"),
38359
- errorMessage: "Failed to deploy site"
38360
- });
38361
- finalAppUrl = appUrl;
38362
- }
38332
+ finalAppUrl = appUrl;
38363
38333
  }
38364
38334
  }
38365
38335
  const dashboardUrl = `${getBase44ApiUrl()}/apps/${projectId}/editor/preview`;
@@ -38372,6 +38342,559 @@ const createCommand = new Command("create").description("Create a new Base44 pro
38372
38342
  await chooseCreate(options);
38373
38343
  });
38374
38344
 
38345
+ //#endregion
38346
+ //#region node_modules/is-docker/index.js
38347
+ let isDockerCached;
38348
+ function hasDockerEnv() {
38349
+ try {
38350
+ fs.statSync("/.dockerenv");
38351
+ return true;
38352
+ } catch {
38353
+ return false;
38354
+ }
38355
+ }
38356
+ function hasDockerCGroup() {
38357
+ try {
38358
+ return fs.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
38359
+ } catch {
38360
+ return false;
38361
+ }
38362
+ }
38363
+ function isDocker() {
38364
+ if (isDockerCached === void 0) isDockerCached = hasDockerEnv() || hasDockerCGroup();
38365
+ return isDockerCached;
38366
+ }
38367
+
38368
+ //#endregion
38369
+ //#region node_modules/is-inside-container/index.js
38370
+ let cachedResult;
38371
+ const hasContainerEnv = () => {
38372
+ try {
38373
+ fs.statSync("/run/.containerenv");
38374
+ return true;
38375
+ } catch {
38376
+ return false;
38377
+ }
38378
+ };
38379
+ function isInsideContainer() {
38380
+ if (cachedResult === void 0) cachedResult = hasContainerEnv() || isDocker();
38381
+ return cachedResult;
38382
+ }
38383
+
38384
+ //#endregion
38385
+ //#region node_modules/is-wsl/index.js
38386
+ const isWsl = () => {
38387
+ if (process$1.platform !== "linux") return false;
38388
+ if (os.release().toLowerCase().includes("microsoft")) {
38389
+ if (isInsideContainer()) return false;
38390
+ return true;
38391
+ }
38392
+ try {
38393
+ return fs.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isInsideContainer() : false;
38394
+ } catch {
38395
+ return false;
38396
+ }
38397
+ };
38398
+ var is_wsl_default = process$1.env.__IS_WSL_TEST__ ? isWsl : isWsl();
38399
+
38400
+ //#endregion
38401
+ //#region node_modules/powershell-utils/index.js
38402
+ const execFile$2 = promisify(childProcess.execFile);
38403
+ const powerShellPath$1 = () => `${process$1.env.SYSTEMROOT || process$1.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
38404
+ const executePowerShell = async (command, options = {}) => {
38405
+ const { powerShellPath: psPath, ...execFileOptions } = options;
38406
+ const encodedCommand = executePowerShell.encodeCommand(command);
38407
+ return execFile$2(psPath ?? powerShellPath$1(), [...executePowerShell.argumentsPrefix, encodedCommand], {
38408
+ encoding: "utf8",
38409
+ ...execFileOptions
38410
+ });
38411
+ };
38412
+ executePowerShell.argumentsPrefix = [
38413
+ "-NoProfile",
38414
+ "-NonInteractive",
38415
+ "-ExecutionPolicy",
38416
+ "Bypass",
38417
+ "-EncodedCommand"
38418
+ ];
38419
+ executePowerShell.encodeCommand = (command) => Buffer$2.from(command, "utf16le").toString("base64");
38420
+ executePowerShell.escapeArgument = (value) => `'${String(value).replaceAll("'", "''")}'`;
38421
+
38422
+ //#endregion
38423
+ //#region node_modules/wsl-utils/utilities.js
38424
+ function parseMountPointFromConfig(content) {
38425
+ for (const line of content.split("\n")) {
38426
+ if (/^\s*#/.test(line)) continue;
38427
+ const match = /^\s*root\s*=\s*(?<mountPoint>"[^"]*"|'[^']*'|[^#]*)/.exec(line);
38428
+ if (!match) continue;
38429
+ return match.groups.mountPoint.trim().replaceAll(/^["']|["']$/g, "");
38430
+ }
38431
+ }
38432
+
38433
+ //#endregion
38434
+ //#region node_modules/wsl-utils/index.js
38435
+ const execFile$1 = promisify(childProcess.execFile);
38436
+ const wslDrivesMountPoint = (() => {
38437
+ const defaultMountPoint = "/mnt/";
38438
+ let mountPoint;
38439
+ return async function() {
38440
+ if (mountPoint) return mountPoint;
38441
+ const configFilePath = "/etc/wsl.conf";
38442
+ let isConfigFileExists = false;
38443
+ try {
38444
+ await fs$2.access(configFilePath, constants$1.F_OK);
38445
+ isConfigFileExists = true;
38446
+ } catch {}
38447
+ if (!isConfigFileExists) return defaultMountPoint;
38448
+ const parsedMountPoint = parseMountPointFromConfig(await fs$2.readFile(configFilePath, { encoding: "utf8" }));
38449
+ if (parsedMountPoint === void 0) return defaultMountPoint;
38450
+ mountPoint = parsedMountPoint;
38451
+ mountPoint = mountPoint.endsWith("/") ? mountPoint : `${mountPoint}/`;
38452
+ return mountPoint;
38453
+ };
38454
+ })();
38455
+ const powerShellPathFromWsl = async () => {
38456
+ return `${await wslDrivesMountPoint()}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`;
38457
+ };
38458
+ const powerShellPath = is_wsl_default ? powerShellPathFromWsl : powerShellPath$1;
38459
+ let canAccessPowerShellPromise;
38460
+ const canAccessPowerShell = async () => {
38461
+ canAccessPowerShellPromise ??= (async () => {
38462
+ try {
38463
+ const psPath = await powerShellPath();
38464
+ await fs$2.access(psPath, constants$1.X_OK);
38465
+ return true;
38466
+ } catch {
38467
+ return false;
38468
+ }
38469
+ })();
38470
+ return canAccessPowerShellPromise;
38471
+ };
38472
+ const wslDefaultBrowser = async () => {
38473
+ const psPath = await powerShellPath();
38474
+ const { stdout: stdout$1 } = await executePowerShell(String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`, { powerShellPath: psPath });
38475
+ return stdout$1.trim();
38476
+ };
38477
+ const convertWslPathToWindows = async (path$17) => {
38478
+ if (/^[a-z]+:\/\//i.test(path$17)) return path$17;
38479
+ try {
38480
+ const { stdout: stdout$1 } = await execFile$1("wslpath", ["-aw", path$17], { encoding: "utf8" });
38481
+ return stdout$1.trim();
38482
+ } catch {
38483
+ return path$17;
38484
+ }
38485
+ };
38486
+
38487
+ //#endregion
38488
+ //#region node_modules/define-lazy-prop/index.js
38489
+ function defineLazyProperty(object$1, propertyName, valueGetter) {
38490
+ const define$1 = (value) => Object.defineProperty(object$1, propertyName, {
38491
+ value,
38492
+ enumerable: true,
38493
+ writable: true
38494
+ });
38495
+ Object.defineProperty(object$1, propertyName, {
38496
+ configurable: true,
38497
+ enumerable: true,
38498
+ get() {
38499
+ const result = valueGetter();
38500
+ define$1(result);
38501
+ return result;
38502
+ },
38503
+ set(value) {
38504
+ define$1(value);
38505
+ }
38506
+ });
38507
+ return object$1;
38508
+ }
38509
+
38510
+ //#endregion
38511
+ //#region node_modules/default-browser-id/index.js
38512
+ const execFileAsync$3 = promisify(execFile);
38513
+ async function defaultBrowserId() {
38514
+ if (process$1.platform !== "darwin") throw new Error("macOS only");
38515
+ const { stdout: stdout$1 } = await execFileAsync$3("defaults", [
38516
+ "read",
38517
+ "com.apple.LaunchServices/com.apple.launchservices.secure",
38518
+ "LSHandlers"
38519
+ ]);
38520
+ const browserId = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout$1)?.groups.id ?? "com.apple.Safari";
38521
+ if (browserId === "com.apple.safari") return "com.apple.Safari";
38522
+ return browserId;
38523
+ }
38524
+
38525
+ //#endregion
38526
+ //#region node_modules/run-applescript/index.js
38527
+ const execFileAsync$2 = promisify(execFile);
38528
+ async function runAppleScript(script, { humanReadableOutput = true, signal } = {}) {
38529
+ if (process$1.platform !== "darwin") throw new Error("macOS only");
38530
+ const outputArguments = humanReadableOutput ? [] : ["-ss"];
38531
+ const execOptions = {};
38532
+ if (signal) execOptions.signal = signal;
38533
+ const { stdout: stdout$1 } = await execFileAsync$2("osascript", [
38534
+ "-e",
38535
+ script,
38536
+ outputArguments
38537
+ ], execOptions);
38538
+ return stdout$1.trim();
38539
+ }
38540
+
38541
+ //#endregion
38542
+ //#region node_modules/bundle-name/index.js
38543
+ async function bundleName(bundleId) {
38544
+ return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`);
38545
+ }
38546
+
38547
+ //#endregion
38548
+ //#region node_modules/default-browser/windows.js
38549
+ const execFileAsync$1 = promisify(execFile);
38550
+ const windowsBrowserProgIds = {
38551
+ MSEdgeHTM: {
38552
+ name: "Edge",
38553
+ id: "com.microsoft.edge"
38554
+ },
38555
+ MSEdgeBHTML: {
38556
+ name: "Edge Beta",
38557
+ id: "com.microsoft.edge.beta"
38558
+ },
38559
+ MSEdgeDHTML: {
38560
+ name: "Edge Dev",
38561
+ id: "com.microsoft.edge.dev"
38562
+ },
38563
+ AppXq0fevzme2pys62n3e0fbqa7peapykr8v: {
38564
+ name: "Edge",
38565
+ id: "com.microsoft.edge.old"
38566
+ },
38567
+ ChromeHTML: {
38568
+ name: "Chrome",
38569
+ id: "com.google.chrome"
38570
+ },
38571
+ ChromeBHTML: {
38572
+ name: "Chrome Beta",
38573
+ id: "com.google.chrome.beta"
38574
+ },
38575
+ ChromeDHTML: {
38576
+ name: "Chrome Dev",
38577
+ id: "com.google.chrome.dev"
38578
+ },
38579
+ ChromiumHTM: {
38580
+ name: "Chromium",
38581
+ id: "org.chromium.Chromium"
38582
+ },
38583
+ BraveHTML: {
38584
+ name: "Brave",
38585
+ id: "com.brave.Browser"
38586
+ },
38587
+ BraveBHTML: {
38588
+ name: "Brave Beta",
38589
+ id: "com.brave.Browser.beta"
38590
+ },
38591
+ BraveDHTML: {
38592
+ name: "Brave Dev",
38593
+ id: "com.brave.Browser.dev"
38594
+ },
38595
+ BraveSSHTM: {
38596
+ name: "Brave Nightly",
38597
+ id: "com.brave.Browser.nightly"
38598
+ },
38599
+ FirefoxURL: {
38600
+ name: "Firefox",
38601
+ id: "org.mozilla.firefox"
38602
+ },
38603
+ OperaStable: {
38604
+ name: "Opera",
38605
+ id: "com.operasoftware.Opera"
38606
+ },
38607
+ VivaldiHTM: {
38608
+ name: "Vivaldi",
38609
+ id: "com.vivaldi.Vivaldi"
38610
+ },
38611
+ "IE.HTTP": {
38612
+ name: "Internet Explorer",
38613
+ id: "com.microsoft.ie"
38614
+ }
38615
+ };
38616
+ const _windowsBrowserProgIdMap = new Map(Object.entries(windowsBrowserProgIds));
38617
+ var UnknownBrowserError = class extends Error {};
38618
+ async function defaultBrowser$1(_execFileAsync = execFileAsync$1) {
38619
+ const { stdout: stdout$1 } = await _execFileAsync("reg", [
38620
+ "QUERY",
38621
+ " HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice",
38622
+ "/v",
38623
+ "ProgId"
38624
+ ]);
38625
+ const match = /ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(stdout$1);
38626
+ if (!match) throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout$1)}`);
38627
+ const { id } = match.groups;
38628
+ const browser = windowsBrowserProgIds[id];
38629
+ if (!browser) throw new UnknownBrowserError(`Unknown browser ID: ${id}`);
38630
+ return browser;
38631
+ }
38632
+
38633
+ //#endregion
38634
+ //#region node_modules/default-browser/index.js
38635
+ const execFileAsync = promisify(execFile);
38636
+ const titleize = (string$2) => string$2.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, (x$2) => x$2.toUpperCase());
38637
+ async function defaultBrowser() {
38638
+ if (process$1.platform === "darwin") {
38639
+ const id = await defaultBrowserId();
38640
+ return {
38641
+ name: await bundleName(id),
38642
+ id
38643
+ };
38644
+ }
38645
+ if (process$1.platform === "linux") {
38646
+ const { stdout: stdout$1 } = await execFileAsync("xdg-mime", [
38647
+ "query",
38648
+ "default",
38649
+ "x-scheme-handler/http"
38650
+ ]);
38651
+ const id = stdout$1.trim();
38652
+ return {
38653
+ name: titleize(id.replace(/.desktop$/, "").replace("-", " ")),
38654
+ id
38655
+ };
38656
+ }
38657
+ if (process$1.platform === "win32") return defaultBrowser$1();
38658
+ throw new Error("Only macOS, Linux, and Windows are supported");
38659
+ }
38660
+
38661
+ //#endregion
38662
+ //#region node_modules/is-in-ssh/index.js
38663
+ const isInSsh = Boolean(process$1.env.SSH_CONNECTION || process$1.env.SSH_CLIENT || process$1.env.SSH_TTY);
38664
+ var is_in_ssh_default = isInSsh;
38665
+
38666
+ //#endregion
38667
+ //#region node_modules/open/index.js
38668
+ const fallbackAttemptSymbol = Symbol("fallbackAttempt");
38669
+ const __dirname = import.meta.url ? path.dirname(fileURLToPath(import.meta.url)) : "";
38670
+ const localXdgOpenPath = path.join(__dirname, "xdg-open");
38671
+ const { platform: platform$1, arch } = process$1;
38672
+ const tryEachApp = async (apps$1, opener) => {
38673
+ if (apps$1.length === 0) return;
38674
+ const errors = [];
38675
+ for (const app of apps$1) try {
38676
+ return await opener(app);
38677
+ } catch (error) {
38678
+ errors.push(error);
38679
+ }
38680
+ throw new AggregateError(errors, "Failed to open in all supported apps");
38681
+ };
38682
+ const baseOpen = async (options) => {
38683
+ options = {
38684
+ wait: false,
38685
+ background: false,
38686
+ newInstance: false,
38687
+ allowNonzeroExitCode: false,
38688
+ ...options
38689
+ };
38690
+ const isFallbackAttempt = options[fallbackAttemptSymbol] === true;
38691
+ delete options[fallbackAttemptSymbol];
38692
+ if (Array.isArray(options.app)) return tryEachApp(options.app, (singleApp) => baseOpen({
38693
+ ...options,
38694
+ app: singleApp,
38695
+ [fallbackAttemptSymbol]: true
38696
+ }));
38697
+ let { name: app, arguments: appArguments = [] } = options.app ?? {};
38698
+ appArguments = [...appArguments];
38699
+ if (Array.isArray(app)) return tryEachApp(app, (appName) => baseOpen({
38700
+ ...options,
38701
+ app: {
38702
+ name: appName,
38703
+ arguments: appArguments
38704
+ },
38705
+ [fallbackAttemptSymbol]: true
38706
+ }));
38707
+ if (app === "browser" || app === "browserPrivate") {
38708
+ const ids = {
38709
+ "com.google.chrome": "chrome",
38710
+ "google-chrome.desktop": "chrome",
38711
+ "com.brave.browser": "brave",
38712
+ "org.mozilla.firefox": "firefox",
38713
+ "firefox.desktop": "firefox",
38714
+ "com.microsoft.msedge": "edge",
38715
+ "com.microsoft.edge": "edge",
38716
+ "com.microsoft.edgemac": "edge",
38717
+ "microsoft-edge.desktop": "edge",
38718
+ "com.apple.safari": "safari"
38719
+ };
38720
+ const flags = {
38721
+ chrome: "--incognito",
38722
+ brave: "--incognito",
38723
+ firefox: "--private-window",
38724
+ edge: "--inPrivate"
38725
+ };
38726
+ let browser;
38727
+ if (is_wsl_default) {
38728
+ const progId = await wslDefaultBrowser();
38729
+ browser = _windowsBrowserProgIdMap.get(progId) ?? {};
38730
+ } else browser = await defaultBrowser();
38731
+ if (browser.id in ids) {
38732
+ const browserName = ids[browser.id.toLowerCase()];
38733
+ if (app === "browserPrivate") {
38734
+ if (browserName === "safari") throw new Error("Safari doesn't support opening in private mode via command line");
38735
+ appArguments.push(flags[browserName]);
38736
+ }
38737
+ return baseOpen({
38738
+ ...options,
38739
+ app: {
38740
+ name: apps[browserName],
38741
+ arguments: appArguments
38742
+ }
38743
+ });
38744
+ }
38745
+ throw new Error(`${browser.name} is not supported as a default browser`);
38746
+ }
38747
+ let command;
38748
+ const cliArguments = [];
38749
+ const childProcessOptions = {};
38750
+ let shouldUseWindowsInWsl = false;
38751
+ if (is_wsl_default && !isInsideContainer() && !is_in_ssh_default && !app) shouldUseWindowsInWsl = await canAccessPowerShell();
38752
+ if (platform$1 === "darwin") {
38753
+ command = "open";
38754
+ if (options.wait) cliArguments.push("--wait-apps");
38755
+ if (options.background) cliArguments.push("--background");
38756
+ if (options.newInstance) cliArguments.push("--new");
38757
+ if (app) cliArguments.push("-a", app);
38758
+ } else if (platform$1 === "win32" || shouldUseWindowsInWsl) {
38759
+ command = await powerShellPath();
38760
+ cliArguments.push(...executePowerShell.argumentsPrefix);
38761
+ if (!is_wsl_default) childProcessOptions.windowsVerbatimArguments = true;
38762
+ if (is_wsl_default && options.target) options.target = await convertWslPathToWindows(options.target);
38763
+ const encodedArguments = ["$ProgressPreference = 'SilentlyContinue';", "Start"];
38764
+ if (options.wait) encodedArguments.push("-Wait");
38765
+ if (app) {
38766
+ encodedArguments.push(executePowerShell.escapeArgument(app));
38767
+ if (options.target) appArguments.push(options.target);
38768
+ } else if (options.target) encodedArguments.push(executePowerShell.escapeArgument(options.target));
38769
+ if (appArguments.length > 0) {
38770
+ appArguments = appArguments.map((argument) => executePowerShell.escapeArgument(argument));
38771
+ encodedArguments.push("-ArgumentList", appArguments.join(","));
38772
+ }
38773
+ options.target = executePowerShell.encodeCommand(encodedArguments.join(" "));
38774
+ if (!options.wait) childProcessOptions.stdio = "ignore";
38775
+ } else {
38776
+ if (app) command = app;
38777
+ else {
38778
+ const isBundled = !__dirname || __dirname === "/";
38779
+ let exeLocalXdgOpen = false;
38780
+ try {
38781
+ await fs$2.access(localXdgOpenPath, constants$1.X_OK);
38782
+ exeLocalXdgOpen = true;
38783
+ } catch {}
38784
+ command = process$1.versions.electron ?? (platform$1 === "android" || isBundled || !exeLocalXdgOpen) ? "xdg-open" : localXdgOpenPath;
38785
+ }
38786
+ if (appArguments.length > 0) cliArguments.push(...appArguments);
38787
+ if (!options.wait) {
38788
+ childProcessOptions.stdio = "ignore";
38789
+ childProcessOptions.detached = true;
38790
+ }
38791
+ }
38792
+ if (platform$1 === "darwin" && appArguments.length > 0) cliArguments.push("--args", ...appArguments);
38793
+ if (options.target) cliArguments.push(options.target);
38794
+ const subprocess = childProcess.spawn(command, cliArguments, childProcessOptions);
38795
+ if (options.wait) return new Promise((resolve$1, reject) => {
38796
+ subprocess.once("error", reject);
38797
+ subprocess.once("close", (exitCode) => {
38798
+ if (!options.allowNonzeroExitCode && exitCode !== 0) {
38799
+ reject(/* @__PURE__ */ new Error(`Exited with code ${exitCode}`));
38800
+ return;
38801
+ }
38802
+ resolve$1(subprocess);
38803
+ });
38804
+ });
38805
+ if (isFallbackAttempt) return new Promise((resolve$1, reject) => {
38806
+ subprocess.once("error", reject);
38807
+ subprocess.once("spawn", () => {
38808
+ subprocess.once("close", (exitCode) => {
38809
+ subprocess.off("error", reject);
38810
+ if (exitCode !== 0) {
38811
+ reject(/* @__PURE__ */ new Error(`Exited with code ${exitCode}`));
38812
+ return;
38813
+ }
38814
+ subprocess.unref();
38815
+ resolve$1(subprocess);
38816
+ });
38817
+ });
38818
+ });
38819
+ subprocess.unref();
38820
+ return new Promise((resolve$1, reject) => {
38821
+ subprocess.once("error", reject);
38822
+ subprocess.once("spawn", () => {
38823
+ subprocess.off("error", reject);
38824
+ resolve$1(subprocess);
38825
+ });
38826
+ });
38827
+ };
38828
+ const open = (target, options) => {
38829
+ if (typeof target !== "string") throw new TypeError("Expected a `target`");
38830
+ return baseOpen({
38831
+ ...options,
38832
+ target
38833
+ });
38834
+ };
38835
+ function detectArchBinary(binary) {
38836
+ if (typeof binary === "string" || Array.isArray(binary)) return binary;
38837
+ const { [arch]: archBinary } = binary;
38838
+ if (!archBinary) throw new Error(`${arch} is not supported`);
38839
+ return archBinary;
38840
+ }
38841
+ function detectPlatformBinary({ [platform$1]: platformBinary }, { wsl } = {}) {
38842
+ if (wsl && is_wsl_default) return detectArchBinary(wsl);
38843
+ if (!platformBinary) throw new Error(`${platform$1} is not supported`);
38844
+ return detectArchBinary(platformBinary);
38845
+ }
38846
+ const apps = {
38847
+ browser: "browser",
38848
+ browserPrivate: "browserPrivate"
38849
+ };
38850
+ defineLazyProperty(apps, "chrome", () => detectPlatformBinary({
38851
+ darwin: "google chrome",
38852
+ win32: "chrome",
38853
+ linux: [
38854
+ "google-chrome",
38855
+ "google-chrome-stable",
38856
+ "chromium",
38857
+ "chromium-browser"
38858
+ ]
38859
+ }, { wsl: {
38860
+ ia32: "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",
38861
+ x64: ["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe", "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]
38862
+ } }));
38863
+ defineLazyProperty(apps, "brave", () => detectPlatformBinary({
38864
+ darwin: "brave browser",
38865
+ win32: "brave",
38866
+ linux: ["brave-browser", "brave"]
38867
+ }, { wsl: {
38868
+ ia32: "/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe",
38869
+ x64: ["/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe", "/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"]
38870
+ } }));
38871
+ defineLazyProperty(apps, "firefox", () => detectPlatformBinary({
38872
+ darwin: "firefox",
38873
+ win32: String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`,
38874
+ linux: "firefox"
38875
+ }, { wsl: "/mnt/c/Program Files/Mozilla Firefox/firefox.exe" }));
38876
+ defineLazyProperty(apps, "edge", () => detectPlatformBinary({
38877
+ darwin: "microsoft edge",
38878
+ win32: "msedge",
38879
+ linux: ["microsoft-edge", "microsoft-edge-dev"]
38880
+ }, { wsl: "/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe" }));
38881
+ defineLazyProperty(apps, "safari", () => detectPlatformBinary({ darwin: "Safari" }));
38882
+ var open_default = open;
38883
+
38884
+ //#endregion
38885
+ //#region src/cli/commands/project/dashboard.ts
38886
+ async function openDashboard() {
38887
+ await loadProjectEnv();
38888
+ const projectId = getBase44ClientId();
38889
+ if (!projectId) throw new Error("App not configured. BASE44_CLIENT_ID environment variable is required. Set it in your .env.local file.");
38890
+ const dashboardUrl = `${getBase44ApiUrl()}/apps/${projectId}/editor/workspace/overview`;
38891
+ await open_default(dashboardUrl);
38892
+ return { outroMessage: `Dashboard opened at ${dashboardUrl}` };
38893
+ }
38894
+ const dashboardCommand = new Command("dashboard").description("Open the app dashboard in your browser").action(async () => {
38895
+ await runCommand(openDashboard, { requireAuth: true });
38896
+ });
38897
+
38375
38898
  //#endregion
38376
38899
  //#region src/cli/commands/site/deploy.ts
38377
38900
  async function deployAction(options) {
@@ -38405,6 +38928,7 @@ program.addCommand(loginCommand);
38405
38928
  program.addCommand(whoamiCommand);
38406
38929
  program.addCommand(logoutCommand);
38407
38930
  program.addCommand(createCommand);
38931
+ program.addCommand(dashboardCommand);
38408
38932
  program.addCommand(entitiesPushCommand);
38409
38933
  program.addCommand(functionsDeployCommand);
38410
38934
  program.addCommand(siteDeployCommand);