@projectwallace/css-analyzer 6.0.0-beta.2 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analyze-css.js +1684 -1615
- package/dist/analyze-css.umd.cjs +7 -7
- package/package.json +5 -5
package/dist/analyze-css.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Xr from "css-tree/parser";
|
|
2
2
|
import fe from "css-tree/walker";
|
|
3
|
-
let
|
|
3
|
+
let Ie = null;
|
|
4
4
|
class H {
|
|
5
5
|
static createItem(e) {
|
|
6
6
|
return {
|
|
@@ -18,7 +18,7 @@ class H {
|
|
|
18
18
|
// cursor helpers
|
|
19
19
|
allocateCursor(e, n) {
|
|
20
20
|
let r;
|
|
21
|
-
return
|
|
21
|
+
return Ie !== null ? (r = Ie, Ie = Ie.cursor, r.prev = e, r.next = n, r.cursor = this.cursor) : r = {
|
|
22
22
|
prev: e,
|
|
23
23
|
next: n,
|
|
24
24
|
cursor: this.cursor
|
|
@@ -26,12 +26,12 @@ class H {
|
|
|
26
26
|
}
|
|
27
27
|
releaseCursor() {
|
|
28
28
|
const { cursor: e } = this;
|
|
29
|
-
this.cursor = e.cursor, e.prev = null, e.next = null, e.cursor =
|
|
29
|
+
this.cursor = e.cursor, e.prev = null, e.next = null, e.cursor = Ie, Ie = e;
|
|
30
30
|
}
|
|
31
|
-
updateCursors(e, n, r,
|
|
31
|
+
updateCursors(e, n, r, s) {
|
|
32
32
|
let { cursor: o } = this;
|
|
33
33
|
for (; o !== null; )
|
|
34
|
-
o.prev === e && (o.prev = n), o.next === r && (o.next =
|
|
34
|
+
o.prev === e && (o.prev = n), o.next === r && (o.next = s), o = o.cursor;
|
|
35
35
|
}
|
|
36
36
|
*[Symbol.iterator]() {
|
|
37
37
|
for (let e = this.head; e !== null; e = e.next)
|
|
@@ -58,8 +58,8 @@ class H {
|
|
|
58
58
|
let n = null;
|
|
59
59
|
this.head = null;
|
|
60
60
|
for (let r of e) {
|
|
61
|
-
const
|
|
62
|
-
n !== null ? n.next =
|
|
61
|
+
const s = H.createItem(r);
|
|
62
|
+
n !== null ? n.next = s : this.head = s, s.prev = n, n = s;
|
|
63
63
|
}
|
|
64
64
|
return this.tail = n, this;
|
|
65
65
|
}
|
|
@@ -73,29 +73,29 @@ class H {
|
|
|
73
73
|
forEach(e, n = this) {
|
|
74
74
|
const r = this.allocateCursor(null, this.head);
|
|
75
75
|
for (; r.next !== null; ) {
|
|
76
|
-
const
|
|
77
|
-
r.next =
|
|
76
|
+
const s = r.next;
|
|
77
|
+
r.next = s.next, e.call(n, s.data, s, this);
|
|
78
78
|
}
|
|
79
79
|
this.releaseCursor();
|
|
80
80
|
}
|
|
81
81
|
forEachRight(e, n = this) {
|
|
82
82
|
const r = this.allocateCursor(this.tail, null);
|
|
83
83
|
for (; r.prev !== null; ) {
|
|
84
|
-
const
|
|
85
|
-
r.prev =
|
|
84
|
+
const s = r.prev;
|
|
85
|
+
r.prev = s.prev, e.call(n, s.data, s, this);
|
|
86
86
|
}
|
|
87
87
|
this.releaseCursor();
|
|
88
88
|
}
|
|
89
89
|
reduce(e, n, r = this) {
|
|
90
|
-
let
|
|
91
|
-
for (;
|
|
92
|
-
a =
|
|
90
|
+
let s = this.allocateCursor(null, this.head), o = n, a;
|
|
91
|
+
for (; s.next !== null; )
|
|
92
|
+
a = s.next, s.next = a.next, o = e.call(r, o, a.data, a, this);
|
|
93
93
|
return this.releaseCursor(), o;
|
|
94
94
|
}
|
|
95
95
|
reduceRight(e, n, r = this) {
|
|
96
|
-
let
|
|
97
|
-
for (;
|
|
98
|
-
a =
|
|
96
|
+
let s = this.allocateCursor(this.tail, null), o = n, a;
|
|
97
|
+
for (; s.prev !== null; )
|
|
98
|
+
a = s.prev, s.prev = a.prev, o = e.call(r, o, a.data, a, this);
|
|
99
99
|
return this.releaseCursor(), o;
|
|
100
100
|
}
|
|
101
101
|
some(e, n = this) {
|
|
@@ -106,23 +106,23 @@ class H {
|
|
|
106
106
|
}
|
|
107
107
|
map(e, n = this) {
|
|
108
108
|
const r = new H();
|
|
109
|
-
for (let
|
|
110
|
-
r.appendData(e.call(n,
|
|
109
|
+
for (let s = this.head; s !== null; s = s.next)
|
|
110
|
+
r.appendData(e.call(n, s.data, s, this));
|
|
111
111
|
return r;
|
|
112
112
|
}
|
|
113
113
|
filter(e, n = this) {
|
|
114
114
|
const r = new H();
|
|
115
|
-
for (let
|
|
116
|
-
e.call(n,
|
|
115
|
+
for (let s = this.head; s !== null; s = s.next)
|
|
116
|
+
e.call(n, s.data, s, this) && r.appendData(s.data);
|
|
117
117
|
return r;
|
|
118
118
|
}
|
|
119
119
|
nextUntil(e, n, r = this) {
|
|
120
120
|
if (e === null)
|
|
121
121
|
return;
|
|
122
|
-
const
|
|
123
|
-
for (;
|
|
124
|
-
const o =
|
|
125
|
-
if (
|
|
122
|
+
const s = this.allocateCursor(null, e);
|
|
123
|
+
for (; s.next !== null; ) {
|
|
124
|
+
const o = s.next;
|
|
125
|
+
if (s.next = o.next, n.call(r, o.data, o, this))
|
|
126
126
|
break;
|
|
127
127
|
}
|
|
128
128
|
this.releaseCursor();
|
|
@@ -130,10 +130,10 @@ class H {
|
|
|
130
130
|
prevUntil(e, n, r = this) {
|
|
131
131
|
if (e === null)
|
|
132
132
|
return;
|
|
133
|
-
const
|
|
134
|
-
for (;
|
|
135
|
-
const o =
|
|
136
|
-
if (
|
|
133
|
+
const s = this.allocateCursor(e, null);
|
|
134
|
+
for (; s.prev !== null; ) {
|
|
135
|
+
const o = s.prev;
|
|
136
|
+
if (s.prev = o.prev, n.call(r, o.data, o, this))
|
|
137
137
|
break;
|
|
138
138
|
}
|
|
139
139
|
this.releaseCursor();
|
|
@@ -217,7 +217,7 @@ class H {
|
|
|
217
217
|
"head" in n ? this.insertList(n, e) : this.insert(n, e), this.remove(e);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Zr(t, e) {
|
|
221
221
|
const n = Object.create(SyntaxError.prototype), r = new Error();
|
|
222
222
|
return Object.assign(n, {
|
|
223
223
|
name: t,
|
|
@@ -228,147 +228,147 @@ function ai(t, e) {
|
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
|
-
const
|
|
232
|
-
function
|
|
233
|
-
function a(
|
|
234
|
-
return
|
|
235
|
-
(
|
|
231
|
+
const qt = 100, Jn = 60, Yn = " ";
|
|
232
|
+
function Xn({ source: t, line: e, column: n, baseLine: r, baseColumn: s }, o) {
|
|
233
|
+
function a(S, T) {
|
|
234
|
+
return i.slice(S, T).map(
|
|
235
|
+
(P, G) => String(S + G + 1).padStart(y) + " |" + P
|
|
236
236
|
).join(`
|
|
237
237
|
`);
|
|
238
238
|
}
|
|
239
|
-
const
|
|
240
|
-
`.repeat(Math.max(r - 1, 0)),
|
|
241
|
-
let
|
|
242
|
-
n += (
|
|
243
|
-
for (let
|
|
244
|
-
|
|
239
|
+
const c = `
|
|
240
|
+
`.repeat(Math.max(r - 1, 0)), u = " ".repeat(Math.max(s - 1, 0)), i = (c + u + t).split(/\r\n?|\n|\f/), l = Math.max(1, e - o) - 1, d = Math.min(e + o, i.length + 1), y = Math.max(4, String(d).length) + 1;
|
|
241
|
+
let g = 0;
|
|
242
|
+
n += (Yn.length - 1) * (i[e - 1].substr(0, n - 1).match(/\t/g) || []).length, n > qt && (g = n - Jn + 3, n = Jn - 2);
|
|
243
|
+
for (let S = l; S <= d; S++)
|
|
244
|
+
S >= 0 && S < i.length && (i[S] = i[S].replace(/\t/g, Yn), i[S] = (g > 0 && i[S].length > g ? "…" : "") + i[S].substr(g, qt - 2) + (i[S].length > g + qt - 1 ? "…" : ""));
|
|
245
245
|
return [
|
|
246
246
|
a(l, e),
|
|
247
247
|
new Array(n + y + 2).join("-") + "^",
|
|
248
|
-
a(e,
|
|
248
|
+
a(e, d)
|
|
249
249
|
].filter(Boolean).join(`
|
|
250
250
|
`).replace(/^(\s+\d+\s+\|\n)+/, "").replace(/\n(\s+\d+\s+\|)+$/, "");
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
return Object.assign(
|
|
252
|
+
function Zn(t, e, n, r, s, o = 1, a = 1) {
|
|
253
|
+
return Object.assign(Zr("SyntaxError", t), {
|
|
254
254
|
source: e,
|
|
255
255
|
offset: n,
|
|
256
256
|
line: r,
|
|
257
|
-
column:
|
|
258
|
-
sourceFragment(
|
|
259
|
-
return
|
|
257
|
+
column: s,
|
|
258
|
+
sourceFragment(u) {
|
|
259
|
+
return Xn({ source: e, line: r, column: s, baseLine: o, baseColumn: a }, isNaN(u) ? 0 : u);
|
|
260
260
|
},
|
|
261
261
|
get formattedMessage() {
|
|
262
262
|
return `Parse error: ${t}
|
|
263
|
-
` +
|
|
263
|
+
` + Xn({ source: e, line: r, column: s, baseLine: o, baseColumn: a }, 2);
|
|
264
264
|
}
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
|
-
const
|
|
267
|
+
const Be = 0, x = 1, D = 2, U = 3, z = 4, Pe = 5, ei = 6, ie = 7, se = 8, $ = 9, E = 10, M = 11, N = 12, J = 13, Lr = 14, oe = 15, te = 16, yt = 17, Me = 18, St = 19, ft = 20, ne = 21, I = 22, fn = 23, pn = 24, he = 25, ti = 0;
|
|
268
268
|
function Q(t) {
|
|
269
269
|
return t >= 48 && t <= 57;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Ue(t) {
|
|
272
272
|
return Q(t) || // 0 .. 9
|
|
273
273
|
t >= 65 && t <= 70 || // A .. F
|
|
274
274
|
t >= 97 && t <= 102;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function dn(t) {
|
|
277
277
|
return t >= 65 && t <= 90;
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function ni(t) {
|
|
280
280
|
return t >= 97 && t <= 122;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
return
|
|
282
|
+
function ri(t) {
|
|
283
|
+
return dn(t) || ni(t);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function ii(t) {
|
|
286
286
|
return t >= 128;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
return
|
|
288
|
+
function pt(t) {
|
|
289
|
+
return ri(t) || ii(t) || t === 95;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
return
|
|
291
|
+
function Er(t) {
|
|
292
|
+
return pt(t) || Q(t) || t === 45;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function si(t) {
|
|
295
295
|
return t >= 0 && t <= 8 || t === 11 || t >= 14 && t <= 31 || t === 127;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function dt(t) {
|
|
298
298
|
return t === 10 || t === 13 || t === 12;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
return
|
|
300
|
+
function He(t) {
|
|
301
|
+
return dt(t) || t === 32 || t === 9;
|
|
302
302
|
}
|
|
303
|
-
function
|
|
304
|
-
return !(t !== 92 ||
|
|
303
|
+
function ge(t, e) {
|
|
304
|
+
return !(t !== 92 || dt(e) || e === ti);
|
|
305
305
|
}
|
|
306
|
-
function
|
|
307
|
-
return t === 45 ?
|
|
306
|
+
function Bt(t, e, n) {
|
|
307
|
+
return t === 45 ? pt(e) || e === 45 || ge(e, n) : pt(t) ? !0 : t === 92 ? ge(t, e) : !1;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function jt(t, e, n) {
|
|
310
310
|
return t === 43 || t === 45 ? Q(e) ? 2 : e === 46 && Q(n) ? 3 : 0 : t === 46 ? Q(e) ? 2 : 0 : Q(t) ? 1 : 0;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function _r(t) {
|
|
313
313
|
return t === 65279 || t === 65534 ? 1 : 0;
|
|
314
314
|
}
|
|
315
|
-
const
|
|
316
|
-
for (let t = 0; t <
|
|
317
|
-
|
|
318
|
-
function
|
|
319
|
-
return t < 128 ?
|
|
315
|
+
const on = new Array(128), oi = 128, lt = 130, Tr = 131, mn = 132, Or = 133;
|
|
316
|
+
for (let t = 0; t < on.length; t++)
|
|
317
|
+
on[t] = He(t) && lt || Q(t) && Tr || pt(t) && mn || si(t) && Or || t || oi;
|
|
318
|
+
function Ut(t) {
|
|
319
|
+
return t < 128 ? on[t] : mn;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function $e(t, e) {
|
|
322
322
|
return e < t.length ? t.charCodeAt(e) : 0;
|
|
323
323
|
}
|
|
324
|
-
function
|
|
325
|
-
return n === 13 &&
|
|
324
|
+
function an(t, e, n) {
|
|
325
|
+
return n === 13 && $e(t, e + 1) === 10 ? 2 : 1;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function Ir(t, e, n) {
|
|
328
328
|
let r = t.charCodeAt(e);
|
|
329
|
-
return
|
|
329
|
+
return dn(r) && (r = r | 32), r === n;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function mt(t, e, n, r) {
|
|
332
332
|
if (n - e !== r.length || e < 0 || n > t.length)
|
|
333
333
|
return !1;
|
|
334
|
-
for (let
|
|
335
|
-
const o = r.charCodeAt(
|
|
336
|
-
let a = t.charCodeAt(
|
|
337
|
-
if (
|
|
334
|
+
for (let s = e; s < n; s++) {
|
|
335
|
+
const o = r.charCodeAt(s - e);
|
|
336
|
+
let a = t.charCodeAt(s);
|
|
337
|
+
if (dn(a) && (a = a | 32), a !== o)
|
|
338
338
|
return !1;
|
|
339
339
|
}
|
|
340
340
|
return !0;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
343
|
-
for (; e >= 0 &&
|
|
342
|
+
function ai(t, e) {
|
|
343
|
+
for (; e >= 0 && He(t.charCodeAt(e)); e--)
|
|
344
344
|
;
|
|
345
345
|
return e + 1;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
for (; e < t.length &&
|
|
347
|
+
function nt(t, e) {
|
|
348
|
+
for (; e < t.length && He(t.charCodeAt(e)); e++)
|
|
349
349
|
;
|
|
350
350
|
return e;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Gt(t, e) {
|
|
353
353
|
for (; e < t.length && Q(t.charCodeAt(e)); e++)
|
|
354
354
|
;
|
|
355
355
|
return e;
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
if (e += 2,
|
|
359
|
-
for (const r = Math.min(t.length, e + 5); e < r &&
|
|
357
|
+
function Ge(t, e) {
|
|
358
|
+
if (e += 2, Ue($e(t, e - 1))) {
|
|
359
|
+
for (const r = Math.min(t.length, e + 5); e < r && Ue($e(t, e)); e++)
|
|
360
360
|
;
|
|
361
|
-
const n =
|
|
362
|
-
|
|
361
|
+
const n = $e(t, e);
|
|
362
|
+
He(n) && (e += an(t, e, n));
|
|
363
363
|
}
|
|
364
364
|
return e;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function rt(t, e) {
|
|
367
367
|
for (; e < t.length; e++) {
|
|
368
368
|
const n = t.charCodeAt(e);
|
|
369
|
-
if (!
|
|
370
|
-
if (
|
|
371
|
-
e =
|
|
369
|
+
if (!Er(n)) {
|
|
370
|
+
if (ge(n, $e(t, e + 1))) {
|
|
371
|
+
e = Ge(t, e) - 1;
|
|
372
372
|
continue;
|
|
373
373
|
}
|
|
374
374
|
break;
|
|
@@ -378,37 +378,37 @@ function lt(t, e) {
|
|
|
378
378
|
}
|
|
379
379
|
function Nr(t, e) {
|
|
380
380
|
let n = t.charCodeAt(e);
|
|
381
|
-
if ((n === 43 || n === 45) && (n = t.charCodeAt(e += 1)), Q(n) && (e =
|
|
381
|
+
if ((n === 43 || n === 45) && (n = t.charCodeAt(e += 1)), Q(n) && (e = Gt(t, e + 1), n = t.charCodeAt(e)), n === 46 && Q(t.charCodeAt(e + 1)) && (e += 2, e = Gt(t, e)), Ir(
|
|
382
382
|
t,
|
|
383
383
|
e,
|
|
384
384
|
101
|
|
385
385
|
/* e */
|
|
386
386
|
)) {
|
|
387
387
|
let r = 0;
|
|
388
|
-
n = t.charCodeAt(e + 1), (n === 45 || n === 43) && (r = 1, n = t.charCodeAt(e + 2)), Q(n) && (e =
|
|
388
|
+
n = t.charCodeAt(e + 1), (n === 45 || n === 43) && (r = 1, n = t.charCodeAt(e + 2)), Q(n) && (e = Gt(t, e + 1 + r + 1));
|
|
389
389
|
}
|
|
390
390
|
return e;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Vt(t, e) {
|
|
393
393
|
for (; e < t.length; e++) {
|
|
394
394
|
const n = t.charCodeAt(e);
|
|
395
395
|
if (n === 41) {
|
|
396
396
|
e++;
|
|
397
397
|
break;
|
|
398
398
|
}
|
|
399
|
-
|
|
399
|
+
ge(n, $e(t, e + 1)) && (e = Ge(t, e));
|
|
400
400
|
}
|
|
401
401
|
return e;
|
|
402
402
|
}
|
|
403
|
-
function
|
|
404
|
-
if (t.length === 1 && !
|
|
403
|
+
function li(t) {
|
|
404
|
+
if (t.length === 1 && !Ue(t.charCodeAt(0)))
|
|
405
405
|
return t[0];
|
|
406
406
|
let e = parseInt(t, 16);
|
|
407
407
|
return (e === 0 || // If this number is zero,
|
|
408
408
|
e >= 55296 && e <= 57343 || // or is for a surrogate,
|
|
409
409
|
e > 1114111) && (e = 65533), String.fromCodePoint(e);
|
|
410
410
|
}
|
|
411
|
-
const
|
|
411
|
+
const $r = [
|
|
412
412
|
"EOF-token",
|
|
413
413
|
"ident-token",
|
|
414
414
|
"function-token",
|
|
@@ -435,29 +435,29 @@ const Dr = [
|
|
|
435
435
|
"{-token",
|
|
436
436
|
"}-token",
|
|
437
437
|
"comment-token"
|
|
438
|
-
],
|
|
439
|
-
function
|
|
440
|
-
return t === null || t.length < e ? new Uint32Array(Math.max(e + 1024,
|
|
438
|
+
], ci = 16 * 1024;
|
|
439
|
+
function gt(t = null, e) {
|
|
440
|
+
return t === null || t.length < e ? new Uint32Array(Math.max(e + 1024, ci)) : t;
|
|
441
441
|
}
|
|
442
|
-
const
|
|
443
|
-
function
|
|
444
|
-
const e = t.source, n = e.length, r = e.length > 0 ?
|
|
445
|
-
let a = t.startLine,
|
|
446
|
-
for (let
|
|
447
|
-
const
|
|
448
|
-
|
|
442
|
+
const er = 10, ui = 12, tr = 13;
|
|
443
|
+
function nr(t) {
|
|
444
|
+
const e = t.source, n = e.length, r = e.length > 0 ? _r(e.charCodeAt(0)) : 0, s = gt(t.lines, n), o = gt(t.columns, n);
|
|
445
|
+
let a = t.startLine, c = t.startColumn;
|
|
446
|
+
for (let u = r; u < n; u++) {
|
|
447
|
+
const i = e.charCodeAt(u);
|
|
448
|
+
s[u] = a, o[u] = c++, (i === er || i === tr || i === ui) && (i === tr && u + 1 < n && e.charCodeAt(u + 1) === er && (u++, s[u] = a, o[u] = c), a++, c = 1);
|
|
449
449
|
}
|
|
450
|
-
|
|
450
|
+
s[n] = a, o[n] = c, t.lines = s, t.columns = o, t.computed = !0;
|
|
451
451
|
}
|
|
452
|
-
class
|
|
453
|
-
constructor(e, n, r,
|
|
454
|
-
this.setSource(e, n, r,
|
|
452
|
+
class hi {
|
|
453
|
+
constructor(e, n, r, s) {
|
|
454
|
+
this.setSource(e, n, r, s), this.lines = null, this.columns = null;
|
|
455
455
|
}
|
|
456
|
-
setSource(e = "", n = 0, r = 1,
|
|
457
|
-
this.source = e, this.startOffset = n, this.startLine = r, this.startColumn =
|
|
456
|
+
setSource(e = "", n = 0, r = 1, s = 1) {
|
|
457
|
+
this.source = e, this.startOffset = n, this.startLine = r, this.startColumn = s, this.computed = !1;
|
|
458
458
|
}
|
|
459
459
|
getLocation(e, n) {
|
|
460
|
-
return this.computed ||
|
|
460
|
+
return this.computed || nr(this), {
|
|
461
461
|
source: n,
|
|
462
462
|
offset: this.startOffset + e,
|
|
463
463
|
line: this.lines[e],
|
|
@@ -465,7 +465,7 @@ class Si {
|
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
467
|
getLocationRange(e, n, r) {
|
|
468
|
-
return this.computed ||
|
|
468
|
+
return this.computed || nr(this), {
|
|
469
469
|
source: r,
|
|
470
470
|
start: {
|
|
471
471
|
offset: this.startOffset + e,
|
|
@@ -480,15 +480,15 @@ class Si {
|
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
const le = 16777215, ce = 24,
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
function
|
|
489
|
-
return
|
|
483
|
+
const le = 16777215, ce = 24, Ee = new Uint8Array(32);
|
|
484
|
+
Ee[D] = I;
|
|
485
|
+
Ee[ne] = I;
|
|
486
|
+
Ee[St] = ft;
|
|
487
|
+
Ee[fn] = pn;
|
|
488
|
+
function rr(t) {
|
|
489
|
+
return Ee[t] !== 0;
|
|
490
490
|
}
|
|
491
|
-
class
|
|
491
|
+
class fi {
|
|
492
492
|
constructor(e, n) {
|
|
493
493
|
this.setSource(e, n);
|
|
494
494
|
}
|
|
@@ -498,26 +498,26 @@ class xi {
|
|
|
498
498
|
setSource(e = "", n = () => {
|
|
499
499
|
}) {
|
|
500
500
|
e = String(e || "");
|
|
501
|
-
const r = e.length,
|
|
502
|
-
let a = 0,
|
|
503
|
-
this.offsetAndType = null, this.balance = null, o.fill(0), n(e, (l,
|
|
504
|
-
const
|
|
505
|
-
if (
|
|
506
|
-
const
|
|
507
|
-
o[
|
|
508
|
-
} else
|
|
509
|
-
}),
|
|
501
|
+
const r = e.length, s = gt(this.offsetAndType, e.length + 1), o = gt(this.balance, e.length + 1);
|
|
502
|
+
let a = 0, c = -1, u = 0, i = e.length;
|
|
503
|
+
this.offsetAndType = null, this.balance = null, o.fill(0), n(e, (l, d, y) => {
|
|
504
|
+
const g = a++;
|
|
505
|
+
if (s[g] = l << ce | y, c === -1 && (c = d), o[g] = i, l === u) {
|
|
506
|
+
const S = o[i];
|
|
507
|
+
o[i] = g, i = S, u = Ee[s[S] >> ce];
|
|
508
|
+
} else rr(l) && (i = g, u = Ee[l]);
|
|
509
|
+
}), s[a] = Be << ce | r, o[a] = a;
|
|
510
510
|
for (let l = 0; l < a; l++) {
|
|
511
|
-
const
|
|
512
|
-
if (
|
|
513
|
-
const y = o[
|
|
511
|
+
const d = o[l];
|
|
512
|
+
if (d <= l) {
|
|
513
|
+
const y = o[d];
|
|
514
514
|
y !== l && (o[l] = y);
|
|
515
|
-
} else
|
|
515
|
+
} else d > a && (o[l] = a);
|
|
516
516
|
}
|
|
517
|
-
this.source = e, this.firstCharOffset =
|
|
517
|
+
this.source = e, this.firstCharOffset = c === -1 ? 0 : c, this.tokenCount = a, this.offsetAndType = s, this.balance = o, this.reset(), this.next();
|
|
518
518
|
}
|
|
519
519
|
lookupType(e) {
|
|
520
|
-
return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e] >> ce :
|
|
520
|
+
return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e] >> ce : Be;
|
|
521
521
|
}
|
|
522
522
|
lookupTypeNonSC(e) {
|
|
523
523
|
for (let n = this.tokenIndex; n < this.tokenCount; n++) {
|
|
@@ -525,7 +525,7 @@ class xi {
|
|
|
525
525
|
if (r !== J && r !== he && e-- === 0)
|
|
526
526
|
return r;
|
|
527
527
|
}
|
|
528
|
-
return
|
|
528
|
+
return Be;
|
|
529
529
|
}
|
|
530
530
|
lookupOffset(e) {
|
|
531
531
|
return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e - 1] & le : this.source.length;
|
|
@@ -536,10 +536,10 @@ class xi {
|
|
|
536
536
|
if (r !== J && r !== he && e-- === 0)
|
|
537
537
|
return n - this.tokenIndex;
|
|
538
538
|
}
|
|
539
|
-
return
|
|
539
|
+
return Be;
|
|
540
540
|
}
|
|
541
541
|
lookupValue(e, n) {
|
|
542
|
-
return e += this.tokenIndex, e < this.tokenCount ?
|
|
542
|
+
return e += this.tokenIndex, e < this.tokenCount ? mt(
|
|
543
543
|
this.source,
|
|
544
544
|
this.offsetAndType[e - 1] & le,
|
|
545
545
|
this.offsetAndType[e] & le,
|
|
@@ -564,17 +564,17 @@ class xi {
|
|
|
564
564
|
}
|
|
565
565
|
next() {
|
|
566
566
|
let e = this.tokenIndex + 1;
|
|
567
|
-
e < this.tokenCount ? (this.tokenIndex = e, this.tokenStart = this.tokenEnd, e = this.offsetAndType[e], this.tokenType = e >> ce, this.tokenEnd = e & le) : (this.eof = !0, this.tokenIndex = this.tokenCount, this.tokenType =
|
|
567
|
+
e < this.tokenCount ? (this.tokenIndex = e, this.tokenStart = this.tokenEnd, e = this.offsetAndType[e], this.tokenType = e >> ce, this.tokenEnd = e & le) : (this.eof = !0, this.tokenIndex = this.tokenCount, this.tokenType = Be, this.tokenStart = this.tokenEnd = this.source.length);
|
|
568
568
|
}
|
|
569
569
|
skipSC() {
|
|
570
570
|
for (; this.tokenType === J || this.tokenType === he; )
|
|
571
571
|
this.next();
|
|
572
572
|
}
|
|
573
573
|
skipUntilBalanced(e, n) {
|
|
574
|
-
let r = e,
|
|
574
|
+
let r = e, s = 0, o = 0;
|
|
575
575
|
e:
|
|
576
576
|
for (; r < this.tokenCount; r++) {
|
|
577
|
-
if (
|
|
577
|
+
if (s = this.balance[r], s < e)
|
|
578
578
|
break e;
|
|
579
579
|
switch (o = r > 0 ? this.offsetAndType[r - 1] & le : this.firstCharOffset, n(this.source.charCodeAt(o))) {
|
|
580
580
|
case 1:
|
|
@@ -583,191 +583,236 @@ class xi {
|
|
|
583
583
|
r++;
|
|
584
584
|
break e;
|
|
585
585
|
default:
|
|
586
|
-
|
|
586
|
+
rr(this.offsetAndType[r] >> ce) && (r = s);
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
this.skip(r - this.tokenIndex);
|
|
590
590
|
}
|
|
591
591
|
forEachToken(e) {
|
|
592
592
|
for (let n = 0, r = this.firstCharOffset; n < this.tokenCount; n++) {
|
|
593
|
-
const
|
|
594
|
-
r = a, e(
|
|
593
|
+
const s = r, o = this.offsetAndType[n], a = o & le, c = o >> ce;
|
|
594
|
+
r = a, e(c, s, a, n);
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
dump() {
|
|
598
598
|
const e = new Array(this.tokenCount);
|
|
599
|
-
return this.forEachToken((n, r,
|
|
599
|
+
return this.forEachToken((n, r, s, o) => {
|
|
600
600
|
e[o] = {
|
|
601
601
|
idx: o,
|
|
602
|
-
type:
|
|
603
|
-
chunk: this.source.substring(r,
|
|
602
|
+
type: $r[n],
|
|
603
|
+
chunk: this.source.substring(r, s),
|
|
604
604
|
balance: this.balance[o]
|
|
605
605
|
};
|
|
606
606
|
}), e;
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
function n(
|
|
611
|
-
return
|
|
609
|
+
function Dr(t, e) {
|
|
610
|
+
function n(d) {
|
|
611
|
+
return d < c ? t.charCodeAt(d) : 0;
|
|
612
612
|
}
|
|
613
613
|
function r() {
|
|
614
|
-
if (
|
|
615
|
-
l =
|
|
614
|
+
if (i = Nr(t, i), Bt(n(i), n(i + 1), n(i + 2))) {
|
|
615
|
+
l = N, i = rt(t, i);
|
|
616
616
|
return;
|
|
617
617
|
}
|
|
618
|
-
if (n(
|
|
619
|
-
l =
|
|
618
|
+
if (n(i) === 37) {
|
|
619
|
+
l = M, i++;
|
|
620
620
|
return;
|
|
621
621
|
}
|
|
622
|
-
l =
|
|
622
|
+
l = E;
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
const
|
|
626
|
-
if (
|
|
627
|
-
if (
|
|
628
|
-
l =
|
|
624
|
+
function s() {
|
|
625
|
+
const d = i;
|
|
626
|
+
if (i = rt(t, i), mt(t, d, i, "url") && n(i) === 40) {
|
|
627
|
+
if (i = nt(t, i + 1), n(i) === 34 || n(i) === 39) {
|
|
628
|
+
l = D, i = d + 4;
|
|
629
629
|
return;
|
|
630
630
|
}
|
|
631
631
|
a();
|
|
632
632
|
return;
|
|
633
633
|
}
|
|
634
|
-
if (n(
|
|
635
|
-
l =
|
|
634
|
+
if (n(i) === 40) {
|
|
635
|
+
l = D, i++;
|
|
636
636
|
return;
|
|
637
637
|
}
|
|
638
|
-
l =
|
|
638
|
+
l = x;
|
|
639
639
|
}
|
|
640
|
-
function o(
|
|
641
|
-
for (
|
|
642
|
-
const y = t.charCodeAt(
|
|
643
|
-
switch (
|
|
644
|
-
|
|
645
|
-
|
|
640
|
+
function o(d) {
|
|
641
|
+
for (d || (d = n(i++)), l = Pe; i < t.length; i++) {
|
|
642
|
+
const y = t.charCodeAt(i);
|
|
643
|
+
switch (Ut(y)) {
|
|
644
|
+
// ending code point
|
|
645
|
+
case d:
|
|
646
|
+
i++;
|
|
646
647
|
return;
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
648
|
+
// EOF
|
|
649
|
+
// case EofCategory:
|
|
650
|
+
// This is a parse error. Return the <string-token>.
|
|
651
|
+
// return;
|
|
652
|
+
// newline
|
|
653
|
+
case lt:
|
|
654
|
+
if (dt(y)) {
|
|
655
|
+
i += an(t, i, y), l = ei;
|
|
650
656
|
return;
|
|
651
657
|
}
|
|
652
658
|
break;
|
|
659
|
+
// U+005C REVERSE SOLIDUS (\)
|
|
653
660
|
case 92:
|
|
654
|
-
if (
|
|
661
|
+
if (i === t.length - 1)
|
|
655
662
|
break;
|
|
656
|
-
const
|
|
657
|
-
|
|
663
|
+
const g = n(i + 1);
|
|
664
|
+
dt(g) ? i += an(t, i + 1, g) : ge(y, g) && (i = Ge(t, i) - 1);
|
|
658
665
|
break;
|
|
659
666
|
}
|
|
660
667
|
}
|
|
661
668
|
}
|
|
662
669
|
function a() {
|
|
663
|
-
for (l = ie,
|
|
664
|
-
const
|
|
665
|
-
switch (
|
|
670
|
+
for (l = ie, i = nt(t, i); i < t.length; i++) {
|
|
671
|
+
const d = t.charCodeAt(i);
|
|
672
|
+
switch (Ut(d)) {
|
|
673
|
+
// U+0029 RIGHT PARENTHESIS ())
|
|
666
674
|
case 41:
|
|
667
|
-
|
|
675
|
+
i++;
|
|
668
676
|
return;
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
677
|
+
// EOF
|
|
678
|
+
// case EofCategory:
|
|
679
|
+
// This is a parse error. Return the <url-token>.
|
|
680
|
+
// return;
|
|
681
|
+
// whitespace
|
|
682
|
+
case lt:
|
|
683
|
+
if (i = nt(t, i), n(i) === 41 || i >= t.length) {
|
|
684
|
+
i < t.length && i++;
|
|
672
685
|
return;
|
|
673
686
|
}
|
|
674
|
-
|
|
687
|
+
i = Vt(t, i), l = se;
|
|
675
688
|
return;
|
|
689
|
+
// U+0022 QUOTATION MARK (")
|
|
690
|
+
// U+0027 APOSTROPHE (')
|
|
691
|
+
// U+0028 LEFT PARENTHESIS (()
|
|
692
|
+
// non-printable code point
|
|
676
693
|
case 34:
|
|
677
694
|
case 39:
|
|
678
695
|
case 40:
|
|
679
|
-
case
|
|
680
|
-
|
|
696
|
+
case Or:
|
|
697
|
+
i = Vt(t, i), l = se;
|
|
681
698
|
return;
|
|
699
|
+
// U+005C REVERSE SOLIDUS (\)
|
|
682
700
|
case 92:
|
|
683
|
-
if (
|
|
684
|
-
|
|
701
|
+
if (ge(d, n(i + 1))) {
|
|
702
|
+
i = Ge(t, i) - 1;
|
|
685
703
|
break;
|
|
686
704
|
}
|
|
687
|
-
|
|
705
|
+
i = Vt(t, i), l = se;
|
|
688
706
|
return;
|
|
689
707
|
}
|
|
690
708
|
}
|
|
691
709
|
}
|
|
692
710
|
t = String(t || "");
|
|
693
|
-
const
|
|
694
|
-
let
|
|
695
|
-
for (;
|
|
696
|
-
const
|
|
697
|
-
switch (
|
|
698
|
-
|
|
699
|
-
|
|
711
|
+
const c = t.length;
|
|
712
|
+
let u = _r(n(0)), i = u, l;
|
|
713
|
+
for (; i < c; ) {
|
|
714
|
+
const d = t.charCodeAt(i);
|
|
715
|
+
switch (Ut(d)) {
|
|
716
|
+
// whitespace
|
|
717
|
+
case lt:
|
|
718
|
+
l = J, i = nt(t, i + 1);
|
|
700
719
|
break;
|
|
720
|
+
// U+0022 QUOTATION MARK (")
|
|
701
721
|
case 34:
|
|
702
722
|
o();
|
|
703
723
|
break;
|
|
724
|
+
// U+0023 NUMBER SIGN (#)
|
|
704
725
|
case 35:
|
|
705
|
-
|
|
726
|
+
Er(n(i + 1)) || ge(n(i + 1), n(i + 2)) ? (l = z, i = rt(t, i + 1)) : (l = $, i++);
|
|
706
727
|
break;
|
|
728
|
+
// U+0027 APOSTROPHE (')
|
|
707
729
|
case 39:
|
|
708
730
|
o();
|
|
709
731
|
break;
|
|
732
|
+
// U+0028 LEFT PARENTHESIS (()
|
|
710
733
|
case 40:
|
|
711
|
-
l =
|
|
734
|
+
l = ne, i++;
|
|
712
735
|
break;
|
|
736
|
+
// U+0029 RIGHT PARENTHESIS ())
|
|
713
737
|
case 41:
|
|
714
|
-
l =
|
|
738
|
+
l = I, i++;
|
|
715
739
|
break;
|
|
740
|
+
// U+002B PLUS SIGN (+)
|
|
716
741
|
case 43:
|
|
717
|
-
|
|
742
|
+
jt(d, n(i + 1), n(i + 2)) ? r() : (l = $, i++);
|
|
718
743
|
break;
|
|
744
|
+
// U+002C COMMA (,)
|
|
719
745
|
case 44:
|
|
720
|
-
l =
|
|
746
|
+
l = Me, i++;
|
|
721
747
|
break;
|
|
748
|
+
// U+002D HYPHEN-MINUS (-)
|
|
722
749
|
case 45:
|
|
723
|
-
|
|
750
|
+
jt(d, n(i + 1), n(i + 2)) ? r() : n(i + 1) === 45 && n(i + 2) === 62 ? (l = oe, i = i + 3) : Bt(d, n(i + 1), n(i + 2)) ? s() : (l = $, i++);
|
|
724
751
|
break;
|
|
752
|
+
// U+002E FULL STOP (.)
|
|
725
753
|
case 46:
|
|
726
|
-
|
|
754
|
+
jt(d, n(i + 1), n(i + 2)) ? r() : (l = $, i++);
|
|
727
755
|
break;
|
|
756
|
+
// U+002F SOLIDUS (/)
|
|
728
757
|
case 47:
|
|
729
|
-
n(
|
|
758
|
+
n(i + 1) === 42 ? (l = he, i = t.indexOf("*/", i + 2), i = i === -1 ? t.length : i + 2) : (l = $, i++);
|
|
730
759
|
break;
|
|
760
|
+
// U+003A COLON (:)
|
|
731
761
|
case 58:
|
|
732
|
-
l =
|
|
762
|
+
l = te, i++;
|
|
733
763
|
break;
|
|
764
|
+
// U+003B SEMICOLON (;)
|
|
734
765
|
case 59:
|
|
735
|
-
l =
|
|
766
|
+
l = yt, i++;
|
|
736
767
|
break;
|
|
768
|
+
// U+003C LESS-THAN SIGN (<)
|
|
737
769
|
case 60:
|
|
738
|
-
n(
|
|
770
|
+
n(i + 1) === 33 && n(i + 2) === 45 && n(i + 3) === 45 ? (l = Lr, i = i + 4) : (l = $, i++);
|
|
739
771
|
break;
|
|
772
|
+
// U+0040 COMMERCIAL AT (@)
|
|
740
773
|
case 64:
|
|
741
|
-
|
|
774
|
+
Bt(n(i + 1), n(i + 2), n(i + 3)) ? (l = U, i = rt(t, i + 1)) : (l = $, i++);
|
|
742
775
|
break;
|
|
776
|
+
// U+005B LEFT SQUARE BRACKET ([)
|
|
743
777
|
case 91:
|
|
744
|
-
l =
|
|
778
|
+
l = St, i++;
|
|
745
779
|
break;
|
|
780
|
+
// U+005C REVERSE SOLIDUS (\)
|
|
746
781
|
case 92:
|
|
747
|
-
|
|
782
|
+
ge(d, n(i + 1)) ? s() : (l = $, i++);
|
|
748
783
|
break;
|
|
784
|
+
// U+005D RIGHT SQUARE BRACKET (])
|
|
749
785
|
case 93:
|
|
750
|
-
l =
|
|
786
|
+
l = ft, i++;
|
|
751
787
|
break;
|
|
788
|
+
// U+007B LEFT CURLY BRACKET ({)
|
|
752
789
|
case 123:
|
|
753
|
-
l =
|
|
790
|
+
l = fn, i++;
|
|
754
791
|
break;
|
|
792
|
+
// U+007D RIGHT CURLY BRACKET (})
|
|
755
793
|
case 125:
|
|
756
|
-
l =
|
|
794
|
+
l = pn, i++;
|
|
757
795
|
break;
|
|
758
|
-
|
|
796
|
+
// digit
|
|
797
|
+
case Tr:
|
|
759
798
|
r();
|
|
760
799
|
break;
|
|
761
|
-
|
|
762
|
-
|
|
800
|
+
// name-start code point
|
|
801
|
+
case mn:
|
|
802
|
+
s();
|
|
763
803
|
break;
|
|
804
|
+
// EOF
|
|
805
|
+
// case EofCategory:
|
|
806
|
+
// Return an <EOF-token>.
|
|
807
|
+
// break;
|
|
808
|
+
// anything else
|
|
764
809
|
default:
|
|
765
|
-
l = $,
|
|
810
|
+
l = $, i++;
|
|
766
811
|
}
|
|
767
|
-
e(l,
|
|
812
|
+
e(l, u, u = i);
|
|
768
813
|
}
|
|
769
814
|
}
|
|
770
|
-
function
|
|
815
|
+
function pi(t) {
|
|
771
816
|
const e = this.createList();
|
|
772
817
|
let n = !1;
|
|
773
818
|
const r = {
|
|
@@ -782,36 +827,36 @@ function Ci(t) {
|
|
|
782
827
|
n = !0, this.next();
|
|
783
828
|
continue;
|
|
784
829
|
}
|
|
785
|
-
let
|
|
786
|
-
if (
|
|
830
|
+
let s = t.getNode.call(this, r);
|
|
831
|
+
if (s === void 0)
|
|
787
832
|
break;
|
|
788
|
-
n && (t.onWhiteSpace && t.onWhiteSpace.call(this,
|
|
833
|
+
n && (t.onWhiteSpace && t.onWhiteSpace.call(this, s, e, r), n = !1), e.push(s);
|
|
789
834
|
}
|
|
790
835
|
return n && t.onWhiteSpace && t.onWhiteSpace.call(this, null, e, r), e;
|
|
791
836
|
}
|
|
792
|
-
const
|
|
793
|
-
},
|
|
794
|
-
function
|
|
837
|
+
const ir = () => {
|
|
838
|
+
}, di = 33, mi = 35, Ht = 59, sr = 123, or = 0;
|
|
839
|
+
function gi(t) {
|
|
795
840
|
return function() {
|
|
796
841
|
return this[t]();
|
|
797
842
|
};
|
|
798
843
|
}
|
|
799
|
-
function
|
|
844
|
+
function Wt(t) {
|
|
800
845
|
const e = /* @__PURE__ */ Object.create(null);
|
|
801
846
|
for (const n of Object.keys(t)) {
|
|
802
|
-
const r = t[n],
|
|
803
|
-
|
|
847
|
+
const r = t[n], s = r.parse || r;
|
|
848
|
+
s && (e[n] = s);
|
|
804
849
|
}
|
|
805
850
|
return e;
|
|
806
851
|
}
|
|
807
|
-
function
|
|
852
|
+
function ki(t) {
|
|
808
853
|
const e = {
|
|
809
854
|
context: /* @__PURE__ */ Object.create(null),
|
|
810
855
|
features: Object.assign(/* @__PURE__ */ Object.create(null), t.features),
|
|
811
856
|
scope: Object.assign(/* @__PURE__ */ Object.create(null), t.scope),
|
|
812
|
-
atrule:
|
|
813
|
-
pseudo:
|
|
814
|
-
node:
|
|
857
|
+
atrule: Wt(t.atrule),
|
|
858
|
+
pseudo: Wt(t.pseudo),
|
|
859
|
+
node: Wt(t.node)
|
|
815
860
|
};
|
|
816
861
|
for (const [n, r] of Object.entries(t.parseContext))
|
|
817
862
|
switch (typeof r) {
|
|
@@ -819,7 +864,7 @@ function Ai(t) {
|
|
|
819
864
|
e.context[n] = r;
|
|
820
865
|
break;
|
|
821
866
|
case "string":
|
|
822
|
-
e.context[n] =
|
|
867
|
+
e.context[n] = gi(r);
|
|
823
868
|
break;
|
|
824
869
|
}
|
|
825
870
|
return {
|
|
@@ -828,167 +873,167 @@ function Ai(t) {
|
|
|
828
873
|
...e.node
|
|
829
874
|
};
|
|
830
875
|
}
|
|
831
|
-
function
|
|
832
|
-
let e = "", n = "<unknown>", r = !1,
|
|
833
|
-
const a = new
|
|
876
|
+
function yi(t) {
|
|
877
|
+
let e = "", n = "<unknown>", r = !1, s = ir, o = !1;
|
|
878
|
+
const a = new hi(), c = Object.assign(new fi(), ki(t || {}), {
|
|
834
879
|
parseAtrulePrelude: !0,
|
|
835
880
|
parseRulePrelude: !0,
|
|
836
881
|
parseValue: !0,
|
|
837
882
|
parseCustomProperty: !1,
|
|
838
|
-
readSequence:
|
|
883
|
+
readSequence: pi,
|
|
839
884
|
consumeUntilBalanceEnd: () => 0,
|
|
840
|
-
consumeUntilLeftCurlyBracket(
|
|
841
|
-
return
|
|
885
|
+
consumeUntilLeftCurlyBracket(i) {
|
|
886
|
+
return i === sr ? 1 : 0;
|
|
842
887
|
},
|
|
843
|
-
consumeUntilLeftCurlyBracketOrSemicolon(
|
|
844
|
-
return
|
|
888
|
+
consumeUntilLeftCurlyBracketOrSemicolon(i) {
|
|
889
|
+
return i === sr || i === Ht ? 1 : 0;
|
|
845
890
|
},
|
|
846
|
-
consumeUntilExclamationMarkOrSemicolon(
|
|
847
|
-
return
|
|
891
|
+
consumeUntilExclamationMarkOrSemicolon(i) {
|
|
892
|
+
return i === di || i === Ht ? 1 : 0;
|
|
848
893
|
},
|
|
849
|
-
consumeUntilSemicolonIncluded(
|
|
850
|
-
return
|
|
894
|
+
consumeUntilSemicolonIncluded(i) {
|
|
895
|
+
return i === Ht ? 2 : 0;
|
|
851
896
|
},
|
|
852
897
|
createList() {
|
|
853
898
|
return new H();
|
|
854
899
|
},
|
|
855
|
-
createSingleNodeList(
|
|
856
|
-
return new H().appendData(
|
|
900
|
+
createSingleNodeList(i) {
|
|
901
|
+
return new H().appendData(i);
|
|
857
902
|
},
|
|
858
|
-
getFirstListNode(
|
|
859
|
-
return
|
|
903
|
+
getFirstListNode(i) {
|
|
904
|
+
return i && i.first;
|
|
860
905
|
},
|
|
861
|
-
getLastListNode(
|
|
862
|
-
return
|
|
906
|
+
getLastListNode(i) {
|
|
907
|
+
return i && i.last;
|
|
863
908
|
},
|
|
864
|
-
parseWithFallback(
|
|
865
|
-
const
|
|
909
|
+
parseWithFallback(i, l) {
|
|
910
|
+
const d = this.tokenIndex;
|
|
866
911
|
try {
|
|
867
|
-
return
|
|
912
|
+
return i.call(this);
|
|
868
913
|
} catch (y) {
|
|
869
914
|
if (o)
|
|
870
915
|
throw y;
|
|
871
|
-
this.skip(
|
|
872
|
-
const
|
|
873
|
-
return o = !0,
|
|
916
|
+
this.skip(d - this.tokenIndex);
|
|
917
|
+
const g = l.call(this);
|
|
918
|
+
return o = !0, s(y, g), o = !1, g;
|
|
874
919
|
}
|
|
875
920
|
},
|
|
876
|
-
lookupNonWSType(
|
|
921
|
+
lookupNonWSType(i) {
|
|
877
922
|
let l;
|
|
878
923
|
do
|
|
879
|
-
if (l = this.lookupType(
|
|
924
|
+
if (l = this.lookupType(i++), l !== J && l !== he)
|
|
880
925
|
return l;
|
|
881
|
-
while (l !==
|
|
882
|
-
return
|
|
926
|
+
while (l !== or);
|
|
927
|
+
return or;
|
|
883
928
|
},
|
|
884
|
-
charCodeAt(
|
|
885
|
-
return
|
|
929
|
+
charCodeAt(i) {
|
|
930
|
+
return i >= 0 && i < e.length ? e.charCodeAt(i) : 0;
|
|
886
931
|
},
|
|
887
|
-
substring(
|
|
888
|
-
return e.substring(
|
|
932
|
+
substring(i, l) {
|
|
933
|
+
return e.substring(i, l);
|
|
889
934
|
},
|
|
890
|
-
substrToCursor(
|
|
891
|
-
return this.source.substring(
|
|
935
|
+
substrToCursor(i) {
|
|
936
|
+
return this.source.substring(i, this.tokenStart);
|
|
892
937
|
},
|
|
893
|
-
cmpChar(
|
|
894
|
-
return
|
|
938
|
+
cmpChar(i, l) {
|
|
939
|
+
return Ir(e, i, l);
|
|
895
940
|
},
|
|
896
|
-
cmpStr(
|
|
897
|
-
return
|
|
941
|
+
cmpStr(i, l, d) {
|
|
942
|
+
return mt(e, i, l, d);
|
|
898
943
|
},
|
|
899
|
-
consume(
|
|
944
|
+
consume(i) {
|
|
900
945
|
const l = this.tokenStart;
|
|
901
|
-
return this.eat(
|
|
946
|
+
return this.eat(i), this.substrToCursor(l);
|
|
902
947
|
},
|
|
903
948
|
consumeFunctionName() {
|
|
904
|
-
const
|
|
905
|
-
return this.eat(
|
|
949
|
+
const i = e.substring(this.tokenStart, this.tokenEnd - 1);
|
|
950
|
+
return this.eat(D), i;
|
|
906
951
|
},
|
|
907
|
-
consumeNumber(
|
|
952
|
+
consumeNumber(i) {
|
|
908
953
|
const l = e.substring(this.tokenStart, Nr(e, this.tokenStart));
|
|
909
|
-
return this.eat(
|
|
954
|
+
return this.eat(i), l;
|
|
910
955
|
},
|
|
911
|
-
eat(
|
|
912
|
-
if (this.tokenType !==
|
|
913
|
-
const l =
|
|
914
|
-
let
|
|
915
|
-
switch (
|
|
916
|
-
case
|
|
917
|
-
this.tokenType ===
|
|
956
|
+
eat(i) {
|
|
957
|
+
if (this.tokenType !== i) {
|
|
958
|
+
const l = $r[i].slice(0, -6).replace(/-/g, " ").replace(/^./, (g) => g.toUpperCase());
|
|
959
|
+
let d = `${/[[\](){}]/.test(l) ? `"${l}"` : l} is expected`, y = this.tokenStart;
|
|
960
|
+
switch (i) {
|
|
961
|
+
case x:
|
|
962
|
+
this.tokenType === D || this.tokenType === ie ? (y = this.tokenEnd - 1, d = "Identifier is expected but function found") : d = "Identifier is expected";
|
|
918
963
|
break;
|
|
919
|
-
case
|
|
920
|
-
this.isDelim(
|
|
964
|
+
case z:
|
|
965
|
+
this.isDelim(mi) && (this.next(), y++, d = "Name is expected");
|
|
921
966
|
break;
|
|
922
|
-
case
|
|
923
|
-
this.tokenType ===
|
|
967
|
+
case M:
|
|
968
|
+
this.tokenType === E && (y = this.tokenEnd, d = "Percent sign is expected");
|
|
924
969
|
break;
|
|
925
970
|
}
|
|
926
|
-
this.error(
|
|
971
|
+
this.error(d, y);
|
|
927
972
|
}
|
|
928
973
|
this.next();
|
|
929
974
|
},
|
|
930
|
-
eatIdent(
|
|
931
|
-
(this.tokenType !==
|
|
975
|
+
eatIdent(i) {
|
|
976
|
+
(this.tokenType !== x || this.lookupValue(0, i) === !1) && this.error(`Identifier "${i}" is expected`), this.next();
|
|
932
977
|
},
|
|
933
|
-
eatDelim(
|
|
934
|
-
this.isDelim(
|
|
978
|
+
eatDelim(i) {
|
|
979
|
+
this.isDelim(i) || this.error(`Delim "${String.fromCharCode(i)}" is expected`), this.next();
|
|
935
980
|
},
|
|
936
|
-
getLocation(
|
|
981
|
+
getLocation(i, l) {
|
|
937
982
|
return r ? a.getLocationRange(
|
|
938
|
-
|
|
983
|
+
i,
|
|
939
984
|
l,
|
|
940
985
|
n
|
|
941
986
|
) : null;
|
|
942
987
|
},
|
|
943
|
-
getLocationFromList(
|
|
988
|
+
getLocationFromList(i) {
|
|
944
989
|
if (r) {
|
|
945
|
-
const l = this.getFirstListNode(
|
|
990
|
+
const l = this.getFirstListNode(i), d = this.getLastListNode(i);
|
|
946
991
|
return a.getLocationRange(
|
|
947
992
|
l !== null ? l.loc.start.offset - a.startOffset : this.tokenStart,
|
|
948
|
-
|
|
993
|
+
d !== null ? d.loc.end.offset - a.startOffset : this.tokenStart,
|
|
949
994
|
n
|
|
950
995
|
);
|
|
951
996
|
}
|
|
952
997
|
return null;
|
|
953
998
|
},
|
|
954
|
-
error(
|
|
955
|
-
const
|
|
956
|
-
throw new
|
|
957
|
-
|
|
999
|
+
error(i, l) {
|
|
1000
|
+
const d = typeof l < "u" && l < e.length ? a.getLocation(l) : this.eof ? a.getLocation(ai(e, e.length - 1)) : a.getLocation(this.tokenStart);
|
|
1001
|
+
throw new Zn(
|
|
1002
|
+
i || "Unexpected input",
|
|
958
1003
|
e,
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
1004
|
+
d.offset,
|
|
1005
|
+
d.line,
|
|
1006
|
+
d.column,
|
|
962
1007
|
a.startLine,
|
|
963
1008
|
a.startColumn
|
|
964
1009
|
);
|
|
965
1010
|
}
|
|
966
1011
|
});
|
|
967
|
-
return Object.assign(function(
|
|
968
|
-
e =
|
|
1012
|
+
return Object.assign(function(i, l) {
|
|
1013
|
+
e = i, l = l || {}, c.setSource(e, Dr), a.setSource(
|
|
969
1014
|
e,
|
|
970
1015
|
l.offset,
|
|
971
1016
|
l.line,
|
|
972
1017
|
l.column
|
|
973
|
-
), n = l.filename || "<unknown>", r = !!l.positions,
|
|
974
|
-
const { context:
|
|
975
|
-
if (!(
|
|
976
|
-
throw new Error("Unknown context `" +
|
|
977
|
-
typeof y == "function" &&
|
|
978
|
-
if (
|
|
979
|
-
const
|
|
980
|
-
y(
|
|
1018
|
+
), n = l.filename || "<unknown>", r = !!l.positions, s = typeof l.onParseError == "function" ? l.onParseError : ir, o = !1, c.parseAtrulePrelude = "parseAtrulePrelude" in l ? !!l.parseAtrulePrelude : !0, c.parseRulePrelude = "parseRulePrelude" in l ? !!l.parseRulePrelude : !0, c.parseValue = "parseValue" in l ? !!l.parseValue : !0, c.parseCustomProperty = "parseCustomProperty" in l ? !!l.parseCustomProperty : !1;
|
|
1019
|
+
const { context: d = "default", onComment: y } = l;
|
|
1020
|
+
if (!(d in c.context))
|
|
1021
|
+
throw new Error("Unknown context `" + d + "`");
|
|
1022
|
+
typeof y == "function" && c.forEachToken((S, T, P) => {
|
|
1023
|
+
if (S === he) {
|
|
1024
|
+
const G = c.getLocation(T, P), Y = mt(e, P - 2, P, "*/") ? e.slice(T + 2, P - 2) : e.slice(T + 2, P);
|
|
1025
|
+
y(Y, G);
|
|
981
1026
|
}
|
|
982
1027
|
});
|
|
983
|
-
const
|
|
984
|
-
return
|
|
1028
|
+
const g = c.context[d].call(c, l);
|
|
1029
|
+
return c.eof || c.error(), g;
|
|
985
1030
|
}, {
|
|
986
|
-
SyntaxError:
|
|
987
|
-
config:
|
|
1031
|
+
SyntaxError: Zn,
|
|
1032
|
+
config: c.config
|
|
988
1033
|
});
|
|
989
1034
|
}
|
|
990
|
-
const
|
|
991
|
-
function
|
|
1035
|
+
const Si = 35, xi = 38, Ci = 42, bi = 43, wi = 47, ar = 46, vi = 62, Ai = 124, Li = 126;
|
|
1036
|
+
function Ei(t, e) {
|
|
992
1037
|
e.last !== null && e.last.type !== "Combinator" && t !== null && t.type !== "Combinator" && e.push({
|
|
993
1038
|
// FIXME: this.Combinator() should be used instead
|
|
994
1039
|
type: "Combinator",
|
|
@@ -996,62 +1041,62 @@ function Pi(t, e) {
|
|
|
996
1041
|
name: " "
|
|
997
1042
|
});
|
|
998
1043
|
}
|
|
999
|
-
function
|
|
1044
|
+
function _i() {
|
|
1000
1045
|
switch (this.tokenType) {
|
|
1001
|
-
case
|
|
1046
|
+
case St:
|
|
1002
1047
|
return this.AttributeSelector();
|
|
1003
|
-
case
|
|
1048
|
+
case z:
|
|
1004
1049
|
return this.IdSelector();
|
|
1005
|
-
case
|
|
1006
|
-
return this.lookupType(1) ===
|
|
1007
|
-
case
|
|
1050
|
+
case te:
|
|
1051
|
+
return this.lookupType(1) === te ? this.PseudoElementSelector() : this.PseudoClassSelector();
|
|
1052
|
+
case x:
|
|
1008
1053
|
return this.TypeSelector();
|
|
1009
|
-
case
|
|
1010
|
-
case
|
|
1054
|
+
case E:
|
|
1055
|
+
case M:
|
|
1011
1056
|
return this.Percentage();
|
|
1012
|
-
case
|
|
1013
|
-
this.charCodeAt(this.tokenStart) ===
|
|
1057
|
+
case N:
|
|
1058
|
+
this.charCodeAt(this.tokenStart) === ar && this.error("Identifier is expected", this.tokenStart + 1);
|
|
1014
1059
|
break;
|
|
1015
1060
|
case $: {
|
|
1016
1061
|
switch (this.charCodeAt(this.tokenStart)) {
|
|
1017
|
-
case
|
|
1018
|
-
case
|
|
1019
|
-
case
|
|
1020
|
-
case
|
|
1062
|
+
case bi:
|
|
1063
|
+
case vi:
|
|
1064
|
+
case Li:
|
|
1065
|
+
case wi:
|
|
1021
1066
|
return this.Combinator();
|
|
1022
|
-
case
|
|
1067
|
+
case ar:
|
|
1023
1068
|
return this.ClassSelector();
|
|
1024
|
-
case
|
|
1025
|
-
case
|
|
1069
|
+
case Ci:
|
|
1070
|
+
case Ai:
|
|
1026
1071
|
return this.TypeSelector();
|
|
1027
|
-
case
|
|
1072
|
+
case Si:
|
|
1028
1073
|
return this.IdSelector();
|
|
1029
|
-
case
|
|
1074
|
+
case xi:
|
|
1030
1075
|
return this.NestingSelector();
|
|
1031
1076
|
}
|
|
1032
1077
|
break;
|
|
1033
1078
|
}
|
|
1034
1079
|
}
|
|
1035
1080
|
}
|
|
1036
|
-
const
|
|
1037
|
-
onWhiteSpace:
|
|
1038
|
-
getNode:
|
|
1081
|
+
const Ti = {
|
|
1082
|
+
onWhiteSpace: Ei,
|
|
1083
|
+
getNode: _i
|
|
1039
1084
|
};
|
|
1040
|
-
function
|
|
1085
|
+
function Oi() {
|
|
1041
1086
|
const t = this.createList();
|
|
1042
1087
|
this.skipSC();
|
|
1043
1088
|
e: for (; !this.eof; ) {
|
|
1044
1089
|
switch (this.tokenType) {
|
|
1045
|
-
case
|
|
1090
|
+
case x:
|
|
1046
1091
|
t.push(this.Identifier());
|
|
1047
1092
|
break;
|
|
1048
|
-
case
|
|
1093
|
+
case Pe:
|
|
1049
1094
|
t.push(this.String());
|
|
1050
1095
|
break;
|
|
1051
|
-
case
|
|
1096
|
+
case Me:
|
|
1052
1097
|
t.push(this.Operator());
|
|
1053
1098
|
break;
|
|
1054
|
-
case
|
|
1099
|
+
case I:
|
|
1055
1100
|
break e;
|
|
1056
1101
|
default:
|
|
1057
1102
|
this.error("Identifier, string or comma is expected");
|
|
@@ -1060,64 +1105,64 @@ function zi() {
|
|
|
1060
1105
|
}
|
|
1061
1106
|
return t;
|
|
1062
1107
|
}
|
|
1063
|
-
const
|
|
1108
|
+
const Ae = {
|
|
1064
1109
|
parse() {
|
|
1065
1110
|
return this.createSingleNodeList(
|
|
1066
1111
|
this.SelectorList()
|
|
1067
1112
|
);
|
|
1068
1113
|
}
|
|
1069
|
-
},
|
|
1114
|
+
}, Kt = {
|
|
1070
1115
|
parse() {
|
|
1071
1116
|
return this.createSingleNodeList(
|
|
1072
1117
|
this.Selector()
|
|
1073
1118
|
);
|
|
1074
1119
|
}
|
|
1075
|
-
},
|
|
1120
|
+
}, Ii = {
|
|
1076
1121
|
parse() {
|
|
1077
1122
|
return this.createSingleNodeList(
|
|
1078
1123
|
this.Identifier()
|
|
1079
1124
|
);
|
|
1080
1125
|
}
|
|
1081
|
-
},
|
|
1082
|
-
parse:
|
|
1083
|
-
},
|
|
1126
|
+
}, Ni = {
|
|
1127
|
+
parse: Oi
|
|
1128
|
+
}, it = {
|
|
1084
1129
|
parse() {
|
|
1085
1130
|
return this.createSingleNodeList(
|
|
1086
1131
|
this.Nth()
|
|
1087
1132
|
);
|
|
1088
1133
|
}
|
|
1089
|
-
},
|
|
1090
|
-
dir:
|
|
1091
|
-
has:
|
|
1092
|
-
lang:
|
|
1093
|
-
matches:
|
|
1094
|
-
is:
|
|
1095
|
-
"-moz-any":
|
|
1096
|
-
"-webkit-any":
|
|
1097
|
-
where:
|
|
1098
|
-
not:
|
|
1099
|
-
"nth-child":
|
|
1100
|
-
"nth-last-child":
|
|
1101
|
-
"nth-last-of-type":
|
|
1102
|
-
"nth-of-type":
|
|
1103
|
-
slotted:
|
|
1104
|
-
host:
|
|
1105
|
-
"host-context":
|
|
1106
|
-
}, ue = 43, K = 45,
|
|
1107
|
-
function
|
|
1134
|
+
}, $i = {
|
|
1135
|
+
dir: Ii,
|
|
1136
|
+
has: Ae,
|
|
1137
|
+
lang: Ni,
|
|
1138
|
+
matches: Ae,
|
|
1139
|
+
is: Ae,
|
|
1140
|
+
"-moz-any": Ae,
|
|
1141
|
+
"-webkit-any": Ae,
|
|
1142
|
+
where: Ae,
|
|
1143
|
+
not: Ae,
|
|
1144
|
+
"nth-child": it,
|
|
1145
|
+
"nth-last-child": it,
|
|
1146
|
+
"nth-last-of-type": it,
|
|
1147
|
+
"nth-of-type": it,
|
|
1148
|
+
slotted: Kt,
|
|
1149
|
+
host: Kt,
|
|
1150
|
+
"host-context": Kt
|
|
1151
|
+
}, ue = 43, K = 45, ct = 110, Le = !0, Di = !1;
|
|
1152
|
+
function ut(t, e) {
|
|
1108
1153
|
let n = this.tokenStart + t;
|
|
1109
1154
|
const r = this.charCodeAt(n);
|
|
1110
1155
|
for ((r === ue || r === K) && (e && this.error("Number sign is not allowed"), n++); n < this.tokenEnd; n++)
|
|
1111
1156
|
Q(this.charCodeAt(n)) || this.error("Integer is expected", n);
|
|
1112
1157
|
}
|
|
1113
|
-
function
|
|
1114
|
-
return
|
|
1158
|
+
function Ne(t) {
|
|
1159
|
+
return ut.call(this, 0, t);
|
|
1115
1160
|
}
|
|
1116
|
-
function
|
|
1161
|
+
function xe(t, e) {
|
|
1117
1162
|
if (!this.cmpChar(this.tokenStart + t, e)) {
|
|
1118
1163
|
let n = "";
|
|
1119
1164
|
switch (e) {
|
|
1120
|
-
case
|
|
1165
|
+
case ct:
|
|
1121
1166
|
n = "N is expected";
|
|
1122
1167
|
break;
|
|
1123
1168
|
case K:
|
|
@@ -1127,55 +1172,65 @@ function be(t, e) {
|
|
|
1127
1172
|
this.error(n, this.tokenStart + t);
|
|
1128
1173
|
}
|
|
1129
1174
|
}
|
|
1130
|
-
function
|
|
1175
|
+
function Qt() {
|
|
1131
1176
|
let t = 0, e = 0, n = this.tokenType;
|
|
1132
1177
|
for (; n === J || n === he; )
|
|
1133
1178
|
n = this.lookupType(++t);
|
|
1134
|
-
if (n !==
|
|
1179
|
+
if (n !== E)
|
|
1135
1180
|
if (this.isDelim(ue, t) || this.isDelim(K, t)) {
|
|
1136
1181
|
e = this.isDelim(ue, t) ? ue : K;
|
|
1137
1182
|
do
|
|
1138
1183
|
n = this.lookupType(++t);
|
|
1139
1184
|
while (n === J || n === he);
|
|
1140
|
-
n !==
|
|
1185
|
+
n !== E && (this.skip(t), Ne.call(this, Le));
|
|
1141
1186
|
} else
|
|
1142
1187
|
return null;
|
|
1143
|
-
return t > 0 && this.skip(t), e === 0 && (n = this.charCodeAt(this.tokenStart), n !== ue && n !== K && this.error("Number sign is expected")),
|
|
1188
|
+
return t > 0 && this.skip(t), e === 0 && (n = this.charCodeAt(this.tokenStart), n !== ue && n !== K && this.error("Number sign is expected")), Ne.call(this, e !== 0), e === K ? "-" + this.consume(E) : this.consume(E);
|
|
1144
1189
|
}
|
|
1145
|
-
function
|
|
1190
|
+
function Pi() {
|
|
1146
1191
|
const t = this.tokenStart;
|
|
1147
1192
|
let e = null, n = null;
|
|
1148
|
-
if (this.tokenType ===
|
|
1149
|
-
|
|
1150
|
-
else if (this.tokenType ===
|
|
1151
|
-
switch (e = "-1",
|
|
1193
|
+
if (this.tokenType === E)
|
|
1194
|
+
Ne.call(this, Di), n = this.consume(E);
|
|
1195
|
+
else if (this.tokenType === x && this.cmpChar(this.tokenStart, K))
|
|
1196
|
+
switch (e = "-1", xe.call(this, 1, ct), this.tokenEnd - this.tokenStart) {
|
|
1197
|
+
// -n
|
|
1198
|
+
// -n <signed-integer>
|
|
1199
|
+
// -n ['+' | '-'] <signless-integer>
|
|
1152
1200
|
case 2:
|
|
1153
|
-
this.next(), n =
|
|
1201
|
+
this.next(), n = Qt.call(this);
|
|
1154
1202
|
break;
|
|
1203
|
+
// -n- <signless-integer>
|
|
1155
1204
|
case 3:
|
|
1156
|
-
|
|
1205
|
+
xe.call(this, 2, K), this.next(), this.skipSC(), Ne.call(this, Le), n = "-" + this.consume(E);
|
|
1157
1206
|
break;
|
|
1207
|
+
// <dashndashdigit-ident>
|
|
1158
1208
|
default:
|
|
1159
|
-
|
|
1209
|
+
xe.call(this, 2, K), ut.call(this, 3, Le), this.next(), n = this.substrToCursor(t + 2);
|
|
1160
1210
|
}
|
|
1161
|
-
else if (this.tokenType ===
|
|
1211
|
+
else if (this.tokenType === x || this.isDelim(ue) && this.lookupType(1) === x) {
|
|
1162
1212
|
let r = 0;
|
|
1163
|
-
switch (e = "1", this.isDelim(ue) && (r = 1, this.next()),
|
|
1213
|
+
switch (e = "1", this.isDelim(ue) && (r = 1, this.next()), xe.call(this, 0, ct), this.tokenEnd - this.tokenStart) {
|
|
1214
|
+
// '+'? n
|
|
1215
|
+
// '+'? n <signed-integer>
|
|
1216
|
+
// '+'? n ['+' | '-'] <signless-integer>
|
|
1164
1217
|
case 1:
|
|
1165
|
-
this.next(), n =
|
|
1218
|
+
this.next(), n = Qt.call(this);
|
|
1166
1219
|
break;
|
|
1220
|
+
// '+'? n- <signless-integer>
|
|
1167
1221
|
case 2:
|
|
1168
|
-
|
|
1222
|
+
xe.call(this, 1, K), this.next(), this.skipSC(), Ne.call(this, Le), n = "-" + this.consume(E);
|
|
1169
1223
|
break;
|
|
1224
|
+
// '+'? <ndashdigit-ident>
|
|
1170
1225
|
default:
|
|
1171
|
-
|
|
1226
|
+
xe.call(this, 1, K), ut.call(this, 2, Le), this.next(), n = this.substrToCursor(t + r + 1);
|
|
1172
1227
|
}
|
|
1173
|
-
} else if (this.tokenType ===
|
|
1174
|
-
const r = this.charCodeAt(this.tokenStart),
|
|
1175
|
-
let o = this.tokenStart +
|
|
1228
|
+
} else if (this.tokenType === N) {
|
|
1229
|
+
const r = this.charCodeAt(this.tokenStart), s = r === ue || r === K;
|
|
1230
|
+
let o = this.tokenStart + s;
|
|
1176
1231
|
for (; o < this.tokenEnd && Q(this.charCodeAt(o)); o++)
|
|
1177
1232
|
;
|
|
1178
|
-
o === this.tokenStart +
|
|
1233
|
+
o === this.tokenStart + s && this.error("Integer is expected", this.tokenStart + s), xe.call(this, o - this.tokenStart, ct), e = this.substring(t, o), o + 1 === this.tokenEnd ? (this.next(), n = Qt.call(this)) : (xe.call(this, o - this.tokenStart + 1, K), o + 2 === this.tokenEnd ? (this.next(), this.skipSC(), Ne.call(this, Le), n = "-" + this.consume(E)) : (ut.call(this, o - this.tokenStart + 2, Le), this.next(), n = this.substrToCursor(o + 1)));
|
|
1179
1234
|
} else
|
|
1180
1235
|
this.error();
|
|
1181
1236
|
return e !== null && e.charCodeAt(0) === ue && (e = e.substr(1)), n !== null && n.charCodeAt(0) === ue && (n = n.substr(1)), {
|
|
@@ -1185,7 +1240,7 @@ function Ui() {
|
|
|
1185
1240
|
b: n
|
|
1186
1241
|
};
|
|
1187
1242
|
}
|
|
1188
|
-
function
|
|
1243
|
+
function Mi(t) {
|
|
1189
1244
|
if (t.a) {
|
|
1190
1245
|
const e = t.a === "+1" && "n" || t.a === "1" && "n" || t.a === "-1" && "-n" || t.a + "n";
|
|
1191
1246
|
if (t.b) {
|
|
@@ -1196,54 +1251,54 @@ function Vi(t) {
|
|
|
1196
1251
|
} else
|
|
1197
1252
|
this.tokenize(t.b);
|
|
1198
1253
|
}
|
|
1199
|
-
const
|
|
1200
|
-
function
|
|
1254
|
+
const Fi = 36, Pr = 42, ht = 61, zi = 94, ln = 124, Ri = 126;
|
|
1255
|
+
function qi() {
|
|
1201
1256
|
this.eof && this.error("Unexpected end of input");
|
|
1202
1257
|
const t = this.tokenStart;
|
|
1203
1258
|
let e = !1;
|
|
1204
|
-
return this.isDelim(
|
|
1259
|
+
return this.isDelim(Pr) ? (e = !0, this.next()) : this.isDelim(ln) || this.eat(x), this.isDelim(ln) ? this.charCodeAt(this.tokenStart + 1) !== ht ? (this.next(), this.eat(x)) : e && this.error("Identifier is expected", this.tokenEnd) : e && this.error("Vertical line is expected"), {
|
|
1205
1260
|
type: "Identifier",
|
|
1206
1261
|
loc: this.getLocation(t, this.tokenStart),
|
|
1207
1262
|
name: this.substrToCursor(t)
|
|
1208
1263
|
};
|
|
1209
1264
|
}
|
|
1210
|
-
function
|
|
1265
|
+
function Bi() {
|
|
1211
1266
|
const t = this.tokenStart, e = this.charCodeAt(t);
|
|
1212
|
-
return e !==
|
|
1213
|
-
e !==
|
|
1214
|
-
e !==
|
|
1215
|
-
e !==
|
|
1216
|
-
e !==
|
|
1217
|
-
e !==
|
|
1218
|
-
}
|
|
1219
|
-
function
|
|
1267
|
+
return e !== ht && // =
|
|
1268
|
+
e !== Ri && // ~=
|
|
1269
|
+
e !== zi && // ^=
|
|
1270
|
+
e !== Fi && // $=
|
|
1271
|
+
e !== Pr && // *=
|
|
1272
|
+
e !== ln && this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"), this.next(), e !== ht && (this.isDelim(ht) || this.error("Equal sign is expected"), this.next()), this.substrToCursor(t);
|
|
1273
|
+
}
|
|
1274
|
+
function ji() {
|
|
1220
1275
|
const t = this.tokenStart;
|
|
1221
|
-
let e, n = null, r = null,
|
|
1222
|
-
return this.eat(
|
|
1276
|
+
let e, n = null, r = null, s = null;
|
|
1277
|
+
return this.eat(St), this.skipSC(), e = qi.call(this), this.skipSC(), this.tokenType !== ft && (this.tokenType !== x && (n = Bi.call(this), this.skipSC(), r = this.tokenType === Pe ? this.String() : this.Identifier(), this.skipSC()), this.tokenType === x && (s = this.consume(x), this.skipSC())), this.eat(ft), {
|
|
1223
1278
|
type: "AttributeSelector",
|
|
1224
1279
|
loc: this.getLocation(t, this.tokenStart),
|
|
1225
1280
|
name: e,
|
|
1226
1281
|
matcher: n,
|
|
1227
1282
|
value: r,
|
|
1228
|
-
flags:
|
|
1283
|
+
flags: s
|
|
1229
1284
|
};
|
|
1230
1285
|
}
|
|
1231
|
-
function
|
|
1232
|
-
this.token($, "["), this.node(t.name), t.matcher !== null && (this.tokenize(t.matcher), this.node(t.value)), t.flags !== null && this.token(
|
|
1286
|
+
function Ui(t) {
|
|
1287
|
+
this.token($, "["), this.node(t.name), t.matcher !== null && (this.tokenize(t.matcher), this.node(t.value)), t.flags !== null && this.token(x, t.flags), this.token($, "]");
|
|
1233
1288
|
}
|
|
1234
|
-
const
|
|
1235
|
-
function
|
|
1236
|
-
return this.eatDelim(
|
|
1289
|
+
const Gi = 46;
|
|
1290
|
+
function Vi() {
|
|
1291
|
+
return this.eatDelim(Gi), {
|
|
1237
1292
|
type: "ClassSelector",
|
|
1238
1293
|
loc: this.getLocation(this.tokenStart - 1, this.tokenEnd),
|
|
1239
|
-
name: this.consume(
|
|
1294
|
+
name: this.consume(x)
|
|
1240
1295
|
};
|
|
1241
1296
|
}
|
|
1242
|
-
function
|
|
1243
|
-
this.token($, "."), this.token(
|
|
1297
|
+
function Hi(t) {
|
|
1298
|
+
this.token($, "."), this.token(x, t.name);
|
|
1244
1299
|
}
|
|
1245
|
-
const
|
|
1246
|
-
function
|
|
1300
|
+
const Wi = 43, lr = 47, Ki = 62, Qi = 126;
|
|
1301
|
+
function Ji() {
|
|
1247
1302
|
const t = this.tokenStart;
|
|
1248
1303
|
let e;
|
|
1249
1304
|
switch (this.tokenType) {
|
|
@@ -1252,13 +1307,13 @@ function is() {
|
|
|
1252
1307
|
break;
|
|
1253
1308
|
case $:
|
|
1254
1309
|
switch (this.charCodeAt(this.tokenStart)) {
|
|
1255
|
-
case
|
|
1256
|
-
case
|
|
1257
|
-
case
|
|
1310
|
+
case Ki:
|
|
1311
|
+
case Wi:
|
|
1312
|
+
case Qi:
|
|
1258
1313
|
this.next();
|
|
1259
1314
|
break;
|
|
1260
|
-
case
|
|
1261
|
-
this.next(), this.eatIdent("deep"), this.eatDelim(
|
|
1315
|
+
case lr:
|
|
1316
|
+
this.next(), this.eatIdent("deep"), this.eatDelim(lr);
|
|
1262
1317
|
break;
|
|
1263
1318
|
default:
|
|
1264
1319
|
this.error("Combinator is expected");
|
|
@@ -1272,42 +1327,42 @@ function is() {
|
|
|
1272
1327
|
name: e
|
|
1273
1328
|
};
|
|
1274
1329
|
}
|
|
1275
|
-
function
|
|
1330
|
+
function Yi(t) {
|
|
1276
1331
|
this.tokenize(t.name);
|
|
1277
1332
|
}
|
|
1278
|
-
function
|
|
1333
|
+
function Xi() {
|
|
1279
1334
|
return {
|
|
1280
1335
|
type: "Identifier",
|
|
1281
1336
|
loc: this.getLocation(this.tokenStart, this.tokenEnd),
|
|
1282
|
-
name: this.consume(
|
|
1337
|
+
name: this.consume(x)
|
|
1283
1338
|
};
|
|
1284
1339
|
}
|
|
1285
|
-
function
|
|
1286
|
-
this.token(
|
|
1340
|
+
function Zi(t) {
|
|
1341
|
+
this.token(x, t.name);
|
|
1287
1342
|
}
|
|
1288
|
-
function
|
|
1343
|
+
function es() {
|
|
1289
1344
|
const t = this.tokenStart;
|
|
1290
|
-
return this.eat(
|
|
1345
|
+
return this.eat(z), {
|
|
1291
1346
|
type: "IdSelector",
|
|
1292
1347
|
loc: this.getLocation(t, this.tokenStart),
|
|
1293
1348
|
name: this.substrToCursor(t + 1)
|
|
1294
1349
|
};
|
|
1295
1350
|
}
|
|
1296
|
-
function
|
|
1351
|
+
function ts(t) {
|
|
1297
1352
|
this.token($, "#" + t.name);
|
|
1298
1353
|
}
|
|
1299
|
-
const
|
|
1300
|
-
function
|
|
1354
|
+
const ns = 38;
|
|
1355
|
+
function rs() {
|
|
1301
1356
|
const t = this.tokenStart;
|
|
1302
|
-
return this.eatDelim(
|
|
1357
|
+
return this.eatDelim(ns), {
|
|
1303
1358
|
type: "NestingSelector",
|
|
1304
1359
|
loc: this.getLocation(t, this.tokenStart)
|
|
1305
1360
|
};
|
|
1306
1361
|
}
|
|
1307
|
-
function
|
|
1362
|
+
function is() {
|
|
1308
1363
|
this.token($, "&");
|
|
1309
1364
|
}
|
|
1310
|
-
function
|
|
1365
|
+
function ss() {
|
|
1311
1366
|
this.skipSC();
|
|
1312
1367
|
const t = this.tokenStart;
|
|
1313
1368
|
let e = t, n = null, r;
|
|
@@ -1318,10 +1373,10 @@ function ps() {
|
|
|
1318
1373
|
selector: n
|
|
1319
1374
|
};
|
|
1320
1375
|
}
|
|
1321
|
-
function
|
|
1322
|
-
this.node(t.nth), t.selector !== null && (this.token(
|
|
1376
|
+
function os(t) {
|
|
1377
|
+
this.node(t.nth), t.selector !== null && (this.token(x, "of"), this.node(t.selector));
|
|
1323
1378
|
}
|
|
1324
|
-
function
|
|
1379
|
+
function as() {
|
|
1325
1380
|
const t = this.tokenStart;
|
|
1326
1381
|
return this.next(), {
|
|
1327
1382
|
type: "Operator",
|
|
@@ -1329,65 +1384,65 @@ function ms() {
|
|
|
1329
1384
|
value: this.substrToCursor(t)
|
|
1330
1385
|
};
|
|
1331
1386
|
}
|
|
1332
|
-
function
|
|
1387
|
+
function ls(t) {
|
|
1333
1388
|
this.tokenize(t.value);
|
|
1334
1389
|
}
|
|
1335
|
-
function
|
|
1390
|
+
function cs() {
|
|
1336
1391
|
return {
|
|
1337
1392
|
type: "Percentage",
|
|
1338
1393
|
loc: this.getLocation(this.tokenStart, this.tokenEnd),
|
|
1339
|
-
value: this.consumeNumber(
|
|
1394
|
+
value: this.consumeNumber(M)
|
|
1340
1395
|
};
|
|
1341
1396
|
}
|
|
1342
|
-
function
|
|
1343
|
-
this.token(
|
|
1397
|
+
function us(t) {
|
|
1398
|
+
this.token(M, t.value + "%");
|
|
1344
1399
|
}
|
|
1345
|
-
function
|
|
1400
|
+
function hs() {
|
|
1346
1401
|
const t = this.tokenStart;
|
|
1347
1402
|
let e = null, n, r;
|
|
1348
|
-
return this.eat(
|
|
1403
|
+
return this.eat(te), this.tokenType === D ? (n = this.consumeFunctionName(), r = n.toLowerCase(), this.lookupNonWSType(0) == I ? e = this.createList() : hasOwnProperty.call(this.pseudo, r) ? (this.skipSC(), e = this.pseudo[r].call(this), this.skipSC()) : (e = this.createList(), e.push(
|
|
1349
1404
|
this.Raw(null, !1)
|
|
1350
|
-
)), this.eat(
|
|
1405
|
+
)), this.eat(I)) : n = this.consume(x), {
|
|
1351
1406
|
type: "PseudoClassSelector",
|
|
1352
1407
|
loc: this.getLocation(t, this.tokenStart),
|
|
1353
1408
|
name: n,
|
|
1354
1409
|
children: e
|
|
1355
1410
|
};
|
|
1356
1411
|
}
|
|
1357
|
-
function
|
|
1358
|
-
this.token(
|
|
1412
|
+
function fs(t) {
|
|
1413
|
+
this.token(te, ":"), t.children === null ? this.token(x, t.name) : (this.token(D, t.name + "("), this.children(t), this.token(I, ")"));
|
|
1359
1414
|
}
|
|
1360
|
-
function
|
|
1415
|
+
function ps() {
|
|
1361
1416
|
const t = this.tokenStart;
|
|
1362
1417
|
let e = null, n, r;
|
|
1363
|
-
return this.eat(
|
|
1418
|
+
return this.eat(te), this.eat(te), this.tokenType === D ? (n = this.consumeFunctionName(), r = n.toLowerCase(), this.lookupNonWSType(0) == I ? e = this.createList() : hasOwnProperty.call(this.pseudo, r) ? (this.skipSC(), e = this.pseudo[r].call(this), this.skipSC()) : (e = this.createList(), e.push(
|
|
1364
1419
|
this.Raw(null, !1)
|
|
1365
|
-
)), this.eat(
|
|
1420
|
+
)), this.eat(I)) : n = this.consume(x), {
|
|
1366
1421
|
type: "PseudoElementSelector",
|
|
1367
1422
|
loc: this.getLocation(t, this.tokenStart),
|
|
1368
1423
|
name: n,
|
|
1369
1424
|
children: e
|
|
1370
1425
|
};
|
|
1371
1426
|
}
|
|
1372
|
-
function
|
|
1373
|
-
this.token(
|
|
1427
|
+
function ds(t) {
|
|
1428
|
+
this.token(te, ":"), this.token(te, ":"), t.children === null ? this.token(x, t.name) : (this.token(D, t.name + "("), this.children(t), this.token(I, ")"));
|
|
1374
1429
|
}
|
|
1375
|
-
function
|
|
1430
|
+
function ms() {
|
|
1376
1431
|
return this.tokenIndex > 0 && this.lookupType(-1) === J ? this.tokenIndex > 1 ? this.getTokenStart(this.tokenIndex - 1) : this.firstCharOffset : this.tokenStart;
|
|
1377
1432
|
}
|
|
1378
|
-
function
|
|
1433
|
+
function gs(t, e) {
|
|
1379
1434
|
const n = this.getTokenStart(this.tokenIndex);
|
|
1380
1435
|
let r;
|
|
1381
|
-
return this.skipUntilBalanced(this.tokenIndex, t || this.consumeUntilBalanceEnd), e && this.tokenStart > n ? r =
|
|
1436
|
+
return this.skipUntilBalanced(this.tokenIndex, t || this.consumeUntilBalanceEnd), e && this.tokenStart > n ? r = ms.call(this) : r = this.tokenStart, {
|
|
1382
1437
|
type: "Raw",
|
|
1383
1438
|
loc: this.getLocation(n, r),
|
|
1384
1439
|
value: this.substring(n, r)
|
|
1385
1440
|
};
|
|
1386
1441
|
}
|
|
1387
|
-
function
|
|
1442
|
+
function ks(t) {
|
|
1388
1443
|
this.tokenize(t.value);
|
|
1389
1444
|
}
|
|
1390
|
-
function
|
|
1445
|
+
function ys() {
|
|
1391
1446
|
const t = this.readSequence(this.scope.Selector);
|
|
1392
1447
|
return this.getFirstListNode(t) === null && this.error("Selector is expected"), {
|
|
1393
1448
|
type: "Selector",
|
|
@@ -1395,13 +1450,13 @@ function Ls() {
|
|
|
1395
1450
|
children: t
|
|
1396
1451
|
};
|
|
1397
1452
|
}
|
|
1398
|
-
function
|
|
1453
|
+
function Ss(t) {
|
|
1399
1454
|
this.children(t);
|
|
1400
1455
|
}
|
|
1401
|
-
function
|
|
1456
|
+
function xs() {
|
|
1402
1457
|
const t = this.createList();
|
|
1403
1458
|
for (; !this.eof; ) {
|
|
1404
|
-
if (t.push(this.Selector()), this.tokenType ===
|
|
1459
|
+
if (t.push(this.Selector()), this.tokenType === Me) {
|
|
1405
1460
|
this.next();
|
|
1406
1461
|
continue;
|
|
1407
1462
|
}
|
|
@@ -1413,652 +1468,658 @@ function _s() {
|
|
|
1413
1468
|
children: t
|
|
1414
1469
|
};
|
|
1415
1470
|
}
|
|
1416
|
-
function
|
|
1417
|
-
this.children(t, () => this.token(
|
|
1471
|
+
function Cs(t) {
|
|
1472
|
+
this.children(t, () => this.token(Me, ","));
|
|
1418
1473
|
}
|
|
1419
|
-
const
|
|
1420
|
-
function
|
|
1421
|
-
const e = t.length, n = t.charCodeAt(0), r = n ===
|
|
1474
|
+
const cn = 92, Mr = 34, bs = 39;
|
|
1475
|
+
function ws(t) {
|
|
1476
|
+
const e = t.length, n = t.charCodeAt(0), r = n === Mr || n === bs ? 1 : 0, s = r === 1 && e > 1 && t.charCodeAt(e - 1) === n ? e - 2 : e - 1;
|
|
1422
1477
|
let o = "";
|
|
1423
|
-
for (let a = r; a <=
|
|
1424
|
-
let
|
|
1425
|
-
if (
|
|
1426
|
-
if (a ===
|
|
1478
|
+
for (let a = r; a <= s; a++) {
|
|
1479
|
+
let c = t.charCodeAt(a);
|
|
1480
|
+
if (c === cn) {
|
|
1481
|
+
if (a === s) {
|
|
1427
1482
|
a !== e - 1 && (o = t.substr(a + 1));
|
|
1428
1483
|
break;
|
|
1429
1484
|
}
|
|
1430
|
-
if (
|
|
1431
|
-
const
|
|
1432
|
-
a =
|
|
1485
|
+
if (c = t.charCodeAt(++a), ge(cn, c)) {
|
|
1486
|
+
const u = a - 1, i = Ge(t, u);
|
|
1487
|
+
a = i - 1, o += li(t.substring(u + 1, i));
|
|
1433
1488
|
} else
|
|
1434
|
-
|
|
1489
|
+
c === 13 && t.charCodeAt(a + 1) === 10 && a++;
|
|
1435
1490
|
} else
|
|
1436
1491
|
o += t[a];
|
|
1437
1492
|
}
|
|
1438
1493
|
return o;
|
|
1439
1494
|
}
|
|
1440
|
-
function
|
|
1441
|
-
const n = '"', r =
|
|
1442
|
-
let
|
|
1495
|
+
function vs(t, e) {
|
|
1496
|
+
const n = '"', r = Mr;
|
|
1497
|
+
let s = "", o = !1;
|
|
1443
1498
|
for (let a = 0; a < t.length; a++) {
|
|
1444
|
-
const
|
|
1445
|
-
if (
|
|
1446
|
-
|
|
1499
|
+
const c = t.charCodeAt(a);
|
|
1500
|
+
if (c === 0) {
|
|
1501
|
+
s += "�";
|
|
1447
1502
|
continue;
|
|
1448
1503
|
}
|
|
1449
|
-
if (
|
|
1450
|
-
|
|
1504
|
+
if (c <= 31 || c === 127) {
|
|
1505
|
+
s += "\\" + c.toString(16), o = !0;
|
|
1451
1506
|
continue;
|
|
1452
1507
|
}
|
|
1453
|
-
|
|
1508
|
+
c === r || c === cn ? (s += "\\" + t.charAt(a), o = !1) : (o && (Ue(c) || He(c)) && (s += " "), s += t.charAt(a), o = !1);
|
|
1454
1509
|
}
|
|
1455
|
-
return n +
|
|
1510
|
+
return n + s + n;
|
|
1456
1511
|
}
|
|
1457
|
-
function
|
|
1512
|
+
function As() {
|
|
1458
1513
|
return {
|
|
1459
1514
|
type: "String",
|
|
1460
1515
|
loc: this.getLocation(this.tokenStart, this.tokenEnd),
|
|
1461
|
-
value:
|
|
1516
|
+
value: ws(this.consume(Pe))
|
|
1462
1517
|
};
|
|
1463
1518
|
}
|
|
1464
|
-
function
|
|
1465
|
-
this.token(
|
|
1519
|
+
function Ls(t) {
|
|
1520
|
+
this.token(Pe, vs(t.value));
|
|
1466
1521
|
}
|
|
1467
|
-
const
|
|
1468
|
-
function
|
|
1469
|
-
this.tokenType !==
|
|
1522
|
+
const Es = 42, cr = 124;
|
|
1523
|
+
function Jt() {
|
|
1524
|
+
this.tokenType !== x && this.isDelim(Es) === !1 && this.error("Identifier or asterisk is expected"), this.next();
|
|
1470
1525
|
}
|
|
1471
|
-
function
|
|
1526
|
+
function _s() {
|
|
1472
1527
|
const t = this.tokenStart;
|
|
1473
|
-
return this.isDelim(
|
|
1528
|
+
return this.isDelim(cr) ? (this.next(), Jt.call(this)) : (Jt.call(this), this.isDelim(cr) && (this.next(), Jt.call(this))), {
|
|
1474
1529
|
type: "TypeSelector",
|
|
1475
1530
|
loc: this.getLocation(t, this.tokenStart),
|
|
1476
1531
|
name: this.substrToCursor(t)
|
|
1477
1532
|
};
|
|
1478
1533
|
}
|
|
1479
|
-
function
|
|
1534
|
+
function Ts(t) {
|
|
1480
1535
|
this.tokenize(t.name);
|
|
1481
1536
|
}
|
|
1482
|
-
const
|
|
1537
|
+
const Os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1483
1538
|
__proto__: null,
|
|
1484
|
-
AnPlusB:
|
|
1485
|
-
AttributeSelector:
|
|
1486
|
-
ClassSelector:
|
|
1487
|
-
Combinator:
|
|
1488
|
-
IdSelector:
|
|
1489
|
-
Identifier:
|
|
1490
|
-
NestingSelector:
|
|
1491
|
-
Nth:
|
|
1492
|
-
Operator:
|
|
1493
|
-
Percentage:
|
|
1494
|
-
PseudoClassSelector:
|
|
1495
|
-
PseudoElementSelector:
|
|
1496
|
-
Raw:
|
|
1497
|
-
Selector:
|
|
1498
|
-
SelectorList:
|
|
1499
|
-
String:
|
|
1500
|
-
TypeSelector:
|
|
1501
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1539
|
+
AnPlusB: Pi,
|
|
1540
|
+
AttributeSelector: ji,
|
|
1541
|
+
ClassSelector: Vi,
|
|
1542
|
+
Combinator: Ji,
|
|
1543
|
+
IdSelector: es,
|
|
1544
|
+
Identifier: Xi,
|
|
1545
|
+
NestingSelector: rs,
|
|
1546
|
+
Nth: ss,
|
|
1547
|
+
Operator: as,
|
|
1548
|
+
Percentage: cs,
|
|
1549
|
+
PseudoClassSelector: hs,
|
|
1550
|
+
PseudoElementSelector: ps,
|
|
1551
|
+
Raw: gs,
|
|
1552
|
+
Selector: ys,
|
|
1553
|
+
SelectorList: xs,
|
|
1554
|
+
String: As,
|
|
1555
|
+
TypeSelector: _s
|
|
1556
|
+
}, Symbol.toStringTag, { value: "Module" })), Is = {
|
|
1502
1557
|
parseContext: {
|
|
1503
1558
|
default: "SelectorList",
|
|
1504
1559
|
selectorList: "SelectorList",
|
|
1505
1560
|
selector: "Selector"
|
|
1506
1561
|
},
|
|
1507
|
-
scope: { Selector:
|
|
1562
|
+
scope: { Selector: Ti },
|
|
1508
1563
|
atrule: {},
|
|
1509
|
-
pseudo:
|
|
1510
|
-
node:
|
|
1511
|
-
},
|
|
1512
|
-
var
|
|
1513
|
-
|
|
1514
|
-
if (
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
}
|
|
1522
|
-
var
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
}
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
(
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1564
|
+
pseudo: $i,
|
|
1565
|
+
node: Os
|
|
1566
|
+
}, ur = yi(Is);
|
|
1567
|
+
var Yt = {}, st = {}, ot = {}, hr;
|
|
1568
|
+
function Ns() {
|
|
1569
|
+
if (hr) return ot;
|
|
1570
|
+
hr = 1;
|
|
1571
|
+
var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
|
|
1572
|
+
return ot.encode = function(e) {
|
|
1573
|
+
if (0 <= e && e < t.length)
|
|
1574
|
+
return t[e];
|
|
1575
|
+
throw new TypeError("Must be between 0 and 63: " + e);
|
|
1576
|
+
}, ot.decode = function(e) {
|
|
1577
|
+
var n = 65, r = 90, s = 97, o = 122, a = 48, c = 57, u = 43, i = 47, l = 26, d = 52;
|
|
1578
|
+
return n <= e && e <= r ? e - n : s <= e && e <= o ? e - s + l : a <= e && e <= c ? e - a + d : e == u ? 62 : e == i ? 63 : -1;
|
|
1579
|
+
}, ot;
|
|
1580
|
+
}
|
|
1581
|
+
var fr;
|
|
1582
|
+
function $s() {
|
|
1583
|
+
if (fr) return st;
|
|
1584
|
+
fr = 1;
|
|
1585
|
+
var t = Ns(), e = 5, n = 1 << e, r = n - 1, s = n;
|
|
1586
|
+
function o(c) {
|
|
1587
|
+
return c < 0 ? (-c << 1) + 1 : (c << 1) + 0;
|
|
1588
|
+
}
|
|
1589
|
+
function a(c) {
|
|
1590
|
+
var u = (c & 1) === 1, i = c >> 1;
|
|
1591
|
+
return u ? -i : i;
|
|
1592
|
+
}
|
|
1593
|
+
return st.encode = function(u) {
|
|
1594
|
+
var i = "", l, d = o(u);
|
|
1595
|
+
do
|
|
1596
|
+
l = d & r, d >>>= e, d > 0 && (l |= s), i += t.encode(l);
|
|
1597
|
+
while (d > 0);
|
|
1598
|
+
return i;
|
|
1599
|
+
}, st.decode = function(u, i, l) {
|
|
1600
|
+
var d = u.length, y = 0, g = 0, S, T;
|
|
1601
|
+
do {
|
|
1602
|
+
if (i >= d)
|
|
1603
|
+
throw new Error("Expected more digits in base 64 VLQ value.");
|
|
1604
|
+
if (T = t.decode(u.charCodeAt(i++)), T === -1)
|
|
1605
|
+
throw new Error("Invalid base64 digit: " + u.charAt(i - 1));
|
|
1606
|
+
S = !!(T & s), T &= r, y = y + (T << g), g += e;
|
|
1607
|
+
} while (S);
|
|
1608
|
+
l.value = a(y), l.rest = i;
|
|
1609
|
+
}, st;
|
|
1610
|
+
}
|
|
1611
|
+
var Xt = {}, pr;
|
|
1612
|
+
function gn() {
|
|
1613
|
+
return pr || (pr = 1, function(t) {
|
|
1614
|
+
function e(h, f, k) {
|
|
1615
|
+
if (f in h)
|
|
1616
|
+
return h[f];
|
|
1617
|
+
if (arguments.length === 3)
|
|
1618
|
+
return k;
|
|
1619
|
+
throw new Error('"' + f + '" is a required argument.');
|
|
1620
|
+
}
|
|
1621
|
+
t.getArg = e;
|
|
1622
|
+
var n = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/, r = /^data:.+\,.+$/;
|
|
1623
|
+
function s(h) {
|
|
1624
|
+
var f = h.match(n);
|
|
1625
|
+
return f ? {
|
|
1626
|
+
scheme: f[1],
|
|
1627
|
+
auth: f[2],
|
|
1628
|
+
host: f[3],
|
|
1629
|
+
port: f[4],
|
|
1630
|
+
path: f[5]
|
|
1631
|
+
} : null;
|
|
1632
|
+
}
|
|
1633
|
+
t.urlParse = s;
|
|
1634
|
+
function o(h) {
|
|
1635
|
+
var f = "";
|
|
1636
|
+
return h.scheme && (f += h.scheme + ":"), f += "//", h.auth && (f += h.auth + "@"), h.host && (f += h.host), h.port && (f += ":" + h.port), h.path && (f += h.path), f;
|
|
1637
|
+
}
|
|
1638
|
+
t.urlGenerate = o;
|
|
1639
|
+
var a = 32;
|
|
1640
|
+
function c(h) {
|
|
1641
|
+
var f = [];
|
|
1642
|
+
return function(k) {
|
|
1643
|
+
for (var p = 0; p < f.length; p++)
|
|
1644
|
+
if (f[p].input === k) {
|
|
1645
|
+
var Z = f[0];
|
|
1646
|
+
return f[0] = f[p], f[p] = Z, f[0].result;
|
|
1647
|
+
}
|
|
1648
|
+
var j = h(k);
|
|
1649
|
+
return f.unshift({
|
|
1650
|
+
input: k,
|
|
1651
|
+
result: j
|
|
1652
|
+
}), f.length > a && f.pop(), j;
|
|
1653
|
+
};
|
|
1654
|
+
}
|
|
1655
|
+
var u = c(function(f) {
|
|
1656
|
+
var k = f, p = s(f);
|
|
1657
|
+
if (p) {
|
|
1658
|
+
if (!p.path)
|
|
1659
|
+
return f;
|
|
1660
|
+
k = p.path;
|
|
1661
|
+
}
|
|
1662
|
+
for (var Z = t.isAbsolute(k), j = [], ke = 0, R = 0; ; )
|
|
1663
|
+
if (ke = R, R = k.indexOf("/", ke), R === -1) {
|
|
1664
|
+
j.push(k.slice(ke));
|
|
1665
|
+
break;
|
|
1666
|
+
} else
|
|
1667
|
+
for (j.push(k.slice(ke, R)); R < k.length && k[R] === "/"; )
|
|
1668
|
+
R++;
|
|
1669
|
+
for (var ye, de = 0, R = j.length - 1; R >= 0; R--)
|
|
1670
|
+
ye = j[R], ye === "." ? j.splice(R, 1) : ye === ".." ? de++ : de > 0 && (ye === "" ? (j.splice(R + 1, de), de = 0) : (j.splice(R, 2), de--));
|
|
1671
|
+
return k = j.join("/"), k === "" && (k = Z ? "/" : "."), p ? (p.path = k, o(p)) : k;
|
|
1672
|
+
});
|
|
1673
|
+
t.normalize = u;
|
|
1674
|
+
function i(h, f) {
|
|
1675
|
+
h === "" && (h = "."), f === "" && (f = ".");
|
|
1676
|
+
var k = s(f), p = s(h);
|
|
1677
|
+
if (p && (h = p.path || "/"), k && !k.scheme)
|
|
1678
|
+
return p && (k.scheme = p.scheme), o(k);
|
|
1679
|
+
if (k || f.match(r))
|
|
1680
|
+
return f;
|
|
1681
|
+
if (p && !p.host && !p.path)
|
|
1682
|
+
return p.host = f, o(p);
|
|
1683
|
+
var Z = f.charAt(0) === "/" ? f : u(h.replace(/\/+$/, "") + "/" + f);
|
|
1684
|
+
return p ? (p.path = Z, o(p)) : Z;
|
|
1685
|
+
}
|
|
1686
|
+
t.join = i, t.isAbsolute = function(h) {
|
|
1687
|
+
return h.charAt(0) === "/" || n.test(h);
|
|
1589
1688
|
};
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1689
|
+
function l(h, f) {
|
|
1690
|
+
h === "" && (h = "."), h = h.replace(/\/$/, "");
|
|
1691
|
+
for (var k = 0; f.indexOf(h + "/") !== 0; ) {
|
|
1692
|
+
var p = h.lastIndexOf("/");
|
|
1693
|
+
if (p < 0 || (h = h.slice(0, p), h.match(/^([^\/]+:\/)?\/*$/)))
|
|
1694
|
+
return f;
|
|
1695
|
+
++k;
|
|
1696
|
+
}
|
|
1697
|
+
return Array(k + 1).join("../") + f.substr(h.length + 1);
|
|
1597
1698
|
}
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
z++;
|
|
1605
|
-
for (var xe, me = 0, z = j.length - 1; z >= 0; z--)
|
|
1606
|
-
xe = j[z], xe === "." ? j.splice(z, 1) : xe === ".." ? me++ : me > 0 && (xe === "" ? (j.splice(z + 1, me), me = 0) : (j.splice(z, 2), me--));
|
|
1607
|
-
return g = j.join("/"), g === "" && (g = X ? "/" : "."), p ? (p.path = g, o(p)) : g;
|
|
1608
|
-
});
|
|
1609
|
-
t.normalize = c;
|
|
1610
|
-
function s(u, h) {
|
|
1611
|
-
u === "" && (u = "."), h === "" && (h = ".");
|
|
1612
|
-
var g = i(h), p = i(u);
|
|
1613
|
-
if (p && (u = p.path || "/"), g && !g.scheme)
|
|
1614
|
-
return p && (g.scheme = p.scheme), o(g);
|
|
1615
|
-
if (g || h.match(r))
|
|
1699
|
+
t.relative = l;
|
|
1700
|
+
var d = function() {
|
|
1701
|
+
var h = /* @__PURE__ */ Object.create(null);
|
|
1702
|
+
return !("__proto__" in h);
|
|
1703
|
+
}();
|
|
1704
|
+
function y(h) {
|
|
1616
1705
|
return h;
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
var p = u.lastIndexOf("/");
|
|
1629
|
-
if (p < 0 || (u = u.slice(0, p), u.match(/^([^\/]+:\/)?\/*$/)))
|
|
1630
|
-
return h;
|
|
1631
|
-
++g;
|
|
1632
|
-
}
|
|
1633
|
-
return Array(g + 1).join("../") + h.substr(u.length + 1);
|
|
1634
|
-
}
|
|
1635
|
-
t.relative = l;
|
|
1636
|
-
var m = function() {
|
|
1637
|
-
var u = /* @__PURE__ */ Object.create(null);
|
|
1638
|
-
return !("__proto__" in u);
|
|
1639
|
-
}();
|
|
1640
|
-
function y(u) {
|
|
1641
|
-
return u;
|
|
1642
|
-
}
|
|
1643
|
-
function C(u) {
|
|
1644
|
-
return q(u) ? "$" + u : u;
|
|
1645
|
-
}
|
|
1646
|
-
t.toSetString = m ? y : C;
|
|
1647
|
-
function _(u) {
|
|
1648
|
-
return q(u) ? u.slice(1) : u;
|
|
1649
|
-
}
|
|
1650
|
-
t.fromSetString = m ? y : _;
|
|
1651
|
-
function q(u) {
|
|
1652
|
-
if (!u)
|
|
1653
|
-
return !1;
|
|
1654
|
-
var h = u.length;
|
|
1655
|
-
if (h < 9 || u.charCodeAt(h - 1) !== 95 || u.charCodeAt(h - 2) !== 95 || u.charCodeAt(h - 3) !== 111 || u.charCodeAt(h - 4) !== 116 || u.charCodeAt(h - 5) !== 111 || u.charCodeAt(h - 6) !== 114 || u.charCodeAt(h - 7) !== 112 || u.charCodeAt(h - 8) !== 95 || u.charCodeAt(h - 9) !== 95)
|
|
1656
|
-
return !1;
|
|
1657
|
-
for (var g = h - 10; g >= 0; g--)
|
|
1658
|
-
if (u.charCodeAt(g) !== 36)
|
|
1706
|
+
}
|
|
1707
|
+
function g(h) {
|
|
1708
|
+
return T(h) ? "$" + h : h;
|
|
1709
|
+
}
|
|
1710
|
+
t.toSetString = d ? y : g;
|
|
1711
|
+
function S(h) {
|
|
1712
|
+
return T(h) ? h.slice(1) : h;
|
|
1713
|
+
}
|
|
1714
|
+
t.fromSetString = d ? y : S;
|
|
1715
|
+
function T(h) {
|
|
1716
|
+
if (!h)
|
|
1659
1717
|
return !1;
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1718
|
+
var f = h.length;
|
|
1719
|
+
if (f < 9 || h.charCodeAt(f - 1) !== 95 || h.charCodeAt(f - 2) !== 95 || h.charCodeAt(f - 3) !== 111 || h.charCodeAt(f - 4) !== 116 || h.charCodeAt(f - 5) !== 111 || h.charCodeAt(f - 6) !== 114 || h.charCodeAt(f - 7) !== 112 || h.charCodeAt(f - 8) !== 95 || h.charCodeAt(f - 9) !== 95)
|
|
1720
|
+
return !1;
|
|
1721
|
+
for (var k = f - 10; k >= 0; k--)
|
|
1722
|
+
if (h.charCodeAt(k) !== 36)
|
|
1723
|
+
return !1;
|
|
1724
|
+
return !0;
|
|
1725
|
+
}
|
|
1726
|
+
function P(h, f, k) {
|
|
1727
|
+
var p = X(h.source, f.source);
|
|
1728
|
+
return p !== 0 || (p = h.originalLine - f.originalLine, p !== 0) || (p = h.originalColumn - f.originalColumn, p !== 0 || k) || (p = h.generatedColumn - f.generatedColumn, p !== 0) || (p = h.generatedLine - f.generatedLine, p !== 0) ? p : X(h.name, f.name);
|
|
1729
|
+
}
|
|
1730
|
+
t.compareByOriginalPositions = P;
|
|
1731
|
+
function G(h, f, k) {
|
|
1732
|
+
var p;
|
|
1733
|
+
return p = h.originalLine - f.originalLine, p !== 0 || (p = h.originalColumn - f.originalColumn, p !== 0 || k) || (p = h.generatedColumn - f.generatedColumn, p !== 0) || (p = h.generatedLine - f.generatedLine, p !== 0) ? p : X(h.name, f.name);
|
|
1734
|
+
}
|
|
1735
|
+
t.compareByOriginalPositionsNoSource = G;
|
|
1736
|
+
function Y(h, f, k) {
|
|
1737
|
+
var p = h.generatedLine - f.generatedLine;
|
|
1738
|
+
return p !== 0 || (p = h.generatedColumn - f.generatedColumn, p !== 0 || k) || (p = X(h.source, f.source), p !== 0) || (p = h.originalLine - f.originalLine, p !== 0) || (p = h.originalColumn - f.originalColumn, p !== 0) ? p : X(h.name, f.name);
|
|
1739
|
+
}
|
|
1740
|
+
t.compareByGeneratedPositionsDeflated = Y;
|
|
1741
|
+
function be(h, f, k) {
|
|
1742
|
+
var p = h.generatedColumn - f.generatedColumn;
|
|
1743
|
+
return p !== 0 || k || (p = X(h.source, f.source), p !== 0) || (p = h.originalLine - f.originalLine, p !== 0) || (p = h.originalColumn - f.originalColumn, p !== 0) ? p : X(h.name, f.name);
|
|
1744
|
+
}
|
|
1745
|
+
t.compareByGeneratedPositionsDeflatedNoLine = be;
|
|
1746
|
+
function X(h, f) {
|
|
1747
|
+
return h === f ? 0 : h === null ? 1 : f === null ? -1 : h > f ? 1 : -1;
|
|
1748
|
+
}
|
|
1749
|
+
function Ke(h, f) {
|
|
1750
|
+
var k = h.generatedLine - f.generatedLine;
|
|
1751
|
+
return k !== 0 || (k = h.generatedColumn - f.generatedColumn, k !== 0) || (k = X(h.source, f.source), k !== 0) || (k = h.originalLine - f.originalLine, k !== 0) || (k = h.originalColumn - f.originalColumn, k !== 0) ? k : X(h.name, f.name);
|
|
1752
|
+
}
|
|
1753
|
+
t.compareByGeneratedPositionsInflated = Ke;
|
|
1754
|
+
function Qe(h) {
|
|
1755
|
+
return JSON.parse(h.replace(/^\)]}'[^\n]*\n/, ""));
|
|
1756
|
+
}
|
|
1757
|
+
t.parseSourceMapInput = Qe;
|
|
1758
|
+
function Je(h, f, k) {
|
|
1759
|
+
if (f = f || "", h && (h[h.length - 1] !== "/" && f[0] !== "/" && (h += "/"), f = h + f), k) {
|
|
1760
|
+
var p = s(k);
|
|
1761
|
+
if (!p)
|
|
1762
|
+
throw new Error("sourceMapURL could not be parsed");
|
|
1763
|
+
if (p.path) {
|
|
1764
|
+
var Z = p.path.lastIndexOf("/");
|
|
1765
|
+
Z >= 0 && (p.path = p.path.substring(0, Z + 1));
|
|
1766
|
+
}
|
|
1767
|
+
f = i(o(p), f);
|
|
1702
1768
|
}
|
|
1703
|
-
|
|
1769
|
+
return u(f);
|
|
1704
1770
|
}
|
|
1705
|
-
|
|
1706
|
-
}
|
|
1707
|
-
|
|
1708
|
-
}
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
return r
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
};
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
}
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
}
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
sourceRoot
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1771
|
+
t.computeSourceURL = Je;
|
|
1772
|
+
}(Xt)), Xt;
|
|
1773
|
+
}
|
|
1774
|
+
var Zt = {}, dr;
|
|
1775
|
+
function Ds() {
|
|
1776
|
+
if (dr) return Zt;
|
|
1777
|
+
dr = 1;
|
|
1778
|
+
var t = gn(), e = Object.prototype.hasOwnProperty, n = typeof Map < "u";
|
|
1779
|
+
function r() {
|
|
1780
|
+
this._array = [], this._set = n ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
|
|
1781
|
+
}
|
|
1782
|
+
return r.fromArray = function(o, a) {
|
|
1783
|
+
for (var c = new r(), u = 0, i = o.length; u < i; u++)
|
|
1784
|
+
c.add(o[u], a);
|
|
1785
|
+
return c;
|
|
1786
|
+
}, r.prototype.size = function() {
|
|
1787
|
+
return n ? this._set.size : Object.getOwnPropertyNames(this._set).length;
|
|
1788
|
+
}, r.prototype.add = function(o, a) {
|
|
1789
|
+
var c = n ? o : t.toSetString(o), u = n ? this.has(o) : e.call(this._set, c), i = this._array.length;
|
|
1790
|
+
(!u || a) && this._array.push(o), u || (n ? this._set.set(o, i) : this._set[c] = i);
|
|
1791
|
+
}, r.prototype.has = function(o) {
|
|
1792
|
+
if (n)
|
|
1793
|
+
return this._set.has(o);
|
|
1794
|
+
var a = t.toSetString(o);
|
|
1795
|
+
return e.call(this._set, a);
|
|
1796
|
+
}, r.prototype.indexOf = function(o) {
|
|
1797
|
+
if (n) {
|
|
1798
|
+
var a = this._set.get(o);
|
|
1799
|
+
if (a >= 0)
|
|
1800
|
+
return a;
|
|
1801
|
+
} else {
|
|
1802
|
+
var c = t.toSetString(o);
|
|
1803
|
+
if (e.call(this._set, c))
|
|
1804
|
+
return this._set[c];
|
|
1805
|
+
}
|
|
1806
|
+
throw new Error('"' + o + '" is not in the set.');
|
|
1807
|
+
}, r.prototype.at = function(o) {
|
|
1808
|
+
if (o >= 0 && o < this._array.length)
|
|
1809
|
+
return this._array[o];
|
|
1810
|
+
throw new Error("No element indexed by " + o);
|
|
1811
|
+
}, r.prototype.toArray = function() {
|
|
1812
|
+
return this._array.slice();
|
|
1813
|
+
}, Zt.ArraySet = r, Zt;
|
|
1814
|
+
}
|
|
1815
|
+
var en = {}, mr;
|
|
1816
|
+
function Ps() {
|
|
1817
|
+
if (mr) return en;
|
|
1818
|
+
mr = 1;
|
|
1819
|
+
var t = gn();
|
|
1820
|
+
function e(r, s) {
|
|
1821
|
+
var o = r.generatedLine, a = s.generatedLine, c = r.generatedColumn, u = s.generatedColumn;
|
|
1822
|
+
return a > o || a == o && u >= c || t.compareByGeneratedPositionsInflated(r, s) <= 0;
|
|
1823
|
+
}
|
|
1824
|
+
function n() {
|
|
1825
|
+
this._array = [], this._sorted = !0, this._last = { generatedLine: -1, generatedColumn: 0 };
|
|
1826
|
+
}
|
|
1827
|
+
return n.prototype.unsortedForEach = function(s, o) {
|
|
1828
|
+
this._array.forEach(s, o);
|
|
1829
|
+
}, n.prototype.add = function(s) {
|
|
1830
|
+
e(this._last, s) ? (this._last = s, this._array.push(s)) : (this._sorted = !1, this._array.push(s));
|
|
1831
|
+
}, n.prototype.toArray = function() {
|
|
1832
|
+
return this._sorted || (this._array.sort(t.compareByGeneratedPositionsInflated), this._sorted = !0), this._array;
|
|
1833
|
+
}, en.MappingList = n, en;
|
|
1834
|
+
}
|
|
1835
|
+
var gr;
|
|
1836
|
+
function Ms() {
|
|
1837
|
+
if (gr) return Yt;
|
|
1838
|
+
gr = 1;
|
|
1839
|
+
var t = $s(), e = gn(), n = Ds().ArraySet, r = Ps().MappingList;
|
|
1840
|
+
function s(o) {
|
|
1841
|
+
o || (o = {}), this._file = e.getArg(o, "file", null), this._sourceRoot = e.getArg(o, "sourceRoot", null), this._skipValidation = e.getArg(o, "skipValidation", !1), this._ignoreInvalidMapping = e.getArg(o, "ignoreInvalidMapping", !1), this._sources = new n(), this._names = new n(), this._mappings = new r(), this._sourcesContents = null;
|
|
1842
|
+
}
|
|
1843
|
+
return s.prototype._version = 3, s.fromSourceMap = function(a, c) {
|
|
1844
|
+
var u = a.sourceRoot, i = new s(Object.assign(c || {}, {
|
|
1845
|
+
file: a.file,
|
|
1846
|
+
sourceRoot: u
|
|
1847
|
+
}));
|
|
1848
|
+
return a.eachMapping(function(l) {
|
|
1849
|
+
var d = {
|
|
1850
|
+
generated: {
|
|
1851
|
+
line: l.generatedLine,
|
|
1852
|
+
column: l.generatedColumn
|
|
1853
|
+
}
|
|
1854
|
+
};
|
|
1855
|
+
l.source != null && (d.source = l.source, u != null && (d.source = e.relative(u, d.source)), d.original = {
|
|
1856
|
+
line: l.originalLine,
|
|
1857
|
+
column: l.originalColumn
|
|
1858
|
+
}, l.name != null && (d.name = l.name)), i.addMapping(d);
|
|
1859
|
+
}), a.sources.forEach(function(l) {
|
|
1860
|
+
var d = l;
|
|
1861
|
+
u !== null && (d = e.relative(u, l)), i._sources.has(d) || i._sources.add(d);
|
|
1862
|
+
var y = a.sourceContentFor(l);
|
|
1863
|
+
y != null && i.setSourceContent(l, y);
|
|
1864
|
+
}), i;
|
|
1865
|
+
}, s.prototype.addMapping = function(a) {
|
|
1866
|
+
var c = e.getArg(a, "generated"), u = e.getArg(a, "original", null), i = e.getArg(a, "source", null), l = e.getArg(a, "name", null);
|
|
1867
|
+
!this._skipValidation && this._validateMapping(c, u, i, l) === !1 || (i != null && (i = String(i), this._sources.has(i) || this._sources.add(i)), l != null && (l = String(l), this._names.has(l) || this._names.add(l)), this._mappings.add({
|
|
1868
|
+
generatedLine: c.line,
|
|
1869
|
+
generatedColumn: c.column,
|
|
1870
|
+
originalLine: u != null && u.line,
|
|
1871
|
+
originalColumn: u != null && u.column,
|
|
1872
|
+
source: i,
|
|
1873
|
+
name: l
|
|
1874
|
+
}));
|
|
1875
|
+
}, s.prototype.setSourceContent = function(a, c) {
|
|
1876
|
+
var u = a;
|
|
1877
|
+
this._sourceRoot != null && (u = e.relative(this._sourceRoot, u)), c != null ? (this._sourcesContents || (this._sourcesContents = /* @__PURE__ */ Object.create(null)), this._sourcesContents[e.toSetString(u)] = c) : this._sourcesContents && (delete this._sourcesContents[e.toSetString(u)], Object.keys(this._sourcesContents).length === 0 && (this._sourcesContents = null));
|
|
1878
|
+
}, s.prototype.applySourceMap = function(a, c, u) {
|
|
1879
|
+
var i = c;
|
|
1880
|
+
if (c == null) {
|
|
1881
|
+
if (a.file == null)
|
|
1882
|
+
throw new Error(
|
|
1883
|
+
`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`
|
|
1884
|
+
);
|
|
1885
|
+
i = a.file;
|
|
1886
|
+
}
|
|
1887
|
+
var l = this._sourceRoot;
|
|
1888
|
+
l != null && (i = e.relative(l, i));
|
|
1889
|
+
var d = new n(), y = new n();
|
|
1890
|
+
this._mappings.unsortedForEach(function(g) {
|
|
1891
|
+
if (g.source === i && g.originalLine != null) {
|
|
1892
|
+
var S = a.originalPositionFor({
|
|
1893
|
+
line: g.originalLine,
|
|
1894
|
+
column: g.originalColumn
|
|
1895
|
+
});
|
|
1896
|
+
S.source != null && (g.source = S.source, u != null && (g.source = e.join(u, g.source)), l != null && (g.source = e.relative(l, g.source)), g.originalLine = S.line, g.originalColumn = S.column, S.name != null && (g.name = S.name));
|
|
1785
1897
|
}
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
},
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
ne.prototype.setSourceContent = function(e, n) {
|
|
1810
|
-
var r = e;
|
|
1811
|
-
this._sourceRoot != null && (r = D.relative(this._sourceRoot, r)), n != null ? (this._sourcesContents || (this._sourcesContents = /* @__PURE__ */ Object.create(null)), this._sourcesContents[D.toSetString(r)] = n) : this._sourcesContents && (delete this._sourcesContents[D.toSetString(r)], Object.keys(this._sourcesContents).length === 0 && (this._sourcesContents = null));
|
|
1812
|
-
};
|
|
1813
|
-
ne.prototype.applySourceMap = function(e, n, r) {
|
|
1814
|
-
var i = n;
|
|
1815
|
-
if (n == null) {
|
|
1816
|
-
if (e.file == null)
|
|
1817
|
-
throw new Error(
|
|
1818
|
-
`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`
|
|
1819
|
-
);
|
|
1820
|
-
i = e.file;
|
|
1821
|
-
}
|
|
1822
|
-
var o = this._sourceRoot;
|
|
1823
|
-
o != null && (i = D.relative(o, i));
|
|
1824
|
-
var a = new xt(), f = new xt();
|
|
1825
|
-
this._mappings.unsortedForEach(function(c) {
|
|
1826
|
-
if (c.source === i && c.originalLine != null) {
|
|
1827
|
-
var s = e.originalPositionFor({
|
|
1828
|
-
line: c.originalLine,
|
|
1829
|
-
column: c.originalColumn
|
|
1898
|
+
var T = g.source;
|
|
1899
|
+
T != null && !d.has(T) && d.add(T);
|
|
1900
|
+
var P = g.name;
|
|
1901
|
+
P != null && !y.has(P) && y.add(P);
|
|
1902
|
+
}, this), this._sources = d, this._names = y, a.sources.forEach(function(g) {
|
|
1903
|
+
var S = a.sourceContentFor(g);
|
|
1904
|
+
S != null && (u != null && (g = e.join(u, g)), l != null && (g = e.relative(l, g)), this.setSourceContent(g, S));
|
|
1905
|
+
}, this);
|
|
1906
|
+
}, s.prototype._validateMapping = function(a, c, u, i) {
|
|
1907
|
+
if (c && typeof c.line != "number" && typeof c.column != "number") {
|
|
1908
|
+
var l = "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.";
|
|
1909
|
+
if (this._ignoreInvalidMapping)
|
|
1910
|
+
return typeof console < "u" && console.warn && console.warn(l), !1;
|
|
1911
|
+
throw new Error(l);
|
|
1912
|
+
}
|
|
1913
|
+
if (!(a && "line" in a && "column" in a && a.line > 0 && a.column >= 0 && !c && !u && !i)) {
|
|
1914
|
+
if (a && "line" in a && "column" in a && c && "line" in c && "column" in c && a.line > 0 && a.column >= 0 && c.line > 0 && c.column >= 0 && u)
|
|
1915
|
+
return;
|
|
1916
|
+
var l = "Invalid mapping: " + JSON.stringify({
|
|
1917
|
+
generated: a,
|
|
1918
|
+
source: u,
|
|
1919
|
+
original: c,
|
|
1920
|
+
name: i
|
|
1830
1921
|
});
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
l != null && !a.has(l) && a.add(l);
|
|
1835
|
-
var m = c.name;
|
|
1836
|
-
m != null && !f.has(m) && f.add(m);
|
|
1837
|
-
}, this), this._sources = a, this._names = f, e.sources.forEach(function(c) {
|
|
1838
|
-
var s = e.sourceContentFor(c);
|
|
1839
|
-
s != null && (r != null && (c = D.join(r, c)), o != null && (c = D.relative(o, c)), this.setSourceContent(c, s));
|
|
1840
|
-
}, this);
|
|
1841
|
-
};
|
|
1842
|
-
ne.prototype._validateMapping = function(e, n, r, i) {
|
|
1843
|
-
if (n && typeof n.line != "number" && typeof n.column != "number") {
|
|
1844
|
-
var o = "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.";
|
|
1845
|
-
if (this._ignoreInvalidMapping)
|
|
1846
|
-
return typeof console < "u" && console.warn && console.warn(o), !1;
|
|
1847
|
-
throw new Error(o);
|
|
1848
|
-
}
|
|
1849
|
-
if (!(e && "line" in e && "column" in e && e.line > 0 && e.column >= 0 && !n && !r && !i)) {
|
|
1850
|
-
if (e && "line" in e && "column" in e && n && "line" in n && "column" in n && e.line > 0 && e.column >= 0 && n.line > 0 && n.column >= 0 && r)
|
|
1851
|
-
return;
|
|
1852
|
-
var o = "Invalid mapping: " + JSON.stringify({
|
|
1853
|
-
generated: e,
|
|
1854
|
-
source: r,
|
|
1855
|
-
original: n,
|
|
1856
|
-
name: i
|
|
1857
|
-
});
|
|
1858
|
-
if (this._ignoreInvalidMapping)
|
|
1859
|
-
return typeof console < "u" && console.warn && console.warn(o), !1;
|
|
1860
|
-
throw new Error(o);
|
|
1861
|
-
}
|
|
1862
|
-
};
|
|
1863
|
-
ne.prototype._serializeMappings = function() {
|
|
1864
|
-
for (var e = 0, n = 1, r = 0, i = 0, o = 0, a = 0, f = "", c, s, l, m, y = this._mappings.toArray(), C = 0, _ = y.length; C < _; C++) {
|
|
1865
|
-
if (s = y[C], c = "", s.generatedLine !== n)
|
|
1866
|
-
for (e = 0; s.generatedLine !== n; )
|
|
1867
|
-
c += ";", n++;
|
|
1868
|
-
else if (C > 0) {
|
|
1869
|
-
if (!D.compareByGeneratedPositionsInflated(s, y[C - 1]))
|
|
1870
|
-
continue;
|
|
1871
|
-
c += ",";
|
|
1922
|
+
if (this._ignoreInvalidMapping)
|
|
1923
|
+
return typeof console < "u" && console.warn && console.warn(l), !1;
|
|
1924
|
+
throw new Error(l);
|
|
1872
1925
|
}
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
}
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1926
|
+
}, s.prototype._serializeMappings = function() {
|
|
1927
|
+
for (var a = 0, c = 1, u = 0, i = 0, l = 0, d = 0, y = "", g, S, T, P, G = this._mappings.toArray(), Y = 0, be = G.length; Y < be; Y++) {
|
|
1928
|
+
if (S = G[Y], g = "", S.generatedLine !== c)
|
|
1929
|
+
for (a = 0; S.generatedLine !== c; )
|
|
1930
|
+
g += ";", c++;
|
|
1931
|
+
else if (Y > 0) {
|
|
1932
|
+
if (!e.compareByGeneratedPositionsInflated(S, G[Y - 1]))
|
|
1933
|
+
continue;
|
|
1934
|
+
g += ",";
|
|
1935
|
+
}
|
|
1936
|
+
g += t.encode(S.generatedColumn - a), a = S.generatedColumn, S.source != null && (P = this._sources.indexOf(S.source), g += t.encode(P - d), d = P, g += t.encode(S.originalLine - 1 - i), i = S.originalLine - 1, g += t.encode(S.originalColumn - u), u = S.originalColumn, S.name != null && (T = this._names.indexOf(S.name), g += t.encode(T - l), l = T)), y += g;
|
|
1937
|
+
}
|
|
1938
|
+
return y;
|
|
1939
|
+
}, s.prototype._generateSourcesContent = function(a, c) {
|
|
1940
|
+
return a.map(function(u) {
|
|
1941
|
+
if (!this._sourcesContents)
|
|
1942
|
+
return null;
|
|
1943
|
+
c != null && (u = e.relative(c, u));
|
|
1944
|
+
var i = e.toSetString(u);
|
|
1945
|
+
return Object.prototype.hasOwnProperty.call(this._sourcesContents, i) ? this._sourcesContents[i] : null;
|
|
1946
|
+
}, this);
|
|
1947
|
+
}, s.prototype.toJSON = function() {
|
|
1948
|
+
var a = {
|
|
1949
|
+
version: this._version,
|
|
1950
|
+
sources: this._sources.toArray(),
|
|
1951
|
+
names: this._names.toArray(),
|
|
1952
|
+
mappings: this._serializeMappings()
|
|
1953
|
+
};
|
|
1954
|
+
return this._file != null && (a.file = this._file), this._sourceRoot != null && (a.sourceRoot = this._sourceRoot), this._sourcesContents && (a.sourcesContent = this._generateSourcesContent(a.sources, a.sourceRoot)), a;
|
|
1955
|
+
}, s.prototype.toString = function() {
|
|
1956
|
+
return JSON.stringify(this.toJSON());
|
|
1957
|
+
}, Yt.SourceMapGenerator = s, Yt;
|
|
1958
|
+
}
|
|
1959
|
+
var Fs = Ms();
|
|
1960
|
+
const kr = /* @__PURE__ */ new Set(["Atrule", "Selector", "Declaration"]);
|
|
1961
|
+
function zs(t) {
|
|
1962
|
+
const e = new Fs.SourceMapGenerator(), n = {
|
|
1902
1963
|
line: 1,
|
|
1903
1964
|
column: 0
|
|
1904
1965
|
}, r = {
|
|
1905
1966
|
line: 0,
|
|
1906
1967
|
// should be zero to add first mapping
|
|
1907
1968
|
column: 0
|
|
1908
|
-
},
|
|
1969
|
+
}, s = {
|
|
1909
1970
|
line: 1,
|
|
1910
1971
|
column: 0
|
|
1911
1972
|
}, o = {
|
|
1912
|
-
generated:
|
|
1973
|
+
generated: s
|
|
1913
1974
|
};
|
|
1914
|
-
let a = 1,
|
|
1915
|
-
const
|
|
1975
|
+
let a = 1, c = 0, u = !1;
|
|
1976
|
+
const i = t.node;
|
|
1916
1977
|
t.node = function(y) {
|
|
1917
|
-
if (y.loc && y.loc.start &&
|
|
1918
|
-
const
|
|
1919
|
-
(r.line !==
|
|
1978
|
+
if (y.loc && y.loc.start && kr.has(y.type)) {
|
|
1979
|
+
const g = y.loc.start.line, S = y.loc.start.column - 1;
|
|
1980
|
+
(r.line !== g || r.column !== S) && (r.line = g, r.column = S, n.line = a, n.column = c, u && (u = !1, (n.line !== s.line || n.column !== s.column) && e.addMapping(o)), u = !0, e.addMapping({
|
|
1920
1981
|
source: y.loc.source,
|
|
1921
1982
|
original: r,
|
|
1922
1983
|
generated: n
|
|
1923
1984
|
}));
|
|
1924
1985
|
}
|
|
1925
|
-
|
|
1986
|
+
i.call(this, y), u && kr.has(y.type) && (s.line = a, s.column = c);
|
|
1926
1987
|
};
|
|
1927
1988
|
const l = t.emit;
|
|
1928
|
-
t.emit = function(y,
|
|
1929
|
-
for (let
|
|
1930
|
-
y.charCodeAt(
|
|
1931
|
-
l(y,
|
|
1989
|
+
t.emit = function(y, g, S) {
|
|
1990
|
+
for (let T = 0; T < y.length; T++)
|
|
1991
|
+
y.charCodeAt(T) === 10 ? (a++, c = 0) : c++;
|
|
1992
|
+
l(y, g, S);
|
|
1932
1993
|
};
|
|
1933
|
-
const
|
|
1994
|
+
const d = t.result;
|
|
1934
1995
|
return t.result = function() {
|
|
1935
|
-
return
|
|
1936
|
-
css:
|
|
1996
|
+
return u && e.addMapping(o), {
|
|
1997
|
+
css: d(),
|
|
1937
1998
|
map: e
|
|
1938
1999
|
};
|
|
1939
2000
|
}, t;
|
|
1940
2001
|
}
|
|
1941
|
-
const
|
|
2002
|
+
const Rs = 43, qs = 45, tn = (t, e) => {
|
|
1942
2003
|
if (t === $ && (t = e), typeof t == "string") {
|
|
1943
2004
|
const n = t.charCodeAt(0);
|
|
1944
2005
|
return n > 127 ? 32768 : n << 8;
|
|
1945
2006
|
}
|
|
1946
2007
|
return t;
|
|
1947
|
-
},
|
|
1948
|
-
[
|
|
1949
|
-
[
|
|
1950
|
-
[
|
|
1951
|
-
[
|
|
1952
|
-
[
|
|
1953
|
-
[
|
|
1954
|
-
[
|
|
1955
|
-
[
|
|
1956
|
-
[
|
|
1957
|
-
[
|
|
1958
|
-
[U,
|
|
1959
|
-
[U,
|
|
2008
|
+
}, Fr = [
|
|
2009
|
+
[x, x],
|
|
2010
|
+
[x, D],
|
|
2011
|
+
[x, ie],
|
|
2012
|
+
[x, se],
|
|
2013
|
+
[x, "-"],
|
|
2014
|
+
[x, E],
|
|
2015
|
+
[x, M],
|
|
2016
|
+
[x, N],
|
|
2017
|
+
[x, oe],
|
|
2018
|
+
[x, ne],
|
|
2019
|
+
[U, x],
|
|
2020
|
+
[U, D],
|
|
1960
2021
|
[U, ie],
|
|
1961
2022
|
[U, se],
|
|
1962
2023
|
[U, "-"],
|
|
1963
|
-
[U,
|
|
1964
|
-
[U,
|
|
1965
|
-
[U,
|
|
2024
|
+
[U, E],
|
|
2025
|
+
[U, M],
|
|
2026
|
+
[U, N],
|
|
1966
2027
|
[U, oe],
|
|
1967
|
-
[
|
|
1968
|
-
[
|
|
1969
|
-
[
|
|
1970
|
-
[
|
|
1971
|
-
[
|
|
1972
|
-
[
|
|
1973
|
-
[
|
|
1974
|
-
[
|
|
1975
|
-
[
|
|
1976
|
-
[
|
|
1977
|
-
[
|
|
1978
|
-
[
|
|
1979
|
-
[
|
|
1980
|
-
[
|
|
1981
|
-
[
|
|
1982
|
-
[
|
|
1983
|
-
[
|
|
1984
|
-
[
|
|
1985
|
-
["#",
|
|
1986
|
-
["#",
|
|
2028
|
+
[z, x],
|
|
2029
|
+
[z, D],
|
|
2030
|
+
[z, ie],
|
|
2031
|
+
[z, se],
|
|
2032
|
+
[z, "-"],
|
|
2033
|
+
[z, E],
|
|
2034
|
+
[z, M],
|
|
2035
|
+
[z, N],
|
|
2036
|
+
[z, oe],
|
|
2037
|
+
[N, x],
|
|
2038
|
+
[N, D],
|
|
2039
|
+
[N, ie],
|
|
2040
|
+
[N, se],
|
|
2041
|
+
[N, "-"],
|
|
2042
|
+
[N, E],
|
|
2043
|
+
[N, M],
|
|
2044
|
+
[N, N],
|
|
2045
|
+
[N, oe],
|
|
2046
|
+
["#", x],
|
|
2047
|
+
["#", D],
|
|
1987
2048
|
["#", ie],
|
|
1988
2049
|
["#", se],
|
|
1989
2050
|
["#", "-"],
|
|
1990
|
-
["#",
|
|
1991
|
-
["#",
|
|
1992
|
-
["#",
|
|
2051
|
+
["#", E],
|
|
2052
|
+
["#", M],
|
|
2053
|
+
["#", N],
|
|
1993
2054
|
["#", oe],
|
|
1994
2055
|
// https://github.com/w3c/csswg-drafts/pull/6874
|
|
1995
|
-
["-",
|
|
1996
|
-
["-",
|
|
2056
|
+
["-", x],
|
|
2057
|
+
["-", D],
|
|
1997
2058
|
["-", ie],
|
|
1998
2059
|
["-", se],
|
|
1999
2060
|
["-", "-"],
|
|
2000
|
-
["-",
|
|
2001
|
-
["-",
|
|
2002
|
-
["-",
|
|
2061
|
+
["-", E],
|
|
2062
|
+
["-", M],
|
|
2063
|
+
["-", N],
|
|
2003
2064
|
["-", oe],
|
|
2004
2065
|
// https://github.com/w3c/csswg-drafts/pull/6874
|
|
2005
|
-
[
|
|
2006
|
-
[
|
|
2007
|
-
[
|
|
2008
|
-
[
|
|
2009
|
-
[
|
|
2010
|
-
[
|
|
2011
|
-
[
|
|
2012
|
-
[
|
|
2013
|
-
[
|
|
2066
|
+
[E, x],
|
|
2067
|
+
[E, D],
|
|
2068
|
+
[E, ie],
|
|
2069
|
+
[E, se],
|
|
2070
|
+
[E, E],
|
|
2071
|
+
[E, M],
|
|
2072
|
+
[E, N],
|
|
2073
|
+
[E, "%"],
|
|
2074
|
+
[E, oe],
|
|
2014
2075
|
// https://github.com/w3c/csswg-drafts/pull/6874
|
|
2015
|
-
["@",
|
|
2016
|
-
["@",
|
|
2076
|
+
["@", x],
|
|
2077
|
+
["@", D],
|
|
2017
2078
|
["@", ie],
|
|
2018
2079
|
["@", se],
|
|
2019
2080
|
["@", "-"],
|
|
2020
2081
|
["@", oe],
|
|
2021
2082
|
// https://github.com/w3c/csswg-drafts/pull/6874
|
|
2022
|
-
[".",
|
|
2023
|
-
[".",
|
|
2024
|
-
[".",
|
|
2025
|
-
["+",
|
|
2026
|
-
["+",
|
|
2027
|
-
["+",
|
|
2083
|
+
[".", E],
|
|
2084
|
+
[".", M],
|
|
2085
|
+
[".", N],
|
|
2086
|
+
["+", E],
|
|
2087
|
+
["+", M],
|
|
2088
|
+
["+", N],
|
|
2028
2089
|
["/", "*"]
|
|
2029
|
-
],
|
|
2030
|
-
[
|
|
2031
|
-
[
|
|
2032
|
-
[
|
|
2090
|
+
], Bs = Fr.concat([
|
|
2091
|
+
[x, z],
|
|
2092
|
+
[N, z],
|
|
2093
|
+
[z, z],
|
|
2094
|
+
[U, ne],
|
|
2095
|
+
[U, Pe],
|
|
2033
2096
|
[U, te],
|
|
2034
|
-
[
|
|
2035
|
-
[
|
|
2036
|
-
[
|
|
2037
|
-
[
|
|
2038
|
-
[
|
|
2039
|
-
[
|
|
2040
|
-
[
|
|
2041
|
-
[
|
|
2042
|
-
[
|
|
2043
|
-
[
|
|
2044
|
-
[O, F],
|
|
2045
|
-
[O, "-"]
|
|
2097
|
+
[M, M],
|
|
2098
|
+
[M, N],
|
|
2099
|
+
[M, D],
|
|
2100
|
+
[M, "-"],
|
|
2101
|
+
[I, x],
|
|
2102
|
+
[I, D],
|
|
2103
|
+
[I, M],
|
|
2104
|
+
[I, N],
|
|
2105
|
+
[I, z],
|
|
2106
|
+
[I, "-"]
|
|
2046
2107
|
]);
|
|
2047
|
-
function
|
|
2108
|
+
function zr(t) {
|
|
2048
2109
|
const e = new Set(
|
|
2049
|
-
t.map(([n, r]) =>
|
|
2110
|
+
t.map(([n, r]) => tn(n) << 16 | tn(r))
|
|
2050
2111
|
);
|
|
2051
|
-
return function(n, r,
|
|
2052
|
-
const o =
|
|
2053
|
-
return (a ===
|
|
2112
|
+
return function(n, r, s) {
|
|
2113
|
+
const o = tn(r, s), a = s.charCodeAt(0);
|
|
2114
|
+
return (a === qs && r !== x && r !== D && r !== oe || a === Rs ? e.has(n << 16 | a << 8) : e.has(n << 16 | o)) && this.emit(" ", J, !0), o;
|
|
2054
2115
|
};
|
|
2055
2116
|
}
|
|
2056
|
-
const
|
|
2117
|
+
const js = zr(Fr), Rr = zr(Bs), yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2057
2118
|
__proto__: null,
|
|
2058
|
-
safe:
|
|
2059
|
-
spec:
|
|
2060
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2061
|
-
function
|
|
2119
|
+
safe: Rr,
|
|
2120
|
+
spec: js
|
|
2121
|
+
}, Symbol.toStringTag, { value: "Module" })), Us = 92;
|
|
2122
|
+
function Gs(t, e) {
|
|
2062
2123
|
if (typeof e == "function") {
|
|
2063
2124
|
let n = null;
|
|
2064
2125
|
t.children.forEach((r) => {
|
|
@@ -2068,227 +2129,227 @@ function Ys(t, e) {
|
|
|
2068
2129
|
}
|
|
2069
2130
|
t.children.forEach(this.node, this);
|
|
2070
2131
|
}
|
|
2071
|
-
function
|
|
2072
|
-
|
|
2132
|
+
function Vs(t) {
|
|
2133
|
+
Dr(t, (e, n, r) => {
|
|
2073
2134
|
this.token(e, t.slice(n, r));
|
|
2074
2135
|
});
|
|
2075
2136
|
}
|
|
2076
|
-
function
|
|
2137
|
+
function Hs(t) {
|
|
2077
2138
|
const e = /* @__PURE__ */ new Map();
|
|
2078
2139
|
for (let [n, r] of Object.entries(t.node))
|
|
2079
2140
|
typeof (r.generate || r) == "function" && e.set(n, r.generate || r);
|
|
2080
2141
|
return function(n, r) {
|
|
2081
|
-
let
|
|
2082
|
-
node(
|
|
2083
|
-
if (e.has(
|
|
2084
|
-
e.get(
|
|
2142
|
+
let s = "", o = 0, a = {
|
|
2143
|
+
node(u) {
|
|
2144
|
+
if (e.has(u.type))
|
|
2145
|
+
e.get(u.type).call(c, u);
|
|
2085
2146
|
else
|
|
2086
|
-
throw new Error("Unknown node type: " +
|
|
2147
|
+
throw new Error("Unknown node type: " + u.type);
|
|
2087
2148
|
},
|
|
2088
|
-
tokenBefore:
|
|
2089
|
-
token(
|
|
2090
|
-
o = this.tokenBefore(o,
|
|
2149
|
+
tokenBefore: Rr,
|
|
2150
|
+
token(u, i) {
|
|
2151
|
+
o = this.tokenBefore(o, u, i), this.emit(i, u, !1), u === $ && i.charCodeAt(0) === Us && this.emit(`
|
|
2091
2152
|
`, J, !0);
|
|
2092
2153
|
},
|
|
2093
|
-
emit(
|
|
2094
|
-
|
|
2154
|
+
emit(u) {
|
|
2155
|
+
s += u;
|
|
2095
2156
|
},
|
|
2096
2157
|
result() {
|
|
2097
|
-
return
|
|
2158
|
+
return s;
|
|
2098
2159
|
}
|
|
2099
2160
|
};
|
|
2100
|
-
r && (typeof r.decorator == "function" && (a = r.decorator(a)), r.sourceMap && (a =
|
|
2101
|
-
const
|
|
2102
|
-
node: (
|
|
2103
|
-
children:
|
|
2104
|
-
token: (
|
|
2105
|
-
tokenize:
|
|
2161
|
+
r && (typeof r.decorator == "function" && (a = r.decorator(a)), r.sourceMap && (a = zs(a)), r.mode in yr && (a.tokenBefore = yr[r.mode]));
|
|
2162
|
+
const c = {
|
|
2163
|
+
node: (u) => a.node(u),
|
|
2164
|
+
children: Gs,
|
|
2165
|
+
token: (u, i) => a.token(u, i),
|
|
2166
|
+
tokenize: Vs
|
|
2106
2167
|
};
|
|
2107
2168
|
return a.node(n), a.result();
|
|
2108
2169
|
};
|
|
2109
2170
|
}
|
|
2110
|
-
function
|
|
2111
|
-
this.token(U, "@" + t.name), t.prelude !== null && this.node(t.prelude), t.block ? this.node(t.block) : this.token(
|
|
2171
|
+
function Ws(t) {
|
|
2172
|
+
this.token(U, "@" + t.name), t.prelude !== null && this.node(t.prelude), t.block ? this.node(t.block) : this.token(yt, ";");
|
|
2112
2173
|
}
|
|
2113
|
-
function
|
|
2174
|
+
function Ks(t) {
|
|
2114
2175
|
this.children(t);
|
|
2115
2176
|
}
|
|
2116
|
-
function
|
|
2117
|
-
this.token(
|
|
2118
|
-
e.type === "Declaration" && this.token(
|
|
2119
|
-
}), this.token(
|
|
2177
|
+
function Qs(t) {
|
|
2178
|
+
this.token(fn, "{"), this.children(t, (e) => {
|
|
2179
|
+
e.type === "Declaration" && this.token(yt, ";");
|
|
2180
|
+
}), this.token(pn, "}");
|
|
2120
2181
|
}
|
|
2121
|
-
function
|
|
2182
|
+
function Js(t) {
|
|
2122
2183
|
this.token($, "["), this.children(t), this.token($, "]");
|
|
2123
2184
|
}
|
|
2124
|
-
function
|
|
2185
|
+
function Ys() {
|
|
2125
2186
|
this.token(oe, "-->");
|
|
2126
2187
|
}
|
|
2127
|
-
function
|
|
2128
|
-
this.token(
|
|
2188
|
+
function Xs() {
|
|
2189
|
+
this.token(Lr, "<!--");
|
|
2129
2190
|
}
|
|
2130
|
-
function
|
|
2191
|
+
function Zs(t) {
|
|
2131
2192
|
this.token(he, "/*" + t.value + "*/");
|
|
2132
2193
|
}
|
|
2133
|
-
function
|
|
2194
|
+
function eo(t) {
|
|
2134
2195
|
t.children.forEach((e) => {
|
|
2135
|
-
e.type === "Condition" ? (this.token(
|
|
2196
|
+
e.type === "Condition" ? (this.token(ne, "("), this.node(e), this.token(I, ")")) : this.node(e);
|
|
2136
2197
|
});
|
|
2137
2198
|
}
|
|
2138
|
-
function
|
|
2139
|
-
this.token(
|
|
2199
|
+
function to(t) {
|
|
2200
|
+
this.token(x, t.property), this.token(te, ":"), this.node(t.value), t.important && (this.token($, "!"), this.token(x, t.important === !0 ? "important" : t.important));
|
|
2140
2201
|
}
|
|
2141
|
-
function
|
|
2202
|
+
function no(t) {
|
|
2142
2203
|
this.children(t, (e) => {
|
|
2143
|
-
e.type === "Declaration" && this.token(
|
|
2204
|
+
e.type === "Declaration" && this.token(yt, ";");
|
|
2144
2205
|
});
|
|
2145
2206
|
}
|
|
2207
|
+
function ro(t) {
|
|
2208
|
+
this.token(N, t.value + t.unit);
|
|
2209
|
+
}
|
|
2210
|
+
function io(t) {
|
|
2211
|
+
this.token(ne, "("), this.token(x, t.name), t.value !== null && (this.token(te, ":"), this.node(t.value)), this.token(I, ")");
|
|
2212
|
+
}
|
|
2213
|
+
function so(t) {
|
|
2214
|
+
this.token(D, t.feature + "("), this.node(t.value), this.token(I, ")");
|
|
2215
|
+
}
|
|
2216
|
+
function oo(t) {
|
|
2217
|
+
this.token(ne, "("), this.node(t.left), this.tokenize(t.leftComparison), this.node(t.middle), t.right && (this.tokenize(t.rightComparison), this.node(t.right)), this.token(I, ")");
|
|
2218
|
+
}
|
|
2219
|
+
function ao(t) {
|
|
2220
|
+
this.token(D, t.name + "("), this.children(t), this.token(I, ")");
|
|
2221
|
+
}
|
|
2222
|
+
function lo(t) {
|
|
2223
|
+
t.function ? this.token(D, t.function + "(") : this.token(ne, "("), this.children(t), this.token(I, ")");
|
|
2224
|
+
}
|
|
2225
|
+
function co(t) {
|
|
2226
|
+
this.token(z, "#" + t.value);
|
|
2227
|
+
}
|
|
2146
2228
|
function uo(t) {
|
|
2147
|
-
this.
|
|
2229
|
+
this.tokenize(t.name);
|
|
2148
2230
|
}
|
|
2149
2231
|
function ho(t) {
|
|
2150
|
-
this.
|
|
2232
|
+
this.children(t, () => this.token(Me, ","));
|
|
2151
2233
|
}
|
|
2152
2234
|
function fo(t) {
|
|
2153
|
-
this.token(
|
|
2235
|
+
t.mediaType ? (t.modifier && this.token(x, t.modifier), this.token(x, t.mediaType), t.condition && (this.token(x, "and"), this.node(t.condition))) : t.condition && this.node(t.condition);
|
|
2154
2236
|
}
|
|
2155
2237
|
function po(t) {
|
|
2156
|
-
this.
|
|
2238
|
+
this.children(t, () => this.token(Me, ","));
|
|
2157
2239
|
}
|
|
2158
2240
|
function mo(t) {
|
|
2159
|
-
this.token(
|
|
2241
|
+
this.token(E, t.value);
|
|
2160
2242
|
}
|
|
2161
2243
|
function go(t) {
|
|
2162
|
-
|
|
2244
|
+
this.token(ne, "("), this.children(t), this.token(I, ")");
|
|
2163
2245
|
}
|
|
2164
2246
|
function ko(t) {
|
|
2165
|
-
this.
|
|
2247
|
+
this.node(t.left), this.token($, "/"), t.right ? this.node(t.right) : this.node(E, 1);
|
|
2166
2248
|
}
|
|
2167
2249
|
function yo(t) {
|
|
2168
|
-
this.
|
|
2250
|
+
this.node(t.prelude), this.node(t.block);
|
|
2169
2251
|
}
|
|
2170
2252
|
function So(t) {
|
|
2171
|
-
this.
|
|
2253
|
+
t.root && (this.token(ne, "("), this.node(t.root), this.token(I, ")")), t.limit && (this.token(x, "to"), this.token(ne, "("), this.node(t.limit), this.token(I, ")"));
|
|
2172
2254
|
}
|
|
2173
2255
|
function xo(t) {
|
|
2174
|
-
|
|
2256
|
+
this.children(t);
|
|
2175
2257
|
}
|
|
2176
2258
|
function Co(t) {
|
|
2177
|
-
this.
|
|
2259
|
+
this.token(ne, "("), this.node(t.declaration), this.token(I, ")");
|
|
2178
2260
|
}
|
|
2179
2261
|
function bo(t) {
|
|
2180
|
-
this.token(L, t.value);
|
|
2181
|
-
}
|
|
2182
|
-
function wo(t) {
|
|
2183
|
-
this.token(te, "("), this.children(t), this.token(O, ")");
|
|
2184
|
-
}
|
|
2185
|
-
function vo(t) {
|
|
2186
|
-
this.node(t.left), this.token($, "/"), t.right ? this.node(t.right) : this.node(L, 1);
|
|
2187
|
-
}
|
|
2188
|
-
function Ao(t) {
|
|
2189
|
-
this.node(t.prelude), this.node(t.block);
|
|
2190
|
-
}
|
|
2191
|
-
function Lo(t) {
|
|
2192
|
-
t.root && (this.token(te, "("), this.node(t.root), this.token(O, ")")), t.limit && (this.token(k, "to"), this.token(te, "("), this.node(t.limit), this.token(O, ")"));
|
|
2193
|
-
}
|
|
2194
|
-
function Eo(t) {
|
|
2195
|
-
this.children(t);
|
|
2196
|
-
}
|
|
2197
|
-
function _o(t) {
|
|
2198
|
-
this.token(te, "("), this.node(t.declaration), this.token(O, ")");
|
|
2199
|
-
}
|
|
2200
|
-
function To(t) {
|
|
2201
2262
|
this.tokenize(t.value);
|
|
2202
2263
|
}
|
|
2203
|
-
const
|
|
2204
|
-
function
|
|
2264
|
+
const wo = 32, vo = 92, Ao = 34, Lo = 39, Eo = 40, _o = 41;
|
|
2265
|
+
function To(t) {
|
|
2205
2266
|
let e = "", n = !1;
|
|
2206
2267
|
for (let r = 0; r < t.length; r++) {
|
|
2207
|
-
const
|
|
2208
|
-
if (
|
|
2268
|
+
const s = t.charCodeAt(r);
|
|
2269
|
+
if (s === 0) {
|
|
2209
2270
|
e += "�";
|
|
2210
2271
|
continue;
|
|
2211
2272
|
}
|
|
2212
|
-
if (
|
|
2213
|
-
e += "\\" +
|
|
2273
|
+
if (s <= 31 || s === 127) {
|
|
2274
|
+
e += "\\" + s.toString(16), n = !0;
|
|
2214
2275
|
continue;
|
|
2215
2276
|
}
|
|
2216
|
-
|
|
2277
|
+
s === wo || s === vo || s === Ao || s === Lo || s === Eo || s === _o ? (e += "\\" + t.charAt(r), n = !1) : (n && Ue(s) && (e += " "), e += t.charAt(r), n = !1);
|
|
2217
2278
|
}
|
|
2218
2279
|
return "url(" + e + ")";
|
|
2219
2280
|
}
|
|
2220
|
-
function
|
|
2221
|
-
this.token(ie,
|
|
2281
|
+
function Oo(t) {
|
|
2282
|
+
this.token(ie, To(t.value));
|
|
2222
2283
|
}
|
|
2223
|
-
function
|
|
2284
|
+
function Io(t) {
|
|
2224
2285
|
this.children(t);
|
|
2225
2286
|
}
|
|
2226
|
-
function
|
|
2287
|
+
function No(t) {
|
|
2227
2288
|
this.token(J, t.value);
|
|
2228
2289
|
}
|
|
2229
|
-
const
|
|
2290
|
+
const $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2230
2291
|
__proto__: null,
|
|
2231
|
-
AnPlusB:
|
|
2232
|
-
Atrule:
|
|
2233
|
-
AtrulePrelude:
|
|
2234
|
-
AttributeSelector:
|
|
2235
|
-
Block:
|
|
2236
|
-
Brackets:
|
|
2237
|
-
CDC:
|
|
2238
|
-
CDO:
|
|
2239
|
-
ClassSelector:
|
|
2240
|
-
Combinator:
|
|
2241
|
-
Comment:
|
|
2242
|
-
Condition:
|
|
2243
|
-
Declaration:
|
|
2244
|
-
DeclarationList:
|
|
2245
|
-
Dimension:
|
|
2246
|
-
Feature:
|
|
2247
|
-
FeatureFunction:
|
|
2248
|
-
FeatureRange:
|
|
2249
|
-
Function:
|
|
2250
|
-
GeneralEnclosed:
|
|
2251
|
-
Hash:
|
|
2252
|
-
IdSelector:
|
|
2253
|
-
Identifier:
|
|
2254
|
-
Layer:
|
|
2255
|
-
LayerList:
|
|
2256
|
-
MediaQuery:
|
|
2257
|
-
MediaQueryList:
|
|
2258
|
-
NestingSelector:
|
|
2259
|
-
Nth:
|
|
2260
|
-
Number:
|
|
2261
|
-
Operator:
|
|
2262
|
-
Parentheses:
|
|
2263
|
-
Percentage:
|
|
2264
|
-
PseudoClassSelector:
|
|
2265
|
-
PseudoElementSelector:
|
|
2266
|
-
Ratio:
|
|
2267
|
-
Raw:
|
|
2268
|
-
Rule:
|
|
2269
|
-
Scope:
|
|
2270
|
-
Selector:
|
|
2271
|
-
SelectorList:
|
|
2272
|
-
String:
|
|
2273
|
-
StyleSheet:
|
|
2274
|
-
SupportsDeclaration:
|
|
2275
|
-
TypeSelector:
|
|
2276
|
-
UnicodeRange:
|
|
2277
|
-
Url:
|
|
2278
|
-
Value:
|
|
2279
|
-
WhiteSpace:
|
|
2280
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2281
|
-
node:
|
|
2282
|
-
},
|
|
2283
|
-
const n = t.sort(
|
|
2292
|
+
AnPlusB: Mi,
|
|
2293
|
+
Atrule: Ws,
|
|
2294
|
+
AtrulePrelude: Ks,
|
|
2295
|
+
AttributeSelector: Ui,
|
|
2296
|
+
Block: Qs,
|
|
2297
|
+
Brackets: Js,
|
|
2298
|
+
CDC: Ys,
|
|
2299
|
+
CDO: Xs,
|
|
2300
|
+
ClassSelector: Hi,
|
|
2301
|
+
Combinator: Yi,
|
|
2302
|
+
Comment: Zs,
|
|
2303
|
+
Condition: eo,
|
|
2304
|
+
Declaration: to,
|
|
2305
|
+
DeclarationList: no,
|
|
2306
|
+
Dimension: ro,
|
|
2307
|
+
Feature: io,
|
|
2308
|
+
FeatureFunction: so,
|
|
2309
|
+
FeatureRange: oo,
|
|
2310
|
+
Function: ao,
|
|
2311
|
+
GeneralEnclosed: lo,
|
|
2312
|
+
Hash: co,
|
|
2313
|
+
IdSelector: ts,
|
|
2314
|
+
Identifier: Zi,
|
|
2315
|
+
Layer: uo,
|
|
2316
|
+
LayerList: ho,
|
|
2317
|
+
MediaQuery: fo,
|
|
2318
|
+
MediaQueryList: po,
|
|
2319
|
+
NestingSelector: is,
|
|
2320
|
+
Nth: os,
|
|
2321
|
+
Number: mo,
|
|
2322
|
+
Operator: ls,
|
|
2323
|
+
Parentheses: go,
|
|
2324
|
+
Percentage: us,
|
|
2325
|
+
PseudoClassSelector: fs,
|
|
2326
|
+
PseudoElementSelector: ds,
|
|
2327
|
+
Ratio: ko,
|
|
2328
|
+
Raw: ks,
|
|
2329
|
+
Rule: yo,
|
|
2330
|
+
Scope: So,
|
|
2331
|
+
Selector: Ss,
|
|
2332
|
+
SelectorList: Cs,
|
|
2333
|
+
String: Ls,
|
|
2334
|
+
StyleSheet: xo,
|
|
2335
|
+
SupportsDeclaration: Co,
|
|
2336
|
+
TypeSelector: Ts,
|
|
2337
|
+
UnicodeRange: bo,
|
|
2338
|
+
Url: Oo,
|
|
2339
|
+
Value: Io,
|
|
2340
|
+
WhiteSpace: No
|
|
2341
|
+
}, Symbol.toStringTag, { value: "Module" })), Do = {
|
|
2342
|
+
node: $o
|
|
2343
|
+
}, Po = Hs(Do), We = (t, e) => t.a === e.a ? t.b === e.b ? t.c - e.c : t.b - e.b : t.a - e.a, Sr = (t, e) => We(t, e) === 0, xr = (t, e) => We(t, e) > 0, Cr = (t, e) => We(t, e) < 0, qr = (t, e = "ASC") => {
|
|
2344
|
+
const n = t.sort(We);
|
|
2284
2345
|
return e === "DESC" ? n.reverse() : n;
|
|
2285
|
-
},
|
|
2286
|
-
class
|
|
2346
|
+
}, Br = (...t) => qr(t, "ASC"), jr = (...t) => qr(t, "DESC"), un = (...t) => jr(...t)[0], Mo = (...t) => Br(...t)[0];
|
|
2347
|
+
class nn extends Error {
|
|
2287
2348
|
constructor() {
|
|
2288
2349
|
super("Manipulating a Specificity instance is not allowed. Instead, create a new Specificity()");
|
|
2289
2350
|
}
|
|
2290
2351
|
}
|
|
2291
|
-
class
|
|
2352
|
+
class Fo {
|
|
2292
2353
|
constructor(e, n = null) {
|
|
2293
2354
|
this.value = e, this.selector = n;
|
|
2294
2355
|
}
|
|
@@ -2296,22 +2357,22 @@ class Vo {
|
|
|
2296
2357
|
return this.value.a;
|
|
2297
2358
|
}
|
|
2298
2359
|
set a(e) {
|
|
2299
|
-
throw new
|
|
2360
|
+
throw new nn();
|
|
2300
2361
|
}
|
|
2301
2362
|
get b() {
|
|
2302
2363
|
return this.value.b;
|
|
2303
2364
|
}
|
|
2304
2365
|
set b(e) {
|
|
2305
|
-
throw new
|
|
2366
|
+
throw new nn();
|
|
2306
2367
|
}
|
|
2307
2368
|
get c() {
|
|
2308
2369
|
return this.value.c;
|
|
2309
2370
|
}
|
|
2310
2371
|
set c(e) {
|
|
2311
|
-
throw new
|
|
2372
|
+
throw new nn();
|
|
2312
2373
|
}
|
|
2313
2374
|
selectorString() {
|
|
2314
|
-
return typeof this.selector == "string" || this.selector instanceof String ? this.selector : this.selector instanceof Object && this.selector.type === "Selector" ?
|
|
2375
|
+
return typeof this.selector == "string" || this.selector instanceof String ? this.selector : this.selector instanceof Object && this.selector.type === "Selector" ? Po(this.selector) : "";
|
|
2315
2376
|
}
|
|
2316
2377
|
toObject() {
|
|
2317
2378
|
return this.value;
|
|
@@ -2331,51 +2392,51 @@ class Vo {
|
|
|
2331
2392
|
};
|
|
2332
2393
|
}
|
|
2333
2394
|
isEqualTo(e) {
|
|
2334
|
-
return
|
|
2395
|
+
return Sr(this, e);
|
|
2335
2396
|
}
|
|
2336
2397
|
isGreaterThan(e) {
|
|
2337
|
-
return
|
|
2398
|
+
return xr(this, e);
|
|
2338
2399
|
}
|
|
2339
2400
|
isLessThan(e) {
|
|
2340
|
-
return
|
|
2401
|
+
return Cr(this, e);
|
|
2341
2402
|
}
|
|
2342
2403
|
static calculate(e) {
|
|
2343
|
-
return
|
|
2404
|
+
return je(e);
|
|
2344
2405
|
}
|
|
2345
2406
|
static calculateForAST(e) {
|
|
2346
|
-
return
|
|
2407
|
+
return kt(e);
|
|
2347
2408
|
}
|
|
2348
2409
|
static compare(e, n) {
|
|
2349
|
-
return
|
|
2410
|
+
return We(e, n);
|
|
2350
2411
|
}
|
|
2351
2412
|
static equals(e, n) {
|
|
2352
|
-
return
|
|
2413
|
+
return Sr(e, n);
|
|
2353
2414
|
}
|
|
2354
2415
|
static lessThan(e, n) {
|
|
2355
|
-
return
|
|
2416
|
+
return Cr(e, n);
|
|
2356
2417
|
}
|
|
2357
2418
|
static greaterThan(e, n) {
|
|
2358
|
-
return
|
|
2419
|
+
return xr(e, n);
|
|
2359
2420
|
}
|
|
2360
2421
|
static min(...e) {
|
|
2361
|
-
return
|
|
2422
|
+
return Mo(...e);
|
|
2362
2423
|
}
|
|
2363
2424
|
static max(...e) {
|
|
2364
|
-
return
|
|
2425
|
+
return un(...e);
|
|
2365
2426
|
}
|
|
2366
2427
|
static sortAsc(...e) {
|
|
2367
|
-
return
|
|
2428
|
+
return Br(...e);
|
|
2368
2429
|
}
|
|
2369
2430
|
static sortDesc(...e) {
|
|
2370
|
-
return
|
|
2431
|
+
return jr(...e);
|
|
2371
2432
|
}
|
|
2372
2433
|
}
|
|
2373
|
-
const
|
|
2434
|
+
const kt = (t) => {
|
|
2374
2435
|
if (!t || t.type !== "Selector")
|
|
2375
2436
|
throw new TypeError("Passed in source is not a Selector AST");
|
|
2376
2437
|
let e = 0, n = 0, r = 0;
|
|
2377
|
-
return t.children.forEach((
|
|
2378
|
-
switch (
|
|
2438
|
+
return t.children.forEach((s) => {
|
|
2439
|
+
switch (s.type) {
|
|
2379
2440
|
case "IdSelector":
|
|
2380
2441
|
e += 1;
|
|
2381
2442
|
break;
|
|
@@ -2384,45 +2445,52 @@ const Ct = (t) => {
|
|
|
2384
2445
|
n += 1;
|
|
2385
2446
|
break;
|
|
2386
2447
|
case "PseudoClassSelector":
|
|
2387
|
-
switch (
|
|
2448
|
+
switch (s.name.toLowerCase()) {
|
|
2449
|
+
// “The specificity of a :where() pseudo-class is replaced by zero.”
|
|
2388
2450
|
case "where":
|
|
2389
2451
|
break;
|
|
2390
2452
|
case "-webkit-any":
|
|
2391
2453
|
case "any":
|
|
2392
|
-
|
|
2454
|
+
s.children && (n += 1);
|
|
2393
2455
|
break;
|
|
2456
|
+
// “The specificity of an :is(), :not(), or :has() pseudo-class is replaced by the specificity of the most specific complex selector in its selector list argument.“
|
|
2394
2457
|
case "-moz-any":
|
|
2395
2458
|
case "is":
|
|
2396
2459
|
case "matches":
|
|
2397
2460
|
case "not":
|
|
2398
2461
|
case "has":
|
|
2399
|
-
if (
|
|
2400
|
-
const a =
|
|
2462
|
+
if (s.children) {
|
|
2463
|
+
const a = un(...je(s.children.first));
|
|
2401
2464
|
e += a.a, n += a.b, r += a.c;
|
|
2402
2465
|
}
|
|
2403
2466
|
break;
|
|
2467
|
+
// “The specificity of an :nth-child() or :nth-last-child() selector is the specificity of the pseudo class itself (counting as one pseudo-class selector) plus the specificity of the most specific complex selector in its selector list argument”
|
|
2404
2468
|
case "nth-child":
|
|
2405
2469
|
case "nth-last-child":
|
|
2406
|
-
if (n += 1,
|
|
2407
|
-
const a =
|
|
2470
|
+
if (n += 1, s.children && s.children.first.selector) {
|
|
2471
|
+
const a = un(...je(s.children.first.selector));
|
|
2408
2472
|
e += a.a, n += a.b, r += a.c;
|
|
2409
2473
|
}
|
|
2410
2474
|
break;
|
|
2475
|
+
// “The specificity of :host is that of a pseudo-class. The specificity of :host() is that of a pseudo-class, plus the specificity of its argument.”
|
|
2476
|
+
// “The specificity of :host-context() is that of a pseudo-class, plus the specificity of its argument.”
|
|
2411
2477
|
case "host-context":
|
|
2412
2478
|
case "host":
|
|
2413
|
-
if (n += 1,
|
|
2479
|
+
if (n += 1, s.children) {
|
|
2414
2480
|
const a = { type: "Selector", children: [] };
|
|
2415
|
-
let
|
|
2416
|
-
|
|
2417
|
-
if (
|
|
2418
|
-
if (
|
|
2419
|
-
return
|
|
2420
|
-
a.children.push(
|
|
2481
|
+
let c = !1;
|
|
2482
|
+
s.children.first.children.forEach((i) => {
|
|
2483
|
+
if (c) return !1;
|
|
2484
|
+
if (i.type === "Combinator")
|
|
2485
|
+
return c = !0, !1;
|
|
2486
|
+
a.children.push(i);
|
|
2421
2487
|
});
|
|
2422
|
-
const
|
|
2423
|
-
e +=
|
|
2488
|
+
const u = je(a)[0];
|
|
2489
|
+
e += u.a, n += u.b, r += u.c;
|
|
2424
2490
|
}
|
|
2425
2491
|
break;
|
|
2492
|
+
// Improper use of Pseudo-Class Selectors instead of a Pseudo-Element
|
|
2493
|
+
// @ref https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements#index
|
|
2426
2494
|
case "after":
|
|
2427
2495
|
case "before":
|
|
2428
2496
|
case "first-letter":
|
|
@@ -2435,26 +2503,27 @@ const Ct = (t) => {
|
|
|
2435
2503
|
}
|
|
2436
2504
|
break;
|
|
2437
2505
|
case "PseudoElementSelector":
|
|
2438
|
-
switch (
|
|
2506
|
+
switch (s.name) {
|
|
2507
|
+
// “The specificity of ::slotted() is that of a pseudo-element, plus the specificity of its argument.”
|
|
2439
2508
|
case "slotted":
|
|
2440
|
-
if (r += 1,
|
|
2509
|
+
if (r += 1, s.children) {
|
|
2441
2510
|
const a = { type: "Selector", children: [] };
|
|
2442
|
-
let
|
|
2443
|
-
|
|
2444
|
-
if (
|
|
2445
|
-
if (
|
|
2446
|
-
return
|
|
2447
|
-
a.children.push(
|
|
2511
|
+
let c = !1;
|
|
2512
|
+
s.children.first.children.forEach((i) => {
|
|
2513
|
+
if (c) return !1;
|
|
2514
|
+
if (i.type === "Combinator")
|
|
2515
|
+
return c = !0, !1;
|
|
2516
|
+
a.children.push(i);
|
|
2448
2517
|
});
|
|
2449
|
-
const
|
|
2450
|
-
e +=
|
|
2518
|
+
const u = je(a)[0];
|
|
2519
|
+
e += u.a, n += u.b, r += u.c;
|
|
2451
2520
|
}
|
|
2452
2521
|
break;
|
|
2453
2522
|
case "view-transition-group":
|
|
2454
2523
|
case "view-transition-image-pair":
|
|
2455
2524
|
case "view-transition-old":
|
|
2456
2525
|
case "view-transition-new":
|
|
2457
|
-
if (
|
|
2526
|
+
if (s.children && s.children.first.value === "*")
|
|
2458
2527
|
break;
|
|
2459
2528
|
r += 1;
|
|
2460
2529
|
break;
|
|
@@ -2464,15 +2533,15 @@ const Ct = (t) => {
|
|
|
2464
2533
|
}
|
|
2465
2534
|
break;
|
|
2466
2535
|
case "TypeSelector":
|
|
2467
|
-
let o =
|
|
2536
|
+
let o = s.name;
|
|
2468
2537
|
o.includes("|") && (o = o.split("|")[1]), o !== "*" && (r += 1);
|
|
2469
2538
|
break;
|
|
2470
2539
|
}
|
|
2471
|
-
}), new
|
|
2472
|
-
},
|
|
2540
|
+
}), new Fo({ a: e, b: n, c: r }, t);
|
|
2541
|
+
}, zo = (t) => {
|
|
2473
2542
|
if (typeof t == "string" || t instanceof String)
|
|
2474
2543
|
try {
|
|
2475
|
-
return
|
|
2544
|
+
return ur(t, {
|
|
2476
2545
|
context: "selectorList"
|
|
2477
2546
|
});
|
|
2478
2547
|
} catch (e) {
|
|
@@ -2483,7 +2552,7 @@ const Ct = (t) => {
|
|
|
2483
2552
|
return t;
|
|
2484
2553
|
if (t.type && t.type === "Raw")
|
|
2485
2554
|
try {
|
|
2486
|
-
return
|
|
2555
|
+
return ur(t.value, {
|
|
2487
2556
|
context: "selectorList"
|
|
2488
2557
|
});
|
|
2489
2558
|
} catch (e) {
|
|
@@ -2492,21 +2561,21 @@ const Ct = (t) => {
|
|
|
2492
2561
|
throw new TypeError("Passed in source is an Object but no AST / AST of the type Selector or SelectorList");
|
|
2493
2562
|
}
|
|
2494
2563
|
throw new TypeError("Passed in source is not a String nor an Object. I don't know what to do with it.");
|
|
2495
|
-
},
|
|
2564
|
+
}, je = (t) => {
|
|
2496
2565
|
if (!t)
|
|
2497
2566
|
return [];
|
|
2498
|
-
const e =
|
|
2567
|
+
const e = zo(t);
|
|
2499
2568
|
if (e.type === "Selector")
|
|
2500
|
-
return [
|
|
2569
|
+
return [kt(t)];
|
|
2501
2570
|
if (e.type === "SelectorList") {
|
|
2502
2571
|
const n = [];
|
|
2503
2572
|
return e.children.forEach((r) => {
|
|
2504
|
-
const
|
|
2505
|
-
n.push(
|
|
2573
|
+
const s = kt(r);
|
|
2574
|
+
n.push(s);
|
|
2506
2575
|
}), n;
|
|
2507
2576
|
}
|
|
2508
2577
|
};
|
|
2509
|
-
function
|
|
2578
|
+
function kn(t, e) {
|
|
2510
2579
|
return e >= 65 && e <= 90 && (e = e | 32), t === e;
|
|
2511
2580
|
}
|
|
2512
2581
|
function W(t, e) {
|
|
@@ -2514,64 +2583,64 @@ function W(t, e) {
|
|
|
2514
2583
|
let n = t.length;
|
|
2515
2584
|
if (n !== e.length) return !1;
|
|
2516
2585
|
for (let r = 0; r < n; r++)
|
|
2517
|
-
if (
|
|
2586
|
+
if (kn(t.charCodeAt(r), e.charCodeAt(r)) === !1)
|
|
2518
2587
|
return !1;
|
|
2519
2588
|
return !0;
|
|
2520
2589
|
}
|
|
2521
|
-
function
|
|
2590
|
+
function me(t, e) {
|
|
2522
2591
|
if (t === e) return !0;
|
|
2523
2592
|
let n = e.length, r = n - t.length;
|
|
2524
2593
|
if (r < 0)
|
|
2525
2594
|
return !1;
|
|
2526
|
-
for (let
|
|
2527
|
-
if (
|
|
2595
|
+
for (let s = n - 1; s >= r; s--)
|
|
2596
|
+
if (kn(t.charCodeAt(s - r), e.charCodeAt(s)) === !1)
|
|
2528
2597
|
return !1;
|
|
2529
2598
|
return !0;
|
|
2530
2599
|
}
|
|
2531
|
-
function
|
|
2600
|
+
function yn(t, e) {
|
|
2532
2601
|
if (t === e) return !0;
|
|
2533
2602
|
let n = t.length;
|
|
2534
2603
|
if (e.length < n) return !1;
|
|
2535
2604
|
for (let r = 0; r < n; r++)
|
|
2536
|
-
if (
|
|
2605
|
+
if (kn(t.charCodeAt(r), e.charCodeAt(r)) === !1)
|
|
2537
2606
|
return !1;
|
|
2538
2607
|
return !0;
|
|
2539
2608
|
}
|
|
2540
|
-
const
|
|
2541
|
-
function
|
|
2609
|
+
const Ro = "Atrule", qo = "MediaQuery", Bo = "MediaFeature", jo = "Rule", Sn = "Selector", Ur = "TypeSelector", Ve = "PseudoClassSelector", Gr = "AttributeSelector", Vr = "PseudoElementSelector", hn = "Declaration", Uo = "Value", pe = "Identifier", Go = "Nth", Vo = "Combinator", Ho = "Number", Hr = "Dimension", De = "Operator", Wo = "Hash", Ko = "Url", xn = "Function";
|
|
2610
|
+
function br(t, e, n) {
|
|
2542
2611
|
let r = t.value.children.first;
|
|
2543
2612
|
return W(e, t.property) && r.type === pe && W(n, r.name);
|
|
2544
2613
|
}
|
|
2545
|
-
function
|
|
2614
|
+
function Qo(t) {
|
|
2546
2615
|
let e = !1;
|
|
2547
2616
|
return fe(t, function(n) {
|
|
2548
|
-
if (n.type ===
|
|
2617
|
+
if (n.type === hn && (br(n, "-webkit-appearance", "none") || br(n, "-moz-appearance", "meterbar")))
|
|
2549
2618
|
return e = !0, this.break;
|
|
2550
2619
|
}), e;
|
|
2551
2620
|
}
|
|
2552
|
-
function
|
|
2621
|
+
function Jo(t) {
|
|
2553
2622
|
let e = !1;
|
|
2554
2623
|
return fe(t, function(n) {
|
|
2555
|
-
let r = n.children,
|
|
2556
|
-
if (n.type ===
|
|
2624
|
+
let r = n.children, s = n.name, o = n.value;
|
|
2625
|
+
if (n.type === qo && r.size === 1 && r.first.type === pe) {
|
|
2557
2626
|
let a = r.first.name;
|
|
2558
|
-
if (
|
|
2627
|
+
if (yn("\\0", a) || me("\\9 ", a))
|
|
2559
2628
|
return e = !0, this.break;
|
|
2560
|
-
} else if (n.type ===
|
|
2629
|
+
} else if (n.type === Bo) {
|
|
2561
2630
|
if (o && o.unit && o.unit === "\\0")
|
|
2562
2631
|
return e = !0, this.break;
|
|
2563
|
-
if (W("-moz-images-in-menus",
|
|
2632
|
+
if (W("-moz-images-in-menus", s) || W("min--moz-device-pixel-ratio", s) || W("-ms-high-contrast", s))
|
|
2564
2633
|
return e = !0, this.break;
|
|
2565
|
-
if (W("min-resolution",
|
|
2634
|
+
if (W("min-resolution", s) && o && W(".001", o.value) && W("dpcm", o.unit))
|
|
2566
2635
|
return e = !0, this.break;
|
|
2567
|
-
if (W("-webkit-min-device-pixel-ratio",
|
|
2636
|
+
if (W("-webkit-min-device-pixel-ratio", s) && o && o.value && (W("0", o.value) || W("10000", o.value)))
|
|
2568
2637
|
return e = !0, this.break;
|
|
2569
2638
|
}
|
|
2570
2639
|
}), e;
|
|
2571
2640
|
}
|
|
2572
|
-
const
|
|
2573
|
-
function
|
|
2574
|
-
return t.charCodeAt(0) ===
|
|
2641
|
+
const wr = 45;
|
|
2642
|
+
function Ce(t) {
|
|
2643
|
+
return t.charCodeAt(0) === wr && t.charCodeAt(1) !== wr && t.indexOf("-", 2) !== -1;
|
|
2575
2644
|
}
|
|
2576
2645
|
class ae {
|
|
2577
2646
|
/** @param {string[]} items */
|
|
@@ -2583,16 +2652,16 @@ class ae {
|
|
|
2583
2652
|
return this.set.has(e.toLowerCase());
|
|
2584
2653
|
}
|
|
2585
2654
|
}
|
|
2586
|
-
function
|
|
2655
|
+
function Wr(t, e) {
|
|
2587
2656
|
let n = [];
|
|
2588
2657
|
return fe(t, {
|
|
2589
|
-
visit:
|
|
2658
|
+
visit: Sn,
|
|
2590
2659
|
enter: function(r) {
|
|
2591
2660
|
n.push(e(r));
|
|
2592
2661
|
}
|
|
2593
2662
|
}), n;
|
|
2594
2663
|
}
|
|
2595
|
-
const
|
|
2664
|
+
const Kr = new ae([
|
|
2596
2665
|
"nth-child",
|
|
2597
2666
|
"where",
|
|
2598
2667
|
"not",
|
|
@@ -2603,17 +2672,17 @@ const ni = new ae([
|
|
|
2603
2672
|
"-webkit-any",
|
|
2604
2673
|
"-moz-any"
|
|
2605
2674
|
]);
|
|
2606
|
-
function
|
|
2675
|
+
function Qr(t) {
|
|
2607
2676
|
let e = !1;
|
|
2608
2677
|
return fe(t, function(n) {
|
|
2609
|
-
if (n.type ===
|
|
2678
|
+
if (n.type === Gr) {
|
|
2610
2679
|
let r = n.name.name;
|
|
2611
|
-
if (W("role", r) ||
|
|
2680
|
+
if (W("role", r) || yn("aria-", r))
|
|
2612
2681
|
return e = !0, this.break;
|
|
2613
|
-
} else if (n.type ===
|
|
2614
|
-
let r =
|
|
2615
|
-
for (let
|
|
2616
|
-
if (
|
|
2682
|
+
} else if (n.type === Ve && Kr.has(n.name)) {
|
|
2683
|
+
let r = Wr(n, Qr);
|
|
2684
|
+
for (let s of r)
|
|
2685
|
+
if (s === !0) {
|
|
2617
2686
|
e = !0;
|
|
2618
2687
|
break;
|
|
2619
2688
|
}
|
|
@@ -2621,43 +2690,43 @@ function ri(t) {
|
|
|
2621
2690
|
}
|
|
2622
2691
|
}), e;
|
|
2623
2692
|
}
|
|
2624
|
-
function
|
|
2693
|
+
function Yo(t) {
|
|
2625
2694
|
let e = !1;
|
|
2626
2695
|
return fe(t, function(n) {
|
|
2627
2696
|
let r = n.type;
|
|
2628
|
-
if ((r ===
|
|
2697
|
+
if ((r === Vr || r === Ur || r === Ve) && Ce(n.name))
|
|
2629
2698
|
return e = !0, this.break;
|
|
2630
2699
|
}), e;
|
|
2631
2700
|
}
|
|
2632
|
-
function
|
|
2701
|
+
function Xo(t) {
|
|
2633
2702
|
let e = [];
|
|
2634
2703
|
return fe(t, function(n) {
|
|
2635
|
-
n.type ===
|
|
2704
|
+
n.type === Ve && e.push(n.name);
|
|
2636
2705
|
}), e.length === 0 ? !1 : e;
|
|
2637
2706
|
}
|
|
2638
|
-
function
|
|
2707
|
+
function Jr(t) {
|
|
2639
2708
|
let e = 0;
|
|
2640
2709
|
return fe(t, function(n) {
|
|
2641
2710
|
let r = n.type;
|
|
2642
|
-
if (!(r ===
|
|
2643
|
-
if (e++, (r ===
|
|
2711
|
+
if (!(r === Sn || r === Go)) {
|
|
2712
|
+
if (e++, (r === Vr || r === Ur || r === Ve) && Ce(n.name) && e++, r === Gr)
|
|
2644
2713
|
return n.value && e++, this.skip;
|
|
2645
|
-
if (r ===
|
|
2646
|
-
let
|
|
2647
|
-
if (
|
|
2648
|
-
for (let o of
|
|
2714
|
+
if (r === Ve && Kr.has(n.name)) {
|
|
2715
|
+
let s = Wr(n, Jr);
|
|
2716
|
+
if (s.length === 0) return;
|
|
2717
|
+
for (let o of s)
|
|
2649
2718
|
e += o;
|
|
2650
2719
|
return this.skip;
|
|
2651
2720
|
}
|
|
2652
2721
|
}
|
|
2653
2722
|
}), e;
|
|
2654
2723
|
}
|
|
2655
|
-
function
|
|
2724
|
+
function Zo(t, e) {
|
|
2656
2725
|
fe(t, function(n, r) {
|
|
2657
|
-
if (n.type ===
|
|
2658
|
-
let
|
|
2659
|
-
if (
|
|
2660
|
-
let a = r.prev.data.loc.end,
|
|
2726
|
+
if (n.type === Vo) {
|
|
2727
|
+
let s = n.loc, o = n.name;
|
|
2728
|
+
if (s === null) {
|
|
2729
|
+
let a = r.prev.data.loc.end, c = {
|
|
2661
2730
|
offset: a.offset,
|
|
2662
2731
|
line: a.line,
|
|
2663
2732
|
column: a.column
|
|
@@ -2665,23 +2734,23 @@ function oa(t, e) {
|
|
|
2665
2734
|
e({
|
|
2666
2735
|
name: o,
|
|
2667
2736
|
loc: {
|
|
2668
|
-
start:
|
|
2737
|
+
start: c,
|
|
2669
2738
|
end: {
|
|
2670
|
-
offset:
|
|
2671
|
-
line:
|
|
2672
|
-
column:
|
|
2739
|
+
offset: c.offset + 1,
|
|
2740
|
+
line: c.line,
|
|
2741
|
+
column: c.column + 1
|
|
2673
2742
|
}
|
|
2674
2743
|
}
|
|
2675
2744
|
});
|
|
2676
2745
|
} else
|
|
2677
2746
|
e({
|
|
2678
2747
|
name: o,
|
|
2679
|
-
loc:
|
|
2748
|
+
loc: s
|
|
2680
2749
|
});
|
|
2681
2750
|
}
|
|
2682
2751
|
});
|
|
2683
2752
|
}
|
|
2684
|
-
const
|
|
2753
|
+
const ea = new ae([
|
|
2685
2754
|
// CSS Named Colors
|
|
2686
2755
|
// Spec: https://drafts.csswg.org/css-color/#named-colors
|
|
2687
2756
|
// Heuristic: popular names first for quick finding in set.has()
|
|
@@ -2834,7 +2903,7 @@ const aa = new ae([
|
|
|
2834
2903
|
"mediumorchid",
|
|
2835
2904
|
"darksalmon",
|
|
2836
2905
|
"mediumspringgreen"
|
|
2837
|
-
]),
|
|
2906
|
+
]), ta = new ae([
|
|
2838
2907
|
// CSS System Colors
|
|
2839
2908
|
// Spec: https://drafts.csswg.org/css-color/#css-system-colors
|
|
2840
2909
|
"accentcolor",
|
|
@@ -2856,7 +2925,7 @@ const aa = new ae([
|
|
|
2856
2925
|
"selecteditem",
|
|
2857
2926
|
"selecteditemtext",
|
|
2858
2927
|
"visitedtext"
|
|
2859
|
-
]),
|
|
2928
|
+
]), na = new ae([
|
|
2860
2929
|
"rgba",
|
|
2861
2930
|
"rgb",
|
|
2862
2931
|
"hsla",
|
|
@@ -2867,10 +2936,10 @@ const aa = new ae([
|
|
|
2867
2936
|
"lch",
|
|
2868
2937
|
"lab",
|
|
2869
2938
|
"oklab"
|
|
2870
|
-
]),
|
|
2939
|
+
]), ra = new ae([
|
|
2871
2940
|
"transparent",
|
|
2872
2941
|
"currentcolor"
|
|
2873
|
-
]),
|
|
2942
|
+
]), xt = new ae([
|
|
2874
2943
|
"auto",
|
|
2875
2944
|
"none",
|
|
2876
2945
|
// for `text-shadow`, `box-shadow` and `background`
|
|
@@ -2880,20 +2949,20 @@ const aa = new ae([
|
|
|
2880
2949
|
"revert",
|
|
2881
2950
|
"revert-layer"
|
|
2882
2951
|
]);
|
|
2883
|
-
function
|
|
2952
|
+
function at(t) {
|
|
2884
2953
|
let e = t.children, n = e.size;
|
|
2885
2954
|
if (!e || n > 1 || n === 0) return !1;
|
|
2886
2955
|
let r = e.first;
|
|
2887
|
-
return r.type === pe &&
|
|
2956
|
+
return r.type === pe && xt.has(r.name);
|
|
2888
2957
|
}
|
|
2889
|
-
const
|
|
2958
|
+
const ia = new ae([
|
|
2890
2959
|
"caption",
|
|
2891
2960
|
"icon",
|
|
2892
2961
|
"menu",
|
|
2893
2962
|
"message-box",
|
|
2894
2963
|
"small-caption",
|
|
2895
2964
|
"status-bar"
|
|
2896
|
-
]),
|
|
2965
|
+
]), sa = new ae([
|
|
2897
2966
|
/* <absolute-size> values */
|
|
2898
2967
|
"xx-small",
|
|
2899
2968
|
"x-small",
|
|
@@ -2906,39 +2975,39 @@ const ha = new ae([
|
|
|
2906
2975
|
/* <relative-size> values */
|
|
2907
2976
|
"smaller",
|
|
2908
2977
|
"larger"
|
|
2909
|
-
]),
|
|
2910
|
-
function
|
|
2978
|
+
]), oa = 44, vr = 47;
|
|
2979
|
+
function rn(t) {
|
|
2911
2980
|
let e = t.children.first;
|
|
2912
|
-
return e === null ? !1 : e.type === pe &&
|
|
2981
|
+
return e === null ? !1 : e.type === pe && ia.has(e.name);
|
|
2913
2982
|
}
|
|
2914
|
-
function
|
|
2915
|
-
let r = Array.from({ length: 2 }),
|
|
2916
|
-
t.children.forEach(function(
|
|
2917
|
-
let
|
|
2918
|
-
if (
|
|
2983
|
+
function aa(t, e, n) {
|
|
2984
|
+
let r = Array.from({ length: 2 }), s, o;
|
|
2985
|
+
t.children.forEach(function(c, u) {
|
|
2986
|
+
let i = u.prev ? u.prev.data : void 0, l = u.next ? u.next.data : void 0;
|
|
2987
|
+
if (c.type === pe && xt.has(c.name) && n({
|
|
2919
2988
|
type: "keyword",
|
|
2920
|
-
value:
|
|
2921
|
-
}), l && l.type ===
|
|
2922
|
-
|
|
2989
|
+
value: c.name
|
|
2990
|
+
}), l && l.type === De && l.value.charCodeAt(0) === vr) {
|
|
2991
|
+
s = e(c);
|
|
2923
2992
|
return;
|
|
2924
2993
|
}
|
|
2925
|
-
if (
|
|
2926
|
-
o = e(
|
|
2994
|
+
if (i && i.type === De && i.value.charCodeAt(0) === vr) {
|
|
2995
|
+
o = e(c);
|
|
2927
2996
|
return;
|
|
2928
2997
|
}
|
|
2929
|
-
if (l && l.type ===
|
|
2930
|
-
r[0] =
|
|
2998
|
+
if (l && l.type === De && l.value.charCodeAt(0) === oa && !r[0]) {
|
|
2999
|
+
r[0] = c, !s && i && (s = e(i));
|
|
2931
3000
|
return;
|
|
2932
3001
|
}
|
|
2933
|
-
if (
|
|
2934
|
-
if (
|
|
2935
|
-
r[1] =
|
|
3002
|
+
if (c.type !== Ho) {
|
|
3003
|
+
if (u.next === null) {
|
|
3004
|
+
r[1] = c, !s && !r[0] && i && (s = e(i));
|
|
2936
3005
|
return;
|
|
2937
3006
|
}
|
|
2938
|
-
if (
|
|
2939
|
-
let
|
|
2940
|
-
if (
|
|
2941
|
-
|
|
3007
|
+
if (c.type === pe) {
|
|
3008
|
+
let d = c.name;
|
|
3009
|
+
if (sa.has(d)) {
|
|
3010
|
+
s = d;
|
|
2942
3011
|
return;
|
|
2943
3012
|
}
|
|
2944
3013
|
}
|
|
@@ -2955,12 +3024,12 @@ function da(t, e, n) {
|
|
|
2955
3024
|
}
|
|
2956
3025
|
}) : null;
|
|
2957
3026
|
return {
|
|
2958
|
-
font_size:
|
|
3027
|
+
font_size: s,
|
|
2959
3028
|
line_height: o,
|
|
2960
3029
|
font_family: a
|
|
2961
3030
|
};
|
|
2962
3031
|
}
|
|
2963
|
-
const
|
|
3032
|
+
const la = new ae([
|
|
2964
3033
|
"linear",
|
|
2965
3034
|
"ease",
|
|
2966
3035
|
"ease-in",
|
|
@@ -2968,41 +3037,41 @@ const ma = new ae([
|
|
|
2968
3037
|
"ease-in-out",
|
|
2969
3038
|
"step-start",
|
|
2970
3039
|
"step-end"
|
|
2971
|
-
]),
|
|
3040
|
+
]), ca = new ae([
|
|
2972
3041
|
"cubic-bezier",
|
|
2973
3042
|
"steps"
|
|
2974
3043
|
]);
|
|
2975
|
-
function
|
|
3044
|
+
function ua(t, e) {
|
|
2976
3045
|
let n = !1;
|
|
2977
3046
|
for (let r of t) {
|
|
2978
|
-
let
|
|
2979
|
-
|
|
3047
|
+
let s = r.type, o = r.name;
|
|
3048
|
+
s === De ? n = !1 : s === Hr && n === !1 ? (n = !0, e({
|
|
2980
3049
|
type: "duration",
|
|
2981
3050
|
value: r
|
|
2982
|
-
})) :
|
|
3051
|
+
})) : s === pe ? la.has(o) ? e({
|
|
2983
3052
|
type: "fn",
|
|
2984
3053
|
value: r
|
|
2985
|
-
}) :
|
|
3054
|
+
}) : xt.has(o) && e({
|
|
2986
3055
|
type: "keyword",
|
|
2987
3056
|
value: r
|
|
2988
|
-
}) :
|
|
3057
|
+
}) : s === xn && ca.has(o) && e({
|
|
2989
3058
|
type: "fn",
|
|
2990
3059
|
value: r
|
|
2991
3060
|
});
|
|
2992
3061
|
}
|
|
2993
3062
|
}
|
|
2994
|
-
function
|
|
3063
|
+
function Yr(t) {
|
|
2995
3064
|
let e = t.children;
|
|
2996
3065
|
if (!e)
|
|
2997
3066
|
return !1;
|
|
2998
3067
|
for (let n of e) {
|
|
2999
|
-
let { type: r, name:
|
|
3000
|
-
if (r === pe &&
|
|
3068
|
+
let { type: r, name: s } = n;
|
|
3069
|
+
if (r === pe && Ce(s) || r === xn && (Ce(s) || Yr(n)))
|
|
3001
3070
|
return !0;
|
|
3002
3071
|
}
|
|
3003
3072
|
return !1;
|
|
3004
3073
|
}
|
|
3005
|
-
class
|
|
3074
|
+
class b {
|
|
3006
3075
|
/** @param {boolean} useLocations */
|
|
3007
3076
|
constructor(e = !1) {
|
|
3008
3077
|
this._items = /* @__PURE__ */ new Map(), this._total = 0, e && (this._nodes = []), this._useLocations = e;
|
|
@@ -3014,8 +3083,8 @@ class x {
|
|
|
3014
3083
|
p(e, n) {
|
|
3015
3084
|
let r = this._total;
|
|
3016
3085
|
if (this._useLocations) {
|
|
3017
|
-
let
|
|
3018
|
-
this._nodes[a] =
|
|
3086
|
+
let s = n.start, o = s.offset, a = r * 4;
|
|
3087
|
+
this._nodes[a] = s.line, this._nodes[a + 1] = s.column, this._nodes[a + 2] = o, this._nodes[a + 3] = n.end.offset - o;
|
|
3019
3088
|
}
|
|
3020
3089
|
if (this._items.has(e)) {
|
|
3021
3090
|
this._items.get(e).push(r), this._total++;
|
|
@@ -3045,35 +3114,35 @@ class x {
|
|
|
3045
3114
|
* })}
|
|
3046
3115
|
*/
|
|
3047
3116
|
c() {
|
|
3048
|
-
let e = /* @__PURE__ */ new Map(), n = {}, r = this._useLocations,
|
|
3049
|
-
|
|
3117
|
+
let e = /* @__PURE__ */ new Map(), n = {}, r = this._useLocations, s = this._items, o = this._nodes, a = s.size;
|
|
3118
|
+
s.forEach((i, l) => {
|
|
3050
3119
|
if (r) {
|
|
3051
|
-
let
|
|
3052
|
-
let
|
|
3120
|
+
let d = i.map(function(y) {
|
|
3121
|
+
let g = y * 4;
|
|
3053
3122
|
return {
|
|
3054
|
-
line: o[
|
|
3055
|
-
column: o[
|
|
3056
|
-
offset: o[
|
|
3057
|
-
length: o[
|
|
3123
|
+
line: o[g],
|
|
3124
|
+
column: o[g + 1],
|
|
3125
|
+
offset: o[g + 2],
|
|
3126
|
+
length: o[g + 3]
|
|
3058
3127
|
};
|
|
3059
3128
|
});
|
|
3060
|
-
e.set(l,
|
|
3129
|
+
e.set(l, d);
|
|
3061
3130
|
} else
|
|
3062
|
-
n[l] =
|
|
3131
|
+
n[l] = i.length;
|
|
3063
3132
|
});
|
|
3064
|
-
let
|
|
3065
|
-
total:
|
|
3133
|
+
let c = this._total, u = {
|
|
3134
|
+
total: c,
|
|
3066
3135
|
totalUnique: a,
|
|
3067
3136
|
unique: n,
|
|
3068
|
-
uniquenessRatio:
|
|
3137
|
+
uniquenessRatio: c === 0 ? 0 : a / c
|
|
3069
3138
|
};
|
|
3070
|
-
return r && (
|
|
3139
|
+
return r && (u.uniqueWithLocations = Object.fromEntries(e)), u;
|
|
3071
3140
|
}
|
|
3072
3141
|
}
|
|
3073
|
-
class
|
|
3142
|
+
class sn {
|
|
3074
3143
|
/** @param {boolean} useLocations */
|
|
3075
3144
|
constructor(e) {
|
|
3076
|
-
this._list = new
|
|
3145
|
+
this._list = new b(e), this._contexts = /* @__PURE__ */ new Map(), this._useLocations = e;
|
|
3077
3146
|
}
|
|
3078
3147
|
/**
|
|
3079
3148
|
* Add an item to this _list's context
|
|
@@ -3082,7 +3151,7 @@ class an {
|
|
|
3082
3151
|
* @param {import('css-tree').CssLocation} node_location
|
|
3083
3152
|
*/
|
|
3084
3153
|
push(e, n, r) {
|
|
3085
|
-
this._list.p(e, r), this._contexts.has(n) || this._contexts.set(n, new
|
|
3154
|
+
this._list.p(e, r), this._contexts.has(n) || this._contexts.set(n, new b(this._useLocations)), this._contexts.get(n).p(e, r);
|
|
3086
3155
|
}
|
|
3087
3156
|
count() {
|
|
3088
3157
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -3093,13 +3162,13 @@ class an {
|
|
|
3093
3162
|
});
|
|
3094
3163
|
}
|
|
3095
3164
|
}
|
|
3096
|
-
function
|
|
3097
|
-
let e = /* @__PURE__ */ new Map(), n = -1, r = 0,
|
|
3165
|
+
function ha(t) {
|
|
3166
|
+
let e = /* @__PURE__ */ new Map(), n = -1, r = 0, s = 0, o = t.length;
|
|
3098
3167
|
for (let a = 0; a < o; a++) {
|
|
3099
|
-
let
|
|
3100
|
-
e.set(
|
|
3168
|
+
let c = t[a], u = (e.get(c) || 0) + 1;
|
|
3169
|
+
e.set(c, u), u > n && (n = u, r = 0, s = 0), u >= n && (r++, s += c);
|
|
3101
3170
|
}
|
|
3102
|
-
return
|
|
3171
|
+
return s / r;
|
|
3103
3172
|
}
|
|
3104
3173
|
class re {
|
|
3105
3174
|
constructor() {
|
|
@@ -3126,13 +3195,13 @@ class re {
|
|
|
3126
3195
|
range: 0,
|
|
3127
3196
|
sum: 0
|
|
3128
3197
|
};
|
|
3129
|
-
let n = this._items.slice().sort((
|
|
3198
|
+
let n = this._items.slice().sort((c, u) => c - u), r = n[0], s = n[e - 1], o = ha(n), a = this._sum;
|
|
3130
3199
|
return {
|
|
3131
3200
|
min: r,
|
|
3132
|
-
max:
|
|
3201
|
+
max: s,
|
|
3133
3202
|
mean: a / e,
|
|
3134
3203
|
mode: o,
|
|
3135
|
-
range:
|
|
3204
|
+
range: s - r,
|
|
3136
3205
|
sum: a
|
|
3137
3206
|
};
|
|
3138
3207
|
}
|
|
@@ -3143,33 +3212,33 @@ class re {
|
|
|
3143
3212
|
return this._items;
|
|
3144
3213
|
}
|
|
3145
3214
|
}
|
|
3146
|
-
function
|
|
3147
|
-
if (
|
|
3215
|
+
function fa(t) {
|
|
3216
|
+
if (Cn(t) || Ce(t)) return !1;
|
|
3148
3217
|
let e = t.charCodeAt(0);
|
|
3149
3218
|
return e === 47 || e === 42 || e === 95 || e === 43 || e === 38 || e === 36 || e === 35;
|
|
3150
3219
|
}
|
|
3151
|
-
function
|
|
3220
|
+
function Cn(t) {
|
|
3152
3221
|
return t.length < 3 ? !1 : t.charCodeAt(0) === 45 && t.charCodeAt(1) === 45;
|
|
3153
3222
|
}
|
|
3154
|
-
function
|
|
3155
|
-
return
|
|
3223
|
+
function V(t, e) {
|
|
3224
|
+
return Cn(e) ? !1 : me(t, e);
|
|
3156
3225
|
}
|
|
3157
|
-
function
|
|
3158
|
-
return
|
|
3226
|
+
function pa(t) {
|
|
3227
|
+
return Ce(t) ? t.slice(t.indexOf("-", 2) + 1) : t;
|
|
3159
3228
|
}
|
|
3160
|
-
function
|
|
3229
|
+
function da(t) {
|
|
3161
3230
|
let e = 5, n = t.indexOf(";"), r = t.indexOf(",");
|
|
3162
3231
|
return n === -1 || r !== -1 && r < n ? t.substring(e, r) : t.substring(e, n);
|
|
3163
3232
|
}
|
|
3164
|
-
function
|
|
3233
|
+
function ma(t) {
|
|
3165
3234
|
let e = t.children;
|
|
3166
3235
|
if (e) {
|
|
3167
3236
|
let n = e.last;
|
|
3168
|
-
return n && n.type === pe &&
|
|
3237
|
+
return n && n.type === pe && me("\\9", n.name);
|
|
3169
3238
|
}
|
|
3170
3239
|
return !1;
|
|
3171
3240
|
}
|
|
3172
|
-
let
|
|
3241
|
+
let ga = new ae([
|
|
3173
3242
|
"border-radius",
|
|
3174
3243
|
"border-top-left-radius",
|
|
3175
3244
|
"border-top-right-radius",
|
|
@@ -3183,196 +3252,196 @@ let wa = new ae([
|
|
|
3183
3252
|
function B(t, e) {
|
|
3184
3253
|
return e === 0 ? 0 : t / e;
|
|
3185
3254
|
}
|
|
3186
|
-
let
|
|
3255
|
+
let ka = {
|
|
3187
3256
|
useLocations: !1
|
|
3188
3257
|
};
|
|
3189
|
-
function
|
|
3190
|
-
let r = Object.assign({},
|
|
3191
|
-
function o(
|
|
3192
|
-
return a(
|
|
3258
|
+
function xa(t, e = {}) {
|
|
3259
|
+
let r = Object.assign({}, ka, e).useLocations === !0, s = Date.now();
|
|
3260
|
+
function o(m) {
|
|
3261
|
+
return a(m).trim();
|
|
3193
3262
|
}
|
|
3194
|
-
function a(
|
|
3195
|
-
let
|
|
3196
|
-
return t.substring(
|
|
3263
|
+
function a(m) {
|
|
3264
|
+
let A = m.loc;
|
|
3265
|
+
return t.substring(A.start.offset, A.end.offset);
|
|
3197
3266
|
}
|
|
3198
|
-
let
|
|
3267
|
+
let c = 0, u = 0, i = 0, l = {
|
|
3199
3268
|
total: 0,
|
|
3200
3269
|
/** @type {Map<string, { size: number, count: number } & ({ uniqueWithLocations?: undefined } | ({ uniqueWithLocations: { offset: number, line: number, column: number, length: number }[] })) }>} */
|
|
3201
3270
|
unique: /* @__PURE__ */ new Map()
|
|
3202
|
-
},
|
|
3271
|
+
}, d = Date.now(), y = Xr(t, {
|
|
3203
3272
|
parseCustomProperty: !0,
|
|
3204
3273
|
// To find font-families, colors, etc.
|
|
3205
3274
|
positions: !0,
|
|
3206
3275
|
// So we can use stringifyNode()
|
|
3207
3276
|
/** @param {string} comment */
|
|
3208
|
-
onComment: function(
|
|
3209
|
-
|
|
3210
|
-
}
|
|
3211
|
-
}),
|
|
3212
|
-
fe(y, function(
|
|
3213
|
-
switch (
|
|
3214
|
-
case
|
|
3215
|
-
|
|
3216
|
-
let
|
|
3217
|
-
if (
|
|
3218
|
-
let
|
|
3219
|
-
r &&
|
|
3220
|
-
|
|
3221
|
-
}),
|
|
3277
|
+
onComment: function(m) {
|
|
3278
|
+
c++, u += m.length;
|
|
3279
|
+
}
|
|
3280
|
+
}), g = Date.now(), S = y.loc.end.line - y.loc.start.line + 1, T = 0, P = new re(), G = [], Y = new b(r), be = new b(r), X = new b(r), Ke = new b(r), Qe = new b(r), Je = new b(r), h = new b(r), f = new b(r), k = new b(r), p = new b(r), Z = new b(r), j = new b(r), ke = 0, R = 0, ye = new re(), de = new re(), Ct = new re(), bn = new b(r), wn = new b(r), vn = new b(r), bt = new b(r), An = /* @__PURE__ */ new Set(), wt = new b(r), we, ve, Ln = new re(), En = new re(), _n = new re(), Tn = new b(r), Ye = new re(), On = new b(r), In = [], vt = new b(r), At = new b(r), Nn = new b(r), $n = new b(r), Dn = /* @__PURE__ */ new Set(), Fe = 0, Pn = new re(), Xe = 0, Lt = 0, Et = new b(r), ze = new b(r), _t = new b(r), Tt = new b(r), Ze = new b(r), Re = new re(), Ot = new re(), Mn = new b(r), It = new b(r), Fn = new b(r), zn = new b(r), Rn = new b(r), Nt = new b(r), $t = new b(r), Dt = new b(r), et = new b(r), tt = new b(r), _e = new sn(r), Te = new b(r), Pt = new sn(r), qn = new b(r), qe = new b(r), Bn = new sn(r);
|
|
3281
|
+
fe(y, function(m) {
|
|
3282
|
+
switch (m.type) {
|
|
3283
|
+
case Ro: {
|
|
3284
|
+
T++;
|
|
3285
|
+
let A = m.name;
|
|
3286
|
+
if (A === "font-face") {
|
|
3287
|
+
let O = {};
|
|
3288
|
+
r && Y.p(m.loc.start.offset, m.loc), m.block.children.forEach((w) => {
|
|
3289
|
+
w.type === hn && (O[w.property] = o(w.value));
|
|
3290
|
+
}), G.push(O), P.push(1);
|
|
3222
3291
|
break;
|
|
3223
3292
|
}
|
|
3224
|
-
let
|
|
3225
|
-
if (
|
|
3226
|
-
let
|
|
3227
|
-
if (
|
|
3228
|
-
|
|
3229
|
-
else if (
|
|
3230
|
-
|
|
3231
|
-
else if (
|
|
3232
|
-
let
|
|
3233
|
-
|
|
3234
|
-
} else
|
|
3293
|
+
let C = 1;
|
|
3294
|
+
if (m.prelude !== null) {
|
|
3295
|
+
let O = m.prelude, w = O && o(m.prelude), L = O.loc;
|
|
3296
|
+
if (A === "media")
|
|
3297
|
+
Ke.p(w, L), Jo(O) && (Qe.p(w, L), C++);
|
|
3298
|
+
else if (A === "supports")
|
|
3299
|
+
h.p(w, L), Qo(O) && (f.p(w, L), C++);
|
|
3300
|
+
else if (me("keyframes", A)) {
|
|
3301
|
+
let v = "@" + A + " " + w;
|
|
3302
|
+
Ce(A) && (p.p(v, L), C++), k.p(v, L);
|
|
3303
|
+
} else A === "import" ? X.p(w, L) : A === "charset" ? Je.p(w, L) : A === "container" ? Z.p(w, L) : A === "layer" ? w.split(",").forEach((v) => be.p(v.trim(), L)) : A === "property" && j.p(w, L);
|
|
3235
3304
|
} else
|
|
3236
|
-
|
|
3237
|
-
|
|
3305
|
+
A === "layer" && (be.p("<anonymous>", m.loc), C++);
|
|
3306
|
+
P.push(C);
|
|
3238
3307
|
break;
|
|
3239
3308
|
}
|
|
3240
|
-
case
|
|
3241
|
-
let
|
|
3242
|
-
|
|
3309
|
+
case jo: {
|
|
3310
|
+
let A = m.prelude, C = m.block, O = A.children, w = C.children, L = O ? O.size : 0, v = w ? w.size : 0;
|
|
3311
|
+
ye.push(L + v), bn.p(L + v, m.loc), de.push(L), wn.p(L, A.loc), Ct.push(v), vn.p(v, C.loc), ke++, v === 0 && R++;
|
|
3243
3312
|
break;
|
|
3244
3313
|
}
|
|
3245
|
-
case
|
|
3246
|
-
let
|
|
3247
|
-
if (this.atrule &&
|
|
3248
|
-
return
|
|
3249
|
-
|
|
3250
|
-
let
|
|
3251
|
-
if (
|
|
3252
|
-
for (let
|
|
3253
|
-
|
|
3254
|
-
let
|
|
3255
|
-
|
|
3256
|
-
let
|
|
3257
|
-
return
|
|
3258
|
-
|
|
3314
|
+
case Sn: {
|
|
3315
|
+
let A = o(m);
|
|
3316
|
+
if (this.atrule && me("keyframes", this.atrule.name))
|
|
3317
|
+
return bt.p(A, m.loc), this.skip;
|
|
3318
|
+
Qr(m) && At.p(A, m.loc);
|
|
3319
|
+
let C = Xo(m);
|
|
3320
|
+
if (C !== !1)
|
|
3321
|
+
for (let q of C)
|
|
3322
|
+
Nn.p(q, m.loc);
|
|
3323
|
+
let O = Jr(m);
|
|
3324
|
+
Yo(m) && wt.p(A, m.loc), An.add(A), Ye.push(O), On.p(O, m.loc);
|
|
3325
|
+
let w = kt(m).toArray(), [L, v, _] = w;
|
|
3326
|
+
return Tn.p(w.toString(), m.loc), Ln.push(L), En.push(v), _n.push(_), we === void 0 && (we = w), ve === void 0 && (ve = w), ve !== void 0 && Ar(ve, w) < 0 && (ve = w), we !== void 0 && Ar(we, w) > 0 && (we = w), In.push(w), L > 0 && vt.p(A, m.loc), Zo(m, function(ee) {
|
|
3327
|
+
$n.p(ee.name, ee.loc);
|
|
3259
3328
|
}), this.skip;
|
|
3260
3329
|
}
|
|
3261
|
-
case
|
|
3330
|
+
case Hr: {
|
|
3262
3331
|
if (!this.declaration)
|
|
3263
3332
|
break;
|
|
3264
|
-
let
|
|
3265
|
-
return
|
|
3333
|
+
let A = m.unit;
|
|
3334
|
+
return me("\\9", A) ? Pt.push(A.substring(0, A.length - 2), this.declaration.property, m.loc) : Pt.push(A, this.declaration.property, m.loc), this.skip;
|
|
3266
3335
|
}
|
|
3267
|
-
case
|
|
3268
|
-
if (
|
|
3269
|
-
let
|
|
3270
|
-
l.total++,
|
|
3271
|
-
let
|
|
3336
|
+
case Ko: {
|
|
3337
|
+
if (yn("data:", m.value)) {
|
|
3338
|
+
let A = m.value, C = A.length, O = da(A);
|
|
3339
|
+
l.total++, i += C;
|
|
3340
|
+
let w = {
|
|
3272
3341
|
/** @type {number} */
|
|
3273
|
-
line:
|
|
3342
|
+
line: m.loc.start.line,
|
|
3274
3343
|
/** @type {number} */
|
|
3275
|
-
column:
|
|
3344
|
+
column: m.loc.start.column,
|
|
3276
3345
|
/** @type {number} */
|
|
3277
|
-
offset:
|
|
3346
|
+
offset: m.loc.start.offset,
|
|
3278
3347
|
/** @type {number} */
|
|
3279
|
-
length:
|
|
3348
|
+
length: m.loc.end.offset - m.loc.start.offset
|
|
3280
3349
|
};
|
|
3281
|
-
if (l.unique.has(
|
|
3282
|
-
let
|
|
3283
|
-
|
|
3350
|
+
if (l.unique.has(O)) {
|
|
3351
|
+
let L = l.unique.get(O);
|
|
3352
|
+
L.count++, L.size += C, l.unique.set(O, L), r && L.uniqueWithLocations.push(w);
|
|
3284
3353
|
} else {
|
|
3285
|
-
let
|
|
3354
|
+
let L = {
|
|
3286
3355
|
count: 1,
|
|
3287
|
-
size:
|
|
3356
|
+
size: C
|
|
3288
3357
|
};
|
|
3289
|
-
r && (
|
|
3358
|
+
r && (L.uniqueWithLocations = [w]), l.unique.set(O, L);
|
|
3290
3359
|
}
|
|
3291
3360
|
}
|
|
3292
3361
|
break;
|
|
3293
3362
|
}
|
|
3294
|
-
case
|
|
3295
|
-
if (
|
|
3296
|
-
|
|
3363
|
+
case Uo: {
|
|
3364
|
+
if (at(m)) {
|
|
3365
|
+
Ot.push(1), qe.p(o(m), m.loc);
|
|
3297
3366
|
break;
|
|
3298
3367
|
}
|
|
3299
|
-
let
|
|
3300
|
-
|
|
3301
|
-
let
|
|
3302
|
-
if (
|
|
3303
|
-
return
|
|
3304
|
-
if (
|
|
3305
|
-
if (
|
|
3306
|
-
let { font_size:
|
|
3307
|
-
|
|
3368
|
+
let A = this.declaration, { property: C, important: O } = A, w = 1;
|
|
3369
|
+
Yr(m) && (Mn.p(o(m), m.loc), w++), typeof O == "string" && (It.p(a(m) + "!" + O, m.loc), w++), ma(m) && (It.p(o(m), m.loc), w++);
|
|
3370
|
+
let L = m.children, v = m.loc;
|
|
3371
|
+
if (Ot.push(w), V("z-index", C))
|
|
3372
|
+
return Fn.p(o(m), v), this.skip;
|
|
3373
|
+
if (V("font", C)) {
|
|
3374
|
+
if (rn(m)) return;
|
|
3375
|
+
let { font_size: _, line_height: q, font_family: ee } = aa(m, o, function(Se) {
|
|
3376
|
+
Se.type === "keyword" && qe.p(Se.value, v);
|
|
3308
3377
|
});
|
|
3309
|
-
|
|
3378
|
+
ee && Nt.p(ee, v), _ && $t.p(_, v), q && Dt.p(q, v);
|
|
3310
3379
|
break;
|
|
3311
|
-
} else if (
|
|
3312
|
-
|
|
3380
|
+
} else if (V("font-size", C)) {
|
|
3381
|
+
rn(m) || $t.p(o(m), v);
|
|
3313
3382
|
break;
|
|
3314
|
-
} else if (
|
|
3315
|
-
|
|
3383
|
+
} else if (V("font-family", C)) {
|
|
3384
|
+
rn(m) || Nt.p(o(m), v);
|
|
3316
3385
|
break;
|
|
3317
|
-
} else if (
|
|
3318
|
-
|
|
3319
|
-
else if (
|
|
3320
|
-
|
|
3321
|
-
|
|
3386
|
+
} else if (V("line-height", C))
|
|
3387
|
+
Dt.p(o(m), v);
|
|
3388
|
+
else if (V("transition", C) || V("animation", C)) {
|
|
3389
|
+
ua(L, function(_) {
|
|
3390
|
+
_.type === "fn" ? et.p(o(_.value), v) : _.type === "duration" ? tt.p(o(_.value), v) : _.type === "keyword" && qe.p(o(_.value), v);
|
|
3322
3391
|
});
|
|
3323
3392
|
break;
|
|
3324
|
-
} else if (
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
}) :
|
|
3393
|
+
} else if (V("animation-duration", C) || V("transition-duration", C)) {
|
|
3394
|
+
L && L.size > 1 ? L.forEach((_) => {
|
|
3395
|
+
_.type !== De && tt.p(o(_), v);
|
|
3396
|
+
}) : tt.p(o(m), v);
|
|
3328
3397
|
break;
|
|
3329
|
-
} else if (
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
}) :
|
|
3398
|
+
} else if (V("transition-timing-function", C) || V("animation-timing-function", C)) {
|
|
3399
|
+
L && L.size > 1 ? L.forEach((_) => {
|
|
3400
|
+
_.type !== De && et.p(o(_), v);
|
|
3401
|
+
}) : et.p(o(m), v);
|
|
3333
3402
|
break;
|
|
3334
|
-
} else if (
|
|
3335
|
-
|
|
3403
|
+
} else if (ga.has(pa(C))) {
|
|
3404
|
+
at(m) || Bn.push(o(m), C, v);
|
|
3336
3405
|
break;
|
|
3337
|
-
} else
|
|
3338
|
-
fe(
|
|
3339
|
-
let
|
|
3340
|
-
switch (
|
|
3341
|
-
case
|
|
3342
|
-
let
|
|
3343
|
-
return
|
|
3406
|
+
} else V("text-shadow", C) ? at(m) || zn.p(o(m), v) : V("box-shadow", C) && (at(m) || Rn.p(o(m), v));
|
|
3407
|
+
fe(m, function(_) {
|
|
3408
|
+
let q = _.name;
|
|
3409
|
+
switch (_.type) {
|
|
3410
|
+
case Wo: {
|
|
3411
|
+
let ee = _.value.length;
|
|
3412
|
+
return me("\\9", _.value) && (ee = ee - 2), _e.push("#" + _.value, C, v), Te.p("hex" + ee, v), this.skip;
|
|
3344
3413
|
}
|
|
3345
3414
|
case pe: {
|
|
3346
|
-
|
|
3347
|
-
let
|
|
3348
|
-
if (
|
|
3415
|
+
xt.has(q) && qe.p(q, v);
|
|
3416
|
+
let ee = q.length;
|
|
3417
|
+
if (ee > 20 || ee < 3)
|
|
3349
3418
|
return this.skip;
|
|
3350
|
-
if (
|
|
3351
|
-
let
|
|
3352
|
-
|
|
3419
|
+
if (ra.has(q)) {
|
|
3420
|
+
let Se = o(_);
|
|
3421
|
+
_e.push(Se, C, v), Te.p(q.toLowerCase(), v);
|
|
3353
3422
|
return;
|
|
3354
3423
|
}
|
|
3355
|
-
if (
|
|
3356
|
-
let
|
|
3357
|
-
|
|
3424
|
+
if (ea.has(q)) {
|
|
3425
|
+
let Se = o(_);
|
|
3426
|
+
_e.push(Se, C, v), Te.p("named", v);
|
|
3358
3427
|
return;
|
|
3359
3428
|
}
|
|
3360
|
-
if (
|
|
3361
|
-
let
|
|
3362
|
-
|
|
3429
|
+
if (ta.has(q)) {
|
|
3430
|
+
let Se = o(_);
|
|
3431
|
+
_e.push(Se, C, v), Te.p("system", v);
|
|
3363
3432
|
return;
|
|
3364
3433
|
}
|
|
3365
3434
|
return this.skip;
|
|
3366
3435
|
}
|
|
3367
|
-
case
|
|
3368
|
-
if (W("var",
|
|
3436
|
+
case xn: {
|
|
3437
|
+
if (W("var", q))
|
|
3369
3438
|
return this.skip;
|
|
3370
|
-
if (
|
|
3371
|
-
|
|
3439
|
+
if (na.has(q)) {
|
|
3440
|
+
_e.push(o(_), C, _.loc), Te.p(q.toLowerCase(), _.loc);
|
|
3372
3441
|
return;
|
|
3373
3442
|
}
|
|
3374
|
-
if (
|
|
3375
|
-
|
|
3443
|
+
if (me("gradient", q)) {
|
|
3444
|
+
qn.p(o(_), _.loc);
|
|
3376
3445
|
return;
|
|
3377
3446
|
}
|
|
3378
3447
|
}
|
|
@@ -3380,42 +3449,42 @@ function Ea(t, e = {}) {
|
|
|
3380
3449
|
});
|
|
3381
3450
|
break;
|
|
3382
3451
|
}
|
|
3383
|
-
case
|
|
3452
|
+
case hn: {
|
|
3384
3453
|
if (this.atrulePrelude !== null)
|
|
3385
3454
|
return this.skip;
|
|
3386
|
-
|
|
3387
|
-
let
|
|
3388
|
-
|
|
3389
|
-
let { property:
|
|
3455
|
+
Fe++;
|
|
3456
|
+
let A = 1;
|
|
3457
|
+
Dn.add(o(m)), m.important === !0 && (Xe++, A++, this.atrule && me("keyframes", this.atrule.name) && (Lt++, A++)), Pn.push(A);
|
|
3458
|
+
let { property: C, loc: { start: O } } = m, w = {
|
|
3390
3459
|
start: {
|
|
3391
|
-
line:
|
|
3392
|
-
column:
|
|
3393
|
-
offset:
|
|
3460
|
+
line: O.line,
|
|
3461
|
+
column: O.column,
|
|
3462
|
+
offset: O.offset
|
|
3394
3463
|
},
|
|
3395
3464
|
end: {
|
|
3396
|
-
offset:
|
|
3465
|
+
offset: O.offset + C.length
|
|
3397
3466
|
}
|
|
3398
3467
|
};
|
|
3399
|
-
|
|
3468
|
+
ze.p(C, w), Ce(C) ? (Tt.p(C, w), Re.push(2)) : fa(C) ? (_t.p(C, w), Re.push(2)) : Cn(C) ? (Ze.p(C, w), Re.push(m.important ? 3 : 2), m.important === !0 && Et.p(C, w)) : Re.push(1);
|
|
3400
3469
|
break;
|
|
3401
3470
|
}
|
|
3402
3471
|
}
|
|
3403
3472
|
});
|
|
3404
|
-
let
|
|
3473
|
+
let jn = Dn.size, Oe = Ye.size(), Mt = Ln.aggregate(), Ft = En.aggregate(), zt = _n.aggregate(), Un = An.size, F = Object.assign, Gn = t.length, Rt = G.length, Vn = P.aggregate(), Hn = Ye.aggregate(), Wn = Pn.aggregate(), Kn = Re.aggregate(), Qn = Ot.aggregate();
|
|
3405
3474
|
return {
|
|
3406
3475
|
stylesheet: {
|
|
3407
|
-
sourceLinesOfCode:
|
|
3408
|
-
linesOfCode:
|
|
3409
|
-
size:
|
|
3410
|
-
complexity:
|
|
3476
|
+
sourceLinesOfCode: T + Oe + Fe + bt.size(),
|
|
3477
|
+
linesOfCode: S,
|
|
3478
|
+
size: Gn,
|
|
3479
|
+
complexity: Vn.sum + Hn.sum + Wn.sum + Kn.sum + Qn.sum,
|
|
3411
3480
|
comments: {
|
|
3412
|
-
total:
|
|
3413
|
-
size:
|
|
3481
|
+
total: c,
|
|
3482
|
+
size: u
|
|
3414
3483
|
},
|
|
3415
3484
|
embeddedContent: {
|
|
3416
3485
|
size: {
|
|
3417
|
-
total:
|
|
3418
|
-
ratio: B(
|
|
3486
|
+
total: i,
|
|
3487
|
+
ratio: B(i, Gn)
|
|
3419
3488
|
},
|
|
3420
3489
|
types: {
|
|
3421
3490
|
total: l.total,
|
|
@@ -3426,211 +3495,211 @@ function Ea(t, e = {}) {
|
|
|
3426
3495
|
}
|
|
3427
3496
|
},
|
|
3428
3497
|
atrules: {
|
|
3429
|
-
fontface:
|
|
3430
|
-
total:
|
|
3431
|
-
totalUnique:
|
|
3432
|
-
unique:
|
|
3433
|
-
uniquenessRatio:
|
|
3498
|
+
fontface: F({
|
|
3499
|
+
total: Rt,
|
|
3500
|
+
totalUnique: Rt,
|
|
3501
|
+
unique: G,
|
|
3502
|
+
uniquenessRatio: Rt === 0 ? 0 : 1
|
|
3434
3503
|
}, r ? {
|
|
3435
|
-
uniqueWithLocations:
|
|
3504
|
+
uniqueWithLocations: Y.c().uniqueWithLocations
|
|
3436
3505
|
} : {}),
|
|
3437
|
-
import:
|
|
3438
|
-
media:
|
|
3439
|
-
|
|
3506
|
+
import: X.c(),
|
|
3507
|
+
media: F(
|
|
3508
|
+
Ke.c(),
|
|
3440
3509
|
{
|
|
3441
|
-
browserhacks:
|
|
3510
|
+
browserhacks: Qe.c()
|
|
3442
3511
|
}
|
|
3443
3512
|
),
|
|
3444
|
-
charset:
|
|
3445
|
-
supports:
|
|
3446
|
-
|
|
3513
|
+
charset: Je.c(),
|
|
3514
|
+
supports: F(
|
|
3515
|
+
h.c(),
|
|
3447
3516
|
{
|
|
3448
|
-
browserhacks:
|
|
3517
|
+
browserhacks: f.c()
|
|
3449
3518
|
}
|
|
3450
3519
|
),
|
|
3451
|
-
keyframes:
|
|
3452
|
-
|
|
3520
|
+
keyframes: F(
|
|
3521
|
+
k.c(),
|
|
3453
3522
|
{
|
|
3454
|
-
prefixed:
|
|
3523
|
+
prefixed: F(
|
|
3455
3524
|
p.c(),
|
|
3456
3525
|
{
|
|
3457
|
-
ratio: B(p.size(),
|
|
3526
|
+
ratio: B(p.size(), k.size())
|
|
3458
3527
|
}
|
|
3459
3528
|
)
|
|
3460
3529
|
}
|
|
3461
3530
|
),
|
|
3462
|
-
container:
|
|
3463
|
-
layer:
|
|
3531
|
+
container: Z.c(),
|
|
3532
|
+
layer: be.c(),
|
|
3464
3533
|
property: j.c(),
|
|
3465
|
-
total:
|
|
3466
|
-
complexity:
|
|
3534
|
+
total: T,
|
|
3535
|
+
complexity: Vn
|
|
3467
3536
|
},
|
|
3468
3537
|
rules: {
|
|
3469
|
-
total:
|
|
3538
|
+
total: ke,
|
|
3470
3539
|
empty: {
|
|
3471
|
-
total:
|
|
3472
|
-
ratio: B(
|
|
3540
|
+
total: R,
|
|
3541
|
+
ratio: B(R, ke)
|
|
3473
3542
|
},
|
|
3474
|
-
sizes:
|
|
3475
|
-
|
|
3543
|
+
sizes: F(
|
|
3544
|
+
ye.aggregate(),
|
|
3476
3545
|
{
|
|
3477
|
-
items:
|
|
3546
|
+
items: ye.toArray()
|
|
3478
3547
|
},
|
|
3479
|
-
|
|
3548
|
+
bn.c()
|
|
3480
3549
|
),
|
|
3481
|
-
selectors:
|
|
3482
|
-
|
|
3550
|
+
selectors: F(
|
|
3551
|
+
de.aggregate(),
|
|
3483
3552
|
{
|
|
3484
|
-
items:
|
|
3553
|
+
items: de.toArray()
|
|
3485
3554
|
},
|
|
3486
|
-
|
|
3555
|
+
wn.c()
|
|
3487
3556
|
),
|
|
3488
|
-
declarations:
|
|
3489
|
-
|
|
3557
|
+
declarations: F(
|
|
3558
|
+
Ct.aggregate(),
|
|
3490
3559
|
{
|
|
3491
|
-
items:
|
|
3560
|
+
items: Ct.toArray()
|
|
3492
3561
|
},
|
|
3493
|
-
|
|
3562
|
+
vn.c()
|
|
3494
3563
|
)
|
|
3495
3564
|
},
|
|
3496
3565
|
selectors: {
|
|
3497
|
-
total:
|
|
3498
|
-
totalUnique:
|
|
3499
|
-
uniquenessRatio: B(
|
|
3500
|
-
specificity:
|
|
3566
|
+
total: Oe,
|
|
3567
|
+
totalUnique: Un,
|
|
3568
|
+
uniquenessRatio: B(Un, Oe),
|
|
3569
|
+
specificity: F(
|
|
3501
3570
|
{
|
|
3502
3571
|
/** @type Specificity */
|
|
3503
|
-
min:
|
|
3572
|
+
min: ve === void 0 ? [0, 0, 0] : ve,
|
|
3504
3573
|
/** @type Specificity */
|
|
3505
|
-
max:
|
|
3574
|
+
max: we === void 0 ? [0, 0, 0] : we,
|
|
3506
3575
|
/** @type Specificity */
|
|
3507
|
-
sum: [
|
|
3576
|
+
sum: [Mt.sum, Ft.sum, zt.sum],
|
|
3508
3577
|
/** @type Specificity */
|
|
3509
|
-
mean: [
|
|
3578
|
+
mean: [Mt.mean, Ft.mean, zt.mean],
|
|
3510
3579
|
/** @type Specificity */
|
|
3511
|
-
mode: [
|
|
3580
|
+
mode: [Mt.mode, Ft.mode, zt.mode],
|
|
3512
3581
|
/** @type Specificity */
|
|
3513
|
-
items:
|
|
3582
|
+
items: In
|
|
3514
3583
|
},
|
|
3515
|
-
|
|
3584
|
+
Tn.c()
|
|
3516
3585
|
),
|
|
3517
|
-
complexity:
|
|
3518
|
-
|
|
3519
|
-
|
|
3586
|
+
complexity: F(
|
|
3587
|
+
Hn,
|
|
3588
|
+
On.c(),
|
|
3520
3589
|
{
|
|
3521
|
-
items:
|
|
3590
|
+
items: Ye.toArray()
|
|
3522
3591
|
}
|
|
3523
3592
|
),
|
|
3524
|
-
id:
|
|
3525
|
-
|
|
3593
|
+
id: F(
|
|
3594
|
+
vt.c(),
|
|
3526
3595
|
{
|
|
3527
|
-
ratio: B(
|
|
3596
|
+
ratio: B(vt.size(), Oe)
|
|
3528
3597
|
}
|
|
3529
3598
|
),
|
|
3530
|
-
pseudoClasses:
|
|
3531
|
-
accessibility:
|
|
3532
|
-
|
|
3599
|
+
pseudoClasses: Nn.c(),
|
|
3600
|
+
accessibility: F(
|
|
3601
|
+
At.c(),
|
|
3533
3602
|
{
|
|
3534
|
-
ratio: B(
|
|
3603
|
+
ratio: B(At.size(), Oe)
|
|
3535
3604
|
}
|
|
3536
3605
|
),
|
|
3537
|
-
keyframes:
|
|
3538
|
-
prefixed:
|
|
3539
|
-
|
|
3606
|
+
keyframes: bt.c(),
|
|
3607
|
+
prefixed: F(
|
|
3608
|
+
wt.c(),
|
|
3540
3609
|
{
|
|
3541
|
-
ratio: B(
|
|
3610
|
+
ratio: B(wt.size(), Oe)
|
|
3542
3611
|
}
|
|
3543
3612
|
),
|
|
3544
|
-
combinators:
|
|
3613
|
+
combinators: $n.c()
|
|
3545
3614
|
},
|
|
3546
3615
|
declarations: {
|
|
3547
|
-
total:
|
|
3548
|
-
totalUnique:
|
|
3549
|
-
uniquenessRatio: B(
|
|
3616
|
+
total: Fe,
|
|
3617
|
+
totalUnique: jn,
|
|
3618
|
+
uniquenessRatio: B(jn, Fe),
|
|
3550
3619
|
importants: {
|
|
3551
|
-
total:
|
|
3552
|
-
ratio: B(
|
|
3620
|
+
total: Xe,
|
|
3621
|
+
ratio: B(Xe, Fe),
|
|
3553
3622
|
inKeyframes: {
|
|
3554
|
-
total:
|
|
3555
|
-
ratio: B(
|
|
3623
|
+
total: Lt,
|
|
3624
|
+
ratio: B(Lt, Xe)
|
|
3556
3625
|
}
|
|
3557
3626
|
},
|
|
3558
|
-
complexity:
|
|
3627
|
+
complexity: Wn
|
|
3559
3628
|
},
|
|
3560
|
-
properties:
|
|
3561
|
-
|
|
3629
|
+
properties: F(
|
|
3630
|
+
ze.c(),
|
|
3562
3631
|
{
|
|
3563
|
-
prefixed:
|
|
3564
|
-
|
|
3632
|
+
prefixed: F(
|
|
3633
|
+
Tt.c(),
|
|
3565
3634
|
{
|
|
3566
|
-
ratio: B(
|
|
3635
|
+
ratio: B(Tt.size(), ze.size())
|
|
3567
3636
|
}
|
|
3568
3637
|
),
|
|
3569
|
-
custom:
|
|
3570
|
-
|
|
3638
|
+
custom: F(
|
|
3639
|
+
Ze.c(),
|
|
3571
3640
|
{
|
|
3572
|
-
ratio: B(
|
|
3573
|
-
importants:
|
|
3574
|
-
|
|
3641
|
+
ratio: B(Ze.size(), ze.size()),
|
|
3642
|
+
importants: F(
|
|
3643
|
+
Et.c(),
|
|
3575
3644
|
{
|
|
3576
|
-
ratio: B(
|
|
3645
|
+
ratio: B(Et.size(), Ze.size())
|
|
3577
3646
|
}
|
|
3578
3647
|
)
|
|
3579
3648
|
}
|
|
3580
3649
|
),
|
|
3581
|
-
browserhacks:
|
|
3582
|
-
|
|
3650
|
+
browserhacks: F(
|
|
3651
|
+
_t.c(),
|
|
3583
3652
|
{
|
|
3584
|
-
ratio: B(
|
|
3653
|
+
ratio: B(_t.size(), ze.size())
|
|
3585
3654
|
}
|
|
3586
3655
|
),
|
|
3587
|
-
complexity:
|
|
3656
|
+
complexity: Kn
|
|
3588
3657
|
}
|
|
3589
3658
|
),
|
|
3590
3659
|
values: {
|
|
3591
|
-
colors:
|
|
3592
|
-
|
|
3660
|
+
colors: F(
|
|
3661
|
+
_e.count(),
|
|
3593
3662
|
{
|
|
3594
|
-
formats:
|
|
3663
|
+
formats: Te.c()
|
|
3595
3664
|
}
|
|
3596
3665
|
),
|
|
3597
|
-
gradients:
|
|
3598
|
-
fontFamilies:
|
|
3599
|
-
fontSizes:
|
|
3600
|
-
lineHeights:
|
|
3601
|
-
zindexes:
|
|
3602
|
-
textShadows:
|
|
3603
|
-
boxShadows:
|
|
3604
|
-
borderRadiuses:
|
|
3666
|
+
gradients: qn.c(),
|
|
3667
|
+
fontFamilies: Nt.c(),
|
|
3668
|
+
fontSizes: $t.c(),
|
|
3669
|
+
lineHeights: Dt.c(),
|
|
3670
|
+
zindexes: Fn.c(),
|
|
3671
|
+
textShadows: zn.c(),
|
|
3672
|
+
boxShadows: Rn.c(),
|
|
3673
|
+
borderRadiuses: Bn.count(),
|
|
3605
3674
|
animations: {
|
|
3606
|
-
durations:
|
|
3607
|
-
timingFunctions:
|
|
3675
|
+
durations: tt.c(),
|
|
3676
|
+
timingFunctions: et.c()
|
|
3608
3677
|
},
|
|
3609
|
-
prefixes:
|
|
3610
|
-
browserhacks:
|
|
3611
|
-
units:
|
|
3612
|
-
complexity:
|
|
3613
|
-
keywords:
|
|
3678
|
+
prefixes: Mn.c(),
|
|
3679
|
+
browserhacks: It.c(),
|
|
3680
|
+
units: Pt.count(),
|
|
3681
|
+
complexity: Qn,
|
|
3682
|
+
keywords: qe.c()
|
|
3614
3683
|
},
|
|
3615
3684
|
__meta__: {
|
|
3616
|
-
parseTime:
|
|
3617
|
-
analyzeTime: Date.now() -
|
|
3618
|
-
total: Date.now() -
|
|
3685
|
+
parseTime: g - d,
|
|
3686
|
+
analyzeTime: Date.now() - g,
|
|
3687
|
+
total: Date.now() - s
|
|
3619
3688
|
}
|
|
3620
3689
|
};
|
|
3621
3690
|
}
|
|
3622
|
-
function
|
|
3691
|
+
function Ar(t, e) {
|
|
3623
3692
|
return t[0] === e[0] ? t[1] === e[1] ? e[2] - t[2] : e[1] - t[1] : e[0] - t[0];
|
|
3624
3693
|
}
|
|
3625
3694
|
export {
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3695
|
+
xa as analyze,
|
|
3696
|
+
Ar as compareSpecificity,
|
|
3697
|
+
Ce as hasVendorPrefix,
|
|
3698
|
+
Qr as isAccessibilitySelector,
|
|
3699
|
+
Jo as isMediaBrowserhack,
|
|
3700
|
+
fa as isPropertyHack,
|
|
3701
|
+
Yo as isSelectorPrefixed,
|
|
3702
|
+
Qo as isSupportsBrowserhack,
|
|
3703
|
+
Yr as isValuePrefixed,
|
|
3704
|
+
Jr as selectorComplexity
|
|
3636
3705
|
};
|