@camstack/system 1.2.414 → 1.2.416

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.
Files changed (92) hide show
  1. package/dist/addon-runner.js +1 -1
  2. package/dist/addon-runner.mjs +1 -1
  3. package/dist/addon-utils.js +1 -1
  4. package/dist/addon-utils.mjs +1 -1
  5. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  6. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  7. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  8. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  9. package/dist/builtins/alerts/alerts.addon.js +1 -1
  10. package/dist/builtins/alerts/alerts.addon.mjs +1 -1
  11. package/dist/builtins/autotrack/index.js +1 -1
  12. package/dist/builtins/autotrack/index.mjs +1 -1
  13. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  14. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  15. package/dist/builtins/calendars/calendars.addon.js +1 -1
  16. package/dist/builtins/calendars/calendars.addon.mjs +1 -1
  17. package/dist/builtins/camera-grid/index.js +1 -1
  18. package/dist/builtins/camera-grid/index.mjs +1 -1
  19. package/dist/builtins/composer/composer.addon.js +2 -2
  20. package/dist/builtins/composer/composer.addon.mjs +2 -2
  21. package/dist/builtins/console-logging/index.js +1 -1
  22. package/dist/builtins/console-logging/index.mjs +1 -1
  23. package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
  24. package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
  25. package/dist/builtins/device-manager/device-manager.addon.js +2 -2
  26. package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
  27. package/dist/builtins/hub-forwarder/index.js +1 -1
  28. package/dist/builtins/hub-forwarder/index.mjs +1 -1
  29. package/dist/builtins/keychain/index.js +3 -3
  30. package/dist/builtins/keychain/index.mjs +3 -3
  31. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  32. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  33. package/dist/builtins/local-auth/local-auth.addon.js +9 -8
  34. package/dist/builtins/local-auth/local-auth.addon.mjs +4 -3
  35. package/dist/builtins/local-network/hub-mdns-ciao.d.ts +7 -0
  36. package/dist/builtins/local-network/hub-mdns.d.ts +58 -0
  37. package/dist/builtins/local-network/local-network.addon.d.ts +11 -0
  38. package/dist/builtins/local-network/local-network.addon.js +194 -3
  39. package/dist/builtins/local-network/local-network.addon.mjs +195 -3
  40. package/dist/builtins/loki-logging/index.js +1 -1
  41. package/dist/builtins/loki-logging/index.mjs +1 -1
  42. package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  43. package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  44. package/dist/builtins/platform-probe/index.js +1 -1
  45. package/dist/builtins/platform-probe/index.mjs +1 -1
  46. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  47. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  48. package/dist/builtins/snapshot/index.js +1 -1
  49. package/dist/builtins/snapshot/index.mjs +1 -1
  50. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  51. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  52. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
  53. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
  54. package/dist/builtins/storage-orchestrator/storage-location-band-monitor.d.ts +43 -0
  55. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +6 -0
  56. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +112 -1
  57. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +112 -1
  58. package/dist/builtins/system-config/system-config.addon.js +80 -785
  59. package/dist/builtins/system-config/system-config.addon.mjs +52 -757
  60. package/dist/builtins/winston-logging/index.js +1 -1
  61. package/dist/builtins/winston-logging/index.mjs +1 -1
  62. package/dist/{child-cap-dispatch-fnYkJDjG.js → child-cap-dispatch-B87B0FrC.js} +1 -1
  63. package/dist/{child-cap-dispatch-CpYnlLNt.mjs → child-cap-dispatch-CmfT-OR2.mjs} +1 -1
  64. package/dist/{composition-sources-BX6Caql_.js → composition-sources-DBcOVpGn.js} +1 -1
  65. package/dist/{composition-sources-QndhKNb5.mjs → composition-sources-DEZqZLPT.mjs} +1 -1
  66. package/dist/{constants-vMEWqCqG.mjs → constants-BSBtmzm3.mjs} +1 -1
  67. package/dist/{constants-CMXQ1QIC.js → constants-C4jZO_qO.js} +1 -1
  68. package/dist/{dist-ItJ3qAAA.mjs → dist-DwE9yHdk.mjs} +67 -3
  69. package/dist/{dist-BcnmH70Z.js → dist-DxiDI8hZ.js} +78 -2
  70. package/dist/{event-loop-stall-monitor-DoFaUgFf.js → event-loop-stall-monitor-E2hFvhDg.js} +1 -1
  71. package/dist/{event-loop-stall-monitor-CogzcENb.mjs → event-loop-stall-monitor-LBZskC1S.mjs} +1 -1
  72. package/dist/index.js +7 -7
  73. package/dist/index.mjs +7 -7
  74. package/dist/{jwt-signing-key-CST1LdM6.js → jwt-signing-key-CsC-FxSm.js} +1 -1
  75. package/dist/{jwt-signing-key-CpMSrZuI.mjs → jwt-signing-key-DLbjTIuA.mjs} +1 -1
  76. package/dist/lib-B_R6sPC3.mjs +7106 -0
  77. package/dist/lib-DOJ5yyWA.js +7110 -0
  78. package/dist/{ms-DlIWNkkk.mjs → ms-CgH2OFlD.mjs} +2 -42
  79. package/dist/{ms-t68_FaqE.js → ms-LB3giGoU.js} +1 -48
  80. package/dist/{restore-archive-pSlTKRgU.js → restore-archive-BtKjaVua.js} +1 -1
  81. package/dist/{restore-archive-8F_M_wW0.mjs → restore-archive-CImzbuRo.mjs} +1 -1
  82. package/dist/{retired-settings-keys-D3E47aR_.js → retired-settings-keys-Cl1tnkmq.js} +1 -1
  83. package/dist/{retired-settings-keys-CbkMnFXg.mjs → retired-settings-keys-D1WsCdUY.mjs} +1 -1
  84. package/dist/safe-buffer-B1OjL1I9.mjs +42 -0
  85. package/dist/safe-buffer-D3aoa-7X.js +46 -0
  86. package/dist/src-CnAqG6EF.js +714 -0
  87. package/dist/src-hG4grMU4.mjs +709 -0
  88. package/dist/{tls-BWpwU-d5.js → tls-C0TRPfqc.js} +1 -1
  89. package/dist/{tls-C2NT-Orr.mjs → tls-D-2dPY-5.mjs} +1 -1
  90. package/dist/{x509.es-Xf3K_brW.mjs → x509.es-CAjSsrkk.mjs} +643 -2
  91. package/dist/{x509.es-BhTzcFhZ.js → x509.es-Dzl0BbmG.js} +653 -0
  92. package/package.json +2 -1
