supaslidev 0.2.0 → 0.2.1

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/cli/index.js CHANGED
@@ -1,37 +1,32 @@
1
1
  #!/usr/bin/env node
2
-
3
2
  import { createRequire } from "node:module";
4
3
  import { cpSync, existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, writeFileSync } from "node:fs";
5
- import { fileURLToPath, pathToFileURL } from "node:url";
4
+ import { fileURLToPath } from "node:url";
6
5
  import { Command } from "commander";
7
6
  import { spawn } from "node:child_process";
8
- import { basename, dirname, join, relative, resolve } from "node:path";
7
+ import path, { basename, dirname, join, relative, resolve } from "node:path";
9
8
  import { stripVTControlCharacters } from "node:util";
10
9
  import p, { stdin, stdout } from "node:process";
11
10
  import * as f from "node:readline";
12
11
  import M from "node:readline";
13
12
  import { WriteStream } from "node:tty";
14
13
  import { tmpdir } from "node:os";
15
-
16
- //#region rolldown:runtime
14
+ //#region \0rolldown/runtime.js
17
15
  var __create = Object.create;
18
16
  var __defProp = Object.defineProperty;
19
17
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
20
18
  var __getOwnPropNames = Object.getOwnPropertyNames;
21
19
  var __getProtoOf = Object.getPrototypeOf;
22
20
  var __hasOwnProp = Object.prototype.hasOwnProperty;
21
+ var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
23
22
  var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
24
23
  var __copyProps = (to, from, except, desc) => {
25
- if (from && typeof from === "object" || typeof from === "function") {
26
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
27
- key = keys[i];
28
- if (!__hasOwnProp.call(to, key) && key !== except) {
29
- __defProp(to, key, {
30
- get: ((k) => from[k]).bind(null, key),
31
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
32
- });
33
- }
34
- }
24
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
25
+ key = keys[i];
26
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
27
+ get: ((k) => from[k]).bind(null, key),
28
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
29
+ });
35
30
  }
36
31
  return to;
37
32
  };
@@ -40,7 +35,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
40
35
  enumerable: true
41
36
  }) : target, mod));
42
37
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
43
-
44
38
  //#endregion
45
39
  //#region src/cli/utils.ts
46
40
  function findProjectRoot(cwd = process.cwd()) {
@@ -100,7 +94,6 @@ function createDeployPackageJson(name) {
100
94
  }
101
95
  }, null, 2) + "\n";
102
96
  }
103
-
104
97
  //#endregion
105
98
  //#region src/cli/commands/dev.ts
106
99
  function findSupaslidevPackageRoot() {
@@ -172,7 +165,6 @@ async function dev() {
172
165
  process.on("SIGINT", cleanup);
173
166
  process.on("SIGTERM", cleanup);
174
167
  }
175
-
176
168
  //#endregion
177
169
  //#region src/shared/validation.ts
178
170
  const SLUG_REGEX = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
@@ -199,7 +191,6 @@ function validateSourceDirectory(sourcePath) {
199
191
  if (!existsSync(join(sourcePath, "slides.md"))) throw new Error(`No slides.md found in source directory: ${sourcePath}`);
200
192
  if (!existsSync(join(sourcePath, "package.json"))) throw new Error(`No package.json found in source directory: ${sourcePath}`);
201
193
  }
202
-
203
194
  //#endregion
204
195
  //#region src/shared/catalog.ts
205
196
  function hasSharedPackage(projectRoot) {
@@ -237,7 +228,6 @@ function addSharedDependencyToPackageJson(packageJson) {
237
228
  if (!packageJson.dependencies) packageJson.dependencies = {};
238
229
  if (!packageJson.dependencies["@supaslidev/shared"]) packageJson.dependencies["@supaslidev/shared"] = "workspace:*";
239
230
  }
240
-
241
231
  //#endregion
242
232
  //#region src/shared/copy.ts
243
233
  function copyDirectorySelective(source, destination) {
@@ -254,7 +244,6 @@ function copyDirectorySelective(source, destination) {
254
244
  else cpSync(sourcePath, destPath);
255
245
  }
256
246
  }
257
-
258
247
  //#endregion
259
248
  //#region src/cli/commands/create.ts
260
249
  function checkDuplicateName(presentationsDir, name) {
@@ -329,7 +318,6 @@ function findNewPresentation(presentationsDir, existingPresentations) {
329
318
  for (const name of currentPresentations) if (!existingPresentations.has(name)) return name;
330
319
  return null;
331
320
  }
332
-
333
321
  //#endregion
334
322
  //#region src/cli/commands/present.ts
335
323
  function tryOpenBrowser(url) {
@@ -423,7 +411,6 @@ async function present(name) {
423
411
  });
424
412
  });
425
413
  }
426
-
427
414
  //#endregion
428
415
  //#region src/cli/commands/export.ts
429
416
  async function exportPdf(name, options = {}) {
@@ -473,7 +460,6 @@ async function exportPdf(name, options = {}) {
473
460
  console.log("=".repeat(50) + "\n");
474
461
  });
475
462
  }
476
-
477
463
  //#endregion
478
464
  //#region src/cli/commands/deploy.ts
479
465
  async function deploy(name, options = {}) {
@@ -533,7 +519,6 @@ async function deploy(name, options = {}) {
533
519
  console.log("");
534
520
  });
535
521
  }
536
-
537
522
  //#endregion
538
523
  //#region ../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
539
524
  var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -565,32 +550,29 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
565
550
  save: `${ESC}7`,
566
551
  restore: `${ESC}8`
567
552
  };
568
- const scroll = {
569
- up: (count = 1) => `${CSI}S`.repeat(count),
570
- down: (count = 1) => `${CSI}T`.repeat(count)
571
- };
572
- const erase = {
573
- screen: `${CSI}2J`,
574
- up: (count = 1) => `${CSI}1J`.repeat(count),
575
- down: (count = 1) => `${CSI}J`.repeat(count),
576
- line: `${CSI}2K`,
577
- lineEnd: `${CSI}K`,
578
- lineStart: `${CSI}1K`,
579
- lines(count) {
580
- let clear = "";
581
- for (let i = 0; i < count; i++) clear += this.line + (i < count - 1 ? cursor.up() : "");
582
- if (count) clear += cursor.left;
583
- return clear;
584
- }
585
- };
586
553
  module.exports = {
587
554
  cursor,
588
- scroll,
589
- erase,
555
+ scroll: {
556
+ up: (count = 1) => `${CSI}S`.repeat(count),
557
+ down: (count = 1) => `${CSI}T`.repeat(count)
558
+ },
559
+ erase: {
560
+ screen: `${CSI}2J`,
561
+ up: (count = 1) => `${CSI}1J`.repeat(count),
562
+ down: (count = 1) => `${CSI}J`.repeat(count),
563
+ line: `${CSI}2K`,
564
+ lineEnd: `${CSI}K`,
565
+ lineStart: `${CSI}1K`,
566
+ lines(count) {
567
+ let clear = "";
568
+ for (let i = 0; i < count; i++) clear += this.line + (i < count - 1 ? cursor.up() : "");
569
+ if (count) clear += cursor.left;
570
+ return clear;
571
+ }
572
+ },
590
573
  beep
591
574
  };
592
575
  }));
593
-
594
576
  //#endregion
595
577
  //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
596
578
  var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -659,7 +641,6 @@ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
659
641
  module.exports = createColors();
660
642
  module.exports.createColors = createColors;
661
643
  }));
662
-
663
644
  //#endregion
664
645
  //#region ../../node_modules/.pnpm/@clack+core@0.4.1/node_modules/@clack/core/dist/index.mjs
665
646
  var import_src = require_src();
@@ -1001,8 +982,7 @@ var AD = Object.defineProperty, pD = (t, u, F) => u in t ? AD(t, u, {
1001
982
  configurable: !0,
1002
983
  writable: !0,
1003
984
  value: F
1004
- }) : t[u] = F, h = (t, u, F) => (pD(t, typeof u != "symbol" ? u + "" : u, F), F);
1005
- var x = class {
985
+ }) : t[u] = F, h = (t, u, F) => (pD(t, typeof u != "symbol" ? u + "" : u, F), F), x = class {
1006
986
  constructor(u, F = !0) {
1007
987
  h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", !1), h(this, "_prevFrame", ""), h(this, "_subscribers", /* @__PURE__ */ new Map()), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");
1008
988
  const { input: e = stdin, output: s = stdout, render: i, signal: D, ...C } = u;
@@ -1104,8 +1084,7 @@ var x = class {
1104
1084
  this.output.write(u), this.state === "initial" && (this.state = "active"), this._prevFrame = u;
1105
1085
  }
1106
1086
  }
1107
- };
1108
- var fD = class extends x {
1087
+ }, fD = class extends x {
1109
1088
  get cursor() {
1110
1089
  return this.value ? 0 : 1;
1111
1090
  }
@@ -1122,53 +1101,6 @@ var fD = class extends x {
1122
1101
  });
1123
1102
  }
1124
1103
  };
