@voidagency/skills 1.0.0

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.
@@ -0,0 +1,799 @@
1
+ import { n as __require, t as __commonJSMin } from "../../rolldown-runtime.mjs";
2
+ //#region ../../node_modules/ms/index.js
3
+ var require_ms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
+ /**
5
+ * Helpers.
6
+ */
7
+ var s = 1e3;
8
+ var m = s * 60;
9
+ var h = m * 60;
10
+ var d = h * 24;
11
+ var w = d * 7;
12
+ var y = d * 365.25;
13
+ /**
14
+ * Parse or format the given `val`.
15
+ *
16
+ * Options:
17
+ *
18
+ * - `long` verbose formatting [false]
19
+ *
20
+ * @param {String|Number} val
21
+ * @param {Object} [options]
22
+ * @throws {Error} throw an error if val is not a non-empty string or a number
23
+ * @return {String|Number}
24
+ * @api public
25
+ */
26
+ module.exports = function(val, options) {
27
+ options = options || {};
28
+ var type = typeof val;
29
+ if (type === "string" && val.length > 0) return parse(val);
30
+ else if (type === "number" && isFinite(val)) return options.long ? fmtLong(val) : fmtShort(val);
31
+ throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
32
+ };
33
+ /**
34
+ * Parse the given `str` and return milliseconds.
35
+ *
36
+ * @param {String} str
37
+ * @return {Number}
38
+ * @api private
39
+ */
40
+ function parse(str) {
41
+ str = String(str);
42
+ if (str.length > 100) return;
43
+ var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
44
+ if (!match) return;
45
+ var n = parseFloat(match[1]);
46
+ switch ((match[2] || "ms").toLowerCase()) {
47
+ case "years":
48
+ case "year":
49
+ case "yrs":
50
+ case "yr":
51
+ case "y": return n * y;
52
+ case "weeks":
53
+ case "week":
54
+ case "w": return n * w;
55
+ case "days":
56
+ case "day":
57
+ case "d": return n * d;
58
+ case "hours":
59
+ case "hour":
60
+ case "hrs":
61
+ case "hr":
62
+ case "h": return n * h;
63
+ case "minutes":
64
+ case "minute":
65
+ case "mins":
66
+ case "min":
67
+ case "m": return n * m;
68
+ case "seconds":
69
+ case "second":
70
+ case "secs":
71
+ case "sec":
72
+ case "s": return n * s;
73
+ case "milliseconds":
74
+ case "millisecond":
75
+ case "msecs":
76
+ case "msec":
77
+ case "ms": return n;
78
+ default: return;
79
+ }
80
+ }
81
+ /**
82
+ * Short format for `ms`.
83
+ *
84
+ * @param {Number} ms
85
+ * @return {String}
86
+ * @api private
87
+ */
88
+ function fmtShort(ms) {
89
+ var msAbs = Math.abs(ms);
90
+ if (msAbs >= d) return Math.round(ms / d) + "d";
91
+ if (msAbs >= h) return Math.round(ms / h) + "h";
92
+ if (msAbs >= m) return Math.round(ms / m) + "m";
93
+ if (msAbs >= s) return Math.round(ms / s) + "s";
94
+ return ms + "ms";
95
+ }
96
+ /**
97
+ * Long format for `ms`.
98
+ *
99
+ * @param {Number} ms
100
+ * @return {String}
101
+ * @api private
102
+ */
103
+ function fmtLong(ms) {
104
+ var msAbs = Math.abs(ms);
105
+ if (msAbs >= d) return plural(ms, msAbs, d, "day");
106
+ if (msAbs >= h) return plural(ms, msAbs, h, "hour");
107
+ if (msAbs >= m) return plural(ms, msAbs, m, "minute");
108
+ if (msAbs >= s) return plural(ms, msAbs, s, "second");
109
+ return ms + " ms";
110
+ }
111
+ /**
112
+ * Pluralization helper.
113
+ */
114
+ function plural(ms, msAbs, n, name) {
115
+ var isPlural = msAbs >= n * 1.5;
116
+ return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
117
+ }
118
+ }));
119
+ //#endregion
120
+ //#region ../../node_modules/debug/src/common.js
121
+ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
122
+ /**
123
+ * This is the common logic for both the Node.js and web browser
124
+ * implementations of `debug()`.
125
+ */
126
+ function setup(env) {
127
+ createDebug.debug = createDebug;
128
+ createDebug.default = createDebug;
129
+ createDebug.coerce = coerce;
130
+ createDebug.disable = disable;
131
+ createDebug.enable = enable;
132
+ createDebug.enabled = enabled;
133
+ createDebug.humanize = require_ms();
134
+ createDebug.destroy = destroy;
135
+ Object.keys(env).forEach((key) => {
136
+ createDebug[key] = env[key];
137
+ });
138
+ /**
139
+ * The currently active debug mode names, and names to skip.
140
+ */
141
+ createDebug.names = [];
142
+ createDebug.skips = [];
143
+ /**
144
+ * Map of special "%n" handling functions, for the debug "format" argument.
145
+ *
146
+ * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
147
+ */
148
+ createDebug.formatters = {};
149
+ /**
150
+ * Selects a color for a debug namespace
151
+ * @param {String} namespace The namespace string for the debug instance to be colored
152
+ * @return {Number|String} An ANSI color code for the given namespace
153
+ * @api private
154
+ */
155
+ function selectColor(namespace) {
156
+ let hash = 0;
157
+ for (let i = 0; i < namespace.length; i++) {
158
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
159
+ hash |= 0;
160
+ }
161
+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
162
+ }
163
+ createDebug.selectColor = selectColor;
164
+ /**
165
+ * Create a debugger with the given `namespace`.
166
+ *
167
+ * @param {String} namespace
168
+ * @return {Function}
169
+ * @api public
170
+ */
171
+ function createDebug(namespace) {
172
+ let prevTime;
173
+ let enableOverride = null;
174
+ let namespacesCache;
175
+ let enabledCache;
176
+ function debug(...args) {
177
+ if (!debug.enabled) return;
178
+ const self = debug;
179
+ const curr = Number(/* @__PURE__ */ new Date());
180
+ self.diff = curr - (prevTime || curr);
181
+ self.prev = prevTime;
182
+ self.curr = curr;
183
+ prevTime = curr;
184
+ args[0] = createDebug.coerce(args[0]);
185
+ if (typeof args[0] !== "string") args.unshift("%O");
186
+ let index = 0;
187
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
188
+ if (match === "%%") return "%";
189
+ index++;
190
+ const formatter = createDebug.formatters[format];
191
+ if (typeof formatter === "function") {
192
+ const val = args[index];
193
+ match = formatter.call(self, val);
194
+ args.splice(index, 1);
195
+ index--;
196
+ }
197
+ return match;
198
+ });
199
+ createDebug.formatArgs.call(self, args);
200
+ (self.log || createDebug.log).apply(self, args);
201
+ }
202
+ debug.namespace = namespace;
203
+ debug.useColors = createDebug.useColors();
204
+ debug.color = createDebug.selectColor(namespace);
205
+ debug.extend = extend;
206
+ debug.destroy = createDebug.destroy;
207
+ Object.defineProperty(debug, "enabled", {
208
+ enumerable: true,
209
+ configurable: false,
210
+ get: () => {
211
+ if (enableOverride !== null) return enableOverride;
212
+ if (namespacesCache !== createDebug.namespaces) {
213
+ namespacesCache = createDebug.namespaces;
214
+ enabledCache = createDebug.enabled(namespace);
215
+ }
216
+ return enabledCache;
217
+ },
218
+ set: (v) => {
219
+ enableOverride = v;
220
+ }
221
+ });
222
+ if (typeof createDebug.init === "function") createDebug.init(debug);
223
+ return debug;
224
+ }
225
+ function extend(namespace, delimiter) {
226
+ const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
227
+ newDebug.log = this.log;
228
+ return newDebug;
229
+ }
230
+ /**
231
+ * Enables a debug mode by namespaces. This can include modes
232
+ * separated by a colon and wildcards.
233
+ *
234
+ * @param {String} namespaces
235
+ * @api public
236
+ */
237
+ function enable(namespaces) {
238
+ createDebug.save(namespaces);
239
+ createDebug.namespaces = namespaces;
240
+ createDebug.names = [];
241
+ createDebug.skips = [];
242
+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
243
+ for (const ns of split) if (ns[0] === "-") createDebug.skips.push(ns.slice(1));
244
+ else createDebug.names.push(ns);
245
+ }
246
+ /**
247
+ * Checks if the given string matches a namespace template, honoring
248
+ * asterisks as wildcards.
249
+ *
250
+ * @param {String} search
251
+ * @param {String} template
252
+ * @return {Boolean}
253
+ */
254
+ function matchesTemplate(search, template) {
255
+ let searchIndex = 0;
256
+ let templateIndex = 0;
257
+ let starIndex = -1;
258
+ let matchIndex = 0;
259
+ while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
260
+ starIndex = templateIndex;
261
+ matchIndex = searchIndex;
262
+ templateIndex++;
263
+ } else {
264
+ searchIndex++;
265
+ templateIndex++;
266
+ }
267
+ else if (starIndex !== -1) {
268
+ templateIndex = starIndex + 1;
269
+ matchIndex++;
270
+ searchIndex = matchIndex;
271
+ } else return false;
272
+ while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
273
+ return templateIndex === template.length;
274
+ }
275
+ /**
276
+ * Disable debug output.
277
+ *
278
+ * @return {String} namespaces
279
+ * @api public
280
+ */
281
+ function disable() {
282
+ const namespaces = [...createDebug.names, ...createDebug.skips.map((namespace) => "-" + namespace)].join(",");
283
+ createDebug.enable("");
284
+ return namespaces;
285
+ }
286
+ /**
287
+ * Returns true if the given mode name is enabled, false otherwise.
288
+ *
289
+ * @param {String} name
290
+ * @return {Boolean}
291
+ * @api public
292
+ */
293
+ function enabled(name) {
294
+ for (const skip of createDebug.skips) if (matchesTemplate(name, skip)) return false;
295
+ for (const ns of createDebug.names) if (matchesTemplate(name, ns)) return true;
296
+ return false;
297
+ }
298
+ /**
299
+ * Coerce `val`.
300
+ *
301
+ * @param {Mixed} val
302
+ * @return {Mixed}
303
+ * @api private
304
+ */
305
+ function coerce(val) {
306
+ if (val instanceof Error) return val.stack || val.message;
307
+ return val;
308
+ }
309
+ /**
310
+ * XXX DO NOT USE. This is a temporary stub function.
311
+ * XXX It WILL be removed in the next major release.
312
+ */
313
+ function destroy() {
314
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
315
+ }
316
+ createDebug.enable(createDebug.load());
317
+ return createDebug;
318
+ }
319
+ module.exports = setup;
320
+ }));
321
+ //#endregion
322
+ //#region ../../node_modules/debug/src/browser.js
323
+ var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
324
+ /**
325
+ * This is the web browser implementation of `debug()`.
326
+ */
327
+ exports.formatArgs = formatArgs;
328
+ exports.save = save;
329
+ exports.load = load;
330
+ exports.useColors = useColors;
331
+ exports.storage = localstorage();
332
+ exports.destroy = (() => {
333
+ let warned = false;
334
+ return () => {
335
+ if (!warned) {
336
+ warned = true;
337
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
338
+ }
339
+ };
340
+ })();
341
+ /**
342
+ * Colors.
343
+ */
344
+ exports.colors = [
345
+ "#0000CC",
346
+ "#0000FF",
347
+ "#0033CC",
348
+ "#0033FF",
349
+ "#0066CC",
350
+ "#0066FF",
351
+ "#0099CC",
352
+ "#0099FF",
353
+ "#00CC00",
354
+ "#00CC33",
355
+ "#00CC66",
356
+ "#00CC99",
357
+ "#00CCCC",
358
+ "#00CCFF",
359
+ "#3300CC",
360
+ "#3300FF",
361
+ "#3333CC",
362
+ "#3333FF",
363
+ "#3366CC",
364
+ "#3366FF",
365
+ "#3399CC",
366
+ "#3399FF",
367
+ "#33CC00",
368
+ "#33CC33",
369
+ "#33CC66",
370
+ "#33CC99",
371
+ "#33CCCC",
372
+ "#33CCFF",
373
+ "#6600CC",
374
+ "#6600FF",
375
+ "#6633CC",
376
+ "#6633FF",
377
+ "#66CC00",
378
+ "#66CC33",
379
+ "#9900CC",
380
+ "#9900FF",
381
+ "#9933CC",
382
+ "#9933FF",
383
+ "#99CC00",
384
+ "#99CC33",
385
+ "#CC0000",
386
+ "#CC0033",
387
+ "#CC0066",
388
+ "#CC0099",
389
+ "#CC00CC",
390
+ "#CC00FF",
391
+ "#CC3300",
392
+ "#CC3333",
393
+ "#CC3366",
394
+ "#CC3399",
395
+ "#CC33CC",
396
+ "#CC33FF",
397
+ "#CC6600",
398
+ "#CC6633",
399
+ "#CC9900",
400
+ "#CC9933",
401
+ "#CCCC00",
402
+ "#CCCC33",
403
+ "#FF0000",
404
+ "#FF0033",
405
+ "#FF0066",
406
+ "#FF0099",
407
+ "#FF00CC",
408
+ "#FF00FF",
409
+ "#FF3300",
410
+ "#FF3333",
411
+ "#FF3366",
412
+ "#FF3399",
413
+ "#FF33CC",
414
+ "#FF33FF",
415
+ "#FF6600",
416
+ "#FF6633",
417
+ "#FF9900",
418
+ "#FF9933",
419
+ "#FFCC00",
420
+ "#FFCC33"
421
+ ];
422
+ /**
423
+ * Currently only WebKit-based Web Inspectors, Firefox >= v31,
424
+ * and the Firebug extension (any Firefox version) are known
425
+ * to support "%c" CSS customizations.
426
+ *
427
+ * TODO: add a `localStorage` variable to explicitly enable/disable colors
428
+ */
429
+ function useColors() {
430
+ if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return true;
431
+ if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return false;
432
+ let m;
433
+ return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
434
+ }
435
+ /**
436
+ * Colorize log arguments if enabled.
437
+ *
438
+ * @api public
439
+ */
440
+ function formatArgs(args) {
441
+ args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
442
+ if (!this.useColors) return;
443
+ const c = "color: " + this.color;
444
+ args.splice(1, 0, c, "color: inherit");
445
+ let index = 0;
446
+ let lastC = 0;
447
+ args[0].replace(/%[a-zA-Z%]/g, (match) => {
448
+ if (match === "%%") return;
449
+ index++;
450
+ if (match === "%c") lastC = index;
451
+ });
452
+ args.splice(lastC, 0, c);
453
+ }
454
+ /**
455
+ * Invokes `console.debug()` when available.
456
+ * No-op when `console.debug` is not a "function".
457
+ * If `console.debug` is not available, falls back
458
+ * to `console.log`.
459
+ *
460
+ * @api public
461
+ */
462
+ exports.log = console.debug || console.log || (() => {});
463
+ /**
464
+ * Save `namespaces`.
465
+ *
466
+ * @param {String} namespaces
467
+ * @api private
468
+ */
469
+ function save(namespaces) {
470
+ try {
471
+ if (namespaces) exports.storage.setItem("debug", namespaces);
472
+ else exports.storage.removeItem("debug");
473
+ } catch (error) {}
474
+ }
475
+ /**
476
+ * Load `namespaces`.
477
+ *
478
+ * @return {String} returns the previously persisted debug modes
479
+ * @api private
480
+ */
481
+ function load() {
482
+ let r;
483
+ try {
484
+ r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
485
+ } catch (error) {}
486
+ if (!r && typeof process !== "undefined" && "env" in process) r = process.env.DEBUG;
487
+ return r;
488
+ }
489
+ /**
490
+ * Localstorage attempts to return the localstorage.
491
+ *
492
+ * This is necessary because safari throws
493
+ * when a user disables cookies/localstorage
494
+ * and you attempt to access it.
495
+ *
496
+ * @return {LocalStorage}
497
+ * @api private
498
+ */
499
+ function localstorage() {
500
+ try {
501
+ return localStorage;
502
+ } catch (error) {}
503
+ }
504
+ module.exports = require_common()(exports);
505
+ const { formatters } = module.exports;
506
+ /**
507
+ * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
508
+ */
509
+ formatters.j = function(v) {
510
+ try {
511
+ return JSON.stringify(v);
512
+ } catch (error) {
513
+ return "[UnexpectedJSONParseError]: " + error.message;
514
+ }
515
+ };
516
+ }));
517
+ //#endregion
518
+ //#region ../../node_modules/debug/src/node.js
519
+ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
520
+ /**
521
+ * Module dependencies.
522
+ */
523
+ const tty = __require("tty");
524
+ const util = __require("util");
525
+ /**
526
+ * This is the Node.js implementation of `debug()`.
527
+ */
528
+ exports.init = init;
529
+ exports.log = log;
530
+ exports.formatArgs = formatArgs;
531
+ exports.save = save;
532
+ exports.load = load;
533
+ exports.useColors = useColors;
534
+ exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
535
+ /**
536
+ * Colors.
537
+ */
538
+ exports.colors = [
539
+ 6,
540
+ 2,
541
+ 3,
542
+ 4,
543
+ 5,
544
+ 1
545
+ ];
546
+ try {
547
+ const supportsColor = __require("supports-color");
548
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports.colors = [
549
+ 20,
550
+ 21,
551
+ 26,
552
+ 27,
553
+ 32,
554
+ 33,
555
+ 38,
556
+ 39,
557
+ 40,
558
+ 41,
559
+ 42,
560
+ 43,
561
+ 44,
562
+ 45,
563
+ 56,
564
+ 57,
565
+ 62,
566
+ 63,
567
+ 68,
568
+ 69,
569
+ 74,
570
+ 75,
571
+ 76,
572
+ 77,
573
+ 78,
574
+ 79,
575
+ 80,
576
+ 81,
577
+ 92,
578
+ 93,
579
+ 98,
580
+ 99,
581
+ 112,
582
+ 113,
583
+ 128,
584
+ 129,
585
+ 134,
586
+ 135,
587
+ 148,
588
+ 149,
589
+ 160,
590
+ 161,
591
+ 162,
592
+ 163,
593
+ 164,
594
+ 165,
595
+ 166,
596
+ 167,
597
+ 168,
598
+ 169,
599
+ 170,
600
+ 171,
601
+ 172,
602
+ 173,
603
+ 178,
604
+ 179,
605
+ 184,
606
+ 185,
607
+ 196,
608
+ 197,
609
+ 198,
610
+ 199,
611
+ 200,
612
+ 201,
613
+ 202,
614
+ 203,
615
+ 204,
616
+ 205,
617
+ 206,
618
+ 207,
619
+ 208,
620
+ 209,
621
+ 214,
622
+ 215,
623
+ 220,
624
+ 221
625
+ ];
626
+ } catch (error) {}
627
+ /**
628
+ * Build up the default `inspectOpts` object from the environment variables.
629
+ *
630
+ * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
631
+ */
632
+ exports.inspectOpts = Object.keys(process.env).filter((key) => {
633
+ return /^debug_/i.test(key);
634
+ }).reduce((obj, key) => {
635
+ const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
636
+ return k.toUpperCase();
637
+ });
638
+ let val = process.env[key];
639
+ if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
640
+ else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
641
+ else if (val === "null") val = null;
642
+ else val = Number(val);
643
+ obj[prop] = val;
644
+ return obj;
645
+ }, {});
646
+ /**
647
+ * Is stdout a TTY? Colored output is enabled when `true`.
648
+ */
649
+ function useColors() {
650
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
651
+ }
652
+ /**
653
+ * Adds ANSI color escape codes if enabled.
654
+ *
655
+ * @api public
656
+ */
657
+ function formatArgs(args) {
658
+ const { namespace: name, useColors } = this;
659
+ if (useColors) {
660
+ const c = this.color;
661
+ const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
662
+ const prefix = ` ${colorCode};1m${name} \u001B[0m`;
663
+ args[0] = prefix + args[0].split("\n").join("\n" + prefix);
664
+ args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
665
+ } else args[0] = getDate() + name + " " + args[0];
666
+ }
667
+ function getDate() {
668
+ if (exports.inspectOpts.hideDate) return "";
669
+ return (/* @__PURE__ */ new Date()).toISOString() + " ";
670
+ }
671
+ /**
672
+ * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
673
+ */
674
+ function log(...args) {
675
+ return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
676
+ }
677
+ /**
678
+ * Save `namespaces`.
679
+ *
680
+ * @param {String} namespaces
681
+ * @api private
682
+ */
683
+ function save(namespaces) {
684
+ if (namespaces) process.env.DEBUG = namespaces;
685
+ else delete process.env.DEBUG;
686
+ }
687
+ /**
688
+ * Load `namespaces`.
689
+ *
690
+ * @return {String} returns the previously persisted debug modes
691
+ * @api private
692
+ */
693
+ function load() {
694
+ return process.env.DEBUG;
695
+ }
696
+ /**
697
+ * Init logic for `debug` instances.
698
+ *
699
+ * Create a new `inspectOpts` object in case `useColors` is set
700
+ * differently for a particular `debug` instance.
701
+ */
702
+ function init(debug) {
703
+ debug.inspectOpts = {};
704
+ const keys = Object.keys(exports.inspectOpts);
705
+ for (let i = 0; i < keys.length; i++) debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
706
+ }
707
+ module.exports = require_common()(exports);
708
+ const { formatters } = module.exports;
709
+ /**
710
+ * Map %o to `util.inspect()`, all on a single line.
711
+ */
712
+ formatters.o = function(v) {
713
+ this.inspectOpts.colors = this.useColors;
714
+ return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
715
+ };
716
+ /**
717
+ * Map %O to `util.inspect()`, allowing multiple lines if needed.
718
+ */
719
+ formatters.O = function(v) {
720
+ this.inspectOpts.colors = this.useColors;
721
+ return util.inspect(v, this.inspectOpts);
722
+ };
723
+ }));
724
+ //#endregion
725
+ //#region ../../node_modules/debug/src/index.js
726
+ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
727
+ /**
728
+ * Detect Electron renderer / nwjs process, which is node, but we should
729
+ * treat as a browser.
730
+ */
731
+ if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) module.exports = require_browser();
732
+ else module.exports = require_node();
733
+ }));
734
+ //#endregion
735
+ //#region ../../node_modules/@kwsites/file-exists/dist/src/index.js
736
+ var require_src = /* @__PURE__ */ __commonJSMin(((exports) => {
737
+ var __importDefault = exports && exports.__importDefault || function(mod) {
738
+ return mod && mod.__esModule ? mod : { "default": mod };
739
+ };
740
+ Object.defineProperty(exports, "__esModule", { value: true });
741
+ const fs_1 = __require("fs");
742
+ const log = __importDefault(require_src$1()).default("@kwsites/file-exists");
743
+ function check(path, isFile, isDirectory) {
744
+ log(`checking %s`, path);
745
+ try {
746
+ const stat = fs_1.statSync(path);
747
+ if (stat.isFile() && isFile) {
748
+ log(`[OK] path represents a file`);
749
+ return true;
750
+ }
751
+ if (stat.isDirectory() && isDirectory) {
752
+ log(`[OK] path represents a directory`);
753
+ return true;
754
+ }
755
+ log(`[FAIL] path represents something other than a file or directory`);
756
+ return false;
757
+ } catch (e) {
758
+ if (e.code === "ENOENT") {
759
+ log(`[FAIL] path is not accessible: %o`, e);
760
+ return false;
761
+ }
762
+ log(`[FATAL] %o`, e);
763
+ throw e;
764
+ }
765
+ }
766
+ /**
767
+ * Synchronous validation of a path existing either as a file or as a directory.
768
+ *
769
+ * @param {string} path The path to check
770
+ * @param {number} type One or both of the exported numeric constants
771
+ */
772
+ function exists(path, type = exports.READABLE) {
773
+ return check(path, (type & exports.FILE) > 0, (type & exports.FOLDER) > 0);
774
+ }
775
+ exports.exists = exists;
776
+ /**
777
+ * Constant representing a file
778
+ */
779
+ exports.FILE = 1;
780
+ /**
781
+ * Constant representing a folder
782
+ */
783
+ exports.FOLDER = 2;
784
+ /**
785
+ * Constant representing either a file or a folder
786
+ */
787
+ exports.READABLE = exports.FILE + exports.FOLDER;
788
+ }));
789
+ //#endregion
790
+ //#region ../../node_modules/@kwsites/file-exists/dist/index.js
791
+ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
792
+ function __export(m) {
793
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
794
+ }
795
+ Object.defineProperty(exports, "__esModule", { value: true });
796
+ __export(require_src());
797
+ }));
798
+ //#endregion
799
+ export { require_src$1 as n, require_dist as t };