rolldown 1.0.0-beta.3-commit.7b515c0 → 1.0.0-beta.3-commit.306867e

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.
package/dist/cjs/cli.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
3
- const require_src = require('../shared/src-BJkjhibP.cjs');
4
- const require_binding = require('../shared/binding-orkvONpS.cjs');
3
+ const require_src = require('../shared/src-BL6ftzBh.cjs');
4
+ const require_binding = require('../shared/binding-B9_Bsc0_.cjs');
5
5
  const node_process = require_chunk.__toESM(require("node:process"));
6
6
  const node_path = require_chunk.__toESM(require("node:path"));
7
7
  const node_fs = require_chunk.__toESM(require("node:fs"));
@@ -230,7 +230,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
230
230
  for (const key in baseObject) {
231
231
  if (key === "__proto__" || key === "constructor") continue;
232
232
  const value = baseObject[key];
233
- if (value === null || value === undefined) continue;
233
+ if (value === null || value === void 0) continue;
234
234
  if (merger && merger(object, key, value, namespace)) continue;
235
235
  if (Array.isArray(value) && Array.isArray(object[key])) object[key] = [...value, ...object[key]];
236
236
  else if (isPlainObject$1(value) && isPlainObject$1(object[key])) object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
@@ -552,9 +552,9 @@ var Consola = class Consola {
552
552
  }
553
553
  };
554
554
  function _normalizeLogLevel(input, types = {}, defaultLevel = 3) {
555
- if (input === undefined) return defaultLevel;
555
+ if (input === void 0) return defaultLevel;
556
556
  if (typeof input === "number") return input;
557
- if (types[input] && types[input].level !== undefined) return types[input].level;
557
+ if (types[input] && types[input].level !== void 0) return types[input].level;
558
558
  return defaultLevel;
559
559
  }
560
560
  Consola.prototype.add = Consola.prototype.addReporter;
@@ -649,7 +649,7 @@ function clearBleed(index, string, open, close, replace) {
649
649
  return index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
650
650
  }
651
651
  function filterEmpty(open, close, replace = open, at = open.length + 1) {
652
- return (string) => string || !(string === "" || string === undefined) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
652
+ return (string) => string || !(string === "" || string === void 0) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
653
653
  }