1125
- var gD = Object.defineProperty, vD = (t, u, F) => u in t ? gD(t, u, {
1126
- enumerable: !0,
1127
- configurable: !0,
1128
- writable: !0,
1129
- value: F
1130
- }) : t[u] = F, K = (t, u, F) => (vD(t, typeof u != "symbol" ? u + "" : u, F), F);
1131
- let dD = class extends x {
1132
- constructor(u) {
1133
- super(u, !1), K(this, "options"), K(this, "cursor", 0);
1134
- const { options: F } = u;
1135
- this.options = Object.entries(F).flatMap(([e, s]) => [{
1136
- value: e,
1137
- group: !0,
1138
- label: e
1139
- }, ...s.map((i) => ({
1140
- ...i,
1141
- group: e
1142
- }))]), this.value = [...u.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: e }) => e === u.cursorAt), 0), this.on("cursor", (e) => {
1143
- switch (e) {
1144
- case "left":
1145
- case "up":
1146
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
1147
- break;
1148
- case "down":
1149
- case "right":
1150
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
1151
- break;
1152
- case "space":
1153
- this.toggleValue();
1154
- break;
1155
- }
1156
- });
1157
- }
1158
- getGroupItems(u) {
1159
- return this.options.filter((F) => F.group === u);
1160
- }
1161
- isGroupSelected(u) {
1162
- return this.getGroupItems(u).every((F) => this.value.includes(F.value));
1163
- }
1164
- toggleValue() {
1165
- const u = this.options[this.cursor];
1166
- if (u.group === !0) {
1167
- const F = u.value, e = this.getGroupItems(F);
1168
- this.isGroupSelected(F) ? this.value = this.value.filter((s) => e.findIndex((i) => i.value === s) === -1) : this.value = [...this.value, ...e.map((s) => s.value)], this.value = Array.from(new Set(this.value));
1169
- } else this.value = this.value.includes(u.value) ? this.value.filter((e) => e !== u.value) : [...this.value, u.value];
1170
- }
1171
- };
1172
1104
  var bD = Object.defineProperty, mD = (t, u, F) => u in t ? bD(t, u, {
1173
1105
  enumerable: !0,
1174
1106
  configurable: !0,
@@ -1205,77 +1137,6 @@ let wD = class extends x {
1205
1137
  this.value = this.value.includes(this._value) ? this.value.filter((F) => F !== this._value) : [...this.value, this._value];
1206
1138
  }
1207
1139
  };
1208
- var yD = Object.defineProperty, _D = (t, u, F) => u in t ? yD(t, u, {
1209
- enumerable: !0,
1210
- configurable: !0,
1211
- writable: !0,
1212
- value: F
1213
- }) : t[u] = F, Z$1 = (t, u, F) => (_D(t, typeof u != "symbol" ? u + "" : u, F), F);
1214
- var kD = class extends x {
1215
- constructor({ mask: u, ...F }) {
1216
- super(F), Z$1(this, "valueWithCursor", ""), Z$1(this, "_mask", "•"), this._mask = u ?? "•", this.on("finalize", () => {
1217
- this.valueWithCursor = this.masked;
1218
- }), this.on("value", () => {
1219
- if (this.cursor >= this.value.length) this.valueWithCursor = `${this.masked}${import_picocolors.default.inverse(import_picocolors.default.hidden("_"))}`;
1220
- else {
1221
- const e = this.masked.slice(0, this.cursor), s = this.masked.slice(this.cursor);
1222
- this.valueWithCursor = `${e}${import_picocolors.default.inverse(s[0])}${s.slice(1)}`;
1223
- }
1224
- });
1225
- }
1226
- get cursor() {
1227
- return this._cursor;
1228
- }
1229
- get masked() {
1230
- return this.value.replaceAll(/./g, this._mask);
1231
- }
1232
- };
1233
- var SD = Object.defineProperty, $D = (t, u, F) => u in t ? SD(t, u, {
1234
- enumerable: !0,
1235
- configurable: !0,
1236
- writable: !0,
1237
- value: F
1238
- }) : t[u] = F, q = (t, u, F) => ($D(t, typeof u != "symbol" ? u + "" : u, F), F);
1239
- var jD = class extends x {
1240
- constructor(u) {
1241
- super(u, !1), q(this, "options"), q(this, "cursor", 0), this.options = u.options, this.cursor = this.options.findIndex(({ value: F }) => F === u.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F) => {
1242
- switch (F) {
1243
- case "left":
1244
- case "up":
1245
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
1246
- break;
1247
- case "down":
1248
- case "right":
1249
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
1250
- break;
1251
- }
1252
- this.changeValue();
1253
- });
1254
- }
1255
- get _value() {
1256
- return this.options[this.cursor];
1257
- }
1258
- changeValue() {
1259
- this.value = this._value.value;
1260
- }
1261
- };
1262
- var MD = Object.defineProperty, TD = (t, u, F) => u in t ? MD(t, u, {
1263
- enumerable: !0,
1264
- configurable: !0,
1265
- writable: !0,
1266
- value: F
1267
- }) : t[u] = F, H$1 = (t, u, F) => (TD(t, typeof u != "symbol" ? u + "" : u, F), F);
1268
- var OD = class extends x {
1269
- constructor(u) {
1270
- super(u, !1), H$1(this, "options"), H$1(this, "cursor", 0), this.options = u.options;
1271
- const F = this.options.map(({ value: [e] }) => e?.toLowerCase());
1272
- this.cursor = Math.max(F.indexOf(u.initialValue), 0), this.on("key", (e) => {
1273
- if (!F.includes(e)) return;
1274
- const s = this.options.find(({ value: [i] }) => i?.toLowerCase() === e);
1275
- s && (this.value = s.value, this.state = "submit", this.emit("submit"));
1276
- });
1277
- }
1278
- };
1279
1140
  var PD = class extends x {
1280
1141
  get valueWithCursor() {
1281
1142
  if (this.state === "submit") return this.value;
@@ -1292,13 +1153,14 @@ var PD = class extends x {
1292
1153
  });
1293
1154
  }
1294
1155
  };
1295
-
1296
1156
  //#endregion
1297
1157
  //#region ../../node_modules/.pnpm/@clack+prompts@0.9.1/node_modules/@clack/prompts/dist/index.mjs
1298
1158
  function X() {
1299
1159
  return p.platform !== "win32" ? p.env.TERM !== "linux" : !!p.env.CI || !!p.env.WT_SESSION || !!p.env.TERMINUS_SUBLIME || p.env.ConEmuTask === "{cmd::Cmder}" || p.env.TERM_PROGRAM === "Terminus-Sublime" || p.env.TERM_PROGRAM === "vscode" || p.env.TERM === "xterm-256color" || p.env.TERM === "alacritty" || p.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
1300
1160
  }
1301
- const E = X(), u = (s, n) => E ? s : n, ee = u("◆", "*"), A = u("■", "x"), B = u("▲", "x"), S = u("◇", "o"), te = u("┌", "T"), a = u("│", "|"), m = u("└", "—"), j = u("●", ">"), R = u("○", " "), V = u("◻", "[•]"), M$1 = u("◼", "[+]"), G = u("◻", "[ ]"), se = u("▪", "•"), N = u("─", "-"), re = u("╮", "+"), ie = u("├", "+"), ne = u("╯", "+"), ae = u("●", "•"), oe = u("◆", "*"), ce = u("▲", "!"), le = u("■", "x"), y = (s) => {
1161
+ const E = X(), u = (s, n) => E ? s : n, ee = u("◆", "*"), A = u("■", "x"), B = u("▲", "x"), S = u("◇", "o"), te = u("┌", "T"), a = u("│", "|"), m = u("└", "—"), j = u("●", ">"), R = u("○", " "), V = u("◻", "[•]"), M$1 = u("◼", "[+]"), G = u("◻", "[ ]");
1162
+ u("▪", "•");
1163
+ const N = u("─", "-"), re = u("╮", "+"), ie = u("├", "+"), ne = u("╯", "+"), ae = u("●", "•"), oe = u("◆", "*"), ce = u("▲", "!"), le = u("■", "x"), y = (s) => {
1302
1164
  switch (s) {
1303
1165
  case "initial":
1304
1166
  case "active": return import_picocolors.default.cyan(ee);
@@ -1334,26 +1196,6 @@ ${import_picocolors.default.yellow(m)} ${import_picocolors.default.yellow(this.
1334
1196
  ${import_picocolors.default.gray(a)}` : ""}`;
1335
1197
  default: return `${n}${import_picocolors.default.cyan(a)} ${i}
1336
1198
  ${import_picocolors.default.cyan(m)}
1337
- `;
1338
- }
1339
- }
1340
- }).prompt(), $e = (s) => new kD({
1341
- validate: s.validate,
1342
- mask: s.mask ?? se,
1343
- render() {
1344
- const n = `${import_picocolors.default.gray(a)}
1345
- ${y(this.state)} ${s.message}
1346
- `, t = this.valueWithCursor, i = this.masked;
1347
- switch (this.state) {
1348
- case "error": return `${n.trim()}
1349
- ${import_picocolors.default.yellow(a)} ${i}
1350
- ${import_picocolors.default.yellow(m)} ${import_picocolors.default.yellow(this.error)}
1351
- `;
1352
- case "submit": return `${n}${import_picocolors.default.gray(a)} ${import_picocolors.default.dim(i)}`;
1353
- case "cancel": return `${n}${import_picocolors.default.gray(a)} ${import_picocolors.default.strikethrough(import_picocolors.default.dim(i ?? ""))}${i ? `
1354
- ${import_picocolors.default.gray(a)}` : ""}`;
1355
- default: return `${n}${import_picocolors.default.cyan(a)} ${t}
1356
- ${import_picocolors.default.cyan(m)}
1357
1199
  `;
1358
1200
  }
1359
1201
  }
@@ -1373,62 +1215,6 @@ ${y(this.state)} ${s.message}
1373
1215
  ${import_picocolors.default.gray(a)}`;
1374
1216
  default: return `${i}${import_picocolors.default.cyan(a)} ${this.value ? `${import_picocolors.default.green(j)} ${n}` : `${import_picocolors.default.dim(R)} ${import_picocolors.default.dim(n)}`} ${import_picocolors.default.dim("/")} ${this.value ? `${import_picocolors.default.dim(R)} ${import_picocolors.default.dim(t)}` : `${import_picocolors.default.green(j)} ${t}`}
1375
1217
  ${import_picocolors.default.cyan(m)}
1376
- `;
1377
- }
1378
- }
1379
- }).prompt();
1380
- }, de = (s) => {
1381
- const n = (t, i) => {
1382
- const r = t.label ?? String(t.value);
1383
- switch (i) {
1384
- case "selected": return `${import_picocolors.default.dim(r)}`;
1385
- case "active": return `${import_picocolors.default.green(j)} ${r} ${t.hint ? import_picocolors.default.dim(`(${t.hint})`) : ""}`;
1386
- case "cancelled": return `${import_picocolors.default.strikethrough(import_picocolors.default.dim(r))}`;
1387
- default: return `${import_picocolors.default.dim(R)} ${import_picocolors.default.dim(r)}`;
1388
- }
1389
- };
1390
- return new jD({
1391
- options: s.options,
1392
- initialValue: s.initialValue,
1393
- render() {
1394
- const t = `${import_picocolors.default.gray(a)}
1395
- ${y(this.state)} ${s.message}
1396
- `;
1397
- switch (this.state) {
1398
- case "submit": return `${t}${import_picocolors.default.gray(a)} ${n(this.options[this.cursor], "selected")}`;
1399
- case "cancel": return `${t}${import_picocolors.default.gray(a)} ${n(this.options[this.cursor], "cancelled")}
1400
- ${import_picocolors.default.gray(a)}`;
1401
- default: return `${t}${import_picocolors.default.cyan(a)} ${k({
1402
- cursor: this.cursor,
1403
- options: this.options,
1404
- maxItems: s.maxItems,
1405
- style: (i, r) => n(i, r ? "active" : "inactive")
1406
- }).join(`
1407
- ${import_picocolors.default.cyan(a)} `)}
1408
- ${import_picocolors.default.cyan(m)}
1409
- `;
1410
- }
1411
- }
1412
- }).prompt();
1413
- }, he = (s) => {
1414
- const n = (t, i = "inactive") => {
1415
- const r = t.label ?? String(t.value);
1416
- return i === "selected" ? `${import_picocolors.default.dim(r)}` : i === "cancelled" ? `${import_picocolors.default.strikethrough(import_picocolors.default.dim(r))}` : i === "active" ? `${import_picocolors.default.bgCyan(import_picocolors.default.gray(` ${t.value} `))} ${r} ${t.hint ? import_picocolors.default.dim(`(${t.hint})`) : ""}` : `${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(` ${t.value} `)))} ${r} ${t.hint ? import_picocolors.default.dim(`(${t.hint})`) : ""}`;
1417
- };
1418
- return new OD({
1419
- options: s.options,
1420
- initialValue: s.initialValue,
1421
- render() {
1422
- const t = `${import_picocolors.default.gray(a)}
1423
- ${y(this.state)} ${s.message}
1424
- `;
1425
- switch (this.state) {
1426
- case "submit": return `${t}${import_picocolors.default.gray(a)} ${n(this.options.find((i) => i.value === this.value) ?? s.options[0], "selected")}`;
1427
- case "cancel": return `${t}${import_picocolors.default.gray(a)} ${n(this.options[0], "cancelled")}
1428
- ${import_picocolors.default.gray(a)}`;
1429
- default: return `${t}${import_picocolors.default.cyan(a)} ${this.options.map((i, r) => n(i, r === this.cursor ? "active" : "inactive")).join(`
1430
- ${import_picocolors.default.cyan(a)} `)}
1431
- ${import_picocolors.default.cyan(m)}
1432
1218
  `;
1433
1219
  }
1434
1220
  }
@@ -1483,53 +1269,6 @@ ${r}
1483
1269
  }).join(`
1484
1270
  ${import_picocolors.default.cyan(a)} `)}
1485
1271
  ${import_picocolors.default.cyan(m)}
1486
- `;
1487
- }
1488
- }
1489
- }).prompt();
1490
- }, ge = (s) => {
1491
- const n = (t, i, r = []) => {
1492
- const c = t.label ?? String(t.value), o = typeof t.group == "string", l = o && (r[r.indexOf(t) + 1] ?? { group: !0 }), $ = o && l.group === !0, d = o ? `${$ ? m : a} ` : "";
1493
- return i === "active" ? `${import_picocolors.default.dim(d)}${import_picocolors.default.cyan(V)} ${c} ${t.hint ? import_picocolors.default.dim(`(${t.hint})`) : ""}` : i === "group-active" ? `${d}${import_picocolors.default.cyan(V)} ${import_picocolors.default.dim(c)}` : i === "group-active-selected" ? `${d}${import_picocolors.default.green(M$1)} ${import_picocolors.default.dim(c)}` : i === "selected" ? `${import_picocolors.default.dim(d)}${import_picocolors.default.green(M$1)} ${import_picocolors.default.dim(c)}` : i === "cancelled" ? `${import_picocolors.default.strikethrough(import_picocolors.default.dim(c))}` : i === "active-selected" ? `${import_picocolors.default.dim(d)}${import_picocolors.default.green(M$1)} ${c} ${t.hint ? import_picocolors.default.dim(`(${t.hint})`) : ""}` : i === "submitted" ? `${import_picocolors.default.dim(c)}` : `${import_picocolors.default.dim(d)}${import_picocolors.default.dim(G)} ${import_picocolors.default.dim(c)}`;
1494
- };
1495
- return new dD({
1496
- options: s.options,
1497
- initialValues: s.initialValues,
1498
- required: s.required ?? !0,
1499
- cursorAt: s.cursorAt,
1500
- validate(t) {
1501
- if (this.required && t.length === 0) return `Please select at least one option.
1502
- ${import_picocolors.default.reset(import_picocolors.default.dim(`Press ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" space ")))} to select, ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" enter ")))} to submit`))}`;
1503
- },
1504
- render() {
1505
- const t = `${import_picocolors.default.gray(a)}
1506
- ${y(this.state)} ${s.message}
1507
- `;
1508
- switch (this.state) {
1509
- case "submit": return `${t}${import_picocolors.default.gray(a)} ${this.options.filter(({ value: i }) => this.value.includes(i)).map((i) => n(i, "submitted")).join(import_picocolors.default.dim(", "))}`;
1510
- case "cancel": {
1511
- const i = this.options.filter(({ value: r }) => this.value.includes(r)).map((r) => n(r, "cancelled")).join(import_picocolors.default.dim(", "));
1512
- return `${t}${import_picocolors.default.gray(a)} ${i.trim() ? `${i}
1513
- ${import_picocolors.default.gray(a)}` : ""}`;
1514
- }
1515
- case "error": {
1516
- const i = this.error.split(`
1517
- `).map((r, c) => c === 0 ? `${import_picocolors.default.yellow(m)} ${import_picocolors.default.yellow(r)}` : ` ${r}`).join(`
1518
- `);
1519
- return `${t}${import_picocolors.default.yellow(a)} ${this.options.map((r, c, o) => {
1520
- const l = this.value.includes(r.value) || r.group === !0 && this.isGroupSelected(`${r.value}`), $ = c === this.cursor;
1521
- return !$ && typeof r.group == "string" && this.options[this.cursor].value === r.group ? n(r, l ? "group-active-selected" : "group-active", o) : $ && l ? n(r, "active-selected", o) : l ? n(r, "selected", o) : n(r, $ ? "active" : "inactive", o);
1522
- }).join(`
1523
- ${import_picocolors.default.yellow(a)} `)}
1524
- ${i}
1525
- `;
1526
- }
1527
- default: return `${t}${import_picocolors.default.cyan(a)} ${this.options.map((i, r, c) => {
1528
- const o = this.value.includes(i.value) || i.group === !0 && this.isGroupSelected(`${i.value}`), l = r === this.cursor;
1529
- return !l && typeof i.group == "string" && this.options[this.cursor].value === i.group ? n(i, o ? "group-active-selected" : "group-active", c) : l && o ? n(i, "active-selected", c) : o ? n(i, "selected", c) : n(i, l ? "active" : "inactive", c);
1530
- }).join(`
1531
- ${import_picocolors.default.cyan(a)} `)}
1532
- ${import_picocolors.default.cyan(m)}
1533
1272
  `;
1534
1273
  }
1535
1274
  }
@@ -1639,29 +1378,7 @@ ${import_picocolors.default.gray(m)} ${s}
1639
1378
  o = x(h ?? o);
1640
1379
  }
1641
1380
  };
1642
- }, be = async (s, n) => {
1643
- const t = {}, i = Object.keys(s);
1644
- for (const r of i) {
1645
- const c = s[r], o = await c({ results: t })?.catch((l) => {
1646
- throw l;
1647
- });
1648
- if (typeof n?.onCancel == "function" && BD(o)) {
1649
- t[r] = "canceled", n.onCancel({ results: t });
1650
- continue;
1651
- }
1652
- t[r] = o;
1653
- }
1654
- return t;
1655
- }, xe = async (s) => {
1656
- for (const n of s) {
1657
- if (n.enabled === !1) continue;
1658
- const t = L();
1659
- t.start(n.title);
1660
- const i = await n.task(t.message);
1661
- t.stop(i || n.title);
1662
- }
1663
1381
  };
1664
-
1665
1382
  //#endregion
1666
1383
  //#region ../../node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/utils.js
1667
1384
  /**
@@ -1838,7 +1555,6 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
1838
1555
  return o;
1839
1556
  };
1840
1557
  }));
1841
-
1842
1558
  //#endregion
1843
1559
  //#region ../../node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/package.json
1844
1560
  var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -1877,7 +1593,6 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1877
1593
  "scripts": { "test": "npx jake test" }
1878
1594
  };
1879
1595
  }));
1880
-
1881
1596
  //#endregion
1882
1597
  //#region ../../node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/ejs.js
1883
1598
  var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -1905,7 +1620,7 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
1905
1620
  * @public
1906
1621
  */
1907
1622
  var fs$3 = __require("fs");
1908
- var path$1 = __require("path");
1623
+ var path$5 = __require("path");
1909
1624
  var utils = require_utils$1();
1910
1625
  var scopeOptionWarned = false;
1911
1626
  /** @type {string} */
@@ -1975,9 +1690,9 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
1975
1690
  * @return {String}
1976
1691
  */
1977
1692
  exports.resolveInclude = function(name, filename, isDir) {
1978
- var dirname = path$1.dirname;
1979
- var extname = path$1.extname;
1980
- var resolve = path$1.resolve;
1693
+ var dirname = path$5.dirname;
1694
+ var extname = path$5.extname;
1695
+ var resolve = path$5.resolve;
1981
1696
  var includePath = resolve(isDir ? filename : dirname(filename), name);
1982
1697
  if (!extname(name)) includePath += ".ejs";
1983
1698
  return includePath;
@@ -2379,7 +2094,7 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
2379
2094
  };
2380
2095
  if (opts.filename && typeof Object.defineProperty === "function") {
2381
2096
  var filename = opts.filename;
2382
- var basename = path$1.basename(filename, path$1.extname(filename));
2097
+ var basename = path$5.basename(filename, path$5.extname(filename));
2383
2098
  try {
2384
2099
  Object.defineProperty(returnedFn, "name", {
2385
2100
  value: basename,
@@ -2545,7 +2260,6 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
2545
2260
  /* istanbul ignore if */
2546
2261
  if (typeof window != "undefined") window.ejs = exports;
2547
2262
  }));
2548
-
2549
2263
  //#endregion
2550
2264
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/identity.js
2551
2265
  var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -2596,7 +2310,6 @@ var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
2596
2310
  exports.isScalar = isScalar;
2597
2311
  exports.isSeq = isSeq;
2598
2312
  }));
2599
-
2600
2313
  //#endregion
2601
2314
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/visit.js
2602
2315
  var require_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -2787,7 +2500,6 @@ var require_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
2787
2500
  exports.visit = visit;
2788
2501
  exports.visitAsync = visitAsync;
2789
2502
  }));
2790
-
2791
2503
  //#endregion
2792
2504
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/directives.js
2793
2505
  var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -2953,7 +2665,6 @@ var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
2953
2665
  Directives.defaultTags = { "!!": "tag:yaml.org,2002:" };
2954
2666
  exports.Directives = Directives;
2955
2667
  }));
2956
-
2957
2668
  //#endregion
2958
2669
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/anchors.js
2959
2670
  var require_anchors = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -3016,7 +2727,6 @@ var require_anchors = /* @__PURE__ */ __commonJSMin(((exports) => {
3016
2727
  exports.createNodeAnchors = createNodeAnchors;
3017
2728
  exports.findNewAnchor = findNewAnchor;
3018
2729
  }));
3019
-
3020
2730
  //#endregion
3021
2731
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/applyReviver.js
3022
2732
  var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -3057,7 +2767,6 @@ var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
3057
2767
  }
3058
2768
  exports.applyReviver = applyReviver;
3059
2769
  }));
3060
-
3061
2770
  //#endregion
3062
2771
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/toJS.js
3063
2772
  var require_toJS = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -3095,7 +2804,6 @@ var require_toJS = /* @__PURE__ */ __commonJSMin(((exports) => {
3095
2804
  }
3096
2805
  exports.toJS = toJS;
3097
2806
  }));
3098
-
3099
2807
  //#endregion
3100
2808
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Node.js
3101
2809
  var require_Node = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -3130,7 +2838,6 @@ var require_Node = /* @__PURE__ */ __commonJSMin(((exports) => {
3130
2838
  };
3131
2839
  exports.NodeBase = NodeBase;
3132
2840
  }));
3133
-
3134
2841
  //#endregion
3135
2842
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Alias.js
3136
2843
  var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -3224,7 +2931,6 @@ var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
3224
2931
  }
3225
2932
  exports.Alias = Alias;
3226
2933
  }));
3227
-
3228
2934
  //#endregion
3229
2935
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Scalar.js
3230
2936
  var require_Scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -3252,7 +2958,6 @@ var require_Scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
3252
2958
  exports.Scalar = Scalar;
3253
2959
  exports.isScalarValue = isScalarValue;
3254
2960
  }));
3255
-
3256
2961
  //#endregion
3257
2962
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/createNode.js
3258
2963
  var require_createNode = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -3316,7 +3021,6 @@ var require_createNode = /* @__PURE__ */ __commonJSMin(((exports) => {
3316
3021
  }
3317
3022
  exports.createNode = createNode;
3318
3023
  }));
3319
-
3320
3024
  //#endregion
3321
3025
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Collection.js
3322
3026
  var require_Collection = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -3438,7 +3142,6 @@ var require_Collection = /* @__PURE__ */ __commonJSMin(((exports) => {
3438
3142
  exports.collectionFromPath = collectionFromPath;
3439
3143
  exports.isEmptyPath = isEmptyPath;
3440
3144
  }));
3441
-
3442
3145
  //#endregion
3443
3146
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyComment.js
3444
3147
  var require_stringifyComment = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -3459,7 +3162,6 @@ var require_stringifyComment = /* @__PURE__ */ __commonJSMin(((exports) => {
3459
3162
  exports.lineComment = lineComment;
3460
3163
  exports.stringifyComment = stringifyComment;
3461
3164
  }));
3462
-
3463
3165
  //#endregion
3464
3166
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/foldFlowLines.js
3465
3167
  var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -3576,7 +3278,6 @@ var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
3576
3278
  exports.FOLD_QUOTED = FOLD_QUOTED;
3577
3279
  exports.foldFlowLines = foldFlowLines;
3578
3280
  }));
3579
-
3580
3281
  //#endregion
3581
3282
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyString.js
3582
3283
  var require_stringifyString = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -3801,7 +3502,6 @@ var require_stringifyString = /* @__PURE__ */ __commonJSMin(((exports) => {
3801
3502
  }
3802
3503
  exports.stringifyString = stringifyString;
3803
3504
  }));
3804
-
3805
3505
  //#endregion
3806
3506
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringify.js
3807
3507
  var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -3909,7 +3609,6 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
3909
3609
  exports.createStringifyContext = createStringifyContext;
3910
3610
  exports.stringify = stringify;
3911
3611
  }));
3912
-
3913
3612
  //#endregion
3914
3613
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyPair.js
3915
3614
  var require_stringifyPair = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4007,7 +3706,6 @@ var require_stringifyPair = /* @__PURE__ */ __commonJSMin(((exports) => {
4007
3706
  }
4008
3707
  exports.stringifyPair = stringifyPair;
4009
3708
  }));
4010
-
4011
3709
  //#endregion
4012
3710
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/log.js
4013
3711
  var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4022,7 +3720,6 @@ var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
4022
3720
  exports.debug = debug;
4023
3721
  exports.warn = warn;
4024
3722
  }));
4025
-
4026
3723
  //#endregion
4027
3724
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/merge.js
4028
3725
  var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4063,7 +3760,6 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
4063
3760
  exports.isMergeKey = isMergeKey;
4064
3761
  exports.merge = merge;
4065
3762
  }));
4066
-
4067
3763
  //#endregion
4068
3764
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/addPairToJSMap.js
4069
3765
  var require_addPairToJSMap = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4115,7 +3811,6 @@ var require_addPairToJSMap = /* @__PURE__ */ __commonJSMin(((exports) => {
4115
3811
  }
4116
3812
  exports.addPairToJSMap = addPairToJSMap;
4117
3813
  }));
4118
-
4119
3814
  //#endregion
4120
3815
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Pair.js
4121
3816
  var require_Pair = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4149,7 +3844,6 @@ var require_Pair = /* @__PURE__ */ __commonJSMin(((exports) => {
4149
3844
  exports.Pair = Pair;
4150
3845
  exports.createPair = createPair;
4151
3846
  }));
4152
-
4153
3847
  //#endregion
4154
3848
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyCollection.js
4155
3849
  var require_stringifyCollection = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4264,7 +3958,6 @@ var require_stringifyCollection = /* @__PURE__ */ __commonJSMin(((exports) => {
4264
3958
  }
4265
3959
  exports.stringifyCollection = stringifyCollection;
4266
3960
  }));
4267
-
4268
3961
  //#endregion
4269
3962
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLMap.js
4270
3963
  var require_YAMLMap = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4374,13 +4067,12 @@ var require_YAMLMap = /* @__PURE__ */ __commonJSMin(((exports) => {
4374
4067
  exports.YAMLMap = YAMLMap;
4375
4068
  exports.findPair = findPair;
4376
4069
  }));
4377
-
4378
4070
  //#endregion
4379
4071
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/map.js
4380
4072
  var require_map = /* @__PURE__ */ __commonJSMin(((exports) => {
4381
4073
  var identity = require_identity();
4382
4074
  var YAMLMap = require_YAMLMap();
4383
- const map = {
4075
+ exports.map = {
4384
4076
  collection: "map",
4385
4077
  default: true,
4386
4078
  nodeClass: YAMLMap.YAMLMap,
@@ -4391,9 +4083,7 @@ var require_map = /* @__PURE__ */ __commonJSMin(((exports) => {
4391
4083
  },
4392
4084
  createNode: (schema, obj, ctx) => YAMLMap.YAMLMap.from(schema, obj, ctx)
4393
4085
  };
4394
- exports.map = map;
4395
4086
  }));
4396
-
4397
4087
  //#endregion
4398
4088
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLSeq.js
4399
4089
  var require_YAMLSeq = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4500,13 +4190,12 @@ var require_YAMLSeq = /* @__PURE__ */ __commonJSMin(((exports) => {
4500
4190
  }
4501
4191
  exports.YAMLSeq = YAMLSeq;
4502
4192
  }));
4503
-
4504
4193
  //#endregion
4505
4194
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/seq.js
4506
4195
  var require_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
4507
4196
  var identity = require_identity();
4508
4197
  var YAMLSeq = require_YAMLSeq();
4509
- const seq = {
4198
+ exports.seq = {
4510
4199
  collection: "seq",
4511
4200
  default: true,
4512
4201
  nodeClass: YAMLSeq.YAMLSeq,
@@ -4517,14 +4206,12 @@ var require_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
4517
4206
  },
4518
4207
  createNode: (schema, obj, ctx) => YAMLSeq.YAMLSeq.from(schema, obj, ctx)
4519
4208
  };
4520
- exports.seq = seq;
4521
4209
  }));
4522
-
4523
4210
  //#endregion
4524
4211
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/string.js
4525
4212
  var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
4526
4213
  var stringifyString = require_stringifyString();
4527
- const string = {
4214
+ exports.string = {
4528
4215
  identify: (value) => typeof value === "string",
4529
4216
  default: true,
4530
4217
  tag: "tag:yaml.org,2002:str",
@@ -4534,9 +4221,7 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
4534
4221
  return stringifyString.stringifyString(item, ctx, onComment, onChompKeep);
4535
4222
  }
4536
4223
  };
4537
- exports.string = string;
4538
4224
  }));
4539
-
4540
4225
  //#endregion
4541
4226
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/null.js
4542
4227
  var require_null = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4552,7 +4237,6 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports) => {
4552
4237
  };
4553
4238
  exports.nullTag = nullTag;
4554
4239
  }));
4555
-
4556
4240
  //#endregion
4557
4241
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/bool.js
4558
4242
  var require_bool$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4572,7 +4256,6 @@ var require_bool$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
4572
4256
  };
4573
4257
  exports.boolTag = boolTag;
4574
4258
  }));
4575
-
4576
4259
  //#endregion
