@react-email/tailwind 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index.js → index.cjs} +373 -310
- package/dist/{index.d.ts → index.d.cts} +1 -1
- package/dist/index.d.cts.map +1 -0
- package/dist/index.mjs +340 -287
- package/dist/index.mjs.map +1 -1
- package/package.json +28 -27
- package/dist/index.d.ts.map +0 -1
|
@@ -5,24 +5,31 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
var __export = (all) => {
|
|
8
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
|
+
var __exportAll = (all, symbols) => {
|
|
12
10
|
let target = {};
|
|
13
|
-
for (var name$49 in all)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
for (var name$49 in all) {
|
|
12
|
+
__defProp(target, name$49, {
|
|
13
|
+
get: all[name$49],
|
|
14
|
+
enumerable: true
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
if (symbols) {
|
|
18
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
19
|
+
}
|
|
17
20
|
return target;
|
|
18
21
|
};
|
|
19
22
|
var __copyProps = (to, from, except, desc) => {
|
|
20
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
24
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
25
|
+
key = keys[i];
|
|
26
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
27
|
+
__defProp(to, key, {
|
|
28
|
+
get: ((k) => from[k]).bind(null, key),
|
|
29
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
26
33
|
}
|
|
27
34
|
return to;
|
|
28
35
|
};
|
|
@@ -34,35 +41,22 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
41
|
//#endregion
|
|
35
42
|
let react = require("react");
|
|
36
43
|
react = __toESM(react);
|
|
37
|
-
let
|
|
38
|
-
|
|
39
|
-
let
|
|
40
|
-
|
|
41
|
-
let
|
|
42
|
-
|
|
43
|
-
let
|
|
44
|
-
|
|
45
|
-
let
|
|
46
|
-
|
|
47
|
-
let
|
|
48
|
-
__react_email_heading = __toESM(__react_email_heading);
|
|
49
|
-
let __react_email_hr = require("@react-email/hr");
|
|
50
|
-
__react_email_hr = __toESM(__react_email_hr);
|
|
51
|
-
let __react_email_img = require("@react-email/img");
|
|
52
|
-
__react_email_img = __toESM(__react_email_img);
|
|
53
|
-
let __react_email_link = require("@react-email/link");
|
|
54
|
-
__react_email_link = __toESM(__react_email_link);
|
|
55
|
-
let __react_email_preview = require("@react-email/preview");
|
|
56
|
-
__react_email_preview = __toESM(__react_email_preview);
|
|
57
|
-
let __react_email_text = require("@react-email/text");
|
|
58
|
-
__react_email_text = __toESM(__react_email_text);
|
|
44
|
+
let _react_email_body = require("@react-email/body");
|
|
45
|
+
let _react_email_button = require("@react-email/button");
|
|
46
|
+
let _react_email_code_block = require("@react-email/code-block");
|
|
47
|
+
let _react_email_code_inline = require("@react-email/code-inline");
|
|
48
|
+
let _react_email_container = require("@react-email/container");
|
|
49
|
+
let _react_email_heading = require("@react-email/heading");
|
|
50
|
+
let _react_email_hr = require("@react-email/hr");
|
|
51
|
+
let _react_email_img = require("@react-email/img");
|
|
52
|
+
let _react_email_link = require("@react-email/link");
|
|
53
|
+
let _react_email_preview = require("@react-email/preview");
|
|
54
|
+
let _react_email_text = require("@react-email/text");
|
|
59
55
|
let tailwindcss = require("tailwindcss");
|
|
60
|
-
tailwindcss = __toESM(tailwindcss);
|
|
61
56
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
62
|
-
react_jsx_runtime = __toESM(react_jsx_runtime);
|
|
63
57
|
|
|
64
58
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/tokenizer/types.js
|
|
65
|
-
const EOF = 0;
|
|
59
|
+
const EOF$1 = 0;
|
|
66
60
|
const Ident = 1;
|
|
67
61
|
const Function = 2;
|
|
68
62
|
const AtKeyword = 3;
|
|
@@ -91,7 +85,7 @@ const Comment = 25;
|
|
|
91
85
|
|
|
92
86
|
//#endregion
|
|
93
87
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/tokenizer/char-code-definitions.js
|
|
94
|
-
const EOF
|
|
88
|
+
const EOF = 0;
|
|
95
89
|
function isDigit(code$1) {
|
|
96
90
|
return code$1 >= 48 && code$1 <= 57;
|
|
97
91
|
}
|
|
@@ -127,7 +121,7 @@ function isWhiteSpace(code$1) {
|
|
|
127
121
|
}
|
|
128
122
|
function isValidEscape(first, second) {
|
|
129
123
|
if (first !== 92) return false;
|
|
130
|
-
if (isNewline(second) || second === EOF
|
|
124
|
+
if (isNewline(second) || second === EOF) return false;
|
|
131
125
|
return true;
|
|
132
126
|
}
|
|
133
127
|
function isIdentifierStart(first, second, third) {
|
|
@@ -421,7 +415,7 @@ var TokenStream = class {
|
|
|
421
415
|
balanceCloseType = balancePair$1[type];
|
|
422
416
|
}
|
|
423
417
|
});
|
|
424
|
-
offsetAndType[tokenCount] = EOF << TYPE_SHIFT | sourceLength;
|
|
418
|
+
offsetAndType[tokenCount] = EOF$1 << TYPE_SHIFT | sourceLength;
|
|
425
419
|
balance[tokenCount] = tokenCount;
|
|
426
420
|
for (let i = 0; i < tokenCount; i++) {
|
|
427
421
|
const balanceStart$1 = balance[i];
|
|
@@ -441,7 +435,7 @@ var TokenStream = class {
|
|
|
441
435
|
lookupType(offset) {
|
|
442
436
|
offset += this.tokenIndex;
|
|
443
437
|
if (offset < this.tokenCount) return this.offsetAndType[offset] >> TYPE_SHIFT;
|
|
444
|
-
return EOF;
|
|
438
|
+
return EOF$1;
|
|
445
439
|
}
|
|
446
440
|
lookupTypeNonSC(idx) {
|
|
447
441
|
for (let offset = this.tokenIndex; offset < this.tokenCount; offset++) {
|
|
@@ -450,7 +444,7 @@ var TokenStream = class {
|
|
|
450
444
|
if (idx-- === 0) return tokenType$1;
|
|
451
445
|
}
|
|
452
446
|
}
|
|
453
|
-
return EOF;
|
|
447
|
+
return EOF$1;
|
|
454
448
|
}
|
|
455
449
|
lookupOffset(offset) {
|
|
456
450
|
offset += this.tokenIndex;
|
|
@@ -464,7 +458,7 @@ var TokenStream = class {
|
|
|
464
458
|
if (idx-- === 0) return offset - this.tokenIndex;
|
|
465
459
|
}
|
|
466
460
|
}
|
|
467
|
-
return EOF;
|
|
461
|
+
return EOF$1;
|
|
468
462
|
}
|
|
469
463
|
lookupValue(offset, referenceStr) {
|
|
470
464
|
offset += this.tokenIndex;
|
|
@@ -510,7 +504,7 @@ var TokenStream = class {
|
|
|
510
504
|
} else {
|
|
511
505
|
this.eof = true;
|
|
512
506
|
this.tokenIndex = this.tokenCount;
|
|
513
|
-
this.tokenType = EOF;
|
|
507
|
+
this.tokenType = EOF$1;
|
|
514
508
|
this.tokenStart = this.tokenEnd = this.source.length;
|
|
515
509
|
}
|
|
516
510
|
}
|
|
@@ -1399,7 +1393,7 @@ function createParser(config) {
|
|
|
1399
1393
|
|
|
1400
1394
|
//#endregion
|
|
1401
1395
|
//#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.js
|
|
1402
|
-
var require_base64 = /* @__PURE__ */
|
|
1396
|
+
var require_base64 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1403
1397
|
var intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
|
|
1404
1398
|
/**
|
|
1405
1399
|
* Encode an integer in the range of 0 to 63 to a single base 64 digit.
|
|
@@ -1430,11 +1424,11 @@ var require_base64 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/sour
|
|
|
1430
1424
|
if (charCode == slash) return 63;
|
|
1431
1425
|
return -1;
|
|
1432
1426
|
};
|
|
1433
|
-
})
|
|
1427
|
+
}));
|
|
1434
1428
|
|
|
1435
1429
|
//#endregion
|
|
1436
1430
|
//#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.js
|
|
1437
|
-
var require_base64_vlq = /* @__PURE__ */
|
|
1431
|
+
var require_base64_vlq = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1438
1432
|
var base64 = require_base64();
|
|
1439
1433
|
var VLQ_BASE_SHIFT = 5;
|
|
1440
1434
|
var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
|
|
@@ -1496,11 +1490,11 @@ var require_base64_vlq = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
1496
1490
|
aOutParam.value = fromVLQSigned(result);
|
|
1497
1491
|
aOutParam.rest = aIndex;
|
|
1498
1492
|
};
|
|
1499
|
-
})
|
|
1493
|
+
}));
|
|
1500
1494
|
|
|
1501
1495
|
//#endregion
|
|
1502
1496
|
//#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js
|
|
1503
|
-
var require_util = /* @__PURE__ */
|
|
1497
|
+
var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1504
1498
|
/**
|
|
1505
1499
|
* This is a helper function for getting values from parameter/options
|
|
1506
1500
|
* objects.
|
|
@@ -1579,7 +1573,7 @@ var require_util = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/source
|
|
|
1579
1573
|
*
|
|
1580
1574
|
* @param aPath The path or url to normalize.
|
|
1581
1575
|
*/
|
|
1582
|
-
var normalize = lruMemoize(function normalize
|
|
1576
|
+
var normalize = lruMemoize(function normalize(aPath) {
|
|
1583
1577
|
var path = aPath;
|
|
1584
1578
|
var url = urlParse(aPath);
|
|
1585
1579
|
if (url) {
|
|
@@ -1842,12 +1836,12 @@ var require_util = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/source
|
|
|
1842
1836
|
return normalize(sourceURL);
|
|
1843
1837
|
}
|
|
1844
1838
|
exports.computeSourceURL = computeSourceURL;
|
|
1845
|
-
})
|
|
1839
|
+
}));
|
|
1846
1840
|
|
|
1847
1841
|
//#endregion
|
|
1848
1842
|
//#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.js
|
|
1849
|
-
var require_array_set = /* @__PURE__ */
|
|
1850
|
-
var util
|
|
1843
|
+
var require_array_set = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1844
|
+
var util = require_util();
|
|
1851
1845
|
var has = Object.prototype.hasOwnProperty;
|
|
1852
1846
|
var hasNativeMap = typeof Map !== "undefined";
|
|
1853
1847
|
/**
|
|
@@ -1856,15 +1850,15 @@ var require_array_set = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/s
|
|
|
1856
1850
|
* element is O(1). Removing elements from the set is not supported. Only
|
|
1857
1851
|
* strings are supported for membership.
|
|
1858
1852
|
*/
|
|
1859
|
-
function ArraySet
|
|
1853
|
+
function ArraySet() {
|
|
1860
1854
|
this._array = [];
|
|
1861
1855
|
this._set = hasNativeMap ? /* @__PURE__ */ new Map() : Object.create(null);
|
|
1862
1856
|
}
|
|
1863
1857
|
/**
|
|
1864
1858
|
* Static method for creating ArraySet instances from an existing array.
|
|
1865
1859
|
*/
|
|
1866
|
-
ArraySet
|
|
1867
|
-
var set = new ArraySet
|
|
1860
|
+
ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
|
|
1861
|
+
var set = new ArraySet();
|
|
1868
1862
|
for (var i = 0, len = aArray.length; i < len; i++) set.add(aArray[i], aAllowDuplicates);
|
|
1869
1863
|
return set;
|
|
1870
1864
|
};
|
|
@@ -1874,7 +1868,7 @@ var require_array_set = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/s
|
|
|
1874
1868
|
*
|
|
1875
1869
|
* @returns Number
|
|
1876
1870
|
*/
|
|
1877
|
-
ArraySet
|
|
1871
|
+
ArraySet.prototype.size = function ArraySet_size() {
|
|
1878
1872
|
return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;
|
|
1879
1873
|
};
|
|
1880
1874
|
/**
|
|
@@ -1882,8 +1876,8 @@ var require_array_set = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/s
|
|
|
1882
1876
|
*
|
|
1883
1877
|
* @param String aStr
|
|
1884
1878
|
*/
|
|
1885
|
-
ArraySet
|
|
1886
|
-
var sStr = hasNativeMap ? aStr : util
|
|
1879
|
+
ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {
|
|
1880
|
+
var sStr = hasNativeMap ? aStr : util.toSetString(aStr);
|
|
1887
1881
|
var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);
|
|
1888
1882
|
var idx = this._array.length;
|
|
1889
1883
|
if (!isDuplicate || aAllowDuplicates) this._array.push(aStr);
|
|
@@ -1895,10 +1889,10 @@ var require_array_set = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/s
|
|
|
1895
1889
|
*
|
|
1896
1890
|
* @param String aStr
|
|
1897
1891
|
*/
|
|
1898
|
-
ArraySet
|
|
1892
|
+
ArraySet.prototype.has = function ArraySet_has(aStr) {
|
|
1899
1893
|
if (hasNativeMap) return this._set.has(aStr);
|
|
1900
1894
|
else {
|
|
1901
|
-
var sStr = util
|
|
1895
|
+
var sStr = util.toSetString(aStr);
|
|
1902
1896
|
return has.call(this._set, sStr);
|
|
1903
1897
|
}
|
|
1904
1898
|
};
|
|
@@ -1907,12 +1901,12 @@ var require_array_set = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/s
|
|
|
1907
1901
|
*
|
|
1908
1902
|
* @param String aStr
|
|
1909
1903
|
*/
|
|
1910
|
-
ArraySet
|
|
1904
|
+
ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {
|
|
1911
1905
|
if (hasNativeMap) {
|
|
1912
1906
|
var idx = this._set.get(aStr);
|
|
1913
1907
|
if (idx >= 0) return idx;
|
|
1914
1908
|
} else {
|
|
1915
|
-
var sStr = util
|
|
1909
|
+
var sStr = util.toSetString(aStr);
|
|
1916
1910
|
if (has.call(this._set, sStr)) return this._set[sStr];
|
|
1917
1911
|
}
|
|
1918
1912
|
throw new Error("\"" + aStr + "\" is not in the set.");
|
|
@@ -1922,7 +1916,7 @@ var require_array_set = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/s
|
|
|
1922
1916
|
*
|
|
1923
1917
|
* @param Number aIdx
|
|
1924
1918
|
*/
|
|
1925
|
-
ArraySet
|
|
1919
|
+
ArraySet.prototype.at = function ArraySet_at(aIdx) {
|
|
1926
1920
|
if (aIdx >= 0 && aIdx < this._array.length) return this._array[aIdx];
|
|
1927
1921
|
throw new Error("No element indexed by " + aIdx);
|
|
1928
1922
|
};
|
|
@@ -1931,16 +1925,16 @@ var require_array_set = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/s
|
|
|
1931
1925
|
* indicated by indexOf). Note that this is a copy of the internal array used
|
|
1932
1926
|
* for storing the members so that no one can mess with internal state.
|
|
1933
1927
|
*/
|
|
1934
|
-
ArraySet
|
|
1928
|
+
ArraySet.prototype.toArray = function ArraySet_toArray() {
|
|
1935
1929
|
return this._array.slice();
|
|
1936
1930
|
};
|
|
1937
|
-
exports.ArraySet = ArraySet
|
|
1938
|
-
})
|
|
1931
|
+
exports.ArraySet = ArraySet;
|
|
1932
|
+
}));
|
|
1939
1933
|
|
|
1940
1934
|
//#endregion
|
|
1941
1935
|
//#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.js
|
|
1942
|
-
var require_mapping_list = /* @__PURE__ */
|
|
1943
|
-
var util
|
|
1936
|
+
var require_mapping_list = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1937
|
+
var util = require_util();
|
|
1944
1938
|
/**
|
|
1945
1939
|
* Determine whether mappingB is after mappingA with respect to generated
|
|
1946
1940
|
* position.
|
|
@@ -1950,14 +1944,14 @@ var require_mapping_list = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
1950
1944
|
var lineB = mappingB.generatedLine;
|
|
1951
1945
|
var columnA = mappingA.generatedColumn;
|
|
1952
1946
|
var columnB = mappingB.generatedColumn;
|
|
1953
|
-
return lineB > lineA || lineB == lineA && columnB >= columnA || util
|
|
1947
|
+
return lineB > lineA || lineB == lineA && columnB >= columnA || util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;
|
|
1954
1948
|
}
|
|
1955
1949
|
/**
|
|
1956
1950
|
* A data structure to provide a sorted view of accumulated mappings in a
|
|
1957
1951
|
* performance conscious manner. It trades a neglibable overhead in general
|
|
1958
1952
|
* case for a large speedup in case of mappings being added in order.
|
|
1959
1953
|
*/
|
|
1960
|
-
function MappingList
|
|
1954
|
+
function MappingList() {
|
|
1961
1955
|
this._array = [];
|
|
1962
1956
|
this._sorted = true;
|
|
1963
1957
|
this._last = {
|
|
@@ -1971,7 +1965,7 @@ var require_mapping_list = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
1971
1965
|
*
|
|
1972
1966
|
* NOTE: The order of the mappings is NOT guaranteed.
|
|
1973
1967
|
*/
|
|
1974
|
-
MappingList
|
|
1968
|
+
MappingList.prototype.unsortedForEach = function MappingList_forEach(aCallback, aThisArg) {
|
|
1975
1969
|
this._array.forEach(aCallback, aThisArg);
|
|
1976
1970
|
};
|
|
1977
1971
|
/**
|
|
@@ -1979,7 +1973,7 @@ var require_mapping_list = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
1979
1973
|
*
|
|
1980
1974
|
* @param Object aMapping
|
|
1981
1975
|
*/
|
|
1982
|
-
MappingList
|
|
1976
|
+
MappingList.prototype.add = function MappingList_add(aMapping) {
|
|
1983
1977
|
if (generatedPositionAfter(this._last, aMapping)) {
|
|
1984
1978
|
this._last = aMapping;
|
|
1985
1979
|
this._array.push(aMapping);
|
|
@@ -1997,19 +1991,19 @@ var require_mapping_list = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
1997
1991
|
* an immutable borrow. If you want to take ownership, you must make your own
|
|
1998
1992
|
* copy.
|
|
1999
1993
|
*/
|
|
2000
|
-
MappingList
|
|
1994
|
+
MappingList.prototype.toArray = function MappingList_toArray() {
|
|
2001
1995
|
if (!this._sorted) {
|
|
2002
|
-
this._array.sort(util
|
|
1996
|
+
this._array.sort(util.compareByGeneratedPositionsInflated);
|
|
2003
1997
|
this._sorted = true;
|
|
2004
1998
|
}
|
|
2005
1999
|
return this._array;
|
|
2006
2000
|
};
|
|
2007
|
-
exports.MappingList = MappingList
|
|
2008
|
-
})
|
|
2001
|
+
exports.MappingList = MappingList;
|
|
2002
|
+
}));
|
|
2009
2003
|
|
|
2010
2004
|
//#endregion
|
|
2011
2005
|
//#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.js
|
|
2012
|
-
var require_source_map_generator = /* @__PURE__ */
|
|
2006
|
+
var require_source_map_generator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2013
2007
|
var base64VLQ = require_base64_vlq();
|
|
2014
2008
|
var util = require_util();
|
|
2015
2009
|
var ArraySet = require_array_set().ArraySet;
|
|
@@ -2022,7 +2016,7 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
2022
2016
|
* - file: The filename of the generated source.
|
|
2023
2017
|
* - sourceRoot: A root for all relative URLs in this source map.
|
|
2024
2018
|
*/
|
|
2025
|
-
function SourceMapGenerator
|
|
2019
|
+
function SourceMapGenerator(aArgs) {
|
|
2026
2020
|
if (!aArgs) aArgs = {};
|
|
2027
2021
|
this._file = util.getArg(aArgs, "file", null);
|
|
2028
2022
|
this._sourceRoot = util.getArg(aArgs, "sourceRoot", null);
|
|
@@ -2033,15 +2027,15 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
2033
2027
|
this._mappings = new MappingList();
|
|
2034
2028
|
this._sourcesContents = null;
|
|
2035
2029
|
}
|
|
2036
|
-
SourceMapGenerator
|
|
2030
|
+
SourceMapGenerator.prototype._version = 3;
|
|
2037
2031
|
/**
|
|
2038
2032
|
* Creates a new SourceMapGenerator based on a SourceMapConsumer
|
|
2039
2033
|
*
|
|
2040
2034
|
* @param aSourceMapConsumer The SourceMap.
|
|
2041
2035
|
*/
|
|
2042
|
-
SourceMapGenerator
|
|
2036
|
+
SourceMapGenerator.fromSourceMap = function SourceMapGenerator_fromSourceMap(aSourceMapConsumer, generatorOps) {
|
|
2043
2037
|
var sourceRoot = aSourceMapConsumer.sourceRoot;
|
|
2044
|
-
var generator = new SourceMapGenerator
|
|
2038
|
+
var generator = new SourceMapGenerator(Object.assign(generatorOps || {}, {
|
|
2045
2039
|
file: aSourceMapConsumer.file,
|
|
2046
2040
|
sourceRoot
|
|
2047
2041
|
}));
|
|
@@ -2080,7 +2074,7 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
2080
2074
|
* - source: The original source file (relative to the sourceRoot).
|
|
2081
2075
|
* - name: An optional original token name for this mapping.
|
|
2082
2076
|
*/
|
|
2083
|
-
SourceMapGenerator
|
|
2077
|
+
SourceMapGenerator.prototype.addMapping = function SourceMapGenerator_addMapping(aArgs) {
|
|
2084
2078
|
var generated = util.getArg(aArgs, "generated");
|
|
2085
2079
|
var original = util.getArg(aArgs, "original", null);
|
|
2086
2080
|
var source = util.getArg(aArgs, "source", null);
|
|
@@ -2108,7 +2102,7 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
2108
2102
|
/**
|
|
2109
2103
|
* Set the source content for a source file.
|
|
2110
2104
|
*/
|
|
2111
|
-
SourceMapGenerator
|
|
2105
|
+
SourceMapGenerator.prototype.setSourceContent = function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {
|
|
2112
2106
|
var source = aSourceFile;
|
|
2113
2107
|
if (this._sourceRoot != null) source = util.relative(this._sourceRoot, source);
|
|
2114
2108
|
if (aSourceContent != null) {
|
|
@@ -2135,7 +2129,7 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
2135
2129
|
* paths. If so, those relative source paths need to be rewritten
|
|
2136
2130
|
* relative to the SourceMapGenerator.
|
|
2137
2131
|
*/
|
|
2138
|
-
SourceMapGenerator
|
|
2132
|
+
SourceMapGenerator.prototype.applySourceMap = function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {
|
|
2139
2133
|
var sourceFile = aSourceFile;
|
|
2140
2134
|
if (aSourceFile == null) {
|
|
2141
2135
|
if (aSourceMapConsumer.file == null) throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's \"file\" property. Both were omitted.");
|
|
@@ -2187,7 +2181,7 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
2187
2181
|
* To maintain consistency, we validate that any new mapping being added falls
|
|
2188
2182
|
* in to one of these categories.
|
|
2189
2183
|
*/
|
|
2190
|
-
SourceMapGenerator
|
|
2184
|
+
SourceMapGenerator.prototype._validateMapping = function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, aName) {
|
|
2191
2185
|
if (aOriginal && typeof aOriginal.line !== "number" && typeof aOriginal.column !== "number") {
|
|
2192
2186
|
var message = "original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";
|
|
2193
2187
|
if (this._ignoreInvalidMapping) {
|
|
@@ -2214,7 +2208,7 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
2214
2208
|
* Serialize the accumulated mappings in to the stream of base 64 VLQs
|
|
2215
2209
|
* specified by the source map format.
|
|
2216
2210
|
*/
|
|
2217
|
-
SourceMapGenerator
|
|
2211
|
+
SourceMapGenerator.prototype._serializeMappings = function SourceMapGenerator_serializeMappings() {
|
|
2218
2212
|
var previousGeneratedColumn = 0;
|
|
2219
2213
|
var previousGeneratedLine = 1;
|
|
2220
2214
|
var previousOriginalColumn = 0;
|
|
@@ -2260,7 +2254,7 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
2260
2254
|
}
|
|
2261
2255
|
return result;
|
|
2262
2256
|
};
|
|
2263
|
-
SourceMapGenerator
|
|
2257
|
+
SourceMapGenerator.prototype._generateSourcesContent = function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {
|
|
2264
2258
|
return aSources.map(function(source) {
|
|
2265
2259
|
if (!this._sourcesContents) return null;
|
|
2266
2260
|
if (aSourceRoot != null) source = util.relative(aSourceRoot, source);
|
|
@@ -2271,7 +2265,7 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
2271
2265
|
/**
|
|
2272
2266
|
* Externalize the source map.
|
|
2273
2267
|
*/
|
|
2274
|
-
SourceMapGenerator
|
|
2268
|
+
SourceMapGenerator.prototype.toJSON = function SourceMapGenerator_toJSON() {
|
|
2275
2269
|
var map = {
|
|
2276
2270
|
version: this._version,
|
|
2277
2271
|
sources: this._sources.toArray(),
|
|
@@ -2286,15 +2280,15 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
2286
2280
|
/**
|
|
2287
2281
|
* Render the source map being generated to a string.
|
|
2288
2282
|
*/
|
|
2289
|
-
SourceMapGenerator
|
|
2283
|
+
SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
|
|
2290
2284
|
return JSON.stringify(this.toJSON());
|
|
2291
2285
|
};
|
|
2292
|
-
exports.SourceMapGenerator = SourceMapGenerator
|
|
2293
|
-
})
|
|
2286
|
+
exports.SourceMapGenerator = SourceMapGenerator;
|
|
2287
|
+
}));
|
|
2294
2288
|
|
|
2295
2289
|
//#endregion
|
|
2296
2290
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/generator/sourceMap.js
|
|
2297
|
-
var import_source_map_generator =
|
|
2291
|
+
var import_source_map_generator = require_source_map_generator();
|
|
2298
2292
|
const trackNodes = new Set([
|
|
2299
2293
|
"Atrule",
|
|
2300
2294
|
"Selector",
|
|
@@ -2367,7 +2361,7 @@ function generateSourceMap(handlers) {
|
|
|
2367
2361
|
|
|
2368
2362
|
//#endregion
|
|
2369
2363
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/generator/token-before.js
|
|
2370
|
-
var token_before_exports = /* @__PURE__ */
|
|
2364
|
+
var token_before_exports = /* @__PURE__ */ __exportAll({
|
|
2371
2365
|
safe: () => safe,
|
|
2372
2366
|
spec: () => spec
|
|
2373
2367
|
});
|
|
@@ -3414,7 +3408,7 @@ function createGenericTypes(units) {
|
|
|
3414
3408
|
|
|
3415
3409
|
//#endregion
|
|
3416
3410
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/lexer/units.js
|
|
3417
|
-
var units_exports = /* @__PURE__ */
|
|
3411
|
+
var units_exports = /* @__PURE__ */ __exportAll({
|
|
3418
3412
|
angle: () => angle,
|
|
3419
3413
|
decibel: () => decibel,
|
|
3420
3414
|
flex: () => flex,
|
|
@@ -4671,7 +4665,7 @@ function matchAsTree(tokens, matchGraph, syntaxes) {
|
|
|
4671
4665
|
|
|
4672
4666
|
//#endregion
|
|
4673
4667
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/lexer/trace.js
|
|
4674
|
-
var trace_exports = /* @__PURE__ */
|
|
4668
|
+
var trace_exports = /* @__PURE__ */ __exportAll({
|
|
4675
4669
|
getTrace: () => getTrace,
|
|
4676
4670
|
isKeyword: () => isKeyword,
|
|
4677
4671
|
isProperty: () => isProperty,
|
|
@@ -16027,10 +16021,10 @@ var data_default = {
|
|
|
16027
16021
|
|
|
16028
16022
|
//#endregion
|
|
16029
16023
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/AnPlusB.js
|
|
16030
|
-
var AnPlusB_exports = /* @__PURE__ */
|
|
16024
|
+
var AnPlusB_exports = /* @__PURE__ */ __exportAll({
|
|
16031
16025
|
generate: () => generate$49,
|
|
16032
16026
|
name: () => name$48,
|
|
16033
|
-
parse: () => parse$
|
|
16027
|
+
parse: () => parse$49,
|
|
16034
16028
|
structure: () => structure$48
|
|
16035
16029
|
});
|
|
16036
16030
|
const PLUSSIGN$5 = 43;
|
|
@@ -16092,7 +16086,7 @@ const structure$48 = {
|
|
|
16092
16086
|
a: [String, null],
|
|
16093
16087
|
b: [String, null]
|
|
16094
16088
|
};
|
|
16095
|
-
function parse$
|
|
16089
|
+
function parse$49() {
|
|
16096
16090
|
const start = this.tokenStart;
|
|
16097
16091
|
let a = null;
|
|
16098
16092
|
let b = null;
|
|
@@ -16192,10 +16186,10 @@ function generate$49(node) {
|
|
|
16192
16186
|
|
|
16193
16187
|
//#endregion
|
|
16194
16188
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Atrule.js
|
|
16195
|
-
var Atrule_exports = /* @__PURE__ */
|
|
16189
|
+
var Atrule_exports = /* @__PURE__ */ __exportAll({
|
|
16196
16190
|
generate: () => generate$48,
|
|
16197
16191
|
name: () => name$47,
|
|
16198
|
-
parse: () => parse$
|
|
16192
|
+
parse: () => parse$48,
|
|
16199
16193
|
structure: () => structure$47,
|
|
16200
16194
|
walkContext: () => walkContext$9
|
|
16201
16195
|
});
|
|
@@ -16220,7 +16214,7 @@ const structure$47 = {
|
|
|
16220
16214
|
],
|
|
16221
16215
|
block: ["Block", null]
|
|
16222
16216
|
};
|
|
16223
|
-
function parse$
|
|
16217
|
+
function parse$48(isDeclaration = false) {
|
|
16224
16218
|
const start = this.tokenStart;
|
|
16225
16219
|
let name$49;
|
|
16226
16220
|
let nameLowerCase;
|
|
@@ -16261,17 +16255,17 @@ function generate$48(node) {
|
|
|
16261
16255
|
|
|
16262
16256
|
//#endregion
|
|
16263
16257
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/AtrulePrelude.js
|
|
16264
|
-
var AtrulePrelude_exports = /* @__PURE__ */
|
|
16258
|
+
var AtrulePrelude_exports = /* @__PURE__ */ __exportAll({
|
|
16265
16259
|
generate: () => generate$47,
|
|
16266
16260
|
name: () => name$46,
|
|
16267
|
-
parse: () => parse$
|
|
16261
|
+
parse: () => parse$47,
|
|
16268
16262
|
structure: () => structure$46,
|
|
16269
16263
|
walkContext: () => walkContext$8
|
|
16270
16264
|
});
|
|
16271
16265
|
const name$46 = "AtrulePrelude";
|
|
16272
16266
|
const walkContext$8 = "atrulePrelude";
|
|
16273
16267
|
const structure$46 = { children: [[]] };
|
|
16274
|
-
function parse$
|
|
16268
|
+
function parse$47(name$49) {
|
|
16275
16269
|
let children = null;
|
|
16276
16270
|
if (name$49 !== null) name$49 = name$49.toLowerCase();
|
|
16277
16271
|
this.skipSC();
|
|
@@ -16291,10 +16285,10 @@ function generate$47(node) {
|
|
|
16291
16285
|
|
|
16292
16286
|
//#endregion
|
|
16293
16287
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/AttributeSelector.js
|
|
16294
|
-
var AttributeSelector_exports = /* @__PURE__ */
|
|
16288
|
+
var AttributeSelector_exports = /* @__PURE__ */ __exportAll({
|
|
16295
16289
|
generate: () => generate$46,
|
|
16296
16290
|
name: () => name$45,
|
|
16297
|
-
parse: () => parse$
|
|
16291
|
+
parse: () => parse$46,
|
|
16298
16292
|
structure: () => structure$45
|
|
16299
16293
|
});
|
|
16300
16294
|
const DOLLARSIGN$1 = 36;
|
|
@@ -16345,7 +16339,7 @@ const structure$45 = {
|
|
|
16345
16339
|
],
|
|
16346
16340
|
flags: [String, null]
|
|
16347
16341
|
};
|
|
16348
|
-
function parse$
|
|
16342
|
+
function parse$46() {
|
|
16349
16343
|
const start = this.tokenStart;
|
|
16350
16344
|
let name$49;
|
|
16351
16345
|
let matcher = null;
|
|
@@ -16390,10 +16384,10 @@ function generate$46(node) {
|
|
|
16390
16384
|
|
|
16391
16385
|
//#endregion
|
|
16392
16386
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Block.js
|
|
16393
|
-
var Block_exports = /* @__PURE__ */
|
|
16387
|
+
var Block_exports = /* @__PURE__ */ __exportAll({
|
|
16394
16388
|
generate: () => generate$45,
|
|
16395
16389
|
name: () => name$44,
|
|
16396
|
-
parse: () => parse$
|
|
16390
|
+
parse: () => parse$45,
|
|
16397
16391
|
structure: () => structure$44,
|
|
16398
16392
|
walkContext: () => walkContext$7
|
|
16399
16393
|
});
|
|
@@ -16420,7 +16414,7 @@ const structure$44 = { children: [[
|
|
|
16420
16414
|
"Rule",
|
|
16421
16415
|
"Declaration"
|
|
16422
16416
|
]] };
|
|
16423
|
-
function parse$
|
|
16417
|
+
function parse$45(isStyleBlock) {
|
|
16424
16418
|
const consumer = isStyleBlock ? consumeDeclaration : consumeRule;
|
|
16425
16419
|
const start = this.tokenStart;
|
|
16426
16420
|
let children = this.createList();
|
|
@@ -16454,15 +16448,15 @@ function generate$45(node) {
|
|
|
16454
16448
|
|
|
16455
16449
|
//#endregion
|
|
16456
16450
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Brackets.js
|
|
16457
|
-
var Brackets_exports = /* @__PURE__ */
|
|
16451
|
+
var Brackets_exports = /* @__PURE__ */ __exportAll({
|
|
16458
16452
|
generate: () => generate$44,
|
|
16459
16453
|
name: () => name$43,
|
|
16460
|
-
parse: () => parse$
|
|
16454
|
+
parse: () => parse$44,
|
|
16461
16455
|
structure: () => structure$43
|
|
16462
16456
|
});
|
|
16463
16457
|
const name$43 = "Brackets";
|
|
16464
16458
|
const structure$43 = { children: [[]] };
|
|
16465
|
-
function parse$
|
|
16459
|
+
function parse$44(readSequence$1, recognizer) {
|
|
16466
16460
|
const start = this.tokenStart;
|
|
16467
16461
|
let children = null;
|
|
16468
16462
|
this.eat(LeftSquareBracket);
|
|
@@ -16482,15 +16476,15 @@ function generate$44(node) {
|
|
|
16482
16476
|
|
|
16483
16477
|
//#endregion
|
|
16484
16478
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/CDC.js
|
|
16485
|
-
var CDC_exports = /* @__PURE__ */
|
|
16479
|
+
var CDC_exports = /* @__PURE__ */ __exportAll({
|
|
16486
16480
|
generate: () => generate$43,
|
|
16487
16481
|
name: () => name$42,
|
|
16488
|
-
parse: () => parse$
|
|
16482
|
+
parse: () => parse$43,
|
|
16489
16483
|
structure: () => structure$42
|
|
16490
16484
|
});
|
|
16491
16485
|
const name$42 = "CDC";
|
|
16492
16486
|
const structure$42 = [];
|
|
16493
|
-
function parse$
|
|
16487
|
+
function parse$43() {
|
|
16494
16488
|
const start = this.tokenStart;
|
|
16495
16489
|
this.eat(CDC);
|
|
16496
16490
|
return {
|
|
@@ -16504,15 +16498,15 @@ function generate$43() {
|
|
|
16504
16498
|
|
|
16505
16499
|
//#endregion
|
|
16506
16500
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/CDO.js
|
|
16507
|
-
var CDO_exports = /* @__PURE__ */
|
|
16501
|
+
var CDO_exports = /* @__PURE__ */ __exportAll({
|
|
16508
16502
|
generate: () => generate$42,
|
|
16509
16503
|
name: () => name$41,
|
|
16510
|
-
parse: () => parse$
|
|
16504
|
+
parse: () => parse$42,
|
|
16511
16505
|
structure: () => structure$41
|
|
16512
16506
|
});
|
|
16513
16507
|
const name$41 = "CDO";
|
|
16514
16508
|
const structure$41 = [];
|
|
16515
|
-
function parse$
|
|
16509
|
+
function parse$42() {
|
|
16516
16510
|
const start = this.tokenStart;
|
|
16517
16511
|
this.eat(CDO);
|
|
16518
16512
|
return {
|
|
@@ -16526,16 +16520,16 @@ function generate$42() {
|
|
|
16526
16520
|
|
|
16527
16521
|
//#endregion
|
|
16528
16522
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/ClassSelector.js
|
|
16529
|
-
var ClassSelector_exports = /* @__PURE__ */
|
|
16523
|
+
var ClassSelector_exports = /* @__PURE__ */ __exportAll({
|
|
16530
16524
|
generate: () => generate$41,
|
|
16531
16525
|
name: () => name$40,
|
|
16532
|
-
parse: () => parse$
|
|
16526
|
+
parse: () => parse$41,
|
|
16533
16527
|
structure: () => structure$40
|
|
16534
16528
|
});
|
|
16535
16529
|
const FULLSTOP$2 = 46;
|
|
16536
16530
|
const name$40 = "ClassSelector";
|
|
16537
16531
|
const structure$40 = { name: String };
|
|
16538
|
-
function parse$
|
|
16532
|
+
function parse$41() {
|
|
16539
16533
|
this.eatDelim(FULLSTOP$2);
|
|
16540
16534
|
return {
|
|
16541
16535
|
type: "ClassSelector",
|
|
@@ -16550,10 +16544,10 @@ function generate$41(node) {
|
|
|
16550
16544
|
|
|
16551
16545
|
//#endregion
|
|
16552
16546
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Combinator.js
|
|
16553
|
-
var Combinator_exports = /* @__PURE__ */
|
|
16547
|
+
var Combinator_exports = /* @__PURE__ */ __exportAll({
|
|
16554
16548
|
generate: () => generate$40,
|
|
16555
16549
|
name: () => name$39,
|
|
16556
|
-
parse: () => parse$
|
|
16550
|
+
parse: () => parse$40,
|
|
16557
16551
|
structure: () => structure$39
|
|
16558
16552
|
});
|
|
16559
16553
|
const PLUSSIGN$4 = 43;
|
|
@@ -16562,7 +16556,7 @@ const GREATERTHANSIGN$2 = 62;
|
|
|
16562
16556
|
const TILDE$1 = 126;
|
|
16563
16557
|
const name$39 = "Combinator";
|
|
16564
16558
|
const structure$39 = { name: String };
|
|
16565
|
-
function parse$
|
|
16559
|
+
function parse$40() {
|
|
16566
16560
|
const start = this.tokenStart;
|
|
16567
16561
|
let name$49;
|
|
16568
16562
|
switch (this.tokenType) {
|
|
@@ -16598,17 +16592,17 @@ function generate$40(node) {
|
|
|
16598
16592
|
|
|
16599
16593
|
//#endregion
|
|
16600
16594
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Comment.js
|
|
16601
|
-
var Comment_exports = /* @__PURE__ */
|
|
16595
|
+
var Comment_exports = /* @__PURE__ */ __exportAll({
|
|
16602
16596
|
generate: () => generate$39,
|
|
16603
16597
|
name: () => name$38,
|
|
16604
|
-
parse: () => parse$
|
|
16598
|
+
parse: () => parse$39,
|
|
16605
16599
|
structure: () => structure$38
|
|
16606
16600
|
});
|
|
16607
16601
|
const ASTERISK$4 = 42;
|
|
16608
16602
|
const SOLIDUS$6 = 47;
|
|
16609
16603
|
const name$38 = "Comment";
|
|
16610
16604
|
const structure$38 = { value: String };
|
|
16611
|
-
function parse$
|
|
16605
|
+
function parse$39() {
|
|
16612
16606
|
const start = this.tokenStart;
|
|
16613
16607
|
let end = this.tokenEnd;
|
|
16614
16608
|
this.eat(Comment);
|
|
@@ -16625,16 +16619,16 @@ function generate$39(node) {
|
|
|
16625
16619
|
|
|
16626
16620
|
//#endregion
|
|
16627
16621
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Condition.js
|
|
16628
|
-
var Condition_exports = /* @__PURE__ */
|
|
16622
|
+
var Condition_exports = /* @__PURE__ */ __exportAll({
|
|
16629
16623
|
generate: () => generate$38,
|
|
16630
16624
|
name: () => name$37,
|
|
16631
|
-
parse: () => parse$
|
|
16625
|
+
parse: () => parse$38,
|
|
16632
16626
|
structure: () => structure$37
|
|
16633
16627
|
});
|
|
16634
16628
|
const likelyFeatureToken = new Set([
|
|
16635
16629
|
Colon,
|
|
16636
16630
|
RightParenthesis,
|
|
16637
|
-
EOF
|
|
16631
|
+
EOF$1
|
|
16638
16632
|
]);
|
|
16639
16633
|
const name$37 = "Condition";
|
|
16640
16634
|
const structure$37 = {
|
|
@@ -16658,7 +16652,7 @@ const parentheses = {
|
|
|
16658
16652
|
return this.SupportsDeclaration();
|
|
16659
16653
|
}
|
|
16660
16654
|
};
|
|
16661
|
-
function parse$
|
|
16655
|
+
function parse$38(kind = "media") {
|
|
16662
16656
|
const children = this.createList();
|
|
16663
16657
|
scan: while (!this.eof) switch (this.tokenType) {
|
|
16664
16658
|
case Comment:
|
|
@@ -16709,10 +16703,10 @@ function generate$38(node) {
|
|
|
16709
16703
|
|
|
16710
16704
|
//#endregion
|
|
16711
16705
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Declaration.js
|
|
16712
|
-
var Declaration_exports = /* @__PURE__ */
|
|
16706
|
+
var Declaration_exports = /* @__PURE__ */ __exportAll({
|
|
16713
16707
|
generate: () => generate$37,
|
|
16714
16708
|
name: () => name$36,
|
|
16715
|
-
parse: () => parse$
|
|
16709
|
+
parse: () => parse$37,
|
|
16716
16710
|
structure: () => structure$36,
|
|
16717
16711
|
walkContext: () => walkContext$6
|
|
16718
16712
|
});
|
|
@@ -16742,7 +16736,7 @@ const structure$36 = {
|
|
|
16742
16736
|
property: String,
|
|
16743
16737
|
value: ["Value", "Raw"]
|
|
16744
16738
|
};
|
|
16745
|
-
function parse$
|
|
16739
|
+
function parse$37() {
|
|
16746
16740
|
const start = this.tokenStart;
|
|
16747
16741
|
const startToken = this.tokenIndex;
|
|
16748
16742
|
const property$1 = readProperty.call(this);
|
|
@@ -16817,10 +16811,10 @@ function getImportant() {
|
|
|
16817
16811
|
|
|
16818
16812
|
//#endregion
|
|
16819
16813
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/DeclarationList.js
|
|
16820
|
-
var DeclarationList_exports = /* @__PURE__ */
|
|
16814
|
+
var DeclarationList_exports = /* @__PURE__ */ __exportAll({
|
|
16821
16815
|
generate: () => generate$36,
|
|
16822
16816
|
name: () => name$35,
|
|
16823
|
-
parse: () => parse$
|
|
16817
|
+
parse: () => parse$36,
|
|
16824
16818
|
structure: () => structure$35
|
|
16825
16819
|
});
|
|
16826
16820
|
const AMPERSAND$2 = 38;
|
|
@@ -16833,7 +16827,7 @@ const structure$35 = { children: [[
|
|
|
16833
16827
|
"Atrule",
|
|
16834
16828
|
"Rule"
|
|
16835
16829
|
]] };
|
|
16836
|
-
function parse$
|
|
16830
|
+
function parse$36() {
|
|
16837
16831
|
const children = this.createList();
|
|
16838
16832
|
scan: while (!this.eof) switch (this.tokenType) {
|
|
16839
16833
|
case WhiteSpace:
|
|
@@ -16861,10 +16855,10 @@ function generate$36(node) {
|
|
|
16861
16855
|
|
|
16862
16856
|
//#endregion
|
|
16863
16857
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Dimension.js
|
|
16864
|
-
var Dimension_exports = /* @__PURE__ */
|
|
16858
|
+
var Dimension_exports = /* @__PURE__ */ __exportAll({
|
|
16865
16859
|
generate: () => generate$35,
|
|
16866
16860
|
name: () => name$34,
|
|
16867
|
-
parse: () => parse$
|
|
16861
|
+
parse: () => parse$35,
|
|
16868
16862
|
structure: () => structure$34
|
|
16869
16863
|
});
|
|
16870
16864
|
const name$34 = "Dimension";
|
|
@@ -16872,7 +16866,7 @@ const structure$34 = {
|
|
|
16872
16866
|
value: String,
|
|
16873
16867
|
unit: String
|
|
16874
16868
|
};
|
|
16875
|
-
function parse$
|
|
16869
|
+
function parse$35() {
|
|
16876
16870
|
const start = this.tokenStart;
|
|
16877
16871
|
const value = this.consumeNumber(Dimension);
|
|
16878
16872
|
return {
|
|
@@ -16888,10 +16882,10 @@ function generate$35(node) {
|
|
|
16888
16882
|
|
|
16889
16883
|
//#endregion
|
|
16890
16884
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Feature.js
|
|
16891
|
-
var Feature_exports = /* @__PURE__ */
|
|
16885
|
+
var Feature_exports = /* @__PURE__ */ __exportAll({
|
|
16892
16886
|
generate: () => generate$34,
|
|
16893
16887
|
name: () => name$33,
|
|
16894
|
-
parse: () => parse$
|
|
16888
|
+
parse: () => parse$34,
|
|
16895
16889
|
structure: () => structure$33
|
|
16896
16890
|
});
|
|
16897
16891
|
const SOLIDUS$4 = 47;
|
|
@@ -16908,7 +16902,7 @@ const structure$33 = {
|
|
|
16908
16902
|
null
|
|
16909
16903
|
]
|
|
16910
16904
|
};
|
|
16911
|
-
function parse$
|
|
16905
|
+
function parse$34(kind) {
|
|
16912
16906
|
const start = this.tokenStart;
|
|
16913
16907
|
let name$49;
|
|
16914
16908
|
let value = null;
|
|
@@ -16965,10 +16959,10 @@ function generate$34(node) {
|
|
|
16965
16959
|
|
|
16966
16960
|
//#endregion
|
|
16967
16961
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/FeatureFunction.js
|
|
16968
|
-
var FeatureFunction_exports = /* @__PURE__ */
|
|
16962
|
+
var FeatureFunction_exports = /* @__PURE__ */ __exportAll({
|
|
16969
16963
|
generate: () => generate$33,
|
|
16970
16964
|
name: () => name$32,
|
|
16971
|
-
parse: () => parse$
|
|
16965
|
+
parse: () => parse$33,
|
|
16972
16966
|
structure: () => structure$32
|
|
16973
16967
|
});
|
|
16974
16968
|
const name$32 = "FeatureFunction";
|
|
@@ -16982,7 +16976,7 @@ function getFeatureParser(kind, name$49) {
|
|
|
16982
16976
|
if (typeof parser !== "function") this.error(`Unknown feature ${name$49}()`);
|
|
16983
16977
|
return parser;
|
|
16984
16978
|
}
|
|
16985
|
-
function parse$
|
|
16979
|
+
function parse$33(kind = "unknown") {
|
|
16986
16980
|
const start = this.tokenStart;
|
|
16987
16981
|
const functionName = this.consumeFunctionName();
|
|
16988
16982
|
const valueParser = getFeatureParser.call(this, kind, functionName.toLowerCase());
|
|
@@ -17010,10 +17004,10 @@ function generate$33(node) {
|
|
|
17010
17004
|
|
|
17011
17005
|
//#endregion
|
|
17012
17006
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/FeatureRange.js
|
|
17013
|
-
var FeatureRange_exports = /* @__PURE__ */
|
|
17007
|
+
var FeatureRange_exports = /* @__PURE__ */ __exportAll({
|
|
17014
17008
|
generate: () => generate$32,
|
|
17015
17009
|
name: () => name$31,
|
|
17016
|
-
parse: () => parse$
|
|
17010
|
+
parse: () => parse$32,
|
|
17017
17011
|
structure: () => structure$31
|
|
17018
17012
|
});
|
|
17019
17013
|
const SOLIDUS$3 = 47;
|
|
@@ -17080,7 +17074,7 @@ function readComparison(expectColon) {
|
|
|
17080
17074
|
if (this.isDelim(EQUALSSIGN)) return "=";
|
|
17081
17075
|
this.error(`Expected ${expectColon ? "\":\", " : ""}"<", ">", "=" or ")"`);
|
|
17082
17076
|
}
|
|
17083
|
-
function parse$
|
|
17077
|
+
function parse$32(kind = "unknown") {
|
|
17084
17078
|
const start = this.tokenStart;
|
|
17085
17079
|
this.skipSC();
|
|
17086
17080
|
this.eat(LeftParenthesis);
|
|
@@ -17120,10 +17114,10 @@ function generate$32(node) {
|
|
|
17120
17114
|
|
|
17121
17115
|
//#endregion
|
|
17122
17116
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Function.js
|
|
17123
|
-
var Function_exports = /* @__PURE__ */
|
|
17117
|
+
var Function_exports = /* @__PURE__ */ __exportAll({
|
|
17124
17118
|
generate: () => generate$31,
|
|
17125
17119
|
name: () => name$30,
|
|
17126
|
-
parse: () => parse$
|
|
17120
|
+
parse: () => parse$31,
|
|
17127
17121
|
structure: () => structure$30,
|
|
17128
17122
|
walkContext: () => walkContext$5
|
|
17129
17123
|
});
|
|
@@ -17133,7 +17127,7 @@ const structure$30 = {
|
|
|
17133
17127
|
name: String,
|
|
17134
17128
|
children: [[]]
|
|
17135
17129
|
};
|
|
17136
|
-
function parse$
|
|
17130
|
+
function parse$31(readSequence$1, recognizer) {
|
|
17137
17131
|
const start = this.tokenStart;
|
|
17138
17132
|
const name$49 = this.consumeFunctionName();
|
|
17139
17133
|
const nameLowerCase = name$49.toLowerCase();
|
|
@@ -17155,10 +17149,10 @@ function generate$31(node) {
|
|
|
17155
17149
|
|
|
17156
17150
|
//#endregion
|
|
17157
17151
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/GeneralEnclosed.js
|
|
17158
|
-
var GeneralEnclosed_exports = /* @__PURE__ */
|
|
17152
|
+
var GeneralEnclosed_exports = /* @__PURE__ */ __exportAll({
|
|
17159
17153
|
generate: () => generate$30,
|
|
17160
17154
|
name: () => name$29,
|
|
17161
|
-
parse: () => parse$
|
|
17155
|
+
parse: () => parse$30,
|
|
17162
17156
|
structure: () => structure$29
|
|
17163
17157
|
});
|
|
17164
17158
|
const name$29 = "GeneralEnclosed";
|
|
@@ -17167,7 +17161,7 @@ const structure$29 = {
|
|
|
17167
17161
|
function: [String, null],
|
|
17168
17162
|
children: [[]]
|
|
17169
17163
|
};
|
|
17170
|
-
function parse$
|
|
17164
|
+
function parse$30(kind) {
|
|
17171
17165
|
const start = this.tokenStart;
|
|
17172
17166
|
let functionName = null;
|
|
17173
17167
|
if (this.tokenType === Function) functionName = this.consumeFunctionName();
|
|
@@ -17196,17 +17190,17 @@ function generate$30(node) {
|
|
|
17196
17190
|
|
|
17197
17191
|
//#endregion
|
|
17198
17192
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Hash.js
|
|
17199
|
-
var Hash_exports = /* @__PURE__ */
|
|
17193
|
+
var Hash_exports = /* @__PURE__ */ __exportAll({
|
|
17200
17194
|
generate: () => generate$29,
|
|
17201
17195
|
name: () => name$28,
|
|
17202
|
-
parse: () => parse$
|
|
17196
|
+
parse: () => parse$29,
|
|
17203
17197
|
structure: () => structure$28,
|
|
17204
17198
|
xxx: () => xxx
|
|
17205
17199
|
});
|
|
17206
17200
|
const xxx = "XXX";
|
|
17207
17201
|
const name$28 = "Hash";
|
|
17208
17202
|
const structure$28 = { value: String };
|
|
17209
|
-
function parse$
|
|
17203
|
+
function parse$29() {
|
|
17210
17204
|
const start = this.tokenStart;
|
|
17211
17205
|
this.eat(Hash);
|
|
17212
17206
|
return {
|
|
@@ -17221,15 +17215,15 @@ function generate$29(node) {
|
|
|
17221
17215
|
|
|
17222
17216
|
//#endregion
|
|
17223
17217
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Identifier.js
|
|
17224
|
-
var Identifier_exports = /* @__PURE__ */
|
|
17218
|
+
var Identifier_exports = /* @__PURE__ */ __exportAll({
|
|
17225
17219
|
generate: () => generate$28,
|
|
17226
17220
|
name: () => name$27,
|
|
17227
|
-
parse: () => parse$
|
|
17221
|
+
parse: () => parse$28,
|
|
17228
17222
|
structure: () => structure$27
|
|
17229
17223
|
});
|
|
17230
17224
|
const name$27 = "Identifier";
|
|
17231
17225
|
const structure$27 = { name: String };
|
|
17232
|
-
function parse$
|
|
17226
|
+
function parse$28() {
|
|
17233
17227
|
return {
|
|
17234
17228
|
type: "Identifier",
|
|
17235
17229
|
loc: this.getLocation(this.tokenStart, this.tokenEnd),
|
|
@@ -17242,15 +17236,15 @@ function generate$28(node) {
|
|
|
17242
17236
|
|
|
17243
17237
|
//#endregion
|
|
17244
17238
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/IdSelector.js
|
|
17245
|
-
var IdSelector_exports = /* @__PURE__ */
|
|
17239
|
+
var IdSelector_exports = /* @__PURE__ */ __exportAll({
|
|
17246
17240
|
generate: () => generate$27,
|
|
17247
17241
|
name: () => name$26,
|
|
17248
|
-
parse: () => parse$
|
|
17242
|
+
parse: () => parse$27,
|
|
17249
17243
|
structure: () => structure$26
|
|
17250
17244
|
});
|
|
17251
17245
|
const name$26 = "IdSelector";
|
|
17252
17246
|
const structure$26 = { name: String };
|
|
17253
|
-
function parse$
|
|
17247
|
+
function parse$27() {
|
|
17254
17248
|
const start = this.tokenStart;
|
|
17255
17249
|
this.eat(Hash);
|
|
17256
17250
|
return {
|
|
@@ -17265,16 +17259,16 @@ function generate$27(node) {
|
|
|
17265
17259
|
|
|
17266
17260
|
//#endregion
|
|
17267
17261
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Layer.js
|
|
17268
|
-
var Layer_exports = /* @__PURE__ */
|
|
17262
|
+
var Layer_exports = /* @__PURE__ */ __exportAll({
|
|
17269
17263
|
generate: () => generate$26,
|
|
17270
17264
|
name: () => name$25,
|
|
17271
|
-
parse: () => parse$
|
|
17265
|
+
parse: () => parse$26,
|
|
17272
17266
|
structure: () => structure$25
|
|
17273
17267
|
});
|
|
17274
17268
|
const FULLSTOP$1 = 46;
|
|
17275
17269
|
const name$25 = "Layer";
|
|
17276
17270
|
const structure$25 = { name: String };
|
|
17277
|
-
function parse$
|
|
17271
|
+
function parse$26() {
|
|
17278
17272
|
let tokenStart = this.tokenStart;
|
|
17279
17273
|
let name$49 = this.consume(Ident);
|
|
17280
17274
|
while (this.isDelim(FULLSTOP$1)) {
|
|
@@ -17293,7 +17287,7 @@ function generate$26(node) {
|
|
|
17293
17287
|
|
|
17294
17288
|
//#endregion
|
|
17295
17289
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/LayerList.js
|
|
17296
|
-
var LayerList_exports = /* @__PURE__ */
|
|
17290
|
+
var LayerList_exports = /* @__PURE__ */ __exportAll({
|
|
17297
17291
|
generate: () => generate$25,
|
|
17298
17292
|
name: () => name$24,
|
|
17299
17293
|
parse: () => parse$25,
|
|
@@ -17323,10 +17317,10 @@ function generate$25(node) {
|
|
|
17323
17317
|
|
|
17324
17318
|
//#endregion
|
|
17325
17319
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/MediaQuery.js
|
|
17326
|
-
var MediaQuery_exports = /* @__PURE__ */
|
|
17320
|
+
var MediaQuery_exports = /* @__PURE__ */ __exportAll({
|
|
17327
17321
|
generate: () => generate$24,
|
|
17328
17322
|
name: () => name$23,
|
|
17329
|
-
parse: () => parse$
|
|
17323
|
+
parse: () => parse$24,
|
|
17330
17324
|
structure: () => structure$23
|
|
17331
17325
|
});
|
|
17332
17326
|
const name$23 = "MediaQuery";
|
|
@@ -17335,7 +17329,7 @@ const structure$23 = {
|
|
|
17335
17329
|
mediaType: [String, null],
|
|
17336
17330
|
condition: ["Condition", null]
|
|
17337
17331
|
};
|
|
17338
|
-
function parse$
|
|
17332
|
+
function parse$24() {
|
|
17339
17333
|
const start = this.tokenStart;
|
|
17340
17334
|
let modifier = null;
|
|
17341
17335
|
let mediaType = null;
|
|
@@ -17358,7 +17352,7 @@ function parse$26() {
|
|
|
17358
17352
|
case LeftCurlyBracket:
|
|
17359
17353
|
case Semicolon:
|
|
17360
17354
|
case Comma:
|
|
17361
|
-
case EOF: break;
|
|
17355
|
+
case EOF$1: break;
|
|
17362
17356
|
default: this.error("Identifier or parenthesis is expected");
|
|
17363
17357
|
}
|
|
17364
17358
|
} else switch (this.tokenType) {
|
|
@@ -17369,7 +17363,7 @@ function parse$26() {
|
|
|
17369
17363
|
break;
|
|
17370
17364
|
case LeftCurlyBracket:
|
|
17371
17365
|
case Semicolon:
|
|
17372
|
-
case EOF: break;
|
|
17366
|
+
case EOF$1: break;
|
|
17373
17367
|
default: this.error("Identifier or parenthesis is expected");
|
|
17374
17368
|
}
|
|
17375
17369
|
return {
|
|
@@ -17393,15 +17387,15 @@ function generate$24(node) {
|
|
|
17393
17387
|
|
|
17394
17388
|
//#endregion
|
|
17395
17389
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/MediaQueryList.js
|
|
17396
|
-
var MediaQueryList_exports = /* @__PURE__ */
|
|
17390
|
+
var MediaQueryList_exports = /* @__PURE__ */ __exportAll({
|
|
17397
17391
|
generate: () => generate$23,
|
|
17398
17392
|
name: () => name$22,
|
|
17399
|
-
parse: () => parse$
|
|
17393
|
+
parse: () => parse$23,
|
|
17400
17394
|
structure: () => structure$22
|
|
17401
17395
|
});
|
|
17402
17396
|
const name$22 = "MediaQueryList";
|
|
17403
17397
|
const structure$22 = { children: [["MediaQuery"]] };
|
|
17404
|
-
function parse$
|
|
17398
|
+
function parse$23() {
|
|
17405
17399
|
const children = this.createList();
|
|
17406
17400
|
this.skipSC();
|
|
17407
17401
|
while (!this.eof) {
|
|
@@ -17421,16 +17415,16 @@ function generate$23(node) {
|
|
|
17421
17415
|
|
|
17422
17416
|
//#endregion
|
|
17423
17417
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/NestingSelector.js
|
|
17424
|
-
var NestingSelector_exports = /* @__PURE__ */
|
|
17418
|
+
var NestingSelector_exports = /* @__PURE__ */ __exportAll({
|
|
17425
17419
|
generate: () => generate$22,
|
|
17426
17420
|
name: () => name$21,
|
|
17427
|
-
parse: () => parse$
|
|
17421
|
+
parse: () => parse$22,
|
|
17428
17422
|
structure: () => structure$21
|
|
17429
17423
|
});
|
|
17430
17424
|
const AMPERSAND$1 = 38;
|
|
17431
17425
|
const name$21 = "NestingSelector";
|
|
17432
17426
|
const structure$21 = {};
|
|
17433
|
-
function parse$
|
|
17427
|
+
function parse$22() {
|
|
17434
17428
|
const start = this.tokenStart;
|
|
17435
17429
|
this.eatDelim(AMPERSAND$1);
|
|
17436
17430
|
return {
|
|
@@ -17444,10 +17438,10 @@ function generate$22() {
|
|
|
17444
17438
|
|
|
17445
17439
|
//#endregion
|
|
17446
17440
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Nth.js
|
|
17447
|
-
var Nth_exports = /* @__PURE__ */
|
|
17441
|
+
var Nth_exports = /* @__PURE__ */ __exportAll({
|
|
17448
17442
|
generate: () => generate$21,
|
|
17449
17443
|
name: () => name$20,
|
|
17450
|
-
parse: () => parse$
|
|
17444
|
+
parse: () => parse$21,
|
|
17451
17445
|
structure: () => structure$20
|
|
17452
17446
|
});
|
|
17453
17447
|
const name$20 = "Nth";
|
|
@@ -17455,7 +17449,7 @@ const structure$20 = {
|
|
|
17455
17449
|
nth: ["AnPlusB", "Identifier"],
|
|
17456
17450
|
selector: ["SelectorList", null]
|
|
17457
17451
|
};
|
|
17458
|
-
function parse$
|
|
17452
|
+
function parse$21() {
|
|
17459
17453
|
this.skipSC();
|
|
17460
17454
|
const start = this.tokenStart;
|
|
17461
17455
|
let end = start;
|
|
@@ -17487,15 +17481,15 @@ function generate$21(node) {
|
|
|
17487
17481
|
|
|
17488
17482
|
//#endregion
|
|
17489
17483
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Number.js
|
|
17490
|
-
var Number_exports = /* @__PURE__ */
|
|
17484
|
+
var Number_exports = /* @__PURE__ */ __exportAll({
|
|
17491
17485
|
generate: () => generate$20,
|
|
17492
17486
|
name: () => name$19,
|
|
17493
|
-
parse: () => parse$
|
|
17487
|
+
parse: () => parse$20,
|
|
17494
17488
|
structure: () => structure$19
|
|
17495
17489
|
});
|
|
17496
17490
|
const name$19 = "Number";
|
|
17497
17491
|
const structure$19 = { value: String };
|
|
17498
|
-
function parse$
|
|
17492
|
+
function parse$20() {
|
|
17499
17493
|
return {
|
|
17500
17494
|
type: "Number",
|
|
17501
17495
|
loc: this.getLocation(this.tokenStart, this.tokenEnd),
|
|
@@ -17508,15 +17502,15 @@ function generate$20(node) {
|
|
|
17508
17502
|
|
|
17509
17503
|
//#endregion
|
|
17510
17504
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Operator.js
|
|
17511
|
-
var Operator_exports = /* @__PURE__ */
|
|
17505
|
+
var Operator_exports = /* @__PURE__ */ __exportAll({
|
|
17512
17506
|
generate: () => generate$19,
|
|
17513
17507
|
name: () => name$18,
|
|
17514
|
-
parse: () => parse$
|
|
17508
|
+
parse: () => parse$19,
|
|
17515
17509
|
structure: () => structure$18
|
|
17516
17510
|
});
|
|
17517
17511
|
const name$18 = "Operator";
|
|
17518
17512
|
const structure$18 = { value: String };
|
|
17519
|
-
function parse$
|
|
17513
|
+
function parse$19() {
|
|
17520
17514
|
const start = this.tokenStart;
|
|
17521
17515
|
this.next();
|
|
17522
17516
|
return {
|
|
@@ -17531,15 +17525,15 @@ function generate$19(node) {
|
|
|
17531
17525
|
|
|
17532
17526
|
//#endregion
|
|
17533
17527
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Parentheses.js
|
|
17534
|
-
var Parentheses_exports = /* @__PURE__ */
|
|
17528
|
+
var Parentheses_exports = /* @__PURE__ */ __exportAll({
|
|
17535
17529
|
generate: () => generate$18,
|
|
17536
17530
|
name: () => name$17,
|
|
17537
|
-
parse: () => parse$
|
|
17531
|
+
parse: () => parse$18,
|
|
17538
17532
|
structure: () => structure$17
|
|
17539
17533
|
});
|
|
17540
17534
|
const name$17 = "Parentheses";
|
|
17541
17535
|
const structure$17 = { children: [[]] };
|
|
17542
|
-
function parse$
|
|
17536
|
+
function parse$18(readSequence$1, recognizer) {
|
|
17543
17537
|
const start = this.tokenStart;
|
|
17544
17538
|
let children = null;
|
|
17545
17539
|
this.eat(LeftParenthesis);
|
|
@@ -17559,15 +17553,15 @@ function generate$18(node) {
|
|
|
17559
17553
|
|
|
17560
17554
|
//#endregion
|
|
17561
17555
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Percentage.js
|
|
17562
|
-
var Percentage_exports = /* @__PURE__ */
|
|
17556
|
+
var Percentage_exports = /* @__PURE__ */ __exportAll({
|
|
17563
17557
|
generate: () => generate$17,
|
|
17564
17558
|
name: () => name$16,
|
|
17565
|
-
parse: () => parse$
|
|
17559
|
+
parse: () => parse$17,
|
|
17566
17560
|
structure: () => structure$16
|
|
17567
17561
|
});
|
|
17568
17562
|
const name$16 = "Percentage";
|
|
17569
17563
|
const structure$16 = { value: String };
|
|
17570
|
-
function parse$
|
|
17564
|
+
function parse$17() {
|
|
17571
17565
|
return {
|
|
17572
17566
|
type: "Percentage",
|
|
17573
17567
|
loc: this.getLocation(this.tokenStart, this.tokenEnd),
|
|
@@ -17580,10 +17574,10 @@ function generate$17(node) {
|
|
|
17580
17574
|
|
|
17581
17575
|
//#endregion
|
|
17582
17576
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/PseudoClassSelector.js
|
|
17583
|
-
var PseudoClassSelector_exports = /* @__PURE__ */
|
|
17577
|
+
var PseudoClassSelector_exports = /* @__PURE__ */ __exportAll({
|
|
17584
17578
|
generate: () => generate$16,
|
|
17585
17579
|
name: () => name$15,
|
|
17586
|
-
parse: () => parse$
|
|
17580
|
+
parse: () => parse$16,
|
|
17587
17581
|
structure: () => structure$15,
|
|
17588
17582
|
walkContext: () => walkContext$4
|
|
17589
17583
|
});
|
|
@@ -17593,7 +17587,7 @@ const structure$15 = {
|
|
|
17593
17587
|
name: String,
|
|
17594
17588
|
children: [["Raw"], null]
|
|
17595
17589
|
};
|
|
17596
|
-
function parse$
|
|
17590
|
+
function parse$16() {
|
|
17597
17591
|
const start = this.tokenStart;
|
|
17598
17592
|
let children = null;
|
|
17599
17593
|
let name$49;
|
|
@@ -17632,10 +17626,10 @@ function generate$16(node) {
|
|
|
17632
17626
|
|
|
17633
17627
|
//#endregion
|
|
17634
17628
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/PseudoElementSelector.js
|
|
17635
|
-
var PseudoElementSelector_exports = /* @__PURE__ */
|
|
17629
|
+
var PseudoElementSelector_exports = /* @__PURE__ */ __exportAll({
|
|
17636
17630
|
generate: () => generate$15,
|
|
17637
17631
|
name: () => name$14,
|
|
17638
|
-
parse: () => parse$
|
|
17632
|
+
parse: () => parse$15,
|
|
17639
17633
|
structure: () => structure$14,
|
|
17640
17634
|
walkContext: () => walkContext$3
|
|
17641
17635
|
});
|
|
@@ -17645,7 +17639,7 @@ const structure$14 = {
|
|
|
17645
17639
|
name: String,
|
|
17646
17640
|
children: [["Raw"], null]
|
|
17647
17641
|
};
|
|
17648
|
-
function parse$
|
|
17642
|
+
function parse$15() {
|
|
17649
17643
|
const start = this.tokenStart;
|
|
17650
17644
|
let children = null;
|
|
17651
17645
|
let name$49;
|
|
@@ -17686,10 +17680,10 @@ function generate$15(node) {
|
|
|
17686
17680
|
|
|
17687
17681
|
//#endregion
|
|
17688
17682
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Ratio.js
|
|
17689
|
-
var Ratio_exports = /* @__PURE__ */
|
|
17683
|
+
var Ratio_exports = /* @__PURE__ */ __exportAll({
|
|
17690
17684
|
generate: () => generate$14,
|
|
17691
17685
|
name: () => name$13,
|
|
17692
|
-
parse: () => parse$
|
|
17686
|
+
parse: () => parse$14,
|
|
17693
17687
|
structure: () => structure$13
|
|
17694
17688
|
});
|
|
17695
17689
|
const SOLIDUS$2 = 47;
|
|
@@ -17710,7 +17704,7 @@ const structure$13 = {
|
|
|
17710
17704
|
null
|
|
17711
17705
|
]
|
|
17712
17706
|
};
|
|
17713
|
-
function parse$
|
|
17707
|
+
function parse$14() {
|
|
17714
17708
|
const start = this.tokenStart;
|
|
17715
17709
|
const left = consumeTerm.call(this);
|
|
17716
17710
|
let right = null;
|
|
@@ -17735,10 +17729,10 @@ function generate$14(node) {
|
|
|
17735
17729
|
|
|
17736
17730
|
//#endregion
|
|
17737
17731
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Raw.js
|
|
17738
|
-
var Raw_exports = /* @__PURE__ */
|
|
17732
|
+
var Raw_exports = /* @__PURE__ */ __exportAll({
|
|
17739
17733
|
generate: () => generate$13,
|
|
17740
17734
|
name: () => name$12,
|
|
17741
|
-
parse: () => parse$
|
|
17735
|
+
parse: () => parse$13,
|
|
17742
17736
|
structure: () => structure$12
|
|
17743
17737
|
});
|
|
17744
17738
|
function getOffsetExcludeWS() {
|
|
@@ -17749,7 +17743,7 @@ function getOffsetExcludeWS() {
|
|
|
17749
17743
|
}
|
|
17750
17744
|
const name$12 = "Raw";
|
|
17751
17745
|
const structure$12 = { value: String };
|
|
17752
|
-
function parse$
|
|
17746
|
+
function parse$13(consumeUntil, excludeWhiteSpace) {
|
|
17753
17747
|
const startOffset = this.getTokenStart(this.tokenIndex);
|
|
17754
17748
|
let endOffset;
|
|
17755
17749
|
this.skipUntilBalanced(this.tokenIndex, consumeUntil || this.consumeUntilBalanceEnd);
|
|
@@ -17767,10 +17761,10 @@ function generate$13(node) {
|
|
|
17767
17761
|
|
|
17768
17762
|
//#endregion
|
|
17769
17763
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Rule.js
|
|
17770
|
-
var Rule_exports = /* @__PURE__ */
|
|
17764
|
+
var Rule_exports = /* @__PURE__ */ __exportAll({
|
|
17771
17765
|
generate: () => generate$12,
|
|
17772
17766
|
name: () => name$11,
|
|
17773
|
-
parse: () => parse$
|
|
17767
|
+
parse: () => parse$12,
|
|
17774
17768
|
structure: () => structure$11,
|
|
17775
17769
|
walkContext: () => walkContext$2
|
|
17776
17770
|
});
|
|
@@ -17788,7 +17782,7 @@ const structure$11 = {
|
|
|
17788
17782
|
prelude: ["SelectorList", "Raw"],
|
|
17789
17783
|
block: ["Block"]
|
|
17790
17784
|
};
|
|
17791
|
-
function parse$
|
|
17785
|
+
function parse$12() {
|
|
17792
17786
|
const startToken = this.tokenIndex;
|
|
17793
17787
|
const startOffset = this.tokenStart;
|
|
17794
17788
|
let prelude;
|
|
@@ -17810,10 +17804,10 @@ function generate$12(node) {
|
|
|
17810
17804
|
|
|
17811
17805
|
//#endregion
|
|
17812
17806
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Scope.js
|
|
17813
|
-
var Scope_exports = /* @__PURE__ */
|
|
17807
|
+
var Scope_exports = /* @__PURE__ */ __exportAll({
|
|
17814
17808
|
generate: () => generate$11,
|
|
17815
17809
|
name: () => name$10,
|
|
17816
|
-
parse: () => parse$
|
|
17810
|
+
parse: () => parse$11,
|
|
17817
17811
|
structure: () => structure$10
|
|
17818
17812
|
});
|
|
17819
17813
|
const name$10 = "Scope";
|
|
@@ -17829,7 +17823,7 @@ const structure$10 = {
|
|
|
17829
17823
|
null
|
|
17830
17824
|
]
|
|
17831
17825
|
};
|
|
17832
|
-
function parse$
|
|
17826
|
+
function parse$11() {
|
|
17833
17827
|
let root = null;
|
|
17834
17828
|
let limit = null;
|
|
17835
17829
|
this.skipSC();
|
|
@@ -17874,10 +17868,10 @@ function generate$11(node) {
|
|
|
17874
17868
|
|
|
17875
17869
|
//#endregion
|
|
17876
17870
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Selector.js
|
|
17877
|
-
var Selector_exports = /* @__PURE__ */
|
|
17871
|
+
var Selector_exports = /* @__PURE__ */ __exportAll({
|
|
17878
17872
|
generate: () => generate$10,
|
|
17879
17873
|
name: () => name$9,
|
|
17880
|
-
parse: () => parse$
|
|
17874
|
+
parse: () => parse$10,
|
|
17881
17875
|
structure: () => structure$9
|
|
17882
17876
|
});
|
|
17883
17877
|
const name$9 = "Selector";
|
|
@@ -17890,7 +17884,7 @@ const structure$9 = { children: [[
|
|
|
17890
17884
|
"PseudoElementSelector",
|
|
17891
17885
|
"Combinator"
|
|
17892
17886
|
]] };
|
|
17893
|
-
function parse$
|
|
17887
|
+
function parse$10() {
|
|
17894
17888
|
const children = this.readSequence(this.scope.Selector);
|
|
17895
17889
|
if (this.getFirstListNode(children) === null) this.error("Selector is expected");
|
|
17896
17890
|
return {
|
|
@@ -17905,17 +17899,17 @@ function generate$10(node) {
|
|
|
17905
17899
|
|
|
17906
17900
|
//#endregion
|
|
17907
17901
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/SelectorList.js
|
|
17908
|
-
var SelectorList_exports = /* @__PURE__ */
|
|
17902
|
+
var SelectorList_exports = /* @__PURE__ */ __exportAll({
|
|
17909
17903
|
generate: () => generate$9,
|
|
17910
17904
|
name: () => name$8,
|
|
17911
|
-
parse: () => parse$
|
|
17905
|
+
parse: () => parse$9,
|
|
17912
17906
|
structure: () => structure$8,
|
|
17913
17907
|
walkContext: () => walkContext$1
|
|
17914
17908
|
});
|
|
17915
17909
|
const name$8 = "SelectorList";
|
|
17916
17910
|
const walkContext$1 = "selector";
|
|
17917
17911
|
const structure$8 = { children: [["Selector", "Raw"]] };
|
|
17918
|
-
function parse$
|
|
17912
|
+
function parse$9() {
|
|
17919
17913
|
const children = this.createList();
|
|
17920
17914
|
while (!this.eof) {
|
|
17921
17915
|
children.push(this.Selector());
|
|
@@ -17994,15 +17988,15 @@ function encode$1(str, apostrophe) {
|
|
|
17994
17988
|
|
|
17995
17989
|
//#endregion
|
|
17996
17990
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/String.js
|
|
17997
|
-
var String_exports = /* @__PURE__ */
|
|
17991
|
+
var String_exports = /* @__PURE__ */ __exportAll({
|
|
17998
17992
|
generate: () => generate$8,
|
|
17999
17993
|
name: () => name$7,
|
|
18000
|
-
parse: () => parse$
|
|
17994
|
+
parse: () => parse$8,
|
|
18001
17995
|
structure: () => structure$7
|
|
18002
17996
|
});
|
|
18003
17997
|
const name$7 = "String";
|
|
18004
17998
|
const structure$7 = { value: String };
|
|
18005
|
-
function parse$
|
|
17999
|
+
function parse$8() {
|
|
18006
18000
|
return {
|
|
18007
18001
|
type: "String",
|
|
18008
18002
|
loc: this.getLocation(this.tokenStart, this.tokenEnd),
|
|
@@ -18015,10 +18009,10 @@ function generate$8(node) {
|
|
|
18015
18009
|
|
|
18016
18010
|
//#endregion
|
|
18017
18011
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/StyleSheet.js
|
|
18018
|
-
var StyleSheet_exports = /* @__PURE__ */
|
|
18012
|
+
var StyleSheet_exports = /* @__PURE__ */ __exportAll({
|
|
18019
18013
|
generate: () => generate$7,
|
|
18020
18014
|
name: () => name$6,
|
|
18021
|
-
parse: () => parse$
|
|
18015
|
+
parse: () => parse$7,
|
|
18022
18016
|
structure: () => structure$6,
|
|
18023
18017
|
walkContext: () => walkContext
|
|
18024
18018
|
});
|
|
@@ -18036,7 +18030,7 @@ const structure$6 = { children: [[
|
|
|
18036
18030
|
"Rule",
|
|
18037
18031
|
"Raw"
|
|
18038
18032
|
]] };
|
|
18039
|
-
function parse$
|
|
18033
|
+
function parse$7() {
|
|
18040
18034
|
const start = this.tokenStart;
|
|
18041
18035
|
const children = this.createList();
|
|
18042
18036
|
let child;
|
|
@@ -18077,15 +18071,15 @@ function generate$7(node) {
|
|
|
18077
18071
|
|
|
18078
18072
|
//#endregion
|
|
18079
18073
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/SupportsDeclaration.js
|
|
18080
|
-
var SupportsDeclaration_exports = /* @__PURE__ */
|
|
18074
|
+
var SupportsDeclaration_exports = /* @__PURE__ */ __exportAll({
|
|
18081
18075
|
generate: () => generate$6,
|
|
18082
18076
|
name: () => name$5,
|
|
18083
|
-
parse: () => parse$
|
|
18077
|
+
parse: () => parse$6,
|
|
18084
18078
|
structure: () => structure$5
|
|
18085
18079
|
});
|
|
18086
18080
|
const name$5 = "SupportsDeclaration";
|
|
18087
18081
|
const structure$5 = { declaration: "Declaration" };
|
|
18088
|
-
function parse$
|
|
18082
|
+
function parse$6() {
|
|
18089
18083
|
const start = this.tokenStart;
|
|
18090
18084
|
this.eat(LeftParenthesis);
|
|
18091
18085
|
this.skipSC();
|
|
@@ -18105,10 +18099,10 @@ function generate$6(node) {
|
|
|
18105
18099
|
|
|
18106
18100
|
//#endregion
|
|
18107
18101
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/TypeSelector.js
|
|
18108
|
-
var TypeSelector_exports = /* @__PURE__ */
|
|
18102
|
+
var TypeSelector_exports = /* @__PURE__ */ __exportAll({
|
|
18109
18103
|
generate: () => generate$5,
|
|
18110
18104
|
name: () => name$4,
|
|
18111
|
-
parse: () => parse$
|
|
18105
|
+
parse: () => parse$5,
|
|
18112
18106
|
structure: () => structure$4
|
|
18113
18107
|
});
|
|
18114
18108
|
const ASTERISK$2 = 42;
|
|
@@ -18119,7 +18113,7 @@ function eatIdentifierOrAsterisk() {
|
|
|
18119
18113
|
}
|
|
18120
18114
|
const name$4 = "TypeSelector";
|
|
18121
18115
|
const structure$4 = { name: String };
|
|
18122
|
-
function parse$
|
|
18116
|
+
function parse$5() {
|
|
18123
18117
|
const start = this.tokenStart;
|
|
18124
18118
|
if (this.isDelim(VERTICALLINE$1)) {
|
|
18125
18119
|
this.next();
|
|
@@ -18143,10 +18137,10 @@ function generate$5(node) {
|
|
|
18143
18137
|
|
|
18144
18138
|
//#endregion
|
|
18145
18139
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/UnicodeRange.js
|
|
18146
|
-
var UnicodeRange_exports = /* @__PURE__ */
|
|
18140
|
+
var UnicodeRange_exports = /* @__PURE__ */ __exportAll({
|
|
18147
18141
|
generate: () => generate$4,
|
|
18148
18142
|
name: () => name$3,
|
|
18149
|
-
parse: () => parse$
|
|
18143
|
+
parse: () => parse$4,
|
|
18150
18144
|
structure: () => structure$3
|
|
18151
18145
|
});
|
|
18152
18146
|
const PLUSSIGN$2 = 43;
|
|
@@ -18212,7 +18206,7 @@ function scanUnicodeRange() {
|
|
|
18212
18206
|
}
|
|
18213
18207
|
const name$3 = "UnicodeRange";
|
|
18214
18208
|
const structure$3 = { value: String };
|
|
18215
|
-
function parse$
|
|
18209
|
+
function parse$4() {
|
|
18216
18210
|
const start = this.tokenStart;
|
|
18217
18211
|
this.eatIdent("u");
|
|
18218
18212
|
scanUnicodeRange.call(this);
|
|
@@ -18287,15 +18281,15 @@ function encode(str) {
|
|
|
18287
18281
|
|
|
18288
18282
|
//#endregion
|
|
18289
18283
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Url.js
|
|
18290
|
-
var Url_exports = /* @__PURE__ */
|
|
18284
|
+
var Url_exports = /* @__PURE__ */ __exportAll({
|
|
18291
18285
|
generate: () => generate$3,
|
|
18292
18286
|
name: () => name$2,
|
|
18293
|
-
parse: () => parse$
|
|
18287
|
+
parse: () => parse$3,
|
|
18294
18288
|
structure: () => structure$2
|
|
18295
18289
|
});
|
|
18296
18290
|
const name$2 = "Url";
|
|
18297
18291
|
const structure$2 = { value: String };
|
|
18298
|
-
function parse$
|
|
18292
|
+
function parse$3() {
|
|
18299
18293
|
const start = this.tokenStart;
|
|
18300
18294
|
let value;
|
|
18301
18295
|
switch (this.tokenType) {
|
|
@@ -18324,15 +18318,15 @@ function generate$3(node) {
|
|
|
18324
18318
|
|
|
18325
18319
|
//#endregion
|
|
18326
18320
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/Value.js
|
|
18327
|
-
var Value_exports = /* @__PURE__ */
|
|
18321
|
+
var Value_exports = /* @__PURE__ */ __exportAll({
|
|
18328
18322
|
generate: () => generate$2,
|
|
18329
18323
|
name: () => name$1,
|
|
18330
|
-
parse: () => parse$
|
|
18324
|
+
parse: () => parse$2,
|
|
18331
18325
|
structure: () => structure$1
|
|
18332
18326
|
});
|
|
18333
18327
|
const name$1 = "Value";
|
|
18334
18328
|
const structure$1 = { children: [[]] };
|
|
18335
|
-
function parse$
|
|
18329
|
+
function parse$2() {
|
|
18336
18330
|
const start = this.tokenStart;
|
|
18337
18331
|
const children = this.readSequence(this.scope.Value);
|
|
18338
18332
|
return {
|
|
@@ -18347,10 +18341,10 @@ function generate$2(node) {
|
|
|
18347
18341
|
|
|
18348
18342
|
//#endregion
|
|
18349
18343
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/WhiteSpace.js
|
|
18350
|
-
var WhiteSpace_exports = /* @__PURE__ */
|
|
18344
|
+
var WhiteSpace_exports = /* @__PURE__ */ __exportAll({
|
|
18351
18345
|
generate: () => generate$1,
|
|
18352
18346
|
name: () => name,
|
|
18353
|
-
parse: () => parse$
|
|
18347
|
+
parse: () => parse$1,
|
|
18354
18348
|
structure: () => structure
|
|
18355
18349
|
});
|
|
18356
18350
|
const SPACE = Object.freeze({
|
|
@@ -18360,7 +18354,7 @@ const SPACE = Object.freeze({
|
|
|
18360
18354
|
});
|
|
18361
18355
|
const name = "WhiteSpace";
|
|
18362
18356
|
const structure = { value: String };
|
|
18363
|
-
function parse$
|
|
18357
|
+
function parse$1() {
|
|
18364
18358
|
this.eat(WhiteSpace);
|
|
18365
18359
|
return SPACE;
|
|
18366
18360
|
}
|
|
@@ -18370,7 +18364,7 @@ function generate$1(node) {
|
|
|
18370
18364
|
|
|
18371
18365
|
//#endregion
|
|
18372
18366
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/index.js
|
|
18373
|
-
var node_exports = /* @__PURE__ */
|
|
18367
|
+
var node_exports = /* @__PURE__ */ __exportAll({
|
|
18374
18368
|
AnPlusB: () => AnPlusB_exports,
|
|
18375
18369
|
Atrule: () => Atrule_exports,
|
|
18376
18370
|
AtrulePrelude: () => AtrulePrelude_exports,
|
|
@@ -18565,7 +18559,7 @@ var value_default = {
|
|
|
18565
18559
|
|
|
18566
18560
|
//#endregion
|
|
18567
18561
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/scope/index.js
|
|
18568
|
-
var scope_exports = /* @__PURE__ */
|
|
18562
|
+
var scope_exports = /* @__PURE__ */ __exportAll({
|
|
18569
18563
|
AtrulePrelude: () => atrulePrelude_default,
|
|
18570
18564
|
Selector: () => selector_default,
|
|
18571
18565
|
Value: () => value_default
|
|
@@ -18805,56 +18799,56 @@ var pseudo_default = {
|
|
|
18805
18799
|
|
|
18806
18800
|
//#endregion
|
|
18807
18801
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/syntax/node/index-parse.js
|
|
18808
|
-
var index_parse_exports = /* @__PURE__ */
|
|
18809
|
-
AnPlusB: () => parse$
|
|
18810
|
-
Atrule: () => parse$
|
|
18811
|
-
AtrulePrelude: () => parse$
|
|
18812
|
-
AttributeSelector: () => parse$
|
|
18813
|
-
Block: () => parse$
|
|
18814
|
-
Brackets: () => parse$
|
|
18815
|
-
CDC: () => parse$
|
|
18816
|
-
CDO: () => parse$
|
|
18817
|
-
ClassSelector: () => parse$
|
|
18818
|
-
Combinator: () => parse$
|
|
18819
|
-
Comment: () => parse$
|
|
18820
|
-
Condition: () => parse$
|
|
18821
|
-
Declaration: () => parse$
|
|
18822
|
-
DeclarationList: () => parse$
|
|
18823
|
-
Dimension: () => parse$
|
|
18824
|
-
Feature: () => parse$
|
|
18825
|
-
FeatureFunction: () => parse$
|
|
18826
|
-
FeatureRange: () => parse$
|
|
18827
|
-
Function: () => parse$
|
|
18828
|
-
GeneralEnclosed: () => parse$
|
|
18829
|
-
Hash: () => parse$
|
|
18830
|
-
IdSelector: () => parse$
|
|
18831
|
-
Identifier: () => parse$
|
|
18832
|
-
Layer: () => parse$
|
|
18802
|
+
var index_parse_exports = /* @__PURE__ */ __exportAll({
|
|
18803
|
+
AnPlusB: () => parse$49,
|
|
18804
|
+
Atrule: () => parse$48,
|
|
18805
|
+
AtrulePrelude: () => parse$47,
|
|
18806
|
+
AttributeSelector: () => parse$46,
|
|
18807
|
+
Block: () => parse$45,
|
|
18808
|
+
Brackets: () => parse$44,
|
|
18809
|
+
CDC: () => parse$43,
|
|
18810
|
+
CDO: () => parse$42,
|
|
18811
|
+
ClassSelector: () => parse$41,
|
|
18812
|
+
Combinator: () => parse$40,
|
|
18813
|
+
Comment: () => parse$39,
|
|
18814
|
+
Condition: () => parse$38,
|
|
18815
|
+
Declaration: () => parse$37,
|
|
18816
|
+
DeclarationList: () => parse$36,
|
|
18817
|
+
Dimension: () => parse$35,
|
|
18818
|
+
Feature: () => parse$34,
|
|
18819
|
+
FeatureFunction: () => parse$33,
|
|
18820
|
+
FeatureRange: () => parse$32,
|
|
18821
|
+
Function: () => parse$31,
|
|
18822
|
+
GeneralEnclosed: () => parse$30,
|
|
18823
|
+
Hash: () => parse$29,
|
|
18824
|
+
IdSelector: () => parse$27,
|
|
18825
|
+
Identifier: () => parse$28,
|
|
18826
|
+
Layer: () => parse$26,
|
|
18833
18827
|
LayerList: () => parse$25,
|
|
18834
|
-
MediaQuery: () => parse$
|
|
18835
|
-
MediaQueryList: () => parse$
|
|
18836
|
-
NestingSelector: () => parse$
|
|
18837
|
-
Nth: () => parse$
|
|
18838
|
-
Number: () => parse$
|
|
18839
|
-
Operator: () => parse$
|
|
18840
|
-
Parentheses: () => parse$
|
|
18841
|
-
Percentage: () => parse$
|
|
18842
|
-
PseudoClassSelector: () => parse$
|
|
18843
|
-
PseudoElementSelector: () => parse$
|
|
18844
|
-
Ratio: () => parse$
|
|
18845
|
-
Raw: () => parse$
|
|
18846
|
-
Rule: () => parse$
|
|
18847
|
-
Scope: () => parse$
|
|
18848
|
-
Selector: () => parse$
|
|
18849
|
-
SelectorList: () => parse$
|
|
18850
|
-
String: () => parse$
|
|
18851
|
-
StyleSheet: () => parse$
|
|
18852
|
-
SupportsDeclaration: () => parse$
|
|
18853
|
-
TypeSelector: () => parse$
|
|
18854
|
-
UnicodeRange: () => parse$
|
|
18855
|
-
Url: () => parse$
|
|
18856
|
-
Value: () => parse$
|
|
18857
|
-
WhiteSpace: () => parse$
|
|
18828
|
+
MediaQuery: () => parse$24,
|
|
18829
|
+
MediaQueryList: () => parse$23,
|
|
18830
|
+
NestingSelector: () => parse$22,
|
|
18831
|
+
Nth: () => parse$21,
|
|
18832
|
+
Number: () => parse$20,
|
|
18833
|
+
Operator: () => parse$19,
|
|
18834
|
+
Parentheses: () => parse$18,
|
|
18835
|
+
Percentage: () => parse$17,
|
|
18836
|
+
PseudoClassSelector: () => parse$16,
|
|
18837
|
+
PseudoElementSelector: () => parse$15,
|
|
18838
|
+
Ratio: () => parse$14,
|
|
18839
|
+
Raw: () => parse$13,
|
|
18840
|
+
Rule: () => parse$12,
|
|
18841
|
+
Scope: () => parse$11,
|
|
18842
|
+
Selector: () => parse$10,
|
|
18843
|
+
SelectorList: () => parse$9,
|
|
18844
|
+
String: () => parse$8,
|
|
18845
|
+
StyleSheet: () => parse$7,
|
|
18846
|
+
SupportsDeclaration: () => parse$6,
|
|
18847
|
+
TypeSelector: () => parse$5,
|
|
18848
|
+
UnicodeRange: () => parse$4,
|
|
18849
|
+
Url: () => parse$3,
|
|
18850
|
+
Value: () => parse$2,
|
|
18851
|
+
WhiteSpace: () => parse$1
|
|
18858
18852
|
});
|
|
18859
18853
|
|
|
18860
18854
|
//#endregion
|
|
@@ -19034,6 +19028,21 @@ const { version } = {
|
|
|
19034
19028
|
]
|
|
19035
19029
|
};
|
|
19036
19030
|
|
|
19031
|
+
//#endregion
|
|
19032
|
+
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/utils/clone.js
|
|
19033
|
+
function clone(node) {
|
|
19034
|
+
const result = {};
|
|
19035
|
+
for (const key of Object.keys(node)) {
|
|
19036
|
+
let value = node[key];
|
|
19037
|
+
if (value) {
|
|
19038
|
+
if (Array.isArray(value) || value instanceof List) value = value.map(clone);
|
|
19039
|
+
else if (value.constructor === Object) value = clone(value);
|
|
19040
|
+
}
|
|
19041
|
+
result[key] = value;
|
|
19042
|
+
}
|
|
19043
|
+
return result;
|
|
19044
|
+
}
|
|
19045
|
+
|
|
19037
19046
|
//#endregion
|
|
19038
19047
|
//#region ../../node_modules/.pnpm/css-tree@3.1.0/node_modules/css-tree/lib/index.js
|
|
19039
19048
|
const { tokenize, parse, generate, lexer, createLexer, walk, find, findLast, findAll, toPlainObject, fromPlainObject, fork } = syntax_default;
|
|
@@ -19046,6 +19055,52 @@ function isRuleInlinable(rule) {
|
|
|
19046
19055
|
return !hasAtRuleInside && !hasPseudoSelector;
|
|
19047
19056
|
}
|
|
19048
19057
|
|
|
19058
|
+
//#endregion
|
|
19059
|
+
//#region src/utils/css/is-part-inlinable.ts
|
|
19060
|
+
function isPartInlinable(part) {
|
|
19061
|
+
const hasAtRuleInside = find(part, (node) => node.type === "Atrule") !== null;
|
|
19062
|
+
const hasPseudoSelector = find(part, (node) => node.type === "PseudoClassSelector" || node.type === "PseudoElementSelector") !== null;
|
|
19063
|
+
return !hasAtRuleInside && !hasPseudoSelector;
|
|
19064
|
+
}
|
|
19065
|
+
|
|
19066
|
+
//#endregion
|
|
19067
|
+
//#region src/utils/css/split-mixed-rule.ts
|
|
19068
|
+
/**
|
|
19069
|
+
* Split a rule into inlinable and non-inlinable parts. Caller must only pass rules
|
|
19070
|
+
* for which isRuleInlinable(rule) is false. Returns clones so the original stylesheet is never mutated.
|
|
19071
|
+
*
|
|
19072
|
+
* @returns inlinablePart: rule with only inlinable block children, or null if none.
|
|
19073
|
+
* nonInlinablePart: rule with only non-inlinable block children, or null if none.
|
|
19074
|
+
*/
|
|
19075
|
+
function splitMixedRule(rule) {
|
|
19076
|
+
if (rule.prelude !== null && find(rule.prelude, (node) => node.type === "PseudoClassSelector" || node.type === "PseudoElementSelector") !== null) return {
|
|
19077
|
+
inlinablePart: null,
|
|
19078
|
+
nonInlinablePart: clone(rule)
|
|
19079
|
+
};
|
|
19080
|
+
const ruleCloneInlinable = clone(rule);
|
|
19081
|
+
const ruleCloneNonInlinable = clone(rule);
|
|
19082
|
+
const inlinableParts = [];
|
|
19083
|
+
const nonInlinableParts = [];
|
|
19084
|
+
for (const part of ruleCloneInlinable.block.children.toArray()) if (isPartInlinable(part)) inlinableParts.push(part);
|
|
19085
|
+
else nonInlinableParts.push(part);
|
|
19086
|
+
return {
|
|
19087
|
+
inlinablePart: inlinableParts.length > 0 ? {
|
|
19088
|
+
...ruleCloneInlinable,
|
|
19089
|
+
block: {
|
|
19090
|
+
type: "Block",
|
|
19091
|
+
children: new List().fromArray(inlinableParts)
|
|
19092
|
+
}
|
|
19093
|
+
} : null,
|
|
19094
|
+
nonInlinablePart: nonInlinableParts.length > 0 ? {
|
|
19095
|
+
...ruleCloneNonInlinable,
|
|
19096
|
+
block: {
|
|
19097
|
+
type: "Block",
|
|
19098
|
+
children: new List().fromArray(nonInlinableParts)
|
|
19099
|
+
}
|
|
19100
|
+
} : null
|
|
19101
|
+
};
|
|
19102
|
+
}
|
|
19103
|
+
|
|
19049
19104
|
//#endregion
|
|
19050
19105
|
//#region src/utils/css/extract-rules-per-class.ts
|
|
19051
19106
|
function extractRulesPerClass(root, classes) {
|
|
@@ -19064,7 +19119,14 @@ function extractRulesPerClass(root, classes) {
|
|
|
19064
19119
|
});
|
|
19065
19120
|
if (isRuleInlinable(rule)) {
|
|
19066
19121
|
for (const className of selectorClasses) if (classSet.has(className)) inlinableRules.set(className, rule);
|
|
19067
|
-
} else
|
|
19122
|
+
} else {
|
|
19123
|
+
const { inlinablePart, nonInlinablePart } = splitMixedRule(rule);
|
|
19124
|
+
for (const className of selectorClasses) {
|
|
19125
|
+
if (!classSet.has(className)) continue;
|
|
19126
|
+
if (inlinablePart) inlinableRules.set(className, inlinablePart);
|
|
19127
|
+
if (nonInlinablePart) nonInlinableRules.set(className, nonInlinablePart);
|
|
19128
|
+
}
|
|
19129
|
+
}
|
|
19068
19130
|
}
|
|
19069
19131
|
});
|
|
19070
19132
|
return {
|
|
@@ -19730,17 +19792,17 @@ function sanitizeNonInlinableRules(node) {
|
|
|
19730
19792
|
//#endregion
|
|
19731
19793
|
//#region src/utils/react/is-component.ts
|
|
19732
19794
|
const componentsToTreatAsElements = [
|
|
19733
|
-
|
|
19734
|
-
|
|
19735
|
-
|
|
19736
|
-
|
|
19737
|
-
|
|
19738
|
-
|
|
19739
|
-
|
|
19740
|
-
|
|
19741
|
-
|
|
19742
|
-
|
|
19743
|
-
|
|
19795
|
+
_react_email_body.Body,
|
|
19796
|
+
_react_email_button.Button,
|
|
19797
|
+
_react_email_code_block.CodeBlock,
|
|
19798
|
+
_react_email_code_inline.CodeInline,
|
|
19799
|
+
_react_email_container.Container,
|
|
19800
|
+
_react_email_heading.Heading,
|
|
19801
|
+
_react_email_hr.Hr,
|
|
19802
|
+
_react_email_img.Img,
|
|
19803
|
+
_react_email_link.Link,
|
|
19804
|
+
_react_email_preview.Preview,
|
|
19805
|
+
_react_email_text.Text
|
|
19744
19806
|
];
|
|
19745
19807
|
const isComponent = (element) => {
|
|
19746
19808
|
return (typeof element.type === "function" || element.type.render !== void 0) && !componentsToTreatAsElements.includes(element.type);
|
|
@@ -19785,7 +19847,8 @@ function cloneElementWithInlinedStyles(element, inlinableRules, nonInlinableRule
|
|
|
19785
19847
|
for (const className of classes) {
|
|
19786
19848
|
const rule = inlinableRules.get(className);
|
|
19787
19849
|
if (rule) rules.push(rule);
|
|
19788
|
-
|
|
19850
|
+
if (nonInlinableRules.has(className)) residualClasses.push(className);
|
|
19851
|
+
else if (!rule) residualClasses.push(className);
|
|
19789
19852
|
}
|
|
19790
19853
|
propsToOverwrite.style = {
|
|
19791
19854
|
...makeInlineStylesFor(rules, customProperties),
|