@camstack/system 1.2.409 → 1.2.410

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 (75) 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 +2 -2
  34. package/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  35. package/dist/builtins/local-network/local-network.addon.js +1 -1
  36. package/dist/builtins/local-network/local-network.addon.mjs +1 -1
  37. package/dist/builtins/loki-logging/index.js +1 -1
  38. package/dist/builtins/loki-logging/index.mjs +1 -1
  39. package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  40. package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  41. package/dist/builtins/platform-probe/index.js +1 -1
  42. package/dist/builtins/platform-probe/index.mjs +1 -1
  43. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  44. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  45. package/dist/builtins/snapshot/index.js +1 -1
  46. package/dist/builtins/snapshot/index.mjs +1 -1
  47. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  48. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  49. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
  50. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
  51. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  52. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  53. package/dist/builtins/system-config/system-config.addon.js +2 -2
  54. package/dist/builtins/system-config/system-config.addon.mjs +279 -279
  55. package/dist/builtins/winston-logging/index.js +1 -1
  56. package/dist/builtins/winston-logging/index.mjs +1 -1
  57. package/dist/{child-cap-dispatch-B4CvjCPi.js → child-cap-dispatch-BymegE_4.js} +1 -1
  58. package/dist/{child-cap-dispatch-IbbMIgbW.mjs → child-cap-dispatch-C-t9A5bd.mjs} +1 -1
  59. package/dist/{composition-sources-DUYgJOu3.js → composition-sources-D2TB0T_2.js} +1 -1
  60. package/dist/{composition-sources-BcB-sX1h.mjs → composition-sources-DfGBDGDf.mjs} +1 -1
  61. package/dist/{constants-DbxLwEP2.js → constants-C9RU0W0k.js} +1 -1
  62. package/dist/{constants-3G4YaFMd.mjs → constants-U8qDgboP.mjs} +1 -1
  63. package/dist/{dist-BwBlaAr1.js → dist-CrznXkOZ.js} +2 -0
  64. package/dist/{dist-B3V8c-dl.mjs → dist-CvjyPlVK.mjs} +2 -0
  65. package/dist/{event-loop-stall-monitor-CahHR2N4.js → event-loop-stall-monitor-CaAcghV2.js} +1 -1
  66. package/dist/{event-loop-stall-monitor-_VoBwN5N.mjs → event-loop-stall-monitor-De1uffaC.mjs} +1 -1
  67. package/dist/index.js +6 -6
  68. package/dist/index.mjs +6 -6
  69. package/dist/{jwt-signing-key-CuG0-rkD.js → jwt-signing-key-7JsaDUwM.js} +1 -1
  70. package/dist/{jwt-signing-key-DNDYNwQy.mjs → jwt-signing-key-Bv9SAJgK.mjs} +1 -1
  71. package/dist/{restore-archive-TEleEJMs.js → restore-archive-BwOOlIex.js} +1 -1
  72. package/dist/{restore-archive-Cxj0cgri.mjs → restore-archive-BxlXOFwo.mjs} +77 -77
  73. package/dist/{retired-settings-keys-zPuxhmWR.js → retired-settings-keys-DXTNfQwr.js} +1 -1
  74. package/dist/{retired-settings-keys-CcjvmSTK.mjs → retired-settings-keys-dm_jPy0r.mjs} +1 -1
  75. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
2
- import { Br as makeSecretMarker, Dr as customAction, Lr as isSecretClear, Nr as hydrateSchema, Or as defineCustomActions, Qr as secretTreeFromSchema, Rr as isSecretMarker, dr as BaseAddon, ni as transformSecretWrite, ur as errMsg } from "../../dist-B3V8c-dl.mjs";
2
+ import { Br as makeSecretMarker, Dr as customAction, Lr as isSecretClear, Nr as hydrateSchema, Or as defineCustomActions, Qr as secretTreeFromSchema, Rr as isSecretMarker, dr as BaseAddon, ni as transformSecretWrite, ur as errMsg } from "../../dist-CvjyPlVK.mjs";
3
3
  import { n as require_safe_buffer, t as require_ms } from "../../ms-DlIWNkkk.mjs";
4
- import { a as MESH_CA_KEY_REF, b as setProcessClusterSecretGate, c as MESH_JOIN_TOKEN_MAX_TTL_SEC, d as CLUSTER_SECRET_REF, i as MESH_CA_FIELD, l as SERVER_AUTH_OID, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, r as MESH_CA_COMMON_NAME, s as MESH_CA_VALIDITY_DAYS, t as CLIENT_AUTH_OID, v as hashClusterSecret } from "../../constants-3G4YaFMd.mjs";
4
+ import { a as MESH_CA_KEY_REF, b as setProcessClusterSecretGate, c as MESH_JOIN_TOKEN_MAX_TTL_SEC, d as CLUSTER_SECRET_REF, i as MESH_CA_FIELD, l as SERVER_AUTH_OID, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, r as MESH_CA_COMMON_NAME, s as MESH_CA_VALIDITY_DAYS, t as CLIENT_AUTH_OID, v as hashClusterSecret } from "../../constants-U8qDgboP.mjs";
5
5
  import { a as KeyUsagesExtension, c as Pkcs10CertificateRequestGenerator, d as X509Certificate$1, f as X509CertificateGenerator, i as KeyUsageFlags, n as BasicConstraintsExtension, o as PemConverter, p as cryptoProvider, r as ExtendedKeyUsageExtension, s as Pkcs10CertificateRequest, t as AuthorityKeyIdentifierExtension, u as SubjectKeyIdentifierExtension } from "../../x509.es-Xf3K_brW.mjs";
6
6
  import { z } from "zod";
7
7
  import { X509Certificate, createHash, createHmac, randomBytes, timingSafeEqual, webcrypto } from "node:crypto";
@@ -21462,8 +21462,8 @@ var require_kleur = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21462
21462
  var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21463
21463
  var kleur = require_kleur();
21464
21464
  var os$17 = __require("os");
21465
- var path$39 = __require("path");
21466
- var fs$18 = __require("fs");
21465
+ var path$40 = __require("path");
21466
+ var fs$19 = __require("fs");
21467
21467
  var { TimeoutError } = require_errors$2();
21468
21468
  var lut = [];
21469
21469
  for (let i = 0; i < 256; i++) lut[i] = (i < 16 ? "0" : "") + i.toString(16);
@@ -21754,9 +21754,9 @@ var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21754
21754
  * @param {String} p - directory path
21755
21755
  */
21756
21756
  makeDirs(p) {
21757
- p.split(path$39.sep).reduce((prevPath, folder) => {
21758
- const currentPath = path$39.join(prevPath, folder, path$39.sep);
21759
- if (!fs$18.existsSync(currentPath)) fs$18.mkdirSync(currentPath);
21757
+ p.split(path$40.sep).reduce((prevPath, folder) => {
21758
+ const currentPath = path$40.join(prevPath, folder, path$40.sep);
21759
+ if (!fs$19.existsSync(currentPath)) fs$19.mkdirSync(currentPath);
21760
21760
  return currentPath;
21761
21761
  }, "");
21762
21762
  },
@@ -22981,8 +22981,8 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
22981
22981
  var BaseReporter = require_base$8();
22982
22982
  var { makeDirs } = require_utils$3();
22983
22983
  var _ = require_lodash();
22984
- var path$38 = __require("path");
22985
- var fs$17 = __require("fs");
22984
+ var path$39 = __require("path");
22985
+ var fs$18 = __require("fs");
22986
22986
  var METRIC = require_constants$6();
22987
22987
  var MODE_METRIC = "metric";
22988
22988
  var MODE_LABEL = "label";
@@ -23035,7 +23035,7 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23035
23035
  this.timer = setInterval(() => this.flush(), this.opts.interval * 1e3);
23036
23036
  this.timer.unref();
23037
23037
  }
23038
- this.folder = path$38.resolve(this.opts.folder);
23038
+ this.folder = path$39.resolve(this.opts.folder);
23039
23039
  makeDirs(this.folder);
23040
23040
  }
23041
23041
  /**
@@ -23060,10 +23060,10 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23060
23060
  const metricName = this.formatMetricName(metric.name);
23061
23061
  if (this.opts.filenameFormatter) return this.opts.filenameFormatter.call(this, metricName, metric, item);
23062
23062
  switch (this.opts.mode) {
23063
- case MODE_METRIC: return path$38.join(this.folder, `${metricName}.csv`);
23063
+ case MODE_METRIC: return path$39.join(this.folder, `${metricName}.csv`);
23064
23064
  case MODE_LABEL: {
23065
23065
  const labelStr = this.labelsToStr(item.labels);
23066
- return path$38.join(this.folder, metricName, `${metricName}${labelStr ? "--" + labelStr : ""}.csv`);
23066
+ return path$39.join(this.folder, metricName, `${metricName}${labelStr ? "--" + labelStr : ""}.csv`);
23067
23067
  }
23068
23068
  }
23069
23069
  }
@@ -23084,7 +23084,7 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23084
23084
  metric.values.forEach((item) => {
23085
23085
  if (!this.lastChanges.has([metric.name, this.labelsToStr(item.labels)].join("|"))) return;
23086
23086
  const filename = this.getFilename(metric, item);
23087
- makeDirs(path$38.dirname(filename));
23087
+ makeDirs(path$39.dirname(filename));
23088
23088
  const metricName = this.formatMetricName(metric.name);
23089
23089
  let headers = ["Timestamp", "Metric"];
23090
23090
  let data = [item.timestamp, metricName];
@@ -23141,8 +23141,8 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23141
23141
  */