4577
4260
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyNumber.js
4578
4261
  var require_stringifyNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4594,7 +4277,6 @@ var require_stringifyNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
4594
4277
  }
4595
4278
  exports.stringifyNumber = stringifyNumber;
4596
4279
  }));
4597
-
4598
4280
  //#endregion
4599
4281
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/float.js
4600
4282
  var require_float$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4620,7 +4302,7 @@ var require_float$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
4620
4302
  return isFinite(num) ? num.toExponential() : stringifyNumber.stringifyNumber(node);
4621
4303
  }
4622
4304
  };
4623
- const float = {
4305
+ exports.float = {
4624
4306
  identify: (value) => typeof value === "number",
4625
4307
  default: true,
4626
4308
  tag: "tag:yaml.org,2002:float",
@@ -4633,11 +4315,9 @@ var require_float$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
4633
4315
  },
4634
4316
  stringify: stringifyNumber.stringifyNumber
4635
4317
  };
4636
- exports.float = float;
4637
4318
  exports.floatExp = floatExp;
4638
4319
  exports.floatNaN = floatNaN;
4639
4320
  }));
4640
-
4641
4321
  //#endregion
4642
4322
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/int.js
4643
4323
  var require_int$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4679,7 +4359,6 @@ var require_int$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
4679
4359
  exports.intHex = intHex;
4680
4360
  exports.intOct = intOct;
4681
4361
  }));
4682
-
4683
4362
  //#endregion
4684
4363
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/schema.js
4685
4364
  var require_schema$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4690,7 +4369,7 @@ var require_schema$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
4690
4369
  var bool = require_bool$1();
4691
4370
  var float = require_float$1();
4692
4371
  var int = require_int$1();
4693
- const schema = [
4372
+ exports.schema = [
4694
4373
  map.map,
4695
4374
  seq.seq,
4696
4375
  string.string,
@@ -4703,9 +4382,7 @@ var require_schema$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
4703
4382
  float.floatExp,
4704
4383
  float.float
4705
4384
  ];
4706
- exports.schema = schema;
4707
4385
  }));
4708
-
4709
4386
  //#endregion
4710
4387
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/json/schema.js
4711
4388
  var require_schema$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4758,7 +4435,7 @@ var require_schema$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
4758
4435
  stringify: stringifyJSON
4759
4436
  }
4760
4437
  ];
4761
- const schema = [map.map, seq.seq].concat(jsonScalars, {
4438
+ exports.schema = [map.map, seq.seq].concat(jsonScalars, {
4762
4439
  default: true,
4763
4440
  tag: "",
4764
4441
  test: /^/,
@@ -4767,16 +4444,14 @@ var require_schema$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
4767
4444
  return str;
4768
4445
  }
4769
4446
  });
4770
- exports.schema = schema;
4771
4447
  }));
4772
-
4773
4448
  //#endregion
4774
4449
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/binary.js
4775
4450
  var require_binary = /* @__PURE__ */ __commonJSMin(((exports) => {
4776
4451
  var node_buffer = __require("buffer");
4777
4452
  var Scalar = require_Scalar();
4778
4453
  var stringifyString = require_stringifyString();
4779
- const binary = {
4454
+ exports.binary = {
4780
4455
  identify: (value) => value instanceof Uint8Array,
4781
4456
  default: false,
4782
4457
  tag: "tag:yaml.org,2002:binary",
@@ -4817,9 +4492,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports) => {
4817
4492
  }, ctx, onComment, onChompKeep);
4818
4493
  }
4819
4494
  };
4820
- exports.binary = binary;
4821
4495
  }));
4822
-
4823
4496
  //#endregion
4824
4497
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
4825
4498
  var require_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4880,7 +4553,6 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
4880
4553
  exports.pairs = pairs;
4881
4554
  exports.resolvePairs = resolvePairs;
4882
4555
  }));
4883
-
4884
4556
  //#endregion
4885
4557
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/omap.js
4886
4558
  var require_omap = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4944,7 +4616,6 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports) => {
4944
4616
  exports.YAMLOMap = YAMLOMap;
4945
4617
  exports.omap = omap;
4946
4618
  }));
4947
-
4948
4619
  //#endregion
4949
4620
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/bool.js
4950
4621
  var require_bool = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4972,7 +4643,6 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports) => {
4972
4643
  exports.falseTag = falseTag;
4973
4644
  exports.trueTag = trueTag;
4974
4645
  }));
4975
-
4976
4646
  //#endregion
4977
4647
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/float.js
4978
4648
  var require_float = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4998,7 +4668,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports) => {
4998
4668
  return isFinite(num) ? num.toExponential() : stringifyNumber.stringifyNumber(node);
4999
4669
  }
5000
4670
  };
5001
- const float = {
4671
+ exports.float = {
5002
4672
  identify: (value) => typeof value === "number",
5003
4673
  default: true,
5004
4674
  tag: "tag:yaml.org,2002:float",
@@ -5014,11 +4684,9 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports) => {
5014
4684
  },
5015
4685
  stringify: stringifyNumber.stringifyNumber
5016
4686
  };
5017
- exports.float = float;
5018
4687
  exports.floatExp = floatExp;
5019
4688
  exports.floatNaN = floatNaN;
5020
4689
  }));
5021
-
5022
4690
  //#endregion
5023
4691
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/int.js
5024
4692
  var require_int = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -5094,7 +4762,6 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports) => {
5094
4762
  exports.intHex = intHex;
5095
4763
  exports.intOct = intOct;
5096
4764
  }));
5097
-
5098
4765
  //#endregion
5099
4766
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/set.js
5100
4767
  var require_set = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -5163,7 +4830,6 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports) => {
5163
4830
  exports.YAMLSet = YAMLSet;
5164
4831
  exports.set = set;
5165
4832
  }));
5166
-
5167
4833
  //#endregion
5168
4834
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
5169
4835
  var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -5247,7 +4913,6 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports) => {
5247
4913
  exports.intTime = intTime;
5248
4914
  exports.timestamp = timestamp;
5249
4915
  }));
5250
-
5251
4916
  //#endregion
5252
4917
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/schema.js
5253
4918
  var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -5264,7 +4929,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
5264
4929
  var pairs = require_pairs();
5265
4930
  var set = require_set();
5266
4931
  var timestamp = require_timestamp();
5267
- const schema = [
4932
+ exports.schema = [
5268
4933
  map.map,
5269
4934
  seq.seq,
5270
4935
  string.string,
@@ -5287,9 +4952,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
5287
4952
  timestamp.floatTime,
5288
4953
  timestamp.timestamp
5289
4954
  ];
5290
- exports.schema = schema;
5291
4955
  }));
5292
-
5293
4956
  //#endregion
5294
4957
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/tags.js
5295
4958
  var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -5374,7 +5037,6 @@ var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
5374
5037
  exports.coreKnownTags = coreKnownTags;
5375
5038
  exports.getTags = getTags;
5376
5039
  }));
5377
-
5378
5040
  //#endregion
5379
5041
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/Schema.js
5380
5042
  var require_Schema = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -5384,7 +5046,7 @@ var require_Schema = /* @__PURE__ */ __commonJSMin(((exports) => {
5384
5046
  var string = require_string();
5385
5047
  var tags = require_tags();
5386
5048
  const sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0;
5387
- var Schema = class Schema {
5049
+ exports.Schema = class Schema {
5388
5050
  constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
5389
5051
  this.compat = Array.isArray(compat) ? tags.getTags(compat, "compat") : compat ? tags.getTags(null, compat) : null;
5390
5052
  this.name = typeof schema === "string" && schema || "core";
@@ -5402,9 +5064,7 @@ var require_Schema = /* @__PURE__ */ __commonJSMin(((exports) => {
5402
5064
  return copy;
5403
5065
  }
5404
5066
  };
5405
- exports.Schema = Schema;
5406
5067
  }));
5407
-
5408
5068
  //#endregion
5409
5069
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyDocument.js
5410
5070
  var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -5466,7 +5126,6 @@ var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
5466
5126
  }
5467
5127
  exports.stringifyDocument = stringifyDocument;
5468
5128
  }));
5469
-
5470
5129
  //#endregion
5471
5130
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/Document.js
5472
5131
  var require_Document = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -5748,7 +5407,6 @@ var require_Document = /* @__PURE__ */ __commonJSMin(((exports) => {
5748
5407
  }
5749
5408
  exports.Document = Document;
5750
5409
  }));
5751
-
5752
5410
  //#endregion
5753
5411
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/errors.js
5754
5412
  var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -5802,7 +5460,6 @@ var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
5802
5460
  exports.YAMLWarning = YAMLWarning;
5803
5461
  exports.prettifyError = prettifyError;
5804
5462
  }));
5805
-
5806
5463
  //#endregion
5807
5464
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-props.js
5808
5465
  var require_resolve_props = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -5910,7 +5567,6 @@ var require_resolve_props = /* @__PURE__ */ __commonJSMin(((exports) => {
5910
5567
  }
5911
5568
  exports.resolveProps = resolveProps;
5912
5569
  }));
5913
-
5914
5570
  //#endregion
5915
5571
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-contains-newline.js
5916
5572
  var require_util_contains_newline = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -5940,7 +5596,6 @@ var require_util_contains_newline = /* @__PURE__ */ __commonJSMin(((exports) =>
5940
5596
  }
5941
5597
  exports.containsNewline = containsNewline;
5942
5598
  }));
5943
-
5944
5599
  //#endregion
5945
5600
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-flow-indent-check.js
5946
5601
  var require_util_flow_indent_check = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -5953,7 +5608,6 @@ var require_util_flow_indent_check = /* @__PURE__ */ __commonJSMin(((exports) =>
5953
5608
  }
5954
5609
  exports.flowIndentCheck = flowIndentCheck;
5955
5610
  }));
5956
-
5957
5611
  //#endregion
5958
5612
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-map-includes.js
5959
5613
  var require_util_map_includes = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -5966,7 +5620,6 @@ var require_util_map_includes = /* @__PURE__ */ __commonJSMin(((exports) => {
5966
5620
  }
5967
5621
  exports.mapIncludes = mapIncludes;
5968
5622
  }));
5969
-
5970
5623
  //#endregion
