create-rsbuild 0.4.8 → 0.4.9

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/index.js +151 -141
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
9
9
  var __getProtoOf = Object.getPrototypeOf;
10
10
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
11
  var __require = /* @__PURE__ */ ((x4) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x4, {
12
- get: (a2, b4) => (typeof require !== "undefined" ? require : a2)[b4]
12
+ get: (a3, b4) => (typeof require !== "undefined" ? require : a3)[b4]
13
13
  }) : x4)(function(x4) {
14
14
  if (typeof require !== "undefined")
15
15
  return require.apply(this, arguments);
@@ -38,12 +38,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
38
38
  mod
39
39
  ));
40
40
 
41
- // ../../node_modules/.pnpm/@modern-js+module-tools@2.47.1_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
41
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.48.0/node_modules/@modern-js/module-tools/shims/esm.js
42
42
  import { fileURLToPath } from "url";
43
43
  import path from "path";
44
44
  var getFilename, getDirname, __dirname;
45
45
  var init_esm = __esm({
46
- "../../node_modules/.pnpm/@modern-js+module-tools@2.47.1_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js"() {
46
+ "../../node_modules/.pnpm/@modern-js+module-tools@2.48.0/node_modules/@modern-js/module-tools/shims/esm.js"() {
47
47
  "use strict";
48
48
  getFilename = () => fileURLToPath(import.meta.url);
49
49
  getDirname = () => path.dirname(getFilename());
@@ -259,10 +259,10 @@ var G = (r2) => !/[\s\n]/.test(r2);
259
259
  var w = (r2) => {
260
260
  if (b < 3)
261
261
  return b === 2 ? x(d(r2)) : r2;
262
- let n = [...r2], i = n.filter(G).length, l2 = y[0], e2 = y[1], t = y[2], s = (M[0] - l2) / i, p2 = (M[1] - e2) / i, f2 = (M[2] - t) / i, a2 = "";
262
+ let n = [...r2], i = n.filter(G).length, l2 = y[0], e2 = y[1], t = y[2], s = (M[0] - l2) / i, p = (M[1] - e2) / i, f2 = (M[2] - t) / i, a3 = "";
263
263
  for (let u of n)
264
- G(u) && (l2 += s, e2 += p2, t += f2), a2 += `\x1B[38;2;${Math.round(l2)};${Math.round(e2)};${Math.round(t)}m${u}\x1B[39m`;
265
- return x(a2);
264
+ G(u) && (l2 += s, e2 += p, t += f2), a3 += `\x1B[38;2;${Math.round(l2)};${Math.round(e2)};${Math.round(t)}m${u}\x1B[39m`;
265
+ return x(a3);
266
266
  };
267
267
  var v = { error: 0, warn: 1, info: 2, log: 3, verbose: 4 };
268
268
  var E = { error: { label: "error", level: "error", color: N }, warn: { label: "warn", level: "warn", color: F }, info: { label: "info", level: "info", color: d }, start: { label: "start", level: "info", color: d }, ready: { label: "ready", level: "info", color: R }, success: { label: "success", level: "info", color: R }, log: { level: "log" }, debug: { label: "debug", level: "verbose", color: $ } };
@@ -272,21 +272,21 @@ var h = (r2 = {}) => {
272
272
  return;
273
273
  if (t == null)
274
274
  return console.log();
275
- let p2 = E[e2], f2 = "", a2 = "";
276
- if ("label" in p2 && (f2 = (p2.label || "").padEnd(7), f2 = x(p2.color ? p2.color(f2) : f2)), t instanceof Error)
275
+ let p = E[e2], f2 = "", a3 = "";
276
+ if ("label" in p && (f2 = (p.label || "").padEnd(7), f2 = x(p.color ? p.color(f2) : f2)), t instanceof Error)
277
277
  if (t.stack) {
278
278
  let [u, ...m2] = t.stack.split(`
279
279
  `);
280
- u.startsWith("Error: ") && (u = u.slice(7)), a2 = `${u}
280
+ u.startsWith("Error: ") && (u = u.slice(7)), a3 = `${u}
281
281
  ${C(m2.join(`
282
282
  `))}`;
283
283
  } else
284
- a2 = t.message;
284
+ a3 = t.message;
285
285
  else
286
- p2.level === "error" && typeof t == "string" ? a2 = t.split(`
286
+ p.level === "error" && typeof t == "string" ? a3 = t.split(`
287
287
  `).map((m2) => S(m2) ? C(m2) : m2).join(`
288
- `) : a2 = `${t}`;
289
- console.log(f2.length ? `${f2} ${a2}` : a2, ...s);
288
+ `) : a3 = `${t}`;
289
+ console.log(f2.length ? `${f2} ${a3}` : a3, ...s);
290
290
  }, l2 = { greet: (e2) => i("log", w(e2)) };
291
291
  return Object.keys(E).forEach((e2) => {
292
292
  l2[e2] = (...t) => i(e2, ...t);
@@ -301,29 +301,27 @@ var ar = h();
301
301
  // ../../node_modules/.pnpm/@clack+prompts@0.7.0/node_modules/@clack/prompts/dist/index.mjs
302
302
  init_esm();
303
303
 
304
- // ../../node_modules/.pnpm/@clack+core@0.3.3/node_modules/@clack/core/dist/index.mjs
304
+ // ../../node_modules/.pnpm/@clack+core@0.3.4/node_modules/@clack/core/dist/index.mjs
305
305
  init_esm();
306
306
  var import_sisteransi = __toESM(require_src(), 1);
307
307
  var import_picocolors = __toESM(require_picocolors(), 1);
308
- import { stdin as k2, stdout as y2 } from "process";
308
+ import { stdin as $2, stdout as k2 } from "process";
309
309
  import * as f from "readline";
310
- import S2 from "readline";
311
- import { WriteStream as O2 } from "tty";
312
- function z({ onlyFirst: t = false } = {}) {
310
+ import _2 from "readline";
311
+ import { WriteStream as U } from "tty";
312
+ function q({ onlyFirst: t = false } = {}) {
313
313
  const u = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
314
314
  return new RegExp(u, t ? void 0 : "g");
315
315
  }
316
- function $2(t) {
316
+ function S2(t) {
317
317
  if (typeof t != "string")
318
318
  throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
319
- return t.replace(z(), "");
319
+ return t.replace(q(), "");
320
320
  }
321
- var m = {};
322
- var G2 = { get exports() {
323
- return m;
324
- }, set exports(t) {
325
- m = t;
326
- } };
321
+ function j2(t) {
322
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
323
+ }
324
+ var M2 = { exports: {} };
327
325
  (function(t) {
328
326
  var u = {};
329
327
  t.exports = u, u.eastAsianWidth = function(e2) {
@@ -342,33 +340,35 @@ var G2 = { get exports() {
342
340
  return C3;
343
341
  }, u.slice = function(e2, s, C3) {
344
342
  textLen = u.length(e2), s = s || 0, C3 = C3 || 1, s < 0 && (s = textLen + s), C3 < 0 && (C3 = textLen + C3);
345
- for (var D2 = "", i = 0, o3 = F2(e2), E3 = 0; E3 < o3.length; E3++) {
346
- var a2 = o3[E3], n = u.length(a2);
347
- if (i >= s - (n == 2 ? 1 : 0))
348
- if (i + n <= C3)
349
- D2 += a2;
343
+ for (var D2 = "", i = 0, n = F2(e2), E3 = 0; E3 < n.length; E3++) {
344
+ var h3 = n[E3], o3 = u.length(h3);
345
+ if (i >= s - (o3 == 2 ? 1 : 0))
346
+ if (i + o3 <= C3)
347
+ D2 += h3;
350
348
  else
351
349
  break;
352
- i += n;
350
+ i += o3;
353
351
  }
354
352
  return D2;
355
353
  };
356
- })(G2);
357
- var K = m;
358
- var Y2 = function() {
354
+ })(M2);
355
+ var J = M2.exports;
356
+ var Q = j2(J);
357
+ var X = function() {
359
358
  return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
360
359
  };
361
- function c2(t, u = {}) {
362
- if (typeof t != "string" || t.length === 0 || (u = { ambiguousIsNarrow: true, ...u }, t = $2(t), t.length === 0))
360
+ var DD = j2(X);
361
+ function A2(t, u = {}) {
362
+ if (typeof t != "string" || t.length === 0 || (u = { ambiguousIsNarrow: true, ...u }, t = S2(t), t.length === 0))
363
363
  return 0;
364
- t = t.replace(Y2(), " ");
364
+ t = t.replace(DD(), " ");
365
365
  const F2 = u.ambiguousIsNarrow ? 1 : 2;
366
366
  let e2 = 0;
367
367
  for (const s of t) {
368
368
  const C3 = s.codePointAt(0);
369
369
  if (C3 <= 31 || C3 >= 127 && C3 <= 159 || C3 >= 768 && C3 <= 879)
370
370
  continue;
371
- switch (K.eastAsianWidth(s)) {
371
+ switch (Q.eastAsianWidth(s)) {
372
372
  case "F":
373
373
  case "W":
374
374
  e2 += 2;
@@ -382,23 +382,23 @@ function c2(t, u = {}) {
382
382
  }
383
383
  return e2;
384
384
  }
385
- var v2 = 10;
386
- var M2 = (t = 0) => (u) => `\x1B[${u + t}m`;
387
- var L2 = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`;
388
- var T2 = (t = 0) => (u, F2, e2) => `\x1B[${38 + t};2;${u};${F2};${e2}m`;
385
+ var m = 10;
386
+ var T2 = (t = 0) => (u) => `\x1B[${u + t}m`;
387
+ var P2 = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`;
388
+ var W = (t = 0) => (u, F2, e2) => `\x1B[${38 + t};2;${u};${F2};${e2}m`;
389
389
  var r = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
390
390
  Object.keys(r.modifier);
391
- var Z = Object.keys(r.color);
392
- var H = Object.keys(r.bgColor);
393
- [...Z, ...H];
394
- function U() {
391
+ var uD = Object.keys(r.color);
392
+ var FD = Object.keys(r.bgColor);
393
+ [...uD, ...FD];
394
+ function tD() {
395
395
  const t = /* @__PURE__ */ new Map();
396
396
  for (const [u, F2] of Object.entries(r)) {
397
397
  for (const [e2, s] of Object.entries(F2))
398
398
  r[e2] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, F2[e2] = r[e2], t.set(s[0], s[1]);
399
399
  Object.defineProperty(r, u, { value: F2, enumerable: false });
400
400
  }
401
- return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = M2(), r.color.ansi256 = L2(), r.color.ansi16m = T2(), r.bgColor.ansi = M2(v2), r.bgColor.ansi256 = L2(v2), r.bgColor.ansi16m = T2(v2), Object.defineProperties(r, { rgbToAnsi256: { value: (u, F2, e2) => u === F2 && F2 === e2 ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(F2 / 255 * 5) + Math.round(e2 / 255 * 5), enumerable: false }, hexToRgb: { value: (u) => {
401
+ return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = T2(), r.color.ansi256 = P2(), r.color.ansi16m = W(), r.bgColor.ansi = T2(m), r.bgColor.ansi256 = P2(m), r.bgColor.ansi16m = W(m), Object.defineProperties(r, { rgbToAnsi256: { value: (u, F2, e2) => u === F2 && F2 === e2 ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(F2 / 255 * 5) + Math.round(e2 / 255 * 5), enumerable: false }, hexToRgb: { value: (u) => {
402
402
  const F2 = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));
403
403
  if (!F2)
404
404
  return [0, 0, 0];
@@ -426,90 +426,93 @@ function U() {
426
426
  return C3 === 2 && (D2 += 60), D2;
427
427
  }, enumerable: false }, rgbToAnsi: { value: (u, F2, e2) => r.ansi256ToAnsi(r.rgbToAnsi256(u, F2, e2)), enumerable: false }, hexToAnsi: { value: (u) => r.ansi256ToAnsi(r.hexToAnsi256(u)), enumerable: false } }), r;
428
428
  }
429
- var q = U();
430
- var p = /* @__PURE__ */ new Set(["\x1B", "›"]);
431
- var J = 39;
429
+ var eD = tD();
430
+ var g2 = /* @__PURE__ */ new Set(["\x1B", "›"]);
431
+ var sD = 39;
432
432
  var b2 = "\x07";
433
- var W = "[";
434
- var Q = "]";
433
+ var O2 = "[";
434
+ var CD = "]";
435
435
  var I2 = "m";
436
- var w2 = `${Q}8;;`;
437
- var N2 = (t) => `${p.values().next().value}${W}${t}${I2}`;
438
- var j2 = (t) => `${p.values().next().value}${w2}${t}${b2}`;
439
- var X = (t) => t.split(" ").map((u) => c2(u));
440
- var _2 = (t, u, F2) => {
436
+ var w2 = `${CD}8;;`;
437
+ var N2 = (t) => `${g2.values().next().value}${O2}${t}${I2}`;
438
+ var L2 = (t) => `${g2.values().next().value}${w2}${t}${b2}`;
439
+ var iD = (t) => t.split(" ").map((u) => A2(u));
440
+ var y2 = (t, u, F2) => {
441
441
  const e2 = [...u];
442
- let s = false, C3 = false, D2 = c2($2(t[t.length - 1]));
443
- for (const [i, o3] of e2.entries()) {
444
- const E3 = c2(o3);
445
- if (D2 + E3 <= F2 ? t[t.length - 1] += o3 : (t.push(o3), D2 = 0), p.has(o3) && (s = true, C3 = e2.slice(i + 1).join("").startsWith(w2)), s) {
446
- C3 ? o3 === b2 && (s = false, C3 = false) : o3 === I2 && (s = false);
442
+ let s = false, C3 = false, D2 = A2(S2(t[t.length - 1]));
443
+ for (const [i, n] of e2.entries()) {
444
+ const E3 = A2(n);
445
+ if (D2 + E3 <= F2 ? t[t.length - 1] += n : (t.push(n), D2 = 0), g2.has(n) && (s = true, C3 = e2.slice(i + 1).join("").startsWith(w2)), s) {
446
+ C3 ? n === b2 && (s = false, C3 = false) : n === I2 && (s = false);
447
447
  continue;
448
448
  }
449
449
  D2 += E3, D2 === F2 && i < e2.length - 1 && (t.push(""), D2 = 0);
450
450
  }
451
451
  !D2 && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
452
452
  };
453
- var DD = (t) => {
453
+ var rD = (t) => {
454
454
  const u = t.split(" ");
455
455
  let F2 = u.length;
456
- for (; F2 > 0 && !(c2(u[F2 - 1]) > 0); )
456
+ for (; F2 > 0 && !(A2(u[F2 - 1]) > 0); )
457
457
  F2--;
458
458
  return F2 === u.length ? t : u.slice(0, F2).join(" ") + u.slice(F2).join("");
459
459
  };
460
- var uD = (t, u, F2 = {}) => {
460
+ var ED = (t, u, F2 = {}) => {
461
461
  if (F2.trim !== false && t.trim() === "")
462
462
  return "";
463
463
  let e2 = "", s, C3;
464
- const D2 = X(t);
464
+ const D2 = iD(t);
465
465
  let i = [""];
466
- for (const [E3, a2] of t.split(" ").entries()) {
466
+ for (const [E3, h3] of t.split(" ").entries()) {
467
467
  F2.trim !== false && (i[i.length - 1] = i[i.length - 1].trimStart());
468
- let n = c2(i[i.length - 1]);
469
- if (E3 !== 0 && (n >= u && (F2.wordWrap === false || F2.trim === false) && (i.push(""), n = 0), (n > 0 || F2.trim === false) && (i[i.length - 1] += " ", n++)), F2.hard && D2[E3] > u) {
470
- const B3 = u - n, A3 = 1 + Math.floor((D2[E3] - B3 - 1) / u);
471
- Math.floor((D2[E3] - 1) / u) < A3 && i.push(""), _2(i, a2, u);
468
+ let o3 = A2(i[i.length - 1]);
469
+ if (E3 !== 0 && (o3 >= u && (F2.wordWrap === false || F2.trim === false) && (i.push(""), o3 = 0), (o3 > 0 || F2.trim === false) && (i[i.length - 1] += " ", o3++)), F2.hard && D2[E3] > u) {
470
+ const B3 = u - o3, p = 1 + Math.floor((D2[E3] - B3 - 1) / u);
471
+ Math.floor((D2[E3] - 1) / u) < p && i.push(""), y2(i, h3, u);
472
472
  continue;
473
473
  }
474
- if (n + D2[E3] > u && n > 0 && D2[E3] > 0) {
475
- if (F2.wordWrap === false && n < u) {
476
- _2(i, a2, u);
474
+ if (o3 + D2[E3] > u && o3 > 0 && D2[E3] > 0) {
475
+ if (F2.wordWrap === false && o3 < u) {
476
+ y2(i, h3, u);
477
477
  continue;
478
478
  }
479
479
  i.push("");
480
480
  }
481
- if (n + D2[E3] > u && F2.wordWrap === false) {
482
- _2(i, a2, u);
481
+ if (o3 + D2[E3] > u && F2.wordWrap === false) {
482
+ y2(i, h3, u);
483
483
  continue;
484
484
  }
485
- i[i.length - 1] += a2;
485
+ i[i.length - 1] += h3;
486
486
  }
487
- F2.trim !== false && (i = i.map((E3) => DD(E3)));
488
- const o3 = [...i.join(`
487
+ F2.trim !== false && (i = i.map((E3) => rD(E3)));
488
+ const n = [...i.join(`
489
489
  `)];
490
- for (const [E3, a2] of o3.entries()) {
491
- if (e2 += a2, p.has(a2)) {
492
- const { groups: B3 } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${w2}(?<uri>.*)${b2})`).exec(o3.slice(E3).join("")) || { groups: {} };
490
+ for (const [E3, h3] of n.entries()) {
491
+ if (e2 += h3, g2.has(h3)) {
492
+ const { groups: B3 } = new RegExp(`(?:\\${O2}(?<code>\\d+)m|\\${w2}(?<uri>.*)${b2})`).exec(n.slice(E3).join("")) || { groups: {} };
493
493
  if (B3.code !== void 0) {
494
- const A3 = Number.parseFloat(B3.code);
495
- s = A3 === J ? void 0 : A3;
494
+ const p = Number.parseFloat(B3.code);
495
+ s = p === sD ? void 0 : p;
496
496
  } else
497
497
  B3.uri !== void 0 && (C3 = B3.uri.length === 0 ? void 0 : B3.uri);
498
498
  }
499
- const n = q.codes.get(Number(s));
500
- o3[E3 + 1] === `
501
- ` ? (C3 && (e2 += j2("")), s && n && (e2 += N2(n))) : a2 === `
502
- ` && (s && n && (e2 += N2(s)), C3 && (e2 += j2(C3)));
499
+ const o3 = eD.codes.get(Number(s));
500
+ n[E3 + 1] === `
501
+ ` ? (C3 && (e2 += L2("")), s && o3 && (e2 += N2(o3))) : h3 === `
502
+ ` && (s && o3 && (e2 += N2(s)), C3 && (e2 += L2(C3)));
503
503
  }
504
504
  return e2;
505
505
  };
506
- function P2(t, u, F2) {
506
+ function R2(t, u, F2) {
507
507
  return String(t).normalize().replace(/\r\n/g, `
508
508
  `).split(`
509
- `).map((e2) => uD(e2, u, F2)).join(`
509
+ `).map((e2) => ED(e2, u, F2)).join(`
510
510
  `);
511
511
  }
512
- function FD(t, u) {
512
+ var oD = Object.defineProperty;
513
+ var nD = (t, u, F2) => u in t ? oD(t, u, { enumerable: true, configurable: true, writable: true, value: F2 }) : t[u] = F2;
514
+ var a = (t, u, F2) => (nD(t, typeof u != "symbol" ? u + "" : u, F2), F2);
515
+ function aD(t, u) {
513
516
  if (t === u)
514
517
  return;
515
518
  const F2 = t.split(`
@@ -519,28 +522,28 @@ function FD(t, u) {
519
522
  F2[C3] !== e2[C3] && s.push(C3);
520
523
  return s;
521
524
  }
522
- var R2 = Symbol("clack:cancel");
523
- function eD(t) {
524
- return t === R2;
525
+ var V2 = Symbol("clack:cancel");
526
+ function hD(t) {
527
+ return t === V2;
525
528
  }
526
- function g2(t, u) {
529
+ function v2(t, u) {
527
530
  t.isTTY && t.setRawMode(u);
528
531
  }
529
- var V2 = /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"]]);
530
- var tD = /* @__PURE__ */ new Set(["up", "down", "left", "right", "space", "enter"]);
531
- var h2 = class {
532
- constructor({ render: u, input: F2 = k2, output: e2 = y2, ...s }, C3 = true) {
533
- this._track = false, this._cursor = 0, this.state = "initial", this.error = "", this.subscribers = /* @__PURE__ */ new Map(), this._prevFrame = "", this.opts = s, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = u.bind(this), this._track = C3, this.input = F2, this.output = e2;
532
+ var z = /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"]]);
533
+ var lD = /* @__PURE__ */ new Set(["up", "down", "left", "right", "space", "enter"]);
534
+ var x2 = class {
535
+ constructor({ render: u, input: F2 = $2, output: e2 = k2, ...s }, C3 = true) {
536
+ a(this, "input"), a(this, "output"), a(this, "rl"), a(this, "opts"), a(this, "_track", false), a(this, "_render"), a(this, "_cursor", 0), a(this, "state", "initial"), a(this, "value"), a(this, "error", ""), a(this, "subscribers", /* @__PURE__ */ new Map()), a(this, "_prevFrame", ""), this.opts = s, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = u.bind(this), this._track = C3, this.input = F2, this.output = e2;
534
537
  }
535
538
  prompt() {
536
- const u = new O2(0);
539
+ const u = new U(0);
537
540
  return u._write = (F2, e2, s) => {
538
541
  this._track && (this.value = this.rl.line.replace(/\t/g, ""), this._cursor = this.rl.cursor, this.emit("value", this.value)), s();
539
- }, this.input.pipe(u), this.rl = S2.createInterface({ input: this.input, output: u, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), S2.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), g2(this.input, true), this.output.on("resize", this.render), this.render(), new Promise((F2, e2) => {
542
+ }, this.input.pipe(u), this.rl = _2.createInterface({ input: this.input, output: u, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), _2.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), v2(this.input, true), this.output.on("resize", this.render), this.render(), new Promise((F2, e2) => {
540
543
  this.once("submit", () => {
541
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), g2(this.input, false), F2(this.value);
544
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), v2(this.input, false), F2(this.value);
542
545
  }), this.once("cancel", () => {
543
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), g2(this.input, false), F2(R2);
546
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), v2(this.input, false), F2(V2);
544
547
  });
545
548
  });
546
549
  }
@@ -563,7 +566,7 @@ var h2 = class {
563
566
  this.subscribers.clear();
564
567
  }
565
568
  onKeypress(u, F2) {
566
- if (this.state === "error" && (this.state = "active"), F2?.name && !this._track && V2.has(F2.name) && this.emit("cursor", V2.get(F2.name)), F2?.name && tD.has(F2.name) && this.emit("cursor", F2.name), u && (u.toLowerCase() === "y" || u.toLowerCase() === "n") && this.emit("confirm", u.toLowerCase() === "y"), u && this.emit("key", u.toLowerCase()), F2?.name === "return") {
569
+ if (this.state === "error" && (this.state = "active"), F2?.name && !this._track && z.has(F2.name) && this.emit("cursor", z.get(F2.name)), F2?.name && lD.has(F2.name) && this.emit("cursor", F2.name), u && (u.toLowerCase() === "y" || u.toLowerCase() === "n") && this.emit("confirm", u.toLowerCase() === "y"), u === " " && this.opts.placeholder && (this.value || (this.rl.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u && this.emit("key", u.toLowerCase()), F2?.name === "return") {
567
570
  if (this.opts.validate) {
568
571
  const e2 = this.opts.validate(this.value);
569
572
  e2 && (this.error = e2, this.state = "error", this.rl.write(this.value));
@@ -574,20 +577,20 @@ var h2 = class {
574
577
  }
575
578
  close() {
576
579
  this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
577
- `), g2(this.input, false), this.rl.close(), this.emit(`${this.state}`, this.value), this.unsubscribe();
580
+ `), v2(this.input, false), this.rl.close(), this.emit(`${this.state}`, this.value), this.unsubscribe();
578
581
  }
579
582
  restoreCursor() {
580
- const u = P2(this._prevFrame, process.stdout.columns, { hard: true }).split(`
583
+ const u = R2(this._prevFrame, process.stdout.columns, { hard: true }).split(`
581
584
  `).length - 1;
582
585
  this.output.write(import_sisteransi.cursor.move(-999, u * -1));
583
586
  }
584
587
  render() {
585
- const u = P2(this._render(this) ?? "", process.stdout.columns, { hard: true });
588
+ const u = R2(this._render(this) ?? "", process.stdout.columns, { hard: true });
586
589
  if (u !== this._prevFrame) {
587
590
  if (this.state === "initial")
588
591
  this.output.write(import_sisteransi.cursor.hide);
589
592
  else {
590
- const F2 = FD(this._prevFrame, u);
593
+ const F2 = aD(this._prevFrame, u);
591
594
  if (this.restoreCursor(), F2 && F2?.length === 1) {
592
595
  const e2 = F2[0];
593
596
  this.output.write(import_sisteransi.cursor.move(0, e2)), this.output.write(import_sisteransi.erase.lines(1));
@@ -598,9 +601,9 @@ var h2 = class {
598
601
  } else if (F2 && F2?.length > 1) {
599
602
  const e2 = F2[0];
600
603
  this.output.write(import_sisteransi.cursor.move(0, e2)), this.output.write(import_sisteransi.erase.down());
601
- const C3 = u.split(`
604
+ const s = u.split(`
602
605
  `).slice(e2);
603
- this.output.write(C3.join(`
606
+ this.output.write(s.join(`
604
607
  `)), this._prevFrame = u;
605
608
  return;
606
609
  }
@@ -610,9 +613,12 @@ var h2 = class {
610
613
  }
611
614
  }
612
615
  };
613
- var ED = class extends h2 {
616
+ var bD = Object.defineProperty;
617
+ var wD = (t, u, F2) => u in t ? bD(t, u, { enumerable: true, configurable: true, writable: true, value: F2 }) : t[u] = F2;
618
+ var Z = (t, u, F2) => (wD(t, typeof u != "symbol" ? u + "" : u, F2), F2);
619
+ var yD = class extends x2 {
614
620
  constructor(u) {
615
- super(u, false), this.cursor = 0, this.options = u.options, this.cursor = this.options.findIndex(({ value: F2 }) => F2 === u.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F2) => {
621
+ super(u, false), Z(this, "options"), Z(this, "cursor", 0), this.options = u.options, this.cursor = this.options.findIndex(({ value: F2 }) => F2 === u.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F2) => {
616
622
  switch (F2) {
617
623
  case "left":
618
624
  case "up":
@@ -633,9 +639,12 @@ var ED = class extends h2 {
633
639
  this.value = this._value.value;
634
640
  }
635
641
  };
636
- var oD = class extends h2 {
642
+ var SD = Object.defineProperty;
643
+ var jD = (t, u, F2) => u in t ? SD(t, u, { enumerable: true, configurable: true, writable: true, value: F2 }) : t[u] = F2;
644
+ var MD = (t, u, F2) => (jD(t, typeof u != "symbol" ? u + "" : u, F2), F2);
645
+ var TD = class extends x2 {
637
646
  constructor(u) {
638
- super(u), this.valueWithCursor = "", this.on("finalize", () => {
647
+ super(u), MD(this, "valueWithCursor", ""), this.on("finalize", () => {
639
648
  this.value || (this.value = u.defaultValue), this.valueWithCursor = this.value;
640
649
  }), this.on("value", () => {
641
650
  if (this.cursor >= this.value.length)
@@ -650,22 +659,23 @@ var oD = class extends h2 {
650
659
  return this._cursor;
651
660
  }
652
661
  };
662
+ var PD = globalThis.process.platform.startsWith("win");
653
663
 
654
664
  // ../../node_modules/.pnpm/@clack+prompts@0.7.0/node_modules/@clack/prompts/dist/index.mjs
655
665
  var import_picocolors2 = __toESM(require_picocolors(), 1);
656
666
  var import_sisteransi2 = __toESM(require_src(), 1);
657
- import h3 from "process";
667
+ import h2 from "process";
658
668
  function q2() {
659
- return h3.platform !== "win32" ? h3.env.TERM !== "linux" : Boolean(h3.env.CI) || Boolean(h3.env.WT_SESSION) || Boolean(h3.env.TERMINUS_SUBLIME) || h3.env.ConEmuTask === "{cmd::Cmder}" || h3.env.TERM_PROGRAM === "Terminus-Sublime" || h3.env.TERM_PROGRAM === "vscode" || h3.env.TERM === "xterm-256color" || h3.env.TERM === "alacritty" || h3.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
669
+ return h2.platform !== "win32" ? h2.env.TERM !== "linux" : Boolean(h2.env.CI) || Boolean(h2.env.WT_SESSION) || Boolean(h2.env.TERMINUS_SUBLIME) || h2.env.ConEmuTask === "{cmd::Cmder}" || h2.env.TERM_PROGRAM === "Terminus-Sublime" || h2.env.TERM_PROGRAM === "vscode" || h2.env.TERM === "xterm-256color" || h2.env.TERM === "alacritty" || h2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
660
670
  }
661
671
  var _3 = q2();
662
672
  var o2 = (r2, n) => _3 ? r2 : n;
663
- var H2 = o2("◆", "*");
673
+ var H = o2("◆", "*");
664
674
  var I3 = o2("■", "x");
665
675
  var x3 = o2("▲", "x");
666
676
  var S3 = o2("◇", "o");
667
- var K2 = o2("┌", "T");
668
- var a = o2("│", "|");
677
+ var K = o2("┌", "T");
678
+ var a2 = o2("│", "|");
669
679
  var d3 = o2("└", "—");
670
680
  var b3 = o2("●", ">");
671
681
  var E2 = o2("○", " ");
@@ -678,14 +688,14 @@ var Z2 = o2("╮", "+");
678
688
  var z2 = o2("├", "+");
679
689
  var X2 = o2("╯", "+");
680
690
  var J2 = o2("●", "•");
681
- var Y3 = o2("◆", "*");
691
+ var Y2 = o2("◆", "*");
682
692
  var Q2 = o2("▲", "!");
683
693
  var ee = o2("■", "x");
684
694
  var y3 = (r2) => {
685
695
  switch (r2) {
686
696
  case "initial":
687
697
  case "active":
688
- return import_picocolors2.default.cyan(H2);
698
+ return import_picocolors2.default.cyan(H);
689
699
  case "cancel":
690
700
  return import_picocolors2.default.red(I3);
691
701
  case "error":
@@ -694,23 +704,23 @@ var y3 = (r2) => {
694
704
  return import_picocolors2.default.green(S3);
695
705
  }
696
706
  };
697
- var te = (r2) => new oD({ validate: r2.validate, placeholder: r2.placeholder, defaultValue: r2.defaultValue, initialValue: r2.initialValue, render() {
698
- const n = `${import_picocolors2.default.gray(a)}
707
+ var te = (r2) => new TD({ validate: r2.validate, placeholder: r2.placeholder, defaultValue: r2.defaultValue, initialValue: r2.initialValue, render() {
708
+ const n = `${import_picocolors2.default.gray(a2)}
699
709
  ${y3(this.state)} ${r2.message}
700
710
  `, i = r2.placeholder ? import_picocolors2.default.inverse(r2.placeholder[0]) + import_picocolors2.default.dim(r2.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), t = this.value ? this.valueWithCursor : i;
701
711
  switch (this.state) {
702
712
  case "error":
703
713
  return `${n.trim()}
704
- ${import_picocolors2.default.yellow(a)} ${t}
714
+ ${import_picocolors2.default.yellow(a2)} ${t}
705
715
  ${import_picocolors2.default.yellow(d3)} ${import_picocolors2.default.yellow(this.error)}
706
716
  `;
707
717
  case "submit":
708
- return `${n}${import_picocolors2.default.gray(a)} ${import_picocolors2.default.dim(this.value || r2.placeholder)}`;
718
+ return `${n}${import_picocolors2.default.gray(a2)} ${import_picocolors2.default.dim(this.value || r2.placeholder)}`;
709
719
  case "cancel":
710
- return `${n}${import_picocolors2.default.gray(a)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(this.value ?? ""))}${this.value?.trim() ? `
711
- ` + import_picocolors2.default.gray(a) : ""}`;
720
+ return `${n}${import_picocolors2.default.gray(a2)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(this.value ?? ""))}${this.value?.trim() ? `
721
+ ` + import_picocolors2.default.gray(a2) : ""}`;
712
722
  default:
713
- return `${n}${import_picocolors2.default.cyan(a)} ${t}
723
+ return `${n}${import_picocolors2.default.cyan(a2)} ${t}
714
724
  ${import_picocolors2.default.cyan(d3)}
715
725
  `;
716
726
  }
@@ -721,22 +731,22 @@ var ie = (r2) => {
721
731
  return s === "active" ? `${import_picocolors2.default.green(b3)} ${c3} ${t.hint ? import_picocolors2.default.dim(`(${t.hint})`) : ""}` : s === "selected" ? `${import_picocolors2.default.dim(c3)}` : s === "cancelled" ? `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(c3))}` : `${import_picocolors2.default.dim(E2)} ${import_picocolors2.default.dim(c3)}`;
722
732
  };
723
733
  let i = 0;
724
- return new ED({ options: r2.options, initialValue: r2.initialValue, render() {
725
- const t = `${import_picocolors2.default.gray(a)}
734
+ return new yD({ options: r2.options, initialValue: r2.initialValue, render() {
735
+ const t = `${import_picocolors2.default.gray(a2)}
726
736
  ${y3(this.state)} ${r2.message}
727
737
  `;
728
738
  switch (this.state) {
729
739
  case "submit":
730
- return `${t}${import_picocolors2.default.gray(a)} ${n(this.options[this.cursor], "selected")}`;
740
+ return `${t}${import_picocolors2.default.gray(a2)} ${n(this.options[this.cursor], "selected")}`;
731
741
  case "cancel":
732
- return `${t}${import_picocolors2.default.gray(a)} ${n(this.options[this.cursor], "cancelled")}
733
- ${import_picocolors2.default.gray(a)}`;
742
+ return `${t}${import_picocolors2.default.gray(a2)} ${n(this.options[this.cursor], "cancelled")}
743
+ ${import_picocolors2.default.gray(a2)}`;
734
744
  default: {
735
745
  const s = r2.maxItems === void 0 ? 1 / 0 : Math.max(r2.maxItems, 5);
736
746
  this.cursor >= i + s - 3 ? i = Math.max(Math.min(this.cursor - s + 3, this.options.length - s), 0) : this.cursor < i + 2 && (i = Math.max(this.cursor - 2, 0));
737
747
  const c3 = s < this.options.length && i > 0, l2 = s < this.options.length && i + s < this.options.length;
738
- return `${t}${import_picocolors2.default.cyan(a)} ${this.options.slice(i, i + s).map((u, m2, $3) => m2 === 0 && c3 ? import_picocolors2.default.dim("...") : m2 === $3.length - 1 && l2 ? import_picocolors2.default.dim("...") : n(u, m2 + i === this.cursor ? "active" : "inactive")).join(`
739
- ${import_picocolors2.default.cyan(a)} `)}
748
+ return `${t}${import_picocolors2.default.cyan(a2)} ${this.options.slice(i, i + s).map((u, m2, $3) => m2 === 0 && c3 ? import_picocolors2.default.dim("...") : m2 === $3.length - 1 && l2 ? import_picocolors2.default.dim("...") : n(u, m2 + i === this.cursor ? "active" : "inactive")).join(`
749
+ ${import_picocolors2.default.cyan(a2)} `)}
740
750
  ${import_picocolors2.default.cyan(d3)}
741
751
  `;
742
752
  }
@@ -748,9 +758,9 @@ var le = (r2 = "", n = "") => {
748
758
  const i = `
749
759
  ${r2}
750
760
  `.split(`
751
- `), t = R3(n).length, s = Math.max(i.reduce((l2, u) => (u = R3(u), u.length > l2 ? u.length : l2), 0), t) + 2, c3 = i.map((l2) => `${import_picocolors2.default.gray(a)} ${import_picocolors2.default.dim(l2)}${" ".repeat(s - R3(l2).length)}${import_picocolors2.default.gray(a)}`).join(`
761
+ `), t = R3(n).length, s = Math.max(i.reduce((l2, u) => (u = R3(u), u.length > l2 ? u.length : l2), 0), t) + 2, c3 = i.map((l2) => `${import_picocolors2.default.gray(a2)} ${import_picocolors2.default.dim(l2)}${" ".repeat(s - R3(l2).length)}${import_picocolors2.default.gray(a2)}`).join(`
752
762
  `);
753
- process.stdout.write(`${import_picocolors2.default.gray(a)}
763
+ process.stdout.write(`${import_picocolors2.default.gray(a2)}
754
764
  ${import_picocolors2.default.green(S3)} ${import_picocolors2.default.reset(n)} ${import_picocolors2.default.gray(B2.repeat(Math.max(s - t - 1, 1)) + Z2)}
755
765
  ${c3}
756
766
  ${import_picocolors2.default.gray(z2 + B2.repeat(s + 2) + X2)}
@@ -762,7 +772,7 @@ var ue = (r2 = "") => {
762
772
  `);
763
773
  };
764
774
  var $e = (r2 = "") => {
765
- process.stdout.write(`${import_picocolors2.default.gray(a)}
775
+ process.stdout.write(`${import_picocolors2.default.gray(a2)}
766
776
  ${import_picocolors2.default.gray(d3)} ${r2}
767
777
 
768
778
  `);
@@ -774,7 +784,7 @@ function me() {
774
784
 
775
785
  // src/index.ts
776
786
  function checkCancel(value) {
777
- if (eD(value)) {
787
+ if (hD(value)) {
778
788
  ue("Operation cancelled.");
779
789
  process.exit(0);
780
790
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rsbuild",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "Create a new Rsbuild project",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {