@storm-software/workspace-tools 1.73.2 → 1.74.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.
@@ -3948,28 +3948,26 @@ var init_lib = __esm({
3948
3948
  });
3949
3949
 
3950
3950
  // packages/config/src/schema.ts
3951
- var DarkColorSchema, LightColorSchema, PrimaryColorSchema, SecondaryColorSchema, TertiaryColorSchema, AccentColorSchema, SuccessColorSchema, InfoColorSchema, WarningColorSchema, ErrorColorSchema, FatalColorSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema;
3951
+ var DarkColorSchema, LightColorSchema, Brand1ColorSchema, Brand2ColorSchema, Brand3ColorSchema, SuccessColorSchema, InfoColorSchema, WarningColorSchema, ErrorColorSchema, FatalColorSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema;
3952
3952
  var init_schema = __esm({
3953
3953
  "packages/config/src/schema.ts"() {
3954
3954
  init_lib();
3955
- DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d232a").describe("The dark background color of the workspace");
3955
+ DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace");
3956
3956
  LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
3957
- PrimaryColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary color of the workspace");
3958
- SecondaryColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The secondary color of the workspace");
3959
- TertiaryColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ec5990").describe("The tertiary color of the workspace");
3960
- AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#6366f1").describe("The accent color of the workspace");
3957
+ Brand1ColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace");
3958
+ Brand2ColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
3959
+ Brand3ColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The third brand specific color of the workspace");
3961
3960
  SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
3962
- InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The informational color of the workspace");
3961
+ InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace");
3963
3962
  WarningColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
3964
- ErrorColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#990000").describe("The error color of the workspace");
3965
- FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace");
3963
+ ErrorColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#a40e26").describe("The error color of the workspace");
3964
+ FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
3966
3965
  DarkThemeColorConfigSchema = z.object({
3967
3966
  foreground: LightColorSchema,
3968
3967
  background: DarkColorSchema,
3969
- primary: PrimaryColorSchema,
3970
- secondary: SecondaryColorSchema,
3971
- tertiary: TertiaryColorSchema,
3972
- accent: AccentColorSchema,
3968
+ brand1: Brand1ColorSchema,
3969
+ brand2: Brand2ColorSchema,
3970
+ brand3: Brand3ColorSchema,
3973
3971
  success: SuccessColorSchema,
3974
3972
  info: InfoColorSchema,
3975
3973
  warning: WarningColorSchema,
@@ -3979,10 +3977,9 @@ var init_schema = __esm({
3979
3977
  LightThemeColorConfigSchema = z.object({
3980
3978
  foreground: DarkColorSchema,
3981
3979
  background: LightColorSchema,
3982
- primary: PrimaryColorSchema,
3983
- secondary: SecondaryColorSchema,
3984
- tertiary: TertiaryColorSchema,
3985
- accent: AccentColorSchema,
3980
+ brand1: Brand1ColorSchema,
3981
+ brand2: Brand2ColorSchema,
3982
+ brand3: Brand3ColorSchema,
3986
3983
  success: SuccessColorSchema,
3987
3984
  info: InfoColorSchema,
3988
3985
  warning: WarningColorSchema,
@@ -3996,10 +3993,9 @@ var init_schema = __esm({
3996
3993
  SingleThemeColorConfigSchema = z.object({
3997
3994
  dark: DarkColorSchema,
3998
3995
  light: LightColorSchema,
3999
- primary: PrimaryColorSchema,
4000
- secondary: SecondaryColorSchema,
4001
- tertiary: TertiaryColorSchema,
4002
- accent: AccentColorSchema,
3996
+ brand1: Brand1ColorSchema,
3997
+ brand2: Brand2ColorSchema,
3998
+ brand3: Brand3ColorSchema,
4003
3999
  success: SuccessColorSchema,
4004
4000
  info: InfoColorSchema,
4005
4001
  warning: WarningColorSchema,
@@ -4080,10 +4076,9 @@ var init_types = __esm({
4080
4076
  COLOR_KEYS = [
4081
4077
  "dark",
4082
4078
  "light",
4083
- "primary",
4084
- "secondary",
4085
- "tertiary",
4086
- "accent",
4079
+ "brand1",
4080
+ "brand2",
4081
+ "brand3",
4087
4082
  "success",
4088
4083
  "info",
4089
4084
  "warning",
@@ -8446,7 +8441,7 @@ var require_jiti = __commonJS({
8446
8441
  const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
8447
8442
  return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
8448
8443
  });
8449
- const packageJsonReader2 = { read: function(jsonPath) {
8444
+ const packageJsonReader = { read: function(jsonPath) {
8450
8445
  try {
8451
8446
  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") };
8452
8447
  } catch (error) {
@@ -8461,7 +8456,7 @@ var require_jiti = __commonJS({
8461
8456
  const existing = packageJsonCache.get(path5);
8462
8457
  if (void 0 !== existing)
8463
8458
  return existing;
8464
- const source = packageJsonReader2.read(path5).string;
8459
+ const source = packageJsonReader.read(path5).string;
8465
8460
  if (void 0 === source) {
8466
8461
  const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
8467
8462
  return packageJsonCache.set(path5, packageConfig2), packageConfig2;
@@ -8524,7 +8519,7 @@ var require_jiti = __commonJS({
8524
8519
  }, "http:": getHttpProtocolModuleFormat2, "https:": getHttpProtocolModuleFormat2, "node:": () => "builtin" };
8525
8520
  function getHttpProtocolModuleFormat2() {
8526
8521
  }
8527
- 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}/;
8522
+ 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}/;
8528
8523
  function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
8529
8524
  const pjsonPath = (0, external_node_url_namespaceObject.fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
8530
8525
  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");
@@ -8811,7 +8806,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
8811
8806
  else
8812
8807
  resolved = packageImportsResolve2(specifier, base, conditions);
8813
8808
  return external_node_assert_namespaceObject(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
8814
- if (null !== encodedSepRegEx2.exec(resolved2.pathname))
8809
+ if (null !== encodedSepRegEx.exec(resolved2.pathname))
8815
8810
  throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, external_node_url_namespaceObject.fileURLToPath)(base2));
8816
8811
  const filePath = (0, external_node_url_namespaceObject.fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
8817
8812
  if (stats.isDirectory()) {
@@ -14417,7 +14412,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
14417
14412
  const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
14418
14413
  return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
14419
14414
  });
14420
- var packageJsonReader2 = { read: function(jsonPath) {
14415
+ var packageJsonReader = { read: function(jsonPath) {
14421
14416
  try {
14422
14417
  return { string: _fs().default.readFileSync(_path().toNamespacedPath(_path().join(_path().dirname(jsonPath), "package.json")), "utf8") };
14423
14418
  } catch (error) {
@@ -14432,7 +14427,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
14432
14427
  const existing = packageJsonCache.get(path5);
14433
14428
  if (void 0 !== existing)
14434
14429
  return existing;
14435
- const source = packageJsonReader2.read(path5).string;
14430
+ const source = packageJsonReader.read(path5).string;
14436
14431
  if (void 0 === source) {
14437
14432
  const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
14438
14433
  return packageJsonCache.set(path5, packageConfig2), packageConfig2;
@@ -14499,7 +14494,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
14499
14494
  return hasOwnProperty3.call(protocolHandlers2, url.protocol) && protocolHandlers2[url.protocol](url, context, true) || null;
14500
14495
  }
14501
14496
  const { ERR_INVALID_ARG_VALUE } = codes2, DEFAULT_CONDITIONS = Object.freeze(["node", "import"]), DEFAULT_CONDITIONS_SET2 = new Set(DEFAULT_CONDITIONS);
14502
- 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}/;
14497
+ 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}/;
14503
14498
  function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
14504
14499
  const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
14505
14500
  _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");
@@ -14784,7 +14779,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
14784
14779
  else
14785
14780
  resolved = packageImportsResolve2(specifier, base, conditions);
14786
14781
  return _assert()(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
14787
- if (null !== encodedSepRegEx2.exec(resolved2.pathname))
14782
+ if (null !== encodedSepRegEx.exec(resolved2.pathname))
14788
14783
  throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, _url().fileURLToPath)(base2));
14789
14784
  const filePath = (0, _url().fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
14790
14785
  if (stats.isDirectory()) {
@@ -44095,27 +44090,27 @@ var init_dist5 = __esm({
44095
44090
  }
44096
44091
  });
44097
44092
 
44098
- // node_modules/.pnpm/mlly@1.6.1/node_modules/mlly/dist/index.mjs
44093
+ // node_modules/.pnpm/mlly@1.7.0/node_modules/mlly/dist/index.mjs
44099
44094
  function normalizeSlash(path5) {
44100
44095
  return path5.replace(/\\/g, "/");
44101
44096
  }
44102
44097
  function formatList(array, type = "and") {
44103
44098
  return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array[array.length - 1]}`;
44104
44099
  }
44105
- function createError(sym, value2, def) {
44100
+ function createError(sym, value2, constructor) {
44106
44101
  messages.set(sym, value2);
44107
- return makeNodeErrorWithCode(def, sym);
44102
+ return makeNodeErrorWithCode(constructor, sym);
44108
44103
  }
44109
44104
  function makeNodeErrorWithCode(Base, key) {
44110
44105
  return NodeError;
44111
- function NodeError(...args) {
44106
+ function NodeError(...parameters) {
44112
44107
  const limit = Error.stackTraceLimit;
44113
44108
  if (isErrorStackTraceLimitWritable())
44114
44109
  Error.stackTraceLimit = 0;
44115
44110
  const error = new Base();
44116
44111
  if (isErrorStackTraceLimitWritable())
44117
44112
  Error.stackTraceLimit = limit;
44118
- const message = getMessage(key, args, error);
44113
+ const message = getMessage(key, parameters, error);
44119
44114
  Object.defineProperties(error, {
44120
44115
  // Note: no need to implement `kIsNodeError` symbol, would be hard,
44121
44116
  // probably.
@@ -44153,34 +44148,34 @@ function isErrorStackTraceLimitWritable() {
44153
44148
  }
44154
44149
  return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
44155
44150
  }
44156
- function hideStackFrames(fn2) {
44157
- const hidden = nodeInternalPrefix + fn2.name;
44158
- Object.defineProperty(fn2, "name", { value: hidden });
44159
- return fn2;
44151
+ function hideStackFrames(wrappedFunction) {
44152
+ const hidden = nodeInternalPrefix + wrappedFunction.name;
44153
+ Object.defineProperty(wrappedFunction, "name", { value: hidden });
44154
+ return wrappedFunction;
44160
44155
  }
44161
- function getMessage(key, args, self2) {
44156
+ function getMessage(key, parameters, self2) {
44162
44157
  const message = messages.get(key);
44163
44158
  (0, import_node_assert.default)(message !== void 0, "expected `message` to be found");
44164
44159
  if (typeof message === "function") {
44165
44160
  (0, import_node_assert.default)(
44166
- message.length <= args.length,
44161
+ message.length <= parameters.length,
44167
44162
  // Default options do not count.
44168
- `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${message.length}).`
44163
+ `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`
44169
44164
  );
44170
- return Reflect.apply(message, self2, args);
44165
+ return Reflect.apply(message, self2, parameters);
44171
44166
  }
44172
44167
  const regex = /%[dfijoOs]/g;
44173
44168
  let expectedLength = 0;
44174
44169
  while (regex.exec(message) !== null)
44175
44170
  expectedLength++;
44176
44171
  (0, import_node_assert.default)(
44177
- expectedLength === args.length,
44178
- `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`
44172
+ expectedLength === parameters.length,
44173
+ `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`
44179
44174
  );
44180
- if (args.length === 0)
44175
+ if (parameters.length === 0)
44181
44176
  return message;
44182
- args.unshift(message);
44183
- return Reflect.apply(import_node_util.format, null, args);
44177
+ parameters.unshift(message);
44178
+ return Reflect.apply(import_node_util.format, null, parameters);
44184
44179
  }
44185
44180
  function determineSpecificType(value2) {
44186
44181
  if (value2 === null || value2 === void 0) {
@@ -44266,21 +44261,20 @@ function read2(jsonPath, { base, specifier }) {
44266
44261
  return result;
44267
44262
  }
44268
44263
  function getPackageScopeConfig(resolved) {
44269
- let packageJSONUrl = new import_node_url.URL("package.json", resolved);
44264
+ let packageJSONUrl = new URL("package.json", resolved);
44270
44265
  while (true) {
44271
44266
  const packageJSONPath2 = packageJSONUrl.pathname;
44272
44267
  if (packageJSONPath2.endsWith("node_modules/package.json")) {
44273
44268
  break;
44274
44269
  }
44275
- const packageConfig = packageJsonReader.read(
44276
- (0, import_node_url.fileURLToPath)(packageJSONUrl),
44277
- { specifier: resolved }
44278
- );
44270
+ const packageConfig = read2((0, import_node_url.fileURLToPath)(packageJSONUrl), {
44271
+ specifier: resolved
44272
+ });
44279
44273
  if (packageConfig.exists) {
44280
44274
  return packageConfig;
44281
44275
  }
44282
44276
  const lastPackageJSONUrl = packageJSONUrl;
44283
- packageJSONUrl = new import_node_url.URL("../package.json", packageJSONUrl);
44277
+ packageJSONUrl = new URL("../package.json", packageJSONUrl);
44284
44278
  if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) {
44285
44279
  break;
44286
44280
  }
@@ -44289,16 +44283,11 @@ function getPackageScopeConfig(resolved) {
44289
44283
  return {
44290
44284
  pjsonPath: packageJSONPath,
44291
44285
  exists: false,
44292
- main: void 0,
44293
- name: void 0,
44294
- type: "none",
44295
- exports: void 0,
44296
- imports: void 0
44286
+ type: "none"
44297
44287
  };
44298
44288
  }
44299
44289
  function getPackageType(url) {
44300
- const packageConfig = getPackageScopeConfig(url);
44301
- return packageConfig.type;
44290
+ return getPackageScopeConfig(url).type;
44302
44291
  }
44303
44292
  function mimeToFormat(mime) {
44304
44293
  if (mime && /\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(mime))
@@ -44328,29 +44317,29 @@ function extname2(url) {
44328
44317
  return "";
44329
44318
  }
44330
44319
  function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
44331
- const ext = extname2(url);
44332
- if (ext === ".js") {
44320
+ const value2 = extname2(url);
44321
+ if (value2 === ".js") {
44333
44322
  const packageType = getPackageType(url);
44334
44323
  if (packageType !== "none") {
44335
44324
  return packageType;
44336
44325
  }
44337
44326
  return "commonjs";
44338
44327
  }
44339
- if (ext === "") {
44328
+ if (value2 === "") {
44340
44329
  const packageType = getPackageType(url);
44341
44330
  if (packageType === "none" || packageType === "commonjs") {
44342
44331
  return "commonjs";
44343
44332
  }
44344
44333
  return "module";
44345
44334
  }
44346
- const format3 = extensionFormatMap[ext];
44335
+ const format3 = extensionFormatMap[value2];
44347
44336
  if (format3)
44348
44337
  return format3;
44349
44338
  if (ignoreErrors) {
44350
44339
  return void 0;
44351
44340
  }
44352
44341
  const filepath = (0, import_node_url.fileURLToPath)(url);
44353
- throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);
44342
+ throw new ERR_UNKNOWN_FILE_EXTENSION(value2, filepath);
44354
44343
  }
44355
44344
  function getHttpProtocolModuleFormat() {
44356
44345
  }
@@ -44381,21 +44370,21 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
44381
44370
  if (format3 !== "module")
44382
44371
  return;
44383
44372
  const urlPath = (0, import_node_url.fileURLToPath)(url.href);
44384
- const pkgPath = (0, import_node_url.fileURLToPath)(new import_node_url.URL(".", packageJsonUrl));
44373
+ const packagePath = (0, import_node_url.fileURLToPath)(new import_node_url.URL(".", packageJsonUrl));
44385
44374
  const basePath = (0, import_node_url.fileURLToPath)(base);
44386
44375
  if (!main) {
44387
44376
  import_node_process.default.emitWarning(
44388
- `No "main" or "exports" field defined in the package.json for ${pkgPath} resolving the main entry point "${urlPath.slice(
44389
- pkgPath.length
44377
+ `No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(
44378
+ packagePath.length
44390
44379
  )}", imported from ${basePath}.
44391
44380
  Default "index" lookups for the main are deprecated for ES modules.`,
44392
44381
  "DeprecationWarning",
44393
44382
  "DEP0151"
44394
44383
  );
44395
- } else if (import_node_path3.default.resolve(pkgPath, main) !== urlPath) {
44384
+ } else if (import_node_path3.default.resolve(packagePath, main) !== urlPath) {
44396
44385
  import_node_process.default.emitWarning(
44397
- `Package ${pkgPath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
44398
- pkgPath.length
44386
+ `Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
44387
+ packagePath.length
44399
44388
  )}", imported from ${basePath}.
44400
44389
  Automatic extension resolution of the "main" field is deprecated for ES modules.`,
44401
44390
  "DeprecationWarning",
@@ -44407,7 +44396,6 @@ function tryStatSync(path5) {
44407
44396
  try {
44408
44397
  return (0, import_node_fs3.statSync)(path5);
44409
44398
  } catch {
44410
- return new import_node_fs3.Stats();
44411
44399
  }
44412
44400
  }
44413
44401
  function fileExists(url) {
@@ -44464,7 +44452,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
44464
44452
  );
44465
44453
  }
44466
44454
  function finalizeResolution(resolved, base, preserveSymlinks) {
44467
- if (encodedSepRegEx.exec(resolved.pathname) !== null) {
44455
+ if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
44468
44456
  throw new ERR_INVALID_MODULE_SPECIFIER(
44469
44457
  resolved.pathname,
44470
44458
  'must not include encoded "/" or "\\" characters',
@@ -44486,12 +44474,12 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
44486
44474
  const stats = tryStatSync(
44487
44475
  filePath.endsWith("/") ? filePath.slice(-1) : filePath
44488
44476
  );
44489
- if (stats.isDirectory()) {
44477
+ if (stats && stats.isDirectory()) {
44490
44478
  const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, (0, import_node_url.fileURLToPath)(base));
44491
44479
  error.url = String(resolved);
44492
44480
  throw error;
44493
44481
  }
44494
- if (!stats.isFile()) {
44482
+ if (!stats || !stats.isFile()) {
44495
44483
  const error = new ERR_MODULE_NOT_FOUND(
44496
44484
  filePath || resolved.pathname,
44497
44485
  base && (0, import_node_url.fileURLToPath)(base),
@@ -44749,13 +44737,13 @@ function isConditionalExportsMainSugar(exports2, packageJsonUrl, base) {
44749
44737
  const keys = Object.getOwnPropertyNames(exports2);
44750
44738
  let isConditionalSugar = false;
44751
44739
  let i2 = 0;
44752
- let j3 = -1;
44753
- while (++j3 < keys.length) {
44754
- const key = keys[j3];
44755
- const curIsConditionalSugar = key === "" || key[0] !== ".";
44740
+ let keyIndex = -1;
44741
+ while (++keyIndex < keys.length) {
44742
+ const key = keys[keyIndex];
44743
+ const currentIsConditionalSugar = key === "" || key[0] !== ".";
44756
44744
  if (i2++ === 0) {
44757
- isConditionalSugar = curIsConditionalSugar;
44758
- } else if (isConditionalSugar !== curIsConditionalSugar) {
44745
+ isConditionalSugar = currentIsConditionalSugar;
44746
+ } else if (isConditionalSugar !== currentIsConditionalSugar) {
44759
44747
  throw new ERR_INVALID_PACKAGE_CONFIG(
44760
44748
  (0, import_node_url.fileURLToPath)(packageJsonUrl),
44761
44749
  base,
@@ -44991,7 +44979,7 @@ function packageResolve(specifier, base, conditions) {
44991
44979
  let lastPath;
44992
44980
  do {
44993
44981
  const stat = tryStatSync(packageJsonPath.slice(0, -13));
44994
- if (!stat.isDirectory()) {
44982
+ if (!stat || !stat.isDirectory()) {
44995
44983
  lastPath = packageJsonPath;
44996
44984
  packageJsonUrl = new import_node_url.URL(
44997
44985
  (isScoped ? "../../../../node_modules/" : "../../../node_modules/") + packageName + "/package.json",
@@ -45000,10 +44988,7 @@ function packageResolve(specifier, base, conditions) {
45000
44988
  packageJsonPath = (0, import_node_url.fileURLToPath)(packageJsonUrl);
45001
44989
  continue;
45002
44990
  }
45003
- const packageConfig2 = packageJsonReader.read(packageJsonPath, {
45004
- base,
45005
- specifier
45006
- });
44991
+ const packageConfig2 = read2(packageJsonPath, { base, specifier });
45007
44992
  if (packageConfig2.exports !== void 0 && packageConfig2.exports !== null) {
45008
44993
  return packageExportsResolve(
45009
44994
  packageJsonUrl,
@@ -45039,19 +45024,29 @@ function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
45039
45024
  }
45040
45025
  function moduleResolve(specifier, base, conditions, preserveSymlinks) {
45041
45026
  const protocol = base.protocol;
45042
- const isRemote = protocol === "http:" || protocol === "https:";
45027
+ const isData = protocol === "data:";
45028
+ const isRemote = isData || protocol === "http:" || protocol === "https:";
45043
45029
  let resolved;
45044
45030
  if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
45045
- resolved = new import_node_url.URL(specifier, base);
45046
- } else if (!isRemote && specifier[0] === "#") {
45031
+ try {
45032
+ resolved = new import_node_url.URL(specifier, base);
45033
+ } catch (error_) {
45034
+ const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
45035
+ error.cause = error_;
45036
+ throw error;
45037
+ }
45038
+ } else if (protocol === "file:" && specifier[0] === "#") {
45047
45039
  resolved = packageImportsResolve(specifier, base, conditions);
45048
45040
  } else {
45049
45041
  try {
45050
45042
  resolved = new import_node_url.URL(specifier);
45051
- } catch {
45052
- if (!isRemote) {
45053
- resolved = packageResolve(specifier, base, conditions);
45043
+ } catch (error_) {
45044
+ if (isRemote && !import_node_module.builtinModules.includes(specifier)) {
45045
+ const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
45046
+ error.cause = error_;
45047
+ throw error;
45054
45048
  }
45049
+ resolved = packageResolve(specifier, base, conditions);
45055
45050
  }
45056
45051
  }
45057
45052
  (0, import_node_assert.default)(resolved !== void 0, "expected to be defined");
@@ -45183,9 +45178,9 @@ function resolvePath(id, options) {
45183
45178
  return Promise.reject(error);
45184
45179
  }
45185
45180
  }
45186
- var import_node_module, import_node_fs3, import_node_url, import_node_assert, import_node_process, import_node_path3, import_node_v8, import_node_util, BUILTIN_MODULES, own$1, classRegExp, kTypes, codes, messages, nodeInternalPrefix, userStackTraceLimit, captureLargerStackTrace, hasOwnProperty$1, ERR_INVALID_PACKAGE_CONFIG$1, cache, reader, packageJsonReader, ERR_UNKNOWN_FILE_EXTENSION, hasOwnProperty2, extensionFormatMap, protocolHandlers, RegExpPrototypeSymbolReplace, ERR_NETWORK_IMPORT_DISALLOWED, ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, own, invalidSegmentRegEx, deprecatedInvalidSegmentRegEx, invalidPackageNameRegEx, patternRegEx, encodedSepRegEx, emittedPackageWarnings, doubleSlashRegEx, DEFAULT_CONDITIONS_SET, DEFAULT_EXTENSIONS, NOT_FOUND_ERRORS;
45181
+ var import_node_module, import_node_fs3, import_node_url, import_node_assert, import_node_process, import_node_path3, import_node_v8, import_node_util, BUILTIN_MODULES, own$1, classRegExp, kTypes, codes, messages, nodeInternalPrefix, userStackTraceLimit, captureLargerStackTrace, hasOwnProperty$1, ERR_INVALID_PACKAGE_CONFIG$1, cache, ERR_UNKNOWN_FILE_EXTENSION, hasOwnProperty2, extensionFormatMap, protocolHandlers, RegExpPrototypeSymbolReplace, ERR_NETWORK_IMPORT_DISALLOWED, ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, ERR_UNSUPPORTED_RESOLVE_REQUEST, own, invalidSegmentRegEx, deprecatedInvalidSegmentRegEx, invalidPackageNameRegEx, patternRegEx, encodedSeparatorRegEx, emittedPackageWarnings, doubleSlashRegEx, DEFAULT_CONDITIONS_SET, DEFAULT_EXTENSIONS, NOT_FOUND_ERRORS;
45187
45182
  var init_dist6 = __esm({
45188
- "node_modules/.pnpm/mlly@1.6.1/node_modules/mlly/dist/index.mjs"() {
45183
+ "node_modules/.pnpm/mlly@1.7.0/node_modules/mlly/dist/index.mjs"() {
45189
45184
  init_acorn();
45190
45185
  import_node_module = require("node:module");
45191
45186
  import_node_fs3 = __toESM(require("node:fs"), 1);
@@ -45316,21 +45311,21 @@ var init_dist6 = __esm({
45316
45311
  codes.ERR_INVALID_PACKAGE_TARGET = createError(
45317
45312
  "ERR_INVALID_PACKAGE_TARGET",
45318
45313
  /**
45319
- * @param {string} pkgPath
45314
+ * @param {string} packagePath
45320
45315
  * @param {string} key
45321
45316
  * @param {unknown} target
45322
45317
  * @param {boolean} [isImport=false]
45323
45318
  * @param {string} [base]
45324
45319
  */
45325
- (pkgPath, key, target, isImport = false, base = void 0) => {
45326
- const relError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
45320
+ (packagePath, key, target, isImport = false, base = void 0) => {
45321
+ const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
45327
45322
  if (key === ".") {
45328
45323
  (0, import_node_assert.default)(isImport === false);
45329
- 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 "./"' : ""}`;
45324
+ 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 "./"' : ""}`;
45330
45325
  }
45331
45326
  return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(
45332
45327
  target
45333
- )} defined for '${key}' in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ""}${relError ? '; targets must start with "./"' : ""}`;
45328
+ )} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
45334
45329
  },
45335
45330
  Error
45336
45331
  );
@@ -45366,14 +45361,14 @@ var init_dist6 = __esm({
45366
45361
  codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
45367
45362
  "ERR_PACKAGE_PATH_NOT_EXPORTED",
45368
45363
  /**
45369
- * @param {string} pkgPath
45364
+ * @param {string} packagePath
45370
45365
  * @param {string} subpath
45371
45366
  * @param {string} [base]
45372
45367
  */
45373
- (pkgPath, subpath, base = void 0) => {
45368
+ (packagePath, subpath, base = void 0) => {
45374
45369
  if (subpath === ".")
45375
- return `No "exports" main defined in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
45376
- return `Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
45370
+ return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
45371
+ return `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
45377
45372
  },
45378
45373
  Error
45379
45374
  );
@@ -45382,14 +45377,19 @@ var init_dist6 = __esm({
45382
45377
  "Directory import '%s' is not supported resolving ES modules imported from %s",
45383
45378
  Error
45384
45379
  );
45380
+ codes.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError(
45381
+ "ERR_UNSUPPORTED_RESOLVE_REQUEST",
45382
+ 'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',
45383
+ TypeError
45384
+ );
45385
45385
  codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
45386
45386
  "ERR_UNKNOWN_FILE_EXTENSION",
45387
45387
  /**
45388
- * @param {string} ext
45388
+ * @param {string} extension
45389
45389
  * @param {string} path
45390
45390
  */
45391
- (ext, path5) => {
45392
- return `Unknown file extension "${ext}" for ${path5}`;
45391
+ (extension, path5) => {
45392
+ return `Unknown file extension "${extension}" for ${path5}`;
45393
45393
  },
45394
45394
  TypeError
45395
45395
  );
@@ -45433,8 +45433,6 @@ var init_dist6 = __esm({
45433
45433
  hasOwnProperty$1 = {}.hasOwnProperty;
45434
45434
  ({ ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes);
45435
45435
  cache = /* @__PURE__ */ new Map();
45436
- reader = { read: read2 };
45437
- packageJsonReader = reader;
45438
45436
  ({ ERR_UNKNOWN_FILE_EXTENSION } = codes);
45439
45437
  hasOwnProperty2 = {}.hasOwnProperty;
45440
45438
  extensionFormatMap = {
@@ -45465,14 +45463,15 @@ var init_dist6 = __esm({
45465
45463
  ERR_MODULE_NOT_FOUND,
45466
45464
  ERR_PACKAGE_IMPORT_NOT_DEFINED,
45467
45465
  ERR_PACKAGE_PATH_NOT_EXPORTED,
45468
- ERR_UNSUPPORTED_DIR_IMPORT
45466
+ ERR_UNSUPPORTED_DIR_IMPORT,
45467
+ ERR_UNSUPPORTED_RESOLVE_REQUEST
45469
45468
  } = codes);
45470
45469
  own = {}.hasOwnProperty;
45471
45470
  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;
45472
45471
  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;
45473
45472
  invalidPackageNameRegEx = /^\.|%|\\/;
45474
45473
  patternRegEx = /\*/g;
45475
- encodedSepRegEx = /%2f|%5c/i;
45474
+ encodedSeparatorRegEx = /%2f|%5c/i;
45476
45475
  emittedPackageWarnings = /* @__PURE__ */ new Set();
45477
45476
  doubleSlashRegEx = /[/\\]{2}/;
45478
45477
  DEFAULT_CONDITIONS_SET = /* @__PURE__ */ new Set(["node", "import"]);
@@ -70912,10 +70911,9 @@ var init_get_default_config = __esm({
70912
70911
  DEFAULT_COLOR_CONFIG = {
70913
70912
  dark: "#1d232a",
70914
70913
  light: "#f4f4f5",
70915
- primary: "#1fb2a6",
70916
- secondary: "#0ea5e9",
70917
- tertiary: "#ec5990",
70918
- accent: "#6366f1",
70914
+ brand1: "#1fb2a6",
70915
+ brand2: "#6366f1",
70916
+ brand3: "#ec5990",
70919
70917
  success: "#087f5b",
70920
70918
  info: "#0ea5e9",
70921
70919
  warning: "#fcc419",
@@ -72735,9 +72733,9 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
72735
72733
  return (message) => {
72736
72734
  console.debug(
72737
72735
  `
72738
- ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.primary ?? "#1fb2a6").whiteBright(
72736
+ ${_chalk.bold.hex(colors.brand1 ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand1 ?? "#1fb2a6").whiteBright(
72739
72737
  " \u{1F6E0} Debug "
72740
- )} ${_chalk.hex(colors.primary ?? "#1fb2a6")(formatLogMessage(message))}
72738
+ )} ${_chalk.hex(colors.brand1 ?? "#1fb2a6")(formatLogMessage(message))}
72741
72739
  `
72742
72740
  );
72743
72741
  };
@@ -72745,9 +72743,9 @@ ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.
72745
72743
  return (message) => {
72746
72744
  console.log(
72747
72745
  `
72748
- ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.primary ?? "#1fb2a6").whiteBright(
72746
+ ${_chalk.bold.hex(colors.brand1 ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand1 ?? "#1fb2a6").whiteBright(
72749
72747
  " \u2709 System "
72750
- )} ${_chalk.hex(colors.primary ?? "#1fb2a6")(formatLogMessage(message))}
72748
+ )} ${_chalk.hex(colors.brand1 ?? "#1fb2a6")(formatLogMessage(message))}
72751
72749
  `
72752
72750
  );
72753
72751
  };
@@ -73132,16 +73130,15 @@ var init_get_env = __esm({
73132
73130
  };
73133
73131
  getThemeColorConfigEnv = (prefix, theme) => {
73134
73132
  const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
73135
- return process.env[`${prefix}${themeName}LIGHT_PRIMARY`] || process.env[`${prefix}${themeName}DARK_PRIMARY`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
73133
+ return process.env[`${prefix}${themeName}LIGHT_BRAND1`] || process.env[`${prefix}${themeName}DARK_BRAND1`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
73136
73134
  };
73137
73135
  getSingleThemeColorConfigEnv = (prefix) => {
73138
73136
  return {
73139
73137
  dark: process.env[`${prefix}DARK`],
73140
73138
  light: process.env[`${prefix}LIGHT`],
73141
- primary: process.env[`${prefix}PRIMARY`],
73142
- secondary: process.env[`${prefix}SECONDARY`],
73143
- tertiary: process.env[`${prefix}TERTIARY`],
73144
- accent: process.env[`${prefix}ACCENT`],
73139
+ brand1: process.env[`${prefix}BRAND1`],
73140
+ brand2: process.env[`${prefix}BRAND2`],
73141
+ brand3: process.env[`${prefix}BRAND3`],
73145
73142
  success: process.env[`${prefix}SUCCESS`],
73146
73143
  info: process.env[`${prefix}INFO`],
73147
73144
  warning: process.env[`${prefix}WARNING`],
@@ -73161,10 +73158,9 @@ var init_get_env = __esm({
73161
73158
  return {
73162
73159
  foreground: process.env[`${prefix}FOREGROUND`],
73163
73160
  background: process.env[`${prefix}BACKGROUND`],
73164
- primary: process.env[`${prefix}PRIMARY`],
73165
- secondary: process.env[`${prefix}SECONDARY`],
73166
- tertiary: process.env[`${prefix}TERTIARY`],
73167
- accent: process.env[`${prefix}ACCENT`],
73161
+ brand1: process.env[`${prefix}BRAND1`],
73162
+ brand2: process.env[`${prefix}BRAND2`],
73163
+ brand3: process.env[`${prefix}BRAND3`],
73168
73164
  success: process.env[`${prefix}SUCCESS`],
73169
73165
  info: process.env[`${prefix}INFO`],
73170
73166
  warning: process.env[`${prefix}WARNING`],
@@ -73330,7 +73326,7 @@ var init_set_env = __esm({
73330
73326
  }
73331
73327
  };
73332
73328
  setThemeColorConfigEnv = (prefix, config) => {
73333
- return config?.light?.primary || config?.dark?.primary ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
73329
+ return config?.light?.brand1 || config?.dark?.brand1 ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
73334
73330
  };
73335
73331
  setSingleThemeColorConfigEnv = (prefix, config) => {
73336
73332
  if (config.dark) {
@@ -73339,17 +73335,14 @@ var init_set_env = __esm({
73339
73335
  if (config.light) {
73340
73336
  process.env[`${prefix}LIGHT`] = config.light;
73341
73337
  }
73342
- if (config.primary) {
73343
- process.env[`${prefix}PRIMARY`] = config.primary;
73338
+ if (config.brand1) {
73339
+ process.env[`${prefix}BRAND1`] = config.brand1;
73344
73340
  }
73345
- if (config.secondary) {
73346
- process.env[`${prefix}SECONDARY`] = config.secondary;
73341
+ if (config.brand2) {
73342
+ process.env[`${prefix}BRAND2`] = config.brand2;
73347
73343
  }
73348
- if (config.tertiary) {
73349
- process.env[`${prefix}TERTIARY`] = config.tertiary;
73350
- }
73351
- if (config.accent) {
73352
- process.env[`${prefix}ACCENT`] = config.accent;
73344
+ if (config.brand3) {
73345
+ process.env[`${prefix}BRAND3`] = config.brand3;
73353
73346
  }
73354
73347
  if (config.success) {
73355
73348
  process.env[`${prefix}SUCCESS`] = config.success;
@@ -73380,17 +73373,14 @@ var init_set_env = __esm({
73380
73373
  if (config.background) {
73381
73374
  process.env[`${prefix}BACKGROUND`] = config.background;
73382
73375
  }
73383
- if (config.primary) {
73384
- process.env[`${prefix}PRIMARY`] = config.primary;
73385
- }
73386
- if (config.secondary) {
73387
- process.env[`${prefix}SECONDARY`] = config.secondary;
73376
+ if (config.brand1) {
73377
+ process.env[`${prefix}BRAND1`] = config.brand1;
73388
73378
  }
73389
- if (config.tertiary) {
73390
- process.env[`${prefix}TERTIARY`] = config.tertiary;
73379
+ if (config.brand2) {
73380
+ process.env[`${prefix}BRAND2`] = config.brand2;
73391
73381
  }
73392
- if (config.accent) {
73393
- process.env[`${prefix}ACCENT`] = config.accent;
73382
+ if (config.brand3) {
73383
+ process.env[`${prefix}BRAND3`] = config.brand3;
73394
73384
  }
73395
73385
  if (config.success) {
73396
73386
  process.env[`${prefix}SUCCESS`] = config.success;