5971
5624
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-map.js
5972
5625
  var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6051,7 +5704,6 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
6051
5704
  }
6052
5705
  exports.resolveBlockMap = resolveBlockMap;
6053
5706
  }));
6054
-
6055
5707
  //#endregion
6056
5708
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-seq.js
6057
5709
  var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6094,7 +5746,6 @@ var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
6094
5746
  }
6095
5747
  exports.resolveBlockSeq = resolveBlockSeq;
6096
5748
  }));
6097
-
6098
5749
  //#endregion
6099
5750
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-end.js
6100
5751
  var require_resolve_end = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6133,7 +5784,6 @@ var require_resolve_end = /* @__PURE__ */ __commonJSMin(((exports) => {
6133
5784
  }
6134
5785
  exports.resolveEnd = resolveEnd;
6135
5786
  }));
6136
-
6137
5787
  //#endregion
6138
5788
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-collection.js
6139
5789
  var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6289,7 +5939,6 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
6289
5939
  }
6290
5940
  exports.resolveFlowCollection = resolveFlowCollection;
6291
5941
  }));
6292
-
6293
5942
  //#endregion
6294
5943
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-collection.js
6295
5944
  var require_compose_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6342,7 +5991,6 @@ var require_compose_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
6342
5991
  }
6343
5992
  exports.composeCollection = composeCollection;
6344
5993
  }));
6345
-
6346
5994
  //#endregion
6347
5995
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-scalar.js
6348
5996
  var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6518,7 +6166,6 @@ var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
6518
6166
  }
6519
6167
  exports.resolveBlockScalar = resolveBlockScalar;
6520
6168
  }));
6521
-
6522
6169
  //#endregion
6523
6170
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-scalar.js
6524
6171
  var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6725,7 +6372,6 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
6725
6372
  }
6726
6373
  exports.resolveFlowScalar = resolveFlowScalar;
6727
6374
  }));
6728
-
6729
6375
  //#endregion
6730
6376
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-scalar.js
6731
6377
  var require_compose_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6785,7 +6431,6 @@ var require_compose_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
6785
6431
  }
6786
6432
  exports.composeScalar = composeScalar;
6787
6433
  }));
6788
-
6789
6434
  //#endregion
6790
6435
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-empty-scalar-position.js
6791
6436
  var require_util_empty_scalar_position = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6813,7 +6458,6 @@ var require_util_empty_scalar_position = /* @__PURE__ */ __commonJSMin(((exports
6813
6458
  }
6814
6459
  exports.emptyScalarPosition = emptyScalarPosition;
6815
6460
  }));
6816
-
6817
6461
  //#endregion
6818
6462
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-node.js
6819
6463
  var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6899,7 +6543,6 @@ var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
6899
6543
  exports.composeEmptyNode = composeEmptyNode;
6900
6544
  exports.composeNode = composeNode;
6901
6545
  }));
6902
-
6903
6546
  //#endregion
6904
6547
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-doc.js
6905
6548
  var require_compose_doc = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6942,7 +6585,6 @@ var require_compose_doc = /* @__PURE__ */ __commonJSMin(((exports) => {
6942
6585
  }
6943
6586
  exports.composeDoc = composeDoc;
6944
6587
  }));
6945
-
6946
6588
  //#endregion
6947
6589
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/composer.js
6948
6590
  var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7141,7 +6783,6 @@ var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
7141
6783
  };
7142
6784
  exports.Composer = Composer;
7143
6785
  }));
7144
-
7145
6786
  //#endregion
7146
6787
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-scalar.js
7147
6788
  var require_cst_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7409,7 +7050,6 @@ var require_cst_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
7409
7050
  exports.resolveAsScalar = resolveAsScalar;
7410
7051
  exports.setScalarValue = setScalarValue;
7411
7052
  }));
7412
-
7413
7053
  //#endregion
7414
7054
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-stringify.js
7415
7055
  var require_cst_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7461,7 +7101,6 @@ var require_cst_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
7461
7101
  }
7462
7102
  exports.stringify = stringify;
7463
7103
  }));
7464
-
7465
7104
  //#endregion
7466
7105
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-visit.js
7467
7106
  var require_cst_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7553,7 +7192,6 @@ var require_cst_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
7553
7192
  }
7554
7193
  exports.visit = visit;
7555
7194
  }));
7556
-
7557
7195
  //#endregion
7558
7196
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst.js
7559
7197
  var require_cst = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7633,7 +7271,6 @@ var require_cst = /* @__PURE__ */ __commonJSMin(((exports) => {
7633
7271
  exports.prettyToken = prettyToken;
7634
7272
  exports.tokenType = tokenType;
7635
7273
  }));
7636
-
7637
7274
  //#endregion
7638
7275
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/lexer.js
7639
7276
  var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -8153,7 +7790,6 @@ var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
8153
7790
  };
8154
7791
  exports.Lexer = Lexer;
8155
7792
  }));
8156
-
8157
7793
  //#endregion
8158
7794
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/line-counter.js
8159
7795
  var require_line_counter = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -8201,7 +7837,6 @@ var require_line_counter = /* @__PURE__ */ __commonJSMin(((exports) => {
8201
7837
  };
8202
7838
  exports.LineCounter = LineCounter;
8203
7839
  }));
8204
-
8205
7840
  //#endregion
8206
7841
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/parser.js
8207
7842
  var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9058,7 +8693,6 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
9058
8693
  };
9059
8694
  exports.Parser = Parser;
9060
8695
  }));
9061
-
9062
8696
  //#endregion
9063
8697
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/public-api.js
9064
8698
  var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9146,7 +8780,6 @@ var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
9146
8780
  exports.parseDocument = parseDocument;
9147
8781
  exports.stringify = stringify;
9148
8782
  }));
9149
-
9150
8783
  //#endregion
9151
8784
  //#region ../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/index.js
9152
8785
  var require_dist$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9160,7 +8793,7 @@ var require_dist$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
9160
8793
  var Scalar = require_Scalar();
9161
8794
  var YAMLMap = require_YAMLMap();
9162
8795
  var YAMLSeq = require_YAMLSeq();
9163
- var cst = require_cst();
8796
+ require_cst();
9164
8797
  var lexer = require_lexer();
9165
8798
  var lineCounter = require_line_counter();
9166
8799
  var parser = require_parser();
@@ -9195,7 +8828,15 @@ var require_dist$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
9195
8828
  exports.visit = visit.visit;
9196
8829
  exports.visitAsync = visit.visitAsync;
9197
8830
  }));
9198
-
8831
+ //#endregion
8832
+ //#region ../../node_modules/.pnpm/tsdown@0.21.6_typescript@5.9.3_vue-tsc@2.2.12_typescript@5.9.3_/node_modules/tsdown/esm-shims.js
8833
+ var getFilename, getDirname, __dirname, __filename;
8834
+ var init_esm_shims = __esmMin((() => {
8835
+ getFilename = () => fileURLToPath(import.meta.url);
8836
+ getDirname = () => path.dirname(getFilename());
8837
+ __dirname = /* @__PURE__ */ getDirname();
8838
+ __filename = /* @__PURE__ */ getFilename();
8839
+ }));
9199
8840
  //#endregion
9200
8841
  //#region ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js
9201
8842
  var require_base64 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9230,7 +8871,6 @@ var require_base64 = /* @__PURE__ */ __commonJSMin(((exports) => {
9230
8871
  return -1;
9231
8872
  };
9232
8873
  }));
9233
-
9234
8874
  //#endregion
9235
8875
  //#region ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js
9236
8876
  var require_base64_vlq = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9296,7 +8936,6 @@ var require_base64_vlq = /* @__PURE__ */ __commonJSMin(((exports) => {
9296
8936
  aOutParam.rest = aIndex;
9297
8937
  };
9298
8938
  }));
9299
-
9300
8939
  //#endregion
9301
8940
  //#region ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js
9302
8941
  var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9579,7 +9218,6 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
9579
9218
  }
9580
9219
  exports.computeSourceURL = computeSourceURL;
9581
9220
  }));
9582
-
9583
9221
  //#endregion
9584
9222
  //#region ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js
9585
9223
  var require_array_set = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9672,7 +9310,6 @@ var require_array_set = /* @__PURE__ */ __commonJSMin(((exports) => {
9672
9310
  };
9673
9311
  exports.ArraySet = ArraySet;
9674
9312
  }));
9675
-
9676
9313
  //#endregion
9677
9314
  //#region ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js
9678
9315
  var require_mapping_list = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9742,7 +9379,6 @@ var require_mapping_list = /* @__PURE__ */ __commonJSMin(((exports) => {
9742
9379
  };
9743
9380
  exports.MappingList = MappingList;
9744
9381
  }));
9745
-
9746
9382
  //#endregion
9747
9383
  //#region ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js
9748
9384
  var require_source_map_generator = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -10012,7 +9648,6 @@ var require_source_map_generator = /* @__PURE__ */ __commonJSMin(((exports) => {
10012
9648
  };
10013
9649
  exports.SourceMapGenerator = SourceMapGenerator;
10014
9650
  }));
10015
-
10016
9651
  //#endregion
10017
9652
  //#region ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js
10018
9653
  var require_binary_search = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -10074,7 +9709,6 @@ var require_binary_search = /* @__PURE__ */ __commonJSMin(((exports) => {
10074
9709
  return index;
10075
9710
  };
10076
9711
  }));
10077
-
10078
9712
  //#endregion
10079
9713
  //#region ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js
10080
9714
  var require_quick_sort = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -10144,7 +9778,6 @@ var require_quick_sort = /* @__PURE__ */ __commonJSMin(((exports) => {
10144
9778
  doQuickSort(ary, comparator, 0, ary.length - 1);
10145
9779
  };
10146
9780
  }));
10147
-
10148
9781
  //#endregion
10149
9782
  //#region ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js
10150
9783
  var require_source_map_consumer = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -10894,7 +10527,6 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJSMin(((exports) => {
10894
10527
  };
10895
10528
  exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
10896
10529
  }));
10897
-
10898
10530
  //#endregion
10899
10531
  //#region ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js
10900
10532
  var require_source_node = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -11179,7 +10811,6 @@ var require_source_node = /* @__PURE__ */ __commonJSMin(((exports) => {
11179
10811
  };
11180
10812
  exports.SourceNode = SourceNode;
11181
10813
  }));