23142
23142
  writeRow(filename, headers, fields) {
23143
23143
  try {
23144
- if (!fs$17.existsSync(filename)) fs$17.writeFileSync(filename, headers.join(this.opts.delimiter) + this.opts.rowDelimiter);
23145
- fs$17.appendFileSync(filename, fields.join(this.opts.delimiter) + this.opts.rowDelimiter);
23144
+ if (!fs$18.existsSync(filename)) fs$18.writeFileSync(filename, headers.join(this.opts.delimiter) + this.opts.rowDelimiter);
23145
+ fs$18.appendFileSync(filename, fields.join(this.opts.delimiter) + this.opts.rowDelimiter);
23146
23146
  } catch (err) {
23147
23147
  /* istanbul ignore next */
23148
23148
  this.logger.error(`Unable to write metrics values to the '${filename}' file. Error: ${err.message}`, fields, err);
@@ -26214,7 +26214,7 @@ var require_latency = /* @__PURE__ */ __commonJSMin(((exports, module) => {
26214
26214
  //#region ../../node_modules/lru-cache/dist/commonjs/node/index.min.js
26215
26215
  var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
26216
26216
  var j = (c, t) => () => (t || c((t = { exports: {} }).exports, t), t.exports);
26217
- var I$2 = j((O) => {
26217
+ var I$1 = j((O) => {
26218
26218
  "use strict";
26219
26219
  Object.defineProperty(O, "__esModule", { value: !0 });
26220
26220
  O.tracing = O.metrics = void 0;
@@ -26230,7 +26230,7 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
26230
26230
  });
26231
26231
  Object.defineProperty(exports, "__esModule", { value: !0 });
26232
26232
  exports.LRUCache = void 0;
26233
- var g = I$2(), N = P(), C = () => g.metrics.hasSubscribers || g.tracing.hasSubscribers, k = /* @__PURE__ */ new Set(), G = typeof process == "object" && process ? process : {}, V = (c, t, e, i) => {
26233
+ var g = I$1(), N = P(), C = () => g.metrics.hasSubscribers || g.tracing.hasSubscribers, k = /* @__PURE__ */ new Set(), G = typeof process == "object" && process ? process : {}, V = (c, t, e, i) => {
26234
26234
  typeof G.emitWarning == "function" ? G.emitWarning(c, t, e, i) : console.error(`[${e}] ${t}: ${c}`);
26235
26235
  }, q = (c) => !k.has(c);
26236
26236
  var T = (c) => !!c && c === Math.floor(c) && c > 0 && isFinite(c), H = (c) => T(c) ? c <= Math.pow(2, 8) ? Uint8Array : c <= Math.pow(2, 16) ? Uint16Array : c <= Math.pow(2, 32) ? Uint32Array : c <= Number.MAX_SAFE_INTEGER ? W : null : null, W = class extends Array {
@@ -31174,7 +31174,7 @@ var require_process$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31174
31174
  //#endregion
31175
31175
  //#region ../../node_modules/detect-libc/lib/filesystem.js
31176
31176
  var require_filesystem = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31177
- var fs$16 = __require("fs");
31177
+ var fs$17 = __require("fs");
31178
31178
  var LDD_PATH = "/usr/bin/ldd";
31179
31179
  var SELF_PATH = "/proc/self/exe";
31180
31180
  var MAX_LENGTH = 2048;
@@ -31185,10 +31185,10 @@ var require_filesystem = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31185
31185
  * @returns {Buffer}
31186
31186
  */
31187
31187
  var readFileSync = (path) => {
31188
- const fd = fs$16.openSync(path, "r");
31188
+ const fd = fs$17.openSync(path, "r");
31189
31189
  const buffer = Buffer.alloc(MAX_LENGTH);
31190
- const bytesRead = fs$16.readSync(fd, buffer, 0, MAX_LENGTH, 0);
31191
- fs$16.close(fd, () => {});
31190
+ const bytesRead = fs$17.readSync(fd, buffer, 0, MAX_LENGTH, 0);
31191
+ fs$17.close(fd, () => {});
31192
31192
  return buffer.subarray(0, bytesRead);
31193
31193
  };
31194
31194
  /**
@@ -31198,13 +31198,13 @@ var require_filesystem = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31198
31198
  * @returns {Promise<Buffer>}
31199
31199
  */
31200
31200
  var readFile = (path) => new Promise((resolve, reject) => {
31201
- fs$16.open(path, "r", (err, fd) => {
31201
+ fs$17.open(path, "r", (err, fd) => {
31202
31202
  if (err) reject(err);
31203
31203
  else {
31204
31204
  const buffer = Buffer.alloc(MAX_LENGTH);
31205
- fs$16.read(fd, buffer, 0, MAX_LENGTH, 0, (_, bytesRead) => {
31205
+ fs$17.read(fd, buffer, 0, MAX_LENGTH, 0, (_, bytesRead) => {
31206
31206
  resolve(buffer.subarray(0, bytesRead));
31207
- fs$16.close(fd, () => {});
31207
+ fs$17.close(fd, () => {});
31208
31208
  });
31209
31209
  }
31210
31210
  });
@@ -31457,8 +31457,8 @@ var require_detect_libc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31457
31457
  //#endregion
31458
31458
  //#region ../../node_modules/node-gyp-build-optional-packages/index.js
31459
31459
  var require_node_gyp_build_optional_packages = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31460
- var fs$15 = __require("fs");
31461
- var path$37 = __require("path");
31460
+ var fs$16 = __require("fs");
31461
+ var path$38 = __require("path");
31462
31462
  var url$2 = __require("url");
31463
31463
  var vars = process.config && process.config.variables || {};
31464
31464
  var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
@@ -31477,27 +31477,27 @@ var require_node_gyp_build_optional_packages = /* @__PURE__ */ __commonJSMin(((e
31477
31477
  else return __require(load.path(dir));
31478
31478
  }
31479
31479
  load.path = function(dir) {
31480
- dir = path$37.resolve(dir || ".");
31480
+ dir = path$38.resolve(dir || ".");
31481
31481
  var packageName = "";
31482
31482
  try {
31483
- if (typeof __webpack_require__ === "function") packageName = __non_webpack_require__(path$37.join(dir, "package.json")).name;
31484
- else packageName = __require(path$37.join(dir, "package.json")).name;
31483
+ if (typeof __webpack_require__ === "function") packageName = __non_webpack_require__(path$38.join(dir, "package.json")).name;
31484
+ else packageName = __require(path$38.join(dir, "package.json")).name;
31485
31485
  var varName = packageName.toUpperCase().replace(/-/g, "_") + "_PREBUILD";
31486
31486
  if (process.env[varName]) dir = process.env[varName];
31487
31487
  } catch (err) {}
31488
31488
  if (!prebuildsOnly) {
31489
- var release = getFirst(path$37.join(dir, "build/Release"), matchBuild);
31489
+ var release = getFirst(path$38.join(dir, "build/Release"), matchBuild);
31490
31490
  if (release) return release;
31491
- var debug = getFirst(path$37.join(dir, "build/Debug"), matchBuild);
31491
+ var debug = getFirst(path$38.join(dir, "build/Debug"), matchBuild);
31492
31492
  if (debug) return debug;
31493
31493
  }
31494
31494
  var prebuild = resolve(dir);
31495
31495
  if (prebuild) return prebuild;
31496
- var nearby = resolve(path$37.dirname(process.execPath));
31496
+ var nearby = resolve(path$38.dirname(process.execPath));
31497
31497
  if (nearby) return nearby;
31498
31498
  var platformPackage = (packageName[0] == "@" ? "" : "@" + packageName + "/") + packageName + "-" + platform + "-" + arch;
31499
31499
  try {
31500
- return resolveFile(path$37.dirname(__require("module").createRequire(url$2.pathToFileURL(path$37.join(dir, "package.json"))).resolve(platformPackage)));
31500
+ return resolveFile(path$38.dirname(__require("module").createRequire(url$2.pathToFileURL(path$38.join(dir, "package.json"))).resolve(platformPackage)));
31501
31501
  } catch (error) {}
31502
31502
  var target = [
31503
31503
  "platform=" + platform,
@@ -31513,25 +31513,25 @@ var require_node_gyp_build_optional_packages = /* @__PURE__ */ __commonJSMin(((e
31513
31513
  ].filter(Boolean).join(" ");
31514
31514
  throw new Error("No native build was found for " + target + "\n attempted loading from: " + dir + " and package: " + platformPackage + "\n");
31515
31515
  function resolve(dir) {
31516
- var tuple = readdirSync(path$37.join(dir, "prebuilds")).map(parseTuple).filter(matchTuple(platform, arch)).sort(compareTuples)[0];
31516
+ var tuple = readdirSync(path$38.join(dir, "prebuilds")).map(parseTuple).filter(matchTuple(platform, arch)).sort(compareTuples)[0];
31517
31517
  if (!tuple) return;
31518
- return resolveFile(path$37.join(dir, "prebuilds", tuple.name));
31518
+ return resolveFile(path$38.join(dir, "prebuilds", tuple.name));
31519
31519
  }
31520
31520
  function resolveFile(prebuilds) {
31521
31521
  var winner = readdirSync(prebuilds).map(parseTags).filter(matchTags(runtime, abi)).sort(compareTags(runtime))[0];
31522
- if (winner) return path$37.join(prebuilds, winner.file);
31522
+ if (winner) return path$38.join(prebuilds, winner.file);
31523
31523
  }
31524
31524
  };
31525
31525
  function readdirSync(dir) {
31526
31526
  try {
31527
- return fs$15.readdirSync(dir);
31527
+ return fs$16.readdirSync(dir);
31528
31528
  } catch (err) {
31529
31529
  return [];
31530
31530
  }
31531
31531
  }
31532
31532
  function getFirst(dir, filter) {
31533
31533
  var files = readdirSync(dir).filter(filter);
31534
- return files[0] && path$37.join(dir, files[0]);
31534
+ return files[0] && path$38.join(dir, files[0]);
31535
31535
  }
31536
31536
  function matchBuild(name) {
31537
31537
  return /\.node$/.test(name);
@@ -37709,8 +37709,8 @@ var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37709
37709
  var require_file$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37710
37710
  var FormattedLogger = require_formatted();
37711
37711
  var _ = require_lodash();
37712
- var fs$14 = __require("fs/promises");
37713
- var path$36 = __require("path");
37712
+ var fs$15 = __require("fs/promises");
37713
+ var path$37 = __require("path");
37714
37714
  var os$10 = __require("os");
37715
37715
  var { makeDirs } = require_utils$3();
37716
37716
  /**
@@ -37756,7 +37756,7 @@ var require_file$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37756
37756
  */
37757
37757
  init(loggerFactory) {
37758
37758
  super.init(loggerFactory);
37759
- this.logFolder = path$36.resolve(this.render(this.opts.folder, {
37759
+ this.logFolder = path$37.resolve(this.render(this.opts.folder, {
37760
37760
  nodeID: this.broker.nodeID,
37761
37761
  namespace: this.broker.namespace
37762
37762
  }));
@@ -37781,7 +37781,7 @@ var require_file$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37781
37781
  */
37782
37782
  getFilename() {
37783
37783
  const date = (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
37784
- return path$36.join(this.logFolder, this.render(this.opts.filename, {
37784
+ return path$37.join(this.logFolder, this.render(this.opts.filename, {
37785
37785
  date,
37786
37786
  nodeID: this.broker.nodeID,
37787
37787
  namespace: this.broker.namespace
@@ -37813,7 +37813,7 @@ var require_file$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37813
37813
  const rows = Array.from(this.queue);
37814
37814
  this.queue.length = 0;
37815
37815
  const buf = rows.join(this.opts.eol) + this.opts.eol;
37816
- return fs$14.appendFile(filename, buf).catch((err) => {
37816
+ return fs$15.appendFile(filename, buf).catch((err) => {
37817
37817
  /* istanbul ignore next */
37818
37818
  console.debug("Unable to write log file:", filename, err);
37819
37819
  });
@@ -38162,7 +38162,7 @@ var require_layouts = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38162
38162
  var dateFormat = require_lib$5();
38163
38163
  var os$9 = __require("os");
38164
38164
  var util$3 = __require("util");
38165
- var path$35 = __require("path");
38165
+ var path$36 = __require("path");
38166
38166
  var styles = {
38167
38167
  bold: [1, 22],
38168
38168
  italic: [3, 23],
@@ -38328,8 +38328,8 @@ var require_layouts = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38328
38328
  let filename = loggingEvent.fileName || "";
38329
38329
  if (specifier) {
38330
38330
  const fileDepth = parseInt(specifier, 10);
38331
- const fileList = filename.split(path$35.sep);
38332
- if (fileList.length > fileDepth) filename = fileList.slice(-fileDepth).join(path$35.sep);
38331
+ const fileList = filename.split(path$36.sep);
38332
+ if (fileList.length > fileDepth) filename = fileList.slice(-fileDepth).join(path$36.sep);
38333
38333
  }
38334
38334
  return filename;
38335
38335
  }
@@ -39331,7 +39331,7 @@ var require_clone = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39331
39331
  //#endregion
39332
39332
  //#region ../../node_modules/graceful-fs/graceful-fs.js
39333
39333
  var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39334
- var fs$13 = __require("fs");
39334
+ var fs$14 = __require("fs");
39335
39335
  var polyfills = require_polyfills();
39336
39336
  var legacy = require_legacy_streams();
39337
39337
  var clone = require_clone();
@@ -39360,36 +39360,36 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39360
39360
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
39361
39361
  console.error(m);
39362
39362
  };
39363
- if (!fs$13[gracefulQueue]) {
39364
- publishQueue(fs$13, global[gracefulQueue] || []);
39365
- fs$13.close = (function(fs$close) {
39363
+ if (!fs$14[gracefulQueue]) {
39364
+ publishQueue(fs$14, global[gracefulQueue] || []);
39365
+ fs$14.close = (function(fs$close) {
39366
39366
  function close(fd, cb) {
39367
- return fs$close.call(fs$13, fd, function(err) {
39367
+ return fs$close.call(fs$14, fd, function(err) {
39368
39368
  if (!err) resetQueue();
39369
39369
  if (typeof cb === "function") cb.apply(this, arguments);
39370
39370
  });
39371
39371
  }
39372
39372
  Object.defineProperty(close, previousSymbol, { value: fs$close });
39373
39373
  return close;
39374
- })(fs$13.close);
39375
- fs$13.closeSync = (function(fs$closeSync) {
39374
+ })(fs$14.close);
39375
+ fs$14.closeSync = (function(fs$closeSync) {
39376
39376
  function closeSync(fd) {
39377
- fs$closeSync.apply(fs$13, arguments);
39377
+ fs$closeSync.apply(fs$14, arguments);
39378
39378
  resetQueue();
39379
39379
  }
39380
39380
  Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
39381
39381
  return closeSync;
39382
- })(fs$13.closeSync);
39382
+ })(fs$14.closeSync);
39383
39383
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
39384
- debug(fs$13[gracefulQueue]);
39385
- __require("assert").equal(fs$13[gracefulQueue].length, 0);
39384
+ debug(fs$14[gracefulQueue]);
39385
+ __require("assert").equal(fs$14[gracefulQueue].length, 0);
39386
39386
  });
39387
39387
  }
39388
- if (!global[gracefulQueue]) publishQueue(global, fs$13[gracefulQueue]);
39389
- module.exports = patch(clone(fs$13));
39390
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$13.__patched) {
39391
- module.exports = patch(fs$13);
39392
- fs$13.__patched = true;
39388
+ if (!global[gracefulQueue]) publishQueue(global, fs$14[gracefulQueue]);
39389
+ module.exports = patch(clone(fs$14));
39390
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$14.__patched) {
39391
+ module.exports = patch(fs$14);
39392
+ fs$14.__patched = true;
39393
39393
  }
39394
39394
  function patch(fs) {
39395
39395
  polyfills(fs);
@@ -39644,23 +39644,23 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39644
39644
  }
39645
39645
  function enqueue(elem) {
39646
39646
  debug("ENQUEUE", elem[0].name, elem[1]);
39647
- fs$13[gracefulQueue].push(elem);
39647
+ fs$14[gracefulQueue].push(elem);
39648
39648
  retry();
39649
39649
  }
39650
39650
  var retryTimer;
39651
39651
  function resetQueue() {
39652
39652
  var now = Date.now();
39653
- for (var i = 0; i < fs$13[gracefulQueue].length; ++i) if (fs$13[gracefulQueue][i].length > 2) {
39654
- fs$13[gracefulQueue][i][3] = now;
39655
- fs$13[gracefulQueue][i][4] = now;
39653
+ for (var i = 0; i < fs$14[gracefulQueue].length; ++i) if (fs$14[gracefulQueue][i].length > 2) {
39654
+ fs$14[gracefulQueue][i][3] = now;
39655
+ fs$14[gracefulQueue][i][4] = now;
39656
39656
  }
39657
39657
  retry();
39658
39658
  }
39659
39659
  function retry() {
39660
39660
  clearTimeout(retryTimer);
39661
39661
  retryTimer = void 0;
39662
- if (fs$13[gracefulQueue].length === 0) return;
39663
- var elem = fs$13[gracefulQueue].shift();
39662
+ if (fs$14[gracefulQueue].length === 0) return;
39663
+ var elem = fs$14[gracefulQueue].shift();
39664
39664
  var fn = elem[0];
39665
39665
  var args = elem[1];
39666
39666
  var err = elem[2];
@@ -39679,7 +39679,7 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39679
39679
  if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
39680
39680
  debug("RETRY", fn.name, args);
39681
39681
  fn.apply(null, args.concat([startTime]));
39682
- } else fs$13[gracefulQueue].push(elem);
39682
+ } else fs$14[gracefulQueue].push(elem);
39683
39683
  }
39684
39684
  if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
39685
39685
  }
@@ -39767,9 +39767,9 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
39767
39767
  //#endregion
39768
39768
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/mkdirs/win32.js
39769
39769
  var require_win32 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39770
- var path$34 = __require("path");
39770
+ var path$35 = __require("path");
39771
39771
  function getRootPath(p) {
39772
- p = path$34.normalize(path$34.resolve(p)).split(path$34.sep);
39772
+ p = path$35.normalize(path$35.resolve(p)).split(path$35.sep);
39773
39773
  if (p.length > 0) return p[0];
39774
39774
  return null;
39775
39775
  }
@@ -39788,7 +39788,7 @@ var require_win32 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39788
39788
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/mkdirs/mkdirs.js
39789
39789
  var require_mkdirs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39790
39790
  var fs = require_graceful_fs();
39791
- var path$33 = __require("path");
39791
+ var path$34 = __require("path");
39792
39792
  var invalidWin32Path = require_win32().invalidWin32Path;
39793
39793
  var o777 = parseInt("0777", 8);
39794
39794
  function mkdirs(p, opts, callback, made) {
@@ -39806,7 +39806,7 @@ var require_mkdirs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39806
39806
  if (mode === void 0) mode = o777 & ~process.umask();
39807
39807
  if (!made) made = null;
39808
39808
  callback = callback || function() {};
39809
- p = path$33.resolve(p);
39809
+ p = path$34.resolve(p);
39810
39810
  xfs.mkdir(p, mode, (er) => {
39811
39811
  if (!er) {
39812
39812
  made = made || p;
@@ -39814,8 +39814,8 @@ var require_mkdirs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39814
39814
  }
39815
39815
  switch (er.code) {
39816
39816
  case "ENOENT":
39817
- if (path$33.dirname(p) === p) return callback(er);
39818
- mkdirs(path$33.dirname(p), opts, (er, made) => {
39817
+ if (path$34.dirname(p) === p) return callback(er);
39818
+ mkdirs(path$34.dirname(p), opts, (er, made) => {
39819
39819
  if (er) callback(er, made);
39820
39820
  else mkdirs(p, opts, callback, made);
39821
39821
  });
@@ -39835,7 +39835,7 @@ var require_mkdirs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39835
39835
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js
39836
39836
  var require_mkdirs_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39837
39837
  var fs = require_graceful_fs();
39838
- var path$32 = __require("path");
39838
+ var path$33 = __require("path");
39839
39839
  var invalidWin32Path = require_win32().invalidWin32Path;
39840
39840
  var o777 = parseInt("0777", 8);
39841
39841
  function mkdirsSync(p, opts, made) {
@@ -39849,14 +39849,14 @@ var require_mkdirs_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39849
39849
  }
39850
39850
  if (mode === void 0) mode = o777 & ~process.umask();
39851
39851
  if (!made) made = null;
39852
- p = path$32.resolve(p);
39852
+ p = path$33.resolve(p);
39853
39853
  try {
39854
39854
  xfs.mkdirSync(p, mode);
39855
39855
  made = made || p;
39856
39856
  } catch (err0) {
39857
39857
  if (err0.code === "ENOENT") {
39858
- if (path$32.dirname(p) === p) throw err0;
39859
- made = mkdirsSync(path$32.dirname(p), opts, made);
39858
+ if (path$33.dirname(p) === p) throw err0;
39859
+ made = mkdirsSync(path$33.dirname(p), opts, made);
39860
39860
  mkdirsSync(p, opts, made);
39861
39861
  } else {
39862
39862
  let stat;
@@ -39892,10 +39892,10 @@ var require_mkdirs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39892
39892
  var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39893
39893
  var fs = require_graceful_fs();
39894
39894
  var os$8 = __require("os");
39895
- var path$31 = __require("path");
39895
+ var path$32 = __require("path");
39896
39896
  function hasMillisResSync() {
39897
- let tmpfile = path$31.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
39898
- tmpfile = path$31.join(os$8.tmpdir(), tmpfile);
39897
+ let tmpfile = path$32.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
39898
+ tmpfile = path$32.join(os$8.tmpdir(), tmpfile);
39899
39899
  const d = /* @__PURE__ */ new Date(1435410243862);
39900
39900
  fs.writeFileSync(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141");
39901
39901
  const fd = fs.openSync(tmpfile, "r+");
@@ -39904,8 +39904,8 @@ var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39904
39904
  return fs.statSync(tmpfile).mtime > 1435410243e3;
39905
39905
  }
39906
39906
  function hasMillisRes(callback) {
39907
- let tmpfile = path$31.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
39908
- tmpfile = path$31.join(os$8.tmpdir(), tmpfile);
39907
+ let tmpfile = path$32.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
39908
+ tmpfile = path$32.join(os$8.tmpdir(), tmpfile);
39909
39909
  const d = /* @__PURE__ */ new Date(1435410243862);
39910
39910
  fs.writeFile(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141", (err) => {
39911
39911
  if (err) return callback(err);
@@ -39956,7 +39956,7 @@ var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39956
39956
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/util/stat.js
39957
39957
  var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39958
39958
  var fs = require_graceful_fs();
39959
- var path$30 = __require("path");
39959
+ var path$31 = __require("path");
39960
39960
  var NODE_VERSION_MAJOR_WITH_BIGINT = 10;
39961
39961
  var NODE_VERSION_MINOR_WITH_BIGINT = 5;
39962
39962
  var NODE_VERSION_PATCH_WITH_BIGINT = 0;
@@ -40049,9 +40049,9 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40049
40049
  };
40050
40050
  }
40051
40051
  function checkParentPaths(src, srcStat, dest, funcName, cb) {
40052
- const srcParent = path$30.resolve(path$30.dirname(src));
40053
- const destParent = path$30.resolve(path$30.dirname(dest));
40054
- if (destParent === srcParent || destParent === path$30.parse(destParent).root) return cb();
40052
+ const srcParent = path$31.resolve(path$31.dirname(src));
40053
+ const destParent = path$31.resolve(path$31.dirname(dest));
40054
+ if (destParent === srcParent || destParent === path$31.parse(destParent).root) return cb();
40055
40055
  if (nodeSupportsBigInt()) fs.stat(destParent, { bigint: true }, (err, destStat) => {
40056
40056
  if (err) {
40057
40057
  if (err.code === "ENOENT") return cb();
@@ -40070,9 +40070,9 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40070
40070
  });
40071
40071
  }
40072
40072
  function checkParentPathsSync(src, srcStat, dest, funcName) {
40073
- const srcParent = path$30.resolve(path$30.dirname(src));
40074
- const destParent = path$30.resolve(path$30.dirname(dest));
40075
- if (destParent === srcParent || destParent === path$30.parse(destParent).root) return;
40073
+ const srcParent = path$31.resolve(path$31.dirname(src));
40074
+ const destParent = path$31.resolve(path$31.dirname(dest));
40075
+ if (destParent === srcParent || destParent === path$31.parse(destParent).root) return;
40076
40076
  let destStat;
40077
40077
  try {
40078
40078
  if (nodeSupportsBigInt()) destStat = fs.statSync(destParent, { bigint: true });
@@ -40085,8 +40085,8 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40085
40085
  return checkParentPathsSync(src, srcStat, destParent, funcName);
40086
40086
  }
40087
40087
  function isSrcSubdir(src, dest) {
40088
- const srcArr = path$30.resolve(src).split(path$30.sep).filter((i) => i);
40089
- const destArr = path$30.resolve(dest).split(path$30.sep).filter((i) => i);
40088
+ const srcArr = path$31.resolve(src).split(path$31.sep).filter((i) => i);
40089
+ const destArr = path$31.resolve(dest).split(path$31.sep).filter((i) => i);
40090
40090
  return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
40091
40091
  }
40092
40092
  function errMsg(src, dest, funcName) {
@@ -40116,7 +40116,7 @@ var require_buffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40116
40116
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/copy-sync/copy-sync.js
40117
40117
  var require_copy_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40118
40118
  var fs = require_graceful_fs();
40119
- var path$29 = __require("path");
40119
+ var path$30 = __require("path");
40120
40120
  var mkdirpSync = require_mkdirs().mkdirsSync;
40121
40121
  var utimesSync = require_utimes().utimesMillisSync;
40122
40122
  var stat = require_stat();
@@ -40133,7 +40133,7 @@ var require_copy_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40133
40133
  }
40134
40134
  function handleFilterAndCopy(destStat, src, dest, opts) {
40135
40135
  if (opts.filter && !opts.filter(src, dest)) return;
40136
- const destParent = path$29.dirname(dest);
40136
+ const destParent = path$30.dirname(dest);
40137
40137
  if (!fs.existsSync(destParent)) mkdirpSync(destParent);
40138
40138
  return startCopy(destStat, src, dest, opts);
40139
40139
  }
@@ -40195,14 +40195,14 @@ var require_copy_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40195
40195
  fs.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
40196
40196
  }
40197
40197
  function copyDirItem(item, src, dest, opts) {
40198
- const srcItem = path$29.join(src, item);
40199
- const destItem = path$29.join(dest, item);
40198
+ const srcItem = path$30.join(src, item);
40199
+ const destItem = path$30.join(dest, item);
40200
40200
  const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy");
40201
40201
  return startCopy(destStat, srcItem, destItem, opts);
40202
40202
  }
40203
40203
  function onLink(destStat, src, dest, opts) {
40204
40204
  let resolvedSrc = fs.readlinkSync(src);
40205
- if (opts.dereference) resolvedSrc = path$29.resolve(process.cwd(), resolvedSrc);
40205
+ if (opts.dereference) resolvedSrc = path$30.resolve(process.cwd(), resolvedSrc);
40206
40206
  if (!destStat) return fs.symlinkSync(resolvedSrc, dest);
40207
40207
  else {
40208
40208
  let resolvedDest;
@@ -40212,7 +40212,7 @@ var require_copy_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40212
40212
  if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs.symlinkSync(resolvedSrc, dest);
40213
40213
  throw err;
40214
40214
  }
40215
- if (opts.dereference) resolvedDest = path$29.resolve(process.cwd(), resolvedDest);
40215
+ if (opts.dereference) resolvedDest = path$30.resolve(process.cwd(), resolvedDest);
40216
40216
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
40217
40217
  if (fs.statSync(dest).isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
40218
40218
  return copyLink(resolvedSrc, dest);
@@ -40246,7 +40246,7 @@ var require_path_exists = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40246
40246
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/copy/copy.js
40247
40247
  var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40248
40248
  var fs = require_graceful_fs();
40249
- var path$28 = __require("path");
40249
+ var path$29 = __require("path");
40250
40250
  var mkdirp = require_mkdirs().mkdirs;
40251
40251
  var pathExists = require_path_exists().pathExists;
40252
40252
  var utimes = require_utimes().utimesMillis;
@@ -40273,7 +40273,7 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40273
40273
  });
40274
40274
  }
40275
40275
  function checkParentDir(destStat, src, dest, opts, cb) {
40276
- const destParent = path$28.dirname(dest);
40276
+ const destParent = path$29.dirname(dest);
40277
40277
  pathExists(destParent, (err, dirExists) => {
40278
40278
  if (err) return cb(err);
40279
40279
  if (dirExists) return startCopy(destStat, src, dest, opts, cb);
@@ -40360,8 +40360,8 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40360
40360
  return copyDirItem(items, item, src, dest, opts, cb);
40361
40361
  }
40362
40362
  function copyDirItem(items, item, src, dest, opts, cb) {
40363
- const srcItem = path$28.join(src, item);
40364
- const destItem = path$28.join(dest, item);
40363
+ const srcItem = path$29.join(src, item);
40364
+ const destItem = path$29.join(dest, item);
40365
40365
  stat.checkPaths(srcItem, destItem, "copy", (err, stats) => {
40366
40366
  if (err) return cb(err);
40367
40367
  const { destStat } = stats;
@@ -40374,14 +40374,14 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40374
40374
  function onLink(destStat, src, dest, opts, cb) {
40375
40375
  fs.readlink(src, (err, resolvedSrc) => {
40376
40376
  if (err) return cb(err);
40377
- if (opts.dereference) resolvedSrc = path$28.resolve(process.cwd(), resolvedSrc);
40377
+ if (opts.dereference) resolvedSrc = path$29.resolve(process.cwd(), resolvedSrc);
40378
40378
  if (!destStat) return fs.symlink(resolvedSrc, dest, cb);
40379
40379
  else fs.readlink(dest, (err, resolvedDest) => {
40380
40380
  if (err) {
40381
40381
  if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs.symlink(resolvedSrc, dest, cb);
40382
40382
  return cb(err);
40383
40383
  }
40384
- if (opts.dereference) resolvedDest = path$28.resolve(process.cwd(), resolvedDest);
40384
+ if (opts.dereference) resolvedDest = path$29.resolve(process.cwd(), resolvedDest);
40385
40385
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) return cb(/* @__PURE__ */ new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
40386
40386
  if (destStat.isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) return cb(/* @__PURE__ */ new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`));
40387
40387
  return copyLink(resolvedSrc, dest, cb);
@@ -40406,7 +40406,7 @@ var require_copy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40406
40406
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/remove/rimraf.js
40407
40407
  var require_rimraf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40408
40408
  var fs = require_graceful_fs();
40409
- var path$27 = __require("path");
40409
+ var path$28 = __require("path");
40410
40410
  var assert$2 = __require("assert");
40411
40411
  var isWindows = process.platform === "win32";
40412
40412
  function defaults(options) {
@@ -40521,7 +40521,7 @@ var require_rimraf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40521
40521
  let errState;
40522
40522
  if (n === 0) return options.rmdir(p, cb);
40523
40523
  files.forEach((f) => {
40524
- rimraf(path$27.join(p, f), options, (er) => {
40524
+ rimraf(path$28.join(p, f), options, (er) => {
40525
40525
  if (errState) return;
40526
40526
  if (er) return cb(errState = er);
40527
40527
  if (--n === 0) options.rmdir(p, cb);
@@ -40568,7 +40568,7 @@ var require_rimraf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40568
40568
  function rmkidsSync(p, options) {
40569
40569
  assert$2(p);
40570
40570
  assert$2(options);
40571
- options.readdirSync(p).forEach((f) => rimrafSync(path$27.join(p, f), options));
40571
+ options.readdirSync(p).forEach((f) => rimrafSync(path$28.join(p, f), options));
40572
40572
  if (isWindows) {
40573
40573
  const startTime = Date.now();
40574
40574
  do
@@ -40596,14 +40596,14 @@ var require_remove = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40596
40596
  var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40597
40597
  var u = require_universalify().fromCallback;
40598
40598
  var fs = require_graceful_fs();
40599
- var path$26 = __require("path");
40599
+ var path$27 = __require("path");
40600
40600
  var mkdir = require_mkdirs();
40601
40601
  var remove = require_remove();
40602
40602
  var emptyDir = u(function emptyDir(dir, callback) {
40603
40603
  callback = callback || function() {};
40604
40604
  fs.readdir(dir, (err, items) => {
40605
40605
  if (err) return mkdir.mkdirs(dir, callback);
40606
- items = items.map((item) => path$26.join(dir, item));
40606
+ items = items.map((item) => path$27.join(dir, item));
40607
40607
  deleteItem();
40608
40608
  function deleteItem() {
40609
40609
  const item = items.pop();
@@ -40623,7 +40623,7 @@ var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40623
40623
  return mkdir.mkdirsSync(dir);
40624
40624
  }
40625
40625
  items.forEach((item) => {
40626
- item = path$26.join(dir, item);
40626
+ item = path$27.join(dir, item);
40627
40627
  remove.removeSync(item);
40628
40628
  });
40629
40629
  }
@@ -40638,7 +40638,7 @@ var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40638
40638
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/ensure/file.js
40639
40639
  var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40640
40640
  var u = require_universalify().fromCallback;
40641
- var path$25 = __require("path");
40641
+ var path$26 = __require("path");
40642
40642
  var fs = require_graceful_fs();
40643
40643
  var mkdir = require_mkdirs();
40644
40644
  var pathExists = require_path_exists().pathExists;
@@ -40651,7 +40651,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40651
40651
  }
40652
40652
  fs.stat(file, (err, stats) => {
40653
40653
  if (!err && stats.isFile()) return callback();
40654
- const dir = path$25.dirname(file);
40654
+ const dir = path$26.dirname(file);
40655
40655
  pathExists(dir, (err, dirExists) => {
40656
40656
  if (err) return callback(err);
40657
40657
  if (dirExists) return makeFile();
@@ -40668,7 +40668,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40668
40668
  stats = fs.statSync(file);
40669
40669
  } catch (e) {}
40670
40670
  if (stats && stats.isFile()) return;
40671
- const dir = path$25.dirname(file);
40671
+ const dir = path$26.dirname(file);
40672
40672
  if (!fs.existsSync(dir)) mkdir.mkdirsSync(dir);
40673
40673
  fs.writeFileSync(file, "");
40674
40674
  }
@@ -40681,7 +40681,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40681
40681
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/ensure/link.js
40682
40682
  var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40683
40683
  var u = require_universalify().fromCallback;
40684
- var path$24 = __require("path");
40684
+ var path$25 = __require("path");
40685
40685
  var fs = require_graceful_fs();
40686
40686
  var mkdir = require_mkdirs();
40687
40687
  var pathExists = require_path_exists().pathExists;
@@ -40700,7 +40700,7 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40700
40700
  err.message = err.message.replace("lstat", "ensureLink");
40701
40701
  return callback(err);
40702
40702
  }
40703
- const dir = path$24.dirname(dstpath);
40703
+ const dir = path$25.dirname(dstpath);
40704
40704
  pathExists(dir, (err, dirExists) => {
40705
40705
  if (err) return callback(err);
40706
40706
  if (dirExists) return makeLink(srcpath, dstpath);
@@ -40720,7 +40720,7 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40720
40720
  err.message = err.message.replace("lstat", "ensureLink");
40721
40721
  throw err;
40722
40722
  }
40723
- const dir = path$24.dirname(dstpath);
40723
+ const dir = path$25.dirname(dstpath);
40724
40724
  if (fs.existsSync(dir)) return fs.linkSync(srcpath, dstpath);
40725
40725
  mkdir.mkdirsSync(dir);
40726
40726
  return fs.linkSync(srcpath, dstpath);
@@ -40733,7 +40733,7 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40733
40733
  //#endregion
40734
40734
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/ensure/symlink-paths.js
40735
40735
  var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40736
- var path$23 = __require("path");
40736
+ var path$24 = __require("path");
40737
40737
  var fs = require_graceful_fs();
40738
40738
  var pathExists = require_path_exists().pathExists;
40739
40739
  /**
@@ -40758,7 +40758,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
40758
40758
  * the ability to pass in `relative to current working direcotry` paths.
40759
40759
  */
40760
40760
  function symlinkPaths(srcpath, dstpath, callback) {
40761
- if (path$23.isAbsolute(srcpath)) return fs.lstat(srcpath, (err) => {
40761
+ if (path$24.isAbsolute(srcpath)) return fs.lstat(srcpath, (err) => {
40762
40762
  if (err) {
40763
40763
  err.message = err.message.replace("lstat", "ensureSymlink");
40764
40764
  return callback(err);
@@ -40769,8 +40769,8 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
40769
40769
  });
40770
40770
  });
40771
40771
  else {
40772
- const dstdir = path$23.dirname(dstpath);
40773
- const relativeToDst = path$23.join(dstdir, srcpath);
40772
+ const dstdir = path$24.dirname(dstpath);
40773
+ const relativeToDst = path$24.join(dstdir, srcpath);
40774
40774
  return pathExists(relativeToDst, (err, exists) => {
40775
40775
  if (err) return callback(err);
40776
40776
  if (exists) return callback(null, {
@@ -40784,7 +40784,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
40784
40784
  }
40785
40785
  return callback(null, {
40786
40786
  "toCwd": srcpath,
40787
- "toDst": path$23.relative(dstdir, srcpath)
40787
+ "toDst": path$24.relative(dstdir, srcpath)
40788
40788
  });
40789
40789
  });
40790
40790
  });
@@ -40792,7 +40792,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
40792
40792
  }
40793
40793
  function symlinkPathsSync(srcpath, dstpath) {
40794
40794
  let exists;
40795
- if (path$23.isAbsolute(srcpath)) {
40795
+ if (path$24.isAbsolute(srcpath)) {
40796
40796
  exists = fs.existsSync(srcpath);
40797
40797
  if (!exists) throw new Error("absolute srcpath does not exist");
40798
40798
  return {
@@ -40800,8 +40800,8 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
40800
40800
  "toDst": srcpath
40801
40801
  };
40802
40802
  } else {
40803
- const dstdir = path$23.dirname(dstpath);
40804
- const relativeToDst = path$23.join(dstdir, srcpath);
40803
+ const dstdir = path$24.dirname(dstpath);
40804
+ const relativeToDst = path$24.join(dstdir, srcpath);
40805
40805
  exists = fs.existsSync(relativeToDst);
40806
40806
  if (exists) return {
40807
40807
  "toCwd": relativeToDst,
@@ -40812,7 +40812,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
40812
40812
  if (!exists) throw new Error("relative srcpath does not exist");
40813
40813
  return {
40814
40814
  "toCwd": srcpath,
40815
- "toDst": path$23.relative(dstdir, srcpath)
40815
+ "toDst": path$24.relative(dstdir, srcpath)
40816
40816
  };
40817
40817
  }
40818
40818
  }
@@ -40855,7 +40855,7 @@ var require_symlink_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40855
40855
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/ensure/symlink.js
40856
40856
  var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40857
40857
  var u = require_universalify().fromCallback;
40858
- var path$22 = __require("path");
40858
+ var path$23 = __require("path");
40859
40859
  var fs = require_graceful_fs();
40860
40860
  var _mkdirs = require_mkdirs();
40861
40861
  var mkdirs = _mkdirs.mkdirs;
@@ -40878,7 +40878,7 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40878
40878
  srcpath = relative.toDst;
40879
40879
  symlinkType(relative.toCwd, type, (err, type) => {
40880
40880
  if (err) return callback(err);
40881
- const dir = path$22.dirname(dstpath);
40881
+ const dir = path$23.dirname(dstpath);
40882
40882
  pathExists(dir, (err, dirExists) => {
40883
40883
  if (err) return callback(err);
40884
40884
  if (dirExists) return fs.symlink(srcpath, dstpath, type, callback);
@@ -40896,7 +40896,7 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40896
40896
  const relative = symlinkPathsSync(srcpath, dstpath);
40897
40897
  srcpath = relative.toDst;
40898
40898
  type = symlinkTypeSync(relative.toCwd, type);
40899
- const dir = path$22.dirname(dstpath);
40899
+ const dir = path$23.dirname(dstpath);
40900
40900
  if (fs.existsSync(dir)) return fs.symlinkSync(srcpath, dstpath, type);
40901
40901
  mkdirsSync(dir);
40902
40902
  return fs.symlinkSync(srcpath, dstpath, type);
@@ -41036,7 +41036,7 @@ var require_jsonfile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41036
41036
  //#endregion
41037
41037
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/json/output-json.js
41038
41038
  var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41039
- var path$21 = __require("path");
41039
+ var path$22 = __require("path");
41040
41040
  var mkdir = require_mkdirs();
41041
41041
  var pathExists = require_path_exists().pathExists;
41042
41042
  var jsonFile = require_jsonfile();
@@ -41045,7 +41045,7 @@ var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41045
41045
  callback = options;
41046
41046
  options = {};
41047
41047
  }
41048
- const dir = path$21.dirname(file);
41048
+ const dir = path$22.dirname(file);
41049
41049
  pathExists(dir, (err, itDoes) => {
41050
41050
  if (err) return callback(err);
41051
41051
  if (itDoes) return jsonFile.writeJson(file, data, options, callback);
@@ -41061,11 +41061,11 @@ var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41061
41061
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/json/output-json-sync.js
41062
41062
  var require_output_json_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41063
41063
  var fs = require_graceful_fs();
41064
- var path$20 = __require("path");
41064
+ var path$21 = __require("path");
41065
41065
  var mkdir = require_mkdirs();
41066
41066
  var jsonFile = require_jsonfile();
41067
41067
  function outputJsonSync(file, data, options) {
41068
- const dir = path$20.dirname(file);
41068
+ const dir = path$21.dirname(file);
41069
41069
  if (!fs.existsSync(dir)) mkdir.mkdirsSync(dir);
41070
41070
  jsonFile.writeJsonSync(file, data, options);
41071
41071
  }
@@ -41090,7 +41090,7 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41090
41090
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/move-sync/move-sync.js
41091
41091
  var require_move_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41092
41092
  var fs = require_graceful_fs();
41093
- var path$19 = __require("path");
41093
+ var path$20 = __require("path");
41094
41094
  var copySync = require_copy_sync().copySync;
41095
41095
  var removeSync = require_remove().removeSync;
41096
41096
  var mkdirpSync = require_mkdirs().mkdirpSync;
@@ -41100,7 +41100,7 @@ var require_move_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41100
41100
  const overwrite = opts.overwrite || opts.clobber || false;
41101
41101
  const { srcStat } = stat.checkPathsSync(src, dest, "move");
41102
41102
  stat.checkParentPathsSync(src, srcStat, dest, "move");
41103
- mkdirpSync(path$19.dirname(dest));
41103
+ mkdirpSync(path$20.dirname(dest));
41104
41104
  return doRename(src, dest, overwrite);
41105
41105
  }
41106
41106
  function doRename(src, dest, overwrite) {
@@ -41137,7 +41137,7 @@ var require_move_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41137
41137
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/move/move.js
41138
41138
  var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41139
41139
  var fs = require_graceful_fs();
41140
- var path$18 = __require("path");
41140
+ var path$19 = __require("path");
41141
41141
  var copy = require_copy().copy;
41142
41142
  var remove = require_remove().remove;
41143
41143
  var mkdirp = require_mkdirs().mkdirp;
@@ -41154,7 +41154,7 @@ var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41154
41154
  const { srcStat } = stats;
41155
41155
  stat.checkParentPaths(src, srcStat, dest, "move", (err) => {
41156
41156
  if (err) return cb(err);
41157
- mkdirp(path$18.dirname(dest), (err) => {
41157
+ mkdirp(path$19.dirname(dest), (err) => {
41158
41158
  if (err) return cb(err);
41159
41159
  return doRename(src, dest, overwrite, cb);
41160
41160
  });
@@ -41201,7 +41201,7 @@ var require_move = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41201
41201
  var require_output = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41202
41202
  var u = require_universalify().fromCallback;
41203
41203
  var fs = require_graceful_fs();
41204
- var path$17 = __require("path");
41204
+ var path$18 = __require("path");
41205
41205
  var mkdir = require_mkdirs();
41206
41206
  var pathExists = require_path_exists().pathExists;
41207
41207
  function outputFile(file, data, encoding, callback) {
@@ -41209,7 +41209,7 @@ var require_output = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41209
41209
  callback = encoding;
41210
41210
  encoding = "utf8";
41211
41211
  }
41212
- const dir = path$17.dirname(file);
41212
+ const dir = path$18.dirname(file);
41213
41213
  pathExists(dir, (err, itDoes) => {
41214
41214
  if (err) return callback(err);
41215
41215
  if (itDoes) return fs.writeFile(file, data, encoding, callback);
@@ -41220,7 +41220,7 @@ var require_output = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41220
41220
  });
41221
41221
  }
41222
41222
  function outputFileSync(file, ...args) {
41223
- const dir = path$17.dirname(file);
41223
+ const dir = path$18.dirname(file);
41224
41224
  if (fs.existsSync(dir)) return fs.writeFileSync(file, ...args);
41225
41225
  mkdir.mkdirsSync(dir);
41226
41226
  fs.writeFileSync(file, ...args);
@@ -41234,9 +41234,9 @@ var require_output = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41234
41234
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/index.js
41235
41235
  var require_lib$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41236
41236
  module.exports = Object.assign({}, require_fs(), require_copy_sync(), require_copy(), require_empty(), require_ensure(), require_json(), require_mkdirs(), require_move_sync(), require_move(), require_output(), require_path_exists(), require_remove());
41237
- var fs$12 = __require("fs");
41238
- if (Object.getOwnPropertyDescriptor(fs$12, "promises")) Object.defineProperty(module.exports, "promises", { get() {
41239
- return fs$12.promises;
41237
+ var fs$13 = __require("fs");
41238
+ if (Object.getOwnPropertyDescriptor(fs$13, "promises")) Object.defineProperty(module.exports, "promises", { get() {
41239
+ return fs$13.promises;
41240
41240
  } });
41241
41241
  }));
41242
41242
  //#endregion
@@ -41401,11 +41401,11 @@ var require_lib$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41401
41401
  //#region ../../node_modules/streamroller/lib/fileNameFormatter.js
41402
41402
  var require_fileNameFormatter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41403
41403
  var debug = require_src()("streamroller:fileNameFormatter");
41404
- var path$16 = __require("path");
41404
+ var path$17 = __require("path");
41405
41405
  var FILENAME_SEP = ".";
41406
41406
  var ZIP_EXT = ".gz";
41407
41407
  module.exports = ({ file, keepFileExt, needsIndex, alwaysIncludeDate, compress }) => {
41408
- const dirAndName = path$16.join(file.dir, file.name);
41408
+ const dirAndName = path$17.join(file.dir, file.name);
41409
41409
  const ext = (f) => f + file.ext;
41410
41410
  const index = (f, i, d) => (needsIndex || !d) && i ? f + FILENAME_SEP + i : f;
41411
41411
  const date = (f, i, d) => {
@@ -41550,7 +41550,7 @@ var require_moveAndMaybeCompressFile = /* @__PURE__ */ __commonJSMin(((exports,
41550
41550
  var require_RollingFileWriteStream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41551
41551
  var debug = require_src()("streamroller:RollingFileWriteStream");
41552
41552
  var fs = require_lib$4();
41553
- var path$15 = __require("path");
41553
+ var path$16 = __require("path");
41554
41554
  var newNow = require_now();
41555
41555
  var format = require_lib$3();
41556
41556
  var { Writable: Writable$1 } = __require("stream");
@@ -41581,8 +41581,8 @@ var require_RollingFileWriteStream = /* @__PURE__ */ __commonJSMin(((exports, mo
41581
41581
  debug(`constructor: creating RollingFileWriteStream. path=${filePath}`);
41582
41582
  super(options);
41583
41583
  this.options = this._parseOption(options);
41584
- this.fileObject = path$15.parse(filePath);
41585
- if (this.fileObject.dir === "") this.fileObject = path$15.parse(path$15.join(process.cwd(), filePath));
41584
+ this.fileObject = path$16.parse(filePath);
41585
+ if (this.fileObject.dir === "") this.fileObject = path$16.parse(path$16.join(process.cwd(), filePath));
41586
41586
  this.fileFormatter = fileNameFormatter({
41587
41587
  file: this.fileObject,
41588
41588
  alwaysIncludeDate: this.options.alwaysIncludePattern,
@@ -41719,7 +41719,7 @@ var require_RollingFileWriteStream = /* @__PURE__ */ __commonJSMin(((exports, mo
41719
41719
  const existingFileDetails = await this._getExistingFiles();
41720
41720
  debug(`_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${existingFileDetails.length}`);
41721
41721
  debug("_clean: existing files are: ", existingFileDetails);
41722
- if (this._tooManyFiles(existingFileDetails.length)) await deleteFiles(existingFileDetails.slice(0, existingFileDetails.length - this.options.numToKeep - 1).map((f) => path$15.format({
41722
+ if (this._tooManyFiles(existingFileDetails.length)) await deleteFiles(existingFileDetails.slice(0, existingFileDetails.length - this.options.numToKeep - 1).map((f) => path$16.format({
41723
41723
  dir: this.fileObject.dir,
41724
41724
  base: f.filename
41725
41725
  })));
@@ -41793,7 +41793,7 @@ var require_lib$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41793
41793
  //#region ../../node_modules/log4js/lib/appenders/file.js
41794
41794
  var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41795
41795
  var debug = require_src()("log4js:file");
41796
- var path$14 = __require("path");
41796
+ var path$15 = __require("path");
41797
41797
  var streams = require_lib$2();
41798
41798
  var eol$2 = __require("os").EOL;
41799
41799
  function openTheStream(file, fileSize, numFiles, options) {
@@ -41820,7 +41820,7 @@ var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41820
41820
  * @param timezoneOffset - optional timezone offset in minutes (default system local)
41821
41821
  */
41822
41822
  function fileAppender(file, layout, logSize, numBackups, options, timezoneOffset) {
41823
- file = path$14.normalize(file);
41823
+ file = path$15.normalize(file);
41824
41824
  numBackups = numBackups === void 0 ? 5 : numBackups;
41825
41825
  numBackups = numBackups === 0 ? 1 : numBackups;
41826
41826
  debug("Creating file appender (", file, ", ", logSize, ", ", numBackups, ", ", options, ", ", timezoneOffset, ")");
@@ -41899,13 +41899,13 @@ var require_dateFile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41899
41899
  //#region ../../node_modules/log4js/lib/appenders/fileSync.js
41900
41900
  var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41901
41901
  var debug = require_src()("log4js:fileSync");
41902
- var path$13 = __require("path");
41903
- var fs$11 = __require("fs");
41902
+ var path$14 = __require("path");
41903
+ var fs$12 = __require("fs");
41904
41904
  var eol = __require("os").EOL || "\n";
41905
41905
  function touchFile(file, options) {
41906
- if (fs$11.existsSync(file)) return;
41907
- const id = fs$11.openSync(file, options.flags, options.mode);
41908
- fs$11.closeSync(id);
41906
+ if (fs$12.existsSync(file)) return;
41907
+ const id = fs$12.openSync(file, options.flags, options.mode);
41908
+ fs$12.closeSync(id);
41909
41909
  }
41910
41910
  var RollingFileSync = class {
41911
41911
  constructor(filename, size, backups, options) {
@@ -41922,7 +41922,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41922
41922
  function currentFileSize(file) {
41923
41923
  let fileSize = 0;
41924
41924
  try {
41925
- fileSize = fs$11.statSync(file).size;
41925
+ fileSize = fs$12.statSync(file).size;
41926
41926
  } catch (e) {
41927
41927
  touchFile(file, options);
41928
41928
  }
@@ -41936,12 +41936,12 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41936
41936
  }
41937
41937
  roll(filename) {
41938
41938
  const that = this;
41939
- const nameMatcher = new RegExp(`^${path$13.basename(filename)}`);
41939
+ const nameMatcher = new RegExp(`^${path$14.basename(filename)}`);
41940
41940
  function justTheseFiles(item) {
41941
41941
  return nameMatcher.test(item);
41942
41942
  }
41943
41943
  function index(filename_) {
41944
- return parseInt(filename_.substring(`${path$13.basename(filename)}.`.length), 10) || 0;
41944
+ return parseInt(filename_.substring(`${path$14.basename(filename)}.`.length), 10) || 0;
41945
41945
  }
41946
41946
  function byIndex(a, b) {
41947
41947
  if (index(a) > index(b)) return 1;
@@ -41953,15 +41953,15 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41953
41953
  debug(`Index of ${fileToRename} is ${idx}`);
41954
41954
  if (idx < that.backups) {
41955
41955
  try {
41956
- fs$11.unlinkSync(`${filename}.${idx + 1}`);
41956
+ fs$12.unlinkSync(`${filename}.${idx + 1}`);
41957
41957
  } catch (e) {}
41958
41958
  debug(`Renaming ${fileToRename} -> ${filename}.${idx + 1}`);
41959
- fs$11.renameSync(path$13.join(path$13.dirname(filename), fileToRename), `${filename}.${idx + 1}`);
41959
+ fs$12.renameSync(path$14.join(path$14.dirname(filename), fileToRename), `${filename}.${idx + 1}`);
41960
41960
  }
41961
41961
  }
41962
41962
  function renameTheFiles() {
41963
41963
  debug("Renaming the old files");
41964
- fs$11.readdirSync(path$13.dirname(filename)).filter(justTheseFiles).sort(byIndex).reverse().forEach(increaseFileIndex);
41964
+ fs$12.readdirSync(path$14.dirname(filename)).filter(justTheseFiles).sort(byIndex).reverse().forEach(increaseFileIndex);
41965
41965
  }
41966
41966
  debug("Rolling, rolling, rolling");
41967
41967
  renameTheFiles();
@@ -41971,7 +41971,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41971
41971
  function writeTheChunk() {
41972
41972
  debug("writing the chunk to the file");
41973
41973
  that.currentSize += chunk.length;
41974
- fs$11.appendFileSync(that.filename, chunk);
41974
+ fs$12.appendFileSync(that.filename, chunk);
41975
41975
  }
41976
41976
  debug("in write");
41977
41977
  if (this.shouldRoll()) {
@@ -41997,7 +41997,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41997
41997
  */
41998
41998
  function fileAppender(file, layout, logSize, numBackups, timezoneOffset, options) {
41999
41999
  debug("fileSync appender created");
42000
- file = path$13.normalize(file);
42000
+ file = path$14.normalize(file);
42001
42001
  numBackups = numBackups === void 0 ? 5 : numBackups;
42002
42002
  numBackups = numBackups === 0 ? 1 : numBackups;
42003
42003
  function openTheStream(filePath, fileSize, numFiles) {
@@ -42006,7 +42006,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42006
42006
  else stream = ((f) => {
42007
42007
  touchFile(f, options);
42008
42008
  return { write(data) {
42009
- fs$11.appendFileSync(f, data);
42009
+ fs$12.appendFileSync(f, data);
42010
42010
  } };
42011
42011
  })(filePath);
42012
42012
  return stream;
@@ -42031,7 +42031,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42031
42031
  //#endregion
42032
42032
  //#region ../../node_modules/log4js/lib/appenders/index.js
42033
42033
  var require_appenders = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42034
- var path$12 = __require("path");
42034
+ var path$13 = __require("path");
42035
42035
  var debug = require_src()("log4js:appenders");
42036
42036
  var configuration = require_configuration();
42037
42037
  var clustering = require_clustering();
@@ -42058,7 +42058,7 @@ var require_appenders = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42058
42058
  return;
42059
42059
  }
42060
42060
  };
42061
- var loadAppenderModule = (type, config) => coreAppenders.get(type) || tryLoading(`./${type}`, config) || tryLoading(type, config) || __require.main && tryLoading(path$12.join(path$12.dirname(__require.main.filename), type), config) || tryLoading(path$12.join(process.cwd(), type), config);
42061
+ var loadAppenderModule = (type, config) => coreAppenders.get(type) || tryLoading(`./${type}`, config) || tryLoading(type, config) || __require.main && tryLoading(path$13.join(path$13.dirname(__require.main.filename), type), config) || tryLoading(path$13.join(process.cwd(), type), config);
42062
42062
  var appendersLoading = /* @__PURE__ */ new Set();
42063
42063
  var getAppender = (name, config) => {
42064
42064
  if (appenders.has(name)) return appenders.get(name);
@@ -42605,7 +42605,7 @@ var require_log4js$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42605
42605
  * Website: http://log4js.berlios.de
42606
42606
  */
42607
42607
  var debug = require_src()("log4js:main");
42608
- var fs$10 = __require("fs");
42608
+ var fs$11 = __require("fs");
42609
42609
  var deepClone = require_rfdc()({ proto: true });
42610
42610
  var configuration = require_configuration();
42611
42611
  var layouts = require_layouts();
@@ -42626,7 +42626,7 @@ var require_log4js$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42626
42626
  function loadConfigurationFile(filename) {
42627
42627
  debug(`Loading configuration from ${filename}`);
42628
42628
  try {
42629
- return JSON.parse(fs$10.readFileSync(filename, "utf8"));
42629
+ return JSON.parse(fs$11.readFileSync(filename, "utf8"));
42630
42630
  } catch (e) {
42631
42631
  throw new Error(`Problem reading config from file "${filename}". Error was ${e.message}`, e);
42632
42632
  }
@@ -43714,10 +43714,10 @@ var require_atomic_sleep = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43714
43714
  //#endregion
43715
43715
  //#region ../../node_modules/sonic-boom/index.js
43716
43716
  var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43717
- var fs$9 = __require("fs");
43717
+ var fs$10 = __require("fs");
43718
43718
  var EventEmitter$8 = __require("events");
43719
43719
  var inherits = __require("util").inherits;
43720
- var path$11 = __require("path");
43720
+ var path$12 = __require("path");
43721
43721
  var sleep = require_atomic_sleep();
43722
43722
  var assert$1 = __require("assert");
43723
43723
  var BUSY_WRITE_TIMEOUT = 100;
@@ -43757,17 +43757,17 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43757
43757
  const flags = sonic.append ? "a" : "w";
43758
43758
  const mode = sonic.mode;
43759
43759
  if (sonic.sync) try {
43760
- if (sonic.mkdir) fs$9.mkdirSync(path$11.dirname(file), { recursive: true });
43761
- fileOpened(null, fs$9.openSync(file, flags, mode));
43760
+ if (sonic.mkdir) fs$10.mkdirSync(path$12.dirname(file), { recursive: true });
43761
+ fileOpened(null, fs$10.openSync(file, flags, mode));
43762
43762
  } catch (err) {
43763
43763
  fileOpened(err);
43764
43764
  throw err;
43765
43765
  }
43766
- else if (sonic.mkdir) fs$9.mkdir(path$11.dirname(file), { recursive: true }, (err) => {
43766
+ else if (sonic.mkdir) fs$10.mkdir(path$12.dirname(file), { recursive: true }, (err) => {
43767
43767
  if (err) return fileOpened(err);
43768
- fs$9.open(file, flags, mode, fileOpened);
43768
+ fs$10.open(file, flags, mode, fileOpened);
43769
43769
  });
43770
- else fs$9.open(file, flags, mode, fileOpened);
43770
+ else fs$10.open(file, flags, mode, fileOpened);
43771
43771
  }
43772
43772
  function SonicBoom(opts) {
43773
43773
  if (!(this instanceof SonicBoom)) return new SonicBoom(opts);
@@ -43805,8 +43805,8 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43805
43805
  this.flush = flushBuffer;
43806
43806
  this.flushSync = flushBufferSync;
43807
43807
  this._actualWrite = actualWriteBuffer;
43808
- fsWriteSync = () => fs$9.writeSync(this.fd, this._writingBuf);
43809
- fsWrite = () => fs$9.write(this.fd, this._writingBuf, this.release);
43808
+ fsWriteSync = () => fs$10.writeSync(this.fd, this._writingBuf);
43809
+ fsWrite = () => fs$10.write(this.fd, this._writingBuf, this.release);
43810
43810
  } else if (contentMode === void 0 || contentMode === kContentModeUtf8) {
43811
43811
  this._writingBuf = "";
43812
43812
  this.write = write;
@@ -43814,12 +43814,12 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43814
43814
  this.flushSync = flushSync;
43815
43815
  this._actualWrite = actualWrite;
43816
43816
  fsWriteSync = () => {
43817
- if (Buffer.isBuffer(this._writingBuf)) return fs$9.writeSync(this.fd, this._writingBuf);
43818
- return fs$9.writeSync(this.fd, this._writingBuf, "utf8");
43817
+ if (Buffer.isBuffer(this._writingBuf)) return fs$10.writeSync(this.fd, this._writingBuf);
43818
+ return fs$10.writeSync(this.fd, this._writingBuf, "utf8");
43819
43819
  };
43820
43820
  fsWrite = () => {
43821
- if (Buffer.isBuffer(this._writingBuf)) return fs$9.write(this.fd, this._writingBuf, this.release);
43822
- return fs$9.write(this.fd, this._writingBuf, "utf8", this.release);
43821
+ if (Buffer.isBuffer(this._writingBuf)) return fs$10.write(this.fd, this._writingBuf, this.release);
43822
+ return fs$10.write(this.fd, this._writingBuf, "utf8", this.release);
43823
43823
  };
43824
43824
  } else throw new Error(`SonicBoom supports "${kContentModeUtf8}" and "${kContentModeBuffer}", but passed ${contentMode}`);
43825
43825
  if (typeof fd === "number") {
@@ -43864,7 +43864,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43864
43864
  return;
43865
43865
  }
43866
43866
  }
43867
- if (this._fsync) fs$9.fsyncSync(this.fd);
43867
+ if (this._fsync) fs$10.fsyncSync(this.fd);
43868
43868
  const len = this._len;
43869
43869
  if (this._reopening) {
43870
43870
  this._writing = false;
@@ -43961,7 +43961,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43961
43961
  this._flushPending = true;
43962
43962
  const onDrain = () => {
43963
43963
  if (!this._fsync) try {
43964
- fs$9.fsync(this.fd, (err) => {
43964
+ fs$10.fsync(this.fd, (err) => {
43965
43965
  this._flushPending = false;
43966
43966
  cb(err);
43967
43967
  });
@@ -44038,7 +44038,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44038
44038
  if (this._writing) return;
44039
44039
  const fd = this.fd;
44040
44040
  this.once("ready", () => {
44041
- if (fd !== this.fd) fs$9.close(fd, (err) => {
44041
+ if (fd !== this.fd) fs$10.close(fd, (err) => {
44042
44042
  if (err) return this.emit("error", err);
44043
44043
  });
44044
44044
  });
@@ -44069,7 +44069,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44069
44069
  while (this._bufs.length || buf.length) {
44070
44070
  if (buf.length <= 0) buf = this._bufs[0];
44071
44071
  try {
44072
- const n = Buffer.isBuffer(buf) ? fs$9.writeSync(this.fd, buf) : fs$9.writeSync(this.fd, buf, "utf8");
44072
+ const n = Buffer.isBuffer(buf) ? fs$10.writeSync(this.fd, buf) : fs$10.writeSync(this.fd, buf, "utf8");
44073
44073
  const releasedBufObj = releaseWritingBuf(buf, this._len, n);
44074
44074
  buf = releasedBufObj.writingBuf;
44075
44075
  this._len = releasedBufObj.len;
@@ -44080,7 +44080,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44080
44080
  }
44081
44081
  }
44082
44082
  try {
44083
- fs$9.fsyncSync(this.fd);
44083
+ fs$10.fsyncSync(this.fd);
44084
44084
  } catch {}
44085
44085
  }
44086
44086
  function flushBufferSync() {
@@ -44094,7 +44094,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44094
44094
  while (this._bufs.length || buf.length) {
44095
44095
  if (buf.length <= 0) buf = mergeBuf(this._bufs[0], this._lens[0]);
44096
44096
  try {
44097
- const n = fs$9.writeSync(this.fd, buf);
44097
+ const n = fs$10.writeSync(this.fd, buf);
44098
44098
  buf = buf.subarray(n);
44099
44099
  this._len = Math.max(this._len - n, 0);
44100
44100
  if (buf.length <= 0) {
@@ -44116,24 +44116,24 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44116
44116
  this._writing = true;
44117
44117
  this._writingBuf = this._writingBuf.length ? this._writingBuf : this._bufs.shift() || "";
44118
44118
  if (this.sync) try {
44119
- release(null, Buffer.isBuffer(this._writingBuf) ? fs$9.writeSync(this.fd, this._writingBuf) : fs$9.writeSync(this.fd, this._writingBuf, "utf8"));
44119
+ release(null, Buffer.isBuffer(this._writingBuf) ? fs$10.writeSync(this.fd, this._writingBuf) : fs$10.writeSync(this.fd, this._writingBuf, "utf8"));
44120
44120
  } catch (err) {
44121
44121
  release(err);
44122
44122
  }
44123
- else fs$9.write(this.fd, this._writingBuf, release);
44123
+ else fs$10.write(this.fd, this._writingBuf, release);
44124
44124
  }
44125
44125
  function actualWriteBuffer() {
44126
44126
  const release = this.release;
44127
44127
  this._writing = true;
44128
44128
  this._writingBuf = this._writingBuf.length ? this._writingBuf : mergeBuf(this._bufs.shift(), this._lens.shift());
44129
44129
  if (this.sync) try {
44130
- release(null, fs$9.writeSync(this.fd, this._writingBuf));
44130
+ release(null, fs$10.writeSync(this.fd, this._writingBuf));
44131
44131
  } catch (err) {
44132
44132
  release(err);
44133
44133
  }
44134
44134
  else {
44135
44135
  if (kCopyBuffer) this._writingBuf = Buffer.from(this._writingBuf);
44136
- fs$9.write(this.fd, this._writingBuf, release);
44136
+ fs$10.write(this.fd, this._writingBuf, release);
44137
44137
  }
44138
44138
  }
44139
44139
  function actualClose(sonic) {
@@ -44147,10 +44147,10 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44147
44147
  sonic._lens = [];
44148
44148
  assert$1(typeof sonic.fd === "number", `sonic.fd must be a number, got ${typeof sonic.fd}`);
44149
44149
  try {
44150
- fs$9.fsync(sonic.fd, closeWrapped);
44150
+ fs$10.fsync(sonic.fd, closeWrapped);
44151
44151
  } catch {}
44152
44152
  function closeWrapped() {
44153
- if (sonic.fd !== 1 && sonic.fd !== 2) fs$9.close(sonic.fd, done);
44153
+ if (sonic.fd !== 1 && sonic.fd !== 2) fs$10.close(sonic.fd, done);
44154
44154
  else done();
44155
44155
  }
44156
44156
  function done(err) {
@@ -72947,7 +72947,7 @@ var require_tcp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
72947
72947
  var Transporter = require_base$1();
72948
72948
  var _ = require_lodash();
72949
72949
  var { isObject, isString } = require_utils$3();
72950
- var fs$8 = __require("fs");
72950
+ var fs$9 = __require("fs");
72951
72951
  var kleur = require_kleur();
72952
72952
  var Node = require_node$1();
72953
72953
  var P = require_packets();
@@ -73094,7 +73094,7 @@ var require_tcp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
73094
73094
  if (isString(str) && str.startsWith("file://")) {
73095
73095
  const fName = str.replace("file://", "");
73096
73096
  this.logger.debug(`Load nodes list from file '${fName}'...`);
73097
- let content = fs$8.readFileSync(fName);
73097
+ let content = fs$9.readFileSync(fName);
73098
73098
  if (content && content.length > 0) {
73099
73099
  const str = content.toString().trim();
73100
73100
  if (str.startsWith("{") || str.startsWith("[")) return JSON.parse(str);
@@ -75584,15 +75584,15 @@ var require_ttl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75584
75584
  //#region ../../node_modules/recursive-watch/index.js
75585
75585
  var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75586
75586
  var os$4 = __require("os");
75587
- var fs$7 = __require("fs");
75588
- var path$10 = __require("path");
75587
+ var fs$8 = __require("fs");
75588
+ var path$11 = __require("path");
75589
75589
  var Cache = require_ttl();
75590
75590
  var watchDirectory = os$4.platform() === "linux" ? watchFallback : watchRecursive;
75591
75591
  module.exports = watch;
75592
75592
  function watch(name, onchange) {
75593
75593
  var clear = null;
75594
75594
  var stopped = false;
75595
- fs$7.lstat(name, function(_, st) {
75595
+ fs$8.lstat(name, function(_, st) {
75596
75596
  if (!st || stopped) {
75597
75597
  stopped = true;
75598
75598
  return;
@@ -75608,8 +75608,8 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
75608
75608
  function watchFile(filename, onchange) {
75609
75609
  var prev = null;
75610
75610
  var prevTime = 0;
75611
- var w = fs$7.watch(filename, function() {
75612
- fs$7.lstat(filename, function(_, st) {
75611
+ var w = fs$8.watch(filename, function() {
75612
+ fs$8.lstat(filename, function(_, st) {
75613
75613
  var now = Date.now();
75614
75614
  if (now - prevTime > 2e3 || !same(st, prev)) onchange(filename);
75615
75615
  prevTime = now;
@@ -75621,9 +75621,9 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
75621
75621
  };
75622
75622
  }
75623
75623
  function watchRecursive(directory, onchange) {
75624
- var w = fs$7.watch(directory, { recursive: true }, function(change, filename) {
75624
+ var w = fs$8.watch(directory, { recursive: true }, function(change, filename) {
75625
75625
  if (!filename) return;
75626
- onchange(path$10.join(directory, filename));
75626
+ onchange(path$11.join(directory, filename));
75627
75627
  });
75628
75628
  return function() {
75629
75629
  w.close();
@@ -75651,7 +75651,7 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
75651
75651
  }
75652
75652
  function update() {
75653
75653
  var filename = queued[0];
75654
- fs$7.lstat(filename, function(err, st) {
75654
+ fs$8.lstat(filename, function(err, st) {
75655
75655
  var w = watching[filename];
75656
75656
  if (err && w) {
75657
75657
  w.close();
@@ -75660,30 +75660,30 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
75660
75660
  var prevSt = prevs.get(filename);
75661
75661
  if (!prevSt || !same(st, prevSt)) onchange(filename);
75662
75662
  prevs.put(filename, st);
75663
- visit(path$10.relative(directory, filename), function() {
75663
+ visit(path$11.relative(directory, filename), function() {
75664
75664
  queued.shift();
75665
75665
  if (queued.length) update();
75666
75666
  });
75667
75667
  });
75668
75668
  }
75669
75669
  function visit(next, cb) {
75670
- var dir = path$10.join(directory, next);
75671
- fs$7.lstat(dir, function(err, st) {
75670
+ var dir = path$11.join(directory, next);
75671
+ fs$8.lstat(dir, function(err, st) {
75672
75672
  if (err || !st.isDirectory()) return cb();
75673
75673
  if (watching[dir]) return cb();
75674
75674
  if (loaded) emit(dir);
75675
- var w = fs$7.watch(dir, function(change, filename) {
75676
- filename = path$10.join(next, filename);
75677
- emit(path$10.join(directory, filename));
75675
+ var w = fs$8.watch(dir, function(change, filename) {
75676
+ filename = path$11.join(next, filename);
75677
+ emit(path$11.join(directory, filename));
75678
75678
  });
75679
75679
  w.on("error", noop);
75680
75680
  watching[dir] = w;
75681
- fs$7.readdir(dir, function(err, list) {
75681
+ fs$8.readdir(dir, function(err, list) {
75682
75682
  if (err) return cb(err);
75683
75683
  loop();
75684
75684
  function loop() {
75685
75685
  if (!list.length) return cb();
75686
- visit(path$10.join(next, list.shift()), loop);
75686
+ visit(path$11.join(next, list.shift()), loop);
75687
75687
  }
75688
75688
  });
75689
75689
  });
@@ -75698,9 +75698,9 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
75698
75698
  //#endregion
75699
75699
  //#region ../../node_modules/moleculer/src/middlewares/hot-reload.js
75700
75700
  var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75701
- var fs$6 = __require("fs");
75701
+ var fs$7 = __require("fs");
75702
75702
  var kleur = require_kleur();
75703
- var path$9 = __require("path");
75703
+ var path$10 = __require("path");
75704
75704
  var watch = require_recursive_watch();
75705
75705
  var _ = require_lodash();
75706
75706
  var { clearRequireCache, makeDirs, isFunction, isString, uniq } = require_utils$3();
@@ -75712,10 +75712,10 @@ var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75712
75712
  let hotReloadModules = [];
75713
75713
  let extraFiles = null;
75714
75714
  function hotReloadService(service) {
75715
- const relPath = path$9.relative(process.cwd(), service.__filename);
75715
+ const relPath = path$10.relative(process.cwd(), service.__filename);
75716
75716
  broker.logger.info(`Hot reload '${service.name}' service...`, kleur.grey(relPath));
75717
75717
  return broker.destroyService(service).then(() => {
75718
- if (fs$6.existsSync(service.__filename)) try {
75718
+ if (fs$7.existsSync(service.__filename)) try {
75719
75719
  return broker.loadService(service.__filename);
75720
75720
  } catch (err) {
75721
75721
  broker.logger.error(`Failed to load service '${service.__filename}'`, err);
@@ -75747,7 +75747,7 @@ var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75747
75747
  });
75748
75748
  broker.logger.info(kleur.bgMagenta().white().bold(`Reload ${needToReloadDedup.length} service(s)`));
75749
75749
  needToReloadDedup.forEach((svc) => {
75750
- if (typeof svc == "string") if (fs$6.existsSync(svc)) return broker.loadService(svc);
75750
+ if (typeof svc == "string") if (fs$7.existsSync(svc)) return broker.loadService(svc);
75751
75751
  else return;
75752
75752
  return hotReloadService(svc);
75753
75753
  });
@@ -75757,19 +75757,19 @@ var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75757
75757
  broker.logger.debug("");
75758
75758
  broker.logger.debug(kleur.yellow().bold("Watching the following project files:"));
75759
75759
  projectFiles.forEach((watchItem, fName) => {
75760
- if (!fs$6.existsSync(fName)) projectFiles.delete(fName);
75760
+ if (!fs$7.existsSync(fName)) projectFiles.delete(fName);
75761
75761
  });
75762
75762
  projectFiles.forEach((watchItem, fName) => {
75763
- const relPath = path$9.relative(process.cwd(), fName);
75763
+ const relPath = path$10.relative(process.cwd(), fName);
75764
75764
  if (watchItem.brokerRestart) broker.logger.debug(` ${relPath}:`, kleur.grey("restart broker."));
75765
75765
  else if (watchItem.allServices) broker.logger.debug(` ${relPath}:`, kleur.grey("reload all services."));
75766
75766
  else if (watchItem.services.length > 0) {
75767
75767
  broker.logger.debug(` ${relPath}:`, kleur.grey(`reload ${watchItem.services.length} service(s) & ${watchItem.others.length} other(s).`));
75768
75768
  watchItem.services.forEach((svcFullname) => broker.logger.debug(kleur.grey(` ${svcFullname}`)));
75769
- watchItem.others.forEach((filename) => broker.logger.debug(kleur.grey(` ${path$9.relative(process.cwd(), filename)}`)));
75769
+ watchItem.others.forEach((filename) => broker.logger.debug(kleur.grey(` ${path$10.relative(process.cwd(), filename)}`)));
75770
75770
  }
75771
- watchItem.watcher = fs$6.watch(fName, (eventType) => {
75772
- const relPath = path$9.relative(process.cwd(), fName);
75771
+ watchItem.watcher = fs$7.watch(fName, (eventType) => {
75772
+ const relPath = path$10.relative(process.cwd(), fName);
75773
75773
  broker.logger.info(kleur.magenta().bold(`The '${relPath}' file is changed. (Event: ${eventType})`));
75774
75774
  clearRequireCache(fName);
75775
75775
  if (watchItem.others.length > 0) watchItem.others.forEach((f) => clearRequireCache(f));
@@ -75887,16 +75887,16 @@ var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75887
75887
  broker.logger.debug(kleur.yellow().bold("Watching the following folder(s):"));
75888
75888
  folders.forEach((folder) => {
75889
75889
  makeDirs(folder);
75890
- broker.logger.debug(` ${path$9.relative(process.cwd(), folder)}/`);
75890
+ broker.logger.debug(` ${path$10.relative(process.cwd(), folder)}/`);
75891
75891
  folderWatchers.push({
75892
75892
  path: folder,
75893
75893
  watcher: watch(folder, (filename) => {
75894
75894
  if (filename.endsWith(".service.js") || filename.endsWith(".service.ts")) {
75895
- broker.logger.debug(`There is changes in '${folder}' folder: `, path$9.basename(filename));
75895
+ broker.logger.debug(`There is changes in '${folder}' folder: `, path$10.basename(filename));
75896
75896
  const isLoaded = broker.services.some((svc) => svc.__filename == filename);
75897
- const fileExists = fs$6.existsSync(filename);
75897
+ const fileExists = fs$7.existsSync(filename);
75898
75898
  if (!isLoaded && fileExists) {
75899
- broker.logger.debug("Loading new file: ", path$9.basename(filename));
75899
+ broker.logger.debug("Loading new file: ", path$10.basename(filename));
75900
75900
  needToLoad.add(filename);
75901
75901
  loadServices();
75902
75902
  }
@@ -76072,8 +76072,8 @@ var require_compression = /* @__PURE__ */ __commonJSMin(((exports, module) => {
76072
76072
  var require_transit_logger = /* @__PURE__ */ __commonJSMin(((exports, module) => {
76073
76073
  var _ = require_lodash();
76074
76074
  var kleur = require_kleur();
76075
- var fs$5 = __require("fs");
76076
- var path$8 = __require("path");
76075
+ var fs$6 = __require("fs");
76076
+ var path$9 = __require("path");
76077
76077
  var { makeDirs, safetyObject } = require_utils$3();
76078
76078
  module.exports = function TransitLoggerMiddleware(opts) {
76079
76079
  opts = _.defaultsDeep(opts, {
@@ -76098,7 +76098,7 @@ var require_transit_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
76098
76098
  } catch {
76099
76099
  data = JSON.stringify(safetyObject(payload), payload instanceof Error ? Object.getOwnPropertyNames(payload) : null, 4);
76100
76100
  }
76101
- fs$5.writeFile(path$8.join(targetFolder, filename), data, () => {});
76101
+ fs$6.writeFile(path$9.join(targetFolder, filename), data, () => {});
76102
76102
  }
76103
76103
  const coloringSend = opts.colors && opts.colors.send ? opts.colors.send.split(".").reduce((a, b) => a[b] || a()[b], kleur) : (s) => s;
76104
76104
  const coloringReceive = opts.colors && opts.colors.receive ? opts.colors.receive.split(".").reduce((a, b) => a[b] || a()[b], kleur) : (s) => s;
@@ -76109,7 +76109,7 @@ var require_transit_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
76109
76109
  logger = opts.logger || broker.getLogger("debug");
76110
76110
  nodeID = broker.nodeID;
76111
76111
  if (opts.folder) {
76112
- targetFolder = path$8.join(opts.folder, nodeID);
76112
+ targetFolder = path$9.join(opts.folder, nodeID);
76113
76113
  makeDirs(targetFolder);
76114
76114
  }
76115
76115
  logFn = opts.logLevel ? logger[opts.logLevel] : null;
@@ -76146,8 +76146,8 @@ var require_transit_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
76146
76146
  var require_action_logger = /* @__PURE__ */ __commonJSMin(((exports, module) => {
76147
76147
  var _ = require_lodash();
76148
76148
  var kleur = require_kleur();
76149
- var fs$4 = __require("fs");
76150
- var path$7 = __require("path");
76149
+ var fs$5 = __require("fs");
76150
+ var path$8 = __require("path");
76151
76151
  var { makeDirs, match, isObject, safetyObject } = require_utils$3();
76152
76152
  module.exports = function ActionLoggerMiddleware(opts) {
76153
76153
  opts = _.defaultsDeep(opts, {
@@ -76176,7 +76176,7 @@ var require_action_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
76176
76176
  } catch {
76177
76177
  data = JSON.stringify(safetyObject(payload), payload instanceof Error ? Object.getOwnPropertyNames(payload) : null, 4);
76178
76178
  }
76179
- fs$4.writeFile(path$7.join(targetFolder, filename), data, () => {});
76179
+ fs$5.writeFile(path$8.join(targetFolder, filename), data, () => {});
76180
76180
  }
76181
76181
  function isWhiteListed(actionName) {
76182
76182
  return !!opts.whitelist.find((pattern) => match(actionName, pattern));
@@ -76191,7 +76191,7 @@ var require_action_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
76191
76191
  logger = opts.logger || broker.getLogger("debug");
76192
76192
  nodeID = broker.nodeID;
76193
76193
  if (opts.folder) {
76194
- targetFolder = path$7.join(opts.folder, nodeID);
76194
+ targetFolder = path$8.join(opts.folder, nodeID);
76195
76195
  makeDirs(targetFolder);
76196
76196
  }
76197
76197
  logFn = opts.logLevel ? logger[opts.logLevel] : null;
@@ -79393,7 +79393,7 @@ var require_service_broker = /* @__PURE__ */ __commonJSMin(((exports, module) =>
79393
79393
  var EventEmitter2 = require_eventemitter2().EventEmitter2;
79394
79394
  var _ = require_lodash();
79395
79395
  var { globSync } = require_index_min$1();
79396
- var path$6 = __require("path");
79396
+ var path$7 = __require("path");
79397
79397
  var { format } = __require("util");
79398
79398
  var Transit = require_transit();
79399
79399
  var Registry = require_registry();
@@ -79942,7 +79942,7 @@ var require_service_broker = /* @__PURE__ */ __commonJSMin(((exports, module) =>
79942
79942
  loadServices(folder = "./services", fileMask = "**/*.service.js") {
79943
79943
  this.logger.debug(`Search services in '${folder}/${fileMask}'...`);
79944
79944
  let serviceFiles;
79945
- if (Array.isArray(fileMask)) serviceFiles = fileMask.map((f) => path$6.join(folder, f));
79945
+ if (Array.isArray(fileMask)) serviceFiles = fileMask.map((f) => path$7.join(folder, f));
79946
79946
  else serviceFiles = globSync(folder + "/" + fileMask);
79947
79947
  if (serviceFiles) serviceFiles.forEach((filename) => this.loadService(filename));
79948
79948
  return serviceFiles.length;
@@ -79958,8 +79958,8 @@ var require_service_broker = /* @__PURE__ */ __commonJSMin(((exports, module) =>
79958
79958
  loadService(filePath) {
79959
79959
  let fName, schema;
79960
79960
  try {
79961
- fName = __require.resolve(path$6.resolve(filePath));
79962
- this.logger.debug(`Load service '${path$6.basename(fName)}'...`);
79961
+ fName = __require.resolve(path$7.resolve(filePath));
79962
+ this.logger.debug(`Load service '${path$7.basename(fName)}'...`);
79963
79963
  const r = __require(fName);
79964
79964
  schema = r.default != null ? r.default : r;
79965
79965
  let svc;
@@ -82942,7 +82942,7 @@ var require_leven = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82942
82942
  //#region ../../node_modules/args/lib/utils.js
82943
82943
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82944
82944
  var { spawn } = __require("child_process");
82945
- var path$5 = __require("path");
82945
+ var path$6 = __require("path");
82946
82946
  var camelcase = require_camelcase();
82947
82947
  var leven = require_leven();
82948
82948
  function similarityBestMatch(mainString, targetStrings) {
@@ -83103,10 +83103,10 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83103
83103
  break;
83104
83104
  }
83105
83105
  if (process.platform === "win32") {
83106
- const binaryExt = path$5.extname(this.binary);
83106
+ const binaryExt = path$6.extname(this.binary);
83107
83107
  const mainModule = process.env.APPVEYOR ? "_fixture" : process.mainModule.filename;
83108
83108
  full = `${mainModule}-${subCommand}`;
83109
- if (path$5.extname(this.binary)) full = `${mainModule.replace(binaryExt, "")}-${subCommand}${binaryExt}`;
83109
+ if (path$6.extname(this.binary)) full = `${mainModule.replace(binaryExt, "")}-${subCommand}${binaryExt}`;
83110
83110
  args.unshift(full);
83111
83111
  this.child = spawn(process.execPath, args, { stdio: "inherit" });
83112
83112
  } else this.child = spawn(full, args, { stdio: "inherit" });
@@ -83299,7 +83299,7 @@ var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83299
83299
  //#endregion
83300
83300
  //#region ../../node_modules/args/lib/parse.js
83301
83301
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83302
- var path$4 = __require("path");
83302
+ var path$5 = __require("path");
83303
83303
  var parser = require_lib$1();
83304
83304
  module.exports = function(argv, options) {
83305
83305
  Object.assign(this.config, options);
@@ -83314,7 +83314,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83314
83314
  }
83315
83315
  else this.printSubColor = this.printSubColor[this.config.subColor];
83316
83316
  this.raw = parser(argv.slice(1), this.config.mri || this.config.minimist);
83317
- this.binary = path$4.basename(this.raw._[0]);
83317
+ this.binary = path$5.basename(this.raw._[0]);
83318
83318
  if (this.config.version) this.checkVersion();
83319
83319
  if (this.config.help) this.checkHelp();
83320
83320
  const subCommand = this.raw._[1];
@@ -83399,8 +83399,8 @@ var require_help = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83399
83399
  //#endregion
83400
83400
  //#region ../../node_modules/args/lib/version.js
83401
83401
  var require_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83402
- var fs$3 = __require("fs");
83403
- var path$3 = __require("path");
83402
+ var fs$4 = __require("fs");
83403
+ var path$4 = __require("path");
83404
83404
  /**
83405
83405
  * Retrieves the main module package.json information.
83406
83406
  *
@@ -83411,13 +83411,13 @@ var require_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83411
83411
  * An object containing the package.json contents or NULL if it could not be found.
83412
83412
  */
83413
83413
  function findPackage(directory) {
83414
- const file = path$3.resolve(directory, "package.json");
83415
- if (fs$3.existsSync(file) && fs$3.statSync(file).isFile()) return __require(file);
83416
- const parent = path$3.resolve(directory, "..");
83414
+ const file = path$4.resolve(directory, "package.json");
83415
+ if (fs$4.existsSync(file) && fs$4.statSync(file).isFile()) return __require(file);
83416
+ const parent = path$4.resolve(directory, "..");
83417
83417
  return parent === directory ? null : findPackage(parent);
83418
83418
  }
83419
83419
  module.exports = function() {
83420
- const pkg = findPackage(path$3.dirname(process.mainModule.filename));
83420
+ const pkg = findPackage(path$4.dirname(process.mainModule.filename));
83421
83421
  const version = pkg && pkg.version || "-/-";
83422
83422
  console.log(version);
83423
83423
  if (this.config.exit && this.config.exit.version) process.exit();
@@ -83474,8 +83474,8 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83474
83474
  //#endregion
83475
83475
  //#region ../../node_modules/dotenv/lib/main.js
83476
83476
  var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83477
- var fs$2 = __require("fs");
83478
- var path$2 = __require("path");
83477
+ var fs$3 = __require("fs");
83478
+ var path$3 = __require("path");
83479
83479
  var os$2 = __require("os");
83480
83480
  var crypto$1 = __require("crypto");
83481
83481
  var TIPS = [
@@ -83602,14 +83602,14 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83602
83602
  function _vaultPath(options) {
83603
83603
  let possibleVaultPath = null;
83604
83604
  if (options && options.path && options.path.length > 0) if (Array.isArray(options.path)) {
83605
- for (const filepath of options.path) if (fs$2.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
83605
+ for (const filepath of options.path) if (fs$3.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
83606
83606
  } else possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
83607
- else possibleVaultPath = path$2.resolve(process.cwd(), ".env.vault");
83608
- if (fs$2.existsSync(possibleVaultPath)) return possibleVaultPath;
83607
+ else possibleVaultPath = path$3.resolve(process.cwd(), ".env.vault");
83608
+ if (fs$3.existsSync(possibleVaultPath)) return possibleVaultPath;
83609
83609
  return null;
83610
83610
  }
83611
83611
  function _resolveHome(envPath) {
83612
- return envPath[0] === "~" ? path$2.join(os$2.homedir(), envPath.slice(1)) : envPath;
83612
+ return envPath[0] === "~" ? path$3.join(os$2.homedir(), envPath.slice(1)) : envPath;
83613
83613
  }
83614
83614
  function _configVault(options) {
83615
83615
  const debug = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options && options.debug);
@@ -83622,7 +83622,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83622
83622
  return { parsed };
83623
83623
  }
83624
83624
  function configDotenv(options) {
83625
- const dotenvPath = path$2.resolve(process.cwd(), ".env");
83625
+ const dotenvPath = path$3.resolve(process.cwd(), ".env");
83626
83626
  let encoding = "utf8";
83627
83627
  let processEnv = process.env;
83628
83628
  if (options && options.processEnv != null) processEnv = options.processEnv;
@@ -83639,7 +83639,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83639
83639
  let lastError;
83640
83640
  const parsedAll = {};
83641
83641
  for (const path of optionPaths) try {
83642
- const parsed = DotenvModule.parse(fs$2.readFileSync(path, { encoding }));
83642
+ const parsed = DotenvModule.parse(fs$3.readFileSync(path, { encoding }));
83643
83643
  DotenvModule.populate(parsedAll, parsed, options);
83644
83644
  } catch (e) {
83645
83645
  if (debug) _debug(`failed to load ${path} ${e.message}`);
@@ -83652,7 +83652,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83652
83652
  const keysCount = Object.keys(populated).length;
83653
83653
  const shortPaths = [];
83654
83654
  for (const filePath of optionPaths) try {
83655
- const relative = path$2.relative(process.cwd(), filePath);
83655
+ const relative = path$3.relative(process.cwd(), filePath);
83656
83656
  shortPaths.push(relative);
83657
83657
  } catch (e) {
83658
83658
  if (debug) _debug(`failed to load ${filePath} ${e.message}`);
@@ -83751,8 +83751,8 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83751
83751
  */
83752
83752
  var ServiceBroker = require_service_broker();
83753
83753
  var utils = require_utils$3();
83754
- var fs$1 = __require("fs");
83755
- var path$1 = __require("path");
83754
+ var fs$2 = __require("fs");
83755
+ var path$2 = __require("path");
83756
83756
  var { globSync } = require_index_min$1();
83757
83757
  var inspect = __require("util").inspect;
83758
83758
  var _ = require_lodash();
@@ -83880,17 +83880,17 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83880
83880
  let filePath;
83881
83881
  const configPath = process.env["MOLECULER_CONFIG"] || this.flags.config;
83882
83882
  if (configPath != null) {
83883
- if (path$1.isAbsolute(configPath)) filePath = this.tryConfigPath(configPath);
83883
+ if (path$2.isAbsolute(configPath)) filePath = this.tryConfigPath(configPath);
83884
83884
  else {
83885
- filePath = this.tryConfigPath(path$1.resolve(process.cwd(), configPath));
83885
+ filePath = this.tryConfigPath(path$2.resolve(process.cwd(), configPath));
83886
83886
  if (filePath == null) filePath = this.tryConfigPath(configPath, true);
83887
83887
  }
83888
83888
  if (filePath == null) return Promise.reject(/* @__PURE__ */ new Error(`Config file not found: ${configPath}`));
83889
83889
  }
83890
- if (filePath == null) filePath = this.tryConfigPath(path$1.resolve(process.cwd(), "moleculer.config.js"));
83891
- if (filePath == null) filePath = this.tryConfigPath(path$1.resolve(process.cwd(), "moleculer.config.json"));
83890
+ if (filePath == null) filePath = this.tryConfigPath(path$2.resolve(process.cwd(), "moleculer.config.js"));
83891
+ if (filePath == null) filePath = this.tryConfigPath(path$2.resolve(process.cwd(), "moleculer.config.json"));
83892
83892
  if (filePath == null) return Promise.resolve({});
83893
- const ext = path$1.extname(filePath);
83893
+ const ext = path$2.extname(filePath);
83894
83894
  switch (ext) {
83895
83895
  case ".json":
83896
83896
  case ".js":
@@ -83976,7 +83976,7 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83976
83976
  */
83977
83977
  isDirectory(p) {
83978
83978
  try {
83979
- return fs$1.lstatSync(p).isDirectory();
83979
+ return fs$2.lstatSync(p).isDirectory();
83980
83980
  } catch {}
83981
83981
  return false;
83982
83982
  }
@@ -83988,7 +83988,7 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83988
83988
  */
83989
83989
  isServiceFile(p) {
83990
83990
  try {
83991
- return !fs$1.lstatSync(p).isDirectory();
83991
+ return !fs$2.lstatSync(p).isDirectory();
83992
83992
  } catch {}
83993
83993
  return false;
83994
83994
  }
@@ -84013,7 +84013,7 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
84013
84013
  this.watchFolders.length = 0;
84014
84014
  const fileMask = this.flags.mask || "**/*.service.js";
84015
84015
  const serviceDir = process.env.SERVICEDIR || "";
84016
- const svcDir = path$1.isAbsolute(serviceDir) ? serviceDir : path$1.resolve(process.cwd(), serviceDir);
84016
+ const svcDir = path$2.isAbsolute(serviceDir) ? serviceDir : path$2.resolve(process.cwd(), serviceDir);
84017
84017
  let patterns = this.servicePaths;
84018
84018
  if (process.env.SERVICES || process.env.SERVICEDIR) {
84019
84019
  if (this.isDirectory(svcDir) && !process.env.SERVICES) {
@@ -84029,7 +84029,7 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
84029
84029
  if (p.startsWith("npm:")) this.loadNpmModule(p.slice(4));
84030
84030
  else {
84031
84031
  let files;
84032
- const svcPath = path$1.isAbsolute(p) ? p : path$1.resolve(svcDir, p);
84032
+ const svcPath = path$2.isAbsolute(p) ? p : path$2.resolve(svcDir, p);
84033
84033
  if (this.isDirectory(svcPath)) {
84034
84034
  if (this.config.hotReload) this.watchFolders.push(svcPath);
84035
84035
  files = globSync(svcPath + "/" + fileMask, { absolute: true });
@@ -84201,12 +84201,12 @@ var Gt = (n, t, e) => {
84201
84201
  }
84202
84202
  return h;
84203
84203
  };
84204
- var fe = "\0SLASH" + Math.random() + "\0", ue = "\0OPEN" + Math.random() + "\0", qt = "\0CLOSE" + Math.random() + "\0", de = "\0COMMA" + Math.random() + "\0", pe = "\0PERIOD" + Math.random() + "\0", is = new RegExp(fe, "g"), rs = new RegExp(ue, "g"), ns = new RegExp(qt, "g"), os = new RegExp(de, "g"), hs = new RegExp(pe, "g"), as = /\\\\/g, ls = /\\{/g, cs = /\\}/g, fs = /\\,/g, us = /\\./g, ds = 1e5;
84204
+ var fe = "\0SLASH" + Math.random() + "\0", ue = "\0OPEN" + Math.random() + "\0", qt = "\0CLOSE" + Math.random() + "\0", de = "\0COMMA" + Math.random() + "\0", pe = "\0PERIOD" + Math.random() + "\0", is = new RegExp(fe, "g"), rs = new RegExp(ue, "g"), ns = new RegExp(qt, "g"), os = new RegExp(de, "g"), hs = new RegExp(pe, "g"), as = /\\\\/g, ls = /\\{/g, cs = /\\}/g, fs$1 = /\\,/g, us = /\\./g, ds = 1e5;
84205
84205
  function Ht(n) {
84206
84206
  return isNaN(n) ? n.charCodeAt(0) : parseInt(n, 10);
84207
84207
  }
84208
84208
  function ps(n) {
84209
- return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs, de).replace(us, pe);
84209
+ return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs$1, de).replace(us, pe);
84210
84210
  }
84211
84211
  function ms(n) {
84212
84212
  return n.replace(is, "\\").replace(rs, "{").replace(ns, "}").replace(os, ",").replace(hs, ".");
@@ -87129,7 +87129,7 @@ var Li = (n, t) => typeof n == "string" ? new ot([n], t) : Array.isArray(n) ? ne
87129
87129
  return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => this.results.end()), this.results;
87130
87130
  }
87131
87131
  };
87132
- var Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", I$1 = class {
87132
+ var Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", I = class {
87133
87133
  absolute;
87134
87134
  cwd;
87135
87135
  root;
@@ -87254,22 +87254,22 @@ var le = (n, t = {}) => {
87254
87254
  return !1;
87255
87255
  };
87256
87256
  function Bt(n, t = {}) {
87257
- return new I$1(n, t).streamSync();
87257
+ return new I(n, t).streamSync();
87258
87258
  }
87259
87259
  function Qe(n, t = {}) {
87260
- return new I$1(n, t).stream();
87260
+ return new I(n, t).stream();
87261
87261
  }
87262
87262
  function ts(n, t = {}) {
87263
- return new I$1(n, t).walkSync();
87263
+ return new I(n, t).walkSync();
87264
87264
  }
87265
87265
  async function Je(n, t = {}) {
87266
- return new I$1(n, t).walk();
87266
+ return new I(n, t).walk();
87267
87267
  }
87268
87268
  function Ut(n, t = {}) {
87269
- return new I$1(n, t).iterateSync();
87269
+ return new I(n, t).iterateSync();
87270
87270
  }
87271
87271
  function es(n, t = {}) {
87272
- return new I$1(n, t).iterate();
87272
+ return new I(n, t).iterate();
87273
87273
  }
87274
87274
  var ji = Bt, Ii = Object.assign(Qe, { sync: Bt }), zi = Ut, Bi = Object.assign(es, { sync: Ut }), Ui = Object.assign(ts, {
87275
87275
  stream: Bt,
@@ -87286,7 +87286,7 @@ var ji = Bt, Ii = Object.assign(Qe, { sync: Bt }), zi = Ut, Bi = Object.assign(e
87286
87286
  iterate: Bi,
87287
87287
  globIterateSync: Ut,
87288
87288
  iterateSync: zi,
87289
- Glob: I$1,
87289
+ Glob: I,
87290
87290
  hasMagic: le,
87291
87291
  escape: tt,
87292
87292
  unescape: W