@@ -0,0 +1,709 @@
1
+ import { i as __require, t as __commonJSMin } from "./chunk-CNf5ZN-e.mjs";
2
+ import { t as require_ms } from "./ms-CgH2OFlD.mjs";
3
+ //#region ../../node_modules/debug/src/common.js
4
+ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
+ /**
6
+ * This is the common logic for both the Node.js and web browser
7
+ * implementations of `debug()`.
8
+ */
9
+ function setup(env) {
10
+ createDebug.debug = createDebug;
11
+ createDebug.default = createDebug;
12
+ createDebug.coerce = coerce;
13
+ createDebug.disable = disable;
14
+ createDebug.enable = enable;
15
+ createDebug.enabled = enabled;
16
+ createDebug.humanize = require_ms();
17
+ createDebug.destroy = destroy;
18
+ Object.keys(env).forEach((key) => {
19
+ createDebug[key] = env[key];
20
+ });
21
+ /**
22
+ * The currently active debug mode names, and names to skip.
23
+ */
24
+ createDebug.names = [];
25
+ createDebug.skips = [];
26
+ /**
27
+ * Map of special "%n" handling functions, for the debug "format" argument.
28
+ *
29
+ * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
30
+ */
31
+ createDebug.formatters = {};
32
+ /**
33
+ * Selects a color for a debug namespace
34
+ * @param {String} namespace The namespace string for the debug instance to be colored
35
+ * @return {Number|String} An ANSI color code for the given namespace
36
+ * @api private
37
+ */
38
+ function selectColor(namespace) {
39
+ let hash = 0;
40
+ for (let i = 0; i < namespace.length; i++) {
41
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
42
+ hash |= 0;
43
+ }
44
+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
45
+ }
46
+ createDebug.selectColor = selectColor;
47
+ /**
48
+ * Create a debugger with the given `namespace`.
49
+ *
50
+ * @param {String} namespace
51
+ * @return {Function}
52
+ * @api public
53
+ */
54
+ function createDebug(namespace) {
55
+ let prevTime;
56
+ let enableOverride = null;
57
+ let namespacesCache;
58
+ let enabledCache;
59
+ function debug(...args) {
60
+ if (!debug.enabled) return;
61
+ const self = debug;
62
+ const curr = Number(/* @__PURE__ */ new Date());
63
+ self.diff = curr - (prevTime || curr);
64
+ self.prev = prevTime;
65
+ self.curr = curr;
66
+ prevTime = curr;
67
+ args[0] = createDebug.coerce(args[0]);
68
+ if (typeof args[0] !== "string") args.unshift("%O");
69
+ let index = 0;
70
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
71
+ if (match === "%%") return "%";
72
+ index++;
73
+ const formatter = createDebug.formatters[format];
74
+ if (typeof formatter === "function") {
75
+ const val = args[index];
76
+ match = formatter.call(self, val);
77
+ args.splice(index, 1);
78
+ index--;
79
+ }
80
+ return match;
81
+ });
82
+ createDebug.formatArgs.call(self, args);
83
+ (self.log || createDebug.log).apply(self, args);
84
+ }
85
+ debug.namespace = namespace;
86
+ debug.useColors = createDebug.useColors();
87
+ debug.color = createDebug.selectColor(namespace);
88
+ debug.extend = extend;
89
+ debug.destroy = createDebug.destroy;
90
+ Object.defineProperty(debug, "enabled", {
91
+ enumerable: true,
92
+ configurable: false,
93
+ get: () => {
94
+ if (enableOverride !== null) return enableOverride;
95
+ if (namespacesCache !== createDebug.namespaces) {
96
+ namespacesCache = createDebug.namespaces;
97
+ enabledCache = createDebug.enabled(namespace);
98
+ }
99
+ return enabledCache;
100
+ },
101
+ set: (v) => {
102
+ enableOverride = v;
103
+ }
104
+ });
105
+ if (typeof createDebug.init === "function") createDebug.init(debug);
106
+ return debug;
107
+ }
108
+ function extend(namespace, delimiter) {
109
+ const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
110
+ newDebug.log = this.log;
111
+ return newDebug;
112
+ }
113
+ /**
114
+ * Enables a debug mode by namespaces. This can include modes
115
+ * separated by a colon and wildcards.
116
+ *
117
+ * @param {String} namespaces
118
+ * @api public
119
+ */
120
+ function enable(namespaces) {
121
+ createDebug.save(namespaces);
122
+ createDebug.namespaces = namespaces;
123
+ createDebug.names = [];
124
+ createDebug.skips = [];
125
+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
126
+ for (const ns of split) if (ns[0] === "-") createDebug.skips.push(ns.slice(1));
127
+ else createDebug.names.push(ns);
128
+ }
129
+ /**
130
+ * Checks if the given string matches a namespace template, honoring
131
+ * asterisks as wildcards.
132
+ *
133
+ * @param {String} search
134
+ * @param {String} template
135
+ * @return {Boolean}
136
+ */
137
+ function matchesTemplate(search, template) {
138
+ let searchIndex = 0;
139
+ let templateIndex = 0;
140
+ let starIndex = -1;
141
+ let matchIndex = 0;
142
+ while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
143
+ starIndex = templateIndex;
144
+ matchIndex = searchIndex;
145
+ templateIndex++;
146
+ } else {
147
+ searchIndex++;
148
+ templateIndex++;
149
+ }
150
+ else if (starIndex !== -1) {
151
+ templateIndex = starIndex + 1;
152
+ matchIndex++;
153
+ searchIndex = matchIndex;
154
+ } else return false;
155
+ while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
156
+ return templateIndex === template.length;
157
+ }
158
+ /**
159
+ * Disable debug output.
160
+ *
161
+ * @return {String} namespaces
162
+ * @api public
163
+ */
164
+ function disable() {
165
+ const namespaces = [...createDebug.names, ...createDebug.skips.map((namespace) => "-" + namespace)].join(",");
166
+ createDebug.enable("");
167
+ return namespaces;
168
+ }
169
+ /**
170
+ * Returns true if the given mode name is enabled, false otherwise.
171
+ *
172
+ * @param {String} name
173
+ * @return {Boolean}
174
+ * @api public
175
+ */
176
+ function enabled(name) {
177
+ for (const skip of createDebug.skips) if (matchesTemplate(name, skip)) return false;
178
+ for (const ns of createDebug.names) if (matchesTemplate(name, ns)) return true;
179
+ return false;
180
+ }
181
+ /**
182
+ * Coerce `val`.
183
+ *
184
+ * @param {Mixed} val
185
+ * @return {Mixed}
186
+ * @api private
187
+ */
188
+ function coerce(val) {
189
+ if (val instanceof Error) return val.stack || val.message;
190
+ return val;
191
+ }
192
+ /**
193
+ * XXX DO NOT USE. This is a temporary stub function.
194
+ * XXX It WILL be removed in the next major release.
195
+ */
196
+ function destroy() {
197
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
198
+ }
199
+ createDebug.enable(createDebug.load());
200
+ return createDebug;
201
+ }
202
+ module.exports = setup;
203
+ }));
204
+ //#endregion
205
+ //#region ../../node_modules/debug/src/browser.js
206
+ var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
207
+ /**
208
+ * This is the web browser implementation of `debug()`.
209
+ */
210
+ exports.formatArgs = formatArgs;
211
+ exports.save = save;
212
+ exports.load = load;
213
+ exports.useColors = useColors;
214
+ exports.storage = localstorage();
215
+ exports.destroy = (() => {
216
+ let warned = false;
217
+ return () => {
218
+ if (!warned) {
219
+ warned = true;
220
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
221
+ }
222
+ };
223
+ })();
224
+ /**
225
+ * Colors.
226
+ */
227
+ exports.colors = [
228
+ "#0000CC",
229
+ "#0000FF",
230
+ "#0033CC",
231
+ "#0033FF",
232
+ "#0066CC",
233
+ "#0066FF",
234
+ "#0099CC",
235
+ "#0099FF",
236
+ "#00CC00",
237
+ "#00CC33",
238
+ "#00CC66",
239
+ "#00CC99",
240
+ "#00CCCC",
241
+ "#00CCFF",
242
+ "#3300CC",
243
+ "#3300FF",
244
+ "#3333CC",
245
+ "#3333FF",
246
+ "#3366CC",
247
+ "#3366FF",
248
+ "#3399CC",
249
+ "#3399FF",
250
+ "#33CC00",
251
+ "#33CC33",
252
+ "#33CC66",
253
+ "#33CC99",
254
+ "#33CCCC",
255
+ "#33CCFF",
256
+ "#6600CC",
257
+ "#6600FF",
258
+ "#6633CC",
259
+ "#6633FF",
260
+ "#66CC00",
261
+ "#66CC33",
262
+ "#9900CC",
263
+ "#9900FF",
264
+ "#9933CC",
265
+ "#9933FF",
266
+ "#99CC00",
267
+ "#99CC33",
268
+ "#CC0000",
269
+ "#CC0033",
270
+ "#CC0066",
271
+ "#CC0099",
272
+ "#CC00CC",
273
+ "#CC00FF",
274
+ "#CC3300",
275
+ "#CC3333",
276
+ "#CC3366",
277
+ "#CC3399",
278
+ "#CC33CC",
279
+ "#CC33FF",
280
+ "#CC6600",
281
+ "#CC6633",
282
+ "#CC9900",
283
+ "#CC9933",
284
+ "#CCCC00",
285
+ "#CCCC33",
286
+ "#FF0000",
287
+ "#FF0033",
288
+ "#FF0066",
289
+ "#FF0099",
290
+ "#FF00CC",
291
+ "#FF00FF",
292
+ "#FF3300",
293
+ "#FF3333",
294
+ "#FF3366",
295
+ "#FF3399",
296
+ "#FF33CC",
297
+ "#FF33FF",
298
+ "#FF6600",
299
+ "#FF6633",
300
+ "#FF9900",
301
+ "#FF9933",
302
+ "#FFCC00",
303
+ "#FFCC33"
304
+ ];
305
+ /**
306
+ * Currently only WebKit-based Web Inspectors, Firefox >= v31,
307
+ * and the Firebug extension (any Firefox version) are known
308
+ * to support "%c" CSS customizations.
309
+ *
310
+ * TODO: add a `localStorage` variable to explicitly enable/disable colors
311
+ */
312
+ function useColors() {
313
+ if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return true;
314
+ if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return false;
315
+ let m;
316
+ 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+)/);
317
+ }
318
+ /**
319
+ * Colorize log arguments if enabled.
320
+ *
321
+ * @api public
322
+ */
323
+ function formatArgs(args) {
324
+ args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
325
+ if (!this.useColors) return;
326
+ const c = "color: " + this.color;
327
+ args.splice(1, 0, c, "color: inherit");
328
+ let index = 0;
329
+ let lastC = 0;
330
+ args[0].replace(/%[a-zA-Z%]/g, (match) => {
331
+ if (match === "%%") return;
332
+ index++;
333
+ if (match === "%c") lastC = index;
334
+ });
335
+ args.splice(lastC, 0, c);
336
+ }
337
+ /**
338
+ * Invokes `console.debug()` when available.
339
+ * No-op when `console.debug` is not a "function".
340
+ * If `console.debug` is not available, falls back
341
+ * to `console.log`.
342
+ *
343
+ * @api public
344
+ */
345
+ exports.log = console.debug || console.log || (() => {});
346
+ /**
347
+ * Save `namespaces`.
348
+ *
349
+ * @param {String} namespaces
350
+ * @api private
351
+ */
352
+ function save(namespaces) {
353
+ try {
354
+ if (namespaces) exports.storage.setItem("debug", namespaces);
355
+ else exports.storage.removeItem("debug");
356
+ } catch (error) {}
357
+ }
358
+ /**
359
+ * Load `namespaces`.
360
+ *
361
+ * @return {String} returns the previously persisted debug modes
362
+ * @api private
363
+ */
364
+ function load() {
365
+ let r;
366
+ try {
367
+ r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
368
+ } catch (error) {}
369
+ if (!r && typeof process !== "undefined" && "env" in process) r = process.env.DEBUG;
370
+ return r;
371
+ }
372
+ /**
373
+ * Localstorage attempts to return the localstorage.
374
+ *
375
+ * This is necessary because safari throws
376
+ * when a user disables cookies/localstorage
377
+ * and you attempt to access it.
378
+ *
379
+ * @return {LocalStorage}
380
+ * @api private
381
+ */
382
+ function localstorage() {
383
+ try {
384
+ return localStorage;
385
+ } catch (error) {}
386
+ }
387
+ module.exports = require_common()(exports);
388
+ var { formatters } = module.exports;
389
+ /**
390
+ * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
391
+ */
392
+ formatters.j = function(v) {
393
+ try {
394
+ return JSON.stringify(v);
395
+ } catch (error) {
396
+ return "[UnexpectedJSONParseError]: " + error.message;
397
+ }
398
+ };
399
+ }));
400
+ //#endregion
401
+ //#region ../../node_modules/has-flag/index.js
402
+ var require_has_flag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
403
+ module.exports = (flag, argv = process.argv) => {
404
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
405
+ const position = argv.indexOf(prefix + flag);
406
+ const terminatorPosition = argv.indexOf("--");
407
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
408
+ };
409
+ }));
410
+ //#endregion
411
+ //#region ../../node_modules/supports-color/index.js
412
+ var require_supports_color = /* @__PURE__ */ __commonJSMin(((exports, module) => {
413
+ var os = __require("os");
414
+ var tty$1 = __require("tty");
415
+ var hasFlag = require_has_flag();
416
+ var { env } = process;
417
+ var flagForceColor;
418
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
419
+ else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
420
+ function envForceColor() {
421
+ if ("FORCE_COLOR" in env) {
422
+ if (env.FORCE_COLOR === "true") return 1;
423
+ if (env.FORCE_COLOR === "false") return 0;
424
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
425
+ }
426
+ }
427
+ function translateLevel(level) {
428
+ if (level === 0) return false;
429
+ return {
430
+ level,
431
+ hasBasic: true,
432
+ has256: level >= 2,
433
+ has16m: level >= 3
434
+ };
435
+ }
436
+ function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
437
+ const noFlagForceColor = envForceColor();
438
+ if (noFlagForceColor !== void 0) flagForceColor = noFlagForceColor;
439
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
440
+ if (forceColor === 0) return 0;
441
+ if (sniffFlags) {
442
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
443
+ if (hasFlag("color=256")) return 2;
444
+ }
445
+ if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
446
+ const min = forceColor || 0;
447
+ if (env.TERM === "dumb") return min;
448
+ if (process.platform === "win32") {
449
+ const osRelease = os.release().split(".");
450
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
451
+ return 1;
452
+ }
453
+ if ("CI" in env) {
454
+ if ([
455
+ "TRAVIS",
456
+ "CIRCLECI",
457
+ "APPVEYOR",
458
+ "GITLAB_CI",
459
+ "GITHUB_ACTIONS",
460
+ "BUILDKITE",
461
+ "DRONE"
462
+ ].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
463
+ return min;
464
+ }
465
+ if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
466
+ if (env.COLORTERM === "truecolor") return 3;
467
+ if ("TERM_PROGRAM" in env) {
468
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
469
+ switch (env.TERM_PROGRAM) {
470
+ case "iTerm.app": return version >= 3 ? 3 : 2;
471
+ case "Apple_Terminal": return 2;
472
+ }
473
+ }
474
+ if (/-256(color)?$/i.test(env.TERM)) return 2;
475
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
476
+ if ("COLORTERM" in env) return 1;
477
+ return min;
478
+ }
479
+ function getSupportLevel(stream, options = {}) {
480
+ return translateLevel(supportsColor(stream, {
481
+ streamIsTTY: stream && stream.isTTY,
482
+ ...options
483
+ }));
484
+ }
485
+ module.exports = {
486
+ supportsColor: getSupportLevel,
487
+ stdout: getSupportLevel({ isTTY: tty$1.isatty(1) }),
488
+ stderr: getSupportLevel({ isTTY: tty$1.isatty(2) })
489
+ };
490
+ }));
491
+ //#endregion
492
+ //#region ../../node_modules/debug/src/node.js
493
+ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
494
+ /**
495
+ * Module dependencies.
496
+ */
497
+ var tty = __require("tty");
498
+ var util = __require("util");
499
+ /**
500
+ * This is the Node.js implementation of `debug()`.
501
+ */
502
+ exports.init = init;
503
+ exports.log = log;
504
+ exports.formatArgs = formatArgs;
505
+ exports.save = save;
506
+ exports.load = load;
507
+ exports.useColors = useColors;
508
+ 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`.");
509
+ /**
510
+ * Colors.
511
+ */
512
+ exports.colors = [
513
+ 6,
514
+ 2,
515
+ 3,
516
+ 4,
517
+ 5,
518
+ 1
519
+ ];
520
+ try {
521
+ const supportsColor = require_supports_color();
522
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports.colors = [
523
+ 20,
524
+ 21,
525
+ 26,
526
+ 27,
527
+ 32,
528
+ 33,
529
+ 38,
530
+ 39,
531
+ 40,
532
+ 41,
533
+ 42,
534
+ 43,
535
+ 44,
536
+ 45,
537
+ 56,
538
+ 57,
539
+ 62,
540
+ 63,
541
+ 68,
542
+ 69,
543
+ 74,
544
+ 75,
545
+ 76,
546
+ 77,
547
+ 78,
548
+ 79,
549
+ 80,
550
+ 81,
551
+ 92,
552
+ 93,
553
+ 98,
554
+ 99,
555
+ 112,
556
+ 113,
557
+ 128,
558
+ 129,
559
+ 134,
560
+ 135,
561
+ 148,
562
+ 149,
563
+ 160,
564
+ 161,
565
+ 162,
566
+ 163,
567
+ 164,
568
+ 165,
569
+ 166,
570
+ 167,
571
+ 168,
572
+ 169,
573
+ 170,
574
+ 171,
575
+ 172,
576
+ 173,
577
+ 178,
578
+ 179,
579
+ 184,
580
+ 185,
581
+ 196,
582
+ 197,
583
+ 198,
584
+ 199,
585
+ 200,
586
+ 201,
587
+ 202,
588
+ 203,
589
+ 204,
590
+ 205,
591
+ 206,
592
+ 207,
593
+ 208,
594
+ 209,
595
+ 214,
596
+ 215,
597
+ 220,
598
+ 221
599
+ ];
600
+ } catch (error) {}
601
+ /**
602
+ * Build up the default `inspectOpts` object from the environment variables.
603
+ *
604
+ * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
605
+ */
606
+ exports.inspectOpts = Object.keys(process.env).filter((key) => {
607
+ return /^debug_/i.test(key);
608
+ }).reduce((obj, key) => {
609
+ const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
610
+ return k.toUpperCase();
611
+ });
612
+ let val = process.env[key];
613
+ if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
614
+ else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
615
+ else if (val === "null") val = null;
616
+ else val = Number(val);
617
+ obj[prop] = val;
618
+ return obj;
619
+ }, {});
620
+ /**
621
+ * Is stdout a TTY? Colored output is enabled when `true`.
622
+ */
623
+ function useColors() {
624
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
625
+ }
626
+ /**
627
+ * Adds ANSI color escape codes if enabled.
628
+ *
629
+ * @api public
630
+ */
631
+ function formatArgs(args) {
632
+ const { namespace: name, useColors } = this;
633
+ if (useColors) {
634
+ const c = this.color;
635
+ const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
636
+ const prefix = ` ${colorCode};1m${name} \u001B[0m`;
637
+ args[0] = prefix + args[0].split("\n").join("\n" + prefix);
638
+ args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
639
+ } else args[0] = getDate() + name + " " + args[0];
640
+ }
641
+ function getDate() {
642
+ if (exports.inspectOpts.hideDate) return "";
643
+ return (/* @__PURE__ */ new Date()).toISOString() + " ";
644
+ }
645
+ /**
646
+ * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
647
+ */
648
+ function log(...args) {
649
+ return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
650
+ }
651
+ /**
652
+ * Save `namespaces`.
653
+ *
654
+ * @param {String} namespaces
655
+ * @api private
656
+ */
657
+ function save(namespaces) {
658
+ if (namespaces) process.env.DEBUG = namespaces;
659
+ else delete process.env.DEBUG;
660
+ }
661
+ /**
662
+ * Load `namespaces`.
663
+ *
664
+ * @return {String} returns the previously persisted debug modes
665
+ * @api private
666
+ */
667
+ function load() {
668
+ return process.env.DEBUG;
669
+ }
670
+ /**
671
+ * Init logic for `debug` instances.
672
+ *
673
+ * Create a new `inspectOpts` object in case `useColors` is set
674
+ * differently for a particular `debug` instance.
675
+ */
676
+ function init(debug) {
677
+ debug.inspectOpts = {};
678
+ const keys = Object.keys(exports.inspectOpts);
679
+ for (let i = 0; i < keys.length; i++) debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
680
+ }
681
+ module.exports = require_common()(exports);
682
+ var { formatters } = module.exports;
683
+ /**
684
+ * Map %o to `util.inspect()`, all on a single line.
685
+ */
686
+ formatters.o = function(v) {
687
+ this.inspectOpts.colors = this.useColors;
688
+ return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
689
+ };
690
+ /**
691
+ * Map %O to `util.inspect()`, allowing multiple lines if needed.
692
+ */
693
+ formatters.O = function(v) {
694
+ this.inspectOpts.colors = this.useColors;
695
+ return util.inspect(v, this.inspectOpts);
696
+ };
697
+ }));
698
+ //#endregion
699
+ //#region ../../node_modules/debug/src/index.js
700
+ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
701
+ /**
702
+ * Detect Electron renderer / nwjs process, which is node, but we should
703
+ * treat as a browser.
704
+ */
705
+ if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) module.exports = require_browser();
706
+ else module.exports = require_node();
707
+ }));
708
+ //#endregion
709
+ export { require_src as t };
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-Cek0wNdY.js");
2
- const require_x509_es = require("./x509.es-BhTzcFhZ.js");
2
+ const require_x509_es = require("./x509.es-Dzl0BbmG.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  let node_net = require("node:net");
5
5
  let node_fs_promises = require("node:fs/promises");