11182
-
11183
10814
  //#endregion
11184
10815
  //#region ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js
11185
10816
  var require_source_map = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -11187,7 +10818,6 @@ var require_source_map = /* @__PURE__ */ __commonJSMin(((exports) => {
11187
10818
  exports.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer;
11188
10819
  exports.SourceNode = require_source_node().SourceNode;
11189
10820
  }));
11190
-
11191
10821
  //#endregion
11192
10822
  //#region ../../node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js
11193
10823
  var require_buffer_from = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -11220,7 +10850,6 @@ var require_buffer_from = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11220
10850
  }
11221
10851
  module.exports = bufferFrom;
11222
10852
  }));
11223
-
11224
10853
  //#endregion
11225
10854
  //#region ../../node_modules/.pnpm/source-map-support@0.5.21/node_modules/source-map-support/source-map-support.js
11226
10855
  var require_source_map_support = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -11616,10 +11245,10 @@ var require_source_map_support = /* @__PURE__ */ __commonJSMin(((exports, module
11616
11245
  retrieveFile = handlerExec(retrieveFileHandlers);
11617
11246
  };
11618
11247
  }));
11619
-
11620
11248
  //#endregion
11621
11249
  //#region ../../node_modules/.pnpm/@ts-morph+common@0.25.0/node_modules/@ts-morph/common/dist/typescript.js
11622
11250
  var require_typescript = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11251
+ init_esm_shims();
11623
11252
  /*! *****************************************************************************
11624
11253
  Copyright (c) Microsoft Corporation. All rights reserved.
11625
11254
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
@@ -11638,9 +11267,6 @@ var require_typescript = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11638
11267
  ((module$1) => {
11639
11268
  "use strict";
11640
11269
  var __defProp = Object.defineProperty;
11641
- Object.getOwnPropertyDescriptor;
11642
- Object.getOwnPropertyNames;
11643
- Object.prototype.hasOwnProperty;
11644
11270
  var __export = (target, all) => {
11645
11271
  for (var name in all) __defProp(target, name, {
11646
11272
  get: all[name],
@@ -156469,7 +156095,6 @@ ${e.message}`;
156469
156095
  }
156470
156096
  });
156471
156097
  }));
156472
-
156473
156098
  //#endregion
156474
156099
  //#region ../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js
156475
156100
  var require_balanced_match = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -156520,7 +156145,6 @@ var require_balanced_match = /* @__PURE__ */ __commonJSMin(((exports, module) =>
156520
156145
  return result;
156521
156146
  }
156522
156147
  }));
156523
-
156524
156148
  //#endregion
156525
156149
  //#region ../../node_modules/.pnpm/brace-expansion@2.0.2/node_modules/brace-expansion/index.js
156526
156150
  var require_brace_expansion = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -156651,7 +156275,6 @@ var require_brace_expansion = /* @__PURE__ */ __commonJSMin(((exports, module) =
156651
156275
  return expansions;
156652
156276
  }
156653
156277
  }));
156654
-
156655
156278
  //#endregion
156656
156279
  //#region ../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
156657
156280
  var require_assert_valid_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -156664,7 +156287,6 @@ var require_assert_valid_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
156664
156287
  };
156665
156288
  exports.assertValidPattern = assertValidPattern;
156666
156289
  }));
156667
-
156668
156290
  //#endregion
156669
156291
  //#region ../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/brace-expressions.js
156670
156292
  var require_brace_expressions = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -156791,7 +156413,6 @@ var require_brace_expressions = /* @__PURE__ */ __commonJSMin(((exports) => {
156791
156413
  };
156792
156414
  exports.parseClass = parseClass;
156793
156415
  }));
156794
-
156795
156416
  //#endregion
156796
156417
  //#region ../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/unescape.js
156797
156418
  var require_unescape = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -156816,7 +156437,6 @@ var require_unescape = /* @__PURE__ */ __commonJSMin(((exports) => {
156816
156437
  };
156817
156438
  exports.unescape = unescape;
156818
156439
  }));
156819
-
156820
156440
  //#endregion
156821
156441
  //#region ../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/ast.js
156822
156442
  var require_ast = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -156841,7 +156461,7 @@ var require_ast = /* @__PURE__ */ __commonJSMin(((exports) => {
156841
156461
  const qmark = "[^/]";
156842
156462
  const star = qmark + "*?";
156843
156463
  const starNoEmpty = qmark + "+?";
156844
- var AST = class AST {
156464
+ exports.AST = class AST {
156845
156465
  type;
156846
156466
  #root;
156847
156467
  #hasMagic;
@@ -157183,9 +156803,7 @@ var require_ast = /* @__PURE__ */ __commonJSMin(((exports) => {
157183
156803
  ];
157184
156804
  }
157185
156805
  };
157186
- exports.AST = AST;
157187
156806
  }));
157188
-
157189
156807
  //#endregion
157190
156808
  //#region ../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/escape.js
157191
156809
  var require_escape = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -157205,7 +156823,6 @@ var require_escape = /* @__PURE__ */ __commonJSMin(((exports) => {
157205
156823
  };
157206
156824
  exports.escape = escape;
157207
156825
  }));
157208
-
157209
156826
  //#endregion
157210
156827
  //#region ../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/index.js
157211
156828
  var require_commonjs = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -157813,7 +157430,6 @@ var require_commonjs = /* @__PURE__ */ __commonJSMin(((exports) => {
157813
157430
  exports.minimatch.escape = escape_js_1.escape;
157814
157431
  exports.minimatch.unescape = unescape_js_1.unescape;
157815
157432
  }));
157816
-
157817
157433
  //#endregion
157818
157434
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.js
157819
157435
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -157867,28 +157483,24 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
157867
157483
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`,
157868
157484
  SEP: "\\"
157869
157485
  };
157870
- /**
157871
- * POSIX Bracket Regex
157872
- */
157873
- const POSIX_REGEX_SOURCE = {
157874
- alnum: "a-zA-Z0-9",
157875
- alpha: "a-zA-Z",
157876
- ascii: "\\x00-\\x7F",
157877
- blank: " \\t",
157878
- cntrl: "\\x00-\\x1F\\x7F",
157879
- digit: "0-9",
157880
- graph: "\\x21-\\x7E",
157881
- lower: "a-z",
157882
- print: "\\x20-\\x7E ",
157883
- punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
157884
- space: " \\t\\r\\n\\v\\f",
157885
- upper: "A-Z",
157886
- word: "A-Za-z0-9_",
157887
- xdigit: "A-Fa-f0-9"
157888
- };
157889
157486
  module.exports = {
157890
157487
  MAX_LENGTH: 1024 * 64,
157891
- POSIX_REGEX_SOURCE,
157488
+ POSIX_REGEX_SOURCE: {
157489
+ alnum: "a-zA-Z0-9",
157490
+ alpha: "a-zA-Z",
157491
+ ascii: "\\x00-\\x7F",
157492
+ blank: " \\t",
157493
+ cntrl: "\\x00-\\x1F\\x7F",
157494
+ digit: "0-9",
157495
+ graph: "\\x21-\\x7E",
157496
+ lower: "a-z",
157497
+ print: "\\x20-\\x7E ",
157498
+ punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
157499
+ space: " \\t\\r\\n\\v\\f",
157500
+ upper: "A-Z",
157501
+ word: "A-Za-z0-9_",
157502
+ xdigit: "A-Fa-f0-9"
157503
+ },
157892
157504
  REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
157893
157505
  REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
157894
157506
  REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
@@ -157978,7 +157590,6 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
157978
157590
  }
157979
157591
  };
157980
157592
  }));
157981
-
157982
157593
  //#endregion
157983
157594
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.js
157984
157595
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -158027,7 +157638,6 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
158027
157638
  return last;
158028
157639
  };
158029
157640
  }));
158030
-
158031
157641
  //#endregion
158032
157642
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.js
158033
157643
  var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -158315,7 +157925,6 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
158315
157925
  };
158316
157926
  module.exports = scan;
158317
157927
  }));
158318
-
158319
157928
  //#endregion
158320
157929
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.js
158321
157930
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -159174,7 +158783,6 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
159174
158783
  };
159175
158784
  module.exports = parse;
159176
158785
  }));
159177
-
159178
158786
  //#endregion
159179
158787
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.js
159180
158788
  var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -159467,7 +159075,6 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
159467
159075
  */
159468
159076
  module.exports = picomatch;
159469
159077
  }));
159470
-
159471
159078
  //#endregion
159472
159079
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.js
159473
159080
  var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -159483,7 +159090,6 @@ var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
159483
159090
  Object.assign(picomatch, pico);
159484
159091
  module.exports = picomatch;
159485
159092
  }));
159486
-
159487
159093
  //#endregion
159488
159094
  //#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.3/node_modules/fdir/dist/index.cjs
159489
159095
  var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -160016,7 +159622,6 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
160016
159622
  };
160017
159623
  exports.fdir = Builder;
160018
159624
  }));
160019
-
160020
159625
  //#endregion
160021
159626
  //#region ../../node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.cjs
160022
159627
  var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -160042,8 +159647,8 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
160042
159647
  }) : target, mod));
160043
159648
  let fs = __require("fs");
160044
159649
  fs = __toESM(fs);
160045
- let path = __require("path");
160046
- path = __toESM(path);
159650
+ let path$1 = __require("path");
159651
+ path$1 = __toESM(path$1);
160047
159652
  let url = __require("url");
160048
159653
  url = __toESM(url);
160049
159654
  let fdir = require_dist$1();
@@ -160104,8 +159709,8 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
160104
159709
  };
160105
159710
  return (p, isDir) => isDir && p !== "." ? p.slice(0, -1) : p;
160106
159711
  }
160107
- if (absolute) return (p) => path.posix.relative(cwd, p) || ".";
160108
- return (p) => path.posix.relative(cwd, `${root}/${p}`) || ".";
159712
+ if (absolute) return (p) => path$1.posix.relative(cwd, p) || ".";
159713
+ return (p) => path$1.posix.relative(cwd, `${root}/${p}`) || ".";
160109
159714
  }
160110
159715
  function buildRelative(cwd, root) {
160111
159716
  if (root.startsWith(`${cwd}/`)) {
@@ -160113,7 +159718,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
160113
159718
  return (p) => `${prefix}/${p}`;
160114
159719
  }
160115
159720
  return (p) => {
160116
- const result = path.posix.relative(cwd, `${root}/${p}`);
159721
+ const result = path$1.posix.relative(cwd, `${root}/${p}`);
160117
159722
  if (p.endsWith("/") && result !== "") return `${result}/`;
160118
159723
  return result || ".";
160119
159724
  };
@@ -160176,8 +159781,8 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
160176
159781
  if (pattern.endsWith("/")) result = pattern.slice(0, -1);
160177
159782
  if (!result.endsWith("*") && expandDirectories) result += "/**";
160178
159783
  const escapedCwd = escapePath(cwd);
160179
- if (path.default.isAbsolute(result.replace(ESCAPING_BACKSLASHES, ""))) result = path.posix.relative(escapedCwd, result);
160180
- else result = path.posix.normalize(result);
159784
+ if (path$1.default.isAbsolute(result.replace(ESCAPING_BACKSLASHES, ""))) result = path$1.posix.relative(escapedCwd, result);
159785
+ else result = path$1.posix.normalize(result);
160181
159786
  const parentDirectoryMatch = PARENT_DIRECTORY.exec(result);
160182
159787
  const parts = splitPattern(result);
160183
159788
  if (parentDirectoryMatch === null || parentDirectoryMatch === void 0 ? void 0 : parentDirectoryMatch[0]) {
@@ -160188,7 +159793,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
160188
159793
  result = result.slice(0, (n - i - 1) * 3) + result.slice((n - i) * 3 + parts[i + n].length + 1) || ".";
160189
159794
  i++;
160190
159795
  }
160191
- const potentialRoot = path.posix.join(cwd, parentDirectoryMatch[0].slice(i * 3));
159796
+ const potentialRoot = path$1.posix.join(cwd, parentDirectoryMatch[0].slice(i * 3));
160192
159797
  if (!potentialRoot.startsWith(".") && props.root.length > potentialRoot.length) {
160193
159798
  props.root = potentialRoot;
160194
159799
  props.depthOffset = -n + i;
@@ -160210,7 +159815,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
160210
159815
  }
160211
159816
  props.depthOffset = newCommonPath.length;
160212
159817
  props.commonPath = newCommonPath;
160213
- props.root = newCommonPath.length > 0 ? path.posix.join(cwd, ...newCommonPath) : cwd;
159818
+ props.root = newCommonPath.length > 0 ? path$1.posix.join(cwd, ...newCommonPath) : cwd;
160214
159819
  }
160215
159820
  return result;
160216
159821
  }
@@ -160243,7 +159848,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
160243
159848
  function normalizeCwd(cwd) {
160244
159849
  if (!cwd) return process.cwd().replace(BACKSLASHES, "/");
160245
159850
  if (cwd instanceof URL) return (0, url.fileURLToPath)(cwd).replace(BACKSLASHES, "/");
160246
- return path.default.resolve(cwd).replace(BACKSLASHES, "/");
159851
+ return path$1.default.resolve(cwd).replace(BACKSLASHES, "/");
160247
159852
  }
160248
159853
  function getCrawler(patterns, inputOptions = {}) {
160249
159854
  const options = process.env.TINYGLOBBY_DEBUG ? {
@@ -160358,7 +159963,6 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
160358
159963
  exports.globSync = globSync;
160359
159964
  exports.isDynamicPattern = isDynamicPattern;
160360
159965
  }));
160361
-
160362
159966
  //#endregion
160363
159967
  //#region ../../node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js
160364
159968
  var require_path_browserify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -160685,7 +160289,6 @@ var require_path_browserify = /* @__PURE__ */ __commonJSMin(((exports, module) =
160685
160289
  posix.posix = posix;
160686
160290
  module.exports = posix;
160687
160291
  }));
160688
-
160689
160292
  //#endregion
160690
160293
  //#region ../../node_modules/.pnpm/@ts-morph+common@0.25.0/node_modules/@ts-morph/common/dist/ts-morph-common.js
160691
160294
  var require_ts_morph_common = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -163652,7 +163255,6 @@ var require_ts_morph_common = /* @__PURE__ */ __commonJSMin(((exports) => {
163652
163255
  exports.nameof = nameof;
163653
163256
  exports.runtime = runtime;
163654
163257
  }));
163655
-
163656
163258
  //#endregion
163657
163259
  //#region ../../node_modules/.pnpm/code-block-writer@13.0.3/node_modules/code-block-writer/script/utils/string_utils.js
163658
163260
  var require_string_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -163679,7 +163281,6 @@ var require_string_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
163679
163281
  }
163680
163282
  exports.getStringFromStrOrFunc = getStringFromStrOrFunc;
163681
163283
  }));
163682
-
163683
163284
  //#endregion
163684
163285
  //#region ../../node_modules/.pnpm/code-block-writer@13.0.3/node_modules/code-block-writer/script/mod.js
163685
163286
  var require_script = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -164427,7 +164028,6 @@ var require_script = /* @__PURE__ */ __commonJSMin(((exports) => {
164427
164028
  };
164428
164029
  }
164429
164030
  }));
164430
-
164431
164031
  //#endregion
164432
164032
  //#region ../../node_modules/.pnpm/ts-morph@24.0.0/node_modules/ts-morph/dist/ts-morph.js
164433
164033
  var require_ts_morph = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -182877,14 +182477,12 @@ var require_ts_morph = /* @__PURE__ */ __commonJSMin(((exports) => {
182877
182477
  exports.printNode = printNode;
182878
182478
  exports.setScopeForNode = setScopeForNode;
182879
182479
  }));
182880
-
182881
182480
  //#endregion
182882
182481
  //#region ../cli/dist/index.js
182883
182482
  var import_ejs = /* @__PURE__ */ __toESM(require_ejs(), 1);
182884
- var import_dist = require_dist$2();
182885
- var import_ts_morph = require_ts_morph();
182886
- const __dirname$1 = dirname(fileURLToPath(import.meta.url));
182887
- const CLI_VERSION = JSON.parse(readFileSync(join(__dirname$1, "..", "package.json"), "utf-8")).version;
182483
+ require_dist$2();
182484
+ require_ts_morph();
182485
+ const CLI_VERSION = "0.2.1";
182888
182486
  const PACKAGE_NAME = "@supaslidev/cli";
182889
182487
  const CACHE_DIR = join(tmpdir(), "supaslidev-cli");
182890
182488
  const CACHE_FILE = join(CACHE_DIR, "version-cache.json");
@@ -182914,11 +182512,10 @@ function readCache() {
182914
182512
  function writeCache(latestVersion) {
182915
182513
  try {
182916
182514
  if (!existsSync(CACHE_DIR)) mkdirSync(CACHE_DIR, { recursive: true });
182917
- const cache = {
182515
+ writeFileSync(CACHE_FILE, JSON.stringify({
182918
182516
  latestVersion,
182919
182517
  checkedAt: Date.now()
182920
- };
182921
- writeFileSync(CACHE_FILE, JSON.stringify(cache));
182518
+ }));
182922
182519
  } catch {}
182923
182520
  }
182924
182521
  async function fetchLatestPackageVersion(packageName) {
@@ -183869,14 +183466,13 @@ async function loadInteractiveMigration(id) {
183869
183466
  async function promptForCatalogSelection(presentations) {
183870
183467
  we(import_picocolors.default.cyan("Catalog Conversion Selection"));
183871
183468
  ye(`${import_picocolors.default.bold("Select presentations to convert to catalog: references")}\n\nSelected presentations will use ${import_picocolors.default.green("catalog:")} (managed versions)\nUnselected presentations will use ${import_picocolors.default.yellow("^52.11.3")} (pinned version)\n\n${import_picocolors.default.dim("Controls:")} ${import_picocolors.default.bold("Space")} ${import_picocolors.default.dim("toggle |")} ${import_picocolors.default.bold("a")} ${import_picocolors.default.dim("toggle all |")} ${import_picocolors.default.bold("Enter")} ${import_picocolors.default.dim("confirm")}`, "Migration Options");
183872
- const options = presentations.map((pres) => ({
183873
- value: pres.name,
183874
- label: pres.name,
183875
- hint: `currently ${pres.currentVersion}`
183876
- }));
183877
183469
  const selected = await pe({
183878
183470
  message: "Which presentations should use catalog: references?",
183879
- options,
183471
+ options: presentations.map((pres) => ({
183472
+ value: pres.name,
183473
+ label: pres.name,
183474
+ hint: `currently ${pres.currentVersion}`
183475
+ })),
183880
183476
  initialValues: presentations.map((p) => p.name),
183881
183477
  required: false
183882
183478
  });
@@ -184078,12 +183674,10 @@ async function run$1$1() {
184078
183674
  startBackgroundUpdateCheck();
184079
183675
  await program$1.parseAsync();
184080
183676
  }
184081
- const scriptName = process.argv[1] ? basename(process.argv[1]) : "";
184082
- if (import.meta.url === pathToFileURL(process.argv[1] ?? "").href || scriptName === "cli.js") run$1$1().catch((err) => {
183677
+ if ((process.argv[1] ? basename(process.argv[1]) : "") === "cli.js") run$1$1().catch((err) => {
184083
183678
  console.error(err);
184084
183679
  process.exit(1);
184085
183680
  });
184086
-
184087
183681
  //#endregion
184088
183682
  //#region src/cli/commands/import.ts
184089
183683
  function findPnpmWorkspaceRoot(startDir) {
@@ -184181,7 +183775,6 @@ async function importPresentation(source, options = {}) {
184181
183775
  console.log("\nPresentation imported successfully!");
184182
183776
  console.log(`Run "supaslidev present ${presentationName}" to start a dev server.`);
184183
183777
  }
184184
-
184185
183778
  //#endregion
184186
183779
  //#region src/cli/index.ts
184187
183780
  const program = new Command();
@@ -184219,6 +183812,5 @@ function isMainModule() {
184219
183812
  }
184220
183813
  }
184221
183814
  if (isMainModule()) run();
184222
-
184223
183815
  //#endregion
184224
- export { run };
183816
+ export { run };