@styleframe/cli 2.1.0 → 2.3.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.
@@ -13,7 +13,7 @@ import require$$9 from "node:crypto";
13
13
  import require$$10 from "node:tty";
14
14
  import require$$11 from "node:perf_hooks";
15
15
  import require$$12 from "node:vm";
16
- import V$1 from "fs";
16
+ import V$2 from "fs";
17
17
  import sysPath from "path";
18
18
  import require$$2 from "os";
19
19
  import require$$3 from "crypto";
@@ -1178,17 +1178,17 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
1178
1178
  }
1179
1179
  throw exportsNotFound(packageSubpath, packageJsonUrl, base);
1180
1180
  }
1181
- function patternKeyCompare(a, b2) {
1181
+ function patternKeyCompare(a, b) {
1182
1182
  const aPatternIndex = a.indexOf("*");
1183
- const bPatternIndex = b2.indexOf("*");
1183
+ const bPatternIndex = b.indexOf("*");
1184
1184
  const baseLengthA = aPatternIndex === -1 ? a.length : aPatternIndex + 1;
1185
- const baseLengthB = bPatternIndex === -1 ? b2.length : bPatternIndex + 1;
1185
+ const baseLengthB = bPatternIndex === -1 ? b.length : bPatternIndex + 1;
1186
1186
  if (baseLengthA > baseLengthB) return -1;
1187
1187
  if (baseLengthB > baseLengthA) return 1;
1188
1188
  if (aPatternIndex === -1) return 1;
1189
1189
  if (bPatternIndex === -1) return -1;
1190
- if (a.length > b2.length) return -1;
1191
- if (b2.length > a.length) return 1;
1190
+ if (a.length > b.length) return -1;
1191
+ if (b.length > a.length) return 1;
1192
1192
  return 0;
1193
1193
  }
1194
1194
  function packageImportsResolve(name, base, conditions) {
@@ -1555,11 +1555,11 @@ function _cacheKey(id, opts) {
1555
1555
  opts?.suffixes
1556
1556
  ]);
1557
1557
  }
1558
- function _join(a, b2) {
1559
- if (!a || !b2 || b2 === "/") {
1558
+ function _join(a, b) {
1559
+ if (!a || !b || b === "/") {
1560
1560
  return a;
1561
1561
  }
1562
- return (a.endsWith("/") ? a : a + "/") + (b2.startsWith("/") ? b2.slice(1) : b2);
1562
+ return (a.endsWith("/") ? a : a + "/") + (b.startsWith("/") ? b.slice(1) : b);
1563
1563
  }
1564
1564
  function _normalizeWinPath(path2) {
1565
1565
  return path2.replace(/\\/g, "/").replace(/^[a-z]:\//, (r2) => r2.toUpperCase());
@@ -1647,9 +1647,9 @@ function requireJiti() {
1647
1647
  function binop(e3, t3) {
1648
1648
  return new acorn_TokenType(e3, { beforeExpr: true, binop: t3 });
1649
1649
  }
1650
- var l = { beforeExpr: true }, u = { startsExpr: true }, d = {};
1650
+ var l = { beforeExpr: true }, u = { startsExpr: true }, d2 = {};
1651
1651
  function kw(e3, t3) {
1652
- return void 0 === t3 && (t3 = {}), t3.keyword = e3, d[e3] = new acorn_TokenType(e3, t3);
1652
+ return void 0 === t3 && (t3 = {}), t3.keyword = e3, d2[e3] = new acorn_TokenType(e3, t3);
1653
1653
  }
1654
1654
  var f = { num: new acorn_TokenType("num", u), regexp: new acorn_TokenType("regexp", u), string: new acorn_TokenType("string", u), name: new acorn_TokenType("name", u), privateId: new acorn_TokenType("privateId", u), eof: new acorn_TokenType("eof"), bracketL: new acorn_TokenType("[", { beforeExpr: true, startsExpr: true }), bracketR: new acorn_TokenType("]"), braceL: new acorn_TokenType("{", { beforeExpr: true, startsExpr: true }), braceR: new acorn_TokenType("}"), parenL: new acorn_TokenType("(", { beforeExpr: true, startsExpr: true }), parenR: new acorn_TokenType(")"), comma: new acorn_TokenType(",", l), semi: new acorn_TokenType(";", l), colon: new acorn_TokenType(":", l), dot: new acorn_TokenType("."), question: new acorn_TokenType("?", l), questionDot: new acorn_TokenType("?."), arrow: new acorn_TokenType("=>", l), template: new acorn_TokenType("template"), invalidTemplate: new acorn_TokenType("invalidTemplate"), ellipsis: new acorn_TokenType("...", l), backQuote: new acorn_TokenType("`", u), dollarBraceL: new acorn_TokenType("${", { beforeExpr: true, startsExpr: true }), eq: new acorn_TokenType("=", { beforeExpr: true, isAssign: true }), assign: new acorn_TokenType("_=", { beforeExpr: true, isAssign: true }), incDec: new acorn_TokenType("++/--", { prefix: true, postfix: true, startsExpr: true }), prefix: new acorn_TokenType("!/~", { beforeExpr: true, prefix: true, startsExpr: true }), logicalOR: binop("||", 1), logicalAND: binop("&&", 2), bitwiseOR: binop("|", 3), bitwiseXOR: binop("^", 4), bitwiseAND: binop("&", 5), equality: binop("==/!=/===/!==", 6), relational: binop("</>/<=/>=", 7), bitShift: binop("<</>>/>>>", 8), plusMin: new acorn_TokenType("+/-", { beforeExpr: true, binop: 9, prefix: true, startsExpr: true }), modulo: binop("%", 10), star: binop("*", 10), slash: binop("/", 10), starstar: new acorn_TokenType("**", { beforeExpr: true }), coalesce: binop("??", 1), _break: kw("break"), _case: kw("case", l), _catch: kw("catch"), _continue: kw("continue"), _debugger: kw("debugger"), _default: kw("default", l), _do: kw("do", { isLoop: true, beforeExpr: true }), _else: kw("else", l), _finally: kw("finally"), _for: kw("for", { isLoop: true }), _function: kw("function", u), _if: kw("if"), _return: kw("return", l), _switch: kw("switch"), _throw: kw("throw", l), _try: kw("try"), _var: kw("var"), _const: kw("const"), _while: kw("while", { isLoop: true }), _with: kw("with"), _new: kw("new", { beforeExpr: true, startsExpr: true }), _this: kw("this", u), _super: kw("super", u), _class: kw("class", u), _extends: kw("extends", l), _export: kw("export"), _import: kw("import", u), _null: kw("null", u), _true: kw("true", u), _false: kw("false", u), _in: kw("in", { beforeExpr: true, binop: 7 }), _instanceof: kw("instanceof", { beforeExpr: true, binop: 7 }), _typeof: kw("typeof", { beforeExpr: true, prefix: true, startsExpr: true }), _void: kw("void", { beforeExpr: true, prefix: true, startsExpr: true }), _delete: kw("delete", { beforeExpr: true, prefix: true, startsExpr: true }) }, m2 = /\r\n?|\n|\u2028|\u2029/, g2 = new RegExp(m2.source, "g");
1655
1655
  function isNewLine(e3) {
@@ -1663,7 +1663,7 @@ function requireJiti() {
1663
1663
  }
1664
1664
  return -1;
1665
1665
  }
1666
- var x2 = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, v2 = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, y = Object.prototype, _2 = y.hasOwnProperty, E2 = y.toString, b2 = Object.hasOwn || function(e3, t3) {
1666
+ var x2 = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, v2 = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, y = Object.prototype, _2 = y.hasOwnProperty, E2 = y.toString, b = Object.hasOwn || function(e3, t3) {
1667
1667
  return _2.call(e3, t3);
1668
1668
  }, S2 = Array.isArray || function(e3) {
1669
1669
  return "[object Array]" === E2.call(e3);
@@ -1693,7 +1693,7 @@ function requireJiti() {
1693
1693
  var I2 = { ecmaVersion: null, sourceType: "script", onInsertedSemicolon: null, onTrailingComma: null, allowReserved: null, allowReturnOutsideFunction: false, allowImportExportEverywhere: false, allowAwaitOutsideFunction: null, allowSuperOutsideMethod: null, allowHashBang: false, checkPrivateFields: true, locations: false, onToken: null, onComment: null, ranges: false, program: null, sourceFile: null, directSourceFile: null, preserveParens: false }, C2 = false;
1694
1694
  function getOptions(e3) {
1695
1695
  var t3 = {};
1696
- for (var i2 in I2) t3[i2] = e3 && b2(e3, i2) ? e3[i2] : I2[i2];
1696
+ for (var i2 in I2) t3[i2] = e3 && b(e3, i2) ? e3[i2] : I2[i2];
1697
1697
  if ("latest" === t3.ecmaVersion ? t3.ecmaVersion = 1e8 : null == t3.ecmaVersion ? (!C2 && "object" == typeof console && console.warn && (C2 = true, console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")), t3.ecmaVersion = 11) : t3.ecmaVersion >= 2015 && (t3.ecmaVersion -= 2009), null == t3.allowReserved && (t3.allowReserved = t3.ecmaVersion < 5), e3 && null != e3.allowHashBang || (t3.allowHashBang = t3.ecmaVersion >= 14), S2(t3.onToken)) {
1698
1698
  var s2 = t3.onToken;
1699
1699
  t3.onToken = function(e4) {
@@ -2092,7 +2092,7 @@ function requireJiti() {
2092
2092
  var e3 = this.privateNameStack.pop(), t3 = e3.declared, i2 = e3.used;
2093
2093
  if (this.options.checkPrivateFields) for (var s2 = this.privateNameStack.length, r3 = 0 === s2 ? null : this.privateNameStack[s2 - 1], n2 = 0; n2 < i2.length; ++n2) {
2094
2094
  var a2 = i2[n2];
2095
- b2(t3, a2.name) || (r3 ? r3.used.push(a2) : this.raiseRecoverable(a2.start, "Private field '#" + a2.name + "' must be declared in an enclosing class"));
2095
+ b(t3, a2.name) || (r3 ? r3.used.push(a2) : this.raiseRecoverable(a2.start, "Private field '#" + a2.name + "' must be declared in an enclosing class"));
2096
2096
  }
2097
2097
  }, L2.parseExportAllDeclaration = function(e3, t3) {
2098
2098
  return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (e3.exported = this.parseModuleExportName(), this.checkExport(t3, e3.exported, this.lastTokStart)) : e3.exported = null), this.expectContextual("from"), this.type !== f.string && this.unexpected(), e3.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e3.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e3, "ExportAllDeclaration");
@@ -2127,7 +2127,7 @@ function requireJiti() {
2127
2127
  var s2 = this.parseMaybeAssign();
2128
2128
  return this.semicolon(), s2;
2129
2129
  }, L2.checkExport = function(e3, t3, i2) {
2130
- e3 && ("string" != typeof t3 && (t3 = "Identifier" === t3.type ? t3.name : t3.value), b2(e3, t3) && this.raiseRecoverable(i2, "Duplicate export '" + t3 + "'"), e3[t3] = true);
2130
+ e3 && ("string" != typeof t3 && (t3 = "Identifier" === t3.type ? t3.name : t3.value), b(e3, t3) && this.raiseRecoverable(i2, "Duplicate export '" + t3 + "'"), e3[t3] = true);
2131
2131
  }, L2.checkPatternExport = function(e3, t3) {
2132
2132
  var i2 = t3.type;
2133
2133
  if ("Identifier" === i2) this.checkExport(e3, t3, t3.start);
@@ -2187,7 +2187,7 @@ function requireJiti() {
2187
2187
  if (i2) i2 = false;
2188
2188
  else if (this.expect(f.comma), this.afterTrailingComma(f.braceR)) break;
2189
2189
  var s2 = this.parseImportAttribute(), r3 = "Identifier" === s2.key.type ? s2.key.name : s2.key.value;
2190
- b2(t3, r3) && this.raiseRecoverable(s2.key.start, "Duplicate attribute key '" + r3 + "'"), t3[r3] = true, e3.push(s2);
2190
+ b(t3, r3) && this.raiseRecoverable(s2.key.start, "Duplicate attribute key '" + r3 + "'"), t3[r3] = true, e3.push(s2);
2191
2191
  }
2192
2192
  return e3;
2193
2193
  }, L2.parseImportAttribute = function() {
@@ -2298,7 +2298,7 @@ function requireJiti() {
2298
2298
  var s2 = 0 !== t3;
2299
2299
  switch (e3.type) {
2300
2300
  case "Identifier":
2301
- this.strict && this.reservedWordsStrictBind.test(e3.name) && this.raiseRecoverable(e3.start, (s2 ? "Binding " : "Assigning to ") + e3.name + " in strict mode"), s2 && (2 === t3 && "let" === e3.name && this.raiseRecoverable(e3.start, "let is disallowed as a lexically bound name"), i2 && (b2(i2, e3.name) && this.raiseRecoverable(e3.start, "Argument name clash"), i2[e3.name] = true), 5 !== t3 && this.declareName(e3.name, t3, e3.start));
2301
+ this.strict && this.reservedWordsStrictBind.test(e3.name) && this.raiseRecoverable(e3.start, (s2 ? "Binding " : "Assigning to ") + e3.name + " in strict mode"), s2 && (2 === t3 && "let" === e3.name && this.raiseRecoverable(e3.start, "let is disallowed as a lexically bound name"), i2 && (b(i2, e3.name) && this.raiseRecoverable(e3.start, "Argument name clash"), i2[e3.name] = true), 5 !== t3 && this.declareName(e3.name, t3, e3.start));
2302
2302
  break;
2303
2303
  case "ChainExpression":
2304
2304
  this.raiseRecoverable(e3.start, "Optional chaining cannot appear in left-hand side");
@@ -2516,11 +2516,11 @@ function requireJiti() {
2516
2516
  var p3 = this.startNodeAt(t3, i2);
2517
2517
  p3.object = e3, c2 ? (p3.property = this.parseExpression(), this.expect(f.bracketR)) : this.type === f.privateId && "Super" !== e3.type ? p3.property = this.parsePrivateIdent() : p3.property = this.parseIdent("never" !== this.options.allowReserved), p3.computed = !!c2, o2 && (p3.optional = h3), e3 = this.finishNode(p3, "MemberExpression");
2518
2518
  } else if (!s2 && this.eat(f.parenL)) {
2519
- var l2 = new acorn_DestructuringErrors(), u2 = this.yieldPos, d2 = this.awaitPos, m3 = this.awaitIdentPos;
2519
+ var l2 = new acorn_DestructuringErrors(), u2 = this.yieldPos, d3 = this.awaitPos, m3 = this.awaitIdentPos;
2520
2520
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
2521
2521
  var g3 = this.parseExprList(f.parenR, this.options.ecmaVersion >= 8, false, l2);
2522
- if (r3 && !h3 && this.shouldParseAsyncArrow()) return this.checkPatternErrors(l2, false), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = u2, this.awaitPos = d2, this.awaitIdentPos = m3, this.parseSubscriptAsyncArrow(t3, i2, g3, a2);
2523
- this.checkExpressionErrors(l2, true), this.yieldPos = u2 || this.yieldPos, this.awaitPos = d2 || this.awaitPos, this.awaitIdentPos = m3 || this.awaitIdentPos;
2522
+ if (r3 && !h3 && this.shouldParseAsyncArrow()) return this.checkPatternErrors(l2, false), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = u2, this.awaitPos = d3, this.awaitIdentPos = m3, this.parseSubscriptAsyncArrow(t3, i2, g3, a2);
2523
+ this.checkExpressionErrors(l2, true), this.yieldPos = u2 || this.yieldPos, this.awaitPos = d3 || this.awaitPos, this.awaitIdentPos = m3 || this.awaitIdentPos;
2524
2524
  var x3 = this.startNodeAt(t3, i2);
2525
2525
  x3.callee = e3, x3.arguments = g3, o2 && (x3.optional = h3), e3 = this.finishNode(x3, "CallExpression");
2526
2526
  } else if (this.type === f.backQuote) {
@@ -2609,7 +2609,7 @@ function requireJiti() {
2609
2609
  var i2, s2 = this.start, r3 = this.startLoc, n2 = this.options.ecmaVersion >= 8;
2610
2610
  if (this.options.ecmaVersion >= 6) {
2611
2611
  this.next();
2612
- var a2, o2 = this.start, h3 = this.startLoc, c2 = [], p3 = true, l2 = false, u2 = new acorn_DestructuringErrors(), d2 = this.yieldPos, m3 = this.awaitPos;
2612
+ var a2, o2 = this.start, h3 = this.startLoc, c2 = [], p3 = true, l2 = false, u2 = new acorn_DestructuringErrors(), d3 = this.yieldPos, m3 = this.awaitPos;
2613
2613
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== f.parenR; ) {
2614
2614
  if (p3 ? p3 = false : this.expect(f.comma), n2 && this.afterTrailingComma(f.parenR, true)) {
2615
2615
  l2 = true;
@@ -2622,8 +2622,8 @@ function requireJiti() {
2622
2622
  c2.push(this.parseMaybeAssign(false, u2, this.parseParenItem));
2623
2623
  }
2624
2624
  var g3 = this.lastTokEnd, x3 = this.lastTokEndLoc;
2625
- if (this.expect(f.parenR), e3 && this.shouldParseArrow(c2) && this.eat(f.arrow)) return this.checkPatternErrors(u2, false), this.checkYieldAwaitInDefaultParams(), this.yieldPos = d2, this.awaitPos = m3, this.parseParenArrowList(s2, r3, c2, t3);
2626
- c2.length && !l2 || this.unexpected(this.lastTokStart), a2 && this.unexpected(a2), this.checkExpressionErrors(u2, true), this.yieldPos = d2 || this.yieldPos, this.awaitPos = m3 || this.awaitPos, c2.length > 1 ? ((i2 = this.startNodeAt(o2, h3)).expressions = c2, this.finishNodeAt(i2, "SequenceExpression", g3, x3)) : i2 = c2[0];
2625
+ if (this.expect(f.parenR), e3 && this.shouldParseArrow(c2) && this.eat(f.arrow)) return this.checkPatternErrors(u2, false), this.checkYieldAwaitInDefaultParams(), this.yieldPos = d3, this.awaitPos = m3, this.parseParenArrowList(s2, r3, c2, t3);
2626
+ c2.length && !l2 || this.unexpected(this.lastTokStart), a2 && this.unexpected(a2), this.checkExpressionErrors(u2, true), this.yieldPos = d3 || this.yieldPos, this.awaitPos = m3 || this.awaitPos, c2.length > 1 ? ((i2 = this.startNodeAt(o2, h3)).expressions = c2, this.finishNodeAt(i2, "SequenceExpression", g3, x3)) : i2 = c2[0];
2627
2627
  } else i2 = this.parseParenExpression();
2628
2628
  if (this.options.preserveParens) {
2629
2629
  var v3 = this.startNodeAt(s2, r3);
@@ -3139,7 +3139,7 @@ function requireJiti() {
3139
3139
  }
3140
3140
  return 0;
3141
3141
  }, he2.regexp_validateUnicodePropertyNameAndValue = function(e3, t3, i2) {
3142
- b2(e3.unicodeProperties.nonBinary, t3) || e3.raise("Invalid property name"), e3.unicodeProperties.nonBinary[t3].test(i2) || e3.raise("Invalid property value");
3142
+ b(e3.unicodeProperties.nonBinary, t3) || e3.raise("Invalid property name"), e3.unicodeProperties.nonBinary[t3].test(i2) || e3.raise("Invalid property value");
3143
3143
  }, he2.regexp_validateUnicodePropertyNameOrValue = function(e3, t3) {
3144
3144
  return e3.unicodeProperties.binary.test(t3) ? 1 : e3.switchV && e3.unicodeProperties.binaryOfStrings.test(t3) ? 2 : void e3.raise("Invalid property name");
3145
3145
  }, he2.regexp_eatUnicodePropertyName = function(e3) {
@@ -3671,9 +3671,9 @@ function requireJiti() {
3671
3671
  return e3 + this.input.slice(i2, this.pos);
3672
3672
  }, ce2.readWord = function() {
3673
3673
  var e3 = this.readWord1(), t3 = f.name;
3674
- return this.keywords.test(e3) && (t3 = d[e3]), this.finishToken(t3, e3);
3674
+ return this.keywords.test(e3) && (t3 = d2[e3]), this.finishToken(t3, e3);
3675
3675
  };
3676
- acorn_Parser.acorn = { Parser: acorn_Parser, version: "8.15.0", defaultOptions: I2, Position: acorn_Position, SourceLocation: acorn_SourceLocation, getLineInfo, Node: acorn_Node, TokenType: acorn_TokenType, tokTypes: f, keywordTypes: d, TokContext: acorn_TokContext, tokContexts: F2, isIdentifierChar, isIdentifierStart, Token: acorn_Token, isNewLine, lineBreak: m2, lineBreakG: g2, nonASCIIwhitespace: x2 };
3676
+ acorn_Parser.acorn = { Parser: acorn_Parser, version: "8.15.0", defaultOptions: I2, Position: acorn_Position, SourceLocation: acorn_SourceLocation, getLineInfo, Node: acorn_Node, TokenType: acorn_TokenType, tokTypes: f, keywordTypes: d2, TokContext: acorn_TokContext, tokContexts: F2, isIdentifierChar, isIdentifierStart, Token: acorn_Token, isNewLine, lineBreak: m2, lineBreakG: g2, nonASCIIwhitespace: x2 };
3677
3677
  const le2 = require$$1, ue2 = fs;
3678
3678
  const fe2 = /^\.?\//;
3679
3679
  function withTrailingSlash(e3 = "", t3) {
@@ -3694,10 +3694,10 @@ function requireJiti() {
3694
3694
  function pathe_M_eThtNZ_normalizeWindowsPath(e3 = "") {
3695
3695
  return e3 ? e3.replace(/\\/g, "/").replace(me2, (e4) => e4.toUpperCase()) : e3;
3696
3696
  }
3697
- const ge2 = /^[/\\]{2}/, xe = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, ve = /^[A-Za-z]:$/, ye2 = /.(\.[^./]+|\.)$/, pathe_M_eThtNZ_normalize = function(e3) {
3697
+ const ge2 = /^[/\\]{2}/, xe = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, ve2 = /^[A-Za-z]:$/, ye2 = /.(\.[^./]+|\.)$/, pathe_M_eThtNZ_normalize = function(e3) {
3698
3698
  if (0 === e3.length) return ".";
3699
3699
  const t3 = (e3 = pathe_M_eThtNZ_normalizeWindowsPath(e3)).match(ge2), i2 = isAbsolute2(e3), s2 = "/" === e3[e3.length - 1];
3700
- return 0 === (e3 = normalizeString2(e3, !i2)).length ? i2 ? "/" : s2 ? "./" : "." : (s2 && (e3 += "/"), ve.test(e3) && (e3 += "/"), t3 ? i2 ? `//${e3}` : `//./${e3}` : i2 && !isAbsolute2(e3) ? `/${e3}` : e3);
3700
+ return 0 === (e3 = normalizeString2(e3, !i2)).length ? i2 ? "/" : s2 ? "./" : "." : (s2 && (e3 += "/"), ve2.test(e3) && (e3 += "/"), t3 ? i2 ? `//${e3}` : `//./${e3}` : i2 && !isAbsolute2(e3) ? `/${e3}` : e3);
3701
3701
  }, pathe_M_eThtNZ_join = function(...e3) {
3702
3702
  let t3 = "";
3703
3703
  for (const i2 of e3) if (i2) if (t3.length > 0) {
@@ -3754,7 +3754,7 @@ function requireJiti() {
3754
3754
  return t3 && t3[1] || "";
3755
3755
  }, pathe_M_eThtNZ_dirname = function(e3) {
3756
3756
  const t3 = pathe_M_eThtNZ_normalizeWindowsPath(e3).replace(/\/$/, "").split("/").slice(0, -1);
3757
- return 1 === t3.length && ve.test(t3[0]) && (t3[0] += "/"), t3.join("/") || (isAbsolute2(e3) ? "/" : ".");
3757
+ return 1 === t3.length && ve2.test(t3[0]) && (t3[0] += "/"), t3.join("/") || (isAbsolute2(e3) ? "/" : ".");
3758
3758
  }, basename2 = function(e3, t3) {
3759
3759
  const i2 = pathe_M_eThtNZ_normalizeWindowsPath(e3).split("/");
3760
3760
  let s2 = "";
@@ -3766,16 +3766,16 @@ function requireJiti() {
3766
3766
  }
3767
3767
  }
3768
3768
  return s2;
3769
- }, _e = require$$9$1, Ee = assert, be2 = process$1, Se2 = path, ke = v8, we = require$$6, Ie = new Set(le2.builtinModules);
3769
+ }, _e = require$$9$1, Ee2 = assert, be2 = process$1, Se2 = path, ke = v8, we2 = require$$6, Ie = new Set(le2.builtinModules);
3770
3770
  function normalizeSlash(e3) {
3771
3771
  return e3.replace(/\\/g, "/");
3772
3772
  }
3773
- const Ce2 = {}.hasOwnProperty, Re = /^([A-Z][a-z\d]*)+$/, Pe = /* @__PURE__ */ new Set(["string", "function", "number", "object", "Function", "Object", "boolean", "bigint", "symbol"]), Te = {};
3773
+ const Ce2 = {}.hasOwnProperty, Re2 = /^([A-Z][a-z\d]*)+$/, Pe = /* @__PURE__ */ new Set(["string", "function", "number", "object", "Function", "Object", "boolean", "bigint", "symbol"]), Te2 = {};
3774
3774
  function formatList2(e3, t3 = "and") {
3775
3775
  return e3.length < 3 ? e3.join(` ${t3} `) : `${e3.slice(0, -1).join(", ")}, ${t3} ${e3[e3.length - 1]}`;
3776
3776
  }
3777
3777
  const Ae2 = /* @__PURE__ */ new Map();
3778
- let Ne;
3778
+ let Ne2;
3779
3779
  function createError2(e3, t3, i2) {
3780
3780
  return Ae2.set(e3, t3), /* @__PURE__ */ (function(e4, t4) {
3781
3781
  return NodeError;
@@ -3786,11 +3786,11 @@ function requireJiti() {
3786
3786
  isErrorStackTraceLimitWritable2() && (Error.stackTraceLimit = s2);
3787
3787
  const n2 = (function(e5, t5, i4) {
3788
3788
  const s3 = Ae2.get(e5);
3789
- if (Ee(void 0 !== s3, "expected `message` to be found"), "function" == typeof s3) return Ee(s3.length <= t5.length, `Code: ${e5}; The provided arguments length (${t5.length}) does not match the required ones (${s3.length}).`), Reflect.apply(s3, i4, t5);
3789
+ if (Ee2(void 0 !== s3, "expected `message` to be found"), "function" == typeof s3) return Ee2(s3.length <= t5.length, `Code: ${e5}; The provided arguments length (${t5.length}) does not match the required ones (${s3.length}).`), Reflect.apply(s3, i4, t5);
3790
3790
  const r4 = /%[dfijoOs]/g;
3791
3791
  let n3 = 0;
3792
3792
  for (; null !== r4.exec(s3); ) n3++;
3793
- return Ee(n3 === t5.length, `Code: ${e5}; The provided arguments length (${t5.length}) does not match the required ones (${n3}).`), 0 === t5.length ? s3 : (t5.unshift(s3), Reflect.apply(we.format, null, t5));
3793
+ return Ee2(n3 === t5.length, `Code: ${e5}; The provided arguments length (${t5.length}) does not match the required ones (${n3}).`), 0 === t5.length ? s3 : (t5.unshift(s3), Reflect.apply(we2.format, null, t5));
3794
3794
  })(t4, i3, r3);
3795
3795
  return Object.defineProperties(r3, { message: { value: n2, enumerable: false, writable: true, configurable: true }, toString: { value() {
3796
3796
  return `${this.name} [${t4}]: ${this.message}`;
@@ -3806,8 +3806,8 @@ function requireJiti() {
3806
3806
  const e3 = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
3807
3807
  return void 0 === e3 ? Object.isExtensible(Error) : Ce2.call(e3, "writable") && void 0 !== e3.writable ? e3.writable : void 0 !== e3.set;
3808
3808
  }
3809
- Te.ERR_INVALID_ARG_TYPE = createError2("ERR_INVALID_ARG_TYPE", (e3, t3, i2) => {
3810
- Ee("string" == typeof e3, "'name' must be a string"), Array.isArray(t3) || (t3 = [t3]);
3809
+ Te2.ERR_INVALID_ARG_TYPE = createError2("ERR_INVALID_ARG_TYPE", (e3, t3, i2) => {
3810
+ Ee2("string" == typeof e3, "'name' must be a string"), Array.isArray(t3) || (t3 = [t3]);
3811
3811
  let s2 = "The ";
3812
3812
  if (e3.endsWith(" argument")) s2 += `${e3} `;
3813
3813
  else {
@@ -3816,7 +3816,7 @@ function requireJiti() {
3816
3816
  }
3817
3817
  s2 += "must be ";
3818
3818
  const r3 = [], n2 = [], a2 = [];
3819
- for (const e4 of t3) Ee("string" == typeof e4, "All expected entries have to be of type string"), Pe.has(e4) ? r3.push(e4.toLowerCase()) : null === Re.exec(e4) ? (Ee("object" !== e4, 'The value "object" should be written as "Object"'), a2.push(e4)) : n2.push(e4);
3819
+ for (const e4 of t3) Ee2("string" == typeof e4, "All expected entries have to be of type string"), Pe.has(e4) ? r3.push(e4.toLowerCase()) : null === Re2.exec(e4) ? (Ee2("object" !== e4, 'The value "object" should be written as "Object"'), a2.push(e4)) : n2.push(e4);
3820
3820
  if (n2.length > 0) {
3821
3821
  const e4 = r3.indexOf("object");
3822
3822
  -1 !== e4 && (r3.slice(e4, 1), n2.push("Object"));
@@ -3824,16 +3824,16 @@ function requireJiti() {
3824
3824
  return r3.length > 0 && (s2 += `${r3.length > 1 ? "one of type" : "of type"} ${formatList2(r3, "or")}`, (n2.length > 0 || a2.length > 0) && (s2 += " or ")), n2.length > 0 && (s2 += `an instance of ${formatList2(n2, "or")}`, a2.length > 0 && (s2 += " or ")), a2.length > 0 && (a2.length > 1 ? s2 += `one of ${formatList2(a2, "or")}` : (a2[0].toLowerCase() !== a2[0] && (s2 += "an "), s2 += `${a2[0]}`)), s2 += `. Received ${(function(e4) {
3825
3825
  if (null == e4) return String(e4);
3826
3826
  if ("function" == typeof e4 && e4.name) return `function ${e4.name}`;
3827
- if ("object" == typeof e4) return e4.constructor && e4.constructor.name ? `an instance of ${e4.constructor.name}` : `${(0, we.inspect)(e4, { depth: -1 })}`;
3828
- let t4 = (0, we.inspect)(e4, { colors: false });
3827
+ if ("object" == typeof e4) return e4.constructor && e4.constructor.name ? `an instance of ${e4.constructor.name}` : `${(0, we2.inspect)(e4, { depth: -1 })}`;
3828
+ let t4 = (0, we2.inspect)(e4, { colors: false });
3829
3829
  t4.length > 28 && (t4 = `${t4.slice(0, 25)}...`);
3830
3830
  return `type ${typeof e4} (${t4})`;
3831
3831
  })(i2)}`, s2;
3832
- }, TypeError), Te.ERR_INVALID_MODULE_SPECIFIER = createError2("ERR_INVALID_MODULE_SPECIFIER", (e3, t3, i2 = void 0) => `Invalid module "${e3}" ${t3}${i2 ? ` imported from ${i2}` : ""}`, TypeError), Te.ERR_INVALID_PACKAGE_CONFIG = createError2("ERR_INVALID_PACKAGE_CONFIG", (e3, t3, i2) => `Invalid package config ${e3}${t3 ? ` while importing ${t3}` : ""}${i2 ? `. ${i2}` : ""}`, Error), Te.ERR_INVALID_PACKAGE_TARGET = createError2("ERR_INVALID_PACKAGE_TARGET", (e3, t3, i2, s2 = false, r3 = void 0) => {
3832
+ }, TypeError), Te2.ERR_INVALID_MODULE_SPECIFIER = createError2("ERR_INVALID_MODULE_SPECIFIER", (e3, t3, i2 = void 0) => `Invalid module "${e3}" ${t3}${i2 ? ` imported from ${i2}` : ""}`, TypeError), Te2.ERR_INVALID_PACKAGE_CONFIG = createError2("ERR_INVALID_PACKAGE_CONFIG", (e3, t3, i2) => `Invalid package config ${e3}${t3 ? ` while importing ${t3}` : ""}${i2 ? `. ${i2}` : ""}`, Error), Te2.ERR_INVALID_PACKAGE_TARGET = createError2("ERR_INVALID_PACKAGE_TARGET", (e3, t3, i2, s2 = false, r3 = void 0) => {
3833
3833
  const n2 = "string" == typeof i2 && !s2 && i2.length > 0 && !i2.startsWith("./");
3834
- return "." === t3 ? (Ee(false === s2), `Invalid "exports" main target ${JSON.stringify(i2)} defined in the package config ${e3}package.json${r3 ? ` imported from ${r3}` : ""}${n2 ? '; targets must start with "./"' : ""}`) : `Invalid "${s2 ? "imports" : "exports"}" target ${JSON.stringify(i2)} defined for '${t3}' in the package config ${e3}package.json${r3 ? ` imported from ${r3}` : ""}${n2 ? '; targets must start with "./"' : ""}`;
3835
- }, Error), Te.ERR_MODULE_NOT_FOUND = createError2("ERR_MODULE_NOT_FOUND", (e3, t3, i2 = false) => `Cannot find ${i2 ? "module" : "package"} '${e3}' imported from ${t3}`, Error), Te.ERR_NETWORK_IMPORT_DISALLOWED = createError2("ERR_NETWORK_IMPORT_DISALLOWED", "import of '%s' by %s is not supported: %s", Error), Te.ERR_PACKAGE_IMPORT_NOT_DEFINED = createError2("ERR_PACKAGE_IMPORT_NOT_DEFINED", (e3, t3, i2) => `Package import specifier "${e3}" is not defined${t3 ? ` in package ${t3}package.json` : ""} imported from ${i2}`, TypeError), Te.ERR_PACKAGE_PATH_NOT_EXPORTED = createError2("ERR_PACKAGE_PATH_NOT_EXPORTED", (e3, t3, i2 = void 0) => "." === t3 ? `No "exports" main defined in ${e3}package.json${i2 ? ` imported from ${i2}` : ""}` : `Package subpath '${t3}' is not defined by "exports" in ${e3}package.json${i2 ? ` imported from ${i2}` : ""}`, Error), Te.ERR_UNSUPPORTED_DIR_IMPORT = createError2("ERR_UNSUPPORTED_DIR_IMPORT", "Directory import '%s' is not supported resolving ES modules imported from %s", Error), Te.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError2("ERR_UNSUPPORTED_RESOLVE_REQUEST", 'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.', TypeError), Te.ERR_UNKNOWN_FILE_EXTENSION = createError2("ERR_UNKNOWN_FILE_EXTENSION", (e3, t3) => `Unknown file extension "${e3}" for ${t3}`, TypeError), Te.ERR_INVALID_ARG_VALUE = createError2("ERR_INVALID_ARG_VALUE", (e3, t3, i2 = "is invalid") => {
3836
- let s2 = (0, we.inspect)(t3);
3834
+ return "." === t3 ? (Ee2(false === s2), `Invalid "exports" main target ${JSON.stringify(i2)} defined in the package config ${e3}package.json${r3 ? ` imported from ${r3}` : ""}${n2 ? '; targets must start with "./"' : ""}`) : `Invalid "${s2 ? "imports" : "exports"}" target ${JSON.stringify(i2)} defined for '${t3}' in the package config ${e3}package.json${r3 ? ` imported from ${r3}` : ""}${n2 ? '; targets must start with "./"' : ""}`;
3835
+ }, Error), Te2.ERR_MODULE_NOT_FOUND = createError2("ERR_MODULE_NOT_FOUND", (e3, t3, i2 = false) => `Cannot find ${i2 ? "module" : "package"} '${e3}' imported from ${t3}`, Error), Te2.ERR_NETWORK_IMPORT_DISALLOWED = createError2("ERR_NETWORK_IMPORT_DISALLOWED", "import of '%s' by %s is not supported: %s", Error), Te2.ERR_PACKAGE_IMPORT_NOT_DEFINED = createError2("ERR_PACKAGE_IMPORT_NOT_DEFINED", (e3, t3, i2) => `Package import specifier "${e3}" is not defined${t3 ? ` in package ${t3}package.json` : ""} imported from ${i2}`, TypeError), Te2.ERR_PACKAGE_PATH_NOT_EXPORTED = createError2("ERR_PACKAGE_PATH_NOT_EXPORTED", (e3, t3, i2 = void 0) => "." === t3 ? `No "exports" main defined in ${e3}package.json${i2 ? ` imported from ${i2}` : ""}` : `Package subpath '${t3}' is not defined by "exports" in ${e3}package.json${i2 ? ` imported from ${i2}` : ""}`, Error), Te2.ERR_UNSUPPORTED_DIR_IMPORT = createError2("ERR_UNSUPPORTED_DIR_IMPORT", "Directory import '%s' is not supported resolving ES modules imported from %s", Error), Te2.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError2("ERR_UNSUPPORTED_RESOLVE_REQUEST", 'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.', TypeError), Te2.ERR_UNKNOWN_FILE_EXTENSION = createError2("ERR_UNKNOWN_FILE_EXTENSION", (e3, t3) => `Unknown file extension "${e3}" for ${t3}`, TypeError), Te2.ERR_INVALID_ARG_VALUE = createError2("ERR_INVALID_ARG_VALUE", (e3, t3, i2 = "is invalid") => {
3836
+ let s2 = (0, we2.inspect)(t3);
3837
3837
  s2.length > 128 && (s2 = `${s2.slice(0, 128)}...`);
3838
3838
  return `The ${e3.includes(".") ? "property" : "argument"} '${e3}' ${i2}. Received ${s2}`;
3839
3839
  }, TypeError);
@@ -3842,9 +3842,9 @@ function requireJiti() {
3842
3842
  return Object.defineProperty(e3, "name", { value: t3 }), e3;
3843
3843
  })(function(e3) {
3844
3844
  const t3 = isErrorStackTraceLimitWritable2();
3845
- return t3 && (Ne = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(e3), t3 && (Error.stackTraceLimit = Ne), e3;
3845
+ return t3 && (Ne2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(e3), t3 && (Error.stackTraceLimit = Ne2), e3;
3846
3846
  });
3847
- const Oe = {}.hasOwnProperty, { ERR_INVALID_PACKAGE_CONFIG: De } = Te, Ve = /* @__PURE__ */ new Map();
3847
+ const Oe2 = {}.hasOwnProperty, { ERR_INVALID_PACKAGE_CONFIG: De } = Te2, Ve = /* @__PURE__ */ new Map();
3848
3848
  function read2(e3, { base: t3, specifier: i2 }) {
3849
3849
  const s2 = Ve.get(e3);
3850
3850
  if (s2) return s2;
@@ -3864,7 +3864,7 @@ function requireJiti() {
3864
3864
  const r4 = s4, n3 = new De(e3, (t3 ? `"${i2}" from ` : "") + (0, _e.fileURLToPath)(t3 || i2), r4.message);
3865
3865
  throw n3.cause = r4, n3;
3866
3866
  }
3867
- n2.exists = true, Oe.call(s3, "name") && "string" == typeof s3.name && (n2.name = s3.name), Oe.call(s3, "main") && "string" == typeof s3.main && (n2.main = s3.main), Oe.call(s3, "exports") && (n2.exports = s3.exports), Oe.call(s3, "imports") && (n2.imports = s3.imports), !Oe.call(s3, "type") || "commonjs" !== s3.type && "module" !== s3.type || (n2.type = s3.type);
3867
+ n2.exists = true, Oe2.call(s3, "name") && "string" == typeof s3.name && (n2.name = s3.name), Oe2.call(s3, "main") && "string" == typeof s3.main && (n2.main = s3.main), Oe2.call(s3, "exports") && (n2.exports = s3.exports), Oe2.call(s3, "imports") && (n2.imports = s3.imports), !Oe2.call(s3, "type") || "commonjs" !== s3.type && "module" !== s3.type || (n2.type = s3.type);
3868
3868
  }
3869
3869
  return Ve.set(e3, n2), n2;
3870
3870
  }
@@ -3882,7 +3882,7 @@ function requireJiti() {
3882
3882
  function getPackageType(e3) {
3883
3883
  return getPackageScopeConfig2(e3).type;
3884
3884
  }
3885
- const { ERR_UNKNOWN_FILE_EXTENSION: Ue } = Te, Me = {}.hasOwnProperty, je = { __proto__: null, ".cjs": "commonjs", ".js": "module", ".json": "json", ".mjs": "module" };
3885
+ const { ERR_UNKNOWN_FILE_EXTENSION: Ue } = Te2, Me = {}.hasOwnProperty, je2 = { __proto__: null, ".cjs": "commonjs", ".js": "module", ".json": "json", ".mjs": "module" };
3886
3886
  const Fe = { __proto__: null, "data:": function(e3) {
3887
3887
  const { 1: t3 } = /^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e3.pathname) || [null, null, null];
3888
3888
  return (function(e4) {
@@ -3907,7 +3907,7 @@ function requireJiti() {
3907
3907
  const t4 = getPackageType(e3);
3908
3908
  return "none" === t4 || "commonjs" === t4 ? "commonjs" : "module";
3909
3909
  }
3910
- const r3 = je[s2];
3910
+ const r3 = je2[s2];
3911
3911
  if (r3) return r3;
3912
3912
  if (i2) return;
3913
3913
  const n2 = (0, _e.fileURLToPath)(e3);
@@ -3915,7 +3915,7 @@ function requireJiti() {
3915
3915
  }, "http:": getHttpProtocolModuleFormat, "https:": getHttpProtocolModuleFormat, "node:": () => "builtin" };
3916
3916
  function getHttpProtocolModuleFormat() {
3917
3917
  }
3918
- const Be = RegExp.prototype[Symbol.replace], { ERR_INVALID_MODULE_SPECIFIER: $e, ERR_INVALID_PACKAGE_CONFIG: qe, ERR_INVALID_PACKAGE_TARGET: We, ERR_MODULE_NOT_FOUND: Ge, ERR_PACKAGE_IMPORT_NOT_DEFINED: He, ERR_PACKAGE_PATH_NOT_EXPORTED: Ke, ERR_UNSUPPORTED_DIR_IMPORT: ze, ERR_UNSUPPORTED_RESOLVE_REQUEST: Je } = Te, Ye = {}.hasOwnProperty, Qe = /(^|\\|\/)((\.|%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, Ze = /(^|\\|\/)((\.|%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, Xe = /^\.|%|\\/, et = /\*/g, tt = /%2f|%5c/i, it = /* @__PURE__ */ new Set(), st = /[/\\]{2}/;
3918
+ const Be2 = RegExp.prototype[Symbol.replace], { ERR_INVALID_MODULE_SPECIFIER: $e2, ERR_INVALID_PACKAGE_CONFIG: qe, ERR_INVALID_PACKAGE_TARGET: We, ERR_MODULE_NOT_FOUND: Ge, ERR_PACKAGE_IMPORT_NOT_DEFINED: He, ERR_PACKAGE_PATH_NOT_EXPORTED: Ke, ERR_UNSUPPORTED_DIR_IMPORT: ze, ERR_UNSUPPORTED_RESOLVE_REQUEST: Je } = Te2, Ye = {}.hasOwnProperty, Qe = /(^|\\|\/)((\.|%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, Ze = /(^|\\|\/)((\.|%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, Xe = /^\.|%|\\/, et = /\*/g, tt = /%2f|%5c/i, it = /* @__PURE__ */ new Set(), st = /[/\\]{2}/;
3919
3919
  function emitInvalidSegmentDeprecation2(e3, t3, i2, s2, r3, n2, a2) {
3920
3920
  if (be2.noDeprecation) return;
3921
3921
  const o2 = (0, _e.fileURLToPath)(s2), h3 = null !== st.exec(a2 ? e3 : t3);
@@ -3974,7 +3974,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
3974
3974
  } catch {
3975
3975
  }
3976
3976
  if (!i3) {
3977
- return packageResolve2(n2 ? Be.call(et, e3, () => t3) : e3 + t3, s2, h3);
3977
+ return packageResolve2(n2 ? Be2.call(et, e3, () => t3) : e3 + t3, s2, h3);
3978
3978
  }
3979
3979
  }
3980
3980
  throw invalidPackageTarget2(i2, e3, s2, a2, r3);
@@ -3983,7 +3983,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
3983
3983
  if (null !== Ze.exec(e3.slice(2))) throw invalidPackageTarget2(i2, e3, s2, a2, r3);
3984
3984
  if (!o2) {
3985
3985
  const o3 = n2 ? i2.replace("*", () => t3) : i2 + t3;
3986
- emitInvalidSegmentDeprecation2(n2 ? Be.call(et, e3, () => t3) : e3, o3, i2, s2, a2, r3, true);
3986
+ emitInvalidSegmentDeprecation2(n2 ? Be2.call(et, e3, () => t3) : e3, o3, i2, s2, a2, r3, true);
3987
3987
  }
3988
3988
  }
3989
3989
  const c2 = new _e.URL(e3, s2), p3 = c2.pathname, l2 = new _e.URL(".", s2).pathname;
@@ -3993,14 +3993,14 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
3993
3993
  const h4 = n2 ? i2.replace("*", () => t3) : i2 + t3;
3994
3994
  if (null === Ze.exec(t3)) {
3995
3995
  if (!o2) {
3996
- emitInvalidSegmentDeprecation2(n2 ? Be.call(et, e3, () => t3) : e3, h4, i2, s2, a2, r3, false);
3996
+ emitInvalidSegmentDeprecation2(n2 ? Be2.call(et, e3, () => t3) : e3, h4, i2, s2, a2, r3, false);
3997
3997
  }
3998
3998
  } else !(function(e4, t4, i3, s3, r4) {
3999
3999
  const n3 = `request is not a valid match in pattern "${t4}" for the "${s3 ? "imports" : "exports"}" resolution of ${(0, _e.fileURLToPath)(i3)}`;
4000
- throw new $e(e4, n3, r4 && (0, _e.fileURLToPath)(r4));
4000
+ throw new $e2(e4, n3, r4 && (0, _e.fileURLToPath)(r4));
4001
4001
  })(h4, i2, s2, a2, r3);
4002
4002
  }
4003
- return n2 ? new _e.URL(Be.call(et, c2.href, () => t3)) : new _e.URL(t3, c2);
4003
+ return n2 ? new _e.URL(Be2.call(et, c2.href, () => t3)) : new _e.URL(t3, c2);
4004
4004
  }
4005
4005
  function isArrayIndex2(e3) {
4006
4006
  const t3 = Number(e3);
@@ -4095,7 +4095,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4095
4095
  }
4096
4096
  function packageImportsResolve2(e3, t3, i2) {
4097
4097
  if ("#" === e3 || e3.startsWith("#/") || e3.endsWith("/")) {
4098
- throw new $e(e3, "is not a valid internal imports specifier name", (0, _e.fileURLToPath)(t3));
4098
+ throw new $e2(e3, "is not a valid internal imports specifier name", (0, _e.fileURLToPath)(t3));
4099
4099
  }
4100
4100
  let s2;
4101
4101
  const r3 = getPackageScopeConfig2(t3);
@@ -4132,7 +4132,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4132
4132
  let i3 = e4.indexOf("/"), s3 = true, r4 = false;
4133
4133
  "@" === e4[0] && (r4 = true, -1 === i3 || 0 === e4.length ? s3 = false : i3 = e4.indexOf("/", i3 + 1));
4134
4134
  const n3 = -1 === i3 ? e4 : e4.slice(0, i3);
4135
- if (null !== Xe.exec(n3) && (s3 = false), !s3) throw new $e(e4, "is not a valid package name", (0, _e.fileURLToPath)(t4));
4135
+ if (null !== Xe.exec(n3) && (s3 = false), !s3) throw new $e2(e4, "is not a valid package name", (0, _e.fileURLToPath)(t4));
4136
4136
  return { packageName: n3, packageSubpath: "." + (-1 === i3 ? "" : e4.slice(i3)), isScoped: r4 };
4137
4137
  })(e3, t3), a2 = getPackageScopeConfig2(t3);
4138
4138
  if (a2.exists) {
@@ -4178,8 +4178,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4178
4178
  }
4179
4179
  a2 = packageResolve2(e3, t3, i2);
4180
4180
  }
4181
- return Ee(void 0 !== a2, "expected to be defined"), "file:" !== a2.protocol ? a2 : (function(e4, t4) {
4182
- if (null !== tt.exec(e4.pathname)) throw new $e(e4.pathname, 'must not include encoded "/" or "\\" characters', (0, _e.fileURLToPath)(t4));
4181
+ return Ee2(void 0 !== a2, "expected to be defined"), "file:" !== a2.protocol ? a2 : (function(e4, t4) {
4182
+ if (null !== tt.exec(e4.pathname)) throw new $e2(e4.pathname, 'must not include encoded "/" or "\\" characters', (0, _e.fileURLToPath)(t4));
4183
4183
  let i3;
4184
4184
  try {
4185
4185
  i3 = (0, _e.fileURLToPath)(e4);
@@ -4540,9 +4540,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4540
4540
  }
4541
4541
  const u2 = new le2.Module(r3);
4542
4542
  u2.filename = r3, e3.parentModule && (u2.parent = e3.parentModule, Array.isArray(e3.parentModule.children) && !e3.parentModule.children.includes(u2) && e3.parentModule.children.push(u2));
4543
- const d2 = createJiti2(r3, e3.opts, { parentModule: u2, parentCache: a2, nativeImport: e3.nativeImport, onError: e3.onError, createRequire: e3.createRequire }, true);
4543
+ const d3 = createJiti2(r3, e3.opts, { parentModule: u2, parentCache: a2, nativeImport: e3.nativeImport, onError: e3.onError, createRequire: e3.createRequire }, true);
4544
4544
  let f2;
4545
- u2.require = d2, u2.path = pathe_M_eThtNZ_dirname(r3), u2.paths = le2.Module._nodeModulePaths(u2.path), a2[r3] = u2, e3.opts.moduleCache && (e3.nativeRequire.cache[r3] = u2);
4545
+ u2.require = d3, u2.path = pathe_M_eThtNZ_dirname(r3), u2.paths = le2.Module._nodeModulePaths(u2.path), a2[r3] = u2, e3.opts.moduleCache && (e3.nativeRequire.cache[r3] = u2);
4546
4546
  const m3 = (function(e4, t4) {
4547
4547
  return `(${t4?.async ? "async " : ""}function (exports, require, module, __filename, __dirname, jitiImport, jitiESMResolve) { ${e4}
4548
4548
  });`;
@@ -4557,7 +4557,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4557
4557
  }
4558
4558
  let g3;
4559
4559
  try {
4560
- g3 = f2(u2.exports, u2.require, u2, u2.filename, pathe_M_eThtNZ_dirname(u2.filename), d2.import, d2.esmResolve);
4560
+ g3 = f2(u2.exports, u2.require, u2, u2.filename, pathe_M_eThtNZ_dirname(u2.filename), d3.import, d3.esmResolve);
4561
4561
  } catch (t4) {
4562
4562
  e3.opts.moduleCache && delete e3.nativeRequire.cache[r3], e3.onError(t4);
4563
4563
  }
@@ -4581,18 +4581,18 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4581
4581
  return void 0 !== e4.cache && (i3.fsCache = e4.cache), void 0 !== e4.requireCache && (i3.moduleCache = e4.requireCache), { ...t4, ...i3, ...e4 };
4582
4582
  })(t3), n2 = r3.alias && Object.keys(r3.alias).length > 0 ? normalizeAliases(r3.alias || {}) : void 0, a2 = ["typescript", "jiti", ...r3.nativeModules || []], o2 = new RegExp(`node_modules/(${a2.map((e4) => escapeStringRegexp(e4)).join("|")})/`), h3 = [...r3.transformModules || []], c2 = new RegExp(`node_modules/(${h3.map((e4) => escapeStringRegexp(e4)).join("|")})/`);
4583
4583
  e3 || (e3 = process.cwd()), !s2 && isDir(e3) && (e3 = pathe_M_eThtNZ_join(e3, "_index.js"));
4584
- const p3 = pathToFileURL2(e3), l2 = [...r3.extensions].filter((e4) => ".js" !== e4), u2 = i2.createRequire(Jt ? e3.replace(/\//g, "\\") : e3), d2 = { filename: e3, url: p3, opts: r3, alias: n2, nativeModules: a2, transformModules: h3, isNativeRe: o2, isTransformRe: c2, additionalExts: l2, nativeRequire: u2, onError: i2.onError, parentModule: i2.parentModule, parentCache: i2.parentCache, nativeImport: i2.nativeImport, createRequire: i2.createRequire };
4585
- s2 || debug(d2, "[init]", ...[["version:", ut.rE], ["module-cache:", r3.moduleCache], ["fs-cache:", r3.fsCache], ["rebuild-fs-cache:", r3.rebuildFsCache], ["interop-defaults:", r3.interopDefault]].flat()), s2 || prepareCacheDir(d2);
4584
+ const p3 = pathToFileURL2(e3), l2 = [...r3.extensions].filter((e4) => ".js" !== e4), u2 = i2.createRequire(Jt ? e3.replace(/\//g, "\\") : e3), d3 = { filename: e3, url: p3, opts: r3, alias: n2, nativeModules: a2, transformModules: h3, isNativeRe: o2, isTransformRe: c2, additionalExts: l2, nativeRequire: u2, onError: i2.onError, parentModule: i2.parentModule, parentCache: i2.parentCache, nativeImport: i2.nativeImport, createRequire: i2.createRequire };
4585
+ s2 || debug(d3, "[init]", ...[["version:", ut.rE], ["module-cache:", r3.moduleCache], ["fs-cache:", r3.fsCache], ["rebuild-fs-cache:", r3.rebuildFsCache], ["interop-defaults:", r3.interopDefault]].flat()), s2 || prepareCacheDir(d3);
4586
4586
  const f2 = Object.assign(function(e4) {
4587
- return jitiRequire(d2, e4, { async: false });
4587
+ return jitiRequire(d3, e4, { async: false });
4588
4588
  }, { cache: r3.moduleCache ? u2.cache : /* @__PURE__ */ Object.create(null), extensions: u2.extensions, main: u2.main, options: r3, resolve: Object.assign(function(e4) {
4589
- return jitiResolve(d2, e4, { async: false });
4590
- }, { paths: u2.resolve.paths }), transform: (e4) => transform(d2, e4), evalModule: (e4, t4) => eval_evalModule(d2, e4, t4), async import(e4, t4) {
4591
- const i3 = await jitiRequire(d2, e4, { ...t4, async: true });
4589
+ return jitiResolve(d3, e4, { async: false });
4590
+ }, { paths: u2.resolve.paths }), transform: (e4) => transform(d3, e4), evalModule: (e4, t4) => eval_evalModule(d3, e4, t4), async import(e4, t4) {
4591
+ const i3 = await jitiRequire(d3, e4, { ...t4, async: true });
4592
4592
  return t4?.default ? i3?.default ?? i3 : i3;
4593
4593
  }, esmResolve(e4, t4) {
4594
4594
  "string" == typeof t4 && (t4 = { parentURL: t4 });
4595
- const i3 = jitiResolve(d2, e4, { parentURL: p3, ...t4, async: true });
4595
+ const i3 = jitiResolve(d3, e4, { parentURL: p3, ...t4, async: true });
4596
4596
  return !i3 || "string" != typeof i3 || i3.startsWith("file://") ? i3 : pathToFileURL2(i3);
4597
4597
  } });
4598
4598
  return f2;
@@ -4901,17 +4901,17 @@ function readUser(options) {
4901
4901
  options.dir = process.env.XDG_CONFIG_HOME || homedir();
4902
4902
  return read(options);
4903
4903
  }
4904
- const m$1 = Symbol.for("__confbox_fmt__"), k$2 = /^(\s+)/, v = /(\s+)$/;
4904
+ const m = Symbol.for("__confbox_fmt__"), k$1 = /^(\s+)/, v$2 = /(\s+)$/;
4905
4905
  function x$2(e, t = {}) {
4906
- const n = t.indent === void 0 && t.preserveIndentation !== false && e.slice(0, t?.sampleSize || 1024), s = t.preserveWhitespace === false ? void 0 : { start: k$2.exec(e)?.[0] || "", end: v.exec(e)?.[0] || "" };
4906
+ const n = t.indent === void 0 && t.preserveIndentation !== false && e.slice(0, t?.sampleSize || 1024), s = t.preserveWhitespace === false ? void 0 : { start: k$1.exec(e)?.[0] || "", end: v$2.exec(e)?.[0] || "" };
4907
4907
  return { sample: n, whiteSpace: s };
4908
4908
  }
4909
4909
  function N$2(e, t, n) {
4910
- !t || typeof t != "object" || Object.defineProperty(t, m$1, { enumerable: false, configurable: true, writable: true, value: x$2(e, n) });
4910
+ !t || typeof t != "object" || Object.defineProperty(t, m, { enumerable: false, configurable: true, writable: true, value: x$2(e, n) });
4911
4911
  }
4912
- function $$2(n, l = false) {
4912
+ function $$1(n, l = false) {
4913
4913
  const g2 = n.length;
4914
- let e = 0, u = "", p2 = 0, k2 = 16, A2 = 0, o = 0, O2 = 0, B2 = 0, b2 = 0;
4914
+ let e = 0, u = "", p2 = 0, k2 = 16, A2 = 0, o = 0, O2 = 0, B2 = 0, b = 0;
4915
4915
  function I2(i, T2) {
4916
4916
  let s = 0, c = 0;
4917
4917
  for (; s < i; ) {
@@ -4925,26 +4925,26 @@ function $$2(n, l = false) {
4925
4925
  return s < i && (c = -1), c;
4926
4926
  }
4927
4927
  function V2(i) {
4928
- e = i, u = "", p2 = 0, k2 = 16, b2 = 0;
4928
+ e = i, u = "", p2 = 0, k2 = 16, b = 0;
4929
4929
  }
4930
4930
  function F2() {
4931
4931
  let i = e;
4932
4932
  if (n.charCodeAt(e) === 48) e++;
4933
- else for (e++; e < n.length && L$1(n.charCodeAt(e)); ) e++;
4934
- if (e < n.length && n.charCodeAt(e) === 46) if (e++, e < n.length && L$1(n.charCodeAt(e))) for (e++; e < n.length && L$1(n.charCodeAt(e)); ) e++;
4935
- else return b2 = 3, n.substring(i, e);
4933
+ else for (e++; e < n.length && L$2(n.charCodeAt(e)); ) e++;
4934
+ if (e < n.length && n.charCodeAt(e) === 46) if (e++, e < n.length && L$2(n.charCodeAt(e))) for (e++; e < n.length && L$2(n.charCodeAt(e)); ) e++;
4935
+ else return b = 3, n.substring(i, e);
4936
4936
  let T2 = e;
4937
- if (e < n.length && (n.charCodeAt(e) === 69 || n.charCodeAt(e) === 101)) if (e++, (e < n.length && n.charCodeAt(e) === 43 || n.charCodeAt(e) === 45) && e++, e < n.length && L$1(n.charCodeAt(e))) {
4938
- for (e++; e < n.length && L$1(n.charCodeAt(e)); ) e++;
4937
+ if (e < n.length && (n.charCodeAt(e) === 69 || n.charCodeAt(e) === 101)) if (e++, (e < n.length && n.charCodeAt(e) === 43 || n.charCodeAt(e) === 45) && e++, e < n.length && L$2(n.charCodeAt(e))) {
4938
+ for (e++; e < n.length && L$2(n.charCodeAt(e)); ) e++;
4939
4939
  T2 = e;
4940
- } else b2 = 3;
4940
+ } else b = 3;
4941
4941
  return n.substring(i, T2);
4942
4942
  }
4943
4943
  function a() {
4944
4944
  let i = "", T2 = e;
4945
4945
  for (; ; ) {
4946
4946
  if (e >= g2) {
4947
- i += n.substring(T2, e), b2 = 2;
4947
+ i += n.substring(T2, e), b = 2;
4948
4948
  break;
4949
4949
  }
4950
4950
  const s = n.charCodeAt(e);
@@ -4954,7 +4954,7 @@ function $$2(n, l = false) {
4954
4954
  }
4955
4955
  if (s === 92) {
4956
4956
  if (i += n.substring(T2, e), e++, e >= g2) {
4957
- b2 = 2;
4957
+ b = 2;
4958
4958
  break;
4959
4959
  }
4960
4960
  switch (n.charCodeAt(e++)) {
@@ -4985,24 +4985,24 @@ function $$2(n, l = false) {
4985
4985
  break;
4986
4986
  case 117:
4987
4987
  const t = I2(4);
4988
- t >= 0 ? i += String.fromCharCode(t) : b2 = 4;
4988
+ t >= 0 ? i += String.fromCharCode(t) : b = 4;
4989
4989
  break;
4990
4990
  default:
4991
- b2 = 5;
4991
+ b = 5;
4992
4992
  }
4993
4993
  T2 = e;
4994
4994
  continue;
4995
4995
  }
4996
4996
  if (s >= 0 && s <= 31) if (r(s)) {
4997
- i += n.substring(T2, e), b2 = 2;
4997
+ i += n.substring(T2, e), b = 2;
4998
4998
  break;
4999
- } else b2 = 6;
4999
+ } else b = 6;
5000
5000
  e++;
5001
5001
  }
5002
5002
  return i;
5003
5003
  }
5004
5004
  function w2() {
5005
- if (u = "", b2 = 0, p2 = e, o = A2, B2 = O2, e >= g2) return p2 = g2, k2 = 17;
5005
+ if (u = "", b = 0, p2 = e, o = A2, B2 = O2, e >= g2) return p2 = g2, k2 = 17;
5006
5006
  let i = n.charCodeAt(e);
5007
5007
  if (J$2(i)) {
5008
5008
  do
@@ -5045,11 +5045,11 @@ function $$2(n, l = false) {
5045
5045
  }
5046
5046
  e++, r(t) && (t === 13 && n.charCodeAt(e) === 10 && e++, A2++, O2 = e);
5047
5047
  }
5048
- return c || (e++, b2 = 1), u = n.substring(T2, e), k2 = 13;
5048
+ return c || (e++, b = 1), u = n.substring(T2, e), k2 = 13;
5049
5049
  }
5050
5050
  return u += String.fromCharCode(i), e++, k2 = 16;
5051
5051
  case 45:
5052
- if (u += String.fromCharCode(i), e++, e === g2 || !L$1(n.charCodeAt(e))) return k2 = 16;
5052
+ if (u += String.fromCharCode(i), e++, e === g2 || !L$2(n.charCodeAt(e))) return k2 = 16;
5053
5053
  case 48:
5054
5054
  case 49:
5055
5055
  case 50:
@@ -5099,7 +5099,7 @@ function $$2(n, l = false) {
5099
5099
  while (i >= 12 && i <= 15);
5100
5100
  return i;
5101
5101
  }
5102
- return { setPosition: V2, getPosition: () => e, scan: l ? j2 : w2, getToken: () => k2, getTokenValue: () => u, getTokenOffset: () => p2, getTokenLength: () => e - p2, getTokenStartLine: () => o, getTokenStartCharacter: () => p2 - B2, getTokenError: () => b2 };
5102
+ return { setPosition: V2, getPosition: () => e, scan: l ? j2 : w2, getToken: () => k2, getTokenValue: () => u, getTokenOffset: () => p2, getTokenLength: () => e - p2, getTokenStartLine: () => o, getTokenStartCharacter: () => p2 - B2, getTokenError: () => b };
5103
5103
  }
5104
5104
  function J$2(n) {
5105
5105
  return n === 32 || n === 9;
@@ -5107,7 +5107,7 @@ function J$2(n) {
5107
5107
  function r(n) {
5108
5108
  return n === 10 || n === 13;
5109
5109
  }
5110
- function L$1(n) {
5110
+ function L$2(n) {
5111
5111
  return n >= 48 && n <= 57;
5112
5112
  }
5113
5113
  var Q$2;
@@ -5120,11 +5120,11 @@ new Array(N$1).fill(0).map((n, l) => `
5120
5120
  ` + " ".repeat(l)), new Array(N$1).fill(0).map((n, l) => `
5121
5121
  ` + " ".repeat(l)), new Array(N$1).fill(0).map((n, l) => "\r" + " ".repeat(l)), new Array(N$1).fill(0).map((n, l) => `\r
5122
5122
  ` + " ".repeat(l));
5123
- var U$2;
5123
+ var U$1;
5124
5124
  (function(n) {
5125
5125
  n.DEFAULT = { allowTrailingComma: false };
5126
- })(U$2 || (U$2 = {}));
5127
- function S$2(n, l = [], g2 = U$2.DEFAULT) {
5126
+ })(U$1 || (U$1 = {}));
5127
+ function S$1(n, l = [], g2 = U$1.DEFAULT) {
5128
5128
  let e = null, u = [];
5129
5129
  const p2 = [];
5130
5130
  function k2(o) {
@@ -5146,8 +5146,8 @@ function S$2(n, l = [], g2 = U$2.DEFAULT) {
5146
5146
  l.push({ error: o, offset: O2, length: B2 });
5147
5147
  } }, g2), u[0];
5148
5148
  }
5149
- function P$2(n, l, g2 = U$2.DEFAULT) {
5150
- const e = $$2(n, false), u = [];
5149
+ function P$2(n, l, g2 = U$1.DEFAULT) {
5150
+ const e = $$1(n, false), u = [];
5151
5151
  let p2 = 0;
5152
5152
  function k2(f) {
5153
5153
  return f ? () => p2 === 0 && f(e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter()) : () => true;
@@ -5168,7 +5168,7 @@ function P$2(n, l, g2 = U$2.DEFAULT) {
5168
5168
  p2 > 0 && p2--, p2 === 0 && f(e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter());
5169
5169
  } : () => true;
5170
5170
  }
5171
- const b2 = O2(l.onObjectBegin), I2 = o(l.onObjectProperty), V2 = B2(l.onObjectEnd), F2 = O2(l.onArrayBegin), a = B2(l.onArrayEnd), w2 = o(l.onLiteralValue), v2 = A2(l.onSeparator), j2 = k2(l.onComment), i = A2(l.onError), T2 = g2 && g2.disallowComments, s = g2 && g2.allowTrailingComma;
5171
+ const b = O2(l.onObjectBegin), I2 = o(l.onObjectProperty), V2 = B2(l.onObjectEnd), F2 = O2(l.onArrayBegin), a = B2(l.onArrayEnd), w2 = o(l.onLiteralValue), v2 = A2(l.onSeparator), j2 = k2(l.onComment), i = A2(l.onError), T2 = g2 && g2.disallowComments, s = g2 && g2.allowTrailingComma;
5172
5172
  function c() {
5173
5173
  for (; ; ) {
5174
5174
  const f = e.scan();
@@ -5249,7 +5249,7 @@ function P$2(n, l, g2 = U$2.DEFAULT) {
5249
5249
  return e.getToken() !== 10 ? (t(3, [], [2, 5]), false) : (D2(false), e.getToken() === 6 ? (v2(":"), c(), E2() || t(4, [], [2, 5])) : t(5, [], [2, 5]), u.pop(), true);
5250
5250
  }
5251
5251
  function X2() {
5252
- b2(), c();
5252
+ b(), c();
5253
5253
  let f = false;
5254
5254
  for (; e.getToken() !== 2 && e.getToken() !== 17; ) {
5255
5255
  if (e.getToken() === 5) {
@@ -5288,11 +5288,11 @@ var W$2;
5288
5288
  (function(n) {
5289
5289
  n[n.None = 0] = "None", n[n.UnexpectedEndOfComment = 1] = "UnexpectedEndOfComment", n[n.UnexpectedEndOfString = 2] = "UnexpectedEndOfString", n[n.UnexpectedEndOfNumber = 3] = "UnexpectedEndOfNumber", n[n.InvalidUnicode = 4] = "InvalidUnicode", n[n.InvalidEscapeCharacter = 5] = "InvalidEscapeCharacter", n[n.InvalidCharacter = 6] = "InvalidCharacter";
5290
5290
  })(W$2 || (W$2 = {}));
5291
- var H$2;
5291
+ var H$1;
5292
5292
  (function(n) {
5293
5293
  n[n.OpenBraceToken = 1] = "OpenBraceToken", n[n.CloseBraceToken = 2] = "CloseBraceToken", n[n.OpenBracketToken = 3] = "OpenBracketToken", n[n.CloseBracketToken = 4] = "CloseBracketToken", n[n.CommaToken = 5] = "CommaToken", n[n.ColonToken = 6] = "ColonToken", n[n.NullKeyword = 7] = "NullKeyword", n[n.TrueKeyword = 8] = "TrueKeyword", n[n.FalseKeyword = 9] = "FalseKeyword", n[n.StringLiteral = 10] = "StringLiteral", n[n.NumericLiteral = 11] = "NumericLiteral", n[n.LineCommentTrivia = 12] = "LineCommentTrivia", n[n.BlockCommentTrivia = 13] = "BlockCommentTrivia", n[n.LineBreakTrivia = 14] = "LineBreakTrivia", n[n.Trivia = 15] = "Trivia", n[n.Unknown = 16] = "Unknown", n[n.EOF = 17] = "EOF";
5294
- })(H$2 || (H$2 = {}));
5295
- const K$2 = S$2;
5294
+ })(H$1 || (H$1 = {}));
5295
+ const K$2 = S$1;
5296
5296
  var q$2;
5297
5297
  (function(n) {
5298
5298
  n[n.InvalidSymbol = 1] = "InvalidSymbol", n[n.InvalidNumberFormat = 2] = "InvalidNumberFormat", n[n.PropertyNameExpected = 3] = "PropertyNameExpected", n[n.ValueExpected = 4] = "ValueExpected", n[n.ColonExpected = 5] = "ColonExpected", n[n.CommaExpected = 6] = "CommaExpected", n[n.CloseBraceExpected = 7] = "CloseBraceExpected", n[n.CloseBracketExpected = 8] = "CloseBracketExpected", n[n.EndOfFileExpected = 9] = "EndOfFileExpected", n[n.InvalidCommentToken = 10] = "InvalidCommentToken", n[n.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", n[n.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", n[n.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", n[n.InvalidUnicode = 14] = "InvalidUnicode", n[n.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", n[n.InvalidCharacter = 16] = "InvalidCharacter";
@@ -5301,7 +5301,7 @@ function x$1(n, l) {
5301
5301
  const g2 = JSON.parse(n, l?.reviver);
5302
5302
  return N$2(n, g2, l), g2;
5303
5303
  }
5304
- function h(n, l) {
5304
+ function h$1(n, l) {
5305
5305
  const g2 = K$2(n, l?.errors, l);
5306
5306
  return N$2(n, g2, l), g2;
5307
5307
  }
@@ -5402,7 +5402,7 @@ async function readPackageJSON(id, options = {}) {
5402
5402
  try {
5403
5403
  parsed = x$1(blob);
5404
5404
  } catch {
5405
- parsed = h(blob);
5405
+ parsed = h$1(blob);
5406
5406
  }
5407
5407
  cache2.set(resolvedPath, parsed);
5408
5408
  return parsed;
@@ -5449,7 +5449,7 @@ var hasRequiredMain;
5449
5449
  function requireMain() {
5450
5450
  if (hasRequiredMain) return main.exports;
5451
5451
  hasRequiredMain = 1;
5452
- const fs2 = V$1;
5452
+ const fs2 = V$2;
5453
5453
  const path2 = sysPath;
5454
5454
  const os = require$$2;
5455
5455
  const crypto2 = require$$3;
@@ -5869,11 +5869,11 @@ function getDotEnvVars(targetEnvironment) {
5869
5869
  }
5870
5870
  const _normalize = (p2) => p2?.replace(/\\/g, "/");
5871
5871
  const ASYNC_LOADERS = {
5872
- ".yaml": () => import("./yaml-VCOw0LQd.js").then((r2) => r2.parseYAML),
5873
- ".yml": () => import("./yaml-VCOw0LQd.js").then((r2) => r2.parseYAML),
5874
- ".jsonc": () => import("./jsonc-vOBrObxl.js").then((r2) => r2.parseJSONC),
5875
- ".json5": () => import("./json5-DmfAJeEV.js").then((r2) => r2.parseJSON5),
5876
- ".toml": () => import("./toml-DNCZMGE5.js").then((r2) => r2.parseTOML)
5872
+ ".yaml": () => import("./yaml-BX37kW78.js").then((r2) => r2.parseYAML),
5873
+ ".yml": () => import("./yaml-BX37kW78.js").then((r2) => r2.parseYAML),
5874
+ ".jsonc": () => import("./jsonc-C57oN-bL.js").then((r2) => r2.parseJSONC),
5875
+ ".json5": () => import("./json5-Q4GKEAId.js").then((r2) => r2.parseJSON5),
5876
+ ".toml": () => import("./toml-CXkw0Vj1.js").then((r2) => r2.parseTOML)
5877
5877
  };
5878
5878
  const SUPPORTED_EXTENSIONS = Object.freeze([
5879
5879
  // with jiti
@@ -6087,7 +6087,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
6087
6087
  ).map((key) => `${key}:`);
6088
6088
  const gigetPrefixes = customProviderKeys.length > 0 ? [.../* @__PURE__ */ new Set([...customProviderKeys, ...GIGET_PREFIXES])] : GIGET_PREFIXES;
6089
6089
  if (options.giget !== false && gigetPrefixes.some((prefix) => source.startsWith(prefix))) {
6090
- const { downloadTemplate } = await import("./index-ywNS35f6.js").then((n) => n.i);
6090
+ const { downloadTemplate } = await import("./index-D8fAxJpn.js").then((n) => n.i);
6091
6091
  const { digest } = await import("./index-B2xSBfiT.js");
6092
6092
  const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + digest(source).slice(0, 10).replace(/[-_]/g, "");
6093
6093
  let cloneDir;
@@ -6178,164 +6178,193 @@ function tryResolve(id, options) {
6178
6178
  });
6179
6179
  return res ? normalize(res) : void 0;
6180
6180
  }
6181
- const N = ["charset", "import", "namespace"], R$1 = ["layer"], D$1 = ({ name: e }) => `[data-theme="${e}"]`, I = ({
6181
+ const N = ["charset", "import", "namespace"], D$1 = ["layer"], L$1 = ({ name: e }) => `[data-theme="${e}"]`, I$1 = ({
6182
6182
  name: e,
6183
6183
  value: t,
6184
- modifiers: n
6185
- }) => `._${[...n, e, t].filter(Boolean).join("\\:")}`, w = ({ name: e }) => e;
6186
- function L(e, t) {
6184
+ modifiers: r2
6185
+ }) => `._${[...r2, e, ...t === "default" ? [] : [t]].filter(Boolean).join("\\:")}`, w = ({ name: e }) => e.replace(/^\.+|\.+$/g, "").replace(/\.+/g, "--");
6186
+ function U(e, t) {
6187
6187
  return `@${e}${t ? " " : ""}${t}`;
6188
6188
  }
6189
- const P$1 = /\d/, M$1 = ["-", "_", "/", "."];
6190
- function $$1(e = "") {
6191
- if (!P$1.test(e))
6189
+ const _ = /\d/, P$1 = ["-", "_", "/", "."];
6190
+ function M(e = "") {
6191
+ if (!_.test(e))
6192
6192
  return e !== e.toLowerCase();
6193
6193
  }
6194
- function U$1(e, t) {
6195
- const n = M$1, r2 = [];
6194
+ function $(e, t) {
6195
+ const r2 = P$1, n = [];
6196
6196
  if (!e || typeof e != "string")
6197
- return r2;
6198
- let c = "", a, i;
6199
- for (const s of e) {
6200
- const o = n.includes(s);
6201
- if (o === true) {
6202
- r2.push(c), c = "", a = void 0;
6197
+ return n;
6198
+ let o = "", s, i;
6199
+ for (const a of e) {
6200
+ const c = r2.includes(a);
6201
+ if (c === true) {
6202
+ n.push(o), o = "", s = void 0;
6203
6203
  continue;
6204
6204
  }
6205
- const u = $$1(s);
6205
+ const u = M(a);
6206
6206
  if (i === false) {
6207
- if (a === false && u === true) {
6208
- r2.push(c), c = s, a = u;
6207
+ if (s === false && u === true) {
6208
+ n.push(o), o = a, s = u;
6209
6209
  continue;
6210
6210
  }
6211
- if (a === true && u === false && c.length > 1) {
6212
- const f = c.at(-1);
6213
- r2.push(c.slice(0, Math.max(0, c.length - 1))), c = f + s, a = u;
6211
+ if (s === true && u === false && o.length > 1) {
6212
+ const f = o.at(-1);
6213
+ n.push(o.slice(0, Math.max(0, o.length - 1))), o = f + a, s = u;
6214
6214
  continue;
6215
6215
  }
6216
6216
  }
6217
- c += s, a = u, i = o;
6217
+ o += a, s = u, i = c;
6218
6218
  }
6219
- return r2.push(c), r2;
6219
+ return n.push(o), n;
6220
6220
  }
6221
- function _$1(e, t) {
6222
- return e ? (Array.isArray(e) ? e : U$1(e)).map((n) => n.toLowerCase()).join("-") : "";
6221
+ function k(e) {
6222
+ return e ? e[0].toUpperCase() + e.slice(1) : "";
6223
6223
  }
6224
- function k$1(e) {
6224
+ function x(e) {
6225
+ return e ? e[0].toLowerCase() + e.slice(1) : "";
6226
+ }
6227
+ function V$1(e, t) {
6228
+ return e ? (Array.isArray(e) ? e : $(e)).map((r2) => k(r2)).join("") : "";
6229
+ }
6230
+ function q$1(e, t) {
6231
+ return x(V$1(e || ""));
6232
+ }
6233
+ function K$1(e, t) {
6234
+ return e ? (Array.isArray(e) ? e : $(e)).map((r2) => r2.toLowerCase()).join("-") : "";
6235
+ }
6236
+ function z$1(e) {
6225
6237
  return ` ${e}`;
6226
6238
  }
6227
- function V(e) {
6239
+ function H(e) {
6228
6240
  return e.split(`
6229
- `).map((t) => k$1(t)).join(`
6241
+ `).map((t) => z$1(t)).join(`
6230
6242
  `);
6231
6243
  }
6232
- function x(e) {
6233
- return _$1(e);
6244
+ function Q$1(e) {
6245
+ return e === e.toUpperCase();
6246
+ }
6247
+ function Z$1(e) {
6248
+ return q$1(e);
6249
+ }
6250
+ function J$1(e) {
6251
+ return K$1(e);
6234
6252
  }
6235
- function K$1(e) {
6236
- return x(e);
6253
+ function W$1(e) {
6254
+ return J$1(e);
6237
6255
  }
6238
- function B$1(e, t) {
6239
- return `${e.startsWith("--") ? e : K$1(e)}: ${t};`;
6256
+ function O(e, t) {
6257
+ return `${e.startsWith("--") ? e : W$1(e)}: ${t};`;
6240
6258
  }
6241
- function q$1(e) {
6259
+ function G$1(e) {
6242
6260
  return `{${e.length > 0 ? `
6243
- ` : ""}${e.map((t) => `${V(`${t}`)}
6261
+ ` : ""}${e.map((t) => `${H(`${t}`)}
6244
6262
  `).join("")}}`;
6245
6263
  }
6246
- function O$1(e) {
6264
+ function B(e) {
6247
6265
  return `--${(e.startsWith("--") ? e.slice(2) : e).replace(/[^a-zA-Z0-9_\-\u0080-\uFFFF]/g, "-") || "unknown-variable"}`;
6248
6266
  }
6249
- function z$1(e, t) {
6250
- return B$1(O$1(e), t);
6267
+ function Y$1(e, t) {
6268
+ return O(B(e), t);
6251
6269
  }
6252
- function H$1(e, t) {
6253
- return `var(${O$1(e)}${t ? `, ${t}` : ""})`;
6270
+ function X$1(e, t) {
6271
+ return `var(${B(e)}${t ? `, ${t}` : ""})`;
6254
6272
  }
6255
- function C$1(e, t) {
6256
- return `${e} ${q$1(t)}`;
6273
+ function v$1(e, t) {
6274
+ return `${e} ${G$1(t)}`;
6257
6275
  }
6258
- function Q$1(e) {
6259
- return function(n, r2) {
6260
- return Object.entries(n).map(([c, a]) => B$1(c, e(a, r2)));
6276
+ function ee$1(e) {
6277
+ return function(r2, n) {
6278
+ return Object.entries(r2).map(([o, s]) => O(o, e(s, n)));
6261
6279
  };
6262
6280
  }
6263
6281
  function E$1(e) {
6264
- return function(n, r2) {
6265
- const a = (r2.variables?.name ?? w)({ name: n.name });
6266
- return z$1(a, e(n.value, r2));
6282
+ return function(r2, n) {
6283
+ const s = (n.variables?.name ?? w)({ name: r2.name });
6284
+ return Y$1(s, e(r2.value, n));
6267
6285
  };
6268
6286
  }
6269
- function S$1(e) {
6270
- const t = E$1(e), n = Q$1(e);
6271
- return function(c, a, i) {
6272
- const { variables: s, declarations: o, children: u } = a, f = c === ":root", l = (s ?? []).map(
6287
+ function C$1(e) {
6288
+ const t = E$1(e), r2 = ee$1(e);
6289
+ return function(o, s, i) {
6290
+ const { variables: a, declarations: c, children: u } = s, f = o === ":root", l = (a ?? []).map(
6273
6291
  (A2) => t(A2, i)
6274
- ), m2 = n(
6275
- o ?? {},
6292
+ ), m2 = r2(
6293
+ c ?? {},
6276
6294
  i
6277
6295
  ), y = (u ?? []).map(
6278
6296
  (A2) => e(A2, i)
6279
- ), d = l.length > 0, h2 = m2.length > 0, v2 = y.length > 0;
6280
- return f ? `${d || h2 ? C$1(c, [
6297
+ ), p2 = l.length > 0, b = m2.length > 0, S2 = y.length > 0;
6298
+ return f ? `${p2 || b ? v$1(o, [
6281
6299
  ...l,
6282
- ...d && h2 ? [""] : [],
6300
+ ...p2 && b ? [""] : [],
6283
6301
  ...m2
6284
- ]) : ""}${v2 && (d || h2) ? `
6302
+ ]) : ""}${S2 && (p2 || b) ? `
6285
6303
 
6286
6304
  ` : ""}${y.join(`
6287
6305
 
6288
- `)}` : C$1(c, [
6306
+ `)}` : v$1(o, [
6289
6307
  ...l,
6290
- ...d && (v2 || h2) ? [""] : [],
6308
+ ...p2 && (S2 || b) ? [""] : [],
6291
6309
  ...m2,
6292
- ...h2 && v2 ? [""] : [],
6310
+ ...b && S2 ? [""] : [],
6293
6311
  ...y.flatMap(
6294
6312
  (A2, F2) => F2 === y.length - 1 ? [A2] : [A2, ""]
6295
6313
  )
6296
6314
  ]);
6297
6315
  };
6298
6316
  }
6299
- function Z(e) {
6300
- const t = S$1(e);
6301
- return function(r2, c) {
6302
- const a = N.includes(r2.identifier), i = R$1.includes(
6303
- r2.identifier
6304
- ), s = Object.keys(r2.declarations).length > 0, o = r2.variables.length > 0, u = r2.children.length > 0, f = L(r2.identifier, r2.rule);
6305
- return a || i && !(s || o || u) ? `${f};` : t(f, r2, c);
6317
+ function te$1(e) {
6318
+ const t = C$1(e);
6319
+ return function(n, o) {
6320
+ const s = N.includes(n.identifier), i = D$1.includes(
6321
+ n.identifier
6322
+ ), a = Object.keys(n.declarations).length > 0, c = n.variables.length > 0, u = n.children.length > 0, f = U(n.identifier, n.rule);
6323
+ return s || i && !(a || c || u) ? `${f};` : t(f, n, o);
6306
6324
  };
6307
6325
  }
6308
- function W$1(e) {
6326
+ function re(e) {
6327
+ return function(r2, n) {
6328
+ return r2.value.map((o) => e(o, n)).join("").trim();
6329
+ };
6330
+ }
6331
+ function ne$1(e) {
6309
6332
  return typeof e == "object" && e !== null;
6310
6333
  }
6311
- function b$1(e, t) {
6312
- return W$1(e) && "type" in e && e.type === t;
6334
+ function h(e, t) {
6335
+ return ne$1(e) && "type" in e && e.type === t;
6313
6336
  }
6314
- function J$1(e) {
6315
- return b$1(e, "variable");
6337
+ function oe(e) {
6338
+ return h(e, "variable");
6316
6339
  }
6317
- function G$1(e) {
6318
- return b$1(e, "reference");
6340
+ function ce$1(e) {
6341
+ return h(e, "reference");
6319
6342
  }
6320
- function Y$1(e) {
6321
- return b$1(e, "selector");
6343
+ function ue$1(e) {
6344
+ return h(e, "selector");
6322
6345
  }
6323
- function X$1(e) {
6324
- return b$1(e, "at-rule");
6346
+ function ie(e) {
6347
+ return h(e, "at-rule");
6325
6348
  }
6326
- function ee(e) {
6327
- return b$1(e, "utility");
6349
+ function se(e) {
6350
+ return h(e, "utility");
6328
6351
  }
6329
- function te(e) {
6330
- return b$1(e, "css");
6352
+ function ae$1(e) {
6353
+ return h(e, "css");
6331
6354
  }
6332
- function ne(e) {
6333
- return b$1(e, "theme");
6355
+ function le$1(e) {
6356
+ return h(e, "theme");
6334
6357
  }
6335
- function re(e) {
6336
- return b$1(e, "root");
6358
+ function T$1(e) {
6359
+ return h(e, "root");
6360
+ }
6361
+ function fe$1(e) {
6362
+ return h(e, "recipe");
6337
6363
  }
6338
- function g$1(e) {
6364
+ function me$1(e) {
6365
+ return e.charAt(0).toUpperCase() + e.slice(1);
6366
+ }
6367
+ function g(e) {
6339
6368
  if (e instanceof Buffer)
6340
6369
  return Buffer.from(e);
6341
6370
  const t = e.constructor;
@@ -6345,225 +6374,245 @@ function g$1(e) {
6345
6374
  e.byteLength / e.BYTES_PER_ELEMENT || 1
6346
6375
  );
6347
6376
  }
6348
- function oe(e) {
6377
+ function pe(e) {
6349
6378
  if (e = e || {}, e.circular)
6350
- return ue$1(e);
6379
+ return ye$1(e);
6351
6380
  const t = /* @__PURE__ */ new Map();
6352
6381
  if (t.set(Date, (i) => new Date(i)), t.set(
6353
6382
  Map,
6354
- (i, s) => new Map(r2(Array.from(i), s))
6383
+ (i, a) => new Map(n(Array.from(i), a))
6355
6384
  ), t.set(
6356
6385
  Set,
6357
- (i, s) => new Set(r2(Array.from(i), s))
6386
+ (i, a) => new Set(n(Array.from(i), a))
6358
6387
  ), e.constructorHandlers)
6359
6388
  for (const i of e.constructorHandlers)
6360
6389
  t.set(i[0], i[1]);
6361
- let n;
6362
- return e.proto ? a : c;
6363
- function r2(i, s) {
6364
- const o = Object.keys(i), u = Array.from({ length: o.length });
6365
- for (let f = 0; f < o.length; f++) {
6366
- const l = o[f], m2 = i[l];
6367
- typeof m2 != "object" || m2 === null ? u[l] = m2 : m2.constructor !== Object && (n = t.get(m2.constructor)) ? u[l] = n(m2, s) : ArrayBuffer.isView(m2) ? u[l] = g$1(m2) : u[l] = s(m2);
6390
+ let r2;
6391
+ return e.proto ? s : o;
6392
+ function n(i, a) {
6393
+ const c = Object.keys(i), u = Array.from({ length: c.length });
6394
+ for (let f = 0; f < c.length; f++) {
6395
+ const l = c[f], m2 = i[l];
6396
+ typeof m2 != "object" || m2 === null ? u[l] = m2 : m2.constructor !== Object && (r2 = t.get(m2.constructor)) ? u[l] = r2(m2, a) : ArrayBuffer.isView(m2) ? u[l] = g(m2) : u[l] = a(m2);
6368
6397
  }
6369
6398
  return u;
6370
6399
  }
6371
- function c(i) {
6400
+ function o(i) {
6372
6401
  if (typeof i != "object" || i === null) return i;
6373
- if (Array.isArray(i)) return r2(i, c);
6374
- if (i.constructor !== Object && (n = t.get(i.constructor)))
6375
- return n(i, c);
6376
- const s = {};
6377
- for (const o in i) {
6378
- if (Object.hasOwnProperty.call(i, o) === false) continue;
6379
- const u = i[o];
6380
- typeof u != "object" || u === null ? s[o] = u : u.constructor !== Object && (n = t.get(u.constructor)) ? s[o] = n(u, c) : ArrayBuffer.isView(u) ? s[o] = g$1(u) : s[o] = c(u);
6381
- }
6382
- return s;
6383
- }
6384
- function a(i) {
6402
+ if (Array.isArray(i)) return n(i, o);
6403
+ if (i.constructor !== Object && (r2 = t.get(i.constructor)))
6404
+ return r2(i, o);
6405
+ const a = {};
6406
+ for (const c in i) {
6407
+ if (Object.hasOwnProperty.call(i, c) === false) continue;
6408
+ const u = i[c];
6409
+ typeof u != "object" || u === null ? a[c] = u : u.constructor !== Object && (r2 = t.get(u.constructor)) ? a[c] = r2(u, o) : ArrayBuffer.isView(u) ? a[c] = g(u) : a[c] = o(u);
6410
+ }
6411
+ return a;
6412
+ }
6413
+ function s(i) {
6385
6414
  if (typeof i != "object" || i === null) return i;
6386
- if (Array.isArray(i)) return r2(i, a);
6387
- if (i.constructor !== Object && (n = t.get(i.constructor)))
6388
- return n(i, a);
6389
- const s = {};
6390
- for (const o in i) {
6391
- const u = i[o];
6392
- typeof u != "object" || u === null ? s[o] = u : u.constructor !== Object && (n = t.get(u.constructor)) ? s[o] = n(u, a) : ArrayBuffer.isView(u) ? s[o] = g$1(u) : s[o] = a(u);
6415
+ if (Array.isArray(i)) return n(i, s);
6416
+ if (i.constructor !== Object && (r2 = t.get(i.constructor)))
6417
+ return r2(i, s);
6418
+ const a = {};
6419
+ for (const c in i) {
6420
+ const u = i[c];
6421
+ typeof u != "object" || u === null ? a[c] = u : u.constructor !== Object && (r2 = t.get(u.constructor)) ? a[c] = r2(u, s) : ArrayBuffer.isView(u) ? a[c] = g(u) : a[c] = s(u);
6393
6422
  }
6394
- return s;
6423
+ return a;
6395
6424
  }
6396
6425
  }
6397
- function ue$1(e) {
6398
- const t = [], n = [], r2 = /* @__PURE__ */ new Map();
6399
- if (r2.set(Date, (o) => new Date(o)), r2.set(
6426
+ function ye$1(e) {
6427
+ const t = [], r2 = [], n = /* @__PURE__ */ new Map();
6428
+ if (n.set(Date, (c) => new Date(c)), n.set(
6400
6429
  Map,
6401
- (o, u) => new Map(a(Array.from(o), u))
6402
- ), r2.set(
6430
+ (c, u) => new Map(s(Array.from(c), u))
6431
+ ), n.set(
6403
6432
  Set,
6404
- (o, u) => new Set(a(Array.from(o), u))
6433
+ (c, u) => new Set(s(Array.from(c), u))
6405
6434
  ), e.constructorHandlers)
6406
- for (const o of e.constructorHandlers)
6407
- r2.set(o[0], o[1]);
6408
- let c;
6409
- return e.proto ? s : i;
6410
- function a(o, u) {
6411
- const f = Object.keys(o), l = Array.from({ length: f.length });
6435
+ for (const c of e.constructorHandlers)
6436
+ n.set(c[0], c[1]);
6437
+ let o;
6438
+ return e.proto ? a : i;
6439
+ function s(c, u) {
6440
+ const f = Object.keys(c), l = Array.from({ length: f.length });
6412
6441
  for (let m2 = 0; m2 < f.length; m2++) {
6413
- const y = f[m2], d = o[y];
6414
- if (typeof d != "object" || d === null)
6415
- l[y] = d;
6416
- else if (d.constructor !== Object && (c = r2.get(d.constructor)))
6417
- l[y] = c(d, u);
6418
- else if (ArrayBuffer.isView(d))
6419
- l[y] = g$1(d);
6442
+ const y = f[m2], p2 = c[y];
6443
+ if (typeof p2 != "object" || p2 === null)
6444
+ l[y] = p2;
6445
+ else if (p2.constructor !== Object && (o = n.get(p2.constructor)))
6446
+ l[y] = o(p2, u);
6447
+ else if (ArrayBuffer.isView(p2))
6448
+ l[y] = g(p2);
6420
6449
  else {
6421
- const h2 = t.indexOf(d);
6422
- h2 !== -1 ? l[y] = n[h2] : l[y] = u(d);
6450
+ const b = t.indexOf(p2);
6451
+ b !== -1 ? l[y] = r2[b] : l[y] = u(p2);
6423
6452
  }
6424
6453
  }
6425
6454
  return l;
6426
6455
  }
6427
- function i(o) {
6428
- if (typeof o != "object" || o === null) return o;
6429
- if (Array.isArray(o)) return a(o, i);
6430
- if (o.constructor !== Object && (c = r2.get(o.constructor)))
6431
- return c(o, i);
6456
+ function i(c) {
6457
+ if (typeof c != "object" || c === null) return c;
6458
+ if (Array.isArray(c)) return s(c, i);
6459
+ if (c.constructor !== Object && (o = n.get(c.constructor)))
6460
+ return o(c, i);
6432
6461
  const u = {};
6433
- t.push(o), n.push(u);
6434
- for (const f in o) {
6435
- if (Object.hasOwnProperty.call(o, f) === false) continue;
6436
- const l = o[f];
6462
+ t.push(c), r2.push(u);
6463
+ for (const f in c) {
6464
+ if (Object.hasOwnProperty.call(c, f) === false) continue;
6465
+ const l = c[f];
6437
6466
  if (typeof l != "object" || l === null)
6438
6467
  u[f] = l;
6439
- else if (l.constructor !== Object && (c = r2.get(l.constructor)))
6440
- u[f] = c(l, i);
6468
+ else if (l.constructor !== Object && (o = n.get(l.constructor)))
6469
+ u[f] = o(l, i);
6441
6470
  else if (ArrayBuffer.isView(l))
6442
- u[f] = g$1(l);
6471
+ u[f] = g(l);
6443
6472
  else {
6444
6473
  const m2 = t.indexOf(l);
6445
- m2 !== -1 ? u[f] = n[m2] : u[f] = i(l);
6474
+ m2 !== -1 ? u[f] = r2[m2] : u[f] = i(l);
6446
6475
  }
6447
6476
  }
6448
- return t.pop(), n.pop(), u;
6477
+ return t.pop(), r2.pop(), u;
6449
6478
  }
6450
- function s(o) {
6451
- if (typeof o != "object" || o === null) return o;
6452
- if (Array.isArray(o)) return a(o, s);
6453
- if (o.constructor !== Object && (c = r2.get(o.constructor)))
6454
- return c(o, s);
6479
+ function a(c) {
6480
+ if (typeof c != "object" || c === null) return c;
6481
+ if (Array.isArray(c)) return s(c, a);
6482
+ if (c.constructor !== Object && (o = n.get(c.constructor)))
6483
+ return o(c, a);
6455
6484
  const u = {};
6456
- t.push(o), n.push(u);
6457
- for (const f in o) {
6458
- const l = o[f];
6485
+ t.push(c), r2.push(u);
6486
+ for (const f in c) {
6487
+ const l = c[f];
6459
6488
  if (typeof l != "object" || l === null)
6460
6489
  u[f] = l;
6461
- else if (l.constructor !== Object && (c = r2.get(l.constructor)))
6462
- u[f] = c(l, s);
6490
+ else if (l.constructor !== Object && (o = n.get(l.constructor)))
6491
+ u[f] = o(l, a);
6463
6492
  else if (ArrayBuffer.isView(l))
6464
- u[f] = g$1(l);
6493
+ u[f] = g(l);
6465
6494
  else {
6466
6495
  const m2 = t.indexOf(l);
6467
- m2 !== -1 ? u[f] = n[m2] : u[f] = s(l);
6496
+ m2 !== -1 ? u[f] = r2[m2] : u[f] = a(l);
6468
6497
  }
6469
6498
  }
6470
- return t.pop(), n.pop(), u;
6499
+ return t.pop(), r2.pop(), u;
6471
6500
  }
6472
6501
  }
6473
- oe();
6474
- function ce(e) {
6475
- return function(n, r2) {
6476
- return n.value.map((c) => e(c, r2)).join("").trim();
6477
- };
6478
- }
6479
- function ie(e) {
6480
- return function(n, r2) {
6481
- return n != null ? `${n}` : "";
6502
+ pe();
6503
+ function de$1(e) {
6504
+ return function(r2, n) {
6505
+ return r2 != null ? `${r2}` : "";
6482
6506
  };
6483
6507
  }
6484
- function se(e) {
6485
- return function(n, r2) {
6486
- const a = (r2.variables?.name ?? w)({ name: n.name });
6487
- return H$1(
6488
- a,
6489
- n.fallback ? e(n.fallback, r2) : void 0
6508
+ function he(e) {
6509
+ return function(r2, n) {
6510
+ const s = (n.variables?.name ?? w)({ name: r2.name });
6511
+ return X$1(
6512
+ s,
6513
+ r2.fallback ? e(r2.fallback, n) : void 0
6490
6514
  );
6491
6515
  };
6492
6516
  }
6493
- function ae(e) {
6494
- const t = S$1(e);
6495
- return function(r2, c) {
6496
- return r2.themes.reduce(
6497
- (a, i) => (a.push(e(i, c)), a),
6498
- [t(":root", r2, c)]
6517
+ function be(e) {
6518
+ const t = C$1(e);
6519
+ return function(n, o) {
6520
+ return n.themes.reduce(
6521
+ (s, i) => (s.push(e(i, o)), s),
6522
+ [t(":root", n, o)]
6499
6523
  // Default theme (root)
6500
6524
  ).join(`
6501
6525
 
6502
6526
  `);
6503
6527
  };
6504
6528
  }
6505
- function le(e) {
6506
- const t = S$1(e);
6507
- return function(r2, c) {
6508
- return t(r2.query, r2, c);
6529
+ function Ae(e) {
6530
+ const t = C$1(e);
6531
+ return function(n, o) {
6532
+ return t(n.query, n, o);
6509
6533
  };
6510
6534
  }
6511
- function fe(e) {
6512
- const t = S$1(e);
6513
- return function(r2, c) {
6514
- const i = (c.theme?.selector ?? D$1)({ name: r2.name });
6515
- return t(i, r2, c);
6535
+ function ge(e) {
6536
+ const t = C$1(e);
6537
+ return function(n, o) {
6538
+ const i = (o.themes?.selector ?? L$1)({ name: n.name });
6539
+ return t(i, n, o);
6516
6540
  };
6517
6541
  }
6518
- function me(e) {
6519
- const t = S$1(e);
6520
- return function(r2, c) {
6521
- const a = [], s = (c.utilities?.selector ?? I)({
6522
- name: r2.name,
6523
- value: r2.value,
6524
- modifiers: r2.modifiers
6542
+ function Ce(e) {
6543
+ const t = C$1(e);
6544
+ return function(n, o) {
6545
+ const s = [], a = (o.utilities?.selector ?? I$1)({
6546
+ name: n.name,
6547
+ value: n.value,
6548
+ modifiers: n.modifiers
6525
6549
  });
6526
- return a.push(t(s, r2, c)), a.join(`
6550
+ return s.push(t(a, n, o)), s.join(`
6527
6551
 
6528
6552
  `);
6529
6553
  };
6530
6554
  }
6531
- function p$1(e, t) {
6532
- const n = ae(p$1), r2 = le(p$1), c = me(p$1), a = Z(p$1), i = fe(p$1), s = E$1(p$1), o = se(p$1), u = ce(p$1), f = ie();
6555
+ function d(e, t) {
6556
+ const r2 = be(d), n = Ae(d), o = Ce(d), s = te$1(d), i = ge(d), a = E$1(d), c = he(d), u = re(d), f = de$1();
6533
6557
  switch (true) {
6534
- case Y$1(e):
6535
- return r2(e, t);
6536
- case ee(e):
6537
- return c(e, t);
6538
- case X$1(e):
6539
- return a(e, t);
6540
- case re(e):
6558
+ case ue$1(e):
6541
6559
  return n(e, t);
6542
- case ne(e):
6543
- return i(e, t);
6544
- case J$1(e):
6545
- return s(e, t);
6546
- case G$1(e):
6560
+ case se(e):
6547
6561
  return o(e, t);
6548
- case te(e):
6562
+ case ie(e):
6563
+ return s(e, t);
6564
+ case T$1(e):
6565
+ return r2(e, t);
6566
+ case le$1(e):
6567
+ return i(e, t);
6568
+ case oe(e):
6569
+ return a(e, t);
6570
+ case ce$1(e):
6571
+ return c(e, t);
6572
+ case ae$1(e):
6549
6573
  return u(e, t);
6550
6574
  default:
6551
6575
  return f(e, t);
6552
6576
  }
6553
6577
  }
6554
- function T$1(e, t) {
6578
+ function Se(e) {
6579
+ return function(r2, n) {
6580
+ let o = Z$1(r2.name);
6581
+ r2.name[0] && Q$1(r2.name[0]) && (o = me$1(o));
6582
+ const s = `${o}Recipe`, i = r2._runtime ?? {};
6583
+ return `const ${s} = ${JSON.stringify(
6584
+ i,
6585
+ null,
6586
+ 4
6587
+ )} as const satisfies RecipeRuntime;
6588
+
6589
+ export const ${o} = createRecipe("${r2.name}", ${s});
6590
+ `;
6591
+ };
6592
+ }
6593
+ function je(e) {
6594
+ return function(r2, n) {
6595
+ return r2.recipes.length > 0 ? `import { createRecipe } from '@styleframe/runtime';
6596
+ import type { RecipeRuntime } from '@styleframe/runtime';
6597
+
6598
+ ${e(r2.recipes, n)}` : "";
6599
+ };
6600
+ }
6601
+ function j$1(e, t) {
6602
+ const r2 = je(j$1), n = Se();
6555
6603
  switch (true) {
6556
6604
  case Array.isArray(e):
6557
- return e.map((n) => T$1(n)).join(`
6605
+ return e.map((o) => j$1(o, t)).join(`
6558
6606
  `);
6559
- // case isRecipe(instance):
6560
- // return consumeRecipe(instance, options);
6561
- // break;
6607
+ case T$1(e):
6608
+ return r2(e, t);
6609
+ case fe$1(e):
6610
+ return n(e, t);
6562
6611
  default:
6563
6612
  return "";
6564
6613
  }
6565
6614
  }
6566
- const de = `-----BEGIN PUBLIC KEY-----
6615
+ const ve = `-----BEGIN PUBLIC KEY-----
6567
6616
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs7zAFssgxOMPeo80iig4
6568
6617
  qSSshgNOLnW1gd4tPUrsezndaUrAKlsAys6XD8kuF+bBEIR0uFNSgKlqINLjWM1n
6569
6618
  BiTUzCctodyRaq6/tyFSoPLD35iblkwtfxKPM42lAJZsyTu9qoBr8MJyXmhDLuqA
@@ -6571,12 +6620,12 @@ dQ8di7mQHz+mCy96jQR4lFSDfHMgl27qaAh5VboTBRxgZliN8D5Fl590QkS94wAj
6571
6620
  hC7NbH+hPcGc/qIaZSjZfyZeBIZS74qJkrzjEA7/pukROD8UQUrQ512HHZ6XlgMn
6572
6621
  4bWT2K9CpWbbhsKFTecCHuxlmPkFJNMuvAb/LdP08BSnpntlyAJcQeBrna2qBen+
6573
6622
  GwIDAQAB
6574
- -----END PUBLIC KEY-----`, ye = "__licenseRequired", pe = "__licenseValidated";
6575
- async function he(e) {
6576
- const t = e.replace(/-----BEGIN PUBLIC KEY-----/, "").replace(/-----END PUBLIC KEY-----/, "").replace(/\s/g, ""), n = Uint8Array.from(atob(t), (r2) => r2.charCodeAt(0));
6623
+ -----END PUBLIC KEY-----`, Re$1 = "__licenseRequired", we = "__licenseValidated";
6624
+ async function $e(e) {
6625
+ const t = e.replace(/-----BEGIN PUBLIC KEY-----/, "").replace(/-----END PUBLIC KEY-----/, "").replace(/\s/g, ""), r2 = Uint8Array.from(atob(t), (n) => n.charCodeAt(0));
6577
6626
  return await crypto.subtle.importKey(
6578
6627
  "spki",
6579
- n,
6628
+ r2,
6580
6629
  {
6581
6630
  name: "RSASSA-PKCS1-v1_5",
6582
6631
  hash: "SHA-256"
@@ -6585,32 +6634,32 @@ async function he(e) {
6585
6634
  ["verify"]
6586
6635
  );
6587
6636
  }
6588
- async function be({
6637
+ async function Oe({
6589
6638
  payload: e,
6590
6639
  signature: t
6591
6640
  }) {
6592
- const n = new TextEncoder().encode(e), r2 = Uint8Array.from(
6641
+ const r2 = new TextEncoder().encode(e), n = Uint8Array.from(
6593
6642
  atob(t),
6594
- (a) => a.charCodeAt(0)
6595
- ), c = await he(de);
6643
+ (s) => s.charCodeAt(0)
6644
+ ), o = await $e(ve);
6596
6645
  if (!await crypto.subtle.verify(
6597
6646
  { name: "RSASSA-PKCS1-v1_5" },
6598
- c,
6599
- r2,
6600
- n
6647
+ o,
6648
+ n,
6649
+ r2
6601
6650
  ))
6602
6651
  throw new Error(
6603
6652
  "License validation failed: Invalid signature detected. The license may have been modified or corrupted."
6604
6653
  );
6605
6654
  return JSON.parse(e);
6606
6655
  }
6607
- function Ae(e) {
6608
- return Object.prototype.hasOwnProperty.call(e, ye);
6656
+ function Be(e) {
6657
+ return Object.prototype.hasOwnProperty.call(e, Re$1);
6609
6658
  }
6610
- async function ge(e) {
6659
+ async function Ee(e) {
6611
6660
  const t = Object.getOwnPropertyDescriptor(
6612
6661
  e,
6613
- pe
6662
+ we
6614
6663
  );
6615
6664
  if (!t?.value)
6616
6665
  return {
@@ -6619,8 +6668,8 @@ async function ge(e) {
6619
6668
  environment: "",
6620
6669
  valid: false
6621
6670
  };
6622
- const n = t.value;
6623
- if (typeof n != "object" || n === null || !("payload" in n) || !("signature" in n) || typeof n.payload != "string" || typeof n.signature != "string")
6671
+ const r2 = t.value;
6672
+ if (typeof r2 != "object" || r2 === null || !("payload" in r2) || !("signature" in r2) || typeof r2.payload != "string" || typeof r2.signature != "string")
6624
6673
  return {
6625
6674
  key: "",
6626
6675
  instanceId: "",
@@ -6628,8 +6677,8 @@ async function ge(e) {
6628
6677
  valid: false
6629
6678
  };
6630
6679
  try {
6631
- return await be(
6632
- n
6680
+ return await Oe(
6681
+ r2
6633
6682
  );
6634
6683
  } catch {
6635
6684
  return {
@@ -6640,7 +6689,7 @@ async function ge(e) {
6640
6689
  };
6641
6690
  }
6642
6691
  }
6643
- function Se(e) {
6692
+ function Te(e) {
6644
6693
  const t = Math.floor(Math.random() * 100);
6645
6694
  e.root.children.push({
6646
6695
  type: "selector",
@@ -6664,31 +6713,36 @@ function Se(e) {
6664
6713
  }
6665
6714
  });
6666
6715
  }
6667
- function j(e, t = "") {
6716
+ function R$1(e, t = "") {
6668
6717
  return {
6669
6718
  name: e,
6670
6719
  content: t
6671
6720
  };
6672
6721
  }
6673
- async function Ce(e, {
6722
+ async function Ne(e, {
6674
6723
  type: t = "all",
6675
- consumers: n = { css: p$1, ts: T$1 }
6724
+ consumers: r2 = { css: d, ts: j$1 }
6676
6725
  } = {}) {
6677
- const r2 = { files: [] }, c = e.options;
6678
- if (Ae(e)) {
6679
- const s = await ge(e);
6680
- (!s.valid || s.instanceId !== e.id) && Se(e);
6726
+ const n = { files: [] }, o = e.options;
6727
+ if (Be(e)) {
6728
+ const s = await Ee(e);
6729
+ (!s.valid || s.instanceId !== e.id) && Te(e);
6681
6730
  }
6682
- const { recipes: a, ...i } = e.root;
6683
6731
  if (t === "all" || t === "css") {
6684
- const s = j("index.css", n.css(i, c));
6685
- r2.files.push(s);
6732
+ const s = R$1(
6733
+ "index.css",
6734
+ r2.css(e.root, o)
6735
+ );
6736
+ n.files.push(s);
6686
6737
  }
6687
6738
  if (t === "all" || t === "ts") {
6688
- const s = j("index.ts", n.ts([], c));
6689
- r2.files.push(s);
6739
+ const s = R$1(
6740
+ "index.ts",
6741
+ r2.ts(e.root, o)
6742
+ );
6743
+ n.files.push(s);
6690
6744
  }
6691
- return r2;
6745
+ return n;
6692
6746
  }
6693
6747
  async function directoryExists(path2) {
6694
6748
  try {
@@ -6704,7 +6758,7 @@ async function build$2(instance, { clean = true, outputDir = "./styleframe", tra
6704
6758
  environment: process.env.NODE_ENV || "development",
6705
6759
  isBuild: true
6706
6760
  });
6707
- const output = await Ce(instance, transpiler);
6761
+ const output = await Ne(instance, transpiler);
6708
6762
  const outputDirExists = await directoryExists(outputDir);
6709
6763
  if (clean && outputDirExists) {
6710
6764
  await rm(outputDir, { recursive: true });
@@ -6719,134 +6773,152 @@ async function build$2(instance, { clean = true, outputDir = "./styleframe", tra
6719
6773
  await writeFile(filePath, file.content);
6720
6774
  }
6721
6775
  }
6722
- function k(e, r2) {
6723
- return function(t, ...i) {
6724
- return {
6725
- type: "css",
6726
- value: t.reduce((o, u, c) => (o.push(u), c < i.length && o.push(i[c]), o), [])
6727
- };
6728
- };
6729
- }
6730
- function M(e) {
6776
+ function S(e) {
6731
6777
  return typeof e == "object" && e !== null;
6732
6778
  }
6733
6779
  function p(e, r2) {
6734
- return M(e) && "type" in e && e.type === r2;
6780
+ return S(e) && "type" in e && e.type === r2;
6735
6781
  }
6736
- function B(e) {
6782
+ function q(e) {
6737
6783
  return p(e, "variable");
6738
6784
  }
6739
- function F(e) {
6785
+ function A(e) {
6740
6786
  return p(e, "reference");
6741
6787
  }
6742
- function T(e) {
6788
+ function G(e) {
6789
+ return p(e, "modifier");
6790
+ }
6791
+ function E(e) {
6743
6792
  return p(e, "css");
6744
6793
  }
6745
- function _(e) {
6794
+ function I(e) {
6746
6795
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null;
6747
6796
  }
6748
- function O(e) {
6749
- return _(e) || F(e) || T(e) || Array.isArray(e) && e.every(O);
6797
+ function D(e) {
6798
+ return I(e) || A(e) || E(e) || Array.isArray(e) && e.every(D);
6750
6799
  }
6751
- function C(e) {
6752
- return M(e) && "children" in e && "declarations" in e && "variables" in e;
6800
+ function L(e) {
6801
+ return S(e) && "children" in e && "declarations" in e && "variables" in e;
6753
6802
  }
6754
- function R(e, r2) {
6755
- return function(t, i, s) {
6803
+ function z(e = (r2) => r2) {
6804
+ return (r2) => {
6805
+ let t = r2, n;
6806
+ if (typeof t == "string" && t[0] === "@") {
6807
+ const i = t.slice(1);
6808
+ n = e(i), t = {
6809
+ type: "reference",
6810
+ name: i
6811
+ };
6812
+ } else A(t) ? n = e(t.name) : n = `[${r2}]`;
6813
+ return {
6814
+ [n]: t
6815
+ };
6816
+ };
6817
+ }
6818
+ function W(e, r2) {
6819
+ return function(n, ...i) {
6820
+ return {
6821
+ type: "css",
6822
+ value: n.reduce((o, u, s) => (o.push(u), s < i.length && o.push(i[s]), o), [])
6823
+ };
6824
+ };
6825
+ }
6826
+ function K(e, r2) {
6827
+ return function(n, i, c) {
6756
6828
  const o = {
6757
6829
  type: "at-rule",
6758
- identifier: t,
6830
+ identifier: n,
6759
6831
  rule: i,
6760
6832
  declarations: {},
6761
6833
  variables: [],
6762
6834
  children: []
6763
- }, u = b(o, r2);
6764
- return typeof s == "function" ? o.declarations = s(u) ?? {} : s && (o.declarations = s), g(o.declarations, u), e.children.push(o), o;
6835
+ }, u = v(o, r2);
6836
+ return typeof c == "function" ? o.declarations = c(u) ?? {} : c && (o.declarations = c), V(o.declarations, u), e.children.push(o), o;
6765
6837
  };
6766
6838
  }
6767
- function S(e, r2) {
6768
- const n = R(e, r2);
6769
- return function(i, s) {
6770
- return n("media", i, s);
6839
+ function Y(e, r2) {
6840
+ const t = K(e, r2);
6841
+ return function(i, c) {
6842
+ return t("media", i, c);
6771
6843
  };
6772
6844
  }
6773
- function E(e, r2) {
6774
- const n = R(e, r2);
6775
- return function(i, s) {
6776
- return n("keyframes", i, s);
6845
+ function J(e, r2) {
6846
+ const t = K(e, r2);
6847
+ return function(i, c) {
6848
+ return t("keyframes", i, c);
6777
6849
  };
6778
6850
  }
6779
- function P(e, r2) {
6780
- return function(t, i) {
6781
- return B(t) ? {
6851
+ function Q(e, r2) {
6852
+ return function(n, i) {
6853
+ return q(n) ? {
6782
6854
  type: "reference",
6783
- name: t.name,
6855
+ name: n.name,
6784
6856
  fallback: i
6785
6857
  } : {
6786
6858
  type: "reference",
6787
- name: t,
6859
+ name: n,
6788
6860
  fallback: i
6789
6861
  };
6790
6862
  };
6791
6863
  }
6792
- function D(e, r2) {
6793
- return function(t, i) {
6794
- const s = {
6864
+ function X(e, r2) {
6865
+ return function(n, i) {
6866
+ const c = {
6795
6867
  type: "selector",
6796
- query: t,
6868
+ query: n,
6797
6869
  declarations: {},
6798
6870
  variables: [],
6799
6871
  children: []
6800
- }, o = b(s, r2);
6801
- return typeof i == "function" ? s.declarations = i(o) ?? {} : C(i) ? (s.variables = i.variables, s.declarations = i.declarations, s.children = i.children) : s.declarations = i, g(s.declarations, o), e.children.push(s), s;
6872
+ }, o = v(c, r2);
6873
+ return typeof i == "function" ? c.declarations = i(o) ?? {} : L(i) ? (c.variables = i.variables, c.declarations = i.declarations, c.children = i.children) : c.declarations = i, V(c.declarations, o), e.children.push(c), c;
6802
6874
  };
6803
6875
  }
6804
- function H(e, r2) {
6805
- return function(t, i, s = {
6876
+ function Z(e, r2) {
6877
+ return function(n, i, c = {
6806
6878
  default: false
6807
6879
  }) {
6808
- const o = typeof t == "string" ? t : t.name, u = e.variables.find(
6880
+ const o = typeof n == "string" ? n : n.name, u = e.variables.find(
6809
6881
  (f) => f.name === o
6810
6882
  );
6811
- if (s.default && u)
6883
+ if (c.default && u)
6812
6884
  return u;
6813
6885
  if (u)
6814
6886
  return u.value = i, u;
6815
- const c = {
6887
+ const s = {
6816
6888
  type: "variable",
6817
6889
  name: o,
6818
6890
  value: i
6819
6891
  };
6820
- return e.variables.push(c), c;
6892
+ return e.variables.push(s), s;
6821
6893
  };
6822
6894
  }
6823
- function b(e, r2) {
6824
- const n = H(e), t = D(e, r2), i = R(e, r2), s = E(r2, r2), o = S(e, r2), u = P(), c = k();
6895
+ function v(e, r2) {
6896
+ const t = Z(e), n = X(e, r2), i = K(e, r2), c = J(r2, r2), o = Y(e, r2), u = Q(), s = W();
6825
6897
  return {
6826
- variable: n,
6827
- selector: t,
6828
- keyframes: s,
6898
+ variable: t,
6899
+ selector: n,
6900
+ keyframes: c,
6829
6901
  atRule: i,
6830
6902
  media: o,
6831
6903
  ref: u,
6832
- css: c
6904
+ css: s
6833
6905
  };
6834
6906
  }
6835
- function g(e, r2) {
6836
- for (const n in e)
6837
- if (n.startsWith("@")) {
6838
- const t = e[n];
6839
- if (typeof t == "object" && t !== null && !O(t)) {
6840
- const i = n.replace(/^@(\w+).*/, "$1"), s = n.replace(`@${i}`, "").trim();
6841
- r2.atRule(i, s, t), delete e[n];
6907
+ function V(e, r2) {
6908
+ for (const t in e)
6909
+ if (t.startsWith("@")) {
6910
+ const n = e[t];
6911
+ if (typeof n == "object" && n !== null && !D(n)) {
6912
+ const i = t.replace(/^@(\w+).*/, "$1"), c = t.replace(`@${i}`, "").trim();
6913
+ r2.atRule(i, c, n), delete e[t];
6842
6914
  }
6843
- } else if (/^[.&:]/.test(n)) {
6844
- const t = e[n];
6845
- typeof t == "object" && (r2.selector(n, t), delete e[n]);
6915
+ } else if (/^[.&:]/.test(t)) {
6916
+ const n = e[t];
6917
+ typeof n == "object" && (r2.selector(t, n), delete e[t]);
6846
6918
  }
6847
6919
  return e;
6848
6920
  }
6849
- function m(e) {
6921
+ function j(e) {
6850
6922
  if (e instanceof Buffer)
6851
6923
  return Buffer.from(e);
6852
6924
  const r2 = e.constructor;
@@ -6856,182 +6928,182 @@ function m(e) {
6856
6928
  e.byteLength / e.BYTES_PER_ELEMENT || 1
6857
6929
  );
6858
6930
  }
6859
- function K(e) {
6931
+ function ee(e) {
6860
6932
  if (e = e || {}, e.circular)
6861
- return U(e);
6933
+ return te(e);
6862
6934
  const r2 = /* @__PURE__ */ new Map();
6863
6935
  if (r2.set(Date, (o) => new Date(o)), r2.set(
6864
6936
  Map,
6865
- (o, u) => new Map(t(Array.from(o), u))
6937
+ (o, u) => new Map(n(Array.from(o), u))
6866
6938
  ), r2.set(
6867
6939
  Set,
6868
- (o, u) => new Set(t(Array.from(o), u))
6940
+ (o, u) => new Set(n(Array.from(o), u))
6869
6941
  ), e.constructorHandlers)
6870
6942
  for (const o of e.constructorHandlers)
6871
6943
  r2.set(o[0], o[1]);
6872
- let n;
6873
- return e.proto ? s : i;
6874
- function t(o, u) {
6875
- const c = Object.keys(o), f = Array.from({ length: c.length });
6876
- for (let a = 0; a < c.length; a++) {
6877
- const l = c[a], y = o[l];
6878
- typeof y != "object" || y === null ? f[l] = y : y.constructor !== Object && (n = r2.get(y.constructor)) ? f[l] = n(y, u) : ArrayBuffer.isView(y) ? f[l] = m(y) : f[l] = u(y);
6944
+ let t;
6945
+ return e.proto ? c : i;
6946
+ function n(o, u) {
6947
+ const s = Object.keys(o), f = Array.from({ length: s.length });
6948
+ for (let l = 0; l < s.length; l++) {
6949
+ const a = s[l], y = o[a];
6950
+ typeof y != "object" || y === null ? f[a] = y : y.constructor !== Object && (t = r2.get(y.constructor)) ? f[a] = t(y, u) : ArrayBuffer.isView(y) ? f[a] = j(y) : f[a] = u(y);
6879
6951
  }
6880
6952
  return f;
6881
6953
  }
6882
6954
  function i(o) {
6883
6955
  if (typeof o != "object" || o === null) return o;
6884
- if (Array.isArray(o)) return t(o, i);
6885
- if (o.constructor !== Object && (n = r2.get(o.constructor)))
6886
- return n(o, i);
6956
+ if (Array.isArray(o)) return n(o, i);
6957
+ if (o.constructor !== Object && (t = r2.get(o.constructor)))
6958
+ return t(o, i);
6887
6959
  const u = {};
6888
- for (const c in o) {
6889
- if (Object.hasOwnProperty.call(o, c) === false) continue;
6890
- const f = o[c];
6891
- typeof f != "object" || f === null ? u[c] = f : f.constructor !== Object && (n = r2.get(f.constructor)) ? u[c] = n(f, i) : ArrayBuffer.isView(f) ? u[c] = m(f) : u[c] = i(f);
6960
+ for (const s in o) {
6961
+ if (Object.hasOwnProperty.call(o, s) === false) continue;
6962
+ const f = o[s];
6963
+ typeof f != "object" || f === null ? u[s] = f : f.constructor !== Object && (t = r2.get(f.constructor)) ? u[s] = t(f, i) : ArrayBuffer.isView(f) ? u[s] = j(f) : u[s] = i(f);
6892
6964
  }
6893
6965
  return u;
6894
6966
  }
6895
- function s(o) {
6967
+ function c(o) {
6896
6968
  if (typeof o != "object" || o === null) return o;
6897
- if (Array.isArray(o)) return t(o, s);
6898
- if (o.constructor !== Object && (n = r2.get(o.constructor)))
6899
- return n(o, s);
6969
+ if (Array.isArray(o)) return n(o, c);
6970
+ if (o.constructor !== Object && (t = r2.get(o.constructor)))
6971
+ return t(o, c);
6900
6972
  const u = {};
6901
- for (const c in o) {
6902
- const f = o[c];
6903
- typeof f != "object" || f === null ? u[c] = f : f.constructor !== Object && (n = r2.get(f.constructor)) ? u[c] = n(f, s) : ArrayBuffer.isView(f) ? u[c] = m(f) : u[c] = s(f);
6973
+ for (const s in o) {
6974
+ const f = o[s];
6975
+ typeof f != "object" || f === null ? u[s] = f : f.constructor !== Object && (t = r2.get(f.constructor)) ? u[s] = t(f, c) : ArrayBuffer.isView(f) ? u[s] = j(f) : u[s] = c(f);
6904
6976
  }
6905
6977
  return u;
6906
6978
  }
6907
6979
  }
6908
- function U(e) {
6909
- const r2 = [], n = [], t = /* @__PURE__ */ new Map();
6910
- if (t.set(Date, (c) => new Date(c)), t.set(
6980
+ function te(e) {
6981
+ const r2 = [], t = [], n = /* @__PURE__ */ new Map();
6982
+ if (n.set(Date, (s) => new Date(s)), n.set(
6911
6983
  Map,
6912
- (c, f) => new Map(s(Array.from(c), f))
6913
- ), t.set(
6984
+ (s, f) => new Map(c(Array.from(s), f))
6985
+ ), n.set(
6914
6986
  Set,
6915
- (c, f) => new Set(s(Array.from(c), f))
6987
+ (s, f) => new Set(c(Array.from(s), f))
6916
6988
  ), e.constructorHandlers)
6917
- for (const c of e.constructorHandlers)
6918
- t.set(c[0], c[1]);
6989
+ for (const s of e.constructorHandlers)
6990
+ n.set(s[0], s[1]);
6919
6991
  let i;
6920
6992
  return e.proto ? u : o;
6921
- function s(c, f) {
6922
- const a = Object.keys(c), l = Array.from({ length: a.length });
6923
- for (let y = 0; y < a.length; y++) {
6924
- const h2 = a[y], d = c[h2];
6925
- if (typeof d != "object" || d === null)
6926
- l[h2] = d;
6927
- else if (d.constructor !== Object && (i = t.get(d.constructor)))
6928
- l[h2] = i(d, f);
6929
- else if (ArrayBuffer.isView(d))
6930
- l[h2] = m(d);
6993
+ function c(s, f) {
6994
+ const l = Object.keys(s), a = Array.from({ length: l.length });
6995
+ for (let y = 0; y < l.length; y++) {
6996
+ const m2 = l[y], d2 = s[m2];
6997
+ if (typeof d2 != "object" || d2 === null)
6998
+ a[m2] = d2;
6999
+ else if (d2.constructor !== Object && (i = n.get(d2.constructor)))
7000
+ a[m2] = i(d2, f);
7001
+ else if (ArrayBuffer.isView(d2))
7002
+ a[m2] = j(d2);
6931
7003
  else {
6932
- const v2 = r2.indexOf(d);
6933
- v2 !== -1 ? l[h2] = n[v2] : l[h2] = f(d);
7004
+ const h2 = r2.indexOf(d2);
7005
+ h2 !== -1 ? a[m2] = t[h2] : a[m2] = f(d2);
6934
7006
  }
6935
7007
  }
6936
- return l;
7008
+ return a;
6937
7009
  }
6938
- function o(c) {
6939
- if (typeof c != "object" || c === null) return c;
6940
- if (Array.isArray(c)) return s(c, o);
6941
- if (c.constructor !== Object && (i = t.get(c.constructor)))
6942
- return i(c, o);
7010
+ function o(s) {
7011
+ if (typeof s != "object" || s === null) return s;
7012
+ if (Array.isArray(s)) return c(s, o);
7013
+ if (s.constructor !== Object && (i = n.get(s.constructor)))
7014
+ return i(s, o);
6943
7015
  const f = {};
6944
- r2.push(c), n.push(f);
6945
- for (const a in c) {
6946
- if (Object.hasOwnProperty.call(c, a) === false) continue;
6947
- const l = c[a];
6948
- if (typeof l != "object" || l === null)
6949
- f[a] = l;
6950
- else if (l.constructor !== Object && (i = t.get(l.constructor)))
6951
- f[a] = i(l, o);
6952
- else if (ArrayBuffer.isView(l))
6953
- f[a] = m(l);
7016
+ r2.push(s), t.push(f);
7017
+ for (const l in s) {
7018
+ if (Object.hasOwnProperty.call(s, l) === false) continue;
7019
+ const a = s[l];
7020
+ if (typeof a != "object" || a === null)
7021
+ f[l] = a;
7022
+ else if (a.constructor !== Object && (i = n.get(a.constructor)))
7023
+ f[l] = i(a, o);
7024
+ else if (ArrayBuffer.isView(a))
7025
+ f[l] = j(a);
6954
7026
  else {
6955
- const y = r2.indexOf(l);
6956
- y !== -1 ? f[a] = n[y] : f[a] = o(l);
7027
+ const y = r2.indexOf(a);
7028
+ y !== -1 ? f[l] = t[y] : f[l] = o(a);
6957
7029
  }
6958
7030
  }
6959
- return r2.pop(), n.pop(), f;
7031
+ return r2.pop(), t.pop(), f;
6960
7032
  }
6961
- function u(c) {
6962
- if (typeof c != "object" || c === null) return c;
6963
- if (Array.isArray(c)) return s(c, u);
6964
- if (c.constructor !== Object && (i = t.get(c.constructor)))
6965
- return i(c, u);
7033
+ function u(s) {
7034
+ if (typeof s != "object" || s === null) return s;
7035
+ if (Array.isArray(s)) return c(s, u);
7036
+ if (s.constructor !== Object && (i = n.get(s.constructor)))
7037
+ return i(s, u);
6966
7038
  const f = {};
6967
- r2.push(c), n.push(f);
6968
- for (const a in c) {
6969
- const l = c[a];
6970
- if (typeof l != "object" || l === null)
6971
- f[a] = l;
6972
- else if (l.constructor !== Object && (i = t.get(l.constructor)))
6973
- f[a] = i(l, u);
6974
- else if (ArrayBuffer.isView(l))
6975
- f[a] = m(l);
7039
+ r2.push(s), t.push(f);
7040
+ for (const l in s) {
7041
+ const a = s[l];
7042
+ if (typeof a != "object" || a === null)
7043
+ f[l] = a;
7044
+ else if (a.constructor !== Object && (i = n.get(a.constructor)))
7045
+ f[l] = i(a, u);
7046
+ else if (ArrayBuffer.isView(a))
7047
+ f[l] = j(a);
6976
7048
  else {
6977
- const y = r2.indexOf(l);
6978
- y !== -1 ? f[a] = n[y] : f[a] = u(l);
7049
+ const y = r2.indexOf(a);
7050
+ y !== -1 ? f[l] = t[y] : f[l] = u(a);
6979
7051
  }
6980
7052
  }
6981
- return r2.pop(), n.pop(), f;
7053
+ return r2.pop(), t.pop(), f;
6982
7054
  }
6983
7055
  }
6984
- const A = K();
6985
- function $(e, r2 = 8) {
6986
- const n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
6987
- let t = "";
7056
+ const R = ee();
7057
+ function ne(e, r2 = 8) {
7058
+ const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
7059
+ let n = "";
6988
7060
  for (let i = 0; i < r2; i++) {
6989
- const s = Math.floor(Math.random() * n.length);
6990
- t += n[s];
7061
+ const c = Math.floor(Math.random() * t.length);
7062
+ n += t[c];
6991
7063
  }
6992
- return `${e}${t}`;
7064
+ return `${e}${n}`;
6993
7065
  }
6994
- function q(e) {
7066
+ function ce(e) {
6995
7067
  const r2 = [];
6996
- function n(t, i) {
7068
+ function t(n, i) {
6997
7069
  i.length > 0 && r2.push([...i].sort());
6998
- for (let s = t; s < e.length; s++) {
6999
- const o = e[s];
7070
+ for (let c = n; c < e.length; c++) {
7071
+ const o = e[c];
7000
7072
  if (o)
7001
7073
  if (o.length === 1 && o[0])
7002
- n(s + 1, [...i, o[0]]);
7074
+ t(c + 1, [...i, o[0]]);
7003
7075
  else
7004
7076
  for (const u of o)
7005
- n(s + 1, [...i, u]);
7077
+ t(c + 1, [...i, u]);
7006
7078
  }
7007
7079
  }
7008
- return n(0, []), r2.sort((t, i) => t.length !== i.length ? t.length - i.length : t.join(",").localeCompare(i.join(",")));
7080
+ return t(0, []), r2.sort((n, i) => n.length !== i.length ? n.length - i.length : n.join(",").localeCompare(i.join(",")));
7009
7081
  }
7010
- function z(e, r2, n) {
7011
- const t = {
7082
+ function fe(e, r2, t) {
7083
+ const n = {
7012
7084
  ...e,
7013
- modifiers: [...n.keys()]
7014
- }, i = b(t, r2);
7015
- for (const s of n.values())
7016
- s.factory({
7085
+ modifiers: [...t.keys()]
7086
+ }, i = v(n, r2);
7087
+ for (const c of t.values())
7088
+ c.factory({
7017
7089
  ...i,
7018
- declarations: A(t.declarations),
7019
- variables: A(t.variables),
7020
- children: A(t.children)
7021
- }), g(t.declarations, i);
7022
- return t;
7023
- }
7024
- function W(e, r2) {
7025
- return function(t, i) {
7026
- const s = {
7090
+ declarations: R(n.declarations),
7091
+ variables: R(n.variables),
7092
+ children: R(n.children)
7093
+ }), V(n.declarations, i);
7094
+ return n;
7095
+ }
7096
+ function ue(e, r2) {
7097
+ return function(n, i) {
7098
+ const c = {
7027
7099
  type: "modifier",
7028
- key: Array.isArray(t) ? t : [t],
7100
+ key: Array.isArray(n) ? n : [n],
7029
7101
  factory: i
7030
7102
  };
7031
- return r2.modifiers.push(s), s;
7103
+ return r2.modifiers.push(c), c;
7032
7104
  };
7033
7105
  }
7034
- function Y() {
7106
+ function ae() {
7035
7107
  return {
7036
7108
  type: "root",
7037
7109
  declarations: {},
@@ -7043,93 +7115,166 @@ function Y() {
7043
7115
  themes: []
7044
7116
  };
7045
7117
  }
7046
- function G(e, r2, n) {
7047
- const t = r2.map((s) => s.key);
7048
- return q(t).map((s) => {
7049
- const o = /* @__PURE__ */ new Map();
7050
- for (const u of s) {
7051
- const c = r2.find(
7052
- (f) => f.key.includes(u)
7053
- );
7054
- c && o.set(u, c);
7055
- }
7056
- return z(e, n, o);
7057
- });
7058
- }
7059
- function J(e, r2) {
7060
- return function(t, i) {
7061
- const s = {
7118
+ function le(e, r2) {
7119
+ return function(n, i, c = {}) {
7120
+ const o = {
7062
7121
  type: "utility",
7063
- name: t,
7064
- factory: i
7065
- };
7066
- return r2.utilities.push(s), (o, u = []) => {
7067
- for (const [c, f] of Object.entries(o)) {
7068
- const a = {
7069
- type: "utility",
7070
- name: t,
7071
- value: c,
7072
- declarations: {},
7073
- variables: [],
7074
- children: [],
7075
- modifiers: []
7076
- }, l = b(
7077
- a,
7078
- r2
7079
- );
7080
- a.declarations = i({
7081
- ...l,
7082
- value: f
7083
- }) ?? {}, g(a.declarations, l), e.children.push(a), u.length > 0 && e.children.push(
7084
- ...G(a, u, r2)
7085
- );
7122
+ name: n,
7123
+ factory: i,
7124
+ values: [],
7125
+ autogenerate: c.autogenerate ?? z(),
7126
+ create: (u, s = []) => {
7127
+ let f = u;
7128
+ if (Array.isArray(u)) {
7129
+ f = {};
7130
+ for (const l of u) {
7131
+ const a = o.autogenerate(l);
7132
+ f = {
7133
+ ...f,
7134
+ ...a
7135
+ };
7136
+ }
7137
+ }
7138
+ for (const [l, a] of Object.entries(f)) {
7139
+ const y = o.values.find(
7140
+ (h2) => h2.key === l && h2.modifiers.length === 0
7141
+ ), m2 = {
7142
+ type: "utility",
7143
+ name: n,
7144
+ value: l,
7145
+ declarations: {},
7146
+ variables: [],
7147
+ children: [],
7148
+ modifiers: []
7149
+ }, d2 = v(
7150
+ m2,
7151
+ r2
7152
+ );
7153
+ if (m2.declarations = i({
7154
+ ...d2,
7155
+ value: a
7156
+ }) ?? {}, V(m2.declarations, d2), y || (o.values.push({
7157
+ key: l,
7158
+ value: a,
7159
+ modifiers: []
7160
+ }), e.children.push(m2)), s && s.length > 0) {
7161
+ const h2 = s.map((b) => b.key), H2 = ce(h2).filter((b) => !o.values.find(
7162
+ (g2) => g2.key === l && g2.modifiers.length === b.length && g2.modifiers.every((w2) => b.includes(w2))
7163
+ )).reduce((b, g2) => {
7164
+ const w2 = /* @__PURE__ */ new Map();
7165
+ for (const _2 of g2) {
7166
+ const k2 = s.find(
7167
+ (N2) => N2.key.includes(_2)
7168
+ );
7169
+ k2 && G(k2) && w2.set(_2, k2);
7170
+ }
7171
+ return o.values.push({
7172
+ key: l,
7173
+ value: a,
7174
+ modifiers: g2
7175
+ }), b.push(fe(m2, r2, w2)), b;
7176
+ }, []);
7177
+ e.children.push(...H2);
7178
+ }
7179
+ }
7086
7180
  }
7087
7181
  };
7182
+ return r2.utilities.push(o), o.create;
7088
7183
  };
7089
7184
  }
7090
- function Q(e, r2) {
7091
- return function(t, i) {
7092
- const s = r2.themes.find((c) => c.name === t), o = s ?? {
7185
+ function ye(e, r2) {
7186
+ return function(n, i) {
7187
+ const c = r2.themes.find((s) => s.name === n), o = c ?? {
7093
7188
  type: "theme",
7094
- name: t,
7189
+ name: n,
7095
7190
  declarations: {},
7096
7191
  variables: [],
7097
7192
  children: []
7098
7193
  };
7099
- s || r2.themes.push(o);
7100
- const u = b(o, r2);
7194
+ c || r2.themes.push(o);
7195
+ const u = v(o, r2);
7101
7196
  return i && i(u), o;
7102
7197
  };
7103
7198
  }
7104
- function X(e, r2) {
7105
- return function(t, i, s, o) {
7106
- const u = {
7199
+ function de(e, r2) {
7200
+ return function(n) {
7201
+ const i = {
7107
7202
  type: "recipe",
7108
- name: t,
7109
- defaults: i,
7110
- variants: s,
7111
- ...o
7203
+ ...n
7112
7204
  };
7113
- return r2.recipes.push(u), u;
7205
+ return i._runtime = me(i, r2), r2.recipes.push(i), i;
7114
7206
  };
7115
7207
  }
7116
- function ue(e) {
7117
- const r2 = $("sf-"), n = Y(), t = { ...e }, i = J(n, n), s = W(n, n), o = X(n, n), u = Q(n, n), { variable: c, selector: f, atRule: a, keyframes: l, media: y, ref: h2, css: d } = b(n, n);
7208
+ function C(e, r2) {
7209
+ const t = e.autogenerate(r2);
7210
+ return Object.keys(t)[0] ?? "default";
7211
+ }
7212
+ function F(e, r2) {
7213
+ const t = {};
7214
+ for (const [n, i] of Object.entries(e))
7215
+ if (P(i)) {
7216
+ const c = {};
7217
+ for (const [o, u] of Object.entries(i)) {
7218
+ const s = T(r2, o);
7219
+ s && (c[o] = C(
7220
+ s,
7221
+ u
7222
+ ));
7223
+ }
7224
+ t[n] = c;
7225
+ } else if (typeof i == "boolean")
7226
+ t[n] = i;
7227
+ else {
7228
+ const c = T(r2, n);
7229
+ c && (t[n] = C(c, i));
7230
+ }
7231
+ return t;
7232
+ }
7233
+ function me(e, r2) {
7234
+ const t = {};
7235
+ if (e.base && (t.base = F(e.base, r2)), e.variants) {
7236
+ const n = {};
7237
+ for (const [i, c] of Object.entries(e.variants)) {
7238
+ const o = {};
7239
+ for (const [u, s] of Object.entries(
7240
+ c
7241
+ ))
7242
+ s == null ? o[u] = null : o[u] = F(
7243
+ s,
7244
+ r2
7245
+ );
7246
+ n[i] = o;
7247
+ }
7248
+ t.variants = n;
7249
+ }
7250
+ return e.defaultVariants && (t.defaultVariants = { ...e.defaultVariants }), e.compoundVariants && (t.compoundVariants = e.compoundVariants.map((n) => ({
7251
+ match: { ...n.match },
7252
+ css: F(n.css, r2)
7253
+ }))), t;
7254
+ }
7255
+ function P(e) {
7256
+ return !A(e) && typeof e == "object" && e !== null;
7257
+ }
7258
+ function T(e, r2) {
7259
+ return e.utilities.find((t) => t.name === r2);
7260
+ }
7261
+ function Re(e) {
7262
+ const r2 = ne("sf-"), t = ae(), n = { ...e }, i = le(t, t), c = ue(t, t), o = de(t, t), u = ye(t, t), { variable: s, selector: f, atRule: l, keyframes: a, media: y, ref: m2, css: d2 } = v(t, t);
7118
7263
  return {
7119
7264
  id: r2,
7120
- root: n,
7121
- variable: c,
7265
+ root: t,
7266
+ variable: s,
7122
7267
  selector: f,
7123
7268
  utility: i,
7124
- modifier: s,
7269
+ modifier: c,
7125
7270
  recipe: o,
7126
7271
  theme: u,
7127
- atRule: a,
7128
- keyframes: l,
7272
+ atRule: l,
7273
+ keyframes: a,
7129
7274
  media: y,
7130
- ref: h2,
7131
- css: d,
7132
- options: t
7275
+ ref: m2,
7276
+ css: d2,
7277
+ options: n
7133
7278
  };
7134
7279
  }
7135
7280
  async function loadConfiguration({
@@ -7139,7 +7284,7 @@ async function loadConfiguration({
7139
7284
  const { config } = await loadConfig({
7140
7285
  cwd: cwd2,
7141
7286
  name,
7142
- defaults: ue()
7287
+ defaults: Re()
7143
7288
  });
7144
7289
  return config;
7145
7290
  }
@@ -7202,7 +7347,7 @@ export {
7202
7347
  commonjsGlobal as c,
7203
7348
  defu as d,
7204
7349
  build$1 as e,
7205
- h,
7350
+ h$1 as h,
7206
7351
  join as j,
7207
7352
  normalize as n,
7208
7353
  resolve as r