dwkim 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js DELETED
@@ -1,2006 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { createRequire } from 'module';
4
- const require = createRequire(import.meta.url);
5
-
6
- var __create = Object.create;
7
- var __defProp = Object.defineProperty;
8
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
- var __getOwnPropNames = Object.getOwnPropertyNames;
10
- var __getProtoOf = Object.getPrototypeOf;
11
- var __hasOwnProp = Object.prototype.hasOwnProperty;
12
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
13
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
14
- }) : x)(function(x) {
15
- if (typeof require !== "undefined") return require.apply(this, arguments);
16
- throw Error('Dynamic require of "' + x + '" is not supported');
17
- });
18
- var __esm = (fn, res) => function __init() {
19
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
20
- };
21
- var __commonJS = (cb, mod) => function __require2() {
22
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
23
- };
24
- var __copyProps = (to, from, except, desc) => {
25
- if (from && typeof from === "object" || typeof from === "function") {
26
- for (let key of __getOwnPropNames(from))
27
- if (!__hasOwnProp.call(to, key) && key !== except)
28
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
29
- }
30
- return to;
31
- };
32
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
33
- // If the importer is in node compatibility mode or this is not an ESM
34
- // file that has been converted to a CommonJS file using a Babel-
35
- // compatible transform (i.e. "__esModule" has not been set), then set
36
- // "default" to the CommonJS "module.exports" for node compatibility.
37
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
38
- mod
39
- ));
40
-
41
- // <define:process.env.PROFILE>
42
- var define_process_env_PROFILE_default;
43
- var init_define_process_env_PROFILE = __esm({
44
- "<define:process.env.PROFILE>"() {
45
- define_process_env_PROFILE_default = { id: "1", name: "\uAE40\uB3D9\uC6B1", email: "dannyworks102@gmail.com", title: "Frontend Engineer, BHSN.ai", github: "https://github.com/domuk-k", website: "https://domuk-k.vercel.app", bio: "Marathon Runner \u{1F3C3}, Opensource committer \u{1F4BB}, casual Yogi \u{1F9D8}", quote: "Customer Centric, Focus on what you can control" };
46
- }
47
- });
48
-
49
- // ../../node_modules/.pnpm/dotenv@16.4.7/node_modules/dotenv/package.json
50
- var require_package = __commonJS({
51
- "../../node_modules/.pnpm/dotenv@16.4.7/node_modules/dotenv/package.json"(exports, module) {
52
- module.exports = {
53
- name: "dotenv",
54
- version: "16.4.7",
55
- description: "Loads environment variables from .env file",
56
- main: "lib/main.js",
57
- types: "lib/main.d.ts",
58
- exports: {
59
- ".": {
60
- types: "./lib/main.d.ts",
61
- require: "./lib/main.js",
62
- default: "./lib/main.js"
63
- },
64
- "./config": "./config.js",
65
- "./config.js": "./config.js",
66
- "./lib/env-options": "./lib/env-options.js",
67
- "./lib/env-options.js": "./lib/env-options.js",
68
- "./lib/cli-options": "./lib/cli-options.js",
69
- "./lib/cli-options.js": "./lib/cli-options.js",
70
- "./package.json": "./package.json"
71
- },
72
- scripts: {
73
- "dts-check": "tsc --project tests/types/tsconfig.json",
74
- lint: "standard",
75
- pretest: "npm run lint && npm run dts-check",
76
- test: "tap run --allow-empty-coverage --disable-coverage --timeout=60000",
77
- "test:coverage": "tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",
78
- prerelease: "npm test",
79
- release: "standard-version"
80
- },
81
- repository: {
82
- type: "git",
83
- url: "git://github.com/motdotla/dotenv.git"
84
- },
85
- funding: "https://dotenvx.com",
86
- keywords: [
87
- "dotenv",
88
- "env",
89
- ".env",
90
- "environment",
91
- "variables",
92
- "config",
93
- "settings"
94
- ],
95
- readmeFilename: "README.md",
96
- license: "BSD-2-Clause",
97
- devDependencies: {
98
- "@types/node": "^18.11.3",
99
- decache: "^4.6.2",
100
- sinon: "^14.0.1",
101
- standard: "^17.0.0",
102
- "standard-version": "^9.5.0",
103
- tap: "^19.2.0",
104
- typescript: "^4.8.4"
105
- },
106
- engines: {
107
- node: ">=12"
108
- },
109
- browser: {
110
- fs: false
111
- }
112
- };
113
- }
114
- });
115
-
116
- // ../../node_modules/.pnpm/dotenv@16.4.7/node_modules/dotenv/lib/main.js
117
- var require_main = __commonJS({
118
- "../../node_modules/.pnpm/dotenv@16.4.7/node_modules/dotenv/lib/main.js"(exports, module) {
119
- init_define_process_env_PROFILE();
120
- var fs = __require("fs");
121
- var path = __require("path");
122
- var os2 = __require("os");
123
- var crypto = __require("crypto");
124
- var packageJson = require_package();
125
- var version = packageJson.version;
126
- var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
127
- function parse(src) {
128
- const obj = {};
129
- let lines = src.toString();
130
- lines = lines.replace(/\r\n?/mg, "\n");
131
- let match;
132
- while ((match = LINE.exec(lines)) != null) {
133
- const key = match[1];
134
- let value = match[2] || "";
135
- value = value.trim();
136
- const maybeQuote = value[0];
137
- value = value.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
138
- if (maybeQuote === '"') {
139
- value = value.replace(/\\n/g, "\n");
140
- value = value.replace(/\\r/g, "\r");
141
- }
142
- obj[key] = value;
143
- }
144
- return obj;
145
- }
146
- function _parseVault(options) {
147
- const vaultPath = _vaultPath(options);
148
- const result = DotenvModule.configDotenv({ path: vaultPath });
149
- if (!result.parsed) {
150
- const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
151
- err.code = "MISSING_DATA";
152
- throw err;
153
- }
154
- const keys = _dotenvKey(options).split(",");
155
- const length = keys.length;
156
- let decrypted;
157
- for (let i = 0; i < length; i++) {
158
- try {
159
- const key = keys[i].trim();
160
- const attrs = _instructions(result, key);
161
- decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
162
- break;
163
- } catch (error) {
164
- if (i + 1 >= length) {
165
- throw error;
166
- }
167
- }
168
- }
169
- return DotenvModule.parse(decrypted);
170
- }
171
- function _log(message) {
172
- console.log(`[dotenv@${version}][INFO] ${message}`);
173
- }
174
- function _warn(message) {
175
- console.log(`[dotenv@${version}][WARN] ${message}`);
176
- }
177
- function _debug(message) {
178
- console.log(`[dotenv@${version}][DEBUG] ${message}`);
179
- }
180
- function _dotenvKey(options) {
181
- if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
182
- return options.DOTENV_KEY;
183
- }
184
- if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
185
- return process.env.DOTENV_KEY;
186
- }
187
- return "";
188
- }
189
- function _instructions(result, dotenvKey) {
190
- let uri;
191
- try {
192
- uri = new URL(dotenvKey);
193
- } catch (error) {
194
- if (error.code === "ERR_INVALID_URL") {
195
- const err = new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
196
- err.code = "INVALID_DOTENV_KEY";
197
- throw err;
198
- }
199
- throw error;
200
- }
201
- const key = uri.password;
202
- if (!key) {
203
- const err = new Error("INVALID_DOTENV_KEY: Missing key part");
204
- err.code = "INVALID_DOTENV_KEY";
205
- throw err;
206
- }
207
- const environment = uri.searchParams.get("environment");
208
- if (!environment) {
209
- const err = new Error("INVALID_DOTENV_KEY: Missing environment part");
210
- err.code = "INVALID_DOTENV_KEY";
211
- throw err;
212
- }
213
- const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
214
- const ciphertext = result.parsed[environmentKey];
215
- if (!ciphertext) {
216
- const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
217
- err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
218
- throw err;
219
- }
220
- return { ciphertext, key };
221
- }
222
- function _vaultPath(options) {
223
- let possibleVaultPath = null;
224
- if (options && options.path && options.path.length > 0) {
225
- if (Array.isArray(options.path)) {
226
- for (const filepath of options.path) {
227
- if (fs.existsSync(filepath)) {
228
- possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
229
- }
230
- }
231
- } else {
232
- possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
233
- }
234
- } else {
235
- possibleVaultPath = path.resolve(process.cwd(), ".env.vault");
236
- }
237
- if (fs.existsSync(possibleVaultPath)) {
238
- return possibleVaultPath;
239
- }
240
- return null;
241
- }
242
- function _resolveHome(envPath) {
243
- return envPath[0] === "~" ? path.join(os2.homedir(), envPath.slice(1)) : envPath;
244
- }
245
- function _configVault(options) {
246
- _log("Loading env from encrypted .env.vault");
247
- const parsed = DotenvModule._parseVault(options);
248
- let processEnv = process.env;
249
- if (options && options.processEnv != null) {
250
- processEnv = options.processEnv;
251
- }
252
- DotenvModule.populate(processEnv, parsed, options);
253
- return { parsed };
254
- }
255
- function configDotenv(options) {
256
- const dotenvPath = path.resolve(process.cwd(), ".env");
257
- let encoding = "utf8";
258
- const debug = Boolean(options && options.debug);
259
- if (options && options.encoding) {
260
- encoding = options.encoding;
261
- } else {
262
- if (debug) {
263
- _debug("No encoding is specified. UTF-8 is used by default");
264
- }
265
- }
266
- let optionPaths = [dotenvPath];
267
- if (options && options.path) {
268
- if (!Array.isArray(options.path)) {
269
- optionPaths = [_resolveHome(options.path)];
270
- } else {
271
- optionPaths = [];
272
- for (const filepath of options.path) {
273
- optionPaths.push(_resolveHome(filepath));
274
- }
275
- }
276
- }
277
- let lastError;
278
- const parsedAll = {};
279
- for (const path2 of optionPaths) {
280
- try {
281
- const parsed = DotenvModule.parse(fs.readFileSync(path2, { encoding }));
282
- DotenvModule.populate(parsedAll, parsed, options);
283
- } catch (e) {
284
- if (debug) {
285
- _debug(`Failed to load ${path2} ${e.message}`);
286
- }
287
- lastError = e;
288
- }
289
- }
290
- let processEnv = process.env;
291
- if (options && options.processEnv != null) {
292
- processEnv = options.processEnv;
293
- }
294
- DotenvModule.populate(processEnv, parsedAll, options);
295
- if (lastError) {
296
- return { parsed: parsedAll, error: lastError };
297
- } else {
298
- return { parsed: parsedAll };
299
- }
300
- }
301
- function config(options) {
302
- if (_dotenvKey(options).length === 0) {
303
- return DotenvModule.configDotenv(options);
304
- }
305
- const vaultPath = _vaultPath(options);
306
- if (!vaultPath) {
307
- _warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
308
- return DotenvModule.configDotenv(options);
309
- }
310
- return DotenvModule._configVault(options);
311
- }
312
- function decrypt(encrypted, keyStr) {
313
- const key = Buffer.from(keyStr.slice(-64), "hex");
314
- let ciphertext = Buffer.from(encrypted, "base64");
315
- const nonce = ciphertext.subarray(0, 12);
316
- const authTag = ciphertext.subarray(-16);
317
- ciphertext = ciphertext.subarray(12, -16);
318
- try {
319
- const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
320
- aesgcm.setAuthTag(authTag);
321
- return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
322
- } catch (error) {
323
- const isRange = error instanceof RangeError;
324
- const invalidKeyLength = error.message === "Invalid key length";
325
- const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
326
- if (isRange || invalidKeyLength) {
327
- const err = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
328
- err.code = "INVALID_DOTENV_KEY";
329
- throw err;
330
- } else if (decryptionFailed) {
331
- const err = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
332
- err.code = "DECRYPTION_FAILED";
333
- throw err;
334
- } else {
335
- throw error;
336
- }
337
- }
338
- }
339
- function populate(processEnv, parsed, options = {}) {
340
- const debug = Boolean(options && options.debug);
341
- const override = Boolean(options && options.override);
342
- if (typeof parsed !== "object") {
343
- const err = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
344
- err.code = "OBJECT_REQUIRED";
345
- throw err;
346
- }
347
- for (const key of Object.keys(parsed)) {
348
- if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
349
- if (override === true) {
350
- processEnv[key] = parsed[key];
351
- }
352
- if (debug) {
353
- if (override === true) {
354
- _debug(`"${key}" is already defined and WAS overwritten`);
355
- } else {
356
- _debug(`"${key}" is already defined and was NOT overwritten`);
357
- }
358
- }
359
- } else {
360
- processEnv[key] = parsed[key];
361
- }
362
- }
363
- }
364
- var DotenvModule = {
365
- configDotenv,
366
- _configVault,
367
- _parseVault,
368
- config,
369
- decrypt,
370
- parse,
371
- populate
372
- };
373
- module.exports.configDotenv = DotenvModule.configDotenv;
374
- module.exports._configVault = DotenvModule._configVault;
375
- module.exports._parseVault = DotenvModule._parseVault;
376
- module.exports.config = DotenvModule.config;
377
- module.exports.decrypt = DotenvModule.decrypt;
378
- module.exports.parse = DotenvModule.parse;
379
- module.exports.populate = DotenvModule.populate;
380
- module.exports = DotenvModule;
381
- }
382
- });
383
-
384
- // ../../node_modules/.pnpm/emoji-regex@10.4.0/node_modules/emoji-regex/index.js
385
- var require_emoji_regex = __commonJS({
386
- "../../node_modules/.pnpm/emoji-regex@10.4.0/node_modules/emoji-regex/index.js"(exports, module) {
387
- init_define_process_env_PROFILE();
388
- module.exports = () => {
389
- return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
390
- };
391
- }
392
- });
393
-
394
- // ../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json
395
- var require_boxes = __commonJS({
396
- "../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json"(exports, module) {
397
- module.exports = {
398
- single: {
399
- topLeft: "\u250C",
400
- top: "\u2500",
401
- topRight: "\u2510",
402
- right: "\u2502",
403
- bottomRight: "\u2518",
404
- bottom: "\u2500",
405
- bottomLeft: "\u2514",
406
- left: "\u2502"
407
- },
408
- double: {
409
- topLeft: "\u2554",
410
- top: "\u2550",
411
- topRight: "\u2557",
412
- right: "\u2551",
413
- bottomRight: "\u255D",
414
- bottom: "\u2550",
415
- bottomLeft: "\u255A",
416
- left: "\u2551"
417
- },
418
- round: {
419
- topLeft: "\u256D",
420
- top: "\u2500",
421
- topRight: "\u256E",
422
- right: "\u2502",
423
- bottomRight: "\u256F",
424
- bottom: "\u2500",
425
- bottomLeft: "\u2570",
426
- left: "\u2502"
427
- },
428
- bold: {
429
- topLeft: "\u250F",
430
- top: "\u2501",
431
- topRight: "\u2513",
432
- right: "\u2503",
433
- bottomRight: "\u251B",
434
- bottom: "\u2501",
435
- bottomLeft: "\u2517",
436
- left: "\u2503"
437
- },
438
- singleDouble: {
439
- topLeft: "\u2553",
440
- top: "\u2500",
441
- topRight: "\u2556",
442
- right: "\u2551",
443
- bottomRight: "\u255C",
444
- bottom: "\u2500",
445
- bottomLeft: "\u2559",
446
- left: "\u2551"
447
- },
448
- doubleSingle: {
449
- topLeft: "\u2552",
450
- top: "\u2550",
451
- topRight: "\u2555",
452
- right: "\u2502",
453
- bottomRight: "\u255B",
454
- bottom: "\u2550",
455
- bottomLeft: "\u2558",
456
- left: "\u2502"
457
- },
458
- classic: {
459
- topLeft: "+",
460
- top: "-",
461
- topRight: "+",
462
- right: "|",
463
- bottomRight: "+",
464
- bottom: "-",
465
- bottomLeft: "+",
466
- left: "|"
467
- },
468
- arrow: {
469
- topLeft: "\u2198",
470
- top: "\u2193",
471
- topRight: "\u2199",
472
- right: "\u2190",
473
- bottomRight: "\u2196",
474
- bottom: "\u2191",
475
- bottomLeft: "\u2197",
476
- left: "\u2192"
477
- }
478
- };
479
- }
480
- });
481
-
482
- // ../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js
483
- var require_cli_boxes = __commonJS({
484
- "../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js"(exports, module) {
485
- "use strict";
486
- init_define_process_env_PROFILE();
487
- var cliBoxes2 = require_boxes();
488
- module.exports = cliBoxes2;
489
- module.exports.default = cliBoxes2;
490
- }
491
- });
492
-
493
- // ../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
494
- var require_ansi_regex = __commonJS({
495
- "../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports, module) {
496
- "use strict";
497
- init_define_process_env_PROFILE();
498
- module.exports = ({ onlyFirst = false } = {}) => {
499
- const pattern = [
500
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
501
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
502
- ].join("|");
503
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
504
- };
505
- }
506
- });
507
-
508
- // ../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
509
- var require_strip_ansi = __commonJS({
510
- "../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports, module) {
511
- "use strict";
512
- init_define_process_env_PROFILE();
513
- var ansiRegex2 = require_ansi_regex();
514
- module.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
515
- }
516
- });
517
-
518
- // ../../node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js
519
- var require_is_fullwidth_code_point = __commonJS({
520
- "../../node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js"(exports, module) {
521
- "use strict";
522
- init_define_process_env_PROFILE();
523
- var isFullwidthCodePoint = (codePoint) => {
524
- if (Number.isNaN(codePoint)) {
525
- return false;
526
- }
527
- if (codePoint >= 4352 && (codePoint <= 4447 || // Hangul Jamo
528
- codePoint === 9001 || // LEFT-POINTING ANGLE BRACKET
529
- codePoint === 9002 || // RIGHT-POINTING ANGLE BRACKET
530
- // CJK Radicals Supplement .. Enclosed CJK Letters and Months
531
- 11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
532
- 12880 <= codePoint && codePoint <= 19903 || // CJK Unified Ideographs .. Yi Radicals
533
- 19968 <= codePoint && codePoint <= 42182 || // Hangul Jamo Extended-A
534
- 43360 <= codePoint && codePoint <= 43388 || // Hangul Syllables
535
- 44032 <= codePoint && codePoint <= 55203 || // CJK Compatibility Ideographs
536
- 63744 <= codePoint && codePoint <= 64255 || // Vertical Forms
537
- 65040 <= codePoint && codePoint <= 65049 || // CJK Compatibility Forms .. Small Form Variants
538
- 65072 <= codePoint && codePoint <= 65131 || // Halfwidth and Fullwidth Forms
539
- 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || // Kana Supplement
540
- 110592 <= codePoint && codePoint <= 110593 || // Enclosed Ideographic Supplement
541
- 127488 <= codePoint && codePoint <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
542
- 131072 <= codePoint && codePoint <= 262141)) {
543
- return true;
544
- }
545
- return false;
546
- };
547
- module.exports = isFullwidthCodePoint;
548
- module.exports.default = isFullwidthCodePoint;
549
- }
550
- });
551
-
552
- // ../../node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js
553
- var require_emoji_regex2 = __commonJS({
554
- "../../node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js"(exports, module) {
555
- "use strict";
556
- init_define_process_env_PROFILE();
557
- module.exports = function() {
558
- return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
559
- };
560
- }
561
- });
562
-
563
- // ../../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js
564
- var require_string_width = __commonJS({
565
- "../../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports, module) {
566
- "use strict";
567
- init_define_process_env_PROFILE();
568
- var stripAnsi2 = require_strip_ansi();
569
- var isFullwidthCodePoint = require_is_fullwidth_code_point();
570
- var emojiRegex2 = require_emoji_regex2();
571
- var stringWidth2 = (string) => {
572
- if (typeof string !== "string" || string.length === 0) {
573
- return 0;
574
- }
575
- string = stripAnsi2(string);
576
- if (string.length === 0) {
577
- return 0;
578
- }
579
- string = string.replace(emojiRegex2(), " ");
580
- let width = 0;
581
- for (let i = 0; i < string.length; i++) {
582
- const code = string.codePointAt(i);
583
- if (code <= 31 || code >= 127 && code <= 159) {
584
- continue;
585
- }
586
- if (code >= 768 && code <= 879) {
587
- continue;
588
- }
589
- if (code > 65535) {
590
- i++;
591
- }
592
- width += isFullwidthCodePoint(code) ? 2 : 1;
593
- }
594
- return width;
595
- };
596
- module.exports = stringWidth2;
597
- module.exports.default = stringWidth2;
598
- }
599
- });
600
-
601
- // ../../node_modules/.pnpm/ansi-align@3.0.1/node_modules/ansi-align/index.js
602
- var require_ansi_align = __commonJS({
603
- "../../node_modules/.pnpm/ansi-align@3.0.1/node_modules/ansi-align/index.js"(exports, module) {
604
- "use strict";
605
- init_define_process_env_PROFILE();
606
- var stringWidth2 = require_string_width();
607
- function ansiAlign2(text, opts) {
608
- if (!text) return text;
609
- opts = opts || {};
610
- const align = opts.align || "center";
611
- if (align === "left") return text;
612
- const split = opts.split || "\n";
613
- const pad = opts.pad || " ";
614
- const widthDiffFn = align !== "right" ? halfDiff : fullDiff;
615
- let returnString = false;
616
- if (!Array.isArray(text)) {
617
- returnString = true;
618
- text = String(text).split(split);
619
- }
620
- let width;
621
- let maxWidth = 0;
622
- text = text.map(function(str) {
623
- str = String(str);
624
- width = stringWidth2(str);
625
- maxWidth = Math.max(width, maxWidth);
626
- return {
627
- str,
628
- width
629
- };
630
- }).map(function(obj) {
631
- return new Array(widthDiffFn(maxWidth, obj.width) + 1).join(pad) + obj.str;
632
- });
633
- return returnString ? text.join(split) : text;
634
- }
635
- ansiAlign2.left = function left(text) {
636
- return ansiAlign2(text, { align: "left" });
637
- };
638
- ansiAlign2.center = function center(text) {
639
- return ansiAlign2(text, { align: "center" });
640
- };
641
- ansiAlign2.right = function right(text) {
642
- return ansiAlign2(text, { align: "right" });
643
- };
644
- module.exports = ansiAlign2;
645
- function halfDiff(maxWidth, curWidth) {
646
- return Math.floor((maxWidth - curWidth) / 2);
647
- }
648
- function fullDiff(maxWidth, curWidth) {
649
- return maxWidth - curWidth;
650
- }
651
- }
652
- });
653
-
654
- // src/index.ts
655
- init_define_process_env_PROFILE();
656
- var import_dotenv = __toESM(require_main(), 1);
657
-
658
- // src/businessCard.ts
659
- init_define_process_env_PROFILE();
660
-
661
- // ../../node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js
662
- init_define_process_env_PROFILE();
663
- import process3 from "node:process";
664
-
665
- // ../../node_modules/.pnpm/string-width@7.2.0/node_modules/string-width/index.js
666
- init_define_process_env_PROFILE();
667
-
668
- // ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
669
- init_define_process_env_PROFILE();
670
-
671
- // ../../node_modules/.pnpm/ansi-regex@6.1.0/node_modules/ansi-regex/index.js
672
- init_define_process_env_PROFILE();
673
- function ansiRegex({ onlyFirst = false } = {}) {
674
- const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
675
- const pattern = [
676
- `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
677
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
678
- ].join("|");
679
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
680
- }
681
-
682
- // ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
683
- var regex = ansiRegex();
684
- function stripAnsi(string) {
685
- if (typeof string !== "string") {
686
- throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
687
- }
688
- return string.replace(regex, "");
689
- }
690
-
691
- // ../../node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js
692
- init_define_process_env_PROFILE();
693
-
694
- // ../../node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js
695
- init_define_process_env_PROFILE();
696
- function isAmbiguous(x) {
697
- return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
698
- }
699
- function isFullWidth(x) {
700
- return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
701
- }
702
- function isWide(x) {
703
- return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101631 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129673 || x >= 129679 && x <= 129734 || x >= 129742 && x <= 129756 || x >= 129759 && x <= 129769 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
704
- }
705
-
706
- // ../../node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js
707
- function validate(codePoint) {
708
- if (!Number.isSafeInteger(codePoint)) {
709
- throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
710
- }
711
- }
712
- function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
713
- validate(codePoint);
714
- if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
715
- return 2;
716
- }
717
- return 1;
718
- }
719
-
720
- // ../../node_modules/.pnpm/string-width@7.2.0/node_modules/string-width/index.js
721
- var import_emoji_regex = __toESM(require_emoji_regex(), 1);
722
- var segmenter = new Intl.Segmenter();
723
- var defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
724
- function stringWidth(string, options = {}) {
725
- if (typeof string !== "string" || string.length === 0) {
726
- return 0;
727
- }
728
- const {
729
- ambiguousIsNarrow = true,
730
- countAnsiEscapeCodes = false
731
- } = options;
732
- if (!countAnsiEscapeCodes) {
733
- string = stripAnsi(string);
734
- }
735
- if (string.length === 0) {
736
- return 0;
737
- }
738
- let width = 0;
739
- const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
740
- for (const { segment: character } of segmenter.segment(string)) {
741
- const codePoint = character.codePointAt(0);
742
- if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
743
- continue;
744
- }
745
- if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) {
746
- continue;
747
- }
748
- if (codePoint >= 768 && codePoint <= 879 || codePoint >= 6832 && codePoint <= 6911 || codePoint >= 7616 && codePoint <= 7679 || codePoint >= 8400 && codePoint <= 8447 || codePoint >= 65056 && codePoint <= 65071) {
749
- continue;
750
- }
751
- if (codePoint >= 55296 && codePoint <= 57343) {
752
- continue;
753
- }
754
- if (codePoint >= 65024 && codePoint <= 65039) {
755
- continue;
756
- }
757
- if (defaultIgnorableCodePointRegex.test(character)) {
758
- continue;
759
- }
760
- if ((0, import_emoji_regex.default)().test(character)) {
761
- width += 2;
762
- continue;
763
- }
764
- width += eastAsianWidth(codePoint, eastAsianWidthOptions);
765
- }
766
- return width;
767
- }
768
-
769
- // ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/index.js
770
- init_define_process_env_PROFILE();
771
-
772
- // ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/ansi-styles/index.js
773
- init_define_process_env_PROFILE();
774
- var ANSI_BACKGROUND_OFFSET = 10;
775
- var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
776
- var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
777
- var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
778
- var styles = {
779
- modifier: {
780
- reset: [0, 0],
781
- // 21 isn't widely supported and 22 does the same thing
782
- bold: [1, 22],
783
- dim: [2, 22],
784
- italic: [3, 23],
785
- underline: [4, 24],
786
- overline: [53, 55],
787
- inverse: [7, 27],
788
- hidden: [8, 28],
789
- strikethrough: [9, 29]
790
- },
791
- color: {
792
- black: [30, 39],
793
- red: [31, 39],
794
- green: [32, 39],
795
- yellow: [33, 39],
796
- blue: [34, 39],
797
- magenta: [35, 39],
798
- cyan: [36, 39],
799
- white: [37, 39],
800
- // Bright color
801
- blackBright: [90, 39],
802
- gray: [90, 39],
803
- // Alias of `blackBright`
804
- grey: [90, 39],
805
- // Alias of `blackBright`
806
- redBright: [91, 39],
807
- greenBright: [92, 39],
808
- yellowBright: [93, 39],
809
- blueBright: [94, 39],
810
- magentaBright: [95, 39],
811
- cyanBright: [96, 39],
812
- whiteBright: [97, 39]
813
- },
814
- bgColor: {
815
- bgBlack: [40, 49],
816
- bgRed: [41, 49],
817
- bgGreen: [42, 49],
818
- bgYellow: [43, 49],
819
- bgBlue: [44, 49],
820
- bgMagenta: [45, 49],
821
- bgCyan: [46, 49],
822
- bgWhite: [47, 49],
823
- // Bright color
824
- bgBlackBright: [100, 49],
825
- bgGray: [100, 49],
826
- // Alias of `bgBlackBright`
827
- bgGrey: [100, 49],
828
- // Alias of `bgBlackBright`
829
- bgRedBright: [101, 49],
830
- bgGreenBright: [102, 49],
831
- bgYellowBright: [103, 49],
832
- bgBlueBright: [104, 49],
833
- bgMagentaBright: [105, 49],
834
- bgCyanBright: [106, 49],
835
- bgWhiteBright: [107, 49]
836
- }
837
- };
838
- var modifierNames = Object.keys(styles.modifier);
839
- var foregroundColorNames = Object.keys(styles.color);
840
- var backgroundColorNames = Object.keys(styles.bgColor);
841
- var colorNames = [...foregroundColorNames, ...backgroundColorNames];
842
- function assembleStyles() {
843
- const codes = /* @__PURE__ */ new Map();
844
- for (const [groupName, group] of Object.entries(styles)) {
845
- for (const [styleName, style] of Object.entries(group)) {
846
- styles[styleName] = {
847
- open: `\x1B[${style[0]}m`,
848
- close: `\x1B[${style[1]}m`
849
- };
850
- group[styleName] = styles[styleName];
851
- codes.set(style[0], style[1]);
852
- }
853
- Object.defineProperty(styles, groupName, {
854
- value: group,
855
- enumerable: false
856
- });
857
- }
858
- Object.defineProperty(styles, "codes", {
859
- value: codes,
860
- enumerable: false
861
- });
862
- styles.color.close = "\x1B[39m";
863
- styles.bgColor.close = "\x1B[49m";
864
- styles.color.ansi = wrapAnsi16();
865
- styles.color.ansi256 = wrapAnsi256();
866
- styles.color.ansi16m = wrapAnsi16m();
867
- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
868
- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
869
- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
870
- Object.defineProperties(styles, {
871
- rgbToAnsi256: {
872
- value(red, green, blue) {
873
- if (red === green && green === blue) {
874
- if (red < 8) {
875
- return 16;
876
- }
877
- if (red > 248) {
878
- return 231;
879
- }
880
- return Math.round((red - 8) / 247 * 24) + 232;
881
- }
882
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
883
- },
884
- enumerable: false
885
- },
886
- hexToRgb: {
887
- value(hex) {
888
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
889
- if (!matches) {
890
- return [0, 0, 0];
891
- }
892
- let [colorString] = matches;
893
- if (colorString.length === 3) {
894
- colorString = [...colorString].map((character) => character + character).join("");
895
- }
896
- const integer = Number.parseInt(colorString, 16);
897
- return [
898
- /* eslint-disable no-bitwise */
899
- integer >> 16 & 255,
900
- integer >> 8 & 255,
901
- integer & 255
902
- /* eslint-enable no-bitwise */
903
- ];
904
- },
905
- enumerable: false
906
- },
907
- hexToAnsi256: {
908
- value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
909
- enumerable: false
910
- },
911
- ansi256ToAnsi: {
912
- value(code) {
913
- if (code < 8) {
914
- return 30 + code;
915
- }
916
- if (code < 16) {
917
- return 90 + (code - 8);
918
- }
919
- let red;
920
- let green;
921
- let blue;
922
- if (code >= 232) {
923
- red = ((code - 232) * 10 + 8) / 255;
924
- green = red;
925
- blue = red;
926
- } else {
927
- code -= 16;
928
- const remainder = code % 36;
929
- red = Math.floor(code / 36) / 5;
930
- green = Math.floor(remainder / 6) / 5;
931
- blue = remainder % 6 / 5;
932
- }
933
- const value = Math.max(red, green, blue) * 2;
934
- if (value === 0) {
935
- return 30;
936
- }
937
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
938
- if (value === 2) {
939
- result += 60;
940
- }
941
- return result;
942
- },
943
- enumerable: false
944
- },
945
- rgbToAnsi: {
946
- value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
947
- enumerable: false
948
- },
949
- hexToAnsi: {
950
- value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
951
- enumerable: false
952
- }
953
- });
954
- return styles;
955
- }
956
- var ansiStyles = assembleStyles();
957
- var ansi_styles_default = ansiStyles;
958
-
959
- // ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/supports-color/index.js
960
- init_define_process_env_PROFILE();
961
- import process2 from "node:process";
962
- import os from "node:os";
963
- import tty from "node:tty";
964
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {
965
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
966
- const position = argv.indexOf(prefix + flag);
967
- const terminatorPosition = argv.indexOf("--");
968
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
969
- }
970
- var { env } = process2;
971
- var flagForceColor;
972
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
973
- flagForceColor = 0;
974
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
975
- flagForceColor = 1;
976
- }
977
- function envForceColor() {
978
- if ("FORCE_COLOR" in env) {
979
- if (env.FORCE_COLOR === "true") {
980
- return 1;
981
- }
982
- if (env.FORCE_COLOR === "false") {
983
- return 0;
984
- }
985
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
986
- }
987
- }
988
- function translateLevel(level) {
989
- if (level === 0) {
990
- return false;
991
- }
992
- return {
993
- level,
994
- hasBasic: true,
995
- has256: level >= 2,
996
- has16m: level >= 3
997
- };
998
- }
999
- function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
1000
- const noFlagForceColor = envForceColor();
1001
- if (noFlagForceColor !== void 0) {
1002
- flagForceColor = noFlagForceColor;
1003
- }
1004
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
1005
- if (forceColor === 0) {
1006
- return 0;
1007
- }
1008
- if (sniffFlags) {
1009
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
1010
- return 3;
1011
- }
1012
- if (hasFlag("color=256")) {
1013
- return 2;
1014
- }
1015
- }
1016
- if ("TF_BUILD" in env && "AGENT_NAME" in env) {
1017
- return 1;
1018
- }
1019
- if (haveStream && !streamIsTTY && forceColor === void 0) {
1020
- return 0;
1021
- }
1022
- const min = forceColor || 0;
1023
- if (env.TERM === "dumb") {
1024
- return min;
1025
- }
1026
- if (process2.platform === "win32") {
1027
- const osRelease = os.release().split(".");
1028
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
1029
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
1030
- }
1031
- return 1;
1032
- }
1033
- if ("CI" in env) {
1034
- if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
1035
- return 3;
1036
- }
1037
- if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
1038
- return 1;
1039
- }
1040
- return min;
1041
- }
1042
- if ("TEAMCITY_VERSION" in env) {
1043
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
1044
- }
1045
- if (env.COLORTERM === "truecolor") {
1046
- return 3;
1047
- }
1048
- if (env.TERM === "xterm-kitty") {
1049
- return 3;
1050
- }
1051
- if ("TERM_PROGRAM" in env) {
1052
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1053
- switch (env.TERM_PROGRAM) {
1054
- case "iTerm.app": {
1055
- return version >= 3 ? 3 : 2;
1056
- }
1057
- case "Apple_Terminal": {
1058
- return 2;
1059
- }
1060
- }
1061
- }
1062
- if (/-256(color)?$/i.test(env.TERM)) {
1063
- return 2;
1064
- }
1065
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
1066
- return 1;
1067
- }
1068
- if ("COLORTERM" in env) {
1069
- return 1;
1070
- }
1071
- return min;
1072
- }
1073
- function createSupportsColor(stream, options = {}) {
1074
- const level = _supportsColor(stream, {
1075
- streamIsTTY: stream && stream.isTTY,
1076
- ...options
1077
- });
1078
- return translateLevel(level);
1079
- }
1080
- var supportsColor = {
1081
- stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
1082
- stderr: createSupportsColor({ isTTY: tty.isatty(2) })
1083
- };
1084
- var supports_color_default = supportsColor;
1085
-
1086
- // ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/utilities.js
1087
- init_define_process_env_PROFILE();
1088
- function stringReplaceAll(string, substring, replacer) {
1089
- let index = string.indexOf(substring);
1090
- if (index === -1) {
1091
- return string;
1092
- }
1093
- const substringLength = substring.length;
1094
- let endIndex = 0;
1095
- let returnValue = "";
1096
- do {
1097
- returnValue += string.slice(endIndex, index) + substring + replacer;
1098
- endIndex = index + substringLength;
1099
- index = string.indexOf(substring, endIndex);
1100
- } while (index !== -1);
1101
- returnValue += string.slice(endIndex);
1102
- return returnValue;
1103
- }
1104
- function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
1105
- let endIndex = 0;
1106
- let returnValue = "";
1107
- do {
1108
- const gotCR = string[index - 1] === "\r";
1109
- returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
1110
- endIndex = index + 1;
1111
- index = string.indexOf("\n", endIndex);
1112
- } while (index !== -1);
1113
- returnValue += string.slice(endIndex);
1114
- return returnValue;
1115
- }
1116
-
1117
- // ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/index.js
1118
- var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
1119
- var GENERATOR = Symbol("GENERATOR");
1120
- var STYLER = Symbol("STYLER");
1121
- var IS_EMPTY = Symbol("IS_EMPTY");
1122
- var levelMapping = [
1123
- "ansi",
1124
- "ansi",
1125
- "ansi256",
1126
- "ansi16m"
1127
- ];
1128
- var styles2 = /* @__PURE__ */ Object.create(null);
1129
- var applyOptions = (object, options = {}) => {
1130
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
1131
- throw new Error("The `level` option should be an integer from 0 to 3");
1132
- }
1133
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
1134
- object.level = options.level === void 0 ? colorLevel : options.level;
1135
- };
1136
- var chalkFactory = (options) => {
1137
- const chalk2 = (...strings) => strings.join(" ");
1138
- applyOptions(chalk2, options);
1139
- Object.setPrototypeOf(chalk2, createChalk.prototype);
1140
- return chalk2;
1141
- };
1142
- function createChalk(options) {
1143
- return chalkFactory(options);
1144
- }
1145
- Object.setPrototypeOf(createChalk.prototype, Function.prototype);
1146
- for (const [styleName, style] of Object.entries(ansi_styles_default)) {
1147
- styles2[styleName] = {
1148
- get() {
1149
- const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
1150
- Object.defineProperty(this, styleName, { value: builder });
1151
- return builder;
1152
- }
1153
- };
1154
- }
1155
- styles2.visible = {
1156
- get() {
1157
- const builder = createBuilder(this, this[STYLER], true);
1158
- Object.defineProperty(this, "visible", { value: builder });
1159
- return builder;
1160
- }
1161
- };
1162
- var getModelAnsi = (model, level, type, ...arguments_) => {
1163
- if (model === "rgb") {
1164
- if (level === "ansi16m") {
1165
- return ansi_styles_default[type].ansi16m(...arguments_);
1166
- }
1167
- if (level === "ansi256") {
1168
- return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
1169
- }
1170
- return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
1171
- }
1172
- if (model === "hex") {
1173
- return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
1174
- }
1175
- return ansi_styles_default[type][model](...arguments_);
1176
- };
1177
- var usedModels = ["rgb", "hex", "ansi256"];
1178
- for (const model of usedModels) {
1179
- styles2[model] = {
1180
- get() {
1181
- const { level } = this;
1182
- return function(...arguments_) {
1183
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
1184
- return createBuilder(this, styler, this[IS_EMPTY]);
1185
- };
1186
- }
1187
- };
1188
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
1189
- styles2[bgModel] = {
1190
- get() {
1191
- const { level } = this;
1192
- return function(...arguments_) {
1193
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
1194
- return createBuilder(this, styler, this[IS_EMPTY]);
1195
- };
1196
- }
1197
- };
1198
- }
1199
- var proto = Object.defineProperties(() => {
1200
- }, {
1201
- ...styles2,
1202
- level: {
1203
- enumerable: true,
1204
- get() {
1205
- return this[GENERATOR].level;
1206
- },
1207
- set(level) {
1208
- this[GENERATOR].level = level;
1209
- }
1210
- }
1211
- });
1212
- var createStyler = (open, close, parent) => {
1213
- let openAll;
1214
- let closeAll;
1215
- if (parent === void 0) {
1216
- openAll = open;
1217
- closeAll = close;
1218
- } else {
1219
- openAll = parent.openAll + open;
1220
- closeAll = close + parent.closeAll;
1221
- }
1222
- return {
1223
- open,
1224
- close,
1225
- openAll,
1226
- closeAll,
1227
- parent
1228
- };
1229
- };
1230
- var createBuilder = (self, _styler, _isEmpty) => {
1231
- const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
1232
- Object.setPrototypeOf(builder, proto);
1233
- builder[GENERATOR] = self;
1234
- builder[STYLER] = _styler;
1235
- builder[IS_EMPTY] = _isEmpty;
1236
- return builder;
1237
- };
1238
- var applyStyle = (self, string) => {
1239
- if (self.level <= 0 || !string) {
1240
- return self[IS_EMPTY] ? "" : string;
1241
- }
1242
- let styler = self[STYLER];
1243
- if (styler === void 0) {
1244
- return string;
1245
- }
1246
- const { openAll, closeAll } = styler;
1247
- if (string.includes("\x1B")) {
1248
- while (styler !== void 0) {
1249
- string = stringReplaceAll(string, styler.close, styler.open);
1250
- styler = styler.parent;
1251
- }
1252
- }
1253
- const lfIndex = string.indexOf("\n");
1254
- if (lfIndex !== -1) {
1255
- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
1256
- }
1257
- return openAll + string + closeAll;
1258
- };
1259
- Object.defineProperties(createChalk.prototype, styles2);
1260
- var chalk = createChalk();
1261
- var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
1262
- var source_default = chalk;
1263
-
1264
- // ../../node_modules/.pnpm/widest-line@5.0.0/node_modules/widest-line/index.js
1265
- init_define_process_env_PROFILE();
1266
- function widestLine(string) {
1267
- let lineWidth = 0;
1268
- for (const line of string.split("\n")) {
1269
- lineWidth = Math.max(lineWidth, stringWidth(line));
1270
- }
1271
- return lineWidth;
1272
- }
1273
-
1274
- // ../../node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js
1275
- var import_cli_boxes = __toESM(require_cli_boxes(), 1);
1276
-
1277
- // ../../node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.js
1278
- init_define_process_env_PROFILE();
1279
- var UPPERCASE = /[\p{Lu}]/u;
1280
- var LOWERCASE = /[\p{Ll}]/u;
1281
- var LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu;
1282
- var IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u;
1283
- var SEPARATORS = /[_.\- ]+/;
1284
- var LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source);
1285
- var SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu");
1286
- var NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu");
1287
- var preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
1288
- let isLastCharLower = false;
1289
- let isLastCharUpper = false;
1290
- let isLastLastCharUpper = false;
1291
- let isLastLastCharPreserved = false;
1292
- for (let index = 0; index < string.length; index++) {
1293
- const character = string[index];
1294
- isLastLastCharPreserved = index > 2 ? string[index - 3] === "-" : true;
1295
- if (isLastCharLower && UPPERCASE.test(character)) {
1296
- string = string.slice(0, index) + "-" + string.slice(index);
1297
- isLastCharLower = false;
1298
- isLastLastCharUpper = isLastCharUpper;
1299
- isLastCharUpper = true;
1300
- index++;
1301
- } else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character) && (!isLastLastCharPreserved || preserveConsecutiveUppercase2)) {
1302
- string = string.slice(0, index - 1) + "-" + string.slice(index - 1);
1303
- isLastLastCharUpper = isLastCharUpper;
1304
- isLastCharUpper = false;
1305
- isLastCharLower = true;
1306
- } else {
1307
- isLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;
1308
- isLastLastCharUpper = isLastCharUpper;
1309
- isLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;
1310
- }
1311
- }
1312
- return string;
1313
- };
1314
- var preserveConsecutiveUppercase = (input, toLowerCase) => {
1315
- LEADING_CAPITAL.lastIndex = 0;
1316
- return input.replaceAll(LEADING_CAPITAL, (match) => toLowerCase(match));
1317
- };
1318
- var postProcess = (input, toUpperCase) => {
1319
- SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
1320
- NUMBERS_AND_IDENTIFIER.lastIndex = 0;
1321
- return input.replaceAll(NUMBERS_AND_IDENTIFIER, (match, pattern, offset) => ["_", "-"].includes(input.charAt(offset + match.length)) ? match : toUpperCase(match)).replaceAll(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier));
1322
- };
1323
- function camelCase(input, options) {
1324
- if (!(typeof input === "string" || Array.isArray(input))) {
1325
- throw new TypeError("Expected the input to be `string | string[]`");
1326
- }
1327
- options = {
1328
- pascalCase: false,
1329
- preserveConsecutiveUppercase: false,
1330
- ...options
1331
- };
1332
- if (Array.isArray(input)) {
1333
- input = input.map((x) => x.trim()).filter((x) => x.length).join("-");
1334
- } else {
1335
- input = input.trim();
1336
- }
1337
- if (input.length === 0) {
1338
- return "";
1339
- }
1340
- const toLowerCase = options.locale === false ? (string) => string.toLowerCase() : (string) => string.toLocaleLowerCase(options.locale);
1341
- const toUpperCase = options.locale === false ? (string) => string.toUpperCase() : (string) => string.toLocaleUpperCase(options.locale);
1342
- if (input.length === 1) {
1343
- if (SEPARATORS.test(input)) {
1344
- return "";
1345
- }
1346
- return options.pascalCase ? toUpperCase(input) : toLowerCase(input);
1347
- }
1348
- const hasUpperCase = input !== toLowerCase(input);
1349
- if (hasUpperCase) {
1350
- input = preserveCamelCase(input, toLowerCase, toUpperCase, options.preserveConsecutiveUppercase);
1351
- }
1352
- input = input.replace(LEADING_SEPARATORS, "");
1353
- input = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input);
1354
- if (options.pascalCase) {
1355
- input = toUpperCase(input.charAt(0)) + input.slice(1);
1356
- }
1357
- return postProcess(input, toUpperCase);
1358
- }
1359
-
1360
- // ../../node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js
1361
- var import_ansi_align = __toESM(require_ansi_align(), 1);
1362
-
1363
- // ../../node_modules/.pnpm/wrap-ansi@9.0.0/node_modules/wrap-ansi/index.js
1364
- init_define_process_env_PROFILE();
1365
-
1366
- // ../../node_modules/.pnpm/ansi-styles@6.2.1/node_modules/ansi-styles/index.js
1367
- init_define_process_env_PROFILE();
1368
- var ANSI_BACKGROUND_OFFSET2 = 10;
1369
- var wrapAnsi162 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
1370
- var wrapAnsi2562 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
1371
- var wrapAnsi16m2 = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
1372
- var styles3 = {
1373
- modifier: {
1374
- reset: [0, 0],
1375
- // 21 isn't widely supported and 22 does the same thing
1376
- bold: [1, 22],
1377
- dim: [2, 22],
1378
- italic: [3, 23],
1379
- underline: [4, 24],
1380
- overline: [53, 55],
1381
- inverse: [7, 27],
1382
- hidden: [8, 28],
1383
- strikethrough: [9, 29]
1384
- },
1385
- color: {
1386
- black: [30, 39],
1387
- red: [31, 39],
1388
- green: [32, 39],
1389
- yellow: [33, 39],
1390
- blue: [34, 39],
1391
- magenta: [35, 39],
1392
- cyan: [36, 39],
1393
- white: [37, 39],
1394
- // Bright color
1395
- blackBright: [90, 39],
1396
- gray: [90, 39],
1397
- // Alias of `blackBright`
1398
- grey: [90, 39],
1399
- // Alias of `blackBright`
1400
- redBright: [91, 39],
1401
- greenBright: [92, 39],
1402
- yellowBright: [93, 39],
1403
- blueBright: [94, 39],
1404
- magentaBright: [95, 39],
1405
- cyanBright: [96, 39],
1406
- whiteBright: [97, 39]
1407
- },
1408
- bgColor: {
1409
- bgBlack: [40, 49],
1410
- bgRed: [41, 49],
1411
- bgGreen: [42, 49],
1412
- bgYellow: [43, 49],
1413
- bgBlue: [44, 49],
1414
- bgMagenta: [45, 49],
1415
- bgCyan: [46, 49],
1416
- bgWhite: [47, 49],
1417
- // Bright color
1418
- bgBlackBright: [100, 49],
1419
- bgGray: [100, 49],
1420
- // Alias of `bgBlackBright`
1421
- bgGrey: [100, 49],
1422
- // Alias of `bgBlackBright`
1423
- bgRedBright: [101, 49],
1424
- bgGreenBright: [102, 49],
1425
- bgYellowBright: [103, 49],
1426
- bgBlueBright: [104, 49],
1427
- bgMagentaBright: [105, 49],
1428
- bgCyanBright: [106, 49],
1429
- bgWhiteBright: [107, 49]
1430
- }
1431
- };
1432
- var modifierNames2 = Object.keys(styles3.modifier);
1433
- var foregroundColorNames2 = Object.keys(styles3.color);
1434
- var backgroundColorNames2 = Object.keys(styles3.bgColor);
1435
- var colorNames2 = [...foregroundColorNames2, ...backgroundColorNames2];
1436
- function assembleStyles2() {
1437
- const codes = /* @__PURE__ */ new Map();
1438
- for (const [groupName, group] of Object.entries(styles3)) {
1439
- for (const [styleName, style] of Object.entries(group)) {
1440
- styles3[styleName] = {
1441
- open: `\x1B[${style[0]}m`,
1442
- close: `\x1B[${style[1]}m`
1443
- };
1444
- group[styleName] = styles3[styleName];
1445
- codes.set(style[0], style[1]);
1446
- }
1447
- Object.defineProperty(styles3, groupName, {
1448
- value: group,
1449
- enumerable: false
1450
- });
1451
- }
1452
- Object.defineProperty(styles3, "codes", {
1453
- value: codes,
1454
- enumerable: false
1455
- });
1456
- styles3.color.close = "\x1B[39m";
1457
- styles3.bgColor.close = "\x1B[49m";
1458
- styles3.color.ansi = wrapAnsi162();
1459
- styles3.color.ansi256 = wrapAnsi2562();
1460
- styles3.color.ansi16m = wrapAnsi16m2();
1461
- styles3.bgColor.ansi = wrapAnsi162(ANSI_BACKGROUND_OFFSET2);
1462
- styles3.bgColor.ansi256 = wrapAnsi2562(ANSI_BACKGROUND_OFFSET2);
1463
- styles3.bgColor.ansi16m = wrapAnsi16m2(ANSI_BACKGROUND_OFFSET2);
1464
- Object.defineProperties(styles3, {
1465
- rgbToAnsi256: {
1466
- value: (red, green, blue) => {
1467
- if (red === green && green === blue) {
1468
- if (red < 8) {
1469
- return 16;
1470
- }
1471
- if (red > 248) {
1472
- return 231;
1473
- }
1474
- return Math.round((red - 8) / 247 * 24) + 232;
1475
- }
1476
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
1477
- },
1478
- enumerable: false
1479
- },
1480
- hexToRgb: {
1481
- value: (hex) => {
1482
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
1483
- if (!matches) {
1484
- return [0, 0, 0];
1485
- }
1486
- let [colorString] = matches;
1487
- if (colorString.length === 3) {
1488
- colorString = [...colorString].map((character) => character + character).join("");
1489
- }
1490
- const integer = Number.parseInt(colorString, 16);
1491
- return [
1492
- /* eslint-disable no-bitwise */
1493
- integer >> 16 & 255,
1494
- integer >> 8 & 255,
1495
- integer & 255
1496
- /* eslint-enable no-bitwise */
1497
- ];
1498
- },
1499
- enumerable: false
1500
- },
1501
- hexToAnsi256: {
1502
- value: (hex) => styles3.rgbToAnsi256(...styles3.hexToRgb(hex)),
1503
- enumerable: false
1504
- },
1505
- ansi256ToAnsi: {
1506
- value: (code) => {
1507
- if (code < 8) {
1508
- return 30 + code;
1509
- }
1510
- if (code < 16) {
1511
- return 90 + (code - 8);
1512
- }
1513
- let red;
1514
- let green;
1515
- let blue;
1516
- if (code >= 232) {
1517
- red = ((code - 232) * 10 + 8) / 255;
1518
- green = red;
1519
- blue = red;
1520
- } else {
1521
- code -= 16;
1522
- const remainder = code % 36;
1523
- red = Math.floor(code / 36) / 5;
1524
- green = Math.floor(remainder / 6) / 5;
1525
- blue = remainder % 6 / 5;
1526
- }
1527
- const value = Math.max(red, green, blue) * 2;
1528
- if (value === 0) {
1529
- return 30;
1530
- }
1531
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
1532
- if (value === 2) {
1533
- result += 60;
1534
- }
1535
- return result;
1536
- },
1537
- enumerable: false
1538
- },
1539
- rgbToAnsi: {
1540
- value: (red, green, blue) => styles3.ansi256ToAnsi(styles3.rgbToAnsi256(red, green, blue)),
1541
- enumerable: false
1542
- },
1543
- hexToAnsi: {
1544
- value: (hex) => styles3.ansi256ToAnsi(styles3.hexToAnsi256(hex)),
1545
- enumerable: false
1546
- }
1547
- });
1548
- return styles3;
1549
- }
1550
- var ansiStyles2 = assembleStyles2();
1551
- var ansi_styles_default2 = ansiStyles2;
1552
-
1553
- // ../../node_modules/.pnpm/wrap-ansi@9.0.0/node_modules/wrap-ansi/index.js
1554
- var ESCAPES = /* @__PURE__ */ new Set([
1555
- "\x1B",
1556
- "\x9B"
1557
- ]);
1558
- var END_CODE = 39;
1559
- var ANSI_ESCAPE_BELL = "\x07";
1560
- var ANSI_CSI = "[";
1561
- var ANSI_OSC = "]";
1562
- var ANSI_SGR_TERMINATOR = "m";
1563
- var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
1564
- var wrapAnsiCode = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
1565
- var wrapAnsiHyperlink = (url) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
1566
- var wordLengths = (string) => string.split(" ").map((character) => stringWidth(character));
1567
- var wrapWord = (rows, word, columns) => {
1568
- const characters = [...word];
1569
- let isInsideEscape = false;
1570
- let isInsideLinkEscape = false;
1571
- let visible = stringWidth(stripAnsi(rows.at(-1)));
1572
- for (const [index, character] of characters.entries()) {
1573
- const characterLength = stringWidth(character);
1574
- if (visible + characterLength <= columns) {
1575
- rows[rows.length - 1] += character;
1576
- } else {
1577
- rows.push(character);
1578
- visible = 0;
1579
- }
1580
- if (ESCAPES.has(character)) {
1581
- isInsideEscape = true;
1582
- const ansiEscapeLinkCandidate = characters.slice(index + 1, index + 1 + ANSI_ESCAPE_LINK.length).join("");
1583
- isInsideLinkEscape = ansiEscapeLinkCandidate === ANSI_ESCAPE_LINK;
1584
- }
1585
- if (isInsideEscape) {
1586
- if (isInsideLinkEscape) {
1587
- if (character === ANSI_ESCAPE_BELL) {
1588
- isInsideEscape = false;
1589
- isInsideLinkEscape = false;
1590
- }
1591
- } else if (character === ANSI_SGR_TERMINATOR) {
1592
- isInsideEscape = false;
1593
- }
1594
- continue;
1595
- }
1596
- visible += characterLength;
1597
- if (visible === columns && index < characters.length - 1) {
1598
- rows.push("");
1599
- visible = 0;
1600
- }
1601
- }
1602
- if (!visible && rows.at(-1).length > 0 && rows.length > 1) {
1603
- rows[rows.length - 2] += rows.pop();
1604
- }
1605
- };
1606
- var stringVisibleTrimSpacesRight = (string) => {
1607
- const words = string.split(" ");
1608
- let last = words.length;
1609
- while (last > 0) {
1610
- if (stringWidth(words[last - 1]) > 0) {
1611
- break;
1612
- }
1613
- last--;
1614
- }
1615
- if (last === words.length) {
1616
- return string;
1617
- }
1618
- return words.slice(0, last).join(" ") + words.slice(last).join("");
1619
- };
1620
- var exec = (string, columns, options = {}) => {
1621
- if (options.trim !== false && string.trim() === "") {
1622
- return "";
1623
- }
1624
- let returnValue = "";
1625
- let escapeCode;
1626
- let escapeUrl;
1627
- const lengths = wordLengths(string);
1628
- let rows = [""];
1629
- for (const [index, word] of string.split(" ").entries()) {
1630
- if (options.trim !== false) {
1631
- rows[rows.length - 1] = rows.at(-1).trimStart();
1632
- }
1633
- let rowLength = stringWidth(rows.at(-1));
1634
- if (index !== 0) {
1635
- if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
1636
- rows.push("");
1637
- rowLength = 0;
1638
- }
1639
- if (rowLength > 0 || options.trim === false) {
1640
- rows[rows.length - 1] += " ";
1641
- rowLength++;
1642
- }
1643
- }
1644
- if (options.hard && lengths[index] > columns) {
1645
- const remainingColumns = columns - rowLength;
1646
- const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
1647
- const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
1648
- if (breaksStartingNextLine < breaksStartingThisLine) {
1649
- rows.push("");
1650
- }
1651
- wrapWord(rows, word, columns);
1652
- continue;
1653
- }
1654
- if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
1655
- if (options.wordWrap === false && rowLength < columns) {
1656
- wrapWord(rows, word, columns);
1657
- continue;
1658
- }
1659
- rows.push("");
1660
- }
1661
- if (rowLength + lengths[index] > columns && options.wordWrap === false) {
1662
- wrapWord(rows, word, columns);
1663
- continue;
1664
- }
1665
- rows[rows.length - 1] += word;
1666
- }
1667
- if (options.trim !== false) {
1668
- rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
1669
- }
1670
- const preString = rows.join("\n");
1671
- const pre = [...preString];
1672
- let preStringIndex = 0;
1673
- for (const [index, character] of pre.entries()) {
1674
- returnValue += character;
1675
- if (ESCAPES.has(character)) {
1676
- const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(preString.slice(preStringIndex)) || { groups: {} };
1677
- if (groups.code !== void 0) {
1678
- const code2 = Number.parseFloat(groups.code);
1679
- escapeCode = code2 === END_CODE ? void 0 : code2;
1680
- } else if (groups.uri !== void 0) {
1681
- escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
1682
- }
1683
- }
1684
- const code = ansi_styles_default2.codes.get(Number(escapeCode));
1685
- if (pre[index + 1] === "\n") {
1686
- if (escapeUrl) {
1687
- returnValue += wrapAnsiHyperlink("");
1688
- }
1689
- if (escapeCode && code) {
1690
- returnValue += wrapAnsiCode(code);
1691
- }
1692
- } else if (character === "\n") {
1693
- if (escapeCode && code) {
1694
- returnValue += wrapAnsiCode(escapeCode);
1695
- }
1696
- if (escapeUrl) {
1697
- returnValue += wrapAnsiHyperlink(escapeUrl);
1698
- }
1699
- }
1700
- preStringIndex += character.length;
1701
- }
1702
- return returnValue;
1703
- };
1704
- function wrapAnsi(string, columns, options) {
1705
- return String(string).normalize().replaceAll("\r\n", "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
1706
- }
1707
-
1708
- // ../../node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js
1709
- var import_cli_boxes2 = __toESM(require_cli_boxes(), 1);
1710
- var NEWLINE = "\n";
1711
- var PAD = " ";
1712
- var NONE = "none";
1713
- var terminalColumns = () => {
1714
- const { env: env2, stdout, stderr } = process3;
1715
- if (stdout?.columns) {
1716
- return stdout.columns;
1717
- }
1718
- if (stderr?.columns) {
1719
- return stderr.columns;
1720
- }
1721
- if (env2.COLUMNS) {
1722
- return Number.parseInt(env2.COLUMNS, 10);
1723
- }
1724
- return 80;
1725
- };
1726
- var getObject = (detail) => typeof detail === "number" ? {
1727
- top: detail,
1728
- right: detail * 3,
1729
- bottom: detail,
1730
- left: detail * 3
1731
- } : {
1732
- top: 0,
1733
- right: 0,
1734
- bottom: 0,
1735
- left: 0,
1736
- ...detail
1737
- };
1738
- var getBorderWidth = (borderStyle) => borderStyle === NONE ? 0 : 2;
1739
- var getBorderChars = (borderStyle) => {
1740
- const sides = [
1741
- "topLeft",
1742
- "topRight",
1743
- "bottomRight",
1744
- "bottomLeft",
1745
- "left",
1746
- "right",
1747
- "top",
1748
- "bottom"
1749
- ];
1750
- let characters;
1751
- if (borderStyle === NONE) {
1752
- borderStyle = {};
1753
- for (const side of sides) {
1754
- borderStyle[side] = "";
1755
- }
1756
- }
1757
- if (typeof borderStyle === "string") {
1758
- characters = import_cli_boxes.default[borderStyle];
1759
- if (!characters) {
1760
- throw new TypeError(`Invalid border style: ${borderStyle}`);
1761
- }
1762
- } else {
1763
- if (typeof borderStyle?.vertical === "string") {
1764
- borderStyle.left = borderStyle.vertical;
1765
- borderStyle.right = borderStyle.vertical;
1766
- }
1767
- if (typeof borderStyle?.horizontal === "string") {
1768
- borderStyle.top = borderStyle.horizontal;
1769
- borderStyle.bottom = borderStyle.horizontal;
1770
- }
1771
- for (const side of sides) {
1772
- if (borderStyle[side] === null || typeof borderStyle[side] !== "string") {
1773
- throw new TypeError(`Invalid border style: ${side}`);
1774
- }
1775
- }
1776
- characters = borderStyle;
1777
- }
1778
- return characters;
1779
- };
1780
- var makeTitle = (text, horizontal, alignment) => {
1781
- let title = "";
1782
- const textWidth = stringWidth(text);
1783
- switch (alignment) {
1784
- case "left": {
1785
- title = text + horizontal.slice(textWidth);
1786
- break;
1787
- }
1788
- case "right": {
1789
- title = horizontal.slice(textWidth) + text;
1790
- break;
1791
- }
1792
- default: {
1793
- horizontal = horizontal.slice(textWidth);
1794
- if (horizontal.length % 2 === 1) {
1795
- horizontal = horizontal.slice(Math.floor(horizontal.length / 2));
1796
- title = horizontal.slice(1) + text + horizontal;
1797
- } else {
1798
- horizontal = horizontal.slice(horizontal.length / 2);
1799
- title = horizontal + text + horizontal;
1800
- }
1801
- break;
1802
- }
1803
- }
1804
- return title;
1805
- };
1806
- var makeContentText = (text, { padding, width, textAlignment, height }) => {
1807
- text = (0, import_ansi_align.default)(text, { align: textAlignment });
1808
- let lines = text.split(NEWLINE);
1809
- const textWidth = widestLine(text);
1810
- const max = width - padding.left - padding.right;
1811
- if (textWidth > max) {
1812
- const newLines = [];
1813
- for (const line of lines) {
1814
- const createdLines = wrapAnsi(line, max, { hard: true });
1815
- const alignedLines = (0, import_ansi_align.default)(createdLines, { align: textAlignment });
1816
- const alignedLinesArray = alignedLines.split("\n");
1817
- const longestLength = Math.max(...alignedLinesArray.map((s) => stringWidth(s)));
1818
- for (const alignedLine of alignedLinesArray) {
1819
- let paddedLine;
1820
- switch (textAlignment) {
1821
- case "center": {
1822
- paddedLine = PAD.repeat((max - longestLength) / 2) + alignedLine;
1823
- break;
1824
- }
1825
- case "right": {
1826
- paddedLine = PAD.repeat(max - longestLength) + alignedLine;
1827
- break;
1828
- }
1829
- default: {
1830
- paddedLine = alignedLine;
1831
- break;
1832
- }
1833
- }
1834
- newLines.push(paddedLine);
1835
- }
1836
- }
1837
- lines = newLines;
1838
- }
1839
- if (textAlignment === "center" && textWidth < max) {
1840
- lines = lines.map((line) => PAD.repeat((max - textWidth) / 2) + line);
1841
- } else if (textAlignment === "right" && textWidth < max) {
1842
- lines = lines.map((line) => PAD.repeat(max - textWidth) + line);
1843
- }
1844
- const paddingLeft = PAD.repeat(padding.left);
1845
- const paddingRight = PAD.repeat(padding.right);
1846
- lines = lines.map((line) => {
1847
- const newLine = paddingLeft + line + paddingRight;
1848
- return newLine + PAD.repeat(width - stringWidth(newLine));
1849
- });
1850
- if (padding.top > 0) {
1851
- lines = [...Array.from({ length: padding.top }).fill(PAD.repeat(width)), ...lines];
1852
- }
1853
- if (padding.bottom > 0) {
1854
- lines = [...lines, ...Array.from({ length: padding.bottom }).fill(PAD.repeat(width))];
1855
- }
1856
- if (height && lines.length > height) {
1857
- lines = lines.slice(0, height);
1858
- } else if (height && lines.length < height) {
1859
- lines = [...lines, ...Array.from({ length: height - lines.length }).fill(PAD.repeat(width))];
1860
- }
1861
- return lines.join(NEWLINE);
1862
- };
1863
- var boxContent = (content, contentWidth, options) => {
1864
- const colorizeBorder = (border) => {
1865
- const newBorder = options.borderColor ? getColorFunction(options.borderColor)(border) : border;
1866
- return options.dimBorder ? source_default.dim(newBorder) : newBorder;
1867
- };
1868
- const colorizeContent = (content2) => options.backgroundColor ? getBGColorFunction(options.backgroundColor)(content2) : content2;
1869
- const chars = getBorderChars(options.borderStyle);
1870
- const columns = terminalColumns();
1871
- let marginLeft = PAD.repeat(options.margin.left);
1872
- if (options.float === "center") {
1873
- const marginWidth = Math.max((columns - contentWidth - getBorderWidth(options.borderStyle)) / 2, 0);
1874
- marginLeft = PAD.repeat(marginWidth);
1875
- } else if (options.float === "right") {
1876
- const marginWidth = Math.max(columns - contentWidth - options.margin.right - getBorderWidth(options.borderStyle), 0);
1877
- marginLeft = PAD.repeat(marginWidth);
1878
- }
1879
- let result = "";
1880
- if (options.margin.top) {
1881
- result += NEWLINE.repeat(options.margin.top);
1882
- }
1883
- if (options.borderStyle !== NONE || options.title) {
1884
- result += colorizeBorder(marginLeft + chars.topLeft + (options.title ? makeTitle(options.title, chars.top.repeat(contentWidth), options.titleAlignment) : chars.top.repeat(contentWidth)) + chars.topRight) + NEWLINE;
1885
- }
1886
- const lines = content.split(NEWLINE);
1887
- result += lines.map((line) => marginLeft + colorizeBorder(chars.left) + colorizeContent(line) + colorizeBorder(chars.right)).join(NEWLINE);
1888
- if (options.borderStyle !== NONE) {
1889
- result += NEWLINE + colorizeBorder(marginLeft + chars.bottomLeft + chars.bottom.repeat(contentWidth) + chars.bottomRight);
1890
- }
1891
- if (options.margin.bottom) {
1892
- result += NEWLINE.repeat(options.margin.bottom);
1893
- }
1894
- return result;
1895
- };
1896
- var sanitizeOptions = (options) => {
1897
- if (options.fullscreen && process3?.stdout) {
1898
- let newDimensions = [process3.stdout.columns, process3.stdout.rows];
1899
- if (typeof options.fullscreen === "function") {
1900
- newDimensions = options.fullscreen(...newDimensions);
1901
- }
1902
- options.width || (options.width = newDimensions[0]);
1903
- options.height || (options.height = newDimensions[1]);
1904
- }
1905
- options.width && (options.width = Math.max(1, options.width - getBorderWidth(options.borderStyle)));
1906
- options.height && (options.height = Math.max(1, options.height - getBorderWidth(options.borderStyle)));
1907
- return options;
1908
- };
1909
- var formatTitle = (title, borderStyle) => borderStyle === NONE ? title : ` ${title} `;
1910
- var determineDimensions = (text, options) => {
1911
- options = sanitizeOptions(options);
1912
- const widthOverride = options.width !== void 0;
1913
- const columns = terminalColumns();
1914
- const borderWidth = getBorderWidth(options.borderStyle);
1915
- const maxWidth = columns - options.margin.left - options.margin.right - borderWidth;
1916
- const widest = widestLine(wrapAnsi(text, columns - borderWidth, { hard: true, trim: false })) + options.padding.left + options.padding.right;
1917
- if (options.title && widthOverride) {
1918
- options.title = options.title.slice(0, Math.max(0, options.width - 2));
1919
- options.title && (options.title = formatTitle(options.title, options.borderStyle));
1920
- } else if (options.title) {
1921
- options.title = options.title.slice(0, Math.max(0, maxWidth - 2));
1922
- if (options.title) {
1923
- options.title = formatTitle(options.title, options.borderStyle);
1924
- if (stringWidth(options.title) > widest) {
1925
- options.width = stringWidth(options.title);
1926
- }
1927
- }
1928
- }
1929
- options.width || (options.width = widest);
1930
- if (!widthOverride) {
1931
- if (options.margin.left && options.margin.right && options.width > maxWidth) {
1932
- const spaceForMargins = columns - options.width - borderWidth;
1933
- const multiplier = spaceForMargins / (options.margin.left + options.margin.right);
1934
- options.margin.left = Math.max(0, Math.floor(options.margin.left * multiplier));
1935
- options.margin.right = Math.max(0, Math.floor(options.margin.right * multiplier));
1936
- }
1937
- options.width = Math.min(options.width, columns - borderWidth - options.margin.left - options.margin.right);
1938
- }
1939
- if (options.width - (options.padding.left + options.padding.right) <= 0) {
1940
- options.padding.left = 0;
1941
- options.padding.right = 0;
1942
- }
1943
- if (options.height && options.height - (options.padding.top + options.padding.bottom) <= 0) {
1944
- options.padding.top = 0;
1945
- options.padding.bottom = 0;
1946
- }
1947
- return options;
1948
- };
1949
- var isHex = (color) => color.match(/^#(?:[0-f]{3}){1,2}$/i);
1950
- var isColorValid = (color) => typeof color === "string" && (source_default[color] ?? isHex(color));
1951
- var getColorFunction = (color) => isHex(color) ? source_default.hex(color) : source_default[color];
1952
- var getBGColorFunction = (color) => isHex(color) ? source_default.bgHex(color) : source_default[camelCase(["bg", color])];
1953
- function boxen(text, options) {
1954
- options = {
1955
- padding: 0,
1956
- borderStyle: "single",
1957
- dimBorder: false,
1958
- textAlignment: "left",
1959
- float: "left",
1960
- titleAlignment: "left",
1961
- ...options
1962
- };
1963
- if (options.align) {
1964
- options.textAlignment = options.align;
1965
- }
1966
- if (options.borderColor && !isColorValid(options.borderColor)) {
1967
- throw new Error(`${options.borderColor} is not a valid borderColor`);
1968
- }
1969
- if (options.backgroundColor && !isColorValid(options.backgroundColor)) {
1970
- throw new Error(`${options.backgroundColor} is not a valid backgroundColor`);
1971
- }
1972
- options.padding = getObject(options.padding);
1973
- options.margin = getObject(options.margin);
1974
- options = determineDimensions(text, options);
1975
- text = makeContentText(text, options);
1976
- return boxContent(text, options.width, options);
1977
- }
1978
-
1979
- // src/businessCard.ts
1980
- function printBusinessCard(profile2) {
1981
- const boxenOptions = {
1982
- padding: 1,
1983
- margin: 0,
1984
- borderStyle: "round",
1985
- borderColor: "green"
1986
- };
1987
- const cardContent = [
1988
- `${source_default.white.bold(profile2.name)} ${source_default.gray(profile2.title)}`,
1989
- source_default.white(profile2.bio),
1990
- "",
1991
- `${source_default.gray.greenBright("Email")} ${profile2.email}`,
1992
- `${source_default.gray.greenBright("GitHub")} ${profile2.github}`,
1993
- `${source_default.gray.greenBright("Website")} ${profile2.website}`,
1994
- "",
1995
- source_default.white(profile2.quote)
1996
- ].join("\n");
1997
- console.log(boxen(cardContent, boxenOptions));
1998
- }
1999
-
2000
- // src/index.ts
2001
- import_dotenv.default.config();
2002
- var profile = define_process_env_PROFILE_default;
2003
- async function main() {
2004
- printBusinessCard(profile);
2005
- }
2006
- main().catch(console.error);