@vue/compiler-sfc 3.5.34 → 3.5.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compiler-sfc.cjs.js +348 -290
- package/dist/compiler-sfc.esm-browser.js +397 -336
- package/package.json +10 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.5.
|
|
2
|
+
* @vue/compiler-sfc v3.5.36
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -4497,7 +4497,7 @@ function getAugmentedNamespace(n) {
|
|
|
4497
4497
|
var isInstance = false;
|
|
4498
4498
|
try {
|
|
4499
4499
|
isInstance = this instanceof a;
|
|
4500
|
-
} catch {}
|
|
4500
|
+
} catch (e) {}
|
|
4501
4501
|
if (isInstance) {
|
|
4502
4502
|
return Reflect.construct(f, arguments, this.constructor);
|
|
4503
4503
|
}
|
|
@@ -20377,7 +20377,7 @@ const tokenizer = new Tokenizer(stack, {
|
|
|
20377
20377
|
}
|
|
20378
20378
|
},
|
|
20379
20379
|
oncdata(start, end) {
|
|
20380
|
-
if (stack[0].ns !== 0) {
|
|
20380
|
+
if ((stack[0] ? stack[0].ns : currentOptions.ns) !== 0) {
|
|
20381
20381
|
onText(getSlice(start, end), start, end);
|
|
20382
20382
|
} else {
|
|
20383
20383
|
emitError(1, start - 9);
|
|
@@ -21093,6 +21093,7 @@ function createTransformContext(root, {
|
|
|
21093
21093
|
imports: [],
|
|
21094
21094
|
cached: [],
|
|
21095
21095
|
constantCache: /* @__PURE__ */ new WeakMap(),
|
|
21096
|
+
vForMemoKeyedNodes: /* @__PURE__ */ new WeakSet(),
|
|
21096
21097
|
temps: 0,
|
|
21097
21098
|
identifiers: /* @__PURE__ */ Object.create(null),
|
|
21098
21099
|
scopes: {
|
|
@@ -25561,7 +25562,7 @@ const transformExpression = (node, context) => {
|
|
|
25561
25562
|
const exp = dir.exp;
|
|
25562
25563
|
const arg = dir.arg;
|
|
25563
25564
|
if (exp && exp.type === 4 && !(dir.name === "on" && arg) && // key has been processed in transformFor(vMemo + vFor)
|
|
25564
|
-
!(memo && arg && arg.type === 4 && arg.content === "key")) {
|
|
25565
|
+
!(memo && context.vForMemoKeyedNodes.has(node) && arg && arg.type === 4 && arg.content === "key")) {
|
|
25565
25566
|
dir.exp = processExpression(
|
|
25566
25567
|
exp,
|
|
25567
25568
|
context,
|
|
@@ -26002,27 +26003,22 @@ const transformFor = createStructuralDirectiveTransform(
|
|
|
26002
26003
|
const keyProp = findProp(node, `key`, false, true);
|
|
26003
26004
|
const isDirKey = keyProp && keyProp.type === 7;
|
|
26004
26005
|
let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
|
|
26005
|
-
|
|
26006
|
-
|
|
26007
|
-
|
|
26008
|
-
keyExp,
|
|
26009
|
-
context
|
|
26010
|
-
);
|
|
26011
|
-
}
|
|
26012
|
-
}
|
|
26013
|
-
const keyProperty = keyProp && keyExp ? createObjectProperty(`key`, keyExp) : null;
|
|
26014
|
-
if (isTemplate) {
|
|
26015
|
-
if (memo) {
|
|
26006
|
+
const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
|
|
26007
|
+
{
|
|
26008
|
+
if (isTemplate && memo) {
|
|
26016
26009
|
memo.exp = processExpression(
|
|
26017
26010
|
memo.exp,
|
|
26018
26011
|
context
|
|
26019
26012
|
);
|
|
26020
26013
|
}
|
|
26021
|
-
if (
|
|
26022
|
-
keyProperty.value = processExpression(
|
|
26014
|
+
if ((isTemplate || memo) && keyProperty && isDirKey) {
|
|
26015
|
+
keyExp = keyProp.exp = keyProperty.value = processExpression(
|
|
26023
26016
|
keyProperty.value,
|
|
26024
26017
|
context
|
|
26025
26018
|
);
|
|
26019
|
+
if (memo) {
|
|
26020
|
+
context.vForMemoKeyedNodes.add(node);
|
|
26021
|
+
}
|
|
26026
26022
|
}
|
|
26027
26023
|
}
|
|
26028
26024
|
const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
|
|
@@ -36877,6 +36873,12 @@ function requireParser$1 () {
|
|
|
36877
36873
|
}
|
|
36878
36874
|
}
|
|
36879
36875
|
|
|
36876
|
+
function tokensToString(tokens, from, to) {
|
|
36877
|
+
let result = '';
|
|
36878
|
+
for (let i = from; i < to; i++) result += tokens[i][1];
|
|
36879
|
+
return result
|
|
36880
|
+
}
|
|
36881
|
+
|
|
36880
36882
|
class Parser {
|
|
36881
36883
|
constructor(input) {
|
|
36882
36884
|
this.input = input;
|
|
@@ -36989,9 +36991,10 @@ function requireParser$1 () {
|
|
|
36989
36991
|
if (founded === 2) break
|
|
36990
36992
|
}
|
|
36991
36993
|
}
|
|
36992
|
-
// If the token is a word, e.g. `!important`, `red` or any other valid
|
|
36993
|
-
// Then we need to return the colon after that word
|
|
36994
|
-
//
|
|
36994
|
+
// If the token is a word, e.g. `!important`, `red` or any other valid
|
|
36995
|
+
// property's value. Then we need to return the colon after that word
|
|
36996
|
+
// token. [3] is the "end" colon of that word. And because we need it
|
|
36997
|
+
// after that one we do +1 to get the next one.
|
|
36995
36998
|
throw this.input.error(
|
|
36996
36999
|
'Missed semicolon',
|
|
36997
37000
|
token[0] === 'word' ? token[3] + 1 : token[2]
|
|
@@ -37064,50 +37067,50 @@ function requireParser$1 () {
|
|
|
37064
37067
|
);
|
|
37065
37068
|
node.source.end.offset++;
|
|
37066
37069
|
|
|
37067
|
-
|
|
37068
|
-
|
|
37069
|
-
|
|
37070
|
+
let start = 0;
|
|
37071
|
+
while (tokens[start][0] !== 'word') {
|
|
37072
|
+
if (start === tokens.length - 1) this.unknownWord([tokens[start]]);
|
|
37073
|
+
start++;
|
|
37070
37074
|
}
|
|
37071
|
-
node.
|
|
37075
|
+
node.raws.before += tokensToString(tokens, 0, start);
|
|
37076
|
+
node.source.start = this.getPosition(tokens[start][2]);
|
|
37072
37077
|
|
|
37073
|
-
|
|
37074
|
-
while (tokens.length) {
|
|
37075
|
-
let type = tokens[
|
|
37078
|
+
let propStart = start;
|
|
37079
|
+
while (start < tokens.length) {
|
|
37080
|
+
let type = tokens[start][0];
|
|
37076
37081
|
if (type === ':' || type === 'space' || type === 'comment') {
|
|
37077
37082
|
break
|
|
37078
37083
|
}
|
|
37079
|
-
|
|
37084
|
+
start++;
|
|
37080
37085
|
}
|
|
37086
|
+
node.prop = tokensToString(tokens, propStart, start);
|
|
37081
37087
|
|
|
37082
|
-
|
|
37083
|
-
|
|
37088
|
+
let betweenStart = start;
|
|
37084
37089
|
let token;
|
|
37085
|
-
while (tokens.length) {
|
|
37086
|
-
token = tokens
|
|
37087
|
-
|
|
37088
|
-
if (token[0] === ':')
|
|
37089
|
-
|
|
37090
|
-
|
|
37091
|
-
} else {
|
|
37092
|
-
if (token[0] === 'word' && /\w/.test(token[1])) {
|
|
37093
|
-
this.unknownWord([token]);
|
|
37094
|
-
}
|
|
37095
|
-
node.raws.between += token[1];
|
|
37090
|
+
while (start < tokens.length) {
|
|
37091
|
+
token = tokens[start];
|
|
37092
|
+
start++;
|
|
37093
|
+
if (token[0] === ':') break
|
|
37094
|
+
if (token[0] === 'word' && /\w/.test(token[1])) {
|
|
37095
|
+
this.unknownWord([token]);
|
|
37096
37096
|
}
|
|
37097
37097
|
}
|
|
37098
|
+
node.raws.between = tokensToString(tokens, betweenStart, start);
|
|
37098
37099
|
|
|
37099
37100
|
if (node.prop[0] === '_' || node.prop[0] === '*') {
|
|
37100
37101
|
node.raws.before += node.prop[0];
|
|
37101
37102
|
node.prop = node.prop.slice(1);
|
|
37102
37103
|
}
|
|
37103
37104
|
|
|
37104
|
-
let
|
|
37105
|
-
|
|
37106
|
-
|
|
37107
|
-
next = tokens[0][0];
|
|
37105
|
+
let firstSpacesStart = start;
|
|
37106
|
+
while (start < tokens.length) {
|
|
37107
|
+
let next = tokens[start][0];
|
|
37108
37108
|
if (next !== 'space' && next !== 'comment') break
|
|
37109
|
-
|
|
37109
|
+
start++;
|
|
37110
37110
|
}
|
|
37111
|
+
let firstSpaces = tokens.slice(firstSpacesStart, start);
|
|
37112
|
+
|
|
37113
|
+
tokens = tokens.slice(start);
|
|
37111
37114
|
|
|
37112
37115
|
this.precheckMissedSemicolon(tokens);
|
|
37113
37116
|
|
|
@@ -38366,7 +38369,7 @@ function requireProcessor$1 () {
|
|
|
38366
38369
|
|
|
38367
38370
|
class Processor {
|
|
38368
38371
|
constructor(plugins = []) {
|
|
38369
|
-
this.version = '8.5.
|
|
38372
|
+
this.version = '8.5.15';
|
|
38370
38373
|
this.plugins = this.normalize(plugins);
|
|
38371
38374
|
}
|
|
38372
38375
|
|
|
@@ -38591,8 +38594,6 @@ var root = {exports: {}};
|
|
|
38591
38594
|
|
|
38592
38595
|
var container = {exports: {}};
|
|
38593
38596
|
|
|
38594
|
-
var node$1 = {exports: {}};
|
|
38595
|
-
|
|
38596
38597
|
var util$1 = {};
|
|
38597
38598
|
|
|
38598
38599
|
var unesc = {exports: {}};
|
|
@@ -38771,6 +38772,43 @@ function requireStripComments () {
|
|
|
38771
38772
|
return stripComments.exports;
|
|
38772
38773
|
}
|
|
38773
38774
|
|
|
38775
|
+
var maxNestingDepth = {};
|
|
38776
|
+
|
|
38777
|
+
var hasRequiredMaxNestingDepth;
|
|
38778
|
+
|
|
38779
|
+
function requireMaxNestingDepth () {
|
|
38780
|
+
if (hasRequiredMaxNestingDepth) return maxNestingDepth;
|
|
38781
|
+
hasRequiredMaxNestingDepth = 1;
|
|
38782
|
+
(function (exports) {
|
|
38783
|
+
|
|
38784
|
+
exports.__esModule = true;
|
|
38785
|
+
exports.MAX_NESTING_DEPTH = void 0;
|
|
38786
|
+
exports["default"] = resolveMaxNestingDepth;
|
|
38787
|
+
/**
|
|
38788
|
+
* The default maximum selector nesting depth allowed when parsing or
|
|
38789
|
+
* serializing a selector. Going beyond this would otherwise recurse deeply
|
|
38790
|
+
* enough to overflow the call stack (CVE-2026-9358 / CWE-674). Real-world
|
|
38791
|
+
* selectors never get anywhere near this, so it acts purely as a safety net
|
|
38792
|
+
* that turns an uncatchable stack overflow into a catchable error.
|
|
38793
|
+
*/
|
|
38794
|
+
var MAX_NESTING_DEPTH = exports.MAX_NESTING_DEPTH = 256;
|
|
38795
|
+
|
|
38796
|
+
/**
|
|
38797
|
+
* Coerce a user-supplied nesting-depth limit into a safe value. Anything that
|
|
38798
|
+
* is not a non-negative safe integer (NaN, Infinity, negative numbers, or a
|
|
38799
|
+
* non-number) would disable or break the guard, so it falls back to the
|
|
38800
|
+
* default.
|
|
38801
|
+
*
|
|
38802
|
+
* @param {unknown} value the limit provided through the `maxNestingDepth` option
|
|
38803
|
+
* @returns {number} a safe, non-negative integer limit
|
|
38804
|
+
*/
|
|
38805
|
+
function resolveMaxNestingDepth(value) {
|
|
38806
|
+
return Number.isSafeInteger(value) && value >= 0 ? value : MAX_NESTING_DEPTH;
|
|
38807
|
+
}
|
|
38808
|
+
} (maxNestingDepth));
|
|
38809
|
+
return maxNestingDepth;
|
|
38810
|
+
}
|
|
38811
|
+
|
|
38774
38812
|
var hasRequiredUtil$1;
|
|
38775
38813
|
|
|
38776
38814
|
function requireUtil$1 () {
|
|
@@ -38778,7 +38816,7 @@ function requireUtil$1 () {
|
|
|
38778
38816
|
hasRequiredUtil$1 = 1;
|
|
38779
38817
|
|
|
38780
38818
|
util$1.__esModule = true;
|
|
38781
|
-
util$1.unesc = util$1.stripComments = util$1.getProp = util$1.ensureObject = void 0;
|
|
38819
|
+
util$1.unesc = util$1.stripComments = util$1.resolveMaxNestingDepth = util$1.getProp = util$1.ensureObject = util$1.MAX_NESTING_DEPTH = void 0;
|
|
38782
38820
|
var _unesc = _interopRequireDefault(/*@__PURE__*/ requireUnesc());
|
|
38783
38821
|
util$1.unesc = _unesc["default"];
|
|
38784
38822
|
var _getProp = _interopRequireDefault(/*@__PURE__*/ requireGetProp());
|
|
@@ -38787,10 +38825,16 @@ function requireUtil$1 () {
|
|
|
38787
38825
|
util$1.ensureObject = _ensureObject["default"];
|
|
38788
38826
|
var _stripComments = _interopRequireDefault(/*@__PURE__*/ requireStripComments());
|
|
38789
38827
|
util$1.stripComments = _stripComments["default"];
|
|
38790
|
-
|
|
38828
|
+
var _maxNestingDepth = _interopRequireWildcard(/*@__PURE__*/ requireMaxNestingDepth());
|
|
38829
|
+
util$1.resolveMaxNestingDepth = _maxNestingDepth["default"];
|
|
38830
|
+
util$1.MAX_NESTING_DEPTH = _maxNestingDepth.MAX_NESTING_DEPTH;
|
|
38831
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
|
|
38832
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
38791
38833
|
return util$1;
|
|
38792
38834
|
}
|
|
38793
38835
|
|
|
38836
|
+
var node$1 = {exports: {}};
|
|
38837
|
+
|
|
38794
38838
|
var hasRequiredNode$1;
|
|
38795
38839
|
|
|
38796
38840
|
function requireNode$1 () {
|
|
@@ -38801,8 +38845,10 @@ function requireNode$1 () {
|
|
|
38801
38845
|
exports.__esModule = true;
|
|
38802
38846
|
exports["default"] = void 0;
|
|
38803
38847
|
var _util = /*@__PURE__*/ requireUtil$1();
|
|
38804
|
-
function _defineProperties(
|
|
38805
|
-
function _createClass(
|
|
38848
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
38849
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", { writable: false }), e; }
|
|
38850
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
38851
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (String )(t); }
|
|
38806
38852
|
var cloneNode = function cloneNode(obj, parent) {
|
|
38807
38853
|
if (typeof obj !== 'object' || obj === null) {
|
|
38808
38854
|
return obj;
|
|
@@ -38828,7 +38874,7 @@ function requireNode$1 () {
|
|
|
38828
38874
|
}
|
|
38829
38875
|
return cloned;
|
|
38830
38876
|
};
|
|
38831
|
-
|
|
38877
|
+
exports["default"] = /*#__PURE__*/function () {
|
|
38832
38878
|
function Node(opts) {
|
|
38833
38879
|
if (opts === void 0) {
|
|
38834
38880
|
opts = {};
|
|
@@ -38956,6 +39002,14 @@ function requireNode$1 () {
|
|
|
38956
39002
|
};
|
|
38957
39003
|
_proto.toString = function toString() {
|
|
38958
39004
|
return [this.rawSpaceBefore, this.valueToString(), this.rawSpaceAfter].join('');
|
|
39005
|
+
}
|
|
39006
|
+
|
|
39007
|
+
// Internal recursion entry point used by Container serialization. Leaf
|
|
39008
|
+
// nodes don't recurse, so they ignore the depth/limit and stringify
|
|
39009
|
+
// themselves. Containers override this to thread the nesting depth.
|
|
39010
|
+
;
|
|
39011
|
+
_proto._stringify = function _stringify() {
|
|
39012
|
+
return this.toString();
|
|
38959
39013
|
};
|
|
38960
39014
|
_createClass(Node, [{
|
|
38961
39015
|
key: "rawSpaceBefore",
|
|
@@ -38986,7 +39040,6 @@ function requireNode$1 () {
|
|
|
38986
39040
|
}]);
|
|
38987
39041
|
return Node;
|
|
38988
39042
|
}();
|
|
38989
|
-
exports["default"] = Node;
|
|
38990
39043
|
module.exports = exports.default;
|
|
38991
39044
|
} (node$1, node$1.exports));
|
|
38992
39045
|
return node$1.exports;
|
|
@@ -39002,30 +39055,18 @@ function requireTypes () {
|
|
|
39002
39055
|
|
|
39003
39056
|
types.__esModule = true;
|
|
39004
39057
|
types.UNIVERSAL = types.TAG = types.STRING = types.SELECTOR = types.ROOT = types.PSEUDO = types.NESTING = types.ID = types.COMMENT = types.COMBINATOR = types.CLASS = types.ATTRIBUTE = void 0;
|
|
39005
|
-
|
|
39006
|
-
types.
|
|
39007
|
-
|
|
39008
|
-
types.
|
|
39009
|
-
|
|
39010
|
-
types.
|
|
39011
|
-
|
|
39012
|
-
types.
|
|
39013
|
-
|
|
39014
|
-
types.
|
|
39015
|
-
|
|
39016
|
-
types.
|
|
39017
|
-
var ID = 'id';
|
|
39018
|
-
types.ID = ID;
|
|
39019
|
-
var COMMENT = 'comment';
|
|
39020
|
-
types.COMMENT = COMMENT;
|
|
39021
|
-
var COMBINATOR = 'combinator';
|
|
39022
|
-
types.COMBINATOR = COMBINATOR;
|
|
39023
|
-
var CLASS = 'class';
|
|
39024
|
-
types.CLASS = CLASS;
|
|
39025
|
-
var ATTRIBUTE = 'attribute';
|
|
39026
|
-
types.ATTRIBUTE = ATTRIBUTE;
|
|
39027
|
-
var UNIVERSAL = 'universal';
|
|
39028
|
-
types.UNIVERSAL = UNIVERSAL;
|
|
39058
|
+
types.TAG = 'tag';
|
|
39059
|
+
types.STRING = 'string';
|
|
39060
|
+
types.SELECTOR = 'selector';
|
|
39061
|
+
types.ROOT = 'root';
|
|
39062
|
+
types.PSEUDO = 'pseudo';
|
|
39063
|
+
types.NESTING = 'nesting';
|
|
39064
|
+
types.ID = 'id';
|
|
39065
|
+
types.COMMENT = 'comment';
|
|
39066
|
+
types.COMBINATOR = 'combinator';
|
|
39067
|
+
types.CLASS = 'class';
|
|
39068
|
+
types.ATTRIBUTE = 'attribute';
|
|
39069
|
+
types.UNIVERSAL = 'universal';
|
|
39029
39070
|
return types;
|
|
39030
39071
|
}
|
|
39031
39072
|
|
|
@@ -39038,19 +39079,21 @@ function requireContainer () {
|
|
|
39038
39079
|
|
|
39039
39080
|
exports.__esModule = true;
|
|
39040
39081
|
exports["default"] = void 0;
|
|
39082
|
+
var _util = /*@__PURE__*/ requireUtil$1();
|
|
39041
39083
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
|
|
39042
39084
|
var types = _interopRequireWildcard(/*@__PURE__*/ requireTypes());
|
|
39043
|
-
function
|
|
39044
|
-
function
|
|
39045
|
-
function
|
|
39046
|
-
function
|
|
39047
|
-
function
|
|
39048
|
-
function
|
|
39049
|
-
function
|
|
39050
|
-
function
|
|
39051
|
-
function
|
|
39052
|
-
function
|
|
39053
|
-
|
|
39085
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
|
|
39086
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
39087
|
+
function _createForOfIteratorHelperLoose(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
39088
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
39089
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }
|
|
39090
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
39091
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", { writable: false }), e; }
|
|
39092
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
39093
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (String )(t); }
|
|
39094
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
39095
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
39096
|
+
exports["default"] = /*#__PURE__*/function (_Node) {
|
|
39054
39097
|
_inheritsLoose(Container, _Node);
|
|
39055
39098
|
function Container(opts) {
|
|
39056
39099
|
var _this;
|
|
@@ -39292,23 +39335,23 @@ function requireContainer () {
|
|
|
39292
39335
|
});
|
|
39293
39336
|
};
|
|
39294
39337
|
_proto.walkUniversals = function walkUniversals(callback) {
|
|
39295
|
-
var
|
|
39338
|
+
var _this0 = this;
|
|
39296
39339
|
return this.walk(function (selector) {
|
|
39297
39340
|
if (selector.type === types.UNIVERSAL) {
|
|
39298
|
-
return callback.call(
|
|
39341
|
+
return callback.call(_this0, selector);
|
|
39299
39342
|
}
|
|
39300
39343
|
});
|
|
39301
39344
|
};
|
|
39302
39345
|
_proto.split = function split(callback) {
|
|
39303
|
-
var
|
|
39346
|
+
var _this1 = this;
|
|
39304
39347
|
var current = [];
|
|
39305
39348
|
return this.reduce(function (memo, node, index) {
|
|
39306
|
-
var split = callback.call(
|
|
39349
|
+
var split = callback.call(_this1, node);
|
|
39307
39350
|
current.push(node);
|
|
39308
39351
|
if (split) {
|
|
39309
39352
|
memo.push(current);
|
|
39310
39353
|
current = [];
|
|
39311
|
-
} else if (index ===
|
|
39354
|
+
} else if (index === _this1.length - 1) {
|
|
39312
39355
|
memo.push(current);
|
|
39313
39356
|
}
|
|
39314
39357
|
return memo;
|
|
@@ -39332,8 +39375,16 @@ function requireContainer () {
|
|
|
39332
39375
|
_proto.sort = function sort(callback) {
|
|
39333
39376
|
return this.nodes.sort(callback);
|
|
39334
39377
|
};
|
|
39335
|
-
_proto.toString = function toString() {
|
|
39336
|
-
|
|
39378
|
+
_proto.toString = function toString(options) {
|
|
39379
|
+
if (options === void 0) {
|
|
39380
|
+
options = {};
|
|
39381
|
+
}
|
|
39382
|
+
return this._stringify(options, 0, (0, _util.resolveMaxNestingDepth)(options.maxNestingDepth));
|
|
39383
|
+
};
|
|
39384
|
+
_proto._stringify = function _stringify(options, depth, max) {
|
|
39385
|
+
return this.map(function (child) {
|
|
39386
|
+
return child._stringify(options, depth, max);
|
|
39387
|
+
}).join('');
|
|
39337
39388
|
};
|
|
39338
39389
|
_createClass(Container, [{
|
|
39339
39390
|
key: "first",
|
|
@@ -39353,7 +39404,6 @@ function requireContainer () {
|
|
|
39353
39404
|
}]);
|
|
39354
39405
|
return Container;
|
|
39355
39406
|
}(_node["default"]);
|
|
39356
|
-
exports["default"] = Container;
|
|
39357
39407
|
module.exports = exports.default;
|
|
39358
39408
|
} (container, container.exports));
|
|
39359
39409
|
return container.exports;
|
|
@@ -39370,12 +39420,14 @@ function requireRoot () {
|
|
|
39370
39420
|
exports["default"] = void 0;
|
|
39371
39421
|
var _container = _interopRequireDefault(/*@__PURE__*/ requireContainer());
|
|
39372
39422
|
var _types = /*@__PURE__*/ requireTypes();
|
|
39373
|
-
function _interopRequireDefault(
|
|
39374
|
-
function _defineProperties(
|
|
39375
|
-
function _createClass(
|
|
39376
|
-
function
|
|
39377
|
-
function
|
|
39378
|
-
|
|
39423
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
39424
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
39425
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", { writable: false }), e; }
|
|
39426
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
39427
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (String )(t); }
|
|
39428
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
39429
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
39430
|
+
exports["default"] = /*#__PURE__*/function (_Container) {
|
|
39379
39431
|
_inheritsLoose(Root, _Container);
|
|
39380
39432
|
function Root(opts) {
|
|
39381
39433
|
var _this;
|
|
@@ -39384,9 +39436,9 @@ function requireRoot () {
|
|
|
39384
39436
|
return _this;
|
|
39385
39437
|
}
|
|
39386
39438
|
var _proto = Root.prototype;
|
|
39387
|
-
_proto.
|
|
39439
|
+
_proto._stringify = function _stringify(options, depth, max) {
|
|
39388
39440
|
var str = this.reduce(function (memo, selector) {
|
|
39389
|
-
memo.push(
|
|
39441
|
+
memo.push(selector._stringify(options, depth, max));
|
|
39390
39442
|
return memo;
|
|
39391
39443
|
}, []).join(',');
|
|
39392
39444
|
return this.trailingComma ? str + ',' : str;
|
|
@@ -39406,7 +39458,6 @@ function requireRoot () {
|
|
|
39406
39458
|
}]);
|
|
39407
39459
|
return Root;
|
|
39408
39460
|
}(_container["default"]);
|
|
39409
|
-
exports["default"] = Root;
|
|
39410
39461
|
module.exports = exports.default;
|
|
39411
39462
|
} (root, root.exports));
|
|
39412
39463
|
return root.exports;
|
|
@@ -39425,10 +39476,10 @@ function requireSelector () {
|
|
|
39425
39476
|
exports["default"] = void 0;
|
|
39426
39477
|
var _container = _interopRequireDefault(/*@__PURE__*/ requireContainer());
|
|
39427
39478
|
var _types = /*@__PURE__*/ requireTypes();
|
|
39428
|
-
function _interopRequireDefault(
|
|
39429
|
-
function _inheritsLoose(
|
|
39430
|
-
function _setPrototypeOf(
|
|
39431
|
-
|
|
39479
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
39480
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
39481
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
39482
|
+
exports["default"] = /*#__PURE__*/function (_Container) {
|
|
39432
39483
|
_inheritsLoose(Selector, _Container);
|
|
39433
39484
|
function Selector(opts) {
|
|
39434
39485
|
var _this;
|
|
@@ -39438,7 +39489,6 @@ function requireSelector () {
|
|
|
39438
39489
|
}
|
|
39439
39490
|
return Selector;
|
|
39440
39491
|
}(_container["default"]);
|
|
39441
|
-
exports["default"] = Selector;
|
|
39442
39492
|
module.exports = exports.default;
|
|
39443
39493
|
} (selector, selector.exports));
|
|
39444
39494
|
return selector.exports;
|
|
@@ -39577,12 +39627,14 @@ function requireClassName () {
|
|
|
39577
39627
|
var _util = /*@__PURE__*/ requireUtil$1();
|
|
39578
39628
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
|
|
39579
39629
|
var _types = /*@__PURE__*/ requireTypes();
|
|
39580
|
-
function _interopRequireDefault(
|
|
39581
|
-
function _defineProperties(
|
|
39582
|
-
function _createClass(
|
|
39583
|
-
function
|
|
39584
|
-
function
|
|
39585
|
-
|
|
39630
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
39631
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
39632
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", { writable: false }), e; }
|
|
39633
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
39634
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (String )(t); }
|
|
39635
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
39636
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
39637
|
+
exports["default"] = /*#__PURE__*/function (_Node) {
|
|
39586
39638
|
_inheritsLoose(ClassName, _Node);
|
|
39587
39639
|
function ClassName(opts) {
|
|
39588
39640
|
var _this;
|
|
@@ -39617,7 +39669,6 @@ function requireClassName () {
|
|
|
39617
39669
|
}]);
|
|
39618
39670
|
return ClassName;
|
|
39619
39671
|
}(_node["default"]);
|
|
39620
|
-
exports["default"] = ClassName;
|
|
39621
39672
|
module.exports = exports.default;
|
|
39622
39673
|
} (className, className.exports));
|
|
39623
39674
|
return className.exports;
|
|
@@ -39636,10 +39687,10 @@ function requireComment () {
|
|
|
39636
39687
|
exports["default"] = void 0;
|
|
39637
39688
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
|
|
39638
39689
|
var _types = /*@__PURE__*/ requireTypes();
|
|
39639
|
-
function _interopRequireDefault(
|
|
39640
|
-
function _inheritsLoose(
|
|
39641
|
-
function _setPrototypeOf(
|
|
39642
|
-
|
|
39690
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
39691
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
39692
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
39693
|
+
exports["default"] = /*#__PURE__*/function (_Node) {
|
|
39643
39694
|
_inheritsLoose(Comment, _Node);
|
|
39644
39695
|
function Comment(opts) {
|
|
39645
39696
|
var _this;
|
|
@@ -39649,7 +39700,6 @@ function requireComment () {
|
|
|
39649
39700
|
}
|
|
39650
39701
|
return Comment;
|
|
39651
39702
|
}(_node["default"]);
|
|
39652
|
-
exports["default"] = Comment;
|
|
39653
39703
|
module.exports = exports.default;
|
|
39654
39704
|
} (comment, comment.exports));
|
|
39655
39705
|
return comment.exports;
|
|
@@ -39668,10 +39718,10 @@ function requireId () {
|
|
|
39668
39718
|
exports["default"] = void 0;
|
|
39669
39719
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
|
|
39670
39720
|
var _types = /*@__PURE__*/ requireTypes();
|
|
39671
|
-
function _interopRequireDefault(
|
|
39672
|
-
function _inheritsLoose(
|
|
39673
|
-
function _setPrototypeOf(
|
|
39674
|
-
|
|
39721
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
39722
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
39723
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
39724
|
+
exports["default"] = /*#__PURE__*/function (_Node) {
|
|
39675
39725
|
_inheritsLoose(ID, _Node);
|
|
39676
39726
|
function ID(opts) {
|
|
39677
39727
|
var _this;
|
|
@@ -39685,7 +39735,6 @@ function requireId () {
|
|
|
39685
39735
|
};
|
|
39686
39736
|
return ID;
|
|
39687
39737
|
}(_node["default"]);
|
|
39688
|
-
exports["default"] = ID;
|
|
39689
39738
|
module.exports = exports.default;
|
|
39690
39739
|
} (id, id.exports));
|
|
39691
39740
|
return id.exports;
|
|
@@ -39707,12 +39756,14 @@ function requireNamespace () {
|
|
|
39707
39756
|
var _cssesc = _interopRequireDefault(/*@__PURE__*/ requireCssesc());
|
|
39708
39757
|
var _util = /*@__PURE__*/ requireUtil$1();
|
|
39709
39758
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
|
|
39710
|
-
function _interopRequireDefault(
|
|
39711
|
-
function _defineProperties(
|
|
39712
|
-
function _createClass(
|
|
39713
|
-
function
|
|
39714
|
-
function
|
|
39715
|
-
|
|
39759
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
39760
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
39761
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", { writable: false }), e; }
|
|
39762
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
39763
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (String )(t); }
|
|
39764
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
39765
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
39766
|
+
exports["default"] = /*#__PURE__*/function (_Node) {
|
|
39716
39767
|
_inheritsLoose(Namespace, _Node);
|
|
39717
39768
|
function Namespace() {
|
|
39718
39769
|
return _Node.apply(this, arguments) || this;
|
|
@@ -39777,7 +39828,6 @@ function requireNamespace () {
|
|
|
39777
39828
|
}]);
|
|
39778
39829
|
return Namespace;
|
|
39779
39830
|
}(_node["default"]);
|
|
39780
|
-
exports["default"] = Namespace;
|
|
39781
39831
|
module.exports = exports.default;
|
|
39782
39832
|
} (namespace, namespace.exports));
|
|
39783
39833
|
return namespace.exports;
|
|
@@ -39794,10 +39844,10 @@ function requireTag () {
|
|
|
39794
39844
|
exports["default"] = void 0;
|
|
39795
39845
|
var _namespace = _interopRequireDefault(/*@__PURE__*/ requireNamespace());
|
|
39796
39846
|
var _types = /*@__PURE__*/ requireTypes();
|
|
39797
|
-
function _interopRequireDefault(
|
|
39798
|
-
function _inheritsLoose(
|
|
39799
|
-
function _setPrototypeOf(
|
|
39800
|
-
|
|
39847
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
39848
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
39849
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
39850
|
+
exports["default"] = /*#__PURE__*/function (_Namespace) {
|
|
39801
39851
|
_inheritsLoose(Tag, _Namespace);
|
|
39802
39852
|
function Tag(opts) {
|
|
39803
39853
|
var _this;
|
|
@@ -39807,7 +39857,6 @@ function requireTag () {
|
|
|
39807
39857
|
}
|
|
39808
39858
|
return Tag;
|
|
39809
39859
|
}(_namespace["default"]);
|
|
39810
|
-
exports["default"] = Tag;
|
|
39811
39860
|
module.exports = exports.default;
|
|
39812
39861
|
} (tag, tag.exports));
|
|
39813
39862
|
return tag.exports;
|
|
@@ -39826,10 +39875,10 @@ function requireString () {
|
|
|
39826
39875
|
exports["default"] = void 0;
|
|
39827
39876
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
|
|
39828
39877
|
var _types = /*@__PURE__*/ requireTypes();
|
|
39829
|
-
function _interopRequireDefault(
|
|
39830
|
-
function _inheritsLoose(
|
|
39831
|
-
function _setPrototypeOf(
|
|
39832
|
-
|
|
39878
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
39879
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
39880
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
39881
|
+
exports["default"] = /*#__PURE__*/function (_Node) {
|
|
39833
39882
|
_inheritsLoose(String, _Node);
|
|
39834
39883
|
function String(opts) {
|
|
39835
39884
|
var _this;
|
|
@@ -39839,7 +39888,6 @@ function requireString () {
|
|
|
39839
39888
|
}
|
|
39840
39889
|
return String;
|
|
39841
39890
|
}(_node["default"]);
|
|
39842
|
-
exports["default"] = String;
|
|
39843
39891
|
module.exports = exports.default;
|
|
39844
39892
|
} (string, string.exports));
|
|
39845
39893
|
return string.exports;
|
|
@@ -39858,10 +39906,10 @@ function requirePseudo () {
|
|
|
39858
39906
|
exports["default"] = void 0;
|
|
39859
39907
|
var _container = _interopRequireDefault(/*@__PURE__*/ requireContainer());
|
|
39860
39908
|
var _types = /*@__PURE__*/ requireTypes();
|
|
39861
|
-
function _interopRequireDefault(
|
|
39862
|
-
function _inheritsLoose(
|
|
39863
|
-
function _setPrototypeOf(
|
|
39864
|
-
|
|
39909
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
39910
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
39911
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
39912
|
+
exports["default"] = /*#__PURE__*/function (_Container) {
|
|
39865
39913
|
_inheritsLoose(Pseudo, _Container);
|
|
39866
39914
|
function Pseudo(opts) {
|
|
39867
39915
|
var _this;
|
|
@@ -39870,13 +39918,17 @@ function requirePseudo () {
|
|
|
39870
39918
|
return _this;
|
|
39871
39919
|
}
|
|
39872
39920
|
var _proto = Pseudo.prototype;
|
|
39873
|
-
_proto.
|
|
39874
|
-
|
|
39921
|
+
_proto._stringify = function _stringify(options, depth, max) {
|
|
39922
|
+
if (depth >= max) {
|
|
39923
|
+
throw new Error("Cannot serialize selector: nesting depth exceeds the maximum of " + max + ".");
|
|
39924
|
+
}
|
|
39925
|
+
var params = this.length ? '(' + this.map(function (child) {
|
|
39926
|
+
return child._stringify(options, depth + 1, max);
|
|
39927
|
+
}).join(',') + ')' : '';
|
|
39875
39928
|
return [this.rawSpaceBefore, this.stringifyProperty("value"), params, this.rawSpaceAfter].join('');
|
|
39876
39929
|
};
|
|
39877
39930
|
return Pseudo;
|
|
39878
39931
|
}(_container["default"]);
|
|
39879
|
-
exports["default"] = Pseudo;
|
|
39880
39932
|
module.exports = exports.default;
|
|
39881
39933
|
} (pseudo, pseudo.exports));
|
|
39882
39934
|
return pseudo.exports;
|
|
@@ -39913,11 +39965,13 @@ function requireAttribute () {
|
|
|
39913
39965
|
var _namespace = _interopRequireDefault(/*@__PURE__*/ requireNamespace());
|
|
39914
39966
|
var _types = /*@__PURE__*/ requireTypes();
|
|
39915
39967
|
var _CSSESC_QUOTE_OPTIONS;
|
|
39916
|
-
function _interopRequireDefault(
|
|
39917
|
-
function _defineProperties(
|
|
39918
|
-
function _createClass(
|
|
39919
|
-
function
|
|
39920
|
-
function
|
|
39968
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
39969
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
39970
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", { writable: false }), e; }
|
|
39971
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
39972
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (String )(t); }
|
|
39973
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
39974
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
39921
39975
|
var deprecate = /*@__PURE__*/ requireNode();
|
|
39922
39976
|
var WRAPPED_IN_QUOTES = /^('|")([^]*)\1$/;
|
|
39923
39977
|
var warnOfDeprecatedValueAssignment = deprecate(function () {}, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. " + "Call attribute.setValue() instead.");
|
|
@@ -39963,7 +40017,7 @@ function requireAttribute () {
|
|
|
39963
40017
|
opts.quoteMark = quoteMark;
|
|
39964
40018
|
return opts;
|
|
39965
40019
|
}
|
|
39966
|
-
var Attribute = /*#__PURE__*/function (_Namespace) {
|
|
40020
|
+
var Attribute = exports["default"] = /*#__PURE__*/function (_Namespace) {
|
|
39967
40021
|
_inheritsLoose(Attribute, _Namespace);
|
|
39968
40022
|
function Attribute(opts) {
|
|
39969
40023
|
var _this;
|
|
@@ -40332,7 +40386,6 @@ function requireAttribute () {
|
|
|
40332
40386
|
}]);
|
|
40333
40387
|
return Attribute;
|
|
40334
40388
|
}(_namespace["default"]);
|
|
40335
|
-
exports["default"] = Attribute;
|
|
40336
40389
|
Attribute.NO_QUOTE = null;
|
|
40337
40390
|
Attribute.SINGLE_QUOTE = "'";
|
|
40338
40391
|
Attribute.DOUBLE_QUOTE = '"';
|
|
@@ -40368,10 +40421,10 @@ function requireUniversal () {
|
|
|
40368
40421
|
exports["default"] = void 0;
|
|
40369
40422
|
var _namespace = _interopRequireDefault(/*@__PURE__*/ requireNamespace());
|
|
40370
40423
|
var _types = /*@__PURE__*/ requireTypes();
|
|
40371
|
-
function _interopRequireDefault(
|
|
40372
|
-
function _inheritsLoose(
|
|
40373
|
-
function _setPrototypeOf(
|
|
40374
|
-
|
|
40424
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
40425
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
40426
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
40427
|
+
exports["default"] = /*#__PURE__*/function (_Namespace) {
|
|
40375
40428
|
_inheritsLoose(Universal, _Namespace);
|
|
40376
40429
|
function Universal(opts) {
|
|
40377
40430
|
var _this;
|
|
@@ -40382,7 +40435,6 @@ function requireUniversal () {
|
|
|
40382
40435
|
}
|
|
40383
40436
|
return Universal;
|
|
40384
40437
|
}(_namespace["default"]);
|
|
40385
|
-
exports["default"] = Universal;
|
|
40386
40438
|
module.exports = exports.default;
|
|
40387
40439
|
} (universal, universal.exports));
|
|
40388
40440
|
return universal.exports;
|
|
@@ -40401,10 +40453,10 @@ function requireCombinator () {
|
|
|
40401
40453
|
exports["default"] = void 0;
|
|
40402
40454
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
|
|
40403
40455
|
var _types = /*@__PURE__*/ requireTypes();
|
|
40404
|
-
function _interopRequireDefault(
|
|
40405
|
-
function _inheritsLoose(
|
|
40406
|
-
function _setPrototypeOf(
|
|
40407
|
-
|
|
40456
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
40457
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
40458
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
40459
|
+
exports["default"] = /*#__PURE__*/function (_Node) {
|
|
40408
40460
|
_inheritsLoose(Combinator, _Node);
|
|
40409
40461
|
function Combinator(opts) {
|
|
40410
40462
|
var _this;
|
|
@@ -40414,7 +40466,6 @@ function requireCombinator () {
|
|
|
40414
40466
|
}
|
|
40415
40467
|
return Combinator;
|
|
40416
40468
|
}(_node["default"]);
|
|
40417
|
-
exports["default"] = Combinator;
|
|
40418
40469
|
module.exports = exports.default;
|
|
40419
40470
|
} (combinator, combinator.exports));
|
|
40420
40471
|
return combinator.exports;
|
|
@@ -40433,10 +40484,10 @@ function requireNesting () {
|
|
|
40433
40484
|
exports["default"] = void 0;
|
|
40434
40485
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
|
|
40435
40486
|
var _types = /*@__PURE__*/ requireTypes();
|
|
40436
|
-
function _interopRequireDefault(
|
|
40437
|
-
function _inheritsLoose(
|
|
40438
|
-
function _setPrototypeOf(
|
|
40439
|
-
|
|
40487
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
40488
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
40489
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
40490
|
+
exports["default"] = /*#__PURE__*/function (_Node) {
|
|
40440
40491
|
_inheritsLoose(Nesting, _Node);
|
|
40441
40492
|
function Nesting(opts) {
|
|
40442
40493
|
var _this;
|
|
@@ -40447,7 +40498,6 @@ function requireNesting () {
|
|
|
40447
40498
|
}
|
|
40448
40499
|
return Nesting;
|
|
40449
40500
|
}(_node["default"]);
|
|
40450
|
-
exports["default"] = Nesting;
|
|
40451
40501
|
module.exports = exports.default;
|
|
40452
40502
|
} (nesting, nesting.exports));
|
|
40453
40503
|
return nesting.exports;
|
|
@@ -40486,72 +40536,42 @@ function requireTokenTypes () {
|
|
|
40486
40536
|
|
|
40487
40537
|
tokenTypes.__esModule = true;
|
|
40488
40538
|
tokenTypes.word = tokenTypes.tilde = tokenTypes.tab = tokenTypes.str = tokenTypes.space = tokenTypes.slash = tokenTypes.singleQuote = tokenTypes.semicolon = tokenTypes.plus = tokenTypes.pipe = tokenTypes.openSquare = tokenTypes.openParenthesis = tokenTypes.newline = tokenTypes.greaterThan = tokenTypes.feed = tokenTypes.equals = tokenTypes.doubleQuote = tokenTypes.dollar = tokenTypes.cr = tokenTypes.comment = tokenTypes.comma = tokenTypes.combinator = tokenTypes.colon = tokenTypes.closeSquare = tokenTypes.closeParenthesis = tokenTypes.caret = tokenTypes.bang = tokenTypes.backslash = tokenTypes.at = tokenTypes.asterisk = tokenTypes.ampersand = void 0;
|
|
40489
|
-
|
|
40490
|
-
tokenTypes.
|
|
40491
|
-
|
|
40492
|
-
tokenTypes.
|
|
40493
|
-
|
|
40494
|
-
tokenTypes.
|
|
40495
|
-
|
|
40496
|
-
tokenTypes.
|
|
40497
|
-
|
|
40498
|
-
tokenTypes.
|
|
40499
|
-
|
|
40500
|
-
tokenTypes.
|
|
40501
|
-
|
|
40502
|
-
tokenTypes.
|
|
40503
|
-
|
|
40504
|
-
tokenTypes.
|
|
40505
|
-
|
|
40506
|
-
tokenTypes.
|
|
40507
|
-
var
|
|
40508
|
-
tokenTypes.
|
|
40509
|
-
|
|
40510
|
-
tokenTypes.
|
|
40511
|
-
|
|
40512
|
-
tokenTypes.
|
|
40513
|
-
|
|
40514
|
-
tokenTypes.
|
|
40515
|
-
|
|
40516
|
-
tokenTypes.
|
|
40517
|
-
var equals = 61; // `=`.charCodeAt(0);
|
|
40518
|
-
tokenTypes.equals = equals;
|
|
40519
|
-
var pipe = 124; // `|`.charCodeAt(0);
|
|
40520
|
-
tokenTypes.pipe = pipe;
|
|
40521
|
-
var greaterThan = 62; // `>`.charCodeAt(0);
|
|
40522
|
-
tokenTypes.greaterThan = greaterThan;
|
|
40523
|
-
var space = 32; // ` `.charCodeAt(0);
|
|
40524
|
-
tokenTypes.space = space;
|
|
40525
|
-
var singleQuote = 39; // `'`.charCodeAt(0);
|
|
40526
|
-
tokenTypes.singleQuote = singleQuote;
|
|
40527
|
-
var doubleQuote = 34; // `"`.charCodeAt(0);
|
|
40528
|
-
tokenTypes.doubleQuote = doubleQuote;
|
|
40529
|
-
var slash = 47; // `/`.charCodeAt(0);
|
|
40530
|
-
tokenTypes.slash = slash;
|
|
40531
|
-
var bang = 33; // `!`.charCodeAt(0);
|
|
40532
|
-
tokenTypes.bang = bang;
|
|
40533
|
-
var backslash = 92; // '\\'.charCodeAt(0);
|
|
40534
|
-
tokenTypes.backslash = backslash;
|
|
40535
|
-
var cr = 13; // '\r'.charCodeAt(0);
|
|
40536
|
-
tokenTypes.cr = cr;
|
|
40537
|
-
var feed = 12; // '\f'.charCodeAt(0);
|
|
40538
|
-
tokenTypes.feed = feed;
|
|
40539
|
-
var newline = 10; // '\n'.charCodeAt(0);
|
|
40540
|
-
tokenTypes.newline = newline;
|
|
40541
|
-
var tab = 9; // '\t'.charCodeAt(0);
|
|
40539
|
+
tokenTypes.ampersand = 38; // `&`.charCodeAt(0);
|
|
40540
|
+
tokenTypes.asterisk = 42; // `*`.charCodeAt(0);
|
|
40541
|
+
tokenTypes.at = 64; // `@`.charCodeAt(0);
|
|
40542
|
+
tokenTypes.comma = 44; // `,`.charCodeAt(0);
|
|
40543
|
+
tokenTypes.colon = 58; // `:`.charCodeAt(0);
|
|
40544
|
+
tokenTypes.semicolon = 59; // `;`.charCodeAt(0);
|
|
40545
|
+
tokenTypes.openParenthesis = 40; // `(`.charCodeAt(0);
|
|
40546
|
+
tokenTypes.closeParenthesis = 41; // `)`.charCodeAt(0);
|
|
40547
|
+
tokenTypes.openSquare = 91; // `[`.charCodeAt(0);
|
|
40548
|
+
tokenTypes.closeSquare = 93; // `]`.charCodeAt(0);
|
|
40549
|
+
tokenTypes.dollar = 36; // `$`.charCodeAt(0);
|
|
40550
|
+
tokenTypes.tilde = 126; // `~`.charCodeAt(0);
|
|
40551
|
+
tokenTypes.caret = 94; // `^`.charCodeAt(0);
|
|
40552
|
+
tokenTypes.plus = 43; // `+`.charCodeAt(0);
|
|
40553
|
+
tokenTypes.equals = 61; // `=`.charCodeAt(0);
|
|
40554
|
+
tokenTypes.pipe = 124; // `|`.charCodeAt(0);
|
|
40555
|
+
tokenTypes.greaterThan = 62; // `>`.charCodeAt(0);
|
|
40556
|
+
tokenTypes.space = 32; // ` `.charCodeAt(0);
|
|
40557
|
+
var singleQuote = tokenTypes.singleQuote = 39; // `'`.charCodeAt(0);
|
|
40558
|
+
tokenTypes.doubleQuote = 34; // `"`.charCodeAt(0);
|
|
40559
|
+
tokenTypes.slash = 47; // `/`.charCodeAt(0);
|
|
40560
|
+
tokenTypes.bang = 33; // `!`.charCodeAt(0);
|
|
40561
|
+
|
|
40562
|
+
tokenTypes.backslash = 92; // '\\'.charCodeAt(0);
|
|
40563
|
+
tokenTypes.cr = 13; // '\r'.charCodeAt(0);
|
|
40564
|
+
tokenTypes.feed = 12; // '\f'.charCodeAt(0);
|
|
40565
|
+
tokenTypes.newline = 10; // '\n'.charCodeAt(0);
|
|
40566
|
+
tokenTypes.tab = 9; // '\t'.charCodeAt(0);
|
|
40542
40567
|
|
|
40543
40568
|
// Expose aliases primarily for readability.
|
|
40544
|
-
tokenTypes.
|
|
40545
|
-
var str = singleQuote;
|
|
40569
|
+
tokenTypes.str = singleQuote;
|
|
40546
40570
|
|
|
40547
40571
|
// No good single character representation!
|
|
40548
|
-
tokenTypes.
|
|
40549
|
-
|
|
40550
|
-
tokenTypes.
|
|
40551
|
-
var word = -2;
|
|
40552
|
-
tokenTypes.word = word;
|
|
40553
|
-
var combinator = -3;
|
|
40554
|
-
tokenTypes.combinator = combinator;
|
|
40572
|
+
tokenTypes.comment = -1;
|
|
40573
|
+
tokenTypes.word = -2;
|
|
40574
|
+
tokenTypes.combinator = -3;
|
|
40555
40575
|
return tokenTypes;
|
|
40556
40576
|
}
|
|
40557
40577
|
|
|
@@ -40567,8 +40587,7 @@ function requireTokenize () {
|
|
|
40567
40587
|
exports["default"] = tokenize;
|
|
40568
40588
|
var t = _interopRequireWildcard(/*@__PURE__*/ requireTokenTypes());
|
|
40569
40589
|
var _unescapable, _wordDelimiters;
|
|
40570
|
-
function
|
|
40571
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
40590
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
|
|
40572
40591
|
var unescapable = (_unescapable = {}, _unescapable[t.tab] = true, _unescapable[t.newline] = true, _unescapable[t.cr] = true, _unescapable[t.feed] = true, _unescapable);
|
|
40573
40592
|
var wordDelimiters = (_wordDelimiters = {}, _wordDelimiters[t.space] = true, _wordDelimiters[t.tab] = true, _wordDelimiters[t.newline] = true, _wordDelimiters[t.cr] = true, _wordDelimiters[t.feed] = true, _wordDelimiters[t.ampersand] = true, _wordDelimiters[t.asterisk] = true, _wordDelimiters[t.bang] = true, _wordDelimiters[t.comma] = true, _wordDelimiters[t.colon] = true, _wordDelimiters[t.semicolon] = true, _wordDelimiters[t.openParenthesis] = true, _wordDelimiters[t.closeParenthesis] = true, _wordDelimiters[t.openSquare] = true, _wordDelimiters[t.closeSquare] = true, _wordDelimiters[t.singleQuote] = true, _wordDelimiters[t.doubleQuote] = true, _wordDelimiters[t.plus] = true, _wordDelimiters[t.pipe] = true, _wordDelimiters[t.tilde] = true, _wordDelimiters[t.greaterThan] = true, _wordDelimiters[t.equals] = true, _wordDelimiters[t.dollar] = true, _wordDelimiters[t.caret] = true, _wordDelimiters[t.slash] = true, _wordDelimiters);
|
|
40574
40593
|
var hex = {};
|
|
@@ -40625,7 +40644,7 @@ function requireTokenize () {
|
|
|
40625
40644
|
}
|
|
40626
40645
|
return next;
|
|
40627
40646
|
}
|
|
40628
|
-
|
|
40647
|
+
exports.FIELDS = {
|
|
40629
40648
|
TYPE: 0,
|
|
40630
40649
|
START_LINE: 1,
|
|
40631
40650
|
START_COL: 2,
|
|
@@ -40634,7 +40653,6 @@ function requireTokenize () {
|
|
|
40634
40653
|
START_POS: 5,
|
|
40635
40654
|
END_POS: 6
|
|
40636
40655
|
};
|
|
40637
|
-
exports.FIELDS = FIELDS;
|
|
40638
40656
|
function tokenize(input) {
|
|
40639
40657
|
var tokens = [];
|
|
40640
40658
|
var css = input.css.valueOf();
|
|
@@ -40828,11 +40846,12 @@ function requireParser () {
|
|
|
40828
40846
|
var types = _interopRequireWildcard(/*@__PURE__*/ requireTypes());
|
|
40829
40847
|
var _util = /*@__PURE__*/ requireUtil$1();
|
|
40830
40848
|
var _WHITESPACE_TOKENS, _Object$assign;
|
|
40831
|
-
function
|
|
40832
|
-
function
|
|
40833
|
-
function
|
|
40834
|
-
function
|
|
40835
|
-
function
|
|
40849
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
|
|
40850
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
40851
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
40852
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", { writable: false }), e; }
|
|
40853
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
40854
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (String )(t); }
|
|
40836
40855
|
var WHITESPACE_TOKENS = (_WHITESPACE_TOKENS = {}, _WHITESPACE_TOKENS[tokens.space] = true, _WHITESPACE_TOKENS[tokens.cr] = true, _WHITESPACE_TOKENS[tokens.feed] = true, _WHITESPACE_TOKENS[tokens.newline] = true, _WHITESPACE_TOKENS[tokens.tab] = true, _WHITESPACE_TOKENS);
|
|
40837
40856
|
var WHITESPACE_EQUIV_TOKENS = Object.assign({}, WHITESPACE_TOKENS, (_Object$assign = {}, _Object$assign[tokens.comment] = true, _Object$assign));
|
|
40838
40857
|
function tokenStart(token) {
|
|
@@ -40896,7 +40915,7 @@ function requireParser () {
|
|
|
40896
40915
|
return i === list.indexOf(item);
|
|
40897
40916
|
});
|
|
40898
40917
|
}
|
|
40899
|
-
|
|
40918
|
+
exports["default"] = /*#__PURE__*/function () {
|
|
40900
40919
|
function Parser(rule, options) {
|
|
40901
40920
|
if (options === void 0) {
|
|
40902
40921
|
options = {};
|
|
@@ -40907,6 +40926,8 @@ function requireParser () {
|
|
|
40907
40926
|
safe: false
|
|
40908
40927
|
}, options);
|
|
40909
40928
|
this.position = 0;
|
|
40929
|
+
this.nestingDepth = 0;
|
|
40930
|
+
this.maxNestingDepth = (0, _util.resolveMaxNestingDepth)(this.options.maxNestingDepth);
|
|
40910
40931
|
this.css = typeof this.rule === 'string' ? this.rule : this.rule.selector;
|
|
40911
40932
|
this.tokens = (0, _tokenize["default"])({
|
|
40912
40933
|
css: this.css,
|
|
@@ -41461,20 +41482,34 @@ function requireParser () {
|
|
|
41461
41482
|
var cache = this.current;
|
|
41462
41483
|
last.append(selector);
|
|
41463
41484
|
this.current = selector;
|
|
41464
|
-
|
|
41465
|
-
|
|
41466
|
-
|
|
41467
|
-
|
|
41468
|
-
|
|
41469
|
-
|
|
41485
|
+
// Track nesting depth so deeply nested pseudo selectors raise a
|
|
41486
|
+
// catchable error instead of overflowing the call stack. The
|
|
41487
|
+
// counter is restored in `finally` so the parser is never left in
|
|
41488
|
+
// an inconsistent state, even on the error path.
|
|
41489
|
+
this.nestingDepth++;
|
|
41490
|
+
try {
|
|
41491
|
+
if (this.nestingDepth > this.maxNestingDepth) {
|
|
41492
|
+
this.error("Cannot parse selector: nesting depth exceeds the maximum of " + this.maxNestingDepth + ".", {
|
|
41493
|
+
index: this.currToken[_tokenize.FIELDS.START_POS]
|
|
41494
|
+
});
|
|
41470
41495
|
}
|
|
41471
|
-
|
|
41472
|
-
this.
|
|
41473
|
-
|
|
41474
|
-
|
|
41475
|
-
this.
|
|
41476
|
-
|
|
41496
|
+
while (this.position < this.tokens.length && unbalanced) {
|
|
41497
|
+
if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) {
|
|
41498
|
+
unbalanced++;
|
|
41499
|
+
}
|
|
41500
|
+
if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) {
|
|
41501
|
+
unbalanced--;
|
|
41502
|
+
}
|
|
41503
|
+
if (unbalanced) {
|
|
41504
|
+
this.parse();
|
|
41505
|
+
} else {
|
|
41506
|
+
this.current.source.end = tokenEnd(this.currToken);
|
|
41507
|
+
this.current.parent.source.end = tokenEnd(this.currToken);
|
|
41508
|
+
this.position++;
|
|
41509
|
+
}
|
|
41477
41510
|
}
|
|
41511
|
+
} finally {
|
|
41512
|
+
this.nestingDepth--;
|
|
41478
41513
|
}
|
|
41479
41514
|
this.current = cache;
|
|
41480
41515
|
} else {
|
|
@@ -41817,7 +41852,6 @@ function requireParser () {
|
|
|
41817
41852
|
}]);
|
|
41818
41853
|
return Parser;
|
|
41819
41854
|
}();
|
|
41820
|
-
exports["default"] = Parser;
|
|
41821
41855
|
module.exports = exports.default;
|
|
41822
41856
|
} (parser, parser.exports));
|
|
41823
41857
|
return parser.exports;
|
|
@@ -41833,8 +41867,8 @@ function requireProcessor () {
|
|
|
41833
41867
|
exports.__esModule = true;
|
|
41834
41868
|
exports["default"] = void 0;
|
|
41835
41869
|
var _parser = _interopRequireDefault(/*@__PURE__*/ requireParser());
|
|
41836
|
-
function _interopRequireDefault(
|
|
41837
|
-
|
|
41870
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
41871
|
+
exports["default"] = /*#__PURE__*/function () {
|
|
41838
41872
|
function Processor(func, options) {
|
|
41839
41873
|
this.func = func || function noop() {};
|
|
41840
41874
|
this.funcRes = null;
|
|
@@ -41871,8 +41905,16 @@ function requireProcessor () {
|
|
|
41871
41905
|
return parser.root;
|
|
41872
41906
|
};
|
|
41873
41907
|
_proto._parseOptions = function _parseOptions(options) {
|
|
41908
|
+
var merged = Object.assign({}, this.options, options);
|
|
41874
41909
|
return {
|
|
41875
|
-
lossy: this._isLossy(
|
|
41910
|
+
lossy: this._isLossy(merged),
|
|
41911
|
+
maxNestingDepth: merged.maxNestingDepth
|
|
41912
|
+
};
|
|
41913
|
+
};
|
|
41914
|
+
_proto._stringifyOptions = function _stringifyOptions(options) {
|
|
41915
|
+
var merged = Object.assign({}, this.options, options);
|
|
41916
|
+
return {
|
|
41917
|
+
maxNestingDepth: merged.maxNestingDepth
|
|
41876
41918
|
};
|
|
41877
41919
|
};
|
|
41878
41920
|
_proto._run = function _run(rule, options) {
|
|
@@ -41886,7 +41928,7 @@ function requireProcessor () {
|
|
|
41886
41928
|
Promise.resolve(_this.func(root)).then(function (transform) {
|
|
41887
41929
|
var string = undefined;
|
|
41888
41930
|
if (_this._shouldUpdateSelector(rule, options)) {
|
|
41889
|
-
string = root.toString();
|
|
41931
|
+
string = root.toString(_this._stringifyOptions(options));
|
|
41890
41932
|
rule.selector = string;
|
|
41891
41933
|
}
|
|
41892
41934
|
return {
|
|
@@ -41912,7 +41954,7 @@ function requireProcessor () {
|
|
|
41912
41954
|
}
|
|
41913
41955
|
var string = undefined;
|
|
41914
41956
|
if (options.updateSelector && typeof rule !== "string") {
|
|
41915
|
-
string = root.toString();
|
|
41957
|
+
string = root.toString(this._stringifyOptions(options));
|
|
41916
41958
|
rule.selector = string;
|
|
41917
41959
|
}
|
|
41918
41960
|
return {
|
|
@@ -41978,8 +42020,9 @@ function requireProcessor () {
|
|
|
41978
42020
|
* @returns {string} the selector after processing.
|
|
41979
42021
|
*/;
|
|
41980
42022
|
_proto.process = function process(rule, options) {
|
|
42023
|
+
var _this2 = this;
|
|
41981
42024
|
return this._run(rule, options).then(function (result) {
|
|
41982
|
-
return result.string || result.root.toString();
|
|
42025
|
+
return result.string || result.root.toString(_this2._stringifyOptions(options));
|
|
41983
42026
|
});
|
|
41984
42027
|
}
|
|
41985
42028
|
|
|
@@ -41992,11 +42035,10 @@ function requireProcessor () {
|
|
|
41992
42035
|
*/;
|
|
41993
42036
|
_proto.processSync = function processSync(rule, options) {
|
|
41994
42037
|
var result = this._runSync(rule, options);
|
|
41995
|
-
return result.string || result.root.toString();
|
|
42038
|
+
return result.string || result.root.toString(this._stringifyOptions(options));
|
|
41996
42039
|
};
|
|
41997
42040
|
return Processor;
|
|
41998
42041
|
}();
|
|
41999
|
-
exports["default"] = Processor;
|
|
42000
42042
|
module.exports = exports.default;
|
|
42001
42043
|
} (processor, processor.exports));
|
|
42002
42044
|
return processor.exports;
|
|
@@ -42026,55 +42068,43 @@ function requireConstructors () {
|
|
|
42026
42068
|
var _string = _interopRequireDefault(/*@__PURE__*/ requireString());
|
|
42027
42069
|
var _tag = _interopRequireDefault(/*@__PURE__*/ requireTag());
|
|
42028
42070
|
var _universal = _interopRequireDefault(/*@__PURE__*/ requireUniversal());
|
|
42029
|
-
function _interopRequireDefault(
|
|
42030
|
-
|
|
42071
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
42072
|
+
constructors.attribute = function attribute(opts) {
|
|
42031
42073
|
return new _attribute["default"](opts);
|
|
42032
42074
|
};
|
|
42033
|
-
constructors.
|
|
42034
|
-
var className = function className(opts) {
|
|
42075
|
+
constructors.className = function className(opts) {
|
|
42035
42076
|
return new _className["default"](opts);
|
|
42036
42077
|
};
|
|
42037
|
-
constructors.
|
|
42038
|
-
var combinator = function combinator(opts) {
|
|
42078
|
+
constructors.combinator = function combinator(opts) {
|
|
42039
42079
|
return new _combinator["default"](opts);
|
|
42040
42080
|
};
|
|
42041
|
-
constructors.
|
|
42042
|
-
var comment = function comment(opts) {
|
|
42081
|
+
constructors.comment = function comment(opts) {
|
|
42043
42082
|
return new _comment["default"](opts);
|
|
42044
42083
|
};
|
|
42045
|
-
constructors.
|
|
42046
|
-
var id = function id(opts) {
|
|
42084
|
+
constructors.id = function id(opts) {
|
|
42047
42085
|
return new _id["default"](opts);
|
|
42048
42086
|
};
|
|
42049
|
-
constructors.
|
|
42050
|
-
var nesting = function nesting(opts) {
|
|
42087
|
+
constructors.nesting = function nesting(opts) {
|
|
42051
42088
|
return new _nesting["default"](opts);
|
|
42052
42089
|
};
|
|
42053
|
-
constructors.
|
|
42054
|
-
var pseudo = function pseudo(opts) {
|
|
42090
|
+
constructors.pseudo = function pseudo(opts) {
|
|
42055
42091
|
return new _pseudo["default"](opts);
|
|
42056
42092
|
};
|
|
42057
|
-
constructors.
|
|
42058
|
-
var root = function root(opts) {
|
|
42093
|
+
constructors.root = function root(opts) {
|
|
42059
42094
|
return new _root["default"](opts);
|
|
42060
42095
|
};
|
|
42061
|
-
constructors.
|
|
42062
|
-
var selector = function selector(opts) {
|
|
42096
|
+
constructors.selector = function selector(opts) {
|
|
42063
42097
|
return new _selector["default"](opts);
|
|
42064
42098
|
};
|
|
42065
|
-
constructors.
|
|
42066
|
-
var string = function string(opts) {
|
|
42099
|
+
constructors.string = function string(opts) {
|
|
42067
42100
|
return new _string["default"](opts);
|
|
42068
42101
|
};
|
|
42069
|
-
constructors.
|
|
42070
|
-
var tag = function tag(opts) {
|
|
42102
|
+
constructors.tag = function tag(opts) {
|
|
42071
42103
|
return new _tag["default"](opts);
|
|
42072
42104
|
};
|
|
42073
|
-
constructors.
|
|
42074
|
-
var universal = function universal(opts) {
|
|
42105
|
+
constructors.universal = function universal(opts) {
|
|
42075
42106
|
return new _universal["default"](opts);
|
|
42076
42107
|
};
|
|
42077
|
-
constructors.universal = universal;
|
|
42078
42108
|
return constructors;
|
|
42079
42109
|
}
|
|
42080
42110
|
|
|
@@ -42106,30 +42136,18 @@ function requireGuards () {
|
|
|
42106
42136
|
function isNodeType(type, node) {
|
|
42107
42137
|
return isNode(node) && node.type === type;
|
|
42108
42138
|
}
|
|
42109
|
-
var isAttribute = isNodeType.bind(null, _types.ATTRIBUTE);
|
|
42110
|
-
guards.
|
|
42111
|
-
|
|
42112
|
-
guards.
|
|
42113
|
-
|
|
42114
|
-
guards.
|
|
42115
|
-
var
|
|
42116
|
-
guards.
|
|
42117
|
-
|
|
42118
|
-
guards.
|
|
42119
|
-
var
|
|
42120
|
-
guards.
|
|
42121
|
-
var isPseudo = isNodeType.bind(null, _types.PSEUDO);
|
|
42122
|
-
guards.isPseudo = isPseudo;
|
|
42123
|
-
var isRoot = isNodeType.bind(null, _types.ROOT);
|
|
42124
|
-
guards.isRoot = isRoot;
|
|
42125
|
-
var isSelector = isNodeType.bind(null, _types.SELECTOR);
|
|
42126
|
-
guards.isSelector = isSelector;
|
|
42127
|
-
var isString = isNodeType.bind(null, _types.STRING);
|
|
42128
|
-
guards.isString = isString;
|
|
42129
|
-
var isTag = isNodeType.bind(null, _types.TAG);
|
|
42130
|
-
guards.isTag = isTag;
|
|
42131
|
-
var isUniversal = isNodeType.bind(null, _types.UNIVERSAL);
|
|
42132
|
-
guards.isUniversal = isUniversal;
|
|
42139
|
+
var isAttribute = guards.isAttribute = isNodeType.bind(null, _types.ATTRIBUTE);
|
|
42140
|
+
guards.isClassName = isNodeType.bind(null, _types.CLASS);
|
|
42141
|
+
guards.isCombinator = isNodeType.bind(null, _types.COMBINATOR);
|
|
42142
|
+
guards.isComment = isNodeType.bind(null, _types.COMMENT);
|
|
42143
|
+
guards.isIdentifier = isNodeType.bind(null, _types.ID);
|
|
42144
|
+
guards.isNesting = isNodeType.bind(null, _types.NESTING);
|
|
42145
|
+
var isPseudo = guards.isPseudo = isNodeType.bind(null, _types.PSEUDO);
|
|
42146
|
+
guards.isRoot = isNodeType.bind(null, _types.ROOT);
|
|
42147
|
+
guards.isSelector = isNodeType.bind(null, _types.SELECTOR);
|
|
42148
|
+
guards.isString = isNodeType.bind(null, _types.STRING);
|
|
42149
|
+
var isTag = guards.isTag = isNodeType.bind(null, _types.TAG);
|
|
42150
|
+
guards.isUniversal = isNodeType.bind(null, _types.UNIVERSAL);
|
|
42133
42151
|
function isPseudoElement(node) {
|
|
42134
42152
|
return isPseudo(node) && node.value && (node.value.startsWith("::") || node.value.toLowerCase() === ":before" || node.value.toLowerCase() === ":after" || node.value.toLowerCase() === ":first-letter" || node.value.toLowerCase() === ":first-line");
|
|
42135
42153
|
}
|
|
@@ -42186,16 +42204,14 @@ function requireDist () {
|
|
|
42186
42204
|
exports["default"] = void 0;
|
|
42187
42205
|
var _processor = _interopRequireDefault(/*@__PURE__*/ requireProcessor());
|
|
42188
42206
|
var selectors = _interopRequireWildcard(/*@__PURE__*/ requireSelectors());
|
|
42189
|
-
function
|
|
42190
|
-
function
|
|
42191
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
42207
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
|
|
42208
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
42192
42209
|
var parser = function parser(processor) {
|
|
42193
42210
|
return new _processor["default"](processor);
|
|
42194
42211
|
};
|
|
42195
42212
|
Object.assign(parser, selectors);
|
|
42196
42213
|
delete parser.__esModule;
|
|
42197
|
-
|
|
42198
|
-
exports["default"] = _default;
|
|
42214
|
+
exports["default"] = parser;
|
|
42199
42215
|
module.exports = exports.default;
|
|
42200
42216
|
} (dist, dist.exports));
|
|
42201
42217
|
return dist.exports;
|
|
@@ -47902,7 +47918,16 @@ function resolveTypeElements(ctx, node, scope, typeParameters) {
|
|
|
47902
47918
|
}
|
|
47903
47919
|
function innerResolveTypeElements(ctx, node, scope, typeParameters) {
|
|
47904
47920
|
var _a, _b;
|
|
47905
|
-
if (node
|
|
47921
|
+
if (hasVueIgnore(node)) {
|
|
47922
|
+
if ((node.type === "TSIntersectionType" || node.type === "TSUnionType") && node.types.length > 1) {
|
|
47923
|
+
return mergeElements(
|
|
47924
|
+
[
|
|
47925
|
+
{ props: {} },
|
|
47926
|
+
...node.types.slice(1).map((t) => resolveTypeElements(ctx, t, scope, typeParameters))
|
|
47927
|
+
],
|
|
47928
|
+
node.type
|
|
47929
|
+
);
|
|
47930
|
+
}
|
|
47906
47931
|
return { props: {} };
|
|
47907
47932
|
}
|
|
47908
47933
|
switch (node.type) {
|
|
@@ -48064,6 +48089,9 @@ function typeElementsToMap(ctx, elements, scope = ctxToScope(ctx), typeParameter
|
|
|
48064
48089
|
}
|
|
48065
48090
|
return res;
|
|
48066
48091
|
}
|
|
48092
|
+
function hasVueIgnore(node) {
|
|
48093
|
+
return !!(node.leadingComments && node.leadingComments.some((c) => c.value.includes("@vue-ignore")));
|
|
48094
|
+
}
|
|
48067
48095
|
function mergeElements(maps, type) {
|
|
48068
48096
|
if (maps.length === 1) return maps[0];
|
|
48069
48097
|
const res = { props: {} };
|
|
@@ -48577,15 +48605,18 @@ function resolveWithTS(containingFile, source, ts2, fs) {
|
|
|
48577
48605
|
return;
|
|
48578
48606
|
}
|
|
48579
48607
|
const fileToScopeCache = createCache();
|
|
48608
|
+
const fileToGlobalScopeCache = createCache();
|
|
48580
48609
|
function invalidateTypeCache(filename) {
|
|
48581
48610
|
filename = normalizePath(filename);
|
|
48582
48611
|
fileToScopeCache.delete(filename);
|
|
48612
|
+
fileToGlobalScopeCache.delete(filename);
|
|
48583
48613
|
tsConfigCache.delete(filename);
|
|
48584
48614
|
const affectedConfig = tsConfigRefMap.get(filename);
|
|
48585
48615
|
if (affectedConfig) tsConfigCache.delete(affectedConfig);
|
|
48586
48616
|
}
|
|
48587
48617
|
function fileToScope(ctx, filename, asGlobal = false) {
|
|
48588
|
-
const
|
|
48618
|
+
const cache = asGlobal ? fileToGlobalScopeCache : fileToScopeCache;
|
|
48619
|
+
const cached = cache.get(filename);
|
|
48589
48620
|
if (cached) {
|
|
48590
48621
|
return cached;
|
|
48591
48622
|
}
|
|
@@ -48594,7 +48625,7 @@ function fileToScope(ctx, filename, asGlobal = false) {
|
|
|
48594
48625
|
const body = parseFile(filename, source, fs, ctx.options.babelParserPlugins);
|
|
48595
48626
|
const scope = new TypeScope(filename, source, 0, recordImports(body));
|
|
48596
48627
|
recordTypes(ctx, body, scope, asGlobal);
|
|
48597
|
-
|
|
48628
|
+
cache.set(filename, scope);
|
|
48598
48629
|
return scope;
|
|
48599
48630
|
}
|
|
48600
48631
|
function parseFile(filename, content, fs, parserPlugins) {
|
|
@@ -49816,6 +49847,7 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
49816
49847
|
}
|
|
49817
49848
|
const rootScope = /* @__PURE__ */ Object.create(null);
|
|
49818
49849
|
const scopeStack = [rootScope];
|
|
49850
|
+
const functionScopeStack = [rootScope];
|
|
49819
49851
|
let currentScope = rootScope;
|
|
49820
49852
|
const excludedIds = /* @__PURE__ */ new WeakSet();
|
|
49821
49853
|
const parentStack = [];
|
|
@@ -49825,17 +49857,24 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
49825
49857
|
rootScope[local] = true;
|
|
49826
49858
|
propsLocalToPublicMap[local] = key;
|
|
49827
49859
|
}
|
|
49828
|
-
function pushScope() {
|
|
49829
|
-
|
|
49860
|
+
function pushScope(isFunctionScope = false) {
|
|
49861
|
+
const scope = currentScope = Object.create(currentScope);
|
|
49862
|
+
scopeStack.push(scope);
|
|
49863
|
+
if (isFunctionScope) {
|
|
49864
|
+
functionScopeStack.push(scope);
|
|
49865
|
+
}
|
|
49830
49866
|
}
|
|
49831
|
-
function popScope() {
|
|
49867
|
+
function popScope(isFunctionScope = false) {
|
|
49832
49868
|
scopeStack.pop();
|
|
49869
|
+
if (isFunctionScope) {
|
|
49870
|
+
functionScopeStack.pop();
|
|
49871
|
+
}
|
|
49833
49872
|
currentScope = scopeStack[scopeStack.length - 1] || null;
|
|
49834
49873
|
}
|
|
49835
|
-
function registerLocalBinding(id) {
|
|
49874
|
+
function registerLocalBinding(id, scope = currentScope) {
|
|
49836
49875
|
excludedIds.add(id);
|
|
49837
|
-
if (
|
|
49838
|
-
|
|
49876
|
+
if (scope) {
|
|
49877
|
+
scope[id.name] = false;
|
|
49839
49878
|
} else {
|
|
49840
49879
|
ctx.error(
|
|
49841
49880
|
"registerBinding called without active scope, something is wrong.",
|
|
@@ -49857,7 +49896,7 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
49857
49896
|
}
|
|
49858
49897
|
}
|
|
49859
49898
|
}
|
|
49860
|
-
function walkVariableDeclaration(stmt, isRoot = false) {
|
|
49899
|
+
function walkVariableDeclaration(stmt, isRoot = false, scope = stmt.kind === "var" ? functionScopeStack[functionScopeStack.length - 1] : currentScope) {
|
|
49861
49900
|
if (stmt.declare) {
|
|
49862
49901
|
return;
|
|
49863
49902
|
}
|
|
@@ -49867,11 +49906,27 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
49867
49906
|
if (isDefineProps) {
|
|
49868
49907
|
excludedIds.add(id);
|
|
49869
49908
|
} else {
|
|
49870
|
-
registerLocalBinding(id);
|
|
49909
|
+
registerLocalBinding(id, scope);
|
|
49871
49910
|
}
|
|
49872
49911
|
}
|
|
49873
49912
|
}
|
|
49874
49913
|
}
|
|
49914
|
+
function walkFunctionScopeVarDeclarations(scopeNode, isRoot = false) {
|
|
49915
|
+
const scope = functionScopeStack[functionScopeStack.length - 1];
|
|
49916
|
+
walk$2(scopeNode, {
|
|
49917
|
+
enter(node, parent) {
|
|
49918
|
+
if (parent && parent.type.startsWith("TS") && !TS_NODE_TYPES.includes(parent.type)) {
|
|
49919
|
+
return this.skip();
|
|
49920
|
+
}
|
|
49921
|
+
if (isFunctionType(node) || node.type === "ClassDeclaration" || node.type === "ClassExpression") {
|
|
49922
|
+
return this.skip();
|
|
49923
|
+
}
|
|
49924
|
+
if (node.type === "VariableDeclaration" && node.kind === "var") {
|
|
49925
|
+
walkVariableDeclaration(node, isRoot && parent === scopeNode, scope);
|
|
49926
|
+
}
|
|
49927
|
+
}
|
|
49928
|
+
});
|
|
49929
|
+
}
|
|
49875
49930
|
function rewriteId(id, parent, parentStack2) {
|
|
49876
49931
|
if (parent.type === "AssignmentExpression" && id === parent.left || parent.type === "UpdateExpression") {
|
|
49877
49932
|
ctx.error(`Cannot assign to destructured props as they are readonly.`, id);
|
|
@@ -49903,6 +49958,7 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
49903
49958
|
}
|
|
49904
49959
|
}
|
|
49905
49960
|
const ast = ctx.scriptSetupAst;
|
|
49961
|
+
walkFunctionScopeVarDeclarations(ast, true);
|
|
49906
49962
|
walkScope(ast, true);
|
|
49907
49963
|
walk$2(ast, {
|
|
49908
49964
|
enter(node, parent) {
|
|
@@ -49913,9 +49969,10 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
49913
49969
|
checkUsage(node, "watch", vueImportAliases.watch);
|
|
49914
49970
|
checkUsage(node, "toRef", vueImportAliases.toRef);
|
|
49915
49971
|
if (isFunctionType(node)) {
|
|
49916
|
-
pushScope();
|
|
49972
|
+
pushScope(true);
|
|
49917
49973
|
walkFunctionParams(node, registerLocalBinding);
|
|
49918
49974
|
if (node.body.type === "BlockStatement") {
|
|
49975
|
+
walkFunctionScopeVarDeclarations(node.body);
|
|
49919
49976
|
walkScope(node.body);
|
|
49920
49977
|
}
|
|
49921
49978
|
return;
|
|
@@ -49954,7 +50011,11 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
49954
50011
|
},
|
|
49955
50012
|
leave(node, parent) {
|
|
49956
50013
|
parent && parentStack.pop();
|
|
49957
|
-
if (
|
|
50014
|
+
if (isFunctionType(node)) {
|
|
50015
|
+
popScope(true);
|
|
50016
|
+
} else if (node.type === "BlockStatement" && !isFunctionType(parent)) {
|
|
50017
|
+
popScope();
|
|
50018
|
+
} else if (node.type === "CatchClause" || node.type === "ForOfStatement" || node.type === "ForInStatement" || node.type === "ForStatement") {
|
|
49958
50019
|
popScope();
|
|
49959
50020
|
}
|
|
49960
50021
|
}
|
|
@@ -51076,7 +51137,7 @@ var __spreadValues = (a, b) => {
|
|
|
51076
51137
|
}
|
|
51077
51138
|
return a;
|
|
51078
51139
|
};
|
|
51079
|
-
const version = "3.5.
|
|
51140
|
+
const version = "3.5.36";
|
|
51080
51141
|
const parseCache = parseCache$1;
|
|
51081
51142
|
const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
|
|
51082
51143
|
const walk = walk$2;
|