@mcesystems/tool-debug 1.0.62 → 1.0.63

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/README.md ADDED
@@ -0,0 +1,106 @@
1
+ # @mcesystems/tool-debug
2
+
3
+ Small logging helpers built on top of `debug`, with consistent namespaces and colors.
4
+
5
+ ## Install
6
+
7
+ ```
8
+ pnpm add @mcesystems/tool-debug
9
+ ```
10
+
11
+ ## Quick start
12
+
13
+ ```
14
+ import {
15
+ logNamespace,
16
+ setLogLevel,
17
+ logInfo,
18
+ logTask,
19
+ logWarning,
20
+ logErrorObject,
21
+ } from "@mcesystems/tool-debug";
22
+
23
+ logNamespace("usb-listener");
24
+ setLogLevel("info");
25
+
26
+ logInfo("Starting USB listener");
27
+ logTask("Scanning devices");
28
+ logWarning("Device response is slow");
29
+
30
+ try {
31
+ // ... work
32
+ } catch (error) {
33
+ logErrorObject(error, "USB listener failed");
34
+ }
35
+ ```
36
+
37
+ ## Log levels
38
+
39
+ `setLogLevel` toggles which loggers are enabled:
40
+
41
+ - `info`: enables `info`, `task`, `error`, `warning`
42
+ - `debug`: enables all loggers
43
+ - `none`: disables all loggers
44
+
45
+ If you prefer the default `debug` behavior, you can skip `setLogLevel` and use the
46
+ `DEBUG` environment variable (for example `DEBUG=usb-listener:*`) to control output.
47
+
48
+ ## Namespaces
49
+
50
+ `logNamespace("usb-listener")` sets all loggers to `usb-listener:<type>`, so your
51
+ `DEBUG` filter can target them consistently.
52
+
53
+ ## Custom colors
54
+
55
+ ```
56
+ import { setColors, printColors } from "@mcesystems/tool-debug";
57
+
58
+ setColors("info", "33");
59
+ setColors("error", "196");
60
+
61
+ // Optional helper to preview 0-255 color codes
62
+ printColors();
63
+ ```
64
+
65
+ ## Helpers
66
+
67
+ ```
68
+ import { logHeader, logDataObject, logErrorObject } from "@mcesystems/tool-debug";
69
+
70
+ logHeader("USB session");
71
+ logDataObject("Detected devices", { count: 2, ids: ["abc", "def"] });
72
+ logErrorObject(new Error("Device not found"));
73
+ ```
74
+
75
+ Example output (format varies by terminal):
76
+
77
+ ```
78
+ usb-listener:info ================================================================================
79
+ usb-listener:info USB session
80
+ usb-listener:info ================================================================================
81
+ ```
82
+
83
+ ```
84
+ usb-listener:detail ================================================================================
85
+ usb-listener:detail *Detected devices* <anonymous>
86
+ usb-listener:detail ================================================================================
87
+ usb-listener:detail
88
+ usb-listener:detail # count: 2
89
+ usb-listener:detail # ids:
90
+ usb-listener:detail # 0: abc
91
+ usb-listener:detail # 1: def
92
+ usb-listener:detail
93
+ usb-listener:detail ================================================================================
94
+ ```
95
+
96
+ ```
97
+ usb-listener:error ================================================================================
98
+ usb-listener:error Device not found
99
+ usb-listener:error ================================================================================
100
+ usb-listener:error Error Message:
101
+ usb-listener:error Device not found
102
+ usb-listener:error Error Stack:
103
+ usb-listener:error Error: Device not found
104
+ usb-listener:error at ...
105
+ usb-listener:error ================================================================================
106
+ ```
@@ -140,9 +140,9 @@ var require_ms = __commonJS({
140
140
  }
141
141
  });
142
142
 
