@camstack/system 1.2.438 → 1.2.440

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 (120) hide show
  1. package/dist/addon-runner.js +743 -79
  2. package/dist/addon-runner.mjs +743 -79
  3. package/dist/addon-utils.js +1 -1
  4. package/dist/addon-utils.mjs +1 -1
  5. package/dist/{agent-https-BZIwS4xF.js → agent-https-DlpTMDqA.js} +252 -22
  6. package/dist/{agent-https-BPfHrI4c.mjs → agent-https-U0d4uvn2.mjs} +211 -23
  7. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  8. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  9. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  10. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  11. package/dist/builtins/alerts/alerts.addon.js +1 -1
  12. package/dist/builtins/alerts/alerts.addon.mjs +1 -1
  13. package/dist/builtins/autotrack/index.js +1 -1
  14. package/dist/builtins/autotrack/index.mjs +1 -1
  15. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  16. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  17. package/dist/builtins/calendars/calendars.addon.js +1 -1
  18. package/dist/builtins/calendars/calendars.addon.mjs +1 -1
  19. package/dist/builtins/camera-grid/index.js +1 -1
  20. package/dist/builtins/camera-grid/index.mjs +1 -1
  21. package/dist/builtins/composer/composer.addon.js +2 -2
  22. package/dist/builtins/composer/composer.addon.mjs +2 -2
  23. package/dist/builtins/console-logging/index.js +1 -1
  24. package/dist/builtins/console-logging/index.mjs +1 -1
  25. package/dist/builtins/core-blocks/block-settings-store.d.ts +1 -1
  26. package/dist/builtins/core-blocks/core-blocks.addon.js +77 -11
  27. package/dist/builtins/core-blocks/core-blocks.addon.mjs +77 -12
  28. package/dist/builtins/core-blocks/index.mjs +1 -1
  29. package/dist/builtins/device-manager/device-manager.addon.js +197 -60
  30. package/dist/builtins/device-manager/device-manager.addon.mjs +196 -61
  31. package/dist/builtins/device-manager/device-removal-hooks.d.ts +0 -11
  32. package/dist/builtins/device-manager/device-tombstone-store.d.ts +12 -2
  33. package/dist/builtins/hub-forwarder/index.js +1 -1
  34. package/dist/builtins/hub-forwarder/index.mjs +1 -1
  35. package/dist/builtins/keychain/index.js +29 -11
  36. package/dist/builtins/keychain/index.mjs +29 -11
  37. package/dist/builtins/keychain/keychain-service.d.ts +8 -0
  38. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  39. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  40. package/dist/builtins/local-auth/local-auth.addon.js +2 -2
  41. package/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  42. package/dist/builtins/local-network/local-network.addon.js +7 -2
  43. package/dist/builtins/local-network/local-network.addon.mjs +7 -2
  44. package/dist/builtins/loki-logging/index.js +1 -1
  45. package/dist/builtins/loki-logging/index.mjs +1 -1
  46. package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  47. package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  48. package/dist/builtins/platform-probe/index.js +1 -1
  49. package/dist/builtins/platform-probe/index.mjs +1 -1
  50. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  51. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  52. package/dist/builtins/snapshot/index.js +1 -1
  53. package/dist/builtins/snapshot/index.mjs +1 -1
  54. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  55. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  56. package/dist/builtins/sqlite-storage/index.js +1 -1
  57. package/dist/builtins/sqlite-storage/index.mjs +1 -1
  58. package/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +38 -7
  59. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +69 -3
  60. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +69 -3
  61. package/dist/builtins/sqlite-storage/storage-admin-provider.d.ts +31 -0
  62. package/dist/builtins/storage-orchestrator/hub-settings-forward.d.ts +3 -3
  63. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +4 -4
  64. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +4 -4
  65. package/dist/builtins/system-config/system-config.addon.js +4 -4
  66. package/dist/builtins/system-config/system-config.addon.mjs +285 -285
  67. package/dist/builtins/winston-logging/index.js +1 -1
  68. package/dist/builtins/winston-logging/index.mjs +1 -1
  69. package/dist/{composition-sources-DpHGCjdL.mjs → composition-sources-CS0D7imL.mjs} +1 -1
  70. package/dist/{composition-sources-DI3Z83vG.js → composition-sources-cBG8fBTu.js} +1 -1
  71. package/dist/{constants-DQK705Sb.mjs → constants-CIzPjw7L.mjs} +1 -1
  72. package/dist/{constants-wkcn5Ij3.js → constants-CRI3QzT4.js} +1 -1
  73. package/dist/{device-ca-DvIZjXIl.mjs → device-ca-DLKXYseS.mjs} +2 -2
  74. package/dist/{device-ca-BSvkXqyI.js → device-ca-DNHjts4_.js} +2 -2
  75. package/dist/{dist-Dc8GKC5H.mjs → dist-9fcsrFU3.mjs} +271 -32
  76. package/dist/{dist-GgG-7amw.js → dist-BKhlcYz6.js} +288 -31
  77. package/dist/file-host-worker.js +1 -1
  78. package/dist/file-host-worker.mjs +1 -1
  79. package/dist/{hub-mdns-ciao-CBLvq2oj.js → hub-mdns-ciao-3Zc9G9MS.js} +377 -69
  80. package/dist/{hub-mdns-ciao-DMlQTdPU.mjs → hub-mdns-ciao-Dy2YjRqC.mjs} +344 -72
  81. package/dist/index.js +372 -339
  82. package/dist/index.mjs +361 -341
  83. package/dist/kernel/addon-settings-store.d.ts +43 -0
  84. package/dist/kernel/config-manager.d.ts +0 -19
  85. package/dist/kernel/device-settings-store.d.ts +74 -0
  86. package/dist/kernel/legacy-blob-guard.d.ts +58 -0
  87. package/dist/kernel/moleculer/runner-addon-settings.d.ts +34 -0
  88. package/dist/kernel/moleculer/runner-device-settings.d.ts +39 -0
  89. package/dist/kernel/prefix-walk.d.ts +39 -0
  90. package/dist/kernel/sections-store.d.ts +20 -0
  91. package/dist/kernel/settings-door-view.d.ts +2 -2
  92. package/dist/kernel/settings-view-types.d.ts +5 -30
  93. package/dist/kernel/store-settings-view.d.ts +0 -3
  94. package/dist/{lib-NNxHSOIE.js → lib-8oZrELLm.js} +1 -1
  95. package/dist/{lib-BeGzVQcd.mjs → lib-DK38ompL.mjs} +1 -1
  96. package/dist/prefix-range-D_KueXbQ.js +27 -0
  97. package/dist/prefix-range-Dl0znowN.mjs +22 -0
  98. package/dist/prefix-walk-DAOBSyH1.mjs +88 -0
  99. package/dist/prefix-walk-Dv6MLZlM.js +99 -0
  100. package/dist/{restore-archive-CTRz8v9o.js → restore-archive-49aZwkp8.js} +1 -1
  101. package/dist/{restore-archive-DPg9duVY.mjs → restore-archive-DgvDecXM.mjs} +82 -82
  102. package/dist/{retired-settings-keys-Is0zO8gX.mjs → retired-settings-keys-Bhwe4ymb.mjs} +2 -2
  103. package/dist/{retired-settings-keys-Dr_4lfKu.js → retired-settings-keys-D_VwZiDt.js} +10 -4
  104. package/dist/tls/agent-https.d.ts +2 -2
  105. package/dist/tls/boot-tls.d.ts +6 -0
  106. package/dist/tls/cert-evaluation.d.ts +1 -1
  107. package/dist/tls/cert-issue.d.ts +5 -1
  108. package/dist/tls/cert-manager.d.ts +18 -0
  109. package/dist/tls/cert-name-constraints.d.ts +53 -0
  110. package/dist/tls/index.d.ts +5 -4
  111. package/dist/tls/tls-actions.d.ts +27 -7
  112. package/dist/tls/tls-status.d.ts +22 -0
  113. package/dist/tls/uploaded-cert.d.ts +36 -4
  114. package/dist/{wal-maintenance-Bx3lcVA7.mjs → wal-maintenance-BZGmF-3U.mjs} +0 -0
  115. package/dist/{wal-maintenance-mjB2i-VR.js → wal-maintenance-C041zn6V.js} +0 -0
  116. package/dist/{x509.es-r7Ht1thA.js → x509.es-C4cOo48M.js} +36 -0
  117. package/dist/{x509.es-CDvj67p1.mjs → x509.es-DK__ETIe.mjs} +1 -1
  118. package/package.json +7 -2
  119. package/dist/{custom-action-registry-Bf_YnagS.js → custom-action-registry-BKmoaqG0.js} +1 -1
  120. package/dist/{custom-action-registry-BQnbN0DP.mjs → custom-action-registry-CyUuhATc.mjs} +1 -1
@@ -1,9 +1,9 @@
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 { Dr as errMsg, Gr as customAction, Jn as shortHostname, Kr as defineCustomActions, Or as BaseAddon, Y as ServerNameSchema, Zr as hydrateSchema } from "../../dist-Dc8GKC5H.mjs";
2
+ import { Ar as errMsg, Jr as customAction, Xn as shortHostname, Yr as defineCustomActions, Z as ServerNameSchema, ei as hydrateSchema, jr as BaseAddon } from "../../dist-9fcsrFU3.mjs";
3
3
  import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