654
654
  function init(open, close, replace) {
655
655
  return filterEmpty(`\x1B[${open}m`, `\x1B[${close}m`, replace);
@@ -981,7 +981,7 @@ u?.name || "";
981
981
  function ansiRegex({ onlyFirst = false } = {}) {
982
982
  const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
983
983
  const pattern = [`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`, "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
984
- return new RegExp(pattern, onlyFirst ? undefined : "g");
984
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
985
985
  }
986
986
  const regex = ansiRegex();
987
987
  function stripAnsi(string) {
@@ -1086,7 +1086,7 @@ ${indent}`);
1086
1086
  formatLogObj(logObj, opts) {
1087
1087
  const [message, ...additional] = this.formatArgs(logObj.args, opts).split("\n");
1088
1088
  if (logObj.type === "box") return box(characterFormat(message + (additional.length > 0 ? "\n" + additional.join("\n") : "")), {
1089
- title: logObj.title ? characterFormat(logObj.title) : undefined,
1089
+ title: logObj.title ? characterFormat(logObj.title) : void 0,
1090
1090
  style: logObj.style
1091
1091
  });
1092
1092
  const date = this.formatDate(logObj.date, opts);
@@ -1125,7 +1125,7 @@ function createConsola(options$1 = {}) {
1125
1125
  stdout: process.stdout,
1126
1126
  stderr: process.stderr,
1127
1127
  prompt: (...args) => Promise.resolve().then(function() {
1128
- return require("../shared/prompt-B7tq3GL9.cjs");
1128
+ return require("../shared/prompt-Dh7e4K1i.cjs");
1129
1129
  }).then((m) => m.prompt(...args)),
1130
1130
  reporters: options$1.reporters || [options$1.fancy ?? !(T || A) ? new FancyReporter() : new BasicReporter()],
1131
1131
  ...options$1
@@ -1471,7 +1471,7 @@ function getSchemaType(schema) {
1471
1471
  return "object";
1472
1472
  }
1473
1473
  function flattenSchema(schema, base = {}, parent = "") {
1474
- if (schema === undefined) return base;
1474
+ if (schema === void 0) return base;
1475
1475
  for (const [k, value] of Object.entries(schema)) {
1476
1476
  const key = parent ? `${parent}.${k}` : k;
1477
1477
  if (getSchemaType(value) === "object") if ("properties" in value) flattenSchema(value.properties, base, key);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
3
- const require_src = require('../shared/src-BJkjhibP.cjs');
4
- const require_binding = require('../shared/binding-orkvONpS.cjs');
3
+ const require_src = require('../shared/src-BL6ftzBh.cjs');
4
+ const require_binding = require('../shared/binding-B9_Bsc0_.cjs');
5
5
  const node_url = require_chunk.__toESM(require("node:url"));
6
6
 
7
7
  //#region src/plugin/parallel-plugin.ts
@@ -26,7 +26,7 @@ const experimental_scan = async (input) => {
26
26
  //#endregion
27
27
  //#region src/builtin-plugin/transform-plugin.ts
28
28
  function normalizeEcmaTransformPluginConfig(config) {
29
- if (!config) return undefined;
29
+ if (!config) return void 0;
30
30
  let normalizedConfig = {
31
31
  ...config,
32
32
  exclude: require_src.normalizedStringOrRegex(config.exclude),
@@ -1,5 +1,5 @@
1
- const require_src = require('../shared/src-BJkjhibP.cjs');
2
- require('../shared/binding-orkvONpS.cjs');
1
+ const require_src = require('../shared/src-BL6ftzBh.cjs');
2
+ require('../shared/binding-B9_Bsc0_.cjs');
3
3
 
4
4
  exports.VERSION = require_src.VERSION
5
5
  exports.build = require_src.build
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
3
- const require_src = require('../shared/src-BJkjhibP.cjs');
4
- const require_binding = require('../shared/binding-orkvONpS.cjs');
3
+ const require_src = require('../shared/src-BL6ftzBh.cjs');
4
+ const require_binding = require('../shared/binding-B9_Bsc0_.cjs');
5
5
  const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
6
6
 
7
7
  //#region src/parallel-plugin-worker.ts
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const require_binding = require('../shared/binding-orkvONpS.cjs');
2
+ const require_binding = require('../shared/binding-B9_Bsc0_.cjs');
3
3
 
4
4
  //#region src/parse-ast-index.ts
5
5
  function wrap(result, sourceText) {
package/dist/esm/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { colors } from "../shared/binding-l7VLSKnB.mjs";
2
- import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-BW4Ul1I_.mjs";
1
+ import { colors } from "../shared/binding-_xN4hdfO.mjs";
2
+ import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-BGJCTYiA.mjs";
3
3
  import process$1, { cwd } from "node:process";
4
4
  import path, { sep } from "node:path";
5
5
  import fs from "node:fs";
@@ -228,7 +228,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
228
228
  for (const key in baseObject) {
229
229
  if (key === "__proto__" || key === "constructor") continue;
230
230
  const value = baseObject[key];
231
- if (value === null || value === undefined) continue;
231
+ if (value === null || value === void 0) continue;
232
232
  if (merger && merger(object, key, value, namespace)) continue;
233
233
  if (Array.isArray(value) && Array.isArray(object[key])) object[key] = [...value, ...object[key]];
234
234
  else if (isPlainObject$1(value) && isPlainObject$1(object[key])) object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
@@ -550,9 +550,9 @@ var Consola = class Consola {
550
550
  }
551
551
  };
552
552
  function _normalizeLogLevel(input, types = {}, defaultLevel = 3) {
553
- if (input === undefined) return defaultLevel;
553
+ if (input === void 0) return defaultLevel;
554
554
  if (typeof input === "number") return input;
555
- if (types[input] && types[input].level !== undefined) return types[input].level;
555
+ if (types[input] && types[input].level !== void 0) return types[input].level;
556
556
  return defaultLevel;
557
557
  }
558
558
  Consola.prototype.add = Consola.prototype.addReporter;
@@ -647,7 +647,7 @@ function clearBleed(index, string, open, close, replace) {
647
647
  return index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
648
648
  }
649
649
  function filterEmpty(open, close, replace = open, at = open.length + 1) {
650
- return (string) => string || !(string === "" || string === undefined) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
650
+ return (string) => string || !(string === "" || string === void 0) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
651
651
  }
652
652
  function init(open, close, replace) {
653
653
  return filterEmpty(`\x1B[${open}m`, `\x1B[${close}m`, replace);
@@ -979,7 +979,7 @@ u?.name || "";
979
979
  function ansiRegex({ onlyFirst = false } = {}) {
980
980
  const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
981
981
  const pattern = [`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`, "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
982
- return new RegExp(pattern, onlyFirst ? undefined : "g");
982
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
983
983
  }
984
984
  const regex = ansiRegex();
985
985
  function stripAnsi(string) {
@@ -1084,7 +1084,7 @@ ${indent}`);
1084
1084
  formatLogObj(logObj, opts) {
1085
1085
  const [message, ...additional] = this.formatArgs(logObj.args, opts).split("\n");
1086
1086
  if (logObj.type === "box") return box(characterFormat(message + (additional.length > 0 ? "\n" + additional.join("\n") : "")), {
1087
- title: logObj.title ? characterFormat(logObj.title) : undefined,
1087
+ title: logObj.title ? characterFormat(logObj.title) : void 0,
1088
1088
  style: logObj.style
1089
1089
  });
1090
1090
  const date = this.formatDate(logObj.date, opts);
@@ -1122,7 +1122,7 @@ function createConsola(options$1 = {}) {
1122
1122
  defaults: { level },
1123
1123
  stdout: process.stdout,
1124
1124
  stderr: process.stderr,
1125
- prompt: (...args) => import("../shared/prompt-Nfm4Xz36.mjs").then((m) => m.prompt(...args)),
1125
+ prompt: (...args) => import("../shared/prompt-zTLhvFXo.mjs").then((m) => m.prompt(...args)),
1126
1126
  reporters: options$1.reporters || [options$1.fancy ?? !(T || A) ? new FancyReporter() : new BasicReporter()],
1127
1127
  ...options$1
1128
1128
  });
@@ -1467,7 +1467,7 @@ function getSchemaType(schema) {
1467
1467
  return "object";
1468
1468
  }
1469
1469
  function flattenSchema(schema, base = {}, parent = "") {
1470
- if (schema === undefined) return base;
1470
+ if (schema === void 0) return base;
1471
1471
  for (const [k, value] of Object.entries(schema)) {
1472
1472
  const key = parent ? `${parent}.${k}` : k;
1473
1473
  if (getSchemaType(value) === "object") if ("properties" in value) flattenSchema(value.properties, base, key);
@@ -1,5 +1,5 @@
1
- import { import_binding } from "../shared/binding-l7VLSKnB.mjs";
2
- import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-BW4Ul1I_.mjs";
1
+ import { import_binding } from "../shared/binding-_xN4hdfO.mjs";
2
+ import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-BGJCTYiA.mjs";
3
3
  import { pathToFileURL } from "node:url";
4
4
 
5
5
  //#region src/plugin/parallel-plugin.ts
@@ -24,7 +24,7 @@ const experimental_scan = async (input) => {
24
24
  //#endregion
25
25
  //#region src/builtin-plugin/transform-plugin.ts
26
26
  function normalizeEcmaTransformPluginConfig(config) {
27
- if (!config) return undefined;
27
+ if (!config) return void 0;
28
28
  let normalizedConfig = {
29
29
  ...config,
30
30
  exclude: normalizedStringOrRegex(config.exclude),
@@ -1,4 +1,4 @@
1
- import "../shared/binding-l7VLSKnB.mjs";
2
- import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-BW4Ul1I_.mjs";
1
+ import "../shared/binding-_xN4hdfO.mjs";
2
+ import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-BGJCTYiA.mjs";
3
3
 
4
4
  export { VERSION, build, defineConfig, rolldown, watch };
@@ -1,5 +1,5 @@
1
- import { import_binding } from "../shared/binding-l7VLSKnB.mjs";
2
- import { PluginContextData, bindingifyPlugin } from "../shared/src-BW4Ul1I_.mjs";
1
+ import { import_binding } from "../shared/binding-_xN4hdfO.mjs";
2
+ import { PluginContextData, bindingifyPlugin } from "../shared/src-BGJCTYiA.mjs";
3
3
  import { parentPort, workerData } from "node:worker_threads";
4
4
 
5
5
  //#region src/parallel-plugin-worker.ts
@@ -1,4 +1,4 @@
1
- import { error, getCodeFrame, import_binding, locate, logParseError } from "../shared/binding-l7VLSKnB.mjs";
1
+ import { error, getCodeFrame, import_binding, locate, logParseError } from "../shared/binding-_xN4hdfO.mjs";
2
2
 
3
3
  //#region src/parse-ast-index.ts
4
4
  function wrap(result, sourceText) {
@@ -72,7 +72,7 @@ function getLocator(source, options = {}) {
72
72
  */
73
73
  function locator(search, index) {
74
74
  if (typeof search === "string") search = source.indexOf(search, index ?? 0);
75
- if (search === -1) return undefined;
75
+ if (search === -1) return void 0;
76
76
  let range = ranges[i];
77
77
  const d = search >= range.end ? 1 : -1;
78
78
  while (range) {
@@ -103,7 +103,7 @@ const isCI = "CI" in env$1 && ("GITHUB_ACTIONS" in env$1 || "GITLAB_CI" in env$1
103
103
  const isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
104
104
  const replaceClose = (index, string, close, replace, head = string.substring(0, index) + replace, tail = string.substring(index + close.length), next = tail.indexOf(close)) => head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
105
105
  const clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
106
- const filterEmpty = (open, close, replace = open, at = open.length + 1) => (string) => string || !(string === "" || string === undefined) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
106
+ const filterEmpty = (open, close, replace = open, at = open.length + 1) => (string) => string || !(string === "" || string === void 0) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
107
107
  const init = (open, close, replace) => filterEmpty(`\x1b[${open}m`, `\x1b[${close}m`, replace);
108
108
  const colors$1 = {
109
109
  reset: init(0, 0),
@@ -245,7 +245,7 @@ function augmentCodeLocation(properties, pos, source, id) {
245
245
  line
246
246
  };
247
247
  }
248
- if (properties.frame === undefined) {
248
+ if (properties.frame === void 0) {
249
249
  const { line, column } = properties.loc;
250
250
  properties.frame = getCodeFrame(source, line, column);
251
251
  }
@@ -99,7 +99,7 @@ function getLocator(source, options = {}) {
99
99
  */
100
100
  function locator(search, index) {
101
101
  if (typeof search === "string") search = source.indexOf(search, index ?? 0);
102
- if (search === -1) return undefined;
102
+ if (search === -1) return void 0;
103
103
  let range = ranges[i];
104
104
  const d = search >= range.end ? 1 : -1;
105
105
  while (range) {
@@ -130,7 +130,7 @@ const isCI = "CI" in env$1 && ("GITHUB_ACTIONS" in env$1 || "GITLAB_CI" in env$1
130
130
  const isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
131
131
  const replaceClose = (index, string, close, replace, head = string.substring(0, index) + replace, tail = string.substring(index + close.length), next = tail.indexOf(close)) => head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
132
132
  const clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
133
- const filterEmpty = (open, close, replace = open, at = open.length + 1) => (string) => string || !(string === "" || string === undefined) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
133
+ const filterEmpty = (open, close, replace = open, at = open.length + 1) => (string) => string || !(string === "" || string === void 0) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
134
134
  const init = (open, close, replace) => filterEmpty(`\x1b[${open}m`, `\x1b[${close}m`, replace);
135
135
  const colors$1 = {
136
136
  reset: init(0, 0),
@@ -272,7 +272,7 @@ function augmentCodeLocation(properties, pos, source, id) {
272
272
  line
273
273
  };
274
274
  }
275
- if (properties.frame === undefined) {
275
+ if (properties.frame === void 0) {
276
276
  const { line, column } = properties.loc;
277
277
  properties.frame = getCodeFrame(source, line, column);
278
278
  }
@@ -144,7 +144,7 @@ var picocolorsExports = /*@__PURE__*/ requirePicocolors();
144
144
  const e = /*@__PURE__*/ getDefaultExportFromCjs(picocolorsExports);
145
145
  function J({ onlyFirst: t = false } = {}) {
146
146
  const F = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
147
- return new RegExp(F, t ? undefined : "g");
147
+ return new RegExp(F, t ? void 0 : "g");
148
148
  }
149
149
  const Q = J();
150
150
  function T(t) {
@@ -387,10 +387,10 @@ const iD = sD(), v = new Set(["\x1B", "›"]), CD = 39, w = "\x07", W = "[", rD =
387
387
  for (const [E$1, a$1] of o.entries()) {
388
388
  if (e$1 += a$1, v.has(a$1)) {
389
389
  const { groups: B$1 } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${y$1}(?<uri>.*)${w})`).exec(o.slice(E$1).join("")) || { groups: {} };
390
- if (B$1.code !== undefined) {
390
+ if (B$1.code !== void 0) {
391
391
  const p$1 = Number.parseFloat(B$1.code);
392
- s = p$1 === CD ? undefined : p$1;
393
- } else B$1.uri !== undefined && (i = B$1.uri.length === 0 ? undefined : B$1.uri);
392
+ s = p$1 === CD ? void 0 : p$1;
393
+ } else B$1.uri !== void 0 && (i = B$1.uri.length === 0 ? void 0 : B$1.uri);
394
394
  }
395
395
  const n = iD.codes.get(Number(s));
396
396
  o[E$1 + 1] === `
@@ -426,7 +426,7 @@ const aD = [
426
426
  };
427
427
  function k$1(t, u$1) {
428
428
  if (typeof t == "string") return c.aliases.get(t) === u$1;
429
- for (const F of t) if (F !== undefined && k$1(F, u$1)) return true;
429
+ for (const F of t) if (F !== void 0 && k$1(F, u$1)) return true;
430
430
  return false;
431
431
  }
432
432
  function lD(t, u$1) {
@@ -493,7 +493,7 @@ var x = class {
493
493
  tabSize: 2,
494
494
  prompt: "",
495
495
  escapeCodeTimeout: 50
496
- }), node_readline.default.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== undefined && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
496
+ }), node_readline.default.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
497
497
  this.output.write(srcExports.cursor.show), this.output.off("resize", this.render), d(this.input, false), u$1(this.value);
498
498
  }), this.once("cancel", () => {
499
499
  this.output.write(srcExports.cursor.show), this.output.off("resize", this.render), d(this.input, false), u$1(S$1);
@@ -516,7 +516,7 @@ var x = class {
516
516
  }
517
517
  close() {
518
518
  this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
519
- `), d(this.input, false), this.rl?.close(), this.rl = undefined, this.emit(`${this.state}`, this.value), this.unsubscribe();
519
+ `), d(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
520
520
  }
521
521
  restoreCursor() {
522
522
  const u$1 = G$1(this._prevFrame, process.stdout.columns, { hard: true }).split(`
@@ -813,7 +813,7 @@ async function prompt(message, opts = {}) {
813
813
  if (Error.captureStackTrace) Error.captureStackTrace(error, prompt);
814
814
  throw error;
815
815
  }
816
- case "undefined": return undefined;
816
+ case "undefined": return void 0;
817
817
  case "null": return null;
818
818
  case "symbol": return kCancel;
819
819
  default:
@@ -141,7 +141,7 @@ var picocolorsExports = /*@__PURE__*/ requirePicocolors();
141
141
  const e = /*@__PURE__*/ getDefaultExportFromCjs(picocolorsExports);
142
142
  function J({ onlyFirst: t = false } = {}) {
143
143
  const F = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
144
- return new RegExp(F, t ? undefined : "g");
144
+ return new RegExp(F, t ? void 0 : "g");
145
145
  }
146
146
  const Q = J();
147
147
  function T(t) {
@@ -384,10 +384,10 @@ const iD = sD(), v = new Set(["\x1B", "›"]), CD = 39, w = "\x07", W = "[", rD =
384
384
  for (const [E$1, a$1] of o.entries()) {
385
385
  if (e$1 += a$1, v.has(a$1)) {
386
386
  const { groups: B$1 } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${y$1}(?<uri>.*)${w})`).exec(o.slice(E$1).join("")) || { groups: {} };
387
- if (B$1.code !== undefined) {
387
+ if (B$1.code !== void 0) {
388
388
  const p = Number.parseFloat(B$1.code);
389
- s = p === CD ? undefined : p;
390
- } else B$1.uri !== undefined && (i = B$1.uri.length === 0 ? undefined : B$1.uri);
389
+ s = p === CD ? void 0 : p;
390
+ } else B$1.uri !== void 0 && (i = B$1.uri.length === 0 ? void 0 : B$1.uri);
391
391
  }
392
392
  const n = iD.codes.get(Number(s));
393
393
  o[E$1 + 1] === `
@@ -423,7 +423,7 @@ const aD = [
423
423
  };
424
424
  function k$1(t, u$1) {
425
425
  if (typeof t == "string") return c.aliases.get(t) === u$1;
426
- for (const F of t) if (F !== undefined && k$1(F, u$1)) return true;
426
+ for (const F of t) if (F !== void 0 && k$1(F, u$1)) return true;
427
427
  return false;
428
428
  }
429
429
  function lD(t, u$1) {
@@ -490,7 +490,7 @@ var x = class {
490
490
  tabSize: 2,
491
491
  prompt: "",
492
492
  escapeCodeTimeout: 50
493
- }), f.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== undefined && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
493
+ }), f.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
494
494
  this.output.write(srcExports.cursor.show), this.output.off("resize", this.render), d(this.input, false), u$1(this.value);
495
495
  }), this.once("cancel", () => {
496
496
  this.output.write(srcExports.cursor.show), this.output.off("resize", this.render), d(this.input, false), u$1(S$1);
@@ -513,7 +513,7 @@ var x = class {
513
513
  }
514
514
  close() {
515
515
  this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
516
- `), d(this.input, false), this.rl?.close(), this.rl = undefined, this.emit(`${this.state}`, this.value), this.unsubscribe();
516
+ `), d(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
517
517
  }
518
518
  restoreCursor() {
519
519
  const u$1 = G$1(this._prevFrame, process.stdout.columns, { hard: true }).split(`
@@ -810,7 +810,7 @@ async function prompt(message, opts = {}) {
810
810
  if (Error.captureStackTrace) Error.captureStackTrace(error, prompt);
811
811
  throw error;
812
812
  }
813
- case "undefined": return undefined;
813
+ case "undefined": return void 0;
814
814
  case "null": return null;
815
815
  case "symbol": return kCancel;
816
816
  default: