@vuebro/runtime 1.1.62 → 1.1.64

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.
@@ -1872,7 +1872,7 @@ function _1() {
1872
1872
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(G, ee) {
1873
1873
  G.__proto__ = ee;
1874
1874
  } || function(G, ee) {
1875
- for (var ce in ee) ee.hasOwnProperty(ce) && (G[ce] = ee[ce]);
1875
+ for (var ae in ee) ee.hasOwnProperty(ae) && (G[ae] = ee[ae]);
1876
1876
  }, t(F, q);
1877
1877
  }, function(F, q) {
1878
1878
  function G() {
@@ -1900,10 +1900,10 @@ function _1() {
1900
1900
  var ee = F.call(this) || this;
1901
1901
  return ee.name = G, ee._failMsg = "is not a " + G, ee;
1902
1902
  }
1903
- return s(q, F), q.prototype.getChecker = function(G, ee, ce) {
1904
- var be = this, Y = c(G, this.name), ae = Y.getChecker(G, ee, ce);
1905
- return Y instanceof N || Y instanceof q ? ae : function(J, $) {
1906
- return !!ae(J, $) || $.fail(null, be._failMsg, 0);
1903
+ return s(q, F), q.prototype.getChecker = function(G, ee, ae) {
1904
+ var be = this, Y = c(G, this.name), le = Y.getChecker(G, ee, ae);
1905
+ return Y instanceof N || Y instanceof q ? le : function(J, $) {
1906
+ return !!le(J, $) || $.fail(null, be._failMsg, 0);
1907
1907
  };
1908
1908
  }, q;
1909
1909
  })(i);
@@ -1916,9 +1916,9 @@ function _1() {
1916
1916
  return ee.value = G, ee.name = JSON.stringify(G), ee._failMsg = "is not " + ee.name, ee;
1917
1917
  }
1918
1918
  return s(q, F), q.prototype.getChecker = function(G, ee) {
1919
- var ce = this;
1919
+ var ae = this;
1920
1920
  return function(be, Y) {
1921
- return be === ce.value || Y.fail(null, ce._failMsg, -1);
1921
+ return be === ae.value || Y.fail(null, ae._failMsg, -1);
1922
1922
  };
1923
1923
  }, q;
1924
1924
  })(i);
@@ -1931,11 +1931,11 @@ function _1() {
1931
1931
  return ee.ttype = G, ee;
1932
1932
  }
1933
1933
  return s(q, F), q.prototype.getChecker = function(G, ee) {
1934
- var ce = this.ttype.getChecker(G, ee);
1934
+ var ae = this.ttype.getChecker(G, ee);
1935
1935
  return function(be, Y) {
1936
1936
  if (!Array.isArray(be)) return Y.fail(null, "is not an array", 0);
1937
- for (var ae = 0; ae < be.length; ae++)
1938
- if (!ce(be[ae], Y)) return Y.fail(ae, null, 1);
1937
+ for (var le = 0; le < be.length; le++)
1938
+ if (!ae(be[le], Y)) return Y.fail(le, null, 1);
1939
1939
  return !0;
1940
1940
  };
1941
1941
  }, q;
@@ -1952,16 +1952,16 @@ function _1() {
1952
1952
  return ee.ttypes = G, ee;
1953
1953
  }
1954
1954
  return s(q, F), q.prototype.getChecker = function(G, ee) {
1955
- var ce = this.ttypes.map(function(Y) {
1955
+ var ae = this.ttypes.map(function(Y) {
1956
1956
  return Y.getChecker(G, ee);
1957
- }), be = function(Y, ae) {
1958
- if (!Array.isArray(Y)) return ae.fail(null, "is not an array", 0);
1959
- for (var J = 0; J < ce.length; J++)
1960
- if (!ce[J](Y[J], ae)) return ae.fail(J, null, 1);
1957
+ }), be = function(Y, le) {
1958
+ if (!Array.isArray(Y)) return le.fail(null, "is not an array", 0);
1959
+ for (var J = 0; J < ae.length; J++)
1960
+ if (!ae[J](Y[J], le)) return le.fail(J, null, 1);
1961
1961
  return !0;
1962
1962
  };
1963
- return ee ? function(Y, ae) {
1964
- return !!be(Y, ae) && (Y.length <= ce.length || ae.fail(ce.length, "is extraneous", 2));
1963
+ return ee ? function(Y, le) {
1964
+ return !!be(Y, le) && (Y.length <= ae.length || le.fail(ae.length, "is extraneous", 2));
1965
1965
  } : be;
1966
1966
  }, q;
1967
1967
  })(i);