4
- import { a as KeyUsagesExtension, c as Pkcs10CertificateRequestGenerator, d as X509Certificate$1, f as X509CertificateGenerator, g as backdatedNotBefore, 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-CDvj67p1.mjs";
5
- import { A as AgentHttpsNames, M as setProcessAgentHttpsNames, O as AGENT_HTTPS_NAMES_COLLECTION, d as isPrivateAddress, j as getProcessAgentHttpsNames, k as AGENT_HTTPS_NAMES_COLUMNS, u as isLocalOnlyHostname } from "../../agent-https-BPfHrI4c.mjs";
6
- import { a as MESH_CA_KEY_REF, c as SERVER_AUTH_OID, i as MESH_CA_FIELD, 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 } from "../../constants-DQK705Sb.mjs";
4
+ import { S as backdatedNotBefore, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension } from "../../x509.es-DK__ETIe.mjs";
5
+ import { F as AGENT_HTTPS_NAMES_COLLECTION, I as AGENT_HTTPS_NAMES_COLUMNS, L as AgentHttpsNames, R as getProcessAgentHttpsNames, j as isLocalOnlyHostname, u as isPrivateAddress, z as setProcessAgentHttpsNames } from "../../agent-https-U0d4uvn2.mjs";
6
+ import { a as MESH_CA_KEY_REF, c as SERVER_AUTH_OID, i as MESH_CA_FIELD, 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 } from "../../constants-CIzPjw7L.mjs";
7
7
  import { t as require_src } from "../../src-hG4grMU4.mjs";
8
8
  import { z } from "zod";
9
9
  import { X509Certificate, createHash, createPrivateKey, randomBytes, randomInt, sign, timingSafeEqual, verify, webcrypto } from "node:crypto";
@@ -15,7 +15,7 @@ import { fileURLToPath } from "node:url";
15
15
  import * as xi from "node:fs";
16
16
  import * as tls from "node:tls";
17
17
  import { EventEmitter } from "node:events";
18
- import As from "node:stream";
18
+ import Pe from "node:stream";
19
19
  import { StringDecoder } from "node:string_decoder";
20
20
  import { lstatSync, readdir as readdir$1, readdirSync as readdirSync$1, readlinkSync, realpathSync } from "fs";
21
21
  import "path";
@@ -21358,8 +21358,8 @@ var require_kleur = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21358
21358
  var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21359
21359
  var kleur = require_kleur();
21360
21360
  var os$17 = __require("os");
21361
- var path$39 = __require("path");
21362
- var fs$18 = __require("fs");
21361
+ var path$40 = __require("path");
21362
+ var fs$19 = __require("fs");
21363
21363
  var { TimeoutError } = require_errors$2();
21364
21364
  var lut = [];
21365
21365
  for (let i = 0; i < 256; i++) lut[i] = (i < 16 ? "0" : "") + i.toString(16);
@@ -21650,9 +21650,9 @@ var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21650
21650
  * @param {String} p - directory path
21651
21651
  */
21652
21652
  makeDirs(p) {
21653
- p.split(path$39.sep).reduce((prevPath, folder) => {
21654
- const currentPath = path$39.join(prevPath, folder, path$39.sep);
21655
- if (!fs$18.existsSync(currentPath)) fs$18.mkdirSync(currentPath);
21653
+ p.split(path$40.sep).reduce((prevPath, folder) => {
21654
+ const currentPath = path$40.join(prevPath, folder, path$40.sep);
21655
+ if (!fs$19.existsSync(currentPath)) fs$19.mkdirSync(currentPath);
21656
21656
  return currentPath;
21657
21657
  }, "");
21658
21658
  },
@@ -22877,8 +22877,8 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
22877
22877
  var BaseReporter = require_base$8();
22878
22878
  var { makeDirs } = require_utils$3();
22879
22879
  var _ = require_lodash();
22880
- var path$38 = __require("path");
22881
- var fs$17 = __require("fs");
22880
+ var path$39 = __require("path");
22881
+ var fs$18 = __require("fs");
22882
22882
  var METRIC = require_constants$6();
22883
22883
  var MODE_METRIC = "metric";
22884
22884
  var MODE_LABEL = "label";
@@ -22931,7 +22931,7 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
22931
22931
  this.timer = setInterval(() => this.flush(), this.opts.interval * 1e3);
22932
22932
  this.timer.unref();
22933
22933
  }
22934
- this.folder = path$38.resolve(this.opts.folder);
22934
+ this.folder = path$39.resolve(this.opts.folder);
22935
22935
  makeDirs(this.folder);
22936
22936
  }
22937
22937
  /**
@@ -22956,10 +22956,10 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
22956
22956
  const metricName = this.formatMetricName(metric.name);
22957
22957
  if (this.opts.filenameFormatter) return this.opts.filenameFormatter.call(this, metricName, metric, item);
22958
22958
  switch (this.opts.mode) {
22959
- case MODE_METRIC: return path$38.join(this.folder, `${metricName}.csv`);
22959
+ case MODE_METRIC: return path$39.join(this.folder, `${metricName}.csv`);
22960
22960
  case MODE_LABEL: {
22961
22961
  const labelStr = this.labelsToStr(item.labels);
22962
- return path$38.join(this.folder, metricName, `${metricName}${labelStr ? "--" + labelStr : ""}.csv`);
22962
+ return path$39.join(this.folder, metricName, `${metricName}${labelStr ? "--" + labelStr : ""}.csv`);
22963
22963
  }
22964
22964
  }
22965
22965
  }
@@ -22980,7 +22980,7 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
22980
22980
  metric.values.forEach((item) => {
22981
22981
  if (!this.lastChanges.has([metric.name, this.labelsToStr(item.labels)].join("|"))) return;
22982
22982
  const filename = this.getFilename(metric, item);
22983
- makeDirs(path$38.dirname(filename));
22983
+ makeDirs(path$39.dirname(filename));
22984
22984
  const metricName = this.formatMetricName(metric.name);
22985
22985
  let headers = ["Timestamp", "Metric"];
22986
22986
  let data = [item.timestamp, metricName];
@@ -23037,8 +23037,8 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23037
23037
  */
23038
23038
  writeRow(filename, headers, fields) {
23039
23039
  try {
23040
- if (!fs$17.existsSync(filename)) fs$17.writeFileSync(filename, headers.join(this.opts.delimiter) + this.opts.rowDelimiter);
23041
- fs$17.appendFileSync(filename, fields.join(this.opts.delimiter) + this.opts.rowDelimiter);
23040
+ if (!fs$18.existsSync(filename)) fs$18.writeFileSync(filename, headers.join(this.opts.delimiter) + this.opts.rowDelimiter);
23041
+ fs$18.appendFileSync(filename, fields.join(this.opts.delimiter) + this.opts.rowDelimiter);
23042
23042
  } catch (err) {
23043
23043
  /* istanbul ignore next */
23044
23044
  this.logger.error(`Unable to write metrics values to the '${filename}' file. Error: ${err.message}`, fields, err);
@@ -26110,7 +26110,7 @@ var require_latency = /* @__PURE__ */ __commonJSMin(((exports, module) => {
26110
26110
  //#region ../../node_modules/lru-cache/dist/commonjs/node/index.min.js
26111
26111
  var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
26112
26112
  var j = (c, t) => () => (t || c((t = { exports: {} }).exports, t), t.exports);
26113
- var I$2 = j((O) => {
26113
+ var I$1 = j((O) => {
26114
26114
  "use strict";
26115
26115
  Object.defineProperty(O, "__esModule", { value: !0 });
26116
26116
  O.tracing = O.metrics = void 0;
@@ -26126,7 +26126,7 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
26126
26126
  });
26127
26127
  Object.defineProperty(exports, "__esModule", { value: !0 });
26128
26128
  exports.LRUCache = void 0;
26129
- 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) => {
26129
+ 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) => {
26130
26130
  typeof G.emitWarning == "function" ? G.emitWarning(c, t, e, i) : console.error(`[${e}] ${t}: ${c}`);
26131
26131
  }, q = (c) => !k.has(c);
26132
26132
  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 {
@@ -31070,7 +31070,7 @@ var require_process$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31070
31070
  //#endregion
31071
31071
  //#region ../../node_modules/detect-libc/lib/filesystem.js
31072
31072
  var require_filesystem = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31073
- var fs$16 = __require("fs");
31073
+ var fs$17 = __require("fs");
31074
31074
  var LDD_PATH = "/usr/bin/ldd";
31075
31075
  var SELF_PATH = "/proc/self/exe";
31076
31076
  var MAX_LENGTH = 2048;
@@ -31081,10 +31081,10 @@ var require_filesystem = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31081
31081
  * @returns {Buffer}
31082
31082
  */
31083
31083
  var readFileSync = (path) => {
31084
- const fd = fs$16.openSync(path, "r");
31084
+ const fd = fs$17.openSync(path, "r");
31085
31085
  const buffer = Buffer.alloc(MAX_LENGTH);
31086
- const bytesRead = fs$16.readSync(fd, buffer, 0, MAX_LENGTH, 0);
31087
- fs$16.close(fd, () => {});
31086
+ const bytesRead = fs$17.readSync(fd, buffer, 0, MAX_LENGTH, 0);
31087
+ fs$17.close(fd, () => {});
31088
31088
  return buffer.subarray(0, bytesRead);
31089
31089
  };
31090
31090
  /**
@@ -31094,13 +31094,13 @@ var require_filesystem = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31094
31094
  * @returns {Promise<Buffer>}
31095
31095
  */
31096
31096
  var readFile = (path) => new Promise((resolve, reject) => {
31097
- fs$16.open(path, "r", (err, fd) => {
31097
+ fs$17.open(path, "r", (err, fd) => {
31098
31098
  if (err) reject(err);
31099
31099
  else {
31100
31100
  const buffer = Buffer.alloc(MAX_LENGTH);
31101
- fs$16.read(fd, buffer, 0, MAX_LENGTH, 0, (_, bytesRead) => {
31101
+ fs$17.read(fd, buffer, 0, MAX_LENGTH, 0, (_, bytesRead) => {
31102
31102
  resolve(buffer.subarray(0, bytesRead));
31103
- fs$16.close(fd, () => {});
31103
+ fs$17.close(fd, () => {});
31104
31104
  });
31105
31105
  }
31106
31106
  });
@@ -31353,8 +31353,8 @@ var require_detect_libc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31353
31353
  //#endregion
31354
31354
  //#region ../../node_modules/node-gyp-build-optional-packages/index.js
31355
31355
  var require_node_gyp_build_optional_packages = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31356
- var fs$15 = __require("fs");
31357
- var path$37 = __require("path");
31356
+ var fs$16 = __require("fs");
31357
+ var path$38 = __require("path");
31358
31358
  var url$2 = __require("url");
31359
31359
  var vars = process.config && process.config.variables || {};
31360
31360
  var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
@@ -31373,27 +31373,27 @@ var require_node_gyp_build_optional_packages = /* @__PURE__ */ __commonJSMin(((e
31373
31373
  else return __require(load.path(dir));
31374
31374
  }
31375
31375
  load.path = function(dir) {
31376
- dir = path$37.resolve(dir || ".");
31376
+ dir = path$38.resolve(dir || ".");
31377
31377
  var packageName = "";
31378
31378
  try {
31379
- if (typeof __webpack_require__ === "function") packageName = __non_webpack_require__(path$37.join(dir, "package.json")).name;
31380
- else packageName = __require(path$37.join(dir, "package.json")).name;
31379
+ if (typeof __webpack_require__ === "function") packageName = __non_webpack_require__(path$38.join(dir, "package.json")).name;
31380
+ else packageName = __require(path$38.join(dir, "package.json")).name;
31381
31381
  var varName = packageName.toUpperCase().replace(/-/g, "_") + "_PREBUILD";
31382
31382
  if (process.env[varName]) dir = process.env[varName];
31383
31383
  } catch (err) {}
31384
31384
  if (!prebuildsOnly) {
31385
- var release = getFirst(path$37.join(dir, "build/Release"), matchBuild);
31385
+ var release = getFirst(path$38.join(dir, "build/Release"), matchBuild);
31386
31386
  if (release) return release;
31387
- var debug = getFirst(path$37.join(dir, "build/Debug"), matchBuild);
31387
+ var debug = getFirst(path$38.join(dir, "build/Debug"), matchBuild);
31388
31388
  if (debug) return debug;
31389
31389
  }
31390
31390
  var prebuild = resolve(dir);
31391
31391
  if (prebuild) return prebuild;
31392
- var nearby = resolve(path$37.dirname(process.execPath));
31392
+ var nearby = resolve(path$38.dirname(process.execPath));
31393
31393
  if (nearby) return nearby;
31394
31394
  var platformPackage = (packageName[0] == "@" ? "" : "@" + packageName + "/") + packageName + "-" + platform + "-" + arch;
31395
31395
  try {
31396
- return resolveFile(path$37.dirname(__require("module").createRequire(url$2.pathToFileURL(path$37.join(dir, "package.json"))).resolve(platformPackage)));
31396
+ return resolveFile(path$38.dirname(__require("module").createRequire(url$2.pathToFileURL(path$38.join(dir, "package.json"))).resolve(platformPackage)));
31397
31397
  } catch (error) {}
31398
31398
  var target = [
31399
31399
  "platform=" + platform,
@@ -31409,25 +31409,25 @@ var require_node_gyp_build_optional_packages = /* @__PURE__ */ __commonJSMin(((e
31409
31409
  ].filter(Boolean).join(" ");
31410
31410
  throw new Error("No native build was found for " + target + "\n attempted loading from: " + dir + " and package: " + platformPackage + "\n");
31411
31411
  function resolve(dir) {
31412
- var tuple = readdirSync(path$37.join(dir, "prebuilds")).map(parseTuple).filter(matchTuple(platform, arch)).sort(compareTuples)[0];
31412
+ var tuple = readdirSync(path$38.join(dir, "prebuilds")).map(parseTuple).filter(matchTuple(platform, arch)).sort(compareTuples)[0];
31413
31413
  if (!tuple) return;
31414
- return resolveFile(path$37.join(dir, "prebuilds", tuple.name));
31414
+ return resolveFile(path$38.join(dir, "prebuilds", tuple.name));
31415
31415
  }
31416
31416
  function resolveFile(prebuilds) {
31417
31417
  var winner = readdirSync(prebuilds).map(parseTags).filter(matchTags(runtime, abi)).sort(compareTags(runtime))[0];
31418
- if (winner) return path$37.join(prebuilds, winner.file);
31418
+ if (winner) return path$38.join(prebuilds, winner.file);
31419
31419
  }
31420
31420
  };
31421
31421
  function readdirSync(dir) {
31422
31422
  try {
31423
- return fs$15.readdirSync(dir);
31423
+ return fs$16.readdirSync(dir);
31424
31424
  } catch (err) {
31425
31425
  return [];
31426
31426
  }
31427
31427
  }
31428
31428
  function getFirst(dir, filter) {
31429
31429
  var files = readdirSync(dir).filter(filter);
31430
- return files[0] && path$37.join(dir, files[0]);
31430
+ return files[0] && path$38.join(dir, files[0]);
31431
31431
  }
31432
31432
  function matchBuild(name) {
31433
31433
  return /\.node$/.test(name);
@@ -36899,8 +36899,8 @@ var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
36899
36899
  var require_file$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
36900
36900
  var FormattedLogger = require_formatted();
36901
36901
  var _ = require_lodash();
36902
- var fs$14 = __require("fs/promises");
36903
- var path$36 = __require("path");
36902
+ var fs$15 = __require("fs/promises");
36903
+ var path$37 = __require("path");
36904
36904
  var os$11 = __require("os");
36905
36905
  var { makeDirs } = require_utils$3();
36906
36906
  /**
@@ -36946,7 +36946,7 @@ var require_file$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
36946
36946
  */
36947
36947
  init(loggerFactory) {
36948
36948
  super.init(loggerFactory);
36949
- this.logFolder = path$36.resolve(this.render(this.opts.folder, {
36949
+ this.logFolder = path$37.resolve(this.render(this.opts.folder, {
36950
36950
  nodeID: this.broker.nodeID,
36951
36951
  namespace: this.broker.namespace
36952
36952
  }));
@@ -36971,7 +36971,7 @@ var require_file$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
36971
36971
  */
36972
36972
  getFilename() {
36973
36973
  const date = (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
36974
- return path$36.join(this.logFolder, this.render(this.opts.filename, {
36974
+ return path$37.join(this.logFolder, this.render(this.opts.filename, {
36975
36975
  date,
36976
36976
  nodeID: this.broker.nodeID,
36977
36977
  namespace: this.broker.namespace
@@ -37003,7 +37003,7 @@ var require_file$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37003
37003
  const rows = Array.from(this.queue);
37004
37004
  this.queue.length = 0;
37005
37005
  const buf = rows.join(this.opts.eol) + this.opts.eol;
37006
- return fs$14.appendFile(filename, buf).catch((err) => {
37006
+ return fs$15.appendFile(filename, buf).catch((err) => {
37007
37007
  /* istanbul ignore next */
37008
37008
  console.debug("Unable to write log file:", filename, err);
37009
37009
  });
@@ -37352,7 +37352,7 @@ var require_layouts = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37352
37352
  var dateFormat = require_lib$5();
37353
37353
  var os$10 = __require("os");
37354
37354
  var util$3 = __require("util");
37355
- var path$35 = __require("path");
37355
+ var path$36 = __require("path");
37356
37356
  var styles = {
37357
37357
  bold: [1, 22],
37358
37358
  italic: [3, 23],
@@ -37518,8 +37518,8 @@ var require_layouts = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37518
37518
  let filename = loggingEvent.fileName || "";
37519
37519
  if (specifier) {
37520
37520
  const fileDepth = parseInt(specifier, 10);
37521
- const fileList = filename.split(path$35.sep);
37522
- if (fileList.length > fileDepth) filename = fileList.slice(-fileDepth).join(path$35.sep);
37521
+ const fileList = filename.split(path$36.sep);
37522
+ if (fileList.length > fileDepth) filename = fileList.slice(-fileDepth).join(path$36.sep);
37523
37523
  }
37524
37524
  return filename;
37525
37525
  }
@@ -38521,7 +38521,7 @@ var require_clone = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38521
38521
  //#endregion
38522
38522
  //#region ../../node_modules/graceful-fs/graceful-fs.js
38523
38523
  var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38524
- var fs$13 = __require("fs");
38524
+ var fs$14 = __require("fs");
38525
38525
  var polyfills = require_polyfills();
38526
38526
  var legacy = require_legacy_streams();
38527
38527
  var clone = require_clone();
@@ -38550,36 +38550,36 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38550
38550
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
38551
38551
  console.error(m);
38552
38552
  };
38553
- if (!fs$13[gracefulQueue]) {
38554
- publishQueue(fs$13, global[gracefulQueue] || []);
38555
- fs$13.close = (function(fs$close) {
38553
+ if (!fs$14[gracefulQueue]) {
38554
+ publishQueue(fs$14, global[gracefulQueue] || []);
38555
+ fs$14.close = (function(fs$close) {
38556
38556
  function close(fd, cb) {
38557
- return fs$close.call(fs$13, fd, function(err) {
38557
+ return fs$close.call(fs$14, fd, function(err) {
38558
38558
  if (!err) resetQueue();
38559
38559
  if (typeof cb === "function") cb.apply(this, arguments);
38560
38560
  });
38561
38561
  }
38562
38562
  Object.defineProperty(close, previousSymbol, { value: fs$close });
38563
38563
  return close;
38564
- })(fs$13.close);
38565
- fs$13.closeSync = (function(fs$closeSync) {
38564
+ })(fs$14.close);
38565
+ fs$14.closeSync = (function(fs$closeSync) {
38566
38566
  function closeSync(fd) {
38567
- fs$closeSync.apply(fs$13, arguments);
38567
+ fs$closeSync.apply(fs$14, arguments);
38568
38568
  resetQueue();
38569
38569
  }
38570
38570
  Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
38571
38571
  return closeSync;
38572
- })(fs$13.closeSync);
38572
+ })(fs$14.closeSync);
38573
38573
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
38574
- debug(fs$13[gracefulQueue]);
38575
- __require("assert").equal(fs$13[gracefulQueue].length, 0);
38574
+ debug(fs$14[gracefulQueue]);
38575
+ __require("assert").equal(fs$14[gracefulQueue].length, 0);
38576
38576
  });
38577
38577
  }
38578
- if (!global[gracefulQueue]) publishQueue(global, fs$13[gracefulQueue]);
38579
- module.exports = patch(clone(fs$13));
38580
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$13.__patched) {
38581
- module.exports = patch(fs$13);
38582
- fs$13.__patched = true;
38578
+ if (!global[gracefulQueue]) publishQueue(global, fs$14[gracefulQueue]);
38579
+ module.exports = patch(clone(fs$14));
38580
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$14.__patched) {
38581
+ module.exports = patch(fs$14);
38582
+ fs$14.__patched = true;
38583
38583
  }
38584
38584
  function patch(fs) {
38585
38585
  polyfills(fs);
@@ -38834,23 +38834,23 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38834
38834
  }
38835
38835
  function enqueue(elem) {
38836
38836
  debug("ENQUEUE", elem[0].name, elem[1]);
38837
- fs$13[gracefulQueue].push(elem);
38837
+ fs$14[gracefulQueue].push(elem);
38838
38838
  retry();
38839
38839
  }
38840
38840
  var retryTimer;
38841
38841
  function resetQueue() {
38842
38842
  var now = Date.now();
38843
- for (var i = 0; i < fs$13[gracefulQueue].length; ++i) if (fs$13[gracefulQueue][i].length > 2) {
38844
- fs$13[gracefulQueue][i][3] = now;
38845
- fs$13[gracefulQueue][i][4] = now;
38843
+ for (var i = 0; i < fs$14[gracefulQueue].length; ++i) if (fs$14[gracefulQueue][i].length > 2) {
38844
+ fs$14[gracefulQueue][i][3] = now;
38845
+ fs$14[gracefulQueue][i][4] = now;
38846
38846
  }
38847
38847
  retry();
38848
38848
  }
38849
38849
  function retry() {
38850
38850
  clearTimeout(retryTimer);
38851
38851
  retryTimer = void 0;
38852
- if (fs$13[gracefulQueue].length === 0) return;
38853
- var elem = fs$13[gracefulQueue].shift();
38852
+ if (fs$14[gracefulQueue].length === 0) return;
38853
+ var elem = fs$14[gracefulQueue].shift();
38854
38854
  var fn = elem[0];
38855
38855
  var args = elem[1];
38856
38856
  var err = elem[2];
@@ -38869,7 +38869,7 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38869
38869
  if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
38870
38870
  debug("RETRY", fn.name, args);
38871
38871
  fn.apply(null, args.concat([startTime]));
38872
- } else fs$13[gracefulQueue].push(elem);
38872
+ } else fs$14[gracefulQueue].push(elem);
38873
38873
  }
38874
38874
  if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
38875
38875
  }
@@ -38957,9 +38957,9 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
38957
38957
  //#endregion
38958
38958
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/mkdirs/win32.js
38959
38959
  var require_win32 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38960
- var path$34 = __require("path");
38960
+ var path$35 = __require("path");
38961
38961
  function getRootPath(p) {
38962
- p = path$34.normalize(path$34.resolve(p)).split(path$34.sep);
38962
+ p = path$35.normalize(path$35.resolve(p)).split(path$35.sep);
38963
38963
  if (p.length > 0) return p[0];
38964
38964
  return null;
38965
38965
  }
@@ -38978,7 +38978,7 @@ var require_win32 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38978
38978
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/mkdirs/mkdirs.js
38979
38979
  var require_mkdirs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38980
38980
  var fs = require_graceful_fs();
38981
- var path$33 = __require("path");
38981
+ var path$34 = __require("path");
38982
38982
  var invalidWin32Path = require_win32().invalidWin32Path;
38983
38983
  var o777 = parseInt("0777", 8);
38984
38984
  function mkdirs(p, opts, callback, made) {
@@ -38996,7 +38996,7 @@ var require_mkdirs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38996
38996
  if (mode === void 0) mode = o777 & ~process.umask();
38997
38997
  if (!made) made = null;
38998
38998
  callback = callback || function() {};
38999
- p = path$33.resolve(p);
38999
+ p = path$34.resolve(p);
39000
39000
  xfs.mkdir(p, mode, (er) => {
39001
39001
  if (!er) {
39002
39002
  made = made || p;
@@ -39004,8 +39004,8 @@ var require_mkdirs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39004
39004
  }
39005
39005
  switch (er.code) {
39006
39006
  case "ENOENT":
39007
- if (path$33.dirname(p) === p) return callback(er);
39008
- mkdirs(path$33.dirname(p), opts, (er, made) => {
39007
+ if (path$34.dirname(p) === p) return callback(er);
39008
+ mkdirs(path$34.dirname(p), opts, (er, made) => {
39009
39009
  if (er) callback(er, made);
39010
39010
  else mkdirs(p, opts, callback, made);
39011
39011
  });
@@ -39025,7 +39025,7 @@ var require_mkdirs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39025
39025
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js
39026
39026
  var require_mkdirs_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39027
39027
  var fs = require_graceful_fs();
39028
- var path$32 = __require("path");
39028
+ var path$33 = __require("path");
39029
39029
  var invalidWin32Path = require_win32().invalidWin32Path;
39030
39030
  var o777 = parseInt("0777", 8);
39031
39031
  function mkdirsSync(p, opts, made) {
@@ -39039,14 +39039,14 @@ var require_mkdirs_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39039
39039
  }
39040
39040
  if (mode === void 0) mode = o777 & ~process.umask();
39041
39041
  if (!made) made = null;
39042
- p = path$32.resolve(p);
39042
+ p = path$33.resolve(p);
39043
39043
  try {
39044
39044
  xfs.mkdirSync(p, mode);
39045
39045
  made = made || p;
39046
39046
  } catch (err0) {
39047
39047
  if (err0.code === "ENOENT") {
39048
- if (path$32.dirname(p) === p) throw err0;
39049
- made = mkdirsSync(path$32.dirname(p), opts, made);
39048
+ if (path$33.dirname(p) === p) throw err0;
39049
+ made = mkdirsSync(path$33.dirname(p), opts, made);
39050
39050
  mkdirsSync(p, opts, made);
39051
39051
  } else {
39052
39052
  let stat;
@@ -39082,10 +39082,10 @@ var require_mkdirs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39082
39082
  var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39083
39083
  var fs = require_graceful_fs();
39084
39084
  var os$9 = __require("os");
39085
- var path$31 = __require("path");
39085
+ var path$32 = __require("path");
39086
39086
  function hasMillisResSync() {
39087
- let tmpfile = path$31.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
39088
- tmpfile = path$31.join(os$9.tmpdir(), tmpfile);
39087
+ let tmpfile = path$32.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
39088
+ tmpfile = path$32.join(os$9.tmpdir(), tmpfile);
39089
39089
  const d = /* @__PURE__ */ new Date(1435410243862);
39090
39090
  fs.writeFileSync(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141");
39091
39091
  const fd = fs.openSync(tmpfile, "r+");
@@ -39094,8 +39094,8 @@ var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39094
39094
  return fs.statSync(tmpfile).mtime > 1435410243e3;
39095
39095
  }
39096
39096
  function hasMillisRes(callback) {
39097
- let tmpfile = path$31.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
39098
- tmpfile = path$31.join(os$9.tmpdir(), tmpfile);
39097
+ let tmpfile = path$32.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
39098
+ tmpfile = path$32.join(os$9.tmpdir(), tmpfile);
39099
39099
  const d = /* @__PURE__ */ new Date(1435410243862);
39100
39100
  fs.writeFile(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141", (err) => {
39101
39101
  if (err) return callback(err);
@@ -39146,7 +39146,7 @@ var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39146
39146
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/util/stat.js
39147
39147
  var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39148
39148
  var fs = require_graceful_fs();
39149
- var path$30 = __require("path");
39149
+ var path$31 = __require("path");
39150
39150
  var NODE_VERSION_MAJOR_WITH_BIGINT = 10;
39151
39151
  var NODE_VERSION_MINOR_WITH_BIGINT = 5;
39152
39152
  var NODE_VERSION_PATCH_WITH_BIGINT = 0;
@@ -39239,9 +39239,9 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39239
39239
  };
39240
39240
  }
39241
39241
  function checkParentPaths(src, srcStat, dest, funcName, cb) {
39242
- const srcParent = path$30.resolve(path$30.dirname(src));
39243
- const destParent = path$30.resolve(path$30.dirname(dest));
39244
- if (destParent === srcParent || destParent === path$30.parse(destParent).root) return cb();
39242
+ const srcParent = path$31.resolve(path$31.dirname(src));
39243
+ const destParent = path$31.resolve(path$31.dirname(dest));
39244
+ if (destParent === srcParent || destParent === path$31.parse(destParent).root) return cb();
39245
39245
  if (nodeSupportsBigInt()) fs.stat(destParent, { bigint: true }, (err, destStat) => {
39246
39246
  if (err) {
39247
39247
  if (err.code === "ENOENT") return cb();
@@ -39260,9 +39260,9 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39260
39260
  });
39261
39261
  }
39262
39262
  function checkParentPathsSync(src, srcStat, dest, funcName) {
39263
- const srcParent = path$30.resolve(path$30.dirname(src));
39264
- const destParent = path$30.resolve(path$30.dirname(dest));
39265
- if (destParent === srcParent || destParent === path$30.parse(destParent).root) return;
39263
+ const srcParent = path$31.resolve(path$31.dirname(src));
39264
+ const destParent = path$31.resolve(path$31.dirname(dest));
39265
+ if (destParent === srcParent || destParent === path$31.parse(destParent).root) return;
39266
39266
  let destStat;
39267
39267
  try {
39268
39268
  if (nodeSupportsBigInt()) destStat = fs.statSync(destParent, { bigint: true });
@@ -39275,8 +39275,8 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39275
39275
  return checkParentPathsSync(src, srcStat, destParent, funcName);
39276
39276
  }
39277
39277
  function isSrcSubdir(src, dest) {
39278
- const srcArr = path$30.resolve(src).split(path$30.sep).filter((i) => i);
39279
- const destArr = path$30.resolve(dest).split(path$30.sep).filter((i) => i);
39278
+ const srcArr = path$31.resolve(src).split(path$31.sep).filter((i) => i);
39279
+ const destArr = path$31.resolve(dest).split(path$31.sep).filter((i) => i);
39280
39280
  return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
39281
39281
  }
39282
39282
  function errMsg(src, dest, funcName) {
@@ -39306,7 +39306,7 @@ var require_buffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39306
39306
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/copy-sync/copy-sync.js
39307
39307
  var require_copy_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39308
39308
  var fs = require_graceful_fs();
39309
- var path$29 = __require("path");
39309
+ var path$30 = __require("path");
39310
39310
  var mkdirpSync = require_mkdirs().mkdirsSync;
39311
39311
  var utimesSync = require_utimes().utimesMillisSync;
39312
39312
  var stat = require_stat();
@@ -39323,7 +39323,7 @@ var require_copy_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39323
39323
  }
39324
39324
  function handleFilterAndCopy(destStat, src, dest, opts) {
39325
39325
  if (opts.filter && !opts.filter(src, dest)) return;
39326
- const destParent = path$29.dirname(dest);
39326
+ const destParent = path$30.dirname(dest);
39327
39327
  if (!fs.existsSync(destParent)) mkdirpSync(destParent);
39328
39328
  return startCopy(destStat, src, dest, opts);
39329
39329
  }
@@ -39385,14 +39385,14 @@ var require_copy_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39385
39385
  fs.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
39386
39386
  }
39387
39387
  function copyDirItem(item, src, dest, opts) {
39388
- const srcItem = path$29.join(src, item);
39389
- const destItem = path$29.join(dest, item);
39388
+ const srcItem = path$30.join(src, item);
39389
+ const destItem = path$30.join(dest, item);
39390
39390
  const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy");
39391
39391
  return startCopy(destStat, srcItem, destItem, opts);
39392
39392
  }
39393
39393
  function onLink(destStat, src, dest, opts) {
39394
39394
  let resolvedSrc = fs.readlinkSync(src);
39395
- if (opts.dereference) resolvedSrc = path$29.resolve(process.cwd(), resolvedSrc);
39395
+ if (opts.dereference) resolvedSrc = path$30.resolve(process.cwd(), resolvedSrc);
39396
39396
  if (!destStat) return fs.symlinkSync(resolvedSrc, dest);
39397
39397
  else {
39398
39398
  let resolvedDest;
@@ -39402,7 +39402,7 @@ var require_copy_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39402
39402
  if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs.symlinkSync(resolvedSrc, dest);
39403
39403
  throw err;
39404
39404
  }
39405
- if (opts.dereference) resolvedDest = path$29.resolve(process.cwd(), resolvedDest);
39405
+ if (opts.dereference) resolvedDest = path$30.resolve(process.cwd(), resolvedDest);
39406
39406
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
39407
39407
  if (fs.statSync(dest).isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
39408
39408
  return copyLink(resolvedSrc, dest);
@@ -39436,7 +39436,7 @@ var require_path_exists = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39436
39436
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/copy/copy.js
39437
39437
  var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39438
39438
  var fs = require_graceful_fs();
39439
- var path$28 = __require("path");
39439
+ var path$29 = __require("path");
39440
39440
  var mkdirp = require_mkdirs().mkdirs;
39441
39441
  var pathExists = require_path_exists().pathExists;
39442
39442
  var utimes = require_utimes().utimesMillis;
@@ -39463,7 +39463,7 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39463
39463
  });
39464
39464
  }
39465
39465
  function checkParentDir(destStat, src, dest, opts, cb) {
39466
- const destParent = path$28.dirname(dest);
39466
+ const destParent = path$29.dirname(dest);
39467
39467
  pathExists(destParent, (err, dirExists) => {
39468
39468
  if (err) return cb(err);
39469
39469
  if (dirExists) return startCopy(destStat, src, dest, opts, cb);
@@ -39550,8 +39550,8 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39550
39550
  return copyDirItem(items, item, src, dest, opts, cb);
39551
39551
  }
39552
39552
  function copyDirItem(items, item, src, dest, opts, cb) {
39553
- const srcItem = path$28.join(src, item);
39554
- const destItem = path$28.join(dest, item);
39553
+ const srcItem = path$29.join(src, item);
39554
+ const destItem = path$29.join(dest, item);
39555
39555
  stat.checkPaths(srcItem, destItem, "copy", (err, stats) => {
39556
39556
  if (err) return cb(err);
39557
39557
  const { destStat } = stats;
@@ -39564,14 +39564,14 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39564
39564
  function onLink(destStat, src, dest, opts, cb) {
39565
39565
  fs.readlink(src, (err, resolvedSrc) => {
39566
39566
  if (err) return cb(err);
39567
- if (opts.dereference) resolvedSrc = path$28.resolve(process.cwd(), resolvedSrc);
39567
+ if (opts.dereference) resolvedSrc = path$29.resolve(process.cwd(), resolvedSrc);
39568
39568
  if (!destStat) return fs.symlink(resolvedSrc, dest, cb);
39569
39569
  else fs.readlink(dest, (err, resolvedDest) => {
39570
39570
  if (err) {
39571
39571
  if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs.symlink(resolvedSrc, dest, cb);
39572
39572
  return cb(err);
39573
39573
  }
39574
- if (opts.dereference) resolvedDest = path$28.resolve(process.cwd(), resolvedDest);
39574
+ if (opts.dereference) resolvedDest = path$29.resolve(process.cwd(), resolvedDest);
39575
39575
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) return cb(/* @__PURE__ */ new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
39576
39576
  if (destStat.isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) return cb(/* @__PURE__ */ new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`));
39577
39577
  return copyLink(resolvedSrc, dest, cb);
@@ -39596,7 +39596,7 @@ var require_copy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39596
39596
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/remove/rimraf.js
39597
39597
  var require_rimraf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39598
39598
  var fs = require_graceful_fs();
39599
- var path$27 = __require("path");
39599
+ var path$28 = __require("path");
39600
39600
  var assert$2 = __require("assert");
39601
39601
  var isWindows = process.platform === "win32";
39602
39602
  function defaults(options) {
@@ -39711,7 +39711,7 @@ var require_rimraf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39711
39711
  let errState;
39712
39712
  if (n === 0) return options.rmdir(p, cb);
39713
39713
  files.forEach((f) => {
39714
- rimraf(path$27.join(p, f), options, (er) => {
39714
+ rimraf(path$28.join(p, f), options, (er) => {
39715
39715
  if (errState) return;
39716
39716
  if (er) return cb(errState = er);
39717
39717
  if (--n === 0) options.rmdir(p, cb);
@@ -39758,7 +39758,7 @@ var require_rimraf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39758
39758
  function rmkidsSync(p, options) {
39759
39759
  assert$2(p);
39760
39760
  assert$2(options);
39761
- options.readdirSync(p).forEach((f) => rimrafSync(path$27.join(p, f), options));
39761
+ options.readdirSync(p).forEach((f) => rimrafSync(path$28.join(p, f), options));
39762
39762
  if (isWindows) {
39763
39763
  const startTime = Date.now();
39764
39764
  do
@@ -39786,14 +39786,14 @@ var require_remove = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39786
39786
  var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39787
39787
  var u = require_universalify().fromCallback;
39788
39788
  var fs = require_graceful_fs();
39789
- var path$26 = __require("path");
39789
+ var path$27 = __require("path");
39790
39790
  var mkdir = require_mkdirs();
39791
39791
  var remove = require_remove();
39792
39792
  var emptyDir = u(function emptyDir(dir, callback) {
39793
39793
  callback = callback || function() {};
39794
39794
  fs.readdir(dir, (err, items) => {
39795
39795
  if (err) return mkdir.mkdirs(dir, callback);
39796
- items = items.map((item) => path$26.join(dir, item));
39796
+ items = items.map((item) => path$27.join(dir, item));
39797
39797
  deleteItem();
39798
39798
  function deleteItem() {
39799
39799
  const item = items.pop();
@@ -39813,7 +39813,7 @@ var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39813
39813
  return mkdir.mkdirsSync(dir);
39814
39814
  }
39815
39815
  items.forEach((item) => {
39816
- item = path$26.join(dir, item);
39816
+ item = path$27.join(dir, item);
39817
39817
  remove.removeSync(item);
39818
39818
  });
39819
39819
  }
@@ -39828,7 +39828,7 @@ var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39828
39828
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/ensure/file.js
39829
39829
  var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39830
39830
  var u = require_universalify().fromCallback;
39831
- var path$25 = __require("path");
39831
+ var path$26 = __require("path");
39832
39832
  var fs = require_graceful_fs();
39833
39833
  var mkdir = require_mkdirs();
39834
39834
  var pathExists = require_path_exists().pathExists;
@@ -39841,7 +39841,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39841
39841
  }
39842
39842
  fs.stat(file, (err, stats) => {
39843
39843
  if (!err && stats.isFile()) return callback();
39844
- const dir = path$25.dirname(file);
39844
+ const dir = path$26.dirname(file);
39845
39845
  pathExists(dir, (err, dirExists) => {
39846
39846
  if (err) return callback(err);
39847
39847
  if (dirExists) return makeFile();
@@ -39858,7 +39858,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39858
39858
  stats = fs.statSync(file);
39859
39859
  } catch (e) {}
39860
39860
  if (stats && stats.isFile()) return;
39861
- const dir = path$25.dirname(file);
39861
+ const dir = path$26.dirname(file);
39862
39862
  if (!fs.existsSync(dir)) mkdir.mkdirsSync(dir);
39863
39863
  fs.writeFileSync(file, "");
39864
39864
  }
@@ -39871,7 +39871,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39871
39871
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/ensure/link.js
39872
39872
  var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39873
39873
  var u = require_universalify().fromCallback;
39874
- var path$24 = __require("path");
39874
+ var path$25 = __require("path");
39875
39875
  var fs = require_graceful_fs();
39876
39876
  var mkdir = require_mkdirs();
39877
39877
  var pathExists = require_path_exists().pathExists;
@@ -39890,7 +39890,7 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39890
39890
  err.message = err.message.replace("lstat", "ensureLink");
39891
39891
  return callback(err);
39892
39892
  }
39893
- const dir = path$24.dirname(dstpath);
39893
+ const dir = path$25.dirname(dstpath);
39894
39894
  pathExists(dir, (err, dirExists) => {
39895
39895
  if (err) return callback(err);
39896
39896
  if (dirExists) return makeLink(srcpath, dstpath);
@@ -39910,7 +39910,7 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39910
39910
  err.message = err.message.replace("lstat", "ensureLink");
39911
39911
  throw err;
39912
39912
  }
39913
- const dir = path$24.dirname(dstpath);
39913
+ const dir = path$25.dirname(dstpath);
39914
39914
  if (fs.existsSync(dir)) return fs.linkSync(srcpath, dstpath);
39915
39915
  mkdir.mkdirsSync(dir);
39916
39916
  return fs.linkSync(srcpath, dstpath);
@@ -39923,7 +39923,7 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39923
39923
  //#endregion
39924
39924
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/ensure/symlink-paths.js
39925
39925
  var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39926
- var path$23 = __require("path");
39926
+ var path$24 = __require("path");
39927
39927
  var fs = require_graceful_fs();
39928
39928
  var pathExists = require_path_exists().pathExists;
39929
39929
  /**
@@ -39948,7 +39948,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
39948
39948
  * the ability to pass in `relative to current working direcotry` paths.
39949
39949
  */
39950
39950
  function symlinkPaths(srcpath, dstpath, callback) {
39951
- if (path$23.isAbsolute(srcpath)) return fs.lstat(srcpath, (err) => {
39951
+ if (path$24.isAbsolute(srcpath)) return fs.lstat(srcpath, (err) => {
39952
39952
  if (err) {
39953
39953
  err.message = err.message.replace("lstat", "ensureSymlink");
39954
39954
  return callback(err);
@@ -39959,8 +39959,8 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
39959
39959
  });
39960
39960
  });
39961
39961
  else {
39962
- const dstdir = path$23.dirname(dstpath);
39963
- const relativeToDst = path$23.join(dstdir, srcpath);
39962
+ const dstdir = path$24.dirname(dstpath);
39963
+ const relativeToDst = path$24.join(dstdir, srcpath);
39964
39964
  return pathExists(relativeToDst, (err, exists) => {
39965
39965
  if (err) return callback(err);
39966
39966
  if (exists) return callback(null, {
@@ -39974,7 +39974,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
39974
39974
  }
39975
39975
  return callback(null, {
39976
39976
  "toCwd": srcpath,
39977
- "toDst": path$23.relative(dstdir, srcpath)
39977
+ "toDst": path$24.relative(dstdir, srcpath)
39978
39978
  });
39979
39979
  });
39980
39980
  });
@@ -39982,7 +39982,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
39982
39982
  }
39983
39983
  function symlinkPathsSync(srcpath, dstpath) {
39984
39984
  let exists;
39985
- if (path$23.isAbsolute(srcpath)) {
39985
+ if (path$24.isAbsolute(srcpath)) {
39986
39986
  exists = fs.existsSync(srcpath);
39987
39987
  if (!exists) throw new Error("absolute srcpath does not exist");
39988
39988
  return {
@@ -39990,8 +39990,8 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
39990
39990
  "toDst": srcpath
39991
39991
  };
39992
39992
  } else {
39993
- const dstdir = path$23.dirname(dstpath);
39994
- const relativeToDst = path$23.join(dstdir, srcpath);
39993
+ const dstdir = path$24.dirname(dstpath);
39994
+ const relativeToDst = path$24.join(dstdir, srcpath);
39995
39995
  exists = fs.existsSync(relativeToDst);
39996
39996
  if (exists) return {
39997
39997
  "toCwd": relativeToDst,
@@ -40002,7 +40002,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
40002
40002
  if (!exists) throw new Error("relative srcpath does not exist");
40003
40003
  return {
40004
40004
  "toCwd": srcpath,
40005
- "toDst": path$23.relative(dstdir, srcpath)
40005
+ "toDst": path$24.relative(dstdir, srcpath)
40006
40006
  };
40007
40007
  }
40008
40008
  }
@@ -40045,7 +40045,7 @@ var require_symlink_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40045
40045
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/ensure/symlink.js
40046
40046
  var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40047
40047
  var u = require_universalify().fromCallback;
40048
- var path$22 = __require("path");
40048
+ var path$23 = __require("path");
40049
40049
  var fs = require_graceful_fs();
40050
40050
  var _mkdirs = require_mkdirs();
40051
40051
  var mkdirs = _mkdirs.mkdirs;
@@ -40068,7 +40068,7 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40068
40068
  srcpath = relative.toDst;
40069
40069
  symlinkType(relative.toCwd, type, (err, type) => {
40070
40070
  if (err) return callback(err);
40071
- const dir = path$22.dirname(dstpath);
40071
+ const dir = path$23.dirname(dstpath);
40072
40072
  pathExists(dir, (err, dirExists) => {
40073
40073
  if (err) return callback(err);
40074
40074
  if (dirExists) return fs.symlink(srcpath, dstpath, type, callback);
@@ -40086,7 +40086,7 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40086
40086
  const relative = symlinkPathsSync(srcpath, dstpath);
40087
40087
  srcpath = relative.toDst;
40088
40088
  type = symlinkTypeSync(relative.toCwd, type);
40089
- const dir = path$22.dirname(dstpath);
40089
+ const dir = path$23.dirname(dstpath);
40090
40090
  if (fs.existsSync(dir)) return fs.symlinkSync(srcpath, dstpath, type);
40091
40091
  mkdirsSync(dir);
40092
40092
  return fs.symlinkSync(srcpath, dstpath, type);
@@ -40226,7 +40226,7 @@ var require_jsonfile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40226
40226
  //#endregion
40227
40227
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/json/output-json.js
40228
40228
  var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40229
- var path$21 = __require("path");
40229
+ var path$22 = __require("path");
40230
40230
  var mkdir = require_mkdirs();
40231
40231
  var pathExists = require_path_exists().pathExists;
40232
40232
  var jsonFile = require_jsonfile();
@@ -40235,7 +40235,7 @@ var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40235
40235
  callback = options;
40236
40236
  options = {};
40237
40237
  }
40238
- const dir = path$21.dirname(file);
40238
+ const dir = path$22.dirname(file);
40239
40239
  pathExists(dir, (err, itDoes) => {
40240
40240
  if (err) return callback(err);
40241
40241
  if (itDoes) return jsonFile.writeJson(file, data, options, callback);
@@ -40251,11 +40251,11 @@ var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40251
40251
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/json/output-json-sync.js
40252
40252
  var require_output_json_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40253
40253
  var fs = require_graceful_fs();
40254
- var path$20 = __require("path");
40254
+ var path$21 = __require("path");
40255
40255
  var mkdir = require_mkdirs();
40256
40256
  var jsonFile = require_jsonfile();
40257
40257
  function outputJsonSync(file, data, options) {
40258
- const dir = path$20.dirname(file);
40258
+ const dir = path$21.dirname(file);
40259
40259
  if (!fs.existsSync(dir)) mkdir.mkdirsSync(dir);
40260
40260
  jsonFile.writeJsonSync(file, data, options);
40261
40261
  }
@@ -40280,7 +40280,7 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40280
40280
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/move-sync/move-sync.js
40281
40281
  var require_move_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40282
40282
  var fs = require_graceful_fs();
40283
- var path$19 = __require("path");
40283
+ var path$20 = __require("path");
40284
40284
  var copySync = require_copy_sync().copySync;
40285
40285
  var removeSync = require_remove().removeSync;
40286
40286
  var mkdirpSync = require_mkdirs().mkdirpSync;
@@ -40290,7 +40290,7 @@ var require_move_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40290
40290
  const overwrite = opts.overwrite || opts.clobber || false;
40291
40291
  const { srcStat } = stat.checkPathsSync(src, dest, "move");
40292
40292
  stat.checkParentPathsSync(src, srcStat, dest, "move");
40293
- mkdirpSync(path$19.dirname(dest));
40293
+ mkdirpSync(path$20.dirname(dest));
40294
40294
  return doRename(src, dest, overwrite);
40295
40295
  }
40296
40296
  function doRename(src, dest, overwrite) {
@@ -40327,7 +40327,7 @@ var require_move_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40327
40327
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/move/move.js
40328
40328
  var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40329
40329
  var fs = require_graceful_fs();
40330
- var path$18 = __require("path");
40330
+ var path$19 = __require("path");
40331
40331
  var copy = require_copy().copy;
40332
40332
  var remove = require_remove().remove;
40333
40333
  var mkdirp = require_mkdirs().mkdirp;
@@ -40344,7 +40344,7 @@ var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40344
40344
  const { srcStat } = stats;
40345
40345
  stat.checkParentPaths(src, srcStat, dest, "move", (err) => {
40346
40346
  if (err) return cb(err);
40347
- mkdirp(path$18.dirname(dest), (err) => {
40347
+ mkdirp(path$19.dirname(dest), (err) => {
40348
40348
  if (err) return cb(err);
40349
40349
  return doRename(src, dest, overwrite, cb);
40350
40350
  });
@@ -40391,7 +40391,7 @@ var require_move = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40391
40391
  var require_output = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40392
40392
  var u = require_universalify().fromCallback;
40393
40393
  var fs = require_graceful_fs();
40394
- var path$17 = __require("path");
40394
+ var path$18 = __require("path");
40395
40395
  var mkdir = require_mkdirs();
40396
40396
  var pathExists = require_path_exists().pathExists;
40397
40397
  function outputFile(file, data, encoding, callback) {
@@ -40399,7 +40399,7 @@ var require_output = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40399
40399
  callback = encoding;
40400
40400
  encoding = "utf8";
40401
40401
  }
40402
- const dir = path$17.dirname(file);
40402
+ const dir = path$18.dirname(file);
40403
40403
  pathExists(dir, (err, itDoes) => {
40404
40404
  if (err) return callback(err);
40405
40405
  if (itDoes) return fs.writeFile(file, data, encoding, callback);
@@ -40410,7 +40410,7 @@ var require_output = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40410
40410
  });
40411
40411
  }
40412
40412
  function outputFileSync(file, ...args) {
40413
- const dir = path$17.dirname(file);
40413
+ const dir = path$18.dirname(file);
40414
40414
  if (fs.existsSync(dir)) return fs.writeFileSync(file, ...args);
40415
40415
  mkdir.mkdirsSync(dir);
40416
40416
  fs.writeFileSync(file, ...args);
@@ -40424,9 +40424,9 @@ var require_output = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40424
40424
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/index.js
40425
40425
  var require_lib$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40426
40426
  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());
40427
- var fs$12 = __require("fs");
40428
- if (Object.getOwnPropertyDescriptor(fs$12, "promises")) Object.defineProperty(module.exports, "promises", { get() {
40429
- return fs$12.promises;
40427
+ var fs$13 = __require("fs");
40428
+ if (Object.getOwnPropertyDescriptor(fs$13, "promises")) Object.defineProperty(module.exports, "promises", { get() {
40429
+ return fs$13.promises;
40430
40430
  } });
40431
40431
  }));
40432
40432
  //#endregion
@@ -40591,11 +40591,11 @@ var require_lib$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40591
40591
  //#region ../../node_modules/streamroller/lib/fileNameFormatter.js
40592
40592
  var require_fileNameFormatter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40593
40593
  var debug = require_src()("streamroller:fileNameFormatter");
40594
- var path$16 = __require("path");
40594
+ var path$17 = __require("path");
40595
40595
  var FILENAME_SEP = ".";
40596
40596
  var ZIP_EXT = ".gz";
40597
40597
  module.exports = ({ file, keepFileExt, needsIndex, alwaysIncludeDate, compress }) => {
40598
- const dirAndName = path$16.join(file.dir, file.name);
40598
+ const dirAndName = path$17.join(file.dir, file.name);
40599
40599
  const ext = (f) => f + file.ext;
40600
40600
  const index = (f, i, d) => (needsIndex || !d) && i ? f + FILENAME_SEP + i : f;
40601
40601
  const date = (f, i, d) => {
@@ -40740,7 +40740,7 @@ var require_moveAndMaybeCompressFile = /* @__PURE__ */ __commonJSMin(((exports,
40740
40740
  var require_RollingFileWriteStream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40741
40741
  var debug = require_src()("streamroller:RollingFileWriteStream");
40742
40742
  var fs = require_lib$4();
40743
- var path$15 = __require("path");
40743
+ var path$16 = __require("path");
40744
40744
  var newNow = require_now();
40745
40745
  var format = require_lib$3();
40746
40746
  var { Writable: Writable$1 } = __require("stream");
@@ -40771,8 +40771,8 @@ var require_RollingFileWriteStream = /* @__PURE__ */ __commonJSMin(((exports, mo
40771
40771
  debug(`constructor: creating RollingFileWriteStream. path=${filePath}`);
40772
40772
  super(options);
40773
40773
  this.options = this._parseOption(options);
40774
- this.fileObject = path$15.parse(filePath);
40775
- if (this.fileObject.dir === "") this.fileObject = path$15.parse(path$15.join(process.cwd(), filePath));
40774
+ this.fileObject = path$16.parse(filePath);
40775
+ if (this.fileObject.dir === "") this.fileObject = path$16.parse(path$16.join(process.cwd(), filePath));
40776
40776
  this.fileFormatter = fileNameFormatter({
40777
40777
  file: this.fileObject,
40778
40778
  alwaysIncludeDate: this.options.alwaysIncludePattern,
@@ -40909,7 +40909,7 @@ var require_RollingFileWriteStream = /* @__PURE__ */ __commonJSMin(((exports, mo
40909
40909
  const existingFileDetails = await this._getExistingFiles();
40910
40910
  debug(`_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${existingFileDetails.length}`);
40911
40911
  debug("_clean: existing files are: ", existingFileDetails);
40912
- if (this._tooManyFiles(existingFileDetails.length)) await deleteFiles(existingFileDetails.slice(0, existingFileDetails.length - this.options.numToKeep - 1).map((f) => path$15.format({
40912
+ if (this._tooManyFiles(existingFileDetails.length)) await deleteFiles(existingFileDetails.slice(0, existingFileDetails.length - this.options.numToKeep - 1).map((f) => path$16.format({
40913
40913
  dir: this.fileObject.dir,
40914
40914
  base: f.filename
40915
40915
  })));
@@ -40983,7 +40983,7 @@ var require_lib$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40983
40983
  //#region ../../node_modules/log4js/lib/appenders/file.js
40984
40984
  var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40985
40985
  var debug = require_src()("log4js:file");
40986
- var path$14 = __require("path");
40986
+ var path$15 = __require("path");
40987
40987
  var streams = require_lib$2();
40988
40988
  var eol$2 = __require("os").EOL;
40989
40989
  function openTheStream(file, fileSize, numFiles, options) {
@@ -41010,7 +41010,7 @@ var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41010
41010
  * @param timezoneOffset - optional timezone offset in minutes (default system local)
41011
41011
  */
41012
41012
  function fileAppender(file, layout, logSize, numBackups, options, timezoneOffset) {
41013
- file = path$14.normalize(file);
41013
+ file = path$15.normalize(file);
41014
41014
  numBackups = numBackups === void 0 ? 5 : numBackups;
41015
41015
  numBackups = numBackups === 0 ? 1 : numBackups;
41016
41016
  debug("Creating file appender (", file, ", ", logSize, ", ", numBackups, ", ", options, ", ", timezoneOffset, ")");
@@ -41089,13 +41089,13 @@ var require_dateFile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41089
41089
  //#region ../../node_modules/log4js/lib/appenders/fileSync.js
41090
41090
  var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41091
41091
  var debug = require_src()("log4js:fileSync");
41092
- var path$13 = __require("path");
41093
- var fs$11 = __require("fs");
41092
+ var path$14 = __require("path");
41093
+ var fs$12 = __require("fs");
41094
41094
  var eol = __require("os").EOL || "\n";
41095
41095
  function touchFile(file, options) {
41096
- if (fs$11.existsSync(file)) return;
41097
- const id = fs$11.openSync(file, options.flags, options.mode);
41098
- fs$11.closeSync(id);
41096
+ if (fs$12.existsSync(file)) return;
41097
+ const id = fs$12.openSync(file, options.flags, options.mode);
41098
+ fs$12.closeSync(id);
41099
41099
  }
41100
41100
  var RollingFileSync = class {
41101
41101
  constructor(filename, size, backups, options) {
@@ -41112,7 +41112,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41112
41112
  function currentFileSize(file) {
41113
41113
  let fileSize = 0;
41114
41114
  try {
41115
- fileSize = fs$11.statSync(file).size;
41115
+ fileSize = fs$12.statSync(file).size;
41116
41116
  } catch (e) {
41117
41117
  touchFile(file, options);
41118
41118
  }
@@ -41126,12 +41126,12 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41126
41126
  }
41127
41127
  roll(filename) {
41128
41128
  const that = this;
41129
- const nameMatcher = new RegExp(`^${path$13.basename(filename)}`);
41129
+ const nameMatcher = new RegExp(`^${path$14.basename(filename)}`);
41130
41130
  function justTheseFiles(item) {
41131
41131
  return nameMatcher.test(item);
41132
41132
  }
41133
41133
  function index(filename_) {
41134
- return parseInt(filename_.substring(`${path$13.basename(filename)}.`.length), 10) || 0;
41134
+ return parseInt(filename_.substring(`${path$14.basename(filename)}.`.length), 10) || 0;
41135
41135
  }
41136
41136
  function byIndex(a, b) {
41137
41137
  if (index(a) > index(b)) return 1;
@@ -41143,15 +41143,15 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41143
41143
  debug(`Index of ${fileToRename} is ${idx}`);
41144
41144
  if (idx < that.backups) {
41145
41145
  try {
41146
- fs$11.unlinkSync(`${filename}.${idx + 1}`);
41146
+ fs$12.unlinkSync(`${filename}.${idx + 1}`);
41147
41147
  } catch (e) {}
41148
41148
  debug(`Renaming ${fileToRename} -> ${filename}.${idx + 1}`);
41149
- fs$11.renameSync(path$13.join(path$13.dirname(filename), fileToRename), `${filename}.${idx + 1}`);
41149
+ fs$12.renameSync(path$14.join(path$14.dirname(filename), fileToRename), `${filename}.${idx + 1}`);
41150
41150
  }
41151
41151
  }
41152
41152
  function renameTheFiles() {
41153
41153
  debug("Renaming the old files");
41154
- fs$11.readdirSync(path$13.dirname(filename)).filter(justTheseFiles).sort(byIndex).reverse().forEach(increaseFileIndex);
41154
+ fs$12.readdirSync(path$14.dirname(filename)).filter(justTheseFiles).sort(byIndex).reverse().forEach(increaseFileIndex);
41155
41155
  }
41156
41156
  debug("Rolling, rolling, rolling");
41157
41157
  renameTheFiles();
@@ -41161,7 +41161,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41161
41161
  function writeTheChunk() {
41162
41162
  debug("writing the chunk to the file");
41163
41163
  that.currentSize += chunk.length;
41164
- fs$11.appendFileSync(that.filename, chunk);
41164
+ fs$12.appendFileSync(that.filename, chunk);
41165
41165
  }
41166
41166
  debug("in write");
41167
41167
  if (this.shouldRoll()) {
@@ -41187,7 +41187,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41187
41187
  */
41188
41188
  function fileAppender(file, layout, logSize, numBackups, timezoneOffset, options) {
41189
41189
  debug("fileSync appender created");
41190
- file = path$13.normalize(file);
41190
+ file = path$14.normalize(file);
41191
41191
  numBackups = numBackups === void 0 ? 5 : numBackups;
41192
41192
  numBackups = numBackups === 0 ? 1 : numBackups;
41193
41193
  function openTheStream(filePath, fileSize, numFiles) {
@@ -41196,7 +41196,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41196
41196
  else stream = ((f) => {
41197
41197
  touchFile(f, options);
41198
41198
  return { write(data) {
41199
- fs$11.appendFileSync(f, data);
41199
+ fs$12.appendFileSync(f, data);
41200
41200
  } };
41201
41201
  })(filePath);
41202
41202
  return stream;
@@ -41221,7 +41221,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41221
41221
  //#endregion
41222
41222
  //#region ../../node_modules/log4js/lib/appenders/index.js
41223
41223
  var require_appenders = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41224
- var path$12 = __require("path");
41224
+ var path$13 = __require("path");
41225
41225
  var debug = require_src()("log4js:appenders");
41226
41226
  var configuration = require_configuration();
41227
41227
  var clustering = require_clustering();
@@ -41248,7 +41248,7 @@ var require_appenders = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41248
41248
  return;
41249
41249
  }
41250
41250
  };
41251
- 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);
41251
+ 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);
41252
41252
  var appendersLoading = /* @__PURE__ */ new Set();
41253
41253
  var getAppender = (name, config) => {
41254
41254
  if (appenders.has(name)) return appenders.get(name);
@@ -41795,7 +41795,7 @@ var require_log4js$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41795
41795
  * Website: http://log4js.berlios.de
41796
41796
  */
41797
41797
  var debug = require_src()("log4js:main");
41798
- var fs$10 = __require("fs");
41798
+ var fs$11 = __require("fs");
41799
41799
  var deepClone = require_rfdc()({ proto: true });
41800
41800
  var configuration = require_configuration();
41801
41801
  var layouts = require_layouts();
@@ -41816,7 +41816,7 @@ var require_log4js$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41816
41816
  function loadConfigurationFile(filename) {
41817
41817
  debug(`Loading configuration from ${filename}`);
41818
41818
  try {
41819
- return JSON.parse(fs$10.readFileSync(filename, "utf8"));
41819
+ return JSON.parse(fs$11.readFileSync(filename, "utf8"));
41820
41820
  } catch (e) {
41821
41821
  throw new Error(`Problem reading config from file "${filename}". Error was ${e.message}`, e);
41822
41822
  }
@@ -42904,10 +42904,10 @@ var require_atomic_sleep = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42904
42904
  //#endregion
42905
42905
  //#region ../../node_modules/sonic-boom/index.js
42906
42906
  var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42907
- var fs$9 = __require("fs");
42907
+ var fs$10 = __require("fs");
42908
42908
  var EventEmitter$8 = __require("events");
42909
42909
  var inherits = __require("util").inherits;
42910
- var path$11 = __require("path");
42910
+ var path$12 = __require("path");
42911
42911
  var sleep = require_atomic_sleep();
42912
42912
  var assert$1 = __require("assert");
42913
42913
  var BUSY_WRITE_TIMEOUT = 100;
@@ -42947,17 +42947,17 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42947
42947
  const flags = sonic.append ? "a" : "w";
42948
42948
  const mode = sonic.mode;
42949
42949
  if (sonic.sync) try {
42950
- if (sonic.mkdir) fs$9.mkdirSync(path$11.dirname(file), { recursive: true });
42951
- fileOpened(null, fs$9.openSync(file, flags, mode));
42950
+ if (sonic.mkdir) fs$10.mkdirSync(path$12.dirname(file), { recursive: true });
42951
+ fileOpened(null, fs$10.openSync(file, flags, mode));
42952
42952
  } catch (err) {
42953
42953
  fileOpened(err);
42954
42954
  throw err;
42955
42955
  }
42956
- else if (sonic.mkdir) fs$9.mkdir(path$11.dirname(file), { recursive: true }, (err) => {
42956
+ else if (sonic.mkdir) fs$10.mkdir(path$12.dirname(file), { recursive: true }, (err) => {
42957
42957
  if (err) return fileOpened(err);
42958
- fs$9.open(file, flags, mode, fileOpened);
42958
+ fs$10.open(file, flags, mode, fileOpened);
42959
42959
  });
42960
- else fs$9.open(file, flags, mode, fileOpened);
42960
+ else fs$10.open(file, flags, mode, fileOpened);
42961
42961
  }
42962
42962
  function SonicBoom(opts) {
42963
42963
  if (!(this instanceof SonicBoom)) return new SonicBoom(opts);
@@ -42995,8 +42995,8 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42995
42995
  this.flush = flushBuffer;
42996
42996
  this.flushSync = flushBufferSync;
42997
42997
  this._actualWrite = actualWriteBuffer;
42998
- fsWriteSync = () => fs$9.writeSync(this.fd, this._writingBuf);
42999
- fsWrite = () => fs$9.write(this.fd, this._writingBuf, this.release);
42998
+ fsWriteSync = () => fs$10.writeSync(this.fd, this._writingBuf);
42999
+ fsWrite = () => fs$10.write(this.fd, this._writingBuf, this.release);
43000
43000
  } else if (contentMode === void 0 || contentMode === kContentModeUtf8) {
43001
43001
  this._writingBuf = "";
43002
43002
  this.write = write;
@@ -43004,12 +43004,12 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43004
43004
  this.flushSync = flushSync;
43005
43005
  this._actualWrite = actualWrite;
43006
43006
  fsWriteSync = () => {
43007
- if (Buffer.isBuffer(this._writingBuf)) return fs$9.writeSync(this.fd, this._writingBuf);
43008
- return fs$9.writeSync(this.fd, this._writingBuf, "utf8");
43007
+ if (Buffer.isBuffer(this._writingBuf)) return fs$10.writeSync(this.fd, this._writingBuf);
43008
+ return fs$10.writeSync(this.fd, this._writingBuf, "utf8");
43009
43009
  };
43010
43010
  fsWrite = () => {
43011
- if (Buffer.isBuffer(this._writingBuf)) return fs$9.write(this.fd, this._writingBuf, this.release);
43012
- return fs$9.write(this.fd, this._writingBuf, "utf8", this.release);
43011
+ if (Buffer.isBuffer(this._writingBuf)) return fs$10.write(this.fd, this._writingBuf, this.release);
43012
+ return fs$10.write(this.fd, this._writingBuf, "utf8", this.release);
43013
43013
  };
43014
43014
  } else throw new Error(`SonicBoom supports "${kContentModeUtf8}" and "${kContentModeBuffer}", but passed ${contentMode}`);
43015
43015
  if (typeof fd === "number") {
@@ -43054,7 +43054,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43054
43054
  return;
43055
43055
  }
43056
43056
  }
43057
- if (this._fsync) fs$9.fsyncSync(this.fd);
43057
+ if (this._fsync) fs$10.fsyncSync(this.fd);
43058
43058
  const len = this._len;
43059
43059
  if (this._reopening) {
43060
43060
  this._writing = false;
@@ -43151,7 +43151,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43151
43151
  this._flushPending = true;
43152
43152
  const onDrain = () => {
43153
43153
  if (!this._fsync) try {
43154
- fs$9.fsync(this.fd, (err) => {
43154
+ fs$10.fsync(this.fd, (err) => {
43155
43155
  this._flushPending = false;
43156
43156
  cb(err);
43157
43157
  });
@@ -43228,7 +43228,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43228
43228
  if (this._writing) return;
43229
43229
  const fd = this.fd;
43230
43230
  this.once("ready", () => {
43231
- if (fd !== this.fd) fs$9.close(fd, (err) => {
43231
+ if (fd !== this.fd) fs$10.close(fd, (err) => {
43232
43232
  if (err) return this.emit("error", err);
43233
43233
  });
43234
43234
  });
@@ -43259,7 +43259,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43259
43259
  while (this._bufs.length || buf.length) {
43260
43260
  if (buf.length <= 0) buf = this._bufs[0];
43261
43261
  try {
43262
- const n = Buffer.isBuffer(buf) ? fs$9.writeSync(this.fd, buf) : fs$9.writeSync(this.fd, buf, "utf8");
43262
+ const n = Buffer.isBuffer(buf) ? fs$10.writeSync(this.fd, buf) : fs$10.writeSync(this.fd, buf, "utf8");
43263
43263
  const releasedBufObj = releaseWritingBuf(buf, this._len, n);
43264
43264
  buf = releasedBufObj.writingBuf;
43265
43265
  this._len = releasedBufObj.len;
@@ -43270,7 +43270,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43270
43270
  }
43271
43271
  }
43272
43272
  try {
43273
- fs$9.fsyncSync(this.fd);
43273
+ fs$10.fsyncSync(this.fd);
43274
43274
  } catch {}
43275
43275
  }
43276
43276
  function flushBufferSync() {
@@ -43284,7 +43284,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43284
43284
  while (this._bufs.length || buf.length) {
43285
43285
  if (buf.length <= 0) buf = mergeBuf(this._bufs[0], this._lens[0]);
43286
43286
  try {
43287
- const n = fs$9.writeSync(this.fd, buf);
43287
+ const n = fs$10.writeSync(this.fd, buf);
43288
43288
  buf = buf.subarray(n);
43289
43289
  this._len = Math.max(this._len - n, 0);
43290
43290
  if (buf.length <= 0) {
@@ -43306,24 +43306,24 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43306
43306
  this._writing = true;
43307
43307
  this._writingBuf = this._writingBuf.length ? this._writingBuf : this._bufs.shift() || "";
43308
43308
  if (this.sync) try {
43309
- release(null, Buffer.isBuffer(this._writingBuf) ? fs$9.writeSync(this.fd, this._writingBuf) : fs$9.writeSync(this.fd, this._writingBuf, "utf8"));
43309
+ release(null, Buffer.isBuffer(this._writingBuf) ? fs$10.writeSync(this.fd, this._writingBuf) : fs$10.writeSync(this.fd, this._writingBuf, "utf8"));
43310
43310
  } catch (err) {
43311
43311
  release(err);
43312
43312
  }
43313
- else fs$9.write(this.fd, this._writingBuf, release);
43313
+ else fs$10.write(this.fd, this._writingBuf, release);
43314
43314
  }
43315
43315
  function actualWriteBuffer() {
43316
43316
  const release = this.release;
43317
43317
  this._writing = true;
43318
43318
  this._writingBuf = this._writingBuf.length ? this._writingBuf : mergeBuf(this._bufs.shift(), this._lens.shift());
43319
43319
  if (this.sync) try {
43320
- release(null, fs$9.writeSync(this.fd, this._writingBuf));
43320
+ release(null, fs$10.writeSync(this.fd, this._writingBuf));
43321
43321
  } catch (err) {
43322
43322
  release(err);
43323
43323
  }
43324
43324
  else {
43325
43325
  if (kCopyBuffer) this._writingBuf = Buffer.from(this._writingBuf);
43326
- fs$9.write(this.fd, this._writingBuf, release);
43326
+ fs$10.write(this.fd, this._writingBuf, release);
43327
43327
  }
43328
43328
  }
43329
43329
  function actualClose(sonic) {
@@ -43337,10 +43337,10 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43337
43337
  sonic._lens = [];
43338
43338
  assert$1(typeof sonic.fd === "number", `sonic.fd must be a number, got ${typeof sonic.fd}`);
43339
43339
  try {
43340
- fs$9.fsync(sonic.fd, closeWrapped);
43340
+ fs$10.fsync(sonic.fd, closeWrapped);
43341
43341
  } catch {}
43342
43342
  function closeWrapped() {
43343
- if (sonic.fd !== 1 && sonic.fd !== 2) fs$9.close(sonic.fd, done);
43343
+ if (sonic.fd !== 1 && sonic.fd !== 2) fs$10.close(sonic.fd, done);
43344
43344
  else done();
43345
43345
  }
43346
43346
  function done(err) {
@@ -72137,7 +72137,7 @@ var require_tcp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
72137
72137
  var Transporter = require_base$1();
72138
72138
  var _ = require_lodash();
72139
72139
  var { isObject, isString } = require_utils$3();
72140
- var fs$8 = __require("fs");
72140
+ var fs$9 = __require("fs");
72141
72141
  var kleur = require_kleur();
72142
72142
  var Node = require_node();
72143
72143
  var P = require_packets();
@@ -72284,7 +72284,7 @@ var require_tcp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
72284
72284
  if (isString(str) && str.startsWith("file://")) {
72285
72285
  const fName = str.replace("file://", "");
72286
72286
  this.logger.debug(`Load nodes list from file '${fName}'...`);
72287
- let content = fs$8.readFileSync(fName);
72287
+ let content = fs$9.readFileSync(fName);
72288
72288
  if (content && content.length > 0) {
72289
72289
  const str = content.toString().trim();
72290
72290
  if (str.startsWith("{") || str.startsWith("[")) return JSON.parse(str);
@@ -74774,15 +74774,15 @@ var require_ttl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
74774
74774
  //#region ../../node_modules/recursive-watch/index.js
74775
74775
  var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
74776
74776
  var os$5 = __require("os");
74777
- var fs$7 = __require("fs");
74778
- var path$10 = __require("path");
74777
+ var fs$8 = __require("fs");
74778
+ var path$11 = __require("path");
74779
74779
  var Cache = require_ttl();
74780
74780
  var watchDirectory = os$5.platform() === "linux" ? watchFallback : watchRecursive;
74781
74781
  module.exports = watch;
74782
74782
  function watch(name, onchange) {
74783
74783
  var clear = null;
74784
74784
  var stopped = false;
74785
- fs$7.lstat(name, function(_, st) {
74785
+ fs$8.lstat(name, function(_, st) {
74786
74786
  if (!st || stopped) {
74787
74787
  stopped = true;
74788
74788
  return;
@@ -74798,8 +74798,8 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
74798
74798
  function watchFile(filename, onchange) {
74799
74799
  var prev = null;
74800
74800
  var prevTime = 0;
74801
- var w = fs$7.watch(filename, function() {
74802
- fs$7.lstat(filename, function(_, st) {
74801
+ var w = fs$8.watch(filename, function() {
74802
+ fs$8.lstat(filename, function(_, st) {
74803
74803
  var now = Date.now();
74804
74804
  if (now - prevTime > 2e3 || !same(st, prev)) onchange(filename);
74805
74805
  prevTime = now;
@@ -74811,9 +74811,9 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
74811
74811
  };
74812
74812
  }
74813
74813
  function watchRecursive(directory, onchange) {
74814
- var w = fs$7.watch(directory, { recursive: true }, function(change, filename) {
74814
+ var w = fs$8.watch(directory, { recursive: true }, function(change, filename) {
74815
74815
  if (!filename) return;
74816
- onchange(path$10.join(directory, filename));
74816
+ onchange(path$11.join(directory, filename));
74817
74817
  });
74818
74818
  return function() {
74819
74819
  w.close();
@@ -74841,7 +74841,7 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
74841
74841
  }
74842
74842
  function update() {
74843
74843
  var filename = queued[0];
74844
- fs$7.lstat(filename, function(err, st) {
74844
+ fs$8.lstat(filename, function(err, st) {
74845
74845
  var w = watching[filename];
74846
74846
  if (err && w) {
74847
74847
  w.close();
@@ -74850,30 +74850,30 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
74850
74850
  var prevSt = prevs.get(filename);
74851
74851
  if (!prevSt || !same(st, prevSt)) onchange(filename);
74852
74852
  prevs.put(filename, st);
74853
- visit(path$10.relative(directory, filename), function() {
74853
+ visit(path$11.relative(directory, filename), function() {
74854
74854
  queued.shift();
74855
74855
  if (queued.length) update();
74856
74856
  });
74857
74857
  });
74858
74858
  }
74859
74859
  function visit(next, cb) {
74860
- var dir = path$10.join(directory, next);
74861
- fs$7.lstat(dir, function(err, st) {
74860
+ var dir = path$11.join(directory, next);
74861
+ fs$8.lstat(dir, function(err, st) {
74862
74862
  if (err || !st.isDirectory()) return cb();
74863
74863
  if (watching[dir]) return cb();
74864
74864
  if (loaded) emit(dir);
74865
- var w = fs$7.watch(dir, function(change, filename) {
74866
- filename = path$10.join(next, filename);
74867
- emit(path$10.join(directory, filename));
74865
+ var w = fs$8.watch(dir, function(change, filename) {
74866
+ filename = path$11.join(next, filename);
74867
+ emit(path$11.join(directory, filename));
74868
74868
  });
74869
74869
  w.on("error", noop);
74870
74870
  watching[dir] = w;
74871
- fs$7.readdir(dir, function(err, list) {
74871
+ fs$8.readdir(dir, function(err, list) {
74872
74872
  if (err) return cb(err);
74873
74873
  loop();
74874
74874
  function loop() {
74875
74875
  if (!list.length) return cb();
74876
- visit(path$10.join(next, list.shift()), loop);
74876
+ visit(path$11.join(next, list.shift()), loop);
74877
74877
  }
74878
74878
  });
74879
74879
  });
@@ -74888,9 +74888,9 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
74888
74888
  //#endregion
74889
74889
  //#region ../../node_modules/moleculer/src/middlewares/hot-reload.js
74890
74890
  var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
74891
- var fs$6 = __require("fs");
74891
+ var fs$7 = __require("fs");
74892
74892
  var kleur = require_kleur();
74893
- var path$9 = __require("path");
74893
+ var path$10 = __require("path");
74894
74894
  var watch = require_recursive_watch();
74895
74895
  var _ = require_lodash();
74896
74896
  var { clearRequireCache, makeDirs, isFunction, isString, uniq } = require_utils$3();
@@ -74902,10 +74902,10 @@ var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
74902
74902
  let hotReloadModules = [];
74903
74903
  let extraFiles = null;
74904
74904
  function hotReloadService(service) {
74905
- const relPath = path$9.relative(process.cwd(), service.__filename);
74905
+ const relPath = path$10.relative(process.cwd(), service.__filename);
74906
74906
  broker.logger.info(`Hot reload '${service.name}' service...`, kleur.grey(relPath));
74907
74907
  return broker.destroyService(service).then(() => {
74908
- if (fs$6.existsSync(service.__filename)) try {
74908
+ if (fs$7.existsSync(service.__filename)) try {
74909
74909
  return broker.loadService(service.__filename);
74910
74910
  } catch (err) {
74911
74911
  broker.logger.error(`Failed to load service '${service.__filename}'`, err);
@@ -74937,7 +74937,7 @@ var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
74937
74937
  });
74938
74938
  broker.logger.info(kleur.bgMagenta().white().bold(`Reload ${needToReloadDedup.length} service(s)`));
74939
74939
  needToReloadDedup.forEach((svc) => {
74940
- if (typeof svc == "string") if (fs$6.existsSync(svc)) return broker.loadService(svc);
74940
+ if (typeof svc == "string") if (fs$7.existsSync(svc)) return broker.loadService(svc);
74941
74941
  else return;
74942
74942
  return hotReloadService(svc);
74943
74943
  });
@@ -74947,19 +74947,19 @@ var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
74947
74947
  broker.logger.debug("");
74948
74948
  broker.logger.debug(kleur.yellow().bold("Watching the following project files:"));
74949
74949
  projectFiles.forEach((watchItem, fName) => {
74950
- if (!fs$6.existsSync(fName)) projectFiles.delete(fName);
74950
+ if (!fs$7.existsSync(fName)) projectFiles.delete(fName);
74951
74951
  });
74952
74952
  projectFiles.forEach((watchItem, fName) => {
74953
- const relPath = path$9.relative(process.cwd(), fName);
74953
+ const relPath = path$10.relative(process.cwd(), fName);
74954
74954
  if (watchItem.brokerRestart) broker.logger.debug(` ${relPath}:`, kleur.grey("restart broker."));
74955
74955
  else if (watchItem.allServices) broker.logger.debug(` ${relPath}:`, kleur.grey("reload all services."));
74956
74956
  else if (watchItem.services.length > 0) {
74957
74957
  broker.logger.debug(` ${relPath}:`, kleur.grey(`reload ${watchItem.services.length} service(s) & ${watchItem.others.length} other(s).`));
74958
74958
  watchItem.services.forEach((svcFullname) => broker.logger.debug(kleur.grey(` ${svcFullname}`)));
74959
- watchItem.others.forEach((filename) => broker.logger.debug(kleur.grey(` ${path$9.relative(process.cwd(), filename)}`)));
74959
+ watchItem.others.forEach((filename) => broker.logger.debug(kleur.grey(` ${path$10.relative(process.cwd(), filename)}`)));
74960
74960
  }
74961
- watchItem.watcher = fs$6.watch(fName, (eventType) => {
74962
- const relPath = path$9.relative(process.cwd(), fName);
74961
+ watchItem.watcher = fs$7.watch(fName, (eventType) => {
74962
+ const relPath = path$10.relative(process.cwd(), fName);
74963
74963
  broker.logger.info(kleur.magenta().bold(`The '${relPath}' file is changed. (Event: ${eventType})`));
74964
74964
  clearRequireCache(fName);
74965
74965
  if (watchItem.others.length > 0) watchItem.others.forEach((f) => clearRequireCache(f));
@@ -75077,16 +75077,16 @@ var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75077
75077
  broker.logger.debug(kleur.yellow().bold("Watching the following folder(s):"));
75078
75078
  folders.forEach((folder) => {
75079
75079
  makeDirs(folder);
75080
- broker.logger.debug(` ${path$9.relative(process.cwd(), folder)}/`);
75080
+ broker.logger.debug(` ${path$10.relative(process.cwd(), folder)}/`);
75081
75081
  folderWatchers.push({
75082
75082
  path: folder,
75083
75083
  watcher: watch(folder, (filename) => {
75084
75084
  if (filename.endsWith(".service.js") || filename.endsWith(".service.ts")) {
75085
- broker.logger.debug(`There is changes in '${folder}' folder: `, path$9.basename(filename));
75085
+ broker.logger.debug(`There is changes in '${folder}' folder: `, path$10.basename(filename));
75086
75086
  const isLoaded = broker.services.some((svc) => svc.__filename == filename);
75087
- const fileExists = fs$6.existsSync(filename);
75087
+ const fileExists = fs$7.existsSync(filename);
75088
75088
  if (!isLoaded && fileExists) {
75089
- broker.logger.debug("Loading new file: ", path$9.basename(filename));
75089
+ broker.logger.debug("Loading new file: ", path$10.basename(filename));
75090
75090
  needToLoad.add(filename);
75091
75091
  loadServices();
75092
75092
  }
@@ -75262,8 +75262,8 @@ var require_compression = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75262
75262
  var require_transit_logger = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75263
75263
  var _ = require_lodash();
75264
75264
  var kleur = require_kleur();
75265
- var fs$5 = __require("fs");
75266
- var path$8 = __require("path");
75265
+ var fs$6 = __require("fs");
75266
+ var path$9 = __require("path");
75267
75267
  var { makeDirs, safetyObject } = require_utils$3();
75268
75268
  module.exports = function TransitLoggerMiddleware(opts) {
75269
75269
  opts = _.defaultsDeep(opts, {
@@ -75288,7 +75288,7 @@ var require_transit_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
75288
75288
  } catch {
75289
75289
  data = JSON.stringify(safetyObject(payload), payload instanceof Error ? Object.getOwnPropertyNames(payload) : null, 4);
75290
75290
  }
75291
- fs$5.writeFile(path$8.join(targetFolder, filename), data, () => {});
75291
+ fs$6.writeFile(path$9.join(targetFolder, filename), data, () => {});
75292
75292
  }
75293
75293
  const coloringSend = opts.colors && opts.colors.send ? opts.colors.send.split(".").reduce((a, b) => a[b] || a()[b], kleur) : (s) => s;
75294
75294
  const coloringReceive = opts.colors && opts.colors.receive ? opts.colors.receive.split(".").reduce((a, b) => a[b] || a()[b], kleur) : (s) => s;
@@ -75299,7 +75299,7 @@ var require_transit_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
75299
75299
  logger = opts.logger || broker.getLogger("debug");
75300
75300
  nodeID = broker.nodeID;
75301
75301
  if (opts.folder) {
75302
- targetFolder = path$8.join(opts.folder, nodeID);
75302
+ targetFolder = path$9.join(opts.folder, nodeID);
75303
75303
  makeDirs(targetFolder);
75304
75304
  }
75305
75305
  logFn = opts.logLevel ? logger[opts.logLevel] : null;
@@ -75336,8 +75336,8 @@ var require_transit_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
75336
75336
  var require_action_logger = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75337
75337
  var _ = require_lodash();
75338
75338
  var kleur = require_kleur();
75339
- var fs$4 = __require("fs");
75340
- var path$7 = __require("path");
75339
+ var fs$5 = __require("fs");
75340
+ var path$8 = __require("path");
75341
75341
  var { makeDirs, match, isObject, safetyObject } = require_utils$3();
75342
75342
  module.exports = function ActionLoggerMiddleware(opts) {
75343
75343
  opts = _.defaultsDeep(opts, {
@@ -75366,7 +75366,7 @@ var require_action_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
75366
75366
  } catch {
75367
75367
  data = JSON.stringify(safetyObject(payload), payload instanceof Error ? Object.getOwnPropertyNames(payload) : null, 4);
75368
75368
  }
75369
- fs$4.writeFile(path$7.join(targetFolder, filename), data, () => {});
75369
+ fs$5.writeFile(path$8.join(targetFolder, filename), data, () => {});
75370
75370
  }
75371
75371
  function isWhiteListed(actionName) {
75372
75372
  return !!opts.whitelist.find((pattern) => match(actionName, pattern));
@@ -75381,7 +75381,7 @@ var require_action_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
75381
75381
  logger = opts.logger || broker.getLogger("debug");
75382
75382
  nodeID = broker.nodeID;
75383
75383
  if (opts.folder) {
75384
- targetFolder = path$7.join(opts.folder, nodeID);
75384
+ targetFolder = path$8.join(opts.folder, nodeID);
75385
75385
  makeDirs(targetFolder);
75386
75386
  }
75387
75387
  logFn = opts.logLevel ? logger[opts.logLevel] : null;
@@ -78583,7 +78583,7 @@ var require_service_broker = /* @__PURE__ */ __commonJSMin(((exports, module) =>
78583
78583
  var EventEmitter2 = require_eventemitter2().EventEmitter2;
78584
78584
  var _ = require_lodash();
78585
78585
  var { globSync } = require_index_min$1();
78586
- var path$6 = __require("path");
78586
+ var path$7 = __require("path");
78587
78587
  var { format } = __require("util");
78588
78588
  var Transit = require_transit();
78589
78589
  var Registry = require_registry();
@@ -79132,7 +79132,7 @@ var require_service_broker = /* @__PURE__ */ __commonJSMin(((exports, module) =>
79132
79132
  loadServices(folder = "./services", fileMask = "**/*.service.js") {
79133
79133
  this.logger.debug(`Search services in '${folder}/${fileMask}'...`);
79134
79134
  let serviceFiles;
79135
- if (Array.isArray(fileMask)) serviceFiles = fileMask.map((f) => path$6.join(folder, f));
79135
+ if (Array.isArray(fileMask)) serviceFiles = fileMask.map((f) => path$7.join(folder, f));
79136
79136
  else serviceFiles = globSync(folder + "/" + fileMask);
79137
79137
  if (serviceFiles) serviceFiles.forEach((filename) => this.loadService(filename));
79138
79138
  return serviceFiles.length;
@@ -79148,8 +79148,8 @@ var require_service_broker = /* @__PURE__ */ __commonJSMin(((exports, module) =>
79148
79148
  loadService(filePath) {
79149
79149
  let fName, schema;
79150
79150
  try {
79151
- fName = __require.resolve(path$6.resolve(filePath));
79152
- this.logger.debug(`Load service '${path$6.basename(fName)}'...`);
79151
+ fName = __require.resolve(path$7.resolve(filePath));
79152
+ this.logger.debug(`Load service '${path$7.basename(fName)}'...`);
79153
79153
  const r = __require(fName);
79154
79154
  schema = r.default != null ? r.default : r;
79155
79155
  let svc;
@@ -82132,7 +82132,7 @@ var require_leven = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82132
82132
  //#region ../../node_modules/args/lib/utils.js
82133
82133
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82134
82134
  var { spawn } = __require("child_process");
82135
- var path$5 = __require("path");
82135
+ var path$6 = __require("path");
82136
82136
  var camelcase = require_camelcase();
82137
82137
  var leven = require_leven();
82138
82138
  function similarityBestMatch(mainString, targetStrings) {
@@ -82293,10 +82293,10 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82293
82293
  break;
82294
82294
  }
82295
82295
  if (process.platform === "win32") {
82296
- const binaryExt = path$5.extname(this.binary);
82296
+ const binaryExt = path$6.extname(this.binary);
82297
82297
  const mainModule = process.env.APPVEYOR ? "_fixture" : process.mainModule.filename;
82298
82298
  full = `${mainModule}-${subCommand}`;
82299
- if (path$5.extname(this.binary)) full = `${mainModule.replace(binaryExt, "")}-${subCommand}${binaryExt}`;
82299
+ if (path$6.extname(this.binary)) full = `${mainModule.replace(binaryExt, "")}-${subCommand}${binaryExt}`;
82300
82300
  args.unshift(full);
82301
82301
  this.child = spawn(process.execPath, args, { stdio: "inherit" });
82302
82302
  } else this.child = spawn(full, args, { stdio: "inherit" });
@@ -82489,7 +82489,7 @@ var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82489
82489
  //#endregion
82490
82490
  //#region ../../node_modules/args/lib/parse.js
82491
82491
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82492
- var path$4 = __require("path");
82492
+ var path$5 = __require("path");
82493
82493
  var parser = require_lib$1();
82494
82494
  module.exports = function(argv, options) {
82495
82495
  Object.assign(this.config, options);
@@ -82504,7 +82504,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82504
82504
  }
82505
82505
  else this.printSubColor = this.printSubColor[this.config.subColor];
82506
82506
  this.raw = parser(argv.slice(1), this.config.mri || this.config.minimist);
82507
- this.binary = path$4.basename(this.raw._[0]);
82507
+ this.binary = path$5.basename(this.raw._[0]);
82508
82508
  if (this.config.version) this.checkVersion();
82509
82509
  if (this.config.help) this.checkHelp();
82510
82510
  const subCommand = this.raw._[1];
@@ -82589,8 +82589,8 @@ var require_help = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82589
82589
  //#endregion
82590
82590
  //#region ../../node_modules/args/lib/version.js
82591
82591
  var require_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82592
- var fs$3 = __require("fs");
82593
- var path$3 = __require("path");
82592
+ var fs$4 = __require("fs");
82593
+ var path$4 = __require("path");
82594
82594
  /**
82595
82595
  * Retrieves the main module package.json information.
82596
82596
  *
@@ -82601,13 +82601,13 @@ var require_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82601
82601
  * An object containing the package.json contents or NULL if it could not be found.
82602
82602
  */
82603
82603
  function findPackage(directory) {
82604
- const file = path$3.resolve(directory, "package.json");
82605
- if (fs$3.existsSync(file) && fs$3.statSync(file).isFile()) return __require(file);
82606
- const parent = path$3.resolve(directory, "..");
82604
+ const file = path$4.resolve(directory, "package.json");
82605
+ if (fs$4.existsSync(file) && fs$4.statSync(file).isFile()) return __require(file);
82606
+ const parent = path$4.resolve(directory, "..");
82607
82607
  return parent === directory ? null : findPackage(parent);
82608
82608
  }
82609
82609
  module.exports = function() {
82610
- const pkg = findPackage(path$3.dirname(process.mainModule.filename));
82610
+ const pkg = findPackage(path$4.dirname(process.mainModule.filename));
82611
82611
  const version = pkg && pkg.version || "-/-";
82612
82612
  console.log(version);
82613
82613
  if (this.config.exit && this.config.exit.version) process.exit();
@@ -82664,8 +82664,8 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82664
82664
  //#endregion
82665
82665
  //#region ../../node_modules/dotenv/lib/main.js
82666
82666
  var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82667
- var fs$2 = __require("fs");
82668
- var path$2 = __require("path");
82667
+ var fs$3 = __require("fs");
82668
+ var path$3 = __require("path");
82669
82669
  var os$3 = __require("os");
82670
82670
  var crypto = __require("crypto");
82671
82671
  var TIPS = [
@@ -82792,14 +82792,14 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82792
82792
  function _vaultPath(options) {
82793
82793
  let possibleVaultPath = null;
82794
82794
  if (options && options.path && options.path.length > 0) if (Array.isArray(options.path)) {
82795
- for (const filepath of options.path) if (fs$2.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
82795
+ for (const filepath of options.path) if (fs$3.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
82796
82796
  } else possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
82797
- else possibleVaultPath = path$2.resolve(process.cwd(), ".env.vault");
82798
- if (fs$2.existsSync(possibleVaultPath)) return possibleVaultPath;
82797
+ else possibleVaultPath = path$3.resolve(process.cwd(), ".env.vault");
82798
+ if (fs$3.existsSync(possibleVaultPath)) return possibleVaultPath;
82799
82799
  return null;
82800
82800
  }
82801
82801
  function _resolveHome(envPath) {
82802
- return envPath[0] === "~" ? path$2.join(os$3.homedir(), envPath.slice(1)) : envPath;
82802
+ return envPath[0] === "~" ? path$3.join(os$3.homedir(), envPath.slice(1)) : envPath;
82803
82803
  }
82804
82804
  function _configVault(options) {
82805
82805
  const debug = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options && options.debug);
@@ -82812,7 +82812,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82812
82812
  return { parsed };
82813
82813
  }
82814
82814
  function configDotenv(options) {
82815
- const dotenvPath = path$2.resolve(process.cwd(), ".env");
82815
+ const dotenvPath = path$3.resolve(process.cwd(), ".env");
82816
82816
  let encoding = "utf8";
82817
82817
  let processEnv = process.env;
82818
82818
  if (options && options.processEnv != null) processEnv = options.processEnv;
@@ -82829,7 +82829,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82829
82829
  let lastError;
82830
82830
  const parsedAll = {};
82831
82831
  for (const path of optionPaths) try {
82832
- const parsed = DotenvModule.parse(fs$2.readFileSync(path, { encoding }));
82832
+ const parsed = DotenvModule.parse(fs$3.readFileSync(path, { encoding }));
82833
82833
  DotenvModule.populate(parsedAll, parsed, options);
82834
82834
  } catch (e) {
82835
82835
  if (debug) _debug(`failed to load ${path} ${e.message}`);
@@ -82842,7 +82842,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82842
82842
  const keysCount = Object.keys(populated).length;
82843
82843
  const shortPaths = [];
82844
82844
  for (const filePath of optionPaths) try {
82845
- const relative = path$2.relative(process.cwd(), filePath);
82845
+ const relative = path$3.relative(process.cwd(), filePath);
82846
82846
  shortPaths.push(relative);
82847
82847
  } catch (e) {
82848
82848
  if (debug) _debug(`failed to load ${filePath} ${e.message}`);
@@ -82941,8 +82941,8 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82941
82941
  */
82942
82942
  var ServiceBroker = require_service_broker();
82943
82943
  var utils = require_utils$3();
82944
- var fs$1 = __require("fs");
82945
- var path$1 = __require("path");
82944
+ var fs$2 = __require("fs");
82945
+ var path$2 = __require("path");
82946
82946
  var { globSync } = require_index_min$1();
82947
82947
  var inspect = __require("util").inspect;
82948
82948
  var _ = require_lodash();
@@ -83070,17 +83070,17 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83070
83070
  let filePath;
83071
83071
  const configPath = process.env["MOLECULER_CONFIG"] || this.flags.config;
83072
83072
  if (configPath != null) {
83073
- if (path$1.isAbsolute(configPath)) filePath = this.tryConfigPath(configPath);
83073
+ if (path$2.isAbsolute(configPath)) filePath = this.tryConfigPath(configPath);
83074
83074
  else {
83075
- filePath = this.tryConfigPath(path$1.resolve(process.cwd(), configPath));
83075
+ filePath = this.tryConfigPath(path$2.resolve(process.cwd(), configPath));
83076
83076
  if (filePath == null) filePath = this.tryConfigPath(configPath, true);
83077
83077
  }
83078
83078
  if (filePath == null) return Promise.reject(/* @__PURE__ */ new Error(`Config file not found: ${configPath}`));
83079
83079
  }
83080
- if (filePath == null) filePath = this.tryConfigPath(path$1.resolve(process.cwd(), "moleculer.config.js"));
83081
- if (filePath == null) filePath = this.tryConfigPath(path$1.resolve(process.cwd(), "moleculer.config.json"));
83080
+ if (filePath == null) filePath = this.tryConfigPath(path$2.resolve(process.cwd(), "moleculer.config.js"));
83081
+ if (filePath == null) filePath = this.tryConfigPath(path$2.resolve(process.cwd(), "moleculer.config.json"));
83082
83082
  if (filePath == null) return Promise.resolve({});
83083
- const ext = path$1.extname(filePath);
83083
+ const ext = path$2.extname(filePath);
83084
83084
  switch (ext) {
83085
83085
  case ".json":
83086
83086
  case ".js":
@@ -83166,7 +83166,7 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83166
83166
  */
83167
83167
  isDirectory(p) {
83168
83168
  try {
83169
- return fs$1.lstatSync(p).isDirectory();
83169
+ return fs$2.lstatSync(p).isDirectory();
83170
83170
  } catch {}
83171
83171
  return false;
83172
83172
  }
@@ -83178,7 +83178,7 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83178
83178
  */
83179
83179
  isServiceFile(p) {
83180
83180
  try {
83181
- return !fs$1.lstatSync(p).isDirectory();
83181
+ return !fs$2.lstatSync(p).isDirectory();
83182
83182
  } catch {}
83183
83183
  return false;
83184
83184
  }
@@ -83203,7 +83203,7 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83203
83203
  this.watchFolders.length = 0;
83204
83204
  const fileMask = this.flags.mask || "**/*.service.js";
83205
83205
  const serviceDir = process.env.SERVICEDIR || "";
83206
- const svcDir = path$1.isAbsolute(serviceDir) ? serviceDir : path$1.resolve(process.cwd(), serviceDir);
83206
+ const svcDir = path$2.isAbsolute(serviceDir) ? serviceDir : path$2.resolve(process.cwd(), serviceDir);
83207
83207
  let patterns = this.servicePaths;
83208
83208
  if (process.env.SERVICES || process.env.SERVICEDIR) {
83209
83209
  if (this.isDirectory(svcDir) && !process.env.SERVICES) {
@@ -83219,7 +83219,7 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83219
83219
  if (p.startsWith("npm:")) this.loadNpmModule(p.slice(4));
83220
83220
  else {
83221
83221
  let files;
83222
- const svcPath = path$1.isAbsolute(p) ? p : path$1.resolve(svcDir, p);
83222
+ const svcPath = path$2.isAbsolute(p) ? p : path$2.resolve(svcDir, p);
83223
83223
  if (this.isDirectory(svcPath)) {
83224
83224
  if (this.config.hotReload) this.watchFolders.push(svcPath);
83225
83225
  files = globSync(svcPath + "/" + fileMask, { absolute: true });
@@ -83391,12 +83391,12 @@ var Gt = (n, t, e) => {
83391
83391
  }
83392
83392
  return h;
83393
83393
  };
83394
- 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$1 = new RegExp(de, "g"), hs = new RegExp(pe, "g"), as = /\\\\/g, ls = /\\{/g, cs = /\\}/g, fs = /\\,/g, us = /\\./g, ds = 1e5;
83394
+ 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$1 = new RegExp(de, "g"), hs = new RegExp(pe, "g"), as = /\\\\/g, ls = /\\{/g, cs = /\\}/g, fs$1 = /\\,/g, us = /\\./g, ds = 1e5;
83395
83395
  function Ht(n) {
83396
83396
  return isNaN(n) ? n.charCodeAt(0) : parseInt(n, 10);
83397
83397
  }
83398
83398
  function ps(n) {
83399
- return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs, de).replace(us, pe);
83399
+ return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs$1, de).replace(us, pe);
83400
83400
  }
83401
83401
  function ms(n) {
83402
83402
  return n.replace(is, "\\").replace(rs, "{").replace(ns, "}").replace(os$1, ",").replace(hs, ".");
@@ -83570,7 +83570,7 @@ var xs = new Set([
83570
83570
  "+",
83571
83571
  "*",
83572
83572
  "@"
83573
- ]), be = (n) => xs.has(n), vs = "(?!(?:^|/)\\.\\.?(?:$|/))", Ct = "(?!\\.)", Cs = new Set(["[", "."]), Ts = new Set(["..", "."]), As$1 = /* @__PURE__ */ new Set("().*{}+?[]^$\\!"), ks = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), Kt$1 = "[^/]", Se = Kt$1 + "*?", Ee = Kt$1 + "+?", Q = class n {
83573
+ ]), be = (n) => xs.has(n), vs = "(?!(?:^|/)\\.\\.?(?:$|/))", Ct = "(?!\\.)", Cs = new Set(["[", "."]), Ts = new Set(["..", "."]), As = /* @__PURE__ */ new Set("().*{}+?[]^$\\!"), ks = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), Kt$1 = "[^/]", Se = Kt$1 + "*?", Ee = Kt$1 + "+?", Q = class n {
83574
83574
  type;
83575
83575
  #t;
83576
83576
  #s;
@@ -83777,7 +83777,7 @@ var xs = new Set([
83777
83777
  for (let a = 0; a < t.length; a++) {
83778
83778
  let l = t.charAt(a);
83779
83779
  if (i) {
83780
- i = !1, r += (As$1.has(l) ? "\\" : "") + l;
83780
+ i = !1, r += (As.has(l) ? "\\" : "") + l;
83781
83781
  continue;
83782
83782
  }
83783
83783
  if (l === "*") {
@@ -84761,7 +84761,7 @@ var q = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n), De = (n) => q(n
84761
84761
  var Ne = typeof process == "object" && process ? process : {
84762
84762
  stdout: null,
84763
84763
  stderr: null
84764
- }, oi = (n) => !!n && typeof n == "object" && (n instanceof V || n instanceof As || hi(n) || ai(n)), hi = (n) => !!n && typeof n == "object" && n instanceof EventEmitter && typeof n.pipe == "function" && n.pipe !== As.Writable.prototype.pipe, ai = (n) => !!n && typeof n == "object" && n instanceof EventEmitter && typeof n.write == "function" && typeof n.end == "function", G = Symbol("EOF"), H = Symbol("maybeEmitEnd"), K = Symbol("emittedEnd"), kt = Symbol("emittingEnd"), ut = Symbol("emittedError"), Rt = Symbol("closed"), _e = Symbol("read"), Ot = Symbol("flush"), Le = Symbol("flushChunk"), P = Symbol("encoding"), et = Symbol("decoder"), v = Symbol("flowing"), dt = Symbol("paused"), st = Symbol("resume"), C = Symbol("buffer"), F = Symbol("pipes"), T = Symbol("bufferLength"), Yt = Symbol("bufferPush"), Ft = Symbol("bufferShift"), k = Symbol("objectMode"), x = Symbol("destroyed"), Xt = Symbol("error"), Jt = Symbol("emitData"), We = Symbol("emitEnd"), Zt = Symbol("emitEnd2"), B = Symbol("async"), Qt = Symbol("abort"), Dt = Symbol("aborted"), pt = Symbol("signal"), Y = Symbol("dataListeners"), M = Symbol("discarded"), mt = (n) => Promise.resolve().then(n), li = (n) => n(), ci = (n) => n === "end" || n === "finish" || n === "prefinish", fi = (n) => n instanceof ArrayBuffer || !!n && typeof n == "object" && n.constructor && n.constructor.name === "ArrayBuffer" && n.byteLength >= 0, ui = (n) => !Buffer.isBuffer(n) && ArrayBuffer.isView(n), Mt = class {
84764
+ }, oi = (n) => !!n && typeof n == "object" && (n instanceof V || n instanceof Pe || hi(n) || ai(n)), hi = (n) => !!n && typeof n == "object" && n instanceof EventEmitter && typeof n.pipe == "function" && n.pipe !== Pe.Writable.prototype.pipe, ai = (n) => !!n && typeof n == "object" && n instanceof EventEmitter && typeof n.write == "function" && typeof n.end == "function", G = Symbol("EOF"), H = Symbol("maybeEmitEnd"), K = Symbol("emittedEnd"), kt = Symbol("emittingEnd"), ut = Symbol("emittedError"), Rt = Symbol("closed"), _e = Symbol("read"), Ot = Symbol("flush"), Le = Symbol("flushChunk"), P = Symbol("encoding"), et = Symbol("decoder"), v = Symbol("flowing"), dt = Symbol("paused"), st = Symbol("resume"), C = Symbol("buffer"), F = Symbol("pipes"), T = Symbol("bufferLength"), Yt = Symbol("bufferPush"), Ft = Symbol("bufferShift"), k = Symbol("objectMode"), x = Symbol("destroyed"), Xt = Symbol("error"), Jt = Symbol("emitData"), We = Symbol("emitEnd"), Zt = Symbol("emitEnd2"), B = Symbol("async"), Qt = Symbol("abort"), Dt = Symbol("aborted"), pt = Symbol("signal"), Y = Symbol("dataListeners"), M = Symbol("discarded"), mt = (n) => Promise.resolve().then(n), li = (n) => n(), ci = (n) => n === "end" || n === "finish" || n === "prefinish", fi = (n) => n instanceof ArrayBuffer || !!n && typeof n == "object" && n.constructor && n.constructor.name === "ArrayBuffer" && n.byteLength >= 0, ui = (n) => !Buffer.isBuffer(n) && ArrayBuffer.isView(n), Mt = class {
84765
84765
  src;
84766
84766
  dest;
84767
84767
  opts;
@@ -86319,7 +86319,7 @@ var Li = (n, t) => typeof n == "string" ? new ot([n], t) : Array.isArray(n) ? ne
86319
86319
  return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => this.results.end()), this.results;
86320
86320
  }
86321
86321
  };
86322
- var Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", I$1 = class {
86322
+ var Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", I = class {
86323
86323
  absolute;
86324
86324
  cwd;
86325
86325
  root;
@@ -86444,22 +86444,22 @@ var le = (n, t = {}) => {
86444
86444
  return !1;
86445
86445
  };
86446
86446
  function Bt(n, t = {}) {
86447
- return new I$1(n, t).streamSync();
86447
+ return new I(n, t).streamSync();
86448
86448
  }
86449
86449
  function Qe(n, t = {}) {
86450
- return new I$1(n, t).stream();
86450
+ return new I(n, t).stream();
86451
86451
  }
86452
86452
  function ts(n, t = {}) {
86453
- return new I$1(n, t).walkSync();
86453
+ return new I(n, t).walkSync();
86454
86454
  }
86455
86455
  async function Je(n, t = {}) {
86456
- return new I$1(n, t).walk();
86456
+ return new I(n, t).walk();
86457
86457
  }
86458
86458
  function Ut(n, t = {}) {
86459
- return new I$1(n, t).iterateSync();
86459
+ return new I(n, t).iterateSync();
86460
86460
  }
86461
86461
  function es(n, t = {}) {
86462
- return new I$1(n, t).iterate();
86462
+ return new I(n, t).iterate();
86463
86463
  }
86464
86464
  var ji = Bt, Ii = Object.assign(Qe, { sync: Bt }), zi = Ut, Bi = Object.assign(es, { sync: Ut }), Ui = Object.assign(ts, {
86465
86465
  stream: Bt,
@@ -86476,7 +86476,7 @@ var ji = Bt, Ii = Object.assign(Qe, { sync: Bt }), zi = Ut, Bi = Object.assign(e
86476
86476
  iterate: Bi,
86477
86477
  globIterateSync: Ut,
86478
86478
  iterateSync: zi,
86479
- Glob: I$1,
86479
+ Glob: I,
86480
86480
  hasMagic: le,
86481
86481
  escape: tt,
86482
86482
  unescape: W