(http://beneb.info)
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/README.md" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/README.md"
new file mode 100644
index 0000000000000000000000000000000000000000..18a01c5c89df6f34d31f37e24b67e1155aedcfe0
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/README.md"
@@ -0,0 +1,49 @@
+# postcss-selector-parser [](https://travis-ci.org/postcss/postcss-selector-parser)
+
+> Selector parser with built in methods for working with selector strings.
+
+## Install
+
+With [npm](https://npmjs.com/package/postcss-selector-parser) do:
+
+```
+npm install postcss-selector-parser
+```
+
+## Quick Start
+
+```js
+const parser = require('postcss-selector-parser');
+const transform = selectors => {
+ selectors.walk(selector => {
+ // do something with the selector
+ console.log(String(selector))
+ });
+};
+
+const transformed = parser(transform).processSync('h1, h2, h3');
+```
+
+To normalize selector whitespace:
+
+```js
+const parser = require('postcss-selector-parser');
+const normalized = parser().processSync('h1, h2, h3', {lossless: false});
+// -> h1,h2,h3
+```
+
+Async support is provided through `parser.process` and will resolve a Promise
+with the resulting selector string.
+
+## API
+
+Please see [API.md](API.md).
+
+## Credits
+
+* Huge thanks to Andrey Sitnik (@ai) for work on PostCSS which helped
+ accelerate this module's development.
+
+## License
+
+MIT
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/attributes.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/attributes.js"
new file mode 100644
index 0000000000000000000000000000000000000000..800a1a7bda1cc3f8bd4c79b1c61ff9c180c30ad9
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/attributes.js"
@@ -0,0 +1,489 @@
+"use strict";
+
+var _process = _interopRequireDefault(require("process"));
+
+var _attribute = _interopRequireDefault(require("../selectors/attribute"));
+
+var _helpers = require("./util/helpers");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+_process["default"].throwDeprecation = true;
+(0, _helpers.test)('attribute selector', '[href]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'attribute');
+ t.falsy(tree.nodes[0].nodes[0].quoted);
+});
+(0, _helpers.test)('attribute selector spaces (before)', '[ href]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.attribute.before, ' ');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'attribute');
+ t.falsy(tree.nodes[0].nodes[0].quoted);
+});
+(0, _helpers.test)('attribute selector spaces (after)', '[href ]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.attribute.after, ' ');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'attribute');
+ t.falsy(tree.nodes[0].nodes[0].quoted);
+});
+(0, _helpers.test)('attribute selector spaces with namespace (both)', '[ foo|bar ]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].ns, 'foo');
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'bar');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.attribute.before, ' ');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.attribute.after, ' ');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'attribute');
+ t.falsy(tree.nodes[0].nodes[0].quoted);
+});
+(0, _helpers.test)('attribute selector spaces (both)', '[ href ]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.attribute.before, ' ');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.attribute.after, ' ');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'attribute');
+ t.falsy(tree.nodes[0].nodes[0].quoted);
+});
+(0, _helpers.test)('multiple attribute selectors', '[href][class][name]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+ t.deepEqual(tree.nodes[0].nodes[1].attribute, 'class');
+ t.deepEqual(tree.nodes[0].nodes[2].attribute, 'name');
+});
+(0, _helpers.test)('select elements with or without a namespace', '[*|href]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].namespace, '*');
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+});
+(0, _helpers.test)('namespace with escapes', '[\\31 \\#\\32 |href]', function (t, tree) {
+ var attr = tree.nodes[0].nodes[0];
+ t.deepEqual(attr.namespace, '1#2');
+ t.deepEqual(attr.raws.namespace, '\\31 \\#\\32 ');
+ attr.namespace = "foo";
+ t.deepEqual(attr.namespace, 'foo');
+ t.deepEqual(attr.raws.namespace, undefined);
+ attr.namespace = "1";
+ t.deepEqual(attr.namespace, '1');
+ t.deepEqual(attr.raws.namespace, '\\31');
+});
+(0, _helpers.test)('attribute selector with a empty value', '[href=""]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '=');
+ t.deepEqual(tree.nodes[0].nodes[0].value, '');
+ t["true"](tree.nodes[0].nodes[0].quoted);
+});
+(0, _helpers.test)('attribute selector with a value', '[name=james]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'name');
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '=');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'james');
+ t.falsy(tree.nodes[0].nodes[0].quoted);
+});
+(0, _helpers.test)('attribute selector with quoted value', '[name="james"]', function (t, tree) {
+ var attr = tree.nodes[0].nodes[0];
+ t.deepEqual(attr.attribute, 'name');
+ t.deepEqual(attr.operator, '=');
+ t.deepEqual(attr.value, 'james');
+ t.deepEqual(attr.quoteMark, '"');
+ t.truthy(attr.quoted);
+ t.deepEqual(attr.getQuotedValue(), '"james"');
+});
+(0, _helpers.test)('attribute selector with escaped quote', '[title="Something \\"weird\\""]', function (t, tree) {
+ var attr = tree.nodes[0].nodes[0];
+ t.deepEqual(attr.value, 'Something "weird"');
+ t.deepEqual(attr.getQuotedValue(), '\"Something \\"weird\\"\"');
+ t.deepEqual(attr.getQuotedValue({
+ smart: true
+ }), '\'Something "weird"\'');
+ t.deepEqual(attr.getQuotedValue({
+ quoteMark: null
+ }), 'Something\\ \\"weird\\"');
+ t.deepEqual(attr.quoteMark, '"');
+ t.truthy(attr.quoted);
+ t.deepEqual(attr.raws.value, '"Something \\"weird\\""');
+ t.deepEqual(tree.toString(), '[title="Something \\"weird\\""]');
+});
+(0, _helpers.test)('attribute selector with escaped colon', '[ng\\:cloak]', function (t, tree) {
+ t.deepEqual(tree.toString(), '[ng\\:cloak]');
+ var attr = tree.nodes[0].nodes[0];
+ t.deepEqual(attr.raws.attribute, 'ng\\:cloak');
+ t.deepEqual(attr.attribute, 'ng:cloak');
+});
+(0, _helpers.test)('attribute selector with short hex escape', '[ng\\3a cloak]', function (t, tree) {
+ t.deepEqual(tree.toString(), '[ng\\3a cloak]');
+ var attr = tree.nodes[0].nodes[0];
+ t.deepEqual(attr.raws.attribute, 'ng\\3a cloak');
+ t.deepEqual(attr.attribute, 'ng:cloak');
+});
+(0, _helpers.test)('attribute selector with hex escape', '[ng\\00003acloak]', function (t, tree) {
+ t.deepEqual(tree.toString(), '[ng\\00003acloak]');
+ var attr = tree.nodes[0].nodes[0];
+ t.deepEqual(attr.raws.attribute, 'ng\\00003acloak');
+ t.deepEqual(attr.attribute, 'ng:cloak');
+});
+(0, _helpers.test)('assign attribute name requiring escape', '[ng\\:cloak]', function (t, tree) {
+ var attr = tree.nodes[0].nodes[0];
+ attr.attribute = "ng:foo";
+ t.deepEqual(attr.raws.attribute, 'ng\\:foo');
+ t.deepEqual(attr.attribute, 'ng:foo');
+ t.deepEqual(tree.toString(), '[ng\\:foo]');
+});
+(0, _helpers.test)('multiple attribute selectors + combinator', '[href][class][name] h1 > h2', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[2].attribute, 'name');
+ t.deepEqual(tree.nodes[0].nodes[3].value, ' ');
+ t.deepEqual(tree.nodes[0].nodes[5].value, '>');
+ t.deepEqual(tree.nodes[0].nodes[6].value, 'h2');
+});
+(0, _helpers.test)('attribute, class, combinator', '[href] > h2.test', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '>');
+ t.deepEqual(tree.nodes[0].nodes[2].value, 'h2');
+ t.deepEqual(tree.nodes[0].nodes[3].value, 'test');
+});
+(0, _helpers.test)('attribute selector with quoted value & combinator', '[name="james"] > h1', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'james');
+ t.deepEqual(tree.nodes[0].nodes[0].quoteMark, '"');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '>');
+ t.deepEqual(tree.nodes[0].nodes[2].value, 'h1');
+});
+(0, _helpers.test)('multiple quoted attribute selectors', '[href*="test.com"][rel=\'external\'][id][class~="test"] > [name]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'test.com');
+ t.is(tree.nodes[0].nodes[0].quoteMark, '"');
+ t.deepEqual(tree.nodes[0].nodes[1].attribute, 'rel');
+ t.deepEqual(tree.nodes[0].nodes[1].value, 'external');
+ t.is(tree.nodes[0].nodes[1].quoteMark, "'");
+ t.deepEqual(tree.nodes[0].nodes[2].attribute, 'id');
+ t.falsy(tree.nodes[0].nodes[2].value, 'should not have a value');
+ t.is(tree.nodes[0].nodes[2].quoteMark, undefined, 'should not have a quoteMark set');
+ t.deepEqual(tree.nodes[0].nodes[3].attribute, 'class');
+ t.deepEqual(tree.nodes[0].nodes[3].value, 'test');
+ t.deepEqual(tree.nodes[0].nodes[3].quoteMark, '"');
+ t.deepEqual(tree.nodes[0].nodes[4].value, '>');
+ t.deepEqual(tree.nodes[0].nodes[5].attribute, 'name');
+ t.falsy(tree.nodes[0].nodes[5].value, 'should not have a value');
+ t.is(tree.nodes[0].nodes[5].quoteMark, undefined, 'should not have a quoteMark set');
+});
+(0, _helpers.test)('more attribute operators', '[href*=test],[href^=test],[href$=test],[href|=test]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '*=');
+ t.deepEqual(tree.nodes[1].nodes[0].operator, '^=');
+ t.deepEqual(tree.nodes[2].nodes[0].operator, '$=');
+ t.deepEqual(tree.nodes[3].nodes[0].operator, '|=');
+});
+(0, _helpers.test)('attribute selector with quoted value containing "="', '[data-weird-attr="Something=weird"]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'data-weird-attr');
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '=');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'Something=weird');
+ t.is(tree.nodes[0].nodes[0].quoteMark, '"');
+ t.deepEqual(tree.nodes[0].nodes[0].getQuotedValue(), '"Something=weird"');
+});
+var selector = '[data-weird-attr*="Something=weird"],' + '[data-weird-attr^="Something=weird"],' + '[data-weird-attr$="Something=weird"],' + '[data-weird-attr|="Something=weird"]';
+(0, _helpers.test)('more attribute selector with quoted value containing "="', selector, function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'data-weird-attr');
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '*=');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'Something=weird');
+ t.deepEqual(tree.nodes[1].nodes[0].attribute, 'data-weird-attr');
+ t.deepEqual(tree.nodes[1].nodes[0].operator, '^=');
+ t.deepEqual(tree.nodes[1].nodes[0].value, 'Something=weird');
+ t.deepEqual(tree.nodes[2].nodes[0].attribute, 'data-weird-attr');
+ t.deepEqual(tree.nodes[2].nodes[0].operator, '$=');
+ t.deepEqual(tree.nodes[2].nodes[0].value, 'Something=weird');
+ t.deepEqual(tree.nodes[3].nodes[0].attribute, 'data-weird-attr');
+ t.deepEqual(tree.nodes[3].nodes[0].operator, '|=');
+ t.deepEqual(tree.nodes[3].nodes[0].value, 'Something=weird');
+});
+(0, _helpers.test)('attribute selector with quoted value containing multiple "="', '[data-weird-attr="Something=weird SomethingElse=weirder"]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'data-weird-attr');
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '=');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'Something=weird SomethingElse=weirder');
+});
+selector = '[data-weird-attr*="Something=weird SomethingElse=weirder"],' + '[data-weird-attr^="Something=weird SomethingElse=weirder"],' + '[data-weird-attr$="Something=weird SomethingElse=weirder"],' + '[data-weird-attr|="Something=weird SomethingElse=weirder"]';
+(0, _helpers.test)('more attribute selector with quoted value containing multiple "="', selector, function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'data-weird-attr');
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '*=');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'Something=weird SomethingElse=weirder');
+ t.deepEqual(tree.nodes[1].nodes[0].attribute, 'data-weird-attr');
+ t.deepEqual(tree.nodes[1].nodes[0].operator, '^=');
+ t.deepEqual(tree.nodes[1].nodes[0].value, 'Something=weird SomethingElse=weirder');
+ t.deepEqual(tree.nodes[2].nodes[0].attribute, 'data-weird-attr');
+ t.deepEqual(tree.nodes[2].nodes[0].operator, '$=');
+ t.deepEqual(tree.nodes[2].nodes[0].value, 'Something=weird SomethingElse=weirder');
+ t.deepEqual(tree.nodes[3].nodes[0].attribute, 'data-weird-attr');
+ t.deepEqual(tree.nodes[3].nodes[0].operator, '|=');
+ t.deepEqual(tree.nodes[3].nodes[0].value, 'Something=weird SomethingElse=weirder');
+});
+(0, _helpers.test)('multiple attribute selectors with quoted value containing "="', '[data-weird-foo="foo=weird"][data-weird-bar="bar=weird"]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'data-weird-foo');
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '=');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'foo=weird');
+ t.deepEqual(tree.nodes[0].nodes[1].attribute, 'data-weird-bar');
+ t.deepEqual(tree.nodes[0].nodes[1].operator, '=');
+ t.deepEqual(tree.nodes[0].nodes[1].value, 'bar=weird');
+});
+(0, _helpers.test)('multiple attribute selectors with value containing escaped "="', '[data-weird-foo=foo\\=weird][data-weird-bar=bar\\3d weird]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'data-weird-foo');
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '=');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'foo=weird');
+ t.deepEqual(tree.nodes[0].nodes[1].attribute, 'data-weird-bar');
+ t.deepEqual(tree.nodes[0].nodes[1].operator, '=');
+ t.deepEqual(tree.nodes[0].nodes[1].value, 'bar=weird');
+});
+selector = '[data-weird-foo*="foo2=weirder"][data-weird-bar*="bar2=weirder"],' + '[data-weird-foo^="foo2=weirder"][data-weird-bar^="bar2=weirder"],' + '[data-weird-foo$="foo2=weirder"][data-weird-bar$="bar2=weirder"],' + '[data-weird-foo|="foo2=weirder"][data-weird-bar|="bar2=weirder"]';
+(0, _helpers.test)('more multiple attribute selectors with quoted value containing "="', selector, function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'data-weird-foo');
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '*=');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'foo2=weirder');
+ t.deepEqual(tree.nodes[0].nodes[1].attribute, 'data-weird-bar');
+ t.deepEqual(tree.nodes[0].nodes[1].operator, '*=');
+ t.deepEqual(tree.nodes[0].nodes[1].value, 'bar2=weirder');
+ t.deepEqual(tree.nodes[1].nodes[0].attribute, 'data-weird-foo');
+ t.deepEqual(tree.nodes[1].nodes[0].operator, '^=');
+ t.deepEqual(tree.nodes[1].nodes[0].value, 'foo2=weirder');
+ t.deepEqual(tree.nodes[1].nodes[1].attribute, 'data-weird-bar');
+ t.deepEqual(tree.nodes[1].nodes[1].operator, '^=');
+ t.deepEqual(tree.nodes[1].nodes[1].value, 'bar2=weirder');
+ t.deepEqual(tree.nodes[2].nodes[0].attribute, 'data-weird-foo');
+ t.deepEqual(tree.nodes[2].nodes[0].operator, '$=');
+ t.deepEqual(tree.nodes[2].nodes[0].value, 'foo2=weirder');
+ t.deepEqual(tree.nodes[2].nodes[1].attribute, 'data-weird-bar');
+ t.deepEqual(tree.nodes[2].nodes[1].operator, '$=');
+ t.deepEqual(tree.nodes[2].nodes[1].value, 'bar2=weirder');
+ t.deepEqual(tree.nodes[3].nodes[0].attribute, 'data-weird-foo');
+ t.deepEqual(tree.nodes[3].nodes[0].operator, '|=');
+ t.deepEqual(tree.nodes[3].nodes[0].value, 'foo2=weirder');
+ t.deepEqual(tree.nodes[3].nodes[1].attribute, 'data-weird-bar');
+ t.deepEqual(tree.nodes[3].nodes[1].operator, '|=');
+ t.deepEqual(tree.nodes[3].nodes[1].value, 'bar2=weirder');
+});
+(0, _helpers.test)('multiple attribute selectors with quoted value containing multiple "="', '[data-weird-foo="foo1=weirder foo2=weirder"][data-weird-bar="bar1=weirder bar2=weirder"]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'data-weird-foo');
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '=');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'foo1=weirder foo2=weirder');
+ t.deepEqual(tree.nodes[0].nodes[1].attribute, 'data-weird-bar');
+ t.deepEqual(tree.nodes[0].nodes[1].operator, '=');
+ t.deepEqual(tree.nodes[0].nodes[1].value, 'bar1=weirder bar2=weirder');
+});
+selector = '[data-weird-foo*="foo1=weirder foo2=weirder"][data-weird-bar*="bar1=weirder bar2=weirder"],' + '[data-weird-foo^="foo1=weirder foo2=weirder"][data-weird-bar^="bar1=weirder bar2=weirder"],' + '[data-weird-foo$="foo1=weirder foo2=weirder"][data-weird-bar$="bar1=weirder bar2=weirder"],' + '[data-weird-foo|="foo1=weirder foo2=weirder"][data-weird-bar|="bar1=weirder bar2=weirder"]';
+(0, _helpers.test)('more multiple attribute selectors with quoted value containing multiple "="', selector, function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'data-weird-foo');
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '*=');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'foo1=weirder foo2=weirder');
+ t.deepEqual(tree.nodes[0].nodes[1].attribute, 'data-weird-bar');
+ t.deepEqual(tree.nodes[0].nodes[1].operator, '*=');
+ t.deepEqual(tree.nodes[0].nodes[1].value, 'bar1=weirder bar2=weirder');
+ t.deepEqual(tree.nodes[1].nodes[0].attribute, 'data-weird-foo');
+ t.deepEqual(tree.nodes[1].nodes[0].operator, '^=');
+ t.deepEqual(tree.nodes[1].nodes[0].value, 'foo1=weirder foo2=weirder');
+ t.deepEqual(tree.nodes[1].nodes[1].attribute, 'data-weird-bar');
+ t.deepEqual(tree.nodes[1].nodes[1].operator, '^=');
+ t.deepEqual(tree.nodes[1].nodes[1].value, 'bar1=weirder bar2=weirder');
+ t.deepEqual(tree.nodes[2].nodes[0].attribute, 'data-weird-foo');
+ t.deepEqual(tree.nodes[2].nodes[0].operator, '$=');
+ t.deepEqual(tree.nodes[2].nodes[0].value, 'foo1=weirder foo2=weirder');
+ t.deepEqual(tree.nodes[2].nodes[1].attribute, 'data-weird-bar');
+ t.deepEqual(tree.nodes[2].nodes[1].operator, '$=');
+ t.deepEqual(tree.nodes[2].nodes[1].value, 'bar1=weirder bar2=weirder');
+ t.deepEqual(tree.nodes[3].nodes[0].attribute, 'data-weird-foo');
+ t.deepEqual(tree.nodes[3].nodes[0].operator, '|=');
+ t.deepEqual(tree.nodes[3].nodes[0].value, 'foo1=weirder foo2=weirder');
+ t.deepEqual(tree.nodes[3].nodes[1].attribute, 'data-weird-bar');
+ t.deepEqual(tree.nodes[3].nodes[1].operator, '|=');
+ t.deepEqual(tree.nodes[3].nodes[1].value, 'bar1=weirder bar2=weirder');
+});
+(0, _helpers.test)('spaces in attribute selectors', 'h1[ href *= "test" ]', function (t, tree) {
+ var attr = tree.nodes[0].nodes[1];
+ t.deepEqual(attr.attribute, 'href');
+ t.deepEqual(attr.spaces.attribute.before, ' ');
+ t.deepEqual(attr.spaces.attribute.after, ' ');
+ t.deepEqual(attr.operator, '*=');
+ t.deepEqual(attr.spaces.operator.after, ' ');
+ t.deepEqual(attr.value, 'test');
+ t.deepEqual(attr.spaces.value.after, ' ');
+ t.truthy(tree.nodes[0].nodes[1].quoted);
+});
+(0, _helpers.test)('insensitive attribute selector 1', '[href="test" i]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'test');
+ t.deepEqual(tree.nodes[0].nodes[0].insensitive, true);
+ t.deepEqual(tree.nodes[0].nodes[0].insensitive, true);
+});
+(0, _helpers.test)('insensitive attribute selector with a empty value', '[href="" i]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '=');
+ t.deepEqual(tree.nodes[0].nodes[0].value, '');
+ t.deepEqual(tree.nodes[0].nodes[0].insensitive, true);
+ t["true"](tree.nodes[0].nodes[0].quoted);
+});
+(0, _helpers.test)('insensitive attribute selector 2', '[href=TEsT i ]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'TEsT');
+ t.deepEqual(tree.nodes[0].nodes[0].insensitive, true);
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.value.after, ' ');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.insensitive.after, ' ');
+});
+(0, _helpers.test)('insensitive attribute selector 3', '[href=test i]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'test');
+ t.deepEqual(tree.nodes[0].nodes[0].insensitive, true);
+});
+(0, _helpers.test)('capitalized insensitive attribute selector 3', '[href=test I]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'test');
+ t.deepEqual(tree.nodes[0].nodes[0].insensitive, true);
+});
+(0, _helpers.test)('extraneous non-combinating whitespace', ' [href] , [class] ', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.before, ' ');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.after, ' ');
+ t.deepEqual(tree.nodes[1].nodes[0].attribute, 'class');
+ t.deepEqual(tree.nodes[1].nodes[0].spaces.before, ' ');
+ t.deepEqual(tree.nodes[1].nodes[0].spaces.after, ' ');
+});
+(0, _helpers.test)('newline in attribute selector', '[class="woop \\\nwoop woop"]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '=');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'woop \nwoop woop');
+ t["true"](tree.nodes[0].nodes[0].quoted);
+});
+(0, _helpers.test)('comments within attribute selectors', '[href/* wow */=/* wow */test]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '=');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'test');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.attribute, 'href/* wow */');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.operator, '=/* wow */');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'test');
+});
+(0, _helpers.test)('comments within attribute selectors (2)', '[/* wow */href=test/* wow */]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '=');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'test');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.spaces.attribute.before, '/* wow */');
+ t.deepEqual(tree.nodes[0].nodes[0].operator, '=');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'test/* wow */');
+});
+(0, _helpers.test)('comments within attribute selectors (3)', '[href=test/* wow */i]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'testi');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'test/* wow */i');
+ t.falsy(tree.nodes[0].nodes[0].insensitive);
+});
+(0, _helpers.test)('comments within attribute selectors (4)', '[ /*before*/ href /* after-attr */ = /* after-operator */ te/*inside-value*/st/* wow */ /*omg*/i/*bbq*/ /*whodoesthis*/]', function (t, tree) {
+ var attr = tree.nodes[0].nodes[0];
+ t.deepEqual(attr.attribute, 'href');
+ t.deepEqual(attr.value, 'test');
+ t.deepEqual(attr.getQuotedValue(), 'test');
+ t.deepEqual(attr.raws.value, 'te/*inside-value*/st');
+ t.deepEqual(attr.raws.spaces.value.after, '/* wow */ /*omg*/');
+ t.truthy(attr.insensitive);
+ t.deepEqual(attr.offsetOf("attribute"), 13);
+ t.deepEqual(attr.offsetOf("operator"), 35);
+ t.deepEqual(attr.offsetOf("insensitive"), 95);
+ t.deepEqual(attr.raws.spaces.insensitive.after, '/*bbq*/ /*whodoesthis*/');
+ attr.value = "foo";
+ t.is(attr.raws.value, undefined);
+});
+(0, _helpers.test)('non standard modifiers', '[href="foo" y]', function (t, tree) {
+ var attr = tree.atPosition(1, 13);
+ t.deepEqual(attr.insensitive, false);
+ t.deepEqual(attr.insensitiveFlag, '');
+ t.deepEqual(attr.raws.insensitiveFlag, 'y');
+ t.deepEqual(tree.toString(), '[href="foo" y]');
+});
+(0, _helpers.test)('comment after insensitive(non space)', '[href="foo" i/**/]', function (t, tree) {
+ // https://github.com/postcss/postcss-selector-parser/issues/150
+ var attr = tree.atPosition(1, 13);
+ t.deepEqual(attr.insensitive, true);
+ t.deepEqual(attr.insensitiveFlag, 'i');
+ t.is(attr.raws.insensitiveFlag, undefined);
+ t.deepEqual(attr.raws.spaces.insensitive.after, '/**/');
+ t.deepEqual(tree.toString(), '[href="foo" i/**/]');
+});
+(0, _helpers.test)('comment after insensitive(space after)', '[href="foo" i/**/ ]', function (t, tree) {
+ var attr = tree.atPosition(1, 13);
+ t.deepEqual(attr.insensitive, true);
+ t.deepEqual(attr.insensitiveFlag, 'i');
+ t.deepEqual(attr.raws.spaces.insensitive.after, '/**/ ');
+ t.deepEqual(tree.toString(), '[href="foo" i/**/ ]');
+});
+(0, _helpers.test)('comment after insensitive(space before)', '[href="foo" i /**/]', function (t, tree) {
+ var attr = tree.atPosition(1, 13);
+ t.deepEqual(attr.insensitive, true);
+ t.deepEqual(attr.insensitiveFlag, 'i');
+ t.deepEqual(attr.raws.spaces.insensitive.after, ' /**/');
+ t.deepEqual(tree.toString(), '[href="foo" i /**/]');
+});
+var testDeprecation = (0, _helpers.nodeVersionAtLeast)('7.0.0') || (0, _helpers.nodeVersionBefore)('6.0.0') ? _helpers.test : _helpers.test.skip;
+testDeprecation('deprecated constructor', '', function (t) {
+ t["throws"](function () {
+ return new _attribute["default"]({
+ value: '"foo"',
+ attribute: "data-bar"
+ });
+ }, {
+ message: "Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now."
+ });
+});
+testDeprecation('deprecated get of raws.unquoted ', '', function (t) {
+ t["throws"](function () {
+ var attr = new _attribute["default"]({
+ value: 'foo',
+ quoteMark: '"',
+ attribute: "data-bar"
+ });
+ return attr.raws.unquoted;
+ }, {
+ message: "attr.raws.unquoted is deprecated. Call attr.value instead."
+ });
+});
+testDeprecation('deprecated set of raws.unquoted ', '', function (t) {
+ t["throws"](function () {
+ var attr = new _attribute["default"]({
+ value: 'foo',
+ quoteMark: '"',
+ attribute: "data-bar"
+ });
+ attr.raws.unquoted = 'fooooo';
+ }, {
+ message: "Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now."
+ });
+});
+testDeprecation('smart quotes', '[data-foo=bar]', function (t, tree) {
+ var attr = tree.nodes[0].nodes[0];
+ attr.setValue('changed', {
+ quoteMark: '"'
+ });
+ t.deepEqual(attr.toString(), '[data-foo="changed"]');
+ attr.setValue('changed again', {
+ quoteMark: "'",
+ preferCurrentQuoteMark: true
+ });
+ t.deepEqual(attr.toString(), '[data-foo="changed again"]');
+ attr.setValue('smart-ident', {
+ smart: true
+ });
+ t.deepEqual(attr.toString(), '[data-foo=smart-ident]');
+ attr.setValue('smart quoted', {
+ smart: true
+ });
+ t.deepEqual(attr.toString(), '[data-foo=smart\\ quoted]');
+ attr.setValue('smart quoted three spaces', {
+ smart: true
+ });
+ t.deepEqual(attr.toString(), '[data-foo="smart quoted three spaces"]');
+ attr.setValue('smart quoted three spaces', {
+ smart: true,
+ quoteMark: "'"
+ });
+ t.deepEqual(attr.toString(), "[data-foo='smart quoted three spaces']");
+ attr.setValue("smart with 'single quotes'", {
+ smart: true
+ });
+ t.deepEqual(attr.toString(), "[data-foo=\"smart with 'single quotes'\"]");
+ attr.setValue('smart with "double quotes"', {
+ smart: true
+ });
+ t.deepEqual(attr.toString(), "[data-foo='smart with \"double quotes\"']");
+});
+testDeprecation('set Attribute#quoteMark', '[data-foo=bar]', function (t, tree) {
+ var attr = tree.nodes[0].nodes[0];
+ attr.quoteMark = '"';
+ t.deepEqual(attr.toString(), '[data-foo="bar"]');
+ attr.quoteMark = "'";
+ t.deepEqual(attr.toString(), "[data-foo='bar']");
+ attr.quoteMark = null;
+ t.deepEqual(attr.toString(), "[data-foo=bar]");
+ attr.value = "has space";
+ t.deepEqual(attr.toString(), "[data-foo=has\\ space]");
+ attr.quoteMark = '"';
+ t.deepEqual(attr.toString(), '[data-foo="has space"]');
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/classes.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/classes.js"
new file mode 100644
index 0000000000000000000000000000000000000000..28526a5ed094e6f137ac2eaf2b47718d34491245
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/classes.js"
@@ -0,0 +1,226 @@
+"use strict";
+
+var _helpers = require("./util/helpers");
+
+(0, _helpers.test)('class name', '.one', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'one');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+});
+(0, _helpers.test)('multiple class names', '.one.two.three', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'one');
+ t.deepEqual(tree.nodes[0].nodes[1].value, 'two');
+ t.deepEqual(tree.nodes[0].nodes[2].value, 'three');
+});
+(0, _helpers.test)('qualified class', 'button.btn-primary', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'class');
+});
+(0, _helpers.test)('escaped numbers in class name', '.\\31\\ 0', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].value, '1 0');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\31\\ 0');
+});
+(0, _helpers.test)('extraneous non-combinating whitespace', ' .h1 , .h2 ', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h1');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.before, ' ');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.after, ' ');
+ t.deepEqual(tree.nodes[1].nodes[0].value, 'h2');
+ t.deepEqual(tree.nodes[1].nodes[0].spaces.before, ' ');
+ t.deepEqual(tree.nodes[1].nodes[0].spaces.after, ' ');
+});
+(0, _helpers.test)('Less interpolation within a class', '.foo@{bar}', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes.length, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'foo@{bar}');
+});
+(0, _helpers.test)('ClassName#set value', ".fo\\o", function (t, selectors) {
+ var className = selectors.first.first;
+ t.deepEqual(className.raws, {
+ value: "fo\\o"
+ });
+ className.value = "bar";
+ t.deepEqual(className.raws, {});
+});
+(0, _helpers.test)('escaped dot in class name', '.foo\\.bar', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'foo.bar');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'foo\\.bar');
+});
+(0, _helpers.test)('class selector with escaping', '.♥', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '♥');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+});
+(0, _helpers.test)('class selector with escaping (1)', '.©', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '©');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+});
+(0, _helpers.test)('class selector with escaping (2)', '.“‘’”', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '“‘’”');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+});
+(0, _helpers.test)('class selector with escaping (3)', '.☺☃', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '☺☃');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+});
+(0, _helpers.test)('class selector with escaping (4)', '.⌘⌥', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '⌘⌥');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+});
+(0, _helpers.test)('class selector with escaping (5)', '.𝄞♪♩♫♬', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '𝄞♪♩♫♬');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+});
+(0, _helpers.test)('class selector with escaping (6)', '.💩', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '💩');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+});
+(0, _helpers.test)('class selector with escaping (7)', '.\\?', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '?');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\?');
+});
+(0, _helpers.test)('class selector with escaping (8)', '.\\@', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '@');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\@');
+});
+(0, _helpers.test)('class selector with escaping (9)', '.\\.', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '.');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\.');
+});
+(0, _helpers.test)('class selector with escaping (10)', '.\\3A \\)', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, ':)');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\3A \\)');
+});
+(0, _helpers.test)('class selector with escaping (11)', '.\\3A \\`\\(', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, ':`(');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\3A \\`\\(');
+});
+(0, _helpers.test)('class selector with escaping (12)', '.\\31 23', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '123');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\31 23');
+});
+(0, _helpers.test)('class selector with escaping (13)', '.\\31 a2b3c', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '1a2b3c');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\31 a2b3c');
+});
+(0, _helpers.test)('class selector with escaping (14)', '.\\', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '
');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\
');
+});
+(0, _helpers.test)('class selector with escaping (15)', '.\\<\\>\\<\\<\\<\\>\\>\\<\\>', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '<><<<>><>');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\<\\>\\<\\<\\<\\>\\>\\<\\>');
+});
+(0, _helpers.test)('class selector with escaping (16)', '.\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\[\\>\\+\\+\\+\\+\\+\\+\\+\\>\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\>\\+\\+\\+\\>\\+\\<\\<\\<\\<\\-\\]\\>\\+\\+\\.\\>\\+\\.\\+\\+\\+\\+\\+\\+\\+\\.\\.\\+\\+\\+\\.\\>\\+\\+\\.\\<\\<\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\.\\>\\.\\+\\+\\+\\.\\-\\-\\-\\-\\-\\-\\.\\-\\-\\-\\-\\-\\-\\-\\-\\.\\>\\+\\.\\>\\.', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\[\\>\\+\\+\\+\\+\\+\\+\\+\\>\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\>\\+\\+\\+\\>\\+\\<\\<\\<\\<\\-\\]\\>\\+\\+\\.\\>\\+\\.\\+\\+\\+\\+\\+\\+\\+\\.\\.\\+\\+\\+\\.\\>\\+\\+\\.\\<\\<\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\.\\>\\.\\+\\+\\+\\.\\-\\-\\-\\-\\-\\-\\.\\-\\-\\-\\-\\-\\-\\-\\-\\.\\>\\+\\.\\>\\.');
+});
+(0, _helpers.test)('class selector with escaping (17)', '.\\#', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '#');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\#');
+});
+(0, _helpers.test)('class selector with escaping (18)', '.\\#\\#', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '##');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\#\\#');
+});
+(0, _helpers.test)('class selector with escaping (19)', '.\\#\\.\\#\\.\\#', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '#.#.#');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\#\\.\\#\\.\\#');
+});
+(0, _helpers.test)('class selector with escaping (20)', '.\\_', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '_');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\_');
+});
+(0, _helpers.test)('class selector with escaping (21)', '.\\{\\}', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '{}');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\{\\}');
+});
+(0, _helpers.test)('class selector with escaping (22)', '.\\#fake\\-id', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '#fake-id');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\#fake\\-id');
+});
+(0, _helpers.test)('class selector with escaping (23)', '.foo\\.bar', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'foo.bar');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'foo\\.bar');
+});
+(0, _helpers.test)('class selector with escaping (24)', '.\\3A hover', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, ':hover');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\3A hover');
+});
+(0, _helpers.test)('class selector with escaping (25)', '.\\3A hover\\3A focus\\3A active', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, ':hover:focus:active');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\3A hover\\3A focus\\3A active');
+});
+(0, _helpers.test)('class selector with escaping (26)', '.\\[attr\\=value\\]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '[attr=value]');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\[attr\\=value\\]');
+});
+(0, _helpers.test)('class selector with escaping (27)', '.f\\/o\\/o', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'f/o/o');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'f\\/o\\/o');
+});
+(0, _helpers.test)('class selector with escaping (28)', '.f\\\\o\\\\o', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'f\\o\\o');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'f\\\\o\\\\o');
+});
+(0, _helpers.test)('class selector with escaping (29)', '.f\\*o\\*o', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'f*o*o');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'f\\*o\\*o');
+});
+(0, _helpers.test)('class selector with escaping (30)', '.f\\!o\\!o', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'f!o!o');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'f\\!o\\!o');
+});
+(0, _helpers.test)('class selector with escaping (31)', '.f\\\'o\\\'o', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'f\'o\'o');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'f\\\'o\\\'o');
+});
+(0, _helpers.test)('class selector with escaping (32)', '.f\\~o\\~o', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'f~o~o');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'f\\~o\\~o');
+});
+(0, _helpers.test)('class selector with escaping (33)', '.f\\+o\\+o', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'f+o+o');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'f\\+o\\+o');
+});
+(0, _helpers.test)('class selector with escaping (34)', '.\\1D306', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '𝌆');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\1D306');
+});
+(0, _helpers.test)('class selector with escaping (35)', '.not-pseudo\\:focus', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'not-pseudo:focus');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'not-pseudo\\:focus');
+});
+(0, _helpers.test)('class selector with escaping (36)', '.not-pseudo\\:\\:focus', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'not-pseudo::focus');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'not-pseudo\\:\\:focus');
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/combinators.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/combinators.js"
new file mode 100644
index 0000000000000000000000000000000000000000..93de971f1aaf8bc3b3d63568dc79d0109d66f522
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/combinators.js"
@@ -0,0 +1,148 @@
+"use strict";
+
+var _types = require("../selectors/types");
+
+var _helpers = require("./util/helpers");
+
+(0, _helpers.test)('multiple combinating spaces', 'h1 h2', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h1');
+ t.deepEqual(tree.nodes[0].nodes[1].value, ' ');
+ t.deepEqual(tree.nodes[0].nodes[1].toString(), ' ');
+ t.deepEqual(tree.nodes[0].nodes[2].value, 'h2');
+});
+(0, _helpers.test)('column combinator', '.selected||td', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'selected');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '||');
+ t.deepEqual(tree.nodes[0].nodes[2].value, 'td');
+});
+(0, _helpers.test)('column combinator (2)', '.selected || td', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'selected');
+ t.deepEqual(tree.nodes[0].nodes[1].spaces.before, ' ');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '||');
+ t.deepEqual(tree.nodes[0].nodes[1].spaces.after, ' ');
+ t.deepEqual(tree.nodes[0].nodes[2].value, 'td');
+});
+(0, _helpers.test)('descendant combinator', 'h1 h2', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h1');
+ t.deepEqual(tree.nodes[0].nodes[1].value, ' ');
+ t.deepEqual(tree.nodes[0].nodes[2].value, 'h2');
+});
+(0, _helpers.test)('multiple descendant combinators', 'h1 h2 h3 h4', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].value, ' ', 'should have a combinator');
+ t.deepEqual(tree.nodes[0].nodes[3].value, ' ', 'should have a combinator');
+ t.deepEqual(tree.nodes[0].nodes[5].value, ' ', 'should have a combinator');
+});
+(0, _helpers.test)('adjacent sibling combinator', 'h1~h2', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h1');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '~');
+ t.deepEqual(tree.nodes[0].nodes[2].value, 'h2');
+});
+(0, _helpers.test)('adjacent sibling combinator (2)', 'h1 ~h2', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h1');
+ t.deepEqual(tree.nodes[0].nodes[1].spaces.before, ' ');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '~');
+ t.deepEqual(tree.nodes[0].nodes[2].value, 'h2');
+});
+(0, _helpers.test)('adjacent sibling combinator (3)', 'h1~ h2', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h1');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '~');
+ t.deepEqual(tree.nodes[0].nodes[1].spaces.after, ' ');
+ t.deepEqual(tree.nodes[0].nodes[2].value, 'h2');
+});
+(0, _helpers.test)('adjacent sibling combinator (4)', 'h1 ~ h2', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h1');
+ t.deepEqual(tree.nodes[0].nodes[1].spaces.before, ' ');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '~');
+ t.deepEqual(tree.nodes[0].nodes[1].spaces.after, ' ');
+ t.deepEqual(tree.nodes[0].nodes[2].value, 'h2');
+});
+(0, _helpers.test)('adjacent sibling combinator (5)', 'h1~h2~h3', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h1');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '~');
+ t.deepEqual(tree.nodes[0].nodes[2].value, 'h2');
+ t.deepEqual(tree.nodes[0].nodes[3].value, '~');
+ t.deepEqual(tree.nodes[0].nodes[4].value, 'h3');
+});
+(0, _helpers.test)('piercing combinator', '.a >>> .b', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'a');
+ t.deepEqual(tree.nodes[0].nodes[1].spaces.before, ' ');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '>>>');
+ t.deepEqual(tree.nodes[0].nodes[1].spaces.after, ' ');
+ t.deepEqual(tree.nodes[0].nodes[2].value, 'b');
+});
+(0, _helpers.test)('named combinators', 'a /deep/ b', function (t, tree) {
+ var nodes = tree.nodes[0].nodes;
+ t.deepEqual(nodes[0].value, 'a');
+ t.deepEqual(nodes[1].type, _types.COMBINATOR);
+ t.deepEqual(nodes[1].toString(), ' /deep/ ');
+ t.deepEqual(nodes[1].value, '/deep/');
+ t.deepEqual(nodes[2].value, 'b');
+});
+(0, _helpers.test)('named combinators with escapes', 'a /dee\\p/ b', function (t, tree) {
+ var nodes = tree.nodes[0].nodes;
+ t.deepEqual(nodes[0].value, 'a');
+ t.deepEqual(nodes[1].type, _types.COMBINATOR);
+ t.deepEqual(nodes[1].toString(), ' /dee\\p/ ');
+ t.deepEqual(nodes[1].value, '/deep/');
+ t.deepEqual(nodes[2].value, 'b');
+});
+(0, _helpers.test)('named combinators with escapes and uppercase', 'a /DeE\\p/ b', function (t, tree) {
+ var nodes = tree.nodes[0].nodes;
+ t.deepEqual(nodes[0].value, 'a');
+ t.deepEqual(nodes[1].type, _types.COMBINATOR);
+ t.deepEqual(nodes[1].toString(), ' /DeE\\p/ ');
+ t.deepEqual(nodes[1].value, '/deep/');
+ t.deepEqual(nodes[2].value, 'b');
+});
+(0, _helpers.test)('multiple combinators', 'h1~h2>h3', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].value, '~', 'should have a combinator');
+ t.deepEqual(tree.nodes[0].nodes[3].value, '>', 'should have a combinator');
+});
+(0, _helpers.test)('multiple combinators with whitespaces', 'h1 + h2 > h3', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].value, '+', 'should have a combinator');
+ t.deepEqual(tree.nodes[0].nodes[3].value, '>', 'should have a combinator');
+});
+(0, _helpers.test)('multiple combinators with whitespaces (2)', 'h1+ h2 >h3', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].value, '+', 'should have a combinator');
+ t.deepEqual(tree.nodes[0].nodes[3].value, '>', 'should have a combinator');
+});
+(0, _helpers.test)('trailing combinator & spaces', 'p + ', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'p', 'should be a paragraph');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '+', 'should have a combinator');
+});
+(0, _helpers.test)('trailing sibling combinator', 'p ~', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'p', 'should be a paragraph');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '~', 'should have a combinator');
+});
+(0, _helpers.test)('ending in comment has no trailing combinator', ".bar /* comment 3 */", function (t, tree) {
+ var nodeTypes = tree.nodes[0].map(function (n) {
+ return n.type;
+ });
+ t.deepEqual(nodeTypes, ["class"]);
+});
+(0, _helpers.test)('The combinating space is not a space character', ".bar\n.baz", function (t, tree) {
+ var nodeTypes = tree.nodes[0].map(function (n) {
+ return n.type;
+ });
+ t.deepEqual(nodeTypes, ["class", "combinator", "class"]);
+ t.deepEqual(tree.nodes[0].nodes[1].value, ' ', 'should have a combinator');
+ t.deepEqual(tree.nodes[0].nodes[1].raws.value, '\n', 'should have a raw combinator value');
+});
+(0, _helpers.test)('with spaces and a comment has only one combinator', ".bar /* comment 3 */ > .foo", function (t, tree) {
+ var nodeTypes = tree.nodes[0].map(function (n) {
+ return n.type;
+ });
+ t.deepEqual(nodeTypes, ["class", "combinator", "class"]);
+});
+(0, _helpers.test)('with a meaningful comment in the middle of a compound selector', "div/* wtf */.foo", function (t, tree) {
+ var nodeTypes = tree.nodes[0].map(function (n) {
+ return n.type;
+ });
+ t.deepEqual(nodeTypes, ["tag", "comment", "class"]);
+});
+(0, _helpers.test)('with a comment in the middle of a descendant selector', "div/* wtf */ .foo", function (t, tree) {
+ var nodeTypes = tree.nodes[0].map(function (n) {
+ return n.type;
+ });
+ t.deepEqual(nodeTypes, ["tag", "comment", "combinator", "class"]);
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/comments.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/comments.js"
new file mode 100644
index 0000000000000000000000000000000000000000..d317e8a9a20c868c052213530591aca18be2115e
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/comments.js"
@@ -0,0 +1,81 @@
+"use strict";
+
+var _helpers = require("./util/helpers");
+
+(0, _helpers.test)('comments', '/*test comment*/h2', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '/*test comment*/');
+ t.deepEqual(tree.nodes[0].nodes[1].value, 'h2');
+});
+(0, _helpers.test)('comments (2)', '.a /*test comment*/label', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'combinator');
+ t.deepEqual(tree.nodes[0].nodes[1].value, ' ');
+ t.deepEqual(tree.nodes[0].nodes[1].spaces.after, ' ');
+ t.deepEqual(tree.nodes[0].nodes[1].rawSpaceAfter, ' /*test comment*/');
+ t.deepEqual(tree.nodes[0].nodes[2].type, 'tag');
+});
+(0, _helpers.test)('comments (3)', '.a /*test comment*/ label', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'combinator');
+ t.deepEqual(tree.nodes[0].nodes[1].value, ' ');
+ t.deepEqual(tree.nodes[0].nodes[1].spaces.before, ' ');
+ t.deepEqual(tree.nodes[0].nodes[1].rawSpaceBefore, ' /*test comment*/ ');
+ t.deepEqual(tree.nodes[0].nodes[2].type, 'tag');
+});
+(0, _helpers.test)('multiple comments and other things', 'h1/*test*/h2/*test*/.test/*test*/', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag', 'should have a tag');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'comment', 'should have a comment');
+ t.deepEqual(tree.nodes[0].nodes[2].type, 'tag', 'should have a tag');
+ t.deepEqual(tree.nodes[0].nodes[3].type, 'comment', 'should have a comment');
+ t.deepEqual(tree.nodes[0].nodes[4].type, 'class', 'should have a class name');
+ t.deepEqual(tree.nodes[0].nodes[5].type, 'comment', 'should have a comment');
+});
+(0, _helpers.test)('ending in comment', ".bar /* comment 3 */", function (t, tree) {
+ var classname = tree.nodes[0].nodes[0];
+ t.deepEqual(classname.type, 'class', 'should have a tag');
+ t.deepEqual(classname.spaces.after, ' ');
+ t.deepEqual(classname.raws.spaces.after, ' /* comment 3 */');
+});
+(0, _helpers.test)('comments in selector list', 'h2, /*test*/ h4', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h2');
+ t.deepEqual(tree.nodes[1].nodes[0].rawSpaceBefore, ' ');
+ t.deepEqual(tree.nodes[1].nodes[0].type, 'comment');
+ t.deepEqual(tree.nodes[1].nodes[0].value, '/*test*/');
+ t.deepEqual(tree.nodes[1].nodes[1].rawSpaceBefore, ' ');
+ t.deepEqual(tree.nodes[1].nodes[1].type, 'tag');
+ t.deepEqual(tree.nodes[1].nodes[1].value, 'h4');
+});
+(0, _helpers.test)('comments in selector list (2)', 'h2,/*test*/h4', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h2');
+ t.deepEqual(tree.nodes[1].nodes[0].rawSpaceBefore, '');
+ t.deepEqual(tree.nodes[1].nodes[0].type, 'comment');
+ t.deepEqual(tree.nodes[1].nodes[0].value, '/*test*/');
+ t.deepEqual(tree.nodes[1].nodes[1].type, 'tag');
+ t.deepEqual(tree.nodes[1].nodes[1].value, 'h4');
+ t.deepEqual(tree.nodes[1].nodes[1].rawSpaceBefore, '');
+});
+(0, _helpers.test)('comments in selector list (3)', 'h2/*test*/, h4', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h2');
+ t.deepEqual(tree.nodes[0].nodes[1].rawSpaceBefore, '');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'comment');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '/*test*/');
+ t.deepEqual(tree.nodes[1].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[1].nodes[0].value, 'h4');
+ t.deepEqual(tree.nodes[1].nodes[0].rawSpaceBefore, ' ');
+});
+(0, _helpers.test)('comments in selector list (4)', 'h2, /*test*/ /*test*/ h4', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h2');
+ t.deepEqual(tree.nodes[1].nodes[0].rawSpaceBefore, ' ');
+ t.deepEqual(tree.nodes[1].nodes[0].type, 'comment');
+ t.deepEqual(tree.nodes[1].nodes[0].value, '/*test*/');
+ t.deepEqual(tree.nodes[1].nodes[1].rawSpaceBefore, ' ');
+ t.deepEqual(tree.nodes[1].nodes[1].type, 'comment');
+ t.deepEqual(tree.nodes[1].nodes[1].value, '/*test*/');
+ t.deepEqual(tree.nodes[1].nodes[2].rawSpaceBefore, ' ');
+ t.deepEqual(tree.nodes[1].nodes[2].type, 'tag');
+ t.deepEqual(tree.nodes[1].nodes[2].value, 'h4');
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/container.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/container.js"
new file mode 100644
index 0000000000000000000000000000000000000000..6a99e9c19cba294d5b580b689e50c7db2150e9e0
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/container.js"
@@ -0,0 +1,393 @@
+"use strict";
+
+var _ava = _interopRequireDefault(require("ava"));
+
+var _ = _interopRequireDefault(require(".."));
+
+var _helpers = require("./util/helpers");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+(0, _ava["default"])('container#append', function (t) {
+ var out = (0, _helpers.parse)('h1', function (selectors) {
+ var selector = selectors.first;
+ var clone = selector.first.clone({
+ value: 'h2'
+ });
+ selectors.append(clone);
+ });
+ t.deepEqual(out, 'h1,h2');
+});
+(0, _ava["default"])('container#prepend', function (t) {
+ var out = (0, _helpers.parse)('h2', function (selectors) {
+ var selector = selectors.first;
+ var clone = selector.first.clone({
+ value: 'h1'
+ });
+ selectors.prepend(clone);
+ });
+ t.deepEqual(out, 'h1,h2');
+});
+(0, _ava["default"])('container#each', function (t) {
+ var str = '';
+ (0, _helpers.parse)('h1, h2:not(h3, h4)', function (selectors) {
+ selectors.each(function (selector) {
+ if (selector.first.type === 'tag') {
+ str += selector.first.value;
+ }
+ });
+ });
+ t.deepEqual(str, 'h1h2');
+});
+(0, _ava["default"])('container#each (safe iteration)', function (t) {
+ var out = (0, _helpers.parse)('.x, .y', function (selectors) {
+ selectors.each(function (selector) {
+ selector.parent.insertBefore(selector, _["default"].className({
+ value: 'b'
+ }));
+ selector.parent.insertAfter(selector, _["default"].className({
+ value: 'a'
+ }));
+ });
+ });
+ t.deepEqual(out, '.b,.x,.a,.b, .y,.a');
+});
+(0, _ava["default"])('container#each (early exit)', function (t) {
+ var str = '';
+ (0, _helpers.parse)('h1, h2, h3, h4', function (selectors) {
+ var eachReturn = selectors.each(function (selector) {
+ var tag = selector.first.value;
+ str += tag;
+ return tag !== 'h2';
+ });
+ t["false"](eachReturn);
+ });
+ t.deepEqual(str, 'h1h2');
+});
+(0, _ava["default"])('container#walk', function (t) {
+ var str = '';
+ (0, _helpers.parse)('h1, h2:not(h3, h4)', function (selectors) {
+ selectors.walk(function (selector) {
+ if (selector.type === 'tag') {
+ str += selector.value;
+ }
+ });
+ });
+ t.deepEqual(str, 'h1h2h3h4');
+});
+(0, _ava["default"])('container#walk (safe iteration)', function (t) {
+ var out = (0, _helpers.parse)('[class] + *[href] *:not(*.green)', function (selectors) {
+ selectors.walkUniversals(function (selector) {
+ var next = selector.next();
+
+ if (next && next.type !== 'combinator') {
+ selector.remove();
+ }
+ });
+ });
+ t.deepEqual(out, '[class] + [href] :not(.green)');
+});
+(0, _ava["default"])('container#walk (early exit)', function (t) {
+ var str = '';
+ (0, _helpers.parse)('h1, h2:not(h3, h4)', function (selectors) {
+ var walkReturn = selectors.walk(function (selector) {
+ if (selector.type === 'tag') {
+ var tag = selector.value;
+ str += tag;
+ return tag !== 'h3';
+ }
+ });
+ t["false"](walkReturn);
+ });
+ t.deepEqual(str, 'h1h2h3');
+});
+(0, _ava["default"])('container#walkAttribute', function (t) {
+ var out = (0, _helpers.parse)('[href][class].class', function (selectors) {
+ selectors.walkAttributes(function (attr) {
+ if (attr.attribute === 'class') {
+ attr.remove();
+ }
+ });
+ });
+ t.deepEqual(out, '[href].class');
+});
+(0, _ava["default"])('container#walkClass', function (t) {
+ var out = (0, _helpers.parse)('.one, .two, .three:not(.four, .five)', function (selectors) {
+ selectors.walkClasses(function (className) {
+ className.value = className.value.slice(0, 1);
+ });
+ });
+ t.deepEqual(out, '.o, .t, .t:not(.f, .f)');
+});
+(0, _ava["default"])('container#walkCombinator', function (t) {
+ var out = (0, _helpers.parse)('h1 h2 h3 h4', function (selectors) {
+ selectors.walkCombinators(function (comment) {
+ comment.remove();
+ });
+ });
+ t.deepEqual(out, 'h1h2h3h4');
+});
+(0, _ava["default"])('container#walkComment', function (t) {
+ var out = (0, _helpers.parse)('.one/*test*/.two', function (selectors) {
+ selectors.walkComments(function (comment) {
+ comment.remove();
+ });
+ });
+ t.deepEqual(out, '.one.two');
+});
+(0, _ava["default"])('container#walkId', function (t) {
+ var out = (0, _helpers.parse)('h1#one, h2#two', function (selectors) {
+ selectors.walkIds(function (id) {
+ id.value = id.value.slice(0, 1);
+ });
+ });
+ t.deepEqual(out, 'h1#o, h2#t');
+});
+(0, _ava["default"])('container#walkNesting', function (t) {
+ var out = (0, _helpers.parse)('& h1', function (selectors) {
+ selectors.walkNesting(function (node) {
+ node.replaceWith(_["default"].tag({
+ value: 'body'
+ }));
+ });
+ });
+ t.deepEqual(out, 'body h1');
+});
+(0, _ava["default"])('container#walkPseudo', function (t) {
+ var out = (0, _helpers.parse)('a:before, a:after', function (selectors) {
+ selectors.walkPseudos(function (pseudo) {
+ pseudo.value = pseudo.value.slice(0, 2);
+ });
+ });
+ t.deepEqual(out, 'a:b, a:a');
+});
+(0, _ava["default"])('container#walkTag', function (t) {
+ var out = (0, _helpers.parse)('1 2 3', function (selectors) {
+ selectors.walkTags(function (tag) {
+ tag.value = 'h' + tag.value;
+ });
+ });
+ t.deepEqual(out, 'h1 h2 h3');
+});
+(0, _ava["default"])('container#walkUniversal', function (t) {
+ var out = (0, _helpers.parse)('*.class,*.class,*.class', function (selectors) {
+ selectors.walkUniversals(function (universal) {
+ universal.remove();
+ });
+ });
+ t.deepEqual(out, '.class,.class,.class');
+});
+(0, _ava["default"])('container#map', function (t) {
+ (0, _helpers.parse)('1 2 3', function (selectors) {
+ var arr = selectors.first.map(function (selector) {
+ if (/[0-9]/.test(selector.value)) {
+ return 'h' + selector.value;
+ }
+
+ return selector.value;
+ });
+ t.deepEqual(arr, ['h1', ' ', 'h2', ' ', 'h3']);
+ });
+});
+(0, _ava["default"])('container#every', function (t) {
+ (0, _helpers.parse)('.one.two.three', function (selectors) {
+ var allClasses = selectors.first.every(function (selector) {
+ return selector.type === 'class';
+ });
+ t.truthy(allClasses);
+ });
+});
+(0, _ava["default"])('container#some', function (t) {
+ (0, _helpers.parse)('one#two.three', function (selectors) {
+ var someClasses = selectors.first.some(function (selector) {
+ return selector.type === 'class';
+ });
+ t.truthy(someClasses);
+ });
+});
+(0, _ava["default"])('container#reduce', function (t) {
+ (0, _helpers.parse)('h1, h2, h3, h4', function (selectors) {
+ var str = selectors.reduce(function (memo, selector) {
+ if (selector.first.type === 'tag') {
+ memo += selector.first.value;
+ }
+
+ return memo;
+ }, '');
+ t.deepEqual(str, 'h1h2h3h4');
+ });
+});
+(0, _ava["default"])('container#filter', function (t) {
+ (0, _helpers.parse)('h1, h2, c1, c2', function (selectors) {
+ var ast = selectors.filter(function (selector) {
+ return ~selector.first.value.indexOf('h');
+ });
+ t.deepEqual(String(ast), 'h1, h2');
+ });
+});
+(0, _ava["default"])('container#split', function (t) {
+ (0, _helpers.parse)('h1 h2 >> h3', function (selectors) {
+ var list = selectors.first.split(function (selector) {
+ return selector.value === '>>';
+ }).map(function (group) {
+ return group.map(String);
+ });
+ t.deepEqual(list, [['h1', ' ', 'h2', ' >> '], ['h3']]);
+ t.deepEqual(list.length, 2);
+ });
+});
+(0, _ava["default"])('container#sort', function (t) {
+ var out = (0, _helpers.parse)('h2,h3,h1,h4', function (selectors) {
+ selectors.sort(function (a, b) {
+ return a.first.value.slice(-1) - b.first.value.slice(-1);
+ });
+ });
+ t.deepEqual(out, 'h1,h2,h3,h4');
+});
+(0, _ava["default"])('container#at', function (t) {
+ (0, _helpers.parse)('h1, h2, h3', function (selectors) {
+ t.deepEqual(selectors.at(1).first.value, 'h2');
+ });
+});
+(0, _ava["default"])('container#first, container#last', function (t) {
+ (0, _helpers.parse)('h1, h2, h3, h4', function (selectors) {
+ t.deepEqual(selectors.first.first.value, 'h1');
+ t.deepEqual(selectors.last.last.value, 'h4');
+ });
+});
+(0, _ava["default"])('container#index', function (t) {
+ (0, _helpers.parse)('h1 h2 h3', function (selectors) {
+ var middle = selectors.first.at(1);
+ t.deepEqual(selectors.first.index(middle), 1);
+ });
+});
+(0, _ava["default"])('container#length', function (t) {
+ (0, _helpers.parse)('h1, h2, h3', function (selectors) {
+ t.deepEqual(selectors.length, 3);
+ });
+});
+(0, _ava["default"])('container#removeChild', function (t) {
+ var out = (0, _helpers.parse)('h1.class h2.class h3.class', function (selectors) {
+ selectors.walk(function (selector) {
+ if (selector.type === 'class') {
+ selector.parent.removeChild(selector);
+ }
+ });
+ });
+ t.deepEqual(out, 'h1 h2 h3');
+});
+(0, _ava["default"])('container#removeAll, container#empty', function (t) {
+ var wipe = function wipe(method) {
+ return function (selectors) {
+ return selectors[method]();
+ };
+ };
+
+ var out1 = (0, _helpers.parse)('h1 h2, h2 h3, h3 h4', wipe('empty'));
+ var out2 = (0, _helpers.parse)('h1 h2, h2 h3, h3 h4', wipe('removeAll'));
+ t.deepEqual(out1, '');
+ t.deepEqual(out2, '');
+});
+(0, _ava["default"])('container#insertBefore', function (t) {
+ var out = (0, _helpers.parse)('h2', function (selectors) {
+ var selector = selectors.first;
+ var clone = selector.first.clone({
+ value: 'h1'
+ });
+ selectors.insertBefore(selector, clone);
+ });
+ t.deepEqual(out, 'h1,h2');
+});
+(0, _ava["default"])('container#insertBefore and node#remove', function (t) {
+ var out = (0, _helpers.parse)('h2', function (selectors) {
+ var selector = selectors.first;
+
+ var newSel = _["default"].tag({
+ value: 'h1'
+ });
+
+ selectors.insertBefore(selector, newSel);
+ newSel.remove();
+ });
+ t.deepEqual(out, 'h2');
+});
+(0, _ava["default"])('container#insertAfter', function (t) {
+ var out = (0, _helpers.parse)('h1', function (selectors) {
+ var selector = selectors.first;
+ var clone = selector.first.clone({
+ value: 'h2'
+ });
+ selectors.insertAfter(selector, clone);
+ });
+ t.deepEqual(out, 'h1,h2');
+});
+(0, _ava["default"])('container#insertAfter and node#remove', function (t) {
+ var out = (0, _helpers.parse)('h2', function (selectors) {
+ var selector = selectors.first;
+
+ var newSel = _["default"].tag({
+ value: 'h1'
+ });
+
+ selectors.insertAfter(selector, newSel);
+ newSel.remove();
+ });
+ t.deepEqual(out, 'h2');
+});
+(0, _ava["default"])('container#insertAfter (during iteration)', function (t) {
+ var out = (0, _helpers.parse)('h1, h2, h3', function (selectors) {
+ selectors.walkTags(function (selector) {
+ var attribute = _["default"].attribute({
+ attribute: 'class'
+ });
+
+ selector.parent.insertAfter(selector, attribute);
+ });
+ });
+ t.deepEqual(out, 'h1[class], h2[class], h3[class]');
+});
+(0, _ava["default"])('Container#atPosition first pseudo', function (t) {
+ (0, _helpers.parse)(':not(.foo),\n#foo > :matches(ol, ul)', function (root) {
+ var node = root.atPosition(1, 1);
+ t.deepEqual(node.type, "pseudo");
+ t.deepEqual(node.toString(), ":not(.foo)");
+ });
+});
+(0, _ava["default"])('Container#atPosition class in pseudo', function (t) {
+ (0, _helpers.parse)(':not(.foo),\n#foo > :matches(ol, ul)', function (root) {
+ var node = root.atPosition(1, 6);
+ t.deepEqual(node.type, "class");
+ t.deepEqual(node.toString(), ".foo");
+ });
+});
+(0, _ava["default"])('Container#atPosition id in second selector', function (t) {
+ (0, _helpers.parse)(':not(.foo),\n#foo > :matches(ol, ul)', function (root) {
+ var node = root.atPosition(2, 1);
+ t.deepEqual(node.type, "id");
+ t.deepEqual(node.toString(), "\n#foo");
+ });
+});
+(0, _ava["default"])('Container#atPosition combinator in second selector', function (t) {
+ (0, _helpers.parse)(':not(.foo),\n#foo > :matches(ol, ul)', function (root) {
+ var node = root.atPosition(2, 6);
+ t.deepEqual(node.type, "combinator");
+ t.deepEqual(node.toString(), " > ");
+ var nodeSpace = root.atPosition(2, 5);
+ t.deepEqual(nodeSpace.type, "selector");
+ t.deepEqual(nodeSpace.toString(), "\n#foo > :matches(ol, ul)");
+ });
+});
+(0, _ava["default"])('Container#atPosition tag in second selector pseudo', function (t) {
+ (0, _helpers.parse)(':not(.foo),\n#foo > :matches(ol, ul)', function (root) {
+ var node = root.atPosition(2, 17);
+ t.deepEqual(node.type, "tag");
+ t.deepEqual(node.toString(), "ol");
+ });
+});
+(0, _ava["default"])('Container#atPosition comma in second selector pseudo', function (t) {
+ (0, _helpers.parse)(':not(.foo),\n#foo > :matches(ol, ul)', function (root) {
+ var node = root.atPosition(2, 19);
+ t.deepEqual(node.type, "pseudo");
+ t.deepEqual(node.toString(), ":matches(ol, ul)");
+ });
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/escapes.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/escapes.js"
new file mode 100644
index 0000000000000000000000000000000000000000..cebabd92af3936c084e82636e97f5ffb785291d4
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/escapes.js"
@@ -0,0 +1,19 @@
+"use strict";
+
+var _helpers = require("./util/helpers");
+
+(0, _helpers.test)('escaped semicolon in class', '.\\;', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, ';');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\;');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+});
+(0, _helpers.test)('escaped semicolon in id', '#\\;', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, ';');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\;');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+}); // This is a side-effect of allowing media queries to be parsed. Not sure it shouldn't just be an error.
+
+(0, _helpers.test)('bare parens capture contents as a string', '(h1)', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '(h1)');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'string');
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/exceptions.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/exceptions.js"
new file mode 100644
index 0000000000000000000000000000000000000000..85c3f837d1c0cfafd59b507ab23b7857185ac1ba
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/exceptions.js"
@@ -0,0 +1,24 @@
+"use strict";
+
+var _helpers = require("./util/helpers");
+
+// Unclosed elements
+(0, _helpers["throws"])('unclosed string', 'a[href="wow]');
+(0, _helpers["throws"])('unclosed comment', '/* oops');
+(0, _helpers["throws"])('unclosed pseudo element', 'button::');
+(0, _helpers["throws"])('unclosed pseudo class', 'a:');
+(0, _helpers["throws"])('unclosed attribute selector', '[name="james"][href');
+(0, _helpers["throws"])('no opening parenthesis', ')');
+(0, _helpers["throws"])('no opening parenthesis (2)', ':global.foo)');
+(0, _helpers["throws"])('no opening parenthesis (3)', 'h1:not(h2:not(h3)))');
+(0, _helpers["throws"])('no opening square bracket', ']');
+(0, _helpers["throws"])('no opening square bracket (2)', ':global.foo]');
+(0, _helpers["throws"])('no opening square bracket (3)', '[global]]');
+(0, _helpers["throws"])('bad pseudo element', 'button::"after"');
+(0, _helpers["throws"])('missing closing parenthesis in pseudo', ':not([attr="test"]:not([attr="test"])');
+(0, _helpers["throws"])('bad syntax', '-moz-osx-font-smoothing: grayscale');
+(0, _helpers["throws"])('bad syntax (2)', '! .body');
+(0, _helpers["throws"])('missing backslash for semicolon', '.;');
+(0, _helpers["throws"])('missing backslash for semicolon (2)', '.\;');
+(0, _helpers["throws"])('unexpected / foo', '-Option\/root', "Unexpected '/'. Escaping special characters with \\ may help.");
+(0, _helpers["throws"])('bang in selector', '.foo !optional', "Unexpected '!'. Escaping special characters with \\ may help.");
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/guards.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/guards.js"
new file mode 100644
index 0000000000000000000000000000000000000000..7cdec58d4fff9a4c2550f2cdf9786f379b5ddcf5
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/guards.js"
@@ -0,0 +1,127 @@
+"use strict";
+
+var _ = _interopRequireDefault(require("../"));
+
+var _helpers = require("./util/helpers");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+var node = function node(tree, n) {
+ if (n === void 0) {
+ n = 0;
+ }
+
+ return tree.nodes[0].nodes[n];
+};
+
+(0, _helpers.test)('attribute guard', '[foo]', function (t, tree) {
+ var n = node(tree);
+ t["true"](_["default"].isNode(n));
+ t["false"](_["default"].isAttribute(undefined));
+ t["true"](_["default"].isAttribute(n));
+ t["false"](_["default"].isContainer(n));
+ t["true"](_["default"].isNamespace(n));
+});
+(0, _helpers.test)('className guard', '.foo', function (t, tree) {
+ var n = node(tree);
+ t["true"](_["default"].isNode(n));
+ t["false"](_["default"].isClassName(undefined));
+ t["true"](_["default"].isClassName(n));
+ t["false"](_["default"].isContainer(n));
+ t["false"](_["default"].isNamespace(n));
+});
+(0, _helpers.test)('combinator guard', '.foo > .bar', function (t, tree) {
+ var n = node(tree, 1);
+ t["true"](_["default"].isNode(n));
+ t["false"](_["default"].isCombinator(undefined));
+ t["true"](_["default"].isCombinator(n));
+ t["false"](_["default"].isContainer(n));
+ t["false"](_["default"].isNamespace(n));
+});
+(0, _helpers.test)('comment guard', '/* foo */.foo > .bar', function (t, tree) {
+ var n = node(tree);
+ t["true"](_["default"].isNode(n));
+ t["false"](_["default"].isComment(undefined));
+ t["true"](_["default"].isComment(n));
+ t["false"](_["default"].isContainer(n));
+ t["false"](_["default"].isNamespace(n));
+});
+(0, _helpers.test)('id guard', '#ident', function (t, tree) {
+ var n = node(tree);
+ t["true"](_["default"].isNode(n));
+ t["false"](_["default"].isIdentifier(undefined));
+ t["true"](_["default"].isIdentifier(n));
+ t["false"](_["default"].isContainer(n));
+ t["false"](_["default"].isNamespace(n));
+});
+(0, _helpers.test)('nesting guard', '&.foo', function (t, tree) {
+ var n = node(tree);
+ t["true"](_["default"].isNode(n));
+ t["false"](_["default"].isNesting(undefined));
+ t["true"](_["default"].isNesting(n));
+ t["false"](_["default"].isContainer(n));
+ t["false"](_["default"].isNamespace(n));
+});
+(0, _helpers.test)('pseudo class guard', ':hover', function (t, tree) {
+ var n = node(tree);
+ t["true"](_["default"].isNode(n));
+ t["false"](_["default"].isPseudo(undefined));
+ t["true"](_["default"].isPseudo(n));
+ t["true"](_["default"].isPseudoClass(n));
+ t["false"](_["default"].isPseudoElement(n));
+ t["true"](_["default"].isContainer(n));
+ t["false"](_["default"].isNamespace(n));
+});
+(0, _helpers.test)('pseudo element guard', '::first-line', function (t, tree) {
+ var n = node(tree);
+ t["true"](_["default"].isNode(n));
+ t["false"](_["default"].isPseudo(undefined));
+ t["true"](_["default"].isPseudo(n));
+ t["false"](_["default"].isPseudoClass(n));
+ t["true"](_["default"].isPseudoElement(n));
+ t["true"](_["default"].isContainer(n));
+ t["false"](_["default"].isNamespace(n));
+});
+(0, _helpers.test)('special pseudo element guard', ':before:after', function (t, tree) {
+ [node(tree), node(tree, 1)].forEach(function (n) {
+ t["true"](_["default"].isPseudo(n));
+ t["false"](_["default"].isPseudoClass(n));
+ t["true"](_["default"].isPseudoElement(n));
+ t["true"](_["default"].isContainer(n));
+ t["false"](_["default"].isNamespace(n));
+ });
+});
+(0, _helpers.test)('special pseudo element guard (uppercase)', ':BEFORE:AFTER', function (t, tree) {
+ [node(tree), node(tree, 1)].forEach(function (n) {
+ t["true"](_["default"].isPseudo(n));
+ t["false"](_["default"].isPseudoClass(n));
+ t["true"](_["default"].isPseudoElement(n));
+ t["true"](_["default"].isContainer(n));
+ t["false"](_["default"].isNamespace(n));
+ });
+});
+(0, _helpers.test)('string guard', '"string"', function (t, tree) {
+ var n = node(tree);
+ t["true"](_["default"].isNode(n));
+ t["false"](_["default"].isString(undefined));
+ t["true"](_["default"].isString(n));
+ t["false"](_["default"].isContainer(n));
+ t["false"](_["default"].isNamespace(n));
+});
+(0, _helpers.test)('tag guard', 'h1', function (t, tree) {
+ var n = node(tree);
+ t["false"](_["default"].isNode(undefined));
+ t["true"](_["default"].isNode(n));
+ t["false"](_["default"].isTag(undefined));
+ t["true"](_["default"].isTag(n));
+ t["false"](_["default"].isContainer(n));
+ t["true"](_["default"].isNamespace(n));
+});
+(0, _helpers.test)('universal guard', '*', function (t, tree) {
+ var n = node(tree);
+ t["true"](_["default"].isNode(n));
+ t["false"](_["default"].isUniversal(undefined));
+ t["true"](_["default"].isUniversal(n));
+ t["false"](_["default"].isContainer(n));
+ t["false"](_["default"].isNamespace(n));
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/id.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/id.js"
new file mode 100644
index 0000000000000000000000000000000000000000..87dc7460d312fbd7600dd6d52c0aa0d711b0b01e
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/id.js"
@@ -0,0 +1,235 @@
+"use strict";
+
+var _helpers = require("./util/helpers");
+
+(0, _helpers.test)('id selector', '#one', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'one');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+});
+(0, _helpers.test)('id selector with universal', '*#z98y ', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '*');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'universal');
+ t.deepEqual(tree.nodes[0].nodes[1].value, 'z98y');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'id');
+});
+(0, _helpers.test)('id hack', '#one#two', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'id');
+});
+(0, _helpers.test)('id and class names mixed', '#one.two.three', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'one');
+ t.deepEqual(tree.nodes[0].nodes[1].value, 'two');
+ t.deepEqual(tree.nodes[0].nodes[2].value, 'three');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[2].type, 'class');
+});
+(0, _helpers.test)('qualified id', 'button#one', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'id');
+});
+(0, _helpers.test)('qualified id & class name', 'h1#one.two', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[2].type, 'class');
+});
+(0, _helpers.test)('extraneous non-combinating whitespace', ' #h1 , #h2 ', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h1');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.before, ' ');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.after, ' ');
+ t.deepEqual(tree.nodes[1].nodes[0].value, 'h2');
+ t.deepEqual(tree.nodes[1].nodes[0].spaces.before, ' ');
+ t.deepEqual(tree.nodes[1].nodes[0].spaces.after, ' ');
+});
+(0, _helpers.test)('Sass interpolation within a class', '.#{foo}', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes.length, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[0].value, '#{foo}');
+});
+(0, _helpers.test)('Sass interpolation within an id', '#foo#{bar}', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes.length, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'foo#{bar}');
+});
+(0, _helpers.test)('Less interpolation within an id', '#foo@{bar}', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes.length, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'foo@{bar}');
+});
+(0, _helpers.test)('id selector with escaping', '#\\#test', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '#test');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\#test');
+});
+(0, _helpers.test)('id selector with escaping (2)', '#-a-b-c-', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '-a-b-c-');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+});
+(0, _helpers.test)('id selector with escaping (3)', '#u-m\\00002b', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'u-m+');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'u-m\\00002b');
+});
+(0, _helpers.test)('id selector with escaping (4)', '#♥', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '♥');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+});
+(0, _helpers.test)('id selector with escaping (5)', '#©', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '©');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+});
+(0, _helpers.test)('id selector with escaping (6)', '#“‘’”', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '“‘’”');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+});
+(0, _helpers.test)('id selector with escaping (7)', '#☺☃', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '☺☃');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+});
+(0, _helpers.test)('id selector with escaping (8)', '#⌘⌥', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '⌘⌥');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+});
+(0, _helpers.test)('id selector with escaping (9)', '#𝄞♪♩♫♬', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '𝄞♪♩♫♬');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+});
+(0, _helpers.test)('id selector with escaping (10)', '#💩', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '💩');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+});
+(0, _helpers.test)('id selector with escaping (11)', '#\\?', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '?');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\?');
+});
+(0, _helpers.test)('id selector with escaping (12)', '#\\@', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '@');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\@');
+});
+(0, _helpers.test)('id selector with escaping (13)', '#\\.', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '.');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\.');
+});
+(0, _helpers.test)('id selector with escaping (14)', '#\\3A \\)', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, ':)');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\3A \\)');
+});
+(0, _helpers.test)('id selector with escaping (15)', '#\\3A \\`\\(', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, ':`(');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\3A \\`\\(');
+});
+(0, _helpers.test)('id selector with escaping (16)', '#\\31 23', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '123');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\31 23');
+});
+(0, _helpers.test)('id selector with escaping (17)', '#\\31 a2b3c', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '1a2b3c');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\31 a2b3c');
+});
+(0, _helpers.test)('id selector with escaping (18)', '#\\
', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '
');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\
');
+});
+(0, _helpers.test)('id selector with escaping (19)', '#\\<\\>\\<\\<\\<\\>\\>\\<\\>', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '<><<<>><>');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\<\\>\\<\\<\\<\\>\\>\\<\\>');
+});
+(0, _helpers.test)('id selector with escaping (20)', '#\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\[\\>\\+\\+\\+\\+\\+\\+\\+\\>\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\>\\+\\+\\+\\>\\+\\<\\<\\<\\<\\-\\]\\>\\+\\+\\.\\>\\+\\.\\+\\+\\+\\+\\+\\+\\+\\.\\.\\+\\+\\+\\.\\>\\+\\+\\.\\<\\<\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\.\\>\\.\\+\\+\\+\\.\\-\\-\\-\\-\\-\\-\\.\\-\\-\\-\\-\\-\\-\\-\\-\\.\\>\\+\\.\\>\\.', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\[\\>\\+\\+\\+\\+\\+\\+\\+\\>\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\>\\+\\+\\+\\>\\+\\<\\<\\<\\<\\-\\]\\>\\+\\+\\.\\>\\+\\.\\+\\+\\+\\+\\+\\+\\+\\.\\.\\+\\+\\+\\.\\>\\+\\+\\.\\<\\<\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\+\\.\\>\\.\\+\\+\\+\\.\\-\\-\\-\\-\\-\\-\\.\\-\\-\\-\\-\\-\\-\\-\\-\\.\\>\\+\\.\\>\\.');
+});
+(0, _helpers.test)('id selector with escaping (21)', '#\\#', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '#');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\#');
+});
+(0, _helpers.test)('id selector with escaping (22)', '#\\#\\#', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '##');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\#\\#');
+});
+(0, _helpers.test)('id selector with escaping (23)', '#\\#\\.\\#\\.\\#', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '#.#.#');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\#\\.\\#\\.\\#');
+});
+(0, _helpers.test)('id selector with escaping (24)', '#\\_', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '_');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\_');
+});
+(0, _helpers.test)('id selector with escaping (25)', '#\\{\\}', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '{}');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\{\\}');
+});
+(0, _helpers.test)('id selector with escaping (26)', '#\\.fake\\-class', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '.fake-class');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\.fake\\-class');
+});
+(0, _helpers.test)('id selector with escaping (27)', '#foo\\.bar', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'foo.bar');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'foo\\.bar');
+});
+(0, _helpers.test)('id selector with escaping (28)', '#\\3A hover', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, ':hover');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\3A hover');
+});
+(0, _helpers.test)('id selector with escaping (29)', '#\\3A hover\\3A focus\\3A active', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, ':hover:focus:active');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\3A hover\\3A focus\\3A active');
+});
+(0, _helpers.test)('id selector with escaping (30)', '#\\[attr\\=value\\]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '[attr=value]');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\[attr\\=value\\]');
+});
+(0, _helpers.test)('id selector with escaping (31)', '#f\\/o\\/o', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'f/o/o');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'f\\/o\\/o');
+});
+(0, _helpers.test)('id selector with escaping (32)', '#f\\\\o\\\\o', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'f\\o\\o');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'f\\\\o\\\\o');
+});
+(0, _helpers.test)('id selector with escaping (33)', '#f\\*o\\*o', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'f*o*o');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'f\\*o\\*o');
+});
+(0, _helpers.test)('id selector with escaping (34)', '#f\\!o\\!o', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'f!o!o');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'f\\!o\\!o');
+});
+(0, _helpers.test)('id selector with escaping (35)', '#f\\\'o\\\'o', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'f\'o\'o');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'f\\\'o\\\'o');
+});
+(0, _helpers.test)('id selector with escaping (36)', '#f\\~o\\~o', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'f~o~o');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'f\\~o\\~o');
+});
+(0, _helpers.test)('id selector with escaping (37)', '#f\\+o\\+o', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'f+o+o');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
+ t.deepEqual(tree.nodes[0].nodes[0].raws.value, 'f\\+o\\+o');
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/lossy.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/lossy.js"
new file mode 100644
index 0000000000000000000000000000000000000000..a59a93acfc4a87f2d6ca05c4c29c51beee098f7a
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/lossy.js"
@@ -0,0 +1,88 @@
+"use strict";
+
+exports.__esModule = true;
+exports.testLossy = exports.parse = void 0;
+
+var _ava = _interopRequireDefault(require("ava"));
+
+var _index = _interopRequireDefault(require("../index"));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+var parse = function parse(input, options, transform) {
+ return (0, _index["default"])(transform).processSync(input, options);
+};
+
+exports.parse = parse;
+
+var testLossy = function testLossy(t, input, expected) {
+ var result = parse(input, {
+ lossless: false
+ });
+ t.deepEqual(result, expected);
+};
+
+exports.testLossy = testLossy;
+(0, _ava["default"])('combinator, descendant - single', testLossy, '.one .two', '.one .two');
+(0, _ava["default"])('combinator, descendant - multiple', testLossy, '.one .two', '.one .two');
+(0, _ava["default"])('combinator, child - space before', testLossy, '.one >.two', '.one>.two');
+(0, _ava["default"])('combinator, child - space after', testLossy, '.one> .two', '.one>.two');
+(0, _ava["default"])('combinator, sibling - space before', testLossy, '.one ~.two', '.one~.two');
+(0, _ava["default"])('combinator, sibling - space after', testLossy, '.one~ .two', '.one~.two');
+(0, _ava["default"])('combinator, adj sibling - space before', testLossy, '.one +.two', '.one+.two');
+(0, _ava["default"])('combinator, adj sibling - space after', testLossy, '.one+ .two', '.one+.two');
+(0, _ava["default"])('classes, extraneous spaces', testLossy, ' .h1 , .h2 ', '.h1,.h2');
+(0, _ava["default"])('ids, extraneous spaces', testLossy, ' #h1 , #h2 ', '#h1,#h2');
+(0, _ava["default"])('attribute, spaces in selector', testLossy, 'h1[ href *= "test" ]', 'h1[href*="test"]');
+(0, _ava["default"])('attribute, insensitive flag 1', testLossy, '[href="test" i ]', '[href="test"i]');
+(0, _ava["default"])('attribute, insensitive flag 2', testLossy, '[href=TEsT i ]', '[href=TEsT i]');
+(0, _ava["default"])('attribute, insensitive flag 3', testLossy, '[href=test i ]', '[href=test i]');
+(0, _ava["default"])('attribute, extreneous whitespace', testLossy, ' [href] , [class] ', '[href],[class]');
+(0, _ava["default"])('namespace, space before', testLossy, ' postcss|button', 'postcss|button');
+(0, _ava["default"])('namespace, space after', testLossy, 'postcss|button ', 'postcss|button');
+(0, _ava["default"])('namespace - all elements, space before', testLossy, ' postcss|*', 'postcss|*');
+(0, _ava["default"])('namespace - all elements, space after', testLossy, 'postcss|* ', 'postcss|*');
+(0, _ava["default"])('namespace - all namespaces, space before', testLossy, ' *|button', '*|button');
+(0, _ava["default"])('namespace - all namespaces, space after', testLossy, '*|button ', '*|button');
+(0, _ava["default"])('namespace - all elements in all namespaces, space before', testLossy, ' *|*', '*|*');
+(0, _ava["default"])('namespace - all elements in all namespaces, space after', testLossy, '*|* ', '*|*');
+(0, _ava["default"])('namespace - all elements without namespace, space before', testLossy, ' |*', '|*');
+(0, _ava["default"])('namespace - all elements without namespace, space after', testLossy, '|* ', '|*');
+(0, _ava["default"])('namespace - tag with no namespace, space before', testLossy, ' |button', '|button');
+(0, _ava["default"])('namespace - tag with no namespace, space after', testLossy, '|button ', '|button');
+(0, _ava["default"])('namespace - inside attribute, space before', testLossy, ' [ postcss|href=test]', '[postcss|href=test]');
+(0, _ava["default"])('namespace - inside attribute, space after', testLossy, '[postcss|href= test ] ', '[postcss|href=test]');
+(0, _ava["default"])('namespace - inside attribute (2), space before', testLossy, ' [ postcss|href]', '[postcss|href]');
+(0, _ava["default"])('namespace - inside attribute (2), space after', testLossy, '[postcss|href ] ', '[postcss|href]');
+(0, _ava["default"])('namespace - inside attribute (3), space before', testLossy, ' [ *|href=test]', '[*|href=test]');
+(0, _ava["default"])('namespace - inside attribute (3), space after', testLossy, '[*|href= test ] ', '[*|href=test]');
+(0, _ava["default"])('namespace - inside attribute (4), space after', testLossy, '[|href= test ] ', '[|href=test]');
+(0, _ava["default"])('tag - extraneous whitespace', testLossy, ' h1 , h2 ', 'h1,h2');
+(0, _ava["default"])('tag - trailing comma', testLossy, 'h1, ', 'h1,');
+(0, _ava["default"])('tag - trailing comma (1)', testLossy, 'h1,', 'h1,');
+(0, _ava["default"])('tag - trailing comma (2)', testLossy, 'h1', 'h1');
+(0, _ava["default"])('tag - trailing slash (1)', testLossy, 'h1\\ ', 'h1\\ ');
+(0, _ava["default"])('tag - trailing slash (2)', testLossy, 'h1\\ h2\\', 'h1\\ h2\\');
+(0, _ava["default"])('universal - combinator', testLossy, ' * + * ', '*+*');
+(0, _ava["default"])('universal - extraneous whitespace', testLossy, ' * , * ', '*,*');
+(0, _ava["default"])('universal - qualified universal selector', testLossy, '*[href] *:not(*.green)', '*[href] *:not(*.green)');
+(0, _ava["default"])('nesting - spacing before', testLossy, ' &.class', '&.class');
+(0, _ava["default"])('nesting - spacing after', testLossy, '&.class ', '&.class');
+(0, _ava["default"])('nesting - spacing between', testLossy, '& .class ', '& .class');
+(0, _ava["default"])('pseudo (single) - spacing before', testLossy, ' :after', ':after');
+(0, _ava["default"])('pseudo (single) - spacing after', testLossy, ':after ', ':after');
+(0, _ava["default"])('pseudo (double) - spacing before', testLossy, ' ::after', '::after');
+(0, _ava["default"])('pseudo (double) - spacing after', testLossy, '::after ', '::after');
+(0, _ava["default"])('pseudo - multiple', testLossy, ' *:target::before , a:after ', '*:target::before,a:after');
+(0, _ava["default"])('pseudo - negated', testLossy, 'h1:not( .heading )', 'h1:not(.heading)');
+(0, _ava["default"])('pseudo - negated with combinators (1)', testLossy, 'h1:not(.heading > .title) > h1', 'h1:not(.heading>.title)>h1');
+(0, _ava["default"])('pseudo - negated with combinators (2)', testLossy, '.foo:nth-child(2n + 1)', '.foo:nth-child(2n+1)');
+(0, _ava["default"])('pseudo - extra whitespace', testLossy, 'a:not( h2 )', 'a:not(h2)');
+(0, _ava["default"])('comments - comment inside descendant selector', testLossy, "div /* wtf */.foo", "div /* wtf */.foo");
+(0, _ava["default"])('comments - comment inside complex selector', testLossy, "div /* wtf */ > .foo", "div/* wtf */>.foo");
+(0, _ava["default"])('comments - comment inside compound selector with space', testLossy, "div /* wtf */ .foo", "div /* wtf */.foo");
+(0, _ava["default"])('@words - space before', testLossy, ' @media', '@media');
+(0, _ava["default"])('@words - space after', testLossy, '@media ', '@media');
+(0, _ava["default"])('@words - maintains space between', testLossy, '@media (min-width: 700px) and (orientation: landscape)', '@media (min-width: 700px) and (orientation: landscape)');
+(0, _ava["default"])('@words - extraneous space between', testLossy, '@media (min-width: 700px) and (orientation: landscape)', '@media (min-width: 700px) and (orientation: landscape)');
+(0, _ava["default"])('@words - multiple', testLossy, '@media (min-width: 700px), (min-height: 400px)', '@media (min-width: 700px),(min-height: 400px)');
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/namespaces.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/namespaces.js"
new file mode 100644
index 0000000000000000000000000000000000000000..15333e64b4d65911d31881b1ff7c4ad20a08e290
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/namespaces.js"
@@ -0,0 +1,66 @@
+"use strict";
+
+var _helpers = require("./util/helpers");
+
+(0, _helpers.test)('match tags in the postcss namespace', 'postcss|button', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].namespace, 'postcss');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'button');
+});
+(0, _helpers.test)('match everything in the postcss namespace', 'postcss|*', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].namespace, 'postcss');
+ t.deepEqual(tree.nodes[0].nodes[0].value, '*');
+});
+(0, _helpers.test)('match any namespace', '*|button', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].namespace, '*');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'button');
+});
+(0, _helpers.test)('match all elements within the postcss namespace', 'postcss|*', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].namespace, 'postcss');
+ t.deepEqual(tree.nodes[0].nodes[0].value, '*');
+});
+(0, _helpers.test)('match all elements in all namespaces', '*|*', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].namespace, '*');
+ t.deepEqual(tree.nodes[0].nodes[0].value, '*');
+});
+(0, _helpers.test)('match all elements without a namespace', '|*', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].namespace, true);
+ t.deepEqual(tree.nodes[0].nodes[0].value, '*');
+});
+(0, _helpers.test)('match tags with no namespace', '|button', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].namespace, true);
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'button');
+});
+(0, _helpers.test)('match namespace inside attribute selector', '[postcss|href=test]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].namespace, 'postcss');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'test');
+});
+(0, _helpers.test)('match namespace inside attribute selector (2)', '[postcss|href]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].namespace, 'postcss');
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+});
+(0, _helpers.test)('match namespace inside attribute selector (3)', '[*|href]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].namespace, '*');
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+});
+(0, _helpers.test)('match default namespace inside attribute selector', '[|href]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].namespace, true);
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+});
+(0, _helpers.test)('match default namespace inside attribute selector with spaces', '[ |href ]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].namespace, true);
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, 'href');
+});
+(0, _helpers.test)('namespace with qualified id selector', 'ns|h1#foo', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].namespace, 'ns');
+});
+(0, _helpers.test)('namespace with qualified class selector', 'ns|h1.foo', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].namespace, 'ns');
+});
+(0, _helpers.test)('ns alias for namespace', 'f\\oo|h1.foo', function (t, tree) {
+ var tag = tree.nodes[0].nodes[0];
+ t.deepEqual(tag.namespace, 'foo');
+ t.deepEqual(tag.ns, 'foo');
+ tag.ns = "bar";
+ t.deepEqual(tag.namespace, 'bar');
+ t.deepEqual(tag.ns, 'bar');
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/nesting.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/nesting.js"
new file mode 100644
index 0000000000000000000000000000000000000000..e3c164a5164c8b004446527aa30cf001b205a3b3
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/nesting.js"
@@ -0,0 +1,40 @@
+"use strict";
+
+var _helpers = require("./util/helpers");
+
+(0, _helpers.test)('nesting selector', '&', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '&');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'nesting');
+});
+(0, _helpers.test)('nesting selector followed by a class', '& .class', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '&');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'nesting');
+ t.deepEqual(tree.nodes[0].nodes[1].value, ' ');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'combinator');
+ t.deepEqual(tree.nodes[0].nodes[2].value, 'class');
+ t.deepEqual(tree.nodes[0].nodes[2].type, 'class');
+});
+(0, _helpers.test)('&foo', '&foo', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '&');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'nesting');
+ t.deepEqual(tree.nodes[0].nodes[1].value, 'foo');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'tag');
+});
+(0, _helpers.test)('&-foo', '&-foo', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '&');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'nesting');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '-foo');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'tag');
+});
+(0, _helpers.test)('&_foo', '&_foo', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '&');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'nesting');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '_foo');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'tag');
+});
+(0, _helpers.test)('&|foo', '&|foo', function (t, tree) {
+ var element = tree.nodes[0].nodes[0];
+ t.deepEqual(element.value, 'foo');
+ t.deepEqual(element.type, 'tag');
+ t.deepEqual(element.namespace, '&');
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/node.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/node.js"
new file mode 100644
index 0000000000000000000000000000000000000000..7ed1fcc7edcd638c6cf0ec3d65c11bfebc9cc1d8
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/node.js"
@@ -0,0 +1,139 @@
+"use strict";
+
+var _ava = _interopRequireDefault(require("ava"));
+
+var _ = _interopRequireDefault(require(".."));
+
+var _helpers = require("./util/helpers");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+(0, _ava["default"])('node#clone', function (t) {
+ (0, _helpers.parse)('[href="test"]', function (selectors) {
+ var selector = selectors.first.first;
+ var clone = selector.clone();
+ delete selector.parent;
+ t.deepEqual(clone, selectors.first.first);
+ });
+});
+(0, _ava["default"])('node#clone of attribute', function (t) {
+ (0, _helpers.parse)('[href=test]', function (selectors) {
+ var selector = selectors.first.first;
+ var clone = selector.clone();
+ delete selector.parent;
+ t.deepEqual(clone, selectors.first.first);
+ });
+});
+(0, _ava["default"])('node#replaceWith', function (t) {
+ var out = (0, _helpers.parse)('[href="test"]', function (selectors) {
+ var attr = selectors.first.first;
+
+ var id = _["default"].id({
+ value: 'test'
+ });
+
+ var className = _["default"].className({
+ value: 'test'
+ });
+
+ attr.replaceWith(id, className);
+ });
+ t.deepEqual(out, '#test.test');
+});
+(0, _ava["default"])('Node#appendToPropertyAndEscape', function (t) {
+ var out = (0, _helpers.parse)('.fo\\o', function (selectors) {
+ var className = selectors.first.first;
+ t.deepEqual(className.raws, {
+ value: "fo\\o"
+ });
+ className.appendToPropertyAndEscape("value", "bar", "ba\\r");
+ t.deepEqual(className.raws, {
+ value: "fo\\oba\\r"
+ });
+ });
+ t.deepEqual(out, '.fo\\oba\\r');
+});
+(0, _ava["default"])('Node#setPropertyAndEscape with existing raws', function (t) {
+ var out = (0, _helpers.parse)('.fo\\o', function (selectors) {
+ var className = selectors.first.first;
+ t.deepEqual(className.raws, {
+ value: "fo\\o"
+ });
+ className.setPropertyAndEscape("value", "bar", "ba\\r");
+ t.deepEqual(className.raws, {
+ value: "ba\\r"
+ });
+ });
+ t.deepEqual(out, '.ba\\r');
+});
+(0, _ava["default"])('Node#setPropertyAndEscape without existing raws', function (t) {
+ var out = (0, _helpers.parse)('.foo', function (selectors) {
+ var className = selectors.first.first;
+ t.deepEqual(className.raws, undefined);
+ className.setPropertyAndEscape("value", "bar", "ba\\r");
+ t.deepEqual(className.raws, {
+ value: "ba\\r"
+ });
+ });
+ t.deepEqual(out, '.ba\\r');
+});
+(0, _ava["default"])('Node#setPropertyWithoutEscape with existing raws', function (t) {
+ var out = (0, _helpers.parse)('.fo\\o', function (selectors) {
+ var className = selectors.first.first;
+ t.deepEqual(className.raws, {
+ value: "fo\\o"
+ });
+ className.setPropertyWithoutEscape("value", "w+t+f");
+ t.deepEqual(className.raws, {});
+ });
+ t.deepEqual(out, '.w+t+f');
+});
+(0, _ava["default"])('Node#setPropertyWithoutEscape without existing raws', function (t) {
+ var out = (0, _helpers.parse)('.foo', function (selectors) {
+ var className = selectors.first.first;
+ t.deepEqual(className.raws, undefined);
+ className.setPropertyWithoutEscape("value", "w+t+f");
+ t.deepEqual(className.raws, {});
+ t.deepEqual(className.value, "w+t+f");
+ });
+ t.deepEqual(out, '.w+t+f');
+});
+(0, _ava["default"])('Node#isAtPosition', function (t) {
+ (0, _helpers.parse)(':not(.foo),\n#foo > :matches(ol, ul)', function (root) {
+ t.deepEqual(root.isAtPosition(1, 1), true);
+ t.deepEqual(root.isAtPosition(1, 10), true);
+ t.deepEqual(root.isAtPosition(2, 23), true);
+ t.deepEqual(root.isAtPosition(2, 24), false);
+ var selector = root.first;
+ t.deepEqual(selector.isAtPosition(1, 1), true);
+ t.deepEqual(selector.isAtPosition(1, 10), true);
+ t.deepEqual(selector.isAtPosition(1, 11), false);
+ var pseudoNot = selector.first;
+ t.deepEqual(pseudoNot.isAtPosition(1, 1), true);
+ t.deepEqual(pseudoNot.isAtPosition(1, 7), true);
+ t.deepEqual(pseudoNot.isAtPosition(1, 10), true);
+ t.deepEqual(pseudoNot.isAtPosition(1, 11), false);
+ var notSelector = pseudoNot.first;
+ t.deepEqual(notSelector.isAtPosition(1, 1), false);
+ t.deepEqual(notSelector.isAtPosition(1, 4), false);
+ t.deepEqual(notSelector.isAtPosition(1, 5), true);
+ t.deepEqual(notSelector.isAtPosition(1, 6), true);
+ t.deepEqual(notSelector.isAtPosition(1, 9), true);
+ t.deepEqual(notSelector.isAtPosition(1, 10), true);
+ t.deepEqual(notSelector.isAtPosition(1, 11), false);
+ var notClass = notSelector.first;
+ t.deepEqual(notClass.isAtPosition(1, 5), false);
+ t.deepEqual(notClass.isAtPosition(1, 6), true);
+ t.deepEqual(notClass.isAtPosition(1, 9), true);
+ t.deepEqual(notClass.isAtPosition(1, 10), false);
+ var secondSel = root.at(1);
+ t.deepEqual(secondSel.isAtPosition(1, 11), false);
+ t.deepEqual(secondSel.isAtPosition(2, 1), true);
+ t.deepEqual(secondSel.isAtPosition(2, 23), true);
+ t.deepEqual(secondSel.isAtPosition(2, 24), false);
+ var combinator = secondSel.at(1);
+ t.deepEqual(combinator.isAtPosition(2, 5), false);
+ t.deepEqual(combinator.isAtPosition(2, 6), true);
+ t.deepEqual(combinator.isAtPosition(2, 7), false);
+ });
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/nonstandard.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/nonstandard.js"
new file mode 100644
index 0000000000000000000000000000000000000000..d9786f21c8494d9ddcb647099b1104f7aef6e3ea
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/nonstandard.js"
@@ -0,0 +1,46 @@
+"use strict";
+
+var _helpers = require("./util/helpers");
+
+(0, _helpers.test)('non-standard selector', '.icon.is-$(network)', function (t, tree) {
+ var class1 = tree.nodes[0].nodes[0];
+ t.deepEqual(class1.value, 'icon');
+ t.deepEqual(class1.type, 'class');
+ var class2 = tree.nodes[0].nodes[1];
+ t.deepEqual(class2.value, 'is-$(network)');
+ t.deepEqual(class2.type, 'class');
+});
+(0, _helpers.test)('at word in selector', 'em@il.com', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'em@il');
+ t.deepEqual(tree.nodes[0].nodes[1].value, 'com');
+});
+(0, _helpers.test)('leading combinator', '> *', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '>');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '*');
+});
+(0, _helpers.test)('sass escapes', '.#{$classname}', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, "class");
+ t.deepEqual(tree.nodes[0].nodes[0].value, "#{$classname}");
+});
+(0, _helpers.test)('sass escapes (2)', '[lang=#{$locale}]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, "attribute");
+ t.deepEqual(tree.nodes[0].nodes[0].attribute, "lang");
+ t.deepEqual(tree.nodes[0].nodes[0].operator, "=");
+ t.deepEqual(tree.nodes[0].nodes[0].value, "#{$locale}");
+});
+(0, _helpers.test)('placeholder', '%foo', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, "tag");
+ t.deepEqual(tree.nodes[0].nodes[0].value, "%foo");
+});
+(0, _helpers.test)('styled selector', '${Step}', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, "tag");
+ t.deepEqual(tree.nodes[0].nodes[0].value, "${Step}");
+});
+(0, _helpers.test)('styled selector (2)', '${Step}:nth-child(odd)', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, "tag");
+ t.deepEqual(tree.nodes[0].nodes[0].value, "${Step}");
+ t.deepEqual(tree.nodes[0].nodes[1].type, "pseudo");
+ t.deepEqual(tree.nodes[0].nodes[1].value, ":nth-child");
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].type, "tag");
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].value, "odd");
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/parser.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/parser.js"
new file mode 100644
index 0000000000000000000000000000000000000000..a0dd84d26720dc1d9b7a3c892ed6deda22845818
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/parser.js"
@@ -0,0 +1,259 @@
+"use strict";
+
+var _ava = _interopRequireDefault(require("ava"));
+
+var _index = _interopRequireDefault(require("../index"));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+// Node creation
+var nodeTypes = [['attribute', '[href]', {
+ attribute: 'href'
+}], ['className', '.classy', {
+ value: 'classy'
+}], ['combinator', ' >> ', {
+ value: '>>',
+ spaces: {
+ before: ' ',
+ after: ' '
+ }
+}], ['comment', '/* comment */', {
+ value: '/* comment */'
+}], ['id', '#test', {
+ value: 'test'
+}], ['nesting', '&'], ['pseudo', '::before', {
+ value: '::before'
+}], ['string', '"wow"', {
+ value: '"wow"'
+}], ['tag', 'button', {
+ value: 'button'
+}], ['universal', '*']];
+nodeTypes.forEach(function (type) {
+ (0, _ava["default"])("parser#" + type[0], function (t) {
+ var node = _index["default"][type[0]](type[2] || {});
+
+ t.deepEqual(String(node), type[1]);
+ });
+});
+(0, _ava["default"])('string constants', function (t) {
+ t.truthy(_index["default"].TAG);
+ t.truthy(_index["default"].STRING);
+ t.truthy(_index["default"].SELECTOR);
+ t.truthy(_index["default"].ROOT);
+ t.truthy(_index["default"].PSEUDO);
+ t.truthy(_index["default"].NESTING);
+ t.truthy(_index["default"].ID);
+ t.truthy(_index["default"].COMMENT);
+ t.truthy(_index["default"].COMBINATOR);
+ t.truthy(_index["default"].CLASS);
+ t.truthy(_index["default"].ATTRIBUTE);
+ t.truthy(_index["default"].UNIVERSAL);
+});
+(0, _ava["default"])('construct a whole tree', function (t) {
+ var root = _index["default"].root();
+
+ var selector = _index["default"].selector();
+
+ selector.append(_index["default"].id({
+ value: 'tree'
+ }));
+ root.append(selector);
+ t.deepEqual(String(root), '#tree');
+});
+(0, _ava["default"])('no operation', function (t) {
+ t.notThrows(function () {
+ return (0, _index["default"])().processSync('h1 h2 h3');
+ });
+});
+(0, _ava["default"])('empty selector string', function (t) {
+ t.notThrows(function () {
+ return (0, _index["default"])(function (selectors) {
+ selectors.walk(function (selector) {
+ selector.type = 'tag';
+ });
+ }).processSync('');
+ });
+});
+(0, _ava["default"])('async parser', function (t) {
+ return (0, _index["default"])(function (selectors) {
+ return new Promise(function (res) {
+ setTimeout(function () {
+ selectors.first.nodes[0].value = 'bar';
+ res();
+ }, 1);
+ });
+ }).process('foo').then(function (result) {
+ t.deepEqual(result, 'bar');
+ });
+});
+(0, _ava["default"])('parse errors with the async parser', function (t) {
+ return (0, _index["default"])(function (selectors) {
+ return new Promise(function (res) {
+ setTimeout(function () {
+ selectors.first.nodes[0].value = 'bar';
+ res();
+ }, 1);
+ });
+ }).process('a b: c')["catch"](function (err) {
+ return t.truthy(err);
+ });
+});
+(0, _ava["default"])('parse errors within the async processor', function (t) {
+ return (0, _index["default"])(function (selectors) {
+ return new Promise(function (res, rej) {
+ setTimeout(function () {
+ rej(selectors.error("async error"));
+ }, 1);
+ });
+ }).process('.foo')["catch"](function (err) {
+ return t.truthy(err);
+ });
+});
+(0, _ava["default"])('parse errors within the async processor before the promise returns', function (t) {
+ return (0, _index["default"])(function (selectors) {
+ throw selectors.error("async error");
+ }).process('.foo')["catch"](function (err) {
+ return t.truthy(err);
+ });
+});
+(0, _ava["default"])('returning a promise to the sync processor fails', function (t) {
+ t["throws"](function () {
+ return (0, _index["default"])(function () {
+ return new Promise(function (res) {
+ setTimeout(function () {
+ res();
+ }, 1);
+ });
+ }).processSync('.foo');
+ });
+});
+(0, _ava["default"])('Passing a rule works async', function (t) {
+ var rule = {
+ selector: '.foo'
+ };
+ return (0, _index["default"])(function (root) {
+ return new Promise(function (res) {
+ setTimeout(function () {
+ root.walkClasses(function (node) {
+ node.value = "bar";
+ });
+ res();
+ }, 1);
+ });
+ }).process(rule).then(function (newSel) {
+ t.deepEqual(newSel, ".bar");
+ t.deepEqual(rule.selector, ".bar");
+ });
+});
+(0, _ava["default"])('Passing a rule with mutation disabled works async', function (t) {
+ var rule = {
+ selector: '.foo'
+ };
+ return (0, _index["default"])(function (root) {
+ return new Promise(function (res) {
+ setTimeout(function () {
+ root.walkClasses(function (node) {
+ node.value = "bar";
+ });
+ res();
+ }, 1);
+ });
+ }).process(rule, {
+ updateSelector: false
+ }).then(function (newSel) {
+ t.deepEqual(newSel, ".bar");
+ t.deepEqual(rule.selector, ".foo");
+ });
+});
+(0, _ava["default"])('Passing a rule with mutation works sync', function (t) {
+ var rule = {
+ selector: '.foo'
+ };
+ var newSel = (0, _index["default"])(function (root) {
+ root.walkClasses(function (node) {
+ node.value = "bar";
+ });
+ }).processSync(rule, {
+ updateSelector: true
+ });
+ t.deepEqual(newSel, ".bar");
+ t.deepEqual(rule.selector, ".bar");
+});
+(0, _ava["default"])('Transform a selector synchronously', function (t) {
+ var rule = {
+ selector: '.foo'
+ };
+ var count = (0, _index["default"])(function (root) {
+ var classCount = 0;
+ root.walkClasses(function (node) {
+ classCount++;
+ node.value = "bar";
+ });
+ return classCount;
+ }).transformSync(rule, {
+ updateSelector: true
+ });
+ t.deepEqual(count, 1);
+ t.deepEqual(rule.selector, ".bar");
+});
+(0, _ava["default"])('Transform a selector asynchronously', function (t) {
+ var rule = {
+ selector: '.foo'
+ };
+ return (0, _index["default"])(function (root) {
+ return new Promise(function (res) {
+ setTimeout(function () {
+ var classCount = 0;
+ root.walkClasses(function (node) {
+ classCount++;
+ node.value = "bar";
+ });
+ res(classCount);
+ }, 1);
+ });
+ }).transform(rule, {
+ updateSelector: true
+ }).then(function (count) {
+ t.deepEqual(count, 1);
+ t.deepEqual(rule.selector, ".bar");
+ });
+});
+(0, _ava["default"])('get AST of a selector synchronously', function (t) {
+ var rule = {
+ selector: '.foo'
+ };
+ var ast = (0, _index["default"])(function (root) {
+ var classCount = 0;
+ root.walkClasses(function (node) {
+ classCount++;
+ node.value = "bar";
+ });
+ return classCount;
+ }).astSync(rule, {
+ updateSelector: true
+ });
+ t.deepEqual(ast.nodes[0].nodes[0].value, "bar");
+ t.deepEqual(rule.selector, ".bar");
+});
+(0, _ava["default"])('get AST a selector asynchronously', function (t) {
+ var rule = {
+ selector: '.foo'
+ };
+ return (0, _index["default"])(function (root) {
+ return new Promise(function (res) {
+ setTimeout(function () {
+ var classCount = 0;
+ root.walkClasses(function (node) {
+ classCount++;
+ node.value = "bar";
+ });
+ res(classCount);
+ }, 1);
+ });
+ }).ast(rule, {
+ updateSelector: true
+ }).then(function (ast) {
+ t.deepEqual(ast.nodes[0].nodes[0].value, "bar");
+ t.deepEqual(rule.selector, ".bar");
+ });
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/postcss.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/postcss.js"
new file mode 100644
index 0000000000000000000000000000000000000000..4c5bc4fca17bd2eff9d7ab87997350ed05d35b32
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/postcss.js"
@@ -0,0 +1,46 @@
+"use strict";
+
+var _ava = _interopRequireDefault(require("ava"));
+
+var _postcss = _interopRequireDefault(require("postcss"));
+
+var _helpers = require("./util/helpers");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+var cse = 'CssSyntaxError';
+
+function showCode(t, selector) {
+ var rule = _postcss["default"].parse(selector).first;
+
+ try {
+ (0, _helpers.parse)(rule);
+ } catch (e) {
+ if (e.name !== cse) {
+ return;
+ } // Removes ANSI codes from snapshot tests as it makes them illegible.
+ // The formatting of this error is otherwise identical to e.toString()
+
+
+ t.snapshot(cse + ": " + e.message + "\n\n" + e.showSourceCode(false) + "\n");
+ }
+}
+
+(0, _ava["default"])('missing open square bracket', showCode, 'a b c] {}');
+(0, _ava["default"])('missing open parenthesis', showCode, 'a b c) {}');
+(0, _ava["default"])('missing pseudo class or pseudo element', showCode, 'a b c: {}');
+(0, _ava["default"])('space in between colon and word (incorrect pseudo)', showCode, 'a b: c {}');
+(0, _ava["default"])('string after colon (incorrect pseudo)', showCode, 'a b:"wow" {}'); // attribute selectors
+
+(0, _ava["default"])('bad string attribute', showCode, '["hello"] {}');
+(0, _ava["default"])('bad string attribute with value', showCode, '["foo"=bar] {}');
+(0, _ava["default"])('bad parentheses', showCode, '[foo=(bar)] {}');
+(0, _ava["default"])('bad lonely asterisk', showCode, '[*] {}');
+(0, _ava["default"])('bad lonely pipe', showCode, '[|] {}');
+(0, _ava["default"])('bad lonely caret', showCode, '[^] {}');
+(0, _ava["default"])('bad lonely dollar', showCode, '[$] {}');
+(0, _ava["default"])('bad lonely tilde', showCode, '[~] {}');
+(0, _ava["default"])('bad lonely equals', showCode, '[=] {}');
+(0, _ava["default"])('bad lonely operator', showCode, '[*=] {}');
+(0, _ava["default"])('bad lonely operator (2)', showCode, '[|=] {}');
+(0, _ava["default"])('bad doubled operator', showCode, '[href=foo=bar] {}');
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/pseudos.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/pseudos.js"
new file mode 100644
index 0000000000000000000000000000000000000000..2dd64b170c670f7ac17b4efa2b70a05e1b67a16c
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/pseudos.js"
@@ -0,0 +1,165 @@
+"use strict";
+
+var _helpers = require("./util/helpers");
+
+(0, _helpers.test)('pseudo element (single colon)', 'h1:after', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'pseudo');
+ t.deepEqual(tree.nodes[0].nodes[1].value, ':after');
+});
+(0, _helpers.test)('pseudo element (double colon)', 'h1::after', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'pseudo');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '::after');
+});
+(0, _helpers.test)('multiple pseudo elements', '*:target::before, a:after', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '*');
+ t.deepEqual(tree.nodes[0].nodes[1].value, ':target');
+ t.deepEqual(tree.nodes[0].nodes[2].value, '::before');
+ t.deepEqual(tree.nodes[1].nodes[1].value, ':after');
+});
+(0, _helpers.test)('negation pseudo element', 'h1:not(.heading)', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].value, ':not');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].value, 'heading');
+});
+(0, _helpers.test)('negation pseudo element (2)', 'h1:not(.heading, .title, .content)', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].value, ':not');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].value, 'heading');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[1].nodes[0].value, 'title');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[2].nodes[0].value, 'content');
+});
+(0, _helpers.test)('negation pseudo element (3)', 'h1:not(.heading > .title) > h1', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].value, 'heading');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[1].value, '>');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[2].value, 'title');
+ t.deepEqual(tree.nodes[0].nodes[2].value, '>');
+ t.deepEqual(tree.nodes[0].nodes[3].value, 'h1');
+});
+(0, _helpers.test)('negation pseudo element (4)', 'h1:not(h2:not(h3))', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[1].nodes[0].nodes[0].value, 'h3');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[1].nodes[0].nodes[0].parent.type, 'selector');
+});
+(0, _helpers.test)('pseudo class in the middle of a selector', 'a:link.external', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'a');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'pseudo');
+ t.deepEqual(tree.nodes[0].nodes[1].value, ':link');
+ t.deepEqual(tree.nodes[0].nodes[2].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[2].value, 'external');
+});
+(0, _helpers.test)('extra whitespace inside parentheses', 'a:not( h2 )', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].value, 'h2');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].spaces.after, ' ');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].spaces.before, ' ');
+});
+(0, _helpers.test)('escaped numbers in class name with pseudo', 'a:before.\\31\\ 0', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[2].type, 'class');
+ t.deepEqual(tree.nodes[0].nodes[2].value, '1 0');
+ t.deepEqual(tree.nodes[0].nodes[2].raws.value, '\\31\\ 0');
+});
+(0, _helpers.test)('nested pseudo', '.btn-group>.btn:last-child:not(:first-child)', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[4].value, ':not');
+});
+(0, _helpers.test)('extraneous non-combinating whitespace', ' h1:after , h2:after ', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.before, ' ');
+ t.deepEqual(tree.nodes[0].nodes[1].value, ':after');
+ t.deepEqual(tree.nodes[0].nodes[1].spaces.after, ' ');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.before, ' ');
+ t.deepEqual(tree.nodes[1].nodes[1].value, ':after');
+ t.deepEqual(tree.nodes[1].nodes[1].spaces.after, ' ');
+});
+(0, _helpers.test)('negation pseudo element with quotes', 'h1:not(".heading")', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].value, ':not');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].value, '".heading"');
+});
+(0, _helpers.test)('negation pseudo element with single quotes', "h1:not('.heading')", function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].value, ':not');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].value, "'.heading'");
+});
+(0, _helpers.test)('Issue #116', "svg:not(:root)", function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].value, ':not');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].value, ':root');
+});
+(0, _helpers.test)('alone pseudo class', ':root', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'pseudo');
+ t.deepEqual(tree.nodes[0].nodes[0].value, ':root');
+});
+(0, _helpers.test)('non standard pseudo (@custom-selector)', ":--foobar, a", function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, ':--foobar');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'pseudo');
+ t.deepEqual(tree.nodes[1].nodes[0].value, 'a');
+ t.deepEqual(tree.nodes[1].nodes[0].type, 'tag');
+});
+(0, _helpers.test)('non standard pseudo (@custom-selector) (1)', "a, :--foobar", function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'a');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[1].nodes[0].value, ':--foobar');
+ t.deepEqual(tree.nodes[1].nodes[0].type, 'pseudo');
+});
+(0, _helpers.test)('current pseudo class', ':current(p, li, dt, dd)', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'pseudo');
+ t.deepEqual(tree.nodes[0].nodes[0].value, ':current');
+ t.deepEqual(tree.nodes[0].nodes[0].nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[0].nodes[0].nodes[0].value, 'p');
+ t.deepEqual(tree.nodes[0].nodes[0].nodes[1].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[0].nodes[1].nodes[0].value, 'li');
+ t.deepEqual(tree.nodes[0].nodes[0].nodes[2].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[0].nodes[2].nodes[0].value, 'dt');
+ t.deepEqual(tree.nodes[0].nodes[0].nodes[3].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[0].nodes[3].nodes[0].value, 'dd');
+});
+(0, _helpers.test)('is pseudo class', ':is(p, li, dt, dd)', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'pseudo');
+ t.deepEqual(tree.nodes[0].nodes[0].value, ':is');
+ t.deepEqual(tree.nodes[0].nodes[0].nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[0].nodes[0].nodes[0].value, 'p');
+ t.deepEqual(tree.nodes[0].nodes[0].nodes[1].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[0].nodes[1].nodes[0].value, 'li');
+ t.deepEqual(tree.nodes[0].nodes[0].nodes[2].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[0].nodes[2].nodes[0].value, 'dt');
+ t.deepEqual(tree.nodes[0].nodes[0].nodes[3].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[0].nodes[3].nodes[0].value, 'dd');
+});
+(0, _helpers.test)('is pseudo class with namespace', '*|*:is(:hover, :focus) ', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'universal');
+ t.deepEqual(tree.nodes[0].nodes[0].namespace, '*');
+ t.deepEqual(tree.nodes[0].nodes[0].value, '*');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'pseudo');
+ t.deepEqual(tree.nodes[0].nodes[1].value, ':is');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].type, 'pseudo');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].value, ':hover');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[1].nodes[0].type, 'pseudo');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[1].nodes[0].value, ':focus');
+});
+(0, _helpers.test)('has pseudo class', 'a:has(> img)', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'a');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'pseudo');
+ t.deepEqual(tree.nodes[0].nodes[1].value, ':has');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].type, 'combinator');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].value, '>');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[1].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[1].value, 'img');
+});
+(0, _helpers.test)('where pseudo class', 'a:where(:not(:hover))', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'a');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'pseudo');
+ t.deepEqual(tree.nodes[0].nodes[1].value, ':where');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].type, 'pseudo');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].value, ':not');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].nodes[0].nodes[0].type, 'pseudo');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].nodes[0].nodes[0].value, ':hover');
+});
+(0, _helpers.test)('nested pseudo classes', "section:not( :has(h1, h2 ) )", function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'section');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'pseudo');
+ t.deepEqual(tree.nodes[0].nodes[1].value, ':not');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].type, 'pseudo');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].value, ':has');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].nodes[0].nodes[0].value, 'h1');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].nodes[1].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].nodes[1].nodes[0].value, 'h2');
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/sourceIndex.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/sourceIndex.js"
new file mode 100644
index 0000000000000000000000000000000000000000..766d59f55b3812f2fba8812d9bd88d64acfa9d14
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/sourceIndex.js"
@@ -0,0 +1,229 @@
+"use strict";
+
+var _helpers = require("./util/helpers");
+
+(0, _helpers.test)('universal selector', '*', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.column, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].source.end.column, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].sourceIndex, 0);
+});
+(0, _helpers.test)('lobotomized owl selector', ' * + * ', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.column, 2);
+ t.deepEqual(tree.nodes[0].nodes[0].source.end.column, 2);
+ t.deepEqual(tree.nodes[0].nodes[0].sourceIndex, 1);
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.column, 4);
+ t.deepEqual(tree.nodes[0].nodes[1].source.end.column, 4);
+ t.deepEqual(tree.nodes[0].nodes[1].sourceIndex, 3);
+ t.deepEqual(tree.nodes[0].nodes[2].source.start.column, 6);
+ t.deepEqual(tree.nodes[0].nodes[2].source.end.column, 6);
+ t.deepEqual(tree.nodes[0].nodes[2].sourceIndex, 5);
+});
+(0, _helpers.test)('comment', '/**\n * Hello!\n */', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.column, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].source.end.column, 3);
+ t.deepEqual(tree.nodes[0].nodes[0].sourceIndex, 0);
+});
+(0, _helpers.test)('comment & universal selectors', '*/*test*/*', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.column, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].source.end.column, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].sourceIndex, 0);
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.column, 2);
+ t.deepEqual(tree.nodes[0].nodes[1].source.end.column, 9);
+ t.deepEqual(tree.nodes[0].nodes[1].sourceIndex, 1);
+ t.deepEqual(tree.nodes[0].nodes[2].source.start.column, 10);
+ t.deepEqual(tree.nodes[0].nodes[2].source.end.column, 10);
+ t.deepEqual(tree.nodes[0].nodes[2].sourceIndex, 9);
+});
+(0, _helpers.test)('tag selector', 'h1', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.column, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].source.end.column, 2);
+ t.deepEqual(tree.nodes[0].nodes[0].sourceIndex, 0);
+});
+(0, _helpers.test)('id selector', '#id', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.column, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].source.end.column, 3);
+ t.deepEqual(tree.nodes[0].nodes[0].sourceIndex, 0);
+});
+(0, _helpers.test)('tag selector followed by id selector', 'h1, #id', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.column, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].source.end.column, 2);
+ t.deepEqual(tree.nodes[0].nodes[0].sourceIndex, 0);
+ t.deepEqual(tree.nodes[1].nodes[0].source.start.column, 5);
+ t.deepEqual(tree.nodes[1].nodes[0].source.end.column, 7);
+ t.deepEqual(tree.nodes[1].nodes[0].sourceIndex, 4);
+});
+(0, _helpers.test)('multiple id selectors', '#one#two', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.column, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].source.end.column, 4);
+ t.deepEqual(tree.nodes[0].nodes[0].sourceIndex, 0);
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.column, 5);
+ t.deepEqual(tree.nodes[0].nodes[1].source.end.column, 8);
+ t.deepEqual(tree.nodes[0].nodes[1].sourceIndex, 4);
+});
+(0, _helpers.test)('multiple id selectors (2)', '#one#two#three#four', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[2].source.start.column, 9);
+ t.deepEqual(tree.nodes[0].nodes[2].source.end.column, 14);
+ t.deepEqual(tree.nodes[0].nodes[2].sourceIndex, 8);
+ t.deepEqual(tree.nodes[0].nodes[3].source.start.column, 15);
+ t.deepEqual(tree.nodes[0].nodes[3].source.end.column, 19);
+ t.deepEqual(tree.nodes[0].nodes[3].sourceIndex, 14);
+});
+(0, _helpers.test)('multiple id selectors (3)', '#one#two,#three#four', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.column, 5);
+ t.deepEqual(tree.nodes[0].nodes[1].source.end.column, 8);
+ t.deepEqual(tree.nodes[0].nodes[1].sourceIndex, 4);
+ t.deepEqual(tree.nodes[1].nodes[1].source.start.column, 16);
+ t.deepEqual(tree.nodes[1].nodes[1].source.end.column, 20);
+ t.deepEqual(tree.nodes[1].nodes[1].sourceIndex, 15);
+});
+(0, _helpers.test)('multiple class selectors', '.one.two,.three.four', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.column, 5);
+ t.deepEqual(tree.nodes[0].nodes[1].source.end.column, 8);
+ t.deepEqual(tree.nodes[0].nodes[1].sourceIndex, 4);
+ t.deepEqual(tree.nodes[1].nodes[1].source.start.column, 16);
+ t.deepEqual(tree.nodes[1].nodes[1].source.end.column, 20);
+ t.deepEqual(tree.nodes[1].nodes[1].sourceIndex, 15);
+});
+(0, _helpers.test)('attribute selector', '[name="james"]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.line, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.column, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].source.end.column, 14);
+ t.deepEqual(tree.nodes[0].nodes[0].sourceIndex, 0);
+});
+(0, _helpers.test)('multiple attribute selectors', '[name="james"][name="ed"],[name="snakeman"][name="a"]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.line, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.column, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].source.end.line, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].source.end.column, 14);
+ t.deepEqual(tree.nodes[0].nodes[0].sourceIndex, 0);
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.line, 1);
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.column, 15);
+ t.deepEqual(tree.nodes[0].nodes[1].source.end.line, 1);
+ t.deepEqual(tree.nodes[0].nodes[1].source.end.column, 25);
+ t.deepEqual(tree.nodes[0].nodes[1].sourceIndex, 14);
+ t.deepEqual(tree.nodes[1].nodes[0].source.start.line, 1);
+ t.deepEqual(tree.nodes[1].nodes[0].source.start.column, 27);
+ t.deepEqual(tree.nodes[1].nodes[0].source.end.line, 1);
+ t.deepEqual(tree.nodes[1].nodes[0].source.end.column, 43);
+ t.deepEqual(tree.nodes[1].nodes[0].sourceIndex, 26);
+ t.deepEqual(tree.nodes[1].nodes[1].source.start.line, 1);
+ t.deepEqual(tree.nodes[1].nodes[1].source.start.column, 44);
+ t.deepEqual(tree.nodes[1].nodes[1].source.end.line, 1);
+ t.deepEqual(tree.nodes[1].nodes[1].source.end.column, 53);
+ t.deepEqual(tree.nodes[1].nodes[1].sourceIndex, 43);
+});
+(0, _helpers.test)('pseudo-class', 'h1:first-child', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.line, 1);
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.column, 3);
+ t.deepEqual(tree.nodes[0].nodes[1].source.end.column, 14);
+ t.deepEqual(tree.nodes[0].nodes[1].sourceIndex, 2);
+});
+(0, _helpers.test)('pseudo-class with argument', 'h1:not(.strudel, .food)', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.line, 1);
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.column, 3);
+ t.deepEqual(tree.nodes[0].nodes[1].source.end.column, 23);
+ t.deepEqual(tree.nodes[0].nodes[1].sourceIndex, 2);
+});
+(0, _helpers.test)('pseudo-element', 'h1::before', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.line, 1);
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.column, 3);
+ t.deepEqual(tree.nodes[0].nodes[1].source.end.column, 10);
+ t.deepEqual(tree.nodes[0].nodes[1].sourceIndex, 2);
+});
+(0, _helpers.test)('multiple pseudos', 'h1:not(.food)::before, a:first-child', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.line, 1);
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.column, 3);
+ t.deepEqual(tree.nodes[0].nodes[1].source.end.column, 13);
+ t.deepEqual(tree.nodes[0].nodes[1].sourceIndex, 2);
+ t.deepEqual(tree.nodes[0].nodes[2].source.start.line, 1);
+ t.deepEqual(tree.nodes[0].nodes[2].source.start.column, 14);
+ t.deepEqual(tree.nodes[0].nodes[2].source.end.column, 21);
+ t.deepEqual(tree.nodes[0].nodes[2].sourceIndex, 13);
+ t.deepEqual(tree.nodes[1].nodes[1].source.start.line, 1);
+ t.deepEqual(tree.nodes[1].nodes[1].source.start.column, 25);
+ t.deepEqual(tree.nodes[1].nodes[1].source.end.column, 36);
+ t.deepEqual(tree.nodes[1].nodes[1].sourceIndex, 24);
+});
+(0, _helpers.test)('combinators', 'div > h1 span', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.line, 1, "> start line");
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.column, 5, "> start column");
+ t.deepEqual(tree.nodes[0].nodes[1].source.end.column, 5, "> end column");
+ t.deepEqual(tree.nodes[0].nodes[1].sourceIndex, 4, "> sourceIndex");
+ t.deepEqual(tree.nodes[0].nodes[3].source.start.line, 1, "' ' start line");
+ t.deepEqual(tree.nodes[0].nodes[3].source.start.column, 9, "' ' start column");
+ t.deepEqual(tree.nodes[0].nodes[3].source.end.column, 9, "' ' end column");
+ t.deepEqual(tree.nodes[0].nodes[3].sourceIndex, 8, "' ' sourceIndex");
+});
+(0, _helpers.test)('combinators surrounded by superfluous spaces', 'div > h1 ~ span a', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.line, 1, "> start line");
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.column, 7, "> start column");
+ t.deepEqual(tree.nodes[0].nodes[1].source.end.column, 7, "> end column");
+ t.deepEqual(tree.nodes[0].nodes[1].sourceIndex, 6, "> sourceIndex");
+ t.deepEqual(tree.nodes[0].nodes[3].source.start.line, 1, "~ start line");
+ t.deepEqual(tree.nodes[0].nodes[3].source.start.column, 13, "~ start column");
+ t.deepEqual(tree.nodes[0].nodes[3].source.end.column, 13, "~ end column");
+ t.deepEqual(tree.nodes[0].nodes[3].sourceIndex, 12, "~ sourceIndex");
+ t.deepEqual(tree.nodes[0].nodes[5].source.start.line, 1, "' ' start line");
+ t.deepEqual(tree.nodes[0].nodes[5].source.start.column, 21, "' ' start column");
+ t.deepEqual(tree.nodes[0].nodes[5].source.end.column, 23, "' ' end column");
+ t.deepEqual(tree.nodes[0].nodes[5].sourceIndex, 20, "' ' sourceIndex");
+});
+(0, _helpers.test)('multiple id selectors on different lines', '#one,\n#two', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.line, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.column, 1);
+ t.deepEqual(tree.nodes[0].nodes[0].source.end.column, 4);
+ t.deepEqual(tree.nodes[0].nodes[0].sourceIndex, 0);
+ t.deepEqual(tree.nodes[1].nodes[0].source.start.line, 2);
+ t.deepEqual(tree.nodes[1].nodes[0].source.start.column, 1);
+ t.deepEqual(tree.nodes[1].nodes[0].source.end.column, 4);
+ t.deepEqual(tree.nodes[1].nodes[0].sourceIndex, 6);
+});
+(0, _helpers.test)('multiple id selectors on different CRLF lines', '#one,\r\n#two,\r\n#three', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.line, 1, '#one start line');
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.column, 1, '#one start column');
+ t.deepEqual(tree.nodes[0].nodes[0].source.end.column, 4, '#one end column');
+ t.deepEqual(tree.nodes[0].nodes[0].sourceIndex, 0, '#one sourceIndex');
+ t.deepEqual(tree.nodes[1].nodes[0].source.start.line, 2, '#two start line');
+ t.deepEqual(tree.nodes[1].nodes[0].source.start.column, 1, '#two start column');
+ t.deepEqual(tree.nodes[1].nodes[0].source.end.column, 4, '#two end column');
+ t.deepEqual(tree.nodes[1].nodes[0].sourceIndex, 7, '#two sourceIndex');
+ t.deepEqual(tree.nodes[2].nodes[0].source.start.line, 3, '#three start line');
+ t.deepEqual(tree.nodes[2].nodes[0].source.start.column, 1, '#three start column');
+ t.deepEqual(tree.nodes[2].nodes[0].source.end.column, 6, '#three end column');
+ t.deepEqual(tree.nodes[2].nodes[0].sourceIndex, 14, '#three sourceIndex');
+});
+(0, _helpers.test)('id, tag, pseudo, and class selectors on different lines with indentation', '\t#one,\n\th1:after,\n\t\t.two', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.line, 1, '#one start line');
+ t.deepEqual(tree.nodes[0].nodes[0].source.start.column, 2, '#one start column');
+ t.deepEqual(tree.nodes[0].nodes[0].source.end.column, 5, '#one end column');
+ t.deepEqual(tree.nodes[0].nodes[0].sourceIndex, 1, '#one sourceIndex');
+ t.deepEqual(tree.nodes[1].nodes[0].source.start.line, 2, 'h1 start line');
+ t.deepEqual(tree.nodes[1].nodes[0].source.start.column, 2, 'h1 start column');
+ t.deepEqual(tree.nodes[1].nodes[0].source.end.column, 3, 'h1 end column');
+ t.deepEqual(tree.nodes[1].nodes[0].sourceIndex, 8, 'h1 sourceIndex');
+ t.deepEqual(tree.nodes[1].nodes[1].source.start.line, 2, ':after start line');
+ t.deepEqual(tree.nodes[1].nodes[1].source.start.column, 4, ':after start column');
+ t.deepEqual(tree.nodes[1].nodes[1].source.end.column, 9, ':after end column');
+ t.deepEqual(tree.nodes[1].nodes[1].sourceIndex, 10, ':after sourceIndex');
+ t.deepEqual(tree.nodes[2].nodes[0].source.start.line, 3, '.two start line');
+ t.deepEqual(tree.nodes[2].nodes[0].source.start.column, 3, '.two start column');
+ t.deepEqual(tree.nodes[2].nodes[0].source.end.column, 6, '.two end column');
+ t.deepEqual(tree.nodes[2].nodes[0].sourceIndex, 20, '.two sourceIndex');
+});
+(0, _helpers.test)('pseudo with arguments spanning multiple lines', 'h1:not(\n\t.one,\n\t.two\n)', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.line, 1, ':not start line');
+ t.deepEqual(tree.nodes[0].nodes[1].source.start.column, 3, ':not start column');
+ t.deepEqual(tree.nodes[0].nodes[1].source.end.line, 4, ':not end line');
+ t.deepEqual(tree.nodes[0].nodes[1].source.end.column, 1, ':not end column');
+ t.deepEqual(tree.nodes[0].nodes[1].sourceIndex, 2, ':not sourceIndex');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].source.start.line, 2, '.one start line');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].source.start.column, 2, '.one start column');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].source.end.line, 2, '.one end line');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].source.end.column, 5, '.one end column');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[0].nodes[0].sourceIndex, 9, '.one sourceIndex');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[1].nodes[0].source.start.line, 3, '.two start line');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[1].nodes[0].source.start.column, 2, '.two start column');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[1].nodes[0].source.end.line, 3, '.two end line');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[1].nodes[0].source.end.column, 5, '.two end column');
+ t.deepEqual(tree.nodes[0].nodes[1].nodes[1].nodes[0].sourceIndex, 16, '.two sourceIndex');
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js"
new file mode 100644
index 0000000000000000000000000000000000000000..b7f315bbe7e7b348ce436c57b21b5213729d2f51
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js"
@@ -0,0 +1,17 @@
+"use strict";
+
+var _ava = _interopRequireDefault(require("ava"));
+
+var _stripComments = _interopRequireDefault(require("../../src/util/stripComments"));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+(0, _ava["default"])("stripComments()", function (t) {
+ t.deepEqual((0, _stripComments["default"])("aaa/**/bbb"), "aaabbb");
+ t.deepEqual((0, _stripComments["default"])("aaa/*bbb"), "aaa");
+ t.deepEqual((0, _stripComments["default"])("aaa/*xxx*/bbb"), "aaabbb");
+ t.deepEqual((0, _stripComments["default"])("aaa/*/xxx/*/bbb"), "aaabbb");
+ t.deepEqual((0, _stripComments["default"])("aaa/*x*/bbb/**/"), "aaabbb");
+ t.deepEqual((0, _stripComments["default"])("/**/aaa/*x*/bbb/**/"), "aaabbb");
+ t.deepEqual((0, _stripComments["default"])("/**/"), "");
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/tags.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/tags.js"
new file mode 100644
index 0000000000000000000000000000000000000000..b6f5aa4320c64b7e2ec8bd5eb9fbda6c52e49185
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/tags.js"
@@ -0,0 +1,35 @@
+"use strict";
+
+var _helpers = require("./util/helpers");
+
+(0, _helpers.test)('tag selector', 'h1', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h1');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag');
+});
+(0, _helpers.test)('multiple tag selectors', 'h1, h2', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h1');
+ t.deepEqual(tree.nodes[1].nodes[0].value, 'h2');
+});
+(0, _helpers.test)('extraneous non-combinating whitespace', ' h1 , h2 ', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h1');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.before, ' ');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.after, ' ');
+ t.deepEqual(tree.nodes[1].nodes[0].value, 'h2');
+ t.deepEqual(tree.nodes[1].nodes[0].spaces.before, ' ');
+ t.deepEqual(tree.nodes[1].nodes[0].spaces.after, ' ');
+});
+(0, _helpers.test)('tag with trailing comma', 'h1,', function (t, tree) {
+ t.deepEqual(tree.trailingComma, true);
+});
+(0, _helpers.test)('tag with trailing slash', 'h1\\', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'h1\\');
+});
+(0, _helpers.test)('tag with attribute', 'label[for="email"]', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'label');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'tag');
+ t.deepEqual(tree.nodes[0].nodes[1].value, 'email');
+ t.deepEqual(tree.nodes[0].nodes[1].attribute, 'for');
+ t.deepEqual(tree.nodes[0].nodes[1].operator, '=');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'attribute');
+ t.deepEqual(tree.nodes[0].nodes[1].quoteMark, '"');
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/universal.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/universal.js"
new file mode 100644
index 0000000000000000000000000000000000000000..c1d39b026903fabcb99f039282a21cb99649131e
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/universal.js"
@@ -0,0 +1,42 @@
+"use strict";
+
+var _helpers = require("./util/helpers");
+
+(0, _helpers.test)('universal selector', '*', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '*');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'universal');
+});
+(0, _helpers.test)('lobotomized owl', '* + *', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'universal');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'combinator');
+ t.deepEqual(tree.nodes[0].nodes[2].type, 'universal');
+});
+(0, _helpers.test)('universal selector with descendant combinator', '* *', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'universal');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'combinator');
+ t.deepEqual(tree.nodes[0].nodes[2].type, 'universal');
+});
+(0, _helpers.test)('universal selector with descendant combinator and extraneous non-combinating whitespace', '* *', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'universal');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'combinator');
+ t.deepEqual(tree.nodes[0].nodes[2].type, 'universal');
+});
+(0, _helpers.test)('extraneous non-combinating whitespace', ' * , * ', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '*');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.before, ' ');
+ t.deepEqual(tree.nodes[0].nodes[0].spaces.after, ' ');
+ t.deepEqual(tree.nodes[1].nodes[0].value, '*');
+ t.deepEqual(tree.nodes[1].nodes[0].spaces.before, ' ');
+ t.deepEqual(tree.nodes[1].nodes[0].spaces.after, ' ');
+});
+(0, _helpers.test)('qualified universal selector', '*[href] *:not(*.green)', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '*');
+ t.deepEqual(tree.nodes[0].nodes[3].value, '*');
+ t.deepEqual(tree.nodes[0].nodes[4].nodes[0].nodes[0].value, '*');
+});
+(0, _helpers.test)('universal selector with pseudo', '*::--webkit-media-controls-play-button', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '*');
+ t.deepEqual(tree.nodes[0].nodes[0].type, 'universal');
+ t.deepEqual(tree.nodes[0].nodes[1].value, '::--webkit-media-controls-play-button');
+ t.deepEqual(tree.nodes[0].nodes[1].type, 'pseudo');
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/util/helpers.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/util/helpers.js"
new file mode 100644
index 0000000000000000000000000000000000000000..5bf0301fbcd2f0257a047235b945a9adc1904842
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/util/helpers.js"
@@ -0,0 +1,94 @@
+"use strict";
+
+exports.__esModule = true;
+exports.test = test;
+exports.nodeVersionAtLeast = nodeVersionAtLeast;
+exports.nodeVersionBefore = nodeVersionBefore;
+exports["throws"] = exports.parse = void 0;
+
+var _process = _interopRequireDefault(require("process"));
+
+var _util = _interopRequireDefault(require("util"));
+
+var _ava = _interopRequireDefault(require("ava"));
+
+var _semver = _interopRequireDefault(require("semver"));
+
+var _index = _interopRequireDefault(require("../../index"));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+var parse = function parse(input, transform) {
+ return (0, _index["default"])(transform).processSync(input);
+};
+
+exports.parse = parse;
+
+function test(spec, input, callback, only, disabled, serial) {
+ var _this = this;
+
+ if (only === void 0) {
+ only = false;
+ }
+
+ if (disabled === void 0) {
+ disabled = false;
+ }
+
+ if (serial === void 0) {
+ serial = false;
+ }
+
+ var tester = only ? _ava["default"].only : _ava["default"];
+ tester = disabled ? tester.skip : tester;
+ tester = serial ? tester.serial : tester;
+
+ if (callback) {
+ tester(spec + " (tree)", function (t) {
+ var tree = (0, _index["default"])().astSync(input);
+
+ var debug = _util["default"].inspect(tree, false, null);
+
+ return callback.call(_this, t, tree, debug);
+ });
+ }
+
+ tester(spec + " (toString)", function (t) {
+ var result = (0, _index["default"])().processSync(input);
+ t.deepEqual(result, input);
+ });
+}
+
+test.only = function (spec, input, callback) {
+ return test(spec, input, callback, true);
+};
+
+test.skip = function (spec, input, callback) {
+ return test(spec, input, callback, false, true);
+};
+
+test.serial = function (spec, input, callback) {
+ return test(spec, input, callback, false, false, true);
+};
+
+var _throws = function _throws(spec, input, validator) {
+ (0, _ava["default"])(spec + " (throws)", function (t) {
+ t["throws"](function () {
+ return (0, _index["default"])().processSync(input);
+ }, validator ? {
+ message: validator
+ } : {
+ instanceOf: Error
+ });
+ });
+};
+
+exports["throws"] = _throws;
+
+function nodeVersionAtLeast(version) {
+ return _semver["default"].gte(_process["default"].versions.node, version);
+}
+
+function nodeVersionBefore(version) {
+ return _semver["default"].lt(_process["default"].versions.node, version);
+}
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/util/unesc.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/util/unesc.js"
new file mode 100644
index 0000000000000000000000000000000000000000..779348aa32f0d3c62a8abcb44b79e60d58967f2a
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/__tests__/util/unesc.js"
@@ -0,0 +1,50 @@
+"use strict";
+
+var _helpers = require("../util/helpers");
+
+(0, _helpers.test)('id selector', '#foo', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'foo');
+});
+(0, _helpers.test)('escaped special char', '#w\\+', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'w+');
+});
+(0, _helpers.test)('tailing escape', '#foo\\', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'foo\\');
+});
+(0, _helpers.test)('double escape', '#wow\\\\k', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'wow\\k');
+});
+(0, _helpers.test)('leading numeric', '.\\31 23', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '123');
+});
+(0, _helpers.test)('emoji', '.\\🐐', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '🐐');
+}); // https://www.w3.org/International/questions/qa-escapes#cssescapes
+
+(0, _helpers.test)('hex escape', '.\\E9motion', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'émotion');
+});
+(0, _helpers.test)('hex escape with space', '.\\E9 dition', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'édition');
+});
+(0, _helpers.test)('hex escape with hex number', '.\\0000E9dition', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'édition');
+});
+(0, _helpers.test)('class selector with escaping', '.\\1D306', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '𝌆');
+});
+(0, _helpers.test)('class selector with escaping with more chars', '.\\1D306k', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, '𝌆k');
+});
+(0, _helpers.test)('class selector with escaping with more chars with whitespace', '.wow\\1D306 k', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, 'wow𝌆k');
+});
+(0, _helpers.test)('handles 0 value hex', '\\0', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, String.fromCodePoint(0xFFFD));
+});
+(0, _helpers.test)('handles lone surrogate value hex', '\\DBFF', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, String.fromCodePoint(0xFFFD));
+});
+(0, _helpers.test)('handles out of bound values', '\\110000', function (t, tree) {
+ t.deepEqual(tree.nodes[0].nodes[0].value, String.fromCodePoint(0xFFFD));
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/index.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/index.js"
new file mode 100644
index 0000000000000000000000000000000000000000..6e76a32bdd44266f91ef4ca8c06441205e000ed2
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/index.js"
@@ -0,0 +1,24 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _processor = _interopRequireDefault(require("./processor"));
+
+var selectors = _interopRequireWildcard(require("./selectors"));
+
+function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
+
+function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+var parser = function parser(processor) {
+ return new _processor["default"](processor);
+};
+
+Object.assign(parser, selectors);
+delete parser.__esModule;
+var _default = parser;
+exports["default"] = _default;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/parser.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/parser.js"
new file mode 100644
index 0000000000000000000000000000000000000000..c0af9b6868d535baada92c5cb55ee64babd4792a
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/parser.js"
@@ -0,0 +1,1239 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _root = _interopRequireDefault(require("./selectors/root"));
+
+var _selector = _interopRequireDefault(require("./selectors/selector"));
+
+var _className = _interopRequireDefault(require("./selectors/className"));
+
+var _comment = _interopRequireDefault(require("./selectors/comment"));
+
+var _id = _interopRequireDefault(require("./selectors/id"));
+
+var _tag = _interopRequireDefault(require("./selectors/tag"));
+
+var _string = _interopRequireDefault(require("./selectors/string"));
+
+var _pseudo = _interopRequireDefault(require("./selectors/pseudo"));
+
+var _attribute = _interopRequireWildcard(require("./selectors/attribute"));
+
+var _universal = _interopRequireDefault(require("./selectors/universal"));
+
+var _combinator = _interopRequireDefault(require("./selectors/combinator"));
+
+var _nesting = _interopRequireDefault(require("./selectors/nesting"));
+
+var _sortAscending = _interopRequireDefault(require("./sortAscending"));
+
+var _tokenize = _interopRequireWildcard(require("./tokenize"));
+
+var tokens = _interopRequireWildcard(require("./tokenTypes"));
+
+var types = _interopRequireWildcard(require("./selectors/types"));
+
+var _util = require("./util");
+
+var _WHITESPACE_TOKENS, _Object$assign;
+
+function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
+
+function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
+
+function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
+
+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);
+var WHITESPACE_EQUIV_TOKENS = Object.assign({}, WHITESPACE_TOKENS, (_Object$assign = {}, _Object$assign[tokens.comment] = true, _Object$assign));
+
+function tokenStart(token) {
+ return {
+ line: token[_tokenize.FIELDS.START_LINE],
+ column: token[_tokenize.FIELDS.START_COL]
+ };
+}
+
+function tokenEnd(token) {
+ return {
+ line: token[_tokenize.FIELDS.END_LINE],
+ column: token[_tokenize.FIELDS.END_COL]
+ };
+}
+
+function getSource(startLine, startColumn, endLine, endColumn) {
+ return {
+ start: {
+ line: startLine,
+ column: startColumn
+ },
+ end: {
+ line: endLine,
+ column: endColumn
+ }
+ };
+}
+
+function getTokenSource(token) {
+ return getSource(token[_tokenize.FIELDS.START_LINE], token[_tokenize.FIELDS.START_COL], token[_tokenize.FIELDS.END_LINE], token[_tokenize.FIELDS.END_COL]);
+}
+
+function getTokenSourceSpan(startToken, endToken) {
+ if (!startToken) {
+ return undefined;
+ }
+
+ return getSource(startToken[_tokenize.FIELDS.START_LINE], startToken[_tokenize.FIELDS.START_COL], endToken[_tokenize.FIELDS.END_LINE], endToken[_tokenize.FIELDS.END_COL]);
+}
+
+function unescapeProp(node, prop) {
+ var value = node[prop];
+
+ if (typeof value !== "string") {
+ return;
+ }
+
+ if (value.indexOf("\\") !== -1) {
+ (0, _util.ensureObject)(node, 'raws');
+ node[prop] = (0, _util.unesc)(value);
+
+ if (node.raws[prop] === undefined) {
+ node.raws[prop] = value;
+ }
+ }
+
+ return node;
+}
+
+function indexesOf(array, item) {
+ var i = -1;
+ var indexes = [];
+
+ while ((i = array.indexOf(item, i + 1)) !== -1) {
+ indexes.push(i);
+ }
+
+ return indexes;
+}
+
+function uniqs() {
+ var list = Array.prototype.concat.apply([], arguments);
+ return list.filter(function (item, i) {
+ return i === list.indexOf(item);
+ });
+}
+
+var Parser = /*#__PURE__*/function () {
+ function Parser(rule, options) {
+ if (options === void 0) {
+ options = {};
+ }
+
+ this.rule = rule;
+ this.options = Object.assign({
+ lossy: false,
+ safe: false
+ }, options);
+ this.position = 0;
+ this.css = typeof this.rule === 'string' ? this.rule : this.rule.selector;
+ this.tokens = (0, _tokenize["default"])({
+ css: this.css,
+ error: this._errorGenerator(),
+ safe: this.options.safe
+ });
+ var rootSource = getTokenSourceSpan(this.tokens[0], this.tokens[this.tokens.length - 1]);
+ this.root = new _root["default"]({
+ source: rootSource
+ });
+ this.root.errorGenerator = this._errorGenerator();
+ var selector = new _selector["default"]({
+ source: {
+ start: {
+ line: 1,
+ column: 1
+ }
+ }
+ });
+ this.root.append(selector);
+ this.current = selector;
+ this.loop();
+ }
+
+ var _proto = Parser.prototype;
+
+ _proto._errorGenerator = function _errorGenerator() {
+ var _this = this;
+
+ return function (message, errorOptions) {
+ if (typeof _this.rule === 'string') {
+ return new Error(message);
+ }
+
+ return _this.rule.error(message, errorOptions);
+ };
+ };
+
+ _proto.attribute = function attribute() {
+ var attr = [];
+ var startingToken = this.currToken;
+ this.position++;
+
+ while (this.position < this.tokens.length && this.currToken[_tokenize.FIELDS.TYPE] !== tokens.closeSquare) {
+ attr.push(this.currToken);
+ this.position++;
+ }
+
+ if (this.currToken[_tokenize.FIELDS.TYPE] !== tokens.closeSquare) {
+ return this.expected('closing square bracket', this.currToken[_tokenize.FIELDS.START_POS]);
+ }
+
+ var len = attr.length;
+ var node = {
+ source: getSource(startingToken[1], startingToken[2], this.currToken[3], this.currToken[4]),
+ sourceIndex: startingToken[_tokenize.FIELDS.START_POS]
+ };
+
+ if (len === 1 && !~[tokens.word].indexOf(attr[0][_tokenize.FIELDS.TYPE])) {
+ return this.expected('attribute', attr[0][_tokenize.FIELDS.START_POS]);
+ }
+
+ var pos = 0;
+ var spaceBefore = '';
+ var commentBefore = '';
+ var lastAdded = null;
+ var spaceAfterMeaningfulToken = false;
+
+ while (pos < len) {
+ var token = attr[pos];
+ var content = this.content(token);
+ var next = attr[pos + 1];
+
+ switch (token[_tokenize.FIELDS.TYPE]) {
+ case tokens.space:
+ // if (
+ // len === 1 ||
+ // pos === 0 && this.content(next) === '|'
+ // ) {
+ // return this.expected('attribute', token[TOKEN.START_POS], content);
+ // }
+ spaceAfterMeaningfulToken = true;
+
+ if (this.options.lossy) {
+ break;
+ }
+
+ if (lastAdded) {
+ (0, _util.ensureObject)(node, 'spaces', lastAdded);
+ var prevContent = node.spaces[lastAdded].after || '';
+ node.spaces[lastAdded].after = prevContent + content;
+ var existingComment = (0, _util.getProp)(node, 'raws', 'spaces', lastAdded, 'after') || null;
+
+ if (existingComment) {
+ node.raws.spaces[lastAdded].after = existingComment + content;
+ }
+ } else {
+ spaceBefore = spaceBefore + content;
+ commentBefore = commentBefore + content;
+ }
+
+ break;
+
+ case tokens.asterisk:
+ if (next[_tokenize.FIELDS.TYPE] === tokens.equals) {
+ node.operator = content;
+ lastAdded = 'operator';
+ } else if ((!node.namespace || lastAdded === "namespace" && !spaceAfterMeaningfulToken) && next) {
+ if (spaceBefore) {
+ (0, _util.ensureObject)(node, 'spaces', 'attribute');
+ node.spaces.attribute.before = spaceBefore;
+ spaceBefore = '';
+ }
+
+ if (commentBefore) {
+ (0, _util.ensureObject)(node, 'raws', 'spaces', 'attribute');
+ node.raws.spaces.attribute.before = spaceBefore;
+ commentBefore = '';
+ }
+
+ node.namespace = (node.namespace || "") + content;
+ var rawValue = (0, _util.getProp)(node, 'raws', 'namespace') || null;
+
+ if (rawValue) {
+ node.raws.namespace += content;
+ }
+
+ lastAdded = 'namespace';
+ }
+
+ spaceAfterMeaningfulToken = false;
+ break;
+
+ case tokens.dollar:
+ if (lastAdded === "value") {
+ var oldRawValue = (0, _util.getProp)(node, 'raws', 'value');
+ node.value += "$";
+
+ if (oldRawValue) {
+ node.raws.value = oldRawValue + "$";
+ }
+
+ break;
+ }
+
+ // Falls through
+
+ case tokens.caret:
+ if (next[_tokenize.FIELDS.TYPE] === tokens.equals) {
+ node.operator = content;
+ lastAdded = 'operator';
+ }
+
+ spaceAfterMeaningfulToken = false;
+ break;
+
+ case tokens.combinator:
+ if (content === '~' && next[_tokenize.FIELDS.TYPE] === tokens.equals) {
+ node.operator = content;
+ lastAdded = 'operator';
+ }
+
+ if (content !== '|') {
+ spaceAfterMeaningfulToken = false;
+ break;
+ }
+
+ if (next[_tokenize.FIELDS.TYPE] === tokens.equals) {
+ node.operator = content;
+ lastAdded = 'operator';
+ } else if (!node.namespace && !node.attribute) {
+ node.namespace = true;
+ }
+
+ spaceAfterMeaningfulToken = false;
+ break;
+
+ case tokens.word:
+ if (next && this.content(next) === '|' && attr[pos + 2] && attr[pos + 2][_tokenize.FIELDS.TYPE] !== tokens.equals && // this look-ahead probably fails with comment nodes involved.
+ !node.operator && !node.namespace) {
+ node.namespace = content;
+ lastAdded = 'namespace';
+ } else if (!node.attribute || lastAdded === "attribute" && !spaceAfterMeaningfulToken) {
+ if (spaceBefore) {
+ (0, _util.ensureObject)(node, 'spaces', 'attribute');
+ node.spaces.attribute.before = spaceBefore;
+ spaceBefore = '';
+ }
+
+ if (commentBefore) {
+ (0, _util.ensureObject)(node, 'raws', 'spaces', 'attribute');
+ node.raws.spaces.attribute.before = commentBefore;
+ commentBefore = '';
+ }
+
+ node.attribute = (node.attribute || "") + content;
+
+ var _rawValue = (0, _util.getProp)(node, 'raws', 'attribute') || null;
+
+ if (_rawValue) {
+ node.raws.attribute += content;
+ }
+
+ lastAdded = 'attribute';
+ } else if (!node.value && node.value !== "" || lastAdded === "value" && !spaceAfterMeaningfulToken) {
+ var _unescaped = (0, _util.unesc)(content);
+
+ var _oldRawValue = (0, _util.getProp)(node, 'raws', 'value') || '';
+
+ var oldValue = node.value || '';
+ node.value = oldValue + _unescaped;
+ node.quoteMark = null;
+
+ if (_unescaped !== content || _oldRawValue) {
+ (0, _util.ensureObject)(node, 'raws');
+ node.raws.value = (_oldRawValue || oldValue) + content;
+ }
+
+ lastAdded = 'value';
+ } else {
+ var insensitive = content === 'i' || content === "I";
+
+ if ((node.value || node.value === '') && (node.quoteMark || spaceAfterMeaningfulToken)) {
+ node.insensitive = insensitive;
+
+ if (!insensitive || content === "I") {
+ (0, _util.ensureObject)(node, 'raws');
+ node.raws.insensitiveFlag = content;
+ }
+
+ lastAdded = 'insensitive';
+
+ if (spaceBefore) {
+ (0, _util.ensureObject)(node, 'spaces', 'insensitive');
+ node.spaces.insensitive.before = spaceBefore;
+ spaceBefore = '';
+ }
+
+ if (commentBefore) {
+ (0, _util.ensureObject)(node, 'raws', 'spaces', 'insensitive');
+ node.raws.spaces.insensitive.before = commentBefore;
+ commentBefore = '';
+ }
+ } else if (node.value || node.value === '') {
+ lastAdded = 'value';
+ node.value += content;
+
+ if (node.raws.value) {
+ node.raws.value += content;
+ }
+ }
+ }
+
+ spaceAfterMeaningfulToken = false;
+ break;
+
+ case tokens.str:
+ if (!node.attribute || !node.operator) {
+ return this.error("Expected an attribute followed by an operator preceding the string.", {
+ index: token[_tokenize.FIELDS.START_POS]
+ });
+ }
+
+ var _unescapeValue = (0, _attribute.unescapeValue)(content),
+ unescaped = _unescapeValue.unescaped,
+ quoteMark = _unescapeValue.quoteMark;
+
+ node.value = unescaped;
+ node.quoteMark = quoteMark;
+ lastAdded = 'value';
+ (0, _util.ensureObject)(node, 'raws');
+ node.raws.value = content;
+ spaceAfterMeaningfulToken = false;
+ break;
+
+ case tokens.equals:
+ if (!node.attribute) {
+ return this.expected('attribute', token[_tokenize.FIELDS.START_POS], content);
+ }
+
+ if (node.value) {
+ return this.error('Unexpected "=" found; an operator was already defined.', {
+ index: token[_tokenize.FIELDS.START_POS]
+ });
+ }
+
+ node.operator = node.operator ? node.operator + content : content;
+ lastAdded = 'operator';
+ spaceAfterMeaningfulToken = false;
+ break;
+
+ case tokens.comment:
+ if (lastAdded) {
+ if (spaceAfterMeaningfulToken || next && next[_tokenize.FIELDS.TYPE] === tokens.space || lastAdded === 'insensitive') {
+ var lastComment = (0, _util.getProp)(node, 'spaces', lastAdded, 'after') || '';
+ var rawLastComment = (0, _util.getProp)(node, 'raws', 'spaces', lastAdded, 'after') || lastComment;
+ (0, _util.ensureObject)(node, 'raws', 'spaces', lastAdded);
+ node.raws.spaces[lastAdded].after = rawLastComment + content;
+ } else {
+ var lastValue = node[lastAdded] || '';
+ var rawLastValue = (0, _util.getProp)(node, 'raws', lastAdded) || lastValue;
+ (0, _util.ensureObject)(node, 'raws');
+ node.raws[lastAdded] = rawLastValue + content;
+ }
+ } else {
+ commentBefore = commentBefore + content;
+ }
+
+ break;
+
+ default:
+ return this.error("Unexpected \"" + content + "\" found.", {
+ index: token[_tokenize.FIELDS.START_POS]
+ });
+ }
+
+ pos++;
+ }
+
+ unescapeProp(node, "attribute");
+ unescapeProp(node, "namespace");
+ this.newNode(new _attribute["default"](node));
+ this.position++;
+ }
+ /**
+ * return a node containing meaningless garbage up to (but not including) the specified token position.
+ * if the token position is negative, all remaining tokens are consumed.
+ *
+ * This returns an array containing a single string node if all whitespace,
+ * otherwise an array of comment nodes with space before and after.
+ *
+ * These tokens are not added to the current selector, the caller can add them or use them to amend
+ * a previous node's space metadata.
+ *
+ * In lossy mode, this returns only comments.
+ */
+ ;
+
+ _proto.parseWhitespaceEquivalentTokens = function parseWhitespaceEquivalentTokens(stopPosition) {
+ if (stopPosition < 0) {
+ stopPosition = this.tokens.length;
+ }
+
+ var startPosition = this.position;
+ var nodes = [];
+ var space = "";
+ var lastComment = undefined;
+
+ do {
+ if (WHITESPACE_TOKENS[this.currToken[_tokenize.FIELDS.TYPE]]) {
+ if (!this.options.lossy) {
+ space += this.content();
+ }
+ } else if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.comment) {
+ var spaces = {};
+
+ if (space) {
+ spaces.before = space;
+ space = "";
+ }
+
+ lastComment = new _comment["default"]({
+ value: this.content(),
+ source: getTokenSource(this.currToken),
+ sourceIndex: this.currToken[_tokenize.FIELDS.START_POS],
+ spaces: spaces
+ });
+ nodes.push(lastComment);
+ }
+ } while (++this.position < stopPosition);
+
+ if (space) {
+ if (lastComment) {
+ lastComment.spaces.after = space;
+ } else if (!this.options.lossy) {
+ var firstToken = this.tokens[startPosition];
+ var lastToken = this.tokens[this.position - 1];
+ nodes.push(new _string["default"]({
+ value: '',
+ source: getSource(firstToken[_tokenize.FIELDS.START_LINE], firstToken[_tokenize.FIELDS.START_COL], lastToken[_tokenize.FIELDS.END_LINE], lastToken[_tokenize.FIELDS.END_COL]),
+ sourceIndex: firstToken[_tokenize.FIELDS.START_POS],
+ spaces: {
+ before: space,
+ after: ''
+ }
+ }));
+ }
+ }
+
+ return nodes;
+ }
+ /**
+ *
+ * @param {*} nodes
+ */
+ ;
+
+ _proto.convertWhitespaceNodesToSpace = function convertWhitespaceNodesToSpace(nodes, requiredSpace) {
+ var _this2 = this;
+
+ if (requiredSpace === void 0) {
+ requiredSpace = false;
+ }
+
+ var space = "";
+ var rawSpace = "";
+ nodes.forEach(function (n) {
+ var spaceBefore = _this2.lossySpace(n.spaces.before, requiredSpace);
+
+ var rawSpaceBefore = _this2.lossySpace(n.rawSpaceBefore, requiredSpace);
+
+ space += spaceBefore + _this2.lossySpace(n.spaces.after, requiredSpace && spaceBefore.length === 0);
+ rawSpace += spaceBefore + n.value + _this2.lossySpace(n.rawSpaceAfter, requiredSpace && rawSpaceBefore.length === 0);
+ });
+
+ if (rawSpace === space) {
+ rawSpace = undefined;
+ }
+
+ var result = {
+ space: space,
+ rawSpace: rawSpace
+ };
+ return result;
+ };
+
+ _proto.isNamedCombinator = function isNamedCombinator(position) {
+ if (position === void 0) {
+ position = this.position;
+ }
+
+ return this.tokens[position + 0] && this.tokens[position + 0][_tokenize.FIELDS.TYPE] === tokens.slash && this.tokens[position + 1] && this.tokens[position + 1][_tokenize.FIELDS.TYPE] === tokens.word && this.tokens[position + 2] && this.tokens[position + 2][_tokenize.FIELDS.TYPE] === tokens.slash;
+ };
+
+ _proto.namedCombinator = function namedCombinator() {
+ if (this.isNamedCombinator()) {
+ var nameRaw = this.content(this.tokens[this.position + 1]);
+ var name = (0, _util.unesc)(nameRaw).toLowerCase();
+ var raws = {};
+
+ if (name !== nameRaw) {
+ raws.value = "/" + nameRaw + "/";
+ }
+
+ var node = new _combinator["default"]({
+ value: "/" + name + "/",
+ source: getSource(this.currToken[_tokenize.FIELDS.START_LINE], this.currToken[_tokenize.FIELDS.START_COL], this.tokens[this.position + 2][_tokenize.FIELDS.END_LINE], this.tokens[this.position + 2][_tokenize.FIELDS.END_COL]),
+ sourceIndex: this.currToken[_tokenize.FIELDS.START_POS],
+ raws: raws
+ });
+ this.position = this.position + 3;
+ return node;
+ } else {
+ this.unexpected();
+ }
+ };
+
+ _proto.combinator = function combinator() {
+ var _this3 = this;
+
+ if (this.content() === '|') {
+ return this.namespace();
+ } // We need to decide between a space that's a descendant combinator and meaningless whitespace at the end of a selector.
+
+
+ var nextSigTokenPos = this.locateNextMeaningfulToken(this.position);
+
+ if (nextSigTokenPos < 0 || this.tokens[nextSigTokenPos][_tokenize.FIELDS.TYPE] === tokens.comma) {
+ var nodes = this.parseWhitespaceEquivalentTokens(nextSigTokenPos);
+
+ if (nodes.length > 0) {
+ var last = this.current.last;
+
+ if (last) {
+ var _this$convertWhitespa = this.convertWhitespaceNodesToSpace(nodes),
+ space = _this$convertWhitespa.space,
+ rawSpace = _this$convertWhitespa.rawSpace;
+
+ if (rawSpace !== undefined) {
+ last.rawSpaceAfter += rawSpace;
+ }
+
+ last.spaces.after += space;
+ } else {
+ nodes.forEach(function (n) {
+ return _this3.newNode(n);
+ });
+ }
+ }
+
+ return;
+ }
+
+ var firstToken = this.currToken;
+ var spaceOrDescendantSelectorNodes = undefined;
+
+ if (nextSigTokenPos > this.position) {
+ spaceOrDescendantSelectorNodes = this.parseWhitespaceEquivalentTokens(nextSigTokenPos);
+ }
+
+ var node;
+
+ if (this.isNamedCombinator()) {
+ node = this.namedCombinator();
+ } else if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.combinator) {
+ node = new _combinator["default"]({
+ value: this.content(),
+ source: getTokenSource(this.currToken),
+ sourceIndex: this.currToken[_tokenize.FIELDS.START_POS]
+ });
+ this.position++;
+ } else if (WHITESPACE_TOKENS[this.currToken[_tokenize.FIELDS.TYPE]]) {// pass
+ } else if (!spaceOrDescendantSelectorNodes) {
+ this.unexpected();
+ }
+
+ if (node) {
+ if (spaceOrDescendantSelectorNodes) {
+ var _this$convertWhitespa2 = this.convertWhitespaceNodesToSpace(spaceOrDescendantSelectorNodes),
+ _space = _this$convertWhitespa2.space,
+ _rawSpace = _this$convertWhitespa2.rawSpace;
+
+ node.spaces.before = _space;
+ node.rawSpaceBefore = _rawSpace;
+ }
+ } else {
+ // descendant combinator
+ var _this$convertWhitespa3 = this.convertWhitespaceNodesToSpace(spaceOrDescendantSelectorNodes, true),
+ _space2 = _this$convertWhitespa3.space,
+ _rawSpace2 = _this$convertWhitespa3.rawSpace;
+
+ if (!_rawSpace2) {
+ _rawSpace2 = _space2;
+ }
+
+ var spaces = {};
+ var raws = {
+ spaces: {}
+ };
+
+ if (_space2.endsWith(' ') && _rawSpace2.endsWith(' ')) {
+ spaces.before = _space2.slice(0, _space2.length - 1);
+ raws.spaces.before = _rawSpace2.slice(0, _rawSpace2.length - 1);
+ } else if (_space2.startsWith(' ') && _rawSpace2.startsWith(' ')) {
+ spaces.after = _space2.slice(1);
+ raws.spaces.after = _rawSpace2.slice(1);
+ } else {
+ raws.value = _rawSpace2;
+ }
+
+ node = new _combinator["default"]({
+ value: ' ',
+ source: getTokenSourceSpan(firstToken, this.tokens[this.position - 1]),
+ sourceIndex: firstToken[_tokenize.FIELDS.START_POS],
+ spaces: spaces,
+ raws: raws
+ });
+ }
+
+ if (this.currToken && this.currToken[_tokenize.FIELDS.TYPE] === tokens.space) {
+ node.spaces.after = this.optionalSpace(this.content());
+ this.position++;
+ }
+
+ return this.newNode(node);
+ };
+
+ _proto.comma = function comma() {
+ if (this.position === this.tokens.length - 1) {
+ this.root.trailingComma = true;
+ this.position++;
+ return;
+ }
+
+ this.current._inferEndPosition();
+
+ var selector = new _selector["default"]({
+ source: {
+ start: tokenStart(this.tokens[this.position + 1])
+ }
+ });
+ this.current.parent.append(selector);
+ this.current = selector;
+ this.position++;
+ };
+
+ _proto.comment = function comment() {
+ var current = this.currToken;
+ this.newNode(new _comment["default"]({
+ value: this.content(),
+ source: getTokenSource(current),
+ sourceIndex: current[_tokenize.FIELDS.START_POS]
+ }));
+ this.position++;
+ };
+
+ _proto.error = function error(message, opts) {
+ throw this.root.error(message, opts);
+ };
+
+ _proto.missingBackslash = function missingBackslash() {
+ return this.error('Expected a backslash preceding the semicolon.', {
+ index: this.currToken[_tokenize.FIELDS.START_POS]
+ });
+ };
+
+ _proto.missingParenthesis = function missingParenthesis() {
+ return this.expected('opening parenthesis', this.currToken[_tokenize.FIELDS.START_POS]);
+ };
+
+ _proto.missingSquareBracket = function missingSquareBracket() {
+ return this.expected('opening square bracket', this.currToken[_tokenize.FIELDS.START_POS]);
+ };
+
+ _proto.unexpected = function unexpected() {
+ return this.error("Unexpected '" + this.content() + "'. Escaping special characters with \\ may help.", this.currToken[_tokenize.FIELDS.START_POS]);
+ };
+
+ _proto.namespace = function namespace() {
+ var before = this.prevToken && this.content(this.prevToken) || true;
+
+ if (this.nextToken[_tokenize.FIELDS.TYPE] === tokens.word) {
+ this.position++;
+ return this.word(before);
+ } else if (this.nextToken[_tokenize.FIELDS.TYPE] === tokens.asterisk) {
+ this.position++;
+ return this.universal(before);
+ }
+ };
+
+ _proto.nesting = function nesting() {
+ if (this.nextToken) {
+ var nextContent = this.content(this.nextToken);
+
+ if (nextContent === "|") {
+ this.position++;
+ return;
+ }
+ }
+
+ var current = this.currToken;
+ this.newNode(new _nesting["default"]({
+ value: this.content(),
+ source: getTokenSource(current),
+ sourceIndex: current[_tokenize.FIELDS.START_POS]
+ }));
+ this.position++;
+ };
+
+ _proto.parentheses = function parentheses() {
+ var last = this.current.last;
+ var unbalanced = 1;
+ this.position++;
+
+ if (last && last.type === types.PSEUDO) {
+ var selector = new _selector["default"]({
+ source: {
+ start: tokenStart(this.tokens[this.position - 1])
+ }
+ });
+ var cache = this.current;
+ last.append(selector);
+ this.current = selector;
+
+ while (this.position < this.tokens.length && unbalanced) {
+ if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) {
+ unbalanced++;
+ }
+
+ if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) {
+ unbalanced--;
+ }
+
+ if (unbalanced) {
+ this.parse();
+ } else {
+ this.current.source.end = tokenEnd(this.currToken);
+ this.current.parent.source.end = tokenEnd(this.currToken);
+ this.position++;
+ }
+ }
+
+ this.current = cache;
+ } else {
+ // I think this case should be an error. It's used to implement a basic parse of media queries
+ // but I don't think it's a good idea.
+ var parenStart = this.currToken;
+ var parenValue = "(";
+ var parenEnd;
+
+ while (this.position < this.tokens.length && unbalanced) {
+ if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) {
+ unbalanced++;
+ }
+
+ if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) {
+ unbalanced--;
+ }
+
+ parenEnd = this.currToken;
+ parenValue += this.parseParenthesisToken(this.currToken);
+ this.position++;
+ }
+
+ if (last) {
+ last.appendToPropertyAndEscape("value", parenValue, parenValue);
+ } else {
+ this.newNode(new _string["default"]({
+ value: parenValue,
+ source: getSource(parenStart[_tokenize.FIELDS.START_LINE], parenStart[_tokenize.FIELDS.START_COL], parenEnd[_tokenize.FIELDS.END_LINE], parenEnd[_tokenize.FIELDS.END_COL]),
+ sourceIndex: parenStart[_tokenize.FIELDS.START_POS]
+ }));
+ }
+ }
+
+ if (unbalanced) {
+ return this.expected('closing parenthesis', this.currToken[_tokenize.FIELDS.START_POS]);
+ }
+ };
+
+ _proto.pseudo = function pseudo() {
+ var _this4 = this;
+
+ var pseudoStr = '';
+ var startingToken = this.currToken;
+
+ while (this.currToken && this.currToken[_tokenize.FIELDS.TYPE] === tokens.colon) {
+ pseudoStr += this.content();
+ this.position++;
+ }
+
+ if (!this.currToken) {
+ return this.expected(['pseudo-class', 'pseudo-element'], this.position - 1);
+ }
+
+ if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.word) {
+ this.splitWord(false, function (first, length) {
+ pseudoStr += first;
+
+ _this4.newNode(new _pseudo["default"]({
+ value: pseudoStr,
+ source: getTokenSourceSpan(startingToken, _this4.currToken),
+ sourceIndex: startingToken[_tokenize.FIELDS.START_POS]
+ }));
+
+ if (length > 1 && _this4.nextToken && _this4.nextToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) {
+ _this4.error('Misplaced parenthesis.', {
+ index: _this4.nextToken[_tokenize.FIELDS.START_POS]
+ });
+ }
+ });
+ } else {
+ return this.expected(['pseudo-class', 'pseudo-element'], this.currToken[_tokenize.FIELDS.START_POS]);
+ }
+ };
+
+ _proto.space = function space() {
+ var content = this.content(); // Handle space before and after the selector
+
+ if (this.position === 0 || this.prevToken[_tokenize.FIELDS.TYPE] === tokens.comma || this.prevToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis || this.current.nodes.every(function (node) {
+ return node.type === 'comment';
+ })) {
+ this.spaces = this.optionalSpace(content);
+ this.position++;
+ } else if (this.position === this.tokens.length - 1 || this.nextToken[_tokenize.FIELDS.TYPE] === tokens.comma || this.nextToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) {
+ this.current.last.spaces.after = this.optionalSpace(content);
+ this.position++;
+ } else {
+ this.combinator();
+ }
+ };
+
+ _proto.string = function string() {
+ var current = this.currToken;
+ this.newNode(new _string["default"]({
+ value: this.content(),
+ source: getTokenSource(current),
+ sourceIndex: current[_tokenize.FIELDS.START_POS]
+ }));
+ this.position++;
+ };
+
+ _proto.universal = function universal(namespace) {
+ var nextToken = this.nextToken;
+
+ if (nextToken && this.content(nextToken) === '|') {
+ this.position++;
+ return this.namespace();
+ }
+
+ var current = this.currToken;
+ this.newNode(new _universal["default"]({
+ value: this.content(),
+ source: getTokenSource(current),
+ sourceIndex: current[_tokenize.FIELDS.START_POS]
+ }), namespace);
+ this.position++;
+ };
+
+ _proto.splitWord = function splitWord(namespace, firstCallback) {
+ var _this5 = this;
+
+ var nextToken = this.nextToken;
+ var word = this.content();
+
+ while (nextToken && ~[tokens.dollar, tokens.caret, tokens.equals, tokens.word].indexOf(nextToken[_tokenize.FIELDS.TYPE])) {
+ this.position++;
+ var current = this.content();
+ word += current;
+
+ if (current.lastIndexOf('\\') === current.length - 1) {
+ var next = this.nextToken;
+
+ if (next && next[_tokenize.FIELDS.TYPE] === tokens.space) {
+ word += this.requiredSpace(this.content(next));
+ this.position++;
+ }
+ }
+
+ nextToken = this.nextToken;
+ }
+
+ var hasClass = indexesOf(word, '.').filter(function (i) {
+ return word[i - 1] !== '\\';
+ });
+ var hasId = indexesOf(word, '#').filter(function (i) {
+ return word[i - 1] !== '\\';
+ }); // Eliminate Sass interpolations from the list of id indexes
+
+ var interpolations = indexesOf(word, '#{');
+
+ if (interpolations.length) {
+ hasId = hasId.filter(function (hashIndex) {
+ return !~interpolations.indexOf(hashIndex);
+ });
+ }
+
+ var indices = (0, _sortAscending["default"])(uniqs([0].concat(hasClass, hasId)));
+ indices.forEach(function (ind, i) {
+ var index = indices[i + 1] || word.length;
+ var value = word.slice(ind, index);
+
+ if (i === 0 && firstCallback) {
+ return firstCallback.call(_this5, value, indices.length);
+ }
+
+ var node;
+ var current = _this5.currToken;
+ var sourceIndex = current[_tokenize.FIELDS.START_POS] + indices[i];
+ var source = getSource(current[1], current[2] + ind, current[3], current[2] + (index - 1));
+
+ if (~hasClass.indexOf(ind)) {
+ var classNameOpts = {
+ value: value.slice(1),
+ source: source,
+ sourceIndex: sourceIndex
+ };
+ node = new _className["default"](unescapeProp(classNameOpts, "value"));
+ } else if (~hasId.indexOf(ind)) {
+ var idOpts = {
+ value: value.slice(1),
+ source: source,
+ sourceIndex: sourceIndex
+ };
+ node = new _id["default"](unescapeProp(idOpts, "value"));
+ } else {
+ var tagOpts = {
+ value: value,
+ source: source,
+ sourceIndex: sourceIndex
+ };
+ unescapeProp(tagOpts, "value");
+ node = new _tag["default"](tagOpts);
+ }
+
+ _this5.newNode(node, namespace); // Ensure that the namespace is used only once
+
+
+ namespace = null;
+ });
+ this.position++;
+ };
+
+ _proto.word = function word(namespace) {
+ var nextToken = this.nextToken;
+
+ if (nextToken && this.content(nextToken) === '|') {
+ this.position++;
+ return this.namespace();
+ }
+
+ return this.splitWord(namespace);
+ };
+
+ _proto.loop = function loop() {
+ while (this.position < this.tokens.length) {
+ this.parse(true);
+ }
+
+ this.current._inferEndPosition();
+
+ return this.root;
+ };
+
+ _proto.parse = function parse(throwOnParenthesis) {
+ switch (this.currToken[_tokenize.FIELDS.TYPE]) {
+ case tokens.space:
+ this.space();
+ break;
+
+ case tokens.comment:
+ this.comment();
+ break;
+
+ case tokens.openParenthesis:
+ this.parentheses();
+ break;
+
+ case tokens.closeParenthesis:
+ if (throwOnParenthesis) {
+ this.missingParenthesis();
+ }
+
+ break;
+
+ case tokens.openSquare:
+ this.attribute();
+ break;
+
+ case tokens.dollar:
+ case tokens.caret:
+ case tokens.equals:
+ case tokens.word:
+ this.word();
+ break;
+
+ case tokens.colon:
+ this.pseudo();
+ break;
+
+ case tokens.comma:
+ this.comma();
+ break;
+
+ case tokens.asterisk:
+ this.universal();
+ break;
+
+ case tokens.ampersand:
+ this.nesting();
+ break;
+
+ case tokens.slash:
+ case tokens.combinator:
+ this.combinator();
+ break;
+
+ case tokens.str:
+ this.string();
+ break;
+ // These cases throw; no break needed.
+
+ case tokens.closeSquare:
+ this.missingSquareBracket();
+
+ case tokens.semicolon:
+ this.missingBackslash();
+
+ default:
+ this.unexpected();
+ }
+ }
+ /**
+ * Helpers
+ */
+ ;
+
+ _proto.expected = function expected(description, index, found) {
+ if (Array.isArray(description)) {
+ var last = description.pop();
+ description = description.join(', ') + " or " + last;
+ }
+
+ var an = /^[aeiou]/.test(description[0]) ? 'an' : 'a';
+
+ if (!found) {
+ return this.error("Expected " + an + " " + description + ".", {
+ index: index
+ });
+ }
+
+ return this.error("Expected " + an + " " + description + ", found \"" + found + "\" instead.", {
+ index: index
+ });
+ };
+
+ _proto.requiredSpace = function requiredSpace(space) {
+ return this.options.lossy ? ' ' : space;
+ };
+
+ _proto.optionalSpace = function optionalSpace(space) {
+ return this.options.lossy ? '' : space;
+ };
+
+ _proto.lossySpace = function lossySpace(space, required) {
+ if (this.options.lossy) {
+ return required ? ' ' : '';
+ } else {
+ return space;
+ }
+ };
+
+ _proto.parseParenthesisToken = function parseParenthesisToken(token) {
+ var content = this.content(token);
+
+ if (token[_tokenize.FIELDS.TYPE] === tokens.space) {
+ return this.requiredSpace(content);
+ } else {
+ return content;
+ }
+ };
+
+ _proto.newNode = function newNode(node, namespace) {
+ if (namespace) {
+ if (/^ +$/.test(namespace)) {
+ if (!this.options.lossy) {
+ this.spaces = (this.spaces || '') + namespace;
+ }
+
+ namespace = true;
+ }
+
+ node.namespace = namespace;
+ unescapeProp(node, "namespace");
+ }
+
+ if (this.spaces) {
+ node.spaces.before = this.spaces;
+ this.spaces = '';
+ }
+
+ return this.current.append(node);
+ };
+
+ _proto.content = function content(token) {
+ if (token === void 0) {
+ token = this.currToken;
+ }
+
+ return this.css.slice(token[_tokenize.FIELDS.START_POS], token[_tokenize.FIELDS.END_POS]);
+ };
+
+ /**
+ * returns the index of the next non-whitespace, non-comment token.
+ * returns -1 if no meaningful token is found.
+ */
+ _proto.locateNextMeaningfulToken = function locateNextMeaningfulToken(startPosition) {
+ if (startPosition === void 0) {
+ startPosition = this.position + 1;
+ }
+
+ var searchPosition = startPosition;
+
+ while (searchPosition < this.tokens.length) {
+ if (WHITESPACE_EQUIV_TOKENS[this.tokens[searchPosition][_tokenize.FIELDS.TYPE]]) {
+ searchPosition++;
+ continue;
+ } else {
+ return searchPosition;
+ }
+ }
+
+ return -1;
+ };
+
+ _createClass(Parser, [{
+ key: "currToken",
+ get: function get() {
+ return this.tokens[this.position];
+ }
+ }, {
+ key: "nextToken",
+ get: function get() {
+ return this.tokens[this.position + 1];
+ }
+ }, {
+ key: "prevToken",
+ get: function get() {
+ return this.tokens[this.position - 1];
+ }
+ }]);
+
+ return Parser;
+}();
+
+exports["default"] = Parser;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/processor.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/processor.js"
new file mode 100644
index 0000000000000000000000000000000000000000..a00170c281f96684d45901c471cf84c1e6edd8ea
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/processor.js"
@@ -0,0 +1,206 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _parser = _interopRequireDefault(require("./parser"));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+var Processor = /*#__PURE__*/function () {
+ function Processor(func, options) {
+ this.func = func || function noop() {};
+
+ this.funcRes = null;
+ this.options = options;
+ }
+
+ var _proto = Processor.prototype;
+
+ _proto._shouldUpdateSelector = function _shouldUpdateSelector(rule, options) {
+ if (options === void 0) {
+ options = {};
+ }
+
+ var merged = Object.assign({}, this.options, options);
+
+ if (merged.updateSelector === false) {
+ return false;
+ } else {
+ return typeof rule !== "string";
+ }
+ };
+
+ _proto._isLossy = function _isLossy(options) {
+ if (options === void 0) {
+ options = {};
+ }
+
+ var merged = Object.assign({}, this.options, options);
+
+ if (merged.lossless === false) {
+ return true;
+ } else {
+ return false;
+ }
+ };
+
+ _proto._root = function _root(rule, options) {
+ if (options === void 0) {
+ options = {};
+ }
+
+ var parser = new _parser["default"](rule, this._parseOptions(options));
+ return parser.root;
+ };
+
+ _proto._parseOptions = function _parseOptions(options) {
+ return {
+ lossy: this._isLossy(options)
+ };
+ };
+
+ _proto._run = function _run(rule, options) {
+ var _this = this;
+
+ if (options === void 0) {
+ options = {};
+ }
+
+ return new Promise(function (resolve, reject) {
+ try {
+ var root = _this._root(rule, options);
+
+ Promise.resolve(_this.func(root)).then(function (transform) {
+ var string = undefined;
+
+ if (_this._shouldUpdateSelector(rule, options)) {
+ string = root.toString();
+ rule.selector = string;
+ }
+
+ return {
+ transform: transform,
+ root: root,
+ string: string
+ };
+ }).then(resolve, reject);
+ } catch (e) {
+ reject(e);
+ return;
+ }
+ });
+ };
+
+ _proto._runSync = function _runSync(rule, options) {
+ if (options === void 0) {
+ options = {};
+ }
+
+ var root = this._root(rule, options);
+
+ var transform = this.func(root);
+
+ if (transform && typeof transform.then === "function") {
+ throw new Error("Selector processor returned a promise to a synchronous call.");
+ }
+
+ var string = undefined;
+
+ if (options.updateSelector && typeof rule !== "string") {
+ string = root.toString();
+ rule.selector = string;
+ }
+
+ return {
+ transform: transform,
+ root: root,
+ string: string
+ };
+ }
+ /**
+ * Process rule into a selector AST.
+ *
+ * @param rule {postcss.Rule | string} The css selector to be processed
+ * @param options The options for processing
+ * @returns {Promise} The AST of the selector after processing it.
+ */
+ ;
+
+ _proto.ast = function ast(rule, options) {
+ return this._run(rule, options).then(function (result) {
+ return result.root;
+ });
+ }
+ /**
+ * Process rule into a selector AST synchronously.
+ *
+ * @param rule {postcss.Rule | string} The css selector to be processed
+ * @param options The options for processing
+ * @returns {parser.Root} The AST of the selector after processing it.
+ */
+ ;
+
+ _proto.astSync = function astSync(rule, options) {
+ return this._runSync(rule, options).root;
+ }
+ /**
+ * Process a selector into a transformed value asynchronously
+ *
+ * @param rule {postcss.Rule | string} The css selector to be processed
+ * @param options The options for processing
+ * @returns {Promise} The value returned by the processor.
+ */
+ ;
+
+ _proto.transform = function transform(rule, options) {
+ return this._run(rule, options).then(function (result) {
+ return result.transform;
+ });
+ }
+ /**
+ * Process a selector into a transformed value synchronously.
+ *
+ * @param rule {postcss.Rule | string} The css selector to be processed
+ * @param options The options for processing
+ * @returns {any} The value returned by the processor.
+ */
+ ;
+
+ _proto.transformSync = function transformSync(rule, options) {
+ return this._runSync(rule, options).transform;
+ }
+ /**
+ * Process a selector into a new selector string asynchronously.
+ *
+ * @param rule {postcss.Rule | string} The css selector to be processed
+ * @param options The options for processing
+ * @returns {string} the selector after processing.
+ */
+ ;
+
+ _proto.process = function process(rule, options) {
+ return this._run(rule, options).then(function (result) {
+ return result.string || result.root.toString();
+ });
+ }
+ /**
+ * Process a selector into a new selector string synchronously.
+ *
+ * @param rule {postcss.Rule | string} The css selector to be processed
+ * @param options The options for processing
+ * @returns {string} the selector after processing.
+ */
+ ;
+
+ _proto.processSync = function processSync(rule, options) {
+ var result = this._runSync(rule, options);
+
+ return result.string || result.root.toString();
+ };
+
+ return Processor;
+}();
+
+exports["default"] = Processor;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/attribute.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/attribute.js"
new file mode 100644
index 0000000000000000000000000000000000000000..8f535e5d73129949176a41eff84f99d5b0f81b81
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/attribute.js"
@@ -0,0 +1,515 @@
+"use strict";
+
+exports.__esModule = true;
+exports.unescapeValue = unescapeValue;
+exports["default"] = void 0;
+
+var _cssesc = _interopRequireDefault(require("cssesc"));
+
+var _unesc = _interopRequireDefault(require("../util/unesc"));
+
+var _namespace = _interopRequireDefault(require("./namespace"));
+
+var _types = require("./types");
+
+var _CSSESC_QUOTE_OPTIONS;
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
+
+function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
+
+function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
+
+var deprecate = require("util-deprecate");
+
+var WRAPPED_IN_QUOTES = /^('|")([^]*)\1$/;
+var warnOfDeprecatedValueAssignment = deprecate(function () {}, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. " + "Call attribute.setValue() instead.");
+var warnOfDeprecatedQuotedAssignment = deprecate(function () {}, "Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.");
+var warnOfDeprecatedConstructor = deprecate(function () {}, "Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");
+
+function unescapeValue(value) {
+ var deprecatedUsage = false;
+ var quoteMark = null;
+ var unescaped = value;
+ var m = unescaped.match(WRAPPED_IN_QUOTES);
+
+ if (m) {
+ quoteMark = m[1];
+ unescaped = m[2];
+ }
+
+ unescaped = (0, _unesc["default"])(unescaped);
+
+ if (unescaped !== value) {
+ deprecatedUsage = true;
+ }
+
+ return {
+ deprecatedUsage: deprecatedUsage,
+ unescaped: unescaped,
+ quoteMark: quoteMark
+ };
+}
+
+function handleDeprecatedContructorOpts(opts) {
+ if (opts.quoteMark !== undefined) {
+ return opts;
+ }
+
+ if (opts.value === undefined) {
+ return opts;
+ }
+
+ warnOfDeprecatedConstructor();
+
+ var _unescapeValue = unescapeValue(opts.value),
+ quoteMark = _unescapeValue.quoteMark,
+ unescaped = _unescapeValue.unescaped;
+
+ if (!opts.raws) {
+ opts.raws = {};
+ }
+
+ if (opts.raws.value === undefined) {
+ opts.raws.value = opts.value;
+ }
+
+ opts.value = unescaped;
+ opts.quoteMark = quoteMark;
+ return opts;
+}
+
+var Attribute = /*#__PURE__*/function (_Namespace) {
+ _inheritsLoose(Attribute, _Namespace);
+
+ function Attribute(opts) {
+ var _this;
+
+ if (opts === void 0) {
+ opts = {};
+ }
+
+ _this = _Namespace.call(this, handleDeprecatedContructorOpts(opts)) || this;
+ _this.type = _types.ATTRIBUTE;
+ _this.raws = _this.raws || {};
+ Object.defineProperty(_this.raws, 'unquoted', {
+ get: deprecate(function () {
+ return _this.value;
+ }, "attr.raws.unquoted is deprecated. Call attr.value instead."),
+ set: deprecate(function () {
+ return _this.value;
+ }, "Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")
+ });
+ _this._constructed = true;
+ return _this;
+ }
+ /**
+ * Returns the Attribute's value quoted such that it would be legal to use
+ * in the value of a css file. The original value's quotation setting
+ * used for stringification is left unchanged. See `setValue(value, options)`
+ * if you want to control the quote settings of a new value for the attribute.
+ *
+ * You can also change the quotation used for the current value by setting quoteMark.
+ *
+ * Options:
+ * * quoteMark {'"' | "'" | null} - Use this value to quote the value. If this
+ * option is not set, the original value for quoteMark will be used. If
+ * indeterminate, a double quote is used. The legal values are:
+ * * `null` - the value will be unquoted and characters will be escaped as necessary.
+ * * `'` - the value will be quoted with a single quote and single quotes are escaped.
+ * * `"` - the value will be quoted with a double quote and double quotes are escaped.
+ * * preferCurrentQuoteMark {boolean} - if true, prefer the source quote mark
+ * over the quoteMark option value.
+ * * smart {boolean} - if true, will select a quote mark based on the value
+ * and the other options specified here. See the `smartQuoteMark()`
+ * method.
+ **/
+
+
+ var _proto = Attribute.prototype;
+
+ _proto.getQuotedValue = function getQuotedValue(options) {
+ if (options === void 0) {
+ options = {};
+ }
+
+ var quoteMark = this._determineQuoteMark(options);
+
+ var cssescopts = CSSESC_QUOTE_OPTIONS[quoteMark];
+ var escaped = (0, _cssesc["default"])(this._value, cssescopts);
+ return escaped;
+ };
+
+ _proto._determineQuoteMark = function _determineQuoteMark(options) {
+ return options.smart ? this.smartQuoteMark(options) : this.preferredQuoteMark(options);
+ }
+ /**
+ * Set the unescaped value with the specified quotation options. The value
+ * provided must not include any wrapping quote marks -- those quotes will
+ * be interpreted as part of the value and escaped accordingly.
+ */
+ ;
+
+ _proto.setValue = function setValue(value, options) {
+ if (options === void 0) {
+ options = {};
+ }
+
+ this._value = value;
+ this._quoteMark = this._determineQuoteMark(options);
+
+ this._syncRawValue();
+ }
+ /**
+ * Intelligently select a quoteMark value based on the value's contents. If
+ * the value is a legal CSS ident, it will not be quoted. Otherwise a quote
+ * mark will be picked that minimizes the number of escapes.
+ *
+ * If there's no clear winner, the quote mark from these options is used,
+ * then the source quote mark (this is inverted if `preferCurrentQuoteMark` is
+ * true). If the quoteMark is unspecified, a double quote is used.
+ *
+ * @param options This takes the quoteMark and preferCurrentQuoteMark options
+ * from the quoteValue method.
+ */
+ ;
+
+ _proto.smartQuoteMark = function smartQuoteMark(options) {
+ var v = this.value;
+ var numSingleQuotes = v.replace(/[^']/g, '').length;
+ var numDoubleQuotes = v.replace(/[^"]/g, '').length;
+
+ if (numSingleQuotes + numDoubleQuotes === 0) {
+ var escaped = (0, _cssesc["default"])(v, {
+ isIdentifier: true
+ });
+
+ if (escaped === v) {
+ return Attribute.NO_QUOTE;
+ } else {
+ var pref = this.preferredQuoteMark(options);
+
+ if (pref === Attribute.NO_QUOTE) {
+ // pick a quote mark that isn't none and see if it's smaller
+ var quote = this.quoteMark || options.quoteMark || Attribute.DOUBLE_QUOTE;
+ var opts = CSSESC_QUOTE_OPTIONS[quote];
+ var quoteValue = (0, _cssesc["default"])(v, opts);
+
+ if (quoteValue.length < escaped.length) {
+ return quote;
+ }
+ }
+
+ return pref;
+ }
+ } else if (numDoubleQuotes === numSingleQuotes) {
+ return this.preferredQuoteMark(options);
+ } else if (numDoubleQuotes < numSingleQuotes) {
+ return Attribute.DOUBLE_QUOTE;
+ } else {
+ return Attribute.SINGLE_QUOTE;
+ }
+ }
+ /**
+ * Selects the preferred quote mark based on the options and the current quote mark value.
+ * If you want the quote mark to depend on the attribute value, call `smartQuoteMark(opts)`
+ * instead.
+ */
+ ;
+
+ _proto.preferredQuoteMark = function preferredQuoteMark(options) {
+ var quoteMark = options.preferCurrentQuoteMark ? this.quoteMark : options.quoteMark;
+
+ if (quoteMark === undefined) {
+ quoteMark = options.preferCurrentQuoteMark ? options.quoteMark : this.quoteMark;
+ }
+
+ if (quoteMark === undefined) {
+ quoteMark = Attribute.DOUBLE_QUOTE;
+ }
+
+ return quoteMark;
+ };
+
+ _proto._syncRawValue = function _syncRawValue() {
+ var rawValue = (0, _cssesc["default"])(this._value, CSSESC_QUOTE_OPTIONS[this.quoteMark]);
+
+ if (rawValue === this._value) {
+ if (this.raws) {
+ delete this.raws.value;
+ }
+ } else {
+ this.raws.value = rawValue;
+ }
+ };
+
+ _proto._handleEscapes = function _handleEscapes(prop, value) {
+ if (this._constructed) {
+ var escaped = (0, _cssesc["default"])(value, {
+ isIdentifier: true
+ });
+
+ if (escaped !== value) {
+ this.raws[prop] = escaped;
+ } else {
+ delete this.raws[prop];
+ }
+ }
+ };
+
+ _proto._spacesFor = function _spacesFor(name) {
+ var attrSpaces = {
+ before: '',
+ after: ''
+ };
+ var spaces = this.spaces[name] || {};
+ var rawSpaces = this.raws.spaces && this.raws.spaces[name] || {};
+ return Object.assign(attrSpaces, spaces, rawSpaces);
+ };
+
+ _proto._stringFor = function _stringFor(name, spaceName, concat) {
+ if (spaceName === void 0) {
+ spaceName = name;
+ }
+
+ if (concat === void 0) {
+ concat = defaultAttrConcat;
+ }
+
+ var attrSpaces = this._spacesFor(spaceName);
+
+ return concat(this.stringifyProperty(name), attrSpaces);
+ }
+ /**
+ * returns the offset of the attribute part specified relative to the
+ * start of the node of the output string.
+ *
+ * * "ns" - alias for "namespace"
+ * * "namespace" - the namespace if it exists.
+ * * "attribute" - the attribute name
+ * * "attributeNS" - the start of the attribute or its namespace
+ * * "operator" - the match operator of the attribute
+ * * "value" - The value (string or identifier)
+ * * "insensitive" - the case insensitivity flag;
+ * @param part One of the possible values inside an attribute.
+ * @returns -1 if the name is invalid or the value doesn't exist in this attribute.
+ */
+ ;
+
+ _proto.offsetOf = function offsetOf(name) {
+ var count = 1;
+
+ var attributeSpaces = this._spacesFor("attribute");
+
+ count += attributeSpaces.before.length;
+
+ if (name === "namespace" || name === "ns") {
+ return this.namespace ? count : -1;
+ }
+
+ if (name === "attributeNS") {
+ return count;
+ }
+
+ count += this.namespaceString.length;
+
+ if (this.namespace) {
+ count += 1;
+ }
+
+ if (name === "attribute") {
+ return count;
+ }
+
+ count += this.stringifyProperty("attribute").length;
+ count += attributeSpaces.after.length;
+
+ var operatorSpaces = this._spacesFor("operator");
+
+ count += operatorSpaces.before.length;
+ var operator = this.stringifyProperty("operator");
+
+ if (name === "operator") {
+ return operator ? count : -1;
+ }
+
+ count += operator.length;
+ count += operatorSpaces.after.length;
+
+ var valueSpaces = this._spacesFor("value");
+
+ count += valueSpaces.before.length;
+ var value = this.stringifyProperty("value");
+
+ if (name === "value") {
+ return value ? count : -1;
+ }
+
+ count += value.length;
+ count += valueSpaces.after.length;
+
+ var insensitiveSpaces = this._spacesFor("insensitive");
+
+ count += insensitiveSpaces.before.length;
+
+ if (name === "insensitive") {
+ return this.insensitive ? count : -1;
+ }
+
+ return -1;
+ };
+
+ _proto.toString = function toString() {
+ var _this2 = this;
+
+ var selector = [this.rawSpaceBefore, '['];
+ selector.push(this._stringFor('qualifiedAttribute', 'attribute'));
+
+ if (this.operator && (this.value || this.value === '')) {
+ selector.push(this._stringFor('operator'));
+ selector.push(this._stringFor('value'));
+ selector.push(this._stringFor('insensitiveFlag', 'insensitive', function (attrValue, attrSpaces) {
+ if (attrValue.length > 0 && !_this2.quoted && attrSpaces.before.length === 0 && !(_this2.spaces.value && _this2.spaces.value.after)) {
+ attrSpaces.before = " ";
+ }
+
+ return defaultAttrConcat(attrValue, attrSpaces);
+ }));
+ }
+
+ selector.push(']');
+ selector.push(this.rawSpaceAfter);
+ return selector.join('');
+ };
+
+ _createClass(Attribute, [{
+ key: "quoted",
+ get: function get() {
+ var qm = this.quoteMark;
+ return qm === "'" || qm === '"';
+ },
+ set: function set(value) {
+ warnOfDeprecatedQuotedAssignment();
+ }
+ /**
+ * returns a single (`'`) or double (`"`) quote character if the value is quoted.
+ * returns `null` if the value is not quoted.
+ * returns `undefined` if the quotation state is unknown (this can happen when
+ * the attribute is constructed without specifying a quote mark.)
+ */
+
+ }, {
+ key: "quoteMark",
+ get: function get() {
+ return this._quoteMark;
+ }
+ /**
+ * Set the quote mark to be used by this attribute's value.
+ * If the quote mark changes, the raw (escaped) value at `attr.raws.value` of the attribute
+ * value is updated accordingly.
+ *
+ * @param {"'" | '"' | null} quoteMark The quote mark or `null` if the value should be unquoted.
+ */
+ ,
+ set: function set(quoteMark) {
+ if (!this._constructed) {
+ this._quoteMark = quoteMark;
+ return;
+ }
+
+ if (this._quoteMark !== quoteMark) {
+ this._quoteMark = quoteMark;
+
+ this._syncRawValue();
+ }
+ }
+ }, {
+ key: "qualifiedAttribute",
+ get: function get() {
+ return this.qualifiedName(this.raws.attribute || this.attribute);
+ }
+ }, {
+ key: "insensitiveFlag",
+ get: function get() {
+ return this.insensitive ? 'i' : '';
+ }
+ }, {
+ key: "value",
+ get: function get() {
+ return this._value;
+ }
+ /**
+ * Before 3.0, the value had to be set to an escaped value including any wrapped
+ * quote marks. In 3.0, the semantics of `Attribute.value` changed so that the value
+ * is unescaped during parsing and any quote marks are removed.
+ *
+ * Because the ambiguity of this semantic change, if you set `attr.value = newValue`,
+ * a deprecation warning is raised when the new value contains any characters that would
+ * require escaping (including if it contains wrapped quotes).
+ *
+ * Instead, you should call `attr.setValue(newValue, opts)` and pass options that describe
+ * how the new value is quoted.
+ */
+ ,
+ set: function set(v) {
+ if (this._constructed) {
+ var _unescapeValue2 = unescapeValue(v),
+ deprecatedUsage = _unescapeValue2.deprecatedUsage,
+ unescaped = _unescapeValue2.unescaped,
+ quoteMark = _unescapeValue2.quoteMark;
+
+ if (deprecatedUsage) {
+ warnOfDeprecatedValueAssignment();
+ }
+
+ if (unescaped === this._value && quoteMark === this._quoteMark) {
+ return;
+ }
+
+ this._value = unescaped;
+ this._quoteMark = quoteMark;
+
+ this._syncRawValue();
+ } else {
+ this._value = v;
+ }
+ }
+ }, {
+ key: "attribute",
+ get: function get() {
+ return this._attribute;
+ },
+ set: function set(name) {
+ this._handleEscapes("attribute", name);
+
+ this._attribute = name;
+ }
+ }]);
+
+ return Attribute;
+}(_namespace["default"]);
+
+exports["default"] = Attribute;
+Attribute.NO_QUOTE = null;
+Attribute.SINGLE_QUOTE = "'";
+Attribute.DOUBLE_QUOTE = '"';
+var CSSESC_QUOTE_OPTIONS = (_CSSESC_QUOTE_OPTIONS = {
+ "'": {
+ quotes: 'single',
+ wrap: true
+ },
+ '"': {
+ quotes: 'double',
+ wrap: true
+ }
+}, _CSSESC_QUOTE_OPTIONS[null] = {
+ isIdentifier: true
+}, _CSSESC_QUOTE_OPTIONS);
+
+function defaultAttrConcat(attrValue, attrSpaces) {
+ return "" + attrSpaces.before + attrValue + attrSpaces.after;
+}
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/className.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/className.js"
new file mode 100644
index 0000000000000000000000000000000000000000..22409914cf728dd09abf26b5d78156823a6d4200
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/className.js"
@@ -0,0 +1,69 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _cssesc = _interopRequireDefault(require("cssesc"));
+
+var _util = require("../util");
+
+var _node = _interopRequireDefault(require("./node"));
+
+var _types = require("./types");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
+
+function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
+
+function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
+
+var ClassName = /*#__PURE__*/function (_Node) {
+ _inheritsLoose(ClassName, _Node);
+
+ function ClassName(opts) {
+ var _this;
+
+ _this = _Node.call(this, opts) || this;
+ _this.type = _types.CLASS;
+ _this._constructed = true;
+ return _this;
+ }
+
+ var _proto = ClassName.prototype;
+
+ _proto.valueToString = function valueToString() {
+ return '.' + _Node.prototype.valueToString.call(this);
+ };
+
+ _createClass(ClassName, [{
+ key: "value",
+ get: function get() {
+ return this._value;
+ },
+ set: function set(v) {
+ if (this._constructed) {
+ var escaped = (0, _cssesc["default"])(v, {
+ isIdentifier: true
+ });
+
+ if (escaped !== v) {
+ (0, _util.ensureObject)(this, "raws");
+ this.raws.value = escaped;
+ } else if (this.raws) {
+ delete this.raws.value;
+ }
+ }
+
+ this._value = v;
+ }
+ }]);
+
+ return ClassName;
+}(_node["default"]);
+
+exports["default"] = ClassName;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/combinator.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/combinator.js"
new file mode 100644
index 0000000000000000000000000000000000000000..271ab4d3b1f4469479a6ffa277212ce989eaf6b6
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/combinator.js"
@@ -0,0 +1,31 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _node = _interopRequireDefault(require("./node"));
+
+var _types = require("./types");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
+
+function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
+
+var Combinator = /*#__PURE__*/function (_Node) {
+ _inheritsLoose(Combinator, _Node);
+
+ function Combinator(opts) {
+ var _this;
+
+ _this = _Node.call(this, opts) || this;
+ _this.type = _types.COMBINATOR;
+ return _this;
+ }
+
+ return Combinator;
+}(_node["default"]);
+
+exports["default"] = Combinator;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/comment.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/comment.js"
new file mode 100644
index 0000000000000000000000000000000000000000..e778094e110c2fc6e1f3c3ddfd484d64b11c5876
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/comment.js"
@@ -0,0 +1,31 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _node = _interopRequireDefault(require("./node"));
+
+var _types = require("./types");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
+
+function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
+
+var Comment = /*#__PURE__*/function (_Node) {
+ _inheritsLoose(Comment, _Node);
+
+ function Comment(opts) {
+ var _this;
+
+ _this = _Node.call(this, opts) || this;
+ _this.type = _types.COMMENT;
+ return _this;
+ }
+
+ return Comment;
+}(_node["default"]);
+
+exports["default"] = Comment;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/constructors.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/constructors.js"
new file mode 100644
index 0000000000000000000000000000000000000000..078023eb28f2d79d5a802ce830adf77c17377f62
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/constructors.js"
@@ -0,0 +1,102 @@
+"use strict";
+
+exports.__esModule = true;
+exports.universal = exports.tag = exports.string = exports.selector = exports.root = exports.pseudo = exports.nesting = exports.id = exports.comment = exports.combinator = exports.className = exports.attribute = void 0;
+
+var _attribute = _interopRequireDefault(require("./attribute"));
+
+var _className = _interopRequireDefault(require("./className"));
+
+var _combinator = _interopRequireDefault(require("./combinator"));
+
+var _comment = _interopRequireDefault(require("./comment"));
+
+var _id = _interopRequireDefault(require("./id"));
+
+var _nesting = _interopRequireDefault(require("./nesting"));
+
+var _pseudo = _interopRequireDefault(require("./pseudo"));
+
+var _root = _interopRequireDefault(require("./root"));
+
+var _selector = _interopRequireDefault(require("./selector"));
+
+var _string = _interopRequireDefault(require("./string"));
+
+var _tag = _interopRequireDefault(require("./tag"));
+
+var _universal = _interopRequireDefault(require("./universal"));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+var attribute = function attribute(opts) {
+ return new _attribute["default"](opts);
+};
+
+exports.attribute = attribute;
+
+var className = function className(opts) {
+ return new _className["default"](opts);
+};
+
+exports.className = className;
+
+var combinator = function combinator(opts) {
+ return new _combinator["default"](opts);
+};
+
+exports.combinator = combinator;
+
+var comment = function comment(opts) {
+ return new _comment["default"](opts);
+};
+
+exports.comment = comment;
+
+var id = function id(opts) {
+ return new _id["default"](opts);
+};
+
+exports.id = id;
+
+var nesting = function nesting(opts) {
+ return new _nesting["default"](opts);
+};
+
+exports.nesting = nesting;
+
+var pseudo = function pseudo(opts) {
+ return new _pseudo["default"](opts);
+};
+
+exports.pseudo = pseudo;
+
+var root = function root(opts) {
+ return new _root["default"](opts);
+};
+
+exports.root = root;
+
+var selector = function selector(opts) {
+ return new _selector["default"](opts);
+};
+
+exports.selector = selector;
+
+var string = function string(opts) {
+ return new _string["default"](opts);
+};
+
+exports.string = string;
+
+var tag = function tag(opts) {
+ return new _tag["default"](opts);
+};
+
+exports.tag = tag;
+
+var universal = function universal(opts) {
+ return new _universal["default"](opts);
+};
+
+exports.universal = universal;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/container.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/container.js"
new file mode 100644
index 0000000000000000000000000000000000000000..2626fb85bba85c53d7af35541cc2505575e47a10
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/container.js"
@@ -0,0 +1,395 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _node = _interopRequireDefault(require("./node"));
+
+var types = _interopRequireWildcard(require("./types"));
+
+function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
+
+function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
+
+function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
+
+function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
+
+function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
+
+function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
+
+function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
+
+var Container = /*#__PURE__*/function (_Node) {
+ _inheritsLoose(Container, _Node);
+
+ function Container(opts) {
+ var _this;
+
+ _this = _Node.call(this, opts) || this;
+
+ if (!_this.nodes) {
+ _this.nodes = [];
+ }
+
+ return _this;
+ }
+
+ var _proto = Container.prototype;
+
+ _proto.append = function append(selector) {
+ selector.parent = this;
+ this.nodes.push(selector);
+ return this;
+ };
+
+ _proto.prepend = function prepend(selector) {
+ selector.parent = this;
+ this.nodes.unshift(selector);
+ return this;
+ };
+
+ _proto.at = function at(index) {
+ return this.nodes[index];
+ };
+
+ _proto.index = function index(child) {
+ if (typeof child === 'number') {
+ return child;
+ }
+
+ return this.nodes.indexOf(child);
+ };
+
+ _proto.removeChild = function removeChild(child) {
+ child = this.index(child);
+ this.at(child).parent = undefined;
+ this.nodes.splice(child, 1);
+ var index;
+
+ for (var id in this.indexes) {
+ index = this.indexes[id];
+
+ if (index >= child) {
+ this.indexes[id] = index - 1;
+ }
+ }
+
+ return this;
+ };
+
+ _proto.removeAll = function removeAll() {
+ for (var _iterator = _createForOfIteratorHelperLoose(this.nodes), _step; !(_step = _iterator()).done;) {
+ var node = _step.value;
+ node.parent = undefined;
+ }
+
+ this.nodes = [];
+ return this;
+ };
+
+ _proto.empty = function empty() {
+ return this.removeAll();
+ };
+
+ _proto.insertAfter = function insertAfter(oldNode, newNode) {
+ newNode.parent = this;
+ var oldIndex = this.index(oldNode);
+ this.nodes.splice(oldIndex + 1, 0, newNode);
+ newNode.parent = this;
+ var index;
+
+ for (var id in this.indexes) {
+ index = this.indexes[id];
+
+ if (oldIndex <= index) {
+ this.indexes[id] = index + 1;
+ }
+ }
+
+ return this;
+ };
+
+ _proto.insertBefore = function insertBefore(oldNode, newNode) {
+ newNode.parent = this;
+ var oldIndex = this.index(oldNode);
+ this.nodes.splice(oldIndex, 0, newNode);
+ newNode.parent = this;
+ var index;
+
+ for (var id in this.indexes) {
+ index = this.indexes[id];
+
+ if (index <= oldIndex) {
+ this.indexes[id] = index + 1;
+ }
+ }
+
+ return this;
+ };
+
+ _proto._findChildAtPosition = function _findChildAtPosition(line, col) {
+ var found = undefined;
+ this.each(function (node) {
+ if (node.atPosition) {
+ var foundChild = node.atPosition(line, col);
+
+ if (foundChild) {
+ found = foundChild;
+ return false;
+ }
+ } else if (node.isAtPosition(line, col)) {
+ found = node;
+ return false;
+ }
+ });
+ return found;
+ }
+ /**
+ * Return the most specific node at the line and column number given.
+ * The source location is based on the original parsed location, locations aren't
+ * updated as selector nodes are mutated.
+ *
+ * Note that this location is relative to the location of the first character
+ * of the selector, and not the location of the selector in the overall document
+ * when used in conjunction with postcss.
+ *
+ * If not found, returns undefined.
+ * @param {number} line The line number of the node to find. (1-based index)
+ * @param {number} col The column number of the node to find. (1-based index)
+ */
+ ;
+
+ _proto.atPosition = function atPosition(line, col) {
+ if (this.isAtPosition(line, col)) {
+ return this._findChildAtPosition(line, col) || this;
+ } else {
+ return undefined;
+ }
+ };
+
+ _proto._inferEndPosition = function _inferEndPosition() {
+ if (this.last && this.last.source && this.last.source.end) {
+ this.source = this.source || {};
+ this.source.end = this.source.end || {};
+ Object.assign(this.source.end, this.last.source.end);
+ }
+ };
+
+ _proto.each = function each(callback) {
+ if (!this.lastEach) {
+ this.lastEach = 0;
+ }
+
+ if (!this.indexes) {
+ this.indexes = {};
+ }
+
+ this.lastEach++;
+ var id = this.lastEach;
+ this.indexes[id] = 0;
+
+ if (!this.length) {
+ return undefined;
+ }
+
+ var index, result;
+
+ while (this.indexes[id] < this.length) {
+ index = this.indexes[id];
+ result = callback(this.at(index), index);
+
+ if (result === false) {
+ break;
+ }
+
+ this.indexes[id] += 1;
+ }
+
+ delete this.indexes[id];
+
+ if (result === false) {
+ return false;
+ }
+ };
+
+ _proto.walk = function walk(callback) {
+ return this.each(function (node, i) {
+ var result = callback(node, i);
+
+ if (result !== false && node.length) {
+ result = node.walk(callback);
+ }
+
+ if (result === false) {
+ return false;
+ }
+ });
+ };
+
+ _proto.walkAttributes = function walkAttributes(callback) {
+ var _this2 = this;
+
+ return this.walk(function (selector) {
+ if (selector.type === types.ATTRIBUTE) {
+ return callback.call(_this2, selector);
+ }
+ });
+ };
+
+ _proto.walkClasses = function walkClasses(callback) {
+ var _this3 = this;
+
+ return this.walk(function (selector) {
+ if (selector.type === types.CLASS) {
+ return callback.call(_this3, selector);
+ }
+ });
+ };
+
+ _proto.walkCombinators = function walkCombinators(callback) {
+ var _this4 = this;
+
+ return this.walk(function (selector) {
+ if (selector.type === types.COMBINATOR) {
+ return callback.call(_this4, selector);
+ }
+ });
+ };
+
+ _proto.walkComments = function walkComments(callback) {
+ var _this5 = this;
+
+ return this.walk(function (selector) {
+ if (selector.type === types.COMMENT) {
+ return callback.call(_this5, selector);
+ }
+ });
+ };
+
+ _proto.walkIds = function walkIds(callback) {
+ var _this6 = this;
+
+ return this.walk(function (selector) {
+ if (selector.type === types.ID) {
+ return callback.call(_this6, selector);
+ }
+ });
+ };
+
+ _proto.walkNesting = function walkNesting(callback) {
+ var _this7 = this;
+
+ return this.walk(function (selector) {
+ if (selector.type === types.NESTING) {
+ return callback.call(_this7, selector);
+ }
+ });
+ };
+
+ _proto.walkPseudos = function walkPseudos(callback) {
+ var _this8 = this;
+
+ return this.walk(function (selector) {
+ if (selector.type === types.PSEUDO) {
+ return callback.call(_this8, selector);
+ }
+ });
+ };
+
+ _proto.walkTags = function walkTags(callback) {
+ var _this9 = this;
+
+ return this.walk(function (selector) {
+ if (selector.type === types.TAG) {
+ return callback.call(_this9, selector);
+ }
+ });
+ };
+
+ _proto.walkUniversals = function walkUniversals(callback) {
+ var _this10 = this;
+
+ return this.walk(function (selector) {
+ if (selector.type === types.UNIVERSAL) {
+ return callback.call(_this10, selector);
+ }
+ });
+ };
+
+ _proto.split = function split(callback) {
+ var _this11 = this;
+
+ var current = [];
+ return this.reduce(function (memo, node, index) {
+ var split = callback.call(_this11, node);
+ current.push(node);
+
+ if (split) {
+ memo.push(current);
+ current = [];
+ } else if (index === _this11.length - 1) {
+ memo.push(current);
+ }
+
+ return memo;
+ }, []);
+ };
+
+ _proto.map = function map(callback) {
+ return this.nodes.map(callback);
+ };
+
+ _proto.reduce = function reduce(callback, memo) {
+ return this.nodes.reduce(callback, memo);
+ };
+
+ _proto.every = function every(callback) {
+ return this.nodes.every(callback);
+ };
+
+ _proto.some = function some(callback) {
+ return this.nodes.some(callback);
+ };
+
+ _proto.filter = function filter(callback) {
+ return this.nodes.filter(callback);
+ };
+
+ _proto.sort = function sort(callback) {
+ return this.nodes.sort(callback);
+ };
+
+ _proto.toString = function toString() {
+ return this.map(String).join('');
+ };
+
+ _createClass(Container, [{
+ key: "first",
+ get: function get() {
+ return this.at(0);
+ }
+ }, {
+ key: "last",
+ get: function get() {
+ return this.at(this.length - 1);
+ }
+ }, {
+ key: "length",
+ get: function get() {
+ return this.nodes.length;
+ }
+ }]);
+
+ return Container;
+}(_node["default"]);
+
+exports["default"] = Container;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/guards.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/guards.js"
new file mode 100644
index 0000000000000000000000000000000000000000..aa769128cf63c928263ac5da0532cab1262f1f66
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/guards.js"
@@ -0,0 +1,64 @@
+"use strict";
+
+exports.__esModule = true;
+exports.isNode = isNode;
+exports.isPseudoElement = isPseudoElement;
+exports.isPseudoClass = isPseudoClass;
+exports.isContainer = isContainer;
+exports.isNamespace = isNamespace;
+exports.isUniversal = exports.isTag = exports.isString = exports.isSelector = exports.isRoot = exports.isPseudo = exports.isNesting = exports.isIdentifier = exports.isComment = exports.isCombinator = exports.isClassName = exports.isAttribute = void 0;
+
+var _types = require("./types");
+
+var _IS_TYPE;
+
+var IS_TYPE = (_IS_TYPE = {}, _IS_TYPE[_types.ATTRIBUTE] = true, _IS_TYPE[_types.CLASS] = true, _IS_TYPE[_types.COMBINATOR] = true, _IS_TYPE[_types.COMMENT] = true, _IS_TYPE[_types.ID] = true, _IS_TYPE[_types.NESTING] = true, _IS_TYPE[_types.PSEUDO] = true, _IS_TYPE[_types.ROOT] = true, _IS_TYPE[_types.SELECTOR] = true, _IS_TYPE[_types.STRING] = true, _IS_TYPE[_types.TAG] = true, _IS_TYPE[_types.UNIVERSAL] = true, _IS_TYPE);
+
+function isNode(node) {
+ return typeof node === "object" && IS_TYPE[node.type];
+}
+
+function isNodeType(type, node) {
+ return isNode(node) && node.type === type;
+}
+
+var isAttribute = isNodeType.bind(null, _types.ATTRIBUTE);
+exports.isAttribute = isAttribute;
+var isClassName = isNodeType.bind(null, _types.CLASS);
+exports.isClassName = isClassName;
+var isCombinator = isNodeType.bind(null, _types.COMBINATOR);
+exports.isCombinator = isCombinator;
+var isComment = isNodeType.bind(null, _types.COMMENT);
+exports.isComment = isComment;
+var isIdentifier = isNodeType.bind(null, _types.ID);
+exports.isIdentifier = isIdentifier;
+var isNesting = isNodeType.bind(null, _types.NESTING);
+exports.isNesting = isNesting;
+var isPseudo = isNodeType.bind(null, _types.PSEUDO);
+exports.isPseudo = isPseudo;
+var isRoot = isNodeType.bind(null, _types.ROOT);
+exports.isRoot = isRoot;
+var isSelector = isNodeType.bind(null, _types.SELECTOR);
+exports.isSelector = isSelector;
+var isString = isNodeType.bind(null, _types.STRING);
+exports.isString = isString;
+var isTag = isNodeType.bind(null, _types.TAG);
+exports.isTag = isTag;
+var isUniversal = isNodeType.bind(null, _types.UNIVERSAL);
+exports.isUniversal = isUniversal;
+
+function isPseudoElement(node) {
+ return isPseudo(node) && node.value && (node.value.startsWith("::") || node.value.toLowerCase() === ":before" || node.value.toLowerCase() === ":after");
+}
+
+function isPseudoClass(node) {
+ return isPseudo(node) && !isPseudoElement(node);
+}
+
+function isContainer(node) {
+ return !!(isNode(node) && node.walk);
+}
+
+function isNamespace(node) {
+ return isAttribute(node) || isTag(node);
+}
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/id.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/id.js"
new file mode 100644
index 0000000000000000000000000000000000000000..4e83147e3c4efb80279f1a8f82139ac47993b32c
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/id.js"
@@ -0,0 +1,37 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _node = _interopRequireDefault(require("./node"));
+
+var _types = require("./types");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
+
+function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
+
+var ID = /*#__PURE__*/function (_Node) {
+ _inheritsLoose(ID, _Node);
+
+ function ID(opts) {
+ var _this;
+
+ _this = _Node.call(this, opts) || this;
+ _this.type = _types.ID;
+ return _this;
+ }
+
+ var _proto = ID.prototype;
+
+ _proto.valueToString = function valueToString() {
+ return '#' + _Node.prototype.valueToString.call(this);
+ };
+
+ return ID;
+}(_node["default"]);
+
+exports["default"] = ID;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/index.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/index.js"
new file mode 100644
index 0000000000000000000000000000000000000000..1fe9b138a5a26e0314f2a0606041594c558c9088
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/index.js"
@@ -0,0 +1,27 @@
+"use strict";
+
+exports.__esModule = true;
+
+var _types = require("./types");
+
+Object.keys(_types).forEach(function (key) {
+ if (key === "default" || key === "__esModule") return;
+ if (key in exports && exports[key] === _types[key]) return;
+ exports[key] = _types[key];
+});
+
+var _constructors = require("./constructors");
+
+Object.keys(_constructors).forEach(function (key) {
+ if (key === "default" || key === "__esModule") return;
+ if (key in exports && exports[key] === _constructors[key]) return;
+ exports[key] = _constructors[key];
+});
+
+var _guards = require("./guards");
+
+Object.keys(_guards).forEach(function (key) {
+ if (key === "default" || key === "__esModule") return;
+ if (key in exports && exports[key] === _guards[key]) return;
+ exports[key] = _guards[key];
+});
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/namespace.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/namespace.js"
new file mode 100644
index 0000000000000000000000000000000000000000..fd6c729e16661f65b0c79d5a3f1b813fadc101f5
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/namespace.js"
@@ -0,0 +1,101 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _cssesc = _interopRequireDefault(require("cssesc"));
+
+var _util = require("../util");
+
+var _node = _interopRequireDefault(require("./node"));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
+
+function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
+
+function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
+
+var Namespace = /*#__PURE__*/function (_Node) {
+ _inheritsLoose(Namespace, _Node);
+
+ function Namespace() {
+ return _Node.apply(this, arguments) || this;
+ }
+
+ var _proto = Namespace.prototype;
+
+ _proto.qualifiedName = function qualifiedName(value) {
+ if (this.namespace) {
+ return this.namespaceString + "|" + value;
+ } else {
+ return value;
+ }
+ };
+
+ _proto.valueToString = function valueToString() {
+ return this.qualifiedName(_Node.prototype.valueToString.call(this));
+ };
+
+ _createClass(Namespace, [{
+ key: "namespace",
+ get: function get() {
+ return this._namespace;
+ },
+ set: function set(namespace) {
+ if (namespace === true || namespace === "*" || namespace === "&") {
+ this._namespace = namespace;
+
+ if (this.raws) {
+ delete this.raws.namespace;
+ }
+
+ return;
+ }
+
+ var escaped = (0, _cssesc["default"])(namespace, {
+ isIdentifier: true
+ });
+ this._namespace = namespace;
+
+ if (escaped !== namespace) {
+ (0, _util.ensureObject)(this, "raws");
+ this.raws.namespace = escaped;
+ } else if (this.raws) {
+ delete this.raws.namespace;
+ }
+ }
+ }, {
+ key: "ns",
+ get: function get() {
+ return this._namespace;
+ },
+ set: function set(namespace) {
+ this.namespace = namespace;
+ }
+ }, {
+ key: "namespaceString",
+ get: function get() {
+ if (this.namespace) {
+ var ns = this.stringifyProperty("namespace");
+
+ if (ns === true) {
+ return '';
+ } else {
+ return ns;
+ }
+ } else {
+ return '';
+ }
+ }
+ }]);
+
+ return Namespace;
+}(_node["default"]);
+
+exports["default"] = Namespace;
+;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/nesting.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/nesting.js"
new file mode 100644
index 0000000000000000000000000000000000000000..3288c78f2dddba8a44ecf70f29c7ba4754f73299
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/nesting.js"
@@ -0,0 +1,32 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _node = _interopRequireDefault(require("./node"));
+
+var _types = require("./types");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
+
+function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
+
+var Nesting = /*#__PURE__*/function (_Node) {
+ _inheritsLoose(Nesting, _Node);
+
+ function Nesting(opts) {
+ var _this;
+
+ _this = _Node.call(this, opts) || this;
+ _this.type = _types.NESTING;
+ _this.value = '&';
+ return _this;
+ }
+
+ return Nesting;
+}(_node["default"]);
+
+exports["default"] = Nesting;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/node.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/node.js"
new file mode 100644
index 0000000000000000000000000000000000000000..e8eca11c70ecf46dac555dcd7e8e5f873f2a1402
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/node.js"
@@ -0,0 +1,239 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _util = require("../util");
+
+function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
+
+function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
+
+var cloneNode = function cloneNode(obj, parent) {
+ if (typeof obj !== 'object' || obj === null) {
+ return obj;
+ }
+
+ var cloned = new obj.constructor();
+
+ for (var i in obj) {
+ if (!obj.hasOwnProperty(i)) {
+ continue;
+ }
+
+ var value = obj[i];
+ var type = typeof value;
+
+ if (i === 'parent' && type === 'object') {
+ if (parent) {
+ cloned[i] = parent;
+ }
+ } else if (value instanceof Array) {
+ cloned[i] = value.map(function (j) {
+ return cloneNode(j, cloned);
+ });
+ } else {
+ cloned[i] = cloneNode(value, cloned);
+ }
+ }
+
+ return cloned;
+};
+
+var Node = /*#__PURE__*/function () {
+ function Node(opts) {
+ if (opts === void 0) {
+ opts = {};
+ }
+
+ Object.assign(this, opts);
+ this.spaces = this.spaces || {};
+ this.spaces.before = this.spaces.before || '';
+ this.spaces.after = this.spaces.after || '';
+ }
+
+ var _proto = Node.prototype;
+
+ _proto.remove = function remove() {
+ if (this.parent) {
+ this.parent.removeChild(this);
+ }
+
+ this.parent = undefined;
+ return this;
+ };
+
+ _proto.replaceWith = function replaceWith() {
+ if (this.parent) {
+ for (var index in arguments) {
+ this.parent.insertBefore(this, arguments[index]);
+ }
+
+ this.remove();
+ }
+
+ return this;
+ };
+
+ _proto.next = function next() {
+ return this.parent.at(this.parent.index(this) + 1);
+ };
+
+ _proto.prev = function prev() {
+ return this.parent.at(this.parent.index(this) - 1);
+ };
+
+ _proto.clone = function clone(overrides) {
+ if (overrides === void 0) {
+ overrides = {};
+ }
+
+ var cloned = cloneNode(this);
+
+ for (var name in overrides) {
+ cloned[name] = overrides[name];
+ }
+
+ return cloned;
+ }
+ /**
+ * Some non-standard syntax doesn't follow normal escaping rules for css.
+ * This allows non standard syntax to be appended to an existing property
+ * by specifying the escaped value. By specifying the escaped value,
+ * illegal characters are allowed to be directly inserted into css output.
+ * @param {string} name the property to set
+ * @param {any} value the unescaped value of the property
+ * @param {string} valueEscaped optional. the escaped value of the property.
+ */
+ ;
+
+ _proto.appendToPropertyAndEscape = function appendToPropertyAndEscape(name, value, valueEscaped) {
+ if (!this.raws) {
+ this.raws = {};
+ }
+
+ var originalValue = this[name];
+ var originalEscaped = this.raws[name];
+ this[name] = originalValue + value; // this may trigger a setter that updates raws, so it has to be set first.
+
+ if (originalEscaped || valueEscaped !== value) {
+ this.raws[name] = (originalEscaped || originalValue) + valueEscaped;
+ } else {
+ delete this.raws[name]; // delete any escaped value that was created by the setter.
+ }
+ }
+ /**
+ * Some non-standard syntax doesn't follow normal escaping rules for css.
+ * This allows the escaped value to be specified directly, allowing illegal
+ * characters to be directly inserted into css output.
+ * @param {string} name the property to set
+ * @param {any} value the unescaped value of the property
+ * @param {string} valueEscaped the escaped value of the property.
+ */
+ ;
+
+ _proto.setPropertyAndEscape = function setPropertyAndEscape(name, value, valueEscaped) {
+ if (!this.raws) {
+ this.raws = {};
+ }
+
+ this[name] = value; // this may trigger a setter that updates raws, so it has to be set first.
+
+ this.raws[name] = valueEscaped;
+ }
+ /**
+ * When you want a value to passed through to CSS directly. This method
+ * deletes the corresponding raw value causing the stringifier to fallback
+ * to the unescaped value.
+ * @param {string} name the property to set.
+ * @param {any} value The value that is both escaped and unescaped.
+ */
+ ;
+
+ _proto.setPropertyWithoutEscape = function setPropertyWithoutEscape(name, value) {
+ this[name] = value; // this may trigger a setter that updates raws, so it has to be set first.
+
+ if (this.raws) {
+ delete this.raws[name];
+ }
+ }
+ /**
+ *
+ * @param {number} line The number (starting with 1)
+ * @param {number} column The column number (starting with 1)
+ */
+ ;
+
+ _proto.isAtPosition = function isAtPosition(line, column) {
+ if (this.source && this.source.start && this.source.end) {
+ if (this.source.start.line > line) {
+ return false;
+ }
+
+ if (this.source.end.line < line) {
+ return false;
+ }
+
+ if (this.source.start.line === line && this.source.start.column > column) {
+ return false;
+ }
+
+ if (this.source.end.line === line && this.source.end.column < column) {
+ return false;
+ }
+
+ return true;
+ }
+
+ return undefined;
+ };
+
+ _proto.stringifyProperty = function stringifyProperty(name) {
+ return this.raws && this.raws[name] || this[name];
+ };
+
+ _proto.valueToString = function valueToString() {
+ return String(this.stringifyProperty("value"));
+ };
+
+ _proto.toString = function toString() {
+ return [this.rawSpaceBefore, this.valueToString(), this.rawSpaceAfter].join('');
+ };
+
+ _createClass(Node, [{
+ key: "rawSpaceBefore",
+ get: function get() {
+ var rawSpace = this.raws && this.raws.spaces && this.raws.spaces.before;
+
+ if (rawSpace === undefined) {
+ rawSpace = this.spaces && this.spaces.before;
+ }
+
+ return rawSpace || "";
+ },
+ set: function set(raw) {
+ (0, _util.ensureObject)(this, "raws", "spaces");
+ this.raws.spaces.before = raw;
+ }
+ }, {
+ key: "rawSpaceAfter",
+ get: function get() {
+ var rawSpace = this.raws && this.raws.spaces && this.raws.spaces.after;
+
+ if (rawSpace === undefined) {
+ rawSpace = this.spaces.after;
+ }
+
+ return rawSpace || "";
+ },
+ set: function set(raw) {
+ (0, _util.ensureObject)(this, "raws", "spaces");
+ this.raws.spaces.after = raw;
+ }
+ }]);
+
+ return Node;
+}();
+
+exports["default"] = Node;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/pseudo.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/pseudo.js"
new file mode 100644
index 0000000000000000000000000000000000000000..a0e7bca170a76d6746f4dbfcb79068fd64d6af19
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/pseudo.js"
@@ -0,0 +1,38 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _container = _interopRequireDefault(require("./container"));
+
+var _types = require("./types");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
+
+function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
+
+var Pseudo = /*#__PURE__*/function (_Container) {
+ _inheritsLoose(Pseudo, _Container);
+
+ function Pseudo(opts) {
+ var _this;
+
+ _this = _Container.call(this, opts) || this;
+ _this.type = _types.PSEUDO;
+ return _this;
+ }
+
+ var _proto = Pseudo.prototype;
+
+ _proto.toString = function toString() {
+ var params = this.length ? '(' + this.map(String).join(',') + ')' : '';
+ return [this.rawSpaceBefore, this.stringifyProperty("value"), params, this.rawSpaceAfter].join('');
+ };
+
+ return Pseudo;
+}(_container["default"]);
+
+exports["default"] = Pseudo;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/root.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/root.js"
new file mode 100644
index 0000000000000000000000000000000000000000..be5c2ccb2dac833fdfc627fde45f161e23825ff0
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/root.js"
@@ -0,0 +1,60 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _container = _interopRequireDefault(require("./container"));
+
+var _types = require("./types");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
+
+function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
+
+function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
+
+var Root = /*#__PURE__*/function (_Container) {
+ _inheritsLoose(Root, _Container);
+
+ function Root(opts) {
+ var _this;
+
+ _this = _Container.call(this, opts) || this;
+ _this.type = _types.ROOT;
+ return _this;
+ }
+
+ var _proto = Root.prototype;
+
+ _proto.toString = function toString() {
+ var str = this.reduce(function (memo, selector) {
+ memo.push(String(selector));
+ return memo;
+ }, []).join(',');
+ return this.trailingComma ? str + ',' : str;
+ };
+
+ _proto.error = function error(message, options) {
+ if (this._error) {
+ return this._error(message, options);
+ } else {
+ return new Error(message);
+ }
+ };
+
+ _createClass(Root, [{
+ key: "errorGenerator",
+ set: function set(handler) {
+ this._error = handler;
+ }
+ }]);
+
+ return Root;
+}(_container["default"]);
+
+exports["default"] = Root;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/selector.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/selector.js"
new file mode 100644
index 0000000000000000000000000000000000000000..699eeb6e546f912c111ae620c46948e7add4e122
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/selector.js"
@@ -0,0 +1,31 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _container = _interopRequireDefault(require("./container"));
+
+var _types = require("./types");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
+
+function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
+
+var Selector = /*#__PURE__*/function (_Container) {
+ _inheritsLoose(Selector, _Container);
+
+ function Selector(opts) {
+ var _this;
+
+ _this = _Container.call(this, opts) || this;
+ _this.type = _types.SELECTOR;
+ return _this;
+ }
+
+ return Selector;
+}(_container["default"]);
+
+exports["default"] = Selector;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/string.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/string.js"
new file mode 100644
index 0000000000000000000000000000000000000000..e61df30c74a0a3ac416e04f95740251cd661c50e
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/string.js"
@@ -0,0 +1,31 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _node = _interopRequireDefault(require("./node"));
+
+var _types = require("./types");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
+
+function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
+
+var String = /*#__PURE__*/function (_Node) {
+ _inheritsLoose(String, _Node);
+
+ function String(opts) {
+ var _this;
+
+ _this = _Node.call(this, opts) || this;
+ _this.type = _types.STRING;
+ return _this;
+ }
+
+ return String;
+}(_node["default"]);
+
+exports["default"] = String;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/tag.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/tag.js"
new file mode 100644
index 0000000000000000000000000000000000000000..e298db15fafd1f7857825136459f14da71c9bf26
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/tag.js"
@@ -0,0 +1,31 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _namespace = _interopRequireDefault(require("./namespace"));
+
+var _types = require("./types");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
+
+function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
+
+var Tag = /*#__PURE__*/function (_Namespace) {
+ _inheritsLoose(Tag, _Namespace);
+
+ function Tag(opts) {
+ var _this;
+
+ _this = _Namespace.call(this, opts) || this;
+ _this.type = _types.TAG;
+ return _this;
+ }
+
+ return Tag;
+}(_namespace["default"]);
+
+exports["default"] = Tag;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/types.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/types.js"
new file mode 100644
index 0000000000000000000000000000000000000000..ab897b8ce5c129e34363d2980e65d0208eb2fa1a
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/types.js"
@@ -0,0 +1,28 @@
+"use strict";
+
+exports.__esModule = true;
+exports.UNIVERSAL = exports.ATTRIBUTE = exports.CLASS = exports.COMBINATOR = exports.COMMENT = exports.ID = exports.NESTING = exports.PSEUDO = exports.ROOT = exports.SELECTOR = exports.STRING = exports.TAG = void 0;
+var TAG = 'tag';
+exports.TAG = TAG;
+var STRING = 'string';
+exports.STRING = STRING;
+var SELECTOR = 'selector';
+exports.SELECTOR = SELECTOR;
+var ROOT = 'root';
+exports.ROOT = ROOT;
+var PSEUDO = 'pseudo';
+exports.PSEUDO = PSEUDO;
+var NESTING = 'nesting';
+exports.NESTING = NESTING;
+var ID = 'id';
+exports.ID = ID;
+var COMMENT = 'comment';
+exports.COMMENT = COMMENT;
+var COMBINATOR = 'combinator';
+exports.COMBINATOR = COMBINATOR;
+var CLASS = 'class';
+exports.CLASS = CLASS;
+var ATTRIBUTE = 'attribute';
+exports.ATTRIBUTE = ATTRIBUTE;
+var UNIVERSAL = 'universal';
+exports.UNIVERSAL = UNIVERSAL;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/universal.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/universal.js"
new file mode 100644
index 0000000000000000000000000000000000000000..cf25473d1c3d4d56b68322066f88072876f266f1
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/selectors/universal.js"
@@ -0,0 +1,32 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = void 0;
+
+var _namespace = _interopRequireDefault(require("./namespace"));
+
+var _types = require("./types");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
+
+function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
+
+var Universal = /*#__PURE__*/function (_Namespace) {
+ _inheritsLoose(Universal, _Namespace);
+
+ function Universal(opts) {
+ var _this;
+
+ _this = _Namespace.call(this, opts) || this;
+ _this.type = _types.UNIVERSAL;
+ _this.value = '*';
+ return _this;
+ }
+
+ return Universal;
+}(_namespace["default"]);
+
+exports["default"] = Universal;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/sortAscending.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/sortAscending.js"
new file mode 100644
index 0000000000000000000000000000000000000000..3ef56acc570c8f4f5292c7722f68e9c9fd205996
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/sortAscending.js"
@@ -0,0 +1,13 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = sortAscending;
+
+function sortAscending(list) {
+ return list.sort(function (a, b) {
+ return a - b;
+ });
+}
+
+;
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/tokenTypes.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/tokenTypes.js"
new file mode 100644
index 0000000000000000000000000000000000000000..48314b93e00581dc5ab7e56b3facc856d284c23a
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/tokenTypes.js"
@@ -0,0 +1,95 @@
+"use strict";
+
+exports.__esModule = true;
+exports.combinator = exports.word = exports.comment = exports.str = exports.tab = exports.newline = exports.feed = exports.cr = exports.backslash = exports.bang = exports.slash = exports.doubleQuote = exports.singleQuote = exports.space = exports.greaterThan = exports.pipe = exports.equals = exports.plus = exports.caret = exports.tilde = exports.dollar = exports.closeSquare = exports.openSquare = exports.closeParenthesis = exports.openParenthesis = exports.semicolon = exports.colon = exports.comma = exports.at = exports.asterisk = exports.ampersand = void 0;
+var ampersand = 38; // `&`.charCodeAt(0);
+
+exports.ampersand = ampersand;
+var asterisk = 42; // `*`.charCodeAt(0);
+
+exports.asterisk = asterisk;
+var at = 64; // `@`.charCodeAt(0);
+
+exports.at = at;
+var comma = 44; // `,`.charCodeAt(0);
+
+exports.comma = comma;
+var colon = 58; // `:`.charCodeAt(0);
+
+exports.colon = colon;
+var semicolon = 59; // `;`.charCodeAt(0);
+
+exports.semicolon = semicolon;
+var openParenthesis = 40; // `(`.charCodeAt(0);
+
+exports.openParenthesis = openParenthesis;
+var closeParenthesis = 41; // `)`.charCodeAt(0);
+
+exports.closeParenthesis = closeParenthesis;
+var openSquare = 91; // `[`.charCodeAt(0);
+
+exports.openSquare = openSquare;
+var closeSquare = 93; // `]`.charCodeAt(0);
+
+exports.closeSquare = closeSquare;
+var dollar = 36; // `$`.charCodeAt(0);
+
+exports.dollar = dollar;
+var tilde = 126; // `~`.charCodeAt(0);
+
+exports.tilde = tilde;
+var caret = 94; // `^`.charCodeAt(0);
+
+exports.caret = caret;
+var plus = 43; // `+`.charCodeAt(0);
+
+exports.plus = plus;
+var equals = 61; // `=`.charCodeAt(0);
+
+exports.equals = equals;
+var pipe = 124; // `|`.charCodeAt(0);
+
+exports.pipe = pipe;
+var greaterThan = 62; // `>`.charCodeAt(0);
+
+exports.greaterThan = greaterThan;
+var space = 32; // ` `.charCodeAt(0);
+
+exports.space = space;
+var singleQuote = 39; // `'`.charCodeAt(0);
+
+exports.singleQuote = singleQuote;
+var doubleQuote = 34; // `"`.charCodeAt(0);
+
+exports.doubleQuote = doubleQuote;
+var slash = 47; // `/`.charCodeAt(0);
+
+exports.slash = slash;
+var bang = 33; // `!`.charCodeAt(0);
+
+exports.bang = bang;
+var backslash = 92; // '\\'.charCodeAt(0);
+
+exports.backslash = backslash;
+var cr = 13; // '\r'.charCodeAt(0);
+
+exports.cr = cr;
+var feed = 12; // '\f'.charCodeAt(0);
+
+exports.feed = feed;
+var newline = 10; // '\n'.charCodeAt(0);
+
+exports.newline = newline;
+var tab = 9; // '\t'.charCodeAt(0);
+// Expose aliases primarily for readability.
+
+exports.tab = tab;
+var str = singleQuote; // No good single character representation!
+
+exports.str = str;
+var comment = -1;
+exports.comment = comment;
+var word = -2;
+exports.word = word;
+var combinator = -3;
+exports.combinator = combinator;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/tokenize.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/tokenize.js"
new file mode 100644
index 0000000000000000000000000000000000000000..bee9fee632e84c56c0c83c7e848c64781618cf79
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/tokenize.js"
@@ -0,0 +1,271 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = tokenize;
+exports.FIELDS = void 0;
+
+var t = _interopRequireWildcard(require("./tokenTypes"));
+
+var _unescapable, _wordDelimiters;
+
+function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
+
+function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
+
+var unescapable = (_unescapable = {}, _unescapable[t.tab] = true, _unescapable[t.newline] = true, _unescapable[t.cr] = true, _unescapable[t.feed] = true, _unescapable);
+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);
+var hex = {};
+var hexChars = "0123456789abcdefABCDEF";
+
+for (var i = 0; i < hexChars.length; i++) {
+ hex[hexChars.charCodeAt(i)] = true;
+}
+/**
+ * Returns the last index of the bar css word
+ * @param {string} css The string in which the word begins
+ * @param {number} start The index into the string where word's first letter occurs
+ */
+
+
+function consumeWord(css, start) {
+ var next = start;
+ var code;
+
+ do {
+ code = css.charCodeAt(next);
+
+ if (wordDelimiters[code]) {
+ return next - 1;
+ } else if (code === t.backslash) {
+ next = consumeEscape(css, next) + 1;
+ } else {
+ // All other characters are part of the word
+ next++;
+ }
+ } while (next < css.length);
+
+ return next - 1;
+}
+/**
+ * Returns the last index of the escape sequence
+ * @param {string} css The string in which the sequence begins
+ * @param {number} start The index into the string where escape character (`\`) occurs.
+ */
+
+
+function consumeEscape(css, start) {
+ var next = start;
+ var code = css.charCodeAt(next + 1);
+
+ if (unescapable[code]) {// just consume the escape char
+ } else if (hex[code]) {
+ var hexDigits = 0; // consume up to 6 hex chars
+
+ do {
+ next++;
+ hexDigits++;
+ code = css.charCodeAt(next + 1);
+ } while (hex[code] && hexDigits < 6); // if fewer than 6 hex chars, a trailing space ends the escape
+
+
+ if (hexDigits < 6 && code === t.space) {
+ next++;
+ }
+ } else {
+ // the next char is part of the current word
+ next++;
+ }
+
+ return next;
+}
+
+var FIELDS = {
+ TYPE: 0,
+ START_LINE: 1,
+ START_COL: 2,
+ END_LINE: 3,
+ END_COL: 4,
+ START_POS: 5,
+ END_POS: 6
+};
+exports.FIELDS = FIELDS;
+
+function tokenize(input) {
+ var tokens = [];
+ var css = input.css.valueOf();
+ var _css = css,
+ length = _css.length;
+ var offset = -1;
+ var line = 1;
+ var start = 0;
+ var end = 0;
+ var code, content, endColumn, endLine, escaped, escapePos, last, lines, next, nextLine, nextOffset, quote, tokenType;
+
+ function unclosed(what, fix) {
+ if (input.safe) {
+ // fyi: this is never set to true.
+ css += fix;
+ next = css.length - 1;
+ } else {
+ throw input.error('Unclosed ' + what, line, start - offset, start);
+ }
+ }
+
+ while (start < length) {
+ code = css.charCodeAt(start);
+
+ if (code === t.newline) {
+ offset = start;
+ line += 1;
+ }
+
+ switch (code) {
+ case t.space:
+ case t.tab:
+ case t.newline:
+ case t.cr:
+ case t.feed:
+ next = start;
+
+ do {
+ next += 1;
+ code = css.charCodeAt(next);
+
+ if (code === t.newline) {
+ offset = next;
+ line += 1;
+ }
+ } while (code === t.space || code === t.newline || code === t.tab || code === t.cr || code === t.feed);
+
+ tokenType = t.space;
+ endLine = line;
+ endColumn = next - offset - 1;
+ end = next;
+ break;
+
+ case t.plus:
+ case t.greaterThan:
+ case t.tilde:
+ case t.pipe:
+ next = start;
+
+ do {
+ next += 1;
+ code = css.charCodeAt(next);
+ } while (code === t.plus || code === t.greaterThan || code === t.tilde || code === t.pipe);
+
+ tokenType = t.combinator;
+ endLine = line;
+ endColumn = start - offset;
+ end = next;
+ break;
+ // Consume these characters as single tokens.
+
+ case t.asterisk:
+ case t.ampersand:
+ case t.bang:
+ case t.comma:
+ case t.equals:
+ case t.dollar:
+ case t.caret:
+ case t.openSquare:
+ case t.closeSquare:
+ case t.colon:
+ case t.semicolon:
+ case t.openParenthesis:
+ case t.closeParenthesis:
+ next = start;
+ tokenType = code;
+ endLine = line;
+ endColumn = start - offset;
+ end = next + 1;
+ break;
+
+ case t.singleQuote:
+ case t.doubleQuote:
+ quote = code === t.singleQuote ? "'" : '"';
+ next = start;
+
+ do {
+ escaped = false;
+ next = css.indexOf(quote, next + 1);
+
+ if (next === -1) {
+ unclosed('quote', quote);
+ }
+
+ escapePos = next;
+
+ while (css.charCodeAt(escapePos - 1) === t.backslash) {
+ escapePos -= 1;
+ escaped = !escaped;
+ }
+ } while (escaped);
+
+ tokenType = t.str;
+ endLine = line;
+ endColumn = start - offset;
+ end = next + 1;
+ break;
+
+ default:
+ if (code === t.slash && css.charCodeAt(start + 1) === t.asterisk) {
+ next = css.indexOf('*/', start + 2) + 1;
+
+ if (next === 0) {
+ unclosed('comment', '*/');
+ }
+
+ content = css.slice(start, next + 1);
+ lines = content.split('\n');
+ last = lines.length - 1;
+
+ if (last > 0) {
+ nextLine = line + last;
+ nextOffset = next - lines[last].length;
+ } else {
+ nextLine = line;
+ nextOffset = offset;
+ }
+
+ tokenType = t.comment;
+ line = nextLine;
+ endLine = nextLine;
+ endColumn = next - nextOffset;
+ } else if (code === t.slash) {
+ next = start;
+ tokenType = code;
+ endLine = line;
+ endColumn = start - offset;
+ end = next + 1;
+ } else {
+ next = consumeWord(css, start);
+ tokenType = t.word;
+ endLine = line;
+ endColumn = next - offset;
+ }
+
+ end = next + 1;
+ break;
+ } // Ensure that the token structure remains consistent
+
+
+ tokens.push([tokenType, // [0] Token type
+ line, // [1] Starting line
+ start - offset, // [2] Starting column
+ endLine, // [3] Ending line
+ endColumn, // [4] Ending column
+ start, // [5] Start position / Source index
+ end // [6] End position
+ ]); // Reset offset for the next token
+
+ if (nextOffset) {
+ offset = nextOffset;
+ nextOffset = null;
+ }
+
+ start = end;
+ }
+
+ return tokens;
+}
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/util/ensureObject.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/util/ensureObject.js"
new file mode 100644
index 0000000000000000000000000000000000000000..3472e075228405b79bc8d770b479cec3c8aaf4e3
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/util/ensureObject.js"
@@ -0,0 +1,22 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = ensureObject;
+
+function ensureObject(obj) {
+ for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
+ props[_key - 1] = arguments[_key];
+ }
+
+ while (props.length > 0) {
+ var prop = props.shift();
+
+ if (!obj[prop]) {
+ obj[prop] = {};
+ }
+
+ obj = obj[prop];
+ }
+}
+
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/util/getProp.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/util/getProp.js"
new file mode 100644
index 0000000000000000000000000000000000000000..53e07c90253eb1c995ddb2725497cf56f15da36e
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/util/getProp.js"
@@ -0,0 +1,24 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = getProp;
+
+function getProp(obj) {
+ for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
+ props[_key - 1] = arguments[_key];
+ }
+
+ while (props.length > 0) {
+ var prop = props.shift();
+
+ if (!obj[prop]) {
+ return undefined;
+ }
+
+ obj = obj[prop];
+ }
+
+ return obj;
+}
+
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/util/index.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/util/index.js"
new file mode 100644
index 0000000000000000000000000000000000000000..043fda8c64b9a8218f4d561e261a5bbad1a0cd82
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/util/index.js"
@@ -0,0 +1,22 @@
+"use strict";
+
+exports.__esModule = true;
+exports.stripComments = exports.ensureObject = exports.getProp = exports.unesc = void 0;
+
+var _unesc = _interopRequireDefault(require("./unesc"));
+
+exports.unesc = _unesc["default"];
+
+var _getProp = _interopRequireDefault(require("./getProp"));
+
+exports.getProp = _getProp["default"];
+
+var _ensureObject = _interopRequireDefault(require("./ensureObject"));
+
+exports.ensureObject = _ensureObject["default"];
+
+var _stripComments = _interopRequireDefault(require("./stripComments"));
+
+exports.stripComments = _stripComments["default"];
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/util/stripComments.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/util/stripComments.js"
new file mode 100644
index 0000000000000000000000000000000000000000..c74f1fecdcc641c50ee1fe1e56836e75ac229735
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/util/stripComments.js"
@@ -0,0 +1,27 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = stripComments;
+
+function stripComments(str) {
+ var s = "";
+ var commentStart = str.indexOf("/*");
+ var lastEnd = 0;
+
+ while (commentStart >= 0) {
+ s = s + str.slice(lastEnd, commentStart);
+ var commentEnd = str.indexOf("*/", commentStart + 2);
+
+ if (commentEnd < 0) {
+ return s;
+ }
+
+ lastEnd = commentEnd + 2;
+ commentStart = str.indexOf("/*", lastEnd);
+ }
+
+ s = s + str.slice(lastEnd);
+ return s;
+}
+
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/util/unesc.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/util/unesc.js"
new file mode 100644
index 0000000000000000000000000000000000000000..3136e7e0084203ed23840abe64694eef3f0fd61d
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/dist/util/unesc.js"
@@ -0,0 +1,93 @@
+"use strict";
+
+exports.__esModule = true;
+exports["default"] = unesc;
+
+// Many thanks for this post which made this migration much easier.
+// https://mathiasbynens.be/notes/css-escapes
+
+/**
+ *
+ * @param {string} str
+ * @returns {[string, number]|undefined}
+ */
+function gobbleHex(str) {
+ var lower = str.toLowerCase();
+ var hex = '';
+ var spaceTerminated = false;
+
+ for (var i = 0; i < 6 && lower[i] !== undefined; i++) {
+ var code = lower.charCodeAt(i); // check to see if we are dealing with a valid hex char [a-f|0-9]
+
+ var valid = code >= 97 && code <= 102 || code >= 48 && code <= 57; // https://drafts.csswg.org/css-syntax/#consume-escaped-code-point
+
+ spaceTerminated = code === 32;
+
+ if (!valid) {
+ break;
+ }
+
+ hex += lower[i];
+ }
+
+ if (hex.length === 0) {
+ return undefined;
+ }
+
+ var codePoint = parseInt(hex, 16);
+ var isSurrogate = codePoint >= 0xD800 && codePoint <= 0xDFFF; // Add special case for
+ // "If this number is zero, or is for a surrogate, or is greater than the maximum allowed code point"
+ // https://drafts.csswg.org/css-syntax/#maximum-allowed-code-point
+
+ if (isSurrogate || codePoint === 0x0000 || codePoint > 0x10FFFF) {
+ return ["\uFFFD", hex.length + (spaceTerminated ? 1 : 0)];
+ }
+
+ return [String.fromCodePoint(codePoint), hex.length + (spaceTerminated ? 1 : 0)];
+}
+
+var CONTAINS_ESCAPE = /\\/;
+
+function unesc(str) {
+ var needToProcess = CONTAINS_ESCAPE.test(str);
+
+ if (!needToProcess) {
+ return str;
+ }
+
+ var ret = "";
+
+ for (var i = 0; i < str.length; i++) {
+ if (str[i] === "\\") {
+ var gobbled = gobbleHex(str.slice(i + 1, i + 7));
+
+ if (gobbled !== undefined) {
+ ret += gobbled[0];
+ i += gobbled[1];
+ continue;
+ } // Retain a pair of \\ if double escaped `\\\\`
+ // https://github.com/postcss/postcss-selector-parser/commit/268c9a7656fb53f543dc620aa5b73a30ec3ff20e
+
+
+ if (str[i + 1] === "\\") {
+ ret += "\\";
+ i++;
+ continue;
+ } // if \\ is at the end of the string retain it
+ // https://github.com/postcss/postcss-selector-parser/commit/01a6b346e3612ce1ab20219acc26abdc259ccefb
+
+
+ if (str.length === i + 1) {
+ ret += str[i];
+ }
+
+ continue;
+ }
+
+ ret += str[i];
+ }
+
+ return ret;
+}
+
+module.exports = exports.default;
\ No newline at end of file
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/package.json" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/package.json"
new file mode 100644
index 0000000000000000000000000000000000000000..3a5a66349940ce8c9a65511884dcb7bb64e85ff5
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/package.json"
@@ -0,0 +1,110 @@
+{
+ "_from": "postcss-selector-parser@^6.0.2",
+ "_id": "postcss-selector-parser@6.0.6",
+ "_inBundle": false,
+ "_integrity": "sha1-LFu6gXSsL2mBq2MaQqsO5UrzMuo=",
+ "_location": "/postcss-selector-parser",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "postcss-selector-parser@^6.0.2",
+ "name": "postcss-selector-parser",
+ "escapedName": "postcss-selector-parser",
+ "rawSpec": "^6.0.2",
+ "saveSpec": null,
+ "fetchSpec": "^6.0.2"
+ },
+ "_requiredBy": [
+ "/postcss-modules-local-by-default",
+ "/postcss-modules-scope"
+ ],
+ "_resolved": "https://registry.nlark.com/postcss-selector-parser/download/postcss-selector-parser-6.0.6.tgz",
+ "_shasum": "2c5bba8174ac2f6981ab631a42ab0ee54af332ea",
+ "_spec": "postcss-selector-parser@^6.0.2",
+ "_where": "C:\\Users\\Administrator\\Desktop\\2021.7.1\\node_modules\\postcss-modules-local-by-default",
+ "ava": {
+ "require": [
+ "@babel/register"
+ ],
+ "concurrency": 5,
+ "timeout": "25s"
+ },
+ "bugs": {
+ "url": "https://github.com/postcss/postcss-selector-parser/issues"
+ },
+ "bundleDependencies": false,
+ "contributors": [
+ {
+ "name": "Ben Briggs",
+ "email": "beneb.info@gmail.com",
+ "url": "http://beneb.info"
+ },
+ {
+ "name": "Chris Eppstein",
+ "email": "chris@eppsteins.net",
+ "url": "http://twitter.com/chriseppstein"
+ }
+ ],
+ "dependencies": {
+ "cssesc": "^3.0.0",
+ "util-deprecate": "^1.0.2"
+ },
+ "deprecated": false,
+ "description": "> Selector parser with built in methods for working with selector strings.",
+ "devDependencies": {
+ "@babel/cli": "^7.11.6",
+ "@babel/core": "^7.11.6",
+ "@babel/eslint-parser": "^7.11.5",
+ "@babel/eslint-plugin": "^7.11.5",
+ "@babel/plugin-proposal-class-properties": "^7.10.4",
+ "@babel/preset-env": "^7.11.5",
+ "@babel/register": "^7.11.5",
+ "ava": "^3.12.1",
+ "babel-plugin-add-module-exports": "^1.0.4",
+ "coveralls": "^3.1.0",
+ "del-cli": "^3.0.1",
+ "eslint": "^7.9.0",
+ "eslint-plugin-import": "^2.22.0",
+ "glob": "^7.1.6",
+ "minimist": "^1.2.5",
+ "nyc": "^15.1.0",
+ "postcss": "^8.0.0",
+ "semver": "^7.3.2",
+ "typescript": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=4"
+ },
+ "files": [
+ "API.md",
+ "CHANGELOG.md",
+ "LICENSE-MIT",
+ "dist",
+ "postcss-selector-parser.d.ts"
+ ],
+ "homepage": "https://github.com/postcss/postcss-selector-parser",
+ "license": "MIT",
+ "main": "dist/index.js",
+ "name": "postcss-selector-parser",
+ "nyc": {
+ "exclude": [
+ "node_modules",
+ "**/__tests__"
+ ]
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/postcss/postcss-selector-parser.git"
+ },
+ "scripts": {
+ "lintfix": "eslint --fix src",
+ "prepare": "del-cli dist && BABEL_ENV=publish babel src --out-dir dist --ignore /__tests__/",
+ "pretest": "eslint src && tsc --noEmit postcss-selector-parser.d.ts",
+ "report": "nyc report --reporter=html",
+ "test": "nyc ava src/__tests__/*.js ",
+ "testone": "ava"
+ },
+ "types": "postcss-selector-parser.d.ts",
+ "version": "6.0.6"
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/postcss-selector-parser.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/postcss-selector-parser.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..383e2222a85ecf8ccfacd48ca13cdd89a9e3da40
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-selector-parser/postcss-selector-parser.d.ts"
@@ -0,0 +1,547 @@
+// Type definitions for postcss-selector-parser 2.2.3
+// Definitions by: Chris Eppstein
+
+/*~ Note that ES6 modules cannot directly export callable functions.
+ *~ This file should be imported using the CommonJS-style:
+ *~ import x = require('someLibrary');
+ *~
+ *~ Refer to the documentation to understand common
+ *~ workarounds for this limitation of ES6 modules.
+ */
+
+/*~ This declaration specifies that the function
+ *~ is the exported object from the file
+ */
+export = parser;
+
+// A type that's T but not U.
+type Diff = T extends U ? never : T;
+
+// TODO: Conditional types in TS 1.8 will really clean this up.
+declare function parser(): parser.Processor;
+declare function parser(processor: parser.AsyncProcessor): parser.Processor;
+declare function parser(processor: parser.AsyncProcessor): parser.Processor;
+declare function parser(processor: parser.SyncProcessor): parser.Processor;
+declare function parser(processor: parser.SyncProcessor): parser.Processor;
+declare function parser(processor?: parser.SyncProcessor | parser.AsyncProcessor): parser.Processor;
+
+/*~ If you want to expose types from your module as well, you can
+ *~ place them in this block. Often you will want to describe the
+ *~ shape of the return type of the function; that type should
+ *~ be declared in here, as this example shows.
+ */
+declare namespace parser {
+ /* copied from postcss -- so we don't need to add a dependency */
+ type ErrorOptions = {
+ plugin?: string;
+ word?: string;
+ index?: number
+ };
+ /* the bits we use of postcss.Rule, copied from postcss -- so we don't need to add a dependency */
+ type PostCSSRuleNode = {
+ selector: string
+ /**
+ * @returns postcss.CssSyntaxError but it's a complex object, caller
+ * should cast to it if they have a dependency on postcss.
+ */
+ error(message: string, options?: ErrorOptions): Error;
+ };
+ /** Accepts a string */
+ type Selectors = string | PostCSSRuleNode
+ type ProcessorFn = (root: parser.Root) => ReturnType;
+ type SyncProcessor = ProcessorFn;
+ type AsyncProcessor = ProcessorFn>;
+
+ const TAG: "tag";
+ const STRING: "string";
+ const SELECTOR: "selector";
+ const ROOT: "root";
+ const PSEUDO: "pseudo";
+ const NESTING: "nesting";
+ const ID: "id";
+ const COMMENT: "comment";
+ const COMBINATOR: "combinator";
+ const CLASS: "class";
+ const ATTRIBUTE: "attribute";
+ const UNIVERSAL: "universal";
+
+ interface NodeTypes {
+ tag: Tag,
+ string: String,
+ selector: Selector,
+ root: Root,
+ pseudo: Pseudo,
+ nesting: Nesting,
+ id: Identifier,
+ comment: Comment,
+ combinator: Combinator,
+ class: ClassName,
+ attribute: Attribute,
+ universal: Universal
+ }
+
+ type Node = NodeTypes[keyof NodeTypes];
+
+ function isNode(node: any): node is Node;
+
+ interface Options {
+ /**
+ * Preserve whitespace when true. Default: false;
+ */
+ lossless: boolean;
+ /**
+ * When true and a postcss.Rule is passed, set the result of
+ * processing back onto the rule when done. Default: false.
+ */
+ updateSelector: boolean;
+ }
+ class Processor<
+ TransformType = never,
+ SyncSelectorsType extends Selectors | never = Selectors
+ > {
+ res: Root;
+ readonly result: String;
+ ast(selectors: Selectors, options?: Partial): Promise;
+ astSync(selectors: SyncSelectorsType, options?: Partial): Root;
+ transform(selectors: Selectors, options?: Partial): Promise;
+ transformSync(selectors: SyncSelectorsType, options?: Partial): TransformType;
+ process(selectors: Selectors, options?: Partial): Promise;
+ processSync(selectors: SyncSelectorsType, options?: Partial): string;
+ }
+ interface ParserOptions {
+ css: string;
+ error: (message: string, options: ErrorOptions) => Error;
+ options: Options;
+ }
+ class Parser {
+ input: ParserOptions;
+ lossy: boolean;
+ position: number;
+ root: Root;
+ selectors: string;
+ current: Selector;
+ constructor(input: ParserOptions);
+ /**
+ * Raises an error, if the processor is invoked on
+ * a postcss Rule node, a better error message is raised.
+ */
+ error(message: string, options?: ErrorOptions): void;
+ }
+ interface NodeSource {
+ start?: {
+ line: number,
+ column: number
+ },
+ end?: {
+ line: number,
+ column: number
+ }
+ }
+ interface SpaceAround {
+ before: string;
+ after: string;
+ }
+ interface Spaces extends SpaceAround {
+ [spaceType: string]: string | Partial | undefined;
+ }
+ interface NodeOptions {
+ value: Value;
+ spaces?: Partial;
+ source?: NodeSource;
+ sourceIndex?: number;
+ }
+ interface Base<
+ Value extends string | undefined = string,
+ ParentType extends Container | undefined = Container | undefined
+ > {
+ type: keyof NodeTypes;
+ parent: ParentType;
+ value: Value;
+ spaces: Spaces;
+ source?: NodeSource;
+ sourceIndex: number;
+ rawSpaceBefore: string;
+ rawSpaceAfter: string;
+ remove(): Node;
+ replaceWith(...nodes: Node[]): Node;
+ next(): Node;
+ prev(): Node;
+ clone(opts: {[override: string]:any}): Node;
+ /**
+ * Return whether this node includes the character at the position of the given line and column.
+ * Returns undefined if the nodes lack sufficient source metadata to determine the position.
+ * @param line 1-index based line number relative to the start of the selector.
+ * @param column 1-index based column number relative to the start of the selector.
+ */
+ isAtPosition(line: number, column: number): boolean | undefined;
+ /**
+ * Some non-standard syntax doesn't follow normal escaping rules for css,
+ * this allows the escaped value to be specified directly, allowing illegal characters to be
+ * directly inserted into css output.
+ * @param name the property to set
+ * @param value the unescaped value of the property
+ * @param valueEscaped optional. the escaped value of the property.
+ */
+ setPropertyAndEscape(name: string, value: any, valueEscaped: string): void;
+ /**
+ * When you want a value to passed through to CSS directly. This method
+ * deletes the corresponding raw value causing the stringifier to fallback
+ * to the unescaped value.
+ * @param name the property to set.
+ * @param value The value that is both escaped and unescaped.
+ */
+ setPropertyWithoutEscape(name: string, value: any): void;
+ /**
+ * Some non-standard syntax doesn't follow normal escaping rules for css.
+ * This allows non standard syntax to be appended to an existing property
+ * by specifying the escaped value. By specifying the escaped value,
+ * illegal characters are allowed to be directly inserted into css output.
+ * @param {string} name the property to set
+ * @param {any} value the unescaped value of the property
+ * @param {string} valueEscaped optional. the escaped value of the property.
+ */
+ appendToPropertyAndEscape(name: string, value: any, valueEscaped: string): void;
+ toString(): string;
+ }
+ interface ContainerOptions extends NodeOptions {
+ nodes?: Array;
+ }
+ interface Container<
+ Value extends string | undefined = string,
+ Child extends Node = Node
+ > extends Base {
+ nodes: Array;
+ append(selector: Selector): this;
+ prepend(selector: Selector): this;
+ at(index: number): Child;
+ /**
+ * Return the most specific node at the line and column number given.
+ * The source location is based on the original parsed location, locations aren't
+ * updated as selector nodes are mutated.
+ *
+ * Note that this location is relative to the location of the first character
+ * of the selector, and not the location of the selector in the overall document
+ * when used in conjunction with postcss.
+ *
+ * If not found, returns undefined.
+ * @param line The line number of the node to find. (1-based index)
+ * @param col The column number of the node to find. (1-based index)
+ */
+ atPosition(line: number, column: number): Child;
+ index(child: Child): number;
+ readonly first: Child;
+ readonly last: Child;
+ readonly length: number;
+ removeChild(child: Child): this;
+ removeAll(): Container;
+ empty(): Container;
+ insertAfter(oldNode: Child, newNode: Child): this;
+ insertBefore(oldNode: Child, newNode: Child): this;
+ each(callback: (node: Child) => boolean | void): boolean | undefined;
+ walk(
+ callback: (node: Node) => boolean | void
+ ): boolean | undefined;
+ walkAttributes(
+ callback: (node: Attribute) => boolean | void
+ ): boolean | undefined;
+ walkClasses(
+ callback: (node: ClassName) => boolean | void
+ ): boolean | undefined;
+ walkCombinators(
+ callback: (node: Combinator) => boolean | void
+ ): boolean | undefined;
+ walkComments(
+ callback: (node: Comment) => boolean | void
+ ): boolean | undefined;
+ walkIds(
+ callback: (node: Identifier) => boolean | void
+ ): boolean | undefined;
+ walkNesting(
+ callback: (node: Nesting) => boolean | void
+ ): boolean | undefined;
+ walkPseudos(
+ callback: (node: Pseudo) => boolean | void
+ ): boolean | undefined;
+ walkTags(callback: (node: Tag) => boolean | void): boolean | undefined;
+ split(callback: (node: Child) => boolean): [Child[], Child[]];
+ map(callback: (node: Child) => T): T[];
+ reduce(
+ callback: (
+ previousValue: Child,
+ currentValue: Child,
+ currentIndex: number,
+ array: readonly Child[]
+ ) => Child
+ ): Child;
+ reduce(
+ callback: (
+ previousValue: Child,
+ currentValue: Child,
+ currentIndex: number,
+ array: readonly Child[]
+ ) => Child,
+ initialValue: Child
+ ): Child;
+ reduce(
+ callback: (
+ previousValue: T,
+ currentValue: Child,
+ currentIndex: number,
+ array: readonly Child[]
+ ) => T,
+ initialValue: T
+ ): T;
+ every(callback: (node: Child) => boolean): boolean;
+ some(callback: (node: Child) => boolean): boolean;
+ filter(callback: (node: Child) => boolean): Child[];
+ sort(callback: (nodeA: Child, nodeB: Child) => number): Child[];
+ toString(): string;
+ }
+ function isContainer(node: any): node is Root | Selector | Pseudo;
+
+ interface NamespaceOptions extends NodeOptions {
+ namespace?: string | true;
+ }
+ interface Namespace extends Base {
+ /** alias for namespace */
+ ns: string | true;
+ /**
+ * namespace prefix.
+ */
+ namespace: string | true;
+ /**
+ * If a namespace exists, prefix the value provided with it, separated by |.
+ */
+ qualifiedName(value: string): string;
+ /**
+ * A string representing the namespace suitable for output.
+ */
+ readonly namespaceString: string;
+ }
+ function isNamespace(node: any): node is Attribute | Tag;
+
+ interface Root extends Container {
+ type: "root";
+ /**
+ * Raises an error, if the processor is invoked on
+ * a postcss Rule node, a better error message is raised.
+ */
+ error(message: string, options?: ErrorOptions): Error;
+ nodeAt(line: number, column: number): Node
+ }
+ function root(opts: ContainerOptions): Root;
+ function isRoot(node: any): node is Root;
+
+ interface _Selector extends Container> {
+ type: "selector";
+ }
+ type Selector = _Selector;
+ function selector(opts: ContainerOptions): Selector;
+ function isSelector(node: any): node is Selector;
+
+ interface Combinator extends Base {
+ type: "combinator"
+ }
+ function combinator(opts: NodeOptions): Combinator;
+ function isCombinator(node: any): node is Combinator;
+
+ interface ClassName extends Base {
+ type: "class";
+ }
+ function className(opts: NamespaceOptions): ClassName;
+ function isClassName(node: any): node is ClassName;
+
+ type AttributeOperator = "=" | "~=" | "|=" | "^=" | "$=" | "*=";
+ type QuoteMark = '"' | "'" | null;
+ interface PreferredQuoteMarkOptions {
+ quoteMark?: QuoteMark;
+ preferCurrentQuoteMark?: boolean;
+ }
+ interface SmartQuoteMarkOptions extends PreferredQuoteMarkOptions {
+ smart?: boolean;
+ }
+ interface AttributeOptions extends NamespaceOptions {
+ attribute: string;
+ operator?: AttributeOperator;
+ insensitive?: boolean;
+ quoteMark?: QuoteMark;
+ /** @deprecated Use quoteMark instead. */
+ quoted?: boolean;
+ spaces?: {
+ before?: string;
+ after?: string;
+ attribute?: Partial;
+ operator?: Partial;
+ value?: Partial;
+ insensitive?: Partial;
+ }
+ raws: {
+ unquoted?: string;
+ attribute?: string;
+ operator?: string;
+ value?: string;
+ insensitive?: string;
+ spaces?: {
+ attribute?: Partial;
+ operator?: Partial;
+ value?: Partial;
+ insensitive?: Partial;
+ }
+ };
+ }
+ interface Attribute extends Namespace {
+ type: "attribute";
+ attribute: string;
+ operator?: AttributeOperator;
+ insensitive?: boolean;
+ quoteMark: QuoteMark;
+ quoted?: boolean;
+ spaces: {
+ before: string;
+ after: string;
+ attribute?: Partial;
+ operator?: Partial;
+ value?: Partial;
+ insensitive?: Partial;
+ }
+ raws: {
+ /** @deprecated The attribute value is unquoted, use that instead.. */
+ unquoted?: string;
+ attribute?: string;
+ operator?: string;
+ /** The value of the attribute with quotes and escapes. */
+ value?: string;
+ insensitive?: string;
+ spaces?: {
+ attribute?: Partial;
+ operator?: Partial;
+ value?: Partial;
+ insensitive?: Partial;
+ }
+ };
+ /**
+ * The attribute name after having been qualified with a namespace.
+ */
+ readonly qualifiedAttribute: string;
+
+ /**
+ * The case insensitivity flag or an empty string depending on whether this
+ * attribute is case insensitive.
+ */
+ readonly insensitiveFlag : 'i' | '';
+
+ /**
+ * Returns the attribute's value quoted such that it would be legal to use
+ * in the value of a css file. The original value's quotation setting
+ * used for stringification is left unchanged. See `setValue(value, options)`
+ * if you want to control the quote settings of a new value for the attribute or
+ * `set quoteMark(mark)` if you want to change the quote settings of the current
+ * value.
+ *
+ * You can also change the quotation used for the current value by setting quoteMark.
+ **/
+ getQuotedValue(options?: SmartQuoteMarkOptions): string;
+
+ /**
+ * Set the unescaped value with the specified quotation options. The value
+ * provided must not include any wrapping quote marks -- those quotes will
+ * be interpreted as part of the value and escaped accordingly.
+ * @param value
+ */
+ setValue(value: string, options?: SmartQuoteMarkOptions): void;
+
+ /**
+ * Intelligently select a quoteMark value based on the value's contents. If
+ * the value is a legal CSS ident, it will not be quoted. Otherwise a quote
+ * mark will be picked that minimizes the number of escapes.
+ *
+ * If there's no clear winner, the quote mark from these options is used,
+ * then the source quote mark (this is inverted if `preferCurrentQuoteMark` is
+ * true). If the quoteMark is unspecified, a double quote is used.
+ **/
+ smartQuoteMark(options: PreferredQuoteMarkOptions): QuoteMark;
+
+ /**
+ * Selects the preferred quote mark based on the options and the current quote mark value.
+ * If you want the quote mark to depend on the attribute value, call `smartQuoteMark(opts)`
+ * instead.
+ */
+ preferredQuoteMark(options: PreferredQuoteMarkOptions): QuoteMark
+
+ /**
+ * returns the offset of the attribute part specified relative to the
+ * start of the node of the output string.
+ *
+ * * "ns" - alias for "namespace"
+ * * "namespace" - the namespace if it exists.
+ * * "attribute" - the attribute name
+ * * "attributeNS" - the start of the attribute or its namespace
+ * * "operator" - the match operator of the attribute
+ * * "value" - The value (string or identifier)
+ * * "insensitive" - the case insensitivity flag;
+ * @param part One of the possible values inside an attribute.
+ * @returns -1 if the name is invalid or the value doesn't exist in this attribute.
+ */
+ offsetOf(part: "ns" | "namespace" | "attribute" | "attributeNS" | "operator" | "value" | "insensitive"): number;
+ }
+ function attribute(opts: AttributeOptions): Attribute;
+ function isAttribute(node: any): node is Attribute;
+
+ interface Pseudo extends Container {
+ type: "pseudo";
+ }
+ function pseudo(opts: ContainerOptions): Pseudo;
+ /**
+ * Checks wether the node is the Psuedo subtype of node.
+ */
+ function isPseudo(node: any): node is Pseudo;
+
+ /**
+ * Checks wether the node is, specifically, a pseudo element instead of
+ * pseudo class.
+ */
+ function isPseudoElement(node: any): node is Pseudo;
+
+ /**
+ * Checks wether the node is, specifically, a pseudo class instead of
+ * pseudo element.
+ */
+ function isPseudoClass(node: any): node is Pseudo;
+
+
+ interface Tag extends Namespace {
+ type: "tag";
+ }
+ function tag(opts: NamespaceOptions): Tag;
+ function isTag(node: any): node is Tag;
+
+ interface Comment extends Base {
+ type: "comment";
+ }
+ function comment(opts: NodeOptions): Comment;
+ function isComment(node: any): node is Comment;
+
+ interface Identifier extends Base {
+ type: "id";
+ }
+ function id(opts: any): any;
+ function isIdentifier(node: any): node is Identifier;
+
+ interface Nesting extends Base {
+ type: "nesting";
+ }
+ function nesting(opts: any): any;
+ function isNesting(node: any): node is Nesting;
+
+ interface String extends Base {
+ type: "string";
+ }
+ function string(opts: NodeOptions): String;
+ function isString(node: any): node is String;
+
+ interface Universal extends Base {
+ type: "universal";
+ }
+ function universal(opts?: NamespaceOptions): any;
+ function isUniversal(node: any): node is Universal;
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/LICENSE" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/LICENSE"
new file mode 100644
index 0000000000000000000000000000000000000000..6dcaefcbed352293c21a2d67bc3cc57d0682076a
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/LICENSE"
@@ -0,0 +1,22 @@
+Copyright (c) Bogdan Chadkin
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/README.md" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/README.md"
new file mode 100644
index 0000000000000000000000000000000000000000..3bd6a0d65d33c1a2313c16e1bfd2e3fe9c7cd887
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/README.md"
@@ -0,0 +1,263 @@
+# postcss-value-parser
+
+[](https://travis-ci.org/TrySound/postcss-value-parser)
+
+Transforms CSS declaration values and at-rule parameters into a tree of nodes, and provides a simple traversal API.
+
+## Usage
+
+```js
+var valueParser = require('postcss-value-parser');
+var cssBackgroundValue = 'url(foo.png) no-repeat 40px 73%';
+var parsedValue = valueParser(cssBackgroundValue);
+// parsedValue exposes an API described below,
+// e.g. parsedValue.walk(..), parsedValue.toString(), etc.
+```
+
+For example, parsing the value `rgba(233, 45, 66, .5)` will return the following:
+
+```js
+{
+ nodes: [
+ {
+ type: 'function',
+ value: 'rgba',
+ before: '',
+ after: '',
+ nodes: [
+ { type: 'word', value: '233' },
+ { type: 'div', value: ',', before: '', after: ' ' },
+ { type: 'word', value: '45' },
+ { type: 'div', value: ',', before: '', after: ' ' },
+ { type: 'word', value: '66' },
+ { type: 'div', value: ',', before: ' ', after: '' },
+ { type: 'word', value: '.5' }
+ ]
+ }
+ ]
+}
+```
+
+If you wanted to convert each `rgba()` value in `sourceCSS` to a hex value, you could do so like this:
+
+```js
+var valueParser = require('postcss-value-parser');
+
+var parsed = valueParser(sourceCSS);
+
+// walk() will visit all the of the nodes in the tree,
+// invoking the callback for each.
+parsed.walk(function (node) {
+
+ // Since we only want to transform rgba() values,
+ // we can ignore anything else.
+ if (node.type !== 'function' && node.value !== 'rgba') return;
+
+ // We can make an array of the rgba() arguments to feed to a
+ // convertToHex() function
+ var color = node.nodes.filter(function (node) {
+ return node.type === 'word';
+ }).map(function (node) {
+ return Number(node.value);
+ }); // [233, 45, 66, .5]
+
+ // Now we will transform the existing rgba() function node
+ // into a word node with the hex value
+ node.type = 'word';
+ node.value = convertToHex(color);
+})
+
+parsed.toString(); // #E92D42
+```
+
+## Nodes
+
+Each node is an object with these common properties:
+
+- **type**: The type of node (`word`, `string`, `div`, `space`, `comment`, or `function`).
+ Each type is documented below.
+- **value**: Each node has a `value` property; but what exactly `value` means
+ is specific to the node type. Details are documented for each type below.
+- **sourceIndex**: The starting index of the node within the original source
+ string. For example, given the source string `10px 20px`, the `word` node
+ whose value is `20px` will have a `sourceIndex` of `5`.
+
+### word
+
+The catch-all node type that includes keywords (e.g. `no-repeat`),
+quantities (e.g. `20px`, `75%`, `1.5`), and hex colors (e.g. `#e6e6e6`).
+
+Node-specific properties:
+
+- **value**: The "word" itself.
+
+### string
+
+A quoted string value, e.g. `"something"` in `content: "something";`.
+
+Node-specific properties:
+
+- **value**: The text content of the string.
+- **quote**: The quotation mark surrounding the string, either `"` or `'`.
+- **unclosed**: `true` if the string was not closed properly. e.g. `"unclosed string `.
+
+### div
+
+A divider, for example
+
+- `,` in `animation-duration: 1s, 2s, 3s`
+- `/` in `border-radius: 10px / 23px`
+- `:` in `(min-width: 700px)`
+
+Node-specific properties:
+
+- **value**: The divider character. Either `,`, `/`, or `:` (see examples above).
+- **before**: Whitespace before the divider.
+- **after**: Whitespace after the divider.
+
+### space
+
+Whitespace used as a separator, e.g. ` ` occurring twice in `border: 1px solid black;`.
+
+Node-specific properties:
+
+- **value**: The whitespace itself.
+
+### comment
+
+A CSS comment starts with `/*` and ends with `*/`
+
+Node-specific properties:
+
+- **value**: The comment value without `/*` and `*/`
+- **unclosed**: `true` if the comment was not closed properly. e.g. `/* comment without an end `.
+
+### function
+
+A CSS function, e.g. `rgb(0,0,0)` or `url(foo.bar)`.
+
+Function nodes have nodes nested within them: the function arguments.
+
+Additional properties:
+
+- **value**: The name of the function, e.g. `rgb` in `rgb(0,0,0)`.
+- **before**: Whitespace after the opening parenthesis and before the first argument,
+ e.g. ` ` in `rgb( 0,0,0)`.
+- **after**: Whitespace before the closing parenthesis and after the last argument,
+ e.g. ` ` in `rgb(0,0,0 )`.
+- **nodes**: More nodes representing the arguments to the function.
+- **unclosed**: `true` if the parentheses was not closed properly. e.g. `( unclosed-function `.
+
+Media features surrounded by parentheses are considered functions with an
+empty value. For example, `(min-width: 700px)` parses to these nodes:
+
+```js
+[
+ {
+ type: 'function', value: '', before: '', after: '',
+ nodes: [
+ { type: 'word', value: 'min-width' },
+ { type: 'div', value: ':', before: '', after: ' ' },
+ { type: 'word', value: '700px' }
+ ]
+ }
+]
+```
+
+`url()` functions can be parsed a little bit differently depending on
+whether the first character in the argument is a quotation mark.
+
+`url( /gfx/img/bg.jpg )` parses to:
+
+```js
+{ type: 'function', sourceIndex: 0, value: 'url', before: ' ', after: ' ', nodes: [
+ { type: 'word', sourceIndex: 5, value: '/gfx/img/bg.jpg' }
+] }
+```
+
+`url( "/gfx/img/bg.jpg" )`, on the other hand, parses to:
+
+```js
+{ type: 'function', sourceIndex: 0, value: 'url', before: ' ', after: ' ', nodes: [
+ type: 'string', sourceIndex: 5, quote: '"', value: '/gfx/img/bg.jpg' },
+] }
+```
+
+### unicode-range
+
+The unicode-range CSS descriptor sets the specific range of characters to be
+used from a font defined by @font-face and made available
+for use on the current page (`unicode-range: U+0025-00FF`).
+
+Node-specific properties:
+
+- **value**: The "unicode-range" itself.
+
+## API
+
+```
+var valueParser = require('postcss-value-parser');
+```
+
+### valueParser.unit(quantity)
+
+Parses `quantity`, distinguishing the number from the unit. Returns an object like the following:
+
+```js
+// Given 2rem
+{
+ number: '2',
+ unit: 'rem'
+}
+```
+
+If the `quantity` argument cannot be parsed as a number, returns `false`.
+
+*This function does not parse complete values*: you cannot pass it `1px solid black` and expect `px` as
+the unit. Instead, you should pass it single quantities only. Parse `1px solid black`, then pass it
+the stringified `1px` node (a `word` node) to parse the number and unit.
+
+### valueParser.stringify(nodes[, custom])
+
+Stringifies a node or array of nodes.
+
+The `custom` function is called for each `node`; return a string to override the default behaviour.
+
+### valueParser.walk(nodes, callback[, bubble])
+
+Walks each provided node, recursively walking all descendent nodes within functions.
+
+Returning `false` in the `callback` will prevent traversal of descendent nodes (within functions).
+You can use this feature to for shallow iteration, walking over only the *immediate* children.
+*Note: This only applies if `bubble` is `false` (which is the default).*
+
+By default, the tree is walked from the outermost node inwards.
+To reverse the direction, pass `true` for the `bubble` argument.
+
+The `callback` is invoked with three arguments: `callback(node, index, nodes)`.
+
+- `node`: The current node.
+- `index`: The index of the current node.
+- `nodes`: The complete nodes array passed to `walk()`.
+
+Returns the `valueParser` instance.
+
+### var parsed = valueParser(value)
+
+Returns the parsed node tree.
+
+### parsed.nodes
+
+The array of nodes.
+
+### parsed.toString()
+
+Stringifies the node tree.
+
+### parsed.walk(callback[, bubble])
+
+Walks each node inside `parsed.nodes`. See the documentation for `valueParser.walk()` above.
+
+# License
+
+MIT © [Bogdan Chadkin](mailto:trysound@yandex.ru)
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/index.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/index.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..be8b1f3e35ba4286a46c3309419c4ebe27f56193
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/index.d.ts"
@@ -0,0 +1,172 @@
+declare namespace postcssValueParser {
+ interface BaseNode {
+ /**
+ * The offset inside the CSS value at which the node starts
+ */
+ sourceIndex: number;
+
+ /**
+ * The node's characteristic value
+ */
+ value: string;
+ }
+
+ interface ClosableNode {
+ /**
+ * Whether the parsed CSS value ended before the node was properly closed
+ */
+ unclosed?: true;
+ }
+
+ interface AdjacentAwareNode {
+ /**
+ * The token at the start of the node
+ */
+ before: string;
+
+ /**
+ * The token at the end of the node
+ */
+ after: string;
+ }
+
+ interface CommentNode extends BaseNode, ClosableNode {
+ type: "comment";
+ }
+
+ interface DivNode extends BaseNode, AdjacentAwareNode {
+ type: "div";
+ }
+
+ interface FunctionNode extends BaseNode, ClosableNode, AdjacentAwareNode {
+ type: "function";
+
+ /**
+ * Nodes inside the function
+ */
+ nodes: Node[];
+ }
+
+ interface SpaceNode extends BaseNode {
+ type: "space";
+ }
+
+ interface StringNode extends BaseNode, ClosableNode {
+ type: "string";
+
+ /**
+ * The quote type delimiting the string
+ */
+ quote: '"' | "'";
+ }
+
+ interface UnicodeRangeNode extends BaseNode {
+ type: "unicode-range";
+ }
+
+ interface WordNode extends BaseNode {
+ type: "word";
+ }
+
+ /**
+ * Any node parsed from a CSS value
+ */
+ type Node =
+ | CommentNode
+ | DivNode
+ | FunctionNode
+ | SpaceNode
+ | StringNode
+ | UnicodeRangeNode
+ | WordNode;
+
+ interface CustomStringifierCallback {
+ /**
+ * @param node The node to stringify
+ * @returns The serialized CSS representation of the node
+ */
+ (nodes: Node): string | undefined;
+ }
+
+ interface WalkCallback {
+ /**
+ * @param node The currently visited node
+ * @param index The index of the node in the series of parsed nodes
+ * @param nodes The series of parsed nodes
+ * @returns Returning `false` will prevent traversal of descendant nodes (only applies if `bubble` was set to `true` in the `walk()` call)
+ */
+ (node: Node, index: number, nodes: Node[]): void | boolean;
+ }
+
+ /**
+ * A CSS dimension, decomposed into its numeric and unit parts
+ */
+ interface Dimension {
+ number: string;
+ unit: string;
+ }
+
+ /**
+ * A wrapper around a parsed CSS value that allows for inspecting and walking nodes
+ */
+ interface ParsedValue {
+ /**
+ * The series of parsed nodes
+ */
+ nodes: Node[];
+
+ /**
+ * Walk all parsed nodes, applying a callback
+ *
+ * @param callback A visitor callback that will be executed for each node
+ * @param bubble When set to `true`, walking will be done inside-out instead of outside-in
+ */
+ walk(callback: WalkCallback, bubble?: boolean): this;
+ }
+
+ interface ValueParser {
+ /**
+ * Decompose a CSS dimension into its numeric and unit part
+ *
+ * @param value The dimension to decompose
+ * @returns An object representing `number` and `unit` part of the dimension or `false` if the decomposing fails
+ */
+ unit(value: string): Dimension | false;
+
+ /**
+ * Serialize a series of nodes into a CSS value
+ *
+ * @param nodes The nodes to stringify
+ * @param custom A custom stringifier callback
+ * @returns The generated CSS value
+ */
+ stringify(nodes: Node | Node[], custom?: CustomStringifierCallback): string;
+
+ /**
+ * Walk a series of nodes, applying a callback
+ *
+ * @param nodes The nodes to walk
+ * @param callback A visitor callback that will be executed for each node
+ * @param bubble When set to `true`, walking will be done inside-out instead of outside-in
+ */
+ walk(nodes: Node[], callback: WalkCallback, bubble?: boolean): void;
+
+ /**
+ * Parse a CSS value into a series of nodes to operate on
+ *
+ * @param value The value to parse
+ */
+ new (value: string): ParsedValue;
+
+ /**
+ * Parse a CSS value into a series of nodes to operate on
+ *
+ * @param value The value to parse
+ */
+ (value: string): ParsedValue;
+ }
+}
+
+declare const postcssValueParser: postcssValueParser.ValueParser;
+
+export = postcssValueParser;
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/index.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/index.js"
new file mode 100644
index 0000000000000000000000000000000000000000..f9ac0e6862f800c084e130d8e902ab184d392d5a
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/index.js"
@@ -0,0 +1,28 @@
+var parse = require("./parse");
+var walk = require("./walk");
+var stringify = require("./stringify");
+
+function ValueParser(value) {
+ if (this instanceof ValueParser) {
+ this.nodes = parse(value);
+ return this;
+ }
+ return new ValueParser(value);
+}
+
+ValueParser.prototype.toString = function() {
+ return Array.isArray(this.nodes) ? stringify(this.nodes) : "";
+};
+
+ValueParser.prototype.walk = function(cb, bubble) {
+ walk(this.nodes, cb, bubble);
+ return this;
+};
+
+ValueParser.unit = require("./unit");
+
+ValueParser.walk = walk;
+
+ValueParser.stringify = stringify;
+
+module.exports = ValueParser;
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/parse.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/parse.js"
new file mode 100644
index 0000000000000000000000000000000000000000..502b5badd778e391f2ee17ea17e3eb0245034862
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/parse.js"
@@ -0,0 +1,304 @@
+var openParentheses = "(".charCodeAt(0);
+var closeParentheses = ")".charCodeAt(0);
+var singleQuote = "'".charCodeAt(0);
+var doubleQuote = '"'.charCodeAt(0);
+var backslash = "\\".charCodeAt(0);
+var slash = "/".charCodeAt(0);
+var comma = ",".charCodeAt(0);
+var colon = ":".charCodeAt(0);
+var star = "*".charCodeAt(0);
+var uLower = "u".charCodeAt(0);
+var uUpper = "U".charCodeAt(0);
+var plus = "+".charCodeAt(0);
+var isUnicodeRange = /^[a-f0-9?-]+$/i;
+
+module.exports = function(input) {
+ var tokens = [];
+ var value = input;
+
+ var next,
+ quote,
+ prev,
+ token,
+ escape,
+ escapePos,
+ whitespacePos,
+ parenthesesOpenPos;
+ var pos = 0;
+ var code = value.charCodeAt(pos);
+ var max = value.length;
+ var stack = [{ nodes: tokens }];
+ var balanced = 0;
+ var parent;
+
+ var name = "";
+ var before = "";
+ var after = "";
+
+ while (pos < max) {
+ // Whitespaces
+ if (code <= 32) {
+ next = pos;
+ do {
+ next += 1;
+ code = value.charCodeAt(next);
+ } while (code <= 32);
+ token = value.slice(pos, next);
+
+ prev = tokens[tokens.length - 1];
+ if (code === closeParentheses && balanced) {
+ after = token;
+ } else if (prev && prev.type === "div") {
+ prev.after = token;
+ } else if (
+ code === comma ||
+ code === colon ||
+ (code === slash &&
+ value.charCodeAt(next + 1) !== star &&
+ (!parent ||
+ (parent && parent.type === "function" && parent.value !== "calc")))
+ ) {
+ before = token;
+ } else {
+ tokens.push({
+ type: "space",
+ sourceIndex: pos,
+ value: token
+ });
+ }
+
+ pos = next;
+
+ // Quotes
+ } else if (code === singleQuote || code === doubleQuote) {
+ next = pos;
+ quote = code === singleQuote ? "'" : '"';
+ token = {
+ type: "string",
+ sourceIndex: pos,
+ quote: quote
+ };
+ do {
+ escape = false;
+ next = value.indexOf(quote, next + 1);
+ if (~next) {
+ escapePos = next;
+ while (value.charCodeAt(escapePos - 1) === backslash) {
+ escapePos -= 1;
+ escape = !escape;
+ }
+ } else {
+ value += quote;
+ next = value.length - 1;
+ token.unclosed = true;
+ }
+ } while (escape);
+ token.value = value.slice(pos + 1, next);
+
+ tokens.push(token);
+ pos = next + 1;
+ code = value.charCodeAt(pos);
+
+ // Comments
+ } else if (code === slash && value.charCodeAt(pos + 1) === star) {
+ token = {
+ type: "comment",
+ sourceIndex: pos
+ };
+
+ next = value.indexOf("*/", pos);
+ if (next === -1) {
+ token.unclosed = true;
+ next = value.length;
+ }
+
+ token.value = value.slice(pos + 2, next);
+ tokens.push(token);
+
+ pos = next + 2;
+ code = value.charCodeAt(pos);
+
+ // Operation within calc
+ } else if (
+ (code === slash || code === star) &&
+ parent &&
+ parent.type === "function" &&
+ parent.value === "calc"
+ ) {
+ token = value[pos];
+ tokens.push({
+ type: "word",
+ sourceIndex: pos - before.length,
+ value: token
+ });
+ pos += 1;
+ code = value.charCodeAt(pos);
+
+ // Dividers
+ } else if (code === slash || code === comma || code === colon) {
+ token = value[pos];
+
+ tokens.push({
+ type: "div",
+ sourceIndex: pos - before.length,
+ value: token,
+ before: before,
+ after: ""
+ });
+ before = "";
+
+ pos += 1;
+ code = value.charCodeAt(pos);
+
+ // Open parentheses
+ } else if (openParentheses === code) {
+ // Whitespaces after open parentheses
+ next = pos;
+ do {
+ next += 1;
+ code = value.charCodeAt(next);
+ } while (code <= 32);
+ parenthesesOpenPos = pos;
+ token = {
+ type: "function",
+ sourceIndex: pos - name.length,
+ value: name,
+ before: value.slice(parenthesesOpenPos + 1, next)
+ };
+ pos = next;
+
+ if (name === "url" && code !== singleQuote && code !== doubleQuote) {
+ next -= 1;
+ do {
+ escape = false;
+ next = value.indexOf(")", next + 1);
+ if (~next) {
+ escapePos = next;
+ while (value.charCodeAt(escapePos - 1) === backslash) {
+ escapePos -= 1;
+ escape = !escape;
+ }
+ } else {
+ value += ")";
+ next = value.length - 1;
+ token.unclosed = true;
+ }
+ } while (escape);
+ // Whitespaces before closed
+ whitespacePos = next;
+ do {
+ whitespacePos -= 1;
+ code = value.charCodeAt(whitespacePos);
+ } while (code <= 32);
+ if (parenthesesOpenPos < whitespacePos) {
+ if (pos !== whitespacePos + 1) {
+ token.nodes = [
+ {
+ type: "word",
+ sourceIndex: pos,
+ value: value.slice(pos, whitespacePos + 1)
+ }
+ ];
+ } else {
+ token.nodes = [];
+ }
+ if (token.unclosed && whitespacePos + 1 !== next) {
+ token.after = "";
+ token.nodes.push({
+ type: "space",
+ sourceIndex: whitespacePos + 1,
+ value: value.slice(whitespacePos + 1, next)
+ });
+ } else {
+ token.after = value.slice(whitespacePos + 1, next);
+ }
+ } else {
+ token.after = "";
+ token.nodes = [];
+ }
+ pos = next + 1;
+ code = value.charCodeAt(pos);
+ tokens.push(token);
+ } else {
+ balanced += 1;
+ token.after = "";
+ tokens.push(token);
+ stack.push(token);
+ tokens = token.nodes = [];
+ parent = token;
+ }
+ name = "";
+
+ // Close parentheses
+ } else if (closeParentheses === code && balanced) {
+ pos += 1;
+ code = value.charCodeAt(pos);
+
+ parent.after = after;
+ after = "";
+ balanced -= 1;
+ stack.pop();
+ parent = stack[balanced];
+ tokens = parent.nodes;
+
+ // Words
+ } else {
+ next = pos;
+ do {
+ if (code === backslash) {
+ next += 1;
+ }
+ next += 1;
+ code = value.charCodeAt(next);
+ } while (
+ next < max &&
+ !(
+ code <= 32 ||
+ code === singleQuote ||
+ code === doubleQuote ||
+ code === comma ||
+ code === colon ||
+ code === slash ||
+ code === openParentheses ||
+ (code === star &&
+ parent &&
+ parent.type === "function" &&
+ parent.value === "calc") ||
+ (code === slash &&
+ parent.type === "function" &&
+ parent.value === "calc") ||
+ (code === closeParentheses && balanced)
+ )
+ );
+ token = value.slice(pos, next);
+
+ if (openParentheses === code) {
+ name = token;
+ } else if (
+ (uLower === token.charCodeAt(0) || uUpper === token.charCodeAt(0)) &&
+ plus === token.charCodeAt(1) &&
+ isUnicodeRange.test(token.slice(2))
+ ) {
+ tokens.push({
+ type: "unicode-range",
+ sourceIndex: pos,
+ value: token
+ });
+ } else {
+ tokens.push({
+ type: "word",
+ sourceIndex: pos,
+ value: token
+ });
+ }
+
+ pos = next;
+ }
+ }
+
+ for (pos = stack.length - 1; pos; pos -= 1) {
+ stack[pos].unclosed = true;
+ }
+
+ return stack[0].nodes;
+};
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/stringify.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/stringify.js"
new file mode 100644
index 0000000000000000000000000000000000000000..60796711ee2972a4904afae74079931c3ff7ad96
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/stringify.js"
@@ -0,0 +1,48 @@
+function stringifyNode(node, custom) {
+ var type = node.type;
+ var value = node.value;
+ var buf;
+ var customResult;
+
+ if (custom && (customResult = custom(node)) !== undefined) {
+ return customResult;
+ } else if (type === "word" || type === "space") {
+ return value;
+ } else if (type === "string") {
+ buf = node.quote || "";
+ return buf + value + (node.unclosed ? "" : buf);
+ } else if (type === "comment") {
+ return "/*" + value + (node.unclosed ? "" : "*/");
+ } else if (type === "div") {
+ return (node.before || "") + value + (node.after || "");
+ } else if (Array.isArray(node.nodes)) {
+ buf = stringify(node.nodes, custom);
+ if (type !== "function") {
+ return buf;
+ }
+ return (
+ value +
+ "(" +
+ (node.before || "") +
+ buf +
+ (node.after || "") +
+ (node.unclosed ? "" : ")")
+ );
+ }
+ return value;
+}
+
+function stringify(nodes, custom) {
+ var result, i;
+
+ if (Array.isArray(nodes)) {
+ result = "";
+ for (i = nodes.length - 1; ~i; i -= 1) {
+ result = stringifyNode(nodes[i], custom) + result;
+ }
+ return result;
+ }
+ return stringifyNode(nodes, custom);
+}
+
+module.exports = stringify;
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/unit.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/unit.js"
new file mode 100644
index 0000000000000000000000000000000000000000..c349661a8895709e6d27e435acd8cff1ba76d661
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/unit.js"
@@ -0,0 +1,120 @@
+var minus = "-".charCodeAt(0);
+var plus = "+".charCodeAt(0);
+var dot = ".".charCodeAt(0);
+var exp = "e".charCodeAt(0);
+var EXP = "E".charCodeAt(0);
+
+// Check if three code points would start a number
+// https://www.w3.org/TR/css-syntax-3/#starts-with-a-number
+function likeNumber(value) {
+ var code = value.charCodeAt(0);
+ var nextCode;
+
+ if (code === plus || code === minus) {
+ nextCode = value.charCodeAt(1);
+
+ if (nextCode >= 48 && nextCode <= 57) {
+ return true;
+ }
+
+ var nextNextCode = value.charCodeAt(2);
+
+ if (nextCode === dot && nextNextCode >= 48 && nextNextCode <= 57) {
+ return true;
+ }
+
+ return false;
+ }
+
+ if (code === dot) {
+ nextCode = value.charCodeAt(1);
+
+ if (nextCode >= 48 && nextCode <= 57) {
+ return true;
+ }
+
+ return false;
+ }
+
+ if (code >= 48 && code <= 57) {
+ return true;
+ }
+
+ return false;
+}
+
+// Consume a number
+// https://www.w3.org/TR/css-syntax-3/#consume-number
+module.exports = function(value) {
+ var pos = 0;
+ var length = value.length;
+ var code;
+ var nextCode;
+ var nextNextCode;
+
+ if (length === 0 || !likeNumber(value)) {
+ return false;
+ }
+
+ code = value.charCodeAt(pos);
+
+ if (code === plus || code === minus) {
+ pos++;
+ }
+
+ while (pos < length) {
+ code = value.charCodeAt(pos);
+
+ if (code < 48 || code > 57) {
+ break;
+ }
+
+ pos += 1;
+ }
+
+ code = value.charCodeAt(pos);
+ nextCode = value.charCodeAt(pos + 1);
+
+ if (code === dot && nextCode >= 48 && nextCode <= 57) {
+ pos += 2;
+
+ while (pos < length) {
+ code = value.charCodeAt(pos);
+
+ if (code < 48 || code > 57) {
+ break;
+ }
+
+ pos += 1;
+ }
+ }
+
+ code = value.charCodeAt(pos);
+ nextCode = value.charCodeAt(pos + 1);
+ nextNextCode = value.charCodeAt(pos + 2);
+
+ if (
+ (code === exp || code === EXP) &&
+ ((nextCode >= 48 && nextCode <= 57) ||
+ ((nextCode === plus || nextCode === minus) &&
+ nextNextCode >= 48 &&
+ nextNextCode <= 57))
+ ) {
+ pos += nextCode === plus || nextCode === minus ? 3 : 2;
+
+ while (pos < length) {
+ code = value.charCodeAt(pos);
+
+ if (code < 48 || code > 57) {
+ break;
+ }
+
+ pos += 1;
+ }
+ }
+
+ return {
+ number: value.slice(0, pos),
+ unit: value.slice(pos)
+ };
+};
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/walk.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/walk.js"
new file mode 100644
index 0000000000000000000000000000000000000000..7666c5b13e012cb7ad7653d18aa72a7d744d647b
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/lib/walk.js"
@@ -0,0 +1,22 @@
+module.exports = function walk(nodes, cb, bubble) {
+ var i, max, node, result;
+
+ for (i = 0, max = nodes.length; i < max; i += 1) {
+ node = nodes[i];
+ if (!bubble) {
+ result = cb(node, i, nodes);
+ }
+
+ if (
+ result !== false &&
+ node.type === "function" &&
+ Array.isArray(node.nodes)
+ ) {
+ walk(node.nodes, cb, bubble);
+ }
+
+ if (bubble) {
+ cb(node, i, nodes);
+ }
+ }
+};
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/package.json" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/package.json"
new file mode 100644
index 0000000000000000000000000000000000000000..e9bc1e22541c92626b29b331e64406444f3bfd55
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss-value-parser/package.json"
@@ -0,0 +1,87 @@
+{
+ "_from": "postcss-value-parser@^4.1.0",
+ "_id": "postcss-value-parser@4.1.0",
+ "_inBundle": false,
+ "_integrity": "sha1-RD9qIM7WSBor2k+oUypuVdeJoss=",
+ "_location": "/postcss-value-parser",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "postcss-value-parser@^4.1.0",
+ "name": "postcss-value-parser",
+ "escapedName": "postcss-value-parser",
+ "rawSpec": "^4.1.0",
+ "saveSpec": null,
+ "fetchSpec": "^4.1.0"
+ },
+ "_requiredBy": [
+ "/css-loader",
+ "/postcss-modules-local-by-default"
+ ],
+ "_resolved": "https://registry.nlark.com/postcss-value-parser/download/postcss-value-parser-4.1.0.tgz?cache=0&sync_timestamp=1618847024602&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fpostcss-value-parser%2Fdownload%2Fpostcss-value-parser-4.1.0.tgz",
+ "_shasum": "443f6a20ced6481a2bda4fa8532a6e55d789a2cb",
+ "_spec": "postcss-value-parser@^4.1.0",
+ "_where": "C:\\Users\\Administrator\\Desktop\\2021.7.1\\node_modules\\css-loader",
+ "author": {
+ "name": "Bogdan Chadkin",
+ "email": "trysound@yandex.ru"
+ },
+ "bugs": {
+ "url": "https://github.com/TrySound/postcss-value-parser/issues"
+ },
+ "bundleDependencies": false,
+ "deprecated": false,
+ "description": "Transforms css values and at-rule params into the tree",
+ "devDependencies": {
+ "eslint": "^5.16.0",
+ "husky": "^2.3.0",
+ "lint-staged": "^8.1.7",
+ "prettier": "^1.17.1",
+ "tap-spec": "^5.0.0",
+ "tape": "^4.10.2"
+ },
+ "eslintConfig": {
+ "env": {
+ "es6": true,
+ "node": true
+ },
+ "extends": "eslint:recommended"
+ },
+ "files": [
+ "lib"
+ ],
+ "homepage": "https://github.com/TrySound/postcss-value-parser",
+ "husky": {
+ "hooks": {
+ "pre-commit": "lint-staged"
+ }
+ },
+ "keywords": [
+ "postcss",
+ "value",
+ "parser"
+ ],
+ "license": "MIT",
+ "lint-staged": {
+ "*.js": [
+ "eslint",
+ "prettier --write",
+ "git add"
+ ]
+ },
+ "main": "lib/index.js",
+ "name": "postcss-value-parser",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/TrySound/postcss-value-parser.git"
+ },
+ "scripts": {
+ "lint": "yarn lint:js && yarn lint:prettier",
+ "lint:js": "eslint . --cache",
+ "lint:prettier": "prettier '**/*.js' '**/*.ts' --list-different",
+ "pretest": "yarn lint",
+ "test": "tape test/*.js | tap-spec"
+ },
+ "version": "4.1.0"
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/LICENSE" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/LICENSE"
new file mode 100644
index 0000000000000000000000000000000000000000..da057b4562a8b8fcd8ef3898f795cd08aa412ab4
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/LICENSE"
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright 2013 Andrey Sitnik
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/README.md" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/README.md"
new file mode 100644
index 0000000000000000000000000000000000000000..b285d45f8dc9e32a36420daf2cf61abcdb5158bf
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/README.md"
@@ -0,0 +1,533 @@
+# PostCSS [![Gitter][chat-img]][chat]
+
+
+
+[chat-img]: https://img.shields.io/badge/Gitter-Join_the_PostCSS_chat-brightgreen.svg
+[chat]: https://gitter.im/postcss/postcss
+
+PostCSS is a tool for transforming styles with JS plugins.
+These plugins can lint your CSS, support variables and mixins,
+transpile future CSS syntax, inline images, and more.
+
+PostCSS is used by industry leaders including Wikipedia, Twitter, Alibaba,
+and JetBrains. The [Autoprefixer] PostCSS plugin is one of the most popular
+CSS processors.
+
+PostCSS takes a CSS file and provides an API to analyze and modify its rules
+(by transforming them into an [Abstract Syntax Tree]).
+This API can then be used by [plugins] to do a lot of useful things,
+e.g., to find errors automatically, or to insert vendor prefixes.
+
+**Support / Discussion:** [Gitter](https://gitter.im/postcss/postcss)
+**Twitter account:** [@postcss](https://twitter.com/postcss)
+**VK.com page:** [postcss](https://vk.com/postcss)
+**中文翻译**: [`docs/README-cn.md`](./docs/README-cn.md)
+
+For PostCSS commercial support (consulting, improving the front-end culture
+of your company, PostCSS plugins), contact [Evil Martians]
+at .
+
+[Abstract Syntax Tree]: https://en.wikipedia.org/wiki/Abstract_syntax_tree
+[Evil Martians]: https://evilmartians.com/?utm_source=postcss
+[Autoprefixer]: https://github.com/postcss/autoprefixer
+[plugins]: https://github.com/postcss/postcss#plugins
+
+
+
+
+
+
+## Sponsorship
+
+PostCSS needs your support. We are accepting donations
+[at Open Collective](https://opencollective.com/postcss/).
+
+
+
+
+
+
+
+
+## Plugins
+
+Currently, PostCSS has more than 200 plugins. You can find all of the plugins
+in the [plugins list] or in the [searchable catalog]. Below is a list
+of our favorite plugins — the best demonstrations of what can be built
+on top of PostCSS.
+
+If you have any new ideas, [PostCSS plugin development] is really easy.
+
+[searchable catalog]: https://www.postcss.parts/
+[plugins list]: https://github.com/postcss/postcss/blob/main/docs/plugins.md
+
+
+### Solve Global CSS Problem
+
+* [`postcss-use`] allows you to explicitly set PostCSS plugins within CSS
+ and execute them only for the current file.
+* [`postcss-modules`] and [`react-css-modules`] automatically isolate
+ selectors within components.
+* [`postcss-autoreset`] is an alternative to using a global reset
+ that is better for isolatable components.
+* [`postcss-initial`] adds `all: initial` support, which resets
+ all inherited styles.
+* [`cq-prolyfill`] adds container query support, allowing styles that respond
+ to the width of the parent.
+
+
+### Use Future CSS, Today
+
+* [`autoprefixer`] adds vendor prefixes, using data from Can I Use.
+* [`postcss-preset-env`] allows you to use future CSS features today.
+
+
+### Better CSS Readability
+
+* [`precss`] contains plugins for Sass-like features, like variables, nesting,
+ and mixins.
+* [`postcss-sorting`] sorts the content of rules and at-rules.
+* [`postcss-utilities`] includes the most commonly used shortcuts and helpers.
+* [`short`] adds and extends numerous shorthand properties.
+
+
+### Images and Fonts
+
+* [`postcss-assets`] inserts image dimensions and inlines files.
+* [`postcss-sprites`] generates image sprites.
+* [`font-magician`] generates all the `@font-face` rules needed in CSS.
+* [`postcss-inline-svg`] allows you to inline SVG and customize its styles.
+* [`postcss-write-svg`] allows you to write simple SVG directly in your CSS.
+* [`webp-in-css`] to use WebP image format in CSS background.
+* [`avif-in-css`] to use AVIF image format in CSS background.
+
+### Linters
+
+* [`stylelint`] is a modular stylesheet linter.
+* [`stylefmt`] is a tool that automatically formats CSS
+ according `stylelint` rules.
+* [`doiuse`] lints CSS for browser support, using data from Can I Use.
+* [`colorguard`] helps you maintain a consistent color palette.
+
+
+### Other
+
+* [`postcss-rtl`] combines both-directional (left-to-right and right-to-left) styles in one CSS file.
+* [`cssnano`] is a modular CSS minifier.
+* [`lost`] is a feature-rich `calc()` grid system.
+* [`rtlcss`] mirrors styles for right-to-left locales.
+
+[PostCSS plugin development]: https://github.com/postcss/postcss/blob/main/docs/writing-a-plugin.md
+[`postcss-inline-svg`]: https://github.com/TrySound/postcss-inline-svg
+[`postcss-preset-env`]: https://github.com/jonathantneal/postcss-preset-env
+[`react-css-modules`]: https://github.com/gajus/react-css-modules
+[`postcss-autoreset`]: https://github.com/maximkoretskiy/postcss-autoreset
+[`postcss-write-svg`]: https://github.com/jonathantneal/postcss-write-svg
+[`postcss-utilities`]: https://github.com/ismamz/postcss-utilities
+[`postcss-initial`]: https://github.com/maximkoretskiy/postcss-initial
+[`postcss-sprites`]: https://github.com/2createStudio/postcss-sprites
+[`postcss-modules`]: https://github.com/outpunk/postcss-modules
+[`postcss-sorting`]: https://github.com/hudochenkov/postcss-sorting
+[`postcss-assets`]: https://github.com/assetsjs/postcss-assets
+[`font-magician`]: https://github.com/jonathantneal/postcss-font-magician
+[`autoprefixer`]: https://github.com/postcss/autoprefixer
+[`cq-prolyfill`]: https://github.com/ausi/cq-prolyfill
+[`postcss-rtl`]: https://github.com/vkalinichev/postcss-rtl
+[`postcss-use`]: https://github.com/postcss/postcss-use
+[`css-modules`]: https://github.com/css-modules/css-modules
+[`webp-in-css`]: https://github.com/ai/webp-in-css
+[`avif-in-css`]: https://github.com/nucliweb/avif-in-css
+[`colorguard`]: https://github.com/SlexAxton/css-colorguard
+[`stylelint`]: https://github.com/stylelint/stylelint
+[`stylefmt`]: https://github.com/morishitter/stylefmt
+[`cssnano`]: https://cssnano.co/
+[`precss`]: https://github.com/jonathantneal/precss
+[`doiuse`]: https://github.com/anandthakker/doiuse
+[`rtlcss`]: https://github.com/MohammadYounes/rtlcss
+[`short`]: https://github.com/jonathantneal/postcss-short
+[`lost`]: https://github.com/peterramsing/lost
+
+## Syntaxes
+
+PostCSS can transform styles in any syntax, not just CSS.
+If there is not yet support for your favorite syntax,
+you can write a parser and/or stringifier to extend PostCSS.
+
+* [`sugarss`] is a indent-based syntax like Sass or Stylus.
+* [`postcss-syntax`] switch syntax automatically by file extensions.
+* [`postcss-html`] parsing styles in `'
+ * )
+ * document.type //=> 'document'
+ * document.nodes.length //=> 2
+ * ```
+ */
+export default class Document extends Container {
+ type: 'document'
+ parent: undefined
+
+ constructor(defaults?: DocumentProps)
+
+ /**
+ * Returns a `Result` instance representing the document’s CSS roots.
+ *
+ * ```js
+ * const root1 = postcss.parse(css1, { from: 'a.css' })
+ * const root2 = postcss.parse(css2, { from: 'b.css' })
+ * const document = postcss.document()
+ * document.append(root1)
+ * document.append(root2)
+ * const result = document.toResult({ to: 'all.css', map: true })
+ * ```
+ *
+ * @param opts Options.
+ * @return Result with current document’s CSS.
+ */
+ toResult(options?: ProcessOptions): Result
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/document.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/document.js"
new file mode 100644
index 0000000000000000000000000000000000000000..44689917fc57d210b1a4dfad4187ac721c6eb16d
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/document.js"
@@ -0,0 +1,33 @@
+'use strict'
+
+let Container = require('./container')
+
+let LazyResult, Processor
+
+class Document extends Container {
+ constructor(defaults) {
+ // type needs to be passed to super, otherwise child roots won't be normalized correctly
+ super({ type: 'document', ...defaults })
+
+ if (!this.nodes) {
+ this.nodes = []
+ }
+ }
+
+ toResult(opts = {}) {
+ let lazy = new LazyResult(new Processor(), this, opts)
+
+ return lazy.stringify()
+ }
+}
+
+Document.registerLazyResult = dependant => {
+ LazyResult = dependant
+}
+
+Document.registerProcessor = dependant => {
+ Processor = dependant
+}
+
+module.exports = Document
+Document.default = Document
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/fromJSON.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/fromJSON.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..13b169c667cc811ae7bbbb3433cb72d3596d62e1
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/fromJSON.d.ts"
@@ -0,0 +1,5 @@
+import { JSONHydrator } from './postcss.js'
+
+declare const fromJSON: JSONHydrator
+
+export default fromJSON
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/fromJSON.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/fromJSON.js"
new file mode 100644
index 0000000000000000000000000000000000000000..09f2b89aa698adf926fae201ca39ad96a52fd488
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/fromJSON.js"
@@ -0,0 +1,54 @@
+'use strict'
+
+let Declaration = require('./declaration')
+let PreviousMap = require('./previous-map')
+let Comment = require('./comment')
+let AtRule = require('./at-rule')
+let Input = require('./input')
+let Root = require('./root')
+let Rule = require('./rule')
+
+function fromJSON(json, inputs) {
+ if (Array.isArray(json)) return json.map(n => fromJSON(n))
+
+ let { inputs: ownInputs, ...defaults } = json
+ if (ownInputs) {
+ inputs = []
+ for (let input of ownInputs) {
+ let inputHydrated = { ...input, __proto__: Input.prototype }
+ if (inputHydrated.map) {
+ inputHydrated.map = {
+ ...inputHydrated.map,
+ __proto__: PreviousMap.prototype
+ }
+ }
+ inputs.push(inputHydrated)
+ }
+ }
+ if (defaults.nodes) {
+ defaults.nodes = json.nodes.map(n => fromJSON(n, inputs))
+ }
+ if (defaults.source) {
+ let { inputId, ...source } = defaults.source
+ defaults.source = source
+ if (inputId != null) {
+ defaults.source.input = inputs[inputId]
+ }
+ }
+ if (defaults.type === 'root') {
+ return new Root(defaults)
+ } else if (defaults.type === 'decl') {
+ return new Declaration(defaults)
+ } else if (defaults.type === 'rule') {
+ return new Rule(defaults)
+ } else if (defaults.type === 'comment') {
+ return new Comment(defaults)
+ } else if (defaults.type === 'atrule') {
+ return new AtRule(defaults)
+ } else {
+ throw new Error('Unknown node type: ' + json.type)
+ }
+}
+
+module.exports = fromJSON
+fromJSON.default = fromJSON
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/input.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/input.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..399f43473423026d7096943d555e19d74cf5e89a
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/input.d.ts"
@@ -0,0 +1,130 @@
+import { ProcessOptions } from './postcss.js'
+import PreviousMap from './previous-map.js'
+
+export interface FilePosition {
+ /**
+ * URL for the source file.
+ */
+ url: string
+
+ /**
+ * Absolute path to the source file.
+ */
+ file?: string
+
+ /**
+ * Line in source file.
+ */
+ line: number
+
+ /**
+ * Column in source file.
+ */
+ column: number
+
+ /**
+ * Source code.
+ */
+ source?: string
+}
+
+/**
+ * Represents the source CSS.
+ *
+ * ```js
+ * const root = postcss.parse(css, { from: file })
+ * const input = root.source.input
+ * ```
+ */
+export default class Input {
+ /**
+ * Input CSS source.
+ *
+ * ```js
+ * const input = postcss.parse('a{}', { from: file }).input
+ * input.css //=> "a{}"
+ * ```
+ */
+ css: string
+
+ /**
+ * The input source map passed from a compilation step before PostCSS
+ * (for example, from Sass compiler).
+ *
+ * ```js
+ * root.source.input.map.consumer().sources //=> ['a.sass']
+ * ```
+ */
+ map: PreviousMap
+
+ /**
+ * The absolute path to the CSS source file defined
+ * with the `from` option.
+ *
+ * ```js
+ * const root = postcss.parse(css, { from: 'a.css' })
+ * root.source.input.file //=> '/home/ai/a.css'
+ * ```
+ */
+ file?: string
+
+ /**
+ * The unique ID of the CSS source. It will be created if `from` option
+ * is not provided (because PostCSS does not know the file path).
+ *
+ * ```js
+ * const root = postcss.parse(css)
+ * root.source.input.file //=> undefined
+ * root.source.input.id //=> ""
+ * ```
+ */
+ id?: string
+
+ /**
+ * The flag to indicate whether or not the source code has Unicode BOM.
+ */
+ hasBOM: boolean
+
+ /**
+ * @param css Input CSS source.
+ * @param opts Process options.
+ */
+ constructor(css: string, opts?: ProcessOptions)
+
+ /**
+ * The CSS source identifier. Contains `Input#file` if the user
+ * set the `from` option, or `Input#id` if they did not.
+ *
+ * ```js
+ * const root = postcss.parse(css, { from: 'a.css' })
+ * root.source.input.from //=> "/home/ai/a.css"
+ *
+ * const root = postcss.parse(css)
+ * root.source.input.from //=> ""
+ * ```
+ */
+ get from(): string
+
+ /**
+ * Reads the input source map and returns a symbol position
+ * in the input source (e.g., in a Sass file that was compiled
+ * to CSS before being passed to PostCSS).
+ *
+ * ```js
+ * root.source.input.origin(1, 1) //=> { file: 'a.css', line: 3, column: 1 }
+ * ```
+ *
+ * @param line Line in input CSS.
+ * @param column Column in input CSS.
+ *
+ * @return Position in input source.
+ */
+ origin(line: number, column: number): FilePosition | false
+
+ /**
+ * Converts source offset to line and column.
+ *
+ * @param offset Source offset.
+ */
+ fromOffset(offset: number): { line: number; col: number } | null
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/input.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/input.js"
new file mode 100644
index 0000000000000000000000000000000000000000..2a1d26b46bd5795c800442a92e610a6cfcae66ee
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/input.js"
@@ -0,0 +1,216 @@
+'use strict'
+
+let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')
+let { fileURLToPath, pathToFileURL } = require('url')
+let { resolve, isAbsolute } = require('path')
+let { nanoid } = require('nanoid/non-secure')
+
+let terminalHighlight = require('./terminal-highlight')
+let CssSyntaxError = require('./css-syntax-error')
+let PreviousMap = require('./previous-map')
+
+let fromOffsetCache = Symbol('fromOffsetCache')
+
+let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator)
+let pathAvailable = Boolean(resolve && isAbsolute)
+
+class Input {
+ constructor(css, opts = {}) {
+ if (
+ css === null ||
+ typeof css === 'undefined' ||
+ (typeof css === 'object' && !css.toString)
+ ) {
+ throw new Error(`PostCSS received ${css} instead of CSS string`)
+ }
+
+ this.css = css.toString()
+
+ if (this.css[0] === '\uFEFF' || this.css[0] === '\uFFFE') {
+ this.hasBOM = true
+ this.css = this.css.slice(1)
+ } else {
+ this.hasBOM = false
+ }
+
+ if (opts.from) {
+ if (
+ !pathAvailable ||
+ /^\w+:\/\//.test(opts.from) ||
+ isAbsolute(opts.from)
+ ) {
+ this.file = opts.from
+ } else {
+ this.file = resolve(opts.from)
+ }
+ }
+
+ if (pathAvailable && sourceMapAvailable) {
+ let map = new PreviousMap(this.css, opts)
+ if (map.text) {
+ this.map = map
+ let file = map.consumer().file
+ if (!this.file && file) this.file = this.mapResolve(file)
+ }
+ }
+
+ if (!this.file) {
+ this.id = ''
+ }
+ if (this.map) this.map.file = this.from
+ }
+
+ fromOffset(offset) {
+ let lastLine, lineToIndex
+ if (!this[fromOffsetCache]) {
+ let lines = this.css.split('\n')
+ lineToIndex = new Array(lines.length)
+ let prevIndex = 0
+
+ for (let i = 0, l = lines.length; i < l; i++) {
+ lineToIndex[i] = prevIndex
+ prevIndex += lines[i].length + 1
+ }
+
+ this[fromOffsetCache] = lineToIndex
+ } else {
+ lineToIndex = this[fromOffsetCache]
+ }
+ lastLine = lineToIndex[lineToIndex.length - 1]
+
+ let min = 0
+ if (offset >= lastLine) {
+ min = lineToIndex.length - 1
+ } else {
+ let max = lineToIndex.length - 2
+ let mid
+ while (min < max) {
+ mid = min + ((max - min) >> 1)
+ if (offset < lineToIndex[mid]) {
+ max = mid - 1
+ } else if (offset >= lineToIndex[mid + 1]) {
+ min = mid + 1
+ } else {
+ min = mid
+ break
+ }
+ }
+ }
+ return {
+ line: min + 1,
+ col: offset - lineToIndex[min] + 1
+ }
+ }
+
+ error(message, line, column, opts = {}) {
+ let result
+ if (!column) {
+ let pos = this.fromOffset(line)
+ line = pos.line
+ column = pos.col
+ }
+ let origin = this.origin(line, column)
+ if (origin) {
+ result = new CssSyntaxError(
+ message,
+ origin.line,
+ origin.column,
+ origin.source,
+ origin.file,
+ opts.plugin
+ )
+ } else {
+ result = new CssSyntaxError(
+ message,
+ line,
+ column,
+ this.css,
+ this.file,
+ opts.plugin
+ )
+ }
+
+ result.input = { line, column, source: this.css }
+ if (this.file) {
+ if (pathToFileURL) {
+ result.input.url = pathToFileURL(this.file).toString()
+ }
+ result.input.file = this.file
+ }
+
+ return result
+ }
+
+ origin(line, column) {
+ if (!this.map) return false
+ let consumer = this.map.consumer()
+
+ let from = consumer.originalPositionFor({ line, column })
+ if (!from.source) return false
+
+ let fromUrl
+
+ if (isAbsolute(from.source)) {
+ fromUrl = pathToFileURL(from.source)
+ } else {
+ fromUrl = new URL(
+ from.source,
+ this.map.consumer().sourceRoot || pathToFileURL(this.map.mapFile)
+ )
+ }
+
+ let result = {
+ url: fromUrl.toString(),
+ line: from.line,
+ column: from.column
+ }
+
+ if (fromUrl.protocol === 'file:') {
+ if (fileURLToPath) {
+ result.file = fileURLToPath(fromUrl)
+ } else {
+ // istanbul ignore next
+ throw new Error(`file: protocol is not available in this PostCSS build`)
+ }
+ }
+
+ let source = consumer.sourceContentFor(from.source)
+ if (source) result.source = source
+
+ return result
+ }
+
+ mapResolve(file) {
+ if (/^\w+:\/\//.test(file)) {
+ return file
+ }
+ return resolve(this.map.consumer().sourceRoot || this.map.root || '.', file)
+ }
+
+ get from() {
+ return this.file || this.id
+ }
+
+ toJSON() {
+ let json = {}
+ for (let name of ['hasBOM', 'css', 'file', 'id']) {
+ if (this[name] != null) {
+ json[name] = this[name]
+ }
+ }
+ if (this.map) {
+ json.map = { ...this.map }
+ if (json.map.consumerCache) {
+ json.map.consumerCache = undefined
+ }
+ }
+ return json
+ }
+}
+
+module.exports = Input
+Input.default = Input
+
+if (terminalHighlight && terminalHighlight.registerInput) {
+ terminalHighlight.registerInput(Input)
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/lazy-result.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/lazy-result.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..9da0fb5a1cb9c8e9664f23717667a37e60d02e7f
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/lazy-result.d.ts"
@@ -0,0 +1,175 @@
+import Result, { Message, ResultOptions } from './result.js'
+import { SourceMap } from './postcss.js'
+import Processor from './processor.js'
+import Warning from './warning.js'
+import Root from './root.js'
+
+/**
+ * A Promise proxy for the result of PostCSS transformations.
+ *
+ * A `LazyResult` instance is returned by `Processor#process`.
+ *
+ * ```js
+ * const lazy = postcss([autoprefixer]).process(css)
+ * ```
+ */
+export default class LazyResult implements PromiseLike {
+ /**
+ * Processes input CSS through synchronous and asynchronous plugins
+ * and calls `onFulfilled` with a Result instance. If a plugin throws
+ * an error, the `onRejected` callback will be executed.
+ *
+ * It implements standard Promise API.
+ *
+ * ```js
+ * postcss([autoprefixer]).process(css, { from: cssPath }).then(result => {
+ * console.log(result.css)
+ * })
+ * ```
+ */
+ then: Promise['then']
+
+ /**
+ * Processes input CSS through synchronous and asynchronous plugins
+ * and calls onRejected for each error thrown in any plugin.
+ *
+ * It implements standard Promise API.
+ *
+ * ```js
+ * postcss([autoprefixer]).process(css).then(result => {
+ * console.log(result.css)
+ * }).catch(error => {
+ * console.error(error)
+ * })
+ * ```
+ */
+ catch: Promise['catch']
+
+ /**
+ * Processes input CSS through synchronous and asynchronous plugins
+ * and calls onFinally on any error or when all plugins will finish work.
+ *
+ * It implements standard Promise API.
+ *
+ * ```js
+ * postcss([autoprefixer]).process(css).finally(() => {
+ * console.log('processing ended')
+ * })
+ * ```
+ */
+ finally: Promise['finally']
+
+ /**
+ * @param processor Processor used for this transformation.
+ * @param css CSS to parse and transform.
+ * @param opts Options from the `Processor#process` or `Root#toResult`.
+ */
+ constructor(processor: Processor, css: string, opts: ResultOptions)
+
+ /**
+ * Returns the default string description of an object.
+ * Required to implement the Promise interface.
+ */
+ get [Symbol.toStringTag](): string
+
+ /**
+ * Returns a `Processor` instance, which will be used
+ * for CSS transformations.
+ */
+ get processor(): Processor
+
+ /**
+ * Options from the `Processor#process` call.
+ */
+ get opts(): ResultOptions
+
+ /**
+ * Processes input CSS through synchronous plugins, converts `Root`
+ * to a CSS string and returns `Result#css`.
+ *
+ * This property will only work with synchronous plugins.
+ * If the processor contains any asynchronous plugins
+ * it will throw an error. This is why this method is only
+ * for debug purpose, you should always use `LazyResult#then`.
+ */
+ get css(): string
+
+ /**
+ * An alias for the `css` property. Use it with syntaxes
+ * that generate non-CSS output.
+ *
+ * This property will only work with synchronous plugins.
+ * If the processor contains any asynchronous plugins
+ * it will throw an error. This is why this method is only
+ * for debug purpose, you should always use `LazyResult#then`.
+ */
+ get content(): string
+
+ /**
+ * Processes input CSS through synchronous plugins
+ * and returns `Result#map`.
+ *
+ * This property will only work with synchronous plugins.
+ * If the processor contains any asynchronous plugins
+ * it will throw an error. This is why this method is only
+ * for debug purpose, you should always use `LazyResult#then`.
+ */
+ get map(): SourceMap
+
+ /**
+ * Processes input CSS through synchronous plugins
+ * and returns `Result#root`.
+ *
+ * This property will only work with synchronous plugins. If the processor
+ * contains any asynchronous plugins it will throw an error.
+ *
+ * This is why this method is only for debug purpose,
+ * you should always use `LazyResult#then`.
+ */
+ get root(): Root
+
+ /**
+ * Processes input CSS through synchronous plugins
+ * and returns `Result#messages`.
+ *
+ * This property will only work with synchronous plugins. If the processor
+ * contains any asynchronous plugins it will throw an error.
+ *
+ * This is why this method is only for debug purpose,
+ * you should always use `LazyResult#then`.
+ */
+ get messages(): Message[]
+
+ /**
+ * Processes input CSS through synchronous plugins
+ * and calls `Result#warnings`.
+ *
+ * @return Warnings from plugins.
+ */
+ warnings(): Warning[]
+
+ /**
+ * Alias for the `LazyResult#css` property.
+ *
+ * ```js
+ * lazy + '' === lazy.css
+ * ```
+ *
+ * @return Output CSS.
+ */
+ toString(): string
+
+ /**
+ * Run plugin in sync way and return `Result`.
+ *
+ * @return Result with output content.
+ */
+ sync(): Result
+
+ /**
+ * Run plugin in async way and return `Result`.
+ *
+ * @return Result with output content.
+ */
+ async(): Promise
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/lazy-result.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/lazy-result.js"
new file mode 100644
index 0000000000000000000000000000000000000000..6069ba6904044ed798f92d8079f0035c525eb1ca
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/lazy-result.js"
@@ -0,0 +1,548 @@
+'use strict'
+
+let { isClean, my } = require('./symbols')
+let MapGenerator = require('./map-generator')
+let stringify = require('./stringify')
+let Container = require('./container')
+let Document = require('./document')
+let warnOnce = require('./warn-once')
+let Result = require('./result')
+let parse = require('./parse')
+let Root = require('./root')
+
+const TYPE_TO_CLASS_NAME = {
+ document: 'Document',
+ root: 'Root',
+ atrule: 'AtRule',
+ rule: 'Rule',
+ decl: 'Declaration',
+ comment: 'Comment'
+}
+
+const PLUGIN_PROPS = {
+ postcssPlugin: true,
+ prepare: true,
+ Once: true,
+ Document: true,
+ Root: true,
+ Declaration: true,
+ Rule: true,
+ AtRule: true,
+ Comment: true,
+ DeclarationExit: true,
+ RuleExit: true,
+ AtRuleExit: true,
+ CommentExit: true,
+ RootExit: true,
+ DocumentExit: true,
+ OnceExit: true
+}
+
+const NOT_VISITORS = {
+ postcssPlugin: true,
+ prepare: true,
+ Once: true
+}
+
+const CHILDREN = 0
+
+function isPromise(obj) {
+ return typeof obj === 'object' && typeof obj.then === 'function'
+}
+
+function getEvents(node) {
+ let key = false
+ let type = TYPE_TO_CLASS_NAME[node.type]
+ if (node.type === 'decl') {
+ key = node.prop.toLowerCase()
+ } else if (node.type === 'atrule') {
+ key = node.name.toLowerCase()
+ }
+
+ if (key && node.append) {
+ return [
+ type,
+ type + '-' + key,
+ CHILDREN,
+ type + 'Exit',
+ type + 'Exit-' + key
+ ]
+ } else if (key) {
+ return [type, type + '-' + key, type + 'Exit', type + 'Exit-' + key]
+ } else if (node.append) {
+ return [type, CHILDREN, type + 'Exit']
+ } else {
+ return [type, type + 'Exit']
+ }
+}
+
+function toStack(node) {
+ let events
+ if (node.type === 'document') {
+ events = ['Document', CHILDREN, 'DocumentExit']
+ } else if (node.type === 'root') {
+ events = ['Root', CHILDREN, 'RootExit']
+ } else {
+ events = getEvents(node)
+ }
+
+ return {
+ node,
+ events,
+ eventIndex: 0,
+ visitors: [],
+ visitorIndex: 0,
+ iterator: 0
+ }
+}
+
+function cleanMarks(node) {
+ node[isClean] = false
+ if (node.nodes) node.nodes.forEach(i => cleanMarks(i))
+ return node
+}
+
+let postcss = {}
+
+class LazyResult {
+ constructor(processor, css, opts) {
+ this.stringified = false
+ this.processed = false
+
+ let root
+ if (
+ typeof css === 'object' &&
+ css !== null &&
+ (css.type === 'root' || css.type === 'document')
+ ) {
+ root = cleanMarks(css)
+ } else if (css instanceof LazyResult || css instanceof Result) {
+ root = cleanMarks(css.root)
+ if (css.map) {
+ if (typeof opts.map === 'undefined') opts.map = {}
+ if (!opts.map.inline) opts.map.inline = false
+ opts.map.prev = css.map
+ }
+ } else {
+ let parser = parse
+ if (opts.syntax) parser = opts.syntax.parse
+ if (opts.parser) parser = opts.parser
+ if (parser.parse) parser = parser.parse
+
+ try {
+ root = parser(css, opts)
+ } catch (error) {
+ this.processed = true
+ this.error = error
+ }
+
+ if (root && !root[my]) {
+ // istanbul ignore next
+ Container.rebuild(root)
+ }
+ }
+
+ this.result = new Result(processor, root, opts)
+ this.helpers = { ...postcss, result: this.result, postcss }
+ this.plugins = this.processor.plugins.map(plugin => {
+ if (typeof plugin === 'object' && plugin.prepare) {
+ return { ...plugin, ...plugin.prepare(this.result) }
+ } else {
+ return plugin
+ }
+ })
+ }
+
+ get [Symbol.toStringTag]() {
+ return 'LazyResult'
+ }
+
+ get processor() {
+ return this.result.processor
+ }
+
+ get opts() {
+ return this.result.opts
+ }
+
+ get css() {
+ return this.stringify().css
+ }
+
+ get content() {
+ return this.stringify().content
+ }
+
+ get map() {
+ return this.stringify().map
+ }
+
+ get root() {
+ return this.sync().root
+ }
+
+ get messages() {
+ return this.sync().messages
+ }
+
+ warnings() {
+ return this.sync().warnings()
+ }
+
+ toString() {
+ return this.css
+ }
+
+ then(onFulfilled, onRejected) {
+ if (process.env.NODE_ENV !== 'production') {
+ if (!('from' in this.opts)) {
+ warnOnce(
+ 'Without `from` option PostCSS could generate wrong source map ' +
+ 'and will not find Browserslist config. Set it to CSS file path ' +
+ 'or to `undefined` to prevent this warning.'
+ )
+ }
+ }
+ return this.async().then(onFulfilled, onRejected)
+ }
+
+ catch(onRejected) {
+ return this.async().catch(onRejected)
+ }
+
+ finally(onFinally) {
+ return this.async().then(onFinally, onFinally)
+ }
+
+ async() {
+ if (this.error) return Promise.reject(this.error)
+ if (this.processed) return Promise.resolve(this.result)
+ if (!this.processing) {
+ this.processing = this.runAsync()
+ }
+ return this.processing
+ }
+
+ sync() {
+ if (this.error) throw this.error
+ if (this.processed) return this.result
+ this.processed = true
+
+ if (this.processing) {
+ throw this.getAsyncError()
+ }
+
+ for (let plugin of this.plugins) {
+ let promise = this.runOnRoot(plugin)
+ if (isPromise(promise)) {
+ throw this.getAsyncError()
+ }
+ }
+
+ this.prepareVisitors()
+ if (this.hasListener) {
+ let root = this.result.root
+ while (!root[isClean]) {
+ root[isClean] = true
+ this.walkSync(root)
+ }
+ if (this.listeners.OnceExit) {
+ if (root.type === 'document') {
+ for (let subRoot of root.nodes) {
+ this.visitSync(this.listeners.OnceExit, subRoot)
+ }
+ } else {
+ this.visitSync(this.listeners.OnceExit, root)
+ }
+ }
+ }
+
+ return this.result
+ }
+
+ stringify() {
+ if (this.error) throw this.error
+ if (this.stringified) return this.result
+ this.stringified = true
+
+ this.sync()
+
+ let opts = this.result.opts
+ let str = stringify
+ if (opts.syntax) str = opts.syntax.stringify
+ if (opts.stringifier) str = opts.stringifier
+ if (str.stringify) str = str.stringify
+
+ let map = new MapGenerator(str, this.result.root, this.result.opts)
+ let data = map.generate()
+ this.result.css = data[0]
+ this.result.map = data[1]
+
+ return this.result
+ }
+
+ walkSync(node) {
+ node[isClean] = true
+ let events = getEvents(node)
+ for (let event of events) {
+ if (event === CHILDREN) {
+ if (node.nodes) {
+ node.each(child => {
+ if (!child[isClean]) this.walkSync(child)
+ })
+ }
+ } else {
+ let visitors = this.listeners[event]
+ if (visitors) {
+ if (this.visitSync(visitors, node.toProxy())) return
+ }
+ }
+ }
+ }
+
+ visitSync(visitors, node) {
+ for (let [plugin, visitor] of visitors) {
+ this.result.lastPlugin = plugin
+ let promise
+ try {
+ promise = visitor(node, this.helpers)
+ } catch (e) {
+ throw this.handleError(e, node.proxyOf)
+ }
+ if (node.type !== 'root' && node.type !== 'document' && !node.parent) {
+ return true
+ }
+ if (isPromise(promise)) {
+ throw this.getAsyncError()
+ }
+ }
+ }
+
+ runOnRoot(plugin) {
+ this.result.lastPlugin = plugin
+ try {
+ if (typeof plugin === 'object' && plugin.Once) {
+ if (this.result.root.type === 'document') {
+ let roots = this.result.root.nodes.map(root =>
+ plugin.Once(root, this.helpers)
+ )
+
+ if (isPromise(roots[0])) {
+ return Promise.all(roots)
+ }
+
+ return roots
+ }
+
+ return plugin.Once(this.result.root, this.helpers)
+ } else if (typeof plugin === 'function') {
+ return plugin(this.result.root, this.result)
+ }
+ } catch (error) {
+ throw this.handleError(error)
+ }
+ }
+
+ getAsyncError() {
+ throw new Error('Use process(css).then(cb) to work with async plugins')
+ }
+
+ handleError(error, node) {
+ let plugin = this.result.lastPlugin
+ try {
+ if (node) node.addToError(error)
+ this.error = error
+ if (error.name === 'CssSyntaxError' && !error.plugin) {
+ error.plugin = plugin.postcssPlugin
+ error.setMessage()
+ } else if (plugin.postcssVersion) {
+ if (process.env.NODE_ENV !== 'production') {
+ let pluginName = plugin.postcssPlugin
+ let pluginVer = plugin.postcssVersion
+ let runtimeVer = this.result.processor.version
+ let a = pluginVer.split('.')
+ let b = runtimeVer.split('.')
+
+ if (a[0] !== b[0] || parseInt(a[1]) > parseInt(b[1])) {
+ console.error(
+ 'Unknown error from PostCSS plugin. Your current PostCSS ' +
+ 'version is ' +
+ runtimeVer +
+ ', but ' +
+ pluginName +
+ ' uses ' +
+ pluginVer +
+ '. Perhaps this is the source of the error below.'
+ )
+ }
+ }
+ }
+ } catch (err) {
+ // istanbul ignore next
+ if (console && console.error) console.error(err)
+ }
+ return error
+ }
+
+ async runAsync() {
+ this.plugin = 0
+ for (let i = 0; i < this.plugins.length; i++) {
+ let plugin = this.plugins[i]
+ let promise = this.runOnRoot(plugin)
+ if (isPromise(promise)) {
+ try {
+ await promise
+ } catch (error) {
+ throw this.handleError(error)
+ }
+ }
+ }
+
+ this.prepareVisitors()
+ if (this.hasListener) {
+ let root = this.result.root
+ while (!root[isClean]) {
+ root[isClean] = true
+ let stack = [toStack(root)]
+ while (stack.length > 0) {
+ let promise = this.visitTick(stack)
+ if (isPromise(promise)) {
+ try {
+ await promise
+ } catch (e) {
+ let node = stack[stack.length - 1].node
+ throw this.handleError(e, node)
+ }
+ }
+ }
+ }
+
+ if (this.listeners.OnceExit) {
+ for (let [plugin, visitor] of this.listeners.OnceExit) {
+ this.result.lastPlugin = plugin
+ try {
+ if (root.type === 'document') {
+ let roots = root.nodes.map(subRoot =>
+ visitor(subRoot, this.helpers)
+ )
+
+ await Promise.all(roots)
+ } else {
+ await visitor(root, this.helpers)
+ }
+ } catch (e) {
+ throw this.handleError(e)
+ }
+ }
+ }
+ }
+
+ this.processed = true
+ return this.stringify()
+ }
+
+ prepareVisitors() {
+ this.listeners = {}
+ let add = (plugin, type, cb) => {
+ if (!this.listeners[type]) this.listeners[type] = []
+ this.listeners[type].push([plugin, cb])
+ }
+ for (let plugin of this.plugins) {
+ if (typeof plugin === 'object') {
+ for (let event in plugin) {
+ if (!PLUGIN_PROPS[event] && /^[A-Z]/.test(event)) {
+ throw new Error(
+ `Unknown event ${event} in ${plugin.postcssPlugin}. ` +
+ `Try to update PostCSS (${this.processor.version} now).`
+ )
+ }
+ if (!NOT_VISITORS[event]) {
+ if (typeof plugin[event] === 'object') {
+ for (let filter in plugin[event]) {
+ if (filter === '*') {
+ add(plugin, event, plugin[event][filter])
+ } else {
+ add(
+ plugin,
+ event + '-' + filter.toLowerCase(),
+ plugin[event][filter]
+ )
+ }
+ }
+ } else if (typeof plugin[event] === 'function') {
+ add(plugin, event, plugin[event])
+ }
+ }
+ }
+ }
+ }
+ this.hasListener = Object.keys(this.listeners).length > 0
+ }
+
+ visitTick(stack) {
+ let visit = stack[stack.length - 1]
+ let { node, visitors } = visit
+
+ if (node.type !== 'root' && node.type !== 'document' && !node.parent) {
+ stack.pop()
+ return
+ }
+
+ if (visitors.length > 0 && visit.visitorIndex < visitors.length) {
+ let [plugin, visitor] = visitors[visit.visitorIndex]
+ visit.visitorIndex += 1
+ if (visit.visitorIndex === visitors.length) {
+ visit.visitors = []
+ visit.visitorIndex = 0
+ }
+ this.result.lastPlugin = plugin
+ try {
+ return visitor(node.toProxy(), this.helpers)
+ } catch (e) {
+ throw this.handleError(e, node)
+ }
+ }
+
+ if (visit.iterator !== 0) {
+ let iterator = visit.iterator
+ let child
+ while ((child = node.nodes[node.indexes[iterator]])) {
+ node.indexes[iterator] += 1
+ if (!child[isClean]) {
+ child[isClean] = true
+ stack.push(toStack(child))
+ return
+ }
+ }
+ visit.iterator = 0
+ delete node.indexes[iterator]
+ }
+
+ let events = visit.events
+ while (visit.eventIndex < events.length) {
+ let event = events[visit.eventIndex]
+ visit.eventIndex += 1
+ if (event === CHILDREN) {
+ if (node.nodes && node.nodes.length) {
+ node[isClean] = true
+ visit.iterator = node.getIterator()
+ }
+ return
+ } else if (this.listeners[event]) {
+ visit.visitors = this.listeners[event]
+ return
+ }
+ }
+ stack.pop()
+ }
+}
+
+LazyResult.registerPostcss = dependant => {
+ postcss = dependant
+}
+
+module.exports = LazyResult
+LazyResult.default = LazyResult
+
+Root.registerLazyResult(LazyResult)
+Document.registerLazyResult(LazyResult)
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/list.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/list.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..79841edeb4cb61e64107bedebf1fd0675efc957d
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/list.d.ts"
@@ -0,0 +1,51 @@
+export type List = {
+ /**
+ * Safely splits values.
+ *
+ * ```js
+ * Once (root, { list }) {
+ * list.split('1px calc(10% + 1px)', [' ', '\n', '\t']) //=> ['1px', 'calc(10% + 1px)']
+ * }
+ * ```
+ *
+ * @param string separated values.
+ * @param separators array of separators.
+ * @param last boolean indicator.
+ * @return Split values.
+ */
+ split(string: string, separators: string[], last: boolean): string[]
+ /**
+ * Safely splits space-separated values (such as those for `background`,
+ * `border-radius`, and other shorthand properties).
+ *
+ * ```js
+ * Once (root, { list }) {
+ * list.space('1px calc(10% + 1px)') //=> ['1px', 'calc(10% + 1px)']
+ * }
+ * ```
+ *
+ * @param str Space-separated values.
+ * @return Split values.
+ */
+ space(str: string): string[]
+
+ /**
+ * Safely splits comma-separated values (such as those for `transition-*`
+ * and `background` properties).
+ *
+ * ```js
+ * Once (root, { list }) {
+ * list.comma('black, linear-gradient(white, black)')
+ * //=> ['black', 'linear-gradient(white, black)']
+ * }
+ * ```
+ *
+ * @param str Comma-separated values.
+ * @return Split values.
+ */
+ comma(str: string): string[]
+}
+
+declare const list: List
+
+export default list
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/list.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/list.js"
new file mode 100644
index 0000000000000000000000000000000000000000..08e94162c3beab0c25c148c5af38a272e2bb55cf
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/list.js"
@@ -0,0 +1,56 @@
+'use strict'
+
+let list = {
+ split(string, separators, last) {
+ let array = []
+ let current = ''
+ let split = false
+
+ let func = 0
+ let quote = false
+ let escape = false
+
+ for (let letter of string) {
+ if (escape) {
+ escape = false
+ } else if (letter === '\\') {
+ escape = true
+ } else if (quote) {
+ if (letter === quote) {
+ quote = false
+ }
+ } else if (letter === '"' || letter === "'") {
+ quote = letter
+ } else if (letter === '(') {
+ func += 1
+ } else if (letter === ')') {
+ if (func > 0) func -= 1
+ } else if (func === 0) {
+ if (separators.includes(letter)) split = true
+ }
+
+ if (split) {
+ if (current !== '') array.push(current.trim())
+ current = ''
+ split = false
+ } else {
+ current += letter
+ }
+ }
+
+ if (last || current !== '') array.push(current.trim())
+ return array
+ },
+
+ space(string) {
+ let spaces = [' ', '\n', '\t']
+ return list.split(string, spaces)
+ },
+
+ comma(string) {
+ return list.split(string, [','], true)
+ }
+}
+
+module.exports = list
+list.default = list
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/map-generator.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/map-generator.js"
new file mode 100644
index 0000000000000000000000000000000000000000..a86cc67a0c8dc68d2df5ab7591a14e632160c6f4
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/map-generator.js"
@@ -0,0 +1,300 @@
+'use strict'
+
+let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')
+let { dirname, resolve, relative, sep } = require('path')
+let { pathToFileURL } = require('url')
+
+let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator)
+let pathAvailable = Boolean(dirname && resolve && relative && sep)
+
+class MapGenerator {
+ constructor(stringify, root, opts) {
+ this.stringify = stringify
+ this.mapOpts = opts.map || {}
+ this.root = root
+ this.opts = opts
+ }
+
+ isMap() {
+ if (typeof this.opts.map !== 'undefined') {
+ return !!this.opts.map
+ }
+ return this.previous().length > 0
+ }
+
+ previous() {
+ if (!this.previousMaps) {
+ this.previousMaps = []
+ this.root.walk(node => {
+ if (node.source && node.source.input.map) {
+ let map = node.source.input.map
+ if (!this.previousMaps.includes(map)) {
+ this.previousMaps.push(map)
+ }
+ }
+ })
+ }
+
+ return this.previousMaps
+ }
+
+ isInline() {
+ if (typeof this.mapOpts.inline !== 'undefined') {
+ return this.mapOpts.inline
+ }
+
+ let annotation = this.mapOpts.annotation
+ if (typeof annotation !== 'undefined' && annotation !== true) {
+ return false
+ }
+
+ if (this.previous().length) {
+ return this.previous().some(i => i.inline)
+ }
+ return true
+ }
+
+ isSourcesContent() {
+ if (typeof this.mapOpts.sourcesContent !== 'undefined') {
+ return this.mapOpts.sourcesContent
+ }
+ if (this.previous().length) {
+ return this.previous().some(i => i.withContent())
+ }
+ return true
+ }
+
+ clearAnnotation() {
+ if (this.mapOpts.annotation === false) return
+
+ let node
+ for (let i = this.root.nodes.length - 1; i >= 0; i--) {
+ node = this.root.nodes[i]
+ if (node.type !== 'comment') continue
+ if (node.text.indexOf('# sourceMappingURL=') === 0) {
+ this.root.removeChild(i)
+ }
+ }
+ }
+
+ setSourcesContent() {
+ let already = {}
+ this.root.walk(node => {
+ if (node.source) {
+ let from = node.source.input.from
+ if (from && !already[from]) {
+ already[from] = true
+ this.map.setSourceContent(
+ this.toUrl(this.path(from)),
+ node.source.input.css
+ )
+ }
+ }
+ })
+ }
+
+ applyPrevMaps() {
+ for (let prev of this.previous()) {
+ let from = this.toUrl(this.path(prev.file))
+ let root = prev.root || dirname(prev.file)
+ let map
+
+ if (this.mapOpts.sourcesContent === false) {
+ map = new SourceMapConsumer(prev.text)
+ if (map.sourcesContent) {
+ map.sourcesContent = map.sourcesContent.map(() => null)
+ }
+ } else {
+ map = prev.consumer()
+ }
+
+ this.map.applySourceMap(map, from, this.toUrl(this.path(root)))
+ }
+ }
+
+ isAnnotation() {
+ if (this.isInline()) {
+ return true
+ }
+ if (typeof this.mapOpts.annotation !== 'undefined') {
+ return this.mapOpts.annotation
+ }
+ if (this.previous().length) {
+ return this.previous().some(i => i.annotation)
+ }
+ return true
+ }
+
+ toBase64(str) {
+ if (Buffer) {
+ return Buffer.from(str).toString('base64')
+ } else {
+ // istanbul ignore next
+ return window.btoa(unescape(encodeURIComponent(str)))
+ }
+ }
+
+ addAnnotation() {
+ let content
+
+ if (this.isInline()) {
+ content =
+ 'data:application/json;base64,' + this.toBase64(this.map.toString())
+ } else if (typeof this.mapOpts.annotation === 'string') {
+ content = this.mapOpts.annotation
+ } else if (typeof this.mapOpts.annotation === 'function') {
+ content = this.mapOpts.annotation(this.opts.to, this.root)
+ } else {
+ content = this.outputFile() + '.map'
+ }
+
+ let eol = '\n'
+ if (this.css.includes('\r\n')) eol = '\r\n'
+
+ this.css += eol + '/*# sourceMappingURL=' + content + ' */'
+ }
+
+ outputFile() {
+ if (this.opts.to) {
+ return this.path(this.opts.to)
+ }
+ if (this.opts.from) {
+ return this.path(this.opts.from)
+ }
+ return 'to.css'
+ }
+
+ generateMap() {
+ this.generateString()
+ if (this.isSourcesContent()) this.setSourcesContent()
+ if (this.previous().length > 0) this.applyPrevMaps()
+ if (this.isAnnotation()) this.addAnnotation()
+
+ if (this.isInline()) {
+ return [this.css]
+ }
+ return [this.css, this.map]
+ }
+
+ path(file) {
+ if (file.indexOf('<') === 0) return file
+ if (/^\w+:\/\//.test(file)) return file
+ if (this.mapOpts.absolute) return file
+
+ let from = this.opts.to ? dirname(this.opts.to) : '.'
+
+ if (typeof this.mapOpts.annotation === 'string') {
+ from = dirname(resolve(from, this.mapOpts.annotation))
+ }
+
+ file = relative(from, file)
+ return file
+ }
+
+ toUrl(path) {
+ if (sep === '\\') {
+ // istanbul ignore next
+ path = path.replace(/\\/g, '/')
+ }
+ return encodeURI(path).replace(/[#?]/g, encodeURIComponent)
+ }
+
+ sourcePath(node) {
+ if (this.mapOpts.from) {
+ return this.toUrl(this.mapOpts.from)
+ } else if (this.mapOpts.absolute) {
+ if (pathToFileURL) {
+ return pathToFileURL(node.source.input.from).toString()
+ } else {
+ // istanbul ignore next
+ throw new Error(
+ '`map.absolute` option is not available in this PostCSS build'
+ )
+ }
+ } else {
+ return this.toUrl(this.path(node.source.input.from))
+ }
+ }
+
+ generateString() {
+ this.css = ''
+ this.map = new SourceMapGenerator({ file: this.outputFile() })
+
+ let line = 1
+ let column = 1
+
+ let noSource = ''
+ let mapping = {
+ source: '',
+ generated: { line: 0, column: 0 },
+ original: { line: 0, column: 0 }
+ }
+
+ let lines, last
+ this.stringify(this.root, (str, node, type) => {
+ this.css += str
+
+ if (node && type !== 'end') {
+ mapping.generated.line = line
+ mapping.generated.column = column - 1
+ if (node.source && node.source.start) {
+ mapping.source = this.sourcePath(node)
+ mapping.original.line = node.source.start.line
+ mapping.original.column = node.source.start.column - 1
+ this.map.addMapping(mapping)
+ } else {
+ mapping.source = noSource
+ mapping.original.line = 1
+ mapping.original.column = 0
+ this.map.addMapping(mapping)
+ }
+ }
+
+ lines = str.match(/\n/g)
+ if (lines) {
+ line += lines.length
+ last = str.lastIndexOf('\n')
+ column = str.length - last
+ } else {
+ column += str.length
+ }
+
+ if (node && type !== 'start') {
+ let p = node.parent || { raws: {} }
+ if (node.type !== 'decl' || node !== p.last || p.raws.semicolon) {
+ if (node.source && node.source.end) {
+ mapping.source = this.sourcePath(node)
+ mapping.original.line = node.source.end.line
+ mapping.original.column = node.source.end.column - 1
+ mapping.generated.line = line
+ mapping.generated.column = column - 2
+ this.map.addMapping(mapping)
+ } else {
+ mapping.source = noSource
+ mapping.original.line = 1
+ mapping.original.column = 0
+ mapping.generated.line = line
+ mapping.generated.column = column - 1
+ this.map.addMapping(mapping)
+ }
+ }
+ }
+ })
+ }
+
+ generate() {
+ this.clearAnnotation()
+
+ if (pathAvailable && sourceMapAvailable && this.isMap()) {
+ return this.generateMap()
+ }
+
+ let result = ''
+ this.stringify(this.root, i => {
+ result += i
+ })
+ return [result]
+ }
+}
+
+module.exports = MapGenerator
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/node.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/node.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..9e46e87644b05ee762f65c7a0f676e24662fa75d
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/node.d.ts"
@@ -0,0 +1,444 @@
+import Declaration, { DeclarationProps } from './declaration.js'
+import Comment, { CommentProps } from './comment.js'
+import { Stringifier, Syntax } from './postcss.js'
+import AtRule, { AtRuleProps } from './at-rule.js'
+import Rule, { RuleProps } from './rule.js'
+import { WarningOptions } from './warning.js'
+import CssSyntaxError from './css-syntax-error.js'
+import Result from './result.js'
+import Input from './input.js'
+import Root from './root.js'
+import Document from './document.js'
+import Container from './container.js'
+
+export type ChildNode = AtRule | Rule | Declaration | Comment
+
+export type AnyNode = AtRule | Rule | Declaration | Comment | Root | Document
+
+export type ChildProps =
+ | AtRuleProps
+ | RuleProps
+ | DeclarationProps
+ | CommentProps
+
+export interface Position {
+ /**
+ * Source offset in file. It starts from 0.
+ */
+ offset: number
+
+ /**
+ * Source line in file. In contrast to `offset` it starts from 1.
+ */
+ column: number
+
+ /**
+ * Source column in file.
+ */
+ line: number
+}
+
+export interface Source {
+ /**
+ * The file source of the node.
+ */
+ input: Input
+ /**
+ * The starting position of the node’s source.
+ */
+ start?: Position
+ /**
+ * The ending position of the node's source.
+ */
+ end?: Position
+}
+
+export interface NodeProps {
+ source?: Source
+}
+
+interface NodeErrorOptions {
+ /**
+ * Plugin name that created this error. PostCSS will set it automatically.
+ */
+ plugin?: string
+ /**
+ * A word inside a node's string, that should be highlighted as source
+ * of error.
+ */
+ word?: string
+ /**
+ * An index inside a node's string that should be highlighted as source
+ * of error.
+ */
+ index?: number
+}
+
+/**
+ * All node classes inherit the following common methods.
+ *
+ * You should not extend this classes to create AST for selector or value
+ * parser.
+ */
+export default abstract class Node {
+ /**
+ * tring representing the node’s type. Possible values are `root`, `atrule`,
+ * `rule`, `decl`, or `comment`.
+ *
+ * ```js
+ * new Declaration({ prop: 'color', value: 'black' }).type //=> 'decl'
+ * ```
+ */
+ type: string
+
+ /**
+ * The node’s parent node.
+ *
+ * ```js
+ * root.nodes[0].parent === root
+ * ```
+ */
+ parent: Document | Container | undefined
+
+ /**
+ * The input source of the node.
+ *
+ * The property is used in source map generation.
+ *
+ * If you create a node manually (e.g., with `postcss.decl()`),
+ * that node will not have a `source` property and will be absent
+ * from the source map. For this reason, the plugin developer should
+ * consider cloning nodes to create new ones (in which case the new node’s
+ * source will reference the original, cloned node) or setting
+ * the `source` property manually.
+ *
+ * ```js
+ * decl.source.input.from //=> '/home/ai/a.sass'
+ * decl.source.start //=> { line: 10, column: 2 }
+ * decl.source.end //=> { line: 10, column: 12 }
+ * ```
+ *
+ * ```js
+ * // Bad
+ * const prefixed = postcss.decl({
+ * prop: '-moz-' + decl.prop,
+ * value: decl.value
+ * })
+ *
+ * // Good
+ * const prefixed = decl.clone({ prop: '-moz-' + decl.prop })
+ * ```
+ *
+ * ```js
+ * if (atrule.name === 'add-link') {
+ * const rule = postcss.rule({ selector: 'a', source: atrule.source })
+ * atrule.parent.insertBefore(atrule, rule)
+ * }
+ * ```
+ */
+ source?: Source
+
+ /**
+ * Information to generate byte-to-byte equal node string as it was
+ * in the origin input.
+ *
+ * Every parser saves its own properties,
+ * but the default CSS parser uses:
+ *
+ * * `before`: the space symbols before the node. It also stores `*`
+ * and `_` symbols before the declaration (IE hack).
+ * * `after`: the space symbols after the last child of the node
+ * to the end of the node.
+ * * `between`: the symbols between the property and value
+ * for declarations, selector and `{` for rules, or last parameter
+ * and `{` for at-rules.
+ * * `semicolon`: contains true if the last child has
+ * an (optional) semicolon.
+ * * `afterName`: the space between the at-rule name and its parameters.
+ * * `left`: the space symbols between `/*` and the comment’s text.
+ * * `right`: the space symbols between the comment’s text
+ * and */.
+ * * `important`: the content of the important statement,
+ * if it is not just `!important`.
+ *
+ * PostCSS cleans selectors, declaration values and at-rule parameters
+ * from comments and extra spaces, but it stores origin content in raws
+ * properties. As such, if you don’t change a declaration’s value,
+ * PostCSS will use the raw value with comments.
+ *
+ * ```js
+ * const root = postcss.parse('a {\n color:black\n}')
+ * root.first.first.raws //=> { before: '\n ', between: ':' }
+ * ```
+ */
+ raws: any
+
+ /**
+ * @param defaults Value for node properties.
+ */
+ constructor(defaults?: object)
+
+ /**
+ * Returns a `CssSyntaxError` instance containing the original position
+ * of the node in the source, showing line and column numbers and also
+ * a small excerpt to facilitate debugging.
+ *
+ * If present, an input source map will be used to get the original position
+ * of the source, even from a previous compilation step
+ * (e.g., from Sass compilation).
+ *
+ * This method produces very useful error messages.
+ *
+ * ```js
+ * if (!variables[name]) {
+ * throw decl.error(`Unknown variable ${name}`, { word: name })
+ * // CssSyntaxError: postcss-vars:a.sass:4:3: Unknown variable $black
+ * // color: $black
+ * // a
+ * // ^
+ * // background: white
+ * }
+ * ```
+ *
+ * @param message Error description.
+ * @param opts Options.
+ *
+ * @return Error object to throw it.
+ */
+ error(message: string, options?: NodeErrorOptions): CssSyntaxError
+
+ /**
+ * This method is provided as a convenience wrapper for `Result#warn`.
+ *
+ * ```js
+ * Declaration: {
+ * bad: (decl, { result }) => {
+ * decl.warn(result, 'Deprecated property bad')
+ * }
+ * }
+ * ```
+ *
+ * @param result The `Result` instance that will receive the warning.
+ * @param text Warning message.
+ * @param opts Warning Options.
+ *
+ * @return Created warning object.
+ */
+ warn(result: Result, text: string, opts?: WarningOptions): void
+
+ /**
+ * Removes the node from its parent and cleans the parent properties
+ * from the node and its children.
+ *
+ * ```js
+ * if (decl.prop.match(/^-webkit-/)) {
+ * decl.remove()
+ * }
+ * ```
+ *
+ * @return Node to make calls chain.
+ */
+ remove(): this
+
+ /**
+ * Returns a CSS string representing the node.
+ *
+ * ```js
+ * new Rule({ selector: 'a' }).toString() //=> "a {}"
+ * ```
+ *
+ * @param stringifier A syntax to use in string generation.
+ * @return CSS string of this node.
+ */
+ toString(stringifier?: Stringifier | Syntax): string
+
+ /**
+ * Assigns properties to the current node.
+ *
+ * ```js
+ * decl.assign({ prop: 'word-wrap', value: 'break-word' })
+ * ```
+ *
+ * @param overrides New properties to override the node.
+ * @return Current node to methods chain.
+ */
+ assign(overrides: object): this
+
+ /**
+ * Returns an exact clone of the node.
+ *
+ * The resulting cloned node and its (cloned) children will retain
+ * code style properties.
+ *
+ * ```js
+ * decl.raws.before //=> "\n "
+ * const cloned = decl.clone({ prop: '-moz-' + decl.prop })
+ * cloned.raws.before //=> "\n "
+ * cloned.toString() //=> -moz-transform: scale(0)
+ * ```
+ *
+ * @param overrides New properties to override in the clone.
+ * @return Clone of the node.
+ */
+ clone(overrides?: object): this
+
+ /**
+ * Shortcut to clone the node and insert the resulting cloned node
+ * before the current node.
+ *
+ * ```js
+ * decl.cloneBefore({ prop: '-moz-' + decl.prop })
+ * ```
+ *
+ * @param overrides Mew properties to override in the clone.
+ *
+ * @return New node
+ */
+ cloneBefore(overrides?: object): this
+
+ /**
+ * Shortcut to clone the node and insert the resulting cloned node
+ * after the current node.
+ *
+ * @param overrides New properties to override in the clone.
+ * @return New node.
+ */
+ cloneAfter(overrides?: object): this
+
+ /**
+ * Inserts node(s) before the current node and removes the current node.
+ *
+ * ```js
+ * AtRule: {
+ * mixin: atrule => {
+ * atrule.replaceWith(mixinRules[atrule.params])
+ * }
+ * }
+ * ```
+ *
+ * @param nodes Mode(s) to replace current one.
+ * @return Current node to methods chain.
+ */
+ replaceWith(
+ ...nodes: (ChildNode | ChildProps | ChildNode[] | ChildProps[])[]
+ ): this
+
+ /**
+ * Returns the next child of the node’s parent.
+ * Returns `undefined` if the current node is the last child.
+ *
+ * ```js
+ * if (comment.text === 'delete next') {
+ * const next = comment.next()
+ * if (next) {
+ * next.remove()
+ * }
+ * }
+ * ```
+ *
+ * @return Next node.
+ */
+ next(): ChildNode | undefined
+
+ /**
+ * Returns the previous child of the node’s parent.
+ * Returns `undefined` if the current node is the first child.
+ *
+ * ```js
+ * const annotation = decl.prev()
+ * if (annotation.type === 'comment') {
+ * readAnnotation(annotation.text)
+ * }
+ * ```
+ *
+ * @return Previous node.
+ */
+ prev(): ChildNode | undefined
+
+ /**
+ * Insert new node before current node to current node’s parent.
+ *
+ * Just alias for `node.parent.insertBefore(node, add)`.
+ *
+ * ```js
+ * decl.before('content: ""')
+ * ```
+ *
+ * @param newNode New node.
+ * @return This node for methods chain.
+ */
+ before(newNode: Node | ChildProps | string | Node[]): this
+
+ /**
+ * Insert new node after current node to current node’s parent.
+ *
+ * Just alias for `node.parent.insertAfter(node, add)`.
+ *
+ * ```js
+ * decl.after('color: black')
+ * ```
+ *
+ * @param newNode New node.
+ * @return This node for methods chain.
+ */
+ after(newNode: Node | ChildProps | string | Node[]): this
+
+ /**
+ * Finds the Root instance of the node’s tree.
+ *
+ * ```js
+ * root.nodes[0].nodes[0].root() === root
+ * ```
+ *
+ * @return Root parent.
+ */
+ root(): Root
+
+ /**
+ * Returns a `Node#raws` value. If the node is missing
+ * the code style property (because the node was manually built or cloned),
+ * PostCSS will try to autodetect the code style property by looking
+ * at other nodes in the tree.
+ *
+ * ```js
+ * const root = postcss.parse('a { background: white }')
+ * root.nodes[0].append({ prop: 'color', value: 'black' })
+ * root.nodes[0].nodes[1].raws.before //=> undefined
+ * root.nodes[0].nodes[1].raw('before') //=> ' '
+ * ```
+ *
+ * @param prop Name of code style property.
+ * @param defaultType Name of default value, it can be missed
+ * if the value is the same as prop.
+ * @return {string} Code style value.
+ */
+ raw(prop: string, defaultType?: string): string
+
+ /**
+ * Clear the code style properties for the node and its children.
+ *
+ * ```js
+ * node.raws.before //=> ' '
+ * node.cleanRaws()
+ * node.raws.before //=> undefined
+ * ```
+ *
+ * @param keepBetween Keep the `raws.between` symbols.
+ */
+ cleanRaws(keepBetween?: boolean): void
+
+ /**
+ * Fix circular links on `JSON.stringify()`.
+ *
+ * @return Cleaned object.
+ */
+ toJSON(): object
+
+ /**
+ * Convert string index to line/column.
+ *
+ * @param index The symbol number in the node’s string.
+ * @return Symbol position in file.
+ */
+ positionInside(index: number): Position
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/node.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/node.js"
new file mode 100644
index 0000000000000000000000000000000000000000..d26ef1fdd0465d256336b23bd38be29520e60dbe
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/node.js"
@@ -0,0 +1,320 @@
+'use strict'
+
+let { isClean, my } = require('./symbols')
+let CssSyntaxError = require('./css-syntax-error')
+let Stringifier = require('./stringifier')
+let stringify = require('./stringify')
+
+function cloneNode(obj, parent) {
+ let cloned = new obj.constructor()
+
+ for (let i in obj) {
+ if (!Object.prototype.hasOwnProperty.call(obj, i)) {
+ // istanbul ignore next
+ continue
+ }
+ if (i === 'proxyCache') continue
+ let value = obj[i]
+ let type = typeof value
+
+ if (i === 'parent' && type === 'object') {
+ if (parent) cloned[i] = parent
+ } else if (i === 'source') {
+ cloned[i] = value
+ } else if (Array.isArray(value)) {
+ cloned[i] = value.map(j => cloneNode(j, cloned))
+ } else {
+ if (type === 'object' && value !== null) value = cloneNode(value)
+ cloned[i] = value
+ }
+ }
+
+ return cloned
+}
+
+class Node {
+ constructor(defaults = {}) {
+ this.raws = {}
+ this[isClean] = false
+ this[my] = true
+
+ for (let name in defaults) {
+ if (name === 'nodes') {
+ this.nodes = []
+ for (let node of defaults[name]) {
+ if (typeof node.clone === 'function') {
+ this.append(node.clone())
+ } else {
+ this.append(node)
+ }
+ }
+ } else {
+ this[name] = defaults[name]
+ }
+ }
+ }
+
+ error(message, opts = {}) {
+ if (this.source) {
+ let pos = this.positionBy(opts)
+ return this.source.input.error(message, pos.line, pos.column, opts)
+ }
+ return new CssSyntaxError(message)
+ }
+
+ warn(result, text, opts) {
+ let data = { node: this }
+ for (let i in opts) data[i] = opts[i]
+ return result.warn(text, data)
+ }
+
+ remove() {
+ if (this.parent) {
+ this.parent.removeChild(this)
+ }
+ this.parent = undefined
+ return this
+ }
+
+ toString(stringifier = stringify) {
+ if (stringifier.stringify) stringifier = stringifier.stringify
+ let result = ''
+ stringifier(this, i => {
+ result += i
+ })
+ return result
+ }
+
+ assign(overrides = {}) {
+ for (let name in overrides) {
+ this[name] = overrides[name]
+ }
+ return this
+ }
+
+ clone(overrides = {}) {
+ let cloned = cloneNode(this)
+ for (let name in overrides) {
+ cloned[name] = overrides[name]
+ }
+ return cloned
+ }
+
+ cloneBefore(overrides = {}) {
+ let cloned = this.clone(overrides)
+ this.parent.insertBefore(this, cloned)
+ return cloned
+ }
+
+ cloneAfter(overrides = {}) {
+ let cloned = this.clone(overrides)
+ this.parent.insertAfter(this, cloned)
+ return cloned
+ }
+
+ replaceWith(...nodes) {
+ if (this.parent) {
+ let bookmark = this
+ let foundSelf = false
+ for (let node of nodes) {
+ if (node === this) {
+ foundSelf = true
+ } else if (foundSelf) {
+ this.parent.insertAfter(bookmark, node)
+ bookmark = node
+ } else {
+ this.parent.insertBefore(bookmark, node)
+ }
+ }
+
+ if (!foundSelf) {
+ this.remove()
+ }
+ }
+
+ return this
+ }
+
+ next() {
+ if (!this.parent) return undefined
+ let index = this.parent.index(this)
+ return this.parent.nodes[index + 1]
+ }
+
+ prev() {
+ if (!this.parent) return undefined
+ let index = this.parent.index(this)
+ return this.parent.nodes[index - 1]
+ }
+
+ before(add) {
+ this.parent.insertBefore(this, add)
+ return this
+ }
+
+ after(add) {
+ this.parent.insertAfter(this, add)
+ return this
+ }
+
+ root() {
+ let result = this
+ while (result.parent && result.parent.type !== 'document') {
+ result = result.parent
+ }
+ return result
+ }
+
+ raw(prop, defaultType) {
+ let str = new Stringifier()
+ return str.raw(this, prop, defaultType)
+ }
+
+ cleanRaws(keepBetween) {
+ delete this.raws.before
+ delete this.raws.after
+ if (!keepBetween) delete this.raws.between
+ }
+
+ toJSON(_, inputs) {
+ let fixed = {}
+ let emitInputs = inputs == null
+ inputs = inputs || new Map()
+ let inputsNextIndex = 0
+
+ for (let name in this) {
+ if (!Object.prototype.hasOwnProperty.call(this, name)) {
+ // istanbul ignore next
+ continue
+ }
+ if (name === 'parent' || name === 'proxyCache') continue
+ let value = this[name]
+
+ if (Array.isArray(value)) {
+ fixed[name] = value.map(i => {
+ if (typeof i === 'object' && i.toJSON) {
+ return i.toJSON(null, inputs)
+ } else {
+ return i
+ }
+ })
+ } else if (typeof value === 'object' && value.toJSON) {
+ fixed[name] = value.toJSON(null, inputs)
+ } else if (name === 'source') {
+ let inputId = inputs.get(value.input)
+ if (inputId == null) {
+ inputId = inputsNextIndex
+ inputs.set(value.input, inputsNextIndex)
+ inputsNextIndex++
+ }
+ fixed[name] = {
+ inputId,
+ start: value.start,
+ end: value.end
+ }
+ } else {
+ fixed[name] = value
+ }
+ }
+
+ if (emitInputs) {
+ fixed.inputs = [...inputs.keys()].map(input => input.toJSON())
+ }
+
+ return fixed
+ }
+
+ positionInside(index) {
+ let string = this.toString()
+ let column = this.source.start.column
+ let line = this.source.start.line
+
+ for (let i = 0; i < index; i++) {
+ if (string[i] === '\n') {
+ column = 1
+ line += 1
+ } else {
+ column += 1
+ }
+ }
+
+ return { line, column }
+ }
+
+ positionBy(opts) {
+ let pos = this.source.start
+ if (opts.index) {
+ pos = this.positionInside(opts.index)
+ } else if (opts.word) {
+ let index = this.toString().indexOf(opts.word)
+ if (index !== -1) pos = this.positionInside(index)
+ }
+ return pos
+ }
+
+ getProxyProcessor() {
+ return {
+ set(node, prop, value) {
+ if (node[prop] === value) return true
+ node[prop] = value
+ if (
+ prop === 'prop' ||
+ prop === 'value' ||
+ prop === 'name' ||
+ prop === 'params' ||
+ prop === 'important' ||
+ prop === 'text'
+ ) {
+ node.markDirty()
+ }
+ return true
+ },
+
+ get(node, prop) {
+ if (prop === 'proxyOf') {
+ return node
+ } else if (prop === 'root') {
+ return () => node.root().toProxy()
+ } else {
+ return node[prop]
+ }
+ }
+ }
+ }
+
+ toProxy() {
+ if (!this.proxyCache) {
+ this.proxyCache = new Proxy(this, this.getProxyProcessor())
+ }
+ return this.proxyCache
+ }
+
+ addToError(error) {
+ error.postcssNode = this
+ if (error.stack && this.source && /\n\s{4}at /.test(error.stack)) {
+ let s = this.source
+ error.stack = error.stack.replace(
+ /\n\s{4}at /,
+ `$&${s.input.from}:${s.start.line}:${s.start.column}$&`
+ )
+ }
+ return error
+ }
+
+ markDirty() {
+ if (this[isClean]) {
+ this[isClean] = false
+ let next = this
+ while ((next = next.parent)) {
+ next[isClean] = false
+ }
+ }
+ }
+
+ get proxyOf() {
+ return this
+ }
+}
+
+module.exports = Node
+Node.default = Node
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/parse.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/parse.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..d6bdee29991dcae84b1ea7daed8c1e99327b7d0b
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/parse.d.ts"
@@ -0,0 +1,5 @@
+import { Parser } from './postcss.js'
+
+declare const parse: Parser
+
+export default parse
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/parse.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/parse.js"
new file mode 100644
index 0000000000000000000000000000000000000000..971431f238b124ec071fd7b7fac973e1aac8ec3c
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/parse.js"
@@ -0,0 +1,42 @@
+'use strict'
+
+let Container = require('./container')
+let Parser = require('./parser')
+let Input = require('./input')
+
+function parse(css, opts) {
+ let input = new Input(css, opts)
+ let parser = new Parser(input)
+ try {
+ parser.parse()
+ } catch (e) {
+ if (process.env.NODE_ENV !== 'production') {
+ if (e.name === 'CssSyntaxError' && opts && opts.from) {
+ if (/\.scss$/i.test(opts.from)) {
+ e.message +=
+ '\nYou tried to parse SCSS with ' +
+ 'the standard CSS parser; ' +
+ 'try again with the postcss-scss parser'
+ } else if (/\.sass/i.test(opts.from)) {
+ e.message +=
+ '\nYou tried to parse Sass with ' +
+ 'the standard CSS parser; ' +
+ 'try again with the postcss-sass parser'
+ } else if (/\.less$/i.test(opts.from)) {
+ e.message +=
+ '\nYou tried to parse Less with ' +
+ 'the standard CSS parser; ' +
+ 'try again with the postcss-less parser'
+ }
+ }
+ }
+ throw e
+ }
+
+ return parser.root
+}
+
+module.exports = parse
+parse.default = parse
+
+Container.registerParse(parse)
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/parser.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/parser.js"
new file mode 100644
index 0000000000000000000000000000000000000000..2b88483b158c91cab6dfabfe5572e66fee461b05
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/parser.js"
@@ -0,0 +1,559 @@
+'use strict'
+
+let Declaration = require('./declaration')
+let tokenizer = require('./tokenize')
+let Comment = require('./comment')
+let AtRule = require('./at-rule')
+let Root = require('./root')
+let Rule = require('./rule')
+
+class Parser {
+ constructor(input) {
+ this.input = input
+
+ this.root = new Root()
+ this.current = this.root
+ this.spaces = ''
+ this.semicolon = false
+ this.customProperty = false
+
+ this.createTokenizer()
+ this.root.source = { input, start: { offset: 0, line: 1, column: 1 } }
+ }
+
+ createTokenizer() {
+ this.tokenizer = tokenizer(this.input)
+ }
+
+ parse() {
+ let token
+ while (!this.tokenizer.endOfFile()) {
+ token = this.tokenizer.nextToken()
+
+ switch (token[0]) {
+ case 'space':
+ this.spaces += token[1]
+ break
+
+ case ';':
+ this.freeSemicolon(token)
+ break
+
+ case '}':
+ this.end(token)
+ break
+
+ case 'comment':
+ this.comment(token)
+ break
+
+ case 'at-word':
+ this.atrule(token)
+ break
+
+ case '{':
+ this.emptyRule(token)
+ break
+
+ default:
+ this.other(token)
+ break
+ }
+ }
+ this.endFile()
+ }
+
+ comment(token) {
+ let node = new Comment()
+ this.init(node, token[2])
+ node.source.end = this.getPosition(token[3] || token[2])
+
+ let text = token[1].slice(2, -2)
+ if (/^\s*$/.test(text)) {
+ node.text = ''
+ node.raws.left = text
+ node.raws.right = ''
+ } else {
+ let match = text.match(/^(\s*)([^]*\S)(\s*)$/)
+ node.text = match[2]
+ node.raws.left = match[1]
+ node.raws.right = match[3]
+ }
+ }
+
+ emptyRule(token) {
+ let node = new Rule()
+ this.init(node, token[2])
+ node.selector = ''
+ node.raws.between = ''
+ this.current = node
+ }
+
+ other(start) {
+ let end = false
+ let type = null
+ let colon = false
+ let bracket = null
+ let brackets = []
+ let customProperty = start[1].startsWith('--')
+
+ let tokens = []
+ let token = start
+ while (token) {
+ type = token[0]
+ tokens.push(token)
+
+ if (type === '(' || type === '[') {
+ if (!bracket) bracket = token
+ brackets.push(type === '(' ? ')' : ']')
+ } else if (customProperty && colon && type === '{') {
+ if (!bracket) bracket = token
+ brackets.push('}')
+ } else if (brackets.length === 0) {
+ if (type === ';') {
+ if (colon) {
+ this.decl(tokens, customProperty)
+ return
+ } else {
+ break
+ }
+ } else if (type === '{') {
+ this.rule(tokens)
+ return
+ } else if (type === '}') {
+ this.tokenizer.back(tokens.pop())
+ end = true
+ break
+ } else if (type === ':') {
+ colon = true
+ }
+ } else if (type === brackets[brackets.length - 1]) {
+ brackets.pop()
+ if (brackets.length === 0) bracket = null
+ }
+
+ token = this.tokenizer.nextToken()
+ }
+
+ if (this.tokenizer.endOfFile()) end = true
+ if (brackets.length > 0) this.unclosedBracket(bracket)
+
+ if (end && colon) {
+ while (tokens.length) {
+ token = tokens[tokens.length - 1][0]
+ if (token !== 'space' && token !== 'comment') break
+ this.tokenizer.back(tokens.pop())
+ }
+ this.decl(tokens, customProperty)
+ } else {
+ this.unknownWord(tokens)
+ }
+ }
+
+ rule(tokens) {
+ tokens.pop()
+
+ let node = new Rule()
+ this.init(node, tokens[0][2])
+
+ node.raws.between = this.spacesAndCommentsFromEnd(tokens)
+ this.raw(node, 'selector', tokens)
+ this.current = node
+ }
+
+ decl(tokens, customProperty) {
+ let node = new Declaration()
+ this.init(node, tokens[0][2])
+
+ let last = tokens[tokens.length - 1]
+ if (last[0] === ';') {
+ this.semicolon = true
+ tokens.pop()
+ }
+ node.source.end = this.getPosition(last[3] || last[2])
+
+ while (tokens[0][0] !== 'word') {
+ if (tokens.length === 1) this.unknownWord(tokens)
+ node.raws.before += tokens.shift()[1]
+ }
+ node.source.start = this.getPosition(tokens[0][2])
+
+ node.prop = ''
+ while (tokens.length) {
+ let type = tokens[0][0]
+ if (type === ':' || type === 'space' || type === 'comment') {
+ break
+ }
+ node.prop += tokens.shift()[1]
+ }
+
+ node.raws.between = ''
+
+ let token
+ while (tokens.length) {
+ token = tokens.shift()
+
+ if (token[0] === ':') {
+ node.raws.between += token[1]
+ break
+ } else {
+ if (token[0] === 'word' && /\w/.test(token[1])) {
+ this.unknownWord([token])
+ }
+ node.raws.between += token[1]
+ }
+ }
+
+ if (node.prop[0] === '_' || node.prop[0] === '*') {
+ node.raws.before += node.prop[0]
+ node.prop = node.prop.slice(1)
+ }
+ let firstSpaces = this.spacesAndCommentsFromStart(tokens)
+ this.precheckMissedSemicolon(tokens)
+
+ for (let i = tokens.length - 1; i >= 0; i--) {
+ token = tokens[i]
+ if (token[1].toLowerCase() === '!important') {
+ node.important = true
+ let string = this.stringFrom(tokens, i)
+ string = this.spacesFromEnd(tokens) + string
+ if (string !== ' !important') node.raws.important = string
+ break
+ } else if (token[1].toLowerCase() === 'important') {
+ let cache = tokens.slice(0)
+ let str = ''
+ for (let j = i; j > 0; j--) {
+ let type = cache[j][0]
+ if (str.trim().indexOf('!') === 0 && type !== 'space') {
+ break
+ }
+ str = cache.pop()[1] + str
+ }
+ if (str.trim().indexOf('!') === 0) {
+ node.important = true
+ node.raws.important = str
+ tokens = cache
+ }
+ }
+
+ if (token[0] !== 'space' && token[0] !== 'comment') {
+ break
+ }
+ }
+
+ let hasWord = tokens.some(i => i[0] !== 'space' && i[0] !== 'comment')
+ this.raw(node, 'value', tokens)
+ if (hasWord) {
+ node.raws.between += firstSpaces
+ } else {
+ node.value = firstSpaces + node.value
+ }
+
+ if (node.value.includes(':') && !customProperty) {
+ this.checkMissedSemicolon(tokens)
+ }
+ }
+
+ atrule(token) {
+ let node = new AtRule()
+ node.name = token[1].slice(1)
+ if (node.name === '') {
+ this.unnamedAtrule(node, token)
+ }
+ this.init(node, token[2])
+
+ let type
+ let prev
+ let shift
+ let last = false
+ let open = false
+ let params = []
+ let brackets = []
+
+ while (!this.tokenizer.endOfFile()) {
+ token = this.tokenizer.nextToken()
+ type = token[0]
+
+ if (type === '(' || type === '[') {
+ brackets.push(type === '(' ? ')' : ']')
+ } else if (type === '{' && brackets.length > 0) {
+ brackets.push('}')
+ } else if (type === brackets[brackets.length - 1]) {
+ brackets.pop()
+ }
+
+ if (brackets.length === 0) {
+ if (type === ';') {
+ node.source.end = this.getPosition(token[2])
+ this.semicolon = true
+ break
+ } else if (type === '{') {
+ open = true
+ break
+ } else if (type === '}') {
+ if (params.length > 0) {
+ shift = params.length - 1
+ prev = params[shift]
+ while (prev && prev[0] === 'space') {
+ prev = params[--shift]
+ }
+ if (prev) {
+ node.source.end = this.getPosition(prev[3] || prev[2])
+ }
+ }
+ this.end(token)
+ break
+ } else {
+ params.push(token)
+ }
+ } else {
+ params.push(token)
+ }
+
+ if (this.tokenizer.endOfFile()) {
+ last = true
+ break
+ }
+ }
+
+ node.raws.between = this.spacesAndCommentsFromEnd(params)
+ if (params.length) {
+ node.raws.afterName = this.spacesAndCommentsFromStart(params)
+ this.raw(node, 'params', params)
+ if (last) {
+ token = params[params.length - 1]
+ node.source.end = this.getPosition(token[3] || token[2])
+ this.spaces = node.raws.between
+ node.raws.between = ''
+ }
+ } else {
+ node.raws.afterName = ''
+ node.params = ''
+ }
+
+ if (open) {
+ node.nodes = []
+ this.current = node
+ }
+ }
+
+ end(token) {
+ if (this.current.nodes && this.current.nodes.length) {
+ this.current.raws.semicolon = this.semicolon
+ }
+ this.semicolon = false
+
+ this.current.raws.after = (this.current.raws.after || '') + this.spaces
+ this.spaces = ''
+
+ if (this.current.parent) {
+ this.current.source.end = this.getPosition(token[2])
+ this.current = this.current.parent
+ } else {
+ this.unexpectedClose(token)
+ }
+ }
+
+ endFile() {
+ if (this.current.parent) this.unclosedBlock()
+ if (this.current.nodes && this.current.nodes.length) {
+ this.current.raws.semicolon = this.semicolon
+ }
+ this.current.raws.after = (this.current.raws.after || '') + this.spaces
+ }
+
+ freeSemicolon(token) {
+ this.spaces += token[1]
+ if (this.current.nodes) {
+ let prev = this.current.nodes[this.current.nodes.length - 1]
+ if (prev && prev.type === 'rule' && !prev.raws.ownSemicolon) {
+ prev.raws.ownSemicolon = this.spaces
+ this.spaces = ''
+ }
+ }
+ }
+
+ // Helpers
+
+ getPosition(offset) {
+ let pos = this.input.fromOffset(offset)
+ return {
+ offset,
+ line: pos.line,
+ column: pos.col
+ }
+ }
+
+ init(node, offset) {
+ this.current.push(node)
+ node.source = {
+ start: this.getPosition(offset),
+ input: this.input
+ }
+ node.raws.before = this.spaces
+ this.spaces = ''
+ if (node.type !== 'comment') this.semicolon = false
+ }
+
+ raw(node, prop, tokens) {
+ let token, type
+ let length = tokens.length
+ let value = ''
+ let clean = true
+ let next, prev
+ let pattern = /^([#.|])?(\w)+/i
+
+ for (let i = 0; i < length; i += 1) {
+ token = tokens[i]
+ type = token[0]
+
+ if (type === 'comment' && node.type === 'rule') {
+ prev = tokens[i - 1]
+ next = tokens[i + 1]
+
+ if (
+ prev[0] !== 'space' &&
+ next[0] !== 'space' &&
+ pattern.test(prev[1]) &&
+ pattern.test(next[1])
+ ) {
+ value += token[1]
+ } else {
+ clean = false
+ }
+
+ continue
+ }
+
+ if (type === 'comment' || (type === 'space' && i === length - 1)) {
+ clean = false
+ } else {
+ value += token[1]
+ }
+ }
+ if (!clean) {
+ let raw = tokens.reduce((all, i) => all + i[1], '')
+ node.raws[prop] = { value, raw }
+ }
+ node[prop] = value
+ }
+
+ spacesAndCommentsFromEnd(tokens) {
+ let lastTokenType
+ let spaces = ''
+ while (tokens.length) {
+ lastTokenType = tokens[tokens.length - 1][0]
+ if (lastTokenType !== 'space' && lastTokenType !== 'comment') break
+ spaces = tokens.pop()[1] + spaces
+ }
+ return spaces
+ }
+
+ spacesAndCommentsFromStart(tokens) {
+ let next
+ let spaces = ''
+ while (tokens.length) {
+ next = tokens[0][0]
+ if (next !== 'space' && next !== 'comment') break
+ spaces += tokens.shift()[1]
+ }
+ return spaces
+ }
+
+ spacesFromEnd(tokens) {
+ let lastTokenType
+ let spaces = ''
+ while (tokens.length) {
+ lastTokenType = tokens[tokens.length - 1][0]
+ if (lastTokenType !== 'space') break
+ spaces = tokens.pop()[1] + spaces
+ }
+ return spaces
+ }
+
+ stringFrom(tokens, from) {
+ let result = ''
+ for (let i = from; i < tokens.length; i++) {
+ result += tokens[i][1]
+ }
+ tokens.splice(from, tokens.length - from)
+ return result
+ }
+
+ colon(tokens) {
+ let brackets = 0
+ let token, type, prev
+ for (let [i, element] of tokens.entries()) {
+ token = element
+ type = token[0]
+
+ if (type === '(') {
+ brackets += 1
+ }
+ if (type === ')') {
+ brackets -= 1
+ }
+ if (brackets === 0 && type === ':') {
+ if (!prev) {
+ this.doubleColon(token)
+ } else if (prev[0] === 'word' && prev[1] === 'progid') {
+ continue
+ } else {
+ return i
+ }
+ }
+
+ prev = token
+ }
+ return false
+ }
+
+ // Errors
+
+ unclosedBracket(bracket) {
+ throw this.input.error('Unclosed bracket', bracket[2])
+ }
+
+ unknownWord(tokens) {
+ throw this.input.error('Unknown word', tokens[0][2])
+ }
+
+ unexpectedClose(token) {
+ throw this.input.error('Unexpected }', token[2])
+ }
+
+ unclosedBlock() {
+ let pos = this.current.source.start
+ throw this.input.error('Unclosed block', pos.line, pos.column)
+ }
+
+ doubleColon(token) {
+ throw this.input.error('Double colon', token[2])
+ }
+
+ unnamedAtrule(node, token) {
+ throw this.input.error('At-rule without name', token[2])
+ }
+
+ precheckMissedSemicolon(/* tokens */) {
+ // Hook for Safe Parser
+ }
+
+ checkMissedSemicolon(tokens) {
+ let colon = this.colon(tokens)
+ if (colon === false) return
+
+ let founded = 0
+ let token
+ for (let j = colon - 1; j >= 0; j--) {
+ token = tokens[j]
+ if (token[0] !== 'space') {
+ founded += 1
+ if (founded === 2) break
+ }
+ }
+ throw this.input.error('Missed semicolon', token[2])
+ }
+}
+
+module.exports = Parser
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/postcss.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/postcss.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..4458806632fe66885e4a42ad45b1bb2cd2dd3db1
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/postcss.d.ts"
@@ -0,0 +1,472 @@
+import { SourceMapGenerator, RawSourceMap } from 'source-map-js'
+
+import Node, {
+ Position,
+ Source,
+ ChildNode,
+ NodeErrorOptions,
+ NodeProps,
+ ChildProps,
+ AnyNode
+} from './node.js'
+import Declaration, { DeclarationProps } from './declaration.js'
+import Root, { RootProps } from './root.js'
+import Document, { DocumentProps } from './document.js'
+import Comment, { CommentProps } from './comment.js'
+import AtRule, { AtRuleProps } from './at-rule.js'
+import Result, { Message } from './result.js'
+import LazyResult from './lazy-result.js'
+import Rule, { RuleProps } from './rule.js'
+import Container, { ContainerProps } from './container.js'
+import Warning, { WarningOptions } from './warning.js'
+import Input, { FilePosition } from './input.js'
+import CssSyntaxError from './css-syntax-error.js'
+import list, { List } from './list.js'
+import Processor from './processor.js'
+
+export {
+ WarningOptions,
+ FilePosition,
+ Position,
+ Source,
+ ChildNode,
+ AnyNode,
+ Message,
+ NodeErrorOptions,
+ NodeProps,
+ DeclarationProps,
+ ContainerProps,
+ CommentProps,
+ RuleProps,
+ ChildProps,
+ AtRuleProps,
+ RootProps,
+ DocumentProps,
+ Warning,
+ CssSyntaxError,
+ Node,
+ Container,
+ list,
+ Declaration,
+ Comment,
+ AtRule,
+ Rule,
+ Root,
+ Document,
+ Result,
+ LazyResult,
+ Input
+}
+
+export type SourceMap = SourceMapGenerator & {
+ toJSON(): RawSourceMap
+}
+
+export type Helpers = { result: Result; postcss: Postcss } & Postcss
+
+type DocumentProcessor = (
+ document: Document,
+ helper: Helpers
+) => Promise | void
+type RootProcessor = (root: Root, helper: Helpers) => Promise | void
+type DeclarationProcessor = (
+ decl: Declaration,
+ helper: Helpers
+) => Promise | void
+type RuleProcessor = (rule: Rule, helper: Helpers) => Promise | void
+type AtRuleProcessor = (atRule: AtRule, helper: Helpers) => Promise | void
+type CommentProcessor = (
+ comment: Comment,
+ helper: Helpers
+) => Promise | void
+
+interface Processors {
+ /**
+ * Will be called on `Document` node.
+ *
+ * Will be called again on children changes.
+ */
+ Document?: DocumentProcessor
+
+ /**
+ * Will be called on `Document` node, when all children will be processed.
+ *
+ * Will be called again on children changes.
+ */
+ DocumentExit?: DocumentProcessor
+
+ /**
+ * Will be called on `Root` node once.
+ */
+ Once?: RootProcessor
+
+ /**
+ * Will be called on `Root` node once, when all children will be processed.
+ */
+ OnceExit?: RootProcessor
+
+ /**
+ * Will be called on `Root` node.
+ *
+ * Will be called again on children changes.
+ */
+ Root?: RootProcessor
+
+ /**
+ * Will be called on `Root` node, when all children will be processed.
+ *
+ * Will be called again on children changes.
+ */
+ RootExit?: RootProcessor
+
+ /**
+ * Will be called on all `Declaration` nodes after listeners
+ * for `Declaration` event.
+ *
+ * Will be called again on node or children changes.
+ */
+ Declaration?: DeclarationProcessor | { [prop: string]: DeclarationProcessor }
+
+ /**
+ * Will be called on all `Declaration` nodes.
+ *
+ * Will be called again on node or children changes.
+ */
+ DeclarationExit?:
+ | DeclarationProcessor
+ | { [prop: string]: DeclarationProcessor }
+
+ /**
+ * Will be called on all `Rule` nodes.
+ *
+ * Will be called again on node or children changes.
+ */
+ Rule?: RuleProcessor
+
+ /**
+ * Will be called on all `Rule` nodes, when all children will be processed.
+ *
+ * Will be called again on node or children changes.
+ */
+ RuleExit?: RuleProcessor
+
+ /**
+ * Will be called on all`AtRule` nodes.
+ *
+ * Will be called again on node or children changes.
+ */
+ AtRule?: AtRuleProcessor | { [name: string]: AtRuleProcessor }
+
+ /**
+ * Will be called on all `AtRule` nodes, when all children will be processed.
+ *
+ * Will be called again on node or children changes.
+ */
+ AtRuleExit?: AtRuleProcessor | { [name: string]: AtRuleProcessor }
+
+ /**
+ * Will be called on all `Comment` nodes.
+ *
+ * Will be called again on node or children changes.
+ */
+ Comment?: CommentProcessor
+
+ /**
+ * Will be called on all `Comment` nodes after listeners
+ * for `Comment` event.
+ *
+ * Will be called again on node or children changes.
+ */
+ CommentExit?: CommentProcessor
+
+ /**
+ * Will be called when all other listeners processed the document.
+ *
+ * This listener will not be called again.
+ */
+ Exit?: RootProcessor
+}
+
+export interface Plugin extends Processors {
+ postcssPlugin: string
+ prepare?: (result: Result) => Processors
+}
+
+export interface PluginCreator {
+ (opts?: PluginOptions): Plugin | Processor
+ postcss: true
+}
+
+export interface Transformer extends TransformCallback {
+ postcssPlugin: string
+ postcssVersion: string
+}
+
+export interface TransformCallback {
+ (root: Root, result: Result): Promise | void
+}
+
+export interface OldPlugin extends Transformer {
+ (opts?: T): Transformer
+ postcss: Transformer
+}
+
+export type AcceptedPlugin =
+ | Plugin
+ | PluginCreator
+ | OldPlugin
+ | TransformCallback
+ | {
+ postcss: TransformCallback | Processor
+ }
+ | Processor
+
+export interface Parser {
+ (
+ css: string | { toString(): string },
+ opts?: Pick
+ ): RootNode
+}
+
+export interface Builder {
+ (part: string, node?: AnyNode, type?: 'start' | 'end'): void
+}
+
+export interface Stringifier {
+ (node: AnyNode, builder: Builder): void
+}
+
+export interface JSONHydrator {
+ (data: object[]): Node[]
+ (data: object): Node
+}
+
+export interface Syntax {
+ /**
+ * Function to generate AST by string.
+ */
+ parse?: Parser
+
+ /**
+ * Class to generate string by AST.
+ */
+ stringify?: Stringifier
+}
+
+export interface SourceMapOptions {
+ /**
+ * Indicates that the source map should be embedded in the output CSS
+ * as a Base64-encoded comment. By default, it is `true`.
+ * But if all previous maps are external, not inline, PostCSS will not embed
+ * the map even if you do not set this option.
+ *
+ * If you have an inline source map, the result.map property will be empty,
+ * as the source map will be contained within the text of `result.css`.
+ */
+ inline?: boolean
+
+ /**
+ * Source map content from a previous processing step (e.g., Sass).
+ *
+ * PostCSS will try to read the previous source map
+ * automatically (based on comments within the source CSS), but you can use
+ * this option to identify it manually.
+ *
+ * If desired, you can omit the previous map with prev: `false`.
+ */
+ prev?: string | boolean | object | ((file: string) => string)
+
+ /**
+ * Indicates that PostCSS should set the origin content (e.g., Sass source)
+ * of the source map. By default, it is true. But if all previous maps do not
+ * contain sources content, PostCSS will also leave it out even if you
+ * do not set this option.
+ */
+ sourcesContent?: boolean
+
+ /**
+ * Indicates that PostCSS should add annotation comments to the CSS.
+ * By default, PostCSS will always add a comment with a path
+ * to the source map. PostCSS will not add annotations to CSS files
+ * that do not contain any comments.
+ *
+ * By default, PostCSS presumes that you want to save the source map as
+ * `opts.to + '.map'` and will use this path in the annotation comment.
+ * A different path can be set by providing a string value for annotation.
+ *
+ * If you have set `inline: true`, annotation cannot be disabled.
+ */
+ annotation?: string | boolean | ((file: string, root: Root) => string)
+
+ /**
+ * Override `from` in map’s sources.
+ */
+ from?: string
+
+ /**
+ * Use absolute path in generated source map.
+ */
+ absolute?: boolean
+}
+
+export interface ProcessOptions {
+ /**
+ * The path of the CSS source file. You should always set `from`,
+ * because it is used in source map generation and syntax error messages.
+ */
+ from?: string
+
+ /**
+ * The path where you'll put the output CSS file. You should always set `to`
+ * to generate correct source maps.
+ */
+ to?: string
+
+ /**
+ * Function to generate AST by string.
+ */
+ parser?: Syntax | Parser
+
+ /**
+ * Class to generate string by AST.
+ */
+ stringifier?: Syntax | Stringifier
+
+ /**
+ * Object with parse and stringify.
+ */
+ syntax?: Syntax
+
+ /**
+ * Source map options
+ */
+ map?: SourceMapOptions | boolean
+}
+
+export interface Postcss {
+ /**
+ * Create a new `Processor` instance that will apply `plugins`
+ * as CSS processors.
+ *
+ * ```js
+ * let postcss = require('postcss')
+ *
+ * postcss(plugins).process(css, { from, to }).then(result => {
+ * console.log(result.css)
+ * })
+ * ```
+ *
+ * @param plugins PostCSS plugins.
+ * @return Processor to process multiple CSS.
+ */
+ (plugins?: AcceptedPlugin[]): Processor
+ (...plugins: AcceptedPlugin[]): Processor
+
+ /**
+ * Default function to convert a node tree into a CSS string.
+ */
+ stringify: Stringifier
+
+ /**
+ * Parses source css and returns a new `Root` or `Document` node,
+ * which contains the source CSS nodes.
+ *
+ * ```js
+ * // Simple CSS concatenation with source map support
+ * const root1 = postcss.parse(css1, { from: file1 })
+ * const root2 = postcss.parse(css2, { from: file2 })
+ * root1.append(root2).toResult().css
+ * ```
+ */
+ parse: Parser
+
+ /**
+ * Rehydrate a JSON AST (from `Node#toJSON`) back into the AST classes.
+ *
+ * ```js
+ * const json = root.toJSON()
+ * // save to file, send by network, etc
+ * const root2 = postcss.fromJSON(json)
+ * ```
+ */
+ fromJSON: JSONHydrator
+
+ /**
+ * Contains the `list` module.
+ */
+ list: List
+
+ /**
+ * Creates a new `Comment` node.
+ *
+ * @param defaults Properties for the new node.
+ * @return New comment node
+ */
+ comment(defaults?: CommentProps): Comment
+
+ /**
+ * Creates a new `AtRule` node.
+ *
+ * @param defaults Properties for the new node.
+ * @return New at-rule node.
+ */
+ atRule(defaults?: AtRuleProps): AtRule
+
+ /**
+ * Creates a new `Declaration` node.
+ *
+ * @param defaults Properties for the new node.
+ * @return New declaration node.
+ */
+ decl(defaults?: DeclarationProps): Declaration
+
+ /**
+ * Creates a new `Rule` node.
+ *
+ * @param default Properties for the new node.
+ * @return New rule node.
+ */
+ rule(defaults?: RuleProps): Rule
+
+ /**
+ * Creates a new `Root` node.
+ *
+ * @param defaults Properties for the new node.
+ * @return New root node.
+ */
+ root(defaults?: RootProps): Root
+
+ /**
+ * Creates a new `Document` node.
+ *
+ * @param defaults Properties for the new node.
+ * @return New document node.
+ */
+ document(defaults?: DocumentProps): Document
+
+ CssSyntaxError: typeof CssSyntaxError
+ Declaration: typeof Declaration
+ Container: typeof Container
+ Comment: typeof Comment
+ Warning: typeof Warning
+ AtRule: typeof AtRule
+ Result: typeof Result
+ Input: typeof Input
+ Rule: typeof Rule
+ Root: typeof Root
+ Node: typeof Node
+}
+
+export const stringify: Stringifier
+export const parse: Parser
+export const fromJSON: JSONHydrator
+
+export const comment: Postcss['comment']
+export const atRule: Postcss['atRule']
+export const decl: Postcss['decl']
+export const rule: Postcss['rule']
+export const root: Postcss['root']
+
+declare const postcss: Postcss
+
+export default postcss
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/postcss.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/postcss.js"
new file mode 100644
index 0000000000000000000000000000000000000000..b03bb1803eb6998d910b12ca46a1d8e183c2f43d
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/postcss.js"
@@ -0,0 +1,95 @@
+'use strict'
+
+let CssSyntaxError = require('./css-syntax-error')
+let Declaration = require('./declaration')
+let LazyResult = require('./lazy-result')
+let Container = require('./container')
+let Processor = require('./processor')
+let stringify = require('./stringify')
+let fromJSON = require('./fromJSON')
+let Document = require('./document')
+let Warning = require('./warning')
+let Comment = require('./comment')
+let AtRule = require('./at-rule')
+let Result = require('./result.js')
+let Input = require('./input')
+let parse = require('./parse')
+let list = require('./list')
+let Rule = require('./rule')
+let Root = require('./root')
+let Node = require('./node')
+
+function postcss(...plugins) {
+ if (plugins.length === 1 && Array.isArray(plugins[0])) {
+ plugins = plugins[0]
+ }
+ return new Processor(plugins)
+}
+
+postcss.plugin = function plugin(name, initializer) {
+ if (console && console.warn) {
+ console.warn(
+ name +
+ ': postcss.plugin was deprecated. Migration guide:\n' +
+ 'https://evilmartians.com/chronicles/postcss-8-plugin-migration'
+ )
+ if (process.env.LANG && process.env.LANG.startsWith('cn')) {
+ // istanbul ignore next
+ console.warn(
+ name +
+ ': 里面 postcss.plugin 被弃用. 迁移指南:\n' +
+ 'https://www.w3ctech.com/topic/2226'
+ )
+ }
+ }
+ function creator(...args) {
+ let transformer = initializer(...args)
+ transformer.postcssPlugin = name
+ transformer.postcssVersion = new Processor().version
+ return transformer
+ }
+
+ let cache
+ Object.defineProperty(creator, 'postcss', {
+ get() {
+ if (!cache) cache = creator()
+ return cache
+ }
+ })
+
+ creator.process = function (css, processOpts, pluginOpts) {
+ return postcss([creator(pluginOpts)]).process(css, processOpts)
+ }
+
+ return creator
+}
+
+postcss.stringify = stringify
+postcss.parse = parse
+postcss.fromJSON = fromJSON
+postcss.list = list
+
+postcss.comment = defaults => new Comment(defaults)
+postcss.atRule = defaults => new AtRule(defaults)
+postcss.decl = defaults => new Declaration(defaults)
+postcss.rule = defaults => new Rule(defaults)
+postcss.root = defaults => new Root(defaults)
+postcss.document = defaults => new Document(defaults)
+
+postcss.CssSyntaxError = CssSyntaxError
+postcss.Declaration = Declaration
+postcss.Container = Container
+postcss.Document = Document
+postcss.Comment = Comment
+postcss.Warning = Warning
+postcss.AtRule = AtRule
+postcss.Result = Result
+postcss.Input = Input
+postcss.Rule = Rule
+postcss.Root = Root
+postcss.Node = Node
+
+LazyResult.registerPostcss(postcss)
+
+module.exports = postcss
+postcss.default = postcss
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/postcss.mjs" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/postcss.mjs"
new file mode 100644
index 0000000000000000000000000000000000000000..6ba7d1124096ebbeecdd36dfdc1231babf940207
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/postcss.mjs"
@@ -0,0 +1,29 @@
+import postcss from './postcss.js'
+
+export default postcss
+
+export const stringify = postcss.stringify
+export const fromJSON = postcss.fromJSON
+export const plugin = postcss.plugin
+export const parse = postcss.parse
+export const list = postcss.list
+
+export const document = postcss.document
+export const comment = postcss.comment
+export const atRule = postcss.atRule
+export const rule = postcss.rule
+export const decl = postcss.decl
+export const root = postcss.root
+
+export const CssSyntaxError = postcss.CssSyntaxError
+export const Declaration = postcss.Declaration
+export const Container = postcss.Container
+export const Document = postcss.Document
+export const Comment = postcss.Comment
+export const Warning = postcss.Warning
+export const AtRule = postcss.AtRule
+export const Result = postcss.Result
+export const Input = postcss.Input
+export const Rule = postcss.Rule
+export const Root = postcss.Root
+export const Node = postcss.Node
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/previous-map.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/previous-map.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..490d885fa5f7571329f4a6a4d92de7cf1d7b2fbc
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/previous-map.d.ts"
@@ -0,0 +1,72 @@
+import { SourceMapConsumer } from 'source-map-js'
+
+import { ProcessOptions } from './postcss.js'
+
+/**
+ * Source map information from input CSS.
+ * For example, source map after Sass compiler.
+ *
+ * This class will automatically find source map in input CSS or in file system
+ * near input file (according `from` option).
+ *
+ * ```js
+ * const root = parse(css, { from: 'a.sass.css' })
+ * root.input.map //=> PreviousMap
+ * ```
+ */
+export default class PreviousMap {
+ /**
+ * Was source map inlined by data-uri to input CSS.
+ */
+ inline: boolean
+
+ /**
+ * `sourceMappingURL` content.
+ */
+ annotation?: string
+
+ /**
+ * Source map file content.
+ */
+ text?: string
+
+ /**
+ * The directory with source map file, if source map is in separated file.
+ */
+ root?: string
+
+ /**
+ * The CSS source identifier. Contains `Input#file` if the user
+ * set the `from` option, or `Input#id` if they did not.
+ */
+ file?: string
+
+ /**
+ * Path to source map file.
+ */
+ mapFile?: string
+
+ /**
+ * @param css Input CSS source.
+ * @param opts Process options.
+ */
+ constructor(css: string, opts?: ProcessOptions)
+
+ /**
+ * Create a instance of `SourceMapGenerator` class
+ * from the `source-map` library to work with source map information.
+ *
+ * It is lazy method, so it will create object only on first call
+ * and then it will use cache.
+ *
+ * @return Object with source map information.
+ */
+ consumer(): SourceMapConsumer
+
+ /**
+ * Does source map contains `sourcesContent` with input source text.
+ *
+ * @return Is `sourcesContent` present.
+ */
+ withContent(): boolean
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/previous-map.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/previous-map.js"
new file mode 100644
index 0000000000000000000000000000000000000000..fb634deff85f0528fa1d7165e05dd2c00b9abcf7
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/previous-map.js"
@@ -0,0 +1,145 @@
+'use strict'
+
+let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')
+let { existsSync, readFileSync } = require('fs')
+let { dirname, join } = require('path')
+
+function fromBase64(str) {
+ if (Buffer) {
+ return Buffer.from(str, 'base64').toString()
+ } else {
+ // istanbul ignore next
+ return window.atob(str)
+ }
+}
+
+class PreviousMap {
+ constructor(css, opts) {
+ if (opts.map === false) return
+ this.loadAnnotation(css)
+ this.inline = this.startWith(this.annotation, 'data:')
+
+ let prev = opts.map ? opts.map.prev : undefined
+ let text = this.loadMap(opts.from, prev)
+ if (!this.mapFile && opts.from) {
+ this.mapFile = opts.from
+ }
+ if (this.mapFile) this.root = dirname(this.mapFile)
+ if (text) this.text = text
+ }
+
+ consumer() {
+ if (!this.consumerCache) {
+ this.consumerCache = new SourceMapConsumer(this.text)
+ }
+ return this.consumerCache
+ }
+
+ withContent() {
+ return !!(
+ this.consumer().sourcesContent &&
+ this.consumer().sourcesContent.length > 0
+ )
+ }
+
+ startWith(string, start) {
+ if (!string) return false
+ return string.substr(0, start.length) === start
+ }
+
+ getAnnotationURL(sourceMapString) {
+ return sourceMapString
+ .match(/\/\*\s*# sourceMappingURL=((?:(?!sourceMappingURL=).)*)\*\//)[1]
+ .trim()
+ }
+
+ loadAnnotation(css) {
+ let annotations = css.match(
+ /\/\*\s*# sourceMappingURL=(?:(?!sourceMappingURL=).)*\*\//gm
+ )
+
+ if (annotations && annotations.length > 0) {
+ // Locate the last sourceMappingURL to avoid picking up
+ // sourceMappingURLs from comments, strings, etc.
+ let lastAnnotation = annotations[annotations.length - 1]
+ if (lastAnnotation) {
+ this.annotation = this.getAnnotationURL(lastAnnotation)
+ }
+ }
+ }
+
+ decodeInline(text) {
+ let baseCharsetUri = /^data:application\/json;charset=utf-?8;base64,/
+ let baseUri = /^data:application\/json;base64,/
+ let charsetUri = /^data:application\/json;charset=utf-?8,/
+ let uri = /^data:application\/json,/
+
+ if (charsetUri.test(text) || uri.test(text)) {
+ return decodeURIComponent(text.substr(RegExp.lastMatch.length))
+ }
+
+ if (baseCharsetUri.test(text) || baseUri.test(text)) {
+ return fromBase64(text.substr(RegExp.lastMatch.length))
+ }
+
+ let encoding = text.match(/data:application\/json;([^,]+),/)[1]
+ throw new Error('Unsupported source map encoding ' + encoding)
+ }
+
+ loadFile(path) {
+ this.root = dirname(path)
+ if (existsSync(path)) {
+ this.mapFile = path
+ return readFileSync(path, 'utf-8').toString().trim()
+ }
+ }
+
+ loadMap(file, prev) {
+ if (prev === false) return false
+
+ if (prev) {
+ if (typeof prev === 'string') {
+ return prev
+ } else if (typeof prev === 'function') {
+ let prevPath = prev(file)
+ if (prevPath) {
+ let map = this.loadFile(prevPath)
+ if (!map) {
+ throw new Error(
+ 'Unable to load previous source map: ' + prevPath.toString()
+ )
+ }
+ return map
+ }
+ } else if (prev instanceof SourceMapConsumer) {
+ return SourceMapGenerator.fromSourceMap(prev).toString()
+ } else if (prev instanceof SourceMapGenerator) {
+ return prev.toString()
+ } else if (this.isMap(prev)) {
+ return JSON.stringify(prev)
+ } else {
+ throw new Error(
+ 'Unsupported previous source map format: ' + prev.toString()
+ )
+ }
+ } else if (this.inline) {
+ return this.decodeInline(this.annotation)
+ } else if (this.annotation) {
+ let map = this.annotation
+ if (file) map = join(dirname(file), map)
+ return this.loadFile(map)
+ }
+ }
+
+ isMap(map) {
+ if (typeof map !== 'object') return false
+ return (
+ typeof map.mappings === 'string' ||
+ typeof map._mappings === 'string' ||
+ Array.isArray(map.sections)
+ )
+ }
+}
+
+module.exports = PreviousMap
+PreviousMap.default = PreviousMap
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/processor.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/processor.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..1511f0100fa72c8055c33ad205be4dec4d77a03c
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/processor.d.ts"
@@ -0,0 +1,101 @@
+import {
+ AcceptedPlugin,
+ Plugin,
+ ProcessOptions,
+ Transformer,
+ TransformCallback
+} from './postcss.js'
+import LazyResult from './lazy-result.js'
+import Result from './result.js'
+import Root from './root.js'
+
+/**
+ * Contains plugins to process CSS. Create one `Processor` instance,
+ * initialize its plugins, and then use that instance on numerous CSS files.
+ *
+ * ```js
+ * const processor = postcss([autoprefixer, precss])
+ * processor.process(css1).then(result => console.log(result.css))
+ * processor.process(css2).then(result => console.log(result.css))
+ * ```
+ */
+export default class Processor {
+ /**
+ * Current PostCSS version.
+ *
+ * ```js
+ * if (result.processor.version.split('.')[0] !== '6') {
+ * throw new Error('This plugin works only with PostCSS 6')
+ * }
+ * ```
+ */
+ version: string
+
+ /**
+ * Plugins added to this processor.
+ *
+ * ```js
+ * const processor = postcss([autoprefixer, precss])
+ * processor.plugins.length //=> 2
+ * ```
+ */
+ plugins: (Plugin | Transformer | TransformCallback)[]
+
+ /**
+ * @param plugins PostCSS plugins
+ */
+ constructor(plugins?: AcceptedPlugin[])
+
+ /**
+ * Adds a plugin to be used as a CSS processor.
+ *
+ * PostCSS plugin can be in 4 formats:
+ * * A plugin in `Plugin` format.
+ * * A plugin creator function with `pluginCreator.postcss = true`.
+ * PostCSS will call this function without argument to get plugin.
+ * * A function. PostCSS will pass the function a @{link Root}
+ * as the first argument and current `Result` instance
+ * as the second.
+ * * Another `Processor` instance. PostCSS will copy plugins
+ * from that instance into this one.
+ *
+ * Plugins can also be added by passing them as arguments when creating
+ * a `postcss` instance (see [`postcss(plugins)`]).
+ *
+ * Asynchronous plugins should return a `Promise` instance.
+ *
+ * ```js
+ * const processor = postcss()
+ * .use(autoprefixer)
+ * .use(precss)
+ * ```
+ *
+ * @param plugin PostCSS plugin or `Processor` with plugins.
+ * @return {Processes} Current processor to make methods chain.
+ */
+ use(plugin: AcceptedPlugin): this
+
+ /**
+ * Parses source CSS and returns a `LazyResult` Promise proxy.
+ * Because some plugins can be asynchronous it doesn’t make
+ * any transformations. Transformations will be applied
+ * in the `LazyResult` methods.
+ *
+ * ```js
+ * processor.process(css, { from: 'a.css', to: 'a.out.css' })
+ * .then(result => {
+ * console.log(result.css)
+ * })
+ * ```
+ *
+ * @param css String with input CSS or any object with a `toString()` method,
+ * like a Buffer. Optionally, senda `Result` instance
+ * and the processor will take the `Root` from it.
+ * @param opts Options.
+ * @return Promise proxy.
+ */
+ process(
+ css: string | { toString(): string } | Result | LazyResult | Root,
+ options?: ProcessOptions
+ ): LazyResult
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/processor.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/processor.js"
new file mode 100644
index 0000000000000000000000000000000000000000..ea42b3c743760ca644b8b33741a2da62c3958e58
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/processor.js"
@@ -0,0 +1,74 @@
+'use strict'
+
+let LazyResult = require('./lazy-result')
+let Document = require('./document')
+let Root = require('./root')
+
+class Processor {
+ constructor(plugins = []) {
+ this.version = '8.3.5'
+ this.plugins = this.normalize(plugins)
+ }
+
+ use(plugin) {
+ this.plugins = this.plugins.concat(this.normalize([plugin]))
+ return this
+ }
+
+ process(css, opts = {}) {
+ if (
+ this.plugins.length === 0 &&
+ typeof opts.parser === 'undefined' &&
+ typeof opts.stringifier === 'undefined' &&
+ typeof opts.syntax === 'undefined' &&
+ !opts.hideNothingWarning
+ ) {
+ if (process.env.NODE_ENV !== 'production') {
+ if (typeof console !== 'undefined' && console.warn) {
+ console.warn(
+ 'You did not set any plugins, parser, or stringifier. ' +
+ 'Right now, PostCSS does nothing. Pick plugins for your case ' +
+ 'on https://www.postcss.parts/ and use them in postcss.config.js.'
+ )
+ }
+ }
+ }
+ return new LazyResult(this, css, opts)
+ }
+
+ normalize(plugins) {
+ let normalized = []
+ for (let i of plugins) {
+ if (i.postcss === true) {
+ i = i()
+ } else if (i.postcss) {
+ i = i.postcss
+ }
+
+ if (typeof i === 'object' && Array.isArray(i.plugins)) {
+ normalized = normalized.concat(i.plugins)
+ } else if (typeof i === 'object' && i.postcssPlugin) {
+ normalized.push(i)
+ } else if (typeof i === 'function') {
+ normalized.push(i)
+ } else if (typeof i === 'object' && (i.parse || i.stringify)) {
+ if (process.env.NODE_ENV !== 'production') {
+ throw new Error(
+ 'PostCSS syntaxes cannot be used as plugins. Instead, please use ' +
+ 'one of the syntax/parser/stringifier options as outlined ' +
+ 'in your PostCSS runner documentation.'
+ )
+ }
+ } else {
+ throw new Error(i + ' is not a PostCSS plugin')
+ }
+ }
+ return normalized
+ }
+}
+
+module.exports = Processor
+Processor.default = Processor
+
+Root.registerProcessor(Processor)
+Document.registerProcessor(Processor)
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/result.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/result.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..11e7bf4355f34ff82540ee08cf7fadc38961dc08
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/result.d.ts"
@@ -0,0 +1,195 @@
+import {
+ ProcessOptions,
+ Plugin,
+ SourceMap,
+ TransformCallback,
+ Root,
+ Node,
+ Warning,
+ WarningOptions
+} from './postcss.js'
+import Processor from './processor.js'
+
+export interface Message {
+ /**
+ * Message type.
+ */
+ type: string
+
+ /**
+ * Source PostCSS plugin name.
+ */
+ plugin?: string
+
+ [others: string]: any
+}
+
+export interface ResultOptions extends ProcessOptions {
+ /**
+ * The CSS node that was the source of the warning.
+ */
+ node?: Node
+
+ /**
+ * Name of plugin that created this warning. `Result#warn` will fill it
+ * automatically with `Plugin#postcssPlugin` value.
+ */
+ plugin?: string
+}
+
+/**
+ * Provides the result of the PostCSS transformations.
+ *
+ * A Result instance is returned by `LazyResult#then`
+ * or `Root#toResult` methods.
+ *
+ * ```js
+ * postcss([autoprefixer]).process(css).then(result => {
+ * console.log(result.css)
+ * })
+ * ```
+ *
+ * ```js
+ * const result2 = postcss.parse(css).toResult()
+ * ```
+ */
+export default class Result {
+ /**
+ * The Processor instance used for this transformation.
+ *
+ * ```js
+ * for (const plugin of result.processor.plugins) {
+ * if (plugin.postcssPlugin === 'postcss-bad') {
+ * throw 'postcss-good is incompatible with postcss-bad'
+ * }
+ * })
+ * ```
+ */
+ processor: Processor
+
+ /**
+ * Contains messages from plugins (e.g., warnings or custom messages).
+ * Each message should have type and plugin properties.
+ *
+ * ```js
+ * AtRule: {
+ * import: (atRule, { result }) {
+ * const importedFile = parseImport(atRule)
+ * result.messages.push({
+ * type: 'dependency',
+ * plugin: 'postcss-import',
+ * file: importedFile,
+ * parent: result.opts.from
+ * })
+ * }
+ * }
+ * ```
+ */
+ messages: Message[]
+
+ /**
+ * Root node after all transformations.
+ *
+ * ```js
+ * root.toResult().root === root
+ * ```
+ */
+ root: Root
+
+ /**
+ * Options from the `Processor#process` or `Root#toResult` call
+ * that produced this Result instance.]
+ *
+ * ```js
+ * root.toResult(opts).opts === opts
+ * ```
+ */
+ opts: ResultOptions
+
+ /**
+ * A CSS string representing of `Result#root`.
+ *
+ * ```js
+ * postcss.parse('a{}').toResult().css //=> "a{}"
+ * ```
+ */
+ css: string
+
+ /**
+ * An instance of `SourceMapGenerator` class from the `source-map` library,
+ * representing changes to the `Result#root` instance.
+ *
+ * ```js
+ * result.map.toJSON() //=> { version: 3, file: 'a.css', … }
+ * ```
+ *
+ * ```js
+ * if (result.map) {
+ * fs.writeFileSync(result.opts.to + '.map', result.map.toString())
+ * }
+ * ```
+ */
+ map: SourceMap
+
+ /**
+ * Last runned PostCSS plugin.
+ */
+ lastPlugin: Plugin | TransformCallback
+
+ /**
+ * @param processor Processor used for this transformation.
+ * @param root Root node after all transformations.
+ * @param opts Options from the `Processor#process` or `Root#toResult`.
+ */
+ constructor(processor: Processor, root: Root, opts: ResultOptions)
+
+ /**
+ * An alias for the `Result#css` property.
+ * Use it with syntaxes that generate non-CSS output.
+ *
+ * ```js
+ * result.css === result.content
+ * ```
+ */
+ get content(): string
+
+ /**
+ * Returns for `Result#css` content.
+ *
+ * ```js
+ * result + '' === result.css
+ * ```
+ *
+ * @return String representing of `Result#root`.
+ */
+ toString(): string
+
+ /**
+ * Creates an instance of `Warning` and adds it to `Result#messages`.
+ *
+ * ```js
+ * if (decl.important) {
+ * result.warn('Avoid !important', { node: decl, word: '!important' })
+ * }
+ * ```
+ *
+ * @param text Warning message.
+ * @param opts Warning options.
+ * @return Created warning.
+ */
+ warn(message: string, options?: WarningOptions): Warning
+
+ /**
+ * Returns warnings from plugins. Filters `Warning` instances
+ * from `Result#messages`.
+ *
+ * ```js
+ * result.warnings().forEach(warn => {
+ * console.warn(warn.toString())
+ * })
+ * ```
+ *
+ * @return Warnings from plugins.
+ */
+ warnings(): Warning[]
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/result.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/result.js"
new file mode 100644
index 0000000000000000000000000000000000000000..a39751de0989ac55ee54b0733a3acc75f59819f1
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/result.js"
@@ -0,0 +1,42 @@
+'use strict'
+
+let Warning = require('./warning')
+
+class Result {
+ constructor(processor, root, opts) {
+ this.processor = processor
+ this.messages = []
+ this.root = root
+ this.opts = opts
+ this.css = undefined
+ this.map = undefined
+ }
+
+ toString() {
+ return this.css
+ }
+
+ warn(text, opts = {}) {
+ if (!opts.plugin) {
+ if (this.lastPlugin && this.lastPlugin.postcssPlugin) {
+ opts.plugin = this.lastPlugin.postcssPlugin
+ }
+ }
+
+ let warning = new Warning(text, opts)
+ this.messages.push(warning)
+
+ return warning
+ }
+
+ warnings() {
+ return this.messages.filter(i => i.type === 'warning')
+ }
+
+ get content() {
+ return this.css
+ }
+}
+
+module.exports = Result
+Result.default = Result
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/root.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/root.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..251b92b4235cb58d67435ea44b09d59dd457ce5a
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/root.d.ts"
@@ -0,0 +1,73 @@
+import Container, { ContainerProps } from './container.js'
+import Document from './document.js'
+import { ProcessOptions } from './postcss.js'
+import Result from './result.js'
+
+interface RootRaws extends Record {
+ /**
+ * The space symbols after the last child to the end of file.
+ */
+ after?: string
+
+ /**
+ * Non-CSS code before `Root`, when `Root` is inside `Document`.
+ *
+ * **Experimental:** some aspects of this node could change within minor
+ * or patch version releases.
+ */
+ codeBefore?: string
+
+ /**
+ * Non-CSS code after `Root`, when `Root` is inside `Document`.
+ *
+ * **Experimental:** some aspects of this node could change within minor
+ * or patch version releases.
+ */
+ codeAfter?: string
+
+ /**
+ * Is the last child has an (optional) semicolon.
+ */
+ semicolon?: boolean
+}
+
+export interface RootProps extends ContainerProps {
+ /**
+ * Information used to generate byte-to-byte equal node string
+ * as it was in the origin input.
+ * */
+ raws?: RootRaws
+}
+
+/**
+ * Represents a CSS file and contains all its parsed nodes.
+ *
+ * ```js
+ * const root = postcss.parse('a{color:black} b{z-index:2}')
+ * root.type //=> 'root'
+ * root.nodes.length //=> 2
+ * ```
+ */
+export default class Root extends Container {
+ type: 'root'
+ parent: Document | undefined
+ raws: RootRaws
+
+ /**
+ * Returns a `Result` instance representing the root’s CSS.
+ *
+ * ```js
+ * const root1 = postcss.parse(css1, { from: 'a.css' })
+ * const root2 = postcss.parse(css2, { from: 'b.css' })
+ * root1.append(root2)
+ * const result = root1.toResult({ to: 'all.css', map: true })
+ * ```
+ *
+ * @param opts Options.
+ * @return Result with current root’s CSS.
+ */
+ toResult(options?: ProcessOptions): Result
+
+ constructor(defaults?: RootProps)
+ assign(overrides: object | RootProps): this
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/root.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/root.js"
new file mode 100644
index 0000000000000000000000000000000000000000..18e4ceaf778f6078b7ef596a145cab04cff01825
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/root.js"
@@ -0,0 +1,59 @@
+'use strict'
+
+let Container = require('./container')
+
+let LazyResult, Processor
+
+class Root extends Container {
+ constructor(defaults) {
+ super(defaults)
+ this.type = 'root'
+ if (!this.nodes) this.nodes = []
+ }
+
+ removeChild(child, ignore) {
+ let index = this.index(child)
+
+ if (!ignore && index === 0 && this.nodes.length > 1) {
+ this.nodes[1].raws.before = this.nodes[index].raws.before
+ }
+
+ return super.removeChild(child)
+ }
+
+ normalize(child, sample, type) {
+ let nodes = super.normalize(child)
+
+ if (sample) {
+ if (type === 'prepend') {
+ if (this.nodes.length > 1) {
+ sample.raws.before = this.nodes[1].raws.before
+ } else {
+ delete sample.raws.before
+ }
+ } else if (this.first !== sample) {
+ for (let node of nodes) {
+ node.raws.before = sample.raws.before
+ }
+ }
+ }
+
+ return nodes
+ }
+
+ toResult(opts = {}) {
+ let lazy = new LazyResult(new Processor(), this, opts)
+ return lazy.stringify()
+ }
+}
+
+Root.registerLazyResult = dependant => {
+ LazyResult = dependant
+}
+
+Root.registerProcessor = dependant => {
+ Processor = dependant
+}
+
+module.exports = Root
+Root.default = Root
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/rule.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/rule.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..75ddf31ed70ad0b6791b75ab62c258798d97190b
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/rule.d.ts"
@@ -0,0 +1,104 @@
+import Container, { ContainerProps } from './container.js'
+
+interface RuleRaws {
+ /**
+ * The space symbols before the node. It also stores `*`
+ * and `_` symbols before the declaration (IE hack).
+ */
+ before?: string
+
+ /**
+ * The space symbols after the last child of the node to the end of the node.
+ */
+ after?: string
+
+ /**
+ * The symbols between the selector and `{` for rules.
+ */
+ between?: string
+
+ /**
+ * Contains `true` if the last child has an (optional) semicolon.
+ */
+ semicolon?: boolean
+
+ /**
+ * Contains `true` if there is semicolon after rule.
+ */
+ ownSemicolon?: string
+
+ /**
+ * The rule’s selector with comments.
+ */
+ selector?: {
+ value: string
+ raw: string
+ }
+}
+
+export interface RuleProps extends ContainerProps {
+ /** Selector or selectors of the rule. */
+ selector?: string
+ /** Selectors of the rule represented as an array of strings. */
+ selectors?: string[]
+ /** Information used to generate byte-to-byte equal node string as it was in the origin input. */
+ raws?: RuleRaws
+}
+
+/**
+ * Represents a CSS rule: a selector followed by a declaration block.
+ *
+ * ```js
+ * Once (root, { Rule }) {
+ * let a = new Rule({ selector: 'a' })
+ * a.append(…)
+ * root.append(a)
+ * }
+ * ```
+ *
+ * ```js
+ * const root = postcss.parse('a{}')
+ * const rule = root.first
+ * rule.type //=> 'rule'
+ * rule.toString() //=> 'a{}'
+ * ```
+ */
+export default class Rule extends Container {
+ type: 'rule'
+ parent: Container | undefined
+ raws: RuleRaws
+
+ /**
+ * The rule’s full selector represented as a string.
+ *
+ * ```js
+ * const root = postcss.parse('a, b { }')
+ * const rule = root.first
+ * rule.selector //=> 'a, b'
+ * ```
+ */
+ selector: string
+
+ /**
+ * An array containing the rule’s individual selectors.
+ * Groups of selectors are split at commas.
+ *
+ * ```js
+ * const root = postcss.parse('a, b { }')
+ * const rule = root.first
+ *
+ * rule.selector //=> 'a, b'
+ * rule.selectors //=> ['a', 'b']
+ *
+ * rule.selectors = ['a', 'strong']
+ * rule.selector //=> 'a, strong'
+ * ```
+ */
+ selectors: string[]
+
+ constructor(defaults?: RuleProps)
+ assign(overrides: object | RuleProps): this
+ clone(overrides?: Partial): this
+ cloneBefore(overrides?: Partial): this
+ cloneAfter(overrides?: Partial): this
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/rule.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/rule.js"
new file mode 100644
index 0000000000000000000000000000000000000000..a93ab25bf0c13b250ebd9fd2916e562b16e97152
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/rule.js"
@@ -0,0 +1,27 @@
+'use strict'
+
+let Container = require('./container')
+let list = require('./list')
+
+class Rule extends Container {
+ constructor(defaults) {
+ super(defaults)
+ this.type = 'rule'
+ if (!this.nodes) this.nodes = []
+ }
+
+ get selectors() {
+ return list.comma(this.selector)
+ }
+
+ set selectors(values) {
+ let match = this.selector ? this.selector.match(/,\s*/) : null
+ let sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen')
+ this.selector = values.join(sep)
+ }
+}
+
+module.exports = Rule
+Rule.default = Rule
+
+Container.registerRule(Rule)
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/stringifier.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/stringifier.js"
new file mode 100644
index 0000000000000000000000000000000000000000..81e12518255e10dbfd490353b40ada1365c21e15
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/stringifier.js"
@@ -0,0 +1,351 @@
+'use strict'
+
+const DEFAULT_RAW = {
+ colon: ': ',
+ indent: ' ',
+ beforeDecl: '\n',
+ beforeRule: '\n',
+ beforeOpen: ' ',
+ beforeClose: '\n',
+ beforeComment: '\n',
+ after: '\n',
+ emptyBody: '',
+ commentLeft: ' ',
+ commentRight: ' ',
+ semicolon: false
+}
+
+function capitalize(str) {
+ return str[0].toUpperCase() + str.slice(1)
+}
+
+class Stringifier {
+ constructor(builder) {
+ this.builder = builder
+ }
+
+ stringify(node, semicolon) {
+ /* istanbul ignore if */
+ if (!this[node.type]) {
+ throw new Error(
+ 'Unknown AST node type ' +
+ node.type +
+ '. ' +
+ 'Maybe you need to change PostCSS stringifier.'
+ )
+ }
+ this[node.type](node, semicolon)
+ }
+
+ document(node) {
+ this.body(node)
+ }
+
+ root(node) {
+ this.body(node)
+ if (node.raws.after) this.builder(node.raws.after)
+ }
+
+ comment(node) {
+ let left = this.raw(node, 'left', 'commentLeft')
+ let right = this.raw(node, 'right', 'commentRight')
+ this.builder('/*' + left + node.text + right + '*/', node)
+ }
+
+ decl(node, semicolon) {
+ let between = this.raw(node, 'between', 'colon')
+ let string = node.prop + between + this.rawValue(node, 'value')
+
+ if (node.important) {
+ string += node.raws.important || ' !important'
+ }
+
+ if (semicolon) string += ';'
+ this.builder(string, node)
+ }
+
+ rule(node) {
+ this.block(node, this.rawValue(node, 'selector'))
+ if (node.raws.ownSemicolon) {
+ this.builder(node.raws.ownSemicolon, node, 'end')
+ }
+ }
+
+ atrule(node, semicolon) {
+ let name = '@' + node.name
+ let params = node.params ? this.rawValue(node, 'params') : ''
+
+ if (typeof node.raws.afterName !== 'undefined') {
+ name += node.raws.afterName
+ } else if (params) {
+ name += ' '
+ }
+
+ if (node.nodes) {
+ this.block(node, name + params)
+ } else {
+ let end = (node.raws.between || '') + (semicolon ? ';' : '')
+ this.builder(name + params + end, node)
+ }
+ }
+
+ body(node) {
+ let last = node.nodes.length - 1
+ while (last > 0) {
+ if (node.nodes[last].type !== 'comment') break
+ last -= 1
+ }
+
+ let semicolon = this.raw(node, 'semicolon')
+ for (let i = 0; i < node.nodes.length; i++) {
+ let child = node.nodes[i]
+ let before = this.raw(child, 'before')
+ if (before) this.builder(before)
+ this.stringify(child, last !== i || semicolon)
+ }
+ }
+
+ block(node, start) {
+ let between = this.raw(node, 'between', 'beforeOpen')
+ this.builder(start + between + '{', node, 'start')
+
+ let after
+ if (node.nodes && node.nodes.length) {
+ this.body(node)
+ after = this.raw(node, 'after')
+ } else {
+ after = this.raw(node, 'after', 'emptyBody')
+ }
+
+ if (after) this.builder(after)
+ this.builder('}', node, 'end')
+ }
+
+ raw(node, own, detect) {
+ let value
+ if (!detect) detect = own
+
+ // Already had
+ if (own) {
+ value = node.raws[own]
+ if (typeof value !== 'undefined') return value
+ }
+
+ let parent = node.parent
+
+ if (detect === 'before') {
+ // Hack for first rule in CSS
+ if (!parent || (parent.type === 'root' && parent.first === node)) {
+ return ''
+ }
+
+ // `root` nodes in `document` should use only their own raws
+ if (parent && parent.type === 'document') {
+ return ''
+ }
+ }
+
+ // Floating child without parent
+ if (!parent) return DEFAULT_RAW[detect]
+
+ // Detect style by other nodes
+ let root = node.root()
+ if (!root.rawCache) root.rawCache = {}
+ if (typeof root.rawCache[detect] !== 'undefined') {
+ return root.rawCache[detect]
+ }
+
+ if (detect === 'before' || detect === 'after') {
+ return this.beforeAfter(node, detect)
+ } else {
+ let method = 'raw' + capitalize(detect)
+ if (this[method]) {
+ value = this[method](root, node)
+ } else {
+ root.walk(i => {
+ value = i.raws[own]
+ if (typeof value !== 'undefined') return false
+ })
+ }
+ }
+
+ if (typeof value === 'undefined') value = DEFAULT_RAW[detect]
+
+ root.rawCache[detect] = value
+ return value
+ }
+
+ rawSemicolon(root) {
+ let value
+ root.walk(i => {
+ if (i.nodes && i.nodes.length && i.last.type === 'decl') {
+ value = i.raws.semicolon
+ if (typeof value !== 'undefined') return false
+ }
+ })
+ return value
+ }
+
+ rawEmptyBody(root) {
+ let value
+ root.walk(i => {
+ if (i.nodes && i.nodes.length === 0) {
+ value = i.raws.after
+ if (typeof value !== 'undefined') return false
+ }
+ })
+ return value
+ }
+
+ rawIndent(root) {
+ if (root.raws.indent) return root.raws.indent
+ let value
+ root.walk(i => {
+ let p = i.parent
+ if (p && p !== root && p.parent && p.parent === root) {
+ if (typeof i.raws.before !== 'undefined') {
+ let parts = i.raws.before.split('\n')
+ value = parts[parts.length - 1]
+ value = value.replace(/\S/g, '')
+ return false
+ }
+ }
+ })
+ return value
+ }
+
+ rawBeforeComment(root, node) {
+ let value
+ root.walkComments(i => {
+ if (typeof i.raws.before !== 'undefined') {
+ value = i.raws.before
+ if (value.includes('\n')) {
+ value = value.replace(/[^\n]+$/, '')
+ }
+ return false
+ }
+ })
+ if (typeof value === 'undefined') {
+ value = this.raw(node, null, 'beforeDecl')
+ } else if (value) {
+ value = value.replace(/\S/g, '')
+ }
+ return value
+ }
+
+ rawBeforeDecl(root, node) {
+ let value
+ root.walkDecls(i => {
+ if (typeof i.raws.before !== 'undefined') {
+ value = i.raws.before
+ if (value.includes('\n')) {
+ value = value.replace(/[^\n]+$/, '')
+ }
+ return false
+ }
+ })
+ if (typeof value === 'undefined') {
+ value = this.raw(node, null, 'beforeRule')
+ } else if (value) {
+ value = value.replace(/\S/g, '')
+ }
+ return value
+ }
+
+ rawBeforeRule(root) {
+ let value
+ root.walk(i => {
+ if (i.nodes && (i.parent !== root || root.first !== i)) {
+ if (typeof i.raws.before !== 'undefined') {
+ value = i.raws.before
+ if (value.includes('\n')) {
+ value = value.replace(/[^\n]+$/, '')
+ }
+ return false
+ }
+ }
+ })
+ if (value) value = value.replace(/\S/g, '')
+ return value
+ }
+
+ rawBeforeClose(root) {
+ let value
+ root.walk(i => {
+ if (i.nodes && i.nodes.length > 0) {
+ if (typeof i.raws.after !== 'undefined') {
+ value = i.raws.after
+ if (value.includes('\n')) {
+ value = value.replace(/[^\n]+$/, '')
+ }
+ return false
+ }
+ }
+ })
+ if (value) value = value.replace(/\S/g, '')
+ return value
+ }
+
+ rawBeforeOpen(root) {
+ let value
+ root.walk(i => {
+ if (i.type !== 'decl') {
+ value = i.raws.between
+ if (typeof value !== 'undefined') return false
+ }
+ })
+ return value
+ }
+
+ rawColon(root) {
+ let value
+ root.walkDecls(i => {
+ if (typeof i.raws.between !== 'undefined') {
+ value = i.raws.between.replace(/[^\s:]/g, '')
+ return false
+ }
+ })
+ return value
+ }
+
+ beforeAfter(node, detect) {
+ let value
+ if (node.type === 'decl') {
+ value = this.raw(node, null, 'beforeDecl')
+ } else if (node.type === 'comment') {
+ value = this.raw(node, null, 'beforeComment')
+ } else if (detect === 'before') {
+ value = this.raw(node, null, 'beforeRule')
+ } else {
+ value = this.raw(node, null, 'beforeClose')
+ }
+
+ let buf = node.parent
+ let depth = 0
+ while (buf && buf.type !== 'root') {
+ depth += 1
+ buf = buf.parent
+ }
+
+ if (value.includes('\n')) {
+ let indent = this.raw(node, null, 'indent')
+ if (indent.length) {
+ for (let step = 0; step < depth; step++) value += indent
+ }
+ }
+
+ return value
+ }
+
+ rawValue(node, prop) {
+ let value = node[prop]
+ let raw = node.raws[prop]
+ if (raw && raw.value === value) {
+ return raw.raw
+ }
+
+ return value
+ }
+}
+
+module.exports = Stringifier
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/stringify.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/stringify.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..363682ff35bbd2205f4518713a543e541ea8d050
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/stringify.d.ts"
@@ -0,0 +1,5 @@
+import { Stringifier } from './postcss.js'
+
+declare const stringify: Stringifier
+
+export default stringify
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/stringify.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/stringify.js"
new file mode 100644
index 0000000000000000000000000000000000000000..77bd0178bbc95d57719117bec456a086b5a142a0
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/stringify.js"
@@ -0,0 +1,11 @@
+'use strict'
+
+let Stringifier = require('./stringifier')
+
+function stringify(node, builder) {
+ let str = new Stringifier(builder)
+ str.stringify(node)
+}
+
+module.exports = stringify
+stringify.default = stringify
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/symbols.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/symbols.js"
new file mode 100644
index 0000000000000000000000000000000000000000..a142c268d464bd4093653baea44ea7abb85e1496
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/symbols.js"
@@ -0,0 +1,5 @@
+'use strict'
+
+module.exports.isClean = Symbol('isClean')
+
+module.exports.my = Symbol('my')
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/terminal-highlight.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/terminal-highlight.js"
new file mode 100644
index 0000000000000000000000000000000000000000..60282bd0e30505bd4daf34ca4730eb5eb883d137
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/terminal-highlight.js"
@@ -0,0 +1,70 @@
+'use strict'
+
+let { cyan, gray, green, yellow, magenta } = require('colorette')
+
+let tokenizer = require('./tokenize')
+
+let Input
+
+function registerInput(dependant) {
+ Input = dependant
+}
+
+const HIGHLIGHT_THEME = {
+ 'brackets': cyan,
+ 'at-word': cyan,
+ 'comment': gray,
+ 'string': green,
+ 'class': yellow,
+ 'hash': magenta,
+ 'call': cyan,
+ '(': cyan,
+ ')': cyan,
+ '{': yellow,
+ '}': yellow,
+ '[': yellow,
+ ']': yellow,
+ ':': yellow,
+ ';': yellow
+}
+
+function getTokenType([type, value], processor) {
+ if (type === 'word') {
+ if (value[0] === '.') {
+ return 'class'
+ }
+ if (value[0] === '#') {
+ return 'hash'
+ }
+ }
+
+ if (!processor.endOfFile()) {
+ let next = processor.nextToken()
+ processor.back(next)
+ if (next[0] === 'brackets' || next[0] === '(') return 'call'
+ }
+
+ return type
+}
+
+function terminalHighlight(css) {
+ let processor = tokenizer(new Input(css), { ignoreErrors: true })
+ let result = ''
+ while (!processor.endOfFile()) {
+ let token = processor.nextToken()
+ let color = HIGHLIGHT_THEME[getTokenType(token, processor)]
+ if (color) {
+ result += token[1]
+ .split(/\r?\n/)
+ .map(i => color(i))
+ .join('\n')
+ } else {
+ result += token[1]
+ }
+ }
+ return result
+}
+
+terminalHighlight.registerInput = registerInput
+
+module.exports = terminalHighlight
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/tokenize.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/tokenize.js"
new file mode 100644
index 0000000000000000000000000000000000000000..8dac706f2ce8a99dc801ecccb4ffbfef610076e8
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/tokenize.js"
@@ -0,0 +1,266 @@
+'use strict'
+
+const SINGLE_QUOTE = "'".charCodeAt(0)
+const DOUBLE_QUOTE = '"'.charCodeAt(0)
+const BACKSLASH = '\\'.charCodeAt(0)
+const SLASH = '/'.charCodeAt(0)
+const NEWLINE = '\n'.charCodeAt(0)
+const SPACE = ' '.charCodeAt(0)
+const FEED = '\f'.charCodeAt(0)
+const TAB = '\t'.charCodeAt(0)
+const CR = '\r'.charCodeAt(0)
+const OPEN_SQUARE = '['.charCodeAt(0)
+const CLOSE_SQUARE = ']'.charCodeAt(0)
+const OPEN_PARENTHESES = '('.charCodeAt(0)
+const CLOSE_PARENTHESES = ')'.charCodeAt(0)
+const OPEN_CURLY = '{'.charCodeAt(0)
+const CLOSE_CURLY = '}'.charCodeAt(0)
+const SEMICOLON = ';'.charCodeAt(0)
+const ASTERISK = '*'.charCodeAt(0)
+const COLON = ':'.charCodeAt(0)
+const AT = '@'.charCodeAt(0)
+
+const RE_AT_END = /[\t\n\f\r "#'()/;[\\\]{}]/g
+const RE_WORD_END = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g
+const RE_BAD_BRACKET = /.[\n"'(/\\]/
+const RE_HEX_ESCAPE = /[\da-f]/i
+
+module.exports = function tokenizer(input, options = {}) {
+ let css = input.css.valueOf()
+ let ignore = options.ignoreErrors
+
+ let code, next, quote, content, escape
+ let escaped, escapePos, prev, n, currentToken
+
+ let length = css.length
+ let pos = 0
+ let buffer = []
+ let returned = []
+
+ function position() {
+ return pos
+ }
+
+ function unclosed(what) {
+ throw input.error('Unclosed ' + what, pos)
+ }
+
+ function endOfFile() {
+ return returned.length === 0 && pos >= length
+ }
+
+ function nextToken(opts) {
+ if (returned.length) return returned.pop()
+ if (pos >= length) return
+
+ let ignoreUnclosed = opts ? opts.ignoreUnclosed : false
+
+ code = css.charCodeAt(pos)
+
+ switch (code) {
+ case NEWLINE:
+ case SPACE:
+ case TAB:
+ case CR:
+ case FEED: {
+ next = pos
+ do {
+ next += 1
+ code = css.charCodeAt(next)
+ } while (
+ code === SPACE ||
+ code === NEWLINE ||
+ code === TAB ||
+ code === CR ||
+ code === FEED
+ )
+
+ currentToken = ['space', css.slice(pos, next)]
+ pos = next - 1
+ break
+ }
+
+ case OPEN_SQUARE:
+ case CLOSE_SQUARE:
+ case OPEN_CURLY:
+ case CLOSE_CURLY:
+ case COLON:
+ case SEMICOLON:
+ case CLOSE_PARENTHESES: {
+ let controlChar = String.fromCharCode(code)
+ currentToken = [controlChar, controlChar, pos]
+ break
+ }
+
+ case OPEN_PARENTHESES: {
+ prev = buffer.length ? buffer.pop()[1] : ''
+ n = css.charCodeAt(pos + 1)
+ if (
+ prev === 'url' &&
+ n !== SINGLE_QUOTE &&
+ n !== DOUBLE_QUOTE &&
+ n !== SPACE &&
+ n !== NEWLINE &&
+ n !== TAB &&
+ n !== FEED &&
+ n !== CR
+ ) {
+ next = pos
+ do {
+ escaped = false
+ next = css.indexOf(')', next + 1)
+ if (next === -1) {
+ if (ignore || ignoreUnclosed) {
+ next = pos
+ break
+ } else {
+ unclosed('bracket')
+ }
+ }
+ escapePos = next
+ while (css.charCodeAt(escapePos - 1) === BACKSLASH) {
+ escapePos -= 1
+ escaped = !escaped
+ }
+ } while (escaped)
+
+ currentToken = ['brackets', css.slice(pos, next + 1), pos, next]
+
+ pos = next
+ } else {
+ next = css.indexOf(')', pos + 1)
+ content = css.slice(pos, next + 1)
+
+ if (next === -1 || RE_BAD_BRACKET.test(content)) {
+ currentToken = ['(', '(', pos]
+ } else {
+ currentToken = ['brackets', content, pos, next]
+ pos = next
+ }
+ }
+
+ break
+ }
+
+ case SINGLE_QUOTE:
+ case DOUBLE_QUOTE: {
+ quote = code === SINGLE_QUOTE ? "'" : '"'
+ next = pos
+ do {
+ escaped = false
+ next = css.indexOf(quote, next + 1)
+ if (next === -1) {
+ if (ignore || ignoreUnclosed) {
+ next = pos + 1
+ break
+ } else {
+ unclosed('string')
+ }
+ }
+ escapePos = next
+ while (css.charCodeAt(escapePos - 1) === BACKSLASH) {
+ escapePos -= 1
+ escaped = !escaped
+ }
+ } while (escaped)
+
+ currentToken = ['string', css.slice(pos, next + 1), pos, next]
+ pos = next
+ break
+ }
+
+ case AT: {
+ RE_AT_END.lastIndex = pos + 1
+ RE_AT_END.test(css)
+ if (RE_AT_END.lastIndex === 0) {
+ next = css.length - 1
+ } else {
+ next = RE_AT_END.lastIndex - 2
+ }
+
+ currentToken = ['at-word', css.slice(pos, next + 1), pos, next]
+
+ pos = next
+ break
+ }
+
+ case BACKSLASH: {
+ next = pos
+ escape = true
+ while (css.charCodeAt(next + 1) === BACKSLASH) {
+ next += 1
+ escape = !escape
+ }
+ code = css.charCodeAt(next + 1)
+ if (
+ escape &&
+ code !== SLASH &&
+ code !== SPACE &&
+ code !== NEWLINE &&
+ code !== TAB &&
+ code !== CR &&
+ code !== FEED
+ ) {
+ next += 1
+ if (RE_HEX_ESCAPE.test(css.charAt(next))) {
+ while (RE_HEX_ESCAPE.test(css.charAt(next + 1))) {
+ next += 1
+ }
+ if (css.charCodeAt(next + 1) === SPACE) {
+ next += 1
+ }
+ }
+ }
+
+ currentToken = ['word', css.slice(pos, next + 1), pos, next]
+
+ pos = next
+ break
+ }
+
+ default: {
+ if (code === SLASH && css.charCodeAt(pos + 1) === ASTERISK) {
+ next = css.indexOf('*/', pos + 2) + 1
+ if (next === 0) {
+ if (ignore || ignoreUnclosed) {
+ next = css.length
+ } else {
+ unclosed('comment')
+ }
+ }
+
+ currentToken = ['comment', css.slice(pos, next + 1), pos, next]
+ pos = next
+ } else {
+ RE_WORD_END.lastIndex = pos + 1
+ RE_WORD_END.test(css)
+ if (RE_WORD_END.lastIndex === 0) {
+ next = css.length - 1
+ } else {
+ next = RE_WORD_END.lastIndex - 2
+ }
+
+ currentToken = ['word', css.slice(pos, next + 1), pos, next]
+ buffer.push(currentToken)
+ pos = next
+ }
+
+ break
+ }
+ }
+
+ pos++
+ return currentToken
+ }
+
+ function back(token) {
+ returned.push(token)
+ }
+
+ return {
+ back,
+ nextToken,
+ endOfFile,
+ position
+ }
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/warn-once.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/warn-once.js"
new file mode 100644
index 0000000000000000000000000000000000000000..6896b75858ce88a8fb14611d2ba0cafa3e19bd25
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/warn-once.js"
@@ -0,0 +1,12 @@
+'use strict'
+
+let printed = {}
+
+module.exports = function warnOnce(message) {
+ if (printed[message]) return
+ printed[message] = true
+
+ if (typeof console !== 'undefined' && console.warn) {
+ console.warn(message)
+ }
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/warning.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/warning.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..a285367fe744beddb99341f061b5ab72c35c539b
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/warning.d.ts"
@@ -0,0 +1,104 @@
+import Node from './node.js'
+
+export interface WarningOptions {
+ /**
+ * CSS node that caused the warning.
+ */
+ node?: Node
+
+ /**
+ * Word in CSS source that caused the warning.
+ */
+ word?: string
+
+ /**
+ * Index in CSS node string that caused the warning.
+ */
+ index?: number
+
+ /**
+ * Name of the plugin that created this warning. `Result#warn` fills
+ * this property automatically.
+ */
+ plugin?: string
+}
+
+/**
+ * Represents a plugin’s warning. It can be created using `Node#warn`.
+ *
+ * ```js
+ * if (decl.important) {
+ * decl.warn(result, 'Avoid !important', { word: '!important' })
+ * }
+ * ```
+ */
+export default class Warning {
+ /**
+ * Type to filter warnings from `Result#messages`.
+ * Always equal to `"warning"`.
+ */
+ type: 'warning'
+
+ /**
+ * The warning message.
+ *
+ * ```js
+ * warning.text //=> 'Try to avoid !important'
+ * ```
+ */
+ text: string
+
+ /**
+ * The name of the plugin that created this warning.
+ * When you call `Node#warn` it will fill this property automatically.
+ *
+ * ```js
+ * warning.plugin //=> 'postcss-important'
+ * ```
+ */
+ plugin: string
+
+ /**
+ * Contains the CSS node that caused the warning.
+ *
+ * ```js
+ * warning.node.toString() //=> 'color: white !important'
+ * ```
+ */
+ node: Node
+
+ /**
+ * Line in the input file with this warning’s source.
+ *
+ * ```js
+ * warning.line //=> 5
+ * ```
+ */
+ line: number
+
+ /**
+ * Column in the input file with this warning’s source.
+ *
+ * ```js
+ * warning.column //=> 6
+ * ```
+ */
+ column: number
+
+ /**
+ * @param text Warning message.
+ * @param opts Warning options.
+ */
+ constructor(text: string, opts?: WarningOptions)
+
+ /**
+ * Returns a warning position and message.
+ *
+ * ```js
+ * warning.toString() //=> 'postcss-lint:a.css:10:14: Avoid !important'
+ * ```
+ *
+ * @return Warning position and message.
+ */
+ toString(): string
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/warning.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/warning.js"
new file mode 100644
index 0000000000000000000000000000000000000000..cdb0281db74a3529e5e46b2b582a7063aa4292fc
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/lib/warning.js"
@@ -0,0 +1,35 @@
+'use strict'
+
+class Warning {
+ constructor(text, opts = {}) {
+ this.type = 'warning'
+ this.text = text
+
+ if (opts.node && opts.node.source) {
+ let pos = opts.node.positionBy(opts)
+ this.line = pos.line
+ this.column = pos.column
+ }
+
+ for (let opt in opts) this[opt] = opts[opt]
+ }
+
+ toString() {
+ if (this.node) {
+ return this.node.error(this.text, {
+ plugin: this.plugin,
+ index: this.index,
+ word: this.word
+ }).message
+ }
+
+ if (this.plugin) {
+ return this.plugin + ': ' + this.text
+ }
+
+ return this.text
+ }
+}
+
+module.exports = Warning
+Warning.default = Warning
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/package.json" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/package.json"
new file mode 100644
index 0000000000000000000000000000000000000000..9d589f1a0ebb6293637dec5f6bf64addbd66b9f1
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/postcss/package.json"
@@ -0,0 +1,110 @@
+{
+ "_from": "postcss@^8.2.15",
+ "_id": "postcss@8.3.5",
+ "_inBundle": false,
+ "_integrity": "sha1-mCIWsRNBK8IKhiiekeuZSVKltwk=",
+ "_location": "/postcss",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "postcss@^8.2.15",
+ "name": "postcss",
+ "escapedName": "postcss",
+ "rawSpec": "^8.2.15",
+ "saveSpec": null,
+ "fetchSpec": "^8.2.15"
+ },
+ "_requiredBy": [
+ "/css-loader"
+ ],
+ "_resolved": "https://registry.nlark.com/postcss/download/postcss-8.3.5.tgz",
+ "_shasum": "982216b113412bc20a86289e91eb994952a5b709",
+ "_spec": "postcss@^8.2.15",
+ "_where": "C:\\Users\\Administrator\\Desktop\\2021.7.1\\node_modules\\css-loader",
+ "author": {
+ "name": "Andrey Sitnik",
+ "email": "andrey@sitnik.ru"
+ },
+ "browser": {
+ "./lib/terminal-highlight": false,
+ "source-map-js": false,
+ "colorette": false,
+ "path": false,
+ "url": false,
+ "fs": false
+ },
+ "bugs": {
+ "url": "https://github.com/postcss/postcss/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "colorette": "^1.2.2",
+ "nanoid": "^3.1.23",
+ "source-map-js": "^0.6.2"
+ },
+ "deprecated": false,
+ "description": "Tool for transforming styles with JS plugins",
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ },
+ "exports": {
+ ".": {
+ "require": "./lib/postcss.js",
+ "import": "./lib/postcss.mjs",
+ "types": "./lib/postcss.d.ts"
+ },
+ "./lib/at-rule": "./lib/at-rule.js",
+ "./lib/comment": "./lib/comment.js",
+ "./lib/container": "./lib/container.js",
+ "./lib/css-syntax-error": "./lib/css-syntax-error.js",
+ "./lib/declaration": "./lib/declaration.js",
+ "./lib/fromJSON": "./lib/fromJSON.js",
+ "./lib/input": "./lib/input.js",
+ "./lib/lazy-result": "./lib/lazy-result.js",
+ "./lib/list": "./lib/list.js",
+ "./lib/map-generator": "./lib/map-generator.js",
+ "./lib/node": "./lib/node.js",
+ "./lib/parse": "./lib/parse.js",
+ "./lib/parser": "./lib/parser.js",
+ "./lib/postcss": "./lib/postcss.js",
+ "./lib/previous-map": "./lib/previous-map.js",
+ "./lib/processor": "./lib/processor.js",
+ "./lib/result": "./lib/result.js",
+ "./lib/root": "./lib/root.js",
+ "./lib/rule": "./lib/rule.js",
+ "./lib/stringifier": "./lib/stringifier.js",
+ "./lib/stringify": "./lib/stringify.js",
+ "./lib/symbols": "./lib/symbols.js",
+ "./lib/terminal-highlight": "./lib/terminal-highlight.js",
+ "./lib/tokenize": "./lib/tokenize.js",
+ "./lib/warn-once": "./lib/warn-once.js",
+ "./lib/warning": "./lib/warning.js",
+ "./package.json": "./package.json"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ "homepage": "https://postcss.org/",
+ "keywords": [
+ "css",
+ "postcss",
+ "rework",
+ "preprocessor",
+ "parser",
+ "source map",
+ "transform",
+ "manipulation",
+ "transpiler"
+ ],
+ "license": "MIT",
+ "main": "./lib/postcss.js",
+ "name": "postcss",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/postcss/postcss.git"
+ },
+ "types": "./lib/postcss.d.ts",
+ "version": "8.3.5"
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/punycode/LICENSE-MIT.txt" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/punycode/LICENSE-MIT.txt"
new file mode 100644
index 0000000000000000000000000000000000000000..a41e0a7ef970ecdd83d82cd99bda97b22077bc62
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/punycode/LICENSE-MIT.txt"
@@ -0,0 +1,20 @@
+Copyright Mathias Bynens
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/punycode/README.md" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/punycode/README.md"
new file mode 100644
index 0000000000000000000000000000000000000000..ee2f9d63320c0de82d8e13ec95dc35338391b02a
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/punycode/README.md"
@@ -0,0 +1,122 @@
+# Punycode.js [](https://travis-ci.org/bestiejs/punycode.js) [](https://codecov.io/gh/bestiejs/punycode.js) [](https://gemnasium.com/bestiejs/punycode.js)
+
+Punycode.js is a robust Punycode converter that fully complies to [RFC 3492](https://tools.ietf.org/html/rfc3492) and [RFC 5891](https://tools.ietf.org/html/rfc5891).
+
+This JavaScript library is the result of comparing, optimizing and documenting different open-source implementations of the Punycode algorithm:
+
+* [The C example code from RFC 3492](https://tools.ietf.org/html/rfc3492#appendix-C)
+* [`punycode.c` by _Markus W. Scherer_ (IBM)](http://opensource.apple.com/source/ICU/ICU-400.42/icuSources/common/punycode.c)
+* [`punycode.c` by _Ben Noordhuis_](https://github.com/bnoordhuis/punycode/blob/master/punycode.c)
+* [JavaScript implementation by _some_](http://stackoverflow.com/questions/183485/can-anyone-recommend-a-good-free-javascript-for-punycode-to-unicode-conversion/301287#301287)
+* [`punycode.js` by _Ben Noordhuis_](https://github.com/joyent/node/blob/426298c8c1c0d5b5224ac3658c41e7c2a3fe9377/lib/punycode.js) (note: [not fully compliant](https://github.com/joyent/node/issues/2072))
+
+This project was [bundled](https://github.com/joyent/node/blob/master/lib/punycode.js) with Node.js from [v0.6.2+](https://github.com/joyent/node/compare/975f1930b1...61e796decc) until [v7](https://github.com/nodejs/node/pull/7941) (soft-deprecated).
+
+The current version supports recent versions of Node.js only. It provides a CommonJS module and an ES6 module. For the old version that offers the same functionality with broader support, including Rhino, Ringo, Narwhal, and web browsers, see [v1.4.1](https://github.com/bestiejs/punycode.js/releases/tag/v1.4.1).
+
+## Installation
+
+Via [npm](https://www.npmjs.com/):
+
+```bash
+npm install punycode --save
+```
+
+In [Node.js](https://nodejs.org/):
+
+```js
+const punycode = require('punycode');
+```
+
+## API
+
+### `punycode.decode(string)`
+
+Converts a Punycode string of ASCII symbols to a string of Unicode symbols.
+
+```js
+// decode domain name parts
+punycode.decode('maana-pta'); // 'mañana'
+punycode.decode('--dqo34k'); // '☃-⌘'
+```
+
+### `punycode.encode(string)`
+
+Converts a string of Unicode symbols to a Punycode string of ASCII symbols.
+
+```js
+// encode domain name parts
+punycode.encode('mañana'); // 'maana-pta'
+punycode.encode('☃-⌘'); // '--dqo34k'
+```
+
+### `punycode.toUnicode(input)`
+
+Converts a Punycode string representing a domain name or an email address to Unicode. Only the Punycoded parts of the input will be converted, i.e. it doesn’t matter if you call it on a string that has already been converted to Unicode.
+
+```js
+// decode domain names
+punycode.toUnicode('xn--maana-pta.com');
+// → 'mañana.com'
+punycode.toUnicode('xn----dqo34k.com');
+// → '☃-⌘.com'
+
+// decode email addresses
+punycode.toUnicode('джумла@xn--p-8sbkgc5ag7bhce.xn--ba-lmcq');
+// → 'джумла@джpумлатест.bрфa'
+```
+
+### `punycode.toASCII(input)`
+
+Converts a lowercased Unicode string representing a domain name or an email address to Punycode. Only the non-ASCII parts of the input will be converted, i.e. it doesn’t matter if you call it with a domain that’s already in ASCII.
+
+```js
+// encode domain names
+punycode.toASCII('mañana.com');
+// → 'xn--maana-pta.com'
+punycode.toASCII('☃-⌘.com');
+// → 'xn----dqo34k.com'
+
+// encode email addresses
+punycode.toASCII('джумла@джpумлатест.bрфa');
+// → 'джумла@xn--p-8sbkgc5ag7bhce.xn--ba-lmcq'
+```
+
+### `punycode.ucs2`
+
+#### `punycode.ucs2.decode(string)`
+
+Creates an array containing the numeric code point values of each Unicode symbol in the string. While [JavaScript uses UCS-2 internally](https://mathiasbynens.be/notes/javascript-encoding), this function will convert a pair of surrogate halves (each of which UCS-2 exposes as separate characters) into a single code point, matching UTF-16.
+
+```js
+punycode.ucs2.decode('abc');
+// → [0x61, 0x62, 0x63]
+// surrogate pair for U+1D306 TETRAGRAM FOR CENTRE:
+punycode.ucs2.decode('\uD834\uDF06');
+// → [0x1D306]
+```
+
+#### `punycode.ucs2.encode(codePoints)`
+
+Creates a string based on an array of numeric code point values.
+
+```js
+punycode.ucs2.encode([0x61, 0x62, 0x63]);
+// → 'abc'
+punycode.ucs2.encode([0x1D306]);
+// → '\uD834\uDF06'
+```
+
+### `punycode.version`
+
+A string representing the current Punycode.js version number.
+
+## Author
+
+| [](https://twitter.com/mathias "Follow @mathias on Twitter") |
+|---|
+| [Mathias Bynens](https://mathiasbynens.be/) |
+
+## License
+
+Punycode.js is available under the [MIT](https://mths.be/mit) license.
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/punycode/package.json" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/punycode/package.json"
new file mode 100644
index 0000000000000000000000000000000000000000..da075d0276a1db82da12119f3ab2655344e25e2e
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/punycode/package.json"
@@ -0,0 +1,85 @@
+{
+ "_from": "punycode@^2.1.0",
+ "_id": "punycode@2.1.1",
+ "_inBundle": false,
+ "_integrity": "sha1-tYsBCsQMIsVldhbI0sLALHv0eew=",
+ "_location": "/punycode",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "punycode@^2.1.0",
+ "name": "punycode",
+ "escapedName": "punycode",
+ "rawSpec": "^2.1.0",
+ "saveSpec": null,
+ "fetchSpec": "^2.1.0"
+ },
+ "_requiredBy": [
+ "/uri-js"
+ ],
+ "_resolved": "https://registry.nlark.com/punycode/download/punycode-2.1.1.tgz",
+ "_shasum": "b58b010ac40c22c5657616c8d2c2c02c7bf479ec",
+ "_spec": "punycode@^2.1.0",
+ "_where": "C:\\Users\\Administrator\\Desktop\\2021.7.1\\node_modules\\uri-js",
+ "author": {
+ "name": "Mathias Bynens",
+ "url": "https://mathiasbynens.be/"
+ },
+ "bugs": {
+ "url": "https://github.com/bestiejs/punycode.js/issues"
+ },
+ "bundleDependencies": false,
+ "contributors": [
+ {
+ "name": "Mathias Bynens",
+ "url": "https://mathiasbynens.be/"
+ }
+ ],
+ "deprecated": false,
+ "description": "A robust Punycode converter that fully complies to RFC 3492 and RFC 5891, and works on nearly all JavaScript platforms.",
+ "devDependencies": {
+ "codecov": "^1.0.1",
+ "istanbul": "^0.4.1",
+ "mocha": "^2.5.3"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "files": [
+ "LICENSE-MIT.txt",
+ "punycode.js",
+ "punycode.es6.js"
+ ],
+ "homepage": "https://mths.be/punycode",
+ "jsnext:main": "punycode.es6.js",
+ "jspm": {
+ "map": {
+ "./punycode.js": {
+ "node": "@node/punycode"
+ }
+ }
+ },
+ "keywords": [
+ "punycode",
+ "unicode",
+ "idn",
+ "idna",
+ "dns",
+ "url",
+ "domain"
+ ],
+ "license": "MIT",
+ "main": "punycode.js",
+ "module": "punycode.es6.js",
+ "name": "punycode",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/bestiejs/punycode.js.git"
+ },
+ "scripts": {
+ "prepublish": "node scripts/prepublish.js",
+ "test": "mocha tests"
+ },
+ "version": "2.1.1"
+}
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/punycode/punycode.es6.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/punycode/punycode.es6.js"
new file mode 100644
index 0000000000000000000000000000000000000000..4610bc9ebf2974804326afe9f0d9fd98d428574a
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/punycode/punycode.es6.js"
@@ -0,0 +1,441 @@
+'use strict';
+
+/** Highest positive signed 32-bit float value */
+const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
+
+/** Bootstring parameters */
+const base = 36;
+const tMin = 1;
+const tMax = 26;
+const skew = 38;
+const damp = 700;
+const initialBias = 72;
+const initialN = 128; // 0x80
+const delimiter = '-'; // '\x2D'
+
+/** Regular expressions */
+const regexPunycode = /^xn--/;
+const regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars
+const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
+
+/** Error messages */
+const errors = {
+ 'overflow': 'Overflow: input needs wider integers to process',
+ 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
+ 'invalid-input': 'Invalid input'
+};
+
+/** Convenience shortcuts */
+const baseMinusTMin = base - tMin;
+const floor = Math.floor;
+const stringFromCharCode = String.fromCharCode;
+
+/*--------------------------------------------------------------------------*/
+
+/**
+ * A generic error utility function.
+ * @private
+ * @param {String} type The error type.
+ * @returns {Error} Throws a `RangeError` with the applicable error message.
+ */
+function error(type) {
+ throw new RangeError(errors[type]);
+}
+
+/**
+ * A generic `Array#map` utility function.
+ * @private
+ * @param {Array} array The array to iterate over.
+ * @param {Function} callback The function that gets called for every array
+ * item.
+ * @returns {Array} A new array of values returned by the callback function.
+ */
+function map(array, fn) {
+ const result = [];
+ let length = array.length;
+ while (length--) {
+ result[length] = fn(array[length]);
+ }
+ return result;
+}
+
+/**
+ * A simple `Array#map`-like wrapper to work with domain name strings or email
+ * addresses.
+ * @private
+ * @param {String} domain The domain name or email address.
+ * @param {Function} callback The function that gets called for every
+ * character.
+ * @returns {Array} A new string of characters returned by the callback
+ * function.
+ */
+function mapDomain(string, fn) {
+ const parts = string.split('@');
+ let result = '';
+ if (parts.length > 1) {
+ // In email addresses, only the domain name should be punycoded. Leave
+ // the local part (i.e. everything up to `@`) intact.
+ result = parts[0] + '@';
+ string = parts[1];
+ }
+ // Avoid `split(regex)` for IE8 compatibility. See #17.
+ string = string.replace(regexSeparators, '\x2E');
+ const labels = string.split('.');
+ const encoded = map(labels, fn).join('.');
+ return result + encoded;
+}
+
+/**
+ * Creates an array containing the numeric code points of each Unicode
+ * character in the string. While JavaScript uses UCS-2 internally,
+ * this function will convert a pair of surrogate halves (each of which
+ * UCS-2 exposes as separate characters) into a single code point,
+ * matching UTF-16.
+ * @see `punycode.ucs2.encode`
+ * @see
+ * @memberOf punycode.ucs2
+ * @name decode
+ * @param {String} string The Unicode input string (UCS-2).
+ * @returns {Array} The new array of code points.
+ */
+function ucs2decode(string) {
+ const output = [];
+ let counter = 0;
+ const length = string.length;
+ while (counter < length) {
+ const value = string.charCodeAt(counter++);
+ if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
+ // It's a high surrogate, and there is a next character.
+ const extra = string.charCodeAt(counter++);
+ if ((extra & 0xFC00) == 0xDC00) { // Low surrogate.
+ output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
+ } else {
+ // It's an unmatched surrogate; only append this code unit, in case the
+ // next code unit is the high surrogate of a surrogate pair.
+ output.push(value);
+ counter--;
+ }
+ } else {
+ output.push(value);
+ }
+ }
+ return output;
+}
+
+/**
+ * Creates a string based on an array of numeric code points.
+ * @see `punycode.ucs2.decode`
+ * @memberOf punycode.ucs2
+ * @name encode
+ * @param {Array} codePoints The array of numeric code points.
+ * @returns {String} The new Unicode string (UCS-2).
+ */
+const ucs2encode = array => String.fromCodePoint(...array);
+
+/**
+ * Converts a basic code point into a digit/integer.
+ * @see `digitToBasic()`
+ * @private
+ * @param {Number} codePoint The basic numeric code point value.
+ * @returns {Number} The numeric value of a basic code point (for use in
+ * representing integers) in the range `0` to `base - 1`, or `base` if
+ * the code point does not represent a value.
+ */
+const basicToDigit = function(codePoint) {
+ if (codePoint - 0x30 < 0x0A) {
+ return codePoint - 0x16;
+ }
+ if (codePoint - 0x41 < 0x1A) {
+ return codePoint - 0x41;
+ }
+ if (codePoint - 0x61 < 0x1A) {
+ return codePoint - 0x61;
+ }
+ return base;
+};
+
+/**
+ * Converts a digit/integer into a basic code point.
+ * @see `basicToDigit()`
+ * @private
+ * @param {Number} digit The numeric value of a basic code point.
+ * @returns {Number} The basic code point whose value (when used for
+ * representing integers) is `digit`, which needs to be in the range
+ * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
+ * used; else, the lowercase form is used. The behavior is undefined
+ * if `flag` is non-zero and `digit` has no uppercase form.
+ */
+const digitToBasic = function(digit, flag) {
+ // 0..25 map to ASCII a..z or A..Z
+ // 26..35 map to ASCII 0..9
+ return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
+};
+
+/**
+ * Bias adaptation function as per section 3.4 of RFC 3492.
+ * https://tools.ietf.org/html/rfc3492#section-3.4
+ * @private
+ */
+const adapt = function(delta, numPoints, firstTime) {
+ let k = 0;
+ delta = firstTime ? floor(delta / damp) : delta >> 1;
+ delta += floor(delta / numPoints);
+ for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
+ delta = floor(delta / baseMinusTMin);
+ }
+ return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
+};
+
+/**
+ * Converts a Punycode string of ASCII-only symbols to a string of Unicode
+ * symbols.
+ * @memberOf punycode
+ * @param {String} input The Punycode string of ASCII-only symbols.
+ * @returns {String} The resulting string of Unicode symbols.
+ */
+const decode = function(input) {
+ // Don't use UCS-2.
+ const output = [];
+ const inputLength = input.length;
+ let i = 0;
+ let n = initialN;
+ let bias = initialBias;
+
+ // Handle the basic code points: let `basic` be the number of input code
+ // points before the last delimiter, or `0` if there is none, then copy
+ // the first basic code points to the output.
+
+ let basic = input.lastIndexOf(delimiter);
+ if (basic < 0) {
+ basic = 0;
+ }
+
+ for (let j = 0; j < basic; ++j) {
+ // if it's not a basic code point
+ if (input.charCodeAt(j) >= 0x80) {
+ error('not-basic');
+ }
+ output.push(input.charCodeAt(j));
+ }
+
+ // Main decoding loop: start just after the last delimiter if any basic code
+ // points were copied; start at the beginning otherwise.
+
+ for (let index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
+
+ // `index` is the index of the next character to be consumed.
+ // Decode a generalized variable-length integer into `delta`,
+ // which gets added to `i`. The overflow checking is easier
+ // if we increase `i` as we go, then subtract off its starting
+ // value at the end to obtain `delta`.
+ let oldi = i;
+ for (let w = 1, k = base; /* no condition */; k += base) {
+
+ if (index >= inputLength) {
+ error('invalid-input');
+ }
+
+ const digit = basicToDigit(input.charCodeAt(index++));
+
+ if (digit >= base || digit > floor((maxInt - i) / w)) {
+ error('overflow');
+ }
+
+ i += digit * w;
+ const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
+
+ if (digit < t) {
+ break;
+ }
+
+ const baseMinusT = base - t;
+ if (w > floor(maxInt / baseMinusT)) {
+ error('overflow');
+ }
+
+ w *= baseMinusT;
+
+ }
+
+ const out = output.length + 1;
+ bias = adapt(i - oldi, out, oldi == 0);
+
+ // `i` was supposed to wrap around from `out` to `0`,
+ // incrementing `n` each time, so we'll fix that now:
+ if (floor(i / out) > maxInt - n) {
+ error('overflow');
+ }
+
+ n += floor(i / out);
+ i %= out;
+
+ // Insert `n` at position `i` of the output.
+ output.splice(i++, 0, n);
+
+ }
+
+ return String.fromCodePoint(...output);
+};
+
+/**
+ * Converts a string of Unicode symbols (e.g. a domain name label) to a
+ * Punycode string of ASCII-only symbols.
+ * @memberOf punycode
+ * @param {String} input The string of Unicode symbols.
+ * @returns {String} The resulting Punycode string of ASCII-only symbols.
+ */
+const encode = function(input) {
+ const output = [];
+
+ // Convert the input in UCS-2 to an array of Unicode code points.
+ input = ucs2decode(input);
+
+ // Cache the length.
+ let inputLength = input.length;
+
+ // Initialize the state.
+ let n = initialN;
+ let delta = 0;
+ let bias = initialBias;
+
+ // Handle the basic code points.
+ for (const currentValue of input) {
+ if (currentValue < 0x80) {
+ output.push(stringFromCharCode(currentValue));
+ }
+ }
+
+ let basicLength = output.length;
+ let handledCPCount = basicLength;
+
+ // `handledCPCount` is the number of code points that have been handled;
+ // `basicLength` is the number of basic code points.
+
+ // Finish the basic string with a delimiter unless it's empty.
+ if (basicLength) {
+ output.push(delimiter);
+ }
+
+ // Main encoding loop:
+ while (handledCPCount < inputLength) {
+
+ // All non-basic code points < n have been handled already. Find the next
+ // larger one:
+ let m = maxInt;
+ for (const currentValue of input) {
+ if (currentValue >= n && currentValue < m) {
+ m = currentValue;
+ }
+ }
+
+ // Increase `delta` enough to advance the decoder's state to ,
+ // but guard against overflow.
+ const handledCPCountPlusOne = handledCPCount + 1;
+ if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
+ error('overflow');
+ }
+
+ delta += (m - n) * handledCPCountPlusOne;
+ n = m;
+
+ for (const currentValue of input) {
+ if (currentValue < n && ++delta > maxInt) {
+ error('overflow');
+ }
+ if (currentValue == n) {
+ // Represent delta as a generalized variable-length integer.
+ let q = delta;
+ for (let k = base; /* no condition */; k += base) {
+ const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
+ if (q < t) {
+ break;
+ }
+ const qMinusT = q - t;
+ const baseMinusT = base - t;
+ output.push(
+ stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
+ );
+ q = floor(qMinusT / baseMinusT);
+ }
+
+ output.push(stringFromCharCode(digitToBasic(q, 0)));
+ bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
+ delta = 0;
+ ++handledCPCount;
+ }
+ }
+
+ ++delta;
+ ++n;
+
+ }
+ return output.join('');
+};
+
+/**
+ * Converts a Punycode string representing a domain name or an email address
+ * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
+ * it doesn't matter if you call it on a string that has already been
+ * converted to Unicode.
+ * @memberOf punycode
+ * @param {String} input The Punycoded domain name or email address to
+ * convert to Unicode.
+ * @returns {String} The Unicode representation of the given Punycode
+ * string.
+ */
+const toUnicode = function(input) {
+ return mapDomain(input, function(string) {
+ return regexPunycode.test(string)
+ ? decode(string.slice(4).toLowerCase())
+ : string;
+ });
+};
+
+/**
+ * Converts a Unicode string representing a domain name or an email address to
+ * Punycode. Only the non-ASCII parts of the domain name will be converted,
+ * i.e. it doesn't matter if you call it with a domain that's already in
+ * ASCII.
+ * @memberOf punycode
+ * @param {String} input The domain name or email address to convert, as a
+ * Unicode string.
+ * @returns {String} The Punycode representation of the given domain name or
+ * email address.
+ */
+const toASCII = function(input) {
+ return mapDomain(input, function(string) {
+ return regexNonASCII.test(string)
+ ? 'xn--' + encode(string)
+ : string;
+ });
+};
+
+/*--------------------------------------------------------------------------*/
+
+/** Define the public API */
+const punycode = {
+ /**
+ * A string representing the current Punycode.js version number.
+ * @memberOf punycode
+ * @type String
+ */
+ 'version': '2.1.0',
+ /**
+ * An object of methods to convert from JavaScript's internal character
+ * representation (UCS-2) to Unicode code points, and back.
+ * @see
+ * @memberOf punycode
+ * @type Object
+ */
+ 'ucs2': {
+ 'decode': ucs2decode,
+ 'encode': ucs2encode
+ },
+ 'decode': decode,
+ 'encode': encode,
+ 'toASCII': toASCII,
+ 'toUnicode': toUnicode
+};
+
+export { ucs2decode, ucs2encode, decode, encode, toASCII, toUnicode };
+export default punycode;
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/punycode/punycode.js" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/punycode/punycode.js"
new file mode 100644
index 0000000000000000000000000000000000000000..ea61fd0d39a39d75e76ec3387908904bbb9d42e0
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/punycode/punycode.js"
@@ -0,0 +1,440 @@
+'use strict';
+
+/** Highest positive signed 32-bit float value */
+const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
+
+/** Bootstring parameters */
+const base = 36;
+const tMin = 1;
+const tMax = 26;
+const skew = 38;
+const damp = 700;
+const initialBias = 72;
+const initialN = 128; // 0x80
+const delimiter = '-'; // '\x2D'
+
+/** Regular expressions */
+const regexPunycode = /^xn--/;
+const regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars
+const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
+
+/** Error messages */
+const errors = {
+ 'overflow': 'Overflow: input needs wider integers to process',
+ 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
+ 'invalid-input': 'Invalid input'
+};
+
+/** Convenience shortcuts */
+const baseMinusTMin = base - tMin;
+const floor = Math.floor;
+const stringFromCharCode = String.fromCharCode;
+
+/*--------------------------------------------------------------------------*/
+
+/**
+ * A generic error utility function.
+ * @private
+ * @param {String} type The error type.
+ * @returns {Error} Throws a `RangeError` with the applicable error message.
+ */
+function error(type) {
+ throw new RangeError(errors[type]);
+}
+
+/**
+ * A generic `Array#map` utility function.
+ * @private
+ * @param {Array} array The array to iterate over.
+ * @param {Function} callback The function that gets called for every array
+ * item.
+ * @returns {Array} A new array of values returned by the callback function.
+ */
+function map(array, fn) {
+ const result = [];
+ let length = array.length;
+ while (length--) {
+ result[length] = fn(array[length]);
+ }
+ return result;
+}
+
+/**
+ * A simple `Array#map`-like wrapper to work with domain name strings or email
+ * addresses.
+ * @private
+ * @param {String} domain The domain name or email address.
+ * @param {Function} callback The function that gets called for every
+ * character.
+ * @returns {Array} A new string of characters returned by the callback
+ * function.
+ */
+function mapDomain(string, fn) {
+ const parts = string.split('@');
+ let result = '';
+ if (parts.length > 1) {
+ // In email addresses, only the domain name should be punycoded. Leave
+ // the local part (i.e. everything up to `@`) intact.
+ result = parts[0] + '@';
+ string = parts[1];
+ }
+ // Avoid `split(regex)` for IE8 compatibility. See #17.
+ string = string.replace(regexSeparators, '\x2E');
+ const labels = string.split('.');
+ const encoded = map(labels, fn).join('.');
+ return result + encoded;
+}
+
+/**
+ * Creates an array containing the numeric code points of each Unicode
+ * character in the string. While JavaScript uses UCS-2 internally,
+ * this function will convert a pair of surrogate halves (each of which
+ * UCS-2 exposes as separate characters) into a single code point,
+ * matching UTF-16.
+ * @see `punycode.ucs2.encode`
+ * @see
+ * @memberOf punycode.ucs2
+ * @name decode
+ * @param {String} string The Unicode input string (UCS-2).
+ * @returns {Array} The new array of code points.
+ */
+function ucs2decode(string) {
+ const output = [];
+ let counter = 0;
+ const length = string.length;
+ while (counter < length) {
+ const value = string.charCodeAt(counter++);
+ if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
+ // It's a high surrogate, and there is a next character.
+ const extra = string.charCodeAt(counter++);
+ if ((extra & 0xFC00) == 0xDC00) { // Low surrogate.
+ output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
+ } else {
+ // It's an unmatched surrogate; only append this code unit, in case the
+ // next code unit is the high surrogate of a surrogate pair.
+ output.push(value);
+ counter--;
+ }
+ } else {
+ output.push(value);
+ }
+ }
+ return output;
+}
+
+/**
+ * Creates a string based on an array of numeric code points.
+ * @see `punycode.ucs2.decode`
+ * @memberOf punycode.ucs2
+ * @name encode
+ * @param {Array} codePoints The array of numeric code points.
+ * @returns {String} The new Unicode string (UCS-2).
+ */
+const ucs2encode = array => String.fromCodePoint(...array);
+
+/**
+ * Converts a basic code point into a digit/integer.
+ * @see `digitToBasic()`
+ * @private
+ * @param {Number} codePoint The basic numeric code point value.
+ * @returns {Number} The numeric value of a basic code point (for use in
+ * representing integers) in the range `0` to `base - 1`, or `base` if
+ * the code point does not represent a value.
+ */
+const basicToDigit = function(codePoint) {
+ if (codePoint - 0x30 < 0x0A) {
+ return codePoint - 0x16;
+ }
+ if (codePoint - 0x41 < 0x1A) {
+ return codePoint - 0x41;
+ }
+ if (codePoint - 0x61 < 0x1A) {
+ return codePoint - 0x61;
+ }
+ return base;
+};
+
+/**
+ * Converts a digit/integer into a basic code point.
+ * @see `basicToDigit()`
+ * @private
+ * @param {Number} digit The numeric value of a basic code point.
+ * @returns {Number} The basic code point whose value (when used for
+ * representing integers) is `digit`, which needs to be in the range
+ * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
+ * used; else, the lowercase form is used. The behavior is undefined
+ * if `flag` is non-zero and `digit` has no uppercase form.
+ */
+const digitToBasic = function(digit, flag) {
+ // 0..25 map to ASCII a..z or A..Z
+ // 26..35 map to ASCII 0..9
+ return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
+};
+
+/**
+ * Bias adaptation function as per section 3.4 of RFC 3492.
+ * https://tools.ietf.org/html/rfc3492#section-3.4
+ * @private
+ */
+const adapt = function(delta, numPoints, firstTime) {
+ let k = 0;
+ delta = firstTime ? floor(delta / damp) : delta >> 1;
+ delta += floor(delta / numPoints);
+ for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
+ delta = floor(delta / baseMinusTMin);
+ }
+ return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
+};
+
+/**
+ * Converts a Punycode string of ASCII-only symbols to a string of Unicode
+ * symbols.
+ * @memberOf punycode
+ * @param {String} input The Punycode string of ASCII-only symbols.
+ * @returns {String} The resulting string of Unicode symbols.
+ */
+const decode = function(input) {
+ // Don't use UCS-2.
+ const output = [];
+ const inputLength = input.length;
+ let i = 0;
+ let n = initialN;
+ let bias = initialBias;
+
+ // Handle the basic code points: let `basic` be the number of input code
+ // points before the last delimiter, or `0` if there is none, then copy
+ // the first basic code points to the output.
+
+ let basic = input.lastIndexOf(delimiter);
+ if (basic < 0) {
+ basic = 0;
+ }
+
+ for (let j = 0; j < basic; ++j) {
+ // if it's not a basic code point
+ if (input.charCodeAt(j) >= 0x80) {
+ error('not-basic');
+ }
+ output.push(input.charCodeAt(j));
+ }
+
+ // Main decoding loop: start just after the last delimiter if any basic code
+ // points were copied; start at the beginning otherwise.
+
+ for (let index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
+
+ // `index` is the index of the next character to be consumed.
+ // Decode a generalized variable-length integer into `delta`,
+ // which gets added to `i`. The overflow checking is easier
+ // if we increase `i` as we go, then subtract off its starting
+ // value at the end to obtain `delta`.
+ let oldi = i;
+ for (let w = 1, k = base; /* no condition */; k += base) {
+
+ if (index >= inputLength) {
+ error('invalid-input');
+ }
+
+ const digit = basicToDigit(input.charCodeAt(index++));
+
+ if (digit >= base || digit > floor((maxInt - i) / w)) {
+ error('overflow');
+ }
+
+ i += digit * w;
+ const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
+
+ if (digit < t) {
+ break;
+ }
+
+ const baseMinusT = base - t;
+ if (w > floor(maxInt / baseMinusT)) {
+ error('overflow');
+ }
+
+ w *= baseMinusT;
+
+ }
+
+ const out = output.length + 1;
+ bias = adapt(i - oldi, out, oldi == 0);
+
+ // `i` was supposed to wrap around from `out` to `0`,
+ // incrementing `n` each time, so we'll fix that now:
+ if (floor(i / out) > maxInt - n) {
+ error('overflow');
+ }
+
+ n += floor(i / out);
+ i %= out;
+
+ // Insert `n` at position `i` of the output.
+ output.splice(i++, 0, n);
+
+ }
+
+ return String.fromCodePoint(...output);
+};
+
+/**
+ * Converts a string of Unicode symbols (e.g. a domain name label) to a
+ * Punycode string of ASCII-only symbols.
+ * @memberOf punycode
+ * @param {String} input The string of Unicode symbols.
+ * @returns {String} The resulting Punycode string of ASCII-only symbols.
+ */
+const encode = function(input) {
+ const output = [];
+
+ // Convert the input in UCS-2 to an array of Unicode code points.
+ input = ucs2decode(input);
+
+ // Cache the length.
+ let inputLength = input.length;
+
+ // Initialize the state.
+ let n = initialN;
+ let delta = 0;
+ let bias = initialBias;
+
+ // Handle the basic code points.
+ for (const currentValue of input) {
+ if (currentValue < 0x80) {
+ output.push(stringFromCharCode(currentValue));
+ }
+ }
+
+ let basicLength = output.length;
+ let handledCPCount = basicLength;
+
+ // `handledCPCount` is the number of code points that have been handled;
+ // `basicLength` is the number of basic code points.
+
+ // Finish the basic string with a delimiter unless it's empty.
+ if (basicLength) {
+ output.push(delimiter);
+ }
+
+ // Main encoding loop:
+ while (handledCPCount < inputLength) {
+
+ // All non-basic code points < n have been handled already. Find the next
+ // larger one:
+ let m = maxInt;
+ for (const currentValue of input) {
+ if (currentValue >= n && currentValue < m) {
+ m = currentValue;
+ }
+ }
+
+ // Increase `delta` enough to advance the decoder's state to ,
+ // but guard against overflow.
+ const handledCPCountPlusOne = handledCPCount + 1;
+ if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
+ error('overflow');
+ }
+
+ delta += (m - n) * handledCPCountPlusOne;
+ n = m;
+
+ for (const currentValue of input) {
+ if (currentValue < n && ++delta > maxInt) {
+ error('overflow');
+ }
+ if (currentValue == n) {
+ // Represent delta as a generalized variable-length integer.
+ let q = delta;
+ for (let k = base; /* no condition */; k += base) {
+ const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
+ if (q < t) {
+ break;
+ }
+ const qMinusT = q - t;
+ const baseMinusT = base - t;
+ output.push(
+ stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
+ );
+ q = floor(qMinusT / baseMinusT);
+ }
+
+ output.push(stringFromCharCode(digitToBasic(q, 0)));
+ bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
+ delta = 0;
+ ++handledCPCount;
+ }
+ }
+
+ ++delta;
+ ++n;
+
+ }
+ return output.join('');
+};
+
+/**
+ * Converts a Punycode string representing a domain name or an email address
+ * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
+ * it doesn't matter if you call it on a string that has already been
+ * converted to Unicode.
+ * @memberOf punycode
+ * @param {String} input The Punycoded domain name or email address to
+ * convert to Unicode.
+ * @returns {String} The Unicode representation of the given Punycode
+ * string.
+ */
+const toUnicode = function(input) {
+ return mapDomain(input, function(string) {
+ return regexPunycode.test(string)
+ ? decode(string.slice(4).toLowerCase())
+ : string;
+ });
+};
+
+/**
+ * Converts a Unicode string representing a domain name or an email address to
+ * Punycode. Only the non-ASCII parts of the domain name will be converted,
+ * i.e. it doesn't matter if you call it with a domain that's already in
+ * ASCII.
+ * @memberOf punycode
+ * @param {String} input The domain name or email address to convert, as a
+ * Unicode string.
+ * @returns {String} The Punycode representation of the given domain name or
+ * email address.
+ */
+const toASCII = function(input) {
+ return mapDomain(input, function(string) {
+ return regexNonASCII.test(string)
+ ? 'xn--' + encode(string)
+ : string;
+ });
+};
+
+/*--------------------------------------------------------------------------*/
+
+/** Define the public API */
+const punycode = {
+ /**
+ * A string representing the current Punycode.js version number.
+ * @memberOf punycode
+ * @type String
+ */
+ 'version': '2.1.0',
+ /**
+ * An object of methods to convert from JavaScript's internal character
+ * representation (UCS-2) to Unicode code points, and back.
+ * @see
+ * @memberOf punycode
+ * @type Object
+ */
+ 'ucs2': {
+ 'decode': ucs2decode,
+ 'encode': ucs2encode
+ },
+ 'decode': decode,
+ 'encode': encode,
+ 'toASCII': toASCII,
+ 'toUnicode': toUnicode
+};
+
+module.exports = punycode;
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/schema-utils/CHANGELOG.md" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/schema-utils/CHANGELOG.md"
new file mode 100644
index 0000000000000000000000000000000000000000..b4fe5bed3d0fa529d0b2f45893b102139992a940
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/schema-utils/CHANGELOG.md"
@@ -0,0 +1,295 @@
+# Changelog
+
+All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
+
+## [3.0.0](https://github.com/webpack/schema-utils/compare/v2.7.1...v3.0.0) (2020-10-05)
+
+
+### ⚠ BREAKING CHANGES
+
+* minimum supported `Node.js` version is `10.13.0`,
+* the packages exports was changed, please use `const { validate } = require('schema-utils');`
+* the `ValidateError` export was removed in favor the `ValidationError` export, please use `const { ValidationError } = require('schema-utils');`
+
+### [2.7.1](https://github.com/webpack/schema-utils/compare/v2.7.0...v2.7.1) (2020-08-31)
+
+
+### Bug Fixes
+
+* remove esModuleInterop from tsconfig ([#110](https://github.com/webpack/schema-utils/issues/110)) ([#111](https://github.com/webpack/schema-utils/issues/111)) ([2f40154](https://github.com/webpack/schema-utils/commit/2f40154b91e45b393258ae9dd8f10cc3b8590b7d))
+
+## [2.7.0](https://github.com/webpack/schema-utils/compare/v2.6.6...v2.7.0) (2020-05-29)
+
+
+### Features
+
+* improve hints ([a36e535](https://github.com/webpack/schema-utils/commit/a36e535faca1b01e27c3bfa3c8bee9227c3f836c))
+* smart not case ([#101](https://github.com/webpack/schema-utils/issues/101)) ([698d8b0](https://github.com/webpack/schema-utils/commit/698d8b05462d86aadb217e25a45c7b953a79a52e))
+
+
+### Bug Fixes
+
+* move @types/json-schema from devDependencies to dependencies ([#97](https://github.com/webpack/schema-utils/issues/97)) ([#98](https://github.com/webpack/schema-utils/issues/98)) ([945e67d](https://github.com/webpack/schema-utils/commit/945e67db5e19baf7ec7df72813b0739dd56f950d))
+
+### [2.6.6](https://github.com/webpack/schema-utils/compare/v2.6.5...v2.6.6) (2020-04-17)
+
+
+### Bug Fixes
+
+* improve perf
+
+### [2.6.5](https://github.com/webpack/schema-utils/compare/v2.6.4...v2.6.5) (2020-03-11)
+
+
+### Bug Fixes
+
+* correct dots at end of sentence ([7284beb](https://github.com/webpack/schema-utils/commit/7284bebe00cd570f1bef2c15951a07b9794038e6))
+
+### [2.6.4](https://github.com/webpack/schema-utils/compare/v2.6.3...v2.6.4) (2020-01-17)
+
+
+### Bug Fixes
+
+* change `initialised` to `initialized` ([#87](https://github.com/webpack/schema-utils/issues/87)) ([70f12d3](https://github.com/webpack/schema-utils/commit/70f12d33a8eaa27249bc9c1a27f886724cf91ea7))
+
+### [2.6.3](https://github.com/webpack/schema-utils/compare/v2.6.2...v2.6.3) (2020-01-17)
+
+
+### Bug Fixes
+
+* prefer the `baseDataPath` option from arguments ([#86](https://github.com/webpack/schema-utils/issues/86)) ([e236859](https://github.com/webpack/schema-utils/commit/e236859e85b28e35e1294f86fc1ff596a5031cea))
+
+### [2.6.2](https://github.com/webpack/schema-utils/compare/v2.6.1...v2.6.2) (2020-01-14)
+
+
+### Bug Fixes
+
+* better handle Windows absolute paths ([#85](https://github.com/webpack/schema-utils/issues/85)) ([1fa2930](https://github.com/webpack/schema-utils/commit/1fa2930a161e907b9fc53a7233d605910afdb883))
+
+### [2.6.1](https://github.com/webpack/schema-utils/compare/v2.6.0...v2.6.1) (2019-11-28)
+
+
+### Bug Fixes
+
+* typescript declarations ([#84](https://github.com/webpack/schema-utils/issues/84)) ([89d55a9](https://github.com/webpack/schema-utils/commit/89d55a9a8edfa6a8ac8b112f226bb3154e260319))
+
+## [2.6.0](https://github.com/webpack/schema-utils/compare/v2.5.0...v2.6.0) (2019-11-27)
+
+
+### Features
+
+* support configuration via title ([#81](https://github.com/webpack/schema-utils/issues/81)) ([afddc10](https://github.com/webpack/schema-utils/commit/afddc109f6891cd37a9f1835d50862d119a072bf))
+
+
+### Bug Fixes
+
+* typescript definitions ([#70](https://github.com/webpack/schema-utils/issues/70)) ([f38158d](https://github.com/webpack/schema-utils/commit/f38158d6d040e2c701622778ae8122fb26a4f990))
+
+## [2.5.0](https://github.com/webpack/schema-utils/compare/v2.4.1...v2.5.0) (2019-10-15)
+
+
+### Bug Fixes
+
+* rework format for maxLength, minLength ([#67](https://github.com/webpack/schema-utils/issues/67)) ([0d12259](https://github.com/webpack/schema-utils/commit/0d12259))
+* support all cases with one number in range ([#64](https://github.com/webpack/schema-utils/issues/64)) ([7fc8069](https://github.com/webpack/schema-utils/commit/7fc8069))
+* typescript definition and export naming ([#69](https://github.com/webpack/schema-utils/issues/69)) ([a435b79](https://github.com/webpack/schema-utils/commit/a435b79))
+
+
+### Features
+
+* "smart" numbers range ([62fb107](https://github.com/webpack/schema-utils/commit/62fb107))
+
+### [2.4.1](https://github.com/webpack/schema-utils/compare/v2.4.0...v2.4.1) (2019-09-27)
+
+
+### Bug Fixes
+
+* publish definitions ([#58](https://github.com/webpack/schema-utils/issues/58)) ([1885faa](https://github.com/webpack/schema-utils/commit/1885faa))
+
+## [2.4.0](https://github.com/webpack/schema-utils/compare/v2.3.0...v2.4.0) (2019-09-26)
+
+
+### Features
+
+* better errors when the `type` keyword doesn't exist ([0988be2](https://github.com/webpack/schema-utils/commit/0988be2))
+* support $data reference ([#56](https://github.com/webpack/schema-utils/issues/56)) ([d2f11d6](https://github.com/webpack/schema-utils/commit/d2f11d6))
+* types definitions ([#52](https://github.com/webpack/schema-utils/issues/52)) ([facb431](https://github.com/webpack/schema-utils/commit/facb431))
+
+## [2.3.0](https://github.com/webpack/schema-utils/compare/v2.2.0...v2.3.0) (2019-09-26)
+
+
+### Features
+
+* support `not` keyword ([#53](https://github.com/webpack/schema-utils/issues/53)) ([765f458](https://github.com/webpack/schema-utils/commit/765f458))
+
+## [2.2.0](https://github.com/webpack/schema-utils/compare/v2.1.0...v2.2.0) (2019-09-02)
+
+
+### Features
+
+* better error output for `oneOf` and `anyOf` ([#48](https://github.com/webpack/schema-utils/issues/48)) ([#50](https://github.com/webpack/schema-utils/issues/50)) ([332242f](https://github.com/webpack/schema-utils/commit/332242f))
+
+## [2.1.0](https://github.com/webpack-contrib/schema-utils/compare/v2.0.1...v2.1.0) (2019-08-07)
+
+
+### Bug Fixes
+
+* throw error on sparse arrays ([#47](https://github.com/webpack-contrib/schema-utils/issues/47)) ([b85ac38](https://github.com/webpack-contrib/schema-utils/commit/b85ac38))
+
+
+### Features
+
+* export `ValidateError` ([#46](https://github.com/webpack-contrib/schema-utils/issues/46)) ([ff781d7](https://github.com/webpack-contrib/schema-utils/commit/ff781d7))
+
+
+
+### [2.0.1](https://github.com/webpack-contrib/schema-utils/compare/v2.0.0...v2.0.1) (2019-07-18)
+
+
+### Bug Fixes
+
+* error message for empty object ([#44](https://github.com/webpack-contrib/schema-utils/issues/44)) ([0b4b4a2](https://github.com/webpack-contrib/schema-utils/commit/0b4b4a2))
+
+
+
+### [2.0.0](https://github.com/webpack-contrib/schema-utils/compare/v1.0.0...v2.0.0) (2019-07-17)
+
+
+### BREAKING CHANGES
+
+* drop support for Node.js < 8.9.0
+* drop support `errorMessage`, please use `description` for links.
+* api was changed, please look documentation.
+* error messages was fully rewritten.
+
+
+
+# [1.0.0](https://github.com/webpack-contrib/schema-utils/compare/v0.4.7...v1.0.0) (2018-08-07)
+
+
+### Features
+
+* **src:** add support for custom error messages ([#33](https://github.com/webpack-contrib/schema-utils/issues/33)) ([1cbe4ef](https://github.com/webpack-contrib/schema-utils/commit/1cbe4ef))
+
+
+
+
+## [0.4.7](https://github.com/webpack-contrib/schema-utils/compare/v0.4.6...v0.4.7) (2018-08-07)
+
+
+### Bug Fixes
+
+* **src:** `node >= v4.0.0` support ([#32](https://github.com/webpack-contrib/schema-utils/issues/32)) ([cb13dd4](https://github.com/webpack-contrib/schema-utils/commit/cb13dd4))
+
+
+
+
+## [0.4.6](https://github.com/webpack-contrib/schema-utils/compare/v0.4.5...v0.4.6) (2018-08-06)
+
+
+### Bug Fixes
+
+* **package:** remove lockfile ([#28](https://github.com/webpack-contrib/schema-utils/issues/28)) ([69f1a81](https://github.com/webpack-contrib/schema-utils/commit/69f1a81))
+* **package:** remove unnecessary `webpack` dependency ([#26](https://github.com/webpack-contrib/schema-utils/issues/26)) ([532eaa5](https://github.com/webpack-contrib/schema-utils/commit/532eaa5))
+
+
+
+
+## [0.4.5](https://github.com/webpack-contrib/schema-utils/compare/v0.4.4...v0.4.5) (2018-02-13)
+
+
+### Bug Fixes
+
+* **CHANGELOG:** update broken links ([4483b9f](https://github.com/webpack-contrib/schema-utils/commit/4483b9f))
+* **package:** update broken links ([f2494ba](https://github.com/webpack-contrib/schema-utils/commit/f2494ba))
+
+
+
+
+## [0.4.4](https://github.com/webpack-contrib/schema-utils/compare/v0.4.3...v0.4.4) (2018-02-13)
+
+
+### Bug Fixes
+
+* **package:** update `dependencies` ([#22](https://github.com/webpack-contrib/schema-utils/issues/22)) ([3aecac6](https://github.com/webpack-contrib/schema-utils/commit/3aecac6))
+
+
+
+
+## [0.4.3](https://github.com/webpack-contrib/schema-utils/compare/v0.4.2...v0.4.3) (2017-12-14)
+
+
+### Bug Fixes
+
+* **validateOptions:** throw `err` instead of `process.exit(1)` ([#17](https://github.com/webpack-contrib/schema-utils/issues/17)) ([c595eda](https://github.com/webpack-contrib/schema-utils/commit/c595eda))
+* **ValidationError:** never return `this` in the ctor ([#16](https://github.com/webpack-contrib/schema-utils/issues/16)) ([c723791](https://github.com/webpack-contrib/schema-utils/commit/c723791))
+
+
+
+
+## [0.4.2](https://github.com/webpack-contrib/schema-utils/compare/v0.4.1...v0.4.2) (2017-11-09)
+
+
+### Bug Fixes
+
+* **validateOptions:** catch `ValidationError` and handle it internally ([#15](https://github.com/webpack-contrib/schema-utils/issues/15)) ([9c5ef5e](https://github.com/webpack-contrib/schema-utils/commit/9c5ef5e))
+
+
+
+
+## [0.4.1](https://github.com/webpack-contrib/schema-utils/compare/v0.4.0...v0.4.1) (2017-11-03)
+
+
+### Bug Fixes
+
+* **ValidationError:** use `Error.captureStackTrace` for `err.stack` handling ([#14](https://github.com/webpack-contrib/schema-utils/issues/14)) ([a6fb974](https://github.com/webpack-contrib/schema-utils/commit/a6fb974))
+
+
+
+
+# [0.4.0](https://github.com/webpack-contrib/schema-utils/compare/v0.3.0...v0.4.0) (2017-10-28)
+
+
+### Features
+
+* add support for `typeof`, `instanceof` (`{Function\|RegExp}`) ([#10](https://github.com/webpack-contrib/schema-utils/issues/10)) ([9f01816](https://github.com/webpack-contrib/schema-utils/commit/9f01816))
+
+
+
+
+# [0.3.0](https://github.com/webpack-contrib/schema-utils/compare/v0.2.1...v0.3.0) (2017-04-29)
+
+
+### Features
+
+* add ValidationError ([#8](https://github.com/webpack-contrib/schema-utils/issues/8)) ([d48f0fb](https://github.com/webpack-contrib/schema-utils/commit/d48f0fb))
+
+
+
+
+## [0.2.1](https://github.com/webpack-contrib/schema-utils/compare/v0.2.0...v0.2.1) (2017-03-13)
+
+
+### Bug Fixes
+
+* Include .babelrc to `files` ([28f0363](https://github.com/webpack-contrib/schema-utils/commit/28f0363))
+* Include source to `files` ([43b0f2f](https://github.com/webpack-contrib/schema-utils/commit/43b0f2f))
+
+
+
+
+# [0.2.0](https://github.com/webpack-contrib/schema-utils/compare/v0.1.0...v0.2.0) (2017-03-12)
+
+
+# 0.1.0 (2017-03-07)
+
+
+### Features
+
+* **validations:** add validateOptions module ([ae9b47b](https://github.com/webpack-contrib/schema-utils/commit/ae9b47b))
+
+
+
+# Change Log
+
+All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/schema-utils/LICENSE" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/schema-utils/LICENSE"
new file mode 100644
index 0000000000000000000000000000000000000000..8c11fc7289b75463fe07534fcc8224e333feb7ff
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/schema-utils/LICENSE"
@@ -0,0 +1,20 @@
+Copyright JS Foundation and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/schema-utils/README.md" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/schema-utils/README.md"
new file mode 100644
index 0000000000000000000000000000000000000000..d9881063351641ab8ba1ccd4e43e2e9f8c795199
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/schema-utils/README.md"
@@ -0,0 +1,290 @@
+
+
+[![npm][npm]][npm-url]
+[![node][node]][node-url]
+[![deps][deps]][deps-url]
+[![tests][tests]][tests-url]
+[![coverage][cover]][cover-url]
+[![chat][chat]][chat-url]
+[![size][size]][size-url]
+
+# schema-utils
+
+Package for validate options in loaders and plugins.
+
+## Getting Started
+
+To begin, you'll need to install `schema-utils`:
+
+```console
+npm install schema-utils
+```
+
+## API
+
+**schema.json**
+
+```json
+{
+ "type": "object",
+ "properties": {
+ "option": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false
+}
+```
+
+```js
+import schema from './path/to/schema.json';
+import { validate } from 'schema-utils';
+
+const options = { option: true };
+const configuration = { name: 'Loader Name/Plugin Name/Name' };
+
+validate(schema, options, configuration);
+```
+
+### `schema`
+
+Type: `String`
+
+JSON schema.
+
+Simple example of schema:
+
+```json
+{
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "This is description of option.",
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+}
+```
+
+### `options`
+
+Type: `Object`
+
+Object with options.
+
+```js
+import schema from './path/to/schema.json';
+import { validate } from 'schema-utils';
+
+const options = { foo: 'bar' };
+
+validate(schema, { name: 123 }, { name: 'MyPlugin' });
+```
+
+### `configuration`
+
+Allow to configure validator.
+
+There is an alternative method to configure the `name` and`baseDataPath` options via the `title` property in the schema.
+For example:
+
+```json
+{
+ "title": "My Loader options",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "This is description of option.",
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+}
+```
+
+The last word used for the `baseDataPath` option, other words used for the `name` option.
+Based on the example above the `name` option equals `My Loader`, the `baseDataPath` option equals `options`.
+
+#### `name`
+
+Type: `Object`
+Default: `"Object"`
+
+Allow to setup name in validation errors.
+
+```js
+import schema from './path/to/schema.json';
+import { validate } from 'schema-utils';
+
+const options = { foo: 'bar' };
+
+validate(schema, options, { name: 'MyPlugin' });
+```
+
+```shell
+Invalid configuration object. MyPlugin has been initialised using a configuration object that does not match the API schema.
+ - configuration.optionName should be a integer.
+```
+
+#### `baseDataPath`
+
+Type: `String`
+Default: `"configuration"`
+
+Allow to setup base data path in validation errors.
+
+```js
+import schema from './path/to/schema.json';
+import { validate } from 'schema-utils';
+
+const options = { foo: 'bar' };
+
+validate(schema, options, { name: 'MyPlugin', baseDataPath: 'options' });
+```
+
+```shell
+Invalid options object. MyPlugin has been initialised using an options object that does not match the API schema.
+ - options.optionName should be a integer.
+```
+
+#### `postFormatter`
+
+Type: `Function`
+Default: `undefined`
+
+Allow to reformat errors.
+
+```js
+import schema from './path/to/schema.json';
+import { validate } from 'schema-utils';
+
+const options = { foo: 'bar' };
+
+validate(schema, options, {
+ name: 'MyPlugin',
+ postFormatter: (formattedError, error) => {
+ if (error.keyword === 'type') {
+ return `${formattedError}\nAdditional Information.`;
+ }
+
+ return formattedError;
+ },
+});
+```
+
+```shell
+Invalid options object. MyPlugin has been initialized using an options object that does not match the API schema.
+ - options.optionName should be a integer.
+ Additional Information.
+```
+
+## Examples
+
+**schema.json**
+
+```json
+{
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "test": {
+ "anyOf": [
+ { "type": "array" },
+ { "type": "string" },
+ { "instanceof": "RegExp" }
+ ]
+ },
+ "transform": {
+ "instanceof": "Function"
+ },
+ "sourceMap": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false
+}
+```
+
+### `Loader`
+
+```js
+import { getOptions } from 'loader-utils';
+import { validate } from 'schema-utils';
+
+import schema from 'path/to/schema.json';
+
+function loader(src, map) {
+ const options = getOptions(this);
+
+ validate(schema, options, {
+ name: 'Loader Name',
+ baseDataPath: 'options',
+ });
+
+ // Code...
+}
+
+export default loader;
+```
+
+### `Plugin`
+
+```js
+import { validate } from 'schema-utils';
+
+import schema from 'path/to/schema.json';
+
+class Plugin {
+ constructor(options) {
+ validate(schema, options, {
+ name: 'Plugin Name',
+ baseDataPath: 'options',
+ });
+
+ this.options = options;
+ }
+
+ apply(compiler) {
+ // Code...
+ }
+}
+
+export default Plugin;
+```
+
+## Contributing
+
+Please take a moment to read our contributing guidelines if you haven't yet done so.
+
+[CONTRIBUTING](./.github/CONTRIBUTING.md)
+
+## License
+
+[MIT](./LICENSE)
+
+[npm]: https://img.shields.io/npm/v/schema-utils.svg
+[npm-url]: https://npmjs.com/package/schema-utils
+[node]: https://img.shields.io/node/v/schema-utils.svg
+[node-url]: https://nodejs.org
+[deps]: https://david-dm.org/webpack/schema-utils.svg
+[deps-url]: https://david-dm.org/webpack/schema-utils
+[tests]: https://github.com/webpack/schema-utils/workflows/schema-utils/badge.svg
+[tests-url]: https://github.com/webpack/schema-utils/actions
+[cover]: https://codecov.io/gh/webpack/schema-utils/branch/master/graph/badge.svg
+[cover-url]: https://codecov.io/gh/webpack/schema-utils
+[chat]: https://badges.gitter.im/webpack/webpack.svg
+[chat-url]: https://gitter.im/webpack/webpack
+[size]: https://packagephobia.com/badge?p=schema-utils
+[size-url]: https://packagephobia.com/result?p=schema-utils
diff --git "a/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/schema-utils/declarations/ValidationError.d.ts" "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/schema-utils/declarations/ValidationError.d.ts"
new file mode 100644
index 0000000000000000000000000000000000000000..1b53f70fe1e3852334484ed6ac01089b585ccf42
--- /dev/null
+++ "b/\346\236\227\347\217\212\347\217\212/2021.7.1/node_modules/schema-utils/declarations/ValidationError.d.ts"
@@ -0,0 +1,88 @@
+export default ValidationError;
+export type JSONSchema6 = import('json-schema').JSONSchema6;
+export type JSONSchema7 = import('json-schema').JSONSchema7;
+export type Schema =
+ | (import('json-schema').JSONSchema4 & import('./validate').Extend)
+ | (import('json-schema').JSONSchema6 & import('./validate').Extend)
+ | (import('json-schema').JSONSchema7 & import('./validate').Extend);
+export type ValidationErrorConfiguration = {
+ name?: string | undefined;
+ baseDataPath?: string | undefined;
+ postFormatter?: import('./validate').PostFormatter | undefined;
+};
+export type PostFormatter = (
+ formattedError: string,
+ error: import('ajv').ErrorObject & {
+ children?: import('ajv').ErrorObject[] | undefined;
+ }
+) => string;
+export type SchemaUtilErrorObject = import('ajv').ErrorObject & {
+ children?: import('ajv').ErrorObject[] | undefined;
+};
+export type SPECIFICITY = number;
+declare class ValidationError extends Error {
+ /**
+ * @param {Array} errors
+ * @param {Schema} schema
+ * @param {ValidationErrorConfiguration} configuration
+ */
+ constructor(
+ errors: Array,
+ schema: Schema,
+ configuration?: ValidationErrorConfiguration
+ );
+ /** @type {Array} */
+ errors: Array;
+ /** @type {Schema} */
+ schema: Schema;
+ /** @type {string} */
+ headerName: string;
+ /** @type {string} */
+ baseDataPath: string;
+ /** @type {PostFormatter | null} */
+ postFormatter: PostFormatter | null;
+ /**
+ * @param {string} path
+ * @returns {Schema}
+ */
+ getSchemaPart(path: string): Schema;
+ /**
+ * @param {Schema} schema
+ * @param {boolean} logic
+ * @param {Array