@storm-software/config-tools 1.41.5 → 1.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs CHANGED
@@ -4265,7 +4265,7 @@ var require_jiti = __commonJS({
4265
4265
  const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
4266
4266
  return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
4267
4267
  });
4268
- const packageJsonReader2 = { read: function(jsonPath) {
4268
+ const packageJsonReader = { read: function(jsonPath) {
4269
4269
  try {
4270
4270
  return { string: external_node_fs_namespaceObject.readFileSync(external_node_path_namespaceObject.toNamespacedPath(external_node_path_namespaceObject.join(external_node_path_namespaceObject.dirname(jsonPath), "package.json")), "utf8") };
4271
4271
  } catch (error) {
@@ -4280,7 +4280,7 @@ var require_jiti = __commonJS({
4280
4280
  const existing = packageJsonCache.get(path5);
4281
4281
  if (void 0 !== existing)
4282
4282
  return existing;
4283
- const source = packageJsonReader2.read(path5).string;
4283
+ const source = packageJsonReader.read(path5).string;
4284
4284
  if (void 0 === source) {
4285
4285
  const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
4286
4286
  return packageJsonCache.set(path5, packageConfig2), packageConfig2;
@@ -4343,7 +4343,7 @@ var require_jiti = __commonJS({
4343
4343
  }, "http:": getHttpProtocolModuleFormat2, "https:": getHttpProtocolModuleFormat2, "node:": () => "builtin" };
4344
4344
  function getHttpProtocolModuleFormat2() {
4345
4345
  }
4346
- const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx2 = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
4346
+ const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
4347
4347
  function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
4348
4348
  const pjsonPath = (0, external_node_url_namespaceObject.fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
4349
4349
  external_node_process_namespaceObject.emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match ? "" : `matched to "${match}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, external_node_url_namespaceObject.fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
@@ -4630,7 +4630,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4630
4630
  else
4631
4631
  resolved = packageImportsResolve2(specifier, base, conditions);
4632
4632
  return external_node_assert_namespaceObject(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
4633
- if (null !== encodedSepRegEx2.exec(resolved2.pathname))
4633
+ if (null !== encodedSepRegEx.exec(resolved2.pathname))
4634
4634
  throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, external_node_url_namespaceObject.fileURLToPath)(base2));
4635
4635
  const filePath = (0, external_node_url_namespaceObject.fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
4636
4636
  if (stats.isDirectory()) {
@@ -10236,7 +10236,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
10236
10236
  const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
10237
10237
  return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
10238
10238
  });
10239
- var packageJsonReader2 = { read: function(jsonPath) {
10239
+ var packageJsonReader = { read: function(jsonPath) {
10240
10240
  try {
10241
10241
  return { string: _fs().default.readFileSync(_path().toNamespacedPath(_path().join(_path().dirname(jsonPath), "package.json")), "utf8") };
10242
10242
  } catch (error) {
@@ -10251,7 +10251,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
10251
10251
  const existing = packageJsonCache.get(path5);
10252
10252
  if (void 0 !== existing)
10253
10253
  return existing;
10254
- const source = packageJsonReader2.read(path5).string;
10254
+ const source = packageJsonReader.read(path5).string;
10255
10255
  if (void 0 === source) {
10256
10256
  const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
10257
10257
  return packageJsonCache.set(path5, packageConfig2), packageConfig2;
@@ -10318,7 +10318,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
10318
10318
  return hasOwnProperty3.call(protocolHandlers2, url.protocol) && protocolHandlers2[url.protocol](url, context, true) || null;
10319
10319
  }
10320
10320
  const { ERR_INVALID_ARG_VALUE } = codes2, DEFAULT_CONDITIONS = Object.freeze(["node", "import"]), DEFAULT_CONDITIONS_SET2 = new Set(DEFAULT_CONDITIONS);
10321
- const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], experimentalNetworkImports = false, { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx2 = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
10321
+ const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], experimentalNetworkImports = false, { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
10322
10322
  function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
10323
10323
  const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
10324
10324
  _process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match ? "" : `matched to "${match}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
@@ -10603,7 +10603,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
10603
10603
  else
10604
10604
  resolved = packageImportsResolve2(specifier, base, conditions);
10605
10605
  return _assert()(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
10606
- if (null !== encodedSepRegEx2.exec(resolved2.pathname))
10606
+ if (null !== encodedSepRegEx.exec(resolved2.pathname))
10607
10607
  throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, _url().fileURLToPath)(base2));
10608
10608
  const filePath = (0, _url().fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
10609
10609
  if (stats.isDirectory()) {
@@ -66525,7 +66525,7 @@ Parser.acorn = {
66525
66525
  nonASCIIwhitespace
66526
66526
  };
66527
66527
 
66528
- // node_modules/.pnpm/mlly@1.6.1/node_modules/mlly/dist/index.mjs
66528
+ // node_modules/.pnpm/mlly@1.7.0/node_modules/mlly/dist/index.mjs
66529
66529
  var import_node_module = require("node:module");
66530
66530
  var import_node_fs3 = __toESM(require("node:fs"), 1);
66531
66531
  init_dist2();
@@ -66662,21 +66662,21 @@ codes.ERR_INVALID_PACKAGE_CONFIG = createError(
66662
66662
  codes.ERR_INVALID_PACKAGE_TARGET = createError(
66663
66663
  "ERR_INVALID_PACKAGE_TARGET",
66664
66664
  /**
66665
- * @param {string} pkgPath
66665
+ * @param {string} packagePath
66666
66666
  * @param {string} key
66667
66667
  * @param {unknown} target
66668
66668
  * @param {boolean} [isImport=false]
66669
66669
  * @param {string} [base]
66670
66670
  */
66671
- (pkgPath, key, target, isImport = false, base = void 0) => {
66672
- const relError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
66671
+ (packagePath, key, target, isImport = false, base = void 0) => {
66672
+ const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
66673
66673
  if (key === ".") {
66674
66674
  (0, import_node_assert.default)(isImport === false);
66675
- return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ""}${relError ? '; targets must start with "./"' : ""}`;
66675
+ return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
66676
66676
  }
66677
66677
  return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(
66678
66678
  target
66679
- )} defined for '${key}' in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ""}${relError ? '; targets must start with "./"' : ""}`;
66679
+ )} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
66680
66680
  },
66681
66681
  Error
66682
66682
  );
@@ -66712,14 +66712,14 @@ codes.ERR_PACKAGE_IMPORT_NOT_DEFINED = createError(
66712
66712
  codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
66713
66713
  "ERR_PACKAGE_PATH_NOT_EXPORTED",
66714
66714
  /**
66715
- * @param {string} pkgPath
66715
+ * @param {string} packagePath
66716
66716
  * @param {string} subpath
66717
66717
  * @param {string} [base]
66718
66718
  */
66719
- (pkgPath, subpath, base = void 0) => {
66719
+ (packagePath, subpath, base = void 0) => {
66720
66720
  if (subpath === ".")
66721
- return `No "exports" main defined in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
66722
- return `Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
66721
+ return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
66722
+ return `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
66723
66723
  },
66724
66724
  Error
66725
66725
  );
@@ -66728,14 +66728,19 @@ codes.ERR_UNSUPPORTED_DIR_IMPORT = createError(
66728
66728
  "Directory import '%s' is not supported resolving ES modules imported from %s",
66729
66729
  Error
66730
66730
  );
66731
+ codes.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError(
66732
+ "ERR_UNSUPPORTED_RESOLVE_REQUEST",
66733
+ 'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',
66734
+ TypeError
66735
+ );
66731
66736
  codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
66732
66737
  "ERR_UNKNOWN_FILE_EXTENSION",
66733
66738
  /**
66734
- * @param {string} ext
66739
+ * @param {string} extension
66735
66740
  * @param {string} path
66736
66741
  */
66737
- (ext, path5) => {
66738
- return `Unknown file extension "${ext}" for ${path5}`;
66742
+ (extension, path5) => {
66743
+ return `Unknown file extension "${extension}" for ${path5}`;
66739
66744
  },
66740
66745
  TypeError
66741
66746
  );
@@ -66758,20 +66763,20 @@ codes.ERR_INVALID_ARG_VALUE = createError(
66758
66763
  // Note: extra classes have been shaken out.
66759
66764
  // , RangeError
66760
66765
  );
66761
- function createError(sym, value2, def) {
66766
+ function createError(sym, value2, constructor) {
66762
66767
  messages.set(sym, value2);
66763
- return makeNodeErrorWithCode(def, sym);
66768
+ return makeNodeErrorWithCode(constructor, sym);
66764
66769
  }
66765
66770
  function makeNodeErrorWithCode(Base, key) {
66766
66771
  return NodeError;
66767
- function NodeError(...args) {
66772
+ function NodeError(...parameters) {
66768
66773
  const limit = Error.stackTraceLimit;
66769
66774
  if (isErrorStackTraceLimitWritable())
66770
66775
  Error.stackTraceLimit = 0;
66771
66776
  const error = new Base();
66772
66777
  if (isErrorStackTraceLimitWritable())
66773
66778
  Error.stackTraceLimit = limit;
66774
- const message = getMessage(key, args, error);
66779
+ const message = getMessage(key, parameters, error);
66775
66780
  Object.defineProperties(error, {
66776
66781
  // Note: no need to implement `kIsNodeError` symbol, would be hard,
66777
66782
  // probably.
@@ -66809,10 +66814,10 @@ function isErrorStackTraceLimitWritable() {
66809
66814
  }
66810
66815
  return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
66811
66816
  }
66812
- function hideStackFrames(fn2) {
66813
- const hidden = nodeInternalPrefix + fn2.name;
66814
- Object.defineProperty(fn2, "name", { value: hidden });
66815
- return fn2;
66817
+ function hideStackFrames(wrappedFunction) {
66818
+ const hidden = nodeInternalPrefix + wrappedFunction.name;
66819
+ Object.defineProperty(wrappedFunction, "name", { value: hidden });
66820
+ return wrappedFunction;
66816
66821
  }
66817
66822
  var captureLargerStackTrace = hideStackFrames(
66818
66823
  /**
@@ -66832,29 +66837,29 @@ var captureLargerStackTrace = hideStackFrames(
66832
66837
  return error;
66833
66838
  }
66834
66839
  );
66835
- function getMessage(key, args, self2) {
66840
+ function getMessage(key, parameters, self2) {
66836
66841
  const message = messages.get(key);
66837
66842
  (0, import_node_assert.default)(message !== void 0, "expected `message` to be found");
66838
66843
  if (typeof message === "function") {
66839
66844
  (0, import_node_assert.default)(
66840
- message.length <= args.length,
66845
+ message.length <= parameters.length,
66841
66846
  // Default options do not count.
66842
- `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${message.length}).`
66847
+ `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`
66843
66848
  );
66844
- return Reflect.apply(message, self2, args);
66849
+ return Reflect.apply(message, self2, parameters);
66845
66850
  }
66846
66851
  const regex = /%[dfijoOs]/g;
66847
66852
  let expectedLength = 0;
66848
66853
  while (regex.exec(message) !== null)
66849
66854
  expectedLength++;
66850
66855
  (0, import_node_assert.default)(
66851
- expectedLength === args.length,
66852
- `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`
66856
+ expectedLength === parameters.length,
66857
+ `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`
66853
66858
  );
66854
- if (args.length === 0)
66859
+ if (parameters.length === 0)
66855
66860
  return message;
66856
- args.unshift(message);
66857
- return Reflect.apply(import_node_util.format, null, args);
66861
+ parameters.unshift(message);
66862
+ return Reflect.apply(import_node_util.format, null, parameters);
66858
66863
  }
66859
66864
  function determineSpecificType(value2) {
66860
66865
  if (value2 === null || value2 === void 0) {
@@ -66878,8 +66883,6 @@ function determineSpecificType(value2) {
66878
66883
  var hasOwnProperty$1 = {}.hasOwnProperty;
66879
66884
  var { ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes;
66880
66885
  var cache = /* @__PURE__ */ new Map();
66881
- var reader = { read: read2 };
66882
- var packageJsonReader = reader;
66883
66886
  function read2(jsonPath, { base, specifier }) {
66884
66887
  const existing = cache.get(jsonPath);
66885
66888
  if (existing) {
@@ -66945,21 +66948,20 @@ function read2(jsonPath, { base, specifier }) {
66945
66948
  return result;
66946
66949
  }
66947
66950
  function getPackageScopeConfig(resolved) {
66948
- let packageJSONUrl = new import_node_url.URL("package.json", resolved);
66951
+ let packageJSONUrl = new URL("package.json", resolved);
66949
66952
  while (true) {
66950
66953
  const packageJSONPath2 = packageJSONUrl.pathname;
66951
66954
  if (packageJSONPath2.endsWith("node_modules/package.json")) {
66952
66955
  break;
66953
66956
  }
66954
- const packageConfig = packageJsonReader.read(
66955
- (0, import_node_url.fileURLToPath)(packageJSONUrl),
66956
- { specifier: resolved }
66957
- );
66957
+ const packageConfig = read2((0, import_node_url.fileURLToPath)(packageJSONUrl), {
66958
+ specifier: resolved
66959
+ });
66958
66960
  if (packageConfig.exists) {
66959
66961
  return packageConfig;
66960
66962
  }
66961
66963
  const lastPackageJSONUrl = packageJSONUrl;
66962
- packageJSONUrl = new import_node_url.URL("../package.json", packageJSONUrl);
66964
+ packageJSONUrl = new URL("../package.json", packageJSONUrl);
66963
66965
  if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) {
66964
66966
  break;
66965
66967
  }
@@ -66968,16 +66970,11 @@ function getPackageScopeConfig(resolved) {
66968
66970
  return {
66969
66971
  pjsonPath: packageJSONPath,
66970
66972
  exists: false,
66971
- main: void 0,
66972
- name: void 0,
66973
- type: "none",
66974
- exports: void 0,
66975
- imports: void 0
66973
+ type: "none"
66976
66974
  };
66977
66975
  }
66978
66976
  function getPackageType(url) {
66979
- const packageConfig = getPackageScopeConfig(url);
66980
- return packageConfig.type;
66977
+ return getPackageScopeConfig(url).type;
66981
66978
  }
66982
66979
  var { ERR_UNKNOWN_FILE_EXTENSION } = codes;
66983
66980
  var hasOwnProperty2 = {}.hasOwnProperty;
@@ -67028,29 +67025,29 @@ function extname2(url) {
67028
67025
  return "";
67029
67026
  }
67030
67027
  function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
67031
- const ext = extname2(url);
67032
- if (ext === ".js") {
67028
+ const value2 = extname2(url);
67029
+ if (value2 === ".js") {
67033
67030
  const packageType = getPackageType(url);
67034
67031
  if (packageType !== "none") {
67035
67032
  return packageType;
67036
67033
  }
67037
67034
  return "commonjs";
67038
67035
  }
67039
- if (ext === "") {
67036
+ if (value2 === "") {
67040
67037
  const packageType = getPackageType(url);
67041
67038
  if (packageType === "none" || packageType === "commonjs") {
67042
67039
  return "commonjs";
67043
67040
  }
67044
67041
  return "module";
67045
67042
  }
67046
- const format3 = extensionFormatMap[ext];
67043
+ const format3 = extensionFormatMap[value2];
67047
67044
  if (format3)
67048
67045
  return format3;
67049
67046
  if (ignoreErrors) {
67050
67047
  return void 0;
67051
67048
  }
67052
67049
  const filepath = (0, import_node_url.fileURLToPath)(url);
67053
- throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);
67050
+ throw new ERR_UNKNOWN_FILE_EXTENSION(value2, filepath);
67054
67051
  }
67055
67052
  function getHttpProtocolModuleFormat() {
67056
67053
  }
@@ -67070,14 +67067,15 @@ var {
67070
67067
  ERR_MODULE_NOT_FOUND,
67071
67068
  ERR_PACKAGE_IMPORT_NOT_DEFINED,
67072
67069
  ERR_PACKAGE_PATH_NOT_EXPORTED,
67073
- ERR_UNSUPPORTED_DIR_IMPORT
67070
+ ERR_UNSUPPORTED_DIR_IMPORT,
67071
+ ERR_UNSUPPORTED_RESOLVE_REQUEST
67074
67072
  } = codes;
67075
67073
  var own = {}.hasOwnProperty;
67076
67074
  var invalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i;
67077
67075
  var deprecatedInvalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i;
67078
67076
  var invalidPackageNameRegEx = /^\.|%|\\/;
67079
67077
  var patternRegEx = /\*/g;
67080
- var encodedSepRegEx = /%2f|%5c/i;
67078
+ var encodedSeparatorRegEx = /%2f|%5c/i;
67081
67079
  var emittedPackageWarnings = /* @__PURE__ */ new Set();
67082
67080
  var doubleSlashRegEx = /[/\\]{2}/;
67083
67081
  function emitInvalidSegmentDeprecation(target, request, match, packageJsonUrl, internal, base, isTarget) {
@@ -67100,21 +67098,21 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
67100
67098
  if (format3 !== "module")
67101
67099
  return;
67102
67100
  const urlPath = (0, import_node_url.fileURLToPath)(url.href);
67103
- const pkgPath = (0, import_node_url.fileURLToPath)(new import_node_url.URL(".", packageJsonUrl));
67101
+ const packagePath = (0, import_node_url.fileURLToPath)(new import_node_url.URL(".", packageJsonUrl));
67104
67102
  const basePath = (0, import_node_url.fileURLToPath)(base);
67105
67103
  if (!main) {
67106
67104
  import_node_process.default.emitWarning(
67107
- `No "main" or "exports" field defined in the package.json for ${pkgPath} resolving the main entry point "${urlPath.slice(
67108
- pkgPath.length
67105
+ `No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(
67106
+ packagePath.length
67109
67107
  )}", imported from ${basePath}.
67110
67108
  Default "index" lookups for the main are deprecated for ES modules.`,
67111
67109
  "DeprecationWarning",
67112
67110
  "DEP0151"
67113
67111
  );
67114
- } else if (import_node_path3.default.resolve(pkgPath, main) !== urlPath) {
67112
+ } else if (import_node_path3.default.resolve(packagePath, main) !== urlPath) {
67115
67113
  import_node_process.default.emitWarning(
67116
- `Package ${pkgPath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
67117
- pkgPath.length
67114
+ `Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
67115
+ packagePath.length
67118
67116
  )}", imported from ${basePath}.
67119
67117
  Automatic extension resolution of the "main" field is deprecated for ES modules.`,
67120
67118
  "DeprecationWarning",
@@ -67126,7 +67124,6 @@ function tryStatSync(path5) {
67126
67124
  try {
67127
67125
  return (0, import_node_fs3.statSync)(path5);
67128
67126
  } catch {
67129
- return new import_node_fs3.Stats();
67130
67127
  }
67131
67128
  }
67132
67129
  function fileExists(url) {
@@ -67183,7 +67180,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
67183
67180
  );
67184
67181
  }
67185
67182
  function finalizeResolution(resolved, base, preserveSymlinks) {
67186
- if (encodedSepRegEx.exec(resolved.pathname) !== null) {
67183
+ if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
67187
67184
  throw new ERR_INVALID_MODULE_SPECIFIER(
67188
67185
  resolved.pathname,
67189
67186
  'must not include encoded "/" or "\\" characters',
@@ -67205,12 +67202,12 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
67205
67202
  const stats = tryStatSync(
67206
67203
  filePath.endsWith("/") ? filePath.slice(-1) : filePath
67207
67204
  );
67208
- if (stats.isDirectory()) {
67205
+ if (stats && stats.isDirectory()) {
67209
67206
  const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, (0, import_node_url.fileURLToPath)(base));
67210
67207
  error.url = String(resolved);
67211
67208
  throw error;
67212
67209
  }
67213
- if (!stats.isFile()) {
67210
+ if (!stats || !stats.isFile()) {
67214
67211
  const error = new ERR_MODULE_NOT_FOUND(
67215
67212
  filePath || resolved.pathname,
67216
67213
  base && (0, import_node_url.fileURLToPath)(base),
@@ -67468,13 +67465,13 @@ function isConditionalExportsMainSugar(exports2, packageJsonUrl, base) {
67468
67465
  const keys = Object.getOwnPropertyNames(exports2);
67469
67466
  let isConditionalSugar = false;
67470
67467
  let i2 = 0;
67471
- let j3 = -1;
67472
- while (++j3 < keys.length) {
67473
- const key = keys[j3];
67474
- const curIsConditionalSugar = key === "" || key[0] !== ".";
67468
+ let keyIndex = -1;
67469
+ while (++keyIndex < keys.length) {
67470
+ const key = keys[keyIndex];
67471
+ const currentIsConditionalSugar = key === "" || key[0] !== ".";
67475
67472
  if (i2++ === 0) {
67476
- isConditionalSugar = curIsConditionalSugar;
67477
- } else if (isConditionalSugar !== curIsConditionalSugar) {
67473
+ isConditionalSugar = currentIsConditionalSugar;
67474
+ } else if (isConditionalSugar !== currentIsConditionalSugar) {
67478
67475
  throw new ERR_INVALID_PACKAGE_CONFIG(
67479
67476
  (0, import_node_url.fileURLToPath)(packageJsonUrl),
67480
67477
  base,
@@ -67710,7 +67707,7 @@ function packageResolve(specifier, base, conditions) {
67710
67707
  let lastPath;
67711
67708
  do {
67712
67709
  const stat = tryStatSync(packageJsonPath.slice(0, -13));
67713
- if (!stat.isDirectory()) {
67710
+ if (!stat || !stat.isDirectory()) {
67714
67711
  lastPath = packageJsonPath;
67715
67712
  packageJsonUrl = new import_node_url.URL(
67716
67713
  (isScoped ? "../../../../node_modules/" : "../../../node_modules/") + packageName + "/package.json",
@@ -67719,10 +67716,7 @@ function packageResolve(specifier, base, conditions) {
67719
67716
  packageJsonPath = (0, import_node_url.fileURLToPath)(packageJsonUrl);
67720
67717
  continue;
67721
67718
  }
67722
- const packageConfig2 = packageJsonReader.read(packageJsonPath, {
67723
- base,
67724
- specifier
67725
- });
67719
+ const packageConfig2 = read2(packageJsonPath, { base, specifier });
67726
67720
  if (packageConfig2.exports !== void 0 && packageConfig2.exports !== null) {
67727
67721
  return packageExportsResolve(
67728
67722
  packageJsonUrl,
@@ -67758,19 +67752,29 @@ function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
67758
67752
  }
67759
67753
  function moduleResolve(specifier, base, conditions, preserveSymlinks) {
67760
67754
  const protocol = base.protocol;
67761
- const isRemote = protocol === "http:" || protocol === "https:";
67755
+ const isData = protocol === "data:";
67756
+ const isRemote = isData || protocol === "http:" || protocol === "https:";
67762
67757
  let resolved;
67763
67758
  if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
67764
- resolved = new import_node_url.URL(specifier, base);
67765
- } else if (!isRemote && specifier[0] === "#") {
67759
+ try {
67760
+ resolved = new import_node_url.URL(specifier, base);
67761
+ } catch (error_) {
67762
+ const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
67763
+ error.cause = error_;
67764
+ throw error;
67765
+ }
67766
+ } else if (protocol === "file:" && specifier[0] === "#") {
67766
67767
  resolved = packageImportsResolve(specifier, base, conditions);
67767
67768
  } else {
67768
67769
  try {
67769
67770
  resolved = new import_node_url.URL(specifier);
67770
- } catch {
67771
- if (!isRemote) {
67772
- resolved = packageResolve(specifier, base, conditions);
67771
+ } catch (error_) {
67772
+ if (isRemote && !import_node_module.builtinModules.includes(specifier)) {
67773
+ const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
67774
+ error.cause = error_;
67775
+ throw error;
67773
67776
  }
67777
+ resolved = packageResolve(specifier, base, conditions);
67774
67778
  }
67775
67779
  }
67776
67780
  (0, import_node_assert.default)(resolved !== void 0, "expected to be defined");
@@ -72294,23 +72298,19 @@ var z2 = /* @__PURE__ */ Object.freeze({
72294
72298
  });
72295
72299
 
72296
72300
  // packages/config/src/schema.ts
72297
- var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d232a").describe("The dark background color of the workspace");
72301
+ var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace");
72298
72302
  var LightColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
72299
- var PrimaryColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary color of the workspace");
72300
- var SecondaryColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The secondary color of the workspace");
72301
- var TertiaryColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ec5990").describe("The tertiary color of the workspace");
72302
- var AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#6366f1").describe("The accent color of the workspace");
72303
+ var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace");
72304
+ var AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
72303
72305
  var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
72304
- var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The informational color of the workspace");
72306
+ var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace");
72305
72307
  var WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
72306
- var ErrorColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#990000").describe("The error color of the workspace");
72307
- var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace");
72308
+ var ErrorColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#a40e26").describe("The error color of the workspace");
72309
+ var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
72308
72310
  var DarkThemeColorConfigSchema = z2.object({
72309
72311
  foreground: LightColorSchema,
72310
72312
  background: DarkColorSchema,
72311
- primary: PrimaryColorSchema,
72312
- secondary: SecondaryColorSchema,
72313
- tertiary: TertiaryColorSchema,
72313
+ brand: BrandColorSchema,
72314
72314
  accent: AccentColorSchema,
72315
72315
  success: SuccessColorSchema,
72316
72316
  info: InfoColorSchema,
@@ -72321,9 +72321,7 @@ var DarkThemeColorConfigSchema = z2.object({
72321
72321
  var LightThemeColorConfigSchema = z2.object({
72322
72322
  foreground: DarkColorSchema,
72323
72323
  background: LightColorSchema,
72324
- primary: PrimaryColorSchema,
72325
- secondary: SecondaryColorSchema,
72326
- tertiary: TertiaryColorSchema,
72324
+ brand: BrandColorSchema,
72327
72325
  accent: AccentColorSchema,
72328
72326
  success: SuccessColorSchema,
72329
72327
  info: InfoColorSchema,
@@ -72338,9 +72336,7 @@ var MultiThemeColorConfigSchema = z2.object({
72338
72336
  var SingleThemeColorConfigSchema = z2.object({
72339
72337
  dark: DarkColorSchema,
72340
72338
  light: LightColorSchema,
72341
- primary: PrimaryColorSchema,
72342
- secondary: SecondaryColorSchema,
72343
- tertiary: TertiaryColorSchema,
72339
+ brand: BrandColorSchema,
72344
72340
  accent: AccentColorSchema,
72345
72341
  success: SuccessColorSchema,
72346
72342
  info: InfoColorSchema,
@@ -72387,7 +72383,7 @@ var StormConfigSchema = z2.object({
72387
72383
  runtimeVersion: z2.string().trim().regex(
72388
72384
  /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
72389
72385
  ).default("1.0.0").describe("The global version of the Storm runtime"),
72390
- packageManager: z2.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
72386
+ packageManager: z2.enum(["npm", "yarn", "pnpm", "bun"]).default("pnpm").describe("The package manager used by the repository"),
72391
72387
  timezone: z2.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
72392
72388
  locale: z2.string().trim().default("en-US").describe("The default locale of the workspace"),
72393
72389
  logLevel: z2.enum([
@@ -72417,9 +72413,7 @@ var StormConfigSchema = z2.object({
72417
72413
  var COLOR_KEYS = [
72418
72414
  "dark",
72419
72415
  "light",
72420
- "primary",
72421
- "secondary",
72422
- "tertiary",
72416
+ "brand",
72423
72417
  "accent",
72424
72418
  "success",
72425
72419
  "info",
@@ -72430,17 +72424,26 @@ var COLOR_KEYS = [
72430
72424
 
72431
72425
  // packages/config-tools/src/utilities/get-default-config.ts
72432
72426
  var DEFAULT_COLOR_CONFIG = {
72433
- dark: "#1d232a",
72434
- light: "#f4f4f5",
72435
- primary: "#1fb2a6",
72436
- secondary: "#0ea5e9",
72437
- tertiary: "#ec5990",
72438
- accent: "#6366f1",
72439
- success: "#087f5b",
72440
- info: "#0ea5e9",
72441
- warning: "#fcc419",
72442
- error: "#990000",
72443
- fatal: "#7d1a1a"
72427
+ light: {
72428
+ background: "#f4f4f5",
72429
+ foreground: "#1d232a",
72430
+ brand: "#1fb2a6",
72431
+ accent: "#8250df",
72432
+ success: "#087f5b",
72433
+ info: "#0550ae",
72434
+ warning: "#e3b341",
72435
+ error: "#a40e26"
72436
+ },
72437
+ dark: {
72438
+ background: "#22272E",
72439
+ foreground: "#fcfcf5",
72440
+ brand: "#1fb2a6",
72441
+ accent: "#8256D0",
72442
+ success: "#087f5b",
72443
+ info: "#316DCA",
72444
+ warning: "#F3D371",
72445
+ error: "#d1242f"
72446
+ }
72444
72447
  };
72445
72448
  var DEFAULT_STORM_CONFIG = {
72446
72449
  name: "storm",
@@ -72628,7 +72631,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
72628
72631
  return (message) => {
72629
72632
  console.error(
72630
72633
  `
72631
- ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#b62324").whiteBright(
72634
+ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
72632
72635
  " \u{1F480} Fatal "
72633
72636
  )} ${_chalk.hex(colors.error ?? "#f85149")(formatLogMessage(message))}
72634
72637
  `
@@ -72683,9 +72686,9 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
72683
72686
  return (message) => {
72684
72687
  console.debug(
72685
72688
  `
72686
- ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.primary ?? "#1fb2a6").whiteBright(
72689
+ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
72687
72690
  " \u{1F6E0} Debug "
72688
- )} ${_chalk.hex(colors.primary ?? "#1fb2a6")(formatLogMessage(message))}
72691
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
72689
72692
  `
72690
72693
  );
72691
72694
  };
@@ -72693,9 +72696,9 @@ ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.
72693
72696
  return (message) => {
72694
72697
  console.log(
72695
72698
  `
72696
- ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.primary ?? "#1fb2a6").whiteBright(
72699
+ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
72697
72700
  " \u2709 System "
72698
- )} ${_chalk.hex(colors.primary ?? "#1fb2a6")(formatLogMessage(message))}
72701
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
72699
72702
  `
72700
72703
  );
72701
72704
  };
@@ -72723,7 +72726,7 @@ var getStopwatch = (name) => {
72723
72726
  };
72724
72727
  };
72725
72728
  var formatLogMessage = (message, prefix = "-") => {
72726
- return typeof message === "string" ? message : typeof message === "object" ? `
72729
+ return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : typeof message === "object" ? `
72727
72730
  ${Object.keys(message).map(
72728
72731
  (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], `${prefix}-`) : message[key]}`
72729
72732
  ).join("\n")}` : message;
@@ -73018,15 +73021,13 @@ var getConfigEnv = () => {
73018
73021
  };
73019
73022
  var getThemeColorConfigEnv = (prefix, theme) => {
73020
73023
  const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
73021
- return process.env[`${prefix}${themeName}LIGHT_PRIMARY`] || process.env[`${prefix}${themeName}DARK_PRIMARY`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
73024
+ return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
73022
73025
  };
73023
73026
  var getSingleThemeColorConfigEnv = (prefix) => {
73024
73027
  return {
73025
73028
  dark: process.env[`${prefix}DARK`],
73026
73029
  light: process.env[`${prefix}LIGHT`],
73027
- primary: process.env[`${prefix}PRIMARY`],
73028
- secondary: process.env[`${prefix}SECONDARY`],
73029
- tertiary: process.env[`${prefix}TERTIARY`],
73030
+ brand: process.env[`${prefix}BRAND`],
73030
73031
  accent: process.env[`${prefix}ACCENT`],
73031
73032
  success: process.env[`${prefix}SUCCESS`],
73032
73033
  info: process.env[`${prefix}INFO`],
@@ -73047,9 +73048,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
73047
73048
  return {
73048
73049
  foreground: process.env[`${prefix}FOREGROUND`],
73049
73050
  background: process.env[`${prefix}BACKGROUND`],
73050
- primary: process.env[`${prefix}PRIMARY`],
73051
- secondary: process.env[`${prefix}SECONDARY`],
73052
- tertiary: process.env[`${prefix}TERTIARY`],
73051
+ brand: process.env[`${prefix}BRAND`],
73053
73052
  accent: process.env[`${prefix}ACCENT`],
73054
73053
  success: process.env[`${prefix}SUCCESS`],
73055
73054
  info: process.env[`${prefix}INFO`],
@@ -73208,7 +73207,7 @@ var setConfigEnv = (config) => {
73208
73207
  }
73209
73208
  };
73210
73209
  var setThemeColorConfigEnv = (prefix, config) => {
73211
- return config?.light?.primary || config?.dark?.primary ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
73210
+ return config?.light?.brand || config?.dark?.brand ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
73212
73211
  };
73213
73212
  var setSingleThemeColorConfigEnv = (prefix, config) => {
73214
73213
  if (config.dark) {
@@ -73217,14 +73216,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
73217
73216
  if (config.light) {
73218
73217
  process.env[`${prefix}LIGHT`] = config.light;
73219
73218
  }
73220
- if (config.primary) {
73221
- process.env[`${prefix}PRIMARY`] = config.primary;
73222
- }
73223
- if (config.secondary) {
73224
- process.env[`${prefix}SECONDARY`] = config.secondary;
73225
- }
73226
- if (config.tertiary) {
73227
- process.env[`${prefix}TERTIARY`] = config.tertiary;
73219
+ if (config.brand) {
73220
+ process.env[`${prefix}BRAND`] = config.brand;
73228
73221
  }
73229
73222
  if (config.accent) {
73230
73223
  process.env[`${prefix}ACCENT`] = config.accent;
@@ -73258,14 +73251,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
73258
73251
  if (config.background) {
73259
73252
  process.env[`${prefix}BACKGROUND`] = config.background;
73260
73253
  }
73261
- if (config.primary) {
73262
- process.env[`${prefix}PRIMARY`] = config.primary;
73263
- }
73264
- if (config.secondary) {
73265
- process.env[`${prefix}SECONDARY`] = config.secondary;
73266
- }
73267
- if (config.tertiary) {
73268
- process.env[`${prefix}TERTIARY`] = config.tertiary;
73254
+ if (config.brand) {
73255
+ process.env[`${prefix}BRAND`] = config.brand;
73269
73256
  }
73270
73257
  if (config.accent) {
73271
73258
  process.env[`${prefix}ACCENT`] = config.accent;