@@ -1975,21 +1975,21 @@ function _1() {
1975
1975
  function q(G) {
1976
1976
  var ee = F.call(this) || this;
1977
1977
  ee.ttypes = G;
1978
- var ce = G.map(function(Y) {
1978
+ var ae = G.map(function(Y) {
1979
1979
  return Y instanceof p || Y instanceof d ? Y.name : null;
1980
1980
  }).filter(function(Y) {
1981
1981
  return Y;
1982
- }), be = G.length - ce.length;
1983
- return ce.length ? (be > 0 && ce.push(be + " more"), ee._failMsg = "is none of " + ce.join(", ")) : ee._failMsg = "is none of " + be + " types", ee;
1982
+ }), be = G.length - ae.length;
1983
+ return ae.length ? (be > 0 && ae.push(be + " more"), ee._failMsg = "is none of " + ae.join(", ")) : ee._failMsg = "is none of " + be + " types", ee;
1984
1984
  }
1985
1985
  return s(q, F), q.prototype.getChecker = function(G, ee) {
1986
- var ce = this, be = this.ttypes.map(function(Y) {
1986
+ var ae = this, be = this.ttypes.map(function(Y) {
1987
1987
  return Y.getChecker(G, ee);
1988
1988
  });
1989
- return function(Y, ae) {
1990
- for (var J = ae.unionResolver(), $ = 0; $ < be.length; $++)
1989
+ return function(Y, le) {
1990
+ for (var J = le.unionResolver(), $ = 0; $ < be.length; $++)
1991
1991
  if (be[$](Y, J.createContext())) return !0;
1992
- return ae.resolveUnion(J), ae.fail(null, ce._failMsg, 0);
1992
+ return le.resolveUnion(J), le.fail(null, ae._failMsg, 0);
1993
1993
  };
1994
1994
  }, q;
1995
1995
  })(i);
@@ -2005,13 +2005,13 @@ function _1() {
2005
2005
  return ee.ttypes = G, ee;
2006
2006
  }
2007
2007
  return s(q, F), q.prototype.getChecker = function(G, ee) {
2008
- var ce = /* @__PURE__ */ new Set(), be = this.ttypes.map(function(Y) {
2009
- return Y.getChecker(G, ee, ce);
2008
+ var ae = /* @__PURE__ */ new Set(), be = this.ttypes.map(function(Y) {
2009
+ return Y.getChecker(G, ee, ae);
2010
2010
  });
2011
- return function(Y, ae) {
2011
+ return function(Y, le) {
2012
2012
  return !!be.every(function(J) {
2013
- return J(Y, ae);
2014
- }) || ae.fail(null, null, 0);
2013
+ return J(Y, le);
2014
+ }) || le.fail(null, null, 0);
2015
2015
  };
2016
2016
  }, q;
2017
2017
  })(i);
@@ -2021,14 +2021,14 @@ function _1() {
2021
2021
  var y = (function(F) {
2022
2022
  function q(G) {
2023
2023
  var ee = F.call(this) || this;
2024
- return ee.members = G, ee.validValues = /* @__PURE__ */ new Set(), ee._failMsg = "is not a valid enum value", ee.validValues = new Set(Object.keys(G).map(function(ce) {
2025
- return G[ce];
2024
+ return ee.members = G, ee.validValues = /* @__PURE__ */ new Set(), ee._failMsg = "is not a valid enum value", ee.validValues = new Set(Object.keys(G).map(function(ae) {
2025
+ return G[ae];
2026
2026
  })), ee;
2027
2027
  }
2028
2028
  return s(q, F), q.prototype.getChecker = function(G, ee) {
2029
- var ce = this;
2029
+ var ae = this;
2030
2030
  return function(be, Y) {
2031
- return !!ce.validValues.has(be) || Y.fail(null, ce._failMsg, 0);
2031
+ return !!ae.validValues.has(be) || Y.fail(null, ae._failMsg, 0);
2032
2032
  };
2033
2033
  }, q;
2034
2034
  })(i);
@@ -2037,16 +2037,16 @@ function _1() {
2037
2037
  };
2038
2038
  var T = (function(F) {
2039
2039
  function q(G, ee) {
2040
- var ce = F.call(this) || this;
2041
- return ce.enumName = G, ce.prop = ee, ce._failMsg = "is not " + G + "." + ee, ce;
2040
+ var ae = F.call(this) || this;
2041
+ return ae.enumName = G, ae.prop = ee, ae._failMsg = "is not " + G + "." + ee, ae;
2042
2042
  }
2043
2043
  return s(q, F), q.prototype.getChecker = function(G, ee) {
2044
- var ce = this, be = c(G, this.enumName);
2044
+ var ae = this, be = c(G, this.enumName);
2045
2045
  if (!(be instanceof y)) throw new Error("Type " + this.enumName + " used in enumlit is not an enum type");
2046
2046
  var Y = be.members[this.prop];
2047
2047
  if (!be.members.hasOwnProperty(this.prop)) throw new Error("Unknown value " + this.enumName + "." + this.prop + " used in enumlit");
2048
- return function(ae, J) {
2049
- return ae === Y || J.fail(null, ce._failMsg, -1);
2048
+ return function(le, J) {
2049
+ return le === Y || J.fail(null, ae._failMsg, -1);
2050
2050
  };
2051
2051
  }, q;
2052
2052
  })(i);
@@ -2062,34 +2062,34 @@ function _1() {
2062
2062
  };
2063
2063
  var E = (function(F) {
2064
2064
  function q(G, ee) {
2065
- var ce = F.call(this) || this;
2066
- return ce.bases = G, ce.props = ee, ce.propSet = new Set(ee.map(function(be) {
2065
+ var ae = F.call(this) || this;
2066
+ return ae.bases = G, ae.props = ee, ae.propSet = new Set(ee.map(function(be) {
2067
2067
  return be.name;
2068
- })), ce;
2068
+ })), ae;
2069
2069
  }
2070
- return s(q, F), q.prototype.getChecker = function(G, ee, ce) {
2070
+ return s(q, F), q.prototype.getChecker = function(G, ee, ae) {
2071
2071
  var be = this, Y = this.bases.map(function(se) {
2072
2072
  return c(G, se).getChecker(G, ee);
2073
- }), ae = this.props.map(function(se) {
2073
+ }), le = this.props.map(function(se) {
2074
2074
  return se.ttype.getChecker(G, ee);
2075
2075
  }), J = new n.NoopContext(), $ = this.props.map(function(se, z) {
2076
- return !se.isOpt && !ae[z](void 0, J);
2076
+ return !se.isOpt && !le[z](void 0, J);
2077
2077
  }), ie = function(se, z) {
2078
2078
  if (typeof se != "object" || se === null) return z.fail(null, "is not an object", 0);
2079
2079
  for (var oe = 0; oe < Y.length; oe++) if (!Y[oe](se, z)) return !1;
2080
- for (oe = 0; oe < ae.length; oe++) {
2081
- var le = be.props[oe].name, ge = se[le];
2080
+ for (oe = 0; oe < le.length; oe++) {
2081
+ var ce = be.props[oe].name, ge = se[ce];
2082
2082
  if (ge === void 0) {
2083
- if ($[oe]) return z.fail(le, "is missing", 1);
2084
- } else if (!ae[oe](ge, z)) return z.fail(le, null, 1);
2083
+ if ($[oe]) return z.fail(ce, "is missing", 1);
2084
+ } else if (!le[oe](ge, z)) return z.fail(ce, null, 1);
2085
2085
  }
2086
2086
  return !0;
2087
2087
  };
2088
2088
  if (!ee) return ie;
2089
2089
  var Q = this.propSet;
2090
- return ce && (this.propSet.forEach(function(se) {
2091
- return ce.add(se);
2092
- }), Q = ce), function(se, z) {
2090
+ return ae && (this.propSet.forEach(function(se) {
2091
+ return ae.add(se);
2092
+ }), Q = ae), function(se, z) {
2093
2093
  if (!ie(se, z)) return !1;
2094
2094
  for (var oe in se) if (!Q.has(oe)) return z.fail(oe, "is extraneous", 2);
2095
2095
  return !0;
@@ -2105,9 +2105,9 @@ function _1() {
2105
2105
  return ee.ttype = G, ee;
2106
2106
  }
2107
2107
  return s(q, F), q.prototype.getChecker = function(G, ee) {
2108
- var ce = this.ttype.getChecker(G, ee);
2108
+ var ae = this.ttype.getChecker(G, ee);
2109
2109
  return function(be, Y) {
2110
- return be === void 0 || ce(be, Y);
2110
+ return be === void 0 || ae(be, Y);
2111
2111
  };
2112
2112
  }, q;
2113
2113
  })(i);
@@ -2121,12 +2121,12 @@ function _1() {
2121
2121
  };
2122
2122
  var A = (function(F) {
2123
2123
  function q(G, ee) {
2124
- var ce = F.call(this) || this;
2125
- return ce.paramList = G, ce.result = ee, ce;
2124
+ var ae = F.call(this) || this;
2125
+ return ae.paramList = G, ae.result = ee, ae;
2126
2126
  }
2127
2127
  return s(q, F), q.prototype.getChecker = function(G, ee) {
2128
- return function(ce, be) {
2129
- return typeof ce == "function" || be.fail(null, "is not a function", 0);
2128
+ return function(ae, be) {
2129
+ return typeof ae == "function" || be.fail(null, "is not a function", 0);
2130
2130
  };
2131
2131
  }, q;
2132
2132
  })(i);
@@ -2143,16 +2143,16 @@ function _1() {
2143
2143
  return ee.params = G, ee;
2144
2144
  }
2145
2145
  return s(q, F), q.prototype.getChecker = function(G, ee) {
2146
- var ce = this, be = this.params.map(function($) {
2146
+ var ae = this, be = this.params.map(function($) {
2147
2147
  return $.ttype.getChecker(G, ee);
2148
- }), Y = new n.NoopContext(), ae = this.params.map(function($, ie) {
2148
+ }), Y = new n.NoopContext(), le = this.params.map(function($, ie) {
2149
2149
  return !$.isOpt && !be[ie](void 0, Y);
2150
2150
  }), J = function($, ie) {
2151
2151
  if (!Array.isArray($)) return ie.fail(null, "is not an array", 0);
2152
2152
  for (var Q = 0; Q < be.length; Q++) {
2153
- var se = ce.params[Q];
2153
+ var se = ae.params[Q];
2154
2154
  if ($[Q] === void 0) {
2155
- if (ae[Q]) return ie.fail(se.name, "is missing", 1);
2155
+ if (le[Q]) return ie.fail(se.name, "is missing", 1);
2156
2156
  } else if (!be[Q]($[Q], ie)) return ie.fail(se.name, null, 1);
2157
2157
  }
2158
2158
  return !0;
@@ -2165,13 +2165,13 @@ function _1() {
2165
2165
  e.TParamList = D;
2166
2166
  var N = (function(F) {
2167
2167
  function q(G, ee) {
2168
- var ce = F.call(this) || this;
2169
- return ce.validator = G, ce.message = ee, ce;
2168
+ var ae = F.call(this) || this;
2169
+ return ae.validator = G, ae.message = ee, ae;
2170
2170
  }
2171
2171
  return s(q, F), q.prototype.getChecker = function(G, ee) {
2172
- var ce = this;
2172
+ var ae = this;
2173
2173
  return function(be, Y) {
2174
- return !!ce.validator(be) || Y.fail(null, ce.message, 0);
2174
+ return !!ae.validator(be) || Y.fail(null, ae.message, 0);
2175
2175
  };
2176
2176
  }, q;
2177
2177
  })(i);
@@ -5578,14 +5578,14 @@ function Rk() {
5578
5578
  return $(P, { beforeExpr: D, binop: r });
5579
5579
  }
5580
5580
  let G = -1;
5581
- const ee = [], ce = [], be = [], Y = [], ae = [], J = [];
5581
+ const ee = [], ae = [], be = [], Y = [], le = [], J = [];
5582
5582
  function $(P, r = {}) {
5583
5583
  var a, u, x, S;
5584
- return ++G, ce.push(P), be.push((a = r.binop) != null ? a : -1), Y.push((u = r.beforeExpr) != null && u), ae.push((x = r.startsExpr) != null && x), J.push((S = r.prefix) != null && S), ee.push(new W(P, r)), G;
5584
+ return ++G, ae.push(P), be.push((a = r.binop) != null ? a : -1), Y.push((u = r.beforeExpr) != null && u), le.push((x = r.startsExpr) != null && x), J.push((S = r.prefix) != null && S), ee.push(new W(P, r)), G;
5585
5585
  }
5586
5586
  function ie(P, r = {}) {
5587
5587
  var a, u, x, S;
5588
- return ++G, V.set(P, G), ce.push(P), be.push((a = r.binop) != null ? a : -1), Y.push((u = r.beforeExpr) != null && u), ae.push((x = r.startsExpr) != null && x), J.push((S = r.prefix) != null && S), ee.push(new W("name", r)), G;
5588
+ return ++G, V.set(P, G), ae.push(P), be.push((a = r.binop) != null ? a : -1), Y.push((u = r.beforeExpr) != null && u), le.push((x = r.startsExpr) != null && x), J.push((S = r.prefix) != null && S), ee.push(new W("name", r)), G;
5589
5589
  }
5590
5590
  const Q = { bracketL: $("[", { beforeExpr: D, startsExpr: N }), bracketHashL: $("#[", { beforeExpr: D, startsExpr: N }), bracketBarL: $("[|", { beforeExpr: D, startsExpr: N }), bracketR: $("]"), bracketBarR: $("|]"), braceL: $("{", { beforeExpr: D, startsExpr: N }), braceBarL: $("{|", { beforeExpr: D, startsExpr: N }), braceHashL: $("#{", { beforeExpr: D, startsExpr: N }), braceR: $("}"), braceBarR: $("|}"), parenL: $("(", { beforeExpr: D, startsExpr: N }), parenR: $(")"), comma: $(",", { beforeExpr: D }), semi: $(";", { beforeExpr: D }), colon: $(":", { beforeExpr: D }), doubleColon: $("::", { beforeExpr: D }), dot: $("."), question: $("?", { beforeExpr: D }), questionDot: $("?."), arrow: $("=>", { beforeExpr: D }), template: $("template"), ellipsis: $("...", { beforeExpr: D }), backQuote: $("`", { startsExpr: N }), dollarBraceL: $("${", { beforeExpr: D, startsExpr: N }), templateTail: $("...`", { startsExpr: N }), templateNonTail: $("...${", { beforeExpr: D, startsExpr: N }), at: $("@"), hash: $("#", { startsExpr: N }), interpreterDirective: $("#!..."), eq: $("=", { beforeExpr: D, isAssign: U }), assign: $("_=", { beforeExpr: D, isAssign: U }), slashAssign: $("_=", { beforeExpr: D, isAssign: U }), xorAssign: $("_=", { beforeExpr: D, isAssign: U }), moduloAssign: $("_=", { beforeExpr: D, isAssign: U }), incDec: $("++/--", { prefix: X, postfix: !0, startsExpr: N }), bang: $("!", { beforeExpr: D, prefix: X, startsExpr: N }), tilde: $("~", { beforeExpr: D, prefix: X, startsExpr: N }), doubleCaret: $("^^", { startsExpr: N }), doubleAt: $("@@", { startsExpr: N }), pipeline: q("|>", 0), nullishCoalescing: q("??", 1), logicalOR: q("||", 1), logicalAND: q("&&", 2), bitwiseOR: q("|", 3), bitwiseXOR: q("^", 4), bitwiseAND: q("&", 5), equality: q("==/!=/===/!==", 6), lt: q("</>/<=/>=", 7), gt: q("</>/<=/>=", 7), relational: q("</>/<=/>=", 7), bitShift: q("<</>>/>>>", 8), bitShiftL: q("<</>>/>>>", 8), bitShiftR: q("<</>>/>>>", 8), plusMin: $("+/-", { beforeExpr: D, binop: 9, prefix: X, startsExpr: N }), modulo: $("%", { binop: 10, startsExpr: N }), star: $("*", { binop: 10 }), slash: q("/", 10), exponent: $("**", { beforeExpr: D, binop: 11, rightAssociative: !0 }), _in: F("in", { beforeExpr: D, binop: 7 }), _instanceof: F("instanceof", { beforeExpr: D, binop: 7 }), _break: F("break"), _case: F("case", { beforeExpr: D }), _catch: F("catch"), _continue: F("continue"), _debugger: F("debugger"), _default: F("default", { beforeExpr: D }), _else: F("else", { beforeExpr: D }), _finally: F("finally"), _function: F("function", { startsExpr: N }), _if: F("if"), _return: F("return", { beforeExpr: D }), _switch: F("switch"), _throw: F("throw", { beforeExpr: D, prefix: X, startsExpr: N }), _try: F("try"), _var: F("var"), _const: F("const"), _with: F("with"), _new: F("new", { beforeExpr: D, startsExpr: N }), _this: F("this", { startsExpr: N }), _super: F("super", { startsExpr: N }), _class: F("class", { startsExpr: N }), _extends: F("extends", { beforeExpr: D }), _export: F("export"), _import: F("import", { startsExpr: N }), _null: F("null", { startsExpr: N }), _true: F("true", { startsExpr: N }), _false: F("false", { startsExpr: N }), _typeof: F("typeof", { beforeExpr: D, prefix: X, startsExpr: N }), _void: F("void", { beforeExpr: D, prefix: X, startsExpr: N }), _delete: F("delete", { beforeExpr: D, prefix: X, startsExpr: N }), _do: F("do", { isLoop: j, beforeExpr: D }), _for: F("for", { isLoop: j }), _while: F("while", { isLoop: j }), _as: ie("as", { startsExpr: N }), _assert: ie("assert", { startsExpr: N }), _async: ie("async", { startsExpr: N }), _await: ie("await", { startsExpr: N }), _defer: ie("defer", { startsExpr: N }), _from: ie("from", { startsExpr: N }), _get: ie("get", { startsExpr: N }), _let: ie("let", { startsExpr: N }), _meta: ie("meta", { startsExpr: N }), _of: ie("of", { startsExpr: N }), _sent: ie("sent", { startsExpr: N }), _set: ie("set", { startsExpr: N }), _source: ie("source", { startsExpr: N }), _static: ie("static", { startsExpr: N }), _using: ie("using", { startsExpr: N }), _yield: ie("yield", { startsExpr: N }), _asserts: ie("asserts", { startsExpr: N }), _checks: ie("checks", { startsExpr: N }), _exports: ie("exports", { startsExpr: N }), _global: ie("global", { startsExpr: N }), _implements: ie("implements", { startsExpr: N }), _intrinsic: ie("intrinsic", { startsExpr: N }), _infer: ie("infer", { startsExpr: N }), _is: ie("is", { startsExpr: N }), _mixins: ie("mixins", { startsExpr: N }), _proto: ie("proto", { startsExpr: N }), _require: ie("require", { startsExpr: N }), _satisfies: ie("satisfies", { startsExpr: N }), _keyof: ie("keyof", { startsExpr: N }), _readonly: ie("readonly", { startsExpr: N }), _unique: ie("unique", { startsExpr: N }), _abstract: ie("abstract", { startsExpr: N }), _declare: ie("declare", { startsExpr: N }), _enum: ie("enum", { startsExpr: N }), _module: ie("module", { startsExpr: N }), _namespace: ie("namespace", { startsExpr: N }), _interface: ie("interface", { startsExpr: N }), _type: ie("type", { startsExpr: N }), _opaque: ie("opaque", { startsExpr: N }), name: $("name", { startsExpr: N }), placeholder: $("%%", { startsExpr: N }), string: $("string", { startsExpr: N }), num: $("num", { startsExpr: N }), bigint: $("bigint", { startsExpr: N }), decimal: $("decimal", { startsExpr: N }), regexp: $("regexp", { startsExpr: N }), privateName: $("#name", { startsExpr: N }), eof: $("eof"), jsxName: $("jsxName"), jsxText: $("jsxText", { beforeExpr: D }), jsxTagStart: $("jsxTagStart", { startsExpr: N }), jsxTagEnd: $("jsxTagEnd") };
5591
5591
  function se(P) {
@@ -5597,8 +5597,8 @@ function Rk() {
5597
5597
  function oe(P) {
5598
5598
  return P >= 58 && P <= 137;
5599
5599
  }
5600
- function le(P) {
5601
- return ae[P];
5600
+ function ce(P) {
5601
+ return le[P];
5602
5602
  }
5603
5603
  function ge(P) {
5604
5604
  return P >= 129 && P <= 131;
@@ -5610,7 +5610,7 @@ function Rk() {
5610
5610
  return P === 34;
5611
5611
  }
5612
5612
  function me(P) {
5613
- return ce[P];
5613
+ return ae[P];
5614
5614
  }
5615
5615
  function Oe(P) {
5616
5616
  return be[P];
@@ -9550,7 +9550,7 @@ function Rk() {
9550
9550
  return ne.callee = r, ne.arguments = this.parseCallExpressionArguments(), this.tsCheckForInvalidTypeCasts(ne.arguments), ne.typeParameters = R, x.optionalChainMember && (ne.optional = S), this.finishCallExpression(ne, x.optionalChainMember);
9551
9551
  }
9552
9552
  const M = this.state.type;
9553
- if (M === 48 || M === 52 || M !== 10 && le(M) && !this.hasPrecedingLineBreak()) return;
9553
+ if (M === 48 || M === 52 || M !== 10 && ce(M) && !this.hasPrecedingLineBreak()) return;
9554
9554
  const K = this.startNodeAt(a);
9555
9555
  return K.expression = r, K.typeParameters = R, this.finishNode(K, "TSInstantiationExpression");
9556
9556
  });
@@ -10262,7 +10262,7 @@ function Rk() {
10262
10262
  var R;
10263
10263
  if (S && this.checkExpressionErrors(r, !0), x) {
10264
10264
  const { type: M } = this.state;
10265
- if ((this.hasPlugin("v8intrinsic") ? le(M) : le(M) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier()) return this.raiseOverwrite(b.YieldNotInGeneratorFunction, u), this.parseYield(u);
10265
+ if ((this.hasPlugin("v8intrinsic") ? ce(M) : ce(M) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier()) return this.raiseOverwrite(b.YieldNotInGeneratorFunction, u), this.parseYield(u);
10266
10266
  }
10267
10267
  return I;
10268
10268
  }
@@ -10359,7 +10359,7 @@ function Rk() {
10359
10359
  const R = this.parseUpdate(_, S, r);
10360
10360
  if (x) {
10361
10361
  const { type: M } = this.state;
10362
- if ((this.hasPlugin("v8intrinsic") ? le(M) : le(M) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier()) return this.raiseOverwrite(b.AwaitNotInAsyncContext, u), this.parseAwait(u);
10362
+ if ((this.hasPlugin("v8intrinsic") ? ce(M) : ce(M) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier()) return this.raiseOverwrite(b.AwaitNotInAsyncContext, u), this.parseAwait(u);
10363
10363
  }
10364
10364
  return R;
10365
10365
  }
@@ -14583,27 +14583,27 @@ function fn(e, t, s = e.props, n, i, o = !1) {
14583
14583
  const { loc: V, name: F, nameLoc: q, value: G } = W;
14584
14584
  let ee = !0;
14585
14585
  if (F === "ref" && (T = !0, N(), G && t.inline)) {
14586
- const ce = t.bindingMetadata[G.content];
14587
- ce !== "setup-let" && ce !== "setup-ref" && ce !== "setup-maybe-ref" || (ee = !1, d.push(Ve(ue("ref_key", !0), ue(G.content, !0, G.loc))));
14586
+ const ae = t.bindingMetadata[G.content];
14587
+ ae !== "setup-let" && ae !== "setup-ref" && ae !== "setup-maybe-ref" || (ee = !1, d.push(Ve(ue("ref_key", !0), ue(G.content, !0, G.loc))));
14588
14588
  }
14589
14589
  if (F === "is" && (vp(c) || G && G.content.startsWith("vue:"))) continue;
14590
14590
  d.push(Ve(ue(F, !0, q), ue(G ? G.content : "", ee, G ? G.loc : V)));
14591
14591
  } else {
14592
- const { name: V, arg: F, exp: q, loc: G, modifiers: ee } = W, ce = V === "bind", be = V === "on";
14592
+ const { name: V, arg: F, exp: q, loc: G, modifiers: ee } = W, ae = V === "bind", be = V === "on";
14593
14593
  if (V === "slot") {
14594
14594
  n || t.onError($e(40, G));
14595
14595
  continue;
14596
14596
  }
14597
- if (V === "once" || V === "memo" || V === "is" || ce && Tr(F, "is") && vp(c) || be && o) continue;
14598
- if ((ce && Tr(F, "key") || be && v && Tr(F, "vue:before-update")) && (m = !0), ce && Tr(F, "ref") && N(), !F && (ce || be)) {
14599
- C = !0, q ? ce ? (N(), D(), g.push(q)) : D({ type: 14, loc: G, callee: t.helper(va), arguments: n ? [q] : [q, "true"] }) : t.onError($e(ce ? 34 : 35, G));
14597
+ if (V === "once" || V === "memo" || V === "is" || ae && Tr(F, "is") && vp(c) || be && o) continue;
14598
+ if ((ae && Tr(F, "key") || be && v && Tr(F, "vue:before-update")) && (m = !0), ae && Tr(F, "ref") && N(), !F && (ae || be)) {
14599
+ C = !0, q ? ae ? (N(), D(), g.push(q)) : D({ type: 14, loc: G, callee: t.helper(va), arguments: n ? [q] : [q, "true"] }) : t.onError($e(ae ? 34 : 35, G));
14600
14600
  continue;
14601
14601
  }
14602
- ce && ee.some((ae) => ae.content === "prop") && (y |= 32);
14602
+ ae && ee.some((le) => le.content === "prop") && (y |= 32);
14603
14603
  const Y = t.directiveTransforms[V];
14604
14604
  if (Y) {
14605
- const { props: ae, needRuntime: J } = Y(W, e, t);
14606
- !o && ae.forEach(j), be && F && !kt(F) ? D(Bt(ae, l)) : d.push(...ae), J && (f.push(W), is(J) && Lx.set(W, J));
14605
+ const { props: le, needRuntime: J } = Y(W, e, t);
14606
+ !o && le.forEach(j), be && F && !kt(F) ? D(Bt(le, l)) : d.push(...le), J && (f.push(W), is(J) && Lx.set(W, J));
14607
14607
  } else uh(V) || (f.push(W), v && (m = !0));
14608
14608
  }
14609
14609
  }
@@ -16514,8 +16514,8 @@ function kb(e, t, s, n) {
16514
16514
  var ee = l.indexOf("?");
16515
16515
  if (ee !== -1 ? (e.search = l.substr(ee), e.query = l.substr(ee + 1), s && (e.query = of(e.query)), l = l.slice(0, ee)) : s && (e.search = "", e.query = {}), l && (e.pathname = l), en[y] && e.hostname && !e.pathname && (e.pathname = "/"), e.pathname || e.search) {
16516
16516
  v = e.pathname || "";
16517
- var ce = e.search || "";
16518
- e.path = v + ce;
16517
+ var ae = e.search || "";
16518
+ e.path = v + ae;
16519
16519
  }
16520
16520
  return e.href = mu(e), e;
16521
16521
  }
@@ -17248,7 +17248,7 @@ function t0() {
17248
17248
  _f = 1;
17249
17249
  const e = 39, t = 34, s = 92, n = 47, i = 10, o = 32, c = 12, l = 9, p = 13, d = 91, g = 93, f = 40, v = 41, m = 123, y = 125, T = 59, b = 42, E = 58, w = 64, C = /[\t\n\f\r "#'()/;[\\\]{}]/g, A = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, O = /.[\r\n"'(/\\]/, D = /[\da-f]/i;
17250
17250
  return $c = function(N, j = {}) {
17251
- let U, X, W, V, F, q, G, ee, ce, be, Y = N.css.valueOf(), ae = j.ignoreErrors, J = Y.length, $ = 0, ie = [], Q = [];
17251
+ let U, X, W, V, F, q, G, ee, ae, be, Y = N.css.valueOf(), le = j.ignoreErrors, J = Y.length, $ = 0, ie = [], Q = [];
17252
17252
  function se(z) {
17253
17253
  throw N.error("Unclosed " + z, $);
17254
17254
  }
@@ -17279,16 +17279,16 @@ function t0() {
17279
17279
  case E:
17280
17280
  case T:
17281
17281
  case v: {
17282
- let le = String.fromCharCode(U);
17283
- q = [le, le, $];
17282
+ let ce = String.fromCharCode(U);
17283
+ q = [ce, ce, $];
17284
17284
  break;
17285
17285
  }
17286
17286
  case f:
17287
- if (be = ie.length ? ie.pop()[1] : "", ce = Y.charCodeAt($ + 1), be === "url" && ce !== e && ce !== t && ce !== o && ce !== i && ce !== l && ce !== c && ce !== p) {
17287
+ if (be = ie.length ? ie.pop()[1] : "", ae = Y.charCodeAt($ + 1), be === "url" && ae !== e && ae !== t && ae !== o && ae !== i && ae !== l && ae !== c && ae !== p) {
17288
17288
  V = $;
17289
17289
  do {
17290
17290
  if (G = !1, V = Y.indexOf(")", V + 1), V === -1) {
17291
- if (ae || oe) {
17291
+ if (le || oe) {
17292
17292
  V = $;
17293
17293
  break;
17294
17294
  }
@@ -17304,7 +17304,7 @@ function t0() {
17304
17304
  F = U === e ? "'" : '"', V = $;
17305
17305
  do {
17306
17306
  if (G = !1, V = Y.indexOf(F, V + 1), V === -1) {
17307
- if (ae || oe) {
17307
+ if (le || oe) {
17308
17308
  V = $ + 1;
17309
17309
  break;
17310
17310
  }
@@ -17326,7 +17326,7 @@ function t0() {
17326
17326
  q = ["word", Y.slice($, V + 1), $, V], $ = V;
17327
17327
  break;
17328
17328
  default:
17329
- U === n && Y.charCodeAt($ + 1) === b ? (V = Y.indexOf("*/", $ + 2) + 1, V === 0 && (ae || oe ? V = Y.length : se("comment")), q = ["comment", Y.slice($, V + 1), $, V], $ = V) : (A.lastIndex = $ + 1, A.test(Y), V = A.lastIndex === 0 ? Y.length - 1 : A.lastIndex - 2, q = ["word", Y.slice($, V + 1), $, V], ie.push(q), $ = V);
17329
+ U === n && Y.charCodeAt($ + 1) === b ? (V = Y.indexOf("*/", $ + 2) + 1, V === 0 && (le || oe ? V = Y.length : se("comment")), q = ["comment", Y.slice($, V + 1), $, V], $ = V) : (A.lastIndex = $ + 1, A.test(Y), V = A.lastIndex === 0 ? Y.length - 1 : A.lastIndex - 2, q = ["word", Y.slice($, V + 1), $, V], ie.push(q), $ = V);
17330
17330
  }
17331
17331
  return $++, q;
17332
17332
  }, position: function() {
@@ -19964,8 +19964,8 @@ function $w() {
19964
19964
  return Nm || (Nm = 1, (function(e) {
19965
19965
  e.__esModule = !0, e.FIELDS = void 0, e.default = function(v) {
19966
19966
  var m, y, T, b, E, w, C, A, O, D, N, j, U = [], X = v.css.valueOf(), W = X.length, V = -1, F = 1, q = 0, G = 0;
19967
- function ee(ce, be) {
19968
- if (!v.safe) throw v.error("Unclosed " + ce, F, q - V, q);
19967
+ function ee(ae, be) {
19968
+ if (!v.safe) throw v.error("Unclosed " + ae, F, q - V, q);
19969
19969
  A = (X += be).length - 1;
19970
19970
  }
19971
19971
  for (; q < W; ) {
@@ -20070,15 +20070,15 @@ function qw() {
20070
20070
  var s, n, i = N(d0()), o = N(f0()), c = N(m0()), l = N(g0()), p = N(y0()), d = N(x0()), g = N(b0()), f = N(v0()), v = D(T0()), m = N(k0()), y = N(S0()), T = N(E0()), b = N(Uw()), E = D($w()), w = D(w0()), C = D(It()), A = Ha();
20071
20071
  function O(Y) {
20072
20072
  if (typeof WeakMap != "function") return null;
20073
- var ae = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap();
20073
+ var le = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap();
20074
20074
  return (O = function($) {
20075
- return $ ? J : ae;
20075
+ return $ ? J : le;
20076
20076
  })(Y);
20077
20077
  }
20078
- function D(Y, ae) {
20078
+ function D(Y, le) {
20079
20079
  if (Y && Y.__esModule) return Y;
20080
20080
  if (Y === null || typeof Y != "object" && typeof Y != "function") return { default: Y };
20081
- var J = O(ae);
20081
+ var J = O(le);
20082
20082
  if (J && J.has(Y)) return J.get(Y);
20083
20083
  var $ = {}, ie = Object.defineProperty && Object.getOwnPropertyDescriptor;
20084
20084
  for (var Q in Y) if (Q !== "default" && Object.prototype.hasOwnProperty.call(Y, Q)) {
@@ -20090,13 +20090,13 @@ function qw() {
20090
20090
  function N(Y) {
20091
20091
  return Y && Y.__esModule ? Y : { default: Y };
20092
20092
  }
20093
- function j(Y, ae, J) {
20094
- return ae && (function($, ie) {
20093
+ function j(Y, le, J) {
20094
+ return le && (function($, ie) {
20095
20095
  for (var Q = 0; Q < ie.length; Q++) {
20096
20096
  var se = ie[Q];
20097
20097
  se.enumerable = se.enumerable || !1, se.configurable = !0, "value" in se && (se.writable = !0), Object.defineProperty($, se.key, se);
20098
20098
  }
20099
- })(Y.prototype, ae), Object.defineProperty(Y, "prototype", { writable: !1 }), Y;
20099
+ })(Y.prototype, le), Object.defineProperty(Y, "prototype", { writable: !1 }), Y;
20100
20100
  }
20101
20101
  var U = ((s = {})[w.space] = !0, s[w.cr] = !0, s[w.feed] = !0, s[w.newline] = !0, s[w.tab] = !0, s), X = Object.assign({}, U, ((n = {})[w.comment] = !0, n));
20102
20102
  function W(Y) {
@@ -20105,21 +20105,21 @@ function qw() {
20105
20105
  function V(Y) {
20106
20106
  return { line: Y[E.FIELDS.END_LINE], column: Y[E.FIELDS.END_COL] };
20107
20107
  }
20108
- function F(Y, ae, J, $) {
20109
- return { start: { line: Y, column: ae }, end: { line: J, column: $ } };
20108
+ function F(Y, le, J, $) {
20109
+ return { start: { line: Y, column: le }, end: { line: J, column: $ } };
20110
20110
  }
20111
20111
  function q(Y) {
20112
20112
  return F(Y[E.FIELDS.START_LINE], Y[E.FIELDS.START_COL], Y[E.FIELDS.END_LINE], Y[E.FIELDS.END_COL]);
20113
20113
  }
20114
- function G(Y, ae) {
20115
- if (Y) return F(Y[E.FIELDS.START_LINE], Y[E.FIELDS.START_COL], ae[E.FIELDS.END_LINE], ae[E.FIELDS.END_COL]);
20114
+ function G(Y, le) {
20115
+ if (Y) return F(Y[E.FIELDS.START_LINE], Y[E.FIELDS.START_COL], le[E.FIELDS.END_LINE], le[E.FIELDS.END_COL]);
20116
20116
  }
20117
- function ee(Y, ae) {
20118
- var J = Y[ae];
20119
- if (typeof J == "string") return J.indexOf("\\") !== -1 && ((0, A.ensureObject)(Y, "raws"), Y[ae] = (0, A.unesc)(J), Y.raws[ae] === void 0 && (Y.raws[ae] = J)), Y;
20117
+ function ee(Y, le) {
20118
+ var J = Y[le];
20119
+ if (typeof J == "string") return J.indexOf("\\") !== -1 && ((0, A.ensureObject)(Y, "raws"), Y[le] = (0, A.unesc)(J), Y.raws[le] === void 0 && (Y.raws[le] = J)), Y;
20120
20120
  }
20121
- function ce(Y, ae) {
20122
- for (var J = -1, $ = []; (J = Y.indexOf(ae, J + 1)) !== -1; ) $.push(J);
20121
+ function ae(Y, le) {
20122
+ for (var J = -1, $ = []; (J = Y.indexOf(le, J + 1)) !== -1; ) $.push(J);
20123
20123
  return $;
20124
20124
  }
20125
20125
  var be = (function() {
@@ -20130,80 +20130,80 @@ function qw() {
20130
20130
  var Q = new o.default({ source: { start: { line: 1, column: 1 } }, sourceIndex: 0 });
20131
20131
  this.root.append(Q), this.current = Q, this.loop();
20132
20132
  }
20133
- var ae = Y.prototype;
20134
- return ae._errorGenerator = function() {
20133
+ var le = Y.prototype;
20134
+ return le._errorGenerator = function() {
20135
20135
  var J = this;
20136
20136
  return function($, ie) {
20137
20137
  return typeof J.rule == "string" ? new Error($) : J.rule.error($, ie);
20138
20138
  };
20139
- }, ae.attribute = function() {
20139
+ }, le.attribute = function() {
20140
20140
  var J = [], $ = this.currToken;
20141
20141
  for (this.position++; this.position < this.tokens.length && this.currToken[E.FIELDS.TYPE] !== w.closeSquare; ) J.push(this.currToken), this.position++;
20142
20142
  if (this.currToken[E.FIELDS.TYPE] !== w.closeSquare) return this.expected("closing square bracket", this.currToken[E.FIELDS.START_POS]);
20143
20143
  var ie = J.length, Q = { source: F($[1], $[2], this.currToken[3], this.currToken[4]), sourceIndex: $[E.FIELDS.START_POS] };
20144
20144
  if (ie === 1 && !~[w.word].indexOf(J[0][E.FIELDS.TYPE])) return this.expected("attribute", J[0][E.FIELDS.START_POS]);
20145
- for (var se = 0, z = "", oe = "", le = null, ge = !1; se < ie; ) {
20145
+ for (var se = 0, z = "", oe = "", ce = null, ge = !1; se < ie; ) {
20146
20146
  var Ee = J[se], fe = this.content(Ee), me = J[se + 1];
20147
20147
  switch (Ee[E.FIELDS.TYPE]) {
20148
20148
  case w.space:
20149
20149
  if (ge = !0, this.options.lossy) break;
20150
- if (le) {
20151
- (0, A.ensureObject)(Q, "spaces", le);
20152
- var Oe = Q.spaces[le].after || "";
20153
- Q.spaces[le].after = Oe + fe;
20154
- var qe = (0, A.getProp)(Q, "raws", "spaces", le, "after") || null;
20155
- qe && (Q.raws.spaces[le].after = qe + fe);
20150
+ if (ce) {
20151
+ (0, A.ensureObject)(Q, "spaces", ce);
20152
+ var Oe = Q.spaces[ce].after || "";
20153
+ Q.spaces[ce].after = Oe + fe;
20154
+ var qe = (0, A.getProp)(Q, "raws", "spaces", ce, "after") || null;
20155
+ qe && (Q.raws.spaces[ce].after = qe + fe);
20156
20156
  } else z += fe, oe += fe;
20157
20157
  break;
20158
20158
  case w.asterisk:
20159
- me[E.FIELDS.TYPE] === w.equals ? (Q.operator = fe, le = "operator") : (!Q.namespace || le === "namespace" && !ge) && me && (z && ((0, A.ensureObject)(Q, "spaces", "attribute"), Q.spaces.attribute.before = z, z = ""), oe && ((0, A.ensureObject)(Q, "raws", "spaces", "attribute"), Q.raws.spaces.attribute.before = z, oe = ""), Q.namespace = (Q.namespace || "") + fe, (0, A.getProp)(Q, "raws", "namespace") && (Q.raws.namespace += fe), le = "namespace"), ge = !1;
20159
+ me[E.FIELDS.TYPE] === w.equals ? (Q.operator = fe, ce = "operator") : (!Q.namespace || ce === "namespace" && !ge) && me && (z && ((0, A.ensureObject)(Q, "spaces", "attribute"), Q.spaces.attribute.before = z, z = ""), oe && ((0, A.ensureObject)(Q, "raws", "spaces", "attribute"), Q.raws.spaces.attribute.before = z, oe = ""), Q.namespace = (Q.namespace || "") + fe, (0, A.getProp)(Q, "raws", "namespace") && (Q.raws.namespace += fe), ce = "namespace"), ge = !1;
20160
20160
  break;
20161
20161
  case w.dollar:
20162
- if (le === "value") {
20162
+ if (ce === "value") {
20163
20163
  var Me = (0, A.getProp)(Q, "raws", "value");
20164
20164
  Q.value += "$", Me && (Q.raws.value = Me + "$");
20165
20165
  break;
20166
20166
  }
20167
20167
  case w.caret:
20168
- me[E.FIELDS.TYPE] === w.equals && (Q.operator = fe, le = "operator"), ge = !1;
20168
+ me[E.FIELDS.TYPE] === w.equals && (Q.operator = fe, ce = "operator"), ge = !1;
20169
20169
  break;
20170
20170
  case w.combinator:
20171
- if (fe === "~" && me[E.FIELDS.TYPE] === w.equals && (Q.operator = fe, le = "operator"), fe !== "|") {
20171
+ if (fe === "~" && me[E.FIELDS.TYPE] === w.equals && (Q.operator = fe, ce = "operator"), fe !== "|") {
20172
20172
  ge = !1;
20173
20173
  break;
20174
20174
  }
20175
- me[E.FIELDS.TYPE] === w.equals ? (Q.operator = fe, le = "operator") : Q.namespace || Q.attribute || (Q.namespace = !0), ge = !1;
20175
+ me[E.FIELDS.TYPE] === w.equals ? (Q.operator = fe, ce = "operator") : Q.namespace || Q.attribute || (Q.namespace = !0), ge = !1;
20176
20176
  break;
20177
20177
  case w.word:
20178
- if (me && this.content(me) === "|" && J[se + 2] && J[se + 2][E.FIELDS.TYPE] !== w.equals && !Q.operator && !Q.namespace) Q.namespace = fe, le = "namespace";
20179
- else if (!Q.attribute || le === "attribute" && !ge)
20180
- z && ((0, A.ensureObject)(Q, "spaces", "attribute"), Q.spaces.attribute.before = z, z = ""), oe && ((0, A.ensureObject)(Q, "raws", "spaces", "attribute"), Q.raws.spaces.attribute.before = oe, oe = ""), Q.attribute = (Q.attribute || "") + fe, (0, A.getProp)(Q, "raws", "attribute") && (Q.raws.attribute += fe), le = "attribute";
20181
- else if (!Q.value && Q.value !== "" || le === "value" && !ge && !Q.quoteMark) {
20178
+ if (me && this.content(me) === "|" && J[se + 2] && J[se + 2][E.FIELDS.TYPE] !== w.equals && !Q.operator && !Q.namespace) Q.namespace = fe, ce = "namespace";
20179
+ else if (!Q.attribute || ce === "attribute" && !ge)
20180
+ z && ((0, A.ensureObject)(Q, "spaces", "attribute"), Q.spaces.attribute.before = z, z = ""), oe && ((0, A.ensureObject)(Q, "raws", "spaces", "attribute"), Q.raws.spaces.attribute.before = oe, oe = ""), Q.attribute = (Q.attribute || "") + fe, (0, A.getProp)(Q, "raws", "attribute") && (Q.raws.attribute += fe), ce = "attribute";
20181
+ else if (!Q.value && Q.value !== "" || ce === "value" && !ge && !Q.quoteMark) {
20182
20182
  var at = (0, A.unesc)(fe), Et = (0, A.getProp)(Q, "raws", "value") || "", tr = Q.value || "";
20183
- Q.value = tr + at, Q.quoteMark = null, (at !== fe || Et) && ((0, A.ensureObject)(Q, "raws"), Q.raws.value = (Et || tr) + fe), le = "value";
20183
+ Q.value = tr + at, Q.quoteMark = null, (at !== fe || Et) && ((0, A.ensureObject)(Q, "raws"), Q.raws.value = (Et || tr) + fe), ce = "value";
20184
20184
  } else {
20185
20185
  var dr = fe === "i" || fe === "I";
20186
- !Q.value && Q.value !== "" || !Q.quoteMark && !ge ? (Q.value || Q.value === "") && (le = "value", Q.value += fe, Q.raws.value && (Q.raws.value += fe)) : (Q.insensitive = dr, dr && fe !== "I" || ((0, A.ensureObject)(Q, "raws"), Q.raws.insensitiveFlag = fe), le = "insensitive", z && ((0, A.ensureObject)(Q, "spaces", "insensitive"), Q.spaces.insensitive.before = z, z = ""), oe && ((0, A.ensureObject)(Q, "raws", "spaces", "insensitive"), Q.raws.spaces.insensitive.before = oe, oe = ""));
20186
+ !Q.value && Q.value !== "" || !Q.quoteMark && !ge ? (Q.value || Q.value === "") && (ce = "value", Q.value += fe, Q.raws.value && (Q.raws.value += fe)) : (Q.insensitive = dr, dr && fe !== "I" || ((0, A.ensureObject)(Q, "raws"), Q.raws.insensitiveFlag = fe), ce = "insensitive", z && ((0, A.ensureObject)(Q, "spaces", "insensitive"), Q.spaces.insensitive.before = z, z = ""), oe && ((0, A.ensureObject)(Q, "raws", "spaces", "insensitive"), Q.raws.spaces.insensitive.before = oe, oe = ""));
20187
20187
  }
20188
20188
  ge = !1;
20189
20189
  break;
20190
20190
  case w.str:
20191
20191
  if (!Q.attribute || !Q.operator) return this.error("Expected an attribute followed by an operator preceding the string.", { index: Ee[E.FIELDS.START_POS] });
20192
20192
  var cs = (0, v.unescapeValue)(fe), kn = cs.unescaped, jr = cs.quoteMark;
20193
- Q.value = kn, Q.quoteMark = jr, le = "value", (0, A.ensureObject)(Q, "raws"), Q.raws.value = fe, ge = !1;
20193
+ Q.value = kn, Q.quoteMark = jr, ce = "value", (0, A.ensureObject)(Q, "raws"), Q.raws.value = fe, ge = !1;
20194
20194
  break;
20195
20195
  case w.equals:
20196
20196
  if (!Q.attribute) return this.expected("attribute", Ee[E.FIELDS.START_POS], fe);
20197
20197
  if (Q.value) return this.error('Unexpected "=" found; an operator was already defined.', { index: Ee[E.FIELDS.START_POS] });
20198
- Q.operator = Q.operator ? Q.operator + fe : fe, le = "operator", ge = !1;
20198
+ Q.operator = Q.operator ? Q.operator + fe : fe, ce = "operator", ge = !1;
20199
20199
  break;
20200
20200
  case w.comment:
20201
- if (le) if (ge || me && me[E.FIELDS.TYPE] === w.space || le === "insensitive") {
20202
- var rr = (0, A.getProp)(Q, "spaces", le, "after") || "", Br = (0, A.getProp)(Q, "raws", "spaces", le, "after") || rr;
20203
- (0, A.ensureObject)(Q, "raws", "spaces", le), Q.raws.spaces[le].after = Br + fe;
20201
+ if (ce) if (ge || me && me[E.FIELDS.TYPE] === w.space || ce === "insensitive") {
20202
+ var rr = (0, A.getProp)(Q, "spaces", ce, "after") || "", Br = (0, A.getProp)(Q, "raws", "spaces", ce, "after") || rr;
20203
+ (0, A.ensureObject)(Q, "raws", "spaces", ce), Q.raws.spaces[ce].after = Br + fe;
20204
20204
  } else {
20205
- var Ka = Q[le] || "", Ja = (0, A.getProp)(Q, "raws", le) || Ka;
20206
- (0, A.ensureObject)(Q, "raws"), Q.raws[le] = Ja + fe;
20205
+ var Ka = Q[ce] || "", Ja = (0, A.getProp)(Q, "raws", ce) || Ka;
20206
+ (0, A.ensureObject)(Q, "raws"), Q.raws[ce] = Ja + fe;
20207
20207
  }
20208
20208
  else oe += fe;
20209
20209
  break;
@@ -20213,7 +20213,7 @@ function qw() {
20213
20213
  se++;
20214
20214
  }
20215
20215
  ee(Q, "attribute"), ee(Q, "namespace"), this.newNode(new v.default(Q)), this.position++;
20216
- }, ae.parseWhitespaceEquivalentTokens = function(J) {
20216
+ }, le.parseWhitespaceEquivalentTokens = function(J) {
20217
20217
  J < 0 && (J = this.tokens.length);
20218
20218
  var $ = this.position, ie = [], Q = "", se = void 0;
20219
20219
  do
@@ -20226,22 +20226,22 @@ function qw() {
20226
20226
  if (Q) {
20227
20227
  if (se) se.spaces.after = Q;
20228
20228
  else if (!this.options.lossy) {
20229
- var oe = this.tokens[$], le = this.tokens[this.position - 1];
20230
- ie.push(new g.default({ value: "", source: F(oe[E.FIELDS.START_LINE], oe[E.FIELDS.START_COL], le[E.FIELDS.END_LINE], le[E.FIELDS.END_COL]), sourceIndex: oe[E.FIELDS.START_POS], spaces: { before: Q, after: "" } }));
20229
+ var oe = this.tokens[$], ce = this.tokens[this.position - 1];
20230
+ ie.push(new g.default({ value: "", source: F(oe[E.FIELDS.START_LINE], oe[E.FIELDS.START_COL], ce[E.FIELDS.END_LINE], ce[E.FIELDS.END_COL]), sourceIndex: oe[E.FIELDS.START_POS], spaces: { before: Q, after: "" } }));
20231
20231
  }
20232
20232
  }
20233
20233
  return ie;
20234
- }, ae.convertWhitespaceNodesToSpace = function(J, $) {
20234
+ }, le.convertWhitespaceNodesToSpace = function(J, $) {
20235
20235
  var ie = this;
20236
20236
  $ === void 0 && ($ = !1);
20237
20237
  var Q = "", se = "";
20238
20238
  return J.forEach(function(z) {
20239
- var oe = ie.lossySpace(z.spaces.before, $), le = ie.lossySpace(z.rawSpaceBefore, $);
20240
- Q += oe + ie.lossySpace(z.spaces.after, $ && oe.length === 0), se += oe + z.value + ie.lossySpace(z.rawSpaceAfter, $ && le.length === 0);
20239
+ var oe = ie.lossySpace(z.spaces.before, $), ce = ie.lossySpace(z.rawSpaceBefore, $);
20240
+ Q += oe + ie.lossySpace(z.spaces.after, $ && oe.length === 0), se += oe + z.value + ie.lossySpace(z.rawSpaceAfter, $ && ce.length === 0);
20241
20241
  }), se === Q && (se = void 0), { space: Q, rawSpace: se };
20242
- }, ae.isNamedCombinator = function(J) {
20242
+ }, le.isNamedCombinator = function(J) {
20243
20243
  return J === void 0 && (J = this.position), this.tokens[J + 0] && this.tokens[J + 0][E.FIELDS.TYPE] === w.slash && this.tokens[J + 1] && this.tokens[J + 1][E.FIELDS.TYPE] === w.word && this.tokens[J + 2] && this.tokens[J + 2][E.FIELDS.TYPE] === w.slash;
20244
- }, ae.namedCombinator = function() {
20244
+ }, le.namedCombinator = function() {
20245
20245
  if (this.isNamedCombinator()) {
20246
20246
  var J = this.content(this.tokens[this.position + 1]), $ = (0, A.unesc)(J).toLowerCase(), ie = {};
20247
20247
  $ !== J && (ie.value = "/" + J + "/");
@@ -20249,7 +20249,7 @@ function qw() {
20249
20249
  return this.position = this.position + 3, Q;
20250
20250
  }
20251
20251
  this.unexpected();
20252
- }, ae.combinator = function() {
20252
+ }, le.combinator = function() {
20253
20253
  var J = this;
20254
20254
  if (this.content() === "|") return this.namespace();
20255
20255
  var $ = this.locateNextMeaningfulToken(this.position);
@@ -20257,8 +20257,8 @@ function qw() {
20257
20257
  var ie, Q = this.currToken, se = void 0;
20258
20258
  if ($ > this.position && (se = this.parseWhitespaceEquivalentTokens($)), this.isNamedCombinator() ? ie = this.namedCombinator() : this.currToken[E.FIELDS.TYPE] === w.combinator ? (ie = new y.default({ value: this.content(), source: q(this.currToken), sourceIndex: this.currToken[E.FIELDS.START_POS] }), this.position++) : U[this.currToken[E.FIELDS.TYPE]] || se || this.unexpected(), ie) {
20259
20259
  if (se) {
20260
- var z = this.convertWhitespaceNodesToSpace(se), oe = z.space, le = z.rawSpace;
20261
- ie.spaces.before = oe, ie.rawSpaceBefore = le;
20260
+ var z = this.convertWhitespaceNodesToSpace(se), oe = z.space, ce = z.rawSpace;
20261
+ ie.spaces.before = oe, ie.rawSpaceBefore = ce;
20262
20262
  }
20263
20263
  } else {
20264
20264
  var ge = this.convertWhitespaceNodesToSpace(se, !0), Ee = ge.space, fe = ge.rawSpace;
@@ -20278,34 +20278,34 @@ function qw() {
20278
20278
  return J.newNode(dr);
20279
20279
  });
20280
20280
  }
20281
- }, ae.comma = function() {
20281
+ }, le.comma = function() {
20282
20282
  if (this.position === this.tokens.length - 1) return this.root.trailingComma = !0, void this.position++;
20283
20283
  this.current._inferEndPosition();
20284
20284
  var J = new o.default({ source: { start: W(this.tokens[this.position + 1]) }, sourceIndex: this.tokens[this.position + 1][E.FIELDS.START_POS] });
20285
20285
  this.current.parent.append(J), this.current = J, this.position++;
20286
- }, ae.comment = function() {
20286
+ }, le.comment = function() {
20287
20287
  var J = this.currToken;
20288
20288
  this.newNode(new l.default({ value: this.content(), source: q(J), sourceIndex: J[E.FIELDS.START_POS] })), this.position++;
20289
- }, ae.error = function(J, $) {
20289
+ }, le.error = function(J, $) {
20290
20290
  throw this.root.error(J, $);
20291
- }, ae.missingBackslash = function() {
20291
+ }, le.missingBackslash = function() {
20292
20292
  return this.error("Expected a backslash preceding the semicolon.", { index: this.currToken[E.FIELDS.START_POS] });
20293
- }, ae.missingParenthesis = function() {
20293
+ }, le.missingParenthesis = function() {
20294
20294
  return this.expected("opening parenthesis", this.currToken[E.FIELDS.START_POS]);
20295
- }, ae.missingSquareBracket = function() {
20295
+ }, le.missingSquareBracket = function() {
20296
20296
  return this.expected("opening square bracket", this.currToken[E.FIELDS.START_POS]);
20297
- }, ae.unexpected = function() {
20297
+ }, le.unexpected = function() {
20298
20298
  return this.error("Unexpected '" + this.content() + "'. Escaping special characters with \\ may help.", this.currToken[E.FIELDS.START_POS]);
20299
- }, ae.unexpectedPipe = function() {
20299
+ }, le.unexpectedPipe = function() {
20300
20300
  return this.error("Unexpected '|'.", this.currToken[E.FIELDS.START_POS]);
20301
- }, ae.namespace = function() {
20301
+ }, le.namespace = function() {
20302
20302
  var J = this.prevToken && this.content(this.prevToken) || !0;
20303
20303
  return this.nextToken[E.FIELDS.TYPE] === w.word ? (this.position++, this.word(J)) : this.nextToken[E.FIELDS.TYPE] === w.asterisk ? (this.position++, this.universal(J)) : void this.unexpectedPipe();
20304
- }, ae.nesting = function() {
20304
+ }, le.nesting = function() {
20305
20305
  if (this.nextToken && this.content(this.nextToken) === "|") return void this.position++;
20306
20306
  var J = this.currToken;
20307
20307
  this.newNode(new T.default({ value: this.content(), source: q(J), sourceIndex: J[E.FIELDS.START_POS] })), this.position++;
20308
- }, ae.parentheses = function() {
20308
+ }, le.parentheses = function() {
20309
20309
  var J = this.current.last, $ = 1;
20310
20310
  if (this.position++, J && J.type === C.PSEUDO) {
20311
20311
  var ie = new o.default({ source: { start: W(this.tokens[this.position]) }, sourceIndex: this.tokens[this.position][E.FIELDS.START_POS] }), Q = this.current;
@@ -20316,25 +20316,25 @@ function qw() {
20316
20316
  J ? J.appendToPropertyAndEscape("value", oe, oe) : this.newNode(new g.default({ value: oe, source: F(z[E.FIELDS.START_LINE], z[E.FIELDS.START_COL], se[E.FIELDS.END_LINE], se[E.FIELDS.END_COL]), sourceIndex: z[E.FIELDS.START_POS] }));
20317
20317
  }
20318
20318
  if ($) return this.expected("closing parenthesis", this.currToken[E.FIELDS.START_POS]);
20319
- }, ae.pseudo = function() {
20319
+ }, le.pseudo = function() {
20320
20320
  for (var J = this, $ = "", ie = this.currToken; this.currToken && this.currToken[E.FIELDS.TYPE] === w.colon; ) $ += this.content(), this.position++;
20321
20321
  return this.currToken ? this.currToken[E.FIELDS.TYPE] !== w.word ? this.expected(["pseudo-class", "pseudo-element"], this.currToken[E.FIELDS.START_POS]) : void this.splitWord(!1, function(Q, se) {
20322
20322
  $ += Q, J.newNode(new f.default({ value: $, source: G(ie, J.currToken), sourceIndex: ie[E.FIELDS.START_POS] })), se > 1 && J.nextToken && J.nextToken[E.FIELDS.TYPE] === w.openParenthesis && J.error("Misplaced parenthesis.", { index: J.nextToken[E.FIELDS.START_POS] });
20323
20323
  }) : this.expected(["pseudo-class", "pseudo-element"], this.position - 1);
20324
- }, ae.space = function() {
20324
+ }, le.space = function() {
20325
20325
  var J = this.content();
20326
20326
  this.position === 0 || this.prevToken[E.FIELDS.TYPE] === w.comma || this.prevToken[E.FIELDS.TYPE] === w.openParenthesis || this.current.nodes.every(function($) {
20327
20327
  return $.type === "comment";
20328
20328
  }) ? (this.spaces = this.optionalSpace(J), this.position++) : this.position === this.tokens.length - 1 || this.nextToken[E.FIELDS.TYPE] === w.comma || this.nextToken[E.FIELDS.TYPE] === w.closeParenthesis ? (this.current.last.spaces.after = this.optionalSpace(J), this.position++) : this.combinator();
20329
- }, ae.string = function() {
20329
+ }, le.string = function() {
20330
20330
  var J = this.currToken;
20331
20331
  this.newNode(new g.default({ value: this.content(), source: q(J), sourceIndex: J[E.FIELDS.START_POS] })), this.position++;
20332
- }, ae.universal = function(J) {
20332
+ }, le.universal = function(J) {
20333
20333
  var $ = this.nextToken;
20334
20334
  if ($ && this.content($) === "|") return this.position++, this.namespace();
20335
20335
  var ie = this.currToken;
20336
20336
  this.newNode(new m.default({ value: this.content(), source: q(ie), sourceIndex: ie[E.FIELDS.START_POS] }), J), this.position++;
20337
- }, ae.splitWord = function(J, $) {
20337
+ }, le.splitWord = function(J, $) {
20338
20338
  for (var ie = this, Q = this.nextToken, se = this.content(); Q && ~[w.dollar, w.caret, w.equals, w.word].indexOf(Q[E.FIELDS.TYPE]); ) {
20339
20339
  this.position++;
20340
20340
  var z = this.content();
@@ -20344,12 +20344,12 @@ function qw() {
20344
20344
  }
20345
20345
  Q = this.nextToken;
20346
20346
  }
20347
- var le = ce(se, ".").filter(function(me) {
20347
+ var ce = ae(se, ".").filter(function(me) {
20348
20348
  var Oe = se[me - 1] === "\\", qe = /^\d+\.\d+%$/.test(se);
20349
20349
  return !Oe && !qe;
20350
- }), ge = ce(se, "#").filter(function(me) {
20350
+ }), ge = ae(se, "#").filter(function(me) {
20351
20351
  return se[me - 1] !== "\\";
20352
- }), Ee = ce(se, "#{");
20352
+ }), Ee = ae(se, "#{");
20353
20353
  Ee.length && (ge = ge.filter(function(me) {
20354
20354
  return !~Ee.indexOf(me);
20355
20355
  }));
@@ -20358,12 +20358,12 @@ function qw() {
20358
20358
  return me.filter(function(Oe, qe) {
20359
20359
  return qe === me.indexOf(Oe);
20360
20360
  });
20361
- })([0].concat(le, ge)));
20361
+ })([0].concat(ce, ge)));
20362
20362
  fe.forEach(function(me, Oe) {
20363
20363
  var qe, Me = fe[Oe + 1] || se.length, at = se.slice(me, Me);
20364
20364
  if (Oe === 0 && $) return $.call(ie, at, fe.length);
20365
20365
  var Et = ie.currToken, tr = Et[E.FIELDS.START_POS] + fe[Oe], dr = F(Et[1], Et[2] + me, Et[3], Et[2] + (Me - 1));
20366
- if (~le.indexOf(me)) {
20366
+ if (~ce.indexOf(me)) {
20367
20367
  var cs = { value: at.slice(1), source: dr, sourceIndex: tr };
20368
20368
  qe = new c.default(ee(cs, "value"));
20369
20369
  } else if (~ge.indexOf(me)) {
@@ -20375,13 +20375,13 @@ function qw() {
20375
20375
  }
20376
20376
  ie.newNode(qe, J), J = null;
20377
20377
  }), this.position++;
20378
- }, ae.word = function(J) {
20378
+ }, le.word = function(J) {
20379
20379
  var $ = this.nextToken;
20380
20380
  return $ && this.content($) === "|" ? (this.position++, this.namespace()) : this.splitWord(J);
20381
- }, ae.loop = function() {
20381
+ }, le.loop = function() {
20382
20382
  for (; this.position < this.tokens.length; ) this.parse(!0);
20383
20383
  return this.current._inferEndPosition(), this.root;
20384
- }, ae.parse = function(J) {
20384
+ }, le.parse = function(J) {
20385
20385
  switch (this.currToken[E.FIELDS.TYPE]) {
20386
20386
  case w.space:
20387
20387
  this.space();
@@ -20430,27 +20430,27 @@ function qw() {
20430
20430
  default:
20431
20431
  this.unexpected();
20432
20432
  }
20433
- }, ae.expected = function(J, $, ie) {
20433
+ }, le.expected = function(J, $, ie) {
20434
20434
  if (Array.isArray(J)) {
20435
20435
  var Q = J.pop();
20436
20436
  J = J.join(", ") + " or " + Q;
20437
20437
  }
20438
20438
  var se = /^[aeiou]/.test(J[0]) ? "an" : "a";
20439
20439
  return ie ? this.error("Expected " + se + " " + J + ', found "' + ie + '" instead.', { index: $ }) : this.error("Expected " + se + " " + J + ".", { index: $ });
20440
- }, ae.requiredSpace = function(J) {
20440
+ }, le.requiredSpace = function(J) {
20441
20441
  return this.options.lossy ? " " : J;
20442
- }, ae.optionalSpace = function(J) {
20442
+ }, le.optionalSpace = function(J) {
20443
20443
  return this.options.lossy ? "" : J;
20444
- }, ae.lossySpace = function(J, $) {
20444
+ }, le.lossySpace = function(J, $) {
20445
20445
  return this.options.lossy ? $ ? " " : "" : J;
20446
- }, ae.parseParenthesisToken = function(J) {
20446
+ }, le.parseParenthesisToken = function(J) {
20447
20447
  var $ = this.content(J);
20448
20448
  return J[E.FIELDS.TYPE] === w.space ? this.requiredSpace($) : $;
20449
- }, ae.newNode = function(J, $) {
20449
+ }, le.newNode = function(J, $) {
20450
20450
  return $ && (/^ +$/.test($) && (this.options.lossy || (this.spaces = (this.spaces || "") + $), $ = !0), J.namespace = $, ee(J, "namespace")), this.spaces && (J.spaces.before = this.spaces, this.spaces = ""), this.current.append(J);
20451
- }, ae.content = function(J) {
20451
+ }, le.content = function(J) {
20452
20452
  return J === void 0 && (J = this.currToken), this.css.slice(J[E.FIELDS.START_POS], J[E.FIELDS.END_POS]);
20453
- }, ae.locateNextMeaningfulToken = function(J) {
20453
+ }, le.locateNextMeaningfulToken = function(J) {
20454
20454
  J === void 0 && (J = this.position + 1);
20455
20455
  for (var $ = J; $ < this.tokens.length; ) {
20456
20456
  if (!X[this.tokens[$][E.FIELDS.TYPE]]) return $;
@@ -23145,31 +23145,31 @@ function nP(e, t) {
23145
23145
  const A = y.startOffset, O = y.endOffset, D = o && o.loc.start.offset, N = o && o.loc.end.offset;
23146
23146
  function j(z) {
23147
23147
  const oe = z.start + A;
23148
- let le = z.end + A;
23149
- for (z.trailingComments && z.trailingComments.length > 0 && (le = z.trailingComments[z.trailingComments.length - 1].end + A); le <= l.length && /\s/.test(l.charAt(le)); ) le++;
23150
- y.s.move(oe, le, 0);
23148
+ let ce = z.end + A;
23149
+ for (z.trailingComments && z.trailingComments.length > 0 && (ce = z.trailingComments[z.trailingComments.length - 1].end + A); ce <= l.length && /\s/.test(l.charAt(ce)); ) ce++;
23150
+ y.s.move(oe, ce, 0);
23151
23151
  }
23152
- function U(z, oe, le, ge, Ee, fe) {
23152
+ function U(z, oe, ce, ge, Ee, fe) {
23153
23153
  let me = fe;
23154
- fe && y.isTS && e.template && !e.template.src && !e.template.lang && (me = Gx(oe, e)), y.userImports[oe] = { isType: ge, imported: le, local: oe, source: z, isFromSetup: Ee, isUsedInTemplate: me };
23154
+ fe && y.isTS && e.template && !e.template.src && !e.template.lang && (me = Gx(oe, e)), y.userImports[oe] = { isType: ge, imported: ce, local: oe, source: z, isFromSetup: Ee, isUsedInTemplate: me };
23155
23155
  }
23156
23156
  function X(z, oe) {
23157
- z && _a(z, (le) => {
23158
- const ge = b[le.name];
23159
- ge && ge !== "literal-const" && y.error(`\`${oe}()\` in <script setup> cannot reference locally declared variables because it will be hoisted outside of the setup() function. If your component options require initialization in the module scope, use a separate normal <script> to export the options instead.`, le);
23157
+ z && _a(z, (ce) => {
23158
+ const ge = b[ce.name];
23159
+ ge && ge !== "literal-const" && y.error(`\`${oe}()\` in <script setup> cannot reference locally declared variables because it will be hoisted outside of the setup() function. If your component options require initialization in the module scope, use a separate normal <script> to export the options instead.`, ce);
23160
23160
  });
23161
23161
  }
23162
23162
  const W = y.scriptAst, V = y.scriptSetupAst;
23163
23163
  if (W) {
23164
23164
  for (const z of W.body) if (z.type === "ImportDeclaration") for (const oe of z.specifiers) {
23165
- const le = Fp(oe);
23166
- U(z.source.value, oe.local.name, le, z.importKind === "type" || oe.type === "ImportSpecifier" && oe.importKind === "type", !1, !t.inlineTemplate);
23165
+ const ce = Fp(oe);
23166
+ U(z.source.value, oe.local.name, ce, z.importKind === "type" || oe.type === "ImportSpecifier" && oe.importKind === "type", !1, !t.inlineTemplate);
23167
23167
  }
23168
23168
  }
23169
23169
  for (const z of V.body) if (z.type === "ImportDeclaration") {
23170
23170
  j(z);
23171
23171
  let oe = 0;
23172
- const le = (ge) => {
23172
+ const ce = (ge) => {
23173
23173
  const Ee = ge > oe;
23174
23174
  oe++;
23175
23175
  const fe = z.specifiers[ge], me = z.specifiers[ge + 1];
@@ -23177,23 +23177,23 @@ function nP(e, t) {
23177
23177
  };
23178
23178
  for (let ge = 0; ge < z.specifiers.length; ge++) {
23179
23179
  const Ee = z.specifiers[ge], fe = Ee.local.name, me = Fp(Ee), Oe = z.source.value, qe = y.userImports[fe];
23180
- Oe === "vue" && sP.includes(me) ? (fe === me ? Jn(`\`${me}\` is a compiler macro and no longer needs to be imported.`) : y.error(`\`${me}\` is a compiler macro and cannot be aliased to a different name.`, Ee), le(ge)) : qe ? qe.source === Oe && qe.imported === me ? le(ge) : y.error("different imports aliased to same local name.", Ee) : U(Oe, fe, me, z.importKind === "type" || Ee.type === "ImportSpecifier" && Ee.importKind === "type", !0, !t.inlineTemplate);
23180
+ Oe === "vue" && sP.includes(me) ? (fe === me ? Jn(`\`${me}\` is a compiler macro and no longer needs to be imported.`) : y.error(`\`${me}\` is a compiler macro and cannot be aliased to a different name.`, Ee), ce(ge)) : qe ? qe.source === Oe && qe.imported === me ? ce(ge) : y.error("different imports aliased to same local name.", Ee) : U(Oe, fe, me, z.importKind === "type" || Ee.type === "ImportSpecifier" && Ee.importKind === "type", !0, !t.inlineTemplate);
23181
23181
  }
23182
23182
  z.specifiers.length && oe === z.specifiers.length && y.s.remove(z.start + A, z.end + A);
23183
23183
  }
23184
23184
  const F = {};
23185
23185
  for (const z in y.userImports) {
23186
- const { source: oe, imported: le, local: ge } = y.userImports[z];
23187
- oe === "vue" && (F[le] = ge);
23186
+ const { source: oe, imported: ce, local: ge } = y.userImports[z];
23187
+ oe === "vue" && (F[ce] = ge);
23188
23188
  }
23189
23189
  if (o && W) {
23190
23190
  for (const z of W.body) if (z.type === "ExportDefaultDeclaration") {
23191
23191
  let oe;
23192
23192
  if (E = z, E.declaration.type === "ObjectExpression" ? oe = E.declaration.properties : E.declaration.type === "CallExpression" && E.declaration.arguments[0] && E.declaration.arguments[0].type === "ObjectExpression" && (oe = E.declaration.arguments[0].properties), oe) for (const Ee of oe) Ee.type === "ObjectProperty" && Ee.key.type === "Identifier" && Ee.key.name === "name" && (y.hasDefaultExportName = !0), Ee.type !== "ObjectMethod" && Ee.type !== "ObjectProperty" || Ee.key.type !== "Identifier" || Ee.key.name !== "render" || (y.hasDefaultExportRender = !0);
23193
- const le = z.start + D, ge = z.declaration.start + D;
23194
- y.s.overwrite(le, ge, `const ${Xs} = `);
23193
+ const ce = z.start + D, ge = z.declaration.start + D;
23194
+ y.s.overwrite(ce, ge, `const ${Xs} = `);
23195
23195
  } else if (z.type === "ExportNamedDeclaration") {
23196
- const oe = z.specifiers.find((le) => le.exported.type === "Identifier" && le.exported.name === "default");
23196
+ const oe = z.specifiers.find((ce) => ce.exported.type === "Identifier" && ce.exported.name === "default");
23197
23197
  oe && (E = z, z.specifiers.length > 1 ? y.s.remove(oe.start + D, oe.end + D) : y.s.remove(z.start + D, z.end + D), z.source ? y.s.prepend(`import { ${oe.local.name} as ${Xs} } from '${z.source.value}'
23198
23198
  `) : y.s.appendLeft(N, `
23199
23199
  const ${Xs} = ${oe.local.name}
@@ -23204,17 +23204,17 @@ const ${Xs} = ${oe.local.name}
23204
23204
  }
23205
23205
  for (const z of V.body) {
23206
23206
  if (z.type === "ExpressionStatement") {
23207
- const le = Kt(z.expression);
23208
- if (qp(y, le) || Ng(y, le) || Rg(y, le) || Lg(y, le)) y.s.remove(z.start + A, z.end + A);
23209
- else if (J_(y, le)) {
23210
- const ge = le.callee;
23207
+ const ce = Kt(z.expression);
23208
+ if (qp(y, ce) || Ng(y, ce) || Rg(y, ce) || Lg(y, ce)) y.s.remove(z.start + A, z.end + A);
23209
+ else if (J_(y, ce)) {
23210
+ const ge = ce.callee;
23211
23211
  y.s.overwrite(ge.start + A, ge.end + A, "__expose");
23212
- } else Ig(y, le);
23212
+ } else Ig(y, ce);
23213
23213
  }
23214
23214
  if (z.type === "VariableDeclaration" && !z.declare) {
23215
- const le = z.declarations.length;
23216
- let ge, Ee = le;
23217
- for (let fe = 0; fe < le; fe++) {
23215
+ const ce = z.declarations.length;
23216
+ let ge, Ee = ce;
23217
+ for (let fe = 0; fe < ce; fe++) {
23218
23218
  const me = z.declarations[fe], Oe = me.init && Kt(me.init);
23219
23219
  if (Oe) {
23220
23220
  Rg(y, Oe) && y.error(`${mr}() has no returning value, it cannot be assigned.`, z);
@@ -23224,7 +23224,7 @@ const ${Xs} = ${oe.local.name}
23224
23224
  if (!Me && (Lg(y, Oe, me.id) || Ig(y, Oe, me.id)), qe && !y.propsDestructureRestId && y.propsDestructureDecl) if (Ee === 1) y.s.remove(z.start + A, z.end + A);
23225
23225
  else {
23226
23226
  let at = me.start + A, Et = me.end + A;
23227
- fe === le - 1 ? at = z.declarations[ge].end + A : Et = z.declarations[fe + 1].start + A, y.s.remove(at, Et), Ee--;
23227
+ fe === ce - 1 ? at = z.declarations[ge].end + A : Et = z.declarations[fe + 1].start + A, y.s.remove(at, Et), Ee--;
23228
23228
  }
23229
23229
  else Me ? y.s.overwrite(A + Oe.start, A + Oe.end, "__emit") : ge = fe;
23230
23230
  }
@@ -23232,15 +23232,15 @@ const ${Xs} = ${oe.local.name}
23232
23232
  }
23233
23233
  let oe = !1;
23234
23234
  if (z.type !== "VariableDeclaration" && z.type !== "FunctionDeclaration" && z.type !== "ClassDeclaration" && z.type !== "TSEnumDeclaration" || z.declare || (oe = zl("scriptSetup", z, b, F, d, !!y.propsDestructureDecl)), d && oe && j(z), z.type === "VariableDeclaration" && !z.declare || z.type.endsWith("Statement")) {
23235
- const le = [V.body];
23235
+ const ce = [V.body];
23236
23236
  Sh(z, { enter(ge, Ee) {
23237
- if (Yr(ge) && this.skip(), ge.type === "BlockStatement" && le.push(ge.body), ge.type === "AwaitExpression") {
23237
+ if (Yr(ge) && this.skip(), ge.type === "BlockStatement" && ce.push(ge.body), ge.type === "AwaitExpression") {
23238
23238
  w = !0;
23239
- const fe = le[le.length - 1].some((me, Oe) => (le.length === 1 || Oe > 0) && me.type === "ExpressionStatement" && me.start === ge.start);
23239
+ const fe = ce[ce.length - 1].some((me, Oe) => (ce.length === 1 || Oe > 0) && me.type === "ExpressionStatement" && me.start === ge.start);
23240
23240
  Y_(y, ge, fe, Ee.type === "ExpressionStatement");
23241
23241
  }
23242
23242
  }, exit(ge) {
23243
- ge.type === "BlockStatement" && le.pop();
23243
+ ge.type === "BlockStatement" && ce.pop();
23244
23244
  } });
23245
23245
  }
23246
23246
  (z.type === "ExportNamedDeclaration" && z.exportKind !== "type" || z.type === "ExportAllDeclaration" || z.type === "ExportDefaultDeclaration") && y.error("<script setup> cannot contain ES module exports. If you are using a previous version of <script setup>, please consult the updated RFC at https://github.com/vuejs/rfcs/pull/227.", z), y.isTS && (z.type.startsWith("TS") || z.type === "ExportNamedDeclaration" && z.exportKind === "type" || z.type === "VariableDeclaration" && z.declare) && z.type !== "TSEnumDeclaration" && j(z);
@@ -23248,7 +23248,7 @@ const ${Xs} = ${oe.local.name}
23248
23248
  y.propsDestructureDecl && X_(y, F), X(y.propsRuntimeDecl, Tt), X(y.propsRuntimeDefaults, Tt), X(y.propsDestructureDecl, Tt), X(y.emitsRuntimeDecl, ws), X(y.optionsRuntimeDecl, mr);
23249
23249
  for (const { runtimeOptionNodes: z } of Object.values(y.modelDecls)) for (const oe of z) X(oe, Xa);
23250
23250
  o ? A < D ? (y.s.remove(0, A), y.s.remove(O, D), y.s.remove(N, l.length)) : (y.s.remove(0, D), y.s.remove(N, A), y.s.remove(O, l.length)) : (y.s.remove(0, A), y.s.remove(O, l.length)), W && Object.assign(y.bindingMetadata, D0(W.body));
23251
- for (const [z, { isType: oe, imported: le, source: ge }] of Object.entries(y.userImports)) oe || (y.bindingMetadata[z] = le === "*" || le === "default" && ge.endsWith(".vue") || ge === "vue" ? "setup-const" : "setup-maybe-ref");
23251
+ for (const [z, { isType: oe, imported: ce, source: ge }] of Object.entries(y.userImports)) oe || (y.bindingMetadata[z] = ce === "*" || ce === "default" && ge.endsWith(".vue") || ge === "vue" ? "setup-const" : "setup-maybe-ref");
23252
23252
  for (const z in T) y.bindingMetadata[z] = T[z];
23253
23253
  for (const z in b) y.bindingMetadata[z] = b[z];
23254
23254
  e.cssVars.length && !((s = t.templateOptions) != null && s.ssr) && (y.helperImports.add(Ho), y.helperImports.add("unref"), y.s.prependLeft(A, `
@@ -23262,22 +23262,22 @@ let __temp${z}, __restore${z}
23262
23262
  `);
23263
23263
  }
23264
23264
  const G = y.hasDefineExposeCall || !t.inlineTemplate ? ["expose: __expose"] : [];
23265
- let ee, ce;
23265
+ let ee, ae;
23266
23266
  y.emitDecl && G.push("emit: __emit"), G.length && (q += `, { ${G.join(", ")} }`);
23267
23267
  const be = W_(y);
23268
23268
  if (!t.inlineTemplate || !e.template && y.hasDefaultExportRender) {
23269
23269
  const z = Dn(Dn({}, T), b);
23270
23270
  for (const oe in y.userImports) !y.userImports[oe].isType && y.userImports[oe].isUsedInTemplate && (z[oe] = !0);
23271
- ce = "{ ";
23271
+ ae = "{ ";
23272
23272
  for (const oe in z) if (z[oe] !== !0 || y.userImports[oe].source === "vue" || y.userImports[oe].source.endsWith(".vue")) if (y.bindingMetadata[oe] === "setup-let") {
23273
- const le = oe === "v" ? "_v" : "v";
23274
- ce += `get ${oe}() { return ${oe} }, set ${oe}(${le}) { ${oe} = ${le} }, `;
23275
- } else ce += `${oe}, `;
23276
- else ce += `get ${oe}() { return ${oe} }, `;
23277
- ce = ce.replace(/, $/, "") + " }";
23273
+ const ce = oe === "v" ? "_v" : "v";
23274
+ ae += `get ${oe}() { return ${oe} }, set ${oe}(${ce}) { ${oe} = ${ce} }, `;
23275
+ } else ae += `${oe}, `;
23276
+ else ae += `get ${oe}() { return ${oe} }, `;
23277
+ ae = ae.replace(/, $/, "") + " }";
23278
23278
  } else if (e.template && !e.template.src) {
23279
23279
  t.templateOptions && t.templateOptions.ssr && (C = !0);
23280
- const { code: z, ast: oe, preamble: le, tips: ge, errors: Ee, map: fe } = Zb(Hl(Dn({ filename: p, ast: e.template.ast, source: e.template.content, inMap: e.template.map }, t.templateOptions), { id: g, scoped: e.styles.some((Oe) => Oe.scoped), isProd: t.isProd, ssrCssVars: e.cssVars, compilerOptions: Hl(Dn({}, t.templateOptions && t.templateOptions.compilerOptions), { inline: !0, isTS: y.isTS, bindingMetadata: y.bindingMetadata }) }));
23280
+ const { code: z, ast: oe, preamble: ce, tips: ge, errors: Ee, map: fe } = Zb(Hl(Dn({ filename: p, ast: e.template.ast, source: e.template.content, inMap: e.template.map }, t.templateOptions), { id: g, scoped: e.styles.some((Oe) => Oe.scoped), isProd: t.isProd, ssrCssVars: e.cssVars, compilerOptions: Hl(Dn({}, t.templateOptions && t.templateOptions.compilerOptions), { inline: !0, isTS: y.isTS, bindingMetadata: y.bindingMetadata }) }));
23281
23281
  ee = fe, ge.length && ge.forEach(Jn);
23282
23282
  const me = Ee[0];
23283
23283
  if (typeof me == "string") throw new Error(me);
@@ -23286,31 +23286,31 @@ let __temp${z}, __restore${z}
23286
23286
  ` + e.filename + `
23287
23287
  ` + bi(l, me.loc.start.offset, me.loc.end.offset) + `
23288
23288
  `), me;
23289
- le && y.s.prepend(le), oe && oe.helpers.has(ln) && y.helperImports.delete("unref"), ce = z;
23290
- } else ce = "() => {}";
23289
+ ce && y.s.prepend(ce), oe && oe.helpers.has(ln) && y.helperImports.delete("unref"), ae = z;
23290
+ } else ae = "() => {}";
23291
23291
  t.inlineTemplate ? y.s.appendRight(O, `
23292
- return ${ce}
23292
+ return ${ae}
23293
23293
  }
23294
23294
 
23295
23295
  `) : y.s.appendRight(O, `
23296
- const __returned__ = ${ce}
23296
+ const __returned__ = ${ae}
23297
23297
  Object.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })
23298
23298
  return __returned__
23299
23299
  }
23300
23300
 
23301
23301
  `);
23302
23302
  const Y = t.genDefaultAs ? `const ${t.genDefaultAs} =` : "export default";
23303
- let ae = "";
23303
+ let le = "";
23304
23304
  if (!y.hasDefaultExportName && p && p !== Xx) {
23305
23305
  const z = p.match(/([^/\\]+)\.\w+$/);
23306
- z && (ae += `
23306
+ z && (le += `
23307
23307
  __name: '${z[1]}',`);
23308
23308
  }
23309
- C && (ae += `
23310
- __ssrInlineRender: true,`), be && (ae += `
23309
+ C && (le += `
23310
+ __ssrInlineRender: true,`), be && (le += `
23311
23311
  props: ${be},`);
23312
23312
  const J = K_(y);
23313
- J && (ae += `
23313
+ J && (le += `
23314
23314
  emits: ${J},`);
23315
23315
  let $ = "";
23316
23316
  y.optionsRuntimeDecl && ($ = c.content.slice(y.optionsRuntimeDecl.start, y.optionsRuntimeDecl.end).trim());
@@ -23321,26 +23321,26 @@ return __returned__
23321
23321
  ...${Xs},` : "") + ($ ? `
23322
23322
  ...${$},` : "");
23323
23323
  y.s.prependLeft(A, `
23324
- ${Y} /*@__PURE__*/${y.helper("defineComponent")}({${z}${ae}
23324
+ ${Y} /*@__PURE__*/${y.helper("defineComponent")}({${z}${le}
23325
23325
  ${w ? "async " : ""}setup(${q}) {
23326
23326
  ${ie}`), y.s.appendRight(O, "})");
23327
23327
  } else E || $ ? (y.s.prependLeft(A, `
23328
- ${Y} /*@__PURE__*/Object.assign(${E ? `${Xs}, ` : ""}${$ ? `${$}, ` : ""}{${ae}
23328
+ ${Y} /*@__PURE__*/Object.assign(${E ? `${Xs}, ` : ""}${$ ? `${$}, ` : ""}{${le}
23329
23329
  ${w ? "async " : ""}setup(${q}) {
23330
23330
  ${ie}`), y.s.appendRight(O, "})")) : (y.s.prependLeft(A, `
23331
- ${Y} {${ae}
23331
+ ${Y} {${le}
23332
23332
  ${w ? "async " : ""}setup(${q}) {
23333
23333
  ${ie}`), y.s.appendRight(O, "}"));
23334
23334
  if (y.helperImports.size > 0) {
23335
23335
  const z = (i = (n = t.templateOptions) == null ? void 0 : n.compilerOptions) == null ? void 0 : i.runtimeModuleName, oe = z ? JSON.stringify(z) : "'vue'";
23336
- y.s.prepend(`import { ${[...y.helperImports].map((le) => `${le} as _${le}`).join(", ")} } from ${oe}
23336
+ y.s.prepend(`import { ${[...y.helperImports].map((ce) => `${ce} as _${ce}`).join(", ")} } from ${oe}
23337
23337
  `);
23338
23338
  }
23339
23339
  const Q = y.s.toString();
23340
23340
  let se = t.sourceMap !== !1 ? y.s.generateMap({ source: p, hires: !0, includeContent: !0 }) : void 0;
23341
23341
  if (ee && se) {
23342
- const z = Q.indexOf(ce);
23343
- se = (function(oe, le, ge) {
23342
+ const z = Q.indexOf(ae);
23343
+ se = (function(oe, ce, ge) {
23344
23344
  const Ee = new Es.SourceMapGenerator(), fe = (me, Oe = 0) => {
23345
23345
  const qe = new Es.SourceMapConsumer(me);
23346
23346
  qe.sources.forEach((Me) => {
@@ -23351,7 +23351,7 @@ ${ie}`), y.s.appendRight(O, "}"));
23351
23351
  Me.originalLine != null && Ee.addMapping({ generated: { line: Me.generatedLine + Oe, column: Me.generatedColumn }, original: { line: Me.originalLine, column: Me.originalColumn }, source: Me.source, name: Me.name });
23352
23352
  });
23353
23353
  };
23354
- return fe(oe), fe(le, ge), Ee._sourceRoot = oe.sourceRoot, Ee._file = oe.file, Ee.toJSON();
23354
+ return fe(oe), fe(ce, ge), Ee._sourceRoot = oe.sourceRoot, Ee._file = oe.file, Ee.toJSON();
23355
23355
  })(se, ee, Q.slice(0, z).split(/\r?\n/).length - 1);
23356
23356
  }
23357
23357
  return Hl(Dn({}, c), { bindings: y.bindingMetadata, imports: y.userImports, content: Q, map: se, scriptAst: W?.body, scriptSetupAst: V?.body, deps: y.deps ? [...y.deps] : void 0 });
@@ -23467,14 +23467,11 @@ const Ug = async (e) => {
23467
23467
  URL.revokeObjectURL(t);
23468
23468
  }
23469
23469
  }, cP = async (e, { parseOptions: t, scriptOptions: { templateOptions: { compilerOptions: { expressionPlugins: s, ...n } = {}, ...i } = {}, ...o } = {}, styleOptions: c } = {}) => {
23470
- const l = `data-v-${Mv(e)}`, { descriptor: p, errors: d } = Kx(await (await Ug(e)).text() || "<template></template>", { filename: e, ...t }), { script: g, scriptSetup: f, slotted: v, styles: m, template: y } = p, T = new Set([g, f].flatMap((Y) => {
23471
- const { lang: ae = "js" } = Y ?? {};
23472
- return [.../[jt]sx$/.test(ae) ? ["jsx"] : [], .../tsx?$/.test(ae) ? ["typescript"] : []];
23473
- })), { ast: b, content: E = "" } = y ?? {};
23474
- let w;
23475
- const C = [], A = document.getElementById(l) instanceof HTMLStyleElement ? Promise.resolve([]) : Promise.all(m.map(async ({ content: Y, module: ae, scoped: J = !1, src: $ }) => {
23476
- const ie = !!ae;
23477
- if (ie) return w = "<style module> is not supported in the playground.", "";
23470
+ const l = `data-v-${Mv(e)}`, { descriptor: p, errors: d } = Kx(await (await Ug(e)).text() || "<template></template>", { filename: e, ...t }), { script: g, scriptSetup: f, slotted: v, styles: m, template: y } = p, T = new Set([g, f].filter((Y) => Y !== null).flatMap(({ lang: Y = "js" }) => [.../[jt]sx$/.test(Y) ? ["jsx"] : [], .../tsx?$/.test(Y) ? ["typescript"] : []])), { ast: b, content: E = "" } = y ?? {};
23471
+ let w = "";
23472
+ const C = [], A = document.getElementById(l) instanceof HTMLStyleElement ? Promise.resolve([]) : Promise.all(m.map(async ({ content: Y, module: le, scoped: J = !1, src: $ }) => {
23473
+ const ie = !!le;
23474
+ if (ie && !w) return w = "<style module> is not supported in the playground.", "";
23478
23475
  {
23479
23476
  const { code: Q, errors: se } = await m_({ filename: e, id: l, modules: ie, scoped: J, source: $ ? await (await Ug($)).text() : Y, ...c });
23480
23477
  return C.push(...se), Q;
@@ -23482,14 +23479,20 @@ const Ug = async (e) => {
23482
23479
  })), O = { expressionPlugins: [.../* @__PURE__ */ new Set([...s ?? [], ...T])], filename: e, scopeId: l, slotted: v, ...n }, D = { compilerOptions: O, filename: e, id: l, scoped: m.some(({ scoped: Y }) => Y), slotted: v, ...i }, N = { id: l, templateOptions: D, ...o }, j = { jsxRuntime: "preserve", transforms: [...T] }, { bindings: U, content: X, warnings: W } = g || f ? nP(p, N) : {};
23483
23480
  U && (O.bindingMetadata = U);
23484
23481
  const { code: V, errors: F, tips: q } = !y || f && N.inlineTemplate ? {} : Zb({ ...b, filename: e, id: l, source: E, ...D });
23485
- pc.error(d, F, C), pc.warn(W, w), pc.info(q);
23486
- const [G, ee, ce] = await Promise.all([A, X ? $g(T.size ? J1(X, j).code : X) : Promise.resolve(void 0), V ? $g(T.size ? J1(V, j).code : V) : Promise.resolve(void 0)]), be = G.join(`
23482
+ [...d, ...F ?? [], ...C].forEach((Y) => {
23483
+ pc.error(Y);
23484
+ }), [...W ?? [], ...w ? [w] : []].forEach((Y) => {
23485
+ pc.warn(Y);
23486
+ }), [...q ?? []].forEach((Y) => {
23487
+ pc.info(Y);
23488
+ });
23489
+ const [G, ee, ae] = await Promise.all([A, X ? $g(T.size ? J1(X, j).code : X) : Promise.resolve(void 0), V ? $g(T.size ? J1(V, j).code : V) : Promise.resolve(void 0)]), be = G.join(`
23487
23490
  `).trim();
23488
23491
  if (be) {
23489
23492
  const Y = document.createElement("style");
23490
23493
  Y.id = l, Y.textContent = be, document.head.appendChild(Y);
23491
23494
  }
23492
- return { __scopeId: l, ...ee?.default, ...ce };
23495
+ return { __scopeId: l, ...ee?.default, ...ae };
23493
23496
  };
23494
23497
  export {
23495
23498
  cP as default