YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
docs: update w new cli
Louis Beaumont9eab70fa90f4
diff --git a/README-ja.md b/README-ja.mdindex 600928b1e..23a4b325a 100644--- a/README-ja.md+++ b/README-ja.md@@ -109,7 +109,7 @@ macOSでは画面とマイクの許可を必ず設定してください## プラグインの作成```bash-bunx @screenpipe/create-pipe@latest+bunx @screenpipe/dev create```ScreenPipeには「パイプ」と呼ばれるプラグインシステムがあり、Rustコード内のサンドボックス環境でNext.jsデスクトップアプリを作成できます。[詳細はこちら](https://docs.screenpi.pe/docs/plugins)@@ -127,4 +127,4 @@ ScreenPipeには「パイプ」と呼ばれるプラグインシステムがあ</a><a href="https://console.algora.io/org/mediar-ai/bounties?status=open"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fconsole.algora.io%2Fapi%2Fshields%2Fmediar-ai%2Fbounties%3Fstatus%3Dopen" alt="オープンバウンティ">- </a>\ No newline at end of file+ </a>diff --git a/README-zh_CN.md b/README-zh_CN.mdindex c0be445e1..d55a095f1 100644--- a/README-zh_CN.md+++ b/README-zh_CN.md@@ -98,7 +98,7 @@ screenpipe## 创建插件```bash-bunx @screenpipe/create-pipe@latest+bunx @screenpipe/dev create```screenpipe有一个名为"pipe"的插件系统,允许你在Rust代码的沙盒环境中运行代码,[了解更多](https://docs.screenpi.pe/docs/plugins)diff --git a/README.md b/README.mdindex 2e06c5a5f..c1fcc8202 100644--- a/README.md+++ b/README.md@@ -120,7 +120,7 @@ make sure to allow permissions on macos (screen, mic)## create plugins```bash-bunx @screenpipe/create-pipe@latest+bunx @screenpipe/dev create```screenpipe has a plugin system called "pipe" which lets you create desktop app in nextjs in a sandboxed environment within our Rust code, [read more](https://docs.screenpi.pe/docs/plugins)@@ -128,7 +128,7 @@ screenpipe has a plugin system called "pipe" which lets you create desktop app iyou can then publish these to our store and make money:```bash-bunx @screenpipe/dev create --name foo [--paid --price 50] # subscription+bunx @screenpipe/dev register --name foo [--paid --price 50] # subscriptionbun run buildbunx @screenpipe/dev publish --name foo```diff --git a/content/docs/pages/docs/plugins.mdx b/content/docs/pages/docs/plugins.mdxindex e563daa66..b7d6a2b11 100644--- a/content/docs/pages/docs/plugins.mdx+++ b/content/docs/pages/docs/plugins.mdx@@ -46,22 +46,22 @@ The fastest way to create a new pipe is using our CLI:<Tabs items={['bun', 'npm', , 'yarn', 'pnpm']}><Tab>```bash copy- bunx @screenpipe/create-pipe@latest+bunx @screenpipe/dev create```</Tab><Tab>```bash copy- npx @screenpipe/create-pipe@latest+ npx @screenpipe/dev create```</Tab><Tab>```bash copy- yarn @screenpipe/create-pipe+ yarn @screenpipe/dev create```</Tab><Tab>```bash copy- pnpx @screenpipe/create-pipe+ pnpx @screenpipe/dev create```</Tab></Tabs>@@ -87,9 +87,20 @@ available commands:bunx @screenpipe/dev login --apiKey <your-key># create a new pipe-bunx @screenpipe/dev create --name my-pipe [--paid --price 9.99] # MAKE SURE TO SET THE PRICE IF YOU WANT TO SELL IT - IRREVERSIBLE+bunx @screenpipe/dev register --name my-pipe [--paid --price 9.99] # MAKE SURE TO SET THE PRICE IF YOU WANT TO SELL IT - IRREVERSIBLE# you'll receive payouts to your stripe account on a daily basis+# add predefined components to your pipe+bunx @screenpipe/dev components add+# select components from the interactive menu:+# - use-health: health monitoring hooks+# - use-settings: settings management+# - route-settings: settings page routing+# - use-sql-autocomplete: SQL query assistance+# - sql-autocomplete-input: SQL input component+# - use-search-history: search history management+# - use-ai-provider: AI integration hooks+# publish your pipe to the storebunx @screenpipe/dev publish --name my-pipe# our team will review your pipe and publish it to the storediff --git a/pipes/data-table/package.json b/pipes/data-table/package.jsonindex 6dbca48f3..3fcb5fee6 100644--- a/pipes/data-table/package.json+++ b/pipes/data-table/package.json@@ -23,8 +23,8 @@"@radix-ui/react-switch": "^1.1.2","@radix-ui/react-toast": "^1.2.3","@radix-ui/react-tooltip": "^1.1.5",- "@screenpipe/browser": "^0.1.24",- "@screenpipe/js": "^1.0.7",+ "@screenpipe/browser": "^0.1.25",+ "@screenpipe/js": "^1.0.8","@shadcn/ui": "^0.0.4","@tanstack/react-query": "^5.62.7","@tanstack/react-table": "^8.20.6",diff --git a/pipes/identify-speakers/package.json b/pipes/identify-speakers/package.jsonindex 42f817ccc..1e5fb1979 100644--- a/pipes/identify-speakers/package.json+++ b/pipes/identify-speakers/package.json@@ -22,8 +22,8 @@"@radix-ui/react-switch": "^1.1.2","@radix-ui/react-toast": "^1.2.3","@radix-ui/react-tooltip": "^1.1.5",- "@screenpipe/browser": "^0.1.24",- "@screenpipe/js": "^1.0.7",+ "@screenpipe/browser": "^0.1.25",+ "@screenpipe/js": "^1.0.8","@shadcn/ui": "^0.0.4","@tanstack/react-query": "^5.62.7","@types/js-levenshtein": "^1.1.3",diff --git a/pipes/linkedin-ai-assistant/package.json b/pipes/linkedin-ai-assistant/package.jsonindex 24e1d2fab..419ebdaa4 100644--- a/pipes/linkedin-ai-assistant/package.json+++ b/pipes/linkedin-ai-assistant/package.json@@ -16,8 +16,8 @@"@radix-ui/react-switch": "^1.1.1","@radix-ui/react-toast": "^1.2.4","@radix-ui/react-tooltip": "^1.1.6",- "@screenpipe/browser": "0.1.22",- "@screenpipe/js": "^1.0.6",+ "@screenpipe/browser": "0.1.25",+ "@screenpipe/js": "^1.0.8","@sentry/nextjs": "^8","@tauri-apps/api": "^2.1.1","chrome-launcher": "^1.1.2",diff --git a/pipes/meeting/package.json b/pipes/meeting/package.jsonindex e4d6892b8..223f47cec 100644--- a/pipes/meeting/package.json+++ b/pipes/meeting/package.json@@ -22,8 +22,8 @@"@radix-ui/react-switch": "^1.1.2","@radix-ui/react-toast": "^1.2.4","@radix-ui/react-tooltip": "^1.1.5",- "@screenpipe/browser": "0.1.24",- "@screenpipe/js": "1.0.7",+ "@screenpipe/browser": "0.1.25",+ "@screenpipe/js": "1.0.8","@shadcn/ui": "^0.0.4","@tanstack/react-query": "^5.62.7","@types/js-levenshtein": "^1.1.3",diff --git a/pipes/memories/package.json b/pipes/memories/package.jsonindex 5b3eef80f..c4a6914fc 100644--- a/pipes/memories/package.json+++ b/pipes/memories/package.json@@ -22,8 +22,8 @@"@radix-ui/react-switch": "^1.1.2","@radix-ui/react-toast": "^1.2.3","@radix-ui/react-tooltip": "^1.1.5",- "@screenpipe/browser": "^0.1.24",- "@screenpipe/js": "^1.0.7",+ "@screenpipe/browser": "^0.1.25",+ "@screenpipe/js": "^1.0.8","@shadcn/ui": "^0.0.4","@tanstack/react-query": "^5.62.7","@types/js-levenshtein": "^1.1.3",diff --git a/pipes/search/bun.lockb b/pipes/search/bun.lockbindex ab6e69d5a..a73df5650 100755Binary files a/pipes/search/bun.lockb and b/pipes/search/bun.lockb differdiff --git a/pipes/search/package.json b/pipes/search/package.jsonindex 8a60b5544..a9d2bc5c2 100644--- a/pipes/search/package.json+++ b/pipes/search/package.json@@ -1,6 +1,6 @@{"name": "search",- "version": "0.1.2",+ "version": "0.1.5","private": true,"scripts": {"dev": "next dev --turbopack",@@ -22,8 +22,8 @@"@radix-ui/react-switch": "^1.1.2","@radix-ui/react-toast": "^1.2.3","@radix-ui/react-tooltip": "^1.1.5",- "@screenpipe/browser": "^0.1.24",- "@screenpipe/js": "^1.0.7",+ "@screenpipe/browser": "^0.1.25",+ "@screenpipe/js": "^1.0.8","@shadcn/ui": "^0.0.4","@tanstack/react-query": "^5.62.7","@types/js-levenshtein": "^1.1.3",diff --git a/screenpipe-js/browser-sdk/package.json b/screenpipe-js/browser-sdk/package.jsonindex a043eed70..acd223042 100644--- a/screenpipe-js/browser-sdk/package.json+++ b/screenpipe-js/browser-sdk/package.json@@ -1,6 +1,6 @@{"name": "@screenpipe/browser",- "version": "0.1.24",+ "version": "0.1.25","type": "module","main": "./dist/index.cjs","module": "./dist/index.js",diff --git a/screenpipe-js/cli/dist/index.js b/screenpipe-js/cli/dist/index.jsindex ea23943ce..c7c690662 100755--- a/screenpipe-js/cli/dist/index.js+++ b/screenpipe-js/cli/dist/index.js@@ -2116,10 +2116,10 @@ var require_lib = __commonJS((exports, module) => {};});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/key.js-var isUpKey = (key) => key.name === "up" || key.name === "k" || key.ctrl && key.name === "p", isDownKey = (key) => key.name === "down" || key.name === "j" || key.ctrl && key.name === "n", isSpaceKey = (key) => key.name === "space", isNumberKey = (key) => "123456789".includes(key.name), isEnterKey = (key) => key.name === "enter" || key.name === "return";+// node_modules/@inquirer/core/dist/esm/lib/key.js+var isUpKey = (key) => key.name === "up" || key.name === "k" || key.ctrl && key.name === "p", isDownKey = (key) => key.name === "down" || key.name === "j" || key.ctrl && key.name === "n", isSpaceKey = (key) => key.name === "space", isBackspaceKey = (key) => key.name === "backspace", isNumberKey = (key) => "123456789".includes(key.name), isEnterKey = (key) => key.name === "enter" || key.name === "return";-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/errors.js+// node_modules/@inquirer/core/dist/esm/lib/errors.jsvar AbortPromptError, CancelPromptError, ExitPromptError, HookError, ValidationError;var init_errors = __esm(() => {AbortPromptError = class AbortPromptError extends Error {@@ -2145,7 +2145,7 @@ var init_errors = __esm(() => {};});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js+// node_modules/@inquirer/core/dist/esm/lib/hook-engine.jsimport { AsyncLocalStorage, AsyncResource } from "node:async_hooks";function createStore(rl) {const store = {@@ -2255,7 +2255,7 @@ var init_hook_engine = __esm(() => {};});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/use-state.js+// node_modules/@inquirer/core/dist/esm/lib/use-state.jsfunction useState(defaultValue) {return withPointer((pointer) => {const setFn = (newValue) => {@@ -2276,7 +2276,7 @@ var init_use_state = __esm(() => {init_hook_engine();});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/use-effect.js+// node_modules/@inquirer/core/dist/esm/lib/use-effect.jsfunction useEffect(cb, depArray) {withPointer((pointer) => {const oldDeps = pointer.get();@@ -2363,7 +2363,7 @@ var require_yoctocolors_cjs = __commonJS((exports, module) => {module.exports = colors;});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/figures/dist/esm/index.js+// node_modules/@inquirer/figures/dist/esm/index.jsimport process2 from "node:process";function isUnicodeSupported() {if (process2.platform !== "win32") {@@ -2652,7 +2652,7 @@ var init_esm = __esm(() => {replacements = Object.entries(specialMainSymbols);});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/theme.js+// node_modules/@inquirer/core/dist/esm/lib/theme.jsvar import_yoctocolors_cjs, defaultTheme;var init_theme = __esm(() => {import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);@@ -2678,7 +2678,7 @@ var init_theme = __esm(() => {};});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/make-theme.js+// node_modules/@inquirer/core/dist/esm/lib/make-theme.jsfunction isPlainObject(value) {if (typeof value !== "object" || value === null)return false;@@ -2709,7 +2709,7 @@ var init_make_theme = __esm(() => {init_theme();});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js+// node_modules/@inquirer/core/dist/esm/lib/use-prefix.jsimport { AsyncResource as AsyncResource2 } from "node:async_hooks";function usePrefix({ status = "idle", theme }) {const [showLoader, setShowLoader] = useState(false);@@ -2746,7 +2746,7 @@ var init_use_prefix = __esm(() => {init_make_theme();});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/use-memo.js+// node_modules/@inquirer/core/dist/esm/lib/use-memo.jsfunction useMemo(fn, dependencies) {return withPointer((pointer) => {const prev = pointer.get();@@ -2762,7 +2762,7 @@ var init_use_memo = __esm(() => {init_hook_engine();});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/use-ref.js+// node_modules/@inquirer/core/dist/esm/lib/use-ref.jsfunction useRef(val) {return useState({ current: val })[0];}@@ -2770,7 +2770,7 @@ var init_use_ref = __esm(() => {init_use_state();});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js+// node_modules/@inquirer/core/dist/esm/lib/use-keypress.jsfunction useKeypress(userHandler) {const signal = useRef(userHandler);signal.current = userHandler;@@ -4127,7 +4127,7 @@ var require_wrap_ansi = __commonJS((exports, module) => {};});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/utils.js+// node_modules/@inquirer/core/dist/esm/lib/utils.jsfunction breakLines(content, width) {return content.split(``).flatMap((line) => import_wrap_ansi.default(line, width, { trim: false, hard: true }).split(`@@ -4144,7 +4144,7 @@ var init_utils = __esm(() => {init_hook_engine();});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js+// node_modules/@inquirer/core/dist/esm/lib/pagination/lines.jsfunction split(content, width) {return breakLines(content, width).split(``);@@ -4192,7 +4192,7 @@ var init_lines = __esm(() => {init_utils();});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/pagination/position.js+// node_modules/@inquirer/core/dist/esm/lib/pagination/position.jsfunction finite({ active, pageSize, total }) {const middle = Math.floor(pageSize / 2);if (total <= pageSize || active < middle)@@ -4210,7 +4210,7 @@ function infinite({ active, lastActive, total, pageSize, pointer }) {return pointer;}-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js+// node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.jsfunction usePagination({ items, active, renderItem, pageSize, loop = true }) {const state = useRef({ position: 0, lastActive: 0 });const position = loop ? infinite({@@ -4578,7 +4578,7 @@ var init_mjs = __esm(() => {} = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback));});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/node_modules/strip-ansi/node_modules/ansi-regex/index.js+// node_modules/@inquirer/core/node_modules/strip-ansi/node_modules/ansi-regex/index.jsvar require_ansi_regex2 = __commonJS((exports, module) => {module.exports = ({ onlyFirst = false } = {}) => {const pattern = [@@ -4589,7 +4589,7 @@ var require_ansi_regex2 = __commonJS((exports, module) => {};});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/node_modules/strip-ansi/index.js+// node_modules/@inquirer/core/node_modules/strip-ansi/index.jsvar require_strip_ansi2 = __commonJS((exports, module) => {var ansiRegex = require_ansi_regex2();module.exports = (string2) => typeof string2 === "string" ? string2.replace(ansiRegex(), "") : string2;@@ -4713,7 +4713,7 @@ var require_ansi_escapes = __commonJS((exports, module) => {};});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js+// node_modules/@inquirer/core/dist/esm/lib/screen-manager.jsfunction cursorDown(n) {return n > 0 ? import_ansi_escapes.default.cursorDown(n) : "";}@@ -4786,7 +4786,7 @@ var init_screen_manager = __esm(() => {init_utils();});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js+// node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.jsvar PromisePolyfill;var init_promise_polyfill = __esm(() => {PromisePolyfill = class PromisePolyfill extends Promise {@@ -4802,7 +4802,7 @@ var init_promise_polyfill = __esm(() => {};});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js+// node_modules/@inquirer/core/dist/esm/lib/create-prompt.jsimport * as readline2 from "node:readline";import { AsyncResource as AsyncResource3 } from "node:async_hooks";function getCallSites() {@@ -4896,7 +4896,7 @@ var init_create_prompt = __esm(() => {init_errors();});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/lib/Separator.js+// node_modules/@inquirer/core/dist/esm/lib/Separator.jsclass Separator {separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));type = "separator";@@ -4915,11 +4915,12 @@ var init_Separator = __esm(() => {init_esm();});-// node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/esm/index.js+// node_modules/@inquirer/core/dist/esm/index.jsvar init_esm2 = __esm(() => {init_errors();init_use_prefix();init_use_state();+ init_use_effect();init_use_memo();init_use_ref();init_use_keypress();@@ -14495,8407 +14496,703 @@ var require_main = __commonJS((exports) => {exports.ExternalEditor = ExternalEditor;});-// node_modules/@inquirer/editor/node_modules/@inquirer/core/dist/esm/lib/key.js-var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";--// node_modules/@inquirer/editor/node_modules/@inquirer/core/dist/esm/lib/errors.js-var AbortPromptError2, CancelPromptError2, ExitPromptError2, HookError2, ValidationError2;-var init_errors2 = __esm(() => {- AbortPromptError2 = class AbortPromptError2 extends Error {- name = "AbortPromptError";- message = "Prompt was aborted";- constructor(options) {- super();- this.cause = options?.cause;- }- };- CancelPromptError2 = class CancelPromptError2 extends Error {- name = "CancelPromptError";- message = "Prompt was canceled";- };- ExitPromptError2 = class ExitPromptError2 extends Error {- name = "ExitPromptError";- };- HookError2 = class HookError2 extends Error {- name = "HookError";- };- ValidationError2 = class ValidationError2 extends Error {- name = "ValidationError";+// node_modules/@inquirer/editor/dist/esm/index.js+import { AsyncResource as AsyncResource4 } from "node:async_hooks";+var import_external_editor, editorTheme, esm_default3;+var init_esm4 = __esm(() => {+ import_external_editor = __toESM(require_main(), 1);+ init_esm2();+ editorTheme = {+ validationFailureMode: "keep"};-});--// node_modules/@inquirer/editor/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js-import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";-function createStore2(rl) {- const store = {- rl,- hooks: [],- hooksCleanup: [],- hooksEffect: [],- index: 0,- handleChange() {+ esm_default3 = createPrompt((config, done) => {+ const { waitForUseInput = true, file: { postfix = config.postfix ?? ".txt", ...fileProps } = {}, validate = () => true } = config;+ const theme = makeTheme(editorTheme, config.theme);+ const [status, setStatus] = useState("idle");+ const [value = "", setValue] = useState(config.default);+ const [errorMsg, setError] = useState();+ const prefix = usePrefix({ status, theme });+ function startEditor(rl) {+ rl.pause();+ const editCallback = AsyncResource4.bind(async (error2, answer) => {+ rl.resume();+ if (error2) {+ setError(error2.toString());+ } else {+ setStatus("loading");+ const isValid = await validate(answer);+ if (isValid === true) {+ setError(undefined);+ setStatus("done");+ done(answer);+ } else {+ if (theme.validationFailureMode === "clear") {+ setValue(config.default);+ } else {+ setValue(answer);+ }+ setError(isValid || "You must provide a valid value");+ setStatus("idle");+ }+ }+ });+ import_external_editor.editAsync(value, (error2, answer) => void editCallback(error2, answer), {+ postfix,+ ...fileProps+ });}- };- return store;-}-function withHooks2(rl, cb) {- const store = createStore2(rl);- return hookStorage2.run(store, () => {- function cycle(render) {- store.handleChange = () => {- store.index = 0;- render();- };- store.handleChange();+ useEffect((rl) => {+ if (!waitForUseInput) {+ startEditor(rl);+ }+ }, []);+ useKeypress((key2, rl) => {+ if (status !== "idle") {+ return;+ }+ if (isEnterKey(key2)) {+ startEditor(rl);+ }+ });+ const message = theme.style.message(config.message, status);+ let helpTip = "";+ if (status === "loading") {+ helpTip = theme.style.help("Received");+ } else if (status === "idle") {+ const enterKey = theme.style.key("enter");+ helpTip = theme.style.help(`Press ${enterKey} to launch your preferred editor.`);}- return cb(cycle);+ let error = "";+ if (errorMsg) {+ error = theme.style.error(errorMsg);+ }+ return [[prefix, message, helpTip].filter(Boolean).join(" "), error];});+});++// node_modules/@inquirer/confirm/dist/esm/index.js+function getBooleanValue(value, defaultValue) {+ let answer = defaultValue !== false;+ if (/^(y|yes)/i.test(value))+ answer = true;+ else if (/^(n|no)/i.test(value))+ answer = false;+ return answer;}-function getStore2() {- const store = hookStorage2.getStore();- if (!store) {- throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");- }- return store;-}-function readline3() {- return getStore2().rl;+function boolToString(value) {+ return value ? "Yes" : "No";}-function withUpdates2(fn) {- const wrapped = (...args) => {- const store = getStore2();- let shouldUpdate = false;- const oldHandleChange = store.handleChange;- store.handleChange = () => {- shouldUpdate = true;- };- const returnValue = fn(...args);- if (shouldUpdate) {- oldHandleChange();+var esm_default4;+var init_esm5 = __esm(() => {+ init_esm2();+ esm_default4 = createPrompt((config, done) => {+ const { transformer = boolToString } = config;+ const [status, setStatus] = useState("idle");+ const [value, setValue] = useState("");+ const theme = makeTheme(config.theme);+ const prefix = usePrefix({ status, theme });+ useKeypress((key2, rl) => {+ if (isEnterKey(key2)) {+ const answer = getBooleanValue(value, config.default);+ setValue(transformer(answer));+ setStatus("done");+ done(answer);+ } else if (key2.name === "tab") {+ const answer = boolToString(!getBooleanValue(value, config.default));+ rl.clearLine(0);+ rl.write(answer);+ setValue(answer);+ } else {+ setValue(rl.line);+ }+ });+ let formattedValue = value;+ let defaultValue = "";+ if (status === "done") {+ formattedValue = theme.style.answer(value);+ } else {+ defaultValue = ` ${theme.style.defaultAnswer(config.default === false ? "y/N" : "Y/n")}`;}- store.handleChange = oldHandleChange;- return returnValue;- };- return AsyncResource4.bind(wrapped);-}-function withPointer2(cb) {- const store = getStore2();- const { index } = store;- const pointer = {- get() {- return store.hooks[index];- },- set(value) {- store.hooks[index] = value;- },- initialized: index in store.hooks+ const message = theme.style.message(config.message, status);+ return `${prefix} ${message}${defaultValue} ${formattedValue}`;+ });+});++// node_modules/@inquirer/input/dist/esm/index.js+var inputTheme, esm_default5;+var init_esm6 = __esm(() => {+ init_esm2();+ inputTheme = {+ validationFailureMode: "keep"};- const returnValue = cb(pointer);- store.index++;- return returnValue;-}-function handleChange2() {- getStore2().handleChange();-}-var hookStorage2, effectScheduler2;-var init_hook_engine2 = __esm(() => {- init_errors2();- hookStorage2 = new AsyncLocalStorage2;- effectScheduler2 = {- queue(cb) {- const store = getStore2();- const { index } = store;- store.hooksEffect.push(() => {- store.hooksCleanup[index]?.();- const cleanFn = cb(readline3());- if (cleanFn != null && typeof cleanFn !== "function") {- throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");+ esm_default5 = createPrompt((config, done) => {+ const { required, validate = () => true } = config;+ const theme = makeTheme(inputTheme, config.theme);+ const [status, setStatus] = useState("idle");+ const [defaultValue = "", setDefaultValue] = useState(config.default);+ const [errorMsg, setError] = useState();+ const [value, setValue] = useState("");+ const prefix = usePrefix({ status, theme });+ useKeypress(async (key2, rl) => {+ if (status !== "idle") {+ return;+ }+ if (isEnterKey(key2)) {+ const answer = value || defaultValue;+ setStatus("loading");+ const isValid = required && !answer ? "You must provide a value" : await validate(answer);+ if (isValid === true) {+ setValue(answer);+ setStatus("done");+ done(answer);+ } else {+ if (theme.validationFailureMode === "clear") {+ setValue("");+ } else {+ rl.write(value);+ }+ setError(isValid || "You must provide a valid value");+ setStatus("idle");}- store.hooksCleanup[index] = cleanFn;- });- },- run() {- const store = getStore2();- withUpdates2(() => {- store.hooksEffect.forEach((effect) => {- effect();- });- store.hooksEffect.length = 0;- })();- },- clearAll() {- const store = getStore2();- store.hooksCleanup.forEach((cleanFn) => {- cleanFn?.();- });- store.hooksEffect.length = 0;- store.hooksCleanup.length = 0;+ } else if (isBackspaceKey(key2) && !value) {+ setDefaultValue(undefined);+ } else if (key2.name === "tab" && !value) {+ setDefaultValue(undefined);+ rl.clearLine(0);+ rl.write(defaultValue);+ setValue(defaultValue);+ } else {+ setValue(rl.line);+ setError(undefined);+ }+ });+ const message = theme.style.message(config.message, status);+ let formattedValue = value;+ if (typeof config.transformer === "function") {+ formattedValue = config.transformer(value, { isFinal: status === "done" });+ } else if (status === "done") {+ formattedValue = theme.style.answer(value);}- };+ let defaultStr;+ if (defaultValue && status !== "done" && !value) {+ defaultStr = theme.style.defaultAnswer(defaultValue);+ }+ let error = "";+ if (errorMsg) {+ error = theme.style.error(errorMsg);+ }+ return [+ [prefix, message, defaultStr, formattedValue].filter((v) => v !== undefined).join(" "),+ error+ ];+ });});-// node_modules/@inquirer/editor/node_modules/@inquirer/core/dist/esm/lib/use-state.js-function useState2(defaultValue) {- return withPointer2((pointer) => {- const setFn = (newValue) => {- if (pointer.get() !== newValue) {- pointer.set(newValue);- handleChange2();+// node_modules/@inquirer/number/dist/esm/index.js+function isStepOf(value, step, min) {+ const valuePow = value * Math.pow(10, 6);+ const stepPow = step * Math.pow(10, 6);+ const minPow = min * Math.pow(10, 6);+ return (valuePow - (Number.isFinite(min) ? minPow : 0)) % stepPow === 0;+}+function validateNumber(value, { min, max, step }) {+ if (value == null || Number.isNaN(value)) {+ return false;+ } else if (value < min || value > max) {+ return `Value must be between ${min} and ${max}`;+ } else if (step !== "any" && !isStepOf(value, step, min)) {+ return `Value must be a multiple of ${step}${Number.isFinite(min) ? ` starting from ${min}` : ""}`;+ }+ return true;+}+var esm_default6;+var init_esm7 = __esm(() => {+ init_esm2();+ esm_default6 = createPrompt((config, done) => {+ const { validate = () => true, min = -Infinity, max = Infinity, step = 1, required = false } = config;+ const theme = makeTheme(config.theme);+ const [status, setStatus] = useState("idle");+ const [value, setValue] = useState("");+ const validDefault = validateNumber(config.default, { min, max, step }) === true ? config.default?.toString() : undefined;+ const [defaultValue = "", setDefaultValue] = useState(validDefault);+ const [errorMsg, setError] = useState();+ const prefix = usePrefix({ status, theme });+ useKeypress(async (key2, rl) => {+ if (status !== "idle") {+ return;}- };- if (pointer.initialized) {- return [pointer.get(), setFn];+ if (isEnterKey(key2)) {+ const input = value || defaultValue;+ const answer = input === "" ? undefined : Number(input);+ setStatus("loading");+ let isValid = true;+ if (required || answer != null) {+ isValid = validateNumber(answer, { min, max, step });+ }+ if (isValid === true) {+ isValid = await validate(answer);+ }+ if (isValid === true) {+ setValue(String(answer ?? ""));+ setStatus("done");+ done(answer);+ } else {+ rl.write(value);+ setError(isValid || "You must provide a valid numeric value");+ setStatus("idle");+ }+ } else if (isBackspaceKey(key2) && !value) {+ setDefaultValue(undefined);+ } else if (key2.name === "tab" && !value) {+ setDefaultValue(undefined);+ rl.clearLine(0);+ rl.write(defaultValue);+ setValue(defaultValue);+ } else {+ setValue(rl.line);+ setError(undefined);+ }+ });+ const message = theme.style.message(config.message, status);+ let formattedValue = value;+ if (status === "done") {+ formattedValue = theme.style.answer(value);}- const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;- pointer.set(value);- return [value, setFn];+ let defaultStr;+ if (defaultValue && status !== "done" && !value) {+ defaultStr = theme.style.defaultAnswer(defaultValue);+ }+ let error = "";+ if (errorMsg) {+ error = theme.style.error(errorMsg);+ }+ return [+ [prefix, message, defaultStr, formattedValue].filter((v) => v !== undefined).join(" "),+ error+ ];});-}-var init_use_state2 = __esm(() => {- init_hook_engine2();});-// node_modules/@inquirer/editor/node_modules/@inquirer/core/dist/esm/lib/use-effect.js-function useEffect2(cb, depArray) {- withPointer2((pointer) => {- const oldDeps = pointer.get();- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));- if (hasChanged) {- effectScheduler2.queue(cb);+// node_modules/@inquirer/expand/dist/esm/index.js+function normalizeChoices2(choices) {+ return choices.map((choice) => {+ if (Separator.isSeparator(choice)) {+ return choice;}- pointer.set(depArray);+ const name = "name" in choice ? choice.name : String(choice.value);+ const value = "value" in choice ? choice.value : name;+ return {+ value,+ name,+ key: choice.key.toLowerCase()+ };});}-var init_use_effect2 = __esm(() => {- init_hook_engine2();-});--// node_modules/@inquirer/editor/node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js-import process4 from "node:process";-function isUnicodeSupported2() {- if (process4.platform !== "win32") {- return process4.env["TERM"] !== "linux";- }- return Boolean(process4.env["WT_SESSION"]) || Boolean(process4.env["TERMINUS_SUBLIME"]) || process4.env["ConEmuTask"] === "{cmd::Cmder}" || process4.env["TERM_PROGRAM"] === "Terminus-Sublime" || process4.env["TERM_PROGRAM"] === "vscode" || process4.env["TERM"] === "xterm-256color" || process4.env["TERM"] === "alacritty" || process4.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";-}-var common2, specialMainSymbols2, specialFallbackSymbols2, mainSymbols2, fallbackSymbols2, shouldUseMain2, figures2, esm_default3, replacements2;-var init_esm4 = __esm(() => {- common2 = {- circleQuestionMark: "(?)",- questionMarkPrefix: "(?)",- square: "█",- squareDarkShade: "▓",- squareMediumShade: "▒",- squareLightShade: "░",- squareTop: "▀",- squareBottom: "▄",- squareLeft: "▌",- squareRight: "▐",- squareCenter: "■",- bullet: "●",- dot: "․",- ellipsis: "…",- pointerSmall: "›",- triangleUp: "▲",- triangleUpSmall: "▴",- triangleDown: "▼",- triangleDownSmall: "▾",- triangleLeftSmall: "◂",- triangleRightSmall: "▸",- home: "⌂",- heart: "♥",- musicNote: "♪",- musicNoteBeamed: "♫",- arrowUp: "↑",- arrowDown: "↓",- arrowLeft: "←",- arrowRight: "→",- arrowLeftRight: "↔",- arrowUpDown: "↕",- almostEqual: "≈",- notEqual: "≠",- lessOrEqual: "≤",- greaterOrEqual: "≥",- identical: "≡",- infinity: "∞",- subscriptZero: "₀",- subscriptOne: "₁",- subscriptTwo: "₂",- subscriptThree: "₃",- subscriptFour: "₄",- subscriptFive: "₅",- subscriptSix: "₆",- subscriptSeven: "₇",- subscriptEight: "₈",- subscriptNine: "₉",- oneHalf: "½",- oneThird: "⅓",- oneQuarter: "¼",- oneFifth: "⅕",- oneSixth: "⅙",- oneEighth: "⅛",- twoThirds: "⅔",- twoFifths: "⅖",- threeQuarters: "¾",- threeFifths: "⅗",- threeEighths: "⅜",- fourFifths: "⅘",- fiveSixths: "⅚",- fiveEighths: "⅝",- sevenEighths: "⅞",- line: "─",- lineBold: "━",- lineDouble: "═",- lineDashed0: "┄",- lineDashed1: "┅",- lineDashed2: "┈",- lineDashed3: "┉",- lineDashed4: "╌",- lineDashed5: "╍",- lineDashed6: "╴",- lineDashed7: "╶",- lineDashed8: "╸",- lineDashed9: "╺",- lineDashed10: "╼",- lineDashed11: "╾",- lineDashed12: "−",- lineDashed13: "–",- lineDashed14: "‐",- lineDashed15: "⁃",- lineVertical: "│",- lineVerticalBold: "┃",- lineVerticalDouble: "║",- lineVerticalDashed0: "┆",- lineVerticalDashed1: "┇",- lineVerticalDashed2: "┊",- lineVerticalDashed3: "┋",- lineVerticalDashed4: "╎",- lineVerticalDashed5: "╏",- lineVerticalDashed6: "╵",- lineVerticalDashed7: "╷",- lineVerticalDashed8: "╹",- lineVerticalDashed9: "╻",- lineVerticalDashed10: "╽",- lineVerticalDashed11: "╿",- lineDownLeft: "┐",- lineDownLeftArc: "╮",- lineDownBoldLeftBold: "┓",- lineDownBoldLeft: "┒",- lineDownLeftBold: "┑",- lineDownDoubleLeftDouble: "╗",- lineDownDoubleLeft: "╖",- lineDownLeftDouble: "╕",- lineDownRight: "┌",- lineDownRightArc: "╭",- lineDownBoldRightBold: "┏",- lineDownBoldRight: "┎",- lineDownRightBold: "┍",- lineDownDoubleRightDouble: "╔",- lineDownDoubleRight: "╓",- lineDownRightDouble: "╒",- lineUpLeft: "┘",- lineUpLeftArc: "╯",- lineUpBoldLeftBold: "┛",- lineUpBoldLeft: "┚",- lineUpLeftBold: "┙",- lineUpDoubleLeftDouble: "╝",- lineUpDoubleLeft: "╜",- lineUpLeftDouble: "╛",- lineUpRight: "└",- lineUpRightArc: "╰",- lineUpBoldRightBold: "┗",- lineUpBoldRight: "┖",- lineUpRightBold: "┕",- lineUpDoubleRightDouble: "╚",- lineUpDoubleRight: "╙",- lineUpRightDouble: "╘",- lineUpDownLeft: "┤",- lineUpBoldDownBoldLeftBold: "┫",- lineUpBoldDownBoldLeft: "┨",- lineUpDownLeftBold: "┥",- lineUpBoldDownLeftBold: "┩",- lineUpDownBoldLeftBold: "┪",- lineUpDownBoldLeft: "┧",- lineUpBoldDownLeft: "┦",- lineUpDoubleDownDoubleLeftDouble: "╣",- lineUpDoubleDownDoubleLeft: "╢",- lineUpDownLeftDouble: "╡",- lineUpDownRight: "├",- lineUpBoldDownBoldRightBold: "┣",- lineUpBoldDownBoldRight: "┠",- lineUpDownRightBold: "┝",- lineUpBoldDownRightBold: "┡",- lineUpDownBoldRightBold: "┢",- lineUpDownBoldRight: "┟",- lineUpBoldDownRight: "┞",- lineUpDoubleDownDoubleRightDouble: "╠",- lineUpDoubleDownDoubleRight: "╟",- lineUpDownRightDouble: "╞",- lineDownLeftRight: "┬",- lineDownBoldLeftBoldRightBold: "┳",- lineDownLeftBoldRightBold: "┯",- lineDownBoldLeftRight: "┰",- lineDownBoldLeftBoldRight: "┱",- lineDownBoldLeftRightBold: "┲",- lineDownLeftRightBold: "┮",- lineDownLeftBoldRight: "┭",- lineDownDoubleLeftDoubleRightDouble: "╦",- lineDownDoubleLeftRight: "╥",- lineDownLeftDoubleRightDouble: "╤",- lineUpLeftRight: "┴",- lineUpBoldLeftBoldRightBold: "┻",- lineUpLeftBoldRightBold: "┷",- lineUpBoldLeftRight: "┸",- lineUpBoldLeftBoldRight: "┹",- lineUpBoldLeftRightBold: "┺",- lineUpLeftRightBold: "┶",- lineUpLeftBoldRight: "┵",- lineUpDoubleLeftDoubleRightDouble: "╩",- lineUpDoubleLeftRight: "╨",- lineUpLeftDoubleRightDouble: "╧",- lineUpDownLeftRight: "┼",- lineUpBoldDownBoldLeftBoldRightBold: "╋",- lineUpDownBoldLeftBoldRightBold: "╈",- lineUpBoldDownLeftBoldRightBold: "╇",- lineUpBoldDownBoldLeftRightBold: "╊",- lineUpBoldDownBoldLeftBoldRight: "╉",- lineUpBoldDownLeftRight: "╀",- lineUpDownBoldLeftRight: "╁",- lineUpDownLeftBoldRight: "┽",- lineUpDownLeftRightBold: "┾",- lineUpBoldDownBoldLeftRight: "╂",- lineUpDownLeftBoldRightBold: "┿",- lineUpBoldDownLeftBoldRight: "╃",- lineUpBoldDownLeftRightBold: "╄",- lineUpDownBoldLeftBoldRight: "╅",- lineUpDownBoldLeftRightBold: "╆",- lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",- lineUpDoubleDownDoubleLeftRight: "╫",- lineUpDownLeftDoubleRightDouble: "╪",- lineCross: "╳",- lineBackslash: "╲",- lineSlash: "╱"- };- specialMainSymbols2 = {- tick: "✔",- info: "ℹ",- warning: "⚠",- cross: "✘",- squareSmall: "◻",- squareSmallFilled: "◼",- circle: "◯",- circleFilled: "◉",- circleDotted: "◌",- circleDouble: "◎",- circleCircle: "ⓞ",- circleCross: "ⓧ",- circlePipe: "Ⓘ",- radioOn: "◉",- radioOff: "◯",- checkboxOn: "☒",- checkboxOff: "☐",- checkboxCircleOn: "ⓧ",- checkboxCircleOff: "Ⓘ",- pointer: "❯",- triangleUpOutline: "△",- triangleLeft: "◀",- triangleRight: "▶",- lozenge: "◆",- lozengeOutline: "◇",- hamburger: "☰",- smiley: "㋡",- mustache: "෴",- star: "★",- play: "▶",- nodejs: "⬢",- oneSeventh: "⅐",- oneNinth: "⅑",- oneTenth: "⅒"- };- specialFallbackSymbols2 = {- tick: "√",- info: "i",- warning: "‼",- cross: "×",- squareSmall: "□",- squareSmallFilled: "■",- circle: "( )",- circleFilled: "(*)",- circleDotted: "( )",- circleDouble: "( )",- circleCircle: "(○)",- circleCross: "(×)",- circlePipe: "(│)",- radioOn: "(*)",- radioOff: "( )",- checkboxOn: "[×]",- checkboxOff: "[ ]",- checkboxCircleOn: "(×)",- checkboxCircleOff: "( )",- pointer: ">",- triangleUpOutline: "∆",- triangleLeft: "◄",- triangleRight: "►",- lozenge: "♦",- lozengeOutline: "◊",- hamburger: "≡",- smiley: "☺",- mustache: "┌─┐",- star: "✶",- play: "►",- nodejs: "♦",- oneSeventh: "1/7",- oneNinth: "1/9",- oneTenth: "1/10"- };- mainSymbols2 = { ...common2, ...specialMainSymbols2 };- fallbackSymbols2 = {- ...common2,- ...specialFallbackSymbols2- };- shouldUseMain2 = isUnicodeSupported2();- figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;- esm_default3 = figures2;- replacements2 = Object.entries(specialMainSymbols2);-});--// node_modules/@inquirer/editor/node_modules/@inquirer/core/dist/esm/lib/theme.js-var import_yoctocolors_cjs4, defaultTheme2;-var init_theme2 = __esm(() => {+var import_yoctocolors_cjs4, helpChoice, esm_default7;+var init_esm8 = __esm(() => {+ init_esm2();import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);- init_esm4();- defaultTheme2 = {- prefix: {- idle: import_yoctocolors_cjs4.default.blue("?"),- done: import_yoctocolors_cjs4.default.green(esm_default3.tick)- },- spinner: {- interval: 80,- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))- },- style: {- answer: import_yoctocolors_cjs4.default.cyan,- message: import_yoctocolors_cjs4.default.bold,- error: (text) => import_yoctocolors_cjs4.default.red(`> ${text}`),- defaultAnswer: (text) => import_yoctocolors_cjs4.default.dim(`(${text})`),- help: import_yoctocolors_cjs4.default.dim,- highlight: import_yoctocolors_cjs4.default.cyan,- key: (text) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text}>`))- }- };-});--// node_modules/@inquirer/editor/node_modules/@inquirer/core/dist/esm/lib/make-theme.js-function isPlainObject2(value) {- if (typeof value !== "object" || value === null)- return false;- let proto = value;- while (Object.getPrototypeOf(proto) !== null) {- proto = Object.getPrototypeOf(proto);- }- return Object.getPrototypeOf(value) === proto;-}-function deepMerge2(...objects) {- const output = {};- for (const obj of objects) {- for (const [key2, value] of Object.entries(obj)) {- const prevValue = output[key2];- output[key2] = isPlainObject2(prevValue) && isPlainObject2(value) ? deepMerge2(prevValue, value) : value;- }- }- return output;-}-function makeTheme2(...themes) {- const themesToMerge = [- defaultTheme2,- ...themes.filter((theme) => theme != null)- ];- return deepMerge2(...themesToMerge);-}-var init_make_theme2 = __esm(() => {- init_theme2();-});--// node_modules/@inquirer/editor/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js-import { AsyncResource as AsyncResource5 } from "node:async_hooks";-function usePrefix2({ status = "idle", theme }) {- const [showLoader, setShowLoader] = useState2(false);- const [tick, setTick] = useState2(0);- const { prefix, spinner } = makeTheme2(theme);- useEffect2(() => {- if (status === "loading") {- let tickInterval;- let inc = -1;- const delayTimeout = setTimeout(AsyncResource5.bind(() => {- setShowLoader(true);- tickInterval = setInterval(AsyncResource5.bind(() => {- inc = inc + 1;- setTick(inc % spinner.frames.length);- }), spinner.interval);- }), 300);- return () => {- clearTimeout(delayTimeout);- clearInterval(tickInterval);- };- } else {- setShowLoader(false);- }- }, [status]);- if (showLoader) {- return spinner.frames[tick];- }- const iconName = status === "loading" ? "idle" : status;- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];-}-var init_use_prefix2 = __esm(() => {- init_use_state2();- init_use_effect2();- init_make_theme2();-});--// node_modules/@inquirer/editor/node_modules/@inquirer/core/dist/esm/lib/use-ref.js-function useRef2(val) {- return useState2({ current: val })[0];-}-var init_use_ref2 = __esm(() => {- init_use_state2();-});--// node_modules/@inquirer/editor/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js-function useKeypress2(userHandler) {- const signal = useRef2(userHandler);- signal.current = userHandler;- useEffect2((rl) => {- let ignore = false;- const handler = withUpdates2((_input, event) => {- if (ignore)- return;- signal.current(event, rl);- });- rl.input.on("keypress", handler);- return () => {- ignore = true;- rl.input.removeListener("keypress", handler);- };- }, []);-}-var init_use_keypress2 = __esm(() => {- init_use_ref2();- init_use_effect2();- init_hook_engine2();-});--// node_modules/@inquirer/editor/node_modules/@inquirer/core/dist/esm/lib/utils.js-function breakLines2(content, width) {- return content.split(`-`).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`-`).map((str) => str.trimEnd())).join(`-`);-}-function readlineWidth2() {- return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });-}-var import_cli_width2, import_wrap_ansi2;-var init_utils2 = __esm(() => {- import_cli_width2 = __toESM(require_cli_width(), 1);- import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);- init_hook_engine2();-});--// node_modules/@inquirer/editor/node_modules/@inquirer/core/node_modules/strip-ansi/node_modules/ansi-regex/index.js-var require_ansi_regex3 = __commonJS((exports, module) => {- module.exports = ({ onlyFirst = false } = {}) => {- const pattern = [- "[\\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("|");- return new RegExp(pattern, onlyFirst ? undefined : "g");- };-});--// node_modules/@inquirer/editor/node_modules/@inquirer/core/node_modules/strip-ansi/index.js-var require_strip_ansi3 = __commonJS((exports, module) => {- var ansiRegex = require_ansi_regex3();- module.exports = (string2) => typeof string2 === "string" ? string2.replace(ansiRegex(), "") : string2;-});--// node_modules/@inquirer/editor/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js-function cursorDown2(n) {- return n > 0 ? import_ansi_escapes3.default.cursorDown(n) : "";-}--class ScreenManager2 {- rl;- height = 0;- extraLinesUnderPrompt = 0;- cursorPos;- constructor(rl) {- this.rl = rl;- this.rl = rl;- this.cursorPos = rl.getCursorPos();- }- write(content) {- this.rl.output.unmute();- this.rl.output.write(content);- this.rl.output.mute();- }- render(content, bottomContent = "") {- const promptLine = lastLine2(content);- const rawPromptLine = import_strip_ansi2.default(promptLine);- let prompt = rawPromptLine;- if (this.rl.line.length > 0) {- prompt = prompt.slice(0, -this.rl.line.length);- }- this.rl.setPrompt(prompt);- this.cursorPos = this.rl.getCursorPos();- const width = readlineWidth2();- content = breakLines2(content, width);- bottomContent = breakLines2(bottomContent, width);- if (rawPromptLine.length % width === 0) {- content += `-`;- }- let output = content + (bottomContent ? `-` + bottomContent : "");- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);- if (bottomContentHeight > 0)- output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);- output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);- this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);- this.extraLinesUnderPrompt = bottomContentHeight;- this.height = height2(output);- }- checkCursorPos() {- const cursorPos = this.rl.getCursorPos();- if (cursorPos.cols !== this.cursorPos.cols) {- this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));- this.cursorPos = cursorPos;- }- }- done({ clearContent }) {- this.rl.setPrompt("");- let output = cursorDown2(this.extraLinesUnderPrompt);- output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `-`;- output += import_ansi_escapes3.default.cursorShow;- this.write(output);- this.rl.close();- }-}-var import_strip_ansi2, import_ansi_escapes3, height2 = (content) => content.split(`-`).length, lastLine2 = (content) => content.split(`-`).pop() ?? "";-var init_screen_manager2 = __esm(() => {- import_strip_ansi2 = __toESM(require_strip_ansi3(), 1);- import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);- init_utils2();-});--// node_modules/@inquirer/editor/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js-var PromisePolyfill2;-var init_promise_polyfill2 = __esm(() => {- PromisePolyfill2 = class PromisePolyfill2 extends Promise {- static withResolver() {- let resolve;- let reject;- const promise = new Promise((res, rej) => {- resolve = res;- reject = rej;- });- return { promise, resolve, reject };- }- };-});--// node_modules/@inquirer/editor/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js-import * as readline4 from "node:readline";-import { AsyncResource as AsyncResource6 } from "node:async_hooks";-function getCallSites2() {- const _prepareStackTrace = Error.prepareStackTrace;- try {- let result = [];- Error.prepareStackTrace = (_2, callSites) => {- const callSitesWithoutCurrent = callSites.slice(1);- result = callSitesWithoutCurrent;- return callSitesWithoutCurrent;- };- new Error().stack;- return result;- } finally {- Error.prepareStackTrace = _prepareStackTrace;- }-}-function createPrompt2(view) {- const callSites = getCallSites2();- const callerFilename = callSites[1]?.getFileName?.();- const prompt = (config, context = {}) => {- const { input = process.stdin, signal } = context;- const cleanups = new Set;- const output = new import_mute_stream2.default;- output.pipe(context.output ?? process.stdout);- const rl = readline4.createInterface({- terminal: true,- input,- output- });- const screen = new ScreenManager2(rl);- const { promise, resolve, reject } = PromisePolyfill2.withResolver();- const cancel = () => reject(new CancelPromptError2);- if (signal) {- const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));- if (signal.aborted) {- abort();- return Object.assign(promise, { cancel });- }- signal.addEventListener("abort", abort);- cleanups.add(() => signal.removeEventListener("abort", abort));- }- cleanups.add(onExit((code, signal2) => {- reject(new ExitPromptError2(`User force closed the prompt with ${code} ${signal2}`));- }));- const checkCursorPos = () => screen.checkCursorPos();- rl.input.on("keypress", checkCursorPos);- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));- return withHooks2(rl, (cycle) => {- const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());- rl.on("close", hooksCleanup);- cleanups.add(() => rl.removeListener("close", hooksCleanup));- cycle(() => {- try {- const nextView = view(config, (value) => {- setImmediate(() => resolve(value));- });- if (nextView === undefined) {- throw new Error(`Prompt functions must return a string.- at ${callerFilename}`);- }- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;- screen.render(content, bottomContent);- effectScheduler2.run();- } catch (error) {- reject(error);- }- });- return Object.assign(promise.then((answer) => {- effectScheduler2.clearAll();- return answer;- }, (error) => {- effectScheduler2.clearAll();- throw error;- }).finally(() => {- cleanups.forEach((cleanup) => cleanup());- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });- output.end();- }).then(() => promise), { cancel });- });- };- return prompt;-}-var import_mute_stream2;-var init_create_prompt2 = __esm(() => {- import_mute_stream2 = __toESM(require_lib2(), 1);- init_mjs();- init_screen_manager2();- init_promise_polyfill2();- init_hook_engine2();- init_errors2();-});--// node_modules/@inquirer/editor/node_modules/@inquirer/core/dist/esm/index.js-var init_esm5 = __esm(() => {- init_errors2();- init_use_prefix2();- init_use_state2();- init_use_effect2();- init_use_keypress2();- init_make_theme2();- init_create_prompt2();-});--// node_modules/@inquirer/editor/dist/esm/index.js-import { AsyncResource as AsyncResource7 } from "node:async_hooks";-var import_external_editor, editorTheme, esm_default4;-var init_esm6 = __esm(() => {- import_external_editor = __toESM(require_main(), 1);- init_esm5();- editorTheme = {- validationFailureMode: "keep"+ helpChoice = {+ key: "h",+ name: "Help, list all options",+ value: undefined};- esm_default4 = createPrompt2((config, done) => {- const { waitForUseInput = true, file: { postfix = config.postfix ?? ".txt", ...fileProps } = {}, validate = () => true } = config;- const theme = makeTheme2(editorTheme, config.theme);- const [status, setStatus] = useState2("idle");- const [value = "", setValue] = useState2(config.default);- const [errorMsg, setError] = useState2();- const prefix = usePrefix2({ status, theme });- function startEditor(rl) {- rl.pause();- const editCallback = AsyncResource7.bind(async (error2, answer) => {- rl.resume();- if (error2) {- setError(error2.toString());+ esm_default7 = createPrompt((config, done) => {+ const { default: defaultKey = "h" } = config;+ const choices = useMemo(() => normalizeChoices2(config.choices), [config.choices]);+ const [status, setStatus] = useState("idle");+ const [value, setValue] = useState("");+ const [expanded, setExpanded] = useState(config.expanded ?? false);+ const [errorMsg, setError] = useState();+ const theme = makeTheme(config.theme);+ const prefix = usePrefix({ theme, status });+ useKeypress((event, rl) => {+ if (isEnterKey(event)) {+ const answer = (value || defaultKey).toLowerCase();+ if (answer === "h" && !expanded) {+ setExpanded(true);} else {- setStatus("loading");- const isValid = await validate(answer);- if (isValid === true) {- setError(undefined);+ const selectedChoice = choices.find((choice) => !Separator.isSeparator(choice) && choice.key === answer);+ if (selectedChoice) {setStatus("done");- done(answer);+ setValue(answer);+ done(selectedChoice.value);+ } else if (value === "") {+ setError("Please input a value");} else {- if (theme.validationFailureMode === "clear") {- setValue(config.default);- } else {- setValue(answer);- }- setError(isValid || "You must provide a valid value");- setStatus("idle");+ setError(`"${import_yoctocolors_cjs4.default.red(value)}" isn't an available option`);}}- });- import_external_editor.editAsync(value, (error2, answer) => void editCallback(error2, answer), {- postfix,- ...fileProps- });- }- useEffect2((rl) => {- if (!waitForUseInput) {- startEditor(rl);- }- }, []);- useKeypress2((key3, rl) => {- if (status !== "idle") {- return;- }- if (isEnterKey2(key3)) {- startEditor(rl);+ } else {+ setValue(rl.line);+ setError(undefined);}});const message = theme.style.message(config.message, status);- let helpTip = "";- if (status === "loading") {- helpTip = theme.style.help("Received");- } else if (status === "idle") {- const enterKey = theme.style.key("enter");- helpTip = theme.style.help(`Press ${enterKey} to launch your preferred editor.`);- }- let error = "";- if (errorMsg) {- error = theme.style.error(errorMsg);- }- return [[prefix, message, helpTip].filter(Boolean).join(" "), error];- });-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/dist/esm/lib/key.js-var isEnterKey3 = (key3) => key3.name === "enter" || key3.name === "return";--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/dist/esm/lib/errors.js-var AbortPromptError3, CancelPromptError3, ExitPromptError3, HookError3, ValidationError3;-var init_errors3 = __esm(() => {- AbortPromptError3 = class AbortPromptError3 extends Error {- name = "AbortPromptError";- message = "Prompt was aborted";- constructor(options) {- super();- this.cause = options?.cause;- }- };- CancelPromptError3 = class CancelPromptError3 extends Error {- name = "CancelPromptError";- message = "Prompt was canceled";- };- ExitPromptError3 = class ExitPromptError3 extends Error {- name = "ExitPromptError";- };- HookError3 = class HookError3 extends Error {- name = "HookError";- };- ValidationError3 = class ValidationError3 extends Error {- name = "ValidationError";- };-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js-import { AsyncLocalStorage as AsyncLocalStorage3, AsyncResource as AsyncResource8 } from "node:async_hooks";-function createStore3(rl) {- const store = {- rl,- hooks: [],- hooksCleanup: [],- hooksEffect: [],- index: 0,- handleChange() {- }- };- return store;-}-function withHooks3(rl, cb) {- const store = createStore3(rl);- return hookStorage3.run(store, () => {- function cycle(render) {- store.handleChange = () => {- store.index = 0;- render();- };- store.handleChange();- }- return cb(cycle);- });-}-function getStore3() {- const store = hookStorage3.getStore();- if (!store) {- throw new HookError3("[Inquirer] Hook functions can only be called from within a prompt");- }- return store;-}-function readline5() {- return getStore3().rl;-}-function withUpdates3(fn) {- const wrapped = (...args) => {- const store = getStore3();- let shouldUpdate = false;- const oldHandleChange = store.handleChange;- store.handleChange = () => {- shouldUpdate = true;- };- const returnValue = fn(...args);- if (shouldUpdate) {- oldHandleChange();+ if (status === "done") {+ const selectedChoice = choices.find((choice) => !Separator.isSeparator(choice) && choice.key === value.toLowerCase());+ return `${prefix} ${message} ${theme.style.answer(selectedChoice.name)}`;}- store.handleChange = oldHandleChange;- return returnValue;- };- return AsyncResource8.bind(wrapped);-}-function withPointer3(cb) {- const store = getStore3();- const { index } = store;- const pointer = {- get() {- return store.hooks[index];- },- set(value) {- store.hooks[index] = value;- },- initialized: index in store.hooks- };- const returnValue = cb(pointer);- store.index++;- return returnValue;-}-function handleChange3() {- getStore3().handleChange();-}-var hookStorage3, effectScheduler3;-var init_hook_engine3 = __esm(() => {- init_errors3();- hookStorage3 = new AsyncLocalStorage3;- effectScheduler3 = {- queue(cb) {- const store = getStore3();- const { index } = store;- store.hooksEffect.push(() => {- store.hooksCleanup[index]?.();- const cleanFn = cb(readline5());- if (cleanFn != null && typeof cleanFn !== "function") {- throw new ValidationError3("useEffect return value must be a cleanup function or nothing.");+ const allChoices = expanded ? choices : [...choices, helpChoice];+ let longChoices = "";+ let shortChoices = allChoices.map((choice) => {+ if (Separator.isSeparator(choice))+ return "";+ if (choice.key === defaultKey) {+ return choice.key.toUpperCase();+ }+ return choice.key;+ }).join("");+ shortChoices = ` ${theme.style.defaultAnswer(shortChoices)}`;+ if (expanded) {+ shortChoices = "";+ longChoices = allChoices.map((choice) => {+ if (Separator.isSeparator(choice)) {+ return ` ${choice.separator}`;}- store.hooksCleanup[index] = cleanFn;- });- },- run() {- const store = getStore3();- withUpdates3(() => {- store.hooksEffect.forEach((effect) => {- effect();- });- store.hooksEffect.length = 0;- })();- },- clearAll() {- const store = getStore3();- store.hooksCleanup.forEach((cleanFn) => {- cleanFn?.();- });- store.hooksEffect.length = 0;- store.hooksCleanup.length = 0;- }- };-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/dist/esm/lib/use-state.js-function useState3(defaultValue) {- return withPointer3((pointer) => {- const setFn = (newValue) => {- if (pointer.get() !== newValue) {- pointer.set(newValue);- handleChange3();- }- };- if (pointer.initialized) {- return [pointer.get(), setFn];- }- const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;- pointer.set(value);- return [value, setFn];- });-}-var init_use_state3 = __esm(() => {- init_hook_engine3();-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/dist/esm/lib/use-effect.js-function useEffect3(cb, depArray) {- withPointer3((pointer) => {- const oldDeps = pointer.get();- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));- if (hasChanged) {- effectScheduler3.queue(cb);- }- pointer.set(depArray);- });-}-var init_use_effect3 = __esm(() => {- init_hook_engine3();-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js-import process5 from "node:process";-function isUnicodeSupported3() {- if (process5.platform !== "win32") {- return process5.env["TERM"] !== "linux";- }- return Boolean(process5.env["WT_SESSION"]) || Boolean(process5.env["TERMINUS_SUBLIME"]) || process5.env["ConEmuTask"] === "{cmd::Cmder}" || process5.env["TERM_PROGRAM"] === "Terminus-Sublime" || process5.env["TERM_PROGRAM"] === "vscode" || process5.env["TERM"] === "xterm-256color" || process5.env["TERM"] === "alacritty" || process5.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";-}-var common3, specialMainSymbols3, specialFallbackSymbols3, mainSymbols3, fallbackSymbols3, shouldUseMain3, figures3, esm_default5, replacements3;-var init_esm7 = __esm(() => {- common3 = {- circleQuestionMark: "(?)",- questionMarkPrefix: "(?)",- square: "█",- squareDarkShade: "▓",- squareMediumShade: "▒",- squareLightShade: "░",- squareTop: "▀",- squareBottom: "▄",- squareLeft: "▌",- squareRight: "▐",- squareCenter: "■",- bullet: "●",- dot: "․",- ellipsis: "…",- pointerSmall: "›",- triangleUp: "▲",- triangleUpSmall: "▴",- triangleDown: "▼",- triangleDownSmall: "▾",- triangleLeftSmall: "◂",- triangleRightSmall: "▸",- home: "⌂",- heart: "♥",- musicNote: "♪",- musicNoteBeamed: "♫",- arrowUp: "↑",- arrowDown: "↓",- arrowLeft: "←",- arrowRight: "→",- arrowLeftRight: "↔",- arrowUpDown: "↕",- almostEqual: "≈",- notEqual: "≠",- lessOrEqual: "≤",- greaterOrEqual: "≥",- identical: "≡",- infinity: "∞",- subscriptZero: "₀",- subscriptOne: "₁",- subscriptTwo: "₂",- subscriptThree: "₃",- subscriptFour: "₄",- subscriptFive: "₅",- subscriptSix: "₆",- subscriptSeven: "₇",- subscriptEight: "₈",- subscriptNine: "₉",- oneHalf: "½",- oneThird: "⅓",- oneQuarter: "¼",- oneFifth: "⅕",- oneSixth: "⅙",- oneEighth: "⅛",- twoThirds: "⅔",- twoFifths: "⅖",- threeQuarters: "¾",- threeFifths: "⅗",- threeEighths: "⅜",- fourFifths: "⅘",- fiveSixths: "⅚",- fiveEighths: "⅝",- sevenEighths: "⅞",- line: "─",- lineBold: "━",- lineDouble: "═",- lineDashed0: "┄",- lineDashed1: "┅",- lineDashed2: "┈",- lineDashed3: "┉",- lineDashed4: "╌",- lineDashed5: "╍",- lineDashed6: "╴",- lineDashed7: "╶",- lineDashed8: "╸",- lineDashed9: "╺",- lineDashed10: "╼",- lineDashed11: "╾",- lineDashed12: "−",- lineDashed13: "–",- lineDashed14: "‐",- lineDashed15: "⁃",- lineVertical: "│",- lineVerticalBold: "┃",- lineVerticalDouble: "║",- lineVerticalDashed0: "┆",- lineVerticalDashed1: "┇",- lineVerticalDashed2: "┊",- lineVerticalDashed3: "┋",- lineVerticalDashed4: "╎",- lineVerticalDashed5: "╏",- lineVerticalDashed6: "╵",- lineVerticalDashed7: "╷",- lineVerticalDashed8: "╹",- lineVerticalDashed9: "╻",- lineVerticalDashed10: "╽",- lineVerticalDashed11: "╿",- lineDownLeft: "┐",- lineDownLeftArc: "╮",- lineDownBoldLeftBold: "┓",- lineDownBoldLeft: "┒",- lineDownLeftBold: "┑",- lineDownDoubleLeftDouble: "╗",- lineDownDoubleLeft: "╖",- lineDownLeftDouble: "╕",- lineDownRight: "┌",- lineDownRightArc: "╭",- lineDownBoldRightBold: "┏",- lineDownBoldRight: "┎",- lineDownRightBold: "┍",- lineDownDoubleRightDouble: "╔",- lineDownDoubleRight: "╓",- lineDownRightDouble: "╒",- lineUpLeft: "┘",- lineUpLeftArc: "╯",- lineUpBoldLeftBold: "┛",- lineUpBoldLeft: "┚",- lineUpLeftBold: "┙",- lineUpDoubleLeftDouble: "╝",- lineUpDoubleLeft: "╜",- lineUpLeftDouble: "╛",- lineUpRight: "└",- lineUpRightArc: "╰",- lineUpBoldRightBold: "┗",- lineUpBoldRight: "┖",- lineUpRightBold: "┕",- lineUpDoubleRightDouble: "╚",- lineUpDoubleRight: "╙",- lineUpRightDouble: "╘",- lineUpDownLeft: "┤",- lineUpBoldDownBoldLeftBold: "┫",- lineUpBoldDownBoldLeft: "┨",- lineUpDownLeftBold: "┥",- lineUpBoldDownLeftBold: "┩",- lineUpDownBoldLeftBold: "┪",- lineUpDownBoldLeft: "┧",- lineUpBoldDownLeft: "┦",- lineUpDoubleDownDoubleLeftDouble: "╣",- lineUpDoubleDownDoubleLeft: "╢",- lineUpDownLeftDouble: "╡",- lineUpDownRight: "├",- lineUpBoldDownBoldRightBold: "┣",- lineUpBoldDownBoldRight: "┠",- lineUpDownRightBold: "┝",- lineUpBoldDownRightBold: "┡",- lineUpDownBoldRightBold: "┢",- lineUpDownBoldRight: "┟",- lineUpBoldDownRight: "┞",- lineUpDoubleDownDoubleRightDouble: "╠",- lineUpDoubleDownDoubleRight: "╟",- lineUpDownRightDouble: "╞",- lineDownLeftRight: "┬",- lineDownBoldLeftBoldRightBold: "┳",- lineDownLeftBoldRightBold: "┯",- lineDownBoldLeftRight: "┰",- lineDownBoldLeftBoldRight: "┱",- lineDownBoldLeftRightBold: "┲",- lineDownLeftRightBold: "┮",- lineDownLeftBoldRight: "┭",- lineDownDoubleLeftDoubleRightDouble: "╦",- lineDownDoubleLeftRight: "╥",- lineDownLeftDoubleRightDouble: "╤",- lineUpLeftRight: "┴",- lineUpBoldLeftBoldRightBold: "┻",- lineUpLeftBoldRightBold: "┷",- lineUpBoldLeftRight: "┸",- lineUpBoldLeftBoldRight: "┹",- lineUpBoldLeftRightBold: "┺",- lineUpLeftRightBold: "┶",- lineUpLeftBoldRight: "┵",- lineUpDoubleLeftDoubleRightDouble: "╩",- lineUpDoubleLeftRight: "╨",- lineUpLeftDoubleRightDouble: "╧",- lineUpDownLeftRight: "┼",- lineUpBoldDownBoldLeftBoldRightBold: "╋",- lineUpDownBoldLeftBoldRightBold: "╈",- lineUpBoldDownLeftBoldRightBold: "╇",- lineUpBoldDownBoldLeftRightBold: "╊",- lineUpBoldDownBoldLeftBoldRight: "╉",- lineUpBoldDownLeftRight: "╀",- lineUpDownBoldLeftRight: "╁",- lineUpDownLeftBoldRight: "┽",- lineUpDownLeftRightBold: "┾",- lineUpBoldDownBoldLeftRight: "╂",- lineUpDownLeftBoldRightBold: "┿",- lineUpBoldDownLeftBoldRight: "╃",- lineUpBoldDownLeftRightBold: "╄",- lineUpDownBoldLeftBoldRight: "╅",- lineUpDownBoldLeftRightBold: "╆",- lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",- lineUpDoubleDownDoubleLeftRight: "╫",- lineUpDownLeftDoubleRightDouble: "╪",- lineCross: "╳",- lineBackslash: "╲",- lineSlash: "╱"- };- specialMainSymbols3 = {- tick: "✔",- info: "ℹ",- warning: "⚠",- cross: "✘",- squareSmall: "◻",- squareSmallFilled: "◼",- circle: "◯",- circleFilled: "◉",- circleDotted: "◌",- circleDouble: "◎",- circleCircle: "ⓞ",- circleCross: "ⓧ",- circlePipe: "Ⓘ",- radioOn: "◉",- radioOff: "◯",- checkboxOn: "☒",- checkboxOff: "☐",- checkboxCircleOn: "ⓧ",- checkboxCircleOff: "Ⓘ",- pointer: "❯",- triangleUpOutline: "△",- triangleLeft: "◀",- triangleRight: "▶",- lozenge: "◆",- lozengeOutline: "◇",- hamburger: "☰",- smiley: "㋡",- mustache: "෴",- star: "★",- play: "▶",- nodejs: "⬢",- oneSeventh: "⅐",- oneNinth: "⅑",- oneTenth: "⅒"- };- specialFallbackSymbols3 = {- tick: "√",- info: "i",- warning: "‼",- cross: "×",- squareSmall: "□",- squareSmallFilled: "■",- circle: "( )",- circleFilled: "(*)",- circleDotted: "( )",- circleDouble: "( )",- circleCircle: "(○)",- circleCross: "(×)",- circlePipe: "(│)",- radioOn: "(*)",- radioOff: "( )",- checkboxOn: "[×]",- checkboxOff: "[ ]",- checkboxCircleOn: "(×)",- checkboxCircleOff: "( )",- pointer: ">",- triangleUpOutline: "∆",- triangleLeft: "◄",- triangleRight: "►",- lozenge: "♦",- lozengeOutline: "◊",- hamburger: "≡",- smiley: "☺",- mustache: "┌─┐",- star: "✶",- play: "►",- nodejs: "♦",- oneSeventh: "1/7",- oneNinth: "1/9",- oneTenth: "1/10"- };- mainSymbols3 = { ...common3, ...specialMainSymbols3 };- fallbackSymbols3 = {- ...common3,- ...specialFallbackSymbols3- };- shouldUseMain3 = isUnicodeSupported3();- figures3 = shouldUseMain3 ? mainSymbols3 : fallbackSymbols3;- esm_default5 = figures3;- replacements3 = Object.entries(specialMainSymbols3);-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/dist/esm/lib/theme.js-var import_yoctocolors_cjs5, defaultTheme3;-var init_theme3 = __esm(() => {- import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);- init_esm7();- defaultTheme3 = {- prefix: {- idle: import_yoctocolors_cjs5.default.blue("?"),- done: import_yoctocolors_cjs5.default.green(esm_default5.tick)- },- spinner: {- interval: 80,- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs5.default.yellow(frame))- },- style: {- answer: import_yoctocolors_cjs5.default.cyan,- message: import_yoctocolors_cjs5.default.bold,- error: (text) => import_yoctocolors_cjs5.default.red(`> ${text}`),- defaultAnswer: (text) => import_yoctocolors_cjs5.default.dim(`(${text})`),- help: import_yoctocolors_cjs5.default.dim,- highlight: import_yoctocolors_cjs5.default.cyan,- key: (text) => import_yoctocolors_cjs5.default.cyan(import_yoctocolors_cjs5.default.bold(`<${text}>`))- }- };-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/dist/esm/lib/make-theme.js-function isPlainObject3(value) {- if (typeof value !== "object" || value === null)- return false;- let proto = value;- while (Object.getPrototypeOf(proto) !== null) {- proto = Object.getPrototypeOf(proto);- }- return Object.getPrototypeOf(value) === proto;-}-function deepMerge3(...objects) {- const output = {};- for (const obj of objects) {- for (const [key3, value] of Object.entries(obj)) {- const prevValue = output[key3];- output[key3] = isPlainObject3(prevValue) && isPlainObject3(value) ? deepMerge3(prevValue, value) : value;- }- }- return output;-}-function makeTheme3(...themes) {- const themesToMerge = [- defaultTheme3,- ...themes.filter((theme) => theme != null)- ];- return deepMerge3(...themesToMerge);-}-var init_make_theme3 = __esm(() => {- init_theme3();-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js-import { AsyncResource as AsyncResource9 } from "node:async_hooks";-function usePrefix3({ status = "idle", theme }) {- const [showLoader, setShowLoader] = useState3(false);- const [tick, setTick] = useState3(0);- const { prefix, spinner } = makeTheme3(theme);- useEffect3(() => {- if (status === "loading") {- let tickInterval;- let inc = -1;- const delayTimeout = setTimeout(AsyncResource9.bind(() => {- setShowLoader(true);- tickInterval = setInterval(AsyncResource9.bind(() => {- inc = inc + 1;- setTick(inc % spinner.frames.length);- }), spinner.interval);- }), 300);- return () => {- clearTimeout(delayTimeout);- clearInterval(tickInterval);- };- } else {- setShowLoader(false);- }- }, [status]);- if (showLoader) {- return spinner.frames[tick];- }- const iconName = status === "loading" ? "idle" : status;- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];-}-var init_use_prefix3 = __esm(() => {- init_use_state3();- init_use_effect3();- init_make_theme3();-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/dist/esm/lib/use-ref.js-function useRef3(val) {- return useState3({ current: val })[0];-}-var init_use_ref3 = __esm(() => {- init_use_state3();-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js-function useKeypress3(userHandler) {- const signal = useRef3(userHandler);- signal.current = userHandler;- useEffect3((rl) => {- let ignore = false;- const handler = withUpdates3((_input, event) => {- if (ignore)- return;- signal.current(event, rl);- });- rl.input.on("keypress", handler);- return () => {- ignore = true;- rl.input.removeListener("keypress", handler);- };- }, []);-}-var init_use_keypress3 = __esm(() => {- init_use_ref3();- init_use_effect3();- init_hook_engine3();-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/dist/esm/lib/utils.js-function breakLines3(content, width) {- return content.split(`-`).flatMap((line) => import_wrap_ansi3.default(line, width, { trim: false, hard: true }).split(`-`).map((str) => str.trimEnd())).join(`-`);-}-function readlineWidth3() {- return import_cli_width3.default({ defaultWidth: 80, output: readline5().output });-}-var import_cli_width3, import_wrap_ansi3;-var init_utils3 = __esm(() => {- import_cli_width3 = __toESM(require_cli_width(), 1);- import_wrap_ansi3 = __toESM(require_wrap_ansi(), 1);- init_hook_engine3();-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/node_modules/strip-ansi/node_modules/ansi-regex/index.js-var require_ansi_regex4 = __commonJS((exports, module) => {- module.exports = ({ onlyFirst = false } = {}) => {- const pattern = [- "[\\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("|");- return new RegExp(pattern, onlyFirst ? undefined : "g");- };-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/node_modules/strip-ansi/index.js-var require_strip_ansi4 = __commonJS((exports, module) => {- var ansiRegex = require_ansi_regex4();- module.exports = (string2) => typeof string2 === "string" ? string2.replace(ansiRegex(), "") : string2;-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js-function cursorDown3(n) {- return n > 0 ? import_ansi_escapes4.default.cursorDown(n) : "";-}--class ScreenManager3 {- rl;- height = 0;- extraLinesUnderPrompt = 0;- cursorPos;- constructor(rl) {- this.rl = rl;- this.rl = rl;- this.cursorPos = rl.getCursorPos();- }- write(content) {- this.rl.output.unmute();- this.rl.output.write(content);- this.rl.output.mute();- }- render(content, bottomContent = "") {- const promptLine = lastLine3(content);- const rawPromptLine = import_strip_ansi3.default(promptLine);- let prompt = rawPromptLine;- if (this.rl.line.length > 0) {- prompt = prompt.slice(0, -this.rl.line.length);- }- this.rl.setPrompt(prompt);- this.cursorPos = this.rl.getCursorPos();- const width = readlineWidth3();- content = breakLines3(content, width);- bottomContent = breakLines3(bottomContent, width);- if (rawPromptLine.length % width === 0) {- content += `-`;- }- let output = content + (bottomContent ? `-` + bottomContent : "");- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height3(bottomContent) : 0);- if (bottomContentHeight > 0)- output += import_ansi_escapes4.default.cursorUp(bottomContentHeight);- output += import_ansi_escapes4.default.cursorTo(this.cursorPos.cols);- this.write(cursorDown3(this.extraLinesUnderPrompt) + import_ansi_escapes4.default.eraseLines(this.height) + output);- this.extraLinesUnderPrompt = bottomContentHeight;- this.height = height3(output);- }- checkCursorPos() {- const cursorPos = this.rl.getCursorPos();- if (cursorPos.cols !== this.cursorPos.cols) {- this.write(import_ansi_escapes4.default.cursorTo(cursorPos.cols));- this.cursorPos = cursorPos;- }- }- done({ clearContent }) {- this.rl.setPrompt("");- let output = cursorDown3(this.extraLinesUnderPrompt);- output += clearContent ? import_ansi_escapes4.default.eraseLines(this.height) : `-`;- output += import_ansi_escapes4.default.cursorShow;- this.write(output);- this.rl.close();- }-}-var import_strip_ansi3, import_ansi_escapes4, height3 = (content) => content.split(`-`).length, lastLine3 = (content) => content.split(`-`).pop() ?? "";-var init_screen_manager3 = __esm(() => {- import_strip_ansi3 = __toESM(require_strip_ansi4(), 1);- import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);- init_utils3();-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js-var PromisePolyfill3;-var init_promise_polyfill3 = __esm(() => {- PromisePolyfill3 = class PromisePolyfill3 extends Promise {- static withResolver() {- let resolve;- let reject;- const promise = new Promise((res, rej) => {- resolve = res;- reject = rej;- });- return { promise, resolve, reject };- }- };-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js-import * as readline6 from "node:readline";-import { AsyncResource as AsyncResource10 } from "node:async_hooks";-function getCallSites3() {- const _prepareStackTrace = Error.prepareStackTrace;- try {- let result = [];- Error.prepareStackTrace = (_2, callSites) => {- const callSitesWithoutCurrent = callSites.slice(1);- result = callSitesWithoutCurrent;- return callSitesWithoutCurrent;- };- new Error().stack;- return result;- } finally {- Error.prepareStackTrace = _prepareStackTrace;- }-}-function createPrompt3(view) {- const callSites = getCallSites3();- const callerFilename = callSites[1]?.getFileName?.();- const prompt = (config, context = {}) => {- const { input = process.stdin, signal } = context;- const cleanups = new Set;- const output = new import_mute_stream3.default;- output.pipe(context.output ?? process.stdout);- const rl = readline6.createInterface({- terminal: true,- input,- output- });- const screen = new ScreenManager3(rl);- const { promise, resolve, reject } = PromisePolyfill3.withResolver();- const cancel = () => reject(new CancelPromptError3);- if (signal) {- const abort = () => reject(new AbortPromptError3({ cause: signal.reason }));- if (signal.aborted) {- abort();- return Object.assign(promise, { cancel });- }- signal.addEventListener("abort", abort);- cleanups.add(() => signal.removeEventListener("abort", abort));- }- cleanups.add(onExit((code, signal2) => {- reject(new ExitPromptError3(`User force closed the prompt with ${code} ${signal2}`));- }));- const checkCursorPos = () => screen.checkCursorPos();- rl.input.on("keypress", checkCursorPos);- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));- return withHooks3(rl, (cycle) => {- const hooksCleanup = AsyncResource10.bind(() => effectScheduler3.clearAll());- rl.on("close", hooksCleanup);- cleanups.add(() => rl.removeListener("close", hooksCleanup));- cycle(() => {- try {- const nextView = view(config, (value) => {- setImmediate(() => resolve(value));- });- if (nextView === undefined) {- throw new Error(`Prompt functions must return a string.- at ${callerFilename}`);- }- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;- screen.render(content, bottomContent);- effectScheduler3.run();- } catch (error) {- reject(error);- }- });- return Object.assign(promise.then((answer) => {- effectScheduler3.clearAll();- return answer;- }, (error) => {- effectScheduler3.clearAll();- throw error;- }).finally(() => {- cleanups.forEach((cleanup) => cleanup());- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });- output.end();- }).then(() => promise), { cancel });- });- };- return prompt;-}-var import_mute_stream3;-var init_create_prompt3 = __esm(() => {- import_mute_stream3 = __toESM(require_lib2(), 1);- init_mjs();- init_screen_manager3();- init_promise_polyfill3();- init_hook_engine3();- init_errors3();-});--// node_modules/@inquirer/confirm/node_modules/@inquirer/core/dist/esm/index.js-var init_esm8 = __esm(() => {- init_errors3();- init_use_prefix3();- init_use_state3();- init_use_keypress3();- init_make_theme3();- init_create_prompt3();-});--// node_modules/@inquirer/confirm/dist/esm/index.js-function getBooleanValue(value, defaultValue) {- let answer = defaultValue !== false;- if (/^(y|yes)/i.test(value))- answer = true;- else if (/^(n|no)/i.test(value))- answer = false;- return answer;-}-function boolToString(value) {- return value ? "Yes" : "No";-}-var esm_default6;-var init_esm9 = __esm(() => {- init_esm8();- esm_default6 = createPrompt3((config, done) => {- const { transformer = boolToString } = config;- const [status, setStatus] = useState3("idle");- const [value, setValue] = useState3("");- const theme = makeTheme3(config.theme);- const prefix = usePrefix3({ status, theme });- useKeypress3((key4, rl) => {- if (isEnterKey3(key4)) {- const answer = getBooleanValue(value, config.default);- setValue(transformer(answer));- setStatus("done");- done(answer);- } else if (key4.name === "tab") {- const answer = boolToString(!getBooleanValue(value, config.default));- rl.clearLine(0);- rl.write(answer);- setValue(answer);- } else {- setValue(rl.line);- }- });- let formattedValue = value;- let defaultValue = "";- if (status === "done") {- formattedValue = theme.style.answer(value);- } else {- defaultValue = ` ${theme.style.defaultAnswer(config.default === false ? "y/N" : "Y/n")}`;- }- const message = theme.style.message(config.message, status);- return `${prefix} ${message}${defaultValue} ${formattedValue}`;- });-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/key.js-var isBackspaceKey = (key4) => key4.name === "backspace", isEnterKey4 = (key4) => key4.name === "enter" || key4.name === "return";--// node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/errors.js-var AbortPromptError4, CancelPromptError4, ExitPromptError4, HookError4, ValidationError4;-var init_errors4 = __esm(() => {- AbortPromptError4 = class AbortPromptError4 extends Error {- name = "AbortPromptError";- message = "Prompt was aborted";- constructor(options) {- super();- this.cause = options?.cause;- }- };- CancelPromptError4 = class CancelPromptError4 extends Error {- name = "CancelPromptError";- message = "Prompt was canceled";- };- ExitPromptError4 = class ExitPromptError4 extends Error {- name = "ExitPromptError";- };- HookError4 = class HookError4 extends Error {- name = "HookError";- };- ValidationError4 = class ValidationError4 extends Error {- name = "ValidationError";- };-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js-import { AsyncLocalStorage as AsyncLocalStorage4, AsyncResource as AsyncResource11 } from "node:async_hooks";-function createStore4(rl) {- const store = {- rl,- hooks: [],- hooksCleanup: [],- hooksEffect: [],- index: 0,- handleChange() {- }- };- return store;-}-function withHooks4(rl, cb) {- const store = createStore4(rl);- return hookStorage4.run(store, () => {- function cycle(render) {- store.handleChange = () => {- store.index = 0;- render();- };- store.handleChange();- }- return cb(cycle);- });-}-function getStore4() {- const store = hookStorage4.getStore();- if (!store) {- throw new HookError4("[Inquirer] Hook functions can only be called from within a prompt");- }- return store;-}-function readline7() {- return getStore4().rl;-}-function withUpdates4(fn) {- const wrapped = (...args) => {- const store = getStore4();- let shouldUpdate = false;- const oldHandleChange = store.handleChange;- store.handleChange = () => {- shouldUpdate = true;- };- const returnValue = fn(...args);- if (shouldUpdate) {- oldHandleChange();- }- store.handleChange = oldHandleChange;- return returnValue;- };- return AsyncResource11.bind(wrapped);-}-function withPointer4(cb) {- const store = getStore4();- const { index } = store;- const pointer = {- get() {- return store.hooks[index];- },- set(value) {- store.hooks[index] = value;- },- initialized: index in store.hooks- };- const returnValue = cb(pointer);- store.index++;- return returnValue;-}-function handleChange4() {- getStore4().handleChange();-}-var hookStorage4, effectScheduler4;-var init_hook_engine4 = __esm(() => {- init_errors4();- hookStorage4 = new AsyncLocalStorage4;- effectScheduler4 = {- queue(cb) {- const store = getStore4();- const { index } = store;- store.hooksEffect.push(() => {- store.hooksCleanup[index]?.();- const cleanFn = cb(readline7());- if (cleanFn != null && typeof cleanFn !== "function") {- throw new ValidationError4("useEffect return value must be a cleanup function or nothing.");- }- store.hooksCleanup[index] = cleanFn;- });- },- run() {- const store = getStore4();- withUpdates4(() => {- store.hooksEffect.forEach((effect) => {- effect();- });- store.hooksEffect.length = 0;- })();- },- clearAll() {- const store = getStore4();- store.hooksCleanup.forEach((cleanFn) => {- cleanFn?.();- });- store.hooksEffect.length = 0;- store.hooksCleanup.length = 0;- }- };-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-state.js-function useState4(defaultValue) {- return withPointer4((pointer) => {- const setFn = (newValue) => {- if (pointer.get() !== newValue) {- pointer.set(newValue);- handleChange4();- }- };- if (pointer.initialized) {- return [pointer.get(), setFn];- }- const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;- pointer.set(value);- return [value, setFn];- });-}-var init_use_state4 = __esm(() => {- init_hook_engine4();-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-effect.js-function useEffect4(cb, depArray) {- withPointer4((pointer) => {- const oldDeps = pointer.get();- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));- if (hasChanged) {- effectScheduler4.queue(cb);- }- pointer.set(depArray);- });-}-var init_use_effect4 = __esm(() => {- init_hook_engine4();-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js-import process6 from "node:process";-function isUnicodeSupported4() {- if (process6.platform !== "win32") {- return process6.env["TERM"] !== "linux";- }- return Boolean(process6.env["WT_SESSION"]) || Boolean(process6.env["TERMINUS_SUBLIME"]) || process6.env["ConEmuTask"] === "{cmd::Cmder}" || process6.env["TERM_PROGRAM"] === "Terminus-Sublime" || process6.env["TERM_PROGRAM"] === "vscode" || process6.env["TERM"] === "xterm-256color" || process6.env["TERM"] === "alacritty" || process6.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";-}-var common4, specialMainSymbols4, specialFallbackSymbols4, mainSymbols4, fallbackSymbols4, shouldUseMain4, figures4, esm_default7, replacements4;-var init_esm10 = __esm(() => {- common4 = {- circleQuestionMark: "(?)",- questionMarkPrefix: "(?)",- square: "█",- squareDarkShade: "▓",- squareMediumShade: "▒",- squareLightShade: "░",- squareTop: "▀",- squareBottom: "▄",- squareLeft: "▌",- squareRight: "▐",- squareCenter: "■",- bullet: "●",- dot: "․",- ellipsis: "…",- pointerSmall: "›",- triangleUp: "▲",- triangleUpSmall: "▴",- triangleDown: "▼",- triangleDownSmall: "▾",- triangleLeftSmall: "◂",- triangleRightSmall: "▸",- home: "⌂",- heart: "♥",- musicNote: "♪",- musicNoteBeamed: "♫",- arrowUp: "↑",- arrowDown: "↓",- arrowLeft: "←",- arrowRight: "→",- arrowLeftRight: "↔",- arrowUpDown: "↕",- almostEqual: "≈",- notEqual: "≠",- lessOrEqual: "≤",- greaterOrEqual: "≥",- identical: "≡",- infinity: "∞",- subscriptZero: "₀",- subscriptOne: "₁",- subscriptTwo: "₂",- subscriptThree: "₃",- subscriptFour: "₄",- subscriptFive: "₅",- subscriptSix: "₆",- subscriptSeven: "₇",- subscriptEight: "₈",- subscriptNine: "₉",- oneHalf: "½",- oneThird: "⅓",- oneQuarter: "¼",- oneFifth: "⅕",- oneSixth: "⅙",- oneEighth: "⅛",- twoThirds: "⅔",- twoFifths: "⅖",- threeQuarters: "¾",- threeFifths: "⅗",- threeEighths: "⅜",- fourFifths: "⅘",- fiveSixths: "⅚",- fiveEighths: "⅝",- sevenEighths: "⅞",- line: "─",- lineBold: "━",- lineDouble: "═",- lineDashed0: "┄",- lineDashed1: "┅",- lineDashed2: "┈",- lineDashed3: "┉",- lineDashed4: "╌",- lineDashed5: "╍",- lineDashed6: "╴",- lineDashed7: "╶",- lineDashed8: "╸",- lineDashed9: "╺",- lineDashed10: "╼",- lineDashed11: "╾",- lineDashed12: "−",- lineDashed13: "–",- lineDashed14: "‐",- lineDashed15: "⁃",- lineVertical: "│",- lineVerticalBold: "┃",- lineVerticalDouble: "║",- lineVerticalDashed0: "┆",- lineVerticalDashed1: "┇",- lineVerticalDashed2: "┊",- lineVerticalDashed3: "┋",- lineVerticalDashed4: "╎",- lineVerticalDashed5: "╏",- lineVerticalDashed6: "╵",- lineVerticalDashed7: "╷",- lineVerticalDashed8: "╹",- lineVerticalDashed9: "╻",- lineVerticalDashed10: "╽",- lineVerticalDashed11: "╿",- lineDownLeft: "┐",- lineDownLeftArc: "╮",- lineDownBoldLeftBold: "┓",- lineDownBoldLeft: "┒",- lineDownLeftBold: "┑",- lineDownDoubleLeftDouble: "╗",- lineDownDoubleLeft: "╖",- lineDownLeftDouble: "╕",- lineDownRight: "┌",- lineDownRightArc: "╭",- lineDownBoldRightBold: "┏",- lineDownBoldRight: "┎",- lineDownRightBold: "┍",- lineDownDoubleRightDouble: "╔",- lineDownDoubleRight: "╓",- lineDownRightDouble: "╒",- lineUpLeft: "┘",- lineUpLeftArc: "╯",- lineUpBoldLeftBold: "┛",- lineUpBoldLeft: "┚",- lineUpLeftBold: "┙",- lineUpDoubleLeftDouble: "╝",- lineUpDoubleLeft: "╜",- lineUpLeftDouble: "╛",- lineUpRight: "└",- lineUpRightArc: "╰",- lineUpBoldRightBold: "┗",- lineUpBoldRight: "┖",- lineUpRightBold: "┕",- lineUpDoubleRightDouble: "╚",- lineUpDoubleRight: "╙",- lineUpRightDouble: "╘",- lineUpDownLeft: "┤",- lineUpBoldDownBoldLeftBold: "┫",- lineUpBoldDownBoldLeft: "┨",- lineUpDownLeftBold: "┥",- lineUpBoldDownLeftBold: "┩",- lineUpDownBoldLeftBold: "┪",- lineUpDownBoldLeft: "┧",- lineUpBoldDownLeft: "┦",- lineUpDoubleDownDoubleLeftDouble: "╣",- lineUpDoubleDownDoubleLeft: "╢",- lineUpDownLeftDouble: "╡",- lineUpDownRight: "├",- lineUpBoldDownBoldRightBold: "┣",- lineUpBoldDownBoldRight: "┠",- lineUpDownRightBold: "┝",- lineUpBoldDownRightBold: "┡",- lineUpDownBoldRightBold: "┢",- lineUpDownBoldRight: "┟",- lineUpBoldDownRight: "┞",- lineUpDoubleDownDoubleRightDouble: "╠",- lineUpDoubleDownDoubleRight: "╟",- lineUpDownRightDouble: "╞",- lineDownLeftRight: "┬",- lineDownBoldLeftBoldRightBold: "┳",- lineDownLeftBoldRightBold: "┯",- lineDownBoldLeftRight: "┰",- lineDownBoldLeftBoldRight: "┱",- lineDownBoldLeftRightBold: "┲",- lineDownLeftRightBold: "┮",- lineDownLeftBoldRight: "┭",- lineDownDoubleLeftDoubleRightDouble: "╦",- lineDownDoubleLeftRight: "╥",- lineDownLeftDoubleRightDouble: "╤",- lineUpLeftRight: "┴",- lineUpBoldLeftBoldRightBold: "┻",- lineUpLeftBoldRightBold: "┷",- lineUpBoldLeftRight: "┸",- lineUpBoldLeftBoldRight: "┹",- lineUpBoldLeftRightBold: "┺",- lineUpLeftRightBold: "┶",- lineUpLeftBoldRight: "┵",- lineUpDoubleLeftDoubleRightDouble: "╩",- lineUpDoubleLeftRight: "╨",- lineUpLeftDoubleRightDouble: "╧",- lineUpDownLeftRight: "┼",- lineUpBoldDownBoldLeftBoldRightBold: "╋",- lineUpDownBoldLeftBoldRightBold: "╈",- lineUpBoldDownLeftBoldRightBold: "╇",- lineUpBoldDownBoldLeftRightBold: "╊",- lineUpBoldDownBoldLeftBoldRight: "╉",- lineUpBoldDownLeftRight: "╀",- lineUpDownBoldLeftRight: "╁",- lineUpDownLeftBoldRight: "┽",- lineUpDownLeftRightBold: "┾",- lineUpBoldDownBoldLeftRight: "╂",- lineUpDownLeftBoldRightBold: "┿",- lineUpBoldDownLeftBoldRight: "╃",- lineUpBoldDownLeftRightBold: "╄",- lineUpDownBoldLeftBoldRight: "╅",- lineUpDownBoldLeftRightBold: "╆",- lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",- lineUpDoubleDownDoubleLeftRight: "╫",- lineUpDownLeftDoubleRightDouble: "╪",- lineCross: "╳",- lineBackslash: "╲",- lineSlash: "╱"- };- specialMainSymbols4 = {- tick: "✔",- info: "ℹ",- warning: "⚠",- cross: "✘",- squareSmall: "◻",- squareSmallFilled: "◼",- circle: "◯",- circleFilled: "◉",- circleDotted: "◌",- circleDouble: "◎",- circleCircle: "ⓞ",- circleCross: "ⓧ",- circlePipe: "Ⓘ",- radioOn: "◉",- radioOff: "◯",- checkboxOn: "☒",- checkboxOff: "☐",- checkboxCircleOn: "ⓧ",- checkboxCircleOff: "Ⓘ",- pointer: "❯",- triangleUpOutline: "△",- triangleLeft: "◀",- triangleRight: "▶",- lozenge: "◆",- lozengeOutline: "◇",- hamburger: "☰",- smiley: "㋡",- mustache: "෴",- star: "★",- play: "▶",- nodejs: "⬢",- oneSeventh: "⅐",- oneNinth: "⅑",- oneTenth: "⅒"- };- specialFallbackSymbols4 = {- tick: "√",- info: "i",- warning: "‼",- cross: "×",- squareSmall: "□",- squareSmallFilled: "■",- circle: "( )",- circleFilled: "(*)",- circleDotted: "( )",- circleDouble: "( )",- circleCircle: "(○)",- circleCross: "(×)",- circlePipe: "(│)",- radioOn: "(*)",- radioOff: "( )",- checkboxOn: "[×]",- checkboxOff: "[ ]",- checkboxCircleOn: "(×)",- checkboxCircleOff: "( )",- pointer: ">",- triangleUpOutline: "∆",- triangleLeft: "◄",- triangleRight: "►",- lozenge: "♦",- lozengeOutline: "◊",- hamburger: "≡",- smiley: "☺",- mustache: "┌─┐",- star: "✶",- play: "►",- nodejs: "♦",- oneSeventh: "1/7",- oneNinth: "1/9",- oneTenth: "1/10"- };- mainSymbols4 = { ...common4, ...specialMainSymbols4 };- fallbackSymbols4 = {- ...common4,- ...specialFallbackSymbols4- };- shouldUseMain4 = isUnicodeSupported4();- figures4 = shouldUseMain4 ? mainSymbols4 : fallbackSymbols4;- esm_default7 = figures4;- replacements4 = Object.entries(specialMainSymbols4);-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js-var import_yoctocolors_cjs6, defaultTheme4;-var init_theme4 = __esm(() => {- import_yoctocolors_cjs6 = __toESM(require_yoctocolors_cjs(), 1);- init_esm10();- defaultTheme4 = {- prefix: {- idle: import_yoctocolors_cjs6.default.blue("?"),- done: import_yoctocolors_cjs6.default.green(esm_default7.tick)- },- spinner: {- interval: 80,- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs6.default.yellow(frame))- },- style: {- answer: import_yoctocolors_cjs6.default.cyan,- message: import_yoctocolors_cjs6.default.bold,- error: (text) => import_yoctocolors_cjs6.default.red(`> ${text}`),- defaultAnswer: (text) => import_yoctocolors_cjs6.default.dim(`(${text})`),- help: import_yoctocolors_cjs6.default.dim,- highlight: import_yoctocolors_cjs6.default.cyan,- key: (text) => import_yoctocolors_cjs6.default.cyan(import_yoctocolors_cjs6.default.bold(`<${text}>`))- }- };-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/make-theme.js-function isPlainObject4(value) {- if (typeof value !== "object" || value === null)- return false;- let proto = value;- while (Object.getPrototypeOf(proto) !== null) {- proto = Object.getPrototypeOf(proto);- }- return Object.getPrototypeOf(value) === proto;-}-function deepMerge4(...objects) {- const output = {};- for (const obj of objects) {- for (const [key4, value] of Object.entries(obj)) {- const prevValue = output[key4];- output[key4] = isPlainObject4(prevValue) && isPlainObject4(value) ? deepMerge4(prevValue, value) : value;- }- }- return output;-}-function makeTheme4(...themes) {- const themesToMerge = [- defaultTheme4,- ...themes.filter((theme) => theme != null)- ];- return deepMerge4(...themesToMerge);-}-var init_make_theme4 = __esm(() => {- init_theme4();-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js-import { AsyncResource as AsyncResource12 } from "node:async_hooks";-function usePrefix4({ status = "idle", theme }) {- const [showLoader, setShowLoader] = useState4(false);- const [tick, setTick] = useState4(0);- const { prefix, spinner } = makeTheme4(theme);- useEffect4(() => {- if (status === "loading") {- let tickInterval;- let inc = -1;- const delayTimeout = setTimeout(AsyncResource12.bind(() => {- setShowLoader(true);- tickInterval = setInterval(AsyncResource12.bind(() => {- inc = inc + 1;- setTick(inc % spinner.frames.length);- }), spinner.interval);- }), 300);- return () => {- clearTimeout(delayTimeout);- clearInterval(tickInterval);- };- } else {- setShowLoader(false);- }- }, [status]);- if (showLoader) {- return spinner.frames[tick];- }- const iconName = status === "loading" ? "idle" : status;- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];-}-var init_use_prefix4 = __esm(() => {- init_use_state4();- init_use_effect4();- init_make_theme4();-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-ref.js-function useRef4(val) {- return useState4({ current: val })[0];-}-var init_use_ref4 = __esm(() => {- init_use_state4();-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js-function useKeypress4(userHandler) {- const signal = useRef4(userHandler);- signal.current = userHandler;- useEffect4((rl) => {- let ignore = false;- const handler = withUpdates4((_input, event) => {- if (ignore)- return;- signal.current(event, rl);- });- rl.input.on("keypress", handler);- return () => {- ignore = true;- rl.input.removeListener("keypress", handler);- };- }, []);-}-var init_use_keypress4 = __esm(() => {- init_use_ref4();- init_use_effect4();- init_hook_engine4();-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/utils.js-function breakLines4(content, width) {- return content.split(`-`).flatMap((line) => import_wrap_ansi4.default(line, width, { trim: false, hard: true }).split(`-`).map((str) => str.trimEnd())).join(`-`);-}-function readlineWidth4() {- return import_cli_width4.default({ defaultWidth: 80, output: readline7().output });-}-var import_cli_width4, import_wrap_ansi4;-var init_utils4 = __esm(() => {- import_cli_width4 = __toESM(require_cli_width(), 1);- import_wrap_ansi4 = __toESM(require_wrap_ansi(), 1);- init_hook_engine4();-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/node_modules/strip-ansi/node_modules/ansi-regex/index.js-var require_ansi_regex5 = __commonJS((exports, module) => {- module.exports = ({ onlyFirst = false } = {}) => {- const pattern = [- "[\\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("|");- return new RegExp(pattern, onlyFirst ? undefined : "g");- };-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/node_modules/strip-ansi/index.js-var require_strip_ansi5 = __commonJS((exports, module) => {- var ansiRegex = require_ansi_regex5();- module.exports = (string2) => typeof string2 === "string" ? string2.replace(ansiRegex(), "") : string2;-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js-function cursorDown4(n) {- return n > 0 ? import_ansi_escapes5.default.cursorDown(n) : "";-}--class ScreenManager4 {- rl;- height = 0;- extraLinesUnderPrompt = 0;- cursorPos;- constructor(rl) {- this.rl = rl;- this.rl = rl;- this.cursorPos = rl.getCursorPos();- }- write(content) {- this.rl.output.unmute();- this.rl.output.write(content);- this.rl.output.mute();- }- render(content, bottomContent = "") {- const promptLine = lastLine4(content);- const rawPromptLine = import_strip_ansi4.default(promptLine);- let prompt = rawPromptLine;- if (this.rl.line.length > 0) {- prompt = prompt.slice(0, -this.rl.line.length);- }- this.rl.setPrompt(prompt);- this.cursorPos = this.rl.getCursorPos();- const width = readlineWidth4();- content = breakLines4(content, width);- bottomContent = breakLines4(bottomContent, width);- if (rawPromptLine.length % width === 0) {- content += `-`;- }- let output = content + (bottomContent ? `-` + bottomContent : "");- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height4(bottomContent) : 0);- if (bottomContentHeight > 0)- output += import_ansi_escapes5.default.cursorUp(bottomContentHeight);- output += import_ansi_escapes5.default.cursorTo(this.cursorPos.cols);- this.write(cursorDown4(this.extraLinesUnderPrompt) + import_ansi_escapes5.default.eraseLines(this.height) + output);- this.extraLinesUnderPrompt = bottomContentHeight;- this.height = height4(output);- }- checkCursorPos() {- const cursorPos = this.rl.getCursorPos();- if (cursorPos.cols !== this.cursorPos.cols) {- this.write(import_ansi_escapes5.default.cursorTo(cursorPos.cols));- this.cursorPos = cursorPos;- }- }- done({ clearContent }) {- this.rl.setPrompt("");- let output = cursorDown4(this.extraLinesUnderPrompt);- output += clearContent ? import_ansi_escapes5.default.eraseLines(this.height) : `-`;- output += import_ansi_escapes5.default.cursorShow;- this.write(output);- this.rl.close();- }-}-var import_strip_ansi4, import_ansi_escapes5, height4 = (content) => content.split(`-`).length, lastLine4 = (content) => content.split(`-`).pop() ?? "";-var init_screen_manager4 = __esm(() => {- import_strip_ansi4 = __toESM(require_strip_ansi5(), 1);- import_ansi_escapes5 = __toESM(require_ansi_escapes(), 1);- init_utils4();-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js-var PromisePolyfill4;-var init_promise_polyfill4 = __esm(() => {- PromisePolyfill4 = class PromisePolyfill4 extends Promise {- static withResolver() {- let resolve;- let reject;- const promise = new Promise((res, rej) => {- resolve = res;- reject = rej;- });- return { promise, resolve, reject };- }- };-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js-import * as readline8 from "node:readline";-import { AsyncResource as AsyncResource13 } from "node:async_hooks";-function getCallSites4() {- const _prepareStackTrace = Error.prepareStackTrace;- try {- let result = [];- Error.prepareStackTrace = (_2, callSites) => {- const callSitesWithoutCurrent = callSites.slice(1);- result = callSitesWithoutCurrent;- return callSitesWithoutCurrent;- };- new Error().stack;- return result;- } finally {- Error.prepareStackTrace = _prepareStackTrace;- }-}-function createPrompt4(view) {- const callSites = getCallSites4();- const callerFilename = callSites[1]?.getFileName?.();- const prompt = (config, context = {}) => {- const { input = process.stdin, signal } = context;- const cleanups = new Set;- const output = new import_mute_stream4.default;- output.pipe(context.output ?? process.stdout);- const rl = readline8.createInterface({- terminal: true,- input,- output- });- const screen = new ScreenManager4(rl);- const { promise, resolve, reject } = PromisePolyfill4.withResolver();- const cancel = () => reject(new CancelPromptError4);- if (signal) {- const abort = () => reject(new AbortPromptError4({ cause: signal.reason }));- if (signal.aborted) {- abort();- return Object.assign(promise, { cancel });- }- signal.addEventListener("abort", abort);- cleanups.add(() => signal.removeEventListener("abort", abort));- }- cleanups.add(onExit((code, signal2) => {- reject(new ExitPromptError4(`User force closed the prompt with ${code} ${signal2}`));- }));- const checkCursorPos = () => screen.checkCursorPos();- rl.input.on("keypress", checkCursorPos);- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));- return withHooks4(rl, (cycle) => {- const hooksCleanup = AsyncResource13.bind(() => effectScheduler4.clearAll());- rl.on("close", hooksCleanup);- cleanups.add(() => rl.removeListener("close", hooksCleanup));- cycle(() => {- try {- const nextView = view(config, (value) => {- setImmediate(() => resolve(value));- });- if (nextView === undefined) {- throw new Error(`Prompt functions must return a string.- at ${callerFilename}`);- }- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;- screen.render(content, bottomContent);- effectScheduler4.run();- } catch (error) {- reject(error);- }- });- return Object.assign(promise.then((answer) => {- effectScheduler4.clearAll();- return answer;- }, (error) => {- effectScheduler4.clearAll();- throw error;- }).finally(() => {- cleanups.forEach((cleanup) => cleanup());- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });- output.end();- }).then(() => promise), { cancel });- });- };- return prompt;-}-var import_mute_stream4;-var init_create_prompt4 = __esm(() => {- import_mute_stream4 = __toESM(require_lib2(), 1);- init_mjs();- init_screen_manager4();- init_promise_polyfill4();- init_hook_engine4();- init_errors4();-});--// node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/index.js-var init_esm11 = __esm(() => {- init_errors4();- init_use_prefix4();- init_use_state4();- init_use_keypress4();- init_make_theme4();- init_create_prompt4();-});--// node_modules/@inquirer/input/dist/esm/index.js-var inputTheme, esm_default8;-var init_esm12 = __esm(() => {- init_esm11();- inputTheme = {- validationFailureMode: "keep"- };- esm_default8 = createPrompt4((config, done) => {- const { required, validate = () => true } = config;- const theme = makeTheme4(inputTheme, config.theme);- const [status, setStatus] = useState4("idle");- const [defaultValue = "", setDefaultValue] = useState4(config.default);- const [errorMsg, setError] = useState4();- const [value, setValue] = useState4("");- const prefix = usePrefix4({ status, theme });- useKeypress4(async (key5, rl) => {- if (status !== "idle") {- return;- }- if (isEnterKey4(key5)) {- const answer = value || defaultValue;- setStatus("loading");- const isValid = required && !answer ? "You must provide a value" : await validate(answer);- if (isValid === true) {- setValue(answer);- setStatus("done");- done(answer);- } else {- if (theme.validationFailureMode === "clear") {- setValue("");- } else {- rl.write(value);- }- setError(isValid || "You must provide a valid value");- setStatus("idle");- }- } else if (isBackspaceKey(key5) && !value) {- setDefaultValue(undefined);- } else if (key5.name === "tab" && !value) {- setDefaultValue(undefined);- rl.clearLine(0);- rl.write(defaultValue);- setValue(defaultValue);- } else {- setValue(rl.line);- setError(undefined);- }- });- const message = theme.style.message(config.message, status);- let formattedValue = value;- if (typeof config.transformer === "function") {- formattedValue = config.transformer(value, { isFinal: status === "done" });- } else if (status === "done") {- formattedValue = theme.style.answer(value);- }- let defaultStr;- if (defaultValue && status !== "done" && !value) {- defaultStr = theme.style.defaultAnswer(defaultValue);- }- let error = "";- if (errorMsg) {- error = theme.style.error(errorMsg);- }- return [- [prefix, message, defaultStr, formattedValue].filter((v) => v !== undefined).join(" "),- error- ];- });-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/dist/esm/lib/key.js-var isBackspaceKey2 = (key5) => key5.name === "backspace", isEnterKey5 = (key5) => key5.name === "enter" || key5.name === "return";--// node_modules/@inquirer/number/node_modules/@inquirer/core/dist/esm/lib/errors.js-var AbortPromptError5, CancelPromptError5, ExitPromptError5, HookError5, ValidationError5;-var init_errors5 = __esm(() => {- AbortPromptError5 = class AbortPromptError5 extends Error {- name = "AbortPromptError";- message = "Prompt was aborted";- constructor(options) {- super();- this.cause = options?.cause;- }- };- CancelPromptError5 = class CancelPromptError5 extends Error {- name = "CancelPromptError";- message = "Prompt was canceled";- };- ExitPromptError5 = class ExitPromptError5 extends Error {- name = "ExitPromptError";- };- HookError5 = class HookError5 extends Error {- name = "HookError";- };- ValidationError5 = class ValidationError5 extends Error {- name = "ValidationError";- };-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js-import { AsyncLocalStorage as AsyncLocalStorage5, AsyncResource as AsyncResource14 } from "node:async_hooks";-function createStore5(rl) {- const store = {- rl,- hooks: [],- hooksCleanup: [],- hooksEffect: [],- index: 0,- handleChange() {- }- };- return store;-}-function withHooks5(rl, cb) {- const store = createStore5(rl);- return hookStorage5.run(store, () => {- function cycle(render) {- store.handleChange = () => {- store.index = 0;- render();- };- store.handleChange();- }- return cb(cycle);- });-}-function getStore5() {- const store = hookStorage5.getStore();- if (!store) {- throw new HookError5("[Inquirer] Hook functions can only be called from within a prompt");- }- return store;-}-function readline9() {- return getStore5().rl;-}-function withUpdates5(fn) {- const wrapped = (...args) => {- const store = getStore5();- let shouldUpdate = false;- const oldHandleChange = store.handleChange;- store.handleChange = () => {- shouldUpdate = true;- };- const returnValue = fn(...args);- if (shouldUpdate) {- oldHandleChange();- }- store.handleChange = oldHandleChange;- return returnValue;- };- return AsyncResource14.bind(wrapped);-}-function withPointer5(cb) {- const store = getStore5();- const { index } = store;- const pointer = {- get() {- return store.hooks[index];- },- set(value) {- store.hooks[index] = value;- },- initialized: index in store.hooks- };- const returnValue = cb(pointer);- store.index++;- return returnValue;-}-function handleChange5() {- getStore5().handleChange();-}-var hookStorage5, effectScheduler5;-var init_hook_engine5 = __esm(() => {- init_errors5();- hookStorage5 = new AsyncLocalStorage5;- effectScheduler5 = {- queue(cb) {- const store = getStore5();- const { index } = store;- store.hooksEffect.push(() => {- store.hooksCleanup[index]?.();- const cleanFn = cb(readline9());- if (cleanFn != null && typeof cleanFn !== "function") {- throw new ValidationError5("useEffect return value must be a cleanup function or nothing.");- }- store.hooksCleanup[index] = cleanFn;- });- },- run() {- const store = getStore5();- withUpdates5(() => {- store.hooksEffect.forEach((effect) => {- effect();- });- store.hooksEffect.length = 0;- })();- },- clearAll() {- const store = getStore5();- store.hooksCleanup.forEach((cleanFn) => {- cleanFn?.();- });- store.hooksEffect.length = 0;- store.hooksCleanup.length = 0;- }- };-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/dist/esm/lib/use-state.js-function useState5(defaultValue) {- return withPointer5((pointer) => {- const setFn = (newValue) => {- if (pointer.get() !== newValue) {- pointer.set(newValue);- handleChange5();- }- };- if (pointer.initialized) {- return [pointer.get(), setFn];- }- const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;- pointer.set(value);- return [value, setFn];- });-}-var init_use_state5 = __esm(() => {- init_hook_engine5();-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/dist/esm/lib/use-effect.js-function useEffect5(cb, depArray) {- withPointer5((pointer) => {- const oldDeps = pointer.get();- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));- if (hasChanged) {- effectScheduler5.queue(cb);- }- pointer.set(depArray);- });-}-var init_use_effect5 = __esm(() => {- init_hook_engine5();-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js-import process7 from "node:process";-function isUnicodeSupported5() {- if (process7.platform !== "win32") {- return process7.env["TERM"] !== "linux";- }- return Boolean(process7.env["WT_SESSION"]) || Boolean(process7.env["TERMINUS_SUBLIME"]) || process7.env["ConEmuTask"] === "{cmd::Cmder}" || process7.env["TERM_PROGRAM"] === "Terminus-Sublime" || process7.env["TERM_PROGRAM"] === "vscode" || process7.env["TERM"] === "xterm-256color" || process7.env["TERM"] === "alacritty" || process7.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";-}-var common5, specialMainSymbols5, specialFallbackSymbols5, mainSymbols5, fallbackSymbols5, shouldUseMain5, figures5, esm_default9, replacements5;-var init_esm13 = __esm(() => {- common5 = {- circleQuestionMark: "(?)",- questionMarkPrefix: "(?)",- square: "█",- squareDarkShade: "▓",- squareMediumShade: "▒",- squareLightShade: "░",- squareTop: "▀",- squareBottom: "▄",- squareLeft: "▌",- squareRight: "▐",- squareCenter: "■",- bullet: "●",- dot: "․",- ellipsis: "…",- pointerSmall: "›",- triangleUp: "▲",- triangleUpSmall: "▴",- triangleDown: "▼",- triangleDownSmall: "▾",- triangleLeftSmall: "◂",- triangleRightSmall: "▸",- home: "⌂",- heart: "♥",- musicNote: "♪",- musicNoteBeamed: "♫",- arrowUp: "↑",- arrowDown: "↓",- arrowLeft: "←",- arrowRight: "→",- arrowLeftRight: "↔",- arrowUpDown: "↕",- almostEqual: "≈",- notEqual: "≠",- lessOrEqual: "≤",- greaterOrEqual: "≥",- identical: "≡",- infinity: "∞",- subscriptZero: "₀",- subscriptOne: "₁",- subscriptTwo: "₂",- subscriptThree: "₃",- subscriptFour: "₄",- subscriptFive: "₅",- subscriptSix: "₆",- subscriptSeven: "₇",- subscriptEight: "₈",- subscriptNine: "₉",- oneHalf: "½",- oneThird: "⅓",- oneQuarter: "¼",- oneFifth: "⅕",- oneSixth: "⅙",- oneEighth: "⅛",- twoThirds: "⅔",- twoFifths: "⅖",- threeQuarters: "¾",- threeFifths: "⅗",- threeEighths: "⅜",- fourFifths: "⅘",- fiveSixths: "⅚",- fiveEighths: "⅝",- sevenEighths: "⅞",- line: "─",- lineBold: "━",- lineDouble: "═",- lineDashed0: "┄",- lineDashed1: "┅",- lineDashed2: "┈",- lineDashed3: "┉",- lineDashed4: "╌",- lineDashed5: "╍",- lineDashed6: "╴",- lineDashed7: "╶",- lineDashed8: "╸",- lineDashed9: "╺",- lineDashed10: "╼",- lineDashed11: "╾",- lineDashed12: "−",- lineDashed13: "–",- lineDashed14: "‐",- lineDashed15: "⁃",- lineVertical: "│",- lineVerticalBold: "┃",- lineVerticalDouble: "║",- lineVerticalDashed0: "┆",- lineVerticalDashed1: "┇",- lineVerticalDashed2: "┊",- lineVerticalDashed3: "┋",- lineVerticalDashed4: "╎",- lineVerticalDashed5: "╏",- lineVerticalDashed6: "╵",- lineVerticalDashed7: "╷",- lineVerticalDashed8: "╹",- lineVerticalDashed9: "╻",- lineVerticalDashed10: "╽",- lineVerticalDashed11: "╿",- lineDownLeft: "┐",- lineDownLeftArc: "╮",- lineDownBoldLeftBold: "┓",- lineDownBoldLeft: "┒",- lineDownLeftBold: "┑",- lineDownDoubleLeftDouble: "╗",- lineDownDoubleLeft: "╖",- lineDownLeftDouble: "╕",- lineDownRight: "┌",- lineDownRightArc: "╭",- lineDownBoldRightBold: "┏",- lineDownBoldRight: "┎",- lineDownRightBold: "┍",- lineDownDoubleRightDouble: "╔",- lineDownDoubleRight: "╓",- lineDownRightDouble: "╒",- lineUpLeft: "┘",- lineUpLeftArc: "╯",- lineUpBoldLeftBold: "┛",- lineUpBoldLeft: "┚",- lineUpLeftBold: "┙",- lineUpDoubleLeftDouble: "╝",- lineUpDoubleLeft: "╜",- lineUpLeftDouble: "╛",- lineUpRight: "└",- lineUpRightArc: "╰",- lineUpBoldRightBold: "┗",- lineUpBoldRight: "┖",- lineUpRightBold: "┕",- lineUpDoubleRightDouble: "╚",- lineUpDoubleRight: "╙",- lineUpRightDouble: "╘",- lineUpDownLeft: "┤",- lineUpBoldDownBoldLeftBold: "┫",- lineUpBoldDownBoldLeft: "┨",- lineUpDownLeftBold: "┥",- lineUpBoldDownLeftBold: "┩",- lineUpDownBoldLeftBold: "┪",- lineUpDownBoldLeft: "┧",- lineUpBoldDownLeft: "┦",- lineUpDoubleDownDoubleLeftDouble: "╣",- lineUpDoubleDownDoubleLeft: "╢",- lineUpDownLeftDouble: "╡",- lineUpDownRight: "├",- lineUpBoldDownBoldRightBold: "┣",- lineUpBoldDownBoldRight: "┠",- lineUpDownRightBold: "┝",- lineUpBoldDownRightBold: "┡",- lineUpDownBoldRightBold: "┢",- lineUpDownBoldRight: "┟",- lineUpBoldDownRight: "┞",- lineUpDoubleDownDoubleRightDouble: "╠",- lineUpDoubleDownDoubleRight: "╟",- lineUpDownRightDouble: "╞",- lineDownLeftRight: "┬",- lineDownBoldLeftBoldRightBold: "┳",- lineDownLeftBoldRightBold: "┯",- lineDownBoldLeftRight: "┰",- lineDownBoldLeftBoldRight: "┱",- lineDownBoldLeftRightBold: "┲",- lineDownLeftRightBold: "┮",- lineDownLeftBoldRight: "┭",- lineDownDoubleLeftDoubleRightDouble: "╦",- lineDownDoubleLeftRight: "╥",- lineDownLeftDoubleRightDouble: "╤",- lineUpLeftRight: "┴",- lineUpBoldLeftBoldRightBold: "┻",- lineUpLeftBoldRightBold: "┷",- lineUpBoldLeftRight: "┸",- lineUpBoldLeftBoldRight: "┹",- lineUpBoldLeftRightBold: "┺",- lineUpLeftRightBold: "┶",- lineUpLeftBoldRight: "┵",- lineUpDoubleLeftDoubleRightDouble: "╩",- lineUpDoubleLeftRight: "╨",- lineUpLeftDoubleRightDouble: "╧",- lineUpDownLeftRight: "┼",- lineUpBoldDownBoldLeftBoldRightBold: "╋",- lineUpDownBoldLeftBoldRightBold: "╈",- lineUpBoldDownLeftBoldRightBold: "╇",- lineUpBoldDownBoldLeftRightBold: "╊",- lineUpBoldDownBoldLeftBoldRight: "╉",- lineUpBoldDownLeftRight: "╀",- lineUpDownBoldLeftRight: "╁",- lineUpDownLeftBoldRight: "┽",- lineUpDownLeftRightBold: "┾",- lineUpBoldDownBoldLeftRight: "╂",- lineUpDownLeftBoldRightBold: "┿",- lineUpBoldDownLeftBoldRight: "╃",- lineUpBoldDownLeftRightBold: "╄",- lineUpDownBoldLeftBoldRight: "╅",- lineUpDownBoldLeftRightBold: "╆",- lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",- lineUpDoubleDownDoubleLeftRight: "╫",- lineUpDownLeftDoubleRightDouble: "╪",- lineCross: "╳",- lineBackslash: "╲",- lineSlash: "╱"- };- specialMainSymbols5 = {- tick: "✔",- info: "ℹ",- warning: "⚠",- cross: "✘",- squareSmall: "◻",- squareSmallFilled: "◼",- circle: "◯",- circleFilled: "◉",- circleDotted: "◌",- circleDouble: "◎",- circleCircle: "ⓞ",- circleCross: "ⓧ",- circlePipe: "Ⓘ",- radioOn: "◉",- radioOff: "◯",- checkboxOn: "☒",- checkboxOff: "☐",- checkboxCircleOn: "ⓧ",- checkboxCircleOff: "Ⓘ",- pointer: "❯",- triangleUpOutline: "△",- triangleLeft: "◀",- triangleRight: "▶",- lozenge: "◆",- lozengeOutline: "◇",- hamburger: "☰",- smiley: "㋡",- mustache: "෴",- star: "★",- play: "▶",- nodejs: "⬢",- oneSeventh: "⅐",- oneNinth: "⅑",- oneTenth: "⅒"- };- specialFallbackSymbols5 = {- tick: "√",- info: "i",- warning: "‼",- cross: "×",- squareSmall: "□",- squareSmallFilled: "■",- circle: "( )",- circleFilled: "(*)",- circleDotted: "( )",- circleDouble: "( )",- circleCircle: "(○)",- circleCross: "(×)",- circlePipe: "(│)",- radioOn: "(*)",- radioOff: "( )",- checkboxOn: "[×]",- checkboxOff: "[ ]",- checkboxCircleOn: "(×)",- checkboxCircleOff: "( )",- pointer: ">",- triangleUpOutline: "∆",- triangleLeft: "◄",- triangleRight: "►",- lozenge: "♦",- lozengeOutline: "◊",- hamburger: "≡",- smiley: "☺",- mustache: "┌─┐",- star: "✶",- play: "►",- nodejs: "♦",- oneSeventh: "1/7",- oneNinth: "1/9",- oneTenth: "1/10"- };- mainSymbols5 = { ...common5, ...specialMainSymbols5 };- fallbackSymbols5 = {- ...common5,- ...specialFallbackSymbols5- };- shouldUseMain5 = isUnicodeSupported5();- figures5 = shouldUseMain5 ? mainSymbols5 : fallbackSymbols5;- esm_default9 = figures5;- replacements5 = Object.entries(specialMainSymbols5);-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/dist/esm/lib/theme.js-var import_yoctocolors_cjs7, defaultTheme5;-var init_theme5 = __esm(() => {- import_yoctocolors_cjs7 = __toESM(require_yoctocolors_cjs(), 1);- init_esm13();- defaultTheme5 = {- prefix: {- idle: import_yoctocolors_cjs7.default.blue("?"),- done: import_yoctocolors_cjs7.default.green(esm_default9.tick)- },- spinner: {- interval: 80,- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs7.default.yellow(frame))- },- style: {- answer: import_yoctocolors_cjs7.default.cyan,- message: import_yoctocolors_cjs7.default.bold,- error: (text) => import_yoctocolors_cjs7.default.red(`> ${text}`),- defaultAnswer: (text) => import_yoctocolors_cjs7.default.dim(`(${text})`),- help: import_yoctocolors_cjs7.default.dim,- highlight: import_yoctocolors_cjs7.default.cyan,- key: (text) => import_yoctocolors_cjs7.default.cyan(import_yoctocolors_cjs7.default.bold(`<${text}>`))- }- };-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/dist/esm/lib/make-theme.js-function isPlainObject5(value) {- if (typeof value !== "object" || value === null)- return false;- let proto = value;- while (Object.getPrototypeOf(proto) !== null) {- proto = Object.getPrototypeOf(proto);- }- return Object.getPrototypeOf(value) === proto;-}-function deepMerge5(...objects) {- const output = {};- for (const obj of objects) {- for (const [key5, value] of Object.entries(obj)) {- const prevValue = output[key5];- output[key5] = isPlainObject5(prevValue) && isPlainObject5(value) ? deepMerge5(prevValue, value) : value;- }- }- return output;-}-function makeTheme5(...themes) {- const themesToMerge = [- defaultTheme5,- ...themes.filter((theme) => theme != null)- ];- return deepMerge5(...themesToMerge);-}-var init_make_theme5 = __esm(() => {- init_theme5();-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js-import { AsyncResource as AsyncResource15 } from "node:async_hooks";-function usePrefix5({ status = "idle", theme }) {- const [showLoader, setShowLoader] = useState5(false);- const [tick, setTick] = useState5(0);- const { prefix, spinner } = makeTheme5(theme);- useEffect5(() => {- if (status === "loading") {- let tickInterval;- let inc = -1;- const delayTimeout = setTimeout(AsyncResource15.bind(() => {- setShowLoader(true);- tickInterval = setInterval(AsyncResource15.bind(() => {- inc = inc + 1;- setTick(inc % spinner.frames.length);- }), spinner.interval);- }), 300);- return () => {- clearTimeout(delayTimeout);- clearInterval(tickInterval);- };- } else {- setShowLoader(false);- }- }, [status]);- if (showLoader) {- return spinner.frames[tick];- }- const iconName = status === "loading" ? "idle" : status;- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];-}-var init_use_prefix5 = __esm(() => {- init_use_state5();- init_use_effect5();- init_make_theme5();-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/dist/esm/lib/use-ref.js-function useRef5(val) {- return useState5({ current: val })[0];-}-var init_use_ref5 = __esm(() => {- init_use_state5();-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js-function useKeypress5(userHandler) {- const signal = useRef5(userHandler);- signal.current = userHandler;- useEffect5((rl) => {- let ignore = false;- const handler = withUpdates5((_input, event) => {- if (ignore)- return;- signal.current(event, rl);- });- rl.input.on("keypress", handler);- return () => {- ignore = true;- rl.input.removeListener("keypress", handler);- };- }, []);-}-var init_use_keypress5 = __esm(() => {- init_use_ref5();- init_use_effect5();- init_hook_engine5();-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/dist/esm/lib/utils.js-function breakLines5(content, width) {- return content.split(`-`).flatMap((line) => import_wrap_ansi5.default(line, width, { trim: false, hard: true }).split(`-`).map((str) => str.trimEnd())).join(`-`);-}-function readlineWidth5() {- return import_cli_width5.default({ defaultWidth: 80, output: readline9().output });-}-var import_cli_width5, import_wrap_ansi5;-var init_utils5 = __esm(() => {- import_cli_width5 = __toESM(require_cli_width(), 1);- import_wrap_ansi5 = __toESM(require_wrap_ansi(), 1);- init_hook_engine5();-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/node_modules/strip-ansi/node_modules/ansi-regex/index.js-var require_ansi_regex6 = __commonJS((exports, module) => {- module.exports = ({ onlyFirst = false } = {}) => {- const pattern = [- "[\\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("|");- return new RegExp(pattern, onlyFirst ? undefined : "g");- };-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/node_modules/strip-ansi/index.js-var require_strip_ansi6 = __commonJS((exports, module) => {- var ansiRegex = require_ansi_regex6();- module.exports = (string2) => typeof string2 === "string" ? string2.replace(ansiRegex(), "") : string2;-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js-function cursorDown5(n) {- return n > 0 ? import_ansi_escapes6.default.cursorDown(n) : "";-}--class ScreenManager5 {- rl;- height = 0;- extraLinesUnderPrompt = 0;- cursorPos;- constructor(rl) {- this.rl = rl;- this.rl = rl;- this.cursorPos = rl.getCursorPos();- }- write(content) {- this.rl.output.unmute();- this.rl.output.write(content);- this.rl.output.mute();- }- render(content, bottomContent = "") {- const promptLine = lastLine5(content);- const rawPromptLine = import_strip_ansi5.default(promptLine);- let prompt = rawPromptLine;- if (this.rl.line.length > 0) {- prompt = prompt.slice(0, -this.rl.line.length);- }- this.rl.setPrompt(prompt);- this.cursorPos = this.rl.getCursorPos();- const width = readlineWidth5();- content = breakLines5(content, width);- bottomContent = breakLines5(bottomContent, width);- if (rawPromptLine.length % width === 0) {- content += `-`;- }- let output = content + (bottomContent ? `-` + bottomContent : "");- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height5(bottomContent) : 0);- if (bottomContentHeight > 0)- output += import_ansi_escapes6.default.cursorUp(bottomContentHeight);- output += import_ansi_escapes6.default.cursorTo(this.cursorPos.cols);- this.write(cursorDown5(this.extraLinesUnderPrompt) + import_ansi_escapes6.default.eraseLines(this.height) + output);- this.extraLinesUnderPrompt = bottomContentHeight;- this.height = height5(output);- }- checkCursorPos() {- const cursorPos = this.rl.getCursorPos();- if (cursorPos.cols !== this.cursorPos.cols) {- this.write(import_ansi_escapes6.default.cursorTo(cursorPos.cols));- this.cursorPos = cursorPos;- }- }- done({ clearContent }) {- this.rl.setPrompt("");- let output = cursorDown5(this.extraLinesUnderPrompt);- output += clearContent ? import_ansi_escapes6.default.eraseLines(this.height) : `-`;- output += import_ansi_escapes6.default.cursorShow;- this.write(output);- this.rl.close();- }-}-var import_strip_ansi5, import_ansi_escapes6, height5 = (content) => content.split(`-`).length, lastLine5 = (content) => content.split(`-`).pop() ?? "";-var init_screen_manager5 = __esm(() => {- import_strip_ansi5 = __toESM(require_strip_ansi6(), 1);- import_ansi_escapes6 = __toESM(require_ansi_escapes(), 1);- init_utils5();-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js-var PromisePolyfill5;-var init_promise_polyfill5 = __esm(() => {- PromisePolyfill5 = class PromisePolyfill5 extends Promise {- static withResolver() {- let resolve;- let reject;- const promise = new Promise((res, rej) => {- resolve = res;- reject = rej;- });- return { promise, resolve, reject };- }- };-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js-import * as readline10 from "node:readline";-import { AsyncResource as AsyncResource16 } from "node:async_hooks";-function getCallSites5() {- const _prepareStackTrace = Error.prepareStackTrace;- try {- let result = [];- Error.prepareStackTrace = (_2, callSites) => {- const callSitesWithoutCurrent = callSites.slice(1);- result = callSitesWithoutCurrent;- return callSitesWithoutCurrent;- };- new Error().stack;- return result;- } finally {- Error.prepareStackTrace = _prepareStackTrace;- }-}-function createPrompt5(view) {- const callSites = getCallSites5();- const callerFilename = callSites[1]?.getFileName?.();- const prompt = (config, context = {}) => {- const { input = process.stdin, signal } = context;- const cleanups = new Set;- const output = new import_mute_stream5.default;- output.pipe(context.output ?? process.stdout);- const rl = readline10.createInterface({- terminal: true,- input,- output- });- const screen = new ScreenManager5(rl);- const { promise, resolve, reject } = PromisePolyfill5.withResolver();- const cancel = () => reject(new CancelPromptError5);- if (signal) {- const abort = () => reject(new AbortPromptError5({ cause: signal.reason }));- if (signal.aborted) {- abort();- return Object.assign(promise, { cancel });- }- signal.addEventListener("abort", abort);- cleanups.add(() => signal.removeEventListener("abort", abort));- }- cleanups.add(onExit((code, signal2) => {- reject(new ExitPromptError5(`User force closed the prompt with ${code} ${signal2}`));- }));- const checkCursorPos = () => screen.checkCursorPos();- rl.input.on("keypress", checkCursorPos);- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));- return withHooks5(rl, (cycle) => {- const hooksCleanup = AsyncResource16.bind(() => effectScheduler5.clearAll());- rl.on("close", hooksCleanup);- cleanups.add(() => rl.removeListener("close", hooksCleanup));- cycle(() => {- try {- const nextView = view(config, (value) => {- setImmediate(() => resolve(value));- });- if (nextView === undefined) {- throw new Error(`Prompt functions must return a string.- at ${callerFilename}`);- }- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;- screen.render(content, bottomContent);- effectScheduler5.run();- } catch (error) {- reject(error);- }- });- return Object.assign(promise.then((answer) => {- effectScheduler5.clearAll();- return answer;- }, (error) => {- effectScheduler5.clearAll();- throw error;- }).finally(() => {- cleanups.forEach((cleanup) => cleanup());- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });- output.end();- }).then(() => promise), { cancel });- });- };- return prompt;-}-var import_mute_stream5;-var init_create_prompt5 = __esm(() => {- import_mute_stream5 = __toESM(require_lib2(), 1);- init_mjs();- init_screen_manager5();- init_promise_polyfill5();- init_hook_engine5();- init_errors5();-});--// node_modules/@inquirer/number/node_modules/@inquirer/core/dist/esm/index.js-var init_esm14 = __esm(() => {- init_errors5();- init_use_prefix5();- init_use_state5();- init_use_keypress5();- init_make_theme5();- init_create_prompt5();-});--// node_modules/@inquirer/number/dist/esm/index.js-function isStepOf(value, step, min) {- const valuePow = value * Math.pow(10, 6);- const stepPow = step * Math.pow(10, 6);- const minPow = min * Math.pow(10, 6);- return (valuePow - (Number.isFinite(min) ? minPow : 0)) % stepPow === 0;-}-function validateNumber(value, { min, max, step }) {- if (value == null || Number.isNaN(value)) {- return false;- } else if (value < min || value > max) {- return `Value must be between ${min} and ${max}`;- } else if (step !== "any" && !isStepOf(value, step, min)) {- return `Value must be a multiple of ${step}${Number.isFinite(min) ? ` starting from ${min}` : ""}`;- }- return true;-}-var esm_default10;-var init_esm15 = __esm(() => {- init_esm14();- esm_default10 = createPrompt5((config, done) => {- const { validate = () => true, min = -Infinity, max = Infinity, step = 1, required = false } = config;- const theme = makeTheme5(config.theme);- const [status, setStatus] = useState5("idle");- const [value, setValue] = useState5("");- const validDefault = validateNumber(config.default, { min, max, step }) === true ? config.default?.toString() : undefined;- const [defaultValue = "", setDefaultValue] = useState5(validDefault);- const [errorMsg, setError] = useState5();- const prefix = usePrefix5({ status, theme });- useKeypress5(async (key6, rl) => {- if (status !== "idle") {- return;- }- if (isEnterKey5(key6)) {- const input = value || defaultValue;- const answer = input === "" ? undefined : Number(input);- setStatus("loading");- let isValid = true;- if (required || answer != null) {- isValid = validateNumber(answer, { min, max, step });- }- if (isValid === true) {- isValid = await validate(answer);- }- if (isValid === true) {- setValue(String(answer ?? ""));- setStatus("done");- done(answer);- } else {- rl.write(value);- setError(isValid || "You must provide a valid numeric value");- setStatus("idle");- }- } else if (isBackspaceKey2(key6) && !value) {- setDefaultValue(undefined);- } else if (key6.name === "tab" && !value) {- setDefaultValue(undefined);- rl.clearLine(0);- rl.write(defaultValue);- setValue(defaultValue);- } else {- setValue(rl.line);- setError(undefined);- }- });- const message = theme.style.message(config.message, status);- let formattedValue = value;- if (status === "done") {- formattedValue = theme.style.answer(value);- }- let defaultStr;- if (defaultValue && status !== "done" && !value) {- defaultStr = theme.style.defaultAnswer(defaultValue);- }- let error = "";- if (errorMsg) {- error = theme.style.error(errorMsg);- }- return [- [prefix, message, defaultStr, formattedValue].filter((v) => v !== undefined).join(" "),- error- ];- });-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/lib/key.js-var isEnterKey6 = (key6) => key6.name === "enter" || key6.name === "return";--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/lib/errors.js-var AbortPromptError6, CancelPromptError6, ExitPromptError6, HookError6, ValidationError6;-var init_errors6 = __esm(() => {- AbortPromptError6 = class AbortPromptError6 extends Error {- name = "AbortPromptError";- message = "Prompt was aborted";- constructor(options) {- super();- this.cause = options?.cause;- }- };- CancelPromptError6 = class CancelPromptError6 extends Error {- name = "CancelPromptError";- message = "Prompt was canceled";- };- ExitPromptError6 = class ExitPromptError6 extends Error {- name = "ExitPromptError";- };- HookError6 = class HookError6 extends Error {- name = "HookError";- };- ValidationError6 = class ValidationError6 extends Error {- name = "ValidationError";- };-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js-import { AsyncLocalStorage as AsyncLocalStorage6, AsyncResource as AsyncResource17 } from "node:async_hooks";-function createStore6(rl) {- const store = {- rl,- hooks: [],- hooksCleanup: [],- hooksEffect: [],- index: 0,- handleChange() {- }- };- return store;-}-function withHooks6(rl, cb) {- const store = createStore6(rl);- return hookStorage6.run(store, () => {- function cycle(render) {- store.handleChange = () => {- store.index = 0;- render();- };- store.handleChange();- }- return cb(cycle);- });-}-function getStore6() {- const store = hookStorage6.getStore();- if (!store) {- throw new HookError6("[Inquirer] Hook functions can only be called from within a prompt");- }- return store;-}-function readline11() {- return getStore6().rl;-}-function withUpdates6(fn) {- const wrapped = (...args) => {- const store = getStore6();- let shouldUpdate = false;- const oldHandleChange = store.handleChange;- store.handleChange = () => {- shouldUpdate = true;- };- const returnValue = fn(...args);- if (shouldUpdate) {- oldHandleChange();- }- store.handleChange = oldHandleChange;- return returnValue;- };- return AsyncResource17.bind(wrapped);-}-function withPointer6(cb) {- const store = getStore6();- const { index } = store;- const pointer = {- get() {- return store.hooks[index];- },- set(value) {- store.hooks[index] = value;- },- initialized: index in store.hooks- };- const returnValue = cb(pointer);- store.index++;- return returnValue;-}-function handleChange6() {- getStore6().handleChange();-}-var hookStorage6, effectScheduler6;-var init_hook_engine6 = __esm(() => {- init_errors6();- hookStorage6 = new AsyncLocalStorage6;- effectScheduler6 = {- queue(cb) {- const store = getStore6();- const { index } = store;- store.hooksEffect.push(() => {- store.hooksCleanup[index]?.();- const cleanFn = cb(readline11());- if (cleanFn != null && typeof cleanFn !== "function") {- throw new ValidationError6("useEffect return value must be a cleanup function or nothing.");- }- store.hooksCleanup[index] = cleanFn;- });- },- run() {- const store = getStore6();- withUpdates6(() => {- store.hooksEffect.forEach((effect) => {- effect();- });- store.hooksEffect.length = 0;- })();- },- clearAll() {- const store = getStore6();- store.hooksCleanup.forEach((cleanFn) => {- cleanFn?.();- });- store.hooksEffect.length = 0;- store.hooksCleanup.length = 0;- }- };-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/lib/use-state.js-function useState6(defaultValue) {- return withPointer6((pointer) => {- const setFn = (newValue) => {- if (pointer.get() !== newValue) {- pointer.set(newValue);- handleChange6();- }- };- if (pointer.initialized) {- return [pointer.get(), setFn];- }- const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;- pointer.set(value);- return [value, setFn];- });-}-var init_use_state6 = __esm(() => {- init_hook_engine6();-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/lib/use-effect.js-function useEffect6(cb, depArray) {- withPointer6((pointer) => {- const oldDeps = pointer.get();- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));- if (hasChanged) {- effectScheduler6.queue(cb);- }- pointer.set(depArray);- });-}-var init_use_effect6 = __esm(() => {- init_hook_engine6();-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js-import process8 from "node:process";-function isUnicodeSupported6() {- if (process8.platform !== "win32") {- return process8.env["TERM"] !== "linux";- }- return Boolean(process8.env["WT_SESSION"]) || Boolean(process8.env["TERMINUS_SUBLIME"]) || process8.env["ConEmuTask"] === "{cmd::Cmder}" || process8.env["TERM_PROGRAM"] === "Terminus-Sublime" || process8.env["TERM_PROGRAM"] === "vscode" || process8.env["TERM"] === "xterm-256color" || process8.env["TERM"] === "alacritty" || process8.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";-}-var common6, specialMainSymbols6, specialFallbackSymbols6, mainSymbols6, fallbackSymbols6, shouldUseMain6, figures6, esm_default11, replacements6;-var init_esm16 = __esm(() => {- common6 = {- circleQuestionMark: "(?)",- questionMarkPrefix: "(?)",- square: "█",- squareDarkShade: "▓",- squareMediumShade: "▒",- squareLightShade: "░",- squareTop: "▀",- squareBottom: "▄",- squareLeft: "▌",- squareRight: "▐",- squareCenter: "■",- bullet: "●",- dot: "․",- ellipsis: "…",- pointerSmall: "›",- triangleUp: "▲",- triangleUpSmall: "▴",- triangleDown: "▼",- triangleDownSmall: "▾",- triangleLeftSmall: "◂",- triangleRightSmall: "▸",- home: "⌂",- heart: "♥",- musicNote: "♪",- musicNoteBeamed: "♫",- arrowUp: "↑",- arrowDown: "↓",- arrowLeft: "←",- arrowRight: "→",- arrowLeftRight: "↔",- arrowUpDown: "↕",- almostEqual: "≈",- notEqual: "≠",- lessOrEqual: "≤",- greaterOrEqual: "≥",- identical: "≡",- infinity: "∞",- subscriptZero: "₀",- subscriptOne: "₁",- subscriptTwo: "₂",- subscriptThree: "₃",- subscriptFour: "₄",- subscriptFive: "₅",- subscriptSix: "₆",- subscriptSeven: "₇",- subscriptEight: "₈",- subscriptNine: "₉",- oneHalf: "½",- oneThird: "⅓",- oneQuarter: "¼",- oneFifth: "⅕",- oneSixth: "⅙",- oneEighth: "⅛",- twoThirds: "⅔",- twoFifths: "⅖",- threeQuarters: "¾",- threeFifths: "⅗",- threeEighths: "⅜",- fourFifths: "⅘",- fiveSixths: "⅚",- fiveEighths: "⅝",- sevenEighths: "⅞",- line: "─",- lineBold: "━",- lineDouble: "═",- lineDashed0: "┄",- lineDashed1: "┅",- lineDashed2: "┈",- lineDashed3: "┉",- lineDashed4: "╌",- lineDashed5: "╍",- lineDashed6: "╴",- lineDashed7: "╶",- lineDashed8: "╸",- lineDashed9: "╺",- lineDashed10: "╼",- lineDashed11: "╾",- lineDashed12: "−",- lineDashed13: "–",- lineDashed14: "‐",- lineDashed15: "⁃",- lineVertical: "│",- lineVerticalBold: "┃",- lineVerticalDouble: "║",- lineVerticalDashed0: "┆",- lineVerticalDashed1: "┇",- lineVerticalDashed2: "┊",- lineVerticalDashed3: "┋",- lineVerticalDashed4: "╎",- lineVerticalDashed5: "╏",- lineVerticalDashed6: "╵",- lineVerticalDashed7: "╷",- lineVerticalDashed8: "╹",- lineVerticalDashed9: "╻",- lineVerticalDashed10: "╽",- lineVerticalDashed11: "╿",- lineDownLeft: "┐",- lineDownLeftArc: "╮",- lineDownBoldLeftBold: "┓",- lineDownBoldLeft: "┒",- lineDownLeftBold: "┑",- lineDownDoubleLeftDouble: "╗",- lineDownDoubleLeft: "╖",- lineDownLeftDouble: "╕",- lineDownRight: "┌",- lineDownRightArc: "╭",- lineDownBoldRightBold: "┏",- lineDownBoldRight: "┎",- lineDownRightBold: "┍",- lineDownDoubleRightDouble: "╔",- lineDownDoubleRight: "╓",- lineDownRightDouble: "╒",- lineUpLeft: "┘",- lineUpLeftArc: "╯",- lineUpBoldLeftBold: "┛",- lineUpBoldLeft: "┚",- lineUpLeftBold: "┙",- lineUpDoubleLeftDouble: "╝",- lineUpDoubleLeft: "╜",- lineUpLeftDouble: "╛",- lineUpRight: "└",- lineUpRightArc: "╰",- lineUpBoldRightBold: "┗",- lineUpBoldRight: "┖",- lineUpRightBold: "┕",- lineUpDoubleRightDouble: "╚",- lineUpDoubleRight: "╙",- lineUpRightDouble: "╘",- lineUpDownLeft: "┤",- lineUpBoldDownBoldLeftBold: "┫",- lineUpBoldDownBoldLeft: "┨",- lineUpDownLeftBold: "┥",- lineUpBoldDownLeftBold: "┩",- lineUpDownBoldLeftBold: "┪",- lineUpDownBoldLeft: "┧",- lineUpBoldDownLeft: "┦",- lineUpDoubleDownDoubleLeftDouble: "╣",- lineUpDoubleDownDoubleLeft: "╢",- lineUpDownLeftDouble: "╡",- lineUpDownRight: "├",- lineUpBoldDownBoldRightBold: "┣",- lineUpBoldDownBoldRight: "┠",- lineUpDownRightBold: "┝",- lineUpBoldDownRightBold: "┡",- lineUpDownBoldRightBold: "┢",- lineUpDownBoldRight: "┟",- lineUpBoldDownRight: "┞",- lineUpDoubleDownDoubleRightDouble: "╠",- lineUpDoubleDownDoubleRight: "╟",- lineUpDownRightDouble: "╞",- lineDownLeftRight: "┬",- lineDownBoldLeftBoldRightBold: "┳",- lineDownLeftBoldRightBold: "┯",- lineDownBoldLeftRight: "┰",- lineDownBoldLeftBoldRight: "┱",- lineDownBoldLeftRightBold: "┲",- lineDownLeftRightBold: "┮",- lineDownLeftBoldRight: "┭",- lineDownDoubleLeftDoubleRightDouble: "╦",- lineDownDoubleLeftRight: "╥",- lineDownLeftDoubleRightDouble: "╤",- lineUpLeftRight: "┴",- lineUpBoldLeftBoldRightBold: "┻",- lineUpLeftBoldRightBold: "┷",- lineUpBoldLeftRight: "┸",- lineUpBoldLeftBoldRight: "┹",- lineUpBoldLeftRightBold: "┺",- lineUpLeftRightBold: "┶",- lineUpLeftBoldRight: "┵",- lineUpDoubleLeftDoubleRightDouble: "╩",- lineUpDoubleLeftRight: "╨",- lineUpLeftDoubleRightDouble: "╧",- lineUpDownLeftRight: "┼",- lineUpBoldDownBoldLeftBoldRightBold: "╋",- lineUpDownBoldLeftBoldRightBold: "╈",- lineUpBoldDownLeftBoldRightBold: "╇",- lineUpBoldDownBoldLeftRightBold: "╊",- lineUpBoldDownBoldLeftBoldRight: "╉",- lineUpBoldDownLeftRight: "╀",- lineUpDownBoldLeftRight: "╁",- lineUpDownLeftBoldRight: "┽",- lineUpDownLeftRightBold: "┾",- lineUpBoldDownBoldLeftRight: "╂",- lineUpDownLeftBoldRightBold: "┿",- lineUpBoldDownLeftBoldRight: "╃",- lineUpBoldDownLeftRightBold: "╄",- lineUpDownBoldLeftBoldRight: "╅",- lineUpDownBoldLeftRightBold: "╆",- lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",- lineUpDoubleDownDoubleLeftRight: "╫",- lineUpDownLeftDoubleRightDouble: "╪",- lineCross: "╳",- lineBackslash: "╲",- lineSlash: "╱"- };- specialMainSymbols6 = {- tick: "✔",- info: "ℹ",- warning: "⚠",- cross: "✘",- squareSmall: "◻",- squareSmallFilled: "◼",- circle: "◯",- circleFilled: "◉",- circleDotted: "◌",- circleDouble: "◎",- circleCircle: "ⓞ",- circleCross: "ⓧ",- circlePipe: "Ⓘ",- radioOn: "◉",- radioOff: "◯",- checkboxOn: "☒",- checkboxOff: "☐",- checkboxCircleOn: "ⓧ",- checkboxCircleOff: "Ⓘ",- pointer: "❯",- triangleUpOutline: "△",- triangleLeft: "◀",- triangleRight: "▶",- lozenge: "◆",- lozengeOutline: "◇",- hamburger: "☰",- smiley: "㋡",- mustache: "෴",- star: "★",- play: "▶",- nodejs: "⬢",- oneSeventh: "⅐",- oneNinth: "⅑",- oneTenth: "⅒"- };- specialFallbackSymbols6 = {- tick: "√",- info: "i",- warning: "‼",- cross: "×",- squareSmall: "□",- squareSmallFilled: "■",- circle: "( )",- circleFilled: "(*)",- circleDotted: "( )",- circleDouble: "( )",- circleCircle: "(○)",- circleCross: "(×)",- circlePipe: "(│)",- radioOn: "(*)",- radioOff: "( )",- checkboxOn: "[×]",- checkboxOff: "[ ]",- checkboxCircleOn: "(×)",- checkboxCircleOff: "( )",- pointer: ">",- triangleUpOutline: "∆",- triangleLeft: "◄",- triangleRight: "►",- lozenge: "♦",- lozengeOutline: "◊",- hamburger: "≡",- smiley: "☺",- mustache: "┌─┐",- star: "✶",- play: "►",- nodejs: "♦",- oneSeventh: "1/7",- oneNinth: "1/9",- oneTenth: "1/10"- };- mainSymbols6 = { ...common6, ...specialMainSymbols6 };- fallbackSymbols6 = {- ...common6,- ...specialFallbackSymbols6- };- shouldUseMain6 = isUnicodeSupported6();- figures6 = shouldUseMain6 ? mainSymbols6 : fallbackSymbols6;- esm_default11 = figures6;- replacements6 = Object.entries(specialMainSymbols6);-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/lib/theme.js-var import_yoctocolors_cjs8, defaultTheme6;-var init_theme6 = __esm(() => {- import_yoctocolors_cjs8 = __toESM(require_yoctocolors_cjs(), 1);- init_esm16();- defaultTheme6 = {- prefix: {- idle: import_yoctocolors_cjs8.default.blue("?"),- done: import_yoctocolors_cjs8.default.green(esm_default11.tick)- },- spinner: {- interval: 80,- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs8.default.yellow(frame))- },- style: {- answer: import_yoctocolors_cjs8.default.cyan,- message: import_yoctocolors_cjs8.default.bold,- error: (text) => import_yoctocolors_cjs8.default.red(`> ${text}`),- defaultAnswer: (text) => import_yoctocolors_cjs8.default.dim(`(${text})`),- help: import_yoctocolors_cjs8.default.dim,- highlight: import_yoctocolors_cjs8.default.cyan,- key: (text) => import_yoctocolors_cjs8.default.cyan(import_yoctocolors_cjs8.default.bold(`<${text}>`))- }- };-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/lib/make-theme.js-function isPlainObject6(value) {- if (typeof value !== "object" || value === null)- return false;- let proto = value;- while (Object.getPrototypeOf(proto) !== null) {- proto = Object.getPrototypeOf(proto);- }- return Object.getPrototypeOf(value) === proto;-}-function deepMerge6(...objects) {- const output = {};- for (const obj of objects) {- for (const [key6, value] of Object.entries(obj)) {- const prevValue = output[key6];- output[key6] = isPlainObject6(prevValue) && isPlainObject6(value) ? deepMerge6(prevValue, value) : value;- }- }- return output;-}-function makeTheme6(...themes) {- const themesToMerge = [- defaultTheme6,- ...themes.filter((theme) => theme != null)- ];- return deepMerge6(...themesToMerge);-}-var init_make_theme6 = __esm(() => {- init_theme6();-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js-import { AsyncResource as AsyncResource18 } from "node:async_hooks";-function usePrefix6({ status = "idle", theme }) {- const [showLoader, setShowLoader] = useState6(false);- const [tick, setTick] = useState6(0);- const { prefix, spinner } = makeTheme6(theme);- useEffect6(() => {- if (status === "loading") {- let tickInterval;- let inc = -1;- const delayTimeout = setTimeout(AsyncResource18.bind(() => {- setShowLoader(true);- tickInterval = setInterval(AsyncResource18.bind(() => {- inc = inc + 1;- setTick(inc % spinner.frames.length);- }), spinner.interval);- }), 300);- return () => {- clearTimeout(delayTimeout);- clearInterval(tickInterval);- };- } else {- setShowLoader(false);- }- }, [status]);- if (showLoader) {- return spinner.frames[tick];- }- const iconName = status === "loading" ? "idle" : status;- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];-}-var init_use_prefix6 = __esm(() => {- init_use_state6();- init_use_effect6();- init_make_theme6();-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/lib/use-memo.js-function useMemo2(fn, dependencies) {- return withPointer6((pointer) => {- const prev = pointer.get();- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {- const value = fn();- pointer.set({ value, dependencies });- return value;- }- return prev.value;- });-}-var init_use_memo2 = __esm(() => {- init_hook_engine6();-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/lib/use-ref.js-function useRef6(val) {- return useState6({ current: val })[0];-}-var init_use_ref6 = __esm(() => {- init_use_state6();-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js-function useKeypress6(userHandler) {- const signal = useRef6(userHandler);- signal.current = userHandler;- useEffect6((rl) => {- let ignore = false;- const handler = withUpdates6((_input, event) => {- if (ignore)- return;- signal.current(event, rl);- });- rl.input.on("keypress", handler);- return () => {- ignore = true;- rl.input.removeListener("keypress", handler);- };- }, []);-}-var init_use_keypress6 = __esm(() => {- init_use_ref6();- init_use_effect6();- init_hook_engine6();-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/lib/utils.js-function breakLines6(content, width) {- return content.split(`-`).flatMap((line) => import_wrap_ansi6.default(line, width, { trim: false, hard: true }).split(`-`).map((str) => str.trimEnd())).join(`-`);-}-function readlineWidth6() {- return import_cli_width6.default({ defaultWidth: 80, output: readline11().output });-}-var import_cli_width6, import_wrap_ansi6;-var init_utils6 = __esm(() => {- import_cli_width6 = __toESM(require_cli_width(), 1);- import_wrap_ansi6 = __toESM(require_wrap_ansi(), 1);- init_hook_engine6();-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/node_modules/strip-ansi/node_modules/ansi-regex/index.js-var require_ansi_regex7 = __commonJS((exports, module) => {- module.exports = ({ onlyFirst = false } = {}) => {- const pattern = [- "[\\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("|");- return new RegExp(pattern, onlyFirst ? undefined : "g");- };-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/node_modules/strip-ansi/index.js-var require_strip_ansi7 = __commonJS((exports, module) => {- var ansiRegex = require_ansi_regex7();- module.exports = (string2) => typeof string2 === "string" ? string2.replace(ansiRegex(), "") : string2;-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js-function cursorDown6(n) {- return n > 0 ? import_ansi_escapes7.default.cursorDown(n) : "";-}--class ScreenManager6 {- rl;- height = 0;- extraLinesUnderPrompt = 0;- cursorPos;- constructor(rl) {- this.rl = rl;- this.rl = rl;- this.cursorPos = rl.getCursorPos();- }- write(content) {- this.rl.output.unmute();- this.rl.output.write(content);- this.rl.output.mute();- }- render(content, bottomContent = "") {- const promptLine = lastLine6(content);- const rawPromptLine = import_strip_ansi6.default(promptLine);- let prompt = rawPromptLine;- if (this.rl.line.length > 0) {- prompt = prompt.slice(0, -this.rl.line.length);- }- this.rl.setPrompt(prompt);- this.cursorPos = this.rl.getCursorPos();- const width = readlineWidth6();- content = breakLines6(content, width);- bottomContent = breakLines6(bottomContent, width);- if (rawPromptLine.length % width === 0) {- content += `-`;- }- let output = content + (bottomContent ? `-` + bottomContent : "");- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height6(bottomContent) : 0);- if (bottomContentHeight > 0)- output += import_ansi_escapes7.default.cursorUp(bottomContentHeight);- output += import_ansi_escapes7.default.cursorTo(this.cursorPos.cols);- this.write(cursorDown6(this.extraLinesUnderPrompt) + import_ansi_escapes7.default.eraseLines(this.height) + output);- this.extraLinesUnderPrompt = bottomContentHeight;- this.height = height6(output);- }- checkCursorPos() {- const cursorPos = this.rl.getCursorPos();- if (cursorPos.cols !== this.cursorPos.cols) {- this.write(import_ansi_escapes7.default.cursorTo(cursorPos.cols));- this.cursorPos = cursorPos;- }- }- done({ clearContent }) {- this.rl.setPrompt("");- let output = cursorDown6(this.extraLinesUnderPrompt);- output += clearContent ? import_ansi_escapes7.default.eraseLines(this.height) : `-`;- output += import_ansi_escapes7.default.cursorShow;- this.write(output);- this.rl.close();- }-}-var import_strip_ansi6, import_ansi_escapes7, height6 = (content) => content.split(`-`).length, lastLine6 = (content) => content.split(`-`).pop() ?? "";-var init_screen_manager6 = __esm(() => {- import_strip_ansi6 = __toESM(require_strip_ansi7(), 1);- import_ansi_escapes7 = __toESM(require_ansi_escapes(), 1);- init_utils6();-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js-var PromisePolyfill6;-var init_promise_polyfill6 = __esm(() => {- PromisePolyfill6 = class PromisePolyfill6 extends Promise {- static withResolver() {- let resolve;- let reject;- const promise = new Promise((res, rej) => {- resolve = res;- reject = rej;- });- return { promise, resolve, reject };- }- };-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js-import * as readline12 from "node:readline";-import { AsyncResource as AsyncResource19 } from "node:async_hooks";-function getCallSites6() {- const _prepareStackTrace = Error.prepareStackTrace;- try {- let result = [];- Error.prepareStackTrace = (_2, callSites) => {- const callSitesWithoutCurrent = callSites.slice(1);- result = callSitesWithoutCurrent;- return callSitesWithoutCurrent;- };- new Error().stack;- return result;- } finally {- Error.prepareStackTrace = _prepareStackTrace;- }-}-function createPrompt6(view) {- const callSites = getCallSites6();- const callerFilename = callSites[1]?.getFileName?.();- const prompt = (config, context = {}) => {- const { input = process.stdin, signal } = context;- const cleanups = new Set;- const output = new import_mute_stream6.default;- output.pipe(context.output ?? process.stdout);- const rl = readline12.createInterface({- terminal: true,- input,- output- });- const screen = new ScreenManager6(rl);- const { promise, resolve, reject } = PromisePolyfill6.withResolver();- const cancel = () => reject(new CancelPromptError6);- if (signal) {- const abort = () => reject(new AbortPromptError6({ cause: signal.reason }));- if (signal.aborted) {- abort();- return Object.assign(promise, { cancel });- }- signal.addEventListener("abort", abort);- cleanups.add(() => signal.removeEventListener("abort", abort));- }- cleanups.add(onExit((code, signal2) => {- reject(new ExitPromptError6(`User force closed the prompt with ${code} ${signal2}`));- }));- const checkCursorPos = () => screen.checkCursorPos();- rl.input.on("keypress", checkCursorPos);- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));- return withHooks6(rl, (cycle) => {- const hooksCleanup = AsyncResource19.bind(() => effectScheduler6.clearAll());- rl.on("close", hooksCleanup);- cleanups.add(() => rl.removeListener("close", hooksCleanup));- cycle(() => {- try {- const nextView = view(config, (value) => {- setImmediate(() => resolve(value));- });- if (nextView === undefined) {- throw new Error(`Prompt functions must return a string.- at ${callerFilename}`);- }- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;- screen.render(content, bottomContent);- effectScheduler6.run();- } catch (error) {- reject(error);- }- });- return Object.assign(promise.then((answer) => {- effectScheduler6.clearAll();- return answer;- }, (error) => {- effectScheduler6.clearAll();- throw error;- }).finally(() => {- cleanups.forEach((cleanup) => cleanup());- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });- output.end();- }).then(() => promise), { cancel });- });- };- return prompt;-}-var import_mute_stream6;-var init_create_prompt6 = __esm(() => {- import_mute_stream6 = __toESM(require_lib2(), 1);- init_mjs();- init_screen_manager6();- init_promise_polyfill6();- init_hook_engine6();- init_errors6();-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/lib/Separator.js-class Separator2 {- separator = import_yoctocolors_cjs9.default.dim(Array.from({ length: 15 }).join(esm_default11.line));- type = "separator";- constructor(separator) {- if (separator) {- this.separator = separator;- }- }- static isSeparator(choice) {- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");- }-}-var import_yoctocolors_cjs9;-var init_Separator2 = __esm(() => {- import_yoctocolors_cjs9 = __toESM(require_yoctocolors_cjs(), 1);- init_esm16();-});--// node_modules/@inquirer/expand/node_modules/@inquirer/core/dist/esm/index.js-var init_esm17 = __esm(() => {- init_errors6();- init_use_prefix6();- init_use_state6();- init_use_memo2();- init_use_keypress6();- init_make_theme6();- init_create_prompt6();- init_Separator2();-});--// node_modules/@inquirer/expand/dist/esm/index.js-function normalizeChoices2(choices) {- return choices.map((choice) => {- if (Separator2.isSeparator(choice)) {- return choice;- }- const name = "name" in choice ? choice.name : String(choice.value);- const value = "value" in choice ? choice.value : name;- return {- value,- name,- key: choice.key.toLowerCase()- };- });-}-var import_yoctocolors_cjs10, helpChoice, esm_default12;-var init_esm18 = __esm(() => {- init_esm17();- import_yoctocolors_cjs10 = __toESM(require_yoctocolors_cjs(), 1);- helpChoice = {- key: "h",- name: "Help, list all options",- value: undefined- };- esm_default12 = createPrompt6((config, done) => {- const { default: defaultKey = "h" } = config;- const choices = useMemo2(() => normalizeChoices2(config.choices), [config.choices]);- const [status, setStatus] = useState6("idle");- const [value, setValue] = useState6("");- const [expanded, setExpanded] = useState6(config.expanded ?? false);- const [errorMsg, setError] = useState6();- const theme = makeTheme6(config.theme);- const prefix = usePrefix6({ theme, status });- useKeypress6((event, rl) => {- if (isEnterKey6(event)) {- const answer = (value || defaultKey).toLowerCase();- if (answer === "h" && !expanded) {- setExpanded(true);- } else {- const selectedChoice = choices.find((choice) => !Separator2.isSeparator(choice) && choice.key === answer);- if (selectedChoice) {- setStatus("done");- setValue(answer);- done(selectedChoice.value);- } else if (value === "") {- setError("Please input a value");- } else {- setError(`"${import_yoctocolors_cjs10.default.red(value)}" isn't an available option`);- }- }- } else {- setValue(rl.line);- setError(undefined);- }- });- const message = theme.style.message(config.message, status);- if (status === "done") {- const selectedChoice = choices.find((choice) => !Separator2.isSeparator(choice) && choice.key === value.toLowerCase());- return `${prefix} ${message} ${theme.style.answer(selectedChoice.name)}`;- }- const allChoices = expanded ? choices : [...choices, helpChoice];- let longChoices = "";- let shortChoices = allChoices.map((choice) => {- if (Separator2.isSeparator(choice))- return "";- if (choice.key === defaultKey) {- return choice.key.toUpperCase();- }- return choice.key;- }).join("");- shortChoices = ` ${theme.style.defaultAnswer(shortChoices)}`;- if (expanded) {- shortChoices = "";- longChoices = allChoices.map((choice) => {- if (Separator2.isSeparator(choice)) {- return ` ${choice.separator}`;- }- const line = ` ${choice.key}) ${choice.name}`;- if (choice.key === value.toLowerCase()) {- return theme.style.highlight(line);- }- return line;- }).join(`-`);- }- let helpTip = "";- const currentOption = choices.find((choice) => !Separator2.isSeparator(choice) && choice.key === value.toLowerCase());- if (currentOption) {- helpTip = `${import_yoctocolors_cjs10.default.cyan(">>")} ${currentOption.name}`;- }- let error = "";- if (errorMsg) {- error = theme.style.error(errorMsg);- }- return [- `${prefix} ${message}${shortChoices} ${value}`,- [longChoices, helpTip, error].filter(Boolean).join(`-`)- ];- });-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/lib/key.js-var isEnterKey7 = (key7) => key7.name === "enter" || key7.name === "return";--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/lib/errors.js-var AbortPromptError7, CancelPromptError7, ExitPromptError7, HookError7, ValidationError7;-var init_errors7 = __esm(() => {- AbortPromptError7 = class AbortPromptError7 extends Error {- name = "AbortPromptError";- message = "Prompt was aborted";- constructor(options) {- super();- this.cause = options?.cause;- }- };- CancelPromptError7 = class CancelPromptError7 extends Error {- name = "CancelPromptError";- message = "Prompt was canceled";- };- ExitPromptError7 = class ExitPromptError7 extends Error {- name = "ExitPromptError";- };- HookError7 = class HookError7 extends Error {- name = "HookError";- };- ValidationError7 = class ValidationError7 extends Error {- name = "ValidationError";- };-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js-import { AsyncLocalStorage as AsyncLocalStorage7, AsyncResource as AsyncResource20 } from "node:async_hooks";-function createStore7(rl) {- const store = {- rl,- hooks: [],- hooksCleanup: [],- hooksEffect: [],- index: 0,- handleChange() {- }- };- return store;-}-function withHooks7(rl, cb) {- const store = createStore7(rl);- return hookStorage7.run(store, () => {- function cycle(render) {- store.handleChange = () => {- store.index = 0;- render();- };- store.handleChange();- }- return cb(cycle);- });-}-function getStore7() {- const store = hookStorage7.getStore();- if (!store) {- throw new HookError7("[Inquirer] Hook functions can only be called from within a prompt");- }- return store;-}-function readline13() {- return getStore7().rl;-}-function withUpdates7(fn) {- const wrapped = (...args) => {- const store = getStore7();- let shouldUpdate = false;- const oldHandleChange = store.handleChange;- store.handleChange = () => {- shouldUpdate = true;- };- const returnValue = fn(...args);- if (shouldUpdate) {- oldHandleChange();- }- store.handleChange = oldHandleChange;- return returnValue;- };- return AsyncResource20.bind(wrapped);-}-function withPointer7(cb) {- const store = getStore7();- const { index } = store;- const pointer = {- get() {- return store.hooks[index];- },- set(value) {- store.hooks[index] = value;- },- initialized: index in store.hooks- };- const returnValue = cb(pointer);- store.index++;- return returnValue;-}-function handleChange7() {- getStore7().handleChange();-}-var hookStorage7, effectScheduler7;-var init_hook_engine7 = __esm(() => {- init_errors7();- hookStorage7 = new AsyncLocalStorage7;- effectScheduler7 = {- queue(cb) {- const store = getStore7();- const { index } = store;- store.hooksEffect.push(() => {- store.hooksCleanup[index]?.();- const cleanFn = cb(readline13());- if (cleanFn != null && typeof cleanFn !== "function") {- throw new ValidationError7("useEffect return value must be a cleanup function or nothing.");- }- store.hooksCleanup[index] = cleanFn;- });- },- run() {- const store = getStore7();- withUpdates7(() => {- store.hooksEffect.forEach((effect) => {- effect();- });- store.hooksEffect.length = 0;- })();- },- clearAll() {- const store = getStore7();- store.hooksCleanup.forEach((cleanFn) => {- cleanFn?.();- });- store.hooksEffect.length = 0;- store.hooksCleanup.length = 0;- }- };-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/lib/use-state.js-function useState7(defaultValue) {- return withPointer7((pointer) => {- const setFn = (newValue) => {- if (pointer.get() !== newValue) {- pointer.set(newValue);- handleChange7();- }- };- if (pointer.initialized) {- return [pointer.get(), setFn];- }- const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;- pointer.set(value);- return [value, setFn];- });-}-var init_use_state7 = __esm(() => {- init_hook_engine7();-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/lib/use-effect.js-function useEffect7(cb, depArray) {- withPointer7((pointer) => {- const oldDeps = pointer.get();- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));- if (hasChanged) {- effectScheduler7.queue(cb);- }- pointer.set(depArray);- });-}-var init_use_effect7 = __esm(() => {- init_hook_engine7();-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js-import process9 from "node:process";-function isUnicodeSupported7() {- if (process9.platform !== "win32") {- return process9.env["TERM"] !== "linux";- }- return Boolean(process9.env["WT_SESSION"]) || Boolean(process9.env["TERMINUS_SUBLIME"]) || process9.env["ConEmuTask"] === "{cmd::Cmder}" || process9.env["TERM_PROGRAM"] === "Terminus-Sublime" || process9.env["TERM_PROGRAM"] === "vscode" || process9.env["TERM"] === "xterm-256color" || process9.env["TERM"] === "alacritty" || process9.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";-}-var common7, specialMainSymbols7, specialFallbackSymbols7, mainSymbols7, fallbackSymbols7, shouldUseMain7, figures7, esm_default13, replacements7;-var init_esm19 = __esm(() => {- common7 = {- circleQuestionMark: "(?)",- questionMarkPrefix: "(?)",- square: "█",- squareDarkShade: "▓",- squareMediumShade: "▒",- squareLightShade: "░",- squareTop: "▀",- squareBottom: "▄",- squareLeft: "▌",- squareRight: "▐",- squareCenter: "■",- bullet: "●",- dot: "․",- ellipsis: "…",- pointerSmall: "›",- triangleUp: "▲",- triangleUpSmall: "▴",- triangleDown: "▼",- triangleDownSmall: "▾",- triangleLeftSmall: "◂",- triangleRightSmall: "▸",- home: "⌂",- heart: "♥",- musicNote: "♪",- musicNoteBeamed: "♫",- arrowUp: "↑",- arrowDown: "↓",- arrowLeft: "←",- arrowRight: "→",- arrowLeftRight: "↔",- arrowUpDown: "↕",- almostEqual: "≈",- notEqual: "≠",- lessOrEqual: "≤",- greaterOrEqual: "≥",- identical: "≡",- infinity: "∞",- subscriptZero: "₀",- subscriptOne: "₁",- subscriptTwo: "₂",- subscriptThree: "₃",- subscriptFour: "₄",- subscriptFive: "₅",- subscriptSix: "₆",- subscriptSeven: "₇",- subscriptEight: "₈",- subscriptNine: "₉",- oneHalf: "½",- oneThird: "⅓",- oneQuarter: "¼",- oneFifth: "⅕",- oneSixth: "⅙",- oneEighth: "⅛",- twoThirds: "⅔",- twoFifths: "⅖",- threeQuarters: "¾",- threeFifths: "⅗",- threeEighths: "⅜",- fourFifths: "⅘",- fiveSixths: "⅚",- fiveEighths: "⅝",- sevenEighths: "⅞",- line: "─",- lineBold: "━",- lineDouble: "═",- lineDashed0: "┄",- lineDashed1: "┅",- lineDashed2: "┈",- lineDashed3: "┉",- lineDashed4: "╌",- lineDashed5: "╍",- lineDashed6: "╴",- lineDashed7: "╶",- lineDashed8: "╸",- lineDashed9: "╺",- lineDashed10: "╼",- lineDashed11: "╾",- lineDashed12: "−",- lineDashed13: "–",- lineDashed14: "‐",- lineDashed15: "⁃",- lineVertical: "│",- lineVerticalBold: "┃",- lineVerticalDouble: "║",- lineVerticalDashed0: "┆",- lineVerticalDashed1: "┇",- lineVerticalDashed2: "┊",- lineVerticalDashed3: "┋",- lineVerticalDashed4: "╎",- lineVerticalDashed5: "╏",- lineVerticalDashed6: "╵",- lineVerticalDashed7: "╷",- lineVerticalDashed8: "╹",- lineVerticalDashed9: "╻",- lineVerticalDashed10: "╽",- lineVerticalDashed11: "╿",- lineDownLeft: "┐",- lineDownLeftArc: "╮",- lineDownBoldLeftBold: "┓",- lineDownBoldLeft: "┒",- lineDownLeftBold: "┑",- lineDownDoubleLeftDouble: "╗",- lineDownDoubleLeft: "╖",- lineDownLeftDouble: "╕",- lineDownRight: "┌",- lineDownRightArc: "╭",- lineDownBoldRightBold: "┏",- lineDownBoldRight: "┎",- lineDownRightBold: "┍",- lineDownDoubleRightDouble: "╔",- lineDownDoubleRight: "╓",- lineDownRightDouble: "╒",- lineUpLeft: "┘",- lineUpLeftArc: "╯",- lineUpBoldLeftBold: "┛",- lineUpBoldLeft: "┚",- lineUpLeftBold: "┙",- lineUpDoubleLeftDouble: "╝",- lineUpDoubleLeft: "╜",- lineUpLeftDouble: "╛",- lineUpRight: "└",- lineUpRightArc: "╰",- lineUpBoldRightBold: "┗",- lineUpBoldRight: "┖",- lineUpRightBold: "┕",- lineUpDoubleRightDouble: "╚",- lineUpDoubleRight: "╙",- lineUpRightDouble: "╘",- lineUpDownLeft: "┤",- lineUpBoldDownBoldLeftBold: "┫",- lineUpBoldDownBoldLeft: "┨",- lineUpDownLeftBold: "┥",- lineUpBoldDownLeftBold: "┩",- lineUpDownBoldLeftBold: "┪",- lineUpDownBoldLeft: "┧",- lineUpBoldDownLeft: "┦",- lineUpDoubleDownDoubleLeftDouble: "╣",- lineUpDoubleDownDoubleLeft: "╢",- lineUpDownLeftDouble: "╡",- lineUpDownRight: "├",- lineUpBoldDownBoldRightBold: "┣",- lineUpBoldDownBoldRight: "┠",- lineUpDownRightBold: "┝",- lineUpBoldDownRightBold: "┡",- lineUpDownBoldRightBold: "┢",- lineUpDownBoldRight: "┟",- lineUpBoldDownRight: "┞",- lineUpDoubleDownDoubleRightDouble: "╠",- lineUpDoubleDownDoubleRight: "╟",- lineUpDownRightDouble: "╞",- lineDownLeftRight: "┬",- lineDownBoldLeftBoldRightBold: "┳",- lineDownLeftBoldRightBold: "┯",- lineDownBoldLeftRight: "┰",- lineDownBoldLeftBoldRight: "┱",- lineDownBoldLeftRightBold: "┲",- lineDownLeftRightBold: "┮",- lineDownLeftBoldRight: "┭",- lineDownDoubleLeftDoubleRightDouble: "╦",- lineDownDoubleLeftRight: "╥",- lineDownLeftDoubleRightDouble: "╤",- lineUpLeftRight: "┴",- lineUpBoldLeftBoldRightBold: "┻",- lineUpLeftBoldRightBold: "┷",- lineUpBoldLeftRight: "┸",- lineUpBoldLeftBoldRight: "┹",- lineUpBoldLeftRightBold: "┺",- lineUpLeftRightBold: "┶",- lineUpLeftBoldRight: "┵",- lineUpDoubleLeftDoubleRightDouble: "╩",- lineUpDoubleLeftRight: "╨",- lineUpLeftDoubleRightDouble: "╧",- lineUpDownLeftRight: "┼",- lineUpBoldDownBoldLeftBoldRightBold: "╋",- lineUpDownBoldLeftBoldRightBold: "╈",- lineUpBoldDownLeftBoldRightBold: "╇",- lineUpBoldDownBoldLeftRightBold: "╊",- lineUpBoldDownBoldLeftBoldRight: "╉",- lineUpBoldDownLeftRight: "╀",- lineUpDownBoldLeftRight: "╁",- lineUpDownLeftBoldRight: "┽",- lineUpDownLeftRightBold: "┾",- lineUpBoldDownBoldLeftRight: "╂",- lineUpDownLeftBoldRightBold: "┿",- lineUpBoldDownLeftBoldRight: "╃",- lineUpBoldDownLeftRightBold: "╄",- lineUpDownBoldLeftBoldRight: "╅",- lineUpDownBoldLeftRightBold: "╆",- lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",- lineUpDoubleDownDoubleLeftRight: "╫",- lineUpDownLeftDoubleRightDouble: "╪",- lineCross: "╳",- lineBackslash: "╲",- lineSlash: "╱"- };- specialMainSymbols7 = {- tick: "✔",- info: "ℹ",- warning: "⚠",- cross: "✘",- squareSmall: "◻",- squareSmallFilled: "◼",- circle: "◯",- circleFilled: "◉",- circleDotted: "◌",- circleDouble: "◎",- circleCircle: "ⓞ",- circleCross: "ⓧ",- circlePipe: "Ⓘ",- radioOn: "◉",- radioOff: "◯",- checkboxOn: "☒",- checkboxOff: "☐",- checkboxCircleOn: "ⓧ",- checkboxCircleOff: "Ⓘ",- pointer: "❯",- triangleUpOutline: "△",- triangleLeft: "◀",- triangleRight: "▶",- lozenge: "◆",- lozengeOutline: "◇",- hamburger: "☰",- smiley: "㋡",- mustache: "෴",- star: "★",- play: "▶",- nodejs: "⬢",- oneSeventh: "⅐",- oneNinth: "⅑",- oneTenth: "⅒"- };- specialFallbackSymbols7 = {- tick: "√",- info: "i",- warning: "‼",- cross: "×",- squareSmall: "□",- squareSmallFilled: "■",- circle: "( )",- circleFilled: "(*)",- circleDotted: "( )",- circleDouble: "( )",- circleCircle: "(○)",- circleCross: "(×)",- circlePipe: "(│)",- radioOn: "(*)",- radioOff: "( )",- checkboxOn: "[×]",- checkboxOff: "[ ]",- checkboxCircleOn: "(×)",- checkboxCircleOff: "( )",- pointer: ">",- triangleUpOutline: "∆",- triangleLeft: "◄",- triangleRight: "►",- lozenge: "♦",- lozengeOutline: "◊",- hamburger: "≡",- smiley: "☺",- mustache: "┌─┐",- star: "✶",- play: "►",- nodejs: "♦",- oneSeventh: "1/7",- oneNinth: "1/9",- oneTenth: "1/10"- };- mainSymbols7 = { ...common7, ...specialMainSymbols7 };- fallbackSymbols7 = {- ...common7,- ...specialFallbackSymbols7- };- shouldUseMain7 = isUnicodeSupported7();- figures7 = shouldUseMain7 ? mainSymbols7 : fallbackSymbols7;- esm_default13 = figures7;- replacements7 = Object.entries(specialMainSymbols7);-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/lib/theme.js-var import_yoctocolors_cjs11, defaultTheme7;-var init_theme7 = __esm(() => {- import_yoctocolors_cjs11 = __toESM(require_yoctocolors_cjs(), 1);- init_esm19();- defaultTheme7 = {- prefix: {- idle: import_yoctocolors_cjs11.default.blue("?"),- done: import_yoctocolors_cjs11.default.green(esm_default13.tick)- },- spinner: {- interval: 80,- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs11.default.yellow(frame))- },- style: {- answer: import_yoctocolors_cjs11.default.cyan,- message: import_yoctocolors_cjs11.default.bold,- error: (text) => import_yoctocolors_cjs11.default.red(`> ${text}`),- defaultAnswer: (text) => import_yoctocolors_cjs11.default.dim(`(${text})`),- help: import_yoctocolors_cjs11.default.dim,- highlight: import_yoctocolors_cjs11.default.cyan,- key: (text) => import_yoctocolors_cjs11.default.cyan(import_yoctocolors_cjs11.default.bold(`<${text}>`))- }- };-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/lib/make-theme.js-function isPlainObject7(value) {- if (typeof value !== "object" || value === null)- return false;- let proto = value;- while (Object.getPrototypeOf(proto) !== null) {- proto = Object.getPrototypeOf(proto);- }- return Object.getPrototypeOf(value) === proto;-}-function deepMerge7(...objects) {- const output = {};- for (const obj of objects) {- for (const [key7, value] of Object.entries(obj)) {- const prevValue = output[key7];- output[key7] = isPlainObject7(prevValue) && isPlainObject7(value) ? deepMerge7(prevValue, value) : value;- }- }- return output;-}-function makeTheme7(...themes) {- const themesToMerge = [- defaultTheme7,- ...themes.filter((theme) => theme != null)- ];- return deepMerge7(...themesToMerge);-}-var init_make_theme7 = __esm(() => {- init_theme7();-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js-import { AsyncResource as AsyncResource21 } from "node:async_hooks";-function usePrefix7({ status = "idle", theme }) {- const [showLoader, setShowLoader] = useState7(false);- const [tick, setTick] = useState7(0);- const { prefix, spinner } = makeTheme7(theme);- useEffect7(() => {- if (status === "loading") {- let tickInterval;- let inc = -1;- const delayTimeout = setTimeout(AsyncResource21.bind(() => {- setShowLoader(true);- tickInterval = setInterval(AsyncResource21.bind(() => {- inc = inc + 1;- setTick(inc % spinner.frames.length);- }), spinner.interval);- }), 300);- return () => {- clearTimeout(delayTimeout);- clearInterval(tickInterval);- };- } else {- setShowLoader(false);- }- }, [status]);- if (showLoader) {- return spinner.frames[tick];- }- const iconName = status === "loading" ? "idle" : status;- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];-}-var init_use_prefix7 = __esm(() => {- init_use_state7();- init_use_effect7();- init_make_theme7();-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/lib/use-memo.js-function useMemo3(fn, dependencies) {- return withPointer7((pointer) => {- const prev = pointer.get();- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {- const value = fn();- pointer.set({ value, dependencies });- return value;- }- return prev.value;- });-}-var init_use_memo3 = __esm(() => {- init_hook_engine7();-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/lib/use-ref.js-function useRef7(val) {- return useState7({ current: val })[0];-}-var init_use_ref7 = __esm(() => {- init_use_state7();-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js-function useKeypress7(userHandler) {- const signal = useRef7(userHandler);- signal.current = userHandler;- useEffect7((rl) => {- let ignore = false;- const handler = withUpdates7((_input, event) => {- if (ignore)- return;- signal.current(event, rl);- });- rl.input.on("keypress", handler);- return () => {- ignore = true;- rl.input.removeListener("keypress", handler);- };- }, []);-}-var init_use_keypress7 = __esm(() => {- init_use_ref7();- init_use_effect7();- init_hook_engine7();-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/lib/utils.js-function breakLines7(content, width) {- return content.split(`-`).flatMap((line) => import_wrap_ansi7.default(line, width, { trim: false, hard: true }).split(`-`).map((str) => str.trimEnd())).join(`-`);-}-function readlineWidth7() {- return import_cli_width7.default({ defaultWidth: 80, output: readline13().output });-}-var import_cli_width7, import_wrap_ansi7;-var init_utils7 = __esm(() => {- import_cli_width7 = __toESM(require_cli_width(), 1);- import_wrap_ansi7 = __toESM(require_wrap_ansi(), 1);- init_hook_engine7();-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/node_modules/strip-ansi/node_modules/ansi-regex/index.js-var require_ansi_regex8 = __commonJS((exports, module) => {- module.exports = ({ onlyFirst = false } = {}) => {- const pattern = [- "[\\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("|");- return new RegExp(pattern, onlyFirst ? undefined : "g");- };-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/node_modules/strip-ansi/index.js-var require_strip_ansi8 = __commonJS((exports, module) => {- var ansiRegex = require_ansi_regex8();- module.exports = (string2) => typeof string2 === "string" ? string2.replace(ansiRegex(), "") : string2;-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js-function cursorDown7(n) {- return n > 0 ? import_ansi_escapes8.default.cursorDown(n) : "";-}--class ScreenManager7 {- rl;- height = 0;- extraLinesUnderPrompt = 0;- cursorPos;- constructor(rl) {- this.rl = rl;- this.rl = rl;- this.cursorPos = rl.getCursorPos();- }- write(content) {- this.rl.output.unmute();- this.rl.output.write(content);- this.rl.output.mute();- }- render(content, bottomContent = "") {- const promptLine = lastLine7(content);- const rawPromptLine = import_strip_ansi7.default(promptLine);- let prompt = rawPromptLine;- if (this.rl.line.length > 0) {- prompt = prompt.slice(0, -this.rl.line.length);- }- this.rl.setPrompt(prompt);- this.cursorPos = this.rl.getCursorPos();- const width = readlineWidth7();- content = breakLines7(content, width);- bottomContent = breakLines7(bottomContent, width);- if (rawPromptLine.length % width === 0) {- content += `-`;- }- let output = content + (bottomContent ? `-` + bottomContent : "");- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height7(bottomContent) : 0);- if (bottomContentHeight > 0)- output += import_ansi_escapes8.default.cursorUp(bottomContentHeight);- output += import_ansi_escapes8.default.cursorTo(this.cursorPos.cols);- this.write(cursorDown7(this.extraLinesUnderPrompt) + import_ansi_escapes8.default.eraseLines(this.height) + output);- this.extraLinesUnderPrompt = bottomContentHeight;- this.height = height7(output);- }- checkCursorPos() {- const cursorPos = this.rl.getCursorPos();- if (cursorPos.cols !== this.cursorPos.cols) {- this.write(import_ansi_escapes8.default.cursorTo(cursorPos.cols));- this.cursorPos = cursorPos;- }- }- done({ clearContent }) {- this.rl.setPrompt("");- let output = cursorDown7(this.extraLinesUnderPrompt);- output += clearContent ? import_ansi_escapes8.default.eraseLines(this.height) : `-`;- output += import_ansi_escapes8.default.cursorShow;- this.write(output);- this.rl.close();- }-}-var import_strip_ansi7, import_ansi_escapes8, height7 = (content) => content.split(`-`).length, lastLine7 = (content) => content.split(`-`).pop() ?? "";-var init_screen_manager7 = __esm(() => {- import_strip_ansi7 = __toESM(require_strip_ansi8(), 1);- import_ansi_escapes8 = __toESM(require_ansi_escapes(), 1);- init_utils7();-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js-var PromisePolyfill7;-var init_promise_polyfill7 = __esm(() => {- PromisePolyfill7 = class PromisePolyfill7 extends Promise {- static withResolver() {- let resolve;- let reject;- const promise = new Promise((res, rej) => {- resolve = res;- reject = rej;- });- return { promise, resolve, reject };- }- };-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js-import * as readline14 from "node:readline";-import { AsyncResource as AsyncResource22 } from "node:async_hooks";-function getCallSites7() {- const _prepareStackTrace = Error.prepareStackTrace;- try {- let result = [];- Error.prepareStackTrace = (_2, callSites) => {- const callSitesWithoutCurrent = callSites.slice(1);- result = callSitesWithoutCurrent;- return callSitesWithoutCurrent;- };- new Error().stack;- return result;- } finally {- Error.prepareStackTrace = _prepareStackTrace;- }-}-function createPrompt7(view) {- const callSites = getCallSites7();- const callerFilename = callSites[1]?.getFileName?.();- const prompt = (config, context = {}) => {- const { input = process.stdin, signal } = context;- const cleanups = new Set;- const output = new import_mute_stream7.default;- output.pipe(context.output ?? process.stdout);- const rl = readline14.createInterface({- terminal: true,- input,- output- });- const screen = new ScreenManager7(rl);- const { promise, resolve, reject } = PromisePolyfill7.withResolver();- const cancel = () => reject(new CancelPromptError7);- if (signal) {- const abort = () => reject(new AbortPromptError7({ cause: signal.reason }));- if (signal.aborted) {- abort();- return Object.assign(promise, { cancel });- }- signal.addEventListener("abort", abort);- cleanups.add(() => signal.removeEventListener("abort", abort));- }- cleanups.add(onExit((code, signal2) => {- reject(new ExitPromptError7(`User force closed the prompt with ${code} ${signal2}`));- }));- const checkCursorPos = () => screen.checkCursorPos();- rl.input.on("keypress", checkCursorPos);- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));- return withHooks7(rl, (cycle) => {- const hooksCleanup = AsyncResource22.bind(() => effectScheduler7.clearAll());- rl.on("close", hooksCleanup);- cleanups.add(() => rl.removeListener("close", hooksCleanup));- cycle(() => {- try {- const nextView = view(config, (value) => {- setImmediate(() => resolve(value));- });- if (nextView === undefined) {- throw new Error(`Prompt functions must return a string.- at ${callerFilename}`);- }- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;- screen.render(content, bottomContent);- effectScheduler7.run();- } catch (error) {- reject(error);- }- });- return Object.assign(promise.then((answer) => {- effectScheduler7.clearAll();- return answer;- }, (error) => {- effectScheduler7.clearAll();- throw error;- }).finally(() => {- cleanups.forEach((cleanup) => cleanup());- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });- output.end();- }).then(() => promise), { cancel });- });- };- return prompt;-}-var import_mute_stream7;-var init_create_prompt7 = __esm(() => {- import_mute_stream7 = __toESM(require_lib2(), 1);- init_mjs();- init_screen_manager7();- init_promise_polyfill7();- init_hook_engine7();- init_errors7();-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/lib/Separator.js-class Separator3 {- separator = import_yoctocolors_cjs12.default.dim(Array.from({ length: 15 }).join(esm_default13.line));- type = "separator";- constructor(separator) {- if (separator) {- this.separator = separator;- }- }- static isSeparator(choice) {- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");- }-}-var import_yoctocolors_cjs12;-var init_Separator3 = __esm(() => {- import_yoctocolors_cjs12 = __toESM(require_yoctocolors_cjs(), 1);- init_esm19();-});--// node_modules/@inquirer/rawlist/node_modules/@inquirer/core/dist/esm/index.js-var init_esm20 = __esm(() => {- init_errors7();- init_use_prefix7();- init_use_state7();- init_use_memo3();- init_use_keypress7();- init_make_theme7();- init_create_prompt7();- init_Separator3();-});--// node_modules/@inquirer/rawlist/dist/esm/index.js-function isSelectableChoice(choice) {- return choice != null && !Separator3.isSeparator(choice);-}-function normalizeChoices3(choices) {- let index = 0;- return choices.map((choice) => {- if (Separator3.isSeparator(choice))- return choice;- index += 1;- if (typeof choice === "string") {- return {- value: choice,- name: choice,- short: choice,- key: String(index)- };- }- const name = choice.name ?? String(choice.value);- return {- value: choice.value,- name,- short: choice.short ?? name,- key: choice.key ?? String(index)- };- });-}-var import_yoctocolors_cjs13, numberRegex, esm_default14;-var init_esm21 = __esm(() => {- init_esm20();- import_yoctocolors_cjs13 = __toESM(require_yoctocolors_cjs(), 1);- numberRegex = /\d+/;- esm_default14 = createPrompt7((config, done) => {- const choices = useMemo3(() => normalizeChoices3(config.choices), [config.choices]);- const [status, setStatus] = useState7("idle");- const [value, setValue] = useState7("");- const [errorMsg, setError] = useState7();- const theme = makeTheme7(config.theme);- const prefix = usePrefix7({ status, theme });- useKeypress7((key8, rl) => {- if (isEnterKey7(key8)) {- let selectedChoice;- if (numberRegex.test(value)) {- const answer = Number.parseInt(value, 10) - 1;- selectedChoice = choices.filter(isSelectableChoice)[answer];- } else {- selectedChoice = choices.find((choice) => isSelectableChoice(choice) && choice.key === value);- }- if (isSelectableChoice(selectedChoice)) {- setValue(selectedChoice.short);- setStatus("done");- done(selectedChoice.value);- } else if (value === "") {- setError("Please input a value");- } else {- setError(`"${import_yoctocolors_cjs13.default.red(value)}" isn't an available option`);- }- } else {- setValue(rl.line);- setError(undefined);- }- });- const message = theme.style.message(config.message, status);- if (status === "done") {- return `${prefix} ${message} ${theme.style.answer(value)}`;- }- const choicesStr = choices.map((choice) => {- if (Separator3.isSeparator(choice)) {- return ` ${choice.separator}`;- }- const line = ` ${choice.key}) ${choice.name}`;- if (choice.key === value.toLowerCase()) {- return theme.style.highlight(line);- }- return line;- }).join(`-`);- let error = "";- if (errorMsg) {- error = theme.style.error(errorMsg);- }- return [- `${prefix} ${message} ${value}`,- [choicesStr, error].filter(Boolean).join(`-`)- ];- });-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js-var isEnterKey8 = (key8) => key8.name === "enter" || key8.name === "return";--// node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js-var AbortPromptError8, CancelPromptError8, ExitPromptError8, HookError8, ValidationError8;-var init_errors8 = __esm(() => {- AbortPromptError8 = class AbortPromptError8 extends Error {- name = "AbortPromptError";- message = "Prompt was aborted";- constructor(options) {- super();- this.cause = options?.cause;- }- };- CancelPromptError8 = class CancelPromptError8 extends Error {- name = "CancelPromptError";- message = "Prompt was canceled";- };- ExitPromptError8 = class ExitPromptError8 extends Error {- name = "ExitPromptError";- };- HookError8 = class HookError8 extends Error {- name = "HookError";- };- ValidationError8 = class ValidationError8 extends Error {- name = "ValidationError";- };-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js-import { AsyncLocalStorage as AsyncLocalStorage8, AsyncResource as AsyncResource23 } from "node:async_hooks";-function createStore8(rl) {- const store = {- rl,- hooks: [],- hooksCleanup: [],- hooksEffect: [],- index: 0,- handleChange() {- }- };- return store;-}-function withHooks8(rl, cb) {- const store = createStore8(rl);- return hookStorage8.run(store, () => {- function cycle(render) {- store.handleChange = () => {- store.index = 0;- render();- };- store.handleChange();- }- return cb(cycle);- });-}-function getStore8() {- const store = hookStorage8.getStore();- if (!store) {- throw new HookError8("[Inquirer] Hook functions can only be called from within a prompt");- }- return store;-}-function readline15() {- return getStore8().rl;-}-function withUpdates8(fn) {- const wrapped = (...args) => {- const store = getStore8();- let shouldUpdate = false;- const oldHandleChange = store.handleChange;- store.handleChange = () => {- shouldUpdate = true;- };- const returnValue = fn(...args);- if (shouldUpdate) {- oldHandleChange();- }- store.handleChange = oldHandleChange;- return returnValue;- };- return AsyncResource23.bind(wrapped);-}-function withPointer8(cb) {- const store = getStore8();- const { index } = store;- const pointer = {- get() {- return store.hooks[index];- },- set(value) {- store.hooks[index] = value;- },- initialized: index in store.hooks- };- const returnValue = cb(pointer);- store.index++;- return returnValue;-}-function handleChange8() {- getStore8().handleChange();-}-var hookStorage8, effectScheduler8;-var init_hook_engine8 = __esm(() => {- init_errors8();- hookStorage8 = new AsyncLocalStorage8;- effectScheduler8 = {- queue(cb) {- const store = getStore8();- const { index } = store;- store.hooksEffect.push(() => {- store.hooksCleanup[index]?.();- const cleanFn = cb(readline15());- if (cleanFn != null && typeof cleanFn !== "function") {- throw new ValidationError8("useEffect return value must be a cleanup function or nothing.");- }- store.hooksCleanup[index] = cleanFn;- });- },- run() {- const store = getStore8();- withUpdates8(() => {- store.hooksEffect.forEach((effect) => {- effect();- });- store.hooksEffect.length = 0;- })();- },- clearAll() {- const store = getStore8();- store.hooksCleanup.forEach((cleanFn) => {- cleanFn?.();- });- store.hooksEffect.length = 0;- store.hooksCleanup.length = 0;- }- };-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js-function useState8(defaultValue) {- return withPointer8((pointer) => {- const setFn = (newValue) => {- if (pointer.get() !== newValue) {- pointer.set(newValue);- handleChange8();- }- };- if (pointer.initialized) {- return [pointer.get(), setFn];- }- const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;- pointer.set(value);- return [value, setFn];- });-}-var init_use_state8 = __esm(() => {- init_hook_engine8();-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js-function useEffect8(cb, depArray) {- withPointer8((pointer) => {- const oldDeps = pointer.get();- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));- if (hasChanged) {- effectScheduler8.queue(cb);- }- pointer.set(depArray);- });-}-var init_use_effect8 = __esm(() => {- init_hook_engine8();-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js-import process10 from "node:process";-function isUnicodeSupported8() {- if (process10.platform !== "win32") {- return process10.env["TERM"] !== "linux";- }- return Boolean(process10.env["WT_SESSION"]) || Boolean(process10.env["TERMINUS_SUBLIME"]) || process10.env["ConEmuTask"] === "{cmd::Cmder}" || process10.env["TERM_PROGRAM"] === "Terminus-Sublime" || process10.env["TERM_PROGRAM"] === "vscode" || process10.env["TERM"] === "xterm-256color" || process10.env["TERM"] === "alacritty" || process10.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";-}-var common8, specialMainSymbols8, specialFallbackSymbols8, mainSymbols8, fallbackSymbols8, shouldUseMain8, figures8, esm_default15, replacements8;-var init_esm22 = __esm(() => {- common8 = {- circleQuestionMark: "(?)",- questionMarkPrefix: "(?)",- square: "█",- squareDarkShade: "▓",- squareMediumShade: "▒",- squareLightShade: "░",- squareTop: "▀",- squareBottom: "▄",- squareLeft: "▌",- squareRight: "▐",- squareCenter: "■",- bullet: "●",- dot: "․",- ellipsis: "…",- pointerSmall: "›",- triangleUp: "▲",- triangleUpSmall: "▴",- triangleDown: "▼",- triangleDownSmall: "▾",- triangleLeftSmall: "◂",- triangleRightSmall: "▸",- home: "⌂",- heart: "♥",- musicNote: "♪",- musicNoteBeamed: "♫",- arrowUp: "↑",- arrowDown: "↓",- arrowLeft: "←",- arrowRight: "→",- arrowLeftRight: "↔",- arrowUpDown: "↕",- almostEqual: "≈",- notEqual: "≠",- lessOrEqual: "≤",- greaterOrEqual: "≥",- identical: "≡",- infinity: "∞",- subscriptZero: "₀",- subscriptOne: "₁",- subscriptTwo: "₂",- subscriptThree: "₃",- subscriptFour: "₄",- subscriptFive: "₅",- subscriptSix: "₆",- subscriptSeven: "₇",- subscriptEight: "₈",- subscriptNine: "₉",- oneHalf: "½",- oneThird: "⅓",- oneQuarter: "¼",- oneFifth: "⅕",- oneSixth: "⅙",- oneEighth: "⅛",- twoThirds: "⅔",- twoFifths: "⅖",- threeQuarters: "¾",- threeFifths: "⅗",- threeEighths: "⅜",- fourFifths: "⅘",- fiveSixths: "⅚",- fiveEighths: "⅝",- sevenEighths: "⅞",- line: "─",- lineBold: "━",- lineDouble: "═",- lineDashed0: "┄",- lineDashed1: "┅",- lineDashed2: "┈",- lineDashed3: "┉",- lineDashed4: "╌",- lineDashed5: "╍",- lineDashed6: "╴",- lineDashed7: "╶",- lineDashed8: "╸",- lineDashed9: "╺",- lineDashed10: "╼",- lineDashed11: "╾",- lineDashed12: "−",- lineDashed13: "–",- lineDashed14: "‐",- lineDashed15: "⁃",- lineVertical: "│",- lineVerticalBold: "┃",- lineVerticalDouble: "║",- lineVerticalDashed0: "┆",- lineVerticalDashed1: "┇",- lineVerticalDashed2: "┊",- lineVerticalDashed3: "┋",- lineVerticalDashed4: "╎",- lineVerticalDashed5: "╏",- lineVerticalDashed6: "╵",- lineVerticalDashed7: "╷",- lineVerticalDashed8: "╹",- lineVerticalDashed9: "╻",- lineVerticalDashed10: "╽",- lineVerticalDashed11: "╿",- lineDownLeft: "┐",- lineDownLeftArc: "╮",- lineDownBoldLeftBold: "┓",- lineDownBoldLeft: "┒",- lineDownLeftBold: "┑",- lineDownDoubleLeftDouble: "╗",- lineDownDoubleLeft: "╖",- lineDownLeftDouble: "╕",- lineDownRight: "┌",- lineDownRightArc: "╭",- lineDownBoldRightBold: "┏",- lineDownBoldRight: "┎",- lineDownRightBold: "┍",- lineDownDoubleRightDouble: "╔",- lineDownDoubleRight: "╓",- lineDownRightDouble: "╒",- lineUpLeft: "┘",- lineUpLeftArc: "╯",- lineUpBoldLeftBold: "┛",- lineUpBoldLeft: "┚",- lineUpLeftBold: "┙",- lineUpDoubleLeftDouble: "╝",- lineUpDoubleLeft: "╜",- lineUpLeftDouble: "╛",- lineUpRight: "└",- lineUpRightArc: "╰",- lineUpBoldRightBold: "┗",- lineUpBoldRight: "┖",- lineUpRightBold: "┕",- lineUpDoubleRightDouble: "╚",- lineUpDoubleRight: "╙",- lineUpRightDouble: "╘",- lineUpDownLeft: "┤",- lineUpBoldDownBoldLeftBold: "┫",- lineUpBoldDownBoldLeft: "┨",- lineUpDownLeftBold: "┥",- lineUpBoldDownLeftBold: "┩",- lineUpDownBoldLeftBold: "┪",- lineUpDownBoldLeft: "┧",- lineUpBoldDownLeft: "┦",- lineUpDoubleDownDoubleLeftDouble: "╣",- lineUpDoubleDownDoubleLeft: "╢",- lineUpDownLeftDouble: "╡",- lineUpDownRight: "├",- lineUpBoldDownBoldRightBold: "┣",- lineUpBoldDownBoldRight: "┠",- lineUpDownRightBold: "┝",- lineUpBoldDownRightBold: "┡",- lineUpDownBoldRightBold: "┢",- lineUpDownBoldRight: "┟",- lineUpBoldDownRight: "┞",- lineUpDoubleDownDoubleRightDouble: "╠",- lineUpDoubleDownDoubleRight: "╟",- lineUpDownRightDouble: "╞",- lineDownLeftRight: "┬",- lineDownBoldLeftBoldRightBold: "┳",- lineDownLeftBoldRightBold: "┯",- lineDownBoldLeftRight: "┰",- lineDownBoldLeftBoldRight: "┱",- lineDownBoldLeftRightBold: "┲",- lineDownLeftRightBold: "┮",- lineDownLeftBoldRight: "┭",- lineDownDoubleLeftDoubleRightDouble: "╦",- lineDownDoubleLeftRight: "╥",- lineDownLeftDoubleRightDouble: "╤",- lineUpLeftRight: "┴",- lineUpBoldLeftBoldRightBold: "┻",- lineUpLeftBoldRightBold: "┷",- lineUpBoldLeftRight: "┸",- lineUpBoldLeftBoldRight: "┹",- lineUpBoldLeftRightBold: "┺",- lineUpLeftRightBold: "┶",- lineUpLeftBoldRight: "┵",- lineUpDoubleLeftDoubleRightDouble: "╩",- lineUpDoubleLeftRight: "╨",- lineUpLeftDoubleRightDouble: "╧",- lineUpDownLeftRight: "┼",- lineUpBoldDownBoldLeftBoldRightBold: "╋",- lineUpDownBoldLeftBoldRightBold: "╈",- lineUpBoldDownLeftBoldRightBold: "╇",- lineUpBoldDownBoldLeftRightBold: "╊",- lineUpBoldDownBoldLeftBoldRight: "╉",- lineUpBoldDownLeftRight: "╀",- lineUpDownBoldLeftRight: "╁",- lineUpDownLeftBoldRight: "┽",- lineUpDownLeftRightBold: "┾",- lineUpBoldDownBoldLeftRight: "╂",- lineUpDownLeftBoldRightBold: "┿",- lineUpBoldDownLeftBoldRight: "╃",- lineUpBoldDownLeftRightBold: "╄",- lineUpDownBoldLeftBoldRight: "╅",- lineUpDownBoldLeftRightBold: "╆",- lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",- lineUpDoubleDownDoubleLeftRight: "╫",- lineUpDownLeftDoubleRightDouble: "╪",- lineCross: "╳",- lineBackslash: "╲",- lineSlash: "╱"- };- specialMainSymbols8 = {- tick: "✔",- info: "ℹ",- warning: "⚠",- cross: "✘",- squareSmall: "◻",- squareSmallFilled: "◼",- circle: "◯",- circleFilled: "◉",- circleDotted: "◌",- circleDouble: "◎",- circleCircle: "ⓞ",- circleCross: "ⓧ",- circlePipe: "Ⓘ",- radioOn: "◉",- radioOff: "◯",- checkboxOn: "☒",- checkboxOff: "☐",- checkboxCircleOn: "ⓧ",- checkboxCircleOff: "Ⓘ",- pointer: "❯",- triangleUpOutline: "△",- triangleLeft: "◀",- triangleRight: "▶",- lozenge: "◆",- lozengeOutline: "◇",- hamburger: "☰",- smiley: "㋡",- mustache: "෴",- star: "★",- play: "▶",- nodejs: "⬢",- oneSeventh: "⅐",- oneNinth: "⅑",- oneTenth: "⅒"- };- specialFallbackSymbols8 = {- tick: "√",- info: "i",- warning: "‼",- cross: "×",- squareSmall: "□",- squareSmallFilled: "■",- circle: "( )",- circleFilled: "(*)",- circleDotted: "( )",- circleDouble: "( )",- circleCircle: "(○)",- circleCross: "(×)",- circlePipe: "(│)",- radioOn: "(*)",- radioOff: "( )",- checkboxOn: "[×]",- checkboxOff: "[ ]",- checkboxCircleOn: "(×)",- checkboxCircleOff: "( )",- pointer: ">",- triangleUpOutline: "∆",- triangleLeft: "◄",- triangleRight: "►",- lozenge: "♦",- lozengeOutline: "◊",- hamburger: "≡",- smiley: "☺",- mustache: "┌─┐",- star: "✶",- play: "►",- nodejs: "♦",- oneSeventh: "1/7",- oneNinth: "1/9",- oneTenth: "1/10"- };- mainSymbols8 = { ...common8, ...specialMainSymbols8 };- fallbackSymbols8 = {- ...common8,- ...specialFallbackSymbols8- };- shouldUseMain8 = isUnicodeSupported8();- figures8 = shouldUseMain8 ? mainSymbols8 : fallbackSymbols8;- esm_default15 = figures8;- replacements8 = Object.entries(specialMainSymbols8);-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js-var import_yoctocolors_cjs14, defaultTheme8;-var init_theme8 = __esm(() => {- import_yoctocolors_cjs14 = __toESM(require_yoctocolors_cjs(), 1);- init_esm22();- defaultTheme8 = {- prefix: {- idle: import_yoctocolors_cjs14.default.blue("?"),- done: import_yoctocolors_cjs14.default.green(esm_default15.tick)- },- spinner: {- interval: 80,- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs14.default.yellow(frame))- },- style: {- answer: import_yoctocolors_cjs14.default.cyan,- message: import_yoctocolors_cjs14.default.bold,- error: (text) => import_yoctocolors_cjs14.default.red(`> ${text}`),- defaultAnswer: (text) => import_yoctocolors_cjs14.default.dim(`(${text})`),- help: import_yoctocolors_cjs14.default.dim,- highlight: import_yoctocolors_cjs14.default.cyan,- key: (text) => import_yoctocolors_cjs14.default.cyan(import_yoctocolors_cjs14.default.bold(`<${text}>`))- }- };-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js-function isPlainObject8(value) {- if (typeof value !== "object" || value === null)- return false;- let proto = value;- while (Object.getPrototypeOf(proto) !== null) {- proto = Object.getPrototypeOf(proto);- }- return Object.getPrototypeOf(value) === proto;-}-function deepMerge8(...objects) {- const output = {};- for (const obj of objects) {- for (const [key8, value] of Object.entries(obj)) {- const prevValue = output[key8];- output[key8] = isPlainObject8(prevValue) && isPlainObject8(value) ? deepMerge8(prevValue, value) : value;- }- }- return output;-}-function makeTheme8(...themes) {- const themesToMerge = [- defaultTheme8,- ...themes.filter((theme) => theme != null)- ];- return deepMerge8(...themesToMerge);-}-var init_make_theme8 = __esm(() => {- init_theme8();-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js-import { AsyncResource as AsyncResource24 } from "node:async_hooks";-function usePrefix8({ status = "idle", theme }) {- const [showLoader, setShowLoader] = useState8(false);- const [tick, setTick] = useState8(0);- const { prefix, spinner } = makeTheme8(theme);- useEffect8(() => {- if (status === "loading") {- let tickInterval;- let inc = -1;- const delayTimeout = setTimeout(AsyncResource24.bind(() => {- setShowLoader(true);- tickInterval = setInterval(AsyncResource24.bind(() => {- inc = inc + 1;- setTick(inc % spinner.frames.length);- }), spinner.interval);- }), 300);- return () => {- clearTimeout(delayTimeout);- clearInterval(tickInterval);- };- } else {- setShowLoader(false);- }- }, [status]);- if (showLoader) {- return spinner.frames[tick];- }- const iconName = status === "loading" ? "idle" : status;- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];-}-var init_use_prefix8 = __esm(() => {- init_use_state8();- init_use_effect8();- init_make_theme8();-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js-function useRef8(val) {- return useState8({ current: val })[0];-}-var init_use_ref8 = __esm(() => {- init_use_state8();-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js-function useKeypress8(userHandler) {- const signal = useRef8(userHandler);- signal.current = userHandler;- useEffect8((rl) => {- let ignore = false;- const handler = withUpdates8((_input, event) => {- if (ignore)- return;- signal.current(event, rl);- });- rl.input.on("keypress", handler);- return () => {- ignore = true;- rl.input.removeListener("keypress", handler);- };- }, []);-}-var init_use_keypress8 = __esm(() => {- init_use_ref8();- init_use_effect8();- init_hook_engine8();-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js-function breakLines8(content, width) {- return content.split(`-`).flatMap((line) => import_wrap_ansi8.default(line, width, { trim: false, hard: true }).split(`-`).map((str) => str.trimEnd())).join(`-`);-}-function readlineWidth8() {- return import_cli_width8.default({ defaultWidth: 80, output: readline15().output });-}-var import_cli_width8, import_wrap_ansi8;-var init_utils8 = __esm(() => {- import_cli_width8 = __toESM(require_cli_width(), 1);- import_wrap_ansi8 = __toESM(require_wrap_ansi(), 1);- init_hook_engine8();-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/node_modules/strip-ansi/node_modules/ansi-regex/index.js-var require_ansi_regex9 = __commonJS((exports, module) => {- module.exports = ({ onlyFirst = false } = {}) => {- const pattern = [- "[\\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("|");- return new RegExp(pattern, onlyFirst ? undefined : "g");- };-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/node_modules/strip-ansi/index.js-var require_strip_ansi9 = __commonJS((exports, module) => {- var ansiRegex = require_ansi_regex9();- module.exports = (string2) => typeof string2 === "string" ? string2.replace(ansiRegex(), "") : string2;-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js-function cursorDown8(n) {- return n > 0 ? import_ansi_escapes9.default.cursorDown(n) : "";-}--class ScreenManager8 {- rl;- height = 0;- extraLinesUnderPrompt = 0;- cursorPos;- constructor(rl) {- this.rl = rl;- this.rl = rl;- this.cursorPos = rl.getCursorPos();- }- write(content) {- this.rl.output.unmute();- this.rl.output.write(content);- this.rl.output.mute();- }- render(content, bottomContent = "") {- const promptLine = lastLine8(content);- const rawPromptLine = import_strip_ansi8.default(promptLine);- let prompt = rawPromptLine;- if (this.rl.line.length > 0) {- prompt = prompt.slice(0, -this.rl.line.length);- }- this.rl.setPrompt(prompt);- this.cursorPos = this.rl.getCursorPos();- const width = readlineWidth8();- content = breakLines8(content, width);- bottomContent = breakLines8(bottomContent, width);- if (rawPromptLine.length % width === 0) {- content += `-`;- }- let output = content + (bottomContent ? `-` + bottomContent : "");- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height8(bottomContent) : 0);- if (bottomContentHeight > 0)- output += import_ansi_escapes9.default.cursorUp(bottomContentHeight);- output += import_ansi_escapes9.default.cursorTo(this.cursorPos.cols);- this.write(cursorDown8(this.extraLinesUnderPrompt) + import_ansi_escapes9.default.eraseLines(this.height) + output);- this.extraLinesUnderPrompt = bottomContentHeight;- this.height = height8(output);- }- checkCursorPos() {- const cursorPos = this.rl.getCursorPos();- if (cursorPos.cols !== this.cursorPos.cols) {- this.write(import_ansi_escapes9.default.cursorTo(cursorPos.cols));- this.cursorPos = cursorPos;- }- }- done({ clearContent }) {- this.rl.setPrompt("");- let output = cursorDown8(this.extraLinesUnderPrompt);- output += clearContent ? import_ansi_escapes9.default.eraseLines(this.height) : `-`;- output += import_ansi_escapes9.default.cursorShow;- this.write(output);- this.rl.close();- }-}-var import_strip_ansi8, import_ansi_escapes9, height8 = (content) => content.split(`-`).length, lastLine8 = (content) => content.split(`-`).pop() ?? "";-var init_screen_manager8 = __esm(() => {- import_strip_ansi8 = __toESM(require_strip_ansi9(), 1);- import_ansi_escapes9 = __toESM(require_ansi_escapes(), 1);- init_utils8();-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js-var PromisePolyfill8;-var init_promise_polyfill8 = __esm(() => {- PromisePolyfill8 = class PromisePolyfill8 extends Promise {- static withResolver() {- let resolve;- let reject;- const promise = new Promise((res, rej) => {- resolve = res;- reject = rej;- });- return { promise, resolve, reject };- }- };-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js-import * as readline16 from "node:readline";-import { AsyncResource as AsyncResource25 } from "node:async_hooks";-function getCallSites8() {- const _prepareStackTrace = Error.prepareStackTrace;- try {- let result = [];- Error.prepareStackTrace = (_2, callSites) => {- const callSitesWithoutCurrent = callSites.slice(1);- result = callSitesWithoutCurrent;- return callSitesWithoutCurrent;- };- new Error().stack;- return result;- } finally {- Error.prepareStackTrace = _prepareStackTrace;- }-}-function createPrompt8(view) {- const callSites = getCallSites8();- const callerFilename = callSites[1]?.getFileName?.();- const prompt = (config, context = {}) => {- const { input = process.stdin, signal } = context;- const cleanups = new Set;- const output = new import_mute_stream8.default;- output.pipe(context.output ?? process.stdout);- const rl = readline16.createInterface({- terminal: true,- input,- output- });- const screen = new ScreenManager8(rl);- const { promise, resolve, reject } = PromisePolyfill8.withResolver();- const cancel = () => reject(new CancelPromptError8);- if (signal) {- const abort = () => reject(new AbortPromptError8({ cause: signal.reason }));- if (signal.aborted) {- abort();- return Object.assign(promise, { cancel });- }- signal.addEventListener("abort", abort);- cleanups.add(() => signal.removeEventListener("abort", abort));- }- cleanups.add(onExit((code, signal2) => {- reject(new ExitPromptError8(`User force closed the prompt with ${code} ${signal2}`));- }));- const checkCursorPos = () => screen.checkCursorPos();- rl.input.on("keypress", checkCursorPos);- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));- return withHooks8(rl, (cycle) => {- const hooksCleanup = AsyncResource25.bind(() => effectScheduler8.clearAll());- rl.on("close", hooksCleanup);- cleanups.add(() => rl.removeListener("close", hooksCleanup));- cycle(() => {- try {- const nextView = view(config, (value) => {- setImmediate(() => resolve(value));- });- if (nextView === undefined) {- throw new Error(`Prompt functions must return a string.- at ${callerFilename}`);- }- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;- screen.render(content, bottomContent);- effectScheduler8.run();- } catch (error) {- reject(error);- }- });- return Object.assign(promise.then((answer) => {- effectScheduler8.clearAll();- return answer;- }, (error) => {- effectScheduler8.clearAll();- throw error;- }).finally(() => {- cleanups.forEach((cleanup) => cleanup());- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });- output.end();- }).then(() => promise), { cancel });- });- };- return prompt;-}-var import_mute_stream8;-var init_create_prompt8 = __esm(() => {- import_mute_stream8 = __toESM(require_lib2(), 1);- init_mjs();- init_screen_manager8();- init_promise_polyfill8();- init_hook_engine8();- init_errors8();-});--// node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/index.js-var init_esm23 = __esm(() => {- init_errors8();- init_use_prefix8();- init_use_state8();- init_use_keypress8();- init_make_theme8();- init_create_prompt8();-});--// node_modules/@inquirer/password/dist/esm/index.js-var import_ansi_escapes10, esm_default16;-var init_esm24 = __esm(() => {- init_esm23();- import_ansi_escapes10 = __toESM(require_ansi_escapes(), 1);- esm_default16 = createPrompt8((config, done) => {- const { validate = () => true } = config;- const theme = makeTheme8(config.theme);- const [status, setStatus] = useState8("idle");- const [errorMsg, setError] = useState8();- const [value, setValue] = useState8("");- const prefix = usePrefix8({ status, theme });- useKeypress8(async (key9, rl) => {- if (status !== "idle") {- return;- }- if (isEnterKey8(key9)) {- const answer = value;- setStatus("loading");- const isValid = await validate(answer);- if (isValid === true) {- setValue(answer);- setStatus("done");- done(answer);- } else {- rl.write(value);- setError(isValid || "You must provide a valid value");- setStatus("idle");- }- } else {- setValue(rl.line);- setError(undefined);- }- });- const message = theme.style.message(config.message, status);- let formattedValue = "";- let helpTip;- if (config.mask) {- const maskChar = typeof config.mask === "string" ? config.mask : "*";- formattedValue = maskChar.repeat(value.length);- } else if (status !== "done") {- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes10.default.cursorHide}`;- }- if (status === "done") {- formattedValue = theme.style.answer(formattedValue);- }- let error = "";- if (errorMsg) {- error = theme.style.error(errorMsg);- }- return [[prefix, message, config.mask ? formattedValue : helpTip].join(" "), error];- });-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/key.js-var isEnterKey9 = (key9) => key9.name === "enter" || key9.name === "return";--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/errors.js-var AbortPromptError9, CancelPromptError9, ExitPromptError9, HookError9, ValidationError9;-var init_errors9 = __esm(() => {- AbortPromptError9 = class AbortPromptError9 extends Error {- name = "AbortPromptError";- message = "Prompt was aborted";- constructor(options) {- super();- this.cause = options?.cause;- }- };- CancelPromptError9 = class CancelPromptError9 extends Error {- name = "CancelPromptError";- message = "Prompt was canceled";- };- ExitPromptError9 = class ExitPromptError9 extends Error {- name = "ExitPromptError";- };- HookError9 = class HookError9 extends Error {- name = "HookError";- };- ValidationError9 = class ValidationError9 extends Error {- name = "ValidationError";- };-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js-import { AsyncLocalStorage as AsyncLocalStorage9, AsyncResource as AsyncResource26 } from "node:async_hooks";-function createStore9(rl) {- const store = {- rl,- hooks: [],- hooksCleanup: [],- hooksEffect: [],- index: 0,- handleChange() {- }- };- return store;-}-function withHooks9(rl, cb) {- const store = createStore9(rl);- return hookStorage9.run(store, () => {- function cycle(render) {- store.handleChange = () => {- store.index = 0;- render();- };- store.handleChange();- }- return cb(cycle);- });-}-function getStore9() {- const store = hookStorage9.getStore();- if (!store) {- throw new HookError9("[Inquirer] Hook functions can only be called from within a prompt");- }- return store;-}-function readline17() {- return getStore9().rl;-}-function withUpdates9(fn) {- const wrapped = (...args) => {- const store = getStore9();- let shouldUpdate = false;- const oldHandleChange = store.handleChange;- store.handleChange = () => {- shouldUpdate = true;- };- const returnValue = fn(...args);- if (shouldUpdate) {- oldHandleChange();- }- store.handleChange = oldHandleChange;- return returnValue;- };- return AsyncResource26.bind(wrapped);-}-function withPointer9(cb) {- const store = getStore9();- const { index } = store;- const pointer = {- get() {- return store.hooks[index];- },- set(value) {- store.hooks[index] = value;- },- initialized: index in store.hooks- };- const returnValue = cb(pointer);- store.index++;- return returnValue;-}-function handleChange9() {- getStore9().handleChange();-}-var hookStorage9, effectScheduler9;-var init_hook_engine9 = __esm(() => {- init_errors9();- hookStorage9 = new AsyncLocalStorage9;- effectScheduler9 = {- queue(cb) {- const store = getStore9();- const { index } = store;- store.hooksEffect.push(() => {- store.hooksCleanup[index]?.();- const cleanFn = cb(readline17());- if (cleanFn != null && typeof cleanFn !== "function") {- throw new ValidationError9("useEffect return value must be a cleanup function or nothing.");- }- store.hooksCleanup[index] = cleanFn;- });- },- run() {- const store = getStore9();- withUpdates9(() => {- store.hooksEffect.forEach((effect) => {- effect();- });- store.hooksEffect.length = 0;- })();- },- clearAll() {- const store = getStore9();- store.hooksCleanup.forEach((cleanFn) => {- cleanFn?.();- });- store.hooksEffect.length = 0;- store.hooksCleanup.length = 0;- }- };-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/use-state.js-function useState9(defaultValue) {- return withPointer9((pointer) => {- const setFn = (newValue) => {- if (pointer.get() !== newValue) {- pointer.set(newValue);- handleChange9();- }- };- if (pointer.initialized) {- return [pointer.get(), setFn];- }- const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;- pointer.set(value);- return [value, setFn];- });-}-var init_use_state9 = __esm(() => {- init_hook_engine9();-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/use-effect.js-function useEffect9(cb, depArray) {- withPointer9((pointer) => {- const oldDeps = pointer.get();- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));- if (hasChanged) {- effectScheduler9.queue(cb);- }- pointer.set(depArray);- });-}-var init_use_effect9 = __esm(() => {- init_hook_engine9();-});--// node_modules/@inquirer/search/node_modules/@inquirer/figures/dist/esm/index.js-import process11 from "node:process";-function isUnicodeSupported9() {- if (process11.platform !== "win32") {- return process11.env["TERM"] !== "linux";- }- return Boolean(process11.env["WT_SESSION"]) || Boolean(process11.env["TERMINUS_SUBLIME"]) || process11.env["ConEmuTask"] === "{cmd::Cmder}" || process11.env["TERM_PROGRAM"] === "Terminus-Sublime" || process11.env["TERM_PROGRAM"] === "vscode" || process11.env["TERM"] === "xterm-256color" || process11.env["TERM"] === "alacritty" || process11.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";-}-var common9, specialMainSymbols9, specialFallbackSymbols9, mainSymbols9, fallbackSymbols9, shouldUseMain9, figures9, esm_default17, replacements9;-var init_esm25 = __esm(() => {- common9 = {- circleQuestionMark: "(?)",- questionMarkPrefix: "(?)",- square: "█",- squareDarkShade: "▓",- squareMediumShade: "▒",- squareLightShade: "░",- squareTop: "▀",- squareBottom: "▄",- squareLeft: "▌",- squareRight: "▐",- squareCenter: "■",- bullet: "●",- dot: "․",- ellipsis: "…",- pointerSmall: "›",- triangleUp: "▲",- triangleUpSmall: "▴",- triangleDown: "▼",- triangleDownSmall: "▾",- triangleLeftSmall: "◂",- triangleRightSmall: "▸",- home: "⌂",- heart: "♥",- musicNote: "♪",- musicNoteBeamed: "♫",- arrowUp: "↑",- arrowDown: "↓",- arrowLeft: "←",- arrowRight: "→",- arrowLeftRight: "↔",- arrowUpDown: "↕",- almostEqual: "≈",- notEqual: "≠",- lessOrEqual: "≤",- greaterOrEqual: "≥",- identical: "≡",- infinity: "∞",- subscriptZero: "₀",- subscriptOne: "₁",- subscriptTwo: "₂",- subscriptThree: "₃",- subscriptFour: "₄",- subscriptFive: "₅",- subscriptSix: "₆",- subscriptSeven: "₇",- subscriptEight: "₈",- subscriptNine: "₉",- oneHalf: "½",- oneThird: "⅓",- oneQuarter: "¼",- oneFifth: "⅕",- oneSixth: "⅙",- oneEighth: "⅛",- twoThirds: "⅔",- twoFifths: "⅖",- threeQuarters: "¾",- threeFifths: "⅗",- threeEighths: "⅜",- fourFifths: "⅘",- fiveSixths: "⅚",- fiveEighths: "⅝",- sevenEighths: "⅞",- line: "─",- lineBold: "━",- lineDouble: "═",- lineDashed0: "┄",- lineDashed1: "┅",- lineDashed2: "┈",- lineDashed3: "┉",- lineDashed4: "╌",- lineDashed5: "╍",- lineDashed6: "╴",- lineDashed7: "╶",- lineDashed8: "╸",- lineDashed9: "╺",- lineDashed10: "╼",- lineDashed11: "╾",- lineDashed12: "−",- lineDashed13: "–",- lineDashed14: "‐",- lineDashed15: "⁃",- lineVertical: "│",- lineVerticalBold: "┃",- lineVerticalDouble: "║",- lineVerticalDashed0: "┆",- lineVerticalDashed1: "┇",- lineVerticalDashed2: "┊",- lineVerticalDashed3: "┋",- lineVerticalDashed4: "╎",- lineVerticalDashed5: "╏",- lineVerticalDashed6: "╵",- lineVerticalDashed7: "╷",- lineVerticalDashed8: "╹",- lineVerticalDashed9: "╻",- lineVerticalDashed10: "╽",- lineVerticalDashed11: "╿",- lineDownLeft: "┐",- lineDownLeftArc: "╮",- lineDownBoldLeftBold: "┓",- lineDownBoldLeft: "┒",- lineDownLeftBold: "┑",- lineDownDoubleLeftDouble: "╗",- lineDownDoubleLeft: "╖",- lineDownLeftDouble: "╕",- lineDownRight: "┌",- lineDownRightArc: "╭",- lineDownBoldRightBold: "┏",- lineDownBoldRight: "┎",- lineDownRightBold: "┍",- lineDownDoubleRightDouble: "╔",- lineDownDoubleRight: "╓",- lineDownRightDouble: "╒",- lineUpLeft: "┘",- lineUpLeftArc: "╯",- lineUpBoldLeftBold: "┛",- lineUpBoldLeft: "┚",- lineUpLeftBold: "┙",- lineUpDoubleLeftDouble: "╝",- lineUpDoubleLeft: "╜",- lineUpLeftDouble: "╛",- lineUpRight: "└",- lineUpRightArc: "╰",- lineUpBoldRightBold: "┗",- lineUpBoldRight: "┖",- lineUpRightBold: "┕",- lineUpDoubleRightDouble: "╚",- lineUpDoubleRight: "╙",- lineUpRightDouble: "╘",- lineUpDownLeft: "┤",- lineUpBoldDownBoldLeftBold: "┫",- lineUpBoldDownBoldLeft: "┨",- lineUpDownLeftBold: "┥",- lineUpBoldDownLeftBold: "┩",- lineUpDownBoldLeftBold: "┪",- lineUpDownBoldLeft: "┧",- lineUpBoldDownLeft: "┦",- lineUpDoubleDownDoubleLeftDouble: "╣",- lineUpDoubleDownDoubleLeft: "╢",- lineUpDownLeftDouble: "╡",- lineUpDownRight: "├",- lineUpBoldDownBoldRightBold: "┣",- lineUpBoldDownBoldRight: "┠",- lineUpDownRightBold: "┝",- lineUpBoldDownRightBold: "┡",- lineUpDownBoldRightBold: "┢",- lineUpDownBoldRight: "┟",- lineUpBoldDownRight: "┞",- lineUpDoubleDownDoubleRightDouble: "╠",- lineUpDoubleDownDoubleRight: "╟",- lineUpDownRightDouble: "╞",- lineDownLeftRight: "┬",- lineDownBoldLeftBoldRightBold: "┳",- lineDownLeftBoldRightBold: "┯",- lineDownBoldLeftRight: "┰",- lineDownBoldLeftBoldRight: "┱",- lineDownBoldLeftRightBold: "┲",- lineDownLeftRightBold: "┮",- lineDownLeftBoldRight: "┭",- lineDownDoubleLeftDoubleRightDouble: "╦",- lineDownDoubleLeftRight: "╥",- lineDownLeftDoubleRightDouble: "╤",- lineUpLeftRight: "┴",- lineUpBoldLeftBoldRightBold: "┻",- lineUpLeftBoldRightBold: "┷",- lineUpBoldLeftRight: "┸",- lineUpBoldLeftBoldRight: "┹",- lineUpBoldLeftRightBold: "┺",- lineUpLeftRightBold: "┶",- lineUpLeftBoldRight: "┵",- lineUpDoubleLeftDoubleRightDouble: "╩",- lineUpDoubleLeftRight: "╨",- lineUpLeftDoubleRightDouble: "╧",- lineUpDownLeftRight: "┼",- lineUpBoldDownBoldLeftBoldRightBold: "╋",- lineUpDownBoldLeftBoldRightBold: "╈",- lineUpBoldDownLeftBoldRightBold: "╇",- lineUpBoldDownBoldLeftRightBold: "╊",- lineUpBoldDownBoldLeftBoldRight: "╉",- lineUpBoldDownLeftRight: "╀",- lineUpDownBoldLeftRight: "╁",- lineUpDownLeftBoldRight: "┽",- lineUpDownLeftRightBold: "┾",- lineUpBoldDownBoldLeftRight: "╂",- lineUpDownLeftBoldRightBold: "┿",- lineUpBoldDownLeftBoldRight: "╃",- lineUpBoldDownLeftRightBold: "╄",- lineUpDownBoldLeftBoldRight: "╅",- lineUpDownBoldLeftRightBold: "╆",- lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",- lineUpDoubleDownDoubleLeftRight: "╫",- lineUpDownLeftDoubleRightDouble: "╪",- lineCross: "╳",- lineBackslash: "╲",- lineSlash: "╱"- };- specialMainSymbols9 = {- tick: "✔",- info: "ℹ",- warning: "⚠",- cross: "✘",- squareSmall: "◻",- squareSmallFilled: "◼",- circle: "◯",- circleFilled: "◉",- circleDotted: "◌",- circleDouble: "◎",- circleCircle: "ⓞ",- circleCross: "ⓧ",- circlePipe: "Ⓘ",- radioOn: "◉",- radioOff: "◯",- checkboxOn: "☒",- checkboxOff: "☐",- checkboxCircleOn: "ⓧ",- checkboxCircleOff: "Ⓘ",- pointer: "❯",- triangleUpOutline: "△",- triangleLeft: "◀",- triangleRight: "▶",- lozenge: "◆",- lozengeOutline: "◇",- hamburger: "☰",- smiley: "㋡",- mustache: "෴",- star: "★",- play: "▶",- nodejs: "⬢",- oneSeventh: "⅐",- oneNinth: "⅑",- oneTenth: "⅒"- };- specialFallbackSymbols9 = {- tick: "√",- info: "i",- warning: "‼",- cross: "×",- squareSmall: "□",- squareSmallFilled: "■",- circle: "( )",- circleFilled: "(*)",- circleDotted: "( )",- circleDouble: "( )",- circleCircle: "(○)",- circleCross: "(×)",- circlePipe: "(│)",- radioOn: "(*)",- radioOff: "( )",- checkboxOn: "[×]",- checkboxOff: "[ ]",- checkboxCircleOn: "(×)",- checkboxCircleOff: "( )",- pointer: ">",- triangleUpOutline: "∆",- triangleLeft: "◄",- triangleRight: "►",- lozenge: "♦",- lozengeOutline: "◊",- hamburger: "≡",- smiley: "☺",- mustache: "┌─┐",- star: "✶",- play: "►",- nodejs: "♦",- oneSeventh: "1/7",- oneNinth: "1/9",- oneTenth: "1/10"- };- mainSymbols9 = { ...common9, ...specialMainSymbols9 };- fallbackSymbols9 = {- ...common9,- ...specialFallbackSymbols9- };- shouldUseMain9 = isUnicodeSupported9();- figures9 = shouldUseMain9 ? mainSymbols9 : fallbackSymbols9;- esm_default17 = figures9;- replacements9 = Object.entries(specialMainSymbols9);-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/theme.js-var import_yoctocolors_cjs15, defaultTheme9;-var init_theme9 = __esm(() => {- import_yoctocolors_cjs15 = __toESM(require_yoctocolors_cjs(), 1);- init_esm25();- defaultTheme9 = {- prefix: {- idle: import_yoctocolors_cjs15.default.blue("?"),- done: import_yoctocolors_cjs15.default.green(esm_default17.tick)- },- spinner: {- interval: 80,- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs15.default.yellow(frame))- },- style: {- answer: import_yoctocolors_cjs15.default.cyan,- message: import_yoctocolors_cjs15.default.bold,- error: (text) => import_yoctocolors_cjs15.default.red(`> ${text}`),- defaultAnswer: (text) => import_yoctocolors_cjs15.default.dim(`(${text})`),- help: import_yoctocolors_cjs15.default.dim,- highlight: import_yoctocolors_cjs15.default.cyan,- key: (text) => import_yoctocolors_cjs15.default.cyan(import_yoctocolors_cjs15.default.bold(`<${text}>`))- }- };-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/make-theme.js-function isPlainObject9(value) {- if (typeof value !== "object" || value === null)- return false;- let proto = value;- while (Object.getPrototypeOf(proto) !== null) {- proto = Object.getPrototypeOf(proto);- }- return Object.getPrototypeOf(value) === proto;-}-function deepMerge9(...objects) {- const output = {};- for (const obj of objects) {- for (const [key9, value] of Object.entries(obj)) {- const prevValue = output[key9];- output[key9] = isPlainObject9(prevValue) && isPlainObject9(value) ? deepMerge9(prevValue, value) : value;- }- }- return output;-}-function makeTheme9(...themes) {- const themesToMerge = [- defaultTheme9,- ...themes.filter((theme) => theme != null)- ];- return deepMerge9(...themesToMerge);-}-var init_make_theme9 = __esm(() => {- init_theme9();-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js-import { AsyncResource as AsyncResource27 } from "node:async_hooks";-function usePrefix9({ status = "idle", theme }) {- const [showLoader, setShowLoader] = useState9(false);- const [tick, setTick] = useState9(0);- const { prefix, spinner } = makeTheme9(theme);- useEffect9(() => {- if (status === "loading") {- let tickInterval;- let inc = -1;- const delayTimeout = setTimeout(AsyncResource27.bind(() => {- setShowLoader(true);- tickInterval = setInterval(AsyncResource27.bind(() => {- inc = inc + 1;- setTick(inc % spinner.frames.length);- }), spinner.interval);- }), 300);- return () => {- clearTimeout(delayTimeout);- clearInterval(tickInterval);- };- } else {- setShowLoader(false);- }- }, [status]);- if (showLoader) {- return spinner.frames[tick];- }- const iconName = status === "loading" ? "idle" : status;- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];-}-var init_use_prefix9 = __esm(() => {- init_use_state9();- init_use_effect9();- init_make_theme9();-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/use-memo.js-function useMemo4(fn, dependencies) {- return withPointer9((pointer) => {- const prev = pointer.get();- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {- const value = fn();- pointer.set({ value, dependencies });- return value;- }- return prev.value;- });-}-var init_use_memo4 = __esm(() => {- init_hook_engine9();-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/use-ref.js-function useRef9(val) {- return useState9({ current: val })[0];-}-var init_use_ref9 = __esm(() => {- init_use_state9();-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js-function useKeypress9(userHandler) {- const signal = useRef9(userHandler);- signal.current = userHandler;- useEffect9((rl) => {- let ignore = false;- const handler = withUpdates9((_input, event) => {- if (ignore)- return;- signal.current(event, rl);- });- rl.input.on("keypress", handler);- return () => {- ignore = true;- rl.input.removeListener("keypress", handler);- };- }, []);-}-var init_use_keypress9 = __esm(() => {- init_use_ref9();- init_use_effect9();- init_hook_engine9();-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/utils.js-function breakLines9(content, width) {- return content.split(`-`).flatMap((line) => import_wrap_ansi9.default(line, width, { trim: false, hard: true }).split(`-`).map((str) => str.trimEnd())).join(`-`);-}-function readlineWidth9() {- return import_cli_width9.default({ defaultWidth: 80, output: readline17().output });-}-var import_cli_width9, import_wrap_ansi9;-var init_utils9 = __esm(() => {- import_cli_width9 = __toESM(require_cli_width(), 1);- import_wrap_ansi9 = __toESM(require_wrap_ansi(), 1);- init_hook_engine9();-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js-function split2(content, width) {- return breakLines9(content, width).split(`-`);-}-function rotate2(count, items) {- const max = items.length;- const offset = (count % max + max) % max;- return [...items.slice(offset), ...items.slice(0, offset)];-}-function lines2({ items, width, renderItem, active, position: requested, pageSize }) {- const layouts = items.map((item, index) => ({- item,- index,- isActive: index === active- }));- const layoutsInPage = rotate2(active - requested, layouts).slice(0, pageSize);- const renderItemAt = (index) => layoutsInPage[index] == null ? [] : split2(renderItem(layoutsInPage[index]), width);- const pageBuffer = Array.from({ length: pageSize });- const activeItem = renderItemAt(requested).slice(0, pageSize);- const position = requested + activeItem.length <= pageSize ? requested : pageSize - activeItem.length;- pageBuffer.splice(position, activeItem.length, ...activeItem);- let bufferPointer = position + activeItem.length;- let layoutPointer = requested + 1;- while (bufferPointer < pageSize && layoutPointer < layoutsInPage.length) {- for (const line of renderItemAt(layoutPointer)) {- pageBuffer[bufferPointer++] = line;- if (bufferPointer >= pageSize)- break;- }- layoutPointer++;- }- bufferPointer = position - 1;- layoutPointer = requested - 1;- while (bufferPointer >= 0 && layoutPointer >= 0) {- for (const line of renderItemAt(layoutPointer).reverse()) {- pageBuffer[bufferPointer--] = line;- if (bufferPointer < 0)- break;- }- layoutPointer--;- }- return pageBuffer.filter((line) => typeof line === "string");-}-var init_lines2 = __esm(() => {- init_utils9();-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/pagination/position.js-function finite2({ active, pageSize, total }) {- const middle = Math.floor(pageSize / 2);- if (total <= pageSize || active < middle)- return active;- if (active >= total - middle)- return active + pageSize - total;- return middle;-}-function infinite2({ active, lastActive, total, pageSize, pointer }) {- if (total <= pageSize)- return active;- if (lastActive < active && active - lastActive < pageSize) {- return Math.min(Math.floor(pageSize / 2), pointer + active - lastActive);- }- return pointer;-}--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js-function usePagination2({ items, active, renderItem, pageSize, loop = true }) {- const state = useRef9({ position: 0, lastActive: 0 });- const position = loop ? infinite2({- active,- lastActive: state.current.lastActive,- total: items.length,- pageSize,- pointer: state.current.position- }) : finite2({- active,- total: items.length,- pageSize- });- state.current.position = position;- state.current.lastActive = active;- return lines2({- items,- width: readlineWidth9(),- renderItem,- active,- position,- pageSize- }).join(`-`);-}-var init_use_pagination2 = __esm(() => {- init_use_ref9();- init_utils9();- init_lines2();-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/node_modules/strip-ansi/node_modules/ansi-regex/index.js-var require_ansi_regex10 = __commonJS((exports, module) => {- module.exports = ({ onlyFirst = false } = {}) => {- const pattern = [- "[\\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("|");- return new RegExp(pattern, onlyFirst ? undefined : "g");- };-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/node_modules/strip-ansi/index.js-var require_strip_ansi10 = __commonJS((exports, module) => {- var ansiRegex = require_ansi_regex10();- module.exports = (string2) => typeof string2 === "string" ? string2.replace(ansiRegex(), "") : string2;-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js-function cursorDown9(n) {- return n > 0 ? import_ansi_escapes11.default.cursorDown(n) : "";-}--class ScreenManager9 {- rl;- height = 0;- extraLinesUnderPrompt = 0;- cursorPos;- constructor(rl) {- this.rl = rl;- this.rl = rl;- this.cursorPos = rl.getCursorPos();- }- write(content) {- this.rl.output.unmute();- this.rl.output.write(content);- this.rl.output.mute();- }- render(content, bottomContent = "") {- const promptLine = lastLine9(content);- const rawPromptLine = import_strip_ansi9.default(promptLine);- let prompt = rawPromptLine;- if (this.rl.line.length > 0) {- prompt = prompt.slice(0, -this.rl.line.length);- }- this.rl.setPrompt(prompt);- this.cursorPos = this.rl.getCursorPos();- const width = readlineWidth9();- content = breakLines9(content, width);- bottomContent = breakLines9(bottomContent, width);- if (rawPromptLine.length % width === 0) {- content += `-`;- }- let output = content + (bottomContent ? `-` + bottomContent : "");- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height9(bottomContent) : 0);- if (bottomContentHeight > 0)- output += import_ansi_escapes11.default.cursorUp(bottomContentHeight);- output += import_ansi_escapes11.default.cursorTo(this.cursorPos.cols);- this.write(cursorDown9(this.extraLinesUnderPrompt) + import_ansi_escapes11.default.eraseLines(this.height) + output);- this.extraLinesUnderPrompt = bottomContentHeight;- this.height = height9(output);- }- checkCursorPos() {- const cursorPos = this.rl.getCursorPos();- if (cursorPos.cols !== this.cursorPos.cols) {- this.write(import_ansi_escapes11.default.cursorTo(cursorPos.cols));- this.cursorPos = cursorPos;- }- }- done({ clearContent }) {- this.rl.setPrompt("");- let output = cursorDown9(this.extraLinesUnderPrompt);- output += clearContent ? import_ansi_escapes11.default.eraseLines(this.height) : `-`;- output += import_ansi_escapes11.default.cursorShow;- this.write(output);- this.rl.close();- }-}-var import_strip_ansi9, import_ansi_escapes11, height9 = (content) => content.split(`-`).length, lastLine9 = (content) => content.split(`-`).pop() ?? "";-var init_screen_manager9 = __esm(() => {- import_strip_ansi9 = __toESM(require_strip_ansi10(), 1);- import_ansi_escapes11 = __toESM(require_ansi_escapes(), 1);- init_utils9();-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js-var PromisePolyfill9;-var init_promise_polyfill9 = __esm(() => {- PromisePolyfill9 = class PromisePolyfill9 extends Promise {- static withResolver() {- let resolve;- let reject;- const promise = new Promise((res, rej) => {- resolve = res;- reject = rej;- });- return { promise, resolve, reject };- }- };-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js-import * as readline18 from "node:readline";-import { AsyncResource as AsyncResource28 } from "node:async_hooks";-function getCallSites9() {- const _prepareStackTrace = Error.prepareStackTrace;- try {- let result = [];- Error.prepareStackTrace = (_2, callSites) => {- const callSitesWithoutCurrent = callSites.slice(1);- result = callSitesWithoutCurrent;- return callSitesWithoutCurrent;- };- new Error().stack;- return result;- } finally {- Error.prepareStackTrace = _prepareStackTrace;- }-}-function createPrompt9(view) {- const callSites = getCallSites9();- const callerFilename = callSites[1]?.getFileName?.();- const prompt = (config, context = {}) => {- const { input = process.stdin, signal } = context;- const cleanups = new Set;- const output = new import_mute_stream9.default;- output.pipe(context.output ?? process.stdout);- const rl = readline18.createInterface({- terminal: true,- input,- output- });- const screen = new ScreenManager9(rl);- const { promise, resolve, reject } = PromisePolyfill9.withResolver();- const cancel = () => reject(new CancelPromptError9);- if (signal) {- const abort = () => reject(new AbortPromptError9({ cause: signal.reason }));- if (signal.aborted) {- abort();- return Object.assign(promise, { cancel });- }- signal.addEventListener("abort", abort);- cleanups.add(() => signal.removeEventListener("abort", abort));- }- cleanups.add(onExit((code, signal2) => {- reject(new ExitPromptError9(`User force closed the prompt with ${code} ${signal2}`));- }));- const checkCursorPos = () => screen.checkCursorPos();- rl.input.on("keypress", checkCursorPos);- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));- return withHooks9(rl, (cycle) => {- const hooksCleanup = AsyncResource28.bind(() => effectScheduler9.clearAll());- rl.on("close", hooksCleanup);- cleanups.add(() => rl.removeListener("close", hooksCleanup));- cycle(() => {- try {- const nextView = view(config, (value) => {- setImmediate(() => resolve(value));- });- if (nextView === undefined) {- throw new Error(`Prompt functions must return a string.- at ${callerFilename}`);- }- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;- screen.render(content, bottomContent);- effectScheduler9.run();- } catch (error) {- reject(error);- }- });- return Object.assign(promise.then((answer) => {- effectScheduler9.clearAll();- return answer;- }, (error) => {- effectScheduler9.clearAll();- throw error;- }).finally(() => {- cleanups.forEach((cleanup) => cleanup());- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });- output.end();- }).then(() => promise), { cancel });- });- };- return prompt;-}-var import_mute_stream9;-var init_create_prompt9 = __esm(() => {- import_mute_stream9 = __toESM(require_lib2(), 1);- init_mjs();- init_screen_manager9();- init_promise_polyfill9();- init_hook_engine9();- init_errors9();-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/lib/Separator.js-class Separator4 {- separator = import_yoctocolors_cjs16.default.dim(Array.from({ length: 15 }).join(esm_default17.line));- type = "separator";- constructor(separator) {- if (separator) {- this.separator = separator;- }- }- static isSeparator(choice) {- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");- }-}-var import_yoctocolors_cjs16;-var init_Separator4 = __esm(() => {- import_yoctocolors_cjs16 = __toESM(require_yoctocolors_cjs(), 1);- init_esm25();-});--// node_modules/@inquirer/search/node_modules/@inquirer/core/dist/esm/index.js-var init_esm26 = __esm(() => {- init_errors9();- init_use_prefix9();- init_use_state9();- init_use_effect9();- init_use_memo4();- init_use_ref9();- init_use_keypress9();- init_make_theme9();- init_use_pagination2();- init_create_prompt9();- init_Separator4();-});--// node_modules/@inquirer/search/dist/esm/index.js-function isSelectable2(item) {- return !Separator4.isSeparator(item) && !item.disabled;-}-function normalizeChoices4(choices) {- return choices.map((choice) => {- if (Separator4.isSeparator(choice))- return choice;- if (typeof choice === "string") {- return {- value: choice,- name: choice,- short: choice,- disabled: false- };- }- const name = choice.name ?? String(choice.value);- return {- value: choice.value,- name,- description: choice.description,- short: choice.short ?? name,- disabled: choice.disabled ?? false- };- });-}-var import_yoctocolors_cjs17, searchTheme, esm_default18;-var init_esm27 = __esm(() => {- init_esm26();- import_yoctocolors_cjs17 = __toESM(require_yoctocolors_cjs(), 1);- init_esm25();- searchTheme = {- icon: { cursor: esm_default17.pointer },- style: {- disabled: (text) => import_yoctocolors_cjs17.default.dim(`- ${text}`),- searchTerm: (text) => import_yoctocolors_cjs17.default.cyan(text),- description: (text) => import_yoctocolors_cjs17.default.cyan(text)- },- helpMode: "auto"- };- esm_default18 = createPrompt9((config, done) => {- const { pageSize = 7, validate = () => true } = config;- const theme = makeTheme9(searchTheme, config.theme);- const firstRender = useRef9(true);- const [status, setStatus] = useState9("loading");- const [searchTerm, setSearchTerm] = useState9("");- const [searchResults, setSearchResults] = useState9([]);- const [searchError, setSearchError] = useState9();- const prefix = usePrefix9({ status, theme });- const bounds = useMemo4(() => {- const first = searchResults.findIndex(isSelectable2);- const last = searchResults.findLastIndex(isSelectable2);- return { first, last };- }, [searchResults]);- const [active = bounds.first, setActive] = useState9();- useEffect9(() => {- const controller = new AbortController;- setStatus("loading");- setSearchError(undefined);- const fetchResults = async () => {- try {- const results = await config.source(searchTerm || undefined, {- signal: controller.signal- });- if (!controller.signal.aborted) {- setActive(undefined);- setSearchError(undefined);- setSearchResults(normalizeChoices4(results));- setStatus("idle");- }- } catch (error2) {- if (!controller.signal.aborted && error2 instanceof Error) {- setSearchError(error2.message);- }- }- };- fetchResults();- return () => {- controller.abort();- };- }, [searchTerm]);- const selectedChoice = searchResults[active];- useKeypress9(async (key10, rl) => {- if (isEnterKey9(key10)) {- if (selectedChoice) {- setStatus("loading");- const isValid = await validate(selectedChoice.value);- setStatus("idle");- if (isValid === true) {- setStatus("done");- done(selectedChoice.value);- } else if (selectedChoice.name === searchTerm) {- setSearchError(isValid || "You must provide a valid value");- } else {- rl.write(selectedChoice.name);- setSearchTerm(selectedChoice.name);- }- } else {- rl.write(searchTerm);- }- } else if (key10.name === "tab" && selectedChoice) {- rl.clearLine(0);- rl.write(selectedChoice.name);- setSearchTerm(selectedChoice.name);- } else if (status !== "loading" && (key10.name === "up" || key10.name === "down")) {- rl.clearLine(0);- if (key10.name === "up" && active !== bounds.first || key10.name === "down" && active !== bounds.last) {- const offset = key10.name === "up" ? -1 : 1;- let next = active;- do {- next = (next + offset + searchResults.length) % searchResults.length;- } while (!isSelectable2(searchResults[next]));- setActive(next);- }- } else {- setSearchTerm(rl.line);- }- });- const message = theme.style.message(config.message, status);- if (active > 0) {- firstRender.current = false;- }- let helpTip = "";- if (searchResults.length > 1 && (theme.helpMode === "always" || theme.helpMode === "auto" && firstRender.current)) {- helpTip = searchResults.length > pageSize ? `-${theme.style.help("(Use arrow keys to reveal more choices)")}` : `-${theme.style.help("(Use arrow keys)")}`;- }- const page = usePagination2({- items: searchResults,- active,- renderItem({ item, isActive }) {- if (Separator4.isSeparator(item)) {- return ` ${item.separator}`;- }- if (item.disabled) {- const disabledLabel = typeof item.disabled === "string" ? item.disabled : "(disabled)";- return theme.style.disabled(`${item.name} ${disabledLabel}`);- }- const color = isActive ? theme.style.highlight : (x) => x;- const cursor = isActive ? theme.icon.cursor : ` `;- return color(`${cursor} ${item.name}`);- },- pageSize,- loop: false- });- let error;- if (searchError) {- error = theme.style.error(searchError);- } else if (searchResults.length === 0 && searchTerm !== "" && status === "idle") {- error = theme.style.error("No results found");- }- let searchStr;- if (status === "done" && selectedChoice) {- const answer = selectedChoice.short;- return `${prefix} ${message} ${theme.style.answer(answer)}`;- } else {- searchStr = theme.style.searchTerm(searchTerm);- }- const choiceDescription = selectedChoice?.description ? `-${theme.style.description(selectedChoice.description)}` : ``;- return [- [prefix, message, searchStr].filter(Boolean).join(" "),- `${error ?? page}${helpTip}${choiceDescription}`- ];- });-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/key.js-var isUpKey2 = (key10) => key10.name === "up" || key10.name === "k" || key10.ctrl && key10.name === "p", isDownKey2 = (key10) => key10.name === "down" || key10.name === "j" || key10.ctrl && key10.name === "n", isBackspaceKey3 = (key10) => key10.name === "backspace", isNumberKey2 = (key10) => "123456789".includes(key10.name), isEnterKey10 = (key10) => key10.name === "enter" || key10.name === "return";--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js-var AbortPromptError10, CancelPromptError10, ExitPromptError10, HookError10, ValidationError10;-var init_errors10 = __esm(() => {- AbortPromptError10 = class AbortPromptError10 extends Error {- name = "AbortPromptError";- message = "Prompt was aborted";- constructor(options) {- super();- this.cause = options?.cause;- }- };- CancelPromptError10 = class CancelPromptError10 extends Error {- name = "CancelPromptError";- message = "Prompt was canceled";- };- ExitPromptError10 = class ExitPromptError10 extends Error {- name = "ExitPromptError";- };- HookError10 = class HookError10 extends Error {- name = "HookError";- };- ValidationError10 = class ValidationError10 extends Error {- name = "ValidationError";- };-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js-import { AsyncLocalStorage as AsyncLocalStorage10, AsyncResource as AsyncResource29 } from "node:async_hooks";-function createStore10(rl) {- const store = {- rl,- hooks: [],- hooksCleanup: [],- hooksEffect: [],- index: 0,- handleChange() {- }- };- return store;-}-function withHooks10(rl, cb) {- const store = createStore10(rl);- return hookStorage10.run(store, () => {- function cycle(render) {- store.handleChange = () => {- store.index = 0;- render();- };- store.handleChange();- }- return cb(cycle);- });-}-function getStore10() {- const store = hookStorage10.getStore();- if (!store) {- throw new HookError10("[Inquirer] Hook functions can only be called from within a prompt");- }- return store;-}-function readline19() {- return getStore10().rl;-}-function withUpdates10(fn) {- const wrapped = (...args) => {- const store = getStore10();- let shouldUpdate = false;- const oldHandleChange = store.handleChange;- store.handleChange = () => {- shouldUpdate = true;- };- const returnValue = fn(...args);- if (shouldUpdate) {- oldHandleChange();- }- store.handleChange = oldHandleChange;- return returnValue;- };- return AsyncResource29.bind(wrapped);-}-function withPointer10(cb) {- const store = getStore10();- const { index } = store;- const pointer = {- get() {- return store.hooks[index];- },- set(value) {- store.hooks[index] = value;- },- initialized: index in store.hooks- };- const returnValue = cb(pointer);- store.index++;- return returnValue;-}-function handleChange10() {- getStore10().handleChange();-}-var hookStorage10, effectScheduler10;-var init_hook_engine10 = __esm(() => {- init_errors10();- hookStorage10 = new AsyncLocalStorage10;- effectScheduler10 = {- queue(cb) {- const store = getStore10();- const { index } = store;- store.hooksEffect.push(() => {- store.hooksCleanup[index]?.();- const cleanFn = cb(readline19());- if (cleanFn != null && typeof cleanFn !== "function") {- throw new ValidationError10("useEffect return value must be a cleanup function or nothing.");+ const line = ` ${choice.key}) ${choice.name}`;+ if (choice.key === value.toLowerCase()) {+ return theme.style.highlight(line);}- store.hooksCleanup[index] = cleanFn;- });- },- run() {- const store = getStore10();- withUpdates10(() => {- store.hooksEffect.forEach((effect) => {- effect();- });- store.hooksEffect.length = 0;- })();- },- clearAll() {- const store = getStore10();- store.hooksCleanup.forEach((cleanFn) => {- cleanFn?.();- });- store.hooksEffect.length = 0;- store.hooksCleanup.length = 0;- }- };-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js-function useState10(defaultValue) {- return withPointer10((pointer) => {- const setFn = (newValue) => {- if (pointer.get() !== newValue) {- pointer.set(newValue);- handleChange10();- }- };- if (pointer.initialized) {- return [pointer.get(), setFn];- }- const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;- pointer.set(value);- return [value, setFn];- });-}-var init_use_state10 = __esm(() => {- init_hook_engine10();-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-effect.js-function useEffect10(cb, depArray) {- withPointer10((pointer) => {- const oldDeps = pointer.get();- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));- if (hasChanged) {- effectScheduler10.queue(cb);- }- pointer.set(depArray);- });-}-var init_use_effect10 = __esm(() => {- init_hook_engine10();-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/figures/dist/esm/index.js-import process12 from "node:process";-function isUnicodeSupported10() {- if (process12.platform !== "win32") {- return process12.env["TERM"] !== "linux";- }- return Boolean(process12.env["WT_SESSION"]) || Boolean(process12.env["TERMINUS_SUBLIME"]) || process12.env["ConEmuTask"] === "{cmd::Cmder}" || process12.env["TERM_PROGRAM"] === "Terminus-Sublime" || process12.env["TERM_PROGRAM"] === "vscode" || process12.env["TERM"] === "xterm-256color" || process12.env["TERM"] === "alacritty" || process12.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";-}-var common10, specialMainSymbols10, specialFallbackSymbols10, mainSymbols10, fallbackSymbols10, shouldUseMain10, figures10, esm_default19, replacements10;-var init_esm28 = __esm(() => {- common10 = {- circleQuestionMark: "(?)",- questionMarkPrefix: "(?)",- square: "█",- squareDarkShade: "▓",- squareMediumShade: "▒",- squareLightShade: "░",- squareTop: "▀",- squareBottom: "▄",- squareLeft: "▌",- squareRight: "▐",- squareCenter: "■",- bullet: "●",- dot: "․",- ellipsis: "…",- pointerSmall: "›",- triangleUp: "▲",- triangleUpSmall: "▴",- triangleDown: "▼",- triangleDownSmall: "▾",- triangleLeftSmall: "◂",- triangleRightSmall: "▸",- home: "⌂",- heart: "♥",- musicNote: "♪",- musicNoteBeamed: "♫",- arrowUp: "↑",- arrowDown: "↓",- arrowLeft: "←",- arrowRight: "→",- arrowLeftRight: "↔",- arrowUpDown: "↕",- almostEqual: "≈",- notEqual: "≠",- lessOrEqual: "≤",- greaterOrEqual: "≥",- identical: "≡",- infinity: "∞",- subscriptZero: "₀",- subscriptOne: "₁",- subscriptTwo: "₂",- subscriptThree: "₃",- subscriptFour: "₄",- subscriptFive: "₅",- subscriptSix: "₆",- subscriptSeven: "₇",- subscriptEight: "₈",- subscriptNine: "₉",- oneHalf: "½",- oneThird: "⅓",- oneQuarter: "¼",- oneFifth: "⅕",- oneSixth: "⅙",- oneEighth: "⅛",- twoThirds: "⅔",- twoFifths: "⅖",- threeQuarters: "¾",- threeFifths: "⅗",- threeEighths: "⅜",- fourFifths: "⅘",- fiveSixths: "⅚",- fiveEighths: "⅝",- sevenEighths: "⅞",- line: "─",- lineBold: "━",- lineDouble: "═",- lineDashed0: "┄",- lineDashed1: "┅",- lineDashed2: "┈",- lineDashed3: "┉",- lineDashed4: "╌",- lineDashed5: "╍",- lineDashed6: "╴",- lineDashed7: "╶",- lineDashed8: "╸",- lineDashed9: "╺",- lineDashed10: "╼",- lineDashed11: "╾",- lineDashed12: "−",- lineDashed13: "–",- lineDashed14: "‐",- lineDashed15: "⁃",- lineVertical: "│",- lineVerticalBold: "┃",- lineVerticalDouble: "║",- lineVerticalDashed0: "┆",- lineVerticalDashed1: "┇",- lineVerticalDashed2: "┊",- lineVerticalDashed3: "┋",- lineVerticalDashed4: "╎",- lineVerticalDashed5: "╏",- lineVerticalDashed6: "╵",- lineVerticalDashed7: "╷",- lineVerticalDashed8: "╹",- lineVerticalDashed9: "╻",- lineVerticalDashed10: "╽",- lineVerticalDashed11: "╿",- lineDownLeft: "┐",- lineDownLeftArc: "╮",- lineDownBoldLeftBold: "┓",- lineDownBoldLeft: "┒",- lineDownLeftBold: "┑",- lineDownDoubleLeftDouble: "╗",- lineDownDoubleLeft: "╖",- lineDownLeftDouble: "╕",- lineDownRight: "┌",- lineDownRightArc: "╭",- lineDownBoldRightBold: "┏",- lineDownBoldRight: "┎",- lineDownRightBold: "┍",- lineDownDoubleRightDouble: "╔",- lineDownDoubleRight: "╓",- lineDownRightDouble: "╒",- lineUpLeft: "┘",- lineUpLeftArc: "╯",- lineUpBoldLeftBold: "┛",- lineUpBoldLeft: "┚",- lineUpLeftBold: "┙",- lineUpDoubleLeftDouble: "╝",- lineUpDoubleLeft: "╜",- lineUpLeftDouble: "╛",- lineUpRight: "└",- lineUpRightArc: "╰",- lineUpBoldRightBold: "┗",- lineUpBoldRight: "┖",- lineUpRightBold: "┕",- lineUpDoubleRightDouble: "╚",- lineUpDoubleRight: "╙",- lineUpRightDouble: "╘",- lineUpDownLeft: "┤",- lineUpBoldDownBoldLeftBold: "┫",- lineUpBoldDownBoldLeft: "┨",- lineUpDownLeftBold: "┥",- lineUpBoldDownLeftBold: "┩",- lineUpDownBoldLeftBold: "┪",- lineUpDownBoldLeft: "┧",- lineUpBoldDownLeft: "┦",- lineUpDoubleDownDoubleLeftDouble: "╣",- lineUpDoubleDownDoubleLeft: "╢",- lineUpDownLeftDouble: "╡",- lineUpDownRight: "├",- lineUpBoldDownBoldRightBold: "┣",- lineUpBoldDownBoldRight: "┠",- lineUpDownRightBold: "┝",- lineUpBoldDownRightBold: "┡",- lineUpDownBoldRightBold: "┢",- lineUpDownBoldRight: "┟",- lineUpBoldDownRight: "┞",- lineUpDoubleDownDoubleRightDouble: "╠",- lineUpDoubleDownDoubleRight: "╟",- lineUpDownRightDouble: "╞",- lineDownLeftRight: "┬",- lineDownBoldLeftBoldRightBold: "┳",- lineDownLeftBoldRightBold: "┯",- lineDownBoldLeftRight: "┰",- lineDownBoldLeftBoldRight: "┱",- lineDownBoldLeftRightBold: "┲",- lineDownLeftRightBold: "┮",- lineDownLeftBoldRight: "┭",- lineDownDoubleLeftDoubleRightDouble: "╦",- lineDownDoubleLeftRight: "╥",- lineDownLeftDoubleRightDouble: "╤",- lineUpLeftRight: "┴",- lineUpBoldLeftBoldRightBold: "┻",- lineUpLeftBoldRightBold: "┷",- lineUpBoldLeftRight: "┸",- lineUpBoldLeftBoldRight: "┹",- lineUpBoldLeftRightBold: "┺",- lineUpLeftRightBold: "┶",- lineUpLeftBoldRight: "┵",- lineUpDoubleLeftDoubleRightDouble: "╩",- lineUpDoubleLeftRight: "╨",- lineUpLeftDoubleRightDouble: "╧",- lineUpDownLeftRight: "┼",- lineUpBoldDownBoldLeftBoldRightBold: "╋",- lineUpDownBoldLeftBoldRightBold: "╈",- lineUpBoldDownLeftBoldRightBold: "╇",- lineUpBoldDownBoldLeftRightBold: "╊",- lineUpBoldDownBoldLeftBoldRight: "╉",- lineUpBoldDownLeftRight: "╀",- lineUpDownBoldLeftRight: "╁",- lineUpDownLeftBoldRight: "┽",- lineUpDownLeftRightBold: "┾",- lineUpBoldDownBoldLeftRight: "╂",- lineUpDownLeftBoldRightBold: "┿",- lineUpBoldDownLeftBoldRight: "╃",- lineUpBoldDownLeftRightBold: "╄",- lineUpDownBoldLeftBoldRight: "╅",- lineUpDownBoldLeftRightBold: "╆",- lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",- lineUpDoubleDownDoubleLeftRight: "╫",- lineUpDownLeftDoubleRightDouble: "╪",- lineCross: "╳",- lineBackslash: "╲",- lineSlash: "╱"- };- specialMainSymbols10 = {- tick: "✔",- info: "ℹ",- warning: "⚠",- cross: "✘",- squareSmall: "◻",- squareSmallFilled: "◼",- circle: "◯",- circleFilled: "◉",- circleDotted: "◌",- circleDouble: "◎",- circleCircle: "ⓞ",- circleCross: "ⓧ",- circlePipe: "Ⓘ",- radioOn: "◉",- radioOff: "◯",- checkboxOn: "☒",- checkboxOff: "☐",- checkboxCircleOn: "ⓧ",- checkboxCircleOff: "Ⓘ",- pointer: "❯",- triangleUpOutline: "△",- triangleLeft: "◀",- triangleRight: "▶",- lozenge: "◆",- lozengeOutline: "◇",- hamburger: "☰",- smiley: "㋡",- mustache: "෴",- star: "★",- play: "▶",- nodejs: "⬢",- oneSeventh: "⅐",- oneNinth: "⅑",- oneTenth: "⅒"- };- specialFallbackSymbols10 = {- tick: "√",- info: "i",- warning: "‼",- cross: "×",- squareSmall: "□",- squareSmallFilled: "■",- circle: "( )",- circleFilled: "(*)",- circleDotted: "( )",- circleDouble: "( )",- circleCircle: "(○)",- circleCross: "(×)",- circlePipe: "(│)",- radioOn: "(*)",- radioOff: "( )",- checkboxOn: "[×]",- checkboxOff: "[ ]",- checkboxCircleOn: "(×)",- checkboxCircleOff: "( )",- pointer: ">",- triangleUpOutline: "∆",- triangleLeft: "◄",- triangleRight: "►",- lozenge: "♦",- lozengeOutline: "◊",- hamburger: "≡",- smiley: "☺",- mustache: "┌─┐",- star: "✶",- play: "►",- nodejs: "♦",- oneSeventh: "1/7",- oneNinth: "1/9",- oneTenth: "1/10"- };- mainSymbols10 = { ...common10, ...specialMainSymbols10 };- fallbackSymbols10 = {- ...common10,- ...specialFallbackSymbols10- };- shouldUseMain10 = isUnicodeSupported10();- figures10 = shouldUseMain10 ? mainSymbols10 : fallbackSymbols10;- esm_default19 = figures10;- replacements10 = Object.entries(specialMainSymbols10);-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js-var import_yoctocolors_cjs18, defaultTheme10;-var init_theme10 = __esm(() => {- import_yoctocolors_cjs18 = __toESM(require_yoctocolors_cjs(), 1);- init_esm28();- defaultTheme10 = {- prefix: {- idle: import_yoctocolors_cjs18.default.blue("?"),- done: import_yoctocolors_cjs18.default.green(esm_default19.tick)- },- spinner: {- interval: 80,- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs18.default.yellow(frame))- },- style: {- answer: import_yoctocolors_cjs18.default.cyan,- message: import_yoctocolors_cjs18.default.bold,- error: (text) => import_yoctocolors_cjs18.default.red(`> ${text}`),- defaultAnswer: (text) => import_yoctocolors_cjs18.default.dim(`(${text})`),- help: import_yoctocolors_cjs18.default.dim,- highlight: import_yoctocolors_cjs18.default.cyan,- key: (text) => import_yoctocolors_cjs18.default.cyan(import_yoctocolors_cjs18.default.bold(`<${text}>`))- }- };-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/make-theme.js-function isPlainObject10(value) {- if (typeof value !== "object" || value === null)- return false;- let proto = value;- while (Object.getPrototypeOf(proto) !== null) {- proto = Object.getPrototypeOf(proto);- }- return Object.getPrototypeOf(value) === proto;-}-function deepMerge10(...objects) {- const output = {};- for (const obj of objects) {- for (const [key10, value] of Object.entries(obj)) {- const prevValue = output[key10];- output[key10] = isPlainObject10(prevValue) && isPlainObject10(value) ? deepMerge10(prevValue, value) : value;- }- }- return output;-}-function makeTheme10(...themes) {- const themesToMerge = [- defaultTheme10,- ...themes.filter((theme) => theme != null)- ];- return deepMerge10(...themesToMerge);-}-var init_make_theme10 = __esm(() => {- init_theme10();-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js-import { AsyncResource as AsyncResource30 } from "node:async_hooks";-function usePrefix10({ status = "idle", theme }) {- const [showLoader, setShowLoader] = useState10(false);- const [tick, setTick] = useState10(0);- const { prefix, spinner } = makeTheme10(theme);- useEffect10(() => {- if (status === "loading") {- let tickInterval;- let inc = -1;- const delayTimeout = setTimeout(AsyncResource30.bind(() => {- setShowLoader(true);- tickInterval = setInterval(AsyncResource30.bind(() => {- inc = inc + 1;- setTick(inc % spinner.frames.length);- }), spinner.interval);- }), 300);- return () => {- clearTimeout(delayTimeout);- clearInterval(tickInterval);- };- } else {- setShowLoader(false);- }- }, [status]);- if (showLoader) {- return spinner.frames[tick];- }- const iconName = status === "loading" ? "idle" : status;- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];-}-var init_use_prefix10 = __esm(() => {- init_use_state10();- init_use_effect10();- init_make_theme10();-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-memo.js-function useMemo5(fn, dependencies) {- return withPointer10((pointer) => {- const prev = pointer.get();- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {- const value = fn();- pointer.set({ value, dependencies });- return value;- }- return prev.value;- });-}-var init_use_memo5 = __esm(() => {- init_hook_engine10();-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-ref.js-function useRef10(val) {- return useState10({ current: val })[0];-}-var init_use_ref10 = __esm(() => {- init_use_state10();-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js-function useKeypress10(userHandler) {- const signal = useRef10(userHandler);- signal.current = userHandler;- useEffect10((rl) => {- let ignore = false;- const handler = withUpdates10((_input, event) => {- if (ignore)- return;- signal.current(event, rl);- });- rl.input.on("keypress", handler);- return () => {- ignore = true;- rl.input.removeListener("keypress", handler);- };- }, []);-}-var init_use_keypress10 = __esm(() => {- init_use_ref10();- init_use_effect10();- init_hook_engine10();-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/utils.js-function breakLines10(content, width) {- return content.split(`-`).flatMap((line) => import_wrap_ansi10.default(line, width, { trim: false, hard: true }).split(`-`).map((str) => str.trimEnd())).join(`-`);-}-function readlineWidth10() {- return import_cli_width10.default({ defaultWidth: 80, output: readline19().output });-}-var import_cli_width10, import_wrap_ansi10;-var init_utils10 = __esm(() => {- import_cli_width10 = __toESM(require_cli_width(), 1);- import_wrap_ansi10 = __toESM(require_wrap_ansi(), 1);- init_hook_engine10();-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js-function split3(content, width) {- return breakLines10(content, width).split(`+ return line;+ }).join(``);-}-function rotate3(count, items) {- const max = items.length;- const offset = (count % max + max) % max;- return [...items.slice(offset), ...items.slice(0, offset)];-}-function lines3({ items, width, renderItem, active, position: requested, pageSize }) {- const layouts = items.map((item, index) => ({- item,- index,- isActive: index === active- }));- const layoutsInPage = rotate3(active - requested, layouts).slice(0, pageSize);- const renderItemAt = (index) => layoutsInPage[index] == null ? [] : split3(renderItem(layoutsInPage[index]), width);- const pageBuffer = Array.from({ length: pageSize });- const activeItem = renderItemAt(requested).slice(0, pageSize);- const position = requested + activeItem.length <= pageSize ? requested : pageSize - activeItem.length;- pageBuffer.splice(position, activeItem.length, ...activeItem);- let bufferPointer = position + activeItem.length;- let layoutPointer = requested + 1;- while (bufferPointer < pageSize && layoutPointer < layoutsInPage.length) {- for (const line of renderItemAt(layoutPointer)) {- pageBuffer[bufferPointer++] = line;- if (bufferPointer >= pageSize)- break;}- layoutPointer++;- }- bufferPointer = position - 1;- layoutPointer = requested - 1;- while (bufferPointer >= 0 && layoutPointer >= 0) {- for (const line of renderItemAt(layoutPointer).reverse()) {- pageBuffer[bufferPointer--] = line;- if (bufferPointer < 0)- break;+ let helpTip = "";+ const currentOption = choices.find((choice) => !Separator.isSeparator(choice) && choice.key === value.toLowerCase());+ if (currentOption) {+ helpTip = `${import_yoctocolors_cjs4.default.cyan(">>")} ${currentOption.name}`;+ }+ let error = "";+ if (errorMsg) {+ error = theme.style.error(errorMsg);}- layoutPointer--;- }- return pageBuffer.filter((line) => typeof line === "string");-}-var init_lines3 = __esm(() => {- init_utils10();+ return [+ `${prefix} ${message}${shortChoices} ${value}`,+ [longChoices, helpTip, error].filter(Boolean).join(`+`)+ ];+ });});-// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/position.js-function finite3({ active, pageSize, total }) {- const middle = Math.floor(pageSize / 2);- if (total <= pageSize || active < middle)- return active;- if (active >= total - middle)- return active + pageSize - total;- return middle;-}-function infinite3({ active, lastActive, total, pageSize, pointer }) {- if (total <= pageSize)- return active;- if (lastActive < active && active - lastActive < pageSize) {- return Math.min(Math.floor(pageSize / 2), pointer + active - lastActive);- }- return pointer;+// node_modules/@inquirer/rawlist/dist/esm/index.js+function isSelectableChoice(choice) {+ return choice != null && !Separator.isSeparator(choice);}--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js-function usePagination3({ items, active, renderItem, pageSize, loop = true }) {- const state = useRef10({ position: 0, lastActive: 0 });- const position = loop ? infinite3({- active,- lastActive: state.current.lastActive,- total: items.length,- pageSize,- pointer: state.current.position- }) : finite3({- active,- total: items.length,- pageSize+function normalizeChoices3(choices) {+ let index = 0;+ return choices.map((choice) => {+ if (Separator.isSeparator(choice))+ return choice;+ index += 1;+ if (typeof choice === "string") {+ return {+ value: choice,+ name: choice,+ short: choice,+ key: String(index)+ };+ }+ const name = choice.name ?? String(choice.value);+ return {+ value: choice.value,+ name,+ short: choice.short ?? name,+ key: choice.key ?? String(index)+ };});- state.current.position = position;- state.current.lastActive = active;- return lines3({- items,- width: readlineWidth10(),- renderItem,- active,- position,- pageSize- }).join(`-`);}-var init_use_pagination3 = __esm(() => {- init_use_ref10();- init_utils10();- init_lines3();-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/node_modules/strip-ansi/node_modules/ansi-regex/index.js-var require_ansi_regex11 = __commonJS((exports, module) => {- module.exports = ({ onlyFirst = false } = {}) => {- const pattern = [- "[\\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("|");- return new RegExp(pattern, onlyFirst ? undefined : "g");- };-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/node_modules/strip-ansi/index.js-var require_strip_ansi11 = __commonJS((exports, module) => {- var ansiRegex = require_ansi_regex11();- module.exports = (string2) => typeof string2 === "string" ? string2.replace(ansiRegex(), "") : string2;+var import_yoctocolors_cjs5, numberRegex, esm_default8;+var init_esm9 = __esm(() => {+ init_esm2();+ import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);+ numberRegex = /\d+/;+ esm_default8 = createPrompt((config, done) => {+ const choices = useMemo(() => normalizeChoices3(config.choices), [config.choices]);+ const [status, setStatus] = useState("idle");+ const [value, setValue] = useState("");+ const [errorMsg, setError] = useState();+ const theme = makeTheme(config.theme);+ const prefix = usePrefix({ status, theme });+ useKeypress((key2, rl) => {+ if (isEnterKey(key2)) {+ let selectedChoice;+ if (numberRegex.test(value)) {+ const answer = Number.parseInt(value, 10) - 1;+ selectedChoice = choices.filter(isSelectableChoice)[answer];+ } else {+ selectedChoice = choices.find((choice) => isSelectableChoice(choice) && choice.key === value);+ }+ if (isSelectableChoice(selectedChoice)) {+ setValue(selectedChoice.short);+ setStatus("done");+ done(selectedChoice.value);+ } else if (value === "") {+ setError("Please input a value");+ } else {+ setError(`"${import_yoctocolors_cjs5.default.red(value)}" isn't an available option`);+ }+ } else {+ setValue(rl.line);+ setError(undefined);+ }+ });+ const message = theme.style.message(config.message, status);+ if (status === "done") {+ return `${prefix} ${message} ${theme.style.answer(value)}`;+ }+ const choicesStr = choices.map((choice) => {+ if (Separator.isSeparator(choice)) {+ return ` ${choice.separator}`;+ }+ const line = ` ${choice.key}) ${choice.name}`;+ if (choice.key === value.toLowerCase()) {+ return theme.style.highlight(line);+ }+ return line;+ }).join(`+`);+ let error = "";+ if (errorMsg) {+ error = theme.style.error(errorMsg);+ }+ return [+ `${prefix} ${message} ${value}`,+ [choicesStr, error].filter(Boolean).join(`+`)+ ];+ });});-// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js-function cursorDown10(n) {- return n > 0 ? import_ansi_escapes12.default.cursorDown(n) : "";-}--class ScreenManager10 {- rl;- height = 0;- extraLinesUnderPrompt = 0;- cursorPos;- constructor(rl) {- this.rl = rl;- this.rl = rl;- this.cursorPos = rl.getCursorPos();- }- write(content) {- this.rl.output.unmute();- this.rl.output.write(content);- this.rl.output.mute();- }- render(content, bottomContent = "") {- const promptLine = lastLine10(content);- const rawPromptLine = import_strip_ansi10.default(promptLine);- let prompt = rawPromptLine;- if (this.rl.line.length > 0) {- prompt = prompt.slice(0, -this.rl.line.length);+// node_modules/@inquirer/password/dist/esm/index.js+var import_ansi_escapes3, esm_default9;+var init_esm10 = __esm(() => {+ init_esm2();+ import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);+ esm_default9 = createPrompt((config, done) => {+ const { validate = () => true } = config;+ const theme = makeTheme(config.theme);+ const [status, setStatus] = useState("idle");+ const [errorMsg, setError] = useState();+ const [value, setValue] = useState("");+ const prefix = usePrefix({ status, theme });+ useKeypress(async (key2, rl) => {+ if (status !== "idle") {+ return;+ }+ if (isEnterKey(key2)) {+ const answer = value;+ setStatus("loading");+ const isValid = await validate(answer);+ if (isValid === true) {+ setValue(answer);+ setStatus("done");+ done(answer);+ } else {+ rl.write(value);+ setError(isValid || "You must provide a valid value");+ setStatus("idle");+ }+ } else {+ setValue(rl.line);+ setError(undefined);+ }+ });+ const message = theme.style.message(config.message, status);+ let formattedValue = "";+ let helpTip;+ if (config.mask) {+ const maskChar = typeof config.mask === "string" ? config.mask : "*";+ formattedValue = maskChar.repeat(value.length);+ } else if (status !== "done") {+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;}- this.rl.setPrompt(prompt);- this.cursorPos = this.rl.getCursorPos();- const width = readlineWidth10();- content = breakLines10(content, width);- bottomContent = breakLines10(bottomContent, width);- if (rawPromptLine.length % width === 0) {- content += `-`;+ if (status === "done") {+ formattedValue = theme.style.answer(formattedValue);}- let output = content + (bottomContent ? `-` + bottomContent : "");- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height10(bottomContent) : 0);- if (bottomContentHeight > 0)- output += import_ansi_escapes12.default.cursorUp(bottomContentHeight);- output += import_ansi_escapes12.default.cursorTo(this.cursorPos.cols);- this.write(cursorDown10(this.extraLinesUnderPrompt) + import_ansi_escapes12.default.eraseLines(this.height) + output);- this.extraLinesUnderPrompt = bottomContentHeight;- this.height = height10(output);- }- checkCursorPos() {- const cursorPos = this.rl.getCursorPos();- if (cursorPos.cols !== this.cursorPos.cols) {- this.write(import_ansi_escapes12.default.cursorTo(cursorPos.cols));- this.cursorPos = cursorPos;+ let error = "";+ if (errorMsg) {+ error = theme.style.error(errorMsg);}- }- done({ clearContent }) {- this.rl.setPrompt("");- let output = cursorDown10(this.extraLinesUnderPrompt);- output += clearContent ? import_ansi_escapes12.default.eraseLines(this.height) : `-`;- output += import_ansi_escapes12.default.cursorShow;- this.write(output);- this.rl.close();- }-}-var import_strip_ansi10, import_ansi_escapes12, height10 = (content) => content.split(`-`).length, lastLine10 = (content) => content.split(`-`).pop() ?? "";-var init_screen_manager10 = __esm(() => {- import_strip_ansi10 = __toESM(require_strip_ansi11(), 1);- import_ansi_escapes12 = __toESM(require_ansi_escapes(), 1);- init_utils10();+ return [[prefix, message, config.mask ? formattedValue : helpTip].join(" "), error];+ });});-// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js-var PromisePolyfill10;-var init_promise_polyfill10 = __esm(() => {- PromisePolyfill10 = class PromisePolyfill10 extends Promise {- static withResolver() {- let resolve;- let reject;- const promise = new Promise((res, rej) => {- resolve = res;- reject = rej;- });- return { promise, resolve, reject };+// node_modules/@inquirer/search/dist/esm/index.js+function isSelectable2(item) {+ return !Separator.isSeparator(item) && !item.disabled;+}+function normalizeChoices4(choices) {+ return choices.map((choice) => {+ if (Separator.isSeparator(choice))+ return choice;+ if (typeof choice === "string") {+ return {+ value: choice,+ name: choice,+ short: choice,+ disabled: false+ };}- };-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js-import * as readline20 from "node:readline";-import { AsyncResource as AsyncResource31 } from "node:async_hooks";-function getCallSites10() {- const _prepareStackTrace = Error.prepareStackTrace;- try {- let result = [];- Error.prepareStackTrace = (_2, callSites) => {- const callSitesWithoutCurrent = callSites.slice(1);- result = callSitesWithoutCurrent;- return callSitesWithoutCurrent;+ const name = choice.name ?? String(choice.value);+ return {+ value: choice.value,+ name,+ description: choice.description,+ short: choice.short ?? name,+ disabled: choice.disabled ?? false};- new Error().stack;- return result;- } finally {- Error.prepareStackTrace = _prepareStackTrace;- }+ });}-function createPrompt10(view) {- const callSites = getCallSites10();- const callerFilename = callSites[1]?.getFileName?.();- const prompt = (config, context = {}) => {- const { input = process.stdin, signal } = context;- const cleanups = new Set;- const output = new import_mute_stream10.default;- output.pipe(context.output ?? process.stdout);- const rl = readline20.createInterface({- terminal: true,- input,- output- });- const screen = new ScreenManager10(rl);- const { promise, resolve, reject } = PromisePolyfill10.withResolver();- const cancel = () => reject(new CancelPromptError10);- if (signal) {- const abort = () => reject(new AbortPromptError10({ cause: signal.reason }));- if (signal.aborted) {- abort();- return Object.assign(promise, { cancel });- }- signal.addEventListener("abort", abort);- cleanups.add(() => signal.removeEventListener("abort", abort));- }- cleanups.add(onExit((code, signal2) => {- reject(new ExitPromptError10(`User force closed the prompt with ${code} ${signal2}`));- }));- const checkCursorPos = () => screen.checkCursorPos();- rl.input.on("keypress", checkCursorPos);- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));- return withHooks10(rl, (cycle) => {- const hooksCleanup = AsyncResource31.bind(() => effectScheduler10.clearAll());- rl.on("close", hooksCleanup);- cleanups.add(() => rl.removeListener("close", hooksCleanup));- cycle(() => {+var import_yoctocolors_cjs6, searchTheme, esm_default10;+var init_esm11 = __esm(() => {+ init_esm2();+ import_yoctocolors_cjs6 = __toESM(require_yoctocolors_cjs(), 1);+ init_esm();+ searchTheme = {+ icon: { cursor: esm_default.pointer },+ style: {+ disabled: (text) => import_yoctocolors_cjs6.default.dim(`- ${text}`),+ searchTerm: (text) => import_yoctocolors_cjs6.default.cyan(text),+ description: (text) => import_yoctocolors_cjs6.default.cyan(text)+ },+ helpMode: "auto"+ };+ esm_default10 = createPrompt((config, done) => {+ const { pageSize = 7, validate = () => true } = config;+ const theme = makeTheme(searchTheme, config.theme);+ const firstRender = useRef(true);+ const [status, setStatus] = useState("loading");+ const [searchTerm, setSearchTerm] = useState("");+ const [searchResults, setSearchResults] = useState([]);+ const [searchError, setSearchError] = useState();+ const prefix = usePrefix({ status, theme });+ const bounds = useMemo(() => {+ const first = searchResults.findIndex(isSelectable2);+ const last = searchResults.findLastIndex(isSelectable2);+ return { first, last };+ }, [searchResults]);+ const [active = bounds.first, setActive] = useState();+ useEffect(() => {+ const controller = new AbortController;+ setStatus("loading");+ setSearchError(undefined);+ const fetchResults = async () => {try {- const nextView = view(config, (value) => {- setImmediate(() => resolve(value));+ const results = await config.source(searchTerm || undefined, {+ signal: controller.signal});- if (nextView === undefined) {- throw new Error(`Prompt functions must return a string.- at ${callerFilename}`);+ if (!controller.signal.aborted) {+ setActive(undefined);+ setSearchError(undefined);+ setSearchResults(normalizeChoices4(results));+ setStatus("idle");+ }+ } catch (error2) {+ if (!controller.signal.aborted && error2 instanceof Error) {+ setSearchError(error2.message);}- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;- screen.render(content, bottomContent);- effectScheduler10.run();- } catch (error) {- reject(error);}- });- return Object.assign(promise.then((answer) => {- effectScheduler10.clearAll();- return answer;- }, (error) => {- effectScheduler10.clearAll();- throw error;- }).finally(() => {- cleanups.forEach((cleanup) => cleanup());- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });- output.end();- }).then(() => promise), { cancel });+ };+ fetchResults();+ return () => {+ controller.abort();+ };+ }, [searchTerm]);+ const selectedChoice = searchResults[active];+ useKeypress(async (key2, rl) => {+ if (isEnterKey(key2)) {+ if (selectedChoice) {+ setStatus("loading");+ const isValid = await validate(selectedChoice.value);+ setStatus("idle");+ if (isValid === true) {+ setStatus("done");+ done(selectedChoice.value);+ } else if (selectedChoice.name === searchTerm) {+ setSearchError(isValid || "You must provide a valid value");+ } else {+ rl.write(selectedChoice.name);+ setSearchTerm(selectedChoice.name);+ }+ } else {+ rl.write(searchTerm);+ }+ } else if (key2.name === "tab" && selectedChoice) {+ rl.clearLine(0);+ rl.write(selectedChoice.name);+ setSearchTerm(selectedChoice.name);+ } else if (status !== "loading" && (key2.name === "up" || key2.name === "down")) {+ rl.clearLine(0);+ if (key2.name === "up" && active !== bounds.first || key2.name === "down" && active !== bounds.last) {+ const offset = key2.name === "up" ? -1 : 1;+ let next = active;+ do {+ next = (next + offset + searchResults.length) % searchResults.length;+ } while (!isSelectable2(searchResults[next]));+ setActive(next);+ }+ } else {+ setSearchTerm(rl.line);+ }});- };- return prompt;-}-var import_mute_stream10;-var init_create_prompt10 = __esm(() => {- import_mute_stream10 = __toESM(require_lib2(), 1);- init_mjs();- init_screen_manager10();- init_promise_polyfill10();- init_hook_engine10();- init_errors10();+ const message = theme.style.message(config.message, status);+ if (active > 0) {+ firstRender.current = false;+ }+ let helpTip = "";+ if (searchResults.length > 1 && (theme.helpMode === "always" || theme.helpMode === "auto" && firstRender.current)) {+ helpTip = searchResults.length > pageSize ? `+${theme.style.help("(Use arrow keys to reveal more choices)")}` : `+${theme.style.help("(Use arrow keys)")}`;+ }+ const page = usePagination({+ items: searchResults,+ active,+ renderItem({ item, isActive }) {+ if (Separator.isSeparator(item)) {+ return ` ${item.separator}`;+ }+ if (item.disabled) {+ const disabledLabel = typeof item.disabled === "string" ? item.disabled : "(disabled)";+ return theme.style.disabled(`${item.name} ${disabledLabel}`);+ }+ const color = isActive ? theme.style.highlight : (x) => x;+ const cursor = isActive ? theme.icon.cursor : ` `;+ return color(`${cursor} ${item.name}`);+ },+ pageSize,+ loop: false+ });+ let error;+ if (searchError) {+ error = theme.style.error(searchError);+ } else if (searchResults.length === 0 && searchTerm !== "" && status === "idle") {+ error = theme.style.error("No results found");+ }+ let searchStr;+ if (status === "done" && selectedChoice) {+ const answer = selectedChoice.short;+ return `${prefix} ${message} ${theme.style.answer(answer)}`;+ } else {+ searchStr = theme.style.searchTerm(searchTerm);+ }+ const choiceDescription = selectedChoice?.description ? `+${theme.style.description(selectedChoice.description)}` : ``;+ return [+ [prefix, message, searchStr].filter(Boolean).join(" "),+ `${error ?? page}${helpTip}${choiceDescription}`+ ];+ });});-// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/Separator.js-class Separator5 {- separator = import_yoctocolors_cjs19.default.dim(Array.from({ length: 15 }).join(esm_default19.line));- type = "separator";- constructor(separator) {- if (separator) {- this.separator = separator;- }- }- static isSeparator(choice) {- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");- }-}-var import_yoctocolors_cjs19;-var init_Separator5 = __esm(() => {- import_yoctocolors_cjs19 = __toESM(require_yoctocolors_cjs(), 1);- init_esm28();-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/index.js-var init_esm29 = __esm(() => {- init_errors10();- init_use_prefix10();- init_use_state10();- init_use_effect10();- init_use_memo5();- init_use_ref10();- init_use_keypress10();- init_make_theme10();- init_use_pagination3();- init_create_prompt10();- init_Separator5();-});--// node_modules/@inquirer/prompts/node_modules/@inquirer/select/dist/esm/index.js+// node_modules/@inquirer/select/dist/esm/index.jsfunction isSelectable3(item) {- return !Separator5.isSeparator(item) && !item.disabled;+ return !Separator.isSeparator(item) && !item.disabled;}function normalizeChoices5(choices) {return choices.map((choice) => {- if (Separator5.isSeparator(choice))+ if (Separator.isSeparator(choice))return choice;if (typeof choice === "string") {return {@@ -22915,71 +15212,71 @@ function normalizeChoices5(choices) {};});}-var import_yoctocolors_cjs20, import_ansi_escapes13, selectTheme, esm_default20;-var init_esm30 = __esm(() => {- init_esm29();- import_yoctocolors_cjs20 = __toESM(require_yoctocolors_cjs(), 1);- init_esm28();- import_ansi_escapes13 = __toESM(require_ansi_escapes(), 1);+var import_yoctocolors_cjs7, import_ansi_escapes4, selectTheme, esm_default11;+var init_esm12 = __esm(() => {+ init_esm2();+ import_yoctocolors_cjs7 = __toESM(require_yoctocolors_cjs(), 1);+ init_esm();+ import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);selectTheme = {- icon: { cursor: esm_default19.pointer },+ icon: { cursor: esm_default.pointer },style: {- disabled: (text) => import_yoctocolors_cjs20.default.dim(`- ${text}`),- description: (text) => import_yoctocolors_cjs20.default.cyan(text)+ disabled: (text) => import_yoctocolors_cjs7.default.dim(`- ${text}`),+ description: (text) => import_yoctocolors_cjs7.default.cyan(text)},helpMode: "auto"};- esm_default20 = createPrompt10((config, done) => {+ esm_default11 = createPrompt((config, done) => {const { loop = true, pageSize = 7 } = config;- const firstRender = useRef10(true);- const theme = makeTheme10(selectTheme, config.theme);- const [status, setStatus] = useState10("idle");- const prefix = usePrefix10({ status, theme });- const searchTimeoutRef = useRef10();- const items = useMemo5(() => normalizeChoices5(config.choices), [config.choices]);- const bounds = useMemo5(() => {+ const firstRender = useRef(true);+ const theme = makeTheme(selectTheme, config.theme);+ const [status, setStatus] = useState("idle");+ const prefix = usePrefix({ status, theme });+ const searchTimeoutRef = useRef();+ const items = useMemo(() => normalizeChoices5(config.choices), [config.choices]);+ const bounds = useMemo(() => {const first = items.findIndex(isSelectable3);const last = items.findLastIndex(isSelectable3);if (first === -1) {- throw new ValidationError10("[select prompt] No selectable choices. All choices are disabled.");+ throw new ValidationError("[select prompt] No selectable choices. All choices are disabled.");}return { first, last };}, [items]);- const defaultItemIndex = useMemo5(() => {+ const defaultItemIndex = useMemo(() => {if (!("default" in config))return -1;return items.findIndex((item) => isSelectable3(item) && item.value === config.default);}, [config.default, items]);- const [active, setActive] = useState10(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);+ const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);const selectedChoice = items[active];- useKeypress10((key11, rl) => {+ useKeypress((key2, rl) => {clearTimeout(searchTimeoutRef.current);- if (isEnterKey10(key11)) {+ if (isEnterKey(key2)) {setStatus("done");done(selectedChoice.value);- } else if (isUpKey2(key11) || isDownKey2(key11)) {+ } else if (isUpKey(key2) || isDownKey(key2)) {rl.clearLine(0);- if (loop || isUpKey2(key11) && active !== bounds.first || isDownKey2(key11) && active !== bounds.last) {- const offset = isUpKey2(key11) ? -1 : 1;+ if (loop || isUpKey(key2) && active !== bounds.first || isDownKey(key2) && active !== bounds.last) {+ const offset = isUpKey(key2) ? -1 : 1;let next = active;do {next = (next + offset + items.length) % items.length;} while (!isSelectable3(items[next]));setActive(next);}- } else if (isNumberKey2(key11)) {+ } else if (isNumberKey(key2)) {rl.clearLine(0);- const position = Number(key11.name) - 1;+ const position = Number(key2.name) - 1;const item = items[position];if (item != null && isSelectable3(item)) {setActive(position);}- } else if (isBackspaceKey3(key11)) {+ } else if (isBackspaceKey(key2)) {rl.clearLine(0);} else {const searchTerm = rl.line.toLowerCase();const matchIndex = items.findIndex((item) => {- if (Separator5.isSeparator(item) || !isSelectable3(item))+ if (Separator.isSeparator(item) || !isSelectable3(item))return false;return item.name.toLowerCase().startsWith(searchTerm);});@@ -22991,7 +15288,7 @@ var init_esm30 = __esm(() => {}, 700);}});- useEffect10(() => () => {+ useEffect(() => () => {clearTimeout(searchTimeoutRef.current);}, []);const message = theme.style.message(config.message, status);@@ -23006,11 +15303,11 @@ ${theme.style.help("(Use arrow keys to reveal more choices)")}`;helpTipTop = theme.style.help("(Use arrow keys)");}}- const page = usePagination3({+ const page = usePagination({items,active,renderItem({ item, isActive }) {- if (Separator5.isSeparator(item)) {+ if (Separator.isSeparator(item)) {return ` ${item.separator}`;}if (item.disabled) {@@ -23030,22 +15327,22 @@ ${theme.style.help("(Use arrow keys to reveal more choices)")}`;const choiceDescription = selectedChoice.description ? `${theme.style.description(selectedChoice.description)}` : ``;return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}-${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes13.default.cursorHide}`;+${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes4.default.cursorHide}`;});});// node_modules/@inquirer/prompts/dist/esm/index.js-var init_esm31 = __esm(() => {+var init_esm13 = __esm(() => {init_esm3();+ init_esm4();+ init_esm5();init_esm6();+ init_esm7();+ init_esm8();init_esm9();+ init_esm10();+ init_esm11();init_esm12();- init_esm15();- init_esm18();- init_esm21();- init_esm24();- init_esm27();- init_esm30();});// node_modules/cli-spinners/spinners.json@@ -24706,22 +17003,22 @@ var require_traverse = __commonJS((exports, module) => {Traverse.prototype.get = function(ps) {var node = this.value;for (var i = 0;i < ps.length; i++) {- var key11 = ps[i];- if (!Object.hasOwnProperty.call(node, key11)) {+ var key2 = ps[i];+ if (!Object.hasOwnProperty.call(node, key2)) {node = undefined;break;}- node = node[key11];+ node = node[key2];}return node;};Traverse.prototype.set = function(ps, value) {var node = this.value;for (var i = 0;i < ps.length - 1; i++) {- var key11 = ps[i];- if (!Object.hasOwnProperty.call(node, key11))- node[key11] = {};- node = node[key11];+ var key2 = ps[i];+ if (!Object.hasOwnProperty.call(node, key2))+ node[key2] = {};+ node = node[key2];}node[ps[i]] = value;return value;@@ -24834,8 +17131,8 @@ var require_traverse = __commonJS((exports, module) => {var dst = copy(src);parents.push(src);nodes.push(dst);- Object.keys(src).forEach(function(key11) {- dst[key11] = clone(src[key11]);+ Object.keys(src).forEach(function(key2) {+ dst[key2] = clone(src[key2]);});parents.pop();nodes.pop();@@ -24916,13 +17213,13 @@ var require_traverse = __commonJS((exports, module) => {if (typeof state.node == "object" && state.node !== null && !state.circular) {parents.push(state);var keys = Object.keys(state.node);- keys.forEach(function(key11, i2) {- path.push(key11);+ keys.forEach(function(key2, i2) {+ path.push(key2);if (modifiers.pre)- modifiers.pre.call(state, state.node[key11], key11);- var child = walker(state.node[key11]);- if (immutable && Object.hasOwnProperty.call(state.node, key11)) {- state.node[key11] = child.node;+ modifiers.pre.call(state, state.node[key2], key2);+ var child = walker(state.node[key2]);+ if (immutable && Object.hasOwnProperty.call(state.node, key2)) {+ state.node[key2] = child.node;}child.isLast = i2 == keys.length - 1;child.isFirst = i2 == 0;@@ -24937,11 +17234,11 @@ var require_traverse = __commonJS((exports, module) => {return state;}(root).node;}- Object.keys(Traverse.prototype).forEach(function(key11) {- Traverse[key11] = function(obj) {+ Object.keys(Traverse.prototype).forEach(function(key2) {+ Traverse[key2] = function(obj) {var args = [].slice.call(arguments, 1);var t = Traverse(obj);- return t[key11].apply(t, args);+ return t[key2].apply(t, args);};});function copy(src) {@@ -24960,8 +17257,8 @@ var require_traverse = __commonJS((exports, module) => {} else {dst = Object.create(Object.getPrototypeOf(src));}- Object.keys(src).forEach(function(key11) {- dst[key11] = src[key11];+ Object.keys(src).forEach(function(key2) {+ dst[key2] = src[key2];});return dst;} else@@ -25023,8 +17320,8 @@ var require_chainsaw = __commonJS((exports, module) => {saw.emit("end");} else if (!action.trap) {var node = saw.handlers;- action.path.forEach(function(key11) {- node = node[key11];+ action.path.forEach(function(key2) {+ node = node[key2];});node.apply(saw.handlers, action.args);}@@ -25318,11 +17615,11 @@ var require_vars = __commonJS((exports, module) => {node[k] = {};node = node[k];});- var key11 = keys[keys.length - 1];+ var key2 = keys[keys.length - 1];if (arguments.length == 1) {- return node[key11];+ return node[key2];} else {- return node[key11] = value;+ return node[key2] = value;}}var vars = {@@ -25425,11 +17722,11 @@ var require_binary = __commonJS((exports, module) => {self2.tap = function(cb) {saw.nest(cb, vars.store);};- self2.into = function(key11, cb) {- if (!vars.get(key11))- vars.set(key11, {});+ self2.into = function(key2, cb) {+ if (!vars.get(key2))+ vars.set(key2, {});var parent = vars;- vars = Vars(parent.get(key11));+ vars = Vars(parent.get(key2));saw.nest(function() {cb.apply(this, arguments);this.tap(function() {@@ -25551,12 +17848,12 @@ var require_binary = __commonJS((exports, module) => {cb.call(self2, vars.store);return self2;};- self2.into = function(key11, cb) {- if (!vars.get(key11)) {- vars.set(key11, {});+ self2.into = function(key2, cb) {+ if (!vars.get(key2)) {+ vars.set(key2, {});}var parent = vars;- vars = Vars(parent.get(key11));+ vars = Vars(parent.get(key2));cb.call(self2, vars.store);vars = parent;return self2;@@ -26606,15 +18903,15 @@ var require_UnsubscriptionError = __commonJS((exports) => {exports.UnsubscriptionError = undefined;var createErrorClass_1 = require_createErrorClass();exports.UnsubscriptionError = createErrorClass_1.createErrorClass(function(_super) {- return function UnsubscriptionErrorImpl(errors11) {+ return function UnsubscriptionErrorImpl(errors2) {_super(this);- this.message = errors11 ? errors11.length + ` errors occurred during unsubscription:-` + errors11.map(function(err, i) {+ this.message = errors2 ? errors2.length + ` errors occurred during unsubscription:+` + errors2.map(function(err, i) {return i + 1 + ") " + err.toString();}).join(``) : "";this.name = "UnsubscriptionError";- this.errors = errors11;+ this.errors = errors2;};});});@@ -26688,7 +18985,7 @@ var require_Subscription = __commonJS((exports) => {}Subscription2.prototype.unsubscribe = function() {var e_1, _a, e_2, _b;- var errors11;+ var errors2;if (!this.closed) {this.closed = true;var _parentage = this._parentage;@@ -26720,7 +19017,7 @@ var require_Subscription = __commonJS((exports) => {try {initialFinalizer();} catch (e) {- errors11 = e instanceof UnsubscriptionError_1.UnsubscriptionError ? e.errors : [e];+ errors2 = e instanceof UnsubscriptionError_1.UnsubscriptionError ? e.errors : [e];}}var _finalizers = this._finalizers;@@ -26732,11 +19029,11 @@ var require_Subscription = __commonJS((exports) => {try {execFinalizer(finalizer);} catch (err) {- errors11 = errors11 !== null && errors11 !== undefined ? errors11 : [];+ errors2 = errors2 !== null && errors2 !== undefined ? errors2 : [];if (err instanceof UnsubscriptionError_1.UnsubscriptionError) {- errors11 = __spreadArray(__spreadArray([], __read(errors11)), __read(err.errors));+ errors2 = __spreadArray(__spreadArray([], __read(errors2)), __read(err.errors));} else {- errors11.push(err);+ errors2.push(err);}}}@@ -26752,8 +19049,8 @@ var require_Subscription = __commonJS((exports) => {}}}- if (errors11) {- throw new UnsubscriptionError_1.UnsubscriptionError(errors11);+ if (errors2) {+ throw new UnsubscriptionError_1.UnsubscriptionError(errors2);}}};@@ -29556,7 +21853,7 @@ var require_innerFrom = __commonJS((exports) => {exports.fromIterable = fromIterable;function fromAsyncIterable(asyncIterable) {return new Observable_1.Observable(function(subscriber) {- process20(asyncIterable, subscriber).catch(function(err) {+ process11(asyncIterable, subscriber).catch(function(err) {return subscriber.error(err);});});@@ -29566,7 +21863,7 @@ var require_innerFrom = __commonJS((exports) => {return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));}exports.fromReadableStreamLike = fromReadableStreamLike;- function process20(asyncIterable, subscriber) {+ function process11(asyncIterable, subscriber) {var asyncIterable_1, asyncIterable_1_1;var e_2, _a;return __awaiter(this, undefined, undefined, function() {@@ -30389,8 +22686,8 @@ var require_argsArgArrayOrObject = __commonJS((exports) => {if (isPOJO(first_1)) {var keys = getKeys(first_1);return {- args: keys.map(function(key11) {- return first_1[key11];+ args: keys.map(function(key2) {+ return first_1[key2];}),keys};@@ -30409,8 +22706,8 @@ var require_createObject = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.createObject = undefined;function createObject(keys, values) {- return keys.reduce(function(result, key11, i) {- return result[key11] = values[i], result;+ return keys.reduce(function(result, key2, i) {+ return result[key2] = values[i], result;}, {});}exports.createObject = createObject;@@ -32405,9 +24702,9 @@ var require_distinct = __commonJS((exports) => {return lift_1.operate(function(source, subscriber) {var distinctKeys = new Set;source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {- var key11 = keySelector ? keySelector(value) : value;- if (!distinctKeys.has(key11)) {- distinctKeys.add(key11);+ var key2 = keySelector ? keySelector(value) : value;+ if (!distinctKeys.has(key2)) {+ distinctKeys.add(key2);subscriber.next(value);}}));@@ -32455,9 +24752,9 @@ var require_distinctUntilKeyChanged = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.distinctUntilKeyChanged = undefined;var distinctUntilChanged_1 = require_distinctUntilChanged();- function distinctUntilKeyChanged(key11, compare) {+ function distinctUntilKeyChanged(key2, compare) {return distinctUntilChanged_1.distinctUntilChanged(function(x, y) {- return compare ? compare(x[key11], y[key11]) : x[key11] === y[key11];+ return compare ? compare(x[key2], y[key2]) : x[key2] === y[key2];});}exports.distinctUntilKeyChanged = distinctUntilKeyChanged;@@ -32802,7 +25099,7 @@ var require_groupBy = __commonJS((exports) => {return activeGroups === 0;});source.subscribe(groupBySourceSubscriber);- function createGroupedObservable(key11, groupSubject) {+ function createGroupedObservable(key2, groupSubject) {var result = new Observable_1.Observable(function(groupSubscriber) {activeGroups++;var innerSub = groupSubject.subscribe(groupSubscriber);@@ -32811,7 +25108,7 @@ var require_groupBy = __commonJS((exports) => {--activeGroups === 0 && teardownAttempted && groupBySourceSubscriber.unsubscribe();};});- result.key = key11;+ result.key = key2;return result;}});@@ -35608,26 +27905,8 @@ Calls to async() callback can have unexpected results.`);};});-// node_modules/inquirer/node_modules/@inquirer/core/dist/esm/lib/errors.js-var AbortPromptError11;-var init_errors11 = __esm(() => {- AbortPromptError11 = class AbortPromptError11 extends Error {- name = "AbortPromptError";- message = "Prompt was aborted";- constructor(options) {- super();- this.cause = options?.cause;- }- };-});--// node_modules/inquirer/node_modules/@inquirer/core/dist/esm/index.js-var init_esm32 = __esm(() => {- init_errors11();-});-// node_modules/inquirer/dist/esm/ui/prompt.js-import readline21 from "node:readline";+import readline3 from "node:readline";async function fetchAsyncQuestionProperty(question, prop, answers) {const propGetter = question[prop];if (typeof propGetter === "function") {@@ -35641,7 +27920,7 @@ function setupReadlineOptions(opt) {if (!opt.skipTTYChecks && !input.isTTY) {throw new TTYError("Prompts can not be meaningfully rendered in non-TTY environments");}- const ms = new import_mute_stream11.default;+ const ms = new import_mute_stream2.default;ms.pipe(opt.output || process.stdout);const output = ms;return {@@ -35736,10 +28015,10 @@ class PromptsRunner {const promptFn = isPromptConstructor(prompt) ? (q, opt) => new Promise((resolve, reject) => {const { signal: signal2 } = opt;if (signal2.aborted) {- reject(new AbortPromptError11({ cause: signal2.reason }));+ reject(new AbortPromptError({ cause: signal2.reason }));return;}- const rl = readline21.createInterface(setupReadlineOptions(opt));+ const rl = readline3.createInterface(setupReadlineOptions(opt));const onForceClose = () => {this.close();process.kill(process.pid, "SIGINT");@@ -35750,7 +28029,7 @@ class PromptsRunner {rl.removeListener("SIGINT", onForceClose);rl.setPrompt("");rl.output.unmute();- rl.output.write(import_ansi_escapes14.default.cursorShow);+ rl.output.write(import_ansi_escapes5.default.cursorShow);rl.output.end();rl.close();};@@ -35762,7 +28041,7 @@ class PromptsRunner {cleanupSignal?.();};const abort = () => {- reject(new AbortPromptError11({ cause: signal2.reason }));+ reject(new AbortPromptError({ cause: signal2.reason }));cleanup();};signal2.addEventListener("abort", abort);@@ -35808,29 +28087,29 @@ class PromptsRunner {return when !== false;};}-var import_rxjs, import_run_async, import_mute_stream11, import_ansi_escapes14, _2, TTYError;+var import_rxjs, import_run_async, import_mute_stream2, import_ansi_escapes5, _2, TTYError;var init_prompt = __esm(() => {import_rxjs = __toESM(require_cjs(), 1);import_run_async = __toESM(require_run_async(), 1);- import_mute_stream11 = __toESM(require_lib2(), 1);- init_esm32();- import_ansi_escapes14 = __toESM(require_ansi_escapes(), 1);+ import_mute_stream2 = __toESM(require_lib2(), 1);+ init_esm2();+ import_ansi_escapes5 = __toESM(require_ansi_escapes(), 1);_2 = {set: (obj, path3 = "", value) => {let pointer = obj;- path3.split(".").forEach((key12, index, arr) => {- if (key12 === "__proto__" || key12 === "constructor")+ path3.split(".").forEach((key2, index, arr) => {+ if (key2 === "__proto__" || key2 === "constructor")return;if (index === arr.length - 1) {- pointer[key12] = value;- } else if (!(key12 in pointer) || typeof pointer[key12] !== "object") {- pointer[key12] = {};+ pointer[key2] = value;+ } else if (!(key2 in pointer) || typeof pointer[key2] !== "object") {+ pointer[key2] = {};}- pointer = pointer[key12];+ pointer = pointer[key2];});},get: (obj, path3 = "", defaultValue) => {- const travel = (regexp) => String.prototype.split.call(path3, regexp).filter(Boolean).reduce((res, key12) => res == null ? res : res[key12], obj);+ const travel = (regexp) => String.prototype.split.call(path3, regexp).filter(Boolean).reduce((res, key2) => res == null ? res : res[key2], obj);const result = travel(/[,[\]]+?/) || travel(/[,.[\]]+?/);return result === undefined || result === obj ? defaultValue : result;}@@ -35844,7 +28123,7 @@ var init_prompt = __esm(() => {// node_modules/inquirer/dist/esm/index.jsvar exports_esm = {};__export(exports_esm, {- default: () => esm_default21,+ default: () => esm_default12,createPromptModule: () => createPromptModule});function createPromptModule(opt) {@@ -35869,22 +28148,22 @@ function registerPrompt(name, newPrompt) {function restoreDefaultPrompts() {prompt.restoreDefaultPrompts();}-var builtInPrompts, prompt, inquirer, esm_default21;-var init_esm33 = __esm(() => {- init_esm31();+var builtInPrompts, prompt, inquirer, esm_default12;+var init_esm14 = __esm(() => {+ init_esm13();init_prompt();builtInPrompts = {- input: esm_default8,- select: esm_default20,- list: esm_default20,- number: esm_default10,- confirm: esm_default6,- rawlist: esm_default14,- expand: esm_default12,+ input: esm_default5,+ select: esm_default11,+ list: esm_default11,+ number: esm_default6,+ confirm: esm_default4,+ rawlist: esm_default8,+ expand: esm_default7,checkbox: esm_default2,- password: esm_default16,- editor: esm_default4,- search: esm_default18+ password: esm_default9,+ editor: esm_default3,+ search: esm_default10};prompt = createPromptModule();inquirer = {@@ -35897,7 +28176,7 @@ var init_esm33 = __esm(() => {restoreDefaultPrompts,Separator};- esm_default21 = inquirer;+ esm_default12 = inquirer;});// node_modules/minimatch/lib/path.js@@ -37058,11 +29337,11 @@ var require_async2 = __commonJS((exports, module) => {var i = -1;var len = okeys.length;return function next() {- var key12 = okeys[++i];- if (key12 === "__proto__") {+ var key2 = okeys[++i];+ if (key2 === "__proto__") {return next();}- return i < len ? { value: obj[key12], key: key12 } : null;+ return i < len ? { value: obj[key2], key: key2 } : null;};}function createIterator(coll) {@@ -37272,37 +29551,37 @@ var require_async2 = __commonJS((exports, module) => {var readyTasks = [];var readyToCheck = [];var uncheckedDependencies = {};- Object.keys(tasks).forEach((key12) => {- var task = tasks[key12];+ Object.keys(tasks).forEach((key2) => {+ var task = tasks[key2];if (!Array.isArray(task)) {- enqueueTask(key12, [task]);- readyToCheck.push(key12);+ enqueueTask(key2, [task]);+ readyToCheck.push(key2);return;}var dependencies = task.slice(0, task.length - 1);var remainingDependencies = dependencies.length;if (remainingDependencies === 0) {- enqueueTask(key12, task);- readyToCheck.push(key12);+ enqueueTask(key2, task);+ readyToCheck.push(key2);return;}- uncheckedDependencies[key12] = remainingDependencies;+ uncheckedDependencies[key2] = remainingDependencies;dependencies.forEach((dependencyName) => {if (!tasks[dependencyName]) {- throw new Error("async.auto task `" + key12 + "` has a non-existent dependency `" + dependencyName + "` in " + dependencies.join(", "));+ throw new Error("async.auto task `" + key2 + "` has a non-existent dependency `" + dependencyName + "` in " + dependencies.join(", "));}addListener(dependencyName, () => {remainingDependencies--;if (remainingDependencies === 0) {- enqueueTask(key12, task);+ enqueueTask(key2, task);}});});});checkForDeadlocks();processQueue();- function enqueueTask(key12, task) {- readyTasks.push(() => runTask(key12, task));+ function enqueueTask(key2, task) {+ readyTasks.push(() => runTask(key2, task));}function processQueue() {if (canceled)@@ -37327,7 +29606,7 @@ var require_async2 = __commonJS((exports, module) => {taskListeners.forEach((fn) => fn());processQueue();}- function runTask(key12, task) {+ function runTask(key2, task) {if (hasError)return;var taskCallback = onlyOnce((err, ...result) => {@@ -37344,15 +29623,15 @@ var require_async2 = __commonJS((exports, module) => {Object.keys(results).forEach((rkey) => {safeResults[rkey] = results[rkey];});- safeResults[key12] = result;+ safeResults[key2] = result;hasError = true;listeners = Object.create(null);if (canceled)return;callback(err, safeResults);} else {- results[key12] = result;- taskComplete(key12);+ results[key2] = result;+ taskComplete(key2);}});runningTasks++;@@ -37381,10 +29660,10 @@ var require_async2 = __commonJS((exports, module) => {}function getDependents(taskName) {var result = [];- Object.keys(tasks).forEach((key12) => {- const task = tasks[key12];+ Object.keys(tasks).forEach((key2) => {+ const task = tasks[key2];if (Array.isArray(task) && task.indexOf(taskName) >= 0) {- result.push(key12);+ result.push(key2);}});return result;@@ -37435,17 +29714,17 @@ Source:}function autoInject(tasks, callback) {var newTasks = {};- Object.keys(tasks).forEach((key12) => {- var taskFn = tasks[key12];+ Object.keys(tasks).forEach((key2) => {+ var taskFn = tasks[key2];var params;var fnIsAsync = isAsync(taskFn);var hasNoDeps = !fnIsAsync && taskFn.length === 1 || fnIsAsync && taskFn.length === 0;if (Array.isArray(taskFn)) {params = [...taskFn];taskFn = params.pop();- newTasks[key12] = params.concat(params.length > 0 ? newTask : taskFn);+ newTasks[key2] = params.concat(params.length > 0 ? newTask : taskFn);} else if (hasNoDeps) {- newTasks[key12] = taskFn;+ newTasks[key2] = taskFn;} else {params = parseParams(taskFn);if (taskFn.length === 0 && !fnIsAsync && params.length === 0) {@@ -37453,7 +29732,7 @@ Source:}if (!fnIsAsync)params.pop();- newTasks[key12] = params.concat(newTask);+ newTasks[key2] = params.concat(newTask);}function newTask(results, taskCb) {var newArgs = params.map((name) => results[name]);@@ -38064,22 +30343,22 @@ Source:function groupByLimit(coll, limit, iteratee, callback) {var _iteratee = wrapAsync(iteratee);return mapLimit$1(coll, limit, (val, iterCb) => {- _iteratee(val, (err, key12) => {+ _iteratee(val, (err, key2) => {if (err)return iterCb(err);- return iterCb(err, { key: key12, val });+ return iterCb(err, { key: key2, val });});}, (err, mapResults) => {var result = {};var { hasOwnProperty } = Object.prototype;for (var i = 0;i < mapResults.length; i++) {if (mapResults[i]) {- var { key: key12 } = mapResults[i];+ var { key: key2 } = mapResults[i];var { val } = mapResults[i];- if (hasOwnProperty.call(result, key12)) {- result[key12].push(val);+ if (hasOwnProperty.call(result, key2)) {+ result[key2].push(val);} else {- result[key12] = [val];+ result[key2] = [val];}}}@@ -38098,11 +30377,11 @@ Source:callback = once(callback);var newObj = {};var _iteratee = wrapAsync(iteratee);- return eachOfLimit$2(limit)(obj, (val, key12, next) => {- _iteratee(val, key12, (err, result) => {+ return eachOfLimit$2(limit)(obj, (val, key2, next) => {+ _iteratee(val, key2, (err, result) => {if (err)return next(err);- newObj[key12] = result;+ newObj[key2] = result;next(err);});}, (err) => callback(err, newObj));@@ -38119,19 +30398,19 @@ Source:var queues = Object.create(null);var _fn = wrapAsync(fn);var memoized = initialParams((args, callback) => {- var key12 = hasher(...args);- if (key12 in memo) {- setImmediate$1(() => callback(null, ...memo[key12]));- } else if (key12 in queues) {- queues[key12].push(callback);+ var key2 = hasher(...args);+ if (key2 in memo) {+ setImmediate$1(() => callback(null, ...memo[key2]));+ } else if (key2 in queues) {+ queues[key2].push(callback);} else {- queues[key12] = [callback];+ queues[key2] = [callback];_fn(...args, (err, ...resultArgs) => {if (!err) {- memo[key12] = resultArgs;+ memo[key2] = resultArgs;}- var q = queues[key12];- delete queues[key12];+ var q = queues[key2];+ delete queues[key2];for (var i = 0, l = q.length;i < l; i++) {q[i](err, ...resultArgs);}@@ -38153,12 +30432,12 @@ Source:var nextTick = wrap(_defer);var _parallel = awaitify((eachfn, tasks, callback) => {var results = isArrayLike(tasks) ? [] : {};- eachfn(tasks, (task, key12, taskCb) => {+ eachfn(tasks, (task, key2, taskCb) => {wrapAsync(task)((err, ...result) => {if (result.length < 2) {[result] = result;}- results[key12] = result;+ results[key2] = result;taskCb(err);});}, (err) => callback(err, results));@@ -38336,8 +30615,8 @@ Source:results = tasks.map(reflect);} else {results = {};- Object.keys(tasks).forEach((key12) => {- results[key12] = reflect.call(this, tasks[key12]);+ Object.keys(tasks).forEach((key2) => {+ results[key2] = reflect.call(this, tasks[key2]);});}return results;@@ -38877,8 +31156,8 @@ var require_safe_buffer = __commonJS((exports, module) => {var buffer = __require("buffer");var Buffer2 = buffer.Buffer;function copyProps(src, dst) {- for (var key12 in src) {- dst[key12] = src[key12];+ for (var key2 in src) {+ dst[key2] = src[key2];}}if (Buffer2.from && Buffer2.alloc && Buffer2.allocUnsafe && Buffer2.allocUnsafeSlow) {@@ -39658,8 +31937,8 @@ var require__stream_duplex = __commonJS((exports, module) => {var pna = require_process_nextick_args();var objectKeys = Object.keys || function(obj) {var keys2 = [];- for (var key12 in obj) {- keys2.push(key12);+ for (var key2 in obj) {+ keys2.push(key2);}return keys2;};@@ -41190,8 +33469,8 @@ var require__baseIsNative = __commonJS((exports, module) => {// node_modules/lodash/_getValue.jsvar require__getValue = __commonJS((exports, module) => {- function getValue(object, key12) {- return object == null ? undefined : object[key12];+ function getValue(object, key2) {+ return object == null ? undefined : object[key2];}module.exports = getValue;});@@ -41200,8 +33479,8 @@ var require__getValue = __commonJS((exports, module) => {var require__getNative = __commonJS((exports, module) => {var baseIsNative = require__baseIsNative();var getValue = require__getValue();- function getNative(object, key12) {- var value = getValue(object, key12);+ function getNative(object, key2) {+ var value = getValue(object, key2);return baseIsNative(value) ? value : undefined;}module.exports = getNative;@@ -41500,9 +33779,9 @@ var require__arrayLikeKeys = __commonJS((exports, module) => {var hasOwnProperty = objectProto.hasOwnProperty;function arrayLikeKeys(value, inherited) {var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;- for (var key12 in value) {- if ((inherited || hasOwnProperty.call(value, key12)) && !(skipIndexes && (key12 == "length" || isBuff && (key12 == "offset" || key12 == "parent") || isType && (key12 == "buffer" || key12 == "byteLength" || key12 == "byteOffset") || isIndex(key12, length)))) {- result.push(key12);+ for (var key2 in value) {+ if ((inherited || hasOwnProperty.call(value, key2)) && !(skipIndexes && (key2 == "length" || isBuff && (key2 == "offset" || key2 == "parent") || isType && (key2 == "buffer" || key2 == "byteLength" || key2 == "byteOffset") || isIndex(key2, length)))) {+ result.push(key2);}}return result;@@ -41525,8 +33804,8 @@ var require__nativeKeysIn = __commonJS((exports, module) => {function nativeKeysIn(object) {var result = [];if (object != null) {- for (var key12 in Object(object)) {- result.push(key12);+ for (var key2 in Object(object)) {+ result.push(key2);}}return result;@@ -41546,9 +33825,9 @@ var require__baseKeysIn = __commonJS((exports, module) => {return nativeKeysIn(object);}var isProto = isPrototype(object), result = [];- for (var key12 in object) {- if (!(key12 == "constructor" && (isProto || !hasOwnProperty.call(object, key12)))) {- result.push(key12);+ for (var key2 in object) {+ if (!(key2 == "constructor" && (isProto || !hasOwnProperty.call(object, key2)))) {+ result.push(key2);}}return result;@@ -41589,10 +33868,10 @@ var require_defaults = __commonJS((exports, module) => {var propsIndex = -1;var propsLength = props.length;while (++propsIndex < propsLength) {- var key12 = props[propsIndex];- var value = object[key12];- if (value === undefined || eq(value, objectProto[key12]) && !hasOwnProperty.call(object, key12)) {- object[key12] = source[key12];+ var key2 = props[propsIndex];+ var value = object[key2];+ if (value === undefined || eq(value, objectProto[key2]) && !hasOwnProperty.call(object, key2)) {+ object[key2] = source[key2];}}}@@ -41604,18 +33883,18 @@ var require_defaults = __commonJS((exports, module) => {// node_modules/readable-stream/lib/ours/primordials.jsvar require_primordials = __commonJS((exports, module) => {class AggregateError extends Error {- constructor(errors12) {- if (!Array.isArray(errors12)) {- throw new TypeError(`Expected input to be an Array, got ${typeof errors12}`);+ constructor(errors2) {+ if (!Array.isArray(errors2)) {+ throw new TypeError(`Expected input to be an Array, got ${typeof errors2}`);}let message = "";- for (let i = 0;i < errors12.length; i++) {- message += ` ${errors12[i].stack}+ for (let i = 0;i < errors2.length; i++) {+ message += ` ${errors2[i].stack}`;}super(message);this.name = "AggregateError";- this.errors = errors12;+ this.errors = errors2;}}module.exports = {@@ -41801,13 +34080,13 @@ var require_errors = __commonJS((exports, module) => {}return `${val.slice(0, i)}${res}`;}- function getMessage(key12, msg, args) {+ function getMessage(key2, msg, args) {if (typeof msg === "function") {- assert(msg.length <= args.length, `Code: ${key12}; The provided arguments length (${args.length}) does not match the required ones (${msg.length}).`);+ assert(msg.length <= args.length, `Code: ${key2}; The provided arguments length (${args.length}) does not match the required ones (${msg.length}).`);return msg(...args);}const expectedLength = (msg.match(/%[dfijoOs]/g) || []).length;- assert(expectedLength === args.length, `Code: ${key12}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`);+ assert(expectedLength === args.length, `Code: ${key2}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`);if (args.length === 0) {return msg;}@@ -42096,9 +34375,9 @@ var require_event_target_shim = __commonJS((exports, module) => {Object.defineProperty(this, "isTrusted", { value: false, enumerable: true });const keys = Object.keys(event);for (let i = 0;i < keys.length; ++i) {- const key12 = keys[i];- if (!(key12 in this)) {- Object.defineProperty(this, key12, defineRedirectDescriptor(key12));+ const key2 = keys[i];+ if (!(key2 in this)) {+ Object.defineProperty(this, key2, defineRedirectDescriptor(key2));}}}@@ -42203,23 +34482,23 @@ var require_event_target_shim = __commonJS((exports, module) => {Object.setPrototypeOf(Event.prototype, window.Event.prototype);wrappers.set(window.Event.prototype, Event);}- function defineRedirectDescriptor(key12) {+ function defineRedirectDescriptor(key2) {return {get() {- return pd(this).event[key12];+ return pd(this).event[key2];},set(value) {- pd(this).event[key12] = value;+ pd(this).event[key2] = value;},configurable: true,enumerable: true};}- function defineCallDescriptor(key12) {+ function defineCallDescriptor(key2) {return {value() {const event = pd(this).event;- return event[key12].apply(event, arguments);+ return event[key2].apply(event, arguments);},configurable: true,enumerable: true@@ -42237,11 +34516,11 @@ var require_event_target_shim = __commonJS((exports, module) => {constructor: { value: CustomEvent, configurable: true, writable: true }});for (let i = 0;i < keys.length; ++i) {- const key12 = keys[i];- if (!(key12 in BaseEvent.prototype)) {- const descriptor = Object.getOwnPropertyDescriptor(proto2, key12);+ const key2 = keys[i];+ if (!(key2 in BaseEvent.prototype)) {+ const descriptor = Object.getOwnPropertyDescriptor(proto2, key2);const isFunc = typeof descriptor.value === "function";- Object.defineProperty(CustomEvent.prototype, key12, isFunc ? defineCallDescriptor(key12) : defineRedirectDescriptor(key12));+ Object.defineProperty(CustomEvent.prototype, key2, isFunc ? defineCallDescriptor(key2) : defineRedirectDescriptor(key2));}}return CustomEvent;@@ -42809,8 +35088,8 @@ var require_validators = __commonJS((exports, module) => {if (typeof value !== "boolean")throw new ERR_INVALID_ARG_TYPE(name, "boolean", value);}- function getOwnPropertyValueOrDefault(options, key12, defaultValue) {- return options == null || !ObjectPrototypeHasOwnProperty(options, key12) ? defaultValue : options[key12];+ function getOwnPropertyValueOrDefault(options, key2, defaultValue) {+ return options == null || !ObjectPrototypeHasOwnProperty(options, key2) ? defaultValue : options[key2];}var validateObject = hideStackFrames((value, name, options = null) => {const allowArray = getOwnPropertyValueOrDefault(options, "allowArray", false);@@ -43202,7 +35481,7 @@ var require_utils3 = __commonJS((exports, module) => {// node_modules/readable-stream/lib/internal/streams/end-of-stream.jsvar require_end_of_stream = __commonJS((exports, module) => {- var process20 = require_process();+ var process11 = require_process();var { AbortError, codes } = require_errors();var { ERR_INVALID_ARG_TYPE, ERR_STREAM_PREMATURE_CLOSE } = codes;var { kEmptyObject, once } = require_util2();@@ -43340,17 +35619,17 @@ var require_end_of_stream = __commonJS((exports, module) => {}stream.on("close", onclose);if (closed) {- process20.nextTick(onclose);+ process11.nextTick(onclose);} else if (wState !== null && wState !== undefined && wState.errorEmitted || rState !== null && rState !== undefined && rState.errorEmitted) {if (!willEmitClose) {- process20.nextTick(onclosed);+ process11.nextTick(onclosed);}} else if (!readable && (!willEmitClose || isReadable(stream)) && (writableFinished || isWritable(stream) === false)) {- process20.nextTick(onclosed);+ process11.nextTick(onclosed);} else if (!writable && (!willEmitClose || isWritable(stream)) && (readableFinished || isReadable(stream) === false)) {- process20.nextTick(onclosed);+ process11.nextTick(onclosed);} else if (rState && stream.req && stream.aborted) {- process20.nextTick(onclosed);+ process11.nextTick(onclosed);}const cleanup = () => {callback = nop;@@ -43376,7 +35655,7 @@ var require_end_of_stream = __commonJS((exports, module) => {}));};if (options.signal.aborted) {- process20.nextTick(abort);+ process11.nextTick(abort);} else {addAbortListener = addAbortListener || require_util2().addAbortListener;const disposable = addAbortListener(options.signal, abort);@@ -43400,7 +35679,7 @@ var require_end_of_stream = __commonJS((exports, module) => {}));};if (options.signal.aborted) {- process20.nextTick(abort);+ process11.nextTick(abort);} else {addAbortListener = addAbortListener || require_util2().addAbortListener;const disposable = addAbortListener(options.signal, abort);@@ -43413,7 +35692,7 @@ var require_end_of_stream = __commonJS((exports, module) => {}const resolverFn = (...args) => {if (!isAborted) {- process20.nextTick(() => callback.apply(stream, args));+ process11.nextTick(() => callback.apply(stream, args));}};PromisePrototypeThen(stream[kIsClosedPromise].promise, resolverFn, resolverFn);@@ -43448,7 +35727,7 @@ var require_end_of_stream = __commonJS((exports, module) => {// node_modules/readable-stream/lib/internal/streams/destroy.jsvar require_destroy2 = __commonJS((exports, module) => {- var process20 = require_process();+ var process11 = require_process();var {aggregateTwoErrors,codes: { ERR_MULTIPLE_CALLBACK },@@ -43515,9 +35794,9 @@ var require_destroy2 = __commonJS((exports, module) => {cb(err2);}if (err2) {- process20.nextTick(emitErrorCloseNT, self2, err2);+ process11.nextTick(emitErrorCloseNT, self2, err2);} else {- process20.nextTick(emitCloseNT, self2);+ process11.nextTick(emitCloseNT, self2);}}try {@@ -43602,7 +35881,7 @@ var require_destroy2 = __commonJS((exports, module) => {r.errored = err;}if (sync) {- process20.nextTick(emitErrorNT, stream, err);+ process11.nextTick(emitErrorNT, stream, err);} else {emitErrorNT(stream, err);}@@ -43624,7 +35903,7 @@ var require_destroy2 = __commonJS((exports, module) => {if (stream.listenerCount(kConstruct) > 1) {return;}- process20.nextTick(constructNT, stream);+ process11.nextTick(constructNT, stream);}function constructNT(stream) {let called = false;@@ -43648,15 +35927,15 @@ var require_destroy2 = __commonJS((exports, module) => {} else if (err) {errorOrDestroy(stream, err, true);} else {- process20.nextTick(emitConstructNT, stream);+ process11.nextTick(emitConstructNT, stream);}}try {stream._construct((err) => {- process20.nextTick(onConstruct, err);+ process11.nextTick(onConstruct, err);});} catch (err) {- process20.nextTick(onConstruct, err);+ process11.nextTick(onConstruct, err);}}function emitConstructNT(stream) {@@ -43670,7 +35949,7 @@ var require_destroy2 = __commonJS((exports, module) => {}function emitErrorCloseLegacy(stream, err) {stream.emit("error", err);- process20.nextTick(emitCloseLegacy, stream);+ process11.nextTick(emitCloseLegacy, stream);}function destroyer(stream, err) {if (!stream || isDestroyed(stream)) {@@ -43691,9 +35970,9 @@ var require_destroy2 = __commonJS((exports, module) => {} else if (typeof stream.close === "function") {stream.close();} else if (err) {- process20.nextTick(emitErrorCloseLegacy, stream, err);+ process11.nextTick(emitErrorCloseLegacy, stream, err);} else {- process20.nextTick(emitCloseLegacy, stream);+ process11.nextTick(emitCloseLegacy, stream);}if (!stream.destroyed) {stream[kIsDestroyed] = true;@@ -44038,8 +36317,8 @@ var require_safe_buffer2 = __commonJS((exports, module) => {var buffer = __require("buffer");var Buffer2 = buffer.Buffer;function copyProps(src, dst) {- for (var key12 in src) {- dst[key12] = src[key12];+ for (var key2 in src) {+ dst[key2] = src[key2];}}if (Buffer2.from && Buffer2.alloc && Buffer2.allocUnsafe && Buffer2.allocUnsafeSlow) {@@ -44348,7 +36627,7 @@ var require_string_decoder2 = __commonJS((exports) => {// node_modules/readable-stream/lib/internal/streams/from.jsvar require_from2 = __commonJS((exports, module) => {- var process20 = require_process();+ var process11 = require_process();var { PromisePrototypeThen, SymbolAsyncIterator, SymbolIterator } = require_primordials();var { Buffer: Buffer2 } = __require("buffer");var { ERR_INVALID_ARG_TYPE, ERR_STREAM_NULL_VALUES } = require_errors().codes;@@ -44387,7 +36666,7 @@ var require_from2 = __commonJS((exports, module) => {}};readable._destroy = function(error, cb) {- PromisePrototypeThen(close(error), () => process20.nextTick(cb, error), (e) => process20.nextTick(cb, e || error));+ PromisePrototypeThen(close(error), () => process11.nextTick(cb, error), (e) => process11.nextTick(cb, e || error));};async function close(error) {const hadError = error !== undefined && error !== null;@@ -44434,7 +36713,7 @@ var require_from2 = __commonJS((exports, module) => {// node_modules/readable-stream/lib/internal/streams/readable.jsvar require_readable2 = __commonJS((exports, module) => {- var process20 = require_process();+ var process11 = require_process();var {ArrayPrototypeIndexOf,NumberIsInteger,@@ -44840,7 +37119,7 @@ var require_readable2 = __commonJS((exports, module) => {if (!state.emittedReadable) {debug("emitReadable", state.flowing);state.emittedReadable = true;- process20.nextTick(emitReadable_, stream);+ process11.nextTick(emitReadable_, stream);}}function emitReadable_(stream) {@@ -44856,7 +37135,7 @@ var require_readable2 = __commonJS((exports, module) => {function maybeReadMore(stream, state) {if (!state.readingMore && state.constructed) {state.readingMore = true;- process20.nextTick(maybeReadMore_, stream, state);+ process11.nextTick(maybeReadMore_, stream, state);}}function maybeReadMore_(stream, state) {@@ -44883,10 +37162,10 @@ var require_readable2 = __commonJS((exports, module) => {}state.pipes.push(dest);debug("pipe count=%d opts=%j", state.pipes.length, pipeOpts);- const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process20.stdout && dest !== process20.stderr;+ const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process11.stdout && dest !== process11.stderr;const endFn = doEnd ? onend : unpipe;if (state.endEmitted)- process20.nextTick(endFn);+ process11.nextTick(endFn);elsesrc.once("end", endFn);dest.on("unpipe", onunpipe);@@ -45042,7 +37321,7 @@ var require_readable2 = __commonJS((exports, module) => {if (state.length) {emitReadable(this);} else if (!state.reading) {- process20.nextTick(nReadingNextTick, this);+ process11.nextTick(nReadingNextTick, this);}}}@@ -45052,7 +37331,7 @@ var require_readable2 = __commonJS((exports, module) => {Readable.prototype.removeListener = function(ev, fn) {const res = Stream.prototype.removeListener.call(this, ev, fn);if (ev === "readable") {- process20.nextTick(updateReadableListening, this);+ process11.nextTick(updateReadableListening, this);}return res;};@@ -45060,7 +37339,7 @@ var require_readable2 = __commonJS((exports, module) => {Readable.prototype.removeAllListeners = function(ev) {const res = Stream.prototype.removeAllListeners.apply(this, arguments);if (ev === "readable" || ev === undefined) {- process20.nextTick(updateReadableListening, this);+ process11.nextTick(updateReadableListening, this);}return res;};@@ -45092,7 +37371,7 @@ var require_readable2 = __commonJS((exports, module) => {function resume(stream, state) {if (!state.resumeScheduled) {state.resumeScheduled = true;- process20.nextTick(resume_, stream, state);+ process11.nextTick(resume_, stream, state);}}function resume_(stream, state) {@@ -45370,7 +37649,7 @@ var require_readable2 = __commonJS((exports, module) => {debug("endReadable", state.endEmitted);if (!state.endEmitted) {state.ended = true;- process20.nextTick(endReadableNT, state, stream);+ process11.nextTick(endReadableNT, state, stream);}}function endReadableNT(state, stream) {@@ -45379,7 +37658,7 @@ var require_readable2 = __commonJS((exports, module) => {state.endEmitted = true;stream.emit("end");if (stream.writable && stream.allowHalfOpen === false) {- process20.nextTick(endWritableNT, stream);+ process11.nextTick(endWritableNT, stream);} else if (state.autoDestroy) {const wState = stream._writableState;const autoDestroy = !wState || wState.autoDestroy && (wState.finished || wState.writable === false);@@ -45425,7 +37704,7 @@ var require_readable2 = __commonJS((exports, module) => {// node_modules/readable-stream/lib/internal/streams/writable.jsvar require_writable = __commonJS((exports, module) => {- var process20 = require_process();+ var process11 = require_process();var {ArrayPrototypeSlice,Error: Error2,@@ -45592,7 +37871,7 @@ var require_writable = __commonJS((exports, module) => {err = new ERR_STREAM_DESTROYED("write");}if (err) {- process20.nextTick(cb, err);+ process11.nextTick(cb, err);errorOrDestroy(stream, err, true);return err;}@@ -45689,7 +37968,7 @@ var require_writable = __commonJS((exports, module) => {stream._readableState.errored = er;}if (sync) {- process20.nextTick(onwriteError, stream, state, er, cb);+ process11.nextTick(onwriteError, stream, state, er, cb);} else {onwriteError(stream, state, er, cb);}@@ -45707,7 +37986,7 @@ var require_writable = __commonJS((exports, module) => {stream,state};- process20.nextTick(afterWriteTick, state.afterWriteTickInfo);+ process11.nextTick(afterWriteTick, state.afterWriteTickInfo);}} else {afterWrite(stream, state, 1, cb);@@ -45837,7 +38116,7 @@ var require_writable = __commonJS((exports, module) => {}if (typeof cb === "function") {if (err || state.finished) {- process20.nextTick(cb, err);+ process11.nextTick(cb, err);} else {state[kOnFinished].push(cb);}@@ -45866,7 +38145,7 @@ var require_writable = __commonJS((exports, module) => {state.prefinished = true;stream.emit("prefinish");state.pendingcb++;- process20.nextTick(finish, stream, state);+ process11.nextTick(finish, stream, state);}}state.sync = true;@@ -45895,7 +38174,7 @@ var require_writable = __commonJS((exports, module) => {if (state.pendingcb === 0) {if (sync) {state.pendingcb++;- process20.nextTick((stream2, state2) => {+ process11.nextTick((stream2, state2) => {if (needFinish(state2)) {finish(stream2, state2);} else {@@ -46025,7 +38304,7 @@ var require_writable = __commonJS((exports, module) => {Writable.prototype.destroy = function(err, cb) {const state = this._writableState;if (!state.destroyed && (state.bufferedIndex < state.buffered.length || state[kOnFinished].length)) {- process20.nextTick(errorBuffer, state);+ process11.nextTick(errorBuffer, state);}destroy.call(this, err, cb);return this;@@ -46053,7 +38332,7 @@ var require_writable = __commonJS((exports, module) => {// node_modules/readable-stream/lib/internal/streams/duplexify.jsvar require_duplexify = __commonJS((exports, module) => {- var process20 = require_process();+ var process11 = require_process();var bufferModule = __require("buffer");var {isReadable,@@ -46160,9 +38439,9 @@ var require_duplexify = __commonJS((exports, module) => {final(async () => {try {await promise;- process20.nextTick(cb, null);+ process11.nextTick(cb, null);} catch (err) {- process20.nextTick(cb, err);+ process11.nextTick(cb, err);}});},@@ -46230,7 +38509,7 @@ var require_duplexify = __commonJS((exports, module) => {const _promise = promise;promise = null;const { chunk, done, cb } = await _promise;- process20.nextTick(cb);+ process11.nextTick(cb);if (done)return;if (signal.aborted)@@ -46609,7 +38888,7 @@ var require_passthrough2 = __commonJS((exports, module) => {// node_modules/readable-stream/lib/internal/streams/pipeline.jsvar require_pipeline = __commonJS((exports, module) => {- var process20 = require_process();+ var process11 = require_process();var { ArrayIsArray, Promise: Promise2, SymbolAsyncIterator, SymbolDispose } = require_primordials();var eos = require_end_of_stream();var { once } = require_util2();@@ -46803,7 +39082,7 @@ var require_pipeline = __commonJS((exports, module) => {if (!error) {lastStreamCleanup.forEach((fn) => fn());}- process20.nextTick(callback, error, value);+ process11.nextTick(callback, error, value);}}let ret;@@ -46880,10 +39159,10 @@ var require_pipeline = __commonJS((exports, module) => {if (end) {pt.end();}- process20.nextTick(finish);+ process11.nextTick(finish);}, (err) => {pt.destroy(err);- process20.nextTick(finish, err);+ process11.nextTick(finish, err);});} else if (isIterable(ret, true)) {finishCount++;@@ -46955,7 +39234,7 @@ var require_pipeline = __commonJS((exports, module) => {}}if (signal !== null && signal !== undefined && signal.aborted || outerSignal !== null && outerSignal !== undefined && outerSignal.aborted) {- process20.nextTick(abort);+ process11.nextTick(abort);}return ret;}@@ -46976,7 +39255,7 @@ var require_pipeline = __commonJS((exports, module) => {};var endFn = endFn2;if (isReadableFinished(src)) {- process20.nextTick(endFn2);+ process11.nextTick(endFn2);} else {src.once("end", endFn2);}@@ -47652,14 +39931,14 @@ var require_stream = __commonJS((exports, module) => {Stream.isReadable = utils.isReadable;Stream.isWritable = utils.isWritable;Stream.Readable = require_readable2();- for (const key12 of ObjectKeys(streamReturningOperators)) {+ for (const key2 of ObjectKeys(streamReturningOperators)) {let fn = function(...args) {if (new.target) {throw ERR_ILLEGAL_CONSTRUCTOR();}return Stream.Readable.from(ReflectApply(op, this, args));};- const op = streamReturningOperators[key12];+ const op = streamReturningOperators[key2];ObjectDefineProperty2(fn, "name", {__proto__: null,value: op.name@@ -47668,7 +39947,7 @@ var require_stream = __commonJS((exports, module) => {__proto__: null,value: op.length});- ObjectDefineProperty2(Stream.Readable.prototype, key12, {+ ObjectDefineProperty2(Stream.Readable.prototype, key2, {__proto__: null,value: fn,enumerable: false,@@ -47676,14 +39955,14 @@ var require_stream = __commonJS((exports, module) => {writable: true});}- for (const key12 of ObjectKeys(promiseReturningOperators)) {+ for (const key2 of ObjectKeys(promiseReturningOperators)) {let fn = function(...args) {if (new.target) {throw ERR_ILLEGAL_CONSTRUCTOR();}return ReflectApply(op, this, args);};- const op = promiseReturningOperators[key12];+ const op = promiseReturningOperators[key2];ObjectDefineProperty2(fn, "name", {__proto__: null,value: op.name@@ -47692,7 +39971,7 @@ var require_stream = __commonJS((exports, module) => {__proto__: null,value: op.length});- ObjectDefineProperty2(Stream.Readable.prototype, key12, {+ ObjectDefineProperty2(Stream.Readable.prototype, key2, {__proto__: null,value: fn,enumerable: false,@@ -47882,8 +40161,8 @@ var require__hashClear = __commonJS((exports, module) => {// node_modules/lodash/_hashDelete.jsvar require__hashDelete = __commonJS((exports, module) => {- function hashDelete(key12) {- var result = this.has(key12) && delete this.__data__[key12];+ function hashDelete(key2) {+ var result = this.has(key2) && delete this.__data__[key2];this.size -= result ? 1 : 0;return result;}@@ -47896,13 +40175,13 @@ var require__hashGet = __commonJS((exports, module) => {var HASH_UNDEFINED = "__lodash_hash_undefined__";var objectProto = Object.prototype;var hasOwnProperty = objectProto.hasOwnProperty;- function hashGet(key12) {+ function hashGet(key2) {var data = this.__data__;if (nativeCreate) {- var result = data[key12];+ var result = data[key2];return result === HASH_UNDEFINED ? undefined : result;}- return hasOwnProperty.call(data, key12) ? data[key12] : undefined;+ return hasOwnProperty.call(data, key2) ? data[key2] : undefined;}module.exports = hashGet;});@@ -47912,9 +40191,9 @@ var require__hashHas = __commonJS((exports, module) => {var nativeCreate = require__nativeCreate();var objectProto = Object.prototype;var hasOwnProperty = objectProto.hasOwnProperty;- function hashHas(key12) {+ function hashHas(key2) {var data = this.__data__;- return nativeCreate ? data[key12] !== undefined : hasOwnProperty.call(data, key12);+ return nativeCreate ? data[key2] !== undefined : hasOwnProperty.call(data, key2);}module.exports = hashHas;});@@ -47923,10 +40202,10 @@ var require__hashHas = __commonJS((exports, module) => {var require__hashSet = __commonJS((exports, module) => {var nativeCreate = require__nativeCreate();var HASH_UNDEFINED = "__lodash_hash_undefined__";- function hashSet(key12, value) {+ function hashSet(key2, value) {var data = this.__data__;- this.size += this.has(key12) ? 0 : 1;- data[key12] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;+ this.size += this.has(key2) ? 0 : 1;+ data[key2] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;return this;}module.exports = hashSet;@@ -47967,10 +40246,10 @@ var require__listCacheClear = __commonJS((exports, module) => {// node_modules/lodash/_assocIndexOf.jsvar require__assocIndexOf = __commonJS((exports, module) => {var eq = require_eq();- function assocIndexOf(array, key12) {+ function assocIndexOf(array, key2) {var length = array.length;while (length--) {- if (eq(array[length][0], key12)) {+ if (eq(array[length][0], key2)) {return length;}}@@ -47984,8 +40263,8 @@ var require__listCacheDelete = __commonJS((exports, module) => {var assocIndexOf = require__assocIndexOf();var arrayProto = Array.prototype;var splice = arrayProto.splice;- function listCacheDelete(key12) {- var data = this.__data__, index = assocIndexOf(data, key12);+ function listCacheDelete(key2) {+ var data = this.__data__, index = assocIndexOf(data, key2);if (index < 0) {return false;}@@ -48004,8 +40283,8 @@ var require__listCacheDelete = __commonJS((exports, module) => {// node_modules/lodash/_listCacheGet.jsvar require__listCacheGet = __commonJS((exports, module) => {var assocIndexOf = require__assocIndexOf();- function listCacheGet(key12) {- var data = this.__data__, index = assocIndexOf(data, key12);+ function listCacheGet(key2) {+ var data = this.__data__, index = assocIndexOf(data, key2);return index < 0 ? undefined : data[index][1];}module.exports = listCacheGet;@@ -48014,8 +40293,8 @@ var require__listCacheGet = __commonJS((exports, module) => {// node_modules/lodash/_listCacheHas.jsvar require__listCacheHas = __commonJS((exports, module) => {var assocIndexOf = require__assocIndexOf();- function listCacheHas(key12) {- return assocIndexOf(this.__data__, key12) > -1;+ function listCacheHas(key2) {+ return assocIndexOf(this.__data__, key2) > -1;}module.exports = listCacheHas;});@@ -48023,11 +40302,11 @@ var require__listCacheHas = __commonJS((exports, module) => {// node_modules/lodash/_listCacheSet.jsvar require__listCacheSet = __commonJS((exports, module) => {var assocIndexOf = require__assocIndexOf();- function listCacheSet(key12, value) {- var data = this.__data__, index = assocIndexOf(data, key12);+ function listCacheSet(key2, value) {+ var data = this.__data__, index = assocIndexOf(data, key2);if (index < 0) {++this.size;- data.push([key12, value]);+ data.push([key2, value]);} else {data[index][1] = value;}@@ -48095,9 +40374,9 @@ var require__isKeyable = __commonJS((exports, module) => {// node_modules/lodash/_getMapData.jsvar require__getMapData = __commonJS((exports, module) => {var isKeyable = require__isKeyable();- function getMapData(map, key12) {+ function getMapData(map, key2) {var data = map.__data__;- return isKeyable(key12) ? data[typeof key12 == "string" ? "string" : "hash"] : data.map;+ return isKeyable(key2) ? data[typeof key2 == "string" ? "string" : "hash"] : data.map;}module.exports = getMapData;});@@ -48105,8 +40384,8 @@ var require__getMapData = __commonJS((exports, module) => {// node_modules/lodash/_mapCacheDelete.jsvar require__mapCacheDelete = __commonJS((exports, module) => {var getMapData = require__getMapData();- function mapCacheDelete(key12) {- var result = getMapData(this, key12)["delete"](key12);+ function mapCacheDelete(key2) {+ var result = getMapData(this, key2)["delete"](key2);this.size -= result ? 1 : 0;return result;}@@ -48116,8 +40395,8 @@ var require__mapCacheDelete = __commonJS((exports, module) => {// node_modules/lodash/_mapCacheGet.jsvar require__mapCacheGet = __commonJS((exports, module) => {var getMapData = require__getMapData();- function mapCacheGet(key12) {- return getMapData(this, key12).get(key12);+ function mapCacheGet(key2) {+ return getMapData(this, key2).get(key2);}module.exports = mapCacheGet;});@@ -48125,8 +40404,8 @@ var require__mapCacheGet = __commonJS((exports, module) => {// node_modules/lodash/_mapCacheHas.jsvar require__mapCacheHas = __commonJS((exports, module) => {var getMapData = require__getMapData();- function mapCacheHas(key12) {- return getMapData(this, key12).has(key12);+ function mapCacheHas(key2) {+ return getMapData(this, key2).has(key2);}module.exports = mapCacheHas;});@@ -48134,9 +40413,9 @@ var require__mapCacheHas = __commonJS((exports, module) => {// node_modules/lodash/_mapCacheSet.jsvar require__mapCacheSet = __commonJS((exports, module) => {var getMapData = require__getMapData();- function mapCacheSet(key12, value) {- var data = getMapData(this, key12), size = data.size;- data.set(key12, value);+ function mapCacheSet(key2, value) {+ var data = getMapData(this, key2), size = data.size;+ data.set(key2, value);this.size += data.size == size ? 0 : 1;return this;}@@ -48286,8 +40565,8 @@ var require__arrayMap = __commonJS((exports, module) => {// node_modules/lodash/_cacheHas.jsvar require__cacheHas = __commonJS((exports, module) => {- function cacheHas(cache, key12) {- return cache.has(key12);+ function cacheHas(cache, key2) {+ return cache.has(key2);}module.exports = cacheHas;});@@ -48491,7 +40770,7 @@ var require_isPlainObject = __commonJS((exports, module) => {var funcToString = funcProto.toString;var hasOwnProperty = objectProto.hasOwnProperty;var objectCtorString = funcToString.call(Object);- function isPlainObject11(value) {+ function isPlainObject2(value) {if (!isObjectLike(value) || baseGetTag(value) != objectTag) {return false;}@@ -48502,7 +40781,7 @@ var require_isPlainObject = __commonJS((exports, module) => {var Ctor = hasOwnProperty.call(proto2, "constructor") && proto2.constructor;return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;}- module.exports = isPlainObject11;+ module.exports = isPlainObject2;});// node_modules/glob/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js@@ -50042,8 +42321,8 @@ var require_commonjs2 = __commonJS((exports) => {}}}- getRemainingTTL(key12) {- return this.#keyMap.has(key12) ? Infinity : 0;+ getRemainingTTL(key2) {+ return this.#keyMap.has(key2) ? Infinity : 0;}#initializeTTLTracking() {const ttls = new ZeroArray(this.#max);@@ -50092,8 +42371,8 @@ var require_commonjs2 = __commonJS((exports) => {}return n;};- this.getRemainingTTL = (key12) => {- const index = this.#keyMap.get(key12);+ this.getRemainingTTL = (key2) => {+ const index = this.#keyMap.get(key2);if (index === undefined) {return 0;}@@ -50296,8 +42575,8 @@ var require_commonjs2 = __commonJS((exports) => {}return deleted;}- info(key12) {- const i = this.#keyMap.get(key12);+ info(key2) {+ const i = this.#keyMap.get(key2);if (i === undefined)return;const v = this.#valList[i];@@ -50322,10 +42601,10 @@ var require_commonjs2 = __commonJS((exports) => {dump() {const arr = [];for (const i of this.#indexes({ allowStale: true })) {- const key12 = this.#keyList[i];+ const key2 = this.#keyList[i];const v = this.#valList[i];const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;- if (value === undefined || key12 === undefined)+ if (value === undefined || key2 === undefined)continue;const entry = { value };if (this.#ttls && this.#starts) {@@ -50336,18 +42615,18 @@ var require_commonjs2 = __commonJS((exports) => {if (this.#sizes) {entry.size = this.#sizes[i];}- arr.unshift([key12, entry]);+ arr.unshift([key2, entry]);}return arr;}load(arr) {this.clear();- for (const [key12, entry] of arr) {+ for (const [key2, entry] of arr) {if (entry.start) {const age = Date.now() - entry.start;entry.start = perf.now() - age;}- this.set(key12, entry.value, entry);+ this.set(key2, entry.value, entry);}}set(k, v, setOptions = {}) {@@ -52414,9 +44693,9 @@ var require_commonjs4 = __commonJS((exports) => {this.#resolveCache = new ResolveCache;this.#resolvePosixCache = new ResolveCache;this.#children = new ChildrenCache(childrenCacheSize);- const split4 = cwdPath.substring(this.rootPath.length).split(sep);- if (split4.length === 1 && !split4[0]) {- split4.pop();+ const split2 = cwdPath.substring(this.rootPath.length).split(sep);+ if (split2.length === 1 && !split2[0]) {+ split2.pop();}if (nocase === undefined) {throw new TypeError("must provide nocase setting to PathScurryBase ctor");@@ -52425,11 +44704,11 @@ var require_commonjs4 = __commonJS((exports) => {this.root = this.newRoot(this.#fs);this.roots[this.rootPath] = this.root;let prev = this.root;- let len = split4.length - 1;+ let len = split2.length - 1;const joinSep = pathImpl.sep;let abs = this.rootPath;let sawFirst = false;- for (const part of split4) {+ for (const part of split2) {const l = len--;prev = prev.child(part, {relative: new Array(l).fill("..").join(joinSep),@@ -52752,7 +45031,7 @@ var require_commonjs4 = __commonJS((exports) => {const dirs = new Set;const queue = [entry];let processing = 0;- const process20 = () => {+ const process11 = () => {let paused = false;while (!paused) {const dir = queue.shift();@@ -52793,9 +45072,9 @@ var require_commonjs4 = __commonJS((exports) => {}}if (paused && !results.flowing) {- results.once("drain", process20);+ results.once("drain", process11);} else if (!sync) {- process20();+ process11();}};let sync = true;@@ -52803,7 +45082,7 @@ var require_commonjs4 = __commonJS((exports) => {sync = false;}};- process20();+ process11();return results;}streamSync(entry = this.cwd, opts = {}) {@@ -52821,7 +45100,7 @@ var require_commonjs4 = __commonJS((exports) => {}const queue = [entry];let processing = 0;- const process20 = () => {+ const process11 = () => {let paused = false;while (!paused) {const dir = queue.shift();@@ -52855,9 +45134,9 @@ var require_commonjs4 = __commonJS((exports) => {}}if (paused && !results.flowing)- results.once("drain", process20);+ results.once("drain", process11);};- process20();+ process11();return results;}chdir(path3 = this.cwd) {@@ -53992,7 +46271,7 @@ var require_file2 = __commonJS((exports, module) => {var flatten = require_flatten();var difference = require_difference();var union = require_union();- var isPlainObject11 = require_isPlainObject();+ var isPlainObject2 = require_isPlainObject();var glob = require_commonjs5();var file = module.exports = {};var pathSeparatorRe = /[\/\\]/g;@@ -54017,7 +46296,7 @@ var require_file2 = __commonJS((exports, module) => {return fs3.existsSync(filepath);};file.expand = function(...args) {- var options = isPlainObject11(args[0]) ? args.shift() : {};+ var options = isPlainObject2(args[0]) ? args.shift() : {};var patterns = Array.isArray(args[0]) ? args[0] : args;if (patterns.length === 0) {return [];@@ -54429,11 +46708,11 @@ var require_core = __commonJS((exports, module) => {this._module.pipe(this);this._state.modulePiped = true;};- Archiver.prototype._moduleSupports = function(key12) {- if (!this._module.supports || !this._module.supports[key12]) {+ Archiver.prototype._moduleSupports = function(key2) {+ if (!this._module.supports || !this._module.supports[key2]) {return false;}- return this._module.supports[key12];+ return this._module.supports[key2];};Archiver.prototype._moduleUnpipe = function() {this._module.unpipe(this);@@ -55632,22 +47911,22 @@ var require_zip_archive_output_stream = __commonJS((exports, module) => {};ZipArchiveOutputStream.prototype._smartStream = function(ae, callback) {var deflate = ae.getMethod() === constants.METHOD_DEFLATED;- var process20 = deflate ? new DeflateCRC32Stream(this.options.zlib) : new CRC32Stream;+ var process11 = deflate ? new DeflateCRC32Stream(this.options.zlib) : new CRC32Stream;var error = null;function handleStuff() {- var digest = process20.digest().readUInt32BE(0);+ var digest = process11.digest().readUInt32BE(0);ae.setCrc(digest);- ae.setSize(process20.size());- ae.setCompressedSize(process20.size(true));+ ae.setSize(process11.size());+ ae.setCompressedSize(process11.size(true));this._afterAppend(ae);callback(error, ae);}- process20.once("end", handleStuff.bind(this));- process20.once("error", function(err) {+ process11.once("end", handleStuff.bind(this));+ process11.once("error", function(err) {error = err;});- process20.pipe(this, { end: false });- return process20;+ process11.pipe(this, { end: false });+ return process11;};ZipArchiveOutputStream.prototype._writeCentralDirectoryEnd = function() {var records = this._entries.length;@@ -57449,8 +49728,8 @@ var require_headers = __commonJS((exports) => {`);const pax = opts.pax;if (pax) {- for (const key12 in pax) {- result += addLength(" " + key12 + "=" + pax[key12] + `+ for (const key2 in pax) {+ result += addLength(" " + key2 + "=" + pax[key2] + ``);}}@@ -58858,8 +51137,8 @@ var require_ignore2 = __commonJS((exports, module) => {TMP_KEY_IGNORE = Symbol.for("node-ignore");}var KEY_IGNORE = TMP_KEY_IGNORE;- var define2 = (object, key12, value) => {- Object.defineProperty(object, key12, { value });+ var define2 = (object, key2, value) => {+ Object.defineProperty(object, key2, { value });return value;};var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;@@ -58968,23 +51247,23 @@ var require_ignore2 = __commonJS((exports, module) => {define2(this, "regexPrefix", prefix);}get regex() {- const key12 = UNDERSCORE + MODE_IGNORE;- if (this[key12]) {- return this[key12];+ const key2 = UNDERSCORE + MODE_IGNORE;+ if (this[key2]) {+ return this[key2];}- return this._make(MODE_IGNORE, key12);+ return this._make(MODE_IGNORE, key2);}get checkRegex() {- const key12 = UNDERSCORE + MODE_CHECK_IGNORE;- if (this[key12]) {- return this[key12];+ const key2 = UNDERSCORE + MODE_CHECK_IGNORE;+ if (this[key2]) {+ return this[key2];}- return this._make(MODE_CHECK_IGNORE, key12);+ return this._make(MODE_CHECK_IGNORE, key2);}- _make(mode, key12) {+ _make(mode, key2) {const str = this.regexPrefix.replace(REGEX_REPLACE_TRAILING_WILDCARD, TRAILING_WILD_CARD_REPLACERS[mode]);const regex2 = this.ignoreCase ? new RegExp(str, "i") : new RegExp(str);- return define2(this, key12, regex2);+ return define2(this, key2, regex2);}}var createRule = ({@@ -59252,56 +51531,56 @@ var require_kleur = __commonJS((exports, module) => {// node_modules/prompts/dist/util/action.jsvar require_action = __commonJS((exports, module) => {- module.exports = (key12, isSelect) => {- if (key12.meta && key12.name !== "escape")+ module.exports = (key2, isSelect) => {+ if (key2.meta && key2.name !== "escape")return;- if (key12.ctrl) {- if (key12.name === "a")+ if (key2.ctrl) {+ if (key2.name === "a")return "first";- if (key12.name === "c")+ if (key2.name === "c")return "abort";- if (key12.name === "d")+ if (key2.name === "d")return "abort";- if (key12.name === "e")+ if (key2.name === "e")return "last";- if (key12.name === "g")+ if (key2.name === "g")return "reset";}if (isSelect) {- if (key12.name === "j")+ if (key2.name === "j")return "down";- if (key12.name === "k")+ if (key2.name === "k")return "up";}- if (key12.name === "return")+ if (key2.name === "return")return "submit";- if (key12.name === "enter")+ if (key2.name === "enter")return "submit";- if (key12.name === "backspace")+ if (key2.name === "backspace")return "delete";- if (key12.name === "delete")+ if (key2.name === "delete")return "deleteForward";- if (key12.name === "abort")+ if (key2.name === "abort")return "abort";- if (key12.name === "escape")+ if (key2.name === "escape")return "exit";- if (key12.name === "tab")+ if (key2.name === "tab")return "next";- if (key12.name === "pagedown")+ if (key2.name === "pagedown")return "nextPage";- if (key12.name === "pageup")+ if (key2.name === "pageup")return "prevPage";- if (key12.name === "home")+ if (key2.name === "home")return "home";- if (key12.name === "end")+ if (key2.name === "end")return "end";- if (key12.name === "up")+ if (key2.name === "up")return "up";- if (key12.name === "down")+ if (key2.name === "down")return "down";- if (key12.name === "right")+ if (key2.name === "right")return "right";- if (key12.name === "left")+ if (key2.name === "left")return "left";return false;};@@ -59445,8 +51724,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() methoif (!perLine)return erase.line + cursor.to(0);let rows = 0;- const lines4 = prompt2.split(/\r?\n/);- var _iterator = _createForOfIteratorHelper(lines4), _step;+ const lines2 = prompt2.split(/\r?\n/);+ var _iterator = _createForOfIteratorHelper(lines2), _step;try {for (_iterator.s();!(_step = _iterator.n()).done; ) {let line = _step.value;@@ -59491,14 +51770,14 @@ var require_figures = __commonJS((exports, module) => {line: "─",pointer: ">"};- var figures11 = process.platform === "win32" ? win : main2;- module.exports = figures11;+ var figures2 = process.platform === "win32" ? win : main2;+ module.exports = figures2;});// node_modules/prompts/dist/util/style.jsvar require_style = __commonJS((exports, module) => {var c = require_kleur();- var figures11 = require_figures();+ var figures2 = require_figures();var styles3 = Object.freeze({password: {scale: 1,@@ -59519,14 +51798,14 @@ var require_style = __commonJS((exports, module) => {});var render = (type) => styles3[type] || styles3.default;var symbols2 = Object.freeze({- aborted: c.red(figures11.cross),- done: c.green(figures11.tick),- exited: c.yellow(figures11.cross),+ aborted: c.red(figures2.cross),+ done: c.green(figures2.tick),+ exited: c.yellow(figures2.cross),default: c.cyan("?")});var symbol = (done, aborted, exited) => aborted ? symbols2.aborted : exited ? symbols2.exited : done ? symbols2.done : symbols2.default;- var delimiter = (completing) => c.gray(completing ? figures11.ellipsis : figures11.pointerSmall);- var item = (expandable, expanded) => c.gray(expandable ? expanded ? figures11.pointerSmall : "+" : figures11.line);+ var delimiter = (completing) => c.gray(completing ? figures2.ellipsis : figures2.pointerSmall);+ var item = (expandable, expanded) => c.gray(expandable ? expanded ? figures2.pointerSmall : "+" : figures2.line);module.exports = {styles: styles3,render,@@ -59541,10 +51820,10 @@ var require_style = __commonJS((exports, module) => {var require_lines = __commonJS((exports, module) => {var strip = require_strip();module.exports = function(msg, perLine) {- let lines4 = String(strip(msg) || "").split(/\r?\n/);+ let lines2 = String(strip(msg) || "").split(/\r?\n/);if (!perLine)- return lines4.length;- return lines4.map((l) => Math.ceil(l.length / perLine)).reduce((a, b) => a + b);+ return lines2.length;+ return lines2.map((l) => Math.ceil(l.length / perLine)).reduce((a, b) => a + b);};});@@ -59596,7 +51875,7 @@ var require_util5 = __commonJS((exports, module) => {// node_modules/prompts/dist/elements/prompt.jsvar require_prompt = __commonJS((exports, module) => {- var readline22 = __require("readline");+ var readline4 = __require("readline");var _require = require_util5();var action = _require.action;var EventEmitter = __require("events");@@ -59614,20 +51893,20 @@ var require_prompt = __commonJS((exports, module) => {this.onRender = (opts.onRender || (() => {return;})).bind(this);- const rl = readline22.createInterface({+ const rl = readline4.createInterface({input: this.in,escapeCodeTimeout: 50});- readline22.emitKeypressEvents(this.in, rl);+ readline4.emitKeypressEvents(this.in, rl);if (this.in.isTTY)this.in.setRawMode(true);const isSelect = ["SelectPrompt", "MultiselectPrompt"].indexOf(this.constructor.name) > -1;- const keypress = (str, key12) => {- let a = action(key12, isSelect);+ const keypress = (str, key2) => {+ let a = action(key2, isSelect);if (a === false) {- this._ && this._(str, key12);+ this._ && this._(str, key2);} else if (typeof this[a] === "function") {- this[a](key12);+ this[a](key2);} else {this.bell();}@@ -59664,9 +51943,9 @@ var require_prompt = __commonJS((exports, module) => {// node_modules/prompts/dist/elements/text.jsvar require_text = __commonJS((exports, module) => {- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key12, arg) {+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key2, arg) {try {- var info = gen[key12](arg);+ var info = gen[key2](arg);var value = info.value;} catch (error) {reject(error);@@ -59701,8 +51980,8 @@ var require_text = __commonJS((exports, module) => {var _require2 = require_util5();var style = _require2.style;var clear = _require2.clear;- var lines4 = _require2.lines;- var figures11 = _require2.figures;+ var lines2 = _require2.lines;+ var figures2 = _require2.figures;class TextPrompt extends Prompt {constructor(opts = {}) {@@ -59801,7 +52080,7 @@ var require_text = __commonJS((exports, module) => {this.cursor = this.cursor + n;this.cursorOffset += n;}- _(c, key12) {+ _(c, key2) {let s1 = this.value.slice(0, this.cursor);let s2 = this.value.slice(this.cursor);this.value = `${s1}${c}${s2}`;@@ -59869,7 +52148,7 @@ var require_text = __commonJS((exports, module) => {return;if (!this.firstRender) {if (this.outputError)- this.out.write(cursor.down(lines4(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));+ this.out.write(cursor.down(lines2(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));this.out.write(clear(this.outputText, this.out.columns));}super.render();@@ -59878,7 +52157,7 @@ var require_text = __commonJS((exports, module) => {if (this.error) {this.outputError += this.errorMsg.split(``).reduce((a, l, i) => a + `-${i ? " " : figures11.pointerSmall} ${color.red().italic(l)}`, ``);+${i ? " " : figures2.pointerSmall} ${color.red().italic(l)}`, ``);}this.out.write(erase.line + cursor.to(0) + this.outputText + cursor.save + this.outputError + cursor.restore + cursor.move(this.cursorOffset, 0));}@@ -59893,7 +52172,7 @@ var require_select = __commonJS((exports, module) => {var _require = require_util5();var style = _require.style;var clear = _require.clear;- var figures11 = _require.figures;+ var figures2 = _require.figures;var wrap = _require.wrap;var entriesToDisplay = _require.entriesToDisplay;var _require2 = require_src();@@ -59986,7 +52265,7 @@ var require_select = __commonJS((exports, module) => {this.moveCursor((this.cursor + 1) % this.choices.length);this.render();}- _(c, key12) {+ _(c, key2) {if (c === " ")return this.submit();}@@ -60009,18 +52288,18 @@ var require_select = __commonJS((exports, module) => {for (let i = startIndex;i < endIndex; i++) {let title, prefix, desc = "", v = this.choices[i];if (i === startIndex && startIndex > 0) {- prefix = figures11.arrowUp;+ prefix = figures2.arrowUp;} else if (i === endIndex - 1 && endIndex < this.choices.length) {- prefix = figures11.arrowDown;+ prefix = figures2.arrowDown;} else {prefix = " ";}if (v.disabled) {title = this.cursor === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);- prefix = (this.cursor === i ? color.bold().gray(figures11.pointer) + " " : " ") + prefix;+ prefix = (this.cursor === i ? color.bold().gray(figures2.pointer) + " " : " ") + prefix;} else {title = this.cursor === i ? color.cyan().underline(v.title) : v.title;- prefix = (this.cursor === i ? color.cyan(figures11.pointer) + " " : " ") + prefix;+ prefix = (this.cursor === i ? color.cyan(figures2.pointer) + " " : " ") + prefix;if (v.description && this.cursor === i) {desc = ` - ${v.description}`;if (prefix.length + title.length + desc.length >= this.out.columns || v.description.split(/\r?\n/).length > 1) {@@ -60120,7 +52399,7 @@ var require_toggle = __commonJS((exports, module) => {this.fire();this.render();}- _(c, key12) {+ _(c, key2) {if (c === " ") {this.value = !this.value;} else if (c === "1") {@@ -60404,9 +52683,9 @@ var require_dateparts = __commonJS((exports, module) => {// node_modules/prompts/dist/elements/date.jsvar require_date = __commonJS((exports, module) => {- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key12, arg) {+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key2, arg) {try {- var info = gen[key12](arg);+ var info = gen[key2](arg);var value = info.value;} catch (error) {reject(error);@@ -60438,7 +52717,7 @@ var require_date = __commonJS((exports, module) => {var _require = require_util5();var style = _require.style;var clear = _require.clear;- var figures11 = _require.figures;+ var figures2 = _require.figures;var _require2 = require_src();var erase = _require2.erase;var cursor = _require2.cursor;@@ -60621,7 +52900,7 @@ var require_date = __commonJS((exports, module) => {if (this.error) {this.outputText += this.errorMsg.split(``).reduce((a, l, i) => a + `-${i ? ` ` : figures11.pointerSmall} ${color.red().italic(l)}`, ``);+${i ? ` ` : figures2.pointerSmall} ${color.red().italic(l)}`, ``);}this.out.write(erase.line + cursor.to(0) + this.outputText);}@@ -60631,9 +52910,9 @@ ${i ? ` ` : figures11.pointerSmall} ${color.red().italic(l)}`, ``);// node_modules/prompts/dist/elements/number.jsvar require_number = __commonJS((exports, module) => {- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key12, arg) {+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key2, arg) {try {- var info = gen[key12](arg);+ var info = gen[key2](arg);var value = info.value;} catch (error) {reject(error);@@ -60667,9 +52946,9 @@ var require_number = __commonJS((exports, module) => {var erase = _require.erase;var _require2 = require_util5();var style = _require2.style;- var figures11 = _require2.figures;+ var figures2 = _require2.figures;var clear = _require2.clear;- var lines4 = _require2.lines;+ var lines2 = _require2.lines;var isNumber = /[0-9]/;var isDef = (any) => any !== undefined;var round = (number2, precision) => {@@ -60811,7 +53090,7 @@ var require_number = __commonJS((exports, module) => {this.fire();this.render();}- _(c, key12) {+ _(c, key2) {if (!this.valid(c))return this.bell();const now = Date.now();@@ -60835,7 +53114,7 @@ var require_number = __commonJS((exports, module) => {return;if (!this.firstRender) {if (this.outputError)- this.out.write(cursor.down(lines4(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));+ this.out.write(cursor.down(lines2(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));this.out.write(clear(this.outputText, this.out.columns));}super.render();@@ -60844,7 +53123,7 @@ var require_number = __commonJS((exports, module) => {if (this.error) {this.outputError += this.errorMsg.split(``).reduce((a, l, i) => a + `-${i ? ` ` : figures11.pointerSmall} ${color.red().italic(l)}`, ``);+${i ? ` ` : figures2.pointerSmall} ${color.red().italic(l)}`, ``);}this.out.write(erase.line + cursor.to(0) + this.outputText + cursor.save + this.outputError + cursor.restore);}@@ -60860,7 +53139,7 @@ var require_multiselect = __commonJS((exports, module) => {var Prompt = require_prompt();var _require2 = require_util5();var clear = _require2.clear;- var figures11 = _require2.figures;+ var figures2 = _require2.figures;var style = _require2.style;var wrap = _require2.wrap;var entriesToDisplay = _require2.entriesToDisplay;@@ -60990,7 +53269,7 @@ var require_multiselect = __commonJS((exports, module) => {this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);this.render();}- _(c, key12) {+ _(c, key2) {if (c === " ") {this.handleSpaceToggle();} else if (c === "a") {@@ -61006,15 +53285,15 @@ var require_multiselect = __commonJS((exports, module) => {}return `Instructions:-` + ` ${figures11.arrowUp}/${figures11.arrowDown}: Highlight option-` + ` ${figures11.arrowLeft}/${figures11.arrowRight}/[space]: Toggle selection+` + ` ${figures2.arrowUp}/${figures2.arrowDown}: Highlight option+` + ` ${figures2.arrowLeft}/${figures2.arrowRight}/[space]: Toggle selection` + (this.maxChoices === undefined ? ` a: Toggle all` : "") + ` enter/return: Complete answer`;}return "";}renderOption(cursor2, v, i, arrowIndicator) {- const prefix = (v.selected ? color.green(figures11.radioOn) : figures11.radioOff) + " " + arrowIndicator + " ";+ const prefix = (v.selected ? color.green(figures2.radioOn) : figures2.radioOff) + " " + arrowIndicator + " ";let title, desc;if (v.disabled) {title = cursor2 === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);@@ -61041,9 +53320,9 @@ Instructions:let prefix, styledOptions = [];for (let i = startIndex;i < endIndex; i++) {if (i === startIndex && startIndex > 0) {- prefix = figures11.arrowUp;+ prefix = figures2.arrowUp;} else if (i === endIndex - 1 && endIndex < options.length) {- prefix = figures11.arrowDown;+ prefix = figures2.arrowDown;} else {prefix = " ";}@@ -61090,9 +53369,9 @@ Instructions:// node_modules/prompts/dist/elements/autocomplete.jsvar require_autocomplete = __commonJS((exports, module) => {- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key12, arg) {+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key2, arg) {try {- var info = gen[key12](arg);+ var info = gen[key2](arg);var value = info.value;} catch (error) {reject(error);@@ -61127,7 +53406,7 @@ var require_autocomplete = __commonJS((exports, module) => {var _require2 = require_util5();var style = _require2.style;var clear = _require2.clear;- var figures11 = _require2.figures;+ var figures2 = _require2.figures;var wrap = _require2.wrap;var entriesToDisplay = _require2.entriesToDisplay;var getVal = (arr, i) => arr[i] && (arr[i].value || arr[i].title || arr[i]);@@ -61242,7 +53521,7 @@ var require_autocomplete = __commonJS((exports, module) => {`);this.close();}- _(c, key12) {+ _(c, key2) {let s1 = this.input.slice(0, this.cursor);let s2 = this.input.slice(this.cursor);this.input = `${s1}${c}${s2}`;@@ -61322,9 +53601,9 @@ var require_autocomplete = __commonJS((exports, module) => {}renderOption(v, hovered, isStart, isEnd) {let desc;- let prefix = isStart ? figures11.arrowUp : isEnd ? figures11.arrowDown : " ";+ let prefix = isStart ? figures2.arrowUp : isEnd ? figures2.arrowDown : " ";let title = hovered ? color.cyan().underline(v.title) : v.title;- prefix = (hovered ? color.cyan(figures11.pointer) + " " : " ") + prefix;+ prefix = (hovered ? color.cyan(figures2.pointer) + " " : " ") + prefix;if (v.description) {desc = ` - ${v.description}`;if (prefix.length + title.length + desc.length >= this.out.columns || v.description.split(/\r?\n/).length > 1) {@@ -61368,7 +53647,7 @@ var require_autocompleteMultiselect = __commonJS((exports, module) => {var _require2 = require_util5();var clear = _require2.clear;var style = _require2.style;- var figures11 = _require2.figures;+ var figures2 = _require2.figures;class AutocompleteMultiselectPrompt extends MultiselectPrompt {constructor(opts = {}) {@@ -61457,7 +53736,7 @@ var require_autocompleteMultiselect = __commonJS((exports, module) => {this.inputValue = this.inputValue + c;this.updateFilteredOptions();}- _(c, key12) {+ _(c, key2) {if (c === " ") {this.handleSpaceToggle();} else {@@ -61471,8 +53750,8 @@ var require_autocompleteMultiselect = __commonJS((exports, module) => {}return `Instructions:- ${figures11.arrowUp}/${figures11.arrowDown}: Highlight option- ${figures11.arrowLeft}/${figures11.arrowRight}/[space]: Toggle selection+ ${figures2.arrowUp}/${figures2.arrowDown}: Highlight option+ ${figures2.arrowLeft}/${figures2.arrowRight}/[space]: Toggle selection[a,b,c]/delete: Filter choicesenter/return: Complete answer`;@@ -61490,7 +53769,7 @@ Filtered results for: ${this.inputValue ? this.inputValue : color.gray("Enter sotitle = cursor2 === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);elsetitle = cursor2 === i ? color.cyan().underline(v.title) : v.title;- return (v.selected ? color.green(figures11.radioOn) : figures11.radioOff) + " " + title;+ return (v.selected ? color.green(figures2.radioOn) : figures2.radioOff) + " " + title;}renderDoneOrInstructions() {if (this.done) {@@ -61570,7 +53849,7 @@ var require_confirm = __commonJS((exports, module) => {`);this.close();}- _(c, key12) {+ _(c, key2) {if (c.toLowerCase() === "y") {this.value = true;return this.submit();@@ -61691,24 +53970,24 @@ var require_dist2 = __commonJS((exports, module) => {for (var i = 1;i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {- ownKeys(Object(source), true).forEach(function(key12) {- _defineProperty(target, key12, source[key12]);+ ownKeys(Object(source), true).forEach(function(key2) {+ _defineProperty(target, key2, source[key2]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {- ownKeys(Object(source)).forEach(function(key12) {- Object.defineProperty(target, key12, Object.getOwnPropertyDescriptor(source, key12));+ ownKeys(Object(source)).forEach(function(key2) {+ Object.defineProperty(target, key2, Object.getOwnPropertyDescriptor(source, key2));});}}return target;}- function _defineProperty(obj, key12, value) {- if (key12 in obj) {- Object.defineProperty(obj, key12, { value, enumerable: true, configurable: true, writable: true });+ function _defineProperty(obj, key2, value) {+ if (key2 in obj) {+ Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });} else {- obj[key12] = value;+ obj[key2] = value;}return obj;}@@ -61772,9 +54051,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() methoarr2[i] = arr[i];return arr2;}- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key12, arg) {+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key2, arg) {try {- var info = gen[key12](arg);+ var info = gen[key2](arg);var value = info.value;} catch (error) {reject(error);@@ -61841,11 +54120,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho}if (!type)continue;- for (let key12 in question) {- if (passOn.includes(key12))+ for (let key2 in question) {+ if (passOn.includes(key2))continue;- let value = question[key12];- question[key12] = typeof value === "function" ? yield value(answer, _objectSpread({}, answers), lastPrompt) : value;+ let value = question[key2];+ question[key2] = typeof value === "function" ? yield value(answer, _objectSpread({}, answers), lastPrompt) : value;}lastPrompt = question;if (typeof question.message !== "string") {@@ -61906,56 +54185,56 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho// node_modules/prompts/lib/util/action.jsvar require_action2 = __commonJS((exports, module) => {- module.exports = (key12, isSelect) => {- if (key12.meta && key12.name !== "escape")+ module.exports = (key2, isSelect) => {+ if (key2.meta && key2.name !== "escape")return;- if (key12.ctrl) {- if (key12.name === "a")+ if (key2.ctrl) {+ if (key2.name === "a")return "first";- if (key12.name === "c")+ if (key2.name === "c")return "abort";- if (key12.name === "d")+ if (key2.name === "d")return "abort";- if (key12.name === "e")+ if (key2.name === "e")return "last";- if (key12.name === "g")+ if (key2.name === "g")return "reset";}if (isSelect) {- if (key12.name === "j")+ if (key2.name === "j")return "down";- if (key12.name === "k")+ if (key2.name === "k")return "up";}- if (key12.name === "return")+ if (key2.name === "return")return "submit";- if (key12.name === "enter")+ if (key2.name === "enter")return "submit";- if (key12.name === "backspace")+ if (key2.name === "backspace")return "delete";- if (key12.name === "delete")+ if (key2.name === "delete")return "deleteForward";- if (key12.name === "abort")+ if (key2.name === "abort")return "abort";- if (key12.name === "escape")+ if (key2.name === "escape")return "exit";- if (key12.name === "tab")+ if (key2.name === "tab")return "next";- if (key12.name === "pagedown")+ if (key2.name === "pagedown")return "nextPage";- if (key12.name === "pageup")+ if (key2.name === "pageup")return "prevPage";- if (key12.name === "home")+ if (key2.name === "home")return "home";- if (key12.name === "end")+ if (key2.name === "end")return "end";- if (key12.name === "up")+ if (key2.name === "up")return "up";- if (key12.name === "down")+ if (key2.name === "down")return "down";- if (key12.name === "right")+ if (key2.name === "right")return "right";- if (key12.name === "left")+ if (key2.name === "left")return "left";return false;};@@ -61982,8 +54261,8 @@ var require_clear2 = __commonJS((exports, module) => {if (!perLine)return erase.line + cursor.to(0);let rows = 0;- const lines4 = prompt2.split(/\r?\n/);- for (let line of lines4) {+ const lines2 = prompt2.split(/\r?\n/);+ for (let line of lines2) {rows += 1 + Math.floor(Math.max(width(line) - 1, 0) / perLine);}return erase.lines(rows);@@ -62020,14 +54299,14 @@ var require_figures2 = __commonJS((exports, module) => {line: "─",pointer: ">"};- var figures11 = process.platform === "win32" ? win : main2;- module.exports = figures11;+ var figures2 = process.platform === "win32" ? win : main2;+ module.exports = figures2;});// node_modules/prompts/lib/util/style.jsvar require_style2 = __commonJS((exports, module) => {var c = require_kleur();- var figures11 = require_figures2();+ var figures2 = require_figures2();var styles3 = Object.freeze({password: { scale: 1, render: (input) => "*".repeat(input.length) },emoji: { scale: 2, render: (input) => "\uD83D\uDE03".repeat(input.length) },@@ -62036,14 +54315,14 @@ var require_style2 = __commonJS((exports, module) => {});var render = (type) => styles3[type] || styles3.default;var symbols2 = Object.freeze({- aborted: c.red(figures11.cross),- done: c.green(figures11.tick),- exited: c.yellow(figures11.cross),+ aborted: c.red(figures2.cross),+ done: c.green(figures2.tick),+ exited: c.yellow(figures2.cross),default: c.cyan("?")});var symbol = (done, aborted, exited) => aborted ? symbols2.aborted : exited ? symbols2.exited : done ? symbols2.done : symbols2.default;- var delimiter = (completing) => c.gray(completing ? figures11.ellipsis : figures11.pointerSmall);- var item = (expandable, expanded) => c.gray(expandable ? expanded ? figures11.pointerSmall : "+" : figures11.line);+ var delimiter = (completing) => c.gray(completing ? figures2.ellipsis : figures2.pointerSmall);+ var item = (expandable, expanded) => c.gray(expandable ? expanded ? figures2.pointerSmall : "+" : figures2.line);module.exports = {styles: styles3,render,@@ -62058,10 +54337,10 @@ var require_style2 = __commonJS((exports, module) => {var require_lines2 = __commonJS((exports, module) => {var strip = require_strip2();module.exports = function(msg, perLine) {- let lines4 = String(strip(msg) || "").split(/\r?\n/);+ let lines2 = String(strip(msg) || "").split(/\r?\n/);if (!perLine)- return lines4.length;- return lines4.map((l) => Math.ceil(l.length / perLine)).reduce((a, b) => a + b);+ return lines2.length;+ return lines2.map((l) => Math.ceil(l.length / perLine)).reduce((a, b) => a + b);};});@@ -62110,7 +54389,7 @@ var require_util6 = __commonJS((exports, module) => {// node_modules/prompts/lib/elements/prompt.jsvar require_prompt2 = __commonJS((exports, module) => {- var readline22 = __require("readline");+ var readline4 = __require("readline");var { action } = require_util6();var EventEmitter = __require("events");var { beep, cursor } = require_src();@@ -62125,17 +54404,17 @@ var require_prompt2 = __commonJS((exports, module) => {this.onRender = (opts.onRender || (() => {return;})).bind(this);- const rl = readline22.createInterface({ input: this.in, escapeCodeTimeout: 50 });- readline22.emitKeypressEvents(this.in, rl);+ const rl = readline4.createInterface({ input: this.in, escapeCodeTimeout: 50 });+ readline4.emitKeypressEvents(this.in, rl);if (this.in.isTTY)this.in.setRawMode(true);const isSelect = ["SelectPrompt", "MultiselectPrompt"].indexOf(this.constructor.name) > -1;- const keypress = (str, key12) => {- let a = action(key12, isSelect);+ const keypress = (str, key2) => {+ let a = action(key2, isSelect);if (a === false) {- this._ && this._(str, key12);+ this._ && this._(str, key2);} else if (typeof this[a] === "function") {- this[a](key12);+ this[a](key2);} else {this.bell();}@@ -62175,7 +54454,7 @@ var require_text2 = __commonJS((exports, module) => {var color = require_kleur();var Prompt = require_prompt2();var { erase, cursor } = require_src();- var { style, clear, lines: lines4, figures: figures11 } = require_util6();+ var { style, clear, lines: lines2, figures: figures2 } = require_util6();class TextPrompt extends Prompt {constructor(opts = {}) {@@ -62268,7 +54547,7 @@ var require_text2 = __commonJS((exports, module) => {this.cursor = this.cursor + n;this.cursorOffset += n;}- _(c, key12) {+ _(c, key2) {let s1 = this.value.slice(0, this.cursor);let s2 = this.value.slice(this.cursor);this.value = `${s1}${c}${s2}`;@@ -62336,7 +54615,7 @@ var require_text2 = __commonJS((exports, module) => {return;if (!this.firstRender) {if (this.outputError)- this.out.write(cursor.down(lines4(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));+ this.out.write(cursor.down(lines2(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));this.out.write(clear(this.outputText, this.out.columns));}super.render();@@ -62350,7 +54629,7 @@ var require_text2 = __commonJS((exports, module) => {if (this.error) {this.outputError += this.errorMsg.split(``).reduce((a, l, i) => a + `-${i ? " " : figures11.pointerSmall} ${color.red().italic(l)}`, ``);+${i ? " " : figures2.pointerSmall} ${color.red().italic(l)}`, ``);}this.out.write(erase.line + cursor.to(0) + this.outputText + cursor.save + this.outputError + cursor.restore + cursor.move(this.cursorOffset, 0));}@@ -62362,7 +54641,7 @@ ${i ? " " : figures11.pointerSmall} ${color.red().italic(l)}`, ``);var require_select2 = __commonJS((exports, module) => {var color = require_kleur();var Prompt = require_prompt2();- var { style, clear, figures: figures11, wrap, entriesToDisplay } = require_util6();+ var { style, clear, figures: figures2, wrap, entriesToDisplay } = require_util6();var { cursor } = require_src();class SelectPrompt extends Prompt {@@ -62449,7 +54728,7 @@ var require_select2 = __commonJS((exports, module) => {this.moveCursor((this.cursor + 1) % this.choices.length);this.render();}- _(c, key12) {+ _(c, key2) {if (c === " ")return this.submit();}@@ -62477,18 +54756,18 @@ var require_select2 = __commonJS((exports, module) => {for (let i = startIndex;i < endIndex; i++) {let title, prefix, desc = "", v = this.choices[i];if (i === startIndex && startIndex > 0) {- prefix = figures11.arrowUp;+ prefix = figures2.arrowUp;} else if (i === endIndex - 1 && endIndex < this.choices.length) {- prefix = figures11.arrowDown;+ prefix = figures2.arrowDown;} else {prefix = " ";}if (v.disabled) {title = this.cursor === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);- prefix = (this.cursor === i ? color.bold().gray(figures11.pointer) + " " : " ") + prefix;+ prefix = (this.cursor === i ? color.bold().gray(figures2.pointer) + " " : " ") + prefix;} else {title = this.cursor === i ? color.cyan().underline(v.title) : v.title;- prefix = (this.cursor === i ? color.cyan(figures11.pointer) + " " : " ") + prefix;+ prefix = (this.cursor === i ? color.cyan(figures2.pointer) + " " : " ") + prefix;if (v.description && this.cursor === i) {desc = ` - ${v.description}`;if (prefix.length + title.length + desc.length >= this.out.columns || v.description.split(/\r?\n/).length > 1) {@@ -62581,7 +54860,7 @@ var require_toggle2 = __commonJS((exports, module) => {this.fire();this.render();}- _(c, key12) {+ _(c, key2) {if (c === " ") {this.value = !this.value;} else if (c === "1") {@@ -62869,7 +55148,7 @@ var require_dateparts2 = __commonJS((exports, module) => {var require_date2 = __commonJS((exports, module) => {var color = require_kleur();var Prompt = require_prompt2();- var { style, clear, figures: figures11 } = require_util6();+ var { style, clear, figures: figures2 } = require_util6();var { erase, cursor } = require_src();var { DatePart, Meridiem, Day, Hours, Milliseconds, Minutes, Month, Seconds, Year } = require_dateparts2();var regex2 = /\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;@@ -63033,7 +55312,7 @@ var require_date2 = __commonJS((exports, module) => {if (this.error) {this.outputText += this.errorMsg.split(``).reduce((a, l, i) => a + `-${i ? ` ` : figures11.pointerSmall} ${color.red().italic(l)}`, ``);+${i ? ` ` : figures2.pointerSmall} ${color.red().italic(l)}`, ``);}this.out.write(erase.line + cursor.to(0) + this.outputText);}@@ -63046,7 +55325,7 @@ var require_number2 = __commonJS((exports, module) => {var color = require_kleur();var Prompt = require_prompt2();var { cursor, erase } = require_src();- var { style, figures: figures11, clear, lines: lines4 } = require_util6();+ var { style, figures: figures2, clear, lines: lines2 } = require_util6();var isNumber = /[0-9]/;var isDef = (any) => any !== undefined;var round = (number2, precision) => {@@ -63182,7 +55461,7 @@ var require_number2 = __commonJS((exports, module) => {this.fire();this.render();}- _(c, key12) {+ _(c, key2) {if (!this.valid(c))return this.bell();const now = Date.now();@@ -63206,7 +55485,7 @@ var require_number2 = __commonJS((exports, module) => {return;if (!this.firstRender) {if (this.outputError)- this.out.write(cursor.down(lines4(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));+ this.out.write(cursor.down(lines2(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));this.out.write(clear(this.outputText, this.out.columns));}super.render();@@ -63220,7 +55499,7 @@ var require_number2 = __commonJS((exports, module) => {if (this.error) {this.outputError += this.errorMsg.split(``).reduce((a, l, i) => a + `-${i ? ` ` : figures11.pointerSmall} ${color.red().italic(l)}`, ``);+${i ? ` ` : figures2.pointerSmall} ${color.red().italic(l)}`, ``);}this.out.write(erase.line + cursor.to(0) + this.outputText + cursor.save + this.outputError + cursor.restore);}@@ -63233,7 +55512,7 @@ var require_multiselect2 = __commonJS((exports, module) => {var color = require_kleur();var { cursor } = require_src();var Prompt = require_prompt2();- var { clear, figures: figures11, style, wrap, entriesToDisplay } = require_util6();+ var { clear, figures: figures2, style, wrap, entriesToDisplay } = require_util6();class MultiselectPrompt extends Prompt {constructor(opts = {}) {@@ -63357,7 +55636,7 @@ var require_multiselect2 = __commonJS((exports, module) => {this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);this.render();}- _(c, key12) {+ _(c, key2) {if (c === " ") {this.handleSpaceToggle();} else if (c === "a") {@@ -63373,15 +55652,15 @@ var require_multiselect2 = __commonJS((exports, module) => {}return `Instructions:-` + ` ${figures11.arrowUp}/${figures11.arrowDown}: Highlight option-` + ` ${figures11.arrowLeft}/${figures11.arrowRight}/[space]: Toggle selection+` + ` ${figures2.arrowUp}/${figures2.arrowDown}: Highlight option+` + ` ${figures2.arrowLeft}/${figures2.arrowRight}/[space]: Toggle selection` + (this.maxChoices === undefined ? ` a: Toggle all` : "") + ` enter/return: Complete answer`;}return "";}renderOption(cursor2, v, i, arrowIndicator) {- const prefix = (v.selected ? color.green(figures11.radioOn) : figures11.radioOff) + " " + arrowIndicator + " ";+ const prefix = (v.selected ? color.green(figures2.radioOn) : figures2.radioOff) + " " + arrowIndicator + " ";let title, desc;if (v.disabled) {title = cursor2 === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);@@ -63405,9 +55684,9 @@ Instructions:let prefix, styledOptions = [];for (let i = startIndex;i < endIndex; i++) {if (i === startIndex && startIndex > 0) {- prefix = figures11.arrowUp;+ prefix = figures2.arrowUp;} else if (i === endIndex - 1 && endIndex < options.length) {- prefix = figures11.arrowDown;+ prefix = figures2.arrowDown;} else {prefix = " ";}@@ -63462,7 +55741,7 @@ var require_autocomplete2 = __commonJS((exports, module) => {var color = require_kleur();var Prompt = require_prompt2();var { erase, cursor } = require_src();- var { style, clear, figures: figures11, wrap, entriesToDisplay } = require_util6();+ var { style, clear, figures: figures2, wrap, entriesToDisplay } = require_util6();var getVal = (arr, i) => arr[i] && (arr[i].value || arr[i].title || arr[i]);var getTitle = (arr, i) => arr[i] && (arr[i].title || arr[i].value || arr[i]);var getIndex = (arr, valOrTitle) => {@@ -63562,7 +55841,7 @@ var require_autocomplete2 = __commonJS((exports, module) => {`);this.close();}- _(c, key12) {+ _(c, key2) {let s1 = this.input.slice(0, this.cursor);let s2 = this.input.slice(this.cursor);this.input = `${s1}${c}${s2}`;@@ -63642,9 +55921,9 @@ var require_autocomplete2 = __commonJS((exports, module) => {}renderOption(v, hovered, isStart, isEnd) {let desc;- let prefix = isStart ? figures11.arrowUp : isEnd ? figures11.arrowDown : " ";+ let prefix = isStart ? figures2.arrowUp : isEnd ? figures2.arrowDown : " ";let title = hovered ? color.cyan().underline(v.title) : v.title;- prefix = (hovered ? color.cyan(figures11.pointer) + " " : " ") + prefix;+ prefix = (hovered ? color.cyan(figures2.pointer) + " " : " ") + prefix;if (v.description) {desc = ` - ${v.description}`;if (prefix.length + title.length + desc.length >= this.out.columns || v.description.split(/\r?\n/).length > 1) {@@ -63686,7 +55965,7 @@ var require_autocompleteMultiselect2 = __commonJS((exports, module) => {var color = require_kleur();var { cursor } = require_src();var MultiselectPrompt = require_multiselect2();- var { clear, style, figures: figures11 } = require_util6();+ var { clear, style, figures: figures2 } = require_util6();class AutocompleteMultiselectPrompt extends MultiselectPrompt {constructor(opts = {}) {@@ -63775,7 +56054,7 @@ var require_autocompleteMultiselect2 = __commonJS((exports, module) => {this.inputValue = this.inputValue + c;this.updateFilteredOptions();}- _(c, key12) {+ _(c, key2) {if (c === " ") {this.handleSpaceToggle();} else {@@ -63789,8 +56068,8 @@ var require_autocompleteMultiselect2 = __commonJS((exports, module) => {}return `Instructions:- ${figures11.arrowUp}/${figures11.arrowDown}: Highlight option- ${figures11.arrowLeft}/${figures11.arrowRight}/[space]: Toggle selection+ ${figures2.arrowUp}/${figures2.arrowDown}: Highlight option+ ${figures2.arrowLeft}/${figures2.arrowRight}/[space]: Toggle selection[a,b,c]/delete: Filter choicesenter/return: Complete answer`;@@ -63808,7 +56087,7 @@ Filtered results for: ${this.inputValue ? this.inputValue : color.gray("Enter sotitle = cursor2 === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);elsetitle = cursor2 === i ? color.cyan().underline(v.title) : v.title;- return (v.selected ? color.green(figures11.radioOn) : figures11.radioOff) + " " + title;+ return (v.selected ? color.green(figures2.radioOn) : figures2.radioOff) + " " + title;}renderDoneOrInstructions() {if (this.done) {@@ -63889,7 +56168,7 @@ var require_confirm2 = __commonJS((exports, module) => {`);this.close();}- _(c, key12) {+ _(c, key2) {if (c.toLowerCase() === "y") {this.value = true;return this.submit();@@ -64021,11 +56300,11 @@ var require_lib5 = __commonJS((exports, module) => {}if (!type)continue;- for (let key12 in question) {- if (passOn.includes(key12))+ for (let key2 in question) {+ if (passOn.includes(key2))continue;- let value = question[key12];- question[key12] = typeof value === "function" ? await value(answer, { ...answers }, lastPrompt) : value;+ let value = question[key2];+ question[key2] = typeof value === "function" ? await value(answer, { ...answers }, lastPrompt) : value;}lastPrompt = question;if (typeof question.message !== "string") {@@ -64114,11 +56393,11 @@ var require_cjs2 = __commonJS((exports, module) => {return cloneUnlessOtherwiseSpecified(element, options);});}- function getMergeFunction(key12, options) {+ function getMergeFunction(key2, options) {if (!options.customMerge) {return deepmerge;}- var customMerge = options.customMerge(key12);+ var customMerge = options.customMerge(key2);return typeof customMerge === "function" ? customMerge : deepmerge;}function getEnumerableOwnPropertySymbols(target) {@@ -64136,24 +56415,24 @@ var require_cjs2 = __commonJS((exports, module) => {return false;}}- function propertyIsUnsafe(target, key12) {- return propertyIsOnObject(target, key12) && !(Object.hasOwnProperty.call(target, key12) && Object.propertyIsEnumerable.call(target, key12));+ function propertyIsUnsafe(target, key2) {+ return propertyIsOnObject(target, key2) && !(Object.hasOwnProperty.call(target, key2) && Object.propertyIsEnumerable.call(target, key2));}function mergeObject(target, source, options) {var destination = {};if (options.isMergeableObject(target)) {- getKeys(target).forEach(function(key12) {- destination[key12] = cloneUnlessOtherwiseSpecified(target[key12], options);+ getKeys(target).forEach(function(key2) {+ destination[key2] = cloneUnlessOtherwiseSpecified(target[key2], options);});}- getKeys(source).forEach(function(key12) {- if (propertyIsUnsafe(target, key12)) {+ getKeys(source).forEach(function(key2) {+ if (propertyIsUnsafe(target, key2)) {return;}- if (propertyIsOnObject(target, key12) && options.isMergeableObject(source[key12])) {- destination[key12] = getMergeFunction(key12, options)(target[key12], source[key12], options);+ if (propertyIsOnObject(target, key2) && options.isMergeableObject(source[key2])) {+ destination[key2] = getMergeFunction(key2, options)(target[key2], source[key2], options);} else {- destination[key12] = cloneUnlessOtherwiseSpecified(source[key12], options);+ destination[key2] = cloneUnlessOtherwiseSpecified(source[key2], options);}});return destination;@@ -64408,7 +56687,7 @@ var require_path_key = __commonJS((exports, module) => {if (platform2 !== "win32") {return "PATH";}- return Object.keys(environment).reverse().find((key12) => key12.toUpperCase() === "PATH") || "Path";+ return Object.keys(environment).reverse().find((key2) => key2.toUpperCase() === "PATH") || "Path";};module.exports = pathKey;module.exports.default = pathKey;@@ -66245,7 +58524,7 @@ function positional(displayName) {// src/commands/create.tsvar import_fs_extra = __toESM(require_lib(), 1);-init_esm31();+init_esm13();import path from "path";// node_modules/chalk/source/vendor/ansi-styles/index.js@@ -66426,16 +58705,16 @@ var ansiStyles = assembleStyles();var ansi_styles_default = ansiStyles;// node_modules/chalk/source/vendor/supports-color/index.js-import process13 from "node:process";+import process4 from "node:process";import os from "node:os";import tty from "node:tty";-function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process13.argv) {+function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process4.argv) {const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";const position = argv.indexOf(prefix + flag);const terminatorPosition = argv.indexOf("--");return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);}-var { env } = process13;+var { env } = process4;var flagForceColor;if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {flagForceColor = 0;@@ -66491,7 +58770,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {if (env.TERM === "dumb") {return min;}- if (process13.platform === "win32") {+ if (process4.platform === "win32") {const osRelease = os.release().split(".");if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {return Number(osRelease[2]) >= 14931 ? 3 : 2;@@ -66499,7 +58778,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {return 1;}if ("CI" in env) {- if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key11) => (key11 in env))) {+ if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key2) => (key2 in env))) {return 3;}if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env)) || env.CI_NAME === "codeship") {@@ -66733,13 +59012,13 @@ var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });var source_default = chalk;// node_modules/ora/index.js-import process19 from "node:process";+import process10 from "node:process";// node_modules/cli-cursor/index.js-import process15 from "node:process";+import process6 from "node:process";// node_modules/restore-cursor/index.js-import process14 from "node:process";+import process5 from "node:process";// node_modules/mimic-function/index.jsvar copyProperty = (to, from, property, ignoreNonConfigurable) => {@@ -66820,7 +59099,7 @@ var onetime_default = onetime;// node_modules/restore-cursor/index.jsinit_mjs();-var terminal = process14.stderr.isTTY ? process14.stderr : process14.stdout.isTTY ? process14.stdout : undefined;+var terminal = process5.stderr.isTTY ? process5.stderr : process5.stdout.isTTY ? process5.stdout : undefined;var restoreCursor = terminal ? onetime_default(() => {onExit(() => {terminal.write("\x1B[?25h");@@ -66832,14 +59111,14 @@ var restore_cursor_default = restoreCursor;// node_modules/cli-cursor/index.jsvar isHidden = false;var cliCursor = {};-cliCursor.show = (writableStream = process15.stderr) => {+cliCursor.show = (writableStream = process6.stderr) => {if (!writableStream.isTTY) {return;}isHidden = false;writableStream.write("\x1B[?25h");};-cliCursor.hide = (writableStream = process15.stderr) => {+cliCursor.hide = (writableStream = process6.stderr) => {if (!writableStream.isTTY) {return;}@@ -66863,12 +59142,12 @@ var cli_cursor_default = cliCursor;var import_cli_spinners = __toESM(require_cli_spinners(), 1);// node_modules/log-symbols/node_modules/is-unicode-supported/index.js-import process16 from "node:process";-function isUnicodeSupported11() {- if (process16.platform !== "win32") {- return process16.env.TERM !== "linux";+import process7 from "node:process";+function isUnicodeSupported2() {+ if (process7.platform !== "win32") {+ return process7.env.TERM !== "linux";}- return Boolean(process16.env.CI) || Boolean(process16.env.WT_SESSION) || Boolean(process16.env.TERMINUS_SUBLIME) || process16.env.ConEmuTask === "{cmd::Cmder}" || process16.env.TERM_PROGRAM === "Terminus-Sublime" || process16.env.TERM_PROGRAM === "vscode" || process16.env.TERM === "xterm-256color" || process16.env.TERM === "alacritty" || process16.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";+ return Boolean(process7.env.CI) || Boolean(process7.env.WT_SESSION) || Boolean(process7.env.TERMINUS_SUBLIME) || process7.env.ConEmuTask === "{cmd::Cmder}" || process7.env.TERM_PROGRAM === "Terminus-Sublime" || process7.env.TERM_PROGRAM === "vscode" || process7.env.TERM === "xterm-256color" || process7.env.TERM === "alacritty" || process7.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";}// node_modules/log-symbols/index.js@@ -66884,7 +59163,7 @@ var fallback = {warning: source_default.yellow("‼"),error: source_default.red("×")};-var logSymbols = isUnicodeSupported11() ? main : fallback;+var logSymbols = isUnicodeSupported2() ? main : fallback;var log_symbols_default = logSymbols;// node_modules/ansi-regex/index.js@@ -66899,7 +59178,7 @@ function ansiRegex({ onlyFirst = false } = {}) {// node_modules/strip-ansi/index.jsvar regex = ansiRegex();-function stripAnsi11(string2) {+function stripAnsi2(string2) {if (typeof string2 !== "string") {throw new TypeError(`Expected a \`string\`, got \`${typeof string2}\``);}@@ -66944,7 +59223,7 @@ function stringWidth(string2, options = {}) {countAnsiEscapeCodes = false} = options;if (!countAnsiEscapeCodes) {- string2 = stripAnsi11(string2);+ string2 = stripAnsi2(string2);}if (string2.length === 0) {return 0;@@ -66986,18 +59265,18 @@ function isInteractive({ stream = process.stdout } = {}) {}// node_modules/is-unicode-supported/index.js-import process17 from "node:process";-function isUnicodeSupported12() {- const { env: env2 } = process17;+import process8 from "node:process";+function isUnicodeSupported3() {+ const { env: env2 } = process8;const { TERM, TERM_PROGRAM } = env2;- if (process17.platform !== "win32") {+ if (process8.platform !== "win32") {return TERM !== "linux";}return Boolean(env2.WT_SESSION) || Boolean(env2.TERMINUS_SUBLIME) || env2.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env2.TERMINAL_EMULATOR === "JetBrains-JediTerm";}// node_modules/stdin-discarder/index.js-import process18 from "node:process";+import process9 from "node:process";var ASCII_ETX_CODE = 3;class StdinDiscarder {@@ -67018,24 +59297,24 @@ class StdinDiscarder {}}#realStart() {- if (process18.platform === "win32" || !process18.stdin.isTTY) {+ if (process9.platform === "win32" || !process9.stdin.isTTY) {return;}- process18.stdin.setRawMode(true);- process18.stdin.on("data", this.#handleInput);- process18.stdin.resume();+ process9.stdin.setRawMode(true);+ process9.stdin.on("data", this.#handleInput);+ process9.stdin.resume();}#realStop() {- if (!process18.stdin.isTTY) {+ if (!process9.stdin.isTTY) {return;}- process18.stdin.off("data", this.#handleInput);- process18.stdin.pause();- process18.stdin.setRawMode(false);+ process9.stdin.off("data", this.#handleInput);+ process9.stdin.pause();+ process9.stdin.setRawMode(false);}#handleInput(chunk) {if (chunk[0] === ASCII_ETX_CODE) {- process18.emit("SIGINT");+ process9.emit("SIGINT");}}}@@ -67071,7 +59350,7 @@ class Ora {}this.#options = {color: "cyan",- stream: process19.stderr,+ stream: process10.stderr,discardStdin: true,hideCursor: true,...options@@ -67086,7 +59365,7 @@ class Ora {this.prefixText = this.#options.prefixText;this.suffixText = this.#options.suffixText;this.indent = this.#options.indent;- if (process19.env.NODE_ENV === "test") {+ if (process10.env.NODE_ENV === "test") {this._stream = this.#stream;this._isEnabled = this.#isEnabled;Object.defineProperty(this, "_linesToClear", {@@ -67133,7 +59412,7 @@ class Ora {throw new Error("The given spinner must have a `frames` property");}this.#spinner = spinner;- } else if (!isUnicodeSupported12()) {+ } else if (!isUnicodeSupported3()) {this.#spinner = import_cli_spinners.default.line;} else if (spinner === undefined) {this.#spinner = import_cli_spinners.default.dots;@@ -67191,7 +59470,7 @@ class Ora {const fullSuffixText = this.#getFullSuffixText(this.#suffixText, "-");const fullText = " ".repeat(this.#indent) + fullPrefixText + "--" + this.#text + "--" + fullSuffixText;this.#lineCount = 0;- for (const line of stripAnsi11(fullText).split(`+ for (const line of stripAnsi2(fullText).split(``)) {this.#lineCount += Math.max(1, Math.ceil(stringWidth(line, { countAnsiEscapeCodes: true }) / columns));}@@ -67277,7 +59556,7 @@ class Ora {if (this.#options.hideCursor) {cli_cursor_default.hide(this.#stream);}- if (this.#options.discardStdin && process19.stdin.isTTY) {+ if (this.#options.discardStdin && process10.stdin.isTTY) {this.#isDiscardingStdin = true;stdin_discarder_default.start();}@@ -67296,7 +59575,7 @@ class Ora {if (this.#options.hideCursor) {cli_cursor_default.show(this.#stream);}- if (this.#options.discardStdin && process19.stdin.isTTY && this.#isDiscardingStdin) {+ if (this.#options.discardStdin && process10.stdin.isTTY && this.#isDiscardingStdin) {stdin_discarder_default.stop();this.#isDiscardingStdin = false;}@@ -67414,7 +59693,7 @@ welcome to create-pipe! \uD83D\uDE80console.log("pipes are plugins that interact with captured screen and audio data.");console.log(`build powerful agents, monetize it, etc.`);- const pipeName = await esm_default8({+ const pipeName = await esm_default5({message: "what is your pipe name?",default: "my-screenpipe",validate: (input) => {@@ -67423,7 +59702,7 @@ welcome to create-pipe! \uD83D\uDE80return true;}});- const directory = await esm_default8({+ const directory = await esm_default5({message: "where would you like to create your pipe?",default: pipeName});@@ -67497,7 +59776,7 @@ class Credentials {}// src/utils/colors.ts-var colors21 = {+var colors8 = {primary: source_default.cyan,success: source_default.green,error: source_default.red,@@ -67529,7 +59808,7 @@ var loginCommand = command({},handler: async (opts) => {try {- console.log(colors21.info(`+ console.log(colors8.info(`${symbols.info} Validating API key...`));const response = await fetch(`${API_BASE_URL}/api/plugins/dev-status`, {method: "GET",@@ -67544,7 +59823,7 @@ ${symbols.info} Validating API key...`));}const data = await response.json();if (data.data.needs_name) {- const inquirer2 = (await Promise.resolve().then(() => (init_esm33(), exports_esm))).default;+ const inquirer2 = (await Promise.resolve().then(() => (init_esm14(), exports_esm))).default;const { developerName } = await inquirer2.prompt([{type: "input",@@ -67576,17 +59855,17 @@ ${symbols.info} Validating API key...`));const updateData = await updateResponse.json();data.data.developer_name = updateData.data.developer_name;}- console.log(colors21.success(`+ console.log(colors8.success(`${symbols.success} Successfully logged in!`));- console.log(colors21.listItem(`${colors21.label("Developer ID")} ${data.data.developer_id}`));- console.log(colors21.listItem(`${colors21.label("Developer Name")} ${data.data.developer_name}`));+ console.log(colors8.listItem(`${colors8.label("Developer ID")} ${data.data.developer_id}`));+ console.log(colors8.listItem(`${colors8.label("Developer Name")} ${data.data.developer_name}`));Credentials.setApiKey(opts.apiKey, data.data.developer_id);} catch (error) {if (error instanceof Error) {- console.error(colors21.error(`+ console.error(colors8.error(`${symbols.error} Login failed: ${error.message}`));} else {- console.error(colors21.error(`+ console.error(colors8.error(`${symbols.error} Login failed with unexpected error`));}process.exit(1);@@ -67599,9 +59878,9 @@ var logoutCommand = command({desc: "End current session",handler: async () => {Credentials.clearCredentials();- console.log(colors21.success(`+ console.log(colors8.success(`${symbols.success} Successfully logged out`));- console.log(colors21.info(`${symbols.info} Thanks for using ScreenPipe! Come back soon.`));+ console.log(colors8.info(`${symbols.info} Thanks for using ScreenPipe! Come back soon.`));}});// src/commands/publish.ts@@ -67657,30 +59936,30 @@ var publishCommand = command({handler: async (opts) => {try {if (opts.verbose) {- console.log(colors21.dim(`${symbols.arrow} starting publish command...`));+ console.log(colors8.dim(`${symbols.arrow} starting publish command...`));}const apiKey = Credentials.getApiKey();if (!apiKey) {- console.error(colors21.error(`${symbols.error} Not logged in. Please login first using ${colors21.highlight("screenpipe login")}`));+ console.error(colors8.error(`${symbols.error} Not logged in. Please login first using ${colors8.highlight("screenpipe login")}`));process.exit(1);}if (opts.verbose) {- console.log(colors21.dim(`${symbols.arrow} reading package.json...`));+ console.log(colors8.dim(`${symbols.arrow} reading package.json...`));}let packageJson;try {packageJson = JSON.parse(fs3.readFileSync("package.json", "utf-8"));} catch (error) {- console.error(colors21.error(`${symbols.error} Failed to read package.json. Make sure you're in the correct directory.`));+ console.error(colors8.error(`${symbols.error} Failed to read package.json. Make sure you're in the correct directory.`));process.exit(1);}if (!packageJson.name || !packageJson.version) {- console.error(colors21.error(`${symbols.error} Package name and version are required in package.json`));+ console.error(colors8.error(`${symbols.error} Package name and version are required in package.json`));process.exit(1);}- console.log(colors21.info(`-${symbols.info} Publishing ${colors21.highlight(packageJson.name)} v${packageJson.version}...`));- console.log(colors21.dim(`${symbols.arrow} Creating package archive...`));+ console.log(colors8.info(`+${symbols.info} Publishing ${colors8.highlight(packageJson.name)} v${packageJson.version}...`));+ console.log(colors8.dim(`${symbols.arrow} Creating package archive...`));const zipPath = path3.join(process.cwd(), `${packageJson.name}-${packageJson.version}.zip`);const output = fs3.createWriteStream(zipPath);const archive = import_archiver.default("zip", { zlib: { level: 9 } });@@ -67701,8 +59980,8 @@ ${symbols.info} Publishing ${colors21.highlight(packageJson.name)} v${packageJsoarchive.finalize();});if (opts.verbose) {- console.log(colors21.dim(`${symbols.arrow} detected project type: ${isNextProject ? "nextjs" : "standard"}`));- console.log(colors21.dim(`${symbols.arrow} starting archive creation...`));+ console.log(colors8.dim(`${symbols.arrow} detected project type: ${isNextProject ? "nextjs" : "standard"}`));+ console.log(colors8.dim(`${symbols.arrow} starting archive creation...`));}const fileBuffer = fs3.readFileSync(zipPath);const hashSum = crypto.createHash("sha256");@@ -67710,7 +59989,7 @@ ${symbols.info} Publishing ${colors21.highlight(packageJson.name)} v${packageJsoconst fileHash = hashSum.digest("hex");const fileSize = fs3.statSync(zipPath).size;if (fileSize > MAX_FILE_SIZE) {- console.error(colors21.error(`${symbols.error} Package size (${(fileSize / 1024 / 1024).toFixed(2)}MB) exceeds maximum allowed size (${MAX_FILE_SIZE / 1024 / 1024}MB)`));+ console.error(colors8.error(`${symbols.error} Package size (${(fileSize / 1024 / 1024).toFixed(2)}MB) exceeds maximum allowed size (${MAX_FILE_SIZE / 1024 / 1024}MB)`));fs3.unlinkSync(zipPath);process.exit(1);}@@ -67721,17 +60000,17 @@ ${symbols.info} Publishing ${colors21.highlight(packageJson.name)} v${packageJsodescription = readmeContent;}} catch (error) {- console.log(colors21.dim(`${symbols.arrow} No README.md found, required for description`));+ console.log(colors8.dim(`${symbols.arrow} No README.md found, required for description`));}if (!description) {- console.error(colors21.error(`${symbols.error} Description is required`));+ console.error(colors8.error(`${symbols.error} Description is required`));process.exit(1);}if (opts.verbose) {- console.log(colors21.dim(`${symbols.arrow} calculating file hash...`));+ console.log(colors8.dim(`${symbols.arrow} calculating file hash...`));}try {- console.log(colors21.dim(`${symbols.arrow} Getting upload URL...`));+ console.log(colors8.dim(`${symbols.arrow} Getting upload URL...`));const urlResponse = await fetch(`${API_BASE_URL}/api/plugins/publish`, {method: "POST",headers: {@@ -67750,7 +60029,7 @@ ${symbols.info} Publishing ${colors21.highlight(packageJson.name)} v${packageJsothrow new Error(`Failed to get upload URL: ${await urlResponse.text()}`);}const { uploadUrl, path: path4 } = await urlResponse.json();- console.log(colors21.dim(`${symbols.arrow} Uploading to storage...`));+ console.log(colors8.dim(`${symbols.arrow} Uploading to storage...`));const uploadResponse = await fetch(uploadUrl, {method: "PUT",headers: {@@ -67759,9 +60038,10 @@ ${symbols.info} Publishing ${colors21.highlight(packageJson.name)} v${packageJsobody: fileBuffer});if (!uploadResponse.ok) {- throw new Error("Failed to upload file to storage");+ const text = await uploadResponse.text();+ throw new Error(`Failed to upload file to storage: ${text}`);}- console.log(colors21.dim(`${symbols.arrow} Finalizing upload...`));+ console.log(colors8.dim(`${symbols.arrow} Finalizing upload...`));const finalizeResponse = await fetch(`${API_BASE_URL}/api/plugins/publish/finalize`, {method: "POST",headers: {@@ -67778,41 +60058,42 @@ ${symbols.info} Publishing ${colors21.highlight(packageJson.name)} v${packageJso})});if (!finalizeResponse.ok) {- throw new Error(`Failed to finalize upload: ${await finalizeResponse.text()}`);+ const text = await finalizeResponse.text();+ throw new Error(`Failed to finalize upload: ${text}`);}const data = await finalizeResponse.json();- console.log(colors21.success(`+ console.log(colors8.success(`${symbols.success} Successfully published plugin!`));- console.log(colors21.listItem(`${colors21.label("Name")} ${packageJson.name}`));- console.log(colors21.listItem(`${colors21.label("Version")} ${packageJson.version}`));- console.log(colors21.listItem(`${colors21.label("Size")} ${(fileSize / 1024).toFixed(2)} KB`));+ console.log(colors8.listItem(`${colors8.label("Name")} ${packageJson.name}`));+ console.log(colors8.listItem(`${colors8.label("Version")} ${packageJson.version}`));+ console.log(colors8.listItem(`${colors8.label("Size")} ${(fileSize / 1024).toFixed(2)} KB`));if (data.message) {- console.log(colors21.info(`+ console.log(colors8.info(`${symbols.info} ${data.message}`));}fs3.unlinkSync(zipPath);if (opts.verbose) {- console.log(colors21.dim(`${symbols.arrow} cleaned up temporary zip file`));+ console.log(colors8.dim(`${symbols.arrow} cleaned up temporary zip file`));}} catch (error) {if (fs3.existsSync(zipPath)) {fs3.unlinkSync(zipPath);if (opts.verbose) {- console.log(colors21.dim(`${symbols.arrow} cleaned up temporary zip file`));+ console.log(colors8.dim(`${symbols.arrow} cleaned up temporary zip file`));}}if (error instanceof Error) {- console.error(colors21.error(`+ console.error(colors8.error(`${symbols.error} Publishing failed: ${error.message}`));}process.exit(1);}} catch (error) {if (error instanceof Error) {- console.error(colors21.error(`+ console.error(colors8.error(`${symbols.error} Publishing failed: ${error.message}`));} else {- console.error(colors21.error(`+ console.error(colors8.error(`${symbols.error} Publishing failed with unexpected error`));}process.exit(1);@@ -67843,14 +60124,14 @@ var registerCommand = command({try {const apiKey = Credentials.getApiKey();if (!apiKey) {- console.error(colors21.error(`${symbols.error} Not logged in. Please login first using ${colors21.highlight("screenpipe login")}`));+ console.error(colors8.error(`${symbols.error} Not logged in. Please login first using ${colors8.highlight("screenpipe login")}`));process.exit(1);}let packageJson;try {packageJson = JSON.parse(fs4.readFileSync("package.json", "utf-8"));} catch (error) {- console.error(colors21.error(`${symbols.error} Failed to read package.json. Make sure you're in the correct directory.`));+ console.error(colors8.error(`${symbols.error} Failed to read package.json. Make sure you're in the correct directory.`));process.exit(1);}const isPaid = opts.paid || false;@@ -67862,7 +60143,7 @@ var registerCommand = command({description = readmeContent;}} catch (error) {- console.log(colors21.dim(`${symbols.arrow} No README.md found, required for description`));+ console.log(colors8.dim(`${symbols.arrow} No README.md found, required for description`));}const response = await fetch(`${API_BASE_URL}/api/plugins/create`, {method: "POST",@@ -67883,21 +60164,21 @@ var registerCommand = command({throw new Error(errorData.error || "Failed to create plugin");}const data = await response.json();- console.log(colors21.success(`-${symbols.success} Successfully created pipe: ${colors21.highlight(opts.name)}`));- console.log(colors21.info(`+ console.log(colors8.success(`+${symbols.success} Successfully created pipe: ${colors8.highlight(opts.name)}`));+ console.log(colors8.info(`${symbols.info} Plugin Details:`));- console.log(colors21.listItem(`${colors21.label("Name")} ${opts.name}`));- console.log(colors21.listItem(`${colors21.label("Type")} ${isPaid ? `Paid ($${price})` : "Free"}`));+ console.log(colors8.listItem(`${colors8.label("Name")} ${opts.name}`));+ console.log(colors8.listItem(`${colors8.label("Type")} ${isPaid ? `Paid ($${price})` : "Free"}`));if (opts.source) {- console.log(colors21.listItem(`${colors21.label("Source")} ${opts.source}`));+ console.log(colors8.listItem(`${colors8.label("Source")} ${opts.source}`));}} catch (error) {if (error instanceof Error) {- console.error(colors21.error(`+ console.error(colors8.error(`${symbols.error} Creating failed: ${error.message}`));} else {- console.error(colors21.error(`+ console.error(colors8.error(`${symbols.error} Creating failed with unexpected error`));}process.exit(1);@@ -67928,27 +60209,27 @@ var listVersionsCommand = command({throw new Error(`Failed to list versions ${error.error}`);}const data = await response.json();- console.log(colors21.header(`Plugin Information`));- console.log(colors21.listItem(`${colors21.label("Name")} ${opts.name}`));- console.log(colors21.listItem(`${colors21.label("ID")} ${data.plugin_id}`));- console.log(colors21.header("Version History"));+ console.log(colors8.header(`Plugin Information`));+ console.log(colors8.listItem(`${colors8.label("Name")} ${opts.name}`));+ console.log(colors8.listItem(`${colors8.label("ID")} ${data.plugin_id}`));+ console.log(colors8.header("Version History"));data.versions.forEach((version) => {- const status = version.status === "published" ? colors21.success(version.status) : colors21.warning(version.status);- console.log(colors21.primary(`- ${symbols.arrow} Version ${colors21.bold(version.version)} ${colors21.dim(`(${status})`)}`));- console.log(colors21.listItem(`${colors21.label("Created")} ${new Date(version.created_at).toLocaleString()}`));- console.log(colors21.listItem(`${colors21.label("Size")} ${(version.file_size / 1024).toFixed(2)} KB`));- console.log(colors21.listItem(`${colors21.label("Hash")} ${colors21.dim(version.file_hash)}`));+ const status = version.status === "published" ? colors8.success(version.status) : colors8.warning(version.status);+ console.log(colors8.primary(`+ ${symbols.arrow} Version ${colors8.bold(version.version)} ${colors8.dim(`(${status})`)}`));+ console.log(colors8.listItem(`${colors8.label("Created")} ${new Date(version.created_at).toLocaleString()}`));+ console.log(colors8.listItem(`${colors8.label("Size")} ${(version.file_size / 1024).toFixed(2)} KB`));+ console.log(colors8.listItem(`${colors8.label("Hash")} ${colors8.dim(version.file_hash)}`));if (version.changelog) {- console.log(colors21.listItem(`${colors21.label("Changelog")} ${version.changelog}`));+ console.log(colors8.listItem(`${colors8.label("Changelog")} ${version.changelog}`));}});} catch (error) {if (error instanceof Error) {- console.error(colors21.error(`+ console.error(colors8.error(`${symbols.error} List versions failed: ${error.message}`));} else {- console.error(colors21.error(`+ console.error(colors8.error(`${symbols.error} List versions failed with unexpected error`));}process.exit(1);@@ -68071,9 +60352,9 @@ var util;};util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => {const keys = [];- for (const key12 in object) {- if (Object.prototype.hasOwnProperty.call(object, key12)) {- keys.push(key12);+ for (const key2 in object) {+ if (Object.prototype.hasOwnProperty.call(object, key2)) {+ keys.push(key2);}}return keys;@@ -68458,10 +60739,10 @@ class ParseStatus {static async mergeObjectAsync(status, pairs) {const syncPairs = [];for (const pair of pairs) {- const key12 = await pair.key;+ const key2 = await pair.key;const value = await pair.value;syncPairs.push({- key: key12,+ key: key2,value});}@@ -68470,17 +60751,17 @@ class ParseStatus {static mergeObjectSync(status, pairs) {const finalObject = {};for (const pair of pairs) {- const { key: key12, value } = pair;- if (key12.status === "aborted")+ const { key: key2, value } = pair;+ if (key2.status === "aborted")return INVALID;if (value.status === "aborted")return INVALID;- if (key12.status === "dirty")+ if (key2.status === "dirty")status.dirty();if (value.status === "dirty")status.dirty();- if (key12.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) {- finalObject[key12.value] = value.value;+ if (key2.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) {+ finalObject[key2.value] = value.value;}}return { status: status.value, value: finalObject };@@ -68520,12 +60801,12 @@ var _ZodEnum_cache;var _ZodNativeEnum_cache;class ParseInputLazyPath {- constructor(parent, value, path4, key12) {+ constructor(parent, value, path4, key2) {this._cachedPath = [];this.parent = parent;this.data = value;this._path = path4;- this._key = key12;+ this._key = key2;}get path() {if (!this._cachedPath.length) {@@ -70281,9 +62562,9 @@ ZodArray.create = (schema, params) => {function deepPartialify(schema) {if (schema instanceof ZodObject) {const newShape = {};- for (const key12 in schema.shape) {- const fieldSchema = schema.shape[key12];- newShape[key12] = ZodOptional.create(deepPartialify(fieldSchema));+ for (const key2 in schema.shape) {+ const fieldSchema = schema.shape[key2];+ newShape[key2] = ZodOptional.create(deepPartialify(fieldSchema));}return new ZodObject({...schema._def,@@ -70334,29 +62615,29 @@ class ZodObject extends ZodType {const { shape, keys: shapeKeys } = this._getCached();const extraKeys = [];if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === "strip")) {- for (const key12 in ctx.data) {- if (!shapeKeys.includes(key12)) {- extraKeys.push(key12);+ for (const key2 in ctx.data) {+ if (!shapeKeys.includes(key2)) {+ extraKeys.push(key2);}}}const pairs = [];- for (const key12 of shapeKeys) {- const keyValidator = shape[key12];- const value = ctx.data[key12];+ for (const key2 of shapeKeys) {+ const keyValidator = shape[key2];+ const value = ctx.data[key2];pairs.push({- key: { status: "valid", value: key12 },- value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key12)),- alwaysSet: key12 in ctx.data+ key: { status: "valid", value: key2 },+ value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key2)),+ alwaysSet: key2 in ctx.data});}if (this._def.catchall instanceof ZodNever) {const unknownKeys = this._def.unknownKeys;if (unknownKeys === "passthrough") {- for (const key12 of extraKeys) {+ for (const key2 of extraKeys) {pairs.push({- key: { status: "valid", value: key12 },- value: { status: "valid", value: ctx.data[key12] }+ key: { status: "valid", value: key2 },+ value: { status: "valid", value: ctx.data[key2] }});}} else if (unknownKeys === "strict") {@@ -70374,12 +62655,12 @@ class ZodObject extends ZodType {}} else {const catchall = this._def.catchall;- for (const key12 of extraKeys) {- const value = ctx.data[key12];+ for (const key2 of extraKeys) {+ const value = ctx.data[key2];pairs.push({- key: { status: "valid", value: key12 },- value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key12)),- alwaysSet: key12 in ctx.data+ key: { status: "valid", value: key2 },+ value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key2)),+ alwaysSet: key2 in ctx.data});}}@@ -70387,10 +62668,10 @@ class ZodObject extends ZodType {return Promise.resolve().then(async () => {const syncPairs = [];for (const pair of pairs) {- const key12 = await pair.key;+ const key2 = await pair.key;const value = await pair.value;syncPairs.push({- key: key12,+ key: key2,value,alwaysSet: pair.alwaysSet});@@ -70459,8 +62740,8 @@ class ZodObject extends ZodType {});return merged;}- setKey(key12, schema) {- return this.augment({ [key12]: schema });+ setKey(key2, schema) {+ return this.augment({ [key2]: schema });}catchall(index) {return new ZodObject({@@ -70470,9 +62751,9 @@ class ZodObject extends ZodType {}pick(mask) {const shape = {};- util.objectKeys(mask).forEach((key12) => {- if (mask[key12] && this.shape[key12]) {- shape[key12] = this.shape[key12];+ util.objectKeys(mask).forEach((key2) => {+ if (mask[key2] && this.shape[key2]) {+ shape[key2] = this.shape[key2];}});return new ZodObject({@@ -70482,9 +62763,9 @@ class ZodObject extends ZodType {}omit(mask) {const shape = {};- util.objectKeys(this.shape).forEach((key12) => {- if (!mask[key12]) {- shape[key12] = this.shape[key12];+ util.objectKeys(this.shape).forEach((key2) => {+ if (!mask[key2]) {+ shape[key2] = this.shape[key2];}});return new ZodObject({@@ -70497,12 +62778,12 @@ class ZodObject extends ZodType {}partial(mask) {const newShape = {};- util.objectKeys(this.shape).forEach((key12) => {- const fieldSchema = this.shape[key12];- if (mask && !mask[key12]) {- newShape[key12] = fieldSchema;+ util.objectKeys(this.shape).forEach((key2) => {+ const fieldSchema = this.shape[key2];+ if (mask && !mask[key2]) {+ newShape[key2] = fieldSchema;} else {- newShape[key12] = fieldSchema.optional();+ newShape[key2] = fieldSchema.optional();}});return new ZodObject({@@ -70512,16 +62793,16 @@ class ZodObject extends ZodType {}required(mask) {const newShape = {};- util.objectKeys(this.shape).forEach((key12) => {- if (mask && !mask[key12]) {- newShape[key12] = this.shape[key12];+ util.objectKeys(this.shape).forEach((key2) => {+ if (mask && !mask[key2]) {+ newShape[key2] = this.shape[key2];} else {- const fieldSchema = this.shape[key12];+ const fieldSchema = this.shape[key2];let newField = fieldSchema;while (newField instanceof ZodOptional) {newField = newField._def.innerType;}- newShape[key12] = newField;+ newShape[key2] = newField;}});return new ZodObject({@@ -70759,14 +63040,14 @@ function mergeValues(a, b) {return { valid: true, data: a };} else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {const bKeys = util.objectKeys(b);- const sharedKeys = util.objectKeys(a).filter((key12) => bKeys.indexOf(key12) !== -1);+ const sharedKeys = util.objectKeys(a).filter((key2) => bKeys.indexOf(key2) !== -1);const newObj = { ...a, ...b };- for (const key12 of sharedKeys) {- const sharedValue = mergeValues(a[key12], b[key12]);+ for (const key2 of sharedKeys) {+ const sharedValue = mergeValues(a[key2], b[key2]);if (!sharedValue.valid) {return { valid: false };}- newObj[key12] = sharedValue.data;+ newObj[key2] = sharedValue.data;}return { valid: true, data: newObj };} else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {@@ -70933,11 +63214,11 @@ class ZodRecord extends ZodType {const pairs = [];const keyType = this._def.keyType;const valueType = this._def.valueType;- for (const key12 in ctx.data) {+ for (const key2 in ctx.data) {pairs.push({- key: keyType._parse(new ParseInputLazyPath(ctx, key12, ctx.path, key12)),- value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key12], ctx.path, key12)),- alwaysSet: key12 in ctx.data+ key: keyType._parse(new ParseInputLazyPath(ctx, key2, ctx.path, key2)),+ value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key2], ctx.path, key2)),+ alwaysSet: key2 in ctx.data});}if (ctx.common.async) {@@ -70986,9 +63267,9 @@ class ZodMap extends ZodType {}const keyType = this._def.keyType;const valueType = this._def.valueType;- const pairs = [...ctx.data.entries()].map(([key12, value], index) => {+ const pairs = [...ctx.data.entries()].map(([key2, value], index) => {return {- key: keyType._parse(new ParseInputLazyPath(ctx, key12, ctx.path, [index, "key"])),+ key: keyType._parse(new ParseInputLazyPath(ctx, key2, ctx.path, [index, "key"])),value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"]))};});@@ -70996,30 +63277,30 @@ class ZodMap extends ZodType {const finalMap = new Map;return Promise.resolve().then(async () => {for (const pair of pairs) {- const key12 = await pair.key;+ const key2 = await pair.key;const value = await pair.value;- if (key12.status === "aborted" || value.status === "aborted") {+ if (key2.status === "aborted" || value.status === "aborted") {return INVALID;}- if (key12.status === "dirty" || value.status === "dirty") {+ if (key2.status === "dirty" || value.status === "dirty") {status.dirty();}- finalMap.set(key12.value, value.value);+ finalMap.set(key2.value, value.value);}return { status: status.value, value: finalMap };});} else {const finalMap = new Map;for (const pair of pairs) {- const key12 = pair.key;+ const key2 = pair.key;const value = pair.value;- if (key12.status === "aborted" || value.status === "aborted") {+ if (key2.status === "aborted" || value.status === "aborted") {return INVALID;}- if (key12.status === "dirty" || value.status === "dirty") {+ if (key2.status === "dirty" || value.status === "dirty") {status.dirty();}- finalMap.set(key12.value, value.value);+ finalMap.set(key2.value, value.value);}return { status: status.value, value: finalMap };}@@ -72040,8 +64321,8 @@ function handleError(error) {}if (error instanceof z.ZodError) {logger.error("Validation failed:");- for (const [key12, value] of Object.entries(error.flatten().fieldErrors)) {- logger.error(`- ${highlighter.info(key12)}: ${value}`);+ for (const [key2, value] of Object.entries(error.flatten().fieldErrors)) {+ logger.error(`- ${highlighter.info(key2)}: ${value}`);}logger.break();process.exit(1);@@ -72284,17 +64565,17 @@ async function promptForRegistryComponents(all) {import fs5 from "fs";import path4 from "path";async function preFlightAdd(cwd) {- const errors12 = {};+ const errors2 = {};if (!fs5.existsSync(cwd) || !fs5.existsSync(path4.resolve(cwd, "package.json"))) {- errors12[ERRORS.MISSING_DIR_OR_EMPTY_PIPE] = true;+ errors2[ERRORS.MISSING_DIR_OR_EMPTY_PIPE] = true;return {- errors: errors12+ errors: errors2};}}// node_modules/is-plain-obj/index.js-function isPlainObject11(value) {+function isPlainObject2(value) {if (typeof value !== "object" || value === null) {return false;}@@ -72318,7 +64599,7 @@ var normalizeFileUrl = (file) => file instanceof URL ? fileURLToPath(file) : fil// node_modules/execa/lib/methods/parameters.jsvar normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {const filePath = safeNormalizeFileUrl(rawFile, "First argument");- const [commandArguments, options] = isPlainObject11(rawArguments) ? [[], rawArguments] : [rawArguments, rawOptions];+ const [commandArguments, options] = isPlainObject2(rawArguments) ? [[], rawArguments] : [rawArguments, rawOptions];if (!Array.isArray(commandArguments)) {throw new TypeError(`Second argument must be either an array of arguments or an options object: ${commandArguments}`);}@@ -72330,7 +64611,7 @@ var normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {if (nullByteArgument !== undefined) {throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${nullByteArgument}`);}- if (!isPlainObject11(options)) {+ if (!isPlainObject2(options)) {throw new TypeError(`Last argument must be an options object: ${options}`);}return [filePath, normalizedArguments, options];@@ -72467,7 +64748,7 @@ var parseExpression = (expression) => {if (typeOfExpression === "number") {return String(expression);}- if (isPlainObject11(expression) && (("stdout" in expression) || ("isMaxBuffer" in expression))) {+ if (isPlainObject2(expression) && (("stdout" in expression) || ("isMaxBuffer" in expression))) {return getSubprocessResult(expression);}if (expression instanceof ChildProcess || Object.prototype.toString.call(expression) === "[object Promise]") {@@ -72495,9 +64776,9 @@ import { spawnSync } from "node:child_process";import { debuglog } from "node:util";// node_modules/execa/lib/utils/standard-stream.js-import process20 from "node:process";+import process11 from "node:process";var isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);-var STANDARD_STREAMS = [process20.stdin, process20.stdout, process20.stderr];+var STANDARD_STREAMS = [process11.stdin, process11.stdout, process11.stderr];var STANDARD_STREAMS_ALIASES = ["stdin", "stdout", "stderr"];var getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;@@ -72515,7 +64796,7 @@ var normalizeFdSpecificOption = (options, optionName) => {return addDefaultValue(optionArray, optionName);};var getStdioLength = ({ stdio }) => Array.isArray(stdio) ? Math.max(stdio.length, STANDARD_STREAMS_ALIASES.length) : STANDARD_STREAMS_ALIASES.length;-var normalizeFdSpecificValue = (optionValue, optionArray, optionName) => isPlainObject11(optionValue) ? normalizeOptionObject(optionValue, optionArray, optionName) : optionArray.fill(optionValue);+var normalizeFdSpecificValue = (optionValue, optionArray, optionName) => isPlainObject2(optionValue) ? normalizeOptionObject(optionValue, optionArray, optionName) : optionArray.fill(optionValue);var normalizeOptionObject = (optionValue, optionArray, optionName) => {for (const fdName of Object.keys(optionValue).sort(compareFdName)) {for (const fdNumber of parseFdName(fdName, optionName, optionArray)) {@@ -72595,7 +64876,7 @@ var joinCommand = (filePath, rawArguments) => {const escapedCommand = fileAndArguments.map((fileAndArgument) => quoteString(escapeControlCharacters(fileAndArgument))).join(" ");return { command: command2, escapedCommand };};-var escapeLines = (lines4) => stripVTControlCharacters(lines4).split(`+var escapeLines = (lines2) => stripVTControlCharacters(lines2).split(``).map((line) => escapeControlCharacters(line)).join(``);var escapeControlCharacters = (line) => line.replaceAll(SPECIAL_CHAR_REGEXP, (character) => escapeControlCharacter(character));@@ -72634,7 +64915,7 @@ var quoteString = (escapedArgument) => {var NO_ESCAPE_REGEXP = /^[\w./-]+$/;// node_modules/figures/index.js-var common11 = {+var common2 = {circleQuestionMark: "(?)",questionMarkPrefix: "(?)",square: "█",@@ -72830,7 +65111,7 @@ var common11 = {lineBackslash: "╲",lineSlash: "╱"};-var specialMainSymbols11 = {+var specialMainSymbols2 = {tick: "✔",info: "ℹ",warning: "⚠",@@ -72866,7 +65147,7 @@ var specialMainSymbols11 = {oneNinth: "⅑",oneTenth: "⅒"};-var specialFallbackSymbols11 = {+var specialFallbackSymbols2 = {tick: "√",info: "i",warning: "‼",@@ -72902,12 +65183,12 @@ var specialFallbackSymbols11 = {oneNinth: "1/9",oneTenth: "1/10"};-var mainSymbols11 = { ...common11, ...specialMainSymbols11 };-var fallbackSymbols11 = { ...common11, ...specialFallbackSymbols11 };-var shouldUseMain11 = isUnicodeSupported12();-var figures11 = shouldUseMain11 ? mainSymbols11 : fallbackSymbols11;-var figures_default = figures11;-var replacements11 = Object.entries(specialMainSymbols11);+var mainSymbols2 = { ...common2, ...specialMainSymbols2 };+var fallbackSymbols2 = { ...common2, ...specialFallbackSymbols2 };+var shouldUseMain2 = isUnicodeSupported3();+var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;+var figures_default = figures2;+var replacements2 = Object.entries(specialMainSymbols2);// node_modules/yoctocolors/base.jsimport tty2 from "node:tty";@@ -73132,10 +65413,10 @@ var handleCommand = (filePath, rawArguments, rawOptions) => {// node_modules/execa/lib/arguments/options.jsvar import_cross_spawn = __toESM(require_cross_spawn(), 1);import path9 from "node:path";-import process23 from "node:process";+import process14 from "node:process";// node_modules/npm-run-path/index.js-import process21 from "node:process";+import process12 from "node:process";import path6 from "node:path";// node_modules/npm-run-path/node_modules/path-key/index.js@@ -73147,7 +65428,7 @@ function pathKey(options = {}) {if (platform2 !== "win32") {return "PATH";}- return Object.keys(env2).reverse().find((key12) => key12.toUpperCase() === "PATH") || "Path";+ return Object.keys(env2).reverse().find((key2) => key2.toUpperCase() === "PATH") || "Path";}// node_modules/unicorn-magic/node.js@@ -73176,10 +65457,10 @@ var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;// node_modules/npm-run-path/index.jsvar npmRunPath = ({- cwd = process21.cwd(),- path: pathOption = process21.env[pathKey()],+ cwd = process12.cwd(),+ path: pathOption = process12.env[pathKey()],preferLocal = true,- execPath = process21.execPath,+ execPath = process12.execPath,addExecPath = true} = {}) => {const cwdPath = path6.resolve(toPath(cwd));@@ -73207,7 +65488,7 @@ var applyExecPath = (result, pathParts, execPath, cwdPath) => {result.push(pathPart);}};-var npmRunPathEnv = ({ env: env2 = process21.env, ...options } = {}) => {+var npmRunPathEnv = ({ env: env2 = process12.env, ...options } = {}) => {env2 = { ...env2 };const pathName = pathKey({ env: env2 });options.path = env2[pathName];@@ -74471,14 +66752,14 @@ var serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encodin// node_modules/execa/lib/arguments/cwd.jsimport { statSync } from "node:fs";import path8 from "node:path";-import process22 from "node:process";+import process13 from "node:process";var normalizeCwd = (cwd = getDefaultCwd()) => {const cwdString = safeNormalizeFileUrl(cwd, 'The "cwd" option');return path8.resolve(cwdString);};var getDefaultCwd = () => {try {- return process22.cwd();+ return process13.cwd();} catch (error) {error.message = `The current directory does not exist.${error.message}`;@@ -74520,8 +66801,8 @@ var normalizeOptions = (filePath, rawArguments, rawOptions) => {options.env = getEnv(options);options.killSignal = normalizeKillSignal(options.killSignal);options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);- options.lines = options.lines.map((lines4, fdNumber) => lines4 && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);- if (process23.platform === "win32" && path9.basename(file, ".exe") === "cmd") {+ options.lines = options.lines.map((lines2, fdNumber) => lines2 && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);+ if (process14.platform === "win32" && path9.basename(file, ".exe") === "cmd") {commandArguments.unshift("/q");}return { file, commandArguments, options };@@ -74562,7 +66843,7 @@ var addDefaultOptions = ({serialization});var getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {- const env2 = extendEnv ? { ...process23.env, ...envOption } : envOption;+ const env2 = extendEnv ? { ...process14.env, ...envOption } : envOption;if (preferLocal || node) {return npmRunPathEnv({env: env2,@@ -74960,23 +67241,23 @@ var stringMethods = {Object.assign(nodeImports, { on, finished });// node_modules/execa/lib/io/max-buffer.js-var handleMaxBuffer = ({ error, stream, readableObjectMode, lines: lines4, encoding, fdNumber }) => {+var handleMaxBuffer = ({ error, stream, readableObjectMode, lines: lines2, encoding, fdNumber }) => {if (!(error instanceof MaxBufferError)) {throw error;}if (fdNumber === "all") {return error;}- const unit = getMaxBufferUnit(readableObjectMode, lines4, encoding);+ const unit = getMaxBufferUnit(readableObjectMode, lines2, encoding);error.maxBufferInfo = { fdNumber, unit };stream.destroy();throw error;};-var getMaxBufferUnit = (readableObjectMode, lines4, encoding) => {+var getMaxBufferUnit = (readableObjectMode, lines2, encoding) => {if (readableObjectMode) {return "objects";}- if (lines4) {+ if (lines2) {return "lines";}if (encoding === "buffer") {@@ -75577,10 +67858,10 @@ var checkBooleanOption = (value, optionName) => {var isGenerator = (value) => isAsyncGenerator(value) || isSyncGenerator(value);var isAsyncGenerator = (value) => Object.prototype.toString.call(value) === "[object AsyncGeneratorFunction]";var isSyncGenerator = (value) => Object.prototype.toString.call(value) === "[object GeneratorFunction]";-var isTransformOptions = (value) => isPlainObject11(value) && (value.transform !== undefined || value.final !== undefined);+var isTransformOptions = (value) => isPlainObject2(value) && (value.transform !== undefined || value.final !== undefined);var isUrl = (value) => Object.prototype.toString.call(value) === "[object URL]";var isRegularUrl = (value) => isUrl(value) && value.protocol !== "file:";-var isFilePathObject = (value) => isPlainObject11(value) && Object.keys(value).length > 0 && Object.keys(value).every((key12) => FILE_PATH_KEYS.has(key12)) && isFilePathString(value.file);+var isFilePathObject = (value) => isPlainObject2(value) && Object.keys(value).length > 0 && Object.keys(value).every((key2) => FILE_PATH_KEYS.has(key2)) && isFilePathString(value.file);var FILE_PATH_KEYS = new Set(["file", "append"]);var isFilePathString = (file) => typeof file === "string";var isUnknownStdioString = (type, value) => type === "native" && typeof value === "string" && !KNOWN_STDIO_STRINGS.has(value);@@ -75697,7 +67978,7 @@ var normalizeDuplex = ({};};var normalizeTransformStream = ({ stdioItem, stdioItem: { value }, index, newTransforms, direction }) => {- const { transform, objectMode } = isPlainObject11(value) ? value : { transform: value };+ const { transform, objectMode } = isPlainObject2(value) ? value : { transform: value };const { writableObjectMode, readableObjectMode } = getTransformObjectModes(objectMode, index, newTransforms, direction);return {...stdioItem,@@ -75711,7 +67992,7 @@ var normalizeGenerator = ({ stdioItem, stdioItem: { value }, index, newTransformbinary: binaryOption = false,preserveNewlines = false,objectMode- } = isPlainObject11(value) ? value : { transform: value };+ } = isPlainObject2(value) ? value : { transform: value };const binary = binaryOption || BINARY_ENCODINGS.has(encoding);const { writableObjectMode, readableObjectMode } = getTransformObjectModes(objectMode, index, newTransforms, direction);return {@@ -75729,7 +68010,7 @@ var normalizeGenerator = ({ stdioItem, stdioItem: { value }, index, newTransformvar sortTransforms = (newTransforms, direction) => direction === "input" ? newTransforms.reverse() : newTransforms;// node_modules/execa/lib/stdio/direction.js-import process24 from "node:process";+import process15 from "node:process";var getStreamDirection = (stdioItems, fdNumber, optionName) => {const directions = stdioItems.map((stdioItem) => getStdioItemDirection(stdioItem, fdNumber));if (directions.includes("input") && directions.includes("output")) {@@ -75771,10 +68052,10 @@ var guessStreamDirection = {}};var getStandardStreamDirection = (value) => {- if ([0, process24.stdin].includes(value)) {+ if ([0, process15.stdin].includes(value)) {return "input";}- if ([1, 2, process24.stdout, process24.stderr].includes(value)) {+ if ([1, 2, process15.stdout, process15.stderr].includes(value)) {return "output";}};@@ -76583,7 +68864,7 @@ var transformOutputSync = ({ fileDescriptors, syncResult: { output }, options, i}, options));return { output: transformedOutput, ...state };};-var transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, outputFiles, isMaxBuffer, verboseInfo }, { buffer, encoding, lines: lines4, stripFinalNewline: stripFinalNewline2, maxBuffer }) => {+var transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, outputFiles, isMaxBuffer, verboseInfo }, { buffer, encoding, lines: lines2, stripFinalNewline: stripFinalNewline2, maxBuffer }) => {if (result === null) {return;}@@ -76595,7 +68876,7 @@ var transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, outchunks,objectMode,encoding,- lines: lines4,+ lines: lines2,stripFinalNewline: stripFinalNewline2,fdNumber});@@ -76627,7 +68908,7 @@ var runOutputGeneratorsSync = (chunks, stdioItems, encoding, state) => {return chunks;}};-var serializeChunks = ({ chunks, objectMode, encoding, lines: lines4, stripFinalNewline: stripFinalNewline2, fdNumber }) => {+var serializeChunks = ({ chunks, objectMode, encoding, lines: lines2, stripFinalNewline: stripFinalNewline2, fdNumber }) => {if (objectMode) {return { serializedResult: chunks };}@@ -76635,7 +68916,7 @@ var serializeChunks = ({ chunks, objectMode, encoding, lines: lines4, stripFinalreturn { serializedResult: joinToUint8Array(chunks) };}const serializedResult = joinToString(chunks, encoding);- if (lines4[fdNumber]) {+ if (lines2[fdNumber]) {return { serializedResult, finalResult: splitLinesSync(serializedResult, !stripFinalNewline2[fdNumber], objectMode) };}return { serializedResult };@@ -76882,7 +69163,7 @@ import { setMaxListeners } from "node:events";import { spawn } from "node:child_process";// node_modules/execa/lib/ipc/methods.js-import process25 from "node:process";+import process16 from "node:process";// node_modules/execa/lib/ipc/get-one.jsimport { once as once5, on as on2 } from "node:events";@@ -77023,9 +69304,9 @@ var addIpcMethods = (subprocess, { ipc }) => {Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));};var getIpcExport = () => {- const anyProcess = process25;+ const anyProcess = process16;const isSubprocess = true;- const ipc = process25.channel !== undefined;+ const ipc = process16.channel !== undefined;return {...getIpcMethods(anyProcess, isSubprocess, ipc),getCancelSignal: getCancelSignal.bind(undefined, {@@ -77667,7 +69948,7 @@ var unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, fil// node_modules/execa/lib/pipe/setup.jsvar pipeToSubprocess = (sourceInfo, ...pipeArguments) => {- if (isPlainObject11(pipeArguments[0])) {+ if (isPlainObject2(pipeArguments[0])) {return pipeToSubprocess.bind(undefined, {...sourceInfo,boundOptions: { ...sourceInfo.boundOptions, ...pipeArguments[0] }@@ -77751,7 +70032,7 @@ var stopReadingOnExit = async (subprocess, controller) => {controller.abort();}};-var iterateForResult = ({ stream, onStreamEnd, lines: lines4, encoding, stripFinalNewline: stripFinalNewline2, allMixed }) => {+var iterateForResult = ({ stream, onStreamEnd, lines: lines2, encoding, stripFinalNewline: stripFinalNewline2, allMixed }) => {const controller = new AbortController;stopReadingOnStreamEnd(onStreamEnd, controller, stream);const objectMode = stream.readableObjectMode && !allMixed;@@ -77761,7 +70042,7 @@ var iterateForResult = ({ stream, onStreamEnd, lines: lines4, encoding, stripFinbinary: encoding === "buffer",shouldEncode: !objectMode,encoding,- shouldSplit: !objectMode && lines4,+ shouldSplit: !objectMode && lines2,preserveNewlines: !stripFinalNewline2});};@@ -77818,7 +70099,7 @@ var getGenerators = ({ binary, shouldEncode, encoding, shouldSplit, preserveNewl].filter(Boolean);// node_modules/execa/lib/io/contents.js-var getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines: lines4, allMixed, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => {+var getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines: lines2, allMixed, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => {const logPromise = logOutputAsync({stream,onStreamEnd,@@ -77836,7 +70117,7 @@ var getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer,const iterable = iterateForResult({stream,onStreamEnd,- lines: lines4,+ lines: lines2,encoding,stripFinalNewline: stripFinalNewlineValue,allMixed@@ -77848,7 +70129,7 @@ var getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer,fdNumber,encoding,maxBuffer,- lines: lines4+ lines: lines2}),logPromise]);@@ -77879,9 +70160,9 @@ var resumeStream = async (stream) => {stream.resume();}};-var getStreamContents2 = async ({ stream, stream: { readableObjectMode }, iterable, fdNumber, encoding, maxBuffer, lines: lines4 }) => {+var getStreamContents2 = async ({ stream, stream: { readableObjectMode }, iterable, fdNumber, encoding, maxBuffer, lines: lines2 }) => {try {- if (readableObjectMode || lines4) {+ if (readableObjectMode || lines2) {return await getStreamAsArray(iterable, { maxBuffer });}if (encoding === "buffer") {@@ -77893,7 +70174,7 @@ var getStreamContents2 = async ({ stream, stream: { readableObjectMode }, iteraberror,stream,readableObjectMode,- lines: lines4,+ lines: lines2,encoding,fdNumber}));@@ -77962,19 +70243,19 @@ var isStreamAbort = (error) => error?.code === "ERR_STREAM_PREMATURE_CLOSE";var isStreamEpipe = (error) => error?.code === "EPIPE";// node_modules/execa/lib/resolve/stdio.js-var waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines: lines4, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({+var waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines: lines2, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({stream,fdNumber,encoding,buffer: buffer[fdNumber],maxBuffer: maxBuffer[fdNumber],- lines: lines4[fdNumber],+ lines: lines2[fdNumber],allMixed: false,stripFinalNewline: stripFinalNewline2,verboseInfo,streamInfo}));-var waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBuffer, lines: lines4, allMixed, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => {+var waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBuffer, lines: lines2, allMixed, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => {if (!stream) {return;}@@ -77991,7 +70272,7 @@ var waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBuencoding,buffer,maxBuffer,- lines: lines4,+ lines: lines2,allMixed,stripFinalNewline: stripFinalNewline2,verboseInfo,@@ -78004,12 +70285,12 @@ var waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBu// node_modules/execa/lib/resolve/all-async.jsvar makeAllStream = ({ stdout, stderr }, { all }) => all && (stdout || stderr) ? mergeStreams([stdout, stderr].filter(Boolean)) : undefined;-var waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines: lines4, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => waitForSubprocessStream({+var waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines: lines2, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => waitForSubprocessStream({...getAllStream(subprocess, buffer),fdNumber: "all",encoding,maxBuffer: maxBuffer[1] + maxBuffer[2],- lines: lines4[1] || lines4[2],+ lines: lines2[1] || lines2[2],allMixed: getAllMixed(subprocess),stripFinalNewline: stripFinalNewline2,verboseInfo,@@ -78090,7 +70371,7 @@ var waitForSubprocessResult = async ({encoding,buffer,maxBuffer,- lines: lines4,+ lines: lines2,timeoutDuration: timeout,cancelSignal,gracefulCancel,@@ -78119,7 +70400,7 @@ var waitForSubprocessResult = async ({encoding,buffer,maxBuffer,- lines: lines4,+ lines: lines2,stripFinalNewline: stripFinalNewline2,verboseInfo,streamInfo@@ -78129,7 +70410,7 @@ var waitForSubprocessResult = async ({encoding,buffer,maxBuffer,- lines: lines4,+ lines: lines2,stripFinalNewline: stripFinalNewline2,verboseInfo,streamInfo@@ -78691,7 +70972,7 @@ var mergeOptions = (boundOptions, options) => {return { ...boundOptions, ...newOptions };};var mergeOption = (optionName, boundOptionValue, optionValue) => {- if (DEEP_OPTIONS.has(optionName) && isPlainObject11(boundOptionValue) && isPlainObject11(optionValue)) {+ if (DEEP_OPTIONS.has(optionName) && isPlainObject2(boundOptionValue) && isPlainObject2(optionValue)) {return { ...boundOptionValue, ...optionValue };}return optionValue;@@ -78714,7 +70995,7 @@ var createExeca = (mapArguments, boundOptions, deepOptions, setBoundExeca) => {return boundExeca;};var callBoundExeca = ({ mapArguments, deepOptions = {}, boundOptions = {}, setBoundExeca, createNested }, firstArgument, ...nextArguments) => {- if (isPlainObject11(firstArgument)) {+ if (isPlainObject2(firstArgument)) {return createNested(mapArguments, mergeOptions(boundOptions, firstArgument), setBoundExeca);}const { file, commandArguments, options, isSync } = parseArguments({diff --git a/screenpipe-js/cli/package.json b/screenpipe-js/cli/package.jsonindex 4ccb2e9ca..ed28aa94c 100644--- a/screenpipe-js/cli/package.json+++ b/screenpipe-js/cli/package.json@@ -1,6 +1,6 @@{"name": "@screenpipe/dev",- "version": "1.1.2-beta.1",+ "version": "1.1.3","description": "screenpipe development CLI","type": "module","main": "dist/index.js",diff --git a/screenpipe-js/cli/src/commands/components/commands/add/add.ts b/screenpipe-js/cli/src/commands/components/commands/add/add.tsindex fdb5fd3b7..b034e23e8 100644--- a/screenpipe-js/cli/src/commands/components/commands/add/add.ts+++ b/screenpipe-js/cli/src/commands/components/commands/add/add.ts@@ -31,7 +31,7 @@ export const addComponentCommand = command({// If the current directory is not a pipe, create oneif (result?.errors[ERRORS.MISSING_DIR_OR_EMPTY_PIPE]) {- logger.warn('you need to create a pipe first. run bunx @screenpipe/create-pipe@latest or visit https://docs.screenpi.pe/docs/plugins for more information.')+ logger.warn('you need to create a pipe first. run bunx @screenpipe/dev create or visit https://docs.screenpi.pe/docs/plugins for more information.')process.exit(1)// await createPipe(options)}diff --git a/screenpipe-js/cli/src/commands/components/commands/add/utils/create-pipe.ts b/screenpipe-js/cli/src/commands/components/commands/add/utils/create-pipe.tsindex 5a526f612..ae402261f 100644--- a/screenpipe-js/cli/src/commands/components/commands/add/utils/create-pipe.ts+++ b/screenpipe-js/cli/src/commands/components/commands/add/utils/create-pipe.ts@@ -2,7 +2,6 @@ import prompts from "prompts"import fs from "fs-extra"import { highlighter, logger } from "./logger";import path from 'path';-// import { main } from '@screenpipe/create-pipe';export async function createPipe(cwd: string@@ -76,4 +75,4 @@ export async function createPipe(projectName,projectType,}- }\ No newline at end of file+ }diff --git a/screenpipe-js/cli/src/commands/create.ts b/screenpipe-js/cli/src/commands/create.tsindex e321546ae..868b4be7e 100644--- a/screenpipe-js/cli/src/commands/create.ts+++ b/screenpipe-js/cli/src/commands/create.ts@@ -102,7 +102,7 @@ export const createCommand = command({name: "create",desc: "create a new pipe",handler: async () => {- console.log(chalk.bold("\nwelcome to create-pipe! 🚀\n"));+ console.log(chalk.bold("\nwelcome to screenpipe! 🚀\n"));console.log("let's create a new screenpipe pipe.\n");console.log("pipes are plugins that interact with captured screen and audio data."diff --git a/screenpipe-js/cli/src/commands/publish.ts b/screenpipe-js/cli/src/commands/publish.tsindex 9dfbbc731..06befdd0d 100644--- a/screenpipe-js/cli/src/commands/publish.ts+++ b/screenpipe-js/cli/src/commands/publish.ts@@ -259,7 +259,8 @@ export const publishCommand = command({});if (!uploadResponse.ok) {- throw new Error("Failed to upload file to storage");+ const text = await uploadResponse.text();+ throw new Error(`Failed to upload file to storage: ${text}`);}// Notify server that upload is complete@@ -284,9 +285,8 @@ export const publishCommand = command({);if (!finalizeResponse.ok) {- throw new Error(- `Failed to finalize upload: ${await finalizeResponse.text()}`- );+ const text = await finalizeResponse.text();+ throw new Error(`Failed to finalize upload: ${text}`);}const data = await finalizeResponse.json();diff --git a/screenpipe-js/node-sdk/package.json b/screenpipe-js/node-sdk/package.jsonindex 9087b7c5c..b7d872962 100644--- a/screenpipe-js/node-sdk/package.json+++ b/screenpipe-js/node-sdk/package.json@@ -1,6 +1,6 @@{"name": "@screenpipe/js",- "version": "1.0.7",+ "version": "1.0.8","type": "module","main": "./dist/index.cjs","module": "./dist/index.js",