@vue/devtools-electron 7.0.27 → 7.1.1
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/client/assets/css-CAzixsid-BiWblMbN.js +505 -0
- package/client/assets/diff-Bo5iyMQ2-DvyTQcux.js +1 -0
- package/client/assets/html-BZB5lEhh-ZkrgDCHn.js +74 -0
- package/client/assets/index-BFXmWfZp.css +1 -0
- package/client/assets/index-DZ_zgPIw.js +1104 -0
- package/client/assets/javascript-DqVBMyXe-Dch3xQiY.js +699 -0
- package/client/assets/json-B12k4-6m-CupVZNk8.js +25 -0
- package/client/assets/shellscript-DQ1J75ow-D4k753MY.js +1 -0
- package/client/assets/typescript-AEg-ehu7-DC8MraHL.js +666 -0
- package/client/assets/{unocss-runtime-COcjrKyN.js → unocss-runtime-pCzu9suo.js} +2 -2
- package/client/assets/{vitesse-dark-DggdVF2v.js → vitesse-dark-CQ1WWl9n.js} +1 -1
- package/client/assets/vitesse-dark-DX6gc1PC-CQ1WWl9n.js +1 -0
- package/client/assets/{vitesse-light-A1WiD9SJ.js → vitesse-light-BQX_J3vG-DaCkt_J7.js} +1 -1
- package/client/assets/vitesse-light-DaCkt_J7.js +1 -0
- package/client/assets/vue-CSiwUDF5-BenY5O_m.js +2002 -0
- package/client/assets/vue-html-D0BKftsE-DYUd3QbO.js +1 -0
- package/client/assets/yaml-PGla5xPP-DHFOa8tC.js +200 -0
- package/client/css-CAzixsid-CEpuX1HY.js +511 -0
- package/client/devtools-panel.css +1 -1
- package/client/devtools-panel.js +44153 -30015
- package/client/diff-Bo5iyMQ2-Bo5iyMQ2.js +7 -0
- package/client/html-BZB5lEhh-B74zAnWx.js +84 -0
- package/client/index.html +2 -2
- package/client/javascript-DqVBMyXe-DqVBMyXe.js +705 -0
- package/client/json-B12k4-6m-B12k4-6m.js +31 -0
- package/client/shellscript-DQ1J75ow-DQ1J75ow.js +7 -0
- package/client/typescript-AEg-ehu7-AEg-ehu7.js +672 -0
- package/client/{unocss-runtime-mlmxKvvC.js → unocss-runtime-DALonLoo.js} +186 -178
- package/client/{vitesse-dark-DEltXrMK.js → vitesse-dark-DX6gc1PC-DX6gc1PC.js} +1 -1
- package/client/vitesse-dark-DX6gc1PC.js +683 -0
- package/client/{vitesse-light-C4WnY2Z4.js → vitesse-light-BQX_J3vG-BQX_J3vG.js} +1 -1
- package/client/vitesse-light-BQX_J3vG.js +681 -0
- package/client/vue-CSiwUDF5-BrneCaTr.js +2124 -0
- package/client/vue-html-D0BKftsE-Br4pXe22.js +11 -0
- package/client/yaml-PGla5xPP-HJurM_FJ.js +206 -0
- package/dist/devtools.js +4351 -171
- package/dist/index.cjs +70 -67
- package/dist/index.js +70 -67
- package/dist/user-app.cjs +70 -67
- package/dist/user-app.iife.js +71 -68
- package/dist/user-app.js +69 -66
- package/package.json +5 -5
- package/client/assets/index-D4yfbSKS.css +0 -1
- package/client/assets/index-N1hSW_y4.js +0 -1096
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const Fe = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, Ve = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,
|
|
2
|
-
function
|
|
1
|
+
const Fe = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, Ve = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, He = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
2
|
+
function Ge(e, t) {
|
|
3
3
|
if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
4
4
|
Be(e);
|
|
5
5
|
return;
|
|
@@ -35,7 +35,7 @@ function ze(e, t = {}) {
|
|
|
35
35
|
if (s === "-infinity")
|
|
36
36
|
return Number.NEGATIVE_INFINITY;
|
|
37
37
|
}
|
|
38
|
-
if (!
|
|
38
|
+
if (!He.test(e)) {
|
|
39
39
|
if (t.strict)
|
|
40
40
|
throw new SyntaxError("[destr] Invalid JSON");
|
|
41
41
|
return e;
|
|
@@ -44,7 +44,7 @@ function ze(e, t = {}) {
|
|
|
44
44
|
if (Fe.test(e) || Ve.test(e)) {
|
|
45
45
|
if (t.strict)
|
|
46
46
|
throw new Error("[destr] Possible prototype pollution");
|
|
47
|
-
return JSON.parse(e,
|
|
47
|
+
return JSON.parse(e, Ge);
|
|
48
48
|
}
|
|
49
49
|
return JSON.parse(e);
|
|
50
50
|
} catch (s) {
|
|
@@ -53,12 +53,12 @@ function ze(e, t = {}) {
|
|
|
53
53
|
return e;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
const qe = /#/g, We = /&/g, Ke = /\//g, Je = /=/g, se = /\+/g, Xe = /%5e/gi,
|
|
56
|
+
const qe = /#/g, We = /&/g, Ke = /\//g, Je = /=/g, se = /\+/g, Xe = /%5e/gi, Ye = /%60/gi, Qe = /%7c/gi, Ze = /%20/gi;
|
|
57
57
|
function et(e) {
|
|
58
|
-
return encodeURI("" + e).replace(
|
|
58
|
+
return encodeURI("" + e).replace(Qe, "|");
|
|
59
59
|
}
|
|
60
60
|
function ee(e) {
|
|
61
|
-
return et(typeof e == "string" ? e : JSON.stringify(e)).replace(se, "%2B").replace(Ze, "+").replace(qe, "%23").replace(We, "%26").replace(
|
|
61
|
+
return et(typeof e == "string" ? e : JSON.stringify(e)).replace(se, "%2B").replace(Ze, "+").replace(qe, "%23").replace(We, "%26").replace(Ye, "`").replace(Xe, "^").replace(Ke, "%2F");
|
|
62
62
|
}
|
|
63
63
|
function J(e) {
|
|
64
64
|
return ee(e).replace(Je, "%3D");
|
|
@@ -349,8 +349,8 @@ function Oe(e = {}) {
|
|
|
349
349
|
const h = (i.options.parseResponse ? "json" : i.options.responseType) || Ct(i.response.headers.get("content-type") || "");
|
|
350
350
|
switch (h) {
|
|
351
351
|
case "json": {
|
|
352
|
-
const m = await i.response.text(),
|
|
353
|
-
i.response._data =
|
|
352
|
+
const m = await i.response.text(), b = i.options.parseResponse || ze;
|
|
353
|
+
i.response._data = b(m);
|
|
354
354
|
break;
|
|
355
355
|
}
|
|
356
356
|
case "stream": {
|
|
@@ -383,8 +383,8 @@ const oe = function() {
|
|
|
383
383
|
if (typeof global < "u")
|
|
384
384
|
return global;
|
|
385
385
|
throw new Error("unable to locate global object");
|
|
386
|
-
}(), kt = oe.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),
|
|
387
|
-
function
|
|
386
|
+
}(), kt = oe.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!"))), Tt = oe.Headers, $t = oe.AbortController, Lt = Oe({ fetch: kt, Headers: Tt, AbortController: $t }), Mt = Lt;
|
|
387
|
+
function Ut(e) {
|
|
388
388
|
const t = e.length;
|
|
389
389
|
let n = -1, s, o = "";
|
|
390
390
|
const r = e.charCodeAt(0);
|
|
@@ -425,24 +425,24 @@ function It(e) {
|
|
|
425
425
|
}
|
|
426
426
|
return o;
|
|
427
427
|
}
|
|
428
|
-
const X =
|
|
429
|
-
function
|
|
428
|
+
const X = Ut;
|
|
429
|
+
function I(e = []) {
|
|
430
430
|
return Array.isArray(e) ? e : [e];
|
|
431
431
|
}
|
|
432
432
|
function W(e) {
|
|
433
433
|
return Array.from(new Set(e));
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function It(e, t) {
|
|
436
436
|
return e.reduce((n, s) => (n.findIndex((r) => t(s, r)) === -1 && n.push(s), n), []);
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function U(e) {
|
|
439
439
|
return typeof e == "string";
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
return
|
|
441
|
+
function H(e) {
|
|
442
|
+
return U(e) ? e : (Array.isArray(e) ? e : Object.entries(e)).filter((t) => t[1] != null);
|
|
443
443
|
}
|
|
444
444
|
function Nt(e) {
|
|
445
|
-
return Array.isArray(e) ? e.find((t) => !Array.isArray(t) || Array.isArray(t[0])) ? e.map((t) =>
|
|
445
|
+
return Array.isArray(e) ? e.find((t) => !Array.isArray(t) || Array.isArray(t[0])) ? e.map((t) => H(t)) : [e] : [H(e)];
|
|
446
446
|
}
|
|
447
447
|
function Dt(e) {
|
|
448
448
|
return e.filter(([t, n], s) => {
|
|
@@ -454,10 +454,10 @@ function Dt(e) {
|
|
|
454
454
|
return !0;
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function Y(e) {
|
|
458
458
|
return e == null ? "" : Dt(e).map(([t, n]) => n != null ? `${t}:${n};` : void 0).filter(Boolean).join("");
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function G(e) {
|
|
461
461
|
return e && typeof e == "object" && !Array.isArray(e);
|
|
462
462
|
}
|
|
463
463
|
function Re(e, t, n = !1) {
|
|
@@ -465,8 +465,8 @@ function Re(e, t, n = !1) {
|
|
|
465
465
|
if (Array.isArray(o))
|
|
466
466
|
return n && Array.isArray(o) ? [...s, ...o] : [...o];
|
|
467
467
|
const r = { ...s };
|
|
468
|
-
return
|
|
469
|
-
|
|
468
|
+
return G(s) && G(o) && Object.keys(o).forEach((a) => {
|
|
469
|
+
G(s[a]) && G(o[a]) || Array.isArray(s[a]) && Array.isArray(o[a]) ? r[a] = Re(s[a], o[a], n) : Object.assign(r, { [a]: o[a] });
|
|
470
470
|
}), r;
|
|
471
471
|
}
|
|
472
472
|
function z(e) {
|
|
@@ -490,10 +490,10 @@ function z(e) {
|
|
|
490
490
|
return e;
|
|
491
491
|
}
|
|
492
492
|
function jt(e) {
|
|
493
|
-
return
|
|
493
|
+
return U(e[0]);
|
|
494
494
|
}
|
|
495
495
|
function Pt(e) {
|
|
496
|
-
return
|
|
496
|
+
return U(e[0]);
|
|
497
497
|
}
|
|
498
498
|
const le = "$$shortcut-no-merge";
|
|
499
499
|
function Ft(e) {
|
|
@@ -505,9 +505,9 @@ function ue(e) {
|
|
|
505
505
|
function Vt(e) {
|
|
506
506
|
return e != null;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function Ht() {
|
|
509
509
|
}
|
|
510
|
-
var
|
|
510
|
+
var Gt = Object.defineProperty, Bt = (e, t, n) => t in e ? Gt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, zt = (e, t, n) => (Bt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
511
511
|
class qt {
|
|
512
512
|
constructor() {
|
|
513
513
|
zt(this, "_map", /* @__PURE__ */ new Map());
|
|
@@ -579,23 +579,23 @@ class ke extends Set {
|
|
|
579
579
|
return this._map.set(t, n), super.add(t);
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Q(e) {
|
|
583
583
|
return e instanceof ke;
|
|
584
584
|
}
|
|
585
585
|
const B = {};
|
|
586
|
-
function
|
|
586
|
+
function Yt(e = ["-", ":"]) {
|
|
587
587
|
const t = e.join("|");
|
|
588
588
|
return B[t] || (B[t] = new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`, "gm")), B[t].lastIndex = 0, B[t];
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
const s =
|
|
590
|
+
function Qt(e, t = ["-", ":"], n = 5) {
|
|
591
|
+
const s = Yt(t);
|
|
592
592
|
let o, r = e.toString();
|
|
593
593
|
const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
|
|
594
594
|
do
|
|
595
595
|
o = !1, r = r.replace(
|
|
596
596
|
s,
|
|
597
597
|
(f, i, u, d, _) => {
|
|
598
|
-
var
|
|
598
|
+
var b;
|
|
599
599
|
if (!t.includes(u))
|
|
600
600
|
return f;
|
|
601
601
|
o = !0, a.add(i + u);
|
|
@@ -603,7 +603,7 @@ function Yt(e, t = ["-", ":"], n = 5) {
|
|
|
603
603
|
l.set(_, m);
|
|
604
604
|
for (const A of [...d.matchAll(/\S+/g)]) {
|
|
605
605
|
const x = h + A.index;
|
|
606
|
-
let y = (
|
|
606
|
+
let y = (b = l.get(x)) == null ? void 0 : b.items;
|
|
607
607
|
y ? l.delete(x) : y = [{
|
|
608
608
|
offset: x,
|
|
609
609
|
length: A[0].length,
|
|
@@ -643,11 +643,11 @@ function Yt(e, t = ["-", ":"], n = 5) {
|
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
645
|
function Zt(e, t = ["-", ":"], n = 5) {
|
|
646
|
-
const s =
|
|
646
|
+
const s = Qt(e, t, n);
|
|
647
647
|
return typeof e == "string" ? s.expanded : e;
|
|
648
648
|
}
|
|
649
649
|
const fe = /* @__PURE__ */ new Set();
|
|
650
|
-
function
|
|
650
|
+
function Te(e) {
|
|
651
651
|
fe.has(e) || (console.warn("[unocss]", e), fe.add(e));
|
|
652
652
|
}
|
|
653
653
|
const en = /[\\:]?[\s'"`;{}]+/g;
|
|
@@ -678,8 +678,8 @@ const q = "default", ne = "preflights", on = "shortcuts", rn = "imports", an = {
|
|
|
678
678
|
[on]: -10,
|
|
679
679
|
[q]: 0
|
|
680
680
|
};
|
|
681
|
-
function
|
|
682
|
-
return
|
|
681
|
+
function $e(e) {
|
|
682
|
+
return I(e).flatMap((t) => Array.isArray(t) ? [t] : Object.entries(t));
|
|
683
683
|
}
|
|
684
684
|
const pe = "_uno_resolved";
|
|
685
685
|
function cn(e) {
|
|
@@ -691,12 +691,12 @@ function cn(e) {
|
|
|
691
691
|
value: !0,
|
|
692
692
|
enumerable: !1
|
|
693
693
|
});
|
|
694
|
-
const n = t.shortcuts ?
|
|
694
|
+
const n = t.shortcuts ? $e(t.shortcuts) : void 0;
|
|
695
695
|
if (t.shortcuts = n, t.prefix || t.layer) {
|
|
696
696
|
const o = (r) => {
|
|
697
697
|
r[2] || (r[2] = {});
|
|
698
698
|
const a = r[2];
|
|
699
|
-
a.prefix == null && t.prefix && (a.prefix =
|
|
699
|
+
a.prefix == null && t.prefix && (a.prefix = I(t.prefix)), a.layer == null && t.layer && (a.layer = t.layer);
|
|
700
700
|
};
|
|
701
701
|
n == null || n.forEach(o), (s = t.rules) == null || s.forEach(o);
|
|
702
702
|
}
|
|
@@ -706,12 +706,12 @@ function Le(e) {
|
|
|
706
706
|
const t = cn(e);
|
|
707
707
|
if (!t.presets)
|
|
708
708
|
return [t];
|
|
709
|
-
const n = (t.presets || []).flatMap(
|
|
709
|
+
const n = (t.presets || []).flatMap(I).flatMap(Le);
|
|
710
710
|
return [t, ...n];
|
|
711
711
|
}
|
|
712
712
|
function de(e = {}, t = {}) {
|
|
713
|
-
var S,
|
|
714
|
-
const n = Object.assign({}, t, e), s =
|
|
713
|
+
var S, v;
|
|
714
|
+
const n = Object.assign({}, t, e), s = It((n.presets || []).flatMap(I).flatMap(Le), (p, w) => p.name === w.name), o = [
|
|
715
715
|
...s.filter((p) => p.enforce === "pre"),
|
|
716
716
|
...s.filter((p) => !p.enforce),
|
|
717
717
|
...s.filter((p) => p.enforce === "post")
|
|
@@ -720,7 +720,7 @@ function de(e = {}, t = {}) {
|
|
|
720
720
|
n
|
|
721
721
|
], a = [...r].reverse(), l = Object.assign({}, an, ...r.map((p) => p.layers));
|
|
722
722
|
function c(p) {
|
|
723
|
-
return W(r.flatMap((w) =>
|
|
723
|
+
return W(r.flatMap((w) => I(w[p] || [])));
|
|
724
724
|
}
|
|
725
725
|
const f = c("extractors");
|
|
726
726
|
let i = (S = a.find((p) => p.extractorDefault !== void 0)) == null ? void 0 : S.extractorDefault;
|
|
@@ -728,7 +728,7 @@ function de(e = {}, t = {}) {
|
|
|
728
728
|
const u = c("rules"), d = {}, _ = u.length, h = u.map((p, w) => {
|
|
729
729
|
var R;
|
|
730
730
|
if (jt(p)) {
|
|
731
|
-
|
|
731
|
+
I(((R = p[2]) == null ? void 0 : R.prefix) || "").forEach((L) => {
|
|
732
732
|
d[L + p[0]] = [w, p[1], p[2], p];
|
|
733
733
|
});
|
|
734
734
|
return;
|
|
@@ -736,17 +736,17 @@ function de(e = {}, t = {}) {
|
|
|
736
736
|
return [w, ...p];
|
|
737
737
|
}).filter(Boolean).reverse();
|
|
738
738
|
let m = ln(r.map((p) => p.theme));
|
|
739
|
-
const
|
|
740
|
-
for (const p of
|
|
739
|
+
const b = c("extendTheme");
|
|
740
|
+
for (const p of b)
|
|
741
741
|
m = p(m) || m;
|
|
742
742
|
const A = {
|
|
743
743
|
templates: W(r.flatMap((p) => {
|
|
744
744
|
var w;
|
|
745
|
-
return
|
|
745
|
+
return I((w = p.autocomplete) == null ? void 0 : w.templates);
|
|
746
746
|
})),
|
|
747
747
|
extractors: r.flatMap((p) => {
|
|
748
748
|
var w;
|
|
749
|
-
return
|
|
749
|
+
return I((w = p.autocomplete) == null ? void 0 : w.extractors);
|
|
750
750
|
}).sort((p, w) => (p.order || 0) - (w.order || 0)),
|
|
751
751
|
shorthands: un(r.map((p) => {
|
|
752
752
|
var w;
|
|
@@ -774,14 +774,14 @@ function de(e = {}, t = {}) {
|
|
|
774
774
|
preflights: c("preflights"),
|
|
775
775
|
autocomplete: A,
|
|
776
776
|
variants: c("variants").map(Ft).sort((p, w) => (p.order || 0) - (w.order || 0)),
|
|
777
|
-
shortcuts:
|
|
777
|
+
shortcuts: $e(c("shortcuts")).reverse(),
|
|
778
778
|
extractors: f,
|
|
779
779
|
safelist: c("safelist"),
|
|
780
780
|
separators: x,
|
|
781
781
|
details: n.details ?? n.envMode === "dev"
|
|
782
782
|
};
|
|
783
783
|
for (const p of r)
|
|
784
|
-
(
|
|
784
|
+
(v = p == null ? void 0 : p.configResolved) == null || v.call(p, y);
|
|
785
785
|
return y;
|
|
786
786
|
}
|
|
787
787
|
function ln(e) {
|
|
@@ -800,7 +800,7 @@ function un(e) {
|
|
|
800
800
|
};
|
|
801
801
|
}, {});
|
|
802
802
|
}
|
|
803
|
-
const fn = "0.59.
|
|
803
|
+
const fn = "0.59.4";
|
|
804
804
|
var pn = Object.defineProperty, dn = (e, t, n) => t in e ? pn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, D = (e, t, n) => (dn(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
805
805
|
class mn {
|
|
806
806
|
constructor(t = {}, n = {}) {
|
|
@@ -821,7 +821,7 @@ class mn {
|
|
|
821
821
|
for (const a of this.config.extractors) {
|
|
822
822
|
const l = await ((r = a.extract) == null ? void 0 : r.call(a, o));
|
|
823
823
|
if (l)
|
|
824
|
-
if (
|
|
824
|
+
if (Q(l) && Q(s))
|
|
825
825
|
for (const c of l)
|
|
826
826
|
s.setCount(c, s.getCount(c) + l.getCount(c));
|
|
827
827
|
else
|
|
@@ -876,37 +876,43 @@ class mn {
|
|
|
876
876
|
safelist: a = !0,
|
|
877
877
|
minify: l = !1,
|
|
878
878
|
extendedInfo: c = !1
|
|
879
|
-
} = n, f = this.config.outputToCssLayers, i =
|
|
879
|
+
} = n, f = this.config.outputToCssLayers, i = U(t) ? await this.applyExtractors(
|
|
880
880
|
t,
|
|
881
881
|
s,
|
|
882
882
|
c ? new ke() : /* @__PURE__ */ new Set()
|
|
883
883
|
) : Array.isArray(t) ? new Set(t) : t;
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
884
|
+
if (a) {
|
|
885
|
+
const v = {
|
|
886
|
+
generator: this,
|
|
887
|
+
theme: this.config.theme
|
|
888
|
+
};
|
|
889
|
+
this.config.safelist.flatMap((p) => typeof p == "function" ? p(v) : p).forEach((p) => {
|
|
890
|
+
i.has(p) || i.add(p);
|
|
891
|
+
});
|
|
892
|
+
}
|
|
887
893
|
const u = l ? "" : `
|
|
888
894
|
`, d = /* @__PURE__ */ new Set([q]), _ = c ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Map();
|
|
889
895
|
let m = {};
|
|
890
|
-
const
|
|
896
|
+
const b = Array.from(i).map(async (v) => {
|
|
891
897
|
var w;
|
|
892
|
-
if (_.has(
|
|
898
|
+
if (_.has(v))
|
|
893
899
|
return;
|
|
894
|
-
const p = await this.parseToken(
|
|
900
|
+
const p = await this.parseToken(v);
|
|
895
901
|
if (p != null) {
|
|
896
|
-
_ instanceof Map ? _.set(
|
|
902
|
+
_ instanceof Map ? _.set(v, {
|
|
897
903
|
data: p,
|
|
898
|
-
count:
|
|
899
|
-
}) : _.add(
|
|
904
|
+
count: Q(i) ? i.getCount(v) : -1
|
|
905
|
+
}) : _.add(v);
|
|
900
906
|
for (const R of p) {
|
|
901
907
|
const O = R[3] || "", L = (w = R[4]) == null ? void 0 : w.layer;
|
|
902
908
|
h.has(O) || h.set(O, []), h.get(O).push(R), L && d.add(L);
|
|
903
909
|
}
|
|
904
910
|
}
|
|
905
911
|
});
|
|
906
|
-
await Promise.all(
|
|
912
|
+
await Promise.all(b), await (async () => {
|
|
907
913
|
if (!r)
|
|
908
914
|
return;
|
|
909
|
-
const
|
|
915
|
+
const v = {
|
|
910
916
|
generator: this,
|
|
911
917
|
theme: this.config.theme
|
|
912
918
|
}, p = /* @__PURE__ */ new Set([]);
|
|
@@ -916,27 +922,27 @@ class mn {
|
|
|
916
922
|
await Promise.all(Array.from(p).map(
|
|
917
923
|
async (w) => {
|
|
918
924
|
const O = (await Promise.all(
|
|
919
|
-
this.config.preflights.filter((L) => (L.layer || ne) === w).map(async (L) => await L.getCSS(
|
|
925
|
+
this.config.preflights.filter((L) => (L.layer || ne) === w).map(async (L) => await L.getCSS(v))
|
|
920
926
|
)).filter(Boolean).join(u);
|
|
921
927
|
return [w, O];
|
|
922
928
|
}
|
|
923
929
|
))
|
|
924
930
|
);
|
|
925
931
|
})();
|
|
926
|
-
const A = this.config.sortLayers(Array.from(d).sort((
|
|
932
|
+
const A = this.config.sortLayers(Array.from(d).sort((v, p) => (this.config.layers[v] ?? 0) - (this.config.layers[p] ?? 0) || v.localeCompare(p))), x = {}, y = (v = q) => {
|
|
927
933
|
var R;
|
|
928
|
-
if (x[
|
|
929
|
-
return x[
|
|
934
|
+
if (x[v])
|
|
935
|
+
return x[v];
|
|
930
936
|
let p = Array.from(h).sort((O, L) => {
|
|
931
937
|
var N;
|
|
932
938
|
return (this.parentOrders.get(O[0]) ?? 0) - (this.parentOrders.get(L[0]) ?? 0) || ((N = O[0]) == null ? void 0 : N.localeCompare(L[0] || "")) || 0;
|
|
933
939
|
}).map(([O, L]) => {
|
|
934
940
|
const N = L.length, j = L.filter((k) => {
|
|
935
941
|
var g;
|
|
936
|
-
return (((g = k[4]) == null ? void 0 : g.layer) || q) ===
|
|
942
|
+
return (((g = k[4]) == null ? void 0 : g.layer) || q) === v;
|
|
937
943
|
}).sort((k, g) => {
|
|
938
|
-
var E, C, M,
|
|
939
|
-
return k[0] - g[0] || (((E = k[4]) == null ? void 0 : E.sort) || 0) - (((C = g[4]) == null ? void 0 : C.sort) || 0) || ((
|
|
944
|
+
var E, C, M, T, $, V, ie;
|
|
945
|
+
return k[0] - g[0] || (((E = k[4]) == null ? void 0 : E.sort) || 0) - (((C = g[4]) == null ? void 0 : C.sort) || 0) || (($ = (M = k[5]) == null ? void 0 : M.currentSelector) == null ? void 0 : $.localeCompare(((T = g[5]) == null ? void 0 : T.currentSelector) ?? "")) || ((V = k[1]) == null ? void 0 : V.localeCompare(g[1] || "")) || ((ie = k[2]) == null ? void 0 : ie.localeCompare(g[2] || "")) || 0;
|
|
940
946
|
}).map(([, k, g, , E, , C]) => [
|
|
941
947
|
[[(k && gn(k, o)) ?? "", (E == null ? void 0 : E.sort) ?? 0]],
|
|
942
948
|
g,
|
|
@@ -946,15 +952,15 @@ class mn {
|
|
|
946
952
|
return;
|
|
947
953
|
const P = j.reverse().map(([k, g, E], C) => {
|
|
948
954
|
if (!E && this.config.mergeSelectors)
|
|
949
|
-
for (let
|
|
950
|
-
const
|
|
951
|
-
if (
|
|
952
|
-
return k &&
|
|
955
|
+
for (let T = C + 1; T < N; T++) {
|
|
956
|
+
const $ = j[T];
|
|
957
|
+
if ($ && !$[2] && (k && $[0] || k == null && $[0] == null) && $[1] === g)
|
|
958
|
+
return k && $[0] && $[0].push(...k), null;
|
|
953
959
|
}
|
|
954
|
-
const M = k ? W(k.sort((
|
|
960
|
+
const M = k ? W(k.sort((T, $) => {
|
|
955
961
|
var V;
|
|
956
|
-
return
|
|
957
|
-
}).map((
|
|
962
|
+
return T[1] - $[1] || ((V = T[0]) == null ? void 0 : V.localeCompare($[0] || "")) || 0;
|
|
963
|
+
}).map((T) => T[0]).filter(Boolean)) : [];
|
|
958
964
|
return M.length ? `${M.join(`,${u}`)}{${g}}` : g;
|
|
959
965
|
}).filter(Boolean).reverse().join(u);
|
|
960
966
|
if (!O)
|
|
@@ -962,13 +968,13 @@ class mn {
|
|
|
962
968
|
const F = O.split(" $$ ");
|
|
963
969
|
return `${F.join("{")}{${u}${P}${u}${"}".repeat(F.length)}`;
|
|
964
970
|
}).filter(Boolean).join(u);
|
|
965
|
-
if (r && (p = [m[
|
|
966
|
-
let O = typeof f == "object" ? (R = f.cssLayerName) == null ? void 0 : R.call(f,
|
|
967
|
-
O !== null && (O || (O =
|
|
971
|
+
if (r && (p = [m[v], p].filter(Boolean).join(u)), f && p) {
|
|
972
|
+
let O = typeof f == "object" ? (R = f.cssLayerName) == null ? void 0 : R.call(f, v) : void 0;
|
|
973
|
+
O !== null && (O || (O = v), p = `@layer ${O}{${u}${p}${u}}`);
|
|
968
974
|
}
|
|
969
|
-
const w = l ? "" : `/* layer: ${
|
|
970
|
-
return x[
|
|
971
|
-
}, S = (
|
|
975
|
+
const w = l ? "" : `/* layer: ${v} */${u}`;
|
|
976
|
+
return x[v] = p ? w + p : "";
|
|
977
|
+
}, S = (v = A, p) => v.filter((w) => !(p != null && p.includes(w))).map((w) => y(w) || "").filter(Boolean).join(u);
|
|
972
978
|
return {
|
|
973
979
|
get css() {
|
|
974
980
|
return S();
|
|
@@ -994,7 +1000,7 @@ class mn {
|
|
|
994
1000
|
continue;
|
|
995
1001
|
let f = await c.match(r, l);
|
|
996
1002
|
if (f) {
|
|
997
|
-
if (
|
|
1003
|
+
if (U(f)) {
|
|
998
1004
|
if (f === r)
|
|
999
1005
|
continue;
|
|
1000
1006
|
f = { matcher: f };
|
|
@@ -1050,21 +1056,21 @@ class mn {
|
|
|
1050
1056
|
return c;
|
|
1051
1057
|
}
|
|
1052
1058
|
constructCustomCSS(t, n, s) {
|
|
1053
|
-
const o =
|
|
1054
|
-
if (
|
|
1059
|
+
const o = H(n);
|
|
1060
|
+
if (U(o))
|
|
1055
1061
|
return o;
|
|
1056
|
-
const { selector: r, entries: a, parent: l } = this.applyVariants([0, s || t.rawSelector, o, void 0, t.variantHandlers]), c = `${r}{${
|
|
1062
|
+
const { selector: r, entries: a, parent: l } = this.applyVariants([0, s || t.rawSelector, o, void 0, t.variantHandlers]), c = `${r}{${Y(a)}}`;
|
|
1057
1063
|
return l ? `${l}{${c}}` : c;
|
|
1058
1064
|
}
|
|
1059
1065
|
async parseUtil(t, n, s = !1, o) {
|
|
1060
1066
|
var i;
|
|
1061
|
-
const [r, a, l] =
|
|
1067
|
+
const [r, a, l] = U(t) ? await this.matchVariants(t) : t;
|
|
1062
1068
|
this.config.details && (n.rules = n.rules ?? []);
|
|
1063
1069
|
const c = this.config.rulesStaticMap[a];
|
|
1064
1070
|
if (c && c[1] && (s || !((i = c[2]) != null && i.internal))) {
|
|
1065
1071
|
this.config.details && n.rules.push(c[3]);
|
|
1066
|
-
const u = c[0], d =
|
|
1067
|
-
return
|
|
1072
|
+
const u = c[0], d = H(c[1]), _ = c[2];
|
|
1073
|
+
return U(d) ? [[u, d, _]] : [[u, r, d, _, l]];
|
|
1068
1074
|
}
|
|
1069
1075
|
n.variantHandlers = l;
|
|
1070
1076
|
const { rulesDynamic: f } = this.config;
|
|
@@ -1073,28 +1079,28 @@ class mn {
|
|
|
1073
1079
|
continue;
|
|
1074
1080
|
let m = a;
|
|
1075
1081
|
if (h != null && h.prefix) {
|
|
1076
|
-
const y =
|
|
1082
|
+
const y = I(h.prefix);
|
|
1077
1083
|
if (o) {
|
|
1078
|
-
const S =
|
|
1079
|
-
if (!y.some((
|
|
1084
|
+
const S = I(o);
|
|
1085
|
+
if (!y.some((v) => S.includes(v)))
|
|
1080
1086
|
continue;
|
|
1081
1087
|
} else {
|
|
1082
|
-
const S = y.find((
|
|
1088
|
+
const S = y.find((v) => a.startsWith(v));
|
|
1083
1089
|
if (S == null)
|
|
1084
1090
|
continue;
|
|
1085
1091
|
m = a.slice(S.length);
|
|
1086
1092
|
}
|
|
1087
1093
|
}
|
|
1088
|
-
const
|
|
1089
|
-
if (!
|
|
1094
|
+
const b = m.match(d);
|
|
1095
|
+
if (!b)
|
|
1090
1096
|
continue;
|
|
1091
|
-
const A = await _(
|
|
1097
|
+
const A = await _(b, n);
|
|
1092
1098
|
if (!A)
|
|
1093
1099
|
continue;
|
|
1094
1100
|
this.config.details && n.rules.push([d, _, h]);
|
|
1095
1101
|
const x = Nt(A).filter((y) => y.length);
|
|
1096
1102
|
if (x.length)
|
|
1097
|
-
return x.map((y) =>
|
|
1103
|
+
return x.map((y) => U(y) ? [u, y, h] : [u, r, y, h, l]);
|
|
1098
1104
|
}
|
|
1099
1105
|
}
|
|
1100
1106
|
stringifyUtil(t, n) {
|
|
@@ -1102,7 +1108,7 @@ class mn {
|
|
|
1102
1108
|
return;
|
|
1103
1109
|
if (ue(t))
|
|
1104
1110
|
return [t[0], void 0, t[1], void 0, t[2], this.config.details ? n : void 0, void 0];
|
|
1105
|
-
const { selector: s, entries: o, parent: r, layer: a, sort: l, noMerge: c } = this.applyVariants(t), f =
|
|
1111
|
+
const { selector: s, entries: o, parent: r, layer: a, sort: l, noMerge: c } = this.applyVariants(t), f = Y(o);
|
|
1106
1112
|
if (!f)
|
|
1107
1113
|
return;
|
|
1108
1114
|
const { layer: i, sort: u, ...d } = t[3] ?? {}, _ = {
|
|
@@ -1118,12 +1124,12 @@ class mn {
|
|
|
1118
1124
|
return;
|
|
1119
1125
|
const o = this.config.details ? (c) => {
|
|
1120
1126
|
n.shortcuts = n.shortcuts ?? [], n.shortcuts.push(c);
|
|
1121
|
-
} :
|
|
1127
|
+
} : Ht;
|
|
1122
1128
|
let r, a;
|
|
1123
1129
|
for (const c of this.config.shortcuts) {
|
|
1124
1130
|
let f = t;
|
|
1125
1131
|
if ((l = c[2]) != null && l.prefix) {
|
|
1126
|
-
const u =
|
|
1132
|
+
const u = I(c[2].prefix).find((d) => t.startsWith(d));
|
|
1127
1133
|
if (u == null)
|
|
1128
1134
|
continue;
|
|
1129
1135
|
f = t.slice(u.length);
|
|
@@ -1141,18 +1147,18 @@ class mn {
|
|
|
1141
1147
|
}
|
|
1142
1148
|
}
|
|
1143
1149
|
}
|
|
1144
|
-
if (
|
|
1145
|
-
const [c, f] =
|
|
1150
|
+
if (U(a) && (a = Zt(a.trim()).split(/\s+/g)), !a) {
|
|
1151
|
+
const [c, f] = U(t) ? await this.matchVariants(t) : t;
|
|
1146
1152
|
if (c !== f) {
|
|
1147
1153
|
const i = await this.expandShortcut(f, n, s - 1);
|
|
1148
|
-
i && (a = i[0].map((u) =>
|
|
1154
|
+
i && (a = i[0].map((u) => U(u) ? c.replace(f, u) : u));
|
|
1149
1155
|
}
|
|
1150
1156
|
}
|
|
1151
1157
|
if (a)
|
|
1152
1158
|
return [
|
|
1153
1159
|
(await Promise.all(a.map(async (c) => {
|
|
1154
1160
|
var f;
|
|
1155
|
-
return (
|
|
1161
|
+
return (U(c) ? (f = await this.expandShortcut(c, n, s - 1)) == null ? void 0 : f[0] : void 0) || [c];
|
|
1156
1162
|
}))).flat(1).filter(Boolean),
|
|
1157
1163
|
r
|
|
1158
1164
|
];
|
|
@@ -1160,39 +1166,39 @@ class mn {
|
|
|
1160
1166
|
async stringifyShortcuts(t, n, s, o = { layer: this.config.shortcutsLayer }) {
|
|
1161
1167
|
var i;
|
|
1162
1168
|
const r = new Wt(), a = (await Promise.all(W(s).map(async (u) => {
|
|
1163
|
-
const d =
|
|
1164
|
-
return !d && this.config.warn &&
|
|
1169
|
+
const d = U(u) ? await this.parseUtil(u, n, !0, o.prefix) : [[Number.POSITIVE_INFINITY, "{inline}", H(u), void 0, []]];
|
|
1170
|
+
return !d && this.config.warn && Te(`unmatched utility "${u}" in shortcut "${t[1]}"`), d || [];
|
|
1165
1171
|
}))).flat(1).filter(Boolean).sort((u, d) => u[0] - d[0]), [l, , c] = t, f = [];
|
|
1166
1172
|
for (const u of a) {
|
|
1167
1173
|
if (ue(u)) {
|
|
1168
1174
|
f.push([u[0], void 0, u[1], void 0, u[2], n, void 0]);
|
|
1169
1175
|
continue;
|
|
1170
1176
|
}
|
|
1171
|
-
const { selector: d, entries: _, parent: h, sort: m, noMerge:
|
|
1172
|
-
r.getFallback(A ?? o.layer, new qt()).getFallback(d, h, [[], u[0]])[0].push([_, !!(
|
|
1177
|
+
const { selector: d, entries: _, parent: h, sort: m, noMerge: b, layer: A } = this.applyVariants(u, [...u[4], ...c], l);
|
|
1178
|
+
r.getFallback(A ?? o.layer, new qt()).getFallback(d, h, [[], u[0]])[0].push([_, !!(b ?? ((i = u[3]) == null ? void 0 : i.noMerge)), m ?? 0]);
|
|
1173
1179
|
}
|
|
1174
1180
|
return f.concat(r.flatMap(
|
|
1175
|
-
(u, d) => u.map(([_, h], m,
|
|
1176
|
-
const A = (y, S,
|
|
1177
|
-
const p = Math.max(...
|
|
1181
|
+
(u, d) => u.map(([_, h], m, b) => {
|
|
1182
|
+
const A = (y, S, v) => {
|
|
1183
|
+
const p = Math.max(...v.map((R) => R[1])), w = v.map((R) => R[0]);
|
|
1178
1184
|
return (y ? [w.flat(1)] : w).map((R) => {
|
|
1179
|
-
const O =
|
|
1185
|
+
const O = Y(R);
|
|
1180
1186
|
if (O)
|
|
1181
|
-
return [h, m, O,
|
|
1187
|
+
return [h, m, O, b, { ...o, noMerge: S, sort: p, layer: d }, n, void 0];
|
|
1182
1188
|
});
|
|
1183
1189
|
};
|
|
1184
1190
|
return [
|
|
1185
1191
|
[_.filter(([, y]) => y).map(([y, , S]) => [y, S]), !0],
|
|
1186
1192
|
[_.filter(([, y]) => !y).map(([y, , S]) => [y, S]), !1]
|
|
1187
1193
|
].map(([y, S]) => [
|
|
1188
|
-
...A(!1, S, y.filter(([
|
|
1189
|
-
...A(!0, S, y.filter(([
|
|
1194
|
+
...A(!1, S, y.filter(([v]) => v.some((p) => p[0] === le))),
|
|
1195
|
+
...A(!0, S, y.filter(([v]) => v.every((p) => p[0] !== le)))
|
|
1190
1196
|
]);
|
|
1191
1197
|
}).flat(2).filter(Boolean)
|
|
1192
1198
|
));
|
|
1193
1199
|
}
|
|
1194
1200
|
isBlocked(t) {
|
|
1195
|
-
return !t || this.config.blocklist.some((n) => typeof n == "function" ? n(t) :
|
|
1201
|
+
return !t || this.config.blocklist.some((n) => typeof n == "function" ? n(t) : U(n) ? n === t : n.test(t));
|
|
1196
1202
|
}
|
|
1197
1203
|
}
|
|
1198
1204
|
function hn(e, t) {
|
|
@@ -1212,7 +1218,7 @@ function yn(e) {
|
|
|
1212
1218
|
function bn(e, t) {
|
|
1213
1219
|
return t(e);
|
|
1214
1220
|
}
|
|
1215
|
-
var he = { npm_package_dependencies__vueuse_core: "^10.9.0", TERM_PROGRAM: "vscode", npm_package_devDependencies__types_splitpanes: "^2.2.6", FNM_LOGLEVEL: "info", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.11.0/installation/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", TURBO_INVOCATION_DIR: "/Users/arlo/g/devtools-next", npm_package_devDependencies_vite: "^5.2.8", SHELL: "/bin/zsh", TERM: "xterm-256color", npm_config_shamefully_hoist: "true", npm_package_devDependencies_ohash: "^1.1.3", npm_package_devDependencies_floating_vue: "5.2.2", npm_package_dependencies__vue_devtools_shared: "workspace:^", FNM_NODE_DIST_MIRROR: "https://nodejs.org/dist", npm_package_dependencies__unocss_runtime: "^0.59.0", TMPDIR: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/", TERM_PROGRAM_VERSION: "1.85.1", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_devDependencies_unplugin_vue_components: "^0.26.0", MallocNanoZone: "0", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", ZDOTDIR: "/Users/arlo", TERM_SESSION_ID: "w0t0p0:DDA31EE4-6CDF-479F-8347-5407B650E66A", npm_config_registry: "https://registry.npmjs.org/", npm_package_private: "true", PNPM_HOME: "/Users/arlo/Library/pnpm", ZSH: "/Users/arlo/.oh-my-zsh", FNM_COREPACK_ENABLED: "false", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^3.1.0", USER: "arlo", npm_package_license: "MIT", LS_COLORS: "di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43", COMMAND_MODE: "unix2003", PNPM_SCRIPT_SRC_DIR: "/Users/arlo/g/devtools-next/packages/client", npm_config_strict_peer_dependencies: "", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.KewI4CtKoZ/Listeners", npm_package_devDependencies_dayjs: "^1.11.10", __CF_USER_TEXT_ENCODING: "0x1F5:0x19:0x34", npm_execpath: "/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/bin/pnpm.cjs", PAGER: "less", npm_package_devDependencies_unplugin_auto_import: "^0.17.5", npm_package_scripts_build_lib: "vite build --config vite.lib.config.ts", npm_config_frozen_lockfile: "", FNM_VERSION_FILE_STRATEGY: "local", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_dependencies_vue_virtual_scroller: "2.0.0-beta.8", npm_package_dependencies_fuse_js: "^7.0.0", FNM_ARCH: "arm64", PATH: "/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/usr/local/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/Library/Caches/fnm_multishells/18168_1712752409744/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/arlo/Library/pnpm:/Users/arlo/Library/Caches/fnm_multishells/16321_1712751495157/bin:/opt/homebrew/bin", npm_package_dependencies__vue_devtools_ui: "workspace:*", npm_package_scripts_stub_lib: "vite build --config vite.lib.config.ts --watch", LaunchInstanceID: "36391271-BDC9-4CC1-A355-84D7ADF5EA60", npm_package_dependencies_splitpanes: "^3.1.5", npm_package_author: "webfansplz", USER_ZDOTDIR: "/Users/arlo", __CFBundleIdentifier: "com.microsoft.VSCode", npm_command: "run-script", PWD: "/Users/arlo/g/devtools-next/packages/client", npm_package_exports____: "./dist/*", npm_lifecycle_event: "build:lib", npm_package_devDependencies_vue: "^3.4.21", npm_package_name: "@vue/devtools-client", LANG: "zh_CN.UTF-8", ITERM_PROFILE: "Default", npm_package_devDependencies_simple_git_hooks: "^2.11.1", npm_package_devDependencies_sass: "^1.74.1", npm_package_devDependencies__unocss_reset: "^0.59.0", npm_package_scripts_build: "tsx ./scripts/pre-build.ts && (nr build:lib & vite build)", NODE_PATH: "/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.8_@types+node@20.12.5_sass@1.74.1/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.8_@types+node@20.12.5_sass@1.74.1/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.8_@types+node@20.12.5_sass@1.74.1/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.2/node_modules/turbo/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.2/node_modules/turbo/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.2/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/node_modules", npm_package_devDependencies_pinia: "^2.1.7", FNM_MULTISHELL_PATH: "/Users/arlo/Library/Caches/fnm_multishells/18168_1712752409744", TURBO_HASH: "74178fe1cfc9995e", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "--ms-enable-electron-run-as-node", XPC_FLAGS: "0x0", npm_package_devDependencies__unocss_core: "^0.59.0", npm_package_engines_node: ">=v14.21.3", npm_config_node_gyp: "/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", npm_config_side_effects_cache: "", npm_package_dependencies_colord: "^2.9.3", npm_package_devDependencies__iconify_json: "^2.2.198", npm_package_dependencies_minimatch: "^9.0.4", npm_package_version: "7.0.27", XPC_SERVICE_NAME: "0", VSCODE_INJECTION: "1", npm_package_devDependencies_unocss: "^0.59.0", npm_package_dependencies__vue_devtools_core: "workspace:^", npm_package_type: "module", COLORFGBG: "7;0", HOME: "/Users/arlo", SHLVL: "3", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_dependencies_vite_hot_client: "^0.2.3", LC_TERMINAL_VERSION: "3.4.23", FNM_DIR: "/Users/arlo/Library/Application Support/fnm", npm_package_dependencies_vis_network: "^9.1.9", ITERM_SESSION_ID: "w0t0p0:DDA31EE4-6CDF-479F-8347-5407B650E66A", npm_package_peerDependencies_vite: "^3.1.0 || ^4.0.0-0 || ^5.0.0-0", LESS: "-R", LOGNAME: "arlo", npm_lifecycle_script: "vite build --config vite.lib.config.ts", npm_package_dependencies__vue_devtools_kit: "workspace:^", npm_package_dependencies__vueuse_integrations: "^10.9.0", VSCODE_GIT_IPC_HANDLE: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/vscode-git-4d965c4849.sock", npm_config_user_agent: "pnpm/8.15.6 npm/? node/v20.11.0 darwin arm64", FNM_RESOLVE_ENGINES: "false", npm_package_devDependencies__types_node: "^20.12.5", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", npm_package_scripts_stub: "nr stub:lib & vite build --watch", LC_TERMINAL: "iTerm2", npm_package_files_0: "dist", npm_package_devDependencies_unplugin: "^1.10.1", npm_package_dependencies_vue_router: "^4.3.0", npm_package_dependencies_shiki: "1.2.4", SECURITYSESSIONID: "186a3", npm_package_dependencies__unocss_preset_icons: "^0.59.0", npm_node_execpath: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.11.0/installation/bin/node", npm_config_shell_emulator: "true", COLORTERM: "truecolor", NODE_ENV: "production" };
|
|
1221
|
+
var he = { npm_package_dependencies__vueuse_core: "^10.9.0", COREPACK_ROOT: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/installation/lib/node_modules/corepack", TERM_PROGRAM: "vscode", npm_package_devDependencies__types_splitpanes: "^2.2.6", FNM_LOGLEVEL: "info", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/installation/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", TURBO_INVOCATION_DIR: "/Users/arlo/g/devtools-next", npm_package_devDependencies_vite: "^5.2.10", SHELL: "/bin/zsh", TERM: "xterm-256color", npm_config_shamefully_hoist: "true", npm_package_devDependencies_ohash: "^1.1.3", npm_package_devDependencies_floating_vue: "5.2.2", npm_package_dependencies__vue_devtools_shared: "workspace:^", FNM_NODE_DIST_MIRROR: "https://nodejs.org/dist", npm_package_dependencies__unocss_runtime: "^0.59.4", TMPDIR: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/", TERM_PROGRAM_VERSION: "1.88.0", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_devDependencies_unplugin_vue_components: "^0.26.0", MallocNanoZone: "0", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", ZDOTDIR: "/Users/arlo", TERM_SESSION_ID: "w0t0p0:234A6DC0-F4C5-4C50-AEE4-FB3A44C50A9C", npm_config_registry: "https://registry.npmjs.org/", npm_package_private: "true", PNPM_HOME: "/Users/arlo/Library/pnpm", ZSH: "/Users/arlo/.oh-my-zsh", FNM_COREPACK_ENABLED: "false", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^3.1.0", USER: "arlo", npm_package_license: "MIT", LS_COLORS: "di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43", COMMAND_MODE: "unix2003", PNPM_SCRIPT_SRC_DIR: "/Users/arlo/g/devtools-next/packages/client", npm_config_strict_peer_dependencies: "", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.2bYcbedzEH/Listeners", npm_package_devDependencies_dayjs: "^1.11.10", __CF_USER_TEXT_ENCODING: "0x1F5:0x19:0x34", npm_execpath: "/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules/pnpm/bin/pnpm.cjs", PAGER: "less", npm_package_devDependencies_unplugin_auto_import: "^0.17.5", npm_package_scripts_build_lib: "vite build --config vite.lib.config.ts", npm_config_frozen_lockfile: "", FNM_VERSION_FILE_STRATEGY: "local", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_dependencies_vue_virtual_scroller: "2.0.0-beta.8", npm_package_dependencies_fuse_js: "^7.0.0", FNM_ARCH: "arm64", PATH: "/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/.cache/node/corepack/v1/pnpm/9.0.5/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/Library/Caches/fnm_multishells/53706_1713882389240/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/arlo/Library/pnpm:/Users/arlo/Library/Caches/fnm_multishells/34428_1713758129440/bin:/opt/homebrew/bin", npm_package_dependencies__vue_devtools_ui: "workspace:*", npm_package_scripts_stub_lib: "vite build --config vite.lib.config.ts --watch", LaunchInstanceID: "DA9FCCD3-7DFB-43C5-9302-9E7BC0DC0C15", npm_package_dependencies_splitpanes: "^3.1.5", npm_package_author: "webfansplz", COREPACK_ENABLE_DOWNLOAD_PROMPT: "1", USER_ZDOTDIR: "/Users/arlo", __CFBundleIdentifier: "com.microsoft.VSCode", npm_command: "run-script", PWD: "/Users/arlo/g/devtools-next/packages/client", npm_package_exports____: "./dist/*", npm_lifecycle_event: "build:lib", npm_package_devDependencies_vue: "^3.4.23", npm_package_name: "@vue/devtools-client", LANG: "zh_CN.UTF-8", ITERM_PROFILE: "Default", npm_package_devDependencies_simple_git_hooks: "^2.11.1", npm_package_devDependencies_sass: "^1.75.0", npm_package_devDependencies__unocss_reset: "^0.59.4", npm_package_scripts_build: "tsx ./scripts/pre-build.ts && (nr build:lib & vite build)", NODE_PATH: "/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.10_@types+node@20.12.7_sass@1.75.0_terser@5.26.0/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.10_@types+node@20.12.7_sass@1.75.0_terser@5.26.0/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.10_@types+node@20.12.7_sass@1.75.0_terser@5.26.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.2/node_modules/turbo/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.2/node_modules/turbo/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.2/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/node_modules", npm_package_devDependencies_pinia: "^2.1.7", FNM_MULTISHELL_PATH: "/Users/arlo/Library/Caches/fnm_multishells/53706_1713882389240", TURBO_HASH: "10504d1764f1ef06", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_package_devDependencies__unocss_core: "^0.59.4", npm_package_engines_node: ">=v14.21.3", npm_config_node_gyp: "/Users/arlo/.cache/node/corepack/v1/pnpm/9.0.5/dist/node_modules/node-gyp/bin/node-gyp.js", npm_config_side_effects_cache: "", npm_package_dependencies_colord: "^2.9.3", npm_package_devDependencies__iconify_json: "^2.2.203", npm_package_dependencies_minimatch: "^9.0.4", npm_package_version: "7.1.1", XPC_SERVICE_NAME: "0", npm_package_dependencies__vue_devtools_applet: "workspace:^", VSCODE_INJECTION: "1", npm_package_devDependencies_unocss: "^0.59.4", npm_package_dependencies__vue_devtools_core: "workspace:^", npm_package_type: "module", COLORFGBG: "7;0", HOME: "/Users/arlo", SHLVL: "3", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_dependencies_vite_hot_client: "^0.2.3", LC_TERMINAL_VERSION: "3.4.23", FNM_DIR: "/Users/arlo/Library/Application Support/fnm", npm_package_dependencies_vis_network: "^9.1.9", ITERM_SESSION_ID: "w0t0p0:234A6DC0-F4C5-4C50-AEE4-FB3A44C50A9C", npm_package_peerDependencies_vite: "^3.1.0 || ^4.0.0-0 || ^5.0.0-0", LESS: "-R", LOGNAME: "arlo", npm_lifecycle_script: "vite build --config vite.lib.config.ts", npm_package_dependencies__vue_devtools_kit: "workspace:^", npm_package_dependencies__vueuse_integrations: "^10.9.0", VSCODE_GIT_IPC_HANDLE: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/vscode-git-dffc443db3.sock", npm_config_user_agent: "pnpm/9.0.5 npm/? node/v20.12.2 darwin arm64", FNM_RESOLVE_ENGINES: "false", npm_package_devDependencies__types_node: "^20.12.7", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", npm_package_scripts_stub: "nr stub:lib & vite build --watch", LC_TERMINAL: "iTerm2", npm_package_files_0: "dist", npm_package_devDependencies_unplugin: "^1.10.1", npm_package_dependencies_vue_router: "^4.3.2", npm_package_dependencies_shiki: "1.3.0", SECURITYSESSIONID: "186a4", npm_package_dependencies__unocss_preset_icons: "^0.59.4", npm_node_execpath: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/installation/bin/node", npm_config_shell_emulator: "true", COLORTERM: "truecolor", NODE_ENV: "production" };
|
|
1216
1222
|
const vn = Object.freeze(
|
|
1217
1223
|
{
|
|
1218
1224
|
left: 0,
|
|
@@ -1224,17 +1230,17 @@ const vn = Object.freeze(
|
|
|
1224
1230
|
rotate: 0,
|
|
1225
1231
|
vFlip: !1,
|
|
1226
1232
|
hFlip: !1
|
|
1227
|
-
}),
|
|
1233
|
+
}), Ue = Object.freeze({
|
|
1228
1234
|
...vn,
|
|
1229
1235
|
...K
|
|
1230
1236
|
}), wn = Object.freeze({
|
|
1231
|
-
...
|
|
1237
|
+
...Ue,
|
|
1232
1238
|
body: "",
|
|
1233
1239
|
hidden: !1
|
|
1234
1240
|
}), Sn = Object.freeze({
|
|
1235
1241
|
width: null,
|
|
1236
1242
|
height: null
|
|
1237
|
-
}),
|
|
1243
|
+
}), Ie = Object.freeze({
|
|
1238
1244
|
// Dimensions
|
|
1239
1245
|
...Sn,
|
|
1240
1246
|
// Transformations
|
|
@@ -1327,17 +1333,17 @@ function Rn(e, t = "defs") {
|
|
|
1327
1333
|
function kn(e, t) {
|
|
1328
1334
|
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
1329
1335
|
}
|
|
1330
|
-
function
|
|
1336
|
+
function Tn(e, t, n) {
|
|
1331
1337
|
const s = Rn(e);
|
|
1332
1338
|
return kn(s.defs, t + s.content + n);
|
|
1333
1339
|
}
|
|
1334
1340
|
const re = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
1335
|
-
function
|
|
1341
|
+
function $n(e, t) {
|
|
1336
1342
|
const n = {
|
|
1337
|
-
...
|
|
1343
|
+
...Ue,
|
|
1338
1344
|
...e
|
|
1339
1345
|
}, s = {
|
|
1340
|
-
...
|
|
1346
|
+
...Ie,
|
|
1341
1347
|
...t
|
|
1342
1348
|
}, o = {
|
|
1343
1349
|
left: n.left,
|
|
@@ -1347,42 +1353,42 @@ function Tn(e, t) {
|
|
|
1347
1353
|
};
|
|
1348
1354
|
let r = n.body;
|
|
1349
1355
|
[n, s].forEach((m) => {
|
|
1350
|
-
const
|
|
1356
|
+
const b = [], A = m.hFlip, x = m.vFlip;
|
|
1351
1357
|
let y = m.rotate;
|
|
1352
|
-
A ? x ? y += 2 : (
|
|
1358
|
+
A ? x ? y += 2 : (b.push(
|
|
1353
1359
|
"translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
|
|
1354
|
-
),
|
|
1360
|
+
), b.push("scale(-1 1)"), o.top = o.left = 0) : x && (b.push(
|
|
1355
1361
|
"translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
|
|
1356
|
-
),
|
|
1362
|
+
), b.push("scale(1 -1)"), o.top = o.left = 0);
|
|
1357
1363
|
let S;
|
|
1358
1364
|
switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
|
|
1359
1365
|
case 1:
|
|
1360
|
-
S = o.height / 2 + o.top,
|
|
1366
|
+
S = o.height / 2 + o.top, b.unshift(
|
|
1361
1367
|
"rotate(90 " + S.toString() + " " + S.toString() + ")"
|
|
1362
1368
|
);
|
|
1363
1369
|
break;
|
|
1364
1370
|
case 2:
|
|
1365
|
-
|
|
1371
|
+
b.unshift(
|
|
1366
1372
|
"rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
|
|
1367
1373
|
);
|
|
1368
1374
|
break;
|
|
1369
1375
|
case 3:
|
|
1370
|
-
S = o.width / 2 + o.left,
|
|
1376
|
+
S = o.width / 2 + o.left, b.unshift(
|
|
1371
1377
|
"rotate(-90 " + S.toString() + " " + S.toString() + ")"
|
|
1372
1378
|
);
|
|
1373
1379
|
break;
|
|
1374
1380
|
}
|
|
1375
|
-
y % 2 === 1 && (o.left !== o.top && (S = o.left, o.left = o.top, o.top = S), o.width !== o.height && (S = o.width, o.width = o.height, o.height = S)),
|
|
1381
|
+
y % 2 === 1 && (o.left !== o.top && (S = o.left, o.left = o.top, o.top = S), o.width !== o.height && (S = o.width, o.width = o.height, o.height = S)), b.length && (r = Tn(
|
|
1376
1382
|
r,
|
|
1377
|
-
'<g transform="' +
|
|
1383
|
+
'<g transform="' + b.join(" ") + '">',
|
|
1378
1384
|
"</g>"
|
|
1379
1385
|
));
|
|
1380
1386
|
});
|
|
1381
1387
|
const a = s.width, l = s.height, c = o.width, f = o.height;
|
|
1382
1388
|
let i, u;
|
|
1383
1389
|
a === null ? (u = l === null ? "1em" : l === "auto" ? f : l, i = ye(u, c / f)) : (i = a === "auto" ? c : a, u = l === null ? ye(i, f / c) : l === "auto" ? f : l);
|
|
1384
|
-
const d = {}, _ = (m,
|
|
1385
|
-
re(
|
|
1390
|
+
const d = {}, _ = (m, b) => {
|
|
1391
|
+
re(b) || (d[m] = b.toString());
|
|
1386
1392
|
};
|
|
1387
1393
|
_("width", i), _("height", u);
|
|
1388
1394
|
const h = [o.left, o.top, c, f];
|
|
@@ -1405,22 +1411,22 @@ function Mn(e) {
|
|
|
1405
1411
|
'<svg xmlns="http://www.w3.org/2000/svg" '
|
|
1406
1412
|
)), Ln(t);
|
|
1407
1413
|
}
|
|
1408
|
-
function
|
|
1414
|
+
function Un(e) {
|
|
1409
1415
|
return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g, "$1 $2").replace(/(["';{}><])\s*\n\s*/g, "$1").replace(/\s*\n\s*/g, " ").replace(/\s+"/g, '"').replace(/="\s+/g, '="').replace(/(\s)+\/>/g, "/>").trim();
|
|
1410
1416
|
}
|
|
1411
|
-
const
|
|
1417
|
+
const In = /\swidth\s*=\s*["']([\w.]+)["']/, Nn = /\sheight\s*=\s*["']([\w.]+)["']/, Z = /<svg\s+/;
|
|
1412
1418
|
function Dn(e, t, n) {
|
|
1413
1419
|
const s = e.slice(0, e.indexOf(">")), o = (r, a) => {
|
|
1414
1420
|
const l = a.exec(s), c = l != null, f = t[r];
|
|
1415
1421
|
return !f && !re(f) && (typeof n == "number" ? n > 0 && (t[r] = `${n}em`) : l && (t[r] = l[1])), c;
|
|
1416
1422
|
};
|
|
1417
|
-
return [o("width",
|
|
1423
|
+
return [o("width", In), o("height", Nn)];
|
|
1418
1424
|
}
|
|
1419
1425
|
async function Ne(e, t, n, s, o, r) {
|
|
1420
1426
|
const { scale: a, addXmlNs: l = !1 } = s ?? {}, { additionalProps: c = {}, iconCustomizer: f } = (s == null ? void 0 : s.customizations) ?? {}, i = await (o == null ? void 0 : o()) ?? {};
|
|
1421
1427
|
await (f == null ? void 0 : f(t, n, i)), Object.keys(c).forEach((m) => {
|
|
1422
|
-
const
|
|
1423
|
-
|
|
1428
|
+
const b = c[m];
|
|
1429
|
+
b != null && (i[m] = b);
|
|
1424
1430
|
}), r == null || r(i);
|
|
1425
1431
|
const [u, d] = Dn(e, i, a);
|
|
1426
1432
|
l && (!e.includes("xmlns=") && !i.xmlns && (i.xmlns = "http://www.w3.org/2000/svg"), !e.includes("xmlns:xlink=") && e.includes("xlink:") && !i["xmlns:xlink"] && (i["xmlns:xlink"] = "http://www.w3.org/1999/xlink"));
|
|
@@ -1428,13 +1434,13 @@ async function Ne(e, t, n, s, o, r) {
|
|
|
1428
1434
|
(m) => m === "width" && u || m === "height" && d ? null : `${m}="${i[m]}"`
|
|
1429
1435
|
).filter((m) => m != null);
|
|
1430
1436
|
if (_.length && (e = e.replace(Z, `<svg ${_.join(" ")} `)), s) {
|
|
1431
|
-
const { defaultStyle: m, defaultClass:
|
|
1432
|
-
|
|
1437
|
+
const { defaultStyle: m, defaultClass: b } = s;
|
|
1438
|
+
b && !e.includes("class=") && (e = e.replace(Z, `<svg class="${b}" `)), m && !e.includes("style=") && (e = e.replace(Z, `<svg style="${m}" `));
|
|
1433
1439
|
}
|
|
1434
1440
|
const h = s == null ? void 0 : s.usedProps;
|
|
1435
1441
|
return h && (Object.keys(c).forEach((m) => {
|
|
1436
|
-
const
|
|
1437
|
-
|
|
1442
|
+
const b = i[m];
|
|
1443
|
+
b != null && (h[m] = b);
|
|
1438
1444
|
}), typeof i.width < "u" && i.width !== null && (h.width = i.width), typeof i.height < "u" && i.height !== null && (h.height = i.height)), e;
|
|
1439
1445
|
}
|
|
1440
1446
|
async function be(e, t, n, s) {
|
|
@@ -1459,7 +1465,7 @@ async function be(e, t, n, s) {
|
|
|
1459
1465
|
a > 0 && (o = o.slice(a));
|
|
1460
1466
|
const { transform: l } = (s == null ? void 0 : s.customizations) ?? {};
|
|
1461
1467
|
return o = typeof l == "function" ? await l(o, t, n) : o, o.startsWith("<svg") ? await Ne(
|
|
1462
|
-
((r = s == null ? void 0 : s.customizations) == null ? void 0 : r.trimCustomSvg) === !0 ?
|
|
1468
|
+
((r = s == null ? void 0 : s.customizations) == null ? void 0 : r.trimCustomSvg) === !0 ? Un(o) : o,
|
|
1463
1469
|
t,
|
|
1464
1470
|
n,
|
|
1465
1471
|
s,
|
|
@@ -1474,12 +1480,12 @@ async function De(e, t, n, s) {
|
|
|
1474
1480
|
const { customize: r } = (s == null ? void 0 : s.customizations) ?? {};
|
|
1475
1481
|
for (const a of n)
|
|
1476
1482
|
if (o = Cn(e, a), o) {
|
|
1477
|
-
let l = { ...
|
|
1483
|
+
let l = { ...Ie };
|
|
1478
1484
|
typeof r == "function" && (l = r(l));
|
|
1479
1485
|
const {
|
|
1480
1486
|
attributes: { width: c, height: f, ...i },
|
|
1481
1487
|
body: u
|
|
1482
|
-
} =
|
|
1488
|
+
} = $n(o, l), d = s == null ? void 0 : s.scale;
|
|
1483
1489
|
return await Ne(
|
|
1484
1490
|
// DON'T remove space on <svg >
|
|
1485
1491
|
`<svg >${u}</svg>`,
|
|
@@ -1488,13 +1494,13 @@ async function De(e, t, n, s) {
|
|
|
1488
1494
|
s,
|
|
1489
1495
|
() => ({ ...i }),
|
|
1490
1496
|
(_) => {
|
|
1491
|
-
const h = (m,
|
|
1497
|
+
const h = (m, b) => {
|
|
1492
1498
|
const A = _[m];
|
|
1493
1499
|
let x;
|
|
1494
1500
|
if (!re(A)) {
|
|
1495
1501
|
if (A)
|
|
1496
1502
|
return;
|
|
1497
|
-
typeof d == "number" ? d && (x = `${d}em`) : x =
|
|
1503
|
+
typeof d == "number" ? d && (x = `${d}em`) : x = b;
|
|
1498
1504
|
}
|
|
1499
1505
|
x ? _[m] = x : delete _[m];
|
|
1500
1506
|
};
|
|
@@ -1702,6 +1708,8 @@ var Pn = [
|
|
|
1702
1708
|
"tabler",
|
|
1703
1709
|
"tdesign",
|
|
1704
1710
|
"teenyicons",
|
|
1711
|
+
"token-branded",
|
|
1712
|
+
"token",
|
|
1705
1713
|
"topcoat",
|
|
1706
1714
|
"twemoji",
|
|
1707
1715
|
"typcn",
|
|
@@ -1722,7 +1730,7 @@ var Pn = [
|
|
|
1722
1730
|
"zondicons"
|
|
1723
1731
|
];
|
|
1724
1732
|
const Fn = /* @__PURE__ */ jn(Pn), Vn = 3;
|
|
1725
|
-
function
|
|
1733
|
+
function Hn(e) {
|
|
1726
1734
|
return (t = {}) => {
|
|
1727
1735
|
const {
|
|
1728
1736
|
scale: n = 1,
|
|
@@ -1736,7 +1744,7 @@ function Gn(e) {
|
|
|
1736
1744
|
collectionsNodeResolvePath: i,
|
|
1737
1745
|
layer: u = "icons",
|
|
1738
1746
|
unit: d
|
|
1739
|
-
} = t, _ =
|
|
1747
|
+
} = t, _ = Gn(), h = {
|
|
1740
1748
|
addXmlNs: !0,
|
|
1741
1749
|
scale: n,
|
|
1742
1750
|
customCollections: a,
|
|
@@ -1748,9 +1756,9 @@ function Gn(e) {
|
|
|
1748
1756
|
...c,
|
|
1749
1757
|
additionalProps: { ...l },
|
|
1750
1758
|
trimCustomSvg: !0,
|
|
1751
|
-
async iconCustomizer(
|
|
1759
|
+
async iconCustomizer(b, A, x) {
|
|
1752
1760
|
var y;
|
|
1753
|
-
await ((y = c.iconCustomizer) == null ? void 0 : y.call(c,
|
|
1761
|
+
await ((y = c.iconCustomizer) == null ? void 0 : y.call(c, b, A, x)), d && (x.width || (x.width = `${n}${d}`), x.height || (x.height = `${n}${d}`));
|
|
1754
1762
|
}
|
|
1755
1763
|
}
|
|
1756
1764
|
};
|
|
@@ -1762,23 +1770,23 @@ function Gn(e) {
|
|
|
1762
1770
|
layers: { icons: -30 },
|
|
1763
1771
|
rules: [[
|
|
1764
1772
|
/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,
|
|
1765
|
-
async ([
|
|
1766
|
-
let y = "", S = "",
|
|
1773
|
+
async ([b, A, x = s]) => {
|
|
1774
|
+
let y = "", S = "", v;
|
|
1767
1775
|
m = m || await e(t);
|
|
1768
1776
|
const p = {};
|
|
1769
1777
|
if (A.includes(":"))
|
|
1770
|
-
[y, S] = A.split(":"),
|
|
1778
|
+
[y, S] = A.split(":"), v = await m(y, S, { ...h, usedProps: p });
|
|
1771
1779
|
else {
|
|
1772
1780
|
const R = A.split(/-/g);
|
|
1773
|
-
for (let O = Vn; O >= 1 && (y = R.slice(0, O).join("-"), S = R.slice(O).join("-"),
|
|
1781
|
+
for (let O = Vn; O >= 1 && (y = R.slice(0, O).join("-"), S = R.slice(O).join("-"), v = await m(y, S, { ...h, usedProps: p }), !v); O--)
|
|
1774
1782
|
;
|
|
1775
1783
|
}
|
|
1776
|
-
if (!
|
|
1777
|
-
r && !_.isESLint &&
|
|
1784
|
+
if (!v) {
|
|
1785
|
+
r && !_.isESLint && Te(`failed to load icon "${b}"`);
|
|
1778
1786
|
return;
|
|
1779
1787
|
}
|
|
1780
|
-
const w = `url("data:image/svg+xml;utf8,${Mn(
|
|
1781
|
-
return x === "auto" && (x =
|
|
1788
|
+
const w = `url("data:image/svg+xml;utf8,${Mn(v)}")`;
|
|
1789
|
+
return x === "auto" && (x = v.includes("currentColor") ? "mask" : "bg"), x === "mask" ? {
|
|
1782
1790
|
"--un-icon": w,
|
|
1783
1791
|
"-webkit-mask": "var(--un-icon) no-repeat",
|
|
1784
1792
|
mask: "var(--un-icon) no-repeat",
|
|
@@ -1822,7 +1830,7 @@ function Pe(e, t) {
|
|
|
1822
1830
|
return l;
|
|
1823
1831
|
};
|
|
1824
1832
|
}
|
|
1825
|
-
function
|
|
1833
|
+
function Gn() {
|
|
1826
1834
|
const e = typeof process < "u" && process.stdout && !process.versions.deno, t = e && !!he.VSCODE_CWD, n = e && !!he.ESLINT;
|
|
1827
1835
|
return {
|
|
1828
1836
|
isNode: e,
|
|
@@ -1833,7 +1841,7 @@ function Hn() {
|
|
|
1833
1841
|
function Bn(e) {
|
|
1834
1842
|
return Pe(Mt, e);
|
|
1835
1843
|
}
|
|
1836
|
-
const zn =
|
|
1844
|
+
const zn = Hn(async (e) => {
|
|
1837
1845
|
const t = e == null ? void 0 : e.customFetch, n = e == null ? void 0 : e.cdn;
|
|
1838
1846
|
return t && n ? Pe(t, n) : n ? Bn(n) : je;
|
|
1839
1847
|
});
|
|
@@ -1878,13 +1886,13 @@ function Jn(e = {}) {
|
|
|
1878
1886
|
return;
|
|
1879
1887
|
}
|
|
1880
1888
|
const t = window, n = window.document, s = () => n.documentElement, o = t.__unocss || {}, r = Object.assign({}, e, o.runtime), a = r.defaults || {}, l = r.cloakAttribute ?? "un-cloak";
|
|
1881
|
-
r.autoPrefix && (a.postprocess =
|
|
1889
|
+
r.autoPrefix && (a.postprocess = I(a.postprocess)).unshift(Wn(n.createElement("div").style)), (P = r.configResolved) == null || P.call(r, o, a);
|
|
1882
1890
|
const c = hn(o, a), f = (g) => r.inject ? r.inject(g) : s().prepend(g), i = () => r.rootElement ? r.rootElement() : n.body, u = /* @__PURE__ */ new Map();
|
|
1883
|
-
let d = !0, _ = /* @__PURE__ */ new Set(), h, m,
|
|
1891
|
+
let d = !0, _ = /* @__PURE__ */ new Set(), h, m, b = [];
|
|
1884
1892
|
const A = () => new Promise((g) => {
|
|
1885
|
-
|
|
1886
|
-
const E =
|
|
1887
|
-
|
|
1893
|
+
b.push(g), m != null && clearTimeout(m), m = setTimeout(() => S().then(() => {
|
|
1894
|
+
const E = b;
|
|
1895
|
+
b = [], E.forEach((C) => C());
|
|
1888
1896
|
}), 0);
|
|
1889
1897
|
});
|
|
1890
1898
|
function x(g) {
|
|
@@ -1901,8 +1909,8 @@ function Jn(e = {}) {
|
|
|
1901
1909
|
if (C = n.createElement("style"), C.setAttribute("data-unocss-runtime-layer", g), u.set(g, C), E == null)
|
|
1902
1910
|
f(C);
|
|
1903
1911
|
else {
|
|
1904
|
-
const M = y(E),
|
|
1905
|
-
|
|
1912
|
+
const M = y(E), T = M.parentNode;
|
|
1913
|
+
T ? T.insertBefore(C, M.nextSibling) : f(C);
|
|
1906
1914
|
}
|
|
1907
1915
|
return C;
|
|
1908
1916
|
}
|
|
@@ -1914,13 +1922,13 @@ function Jn(e = {}) {
|
|
|
1914
1922
|
getStyleElements: () => u
|
|
1915
1923
|
};
|
|
1916
1924
|
}
|
|
1917
|
-
async function
|
|
1925
|
+
async function v(g) {
|
|
1918
1926
|
const E = _.size;
|
|
1919
1927
|
await c.applyExtractors(g, void 0, _), E !== _.size && await A();
|
|
1920
1928
|
}
|
|
1921
1929
|
async function p(g = i()) {
|
|
1922
1930
|
const E = g && g.outerHTML;
|
|
1923
|
-
E && (await
|
|
1931
|
+
E && (await v(`${E} ${Kn(E)}`), x(s()), x(g));
|
|
1924
1932
|
}
|
|
1925
1933
|
const w = new MutationObserver((g) => {
|
|
1926
1934
|
d || g.forEach(async (E) => {
|
|
@@ -1934,15 +1942,15 @@ function Jn(e = {}) {
|
|
|
1934
1942
|
E.addedNodes.forEach(async (M) => {
|
|
1935
1943
|
if (M.nodeType !== 1)
|
|
1936
1944
|
return;
|
|
1937
|
-
const
|
|
1938
|
-
h && !h(
|
|
1945
|
+
const T = M;
|
|
1946
|
+
h && !h(T) || (await v(T.outerHTML), x(T));
|
|
1939
1947
|
});
|
|
1940
1948
|
else {
|
|
1941
1949
|
if (h && !h(C))
|
|
1942
1950
|
return;
|
|
1943
1951
|
if (E.attributeName !== l) {
|
|
1944
|
-
const M = Array.from(C.attributes).map((
|
|
1945
|
-
await
|
|
1952
|
+
const M = Array.from(C.attributes).map(($) => $.value ? `${$.name}="${$.value}"` : $.name).join(" "), T = `<${C.tagName.toLowerCase()} ${M}>`;
|
|
1953
|
+
await v(T);
|
|
1946
1954
|
}
|
|
1947
1955
|
C.hasAttribute(l) && C.removeAttribute(l);
|
|
1948
1956
|
}
|
|
@@ -1971,7 +1979,7 @@ function Jn(e = {}) {
|
|
|
1971
1979
|
version: c.version,
|
|
1972
1980
|
uno: c,
|
|
1973
1981
|
async extract(g) {
|
|
1974
|
-
|
|
1982
|
+
U(g) || (g.forEach((E) => _.add(E)), g = ""), await v(g);
|
|
1975
1983
|
},
|
|
1976
1984
|
extractAll: p,
|
|
1977
1985
|
inspect(g) {
|