143
- // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js
143
+ // ../../node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/common.js
144
144
  var require_common = __commonJS({
145
- "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js"(exports, module) {
145
+ "../../node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/common.js"(exports, module) {
146
146
  function setup(env) {
147
147
  createDebug2.debug = createDebug2;
148
148
  createDebug2.default = createDebug2;
@@ -317,9 +317,9 @@ var require_common = __commonJS({
317
317
  }
318
318
  });
319
319
 
320
- // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js
320
+ // ../../node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/browser.js
321
321
  var require_browser = __commonJS({
322
- "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js"(exports, module) {
322
+ "../../node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/browser.js"(exports, module) {
323
323
  exports.formatArgs = formatArgs;
324
324
  exports.save = save;
325
325
  exports.load = load;
@@ -493,42 +493,121 @@ var logInfo = (0, import_debug.default)("info");
493
493
  var logTask = (0, import_debug.default)("task");
494
494
  var logError = (0, import_debug.default)("error");
495
495
  var logDetail = (0, import_debug.default)("detail");
496
+ var logDebug = (0, import_debug.default)("debug");
497
+ var logWarning = (0, import_debug.default)("warning");
498
+ var logColor = (0, import_debug.default)("color");
499
+ logInfo.color = "19";
500
+ logTask.color = "25";
501
+ logError.color = "1";
502
+ logDetail.color = "199";
503
+ logWarning.color = "186";
504
+ logDebug.color = "211";
505
+ logColor.enabled = true;
496
506
  function logNamespace(namespace) {
497
- logInfo.namespace = `${namespace}:INFO`;
498
- logTask.namespace = `${namespace}:TASK`;
499
- logError.namespace = `${namespace}:ERROR`;
500
- logDetail.namespace = `${namespace}:DETAIL`;
501
- logInfo.color = "45";
502
- logTask.color = "40";
503
- logError.color = "160";
504
- logDetail.color = "240";
507
+ logInfo.namespace = `${namespace}:info`;
508
+ logTask.namespace = `${namespace}:task`;
509
+ logError.namespace = `${namespace}:error`;
510
+ logDetail.namespace = `${namespace}:detail`;
511
+ logWarning.namespace = `${namespace}:warning`;
512
+ logDebug.namespace = `${namespace}:debug`;
505
513
  }
506
- function logDataDetail(data, prefix = "") {
514
+ function setLogLevel(level) {
515
+ switch (level) {
516
+ case "info":
517
+ logInfo.enabled = true;
518
+ logTask.enabled = true;
519
+ logError.enabled = true;
520
+ logWarning.enabled = true;
521
+ logDetail.enabled = false;
522
+ logDebug.enabled = false;
523
+ break;
524
+ case "debug":
525
+ logInfo.enabled = true;
526
+ logTask.enabled = true;
527
+ logError.enabled = true;
528
+ logWarning.enabled = true;
529
+ logDetail.enabled = true;
530
+ logDebug.enabled = true;
531
+ break;
532
+ case "none":
533
+ logInfo.enabled = false;
534
+ logTask.enabled = false;
535
+ logError.enabled = false;
536
+ logWarning.enabled = false;
537
+ logDetail.enabled = false;
538
+ logDebug.enabled = false;
539
+ break;
540
+ }
541
+ }
542
+ function setColors(type, color) {
543
+ switch (type) {
544
+ case "info":
545
+ logInfo.color = color;
546
+ break;
547
+ case "task":
548
+ logTask.color = color;
549
+ break;
550
+ case "error":
551
+ logError.color = color;
552
+ break;
553
+ case "detail":
554
+ logDetail.color = color;
555
+ break;
556
+ case "warning":
557
+ logWarning.color = color;
558
+ break;
559
+ case "debug":
560
+ logDebug.color = color;
561
+ break;
562
+ default:
563
+ throw new Error(`Invalid log type: ${type}`);
564
+ }
565
+ }
566
+ function printColors() {
567
+ for (let i = 0; i < 256; i++) {
568
+ logColor.color = `${i}`;
569
+ logColor(`${i}: ${i}`);
570
+ }
571
+ }
572
+ function logDataDetail(data, prefix = "# ") {
507
573
  if (data === null || data === void 0) {
508
- logDetail(`${prefix}<null or undefined>`);
509
- return;
574
+ return `${prefix}<null or undefined>`;
510
575
  }
511
576
  if (typeof data !== "object") {
512
- logDetail(`${prefix}${String(data)}`);
513
- return;
577
+ return `${prefix}${String(data)}`;
514
578
  }
515
579
  const keys = Object.keys(data);
580
+ let result = "";
516
581
  for (const key of keys) {
517
- const value = data[key];
518
- if (value === null || value === void 0) {
519
- logDetail(`${prefix}${key}: <${value === null ? "null" : "undefined"}>`);
520
- } else if (typeof value === "object") {
521
- logDetail(`${prefix}${key}:`);
522
- logDataDetail(value, `${prefix} `);
523
- } else {
524
- logDetail(`${prefix}${key}: ${value}`);
582
+ result += `${prefix}${key}: `;
583
+ if (key in data) {
584
+ let dataKey = key;
585
+ if (key in data) {
586
+ dataKey = key;
587
+ const value = data[dataKey];
588
+ if (value === null || value === void 0) {
589
+ result += `<${value === null ? "null" : "undefined"}>
590
+ `;
591
+ } else if (typeof value === "object") {
592
+ result += `
593
+ ${logDataDetail(value, `${prefix} `)}
594
+ `;
595
+ } else {
596
+ result += `${value}
597
+ `;
598
+ }
599
+ }
525
600
  }
526
601
  }
602
+ return result.trim();
603
+ }
604
+ function header(title, padding = 0) {
605
+ return `${" ".repeat(padding)}${"=".repeat(80)}
606
+ ${" ".repeat(40 - title.length / 2)}${title}
607
+ ${" ".repeat(padding)}${"=".repeat(80)}`;
527
608
  }
528
609
  function logHeader(title) {
529
- logInfo("=".repeat(80));
530
- logInfo(title);
531
- logInfo("=".repeat(80));
610
+ logInfo(`${header(title, 2)}`);
532
611
  }
533
612
  function logDataObject(title, ...args) {
534
613
  var _a;
@@ -540,44 +619,38 @@ function logDataObject(title, ...args) {
540
619
  const functionName = functionMatch ? functionMatch[1] : "<anonymous>";
541
620
  callerDetails = `${functionName}`;
542
621
  }
543
- logInfo("=".repeat(80));
544
- logInfo(
545
- `${" ".repeat(Math.max(0, 40 - (title.length + callerDetails.length) / 2 - 2))} *${title}* ${callerDetails}`
546
- );
547
- for (const arg of args) {
548
- logDetail("");
549
- logDataDetail(arg);
550
- logDetail("");
551
- }
552
- logInfo("=".repeat(80));
622
+ logDetail(`${header(`*${title}* ${callerDetails}`)}
623
+ ${args.reduce((acc, arg) => `${acc}
624
+ ${logDataDetail(arg)}`, "")}
625
+
626
+ ${"=".repeat(80)}`);
553
627
  }
554
628
  function logErrorObject(error, extraDetails) {
555
629
  if (error instanceof Error) {
556
- logError("=".repeat(80));
557
- logError("Error Message:");
558
- extraDetails && logError(extraDetails);
559
- logError(error.message);
560
- logError("Error Stack:");
561
- logError(error.stack);
562
- logError("");
563
- logError("=".repeat(80));
630
+ logError(`${extraDetails ? header(extraDetails, 1) : header(error.message, 1)}
631
+ Error Message:
632
+ ${error.message}
633
+ Error Stack:
634
+ ${error.stack}
635
+ ${"=".repeat(80)}`);
564
636
  } else {
565
- logError(error);
566
- logError("=".repeat(80));
567
- logError("Error Message:");
568
- extraDetails && logError(extraDetails);
569
- logError(String(error));
570
- logError("=".repeat(80));
637
+ logError(`${extraDetails ? header(extraDetails, 1) : header(String(error), 1)}
638
+ ${"=".repeat(80)}`);
571
639
  }
572
640
  }
573
641
  export {
574
642
  logDataObject,
643
+ logDebug,
575
644
  logDetail,
576
645
  logError,
577
646
  logErrorObject,
578
647
  logHeader,
579
648
  logInfo,
580
649
  logNamespace,
581
- logTask
650
+ logTask,
651
+ logWarning,
652
+ printColors,
653
+ setColors,
654
+ setLogLevel
582
655
  };
583
656
  //# sourceMappingURL=index.browser.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js", "../../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js", "../../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js", "../src/debug.ts"],
4
- "sourcesContent": ["/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n 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(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n", "\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '')\n\t\t\t.trim()\n\t\t\t.replace(/\\s+/g, ',')\n\t\t\t.split(',')\n\t\t\t.filter(Boolean);\n\n\t\tfor (const ns of split) {\n\t\t\tif (ns[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(ns.slice(1));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(ns);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Checks if the given string matches a namespace template, honoring\n\t * asterisks as wildcards.\n\t *\n\t * @param {String} search\n\t * @param {String} template\n\t * @return {Boolean}\n\t */\n\tfunction matchesTemplate(search, template) {\n\t\tlet searchIndex = 0;\n\t\tlet templateIndex = 0;\n\t\tlet starIndex = -1;\n\t\tlet matchIndex = 0;\n\n\t\twhile (searchIndex < search.length) {\n\t\t\tif (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {\n\t\t\t\t// Match character or proceed with wildcard\n\t\t\t\tif (template[templateIndex] === '*') {\n\t\t\t\t\tstarIndex = templateIndex;\n\t\t\t\t\tmatchIndex = searchIndex;\n\t\t\t\t\ttemplateIndex++; // Skip the '*'\n\t\t\t\t} else {\n\t\t\t\t\tsearchIndex++;\n\t\t\t\t\ttemplateIndex++;\n\t\t\t\t}\n\t\t\t} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition\n\t\t\t\t// Backtrack to the last '*' and try to match more characters\n\t\t\t\ttemplateIndex = starIndex + 1;\n\t\t\t\tmatchIndex++;\n\t\t\t\tsearchIndex = matchIndex;\n\t\t\t} else {\n\t\t\t\treturn false; // No match\n\t\t\t}\n\t\t}\n\n\t\t// Handle trailing '*' in template\n\t\twhile (templateIndex < template.length && template[templateIndex] === '*') {\n\t\t\ttemplateIndex++;\n\t\t}\n\n\t\treturn templateIndex === template.length;\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names,\n\t\t\t...createDebug.skips.map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tfor (const skip of createDebug.skips) {\n\t\t\tif (matchesTemplate(name, skip)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (const ns of createDebug.names) {\n\t\t\tif (matchesTemplate(name, ns)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n", "/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\tlet m;\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\t// eslint-disable-next-line no-return-assign\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)) && parseInt(m[1], 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n", "import createDebug from \"debug\";\n\nexport const logInfo = createDebug(\"info\");\nexport const logTask = createDebug(\"task\");\nexport const logError = createDebug(\"error\");\nexport const logDetail = createDebug(\"detail\");\n\nexport function logNamespace(namespace: string) {\n\tlogInfo.namespace = `${namespace}:INFO`;\n\tlogTask.namespace = `${namespace}:TASK`;\n\tlogError.namespace = `${namespace}:ERROR`;\n\tlogDetail.namespace = `${namespace}:DETAIL`;\n\n\tlogInfo.color = \"45\";\n\tlogTask.color = \"40\";\n\tlogError.color = \"160\";\n\tlogDetail.color = \"240\";\n}\n\nfunction logDataDetail(data: Record<string, unknown>, prefix = \"\") {\n\tif (data === null || data === undefined) {\n\t\tlogDetail(`${prefix}<null or undefined>`);\n\t\treturn;\n\t}\n\tif (typeof data !== \"object\") {\n\t\tlogDetail(`${prefix}${String(data)}`);\n\t\treturn;\n\t}\n\tconst keys = Object.keys(data);\n\tfor (const key of keys) {\n\t\tconst value = data[key];\n\t\tif (value === null || value === undefined) {\n\t\t\tlogDetail(`${prefix}${key}: <${value === null ? \"null\" : \"undefined\"}>`);\n\t\t} else if (typeof value === \"object\") {\n\t\t\tlogDetail(`${prefix}${key}:`);\n\t\t\tlogDataDetail(value as Record<string, unknown>, `${prefix} `);\n\t\t} else {\n\t\t\tlogDetail(`${prefix}${key}: ${value}`);\n\t\t}\n\t}\n}\n\nexport function logHeader(title: string) {\n\tlogInfo(\"=\".repeat(80));\n\tlogInfo(title);\n\tlogInfo(\"=\".repeat(80));\n}\n\nexport function logDataObject(title: string, ...args: Record<string, unknown>[]) {\n\tconst stack = new Error().stack?.split(\"\\n\")[2] || \"\";\n\tconst stackMatch = stack.match(/\\((.*):(\\d+):(\\d+)\\)$/) || stack.match(/at (.*):(\\d+):(\\d+)$/);\n\tlet callerDetails = \"\";\n\tif (stackMatch) {\n\t\tconst functionMatch = stack.match(/at (.+) \\(/);\n\t\tconst functionName = functionMatch ? functionMatch[1] : \"<anonymous>\";\n\t\tcallerDetails = `${functionName}`;\n\t}\n\tlogInfo(\"=\".repeat(80));\n\tlogInfo(\n\t\t`${\" \".repeat(Math.max(0, 40 - (title.length + callerDetails.length) / 2 - 2))} *${title}* ${callerDetails}`\n\t);\n\tfor (const arg of args) {\n\t\tlogDetail(\"\");\n\t\tlogDataDetail(arg);\n\t\tlogDetail(\"\");\n\t}\n\tlogInfo(\"=\".repeat(80));\n}\n\nexport function logErrorObject(error: unknown, extraDetails?: string) {\n\tif (error instanceof Error) {\n\t\tlogError(\"=\".repeat(80));\n\t\tlogError(\"Error Message:\");\n\t\textraDetails && logError(extraDetails);\n\t\tlogError(error.message);\n\t\tlogError(\"Error Stack:\");\n\t\tlogError(error.stack);\n\t\tlogError(\"\");\n\t\tlogError(\"=\".repeat(80));\n\t} else {\n\t\tlogError(error);\n\t\tlogError(\"=\".repeat(80));\n\t\tlogError(\"Error Message:\");\n\t\textraDetails && logError(extraDetails);\n\t\tlogError(String(error));\n\t\tlogError(\"=\".repeat(80));\n\t}\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAIA,QAAI,IAAI;AACR,QAAI,IAAI,IAAI;AACZ,QAAI,IAAI,IAAI;AACZ,QAAI,IAAI,IAAI;AACZ,QAAI,IAAI,IAAI;AACZ,QAAI,IAAI,IAAI;AAgBZ,WAAO,UAAU,SA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M,MAAM,YAAY;AAC9C,UAAM,eAAe,gBAAgB,cAAc,CAAC,IAAI;AACxD,oBAAgB,GAAG,YAAY;AAAA,EAChC;AACA,UAAQ,IAAI,OAAO,EAAE,CAAC;AACtB;AAAA,IACC,GAAG,IAAI,OAAO,KAAK,IAAI,GAAG,MAAM,MAAM,SAAS,cAAc,UAAU,IAAI,CAAC,CAAC,CAAC,KAAK,KAAK,KAAK,aAAa;AAAA,EAC3G;AACA,aAAW,OAAO,MAAM;AACvB,cAAU,EAAE;AACZ,kBAAc,GAAG;AACjB,cAAU,EAAE;AAAA,EACb;AACA,UAAQ,IAAI,OAAO,EAAE,CAAC;AACvB;AAEO,SAAS,eAAe,OAAgB,cAAuB;AACrE,MAAI,iBAAiB,OAAO;AAC3B,aAAS,IAAI,OAAO,EAAE,CAAC;AACvB,aAAS,gBAAgB;AACzB,oBAAgB,SAAS,YAAY;AACrC,aAAS,MAAM,OAAO;AACtB,aAAS,cAAc;AACvB,aAAS,MAAM,KAAK;AACpB,aAAS,EAAE;AACX,aAAS,IAAI,OAAO,EAAE,CAAC;AAAA,EACxB,OAAO;AACN,aAAS,KAAK;AACd,aAAS,IAAI,OAAO,EAAE,CAAC;AACvB,aAAS,gBAAgB;AACzB,oBAAgB,SAAS,YAAY;AACrC,aAAS,OAAO,KAAK,CAAC;AACtB,aAAS,IAAI,OAAO,EAAE,CAAC;AAAA,EACxB;AACD;",
3
+ "sources": ["../../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js", "../../../node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/common.js", "../../../node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/browser.js", "../src/debug.ts"],
4
+ "sourcesContent": ["/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n 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(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n", "\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '')\n\t\t\t.trim()\n\t\t\t.replace(/\\s+/g, ',')\n\t\t\t.split(',')\n\t\t\t.filter(Boolean);\n\n\t\tfor (const ns of split) {\n\t\t\tif (ns[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(ns.slice(1));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(ns);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Checks if the given string matches a namespace template, honoring\n\t * asterisks as wildcards.\n\t *\n\t * @param {String} search\n\t * @param {String} template\n\t * @return {Boolean}\n\t */\n\tfunction matchesTemplate(search, template) {\n\t\tlet searchIndex = 0;\n\t\tlet templateIndex = 0;\n\t\tlet starIndex = -1;\n\t\tlet matchIndex = 0;\n\n\t\twhile (searchIndex < search.length) {\n\t\t\tif (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {\n\t\t\t\t// Match character or proceed with wildcard\n\t\t\t\tif (template[templateIndex] === '*') {\n\t\t\t\t\tstarIndex = templateIndex;\n\t\t\t\t\tmatchIndex = searchIndex;\n\t\t\t\t\ttemplateIndex++; // Skip the '*'\n\t\t\t\t} else {\n\t\t\t\t\tsearchIndex++;\n\t\t\t\t\ttemplateIndex++;\n\t\t\t\t}\n\t\t\t} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition\n\t\t\t\t// Backtrack to the last '*' and try to match more characters\n\t\t\t\ttemplateIndex = starIndex + 1;\n\t\t\t\tmatchIndex++;\n\t\t\t\tsearchIndex = matchIndex;\n\t\t\t} else {\n\t\t\t\treturn false; // No match\n\t\t\t}\n\t\t}\n\n\t\t// Handle trailing '*' in template\n\t\twhile (templateIndex < template.length && template[templateIndex] === '*') {\n\t\t\ttemplateIndex++;\n\t\t}\n\n\t\treturn templateIndex === template.length;\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names,\n\t\t\t...createDebug.skips.map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tfor (const skip of createDebug.skips) {\n\t\t\tif (matchesTemplate(name, skip)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (const ns of createDebug.names) {\n\t\t\tif (matchesTemplate(name, ns)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n", "/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\tlet m;\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\t// eslint-disable-next-line no-return-assign\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)) && parseInt(m[1], 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n", "import createDebug from \"debug\";\nimport type { LogsTypes } from \"../types/log\";\n\nexport const logInfo = createDebug(\"info\");\nexport const logTask = createDebug(\"task\");\nexport const logError = createDebug(\"error\");\nexport const logDetail = createDebug(\"detail\");\nexport const logDebug = createDebug(\"debug\");\nexport const logWarning = createDebug(\"warning\");\nconst logColor = createDebug(\"color\");\nlogInfo.color = \"19\"; // Purple\nlogTask.color = \"25\"; // Blue\nlogError.color = \"1\"; // Red\nlogDetail.color = \"199\"; // Pink\nlogWarning.color = \"186\"; // Yellow\nlogDebug.color = \"211\"; // Pink/Orange\n\nlogColor.enabled = true;\n\nexport function logNamespace(namespace: string) {\n\tlogInfo.namespace = `${namespace}:info`;\n\tlogTask.namespace = `${namespace}:task`;\n\tlogError.namespace = `${namespace}:error`;\n\tlogDetail.namespace = `${namespace}:detail`;\n\tlogWarning.namespace = `${namespace}:warning`;\n\tlogDebug.namespace = `${namespace}:debug`;\n}\n\nexport function setLogLevel(level: \"info\" | \"debug\" | \"none\") {\n\tswitch (level) {\n\t\tcase \"info\":\n\t\t\tlogInfo.enabled = true;\n\t\t\tlogTask.enabled = true;\n\t\t\tlogError.enabled = true;\n\t\t\tlogWarning.enabled = true;\n\t\t\tlogDetail.enabled = false;\n\t\t\tlogDebug.enabled = false;\n\t\t\tbreak;\n\t\tcase \"debug\":\n\t\t\tlogInfo.enabled = true;\n\t\t\tlogTask.enabled = true;\n\t\t\tlogError.enabled = true;\n\t\t\tlogWarning.enabled = true;\n\t\t\tlogDetail.enabled = true;\n\t\t\tlogDebug.enabled = true;\n\t\t\tbreak;\n\t\tcase \"none\":\n\t\t\tlogInfo.enabled = false;\n\t\t\tlogTask.enabled = false;\n\t\t\tlogError.enabled = false;\n\t\t\tlogWarning.enabled = false;\n\t\t\tlogDetail.enabled = false;\n\t\t\tlogDebug.enabled = false;\n\t\t\tbreak;\n\t}\n}\n\nexport function setColors(type: LogsTypes, color: string) {\n\tswitch (type) {\n\t\tcase \"info\":\n\t\t\tlogInfo.color = color;\n\t\t\tbreak;\n\t\tcase \"task\":\n\t\t\tlogTask.color = color;\n\t\t\tbreak;\n\t\tcase \"error\":\n\t\t\tlogError.color = color;\n\t\t\tbreak;\n\t\tcase \"detail\":\n\t\t\tlogDetail.color = color;\n\t\t\tbreak;\n\t\tcase \"warning\":\n\t\t\tlogWarning.color = color;\n\t\t\tbreak;\n\t\tcase \"debug\":\n\t\t\tlogDebug.color = color;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new Error(`Invalid log type: ${type}`);\n\t}\n}\n\nexport function printColors() {\n\tfor (let i = 0; i < 256; i++) {\n\t\tlogColor.color = `${i}`;\n\t\tlogColor(`${i}: ${i}`);\n\t}\n}\n\nfunction logDataDetail(data: unknown, prefix = \"# \"): string {\n\tif (data === null || data === undefined) {\n\t\treturn `${prefix}<null or undefined>`;\n\t}\n\tif (typeof data !== \"object\") {\n\t\treturn `${prefix}${String(data)}`;\n\t}\n\tconst keys = Object.keys(data);\n\tlet result = \"\";\n\tfor (const key of keys) {\n\t\tresult += `${prefix}${key}: `;\n\t\tif (key in data) {\n\t\t\tlet dataKey: keyof typeof data = key as keyof typeof data;\n\t\t\tif (key in data) {\n\t\t\t\tdataKey = key as keyof typeof data;\n\t\t\t\tconst value = data[dataKey];\n\t\t\t\tif (value === null || value === undefined) {\n\t\t\t\t\tresult += `<${value === null ? \"null\" : \"undefined\"}>\n`;\n\t\t\t\t} else if (typeof value === \"object\") {\n\t\t\t\t\tresult += `\n${logDataDetail(value, `${prefix} `)}\n`;\n\t\t\t\t} else {\n\t\t\t\t\tresult += `${value}\n`;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn result.trim();\n}\n\nfunction header(title: string, padding = 0) {\n\treturn `${\" \".repeat(padding)}${\"=\".repeat(80)}\n${\" \".repeat(40 - title.length / 2)}${title}\n${\" \".repeat(padding)}${\"=\".repeat(80)}`;\n}\n\nexport function logHeader(title: string) {\n\tlogInfo(`${header(title, 2)}`);\n}\n\nexport function logDataObject(title: string, ...args: Record<string, unknown>[]) {\n\tconst stack = new Error().stack?.split(\"\\n\")[2] || \"\";\n\tconst stackMatch = stack.match(/\\((.*):(\\d+):(\\d+)\\)$/) || stack.match(/at (.*):(\\d+):(\\d+)$/);\n\tlet callerDetails = \"\";\n\tif (stackMatch) {\n\t\tconst functionMatch = stack.match(/at (.+) \\(/);\n\t\tconst functionName = functionMatch ? functionMatch[1] : \"<anonymous>\";\n\t\tcallerDetails = `${functionName}`;\n\t}\n\tlogDetail(`${header(`*${title}* ${callerDetails}`)}\n${args.reduce((acc, arg) => `${acc}\\n${logDataDetail(arg as Record<string, unknown>)}`, \"\")}\n\n${\"=\".repeat(80)}`);\n}\n\nexport function logErrorObject(error: unknown, extraDetails?: string) {\n\tif (error instanceof Error) {\n\t\tlogError(`${extraDetails ? header(extraDetails, 1) : header(error.message, 1)}\n Error Message:\n ${error.message}\n Error Stack:\n ${error.stack}\n ${\"=\".repeat(80)}`);\n\t} else {\n\t\tlogError(`${extraDetails ? header(extraDetails, 1) : header(String(error), 1)}\n ${\"=\".repeat(80)}`);\n\t}\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAIA,QAAI,IAAI;AACR,QAAI,IAAI,IAAI;AACZ,QAAI,IAAI,IAAI;AACZ,QAAI,IAAI,IAAI;AACZ,QAAI,IAAI,IAAI;AACZ,QAAI,IAAI,IAAI;AAgBZ,WAAO,UAAU,SAAU,KAAK,SAAS;AACvC,gBAAU,WAAW,CAAC;AACtB,UAAI,OAAO,OAAO;AAClB,UAAI,SAAS,YAAY,IAAI,SAAS,GAAG;AACvC,eAAO,MAAM,GAAG;AAAA,MAClB,WAAW,SAAS,YAAY,SAAS,GAAG,GAAG;AAC7C,eAAO,QAAQ,OAAO,QAAQ,GAAG,IAAI,SAAS,GAAG;AAAA,MACnD;AACA,YAAM,IAAI;AAAA,QACR,0DACE,KAAK,UAAU,GAAG;AAAA,MACtB;AAAA,IACF;AAUA,aAAS,MAAM,KAAK;AAClB,YAAM,OAAO,GAAG;AAChB,UAAI,IAAI,SAAS,KAAK;AACpB;AAAA,MACF;AACA,UAAI,QAAQ,mIAAmI;AAAA,QAC7I;AAAA,MACF;AACA,UAAI,CAAC,OAAO;AACV;AAAA,MACF;AACA,U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