vite-plugin-vue-devtools 7.3.0-beta.3 → 7.3.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/index-CCs-YXwE.css +1 -0
- package/client/assets/{index-BeOBlMyl.js → index-Do4Azd-q.js} +79 -79
- package/client/index.html +2 -2
- package/dist/vite.cjs +4 -2
- package/dist/vite.mjs +4 -2
- package/package.json +4 -4
- package/src/overlay/devtools-overlay.css +1 -1
- package/src/overlay/devtools-overlay.mjs +3 -3
- package/client/assets/index-DcHgl2yr.css +0 -1
- package/client/devtools-client-lib/color-scheme.js +0 -6
- package/client/devtools-client-lib/css-CAzixsid-CEpuX1HY.js +0 -511
- package/client/devtools-client-lib/css-CAzixsid.js +0 -511
- package/client/devtools-client-lib/devtools-panel.css +0 -1
- package/client/devtools-client-lib/devtools-panel.js +0 -93072
- package/client/devtools-client-lib/diff-Bo5iyMQ2-Bo5iyMQ2.js +0 -7
- package/client/devtools-client-lib/diff-Bo5iyMQ2.js +0 -7
- package/client/devtools-client-lib/html-BZB5lEhh-B74zAnWx.js +0 -84
- package/client/devtools-client-lib/html-BZB5lEhh.js +0 -84
- package/client/devtools-client-lib/javascript-DqVBMyXe-DqVBMyXe.js +0 -705
- package/client/devtools-client-lib/javascript-DqVBMyXe.js +0 -705
- package/client/devtools-client-lib/json-B12k4-6m-B12k4-6m.js +0 -31
- package/client/devtools-client-lib/json-B12k4-6m.js +0 -31
- package/client/devtools-client-lib/logo.svg +0 -208
- package/client/devtools-client-lib/shellscript-C_gmBC5P-C_gmBC5P.js +0 -7
- package/client/devtools-client-lib/shellscript-C_gmBC5P.js +0 -7
- package/client/devtools-client-lib/typescript-AEg-ehu7-AEg-ehu7.js +0 -672
- package/client/devtools-client-lib/typescript-AEg-ehu7.js +0 -672
- package/client/devtools-client-lib/unocss-runtime-N1aIelHJ.js +0 -2041
- package/client/devtools-client-lib/vitesse-dark-CkUHDarG-CkUHDarG.js +0 -685
- package/client/devtools-client-lib/vitesse-dark-CkUHDarG.js +0 -685
- package/client/devtools-client-lib/vitesse-light-K81-viQS-K81-viQS.js +0 -683
- package/client/devtools-client-lib/vitesse-light-K81-viQS.js +0 -683
- package/client/devtools-client-lib/vue-CCacahFR-DGkPCBY5.js +0 -2125
- package/client/devtools-client-lib/vue-CCacahFR.js +0 -2125
- package/client/devtools-client-lib/vue-apis-Ba6Wxigc.js +0 -1152
- package/client/devtools-client-lib/vue-html-Cae35ipv-C0hVhFzJ.js +0 -11
- package/client/devtools-client-lib/vue-html-Cae35ipv.js +0 -11
- package/client/devtools-client-lib/yaml-PGla5xPP-HJurM_FJ.js +0 -206
- package/client/devtools-client-lib/yaml-PGla5xPP.js +0 -206
|
@@ -1,2041 +0,0 @@
|
|
|
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*:/, ze = /"(?: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*:/, Ve = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
2
|
-
function He(e, t) {
|
|
3
|
-
if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
4
|
-
Be(e);
|
|
5
|
-
return;
|
|
6
|
-
}
|
|
7
|
-
return t;
|
|
8
|
-
}
|
|
9
|
-
function Be(e) {
|
|
10
|
-
console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
|
|
11
|
-
}
|
|
12
|
-
function qe(e, t = {}) {
|
|
13
|
-
if (typeof e != "string")
|
|
14
|
-
return e;
|
|
15
|
-
const n = e.trim();
|
|
16
|
-
if (
|
|
17
|
-
// eslint-disable-next-line unicorn/prefer-at
|
|
18
|
-
e[0] === '"' && e.endsWith('"') && !e.includes("\\")
|
|
19
|
-
)
|
|
20
|
-
return n.slice(1, -1);
|
|
21
|
-
if (n.length <= 9) {
|
|
22
|
-
const r = n.toLowerCase();
|
|
23
|
-
if (r === "true")
|
|
24
|
-
return !0;
|
|
25
|
-
if (r === "false")
|
|
26
|
-
return !1;
|
|
27
|
-
if (r === "undefined")
|
|
28
|
-
return;
|
|
29
|
-
if (r === "null")
|
|
30
|
-
return null;
|
|
31
|
-
if (r === "nan")
|
|
32
|
-
return Number.NaN;
|
|
33
|
-
if (r === "infinity")
|
|
34
|
-
return Number.POSITIVE_INFINITY;
|
|
35
|
-
if (r === "-infinity")
|
|
36
|
-
return Number.NEGATIVE_INFINITY;
|
|
37
|
-
}
|
|
38
|
-
if (!Ve.test(e)) {
|
|
39
|
-
if (t.strict)
|
|
40
|
-
throw new SyntaxError("[destr] Invalid JSON");
|
|
41
|
-
return e;
|
|
42
|
-
}
|
|
43
|
-
try {
|
|
44
|
-
if (Fe.test(e) || ze.test(e)) {
|
|
45
|
-
if (t.strict)
|
|
46
|
-
throw new Error("[destr] Possible prototype pollution");
|
|
47
|
-
return JSON.parse(e, He);
|
|
48
|
-
}
|
|
49
|
-
return JSON.parse(e);
|
|
50
|
-
} catch (r) {
|
|
51
|
-
if (t.strict)
|
|
52
|
-
throw r;
|
|
53
|
-
return e;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
const We = /#/g, Ge = /&/g, Je = /\//g, Qe = /=/g, re = /\+/g, Ke = /%5e/gi, Ye = /%60/gi, Xe = /%7c/gi, Ze = /%20/gi;
|
|
57
|
-
function et(e) {
|
|
58
|
-
return encodeURI("" + e).replace(Xe, "|");
|
|
59
|
-
}
|
|
60
|
-
function ee(e) {
|
|
61
|
-
return et(typeof e == "string" ? e : JSON.stringify(e)).replace(re, "%2B").replace(Ze, "+").replace(We, "%23").replace(Ge, "%26").replace(Ye, "`").replace(Ke, "^").replace(Je, "%2F");
|
|
62
|
-
}
|
|
63
|
-
function Q(e) {
|
|
64
|
-
return ee(e).replace(Qe, "%3D");
|
|
65
|
-
}
|
|
66
|
-
function xe(e = "") {
|
|
67
|
-
try {
|
|
68
|
-
return decodeURIComponent("" + e);
|
|
69
|
-
} catch {
|
|
70
|
-
return "" + e;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
function tt(e) {
|
|
74
|
-
return xe(e.replace(re, " "));
|
|
75
|
-
}
|
|
76
|
-
function nt(e) {
|
|
77
|
-
return xe(e.replace(re, " "));
|
|
78
|
-
}
|
|
79
|
-
function rt(e = "") {
|
|
80
|
-
const t = {};
|
|
81
|
-
e[0] === "?" && (e = e.slice(1));
|
|
82
|
-
for (const n of e.split("&")) {
|
|
83
|
-
const r = n.match(/([^=]+)=?(.*)/) || [];
|
|
84
|
-
if (r.length < 2)
|
|
85
|
-
continue;
|
|
86
|
-
const s = tt(r[1]);
|
|
87
|
-
if (s === "__proto__" || s === "constructor")
|
|
88
|
-
continue;
|
|
89
|
-
const o = nt(r[2] || "");
|
|
90
|
-
t[s] === void 0 ? t[s] = o : Array.isArray(t[s]) ? t[s].push(o) : t[s] = [t[s], o];
|
|
91
|
-
}
|
|
92
|
-
return t;
|
|
93
|
-
}
|
|
94
|
-
function st(e, t) {
|
|
95
|
-
return (typeof t == "number" || typeof t == "boolean") && (t = String(t)), t ? Array.isArray(t) ? t.map((n) => `${Q(e)}=${ee(n)}`).join("&") : `${Q(e)}=${ee(t)}` : Q(e);
|
|
96
|
-
}
|
|
97
|
-
function ot(e) {
|
|
98
|
-
return Object.keys(e).filter((t) => e[t] !== void 0).map((t) => st(t, e[t])).filter(Boolean).join("&");
|
|
99
|
-
}
|
|
100
|
-
const it = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/, at = /^[\s\w\0+.-]{2,}:([/\\]{2})?/, ct = /^([/\\]\s*){2,}[^/\\]/, lt = /\/$|\/\?|\/#/, ut = /^\.?\//;
|
|
101
|
-
function Ee(e, t = {}) {
|
|
102
|
-
return typeof t == "boolean" && (t = { acceptRelative: t }), t.strict ? it.test(e) : at.test(e) || (t.acceptRelative ? ct.test(e) : !1);
|
|
103
|
-
}
|
|
104
|
-
function te(e = "", t) {
|
|
105
|
-
return t ? lt.test(e) : e.endsWith("/");
|
|
106
|
-
}
|
|
107
|
-
function ft(e = "", t) {
|
|
108
|
-
if (!t)
|
|
109
|
-
return (te(e) ? e.slice(0, -1) : e) || "/";
|
|
110
|
-
if (!te(e, !0))
|
|
111
|
-
return e || "/";
|
|
112
|
-
let n = e, r = "";
|
|
113
|
-
const s = e.indexOf("#");
|
|
114
|
-
s >= 0 && (n = e.slice(0, s), r = e.slice(s));
|
|
115
|
-
const [o, ...a] = n.split("?");
|
|
116
|
-
return ((o.endsWith("/") ? o.slice(0, -1) : o) || "/") + (a.length > 0 ? `?${a.join("?")}` : "") + r;
|
|
117
|
-
}
|
|
118
|
-
function pt(e = "", t) {
|
|
119
|
-
if (!t)
|
|
120
|
-
return e.endsWith("/") ? e : e + "/";
|
|
121
|
-
if (te(e, !0))
|
|
122
|
-
return e || "/";
|
|
123
|
-
let n = e, r = "";
|
|
124
|
-
const s = e.indexOf("#");
|
|
125
|
-
if (s >= 0 && (n = e.slice(0, s), r = e.slice(s), !n))
|
|
126
|
-
return r;
|
|
127
|
-
const [o, ...a] = n.split("?");
|
|
128
|
-
return o + "/" + (a.length > 0 ? `?${a.join("?")}` : "") + r;
|
|
129
|
-
}
|
|
130
|
-
function dt(e, t) {
|
|
131
|
-
if (mt(t) || Ee(e))
|
|
132
|
-
return e;
|
|
133
|
-
const n = ft(t);
|
|
134
|
-
return e.startsWith(n) ? e : _t(n, e);
|
|
135
|
-
}
|
|
136
|
-
function ht(e, t) {
|
|
137
|
-
const n = $e(e), r = { ...rt(n.search), ...t };
|
|
138
|
-
return n.search = ot(r), yt(n);
|
|
139
|
-
}
|
|
140
|
-
function mt(e) {
|
|
141
|
-
return !e || e === "/";
|
|
142
|
-
}
|
|
143
|
-
function gt(e) {
|
|
144
|
-
return e && e !== "/";
|
|
145
|
-
}
|
|
146
|
-
function _t(e, ...t) {
|
|
147
|
-
let n = e || "";
|
|
148
|
-
for (const r of t.filter((s) => gt(s)))
|
|
149
|
-
if (n) {
|
|
150
|
-
const s = r.replace(ut, "");
|
|
151
|
-
n = pt(n) + s;
|
|
152
|
-
} else
|
|
153
|
-
n = r;
|
|
154
|
-
return n;
|
|
155
|
-
}
|
|
156
|
-
const ke = Symbol.for("ufo:protocolRelative");
|
|
157
|
-
function $e(e = "", t) {
|
|
158
|
-
const n = e.match(
|
|
159
|
-
/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i
|
|
160
|
-
);
|
|
161
|
-
if (n) {
|
|
162
|
-
const [, u, d = ""] = n;
|
|
163
|
-
return {
|
|
164
|
-
protocol: u.toLowerCase(),
|
|
165
|
-
pathname: d,
|
|
166
|
-
href: u + d,
|
|
167
|
-
auth: "",
|
|
168
|
-
host: "",
|
|
169
|
-
search: "",
|
|
170
|
-
hash: ""
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
if (!Ee(e, { acceptRelative: !0 }))
|
|
174
|
-
return t ? $e(t + e) : ae(e);
|
|
175
|
-
const [, r = "", s, o = ""] = e.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || [], [, a = "", l = ""] = o.match(/([^#/?]*)(.*)?/) || [], { pathname: c, search: f, hash: i } = ae(
|
|
176
|
-
l.replace(/\/(?=[A-Za-z]:)/, "")
|
|
177
|
-
);
|
|
178
|
-
return {
|
|
179
|
-
protocol: r.toLowerCase(),
|
|
180
|
-
auth: s ? s.slice(0, Math.max(0, s.length - 1)) : "",
|
|
181
|
-
host: a,
|
|
182
|
-
pathname: c,
|
|
183
|
-
search: f,
|
|
184
|
-
hash: i,
|
|
185
|
-
[ke]: !r
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
function ae(e = "") {
|
|
189
|
-
const [t = "", n = "", r = ""] = (e.match(/([^#?]*)(\?[^#]*)?(#.*)?/) || []).splice(1);
|
|
190
|
-
return {
|
|
191
|
-
pathname: t,
|
|
192
|
-
search: n,
|
|
193
|
-
hash: r
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
function yt(e) {
|
|
197
|
-
const t = e.pathname || "", n = e.search ? (e.search.startsWith("?") ? "" : "?") + e.search : "", r = e.hash || "", s = e.auth ? e.auth + "@" : "", o = e.host || "";
|
|
198
|
-
return (e.protocol || e[ke] ? (e.protocol || "") + "//" : "") + s + o + t + n + r;
|
|
199
|
-
}
|
|
200
|
-
class bt extends Error {
|
|
201
|
-
constructor(t, n) {
|
|
202
|
-
super(t, n), this.name = "FetchError", n != null && n.cause && !this.cause && (this.cause = n.cause);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
function vt(e) {
|
|
206
|
-
var c, f, i, u, d;
|
|
207
|
-
const t = ((c = e.error) == null ? void 0 : c.message) || ((f = e.error) == null ? void 0 : f.toString()) || "", n = ((i = e.request) == null ? void 0 : i.method) || ((u = e.options) == null ? void 0 : u.method) || "GET", r = ((d = e.request) == null ? void 0 : d.url) || String(e.request) || "/", s = `[${n}] ${JSON.stringify(r)}`, o = e.response ? `${e.response.status} ${e.response.statusText}` : "<no response>", a = `${s}: ${o}${t ? ` ${t}` : ""}`, l = new bt(
|
|
208
|
-
a,
|
|
209
|
-
e.error ? { cause: e.error } : void 0
|
|
210
|
-
);
|
|
211
|
-
for (const h of ["request", "options", "response"])
|
|
212
|
-
Object.defineProperty(l, h, {
|
|
213
|
-
get() {
|
|
214
|
-
return e[h];
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
for (const [h, m] of [
|
|
218
|
-
["data", "_data"],
|
|
219
|
-
["status", "status"],
|
|
220
|
-
["statusCode", "status"],
|
|
221
|
-
["statusText", "statusText"],
|
|
222
|
-
["statusMessage", "statusText"]
|
|
223
|
-
])
|
|
224
|
-
Object.defineProperty(l, h, {
|
|
225
|
-
get() {
|
|
226
|
-
return e.response && e.response[m];
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
return l;
|
|
230
|
-
}
|
|
231
|
-
const wt = new Set(
|
|
232
|
-
Object.freeze(["PATCH", "POST", "PUT", "DELETE"])
|
|
233
|
-
);
|
|
234
|
-
function ce(e = "GET") {
|
|
235
|
-
return wt.has(e.toUpperCase());
|
|
236
|
-
}
|
|
237
|
-
function St(e) {
|
|
238
|
-
if (e === void 0)
|
|
239
|
-
return !1;
|
|
240
|
-
const t = typeof e;
|
|
241
|
-
return t === "string" || t === "number" || t === "boolean" || t === null ? !0 : t !== "object" ? !1 : Array.isArray(e) ? !0 : e.buffer ? !1 : e.constructor && e.constructor.name === "Object" || typeof e.toJSON == "function";
|
|
242
|
-
}
|
|
243
|
-
const xt = /* @__PURE__ */ new Set([
|
|
244
|
-
"image/svg",
|
|
245
|
-
"application/xml",
|
|
246
|
-
"application/xhtml",
|
|
247
|
-
"application/html"
|
|
248
|
-
]), Et = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
|
|
249
|
-
function kt(e = "") {
|
|
250
|
-
if (!e)
|
|
251
|
-
return "json";
|
|
252
|
-
const t = e.split(";").shift() || "";
|
|
253
|
-
return Et.test(t) ? "json" : xt.has(t) || t.startsWith("text/") ? "text" : "blob";
|
|
254
|
-
}
|
|
255
|
-
function $t(e, t, n = globalThis.Headers) {
|
|
256
|
-
const r = {
|
|
257
|
-
...t,
|
|
258
|
-
...e
|
|
259
|
-
};
|
|
260
|
-
if (t != null && t.params && (e != null && e.params) && (r.params = {
|
|
261
|
-
...t == null ? void 0 : t.params,
|
|
262
|
-
...e == null ? void 0 : e.params
|
|
263
|
-
}), t != null && t.query && (e != null && e.query) && (r.query = {
|
|
264
|
-
...t == null ? void 0 : t.query,
|
|
265
|
-
...e == null ? void 0 : e.query
|
|
266
|
-
}), t != null && t.headers && (e != null && e.headers)) {
|
|
267
|
-
r.headers = new n((t == null ? void 0 : t.headers) || {});
|
|
268
|
-
for (const [s, o] of new n((e == null ? void 0 : e.headers) || {}))
|
|
269
|
-
r.headers.set(s, o);
|
|
270
|
-
}
|
|
271
|
-
return r;
|
|
272
|
-
}
|
|
273
|
-
const At = /* @__PURE__ */ new Set([
|
|
274
|
-
408,
|
|
275
|
-
// Request Timeout
|
|
276
|
-
409,
|
|
277
|
-
// Conflict
|
|
278
|
-
425,
|
|
279
|
-
// Too Early
|
|
280
|
-
429,
|
|
281
|
-
// Too Many Requests
|
|
282
|
-
500,
|
|
283
|
-
// Internal Server Error
|
|
284
|
-
502,
|
|
285
|
-
// Bad Gateway
|
|
286
|
-
503,
|
|
287
|
-
// Service Unavailable
|
|
288
|
-
504
|
|
289
|
-
// Gateway Timeout
|
|
290
|
-
]), Ct = /* @__PURE__ */ new Set([101, 204, 205, 304]);
|
|
291
|
-
function Ae(e = {}) {
|
|
292
|
-
const {
|
|
293
|
-
fetch: t = globalThis.fetch,
|
|
294
|
-
Headers: n = globalThis.Headers,
|
|
295
|
-
AbortController: r = globalThis.AbortController
|
|
296
|
-
} = e;
|
|
297
|
-
async function s(l) {
|
|
298
|
-
const c = l.error && l.error.name === "AbortError" && !l.options.timeout || !1;
|
|
299
|
-
if (l.options.retry !== !1 && !c) {
|
|
300
|
-
let i;
|
|
301
|
-
typeof l.options.retry == "number" ? i = l.options.retry : i = ce(l.options.method) ? 0 : 1;
|
|
302
|
-
const u = l.response && l.response.status || 500;
|
|
303
|
-
if (i > 0 && (Array.isArray(l.options.retryStatusCodes) ? l.options.retryStatusCodes.includes(u) : At.has(u))) {
|
|
304
|
-
const d = l.options.retryDelay || 0;
|
|
305
|
-
return d > 0 && await new Promise((h) => setTimeout(h, d)), o(l.request, {
|
|
306
|
-
...l.options,
|
|
307
|
-
retry: i - 1
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
const f = vt(l);
|
|
312
|
-
throw Error.captureStackTrace && Error.captureStackTrace(f, o), f;
|
|
313
|
-
}
|
|
314
|
-
const o = async function(c, f = {}) {
|
|
315
|
-
var h;
|
|
316
|
-
const i = {
|
|
317
|
-
request: c,
|
|
318
|
-
options: $t(f, e.defaults, n),
|
|
319
|
-
response: void 0,
|
|
320
|
-
error: void 0
|
|
321
|
-
};
|
|
322
|
-
i.options.method = (h = i.options.method) == null ? void 0 : h.toUpperCase(), i.options.onRequest && await i.options.onRequest(i), typeof i.request == "string" && (i.options.baseURL && (i.request = dt(i.request, i.options.baseURL)), (i.options.query || i.options.params) && (i.request = ht(i.request, {
|
|
323
|
-
...i.options.params,
|
|
324
|
-
...i.options.query
|
|
325
|
-
}))), i.options.body && ce(i.options.method) && (St(i.options.body) ? (i.options.body = typeof i.options.body == "string" ? i.options.body : JSON.stringify(i.options.body), i.options.headers = new n(i.options.headers || {}), i.options.headers.has("content-type") || i.options.headers.set("content-type", "application/json"), i.options.headers.has("accept") || i.options.headers.set("accept", "application/json")) : (
|
|
326
|
-
// ReadableStream Body
|
|
327
|
-
("pipeTo" in i.options.body && typeof i.options.body.pipeTo == "function" || // Node.js Stream Body
|
|
328
|
-
typeof i.options.body.pipe == "function") && ("duplex" in i.options || (i.options.duplex = "half"))
|
|
329
|
-
));
|
|
330
|
-
let u;
|
|
331
|
-
if (!i.options.signal && i.options.timeout) {
|
|
332
|
-
const m = new r();
|
|
333
|
-
u = setTimeout(
|
|
334
|
-
() => m.abort(),
|
|
335
|
-
i.options.timeout
|
|
336
|
-
), i.options.signal = m.signal;
|
|
337
|
-
}
|
|
338
|
-
try {
|
|
339
|
-
i.response = await t(
|
|
340
|
-
i.request,
|
|
341
|
-
i.options
|
|
342
|
-
);
|
|
343
|
-
} catch (m) {
|
|
344
|
-
return i.error = m, i.options.onRequestError && await i.options.onRequestError(i), await s(i);
|
|
345
|
-
} finally {
|
|
346
|
-
u && clearTimeout(u);
|
|
347
|
-
}
|
|
348
|
-
if (i.response.body && !Ct.has(i.response.status) && i.options.method !== "HEAD") {
|
|
349
|
-
const m = (i.options.parseResponse ? "json" : i.options.responseType) || kt(i.response.headers.get("content-type") || "");
|
|
350
|
-
switch (m) {
|
|
351
|
-
case "json": {
|
|
352
|
-
const g = await i.response.text(), b = i.options.parseResponse || qe;
|
|
353
|
-
i.response._data = b(g);
|
|
354
|
-
break;
|
|
355
|
-
}
|
|
356
|
-
case "stream": {
|
|
357
|
-
i.response._data = i.response.body;
|
|
358
|
-
break;
|
|
359
|
-
}
|
|
360
|
-
default:
|
|
361
|
-
i.response._data = await i.response[m]();
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
return i.options.onResponse && await i.options.onResponse(i), !i.options.ignoreResponseError && i.response.status >= 400 && i.response.status < 600 ? (i.options.onResponseError && await i.options.onResponseError(i), await s(i)) : i.response;
|
|
365
|
-
}, a = async function(c, f) {
|
|
366
|
-
return (await o(c, f))._data;
|
|
367
|
-
};
|
|
368
|
-
return a.raw = o, a.native = (...l) => t(...l), a.create = (l = {}) => Ae({
|
|
369
|
-
...e,
|
|
370
|
-
defaults: {
|
|
371
|
-
...e.defaults,
|
|
372
|
-
...l
|
|
373
|
-
}
|
|
374
|
-
}), a;
|
|
375
|
-
}
|
|
376
|
-
const se = function() {
|
|
377
|
-
if (typeof globalThis < "u")
|
|
378
|
-
return globalThis;
|
|
379
|
-
if (typeof self < "u")
|
|
380
|
-
return self;
|
|
381
|
-
if (typeof window < "u")
|
|
382
|
-
return window;
|
|
383
|
-
if (typeof global < "u")
|
|
384
|
-
return global;
|
|
385
|
-
throw new Error("unable to locate global object");
|
|
386
|
-
}(), Ot = se.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!"))), jt = se.Headers, Tt = se.AbortController, Rt = Ae({ fetch: Ot, Headers: jt, AbortController: Tt }), Mt = Rt;
|
|
387
|
-
function Lt(e) {
|
|
388
|
-
const t = e.length;
|
|
389
|
-
let n = -1, r, s = "";
|
|
390
|
-
const o = e.charCodeAt(0);
|
|
391
|
-
for (; ++n < t; ) {
|
|
392
|
-
if (r = e.charCodeAt(n), r === 0) {
|
|
393
|
-
s += "�";
|
|
394
|
-
continue;
|
|
395
|
-
}
|
|
396
|
-
if (r === 37) {
|
|
397
|
-
s += "\\%";
|
|
398
|
-
continue;
|
|
399
|
-
}
|
|
400
|
-
if (r === 44) {
|
|
401
|
-
s += "\\,";
|
|
402
|
-
continue;
|
|
403
|
-
}
|
|
404
|
-
if (
|
|
405
|
-
// If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
|
|
406
|
-
// U+007F, […]
|
|
407
|
-
r >= 1 && r <= 31 || r === 127 || n === 0 && r >= 48 && r <= 57 || n === 1 && r >= 48 && r <= 57 && o === 45
|
|
408
|
-
) {
|
|
409
|
-
s += `\\${r.toString(16)} `;
|
|
410
|
-
continue;
|
|
411
|
-
}
|
|
412
|
-
if (
|
|
413
|
-
// If the character is the first character and is a `-` (U+002D), and
|
|
414
|
-
// there is no second character, […]
|
|
415
|
-
n === 0 && t === 1 && r === 45
|
|
416
|
-
) {
|
|
417
|
-
s += `\\${e.charAt(n)}`;
|
|
418
|
-
continue;
|
|
419
|
-
}
|
|
420
|
-
if (r >= 128 || r === 45 || r === 95 || r >= 48 && r <= 57 || r >= 65 && r <= 90 || r >= 97 && r <= 122) {
|
|
421
|
-
s += e.charAt(n);
|
|
422
|
-
continue;
|
|
423
|
-
}
|
|
424
|
-
s += `\\${e.charAt(n)}`;
|
|
425
|
-
}
|
|
426
|
-
return s;
|
|
427
|
-
}
|
|
428
|
-
const K = Lt;
|
|
429
|
-
function U(e = []) {
|
|
430
|
-
return Array.isArray(e) ? e : [e];
|
|
431
|
-
}
|
|
432
|
-
function G(e) {
|
|
433
|
-
return Array.from(new Set(e));
|
|
434
|
-
}
|
|
435
|
-
function Ut(e, t) {
|
|
436
|
-
return e.reduce((n, r) => (n.findIndex((o) => t(r, o)) === -1 && n.push(r), n), []);
|
|
437
|
-
}
|
|
438
|
-
function M(e) {
|
|
439
|
-
return typeof e == "string";
|
|
440
|
-
}
|
|
441
|
-
function V(e) {
|
|
442
|
-
return M(e) ? e : (Array.isArray(e) ? e : Object.entries(e)).filter((t) => t[1] != null);
|
|
443
|
-
}
|
|
444
|
-
function Pt(e) {
|
|
445
|
-
return Array.isArray(e) ? e.find((t) => !Array.isArray(t) || Array.isArray(t[0])) ? e.map((t) => V(t)) : [e] : [V(e)];
|
|
446
|
-
}
|
|
447
|
-
function Nt(e) {
|
|
448
|
-
return e.filter(([t, n], r) => {
|
|
449
|
-
if (t.startsWith("$$"))
|
|
450
|
-
return !1;
|
|
451
|
-
for (let s = r - 1; s >= 0; s--)
|
|
452
|
-
if (e[s][0] === t && e[s][1] === n)
|
|
453
|
-
return !1;
|
|
454
|
-
return !0;
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
function Y(e) {
|
|
458
|
-
return e == null ? "" : Nt(e).map(([t, n]) => n != null ? `${t}:${n};` : void 0).filter(Boolean).join("");
|
|
459
|
-
}
|
|
460
|
-
function H(e) {
|
|
461
|
-
return e && typeof e == "object" && !Array.isArray(e);
|
|
462
|
-
}
|
|
463
|
-
function Ce(e, t, n = !1) {
|
|
464
|
-
const r = e, s = t;
|
|
465
|
-
if (Array.isArray(s))
|
|
466
|
-
return n && Array.isArray(s) ? [...r, ...s] : [...s];
|
|
467
|
-
const o = { ...r };
|
|
468
|
-
return H(r) && H(s) && Object.keys(s).forEach((a) => {
|
|
469
|
-
H(r[a]) && H(s[a]) || Array.isArray(r[a]) && Array.isArray(s[a]) ? o[a] = Ce(r[a], s[a], n) : Object.assign(o, { [a]: s[a] });
|
|
470
|
-
}), o;
|
|
471
|
-
}
|
|
472
|
-
function q(e) {
|
|
473
|
-
let t, n, r;
|
|
474
|
-
if (Array.isArray(e)) {
|
|
475
|
-
for (n = Array(t = e.length); t--; )
|
|
476
|
-
n[t] = (r = e[t]) && typeof r == "object" ? q(r) : r;
|
|
477
|
-
return n;
|
|
478
|
-
}
|
|
479
|
-
if (Object.prototype.toString.call(e) === "[object Object]") {
|
|
480
|
-
n = {};
|
|
481
|
-
for (t in e)
|
|
482
|
-
t === "__proto__" ? Object.defineProperty(n, t, {
|
|
483
|
-
value: q(e[t]),
|
|
484
|
-
configurable: !0,
|
|
485
|
-
enumerable: !0,
|
|
486
|
-
writable: !0
|
|
487
|
-
}) : n[t] = (r = e[t]) && typeof r == "object" ? q(r) : r;
|
|
488
|
-
return n;
|
|
489
|
-
}
|
|
490
|
-
return e;
|
|
491
|
-
}
|
|
492
|
-
function Dt(e) {
|
|
493
|
-
return M(e[0]);
|
|
494
|
-
}
|
|
495
|
-
function It(e) {
|
|
496
|
-
return M(e[0]);
|
|
497
|
-
}
|
|
498
|
-
const le = "$$shortcut-no-merge";
|
|
499
|
-
function Ft(e) {
|
|
500
|
-
return typeof e == "function" ? { match: e } : e;
|
|
501
|
-
}
|
|
502
|
-
function ue(e) {
|
|
503
|
-
return e.length === 3;
|
|
504
|
-
}
|
|
505
|
-
function zt(e) {
|
|
506
|
-
return e != null;
|
|
507
|
-
}
|
|
508
|
-
function Vt() {
|
|
509
|
-
}
|
|
510
|
-
var Ht = Object.defineProperty, Bt = (e, t, n) => t in e ? Ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, qt = (e, t, n) => (Bt(e, t + "", n), n);
|
|
511
|
-
class Wt {
|
|
512
|
-
constructor() {
|
|
513
|
-
qt(this, "_map", /* @__PURE__ */ new Map());
|
|
514
|
-
}
|
|
515
|
-
get(t, n) {
|
|
516
|
-
const r = this._map.get(t);
|
|
517
|
-
if (r)
|
|
518
|
-
return r.get(n);
|
|
519
|
-
}
|
|
520
|
-
getFallback(t, n, r) {
|
|
521
|
-
let s = this._map.get(t);
|
|
522
|
-
return s || (s = /* @__PURE__ */ new Map(), this._map.set(t, s)), s.has(n) || s.set(n, r), s.get(n);
|
|
523
|
-
}
|
|
524
|
-
set(t, n, r) {
|
|
525
|
-
let s = this._map.get(t);
|
|
526
|
-
return s || (s = /* @__PURE__ */ new Map(), this._map.set(t, s)), s.set(n, r), this;
|
|
527
|
-
}
|
|
528
|
-
has(t, n) {
|
|
529
|
-
var r;
|
|
530
|
-
return (r = this._map.get(t)) == null ? void 0 : r.has(n);
|
|
531
|
-
}
|
|
532
|
-
delete(t, n) {
|
|
533
|
-
var r;
|
|
534
|
-
return ((r = this._map.get(t)) == null ? void 0 : r.delete(n)) || !1;
|
|
535
|
-
}
|
|
536
|
-
deleteTop(t) {
|
|
537
|
-
return this._map.delete(t);
|
|
538
|
-
}
|
|
539
|
-
map(t) {
|
|
540
|
-
return Array.from(this._map.entries()).flatMap(([n, r]) => Array.from(r.entries()).map(([s, o]) => t(o, n, s)));
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
class Gt extends Map {
|
|
544
|
-
getFallback(t, n) {
|
|
545
|
-
const r = this.get(t);
|
|
546
|
-
return r === void 0 ? (this.set(t, n), n) : r;
|
|
547
|
-
}
|
|
548
|
-
map(t) {
|
|
549
|
-
const n = [];
|
|
550
|
-
return this.forEach((r, s) => {
|
|
551
|
-
n.push(t(r, s));
|
|
552
|
-
}), n;
|
|
553
|
-
}
|
|
554
|
-
flatMap(t) {
|
|
555
|
-
const n = [];
|
|
556
|
-
return this.forEach((r, s) => {
|
|
557
|
-
n.push(...t(r, s));
|
|
558
|
-
}), n;
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
var Jt = Object.defineProperty, Qt = (e, t, n) => t in e ? Jt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Kt = (e, t, n) => (Qt(e, t + "", n), n);
|
|
562
|
-
class Oe extends Set {
|
|
563
|
-
constructor(t) {
|
|
564
|
-
super(t), Kt(this, "_map"), this._map ?? (this._map = /* @__PURE__ */ new Map());
|
|
565
|
-
}
|
|
566
|
-
add(t) {
|
|
567
|
-
return this._map ?? (this._map = /* @__PURE__ */ new Map()), this._map.set(t, (this._map.get(t) ?? 0) + 1), super.add(t);
|
|
568
|
-
}
|
|
569
|
-
delete(t) {
|
|
570
|
-
return this._map.delete(t), super.delete(t);
|
|
571
|
-
}
|
|
572
|
-
clear() {
|
|
573
|
-
this._map.clear(), super.clear();
|
|
574
|
-
}
|
|
575
|
-
getCount(t) {
|
|
576
|
-
return this._map.get(t) ?? 0;
|
|
577
|
-
}
|
|
578
|
-
setCount(t, n) {
|
|
579
|
-
return this._map.set(t, n), super.add(t);
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
function X(e) {
|
|
583
|
-
return e instanceof Oe;
|
|
584
|
-
}
|
|
585
|
-
const B = {};
|
|
586
|
-
function Yt(e = ["-", ":"]) {
|
|
587
|
-
const t = e.join("|");
|
|
588
|
-
return B[t] || (B[t] = new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`, "gm")), B[t].lastIndex = 0, B[t];
|
|
589
|
-
}
|
|
590
|
-
function Xt(e, t = ["-", ":"], n = 5) {
|
|
591
|
-
const r = Yt(t);
|
|
592
|
-
let s, o = e.toString();
|
|
593
|
-
const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
|
|
594
|
-
do
|
|
595
|
-
s = !1, o = o.replace(
|
|
596
|
-
r,
|
|
597
|
-
(f, i, u, d, h) => {
|
|
598
|
-
var b;
|
|
599
|
-
if (!t.includes(u))
|
|
600
|
-
return f;
|
|
601
|
-
s = !0, a.add(i + u);
|
|
602
|
-
const m = h + i.length + u.length + 1, g = { length: f.length, items: [] };
|
|
603
|
-
l.set(h, g);
|
|
604
|
-
for (const $ of [...d.matchAll(/\S+/g)]) {
|
|
605
|
-
const k = m + $.index;
|
|
606
|
-
let _ = (b = l.get(k)) == null ? void 0 : b.items;
|
|
607
|
-
_ ? l.delete(k) : _ = [{
|
|
608
|
-
offset: k,
|
|
609
|
-
length: $[0].length,
|
|
610
|
-
className: $[0]
|
|
611
|
-
}];
|
|
612
|
-
for (const S of _)
|
|
613
|
-
S.className = S.className === "~" ? i : S.className.replace(/^(!?)(.*)/, `$1${i}${u}$2`), g.items.push(S);
|
|
614
|
-
}
|
|
615
|
-
return "$".repeat(f.length);
|
|
616
|
-
}
|
|
617
|
-
), n -= 1;
|
|
618
|
-
while (s && n);
|
|
619
|
-
let c;
|
|
620
|
-
if (typeof e == "string") {
|
|
621
|
-
c = "";
|
|
622
|
-
let f = 0;
|
|
623
|
-
for (const [i, u] of l)
|
|
624
|
-
c += e.slice(f, i), c += u.items.map((d) => d.className).join(" "), f = i + u.length;
|
|
625
|
-
c += e.slice(f);
|
|
626
|
-
} else {
|
|
627
|
-
c = e;
|
|
628
|
-
for (const [f, i] of l)
|
|
629
|
-
c.overwrite(
|
|
630
|
-
f,
|
|
631
|
-
f + i.length,
|
|
632
|
-
i.items.map((u) => u.className).join(" ")
|
|
633
|
-
);
|
|
634
|
-
}
|
|
635
|
-
return {
|
|
636
|
-
prefixes: Array.from(a),
|
|
637
|
-
hasChanged: s,
|
|
638
|
-
groupsByOffset: l,
|
|
639
|
-
// Computed lazily because MagicString's toString does a lot of work
|
|
640
|
-
get expanded() {
|
|
641
|
-
return c.toString();
|
|
642
|
-
}
|
|
643
|
-
};
|
|
644
|
-
}
|
|
645
|
-
function Zt(e, t = ["-", ":"], n = 5) {
|
|
646
|
-
const r = Xt(e, t, n);
|
|
647
|
-
return typeof e == "string" ? r.expanded : e;
|
|
648
|
-
}
|
|
649
|
-
const fe = /* @__PURE__ */ new Set();
|
|
650
|
-
function je(e) {
|
|
651
|
-
fe.has(e) || (console.warn("[unocss]", e), fe.add(e));
|
|
652
|
-
}
|
|
653
|
-
const en = /[\\:]?[\s'"`;{}]+/g;
|
|
654
|
-
function tn(e) {
|
|
655
|
-
return e.split(en);
|
|
656
|
-
}
|
|
657
|
-
const nn = {
|
|
658
|
-
name: "@unocss/core/extractor-split",
|
|
659
|
-
order: 0,
|
|
660
|
-
extract({ code: e }) {
|
|
661
|
-
return tn(e);
|
|
662
|
-
}
|
|
663
|
-
};
|
|
664
|
-
function rn() {
|
|
665
|
-
return {
|
|
666
|
-
events: {},
|
|
667
|
-
emit(e, ...t) {
|
|
668
|
-
(this.events[e] || []).forEach((n) => n(...t));
|
|
669
|
-
},
|
|
670
|
-
on(e, t) {
|
|
671
|
-
return (this.events[e] = this.events[e] || []).push(t), () => this.events[e] = (this.events[e] || []).filter((n) => n !== t);
|
|
672
|
-
}
|
|
673
|
-
};
|
|
674
|
-
}
|
|
675
|
-
const W = "default", ne = "preflights", sn = "shortcuts", on = "imports", an = {
|
|
676
|
-
[on]: -200,
|
|
677
|
-
[ne]: -100,
|
|
678
|
-
[sn]: -10,
|
|
679
|
-
[W]: 0
|
|
680
|
-
};
|
|
681
|
-
function Te(e) {
|
|
682
|
-
return U(e).flatMap((t) => Array.isArray(t) ? [t] : Object.entries(t));
|
|
683
|
-
}
|
|
684
|
-
const pe = "_uno_resolved";
|
|
685
|
-
function cn(e) {
|
|
686
|
-
var r;
|
|
687
|
-
let t = typeof e == "function" ? e() : e;
|
|
688
|
-
if (pe in t)
|
|
689
|
-
return t;
|
|
690
|
-
t = { ...t }, Object.defineProperty(t, pe, {
|
|
691
|
-
value: !0,
|
|
692
|
-
enumerable: !1
|
|
693
|
-
});
|
|
694
|
-
const n = t.shortcuts ? Te(t.shortcuts) : void 0;
|
|
695
|
-
if (t.shortcuts = n, t.prefix || t.layer) {
|
|
696
|
-
const s = (o) => {
|
|
697
|
-
o[2] || (o[2] = {});
|
|
698
|
-
const a = o[2];
|
|
699
|
-
a.prefix == null && t.prefix && (a.prefix = U(t.prefix)), a.layer == null && t.layer && (a.layer = t.layer);
|
|
700
|
-
};
|
|
701
|
-
n == null || n.forEach(s), (r = t.rules) == null || r.forEach(s);
|
|
702
|
-
}
|
|
703
|
-
return t;
|
|
704
|
-
}
|
|
705
|
-
function Re(e) {
|
|
706
|
-
const t = cn(e);
|
|
707
|
-
if (!t.presets)
|
|
708
|
-
return [t];
|
|
709
|
-
const n = (t.presets || []).flatMap(U).flatMap(Re);
|
|
710
|
-
return [t, ...n];
|
|
711
|
-
}
|
|
712
|
-
function de(e = {}, t = {}) {
|
|
713
|
-
var S, w;
|
|
714
|
-
const n = Object.assign({}, t, e), r = Ut((n.presets || []).flatMap(U).flatMap(Re), (p, v) => p.name === v.name), s = [
|
|
715
|
-
...r.filter((p) => p.enforce === "pre"),
|
|
716
|
-
...r.filter((p) => !p.enforce),
|
|
717
|
-
...r.filter((p) => p.enforce === "post")
|
|
718
|
-
], o = [
|
|
719
|
-
...s,
|
|
720
|
-
n
|
|
721
|
-
], a = [...o].reverse(), l = Object.assign({}, an, ...o.map((p) => p.layers));
|
|
722
|
-
function c(p) {
|
|
723
|
-
return G(o.flatMap((v) => U(v[p] || [])));
|
|
724
|
-
}
|
|
725
|
-
const f = c("extractors");
|
|
726
|
-
let i = (S = a.find((p) => p.extractorDefault !== void 0)) == null ? void 0 : S.extractorDefault;
|
|
727
|
-
i === void 0 && (i = nn), i && !f.includes(i) && f.unshift(i), f.sort((p, v) => (p.order || 0) - (v.order || 0));
|
|
728
|
-
const u = c("rules"), d = {}, h = u.length, m = u.map((p, v) => {
|
|
729
|
-
var C;
|
|
730
|
-
if (Dt(p)) {
|
|
731
|
-
U(((C = p[2]) == null ? void 0 : C.prefix) || "").forEach((j) => {
|
|
732
|
-
d[j + p[0]] = [v, p[1], p[2], p];
|
|
733
|
-
});
|
|
734
|
-
return;
|
|
735
|
-
}
|
|
736
|
-
return [v, ...p];
|
|
737
|
-
}).filter(Boolean).reverse();
|
|
738
|
-
let g = ln(o.map((p) => p.theme));
|
|
739
|
-
const b = c("extendTheme");
|
|
740
|
-
for (const p of b)
|
|
741
|
-
g = p(g) || g;
|
|
742
|
-
const $ = {
|
|
743
|
-
templates: G(o.flatMap((p) => {
|
|
744
|
-
var v;
|
|
745
|
-
return U((v = p.autocomplete) == null ? void 0 : v.templates);
|
|
746
|
-
})),
|
|
747
|
-
extractors: o.flatMap((p) => {
|
|
748
|
-
var v;
|
|
749
|
-
return U((v = p.autocomplete) == null ? void 0 : v.extractors);
|
|
750
|
-
}).sort((p, v) => (p.order || 0) - (v.order || 0)),
|
|
751
|
-
shorthands: un(o.map((p) => {
|
|
752
|
-
var v;
|
|
753
|
-
return ((v = p.autocomplete) == null ? void 0 : v.shorthands) || {};
|
|
754
|
-
}))
|
|
755
|
-
};
|
|
756
|
-
let k = c("separators");
|
|
757
|
-
k.length || (k = [":", "-"]);
|
|
758
|
-
const _ = {
|
|
759
|
-
mergeSelectors: !0,
|
|
760
|
-
warn: !0,
|
|
761
|
-
sortLayers: (p) => p,
|
|
762
|
-
...n,
|
|
763
|
-
blocklist: c("blocklist"),
|
|
764
|
-
presets: s,
|
|
765
|
-
envMode: n.envMode || "build",
|
|
766
|
-
shortcutsLayer: n.shortcutsLayer || "shortcuts",
|
|
767
|
-
layers: l,
|
|
768
|
-
theme: g,
|
|
769
|
-
rulesSize: h,
|
|
770
|
-
rulesDynamic: m,
|
|
771
|
-
rulesStaticMap: d,
|
|
772
|
-
preprocess: c("preprocess"),
|
|
773
|
-
postprocess: c("postprocess"),
|
|
774
|
-
preflights: c("preflights"),
|
|
775
|
-
autocomplete: $,
|
|
776
|
-
variants: c("variants").map(Ft).sort((p, v) => (p.order || 0) - (v.order || 0)),
|
|
777
|
-
shortcuts: Te(c("shortcuts")).reverse(),
|
|
778
|
-
extractors: f,
|
|
779
|
-
safelist: c("safelist"),
|
|
780
|
-
separators: k,
|
|
781
|
-
details: n.details ?? n.envMode === "dev"
|
|
782
|
-
};
|
|
783
|
-
for (const p of o)
|
|
784
|
-
(w = p == null ? void 0 : p.configResolved) == null || w.call(p, _);
|
|
785
|
-
return _;
|
|
786
|
-
}
|
|
787
|
-
function ln(e) {
|
|
788
|
-
return e.map((t) => t ? q(t) : {}).reduce((t, n) => Ce(t, n), {});
|
|
789
|
-
}
|
|
790
|
-
function un(e) {
|
|
791
|
-
return e.reduce((t, n) => {
|
|
792
|
-
const r = {};
|
|
793
|
-
for (const s in n) {
|
|
794
|
-
const o = n[s];
|
|
795
|
-
Array.isArray(o) ? r[s] = `(${o.join("|")})` : r[s] = o;
|
|
796
|
-
}
|
|
797
|
-
return {
|
|
798
|
-
...t,
|
|
799
|
-
...r
|
|
800
|
-
};
|
|
801
|
-
}, {});
|
|
802
|
-
}
|
|
803
|
-
const fn = "0.60.4";
|
|
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
|
-
class hn {
|
|
806
|
-
constructor(t = {}, n = {}) {
|
|
807
|
-
this.userConfig = t, this.defaults = n, D(this, "version", fn), D(this, "_cache", /* @__PURE__ */ new Map()), D(this, "config"), D(this, "blocked", /* @__PURE__ */ new Set()), D(this, "parentOrders", /* @__PURE__ */ new Map()), D(this, "events", rn()), this.config = de(t, n), this.events.emit("config", this.config);
|
|
808
|
-
}
|
|
809
|
-
setConfig(t, n) {
|
|
810
|
-
t && (n && (this.defaults = n), this.userConfig = t, this.blocked.clear(), this.parentOrders.clear(), this._cache.clear(), this.config = de(t, this.defaults), this.events.emit("config", this.config));
|
|
811
|
-
}
|
|
812
|
-
async applyExtractors(t, n, r = /* @__PURE__ */ new Set()) {
|
|
813
|
-
var o;
|
|
814
|
-
const s = {
|
|
815
|
-
original: t,
|
|
816
|
-
code: t,
|
|
817
|
-
id: n,
|
|
818
|
-
extracted: r,
|
|
819
|
-
envMode: this.config.envMode
|
|
820
|
-
};
|
|
821
|
-
for (const a of this.config.extractors) {
|
|
822
|
-
const l = await ((o = a.extract) == null ? void 0 : o.call(a, s));
|
|
823
|
-
if (l)
|
|
824
|
-
if (X(l) && X(r))
|
|
825
|
-
for (const c of l)
|
|
826
|
-
r.setCount(c, r.getCount(c) + l.getCount(c));
|
|
827
|
-
else
|
|
828
|
-
for (const c of l)
|
|
829
|
-
r.add(c);
|
|
830
|
-
}
|
|
831
|
-
return r;
|
|
832
|
-
}
|
|
833
|
-
makeContext(t, n) {
|
|
834
|
-
const r = {
|
|
835
|
-
rawSelector: t,
|
|
836
|
-
currentSelector: n[1],
|
|
837
|
-
theme: this.config.theme,
|
|
838
|
-
generator: this,
|
|
839
|
-
variantHandlers: n[2],
|
|
840
|
-
constructCSS: (...s) => this.constructCustomCSS(r, ...s),
|
|
841
|
-
variantMatch: n
|
|
842
|
-
};
|
|
843
|
-
return r;
|
|
844
|
-
}
|
|
845
|
-
async parseToken(t, n) {
|
|
846
|
-
var f;
|
|
847
|
-
if (this.blocked.has(t))
|
|
848
|
-
return;
|
|
849
|
-
const r = `${t}${n ? ` ${n}` : ""}`;
|
|
850
|
-
if (this._cache.has(r))
|
|
851
|
-
return this._cache.get(r);
|
|
852
|
-
let s = t;
|
|
853
|
-
for (const i of this.config.preprocess)
|
|
854
|
-
s = i(t);
|
|
855
|
-
if (this.isBlocked(s)) {
|
|
856
|
-
this.blocked.add(t), this._cache.set(r, null);
|
|
857
|
-
return;
|
|
858
|
-
}
|
|
859
|
-
const o = await this.matchVariants(t, s);
|
|
860
|
-
if (!o || this.isBlocked(o[1])) {
|
|
861
|
-
this.blocked.add(t), this._cache.set(r, null);
|
|
862
|
-
return;
|
|
863
|
-
}
|
|
864
|
-
const a = this.makeContext(t, [n || o[0], o[1], o[2], o[3]]);
|
|
865
|
-
this.config.details && (a.variants = [...o[3]]);
|
|
866
|
-
const l = await this.expandShortcut(a.currentSelector, a), c = l ? await this.stringifyShortcuts(a.variantMatch, a, l[0], l[1]) : (f = await this.parseUtil(a.variantMatch, a)) == null ? void 0 : f.map((i) => this.stringifyUtil(i, a)).filter(zt);
|
|
867
|
-
if (c != null && c.length)
|
|
868
|
-
return this._cache.set(r, c), c;
|
|
869
|
-
this._cache.set(r, null);
|
|
870
|
-
}
|
|
871
|
-
async generate(t, n = {}) {
|
|
872
|
-
const {
|
|
873
|
-
id: r,
|
|
874
|
-
scope: s,
|
|
875
|
-
preflights: o = !0,
|
|
876
|
-
safelist: a = !0,
|
|
877
|
-
minify: l = !1,
|
|
878
|
-
extendedInfo: c = !1
|
|
879
|
-
} = n, f = this.config.outputToCssLayers, i = M(t) ? await this.applyExtractors(
|
|
880
|
-
t,
|
|
881
|
-
r,
|
|
882
|
-
c ? new Oe() : /* @__PURE__ */ new Set()
|
|
883
|
-
) : Array.isArray(t) ? new Set(t) : t;
|
|
884
|
-
if (a) {
|
|
885
|
-
const w = {
|
|
886
|
-
generator: this,
|
|
887
|
-
theme: this.config.theme
|
|
888
|
-
};
|
|
889
|
-
this.config.safelist.flatMap((p) => typeof p == "function" ? p(w) : p).forEach((p) => {
|
|
890
|
-
i.has(p) || i.add(p);
|
|
891
|
-
});
|
|
892
|
-
}
|
|
893
|
-
const u = l ? "" : `
|
|
894
|
-
`, d = /* @__PURE__ */ new Set([W]), h = c ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Map();
|
|
895
|
-
let g = {};
|
|
896
|
-
const b = Array.from(i).map(async (w) => {
|
|
897
|
-
var v;
|
|
898
|
-
if (h.has(w))
|
|
899
|
-
return;
|
|
900
|
-
const p = await this.parseToken(w);
|
|
901
|
-
if (p != null) {
|
|
902
|
-
h instanceof Map ? h.set(w, {
|
|
903
|
-
data: p,
|
|
904
|
-
count: X(i) ? i.getCount(w) : -1
|
|
905
|
-
}) : h.add(w);
|
|
906
|
-
for (const C of p) {
|
|
907
|
-
const A = C[3] || "", j = (v = C[4]) == null ? void 0 : v.layer;
|
|
908
|
-
m.has(A) || m.set(A, []), m.get(A).push(C), j && d.add(j);
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
});
|
|
912
|
-
await Promise.all(b), await (async () => {
|
|
913
|
-
if (!o)
|
|
914
|
-
return;
|
|
915
|
-
const w = {
|
|
916
|
-
generator: this,
|
|
917
|
-
theme: this.config.theme
|
|
918
|
-
}, p = /* @__PURE__ */ new Set([]);
|
|
919
|
-
this.config.preflights.forEach(({ layer: v = ne }) => {
|
|
920
|
-
d.add(v), p.add(v);
|
|
921
|
-
}), g = Object.fromEntries(
|
|
922
|
-
await Promise.all(Array.from(p).map(
|
|
923
|
-
async (v) => {
|
|
924
|
-
const A = (await Promise.all(
|
|
925
|
-
this.config.preflights.filter((j) => (j.layer || ne) === v).map(async (j) => await j.getCSS(w))
|
|
926
|
-
)).filter(Boolean).join(u);
|
|
927
|
-
return [v, A];
|
|
928
|
-
}
|
|
929
|
-
))
|
|
930
|
-
);
|
|
931
|
-
})();
|
|
932
|
-
const $ = this.config.sortLayers(Array.from(d).sort((w, p) => (this.config.layers[w] ?? 0) - (this.config.layers[p] ?? 0) || w.localeCompare(p))), k = {}, _ = (w = W) => {
|
|
933
|
-
var C;
|
|
934
|
-
if (k[w])
|
|
935
|
-
return k[w];
|
|
936
|
-
let p = Array.from(m).sort((A, j) => {
|
|
937
|
-
var P;
|
|
938
|
-
return (this.parentOrders.get(A[0]) ?? 0) - (this.parentOrders.get(j[0]) ?? 0) || ((P = A[0]) == null ? void 0 : P.localeCompare(j[0] || "")) || 0;
|
|
939
|
-
}).map(([A, j]) => {
|
|
940
|
-
const P = j.length, N = j.filter((O) => {
|
|
941
|
-
var y;
|
|
942
|
-
return (((y = O[4]) == null ? void 0 : y.layer) || W) === w;
|
|
943
|
-
}).sort((O, y) => {
|
|
944
|
-
var x, E, L, T, R, z, ie;
|
|
945
|
-
return O[0] - y[0] || (((x = O[4]) == null ? void 0 : x.sort) || 0) - (((E = y[4]) == null ? void 0 : E.sort) || 0) || ((R = (L = O[5]) == null ? void 0 : L.currentSelector) == null ? void 0 : R.localeCompare(((T = y[5]) == null ? void 0 : T.currentSelector) ?? "")) || ((z = O[1]) == null ? void 0 : z.localeCompare(y[1] || "")) || ((ie = O[2]) == null ? void 0 : ie.localeCompare(y[2] || "")) || 0;
|
|
946
|
-
}).map(([, O, y, , x, , E]) => [
|
|
947
|
-
[[(O && _n(O, s)) ?? "", (x == null ? void 0 : x.sort) ?? 0]],
|
|
948
|
-
y,
|
|
949
|
-
!!(E ?? (x == null ? void 0 : x.noMerge))
|
|
950
|
-
]);
|
|
951
|
-
if (!N.length)
|
|
952
|
-
return;
|
|
953
|
-
const I = N.reverse().map(([O, y, x], E) => {
|
|
954
|
-
if (!x && this.config.mergeSelectors)
|
|
955
|
-
for (let T = E + 1; T < P; T++) {
|
|
956
|
-
const R = N[T];
|
|
957
|
-
if (R && !R[2] && (O && R[0] || O == null && R[0] == null) && R[1] === y)
|
|
958
|
-
return O && R[0] && R[0].push(...O), null;
|
|
959
|
-
}
|
|
960
|
-
const L = O ? G(O.sort((T, R) => {
|
|
961
|
-
var z;
|
|
962
|
-
return T[1] - R[1] || ((z = T[0]) == null ? void 0 : z.localeCompare(R[0] || "")) || 0;
|
|
963
|
-
}).map((T) => T[0]).filter(Boolean)) : [];
|
|
964
|
-
return L.length ? `${L.join(`,${u}`)}{${y}}` : y;
|
|
965
|
-
}).filter(Boolean).reverse().join(u);
|
|
966
|
-
if (!A)
|
|
967
|
-
return I;
|
|
968
|
-
const F = A.split(" $$ ");
|
|
969
|
-
return `${F.join("{")}{${u}${I}${u}${"}".repeat(F.length)}`;
|
|
970
|
-
}).filter(Boolean).join(u);
|
|
971
|
-
if (o && (p = [g[w], p].filter(Boolean).join(u)), f && p) {
|
|
972
|
-
let A = typeof f == "object" ? (C = f.cssLayerName) == null ? void 0 : C.call(f, w) : void 0;
|
|
973
|
-
A !== null && (A || (A = w), p = `@layer ${A}{${u}${p}${u}}`);
|
|
974
|
-
}
|
|
975
|
-
const v = l ? "" : `/* layer: ${w} */${u}`;
|
|
976
|
-
return k[w] = p ? v + p : "";
|
|
977
|
-
}, S = (w = $, p) => w.filter((v) => !(p != null && p.includes(v))).map((v) => _(v) || "").filter(Boolean).join(u);
|
|
978
|
-
return {
|
|
979
|
-
get css() {
|
|
980
|
-
return S();
|
|
981
|
-
},
|
|
982
|
-
layers: $,
|
|
983
|
-
matched: h,
|
|
984
|
-
getLayers: S,
|
|
985
|
-
getLayer: _
|
|
986
|
-
};
|
|
987
|
-
}
|
|
988
|
-
async matchVariants(t, n) {
|
|
989
|
-
const r = /* @__PURE__ */ new Set(), s = [];
|
|
990
|
-
let o = n || t, a = !0;
|
|
991
|
-
const l = {
|
|
992
|
-
rawSelector: t,
|
|
993
|
-
theme: this.config.theme,
|
|
994
|
-
generator: this
|
|
995
|
-
};
|
|
996
|
-
for (; a; ) {
|
|
997
|
-
a = !1;
|
|
998
|
-
for (const c of this.config.variants) {
|
|
999
|
-
if (!c.multiPass && r.has(c))
|
|
1000
|
-
continue;
|
|
1001
|
-
let f = await c.match(o, l);
|
|
1002
|
-
if (f) {
|
|
1003
|
-
if (M(f)) {
|
|
1004
|
-
if (f === o)
|
|
1005
|
-
continue;
|
|
1006
|
-
f = { matcher: f };
|
|
1007
|
-
}
|
|
1008
|
-
o = f.matcher, s.unshift(f), r.add(c), a = !0;
|
|
1009
|
-
break;
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
if (!a)
|
|
1013
|
-
break;
|
|
1014
|
-
if (s.length > 500)
|
|
1015
|
-
throw new Error(`Too many variants applied to "${t}"`);
|
|
1016
|
-
}
|
|
1017
|
-
return [t, o, s, r];
|
|
1018
|
-
}
|
|
1019
|
-
applyVariants(t, n = t[4], r = t[1]) {
|
|
1020
|
-
const o = n.slice().sort((f, i) => (f.order || 0) - (i.order || 0)).reduceRight(
|
|
1021
|
-
(f, i) => (u) => {
|
|
1022
|
-
var m, g;
|
|
1023
|
-
const d = ((m = i.body) == null ? void 0 : m.call(i, u.entries)) || u.entries, h = Array.isArray(i.parent) ? i.parent : [i.parent, void 0];
|
|
1024
|
-
return (i.handle ?? bn)({
|
|
1025
|
-
...u,
|
|
1026
|
-
entries: d,
|
|
1027
|
-
selector: ((g = i.selector) == null ? void 0 : g.call(i, u.selector, d)) || u.selector,
|
|
1028
|
-
parent: h[0] || u.parent,
|
|
1029
|
-
parentOrder: h[1] || u.parentOrder,
|
|
1030
|
-
layer: i.layer || u.layer,
|
|
1031
|
-
sort: i.sort || u.sort
|
|
1032
|
-
}, f);
|
|
1033
|
-
},
|
|
1034
|
-
(f) => f
|
|
1035
|
-
)({
|
|
1036
|
-
prefix: "",
|
|
1037
|
-
selector: yn(r),
|
|
1038
|
-
pseudo: "",
|
|
1039
|
-
entries: t[2]
|
|
1040
|
-
}), { parent: a, parentOrder: l } = o;
|
|
1041
|
-
a != null && l != null && this.parentOrders.set(a, l);
|
|
1042
|
-
const c = {
|
|
1043
|
-
selector: [
|
|
1044
|
-
o.prefix,
|
|
1045
|
-
o.selector,
|
|
1046
|
-
o.pseudo
|
|
1047
|
-
].join(""),
|
|
1048
|
-
entries: o.entries,
|
|
1049
|
-
parent: a,
|
|
1050
|
-
layer: o.layer,
|
|
1051
|
-
sort: o.sort,
|
|
1052
|
-
noMerge: o.noMerge
|
|
1053
|
-
};
|
|
1054
|
-
for (const f of this.config.postprocess)
|
|
1055
|
-
f(c);
|
|
1056
|
-
return c;
|
|
1057
|
-
}
|
|
1058
|
-
constructCustomCSS(t, n, r) {
|
|
1059
|
-
const s = V(n);
|
|
1060
|
-
if (M(s))
|
|
1061
|
-
return s;
|
|
1062
|
-
const { selector: o, entries: a, parent: l } = this.applyVariants([0, r || t.rawSelector, s, void 0, t.variantHandlers]), c = `${o}{${Y(a)}}`;
|
|
1063
|
-
return l ? `${l}{${c}}` : c;
|
|
1064
|
-
}
|
|
1065
|
-
async parseUtil(t, n, r = !1, s) {
|
|
1066
|
-
var i;
|
|
1067
|
-
const [o, a, l] = M(t) ? await this.matchVariants(t) : t;
|
|
1068
|
-
this.config.details && (n.rules = n.rules ?? []);
|
|
1069
|
-
const c = this.config.rulesStaticMap[a];
|
|
1070
|
-
if (c && c[1] && (r || !((i = c[2]) != null && i.internal))) {
|
|
1071
|
-
this.config.details && n.rules.push(c[3]);
|
|
1072
|
-
const u = c[0], d = V(c[1]), h = c[2];
|
|
1073
|
-
return M(d) ? [[u, d, h]] : [[u, o, d, h, l]];
|
|
1074
|
-
}
|
|
1075
|
-
n.variantHandlers = l;
|
|
1076
|
-
const { rulesDynamic: f } = this.config;
|
|
1077
|
-
for (const [u, d, h, m] of f) {
|
|
1078
|
-
if (m != null && m.internal && !r)
|
|
1079
|
-
continue;
|
|
1080
|
-
let g = a;
|
|
1081
|
-
if (m != null && m.prefix) {
|
|
1082
|
-
const _ = U(m.prefix);
|
|
1083
|
-
if (s) {
|
|
1084
|
-
const S = U(s);
|
|
1085
|
-
if (!_.some((w) => S.includes(w)))
|
|
1086
|
-
continue;
|
|
1087
|
-
} else {
|
|
1088
|
-
const S = _.find((w) => a.startsWith(w));
|
|
1089
|
-
if (S == null)
|
|
1090
|
-
continue;
|
|
1091
|
-
g = a.slice(S.length);
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
const b = g.match(d);
|
|
1095
|
-
if (!b)
|
|
1096
|
-
continue;
|
|
1097
|
-
const $ = await h(b, n);
|
|
1098
|
-
if (!$)
|
|
1099
|
-
continue;
|
|
1100
|
-
this.config.details && n.rules.push([d, h, m]);
|
|
1101
|
-
const k = Pt($).filter((_) => _.length);
|
|
1102
|
-
if (k.length)
|
|
1103
|
-
return k.map((_) => M(_) ? [u, _, m] : [u, o, _, m, l]);
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
stringifyUtil(t, n) {
|
|
1107
|
-
if (!t)
|
|
1108
|
-
return;
|
|
1109
|
-
if (ue(t))
|
|
1110
|
-
return [t[0], void 0, t[1], void 0, t[2], this.config.details ? n : void 0, void 0];
|
|
1111
|
-
const { selector: r, entries: s, parent: o, layer: a, sort: l, noMerge: c } = this.applyVariants(t), f = Y(s);
|
|
1112
|
-
if (!f)
|
|
1113
|
-
return;
|
|
1114
|
-
const { layer: i, sort: u, ...d } = t[3] ?? {}, h = {
|
|
1115
|
-
...d,
|
|
1116
|
-
layer: a ?? i,
|
|
1117
|
-
sort: l ?? u
|
|
1118
|
-
};
|
|
1119
|
-
return [t[0], r, f, o, h, this.config.details ? n : void 0, c];
|
|
1120
|
-
}
|
|
1121
|
-
async expandShortcut(t, n, r = 5) {
|
|
1122
|
-
var l;
|
|
1123
|
-
if (r === 0)
|
|
1124
|
-
return;
|
|
1125
|
-
const s = this.config.details ? (c) => {
|
|
1126
|
-
n.shortcuts = n.shortcuts ?? [], n.shortcuts.push(c);
|
|
1127
|
-
} : Vt;
|
|
1128
|
-
let o, a;
|
|
1129
|
-
for (const c of this.config.shortcuts) {
|
|
1130
|
-
let f = t;
|
|
1131
|
-
if ((l = c[2]) != null && l.prefix) {
|
|
1132
|
-
const u = U(c[2].prefix).find((d) => t.startsWith(d));
|
|
1133
|
-
if (u == null)
|
|
1134
|
-
continue;
|
|
1135
|
-
f = t.slice(u.length);
|
|
1136
|
-
}
|
|
1137
|
-
if (It(c)) {
|
|
1138
|
-
if (c[0] === f) {
|
|
1139
|
-
o = o || c[2], a = c[1], s(c);
|
|
1140
|
-
break;
|
|
1141
|
-
}
|
|
1142
|
-
} else {
|
|
1143
|
-
const i = f.match(c[0]);
|
|
1144
|
-
if (i && (a = c[1](i, n)), a) {
|
|
1145
|
-
o = o || c[2], s(c);
|
|
1146
|
-
break;
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
}
|
|
1150
|
-
if (M(a) && (a = Zt(a.trim()).split(/\s+/g)), !a) {
|
|
1151
|
-
const [c, f] = M(t) ? await this.matchVariants(t) : t;
|
|
1152
|
-
if (c !== f) {
|
|
1153
|
-
const i = await this.expandShortcut(f, n, r - 1);
|
|
1154
|
-
i && (a = i[0].map((u) => M(u) ? c.replace(f, u) : u));
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
if (a)
|
|
1158
|
-
return [
|
|
1159
|
-
(await Promise.all(a.map(async (c) => {
|
|
1160
|
-
var f;
|
|
1161
|
-
return (M(c) ? (f = await this.expandShortcut(c, n, r - 1)) == null ? void 0 : f[0] : void 0) || [c];
|
|
1162
|
-
}))).flat(1).filter(Boolean),
|
|
1163
|
-
o
|
|
1164
|
-
];
|
|
1165
|
-
}
|
|
1166
|
-
async stringifyShortcuts(t, n, r, s = { layer: this.config.shortcutsLayer }) {
|
|
1167
|
-
var i;
|
|
1168
|
-
const o = new Gt(), a = (await Promise.all(G(r).map(async (u) => {
|
|
1169
|
-
const d = M(u) ? await this.parseUtil(u, n, !0, s.prefix) : [[Number.POSITIVE_INFINITY, "{inline}", V(u), void 0, []]];
|
|
1170
|
-
return !d && this.config.warn && je(`unmatched utility "${u}" in shortcut "${t[1]}"`), d || [];
|
|
1171
|
-
}))).flat(1).filter(Boolean).sort((u, d) => u[0] - d[0]), [l, , c] = t, f = [];
|
|
1172
|
-
for (const u of a) {
|
|
1173
|
-
if (ue(u)) {
|
|
1174
|
-
f.push([u[0], void 0, u[1], void 0, u[2], n, void 0]);
|
|
1175
|
-
continue;
|
|
1176
|
-
}
|
|
1177
|
-
const { selector: d, entries: h, parent: m, sort: g, noMerge: b, layer: $ } = this.applyVariants(u, [...u[4], ...c], l);
|
|
1178
|
-
o.getFallback($ ?? s.layer, new Wt()).getFallback(d, m, [[], u[0]])[0].push([h, !!(b ?? ((i = u[3]) == null ? void 0 : i.noMerge)), g ?? 0]);
|
|
1179
|
-
}
|
|
1180
|
-
return f.concat(o.flatMap(
|
|
1181
|
-
(u, d) => u.map(([h, m], g, b) => {
|
|
1182
|
-
const $ = (_, S, w) => {
|
|
1183
|
-
const p = Math.max(...w.map((C) => C[1])), v = w.map((C) => C[0]);
|
|
1184
|
-
return (_ ? [v.flat(1)] : v).map((C) => {
|
|
1185
|
-
const A = Y(C);
|
|
1186
|
-
if (A)
|
|
1187
|
-
return [m, g, A, b, { ...s, noMerge: S, sort: p, layer: d }, n, void 0];
|
|
1188
|
-
});
|
|
1189
|
-
};
|
|
1190
|
-
return [
|
|
1191
|
-
[h.filter(([, _]) => _).map(([_, , S]) => [_, S]), !0],
|
|
1192
|
-
[h.filter(([, _]) => !_).map(([_, , S]) => [_, S]), !1]
|
|
1193
|
-
].map(([_, S]) => [
|
|
1194
|
-
...$(!1, S, _.filter(([w]) => w.some((p) => p[0] === le))),
|
|
1195
|
-
...$(!0, S, _.filter(([w]) => w.every((p) => p[0] !== le)))
|
|
1196
|
-
]);
|
|
1197
|
-
}).flat(2).filter(Boolean)
|
|
1198
|
-
));
|
|
1199
|
-
}
|
|
1200
|
-
isBlocked(t) {
|
|
1201
|
-
return !t || this.config.blocklist.map((n) => Array.isArray(n) ? n[0] : n).some((n) => typeof n == "function" ? n(t) : M(n) ? n === t : n.test(t));
|
|
1202
|
-
}
|
|
1203
|
-
getBlocked(t) {
|
|
1204
|
-
const n = this.config.blocklist.find((r) => {
|
|
1205
|
-
const s = Array.isArray(r) ? r[0] : r;
|
|
1206
|
-
return typeof s == "function" ? s(t) : M(s) ? s === t : s.test(t);
|
|
1207
|
-
});
|
|
1208
|
-
return n ? Array.isArray(n) ? n : [n, void 0] : void 0;
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
function mn(e, t) {
|
|
1212
|
-
return new hn(e, t);
|
|
1213
|
-
}
|
|
1214
|
-
const Me = /\s\$\$\s+/g;
|
|
1215
|
-
function gn(e) {
|
|
1216
|
-
return Me.test(e);
|
|
1217
|
-
}
|
|
1218
|
-
function _n(e, t) {
|
|
1219
|
-
return gn(e) ? e.replace(Me, t ? ` ${t} ` : " ") : t ? `${t} ${e}` : e;
|
|
1220
|
-
}
|
|
1221
|
-
const he = /^\[(.+?)(~?=)"(.*)"\]$/;
|
|
1222
|
-
function yn(e) {
|
|
1223
|
-
return he.test(e) ? e.replace(he, (t, n, r, s) => `[${K(n)}${r}"${K(s)}"]`) : `.${K(e)}`;
|
|
1224
|
-
}
|
|
1225
|
-
function bn(e, t) {
|
|
1226
|
-
return t(e);
|
|
1227
|
-
}
|
|
1228
|
-
var me = { npm_package_dependencies__vueuse_core: "^10.10.0", npm_package_devDependencies__types_splitpanes: "^2.2.6", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/installation/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", npm_package_devDependencies_vite: "^5.2.12", SHELL: "/bin/zsh", 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:^", npm_package_dependencies__unocss_runtime: "^0.60.4", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", npm_package_devDependencies_unplugin_vue_components: "^0.27.0", npm_config_registry: "https://registry.npmjs.org/", npm_package_private: "true", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_license: "MIT", PNPM_SCRIPT_SRC_DIR: "/Users/arlo/g/devtools-next/packages/client", npm_config_strict_peer_dependencies: "", npm_package_devDependencies_dayjs: "^1.11.11", __CF_USER_TEXT_ENCODING: "0x1F5:0x19:0x34", npm_execpath: "/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.1.4/node_modules/pnpm/bin/pnpm.cjs", npm_package_devDependencies_unplugin_auto_import: "^0.17.6", npm_package_scripts_build_lib: "vite build --config vite.lib.config.ts", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_virtual_scroller: "2.0.0-beta.8", npm_package_dependencies_fuse_js: "^7.0.0", PATH: "/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.1.4/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.1.4/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.1.4/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.1.4/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/Library/Caches/fnm_multishells/41360_1717688824483/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/1163_1717464513951/bin:/opt/homebrew/bin:/Applications/WebStorm.app/Contents/MacOS:/Applications/WebStorm.app/Contents/MacOS", npm_package_dependencies__vue_devtools_ui: "workspace:*", npm_package_scripts_stub_lib: "vite build --config vite.lib.config.ts --watch", npm_package_dependencies_splitpanes: "^3.1.5", npm_package_author: "webfansplz", 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.27", npm_package_name: "@vue/devtools-client", npm_package_devDependencies_simple_git_hooks: "^2.11.1", npm_package_devDependencies_sass: "^1.77.4", npm_package_devDependencies__unocss_reset: "^0.60.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.12_@types+node@20.14.2_sass@1.77.4_terser@5.26.0/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.12_@types+node@20.14.2_sass@1.77.4_terser@5.26.0/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.12_@types+node@20.14.2_sass@1.77.4_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.1.4/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.1.4/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.1.4/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.1.4/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.1.4/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.1.4/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules", npm_package_devDependencies_pinia: "^2.1.7", TURBO_HASH: "dc74324ddd45c21c", npm_package_devDependencies__unocss_core: "^0.60.4", npm_package_engines_node: ">=v14.21.3", npm_config_node_gyp: "/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.1.4/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.216", npm_package_dependencies_minimatch: "^9.0.4", npm_package_version: "7.3.0-beta.3", npm_package_dependencies__vue_devtools_applet: "workspace:^", npm_package_devDependencies_unocss: "^0.60.4", npm_package_dependencies__vue_devtools_core: "workspace:^", npm_package_type: "module", HOME: "/Users/arlo", SHLVL: "0", npm_package_dependencies_vite_hot_client: "^0.2.3", npm_package_dependencies_vis_network: "^9.1.9", npm_package_peerDependencies_vite: "^3.1.0 || ^4.0.0-0 || ^5.0.0-0", npm_lifecycle_script: "vite build --config vite.lib.config.ts", npm_package_dependencies__vue_devtools_kit: "workspace:^", npm_package_dependencies__vueuse_integrations: "^10.10.0", npm_config_user_agent: "pnpm/9.1.4 npm/? node/v20.12.2 darwin arm64", npm_package_devDependencies__types_node: "^20.14.2", npm_package_scripts_stub: "nr stub:lib & vite build --watch", 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.6.2", npm_package_dependencies__unocss_preset_icons: "^0.60.4", npm_node_execpath: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/installation/bin/node", npm_config_shell_emulator: "true", NODE_ENV: "production" };
|
|
1229
|
-
const vn = Object.freeze(
|
|
1230
|
-
{
|
|
1231
|
-
left: 0,
|
|
1232
|
-
top: 0,
|
|
1233
|
-
width: 16,
|
|
1234
|
-
height: 16
|
|
1235
|
-
}
|
|
1236
|
-
), J = Object.freeze({
|
|
1237
|
-
rotate: 0,
|
|
1238
|
-
vFlip: !1,
|
|
1239
|
-
hFlip: !1
|
|
1240
|
-
}), Le = Object.freeze({
|
|
1241
|
-
...vn,
|
|
1242
|
-
...J
|
|
1243
|
-
}), wn = Object.freeze({
|
|
1244
|
-
...Le,
|
|
1245
|
-
body: "",
|
|
1246
|
-
hidden: !1
|
|
1247
|
-
}), Sn = Object.freeze({
|
|
1248
|
-
width: null,
|
|
1249
|
-
height: null
|
|
1250
|
-
}), Ue = Object.freeze({
|
|
1251
|
-
// Dimensions
|
|
1252
|
-
...Sn,
|
|
1253
|
-
// Transformations
|
|
1254
|
-
...J
|
|
1255
|
-
});
|
|
1256
|
-
function xn(e, t) {
|
|
1257
|
-
const n = {};
|
|
1258
|
-
!e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
|
|
1259
|
-
const r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
1260
|
-
return r && (n.rotate = r), n;
|
|
1261
|
-
}
|
|
1262
|
-
function ge(e, t) {
|
|
1263
|
-
const n = xn(e, t);
|
|
1264
|
-
for (const r in wn)
|
|
1265
|
-
r in J ? r in e && !(r in n) && (n[r] = J[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
|
|
1266
|
-
return n;
|
|
1267
|
-
}
|
|
1268
|
-
function En(e, t) {
|
|
1269
|
-
const n = e.icons, r = e.aliases || /* @__PURE__ */ Object.create(null), s = /* @__PURE__ */ Object.create(null);
|
|
1270
|
-
function o(a) {
|
|
1271
|
-
if (n[a])
|
|
1272
|
-
return s[a] = [];
|
|
1273
|
-
if (!(a in s)) {
|
|
1274
|
-
s[a] = null;
|
|
1275
|
-
const l = r[a] && r[a].parent, c = l && o(l);
|
|
1276
|
-
c && (s[a] = [l].concat(c));
|
|
1277
|
-
}
|
|
1278
|
-
return s[a];
|
|
1279
|
-
}
|
|
1280
|
-
return (t || Object.keys(n).concat(Object.keys(r))).forEach(o), s;
|
|
1281
|
-
}
|
|
1282
|
-
function _e(e, t, n) {
|
|
1283
|
-
const r = e.icons, s = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
1284
|
-
let o = {};
|
|
1285
|
-
function a(l) {
|
|
1286
|
-
o = ge(
|
|
1287
|
-
r[l] || s[l],
|
|
1288
|
-
o
|
|
1289
|
-
);
|
|
1290
|
-
}
|
|
1291
|
-
return a(t), n.forEach(a), ge(e, o);
|
|
1292
|
-
}
|
|
1293
|
-
function kn(e, t) {
|
|
1294
|
-
if (e.icons[t])
|
|
1295
|
-
return _e(e, t, []);
|
|
1296
|
-
const n = En(e, [t])[t];
|
|
1297
|
-
return n ? _e(e, t, n) : null;
|
|
1298
|
-
}
|
|
1299
|
-
const $n = /(-?[0-9.]*[0-9]+[0-9.]*)/g, An = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
1300
|
-
function ye(e, t, n) {
|
|
1301
|
-
if (t === 1)
|
|
1302
|
-
return e;
|
|
1303
|
-
if (n = n || 100, typeof e == "number")
|
|
1304
|
-
return Math.ceil(e * t * n) / n;
|
|
1305
|
-
if (typeof e != "string")
|
|
1306
|
-
return e;
|
|
1307
|
-
const r = e.split($n);
|
|
1308
|
-
if (r === null || !r.length)
|
|
1309
|
-
return e;
|
|
1310
|
-
const s = [];
|
|
1311
|
-
let o = r.shift(), a = An.test(o);
|
|
1312
|
-
for (; ; ) {
|
|
1313
|
-
if (a) {
|
|
1314
|
-
const l = parseFloat(o);
|
|
1315
|
-
isNaN(l) ? s.push(o) : s.push(Math.ceil(l * t * n) / n);
|
|
1316
|
-
} else
|
|
1317
|
-
s.push(o);
|
|
1318
|
-
if (o = r.shift(), o === void 0)
|
|
1319
|
-
return s.join("");
|
|
1320
|
-
a = !a;
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
function Cn(e, t = "defs") {
|
|
1324
|
-
let n = "";
|
|
1325
|
-
const r = e.indexOf("<" + t);
|
|
1326
|
-
for (; r >= 0; ) {
|
|
1327
|
-
const s = e.indexOf(">", r), o = e.indexOf("</" + t);
|
|
1328
|
-
if (s === -1 || o === -1)
|
|
1329
|
-
break;
|
|
1330
|
-
const a = e.indexOf(">", o);
|
|
1331
|
-
if (a === -1)
|
|
1332
|
-
break;
|
|
1333
|
-
n += e.slice(s + 1, o).trim(), e = e.slice(0, r).trim() + e.slice(a + 1);
|
|
1334
|
-
}
|
|
1335
|
-
return {
|
|
1336
|
-
defs: n,
|
|
1337
|
-
content: e
|
|
1338
|
-
};
|
|
1339
|
-
}
|
|
1340
|
-
function On(e, t) {
|
|
1341
|
-
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
1342
|
-
}
|
|
1343
|
-
function jn(e, t, n) {
|
|
1344
|
-
const r = Cn(e);
|
|
1345
|
-
return On(r.defs, t + r.content + n);
|
|
1346
|
-
}
|
|
1347
|
-
const oe = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
1348
|
-
function Tn(e, t) {
|
|
1349
|
-
const n = {
|
|
1350
|
-
...Le,
|
|
1351
|
-
...e
|
|
1352
|
-
}, r = {
|
|
1353
|
-
...Ue,
|
|
1354
|
-
...t
|
|
1355
|
-
}, s = {
|
|
1356
|
-
left: n.left,
|
|
1357
|
-
top: n.top,
|
|
1358
|
-
width: n.width,
|
|
1359
|
-
height: n.height
|
|
1360
|
-
};
|
|
1361
|
-
let o = n.body;
|
|
1362
|
-
[n, r].forEach((g) => {
|
|
1363
|
-
const b = [], $ = g.hFlip, k = g.vFlip;
|
|
1364
|
-
let _ = g.rotate;
|
|
1365
|
-
$ ? k ? _ += 2 : (b.push(
|
|
1366
|
-
"translate(" + (s.width + s.left).toString() + " " + (0 - s.top).toString() + ")"
|
|
1367
|
-
), b.push("scale(-1 1)"), s.top = s.left = 0) : k && (b.push(
|
|
1368
|
-
"translate(" + (0 - s.left).toString() + " " + (s.height + s.top).toString() + ")"
|
|
1369
|
-
), b.push("scale(1 -1)"), s.top = s.left = 0);
|
|
1370
|
-
let S;
|
|
1371
|
-
switch (_ < 0 && (_ -= Math.floor(_ / 4) * 4), _ = _ % 4, _) {
|
|
1372
|
-
case 1:
|
|
1373
|
-
S = s.height / 2 + s.top, b.unshift(
|
|
1374
|
-
"rotate(90 " + S.toString() + " " + S.toString() + ")"
|
|
1375
|
-
);
|
|
1376
|
-
break;
|
|
1377
|
-
case 2:
|
|
1378
|
-
b.unshift(
|
|
1379
|
-
"rotate(180 " + (s.width / 2 + s.left).toString() + " " + (s.height / 2 + s.top).toString() + ")"
|
|
1380
|
-
);
|
|
1381
|
-
break;
|
|
1382
|
-
case 3:
|
|
1383
|
-
S = s.width / 2 + s.left, b.unshift(
|
|
1384
|
-
"rotate(-90 " + S.toString() + " " + S.toString() + ")"
|
|
1385
|
-
);
|
|
1386
|
-
break;
|
|
1387
|
-
}
|
|
1388
|
-
_ % 2 === 1 && (s.left !== s.top && (S = s.left, s.left = s.top, s.top = S), s.width !== s.height && (S = s.width, s.width = s.height, s.height = S)), b.length && (o = jn(
|
|
1389
|
-
o,
|
|
1390
|
-
'<g transform="' + b.join(" ") + '">',
|
|
1391
|
-
"</g>"
|
|
1392
|
-
));
|
|
1393
|
-
});
|
|
1394
|
-
const a = r.width, l = r.height, c = s.width, f = s.height;
|
|
1395
|
-
let i, u;
|
|
1396
|
-
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);
|
|
1397
|
-
const d = {}, h = (g, b) => {
|
|
1398
|
-
oe(b) || (d[g] = b.toString());
|
|
1399
|
-
};
|
|
1400
|
-
h("width", i), h("height", u);
|
|
1401
|
-
const m = [s.left, s.top, c, f];
|
|
1402
|
-
return d.viewBox = m.join(" "), {
|
|
1403
|
-
attributes: d,
|
|
1404
|
-
viewBox: m,
|
|
1405
|
-
body: o
|
|
1406
|
-
};
|
|
1407
|
-
}
|
|
1408
|
-
function Rn(e) {
|
|
1409
|
-
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
1410
|
-
}
|
|
1411
|
-
function Mn(e) {
|
|
1412
|
-
let t = e.startsWith("<svg>") ? e.replace("<svg>", "<svg >") : e;
|
|
1413
|
-
return !t.includes(" xmlns:xlink=") && t.includes(" xlink:") && (t = t.replace(
|
|
1414
|
-
"<svg ",
|
|
1415
|
-
'<svg xmlns:xlink="http://www.w3.org/1999/xlink" '
|
|
1416
|
-
)), t.includes(" xmlns=") || (t = t.replace(
|
|
1417
|
-
"<svg ",
|
|
1418
|
-
'<svg xmlns="http://www.w3.org/2000/svg" '
|
|
1419
|
-
)), Rn(t);
|
|
1420
|
-
}
|
|
1421
|
-
function Ln(e) {
|
|
1422
|
-
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();
|
|
1423
|
-
}
|
|
1424
|
-
const Un = /\swidth\s*=\s*["']([\w.]+)["']/, Pn = /\sheight\s*=\s*["']([\w.]+)["']/, Z = /<svg\s+/;
|
|
1425
|
-
function Nn(e, t, n) {
|
|
1426
|
-
const r = e.slice(0, e.indexOf(">")), s = (o, a) => {
|
|
1427
|
-
const l = a.exec(r), c = l != null, f = t[o];
|
|
1428
|
-
return !f && !oe(f) && (typeof n == "number" ? n > 0 && (t[o] = `${n}em`) : l && (t[o] = l[1])), c;
|
|
1429
|
-
};
|
|
1430
|
-
return [s("width", Un), s("height", Pn)];
|
|
1431
|
-
}
|
|
1432
|
-
async function Pe(e, t, n, r, s, o) {
|
|
1433
|
-
const { scale: a, addXmlNs: l = !1 } = r ?? {}, { additionalProps: c = {}, iconCustomizer: f } = (r == null ? void 0 : r.customizations) ?? {}, i = await (s == null ? void 0 : s()) ?? {};
|
|
1434
|
-
await (f == null ? void 0 : f(t, n, i)), Object.keys(c).forEach((g) => {
|
|
1435
|
-
const b = c[g];
|
|
1436
|
-
b != null && (i[g] = b);
|
|
1437
|
-
}), o == null || o(i);
|
|
1438
|
-
const [u, d] = Nn(e, i, a);
|
|
1439
|
-
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"));
|
|
1440
|
-
const h = Object.keys(i).map(
|
|
1441
|
-
(g) => g === "width" && u || g === "height" && d ? null : `${g}="${i[g]}"`
|
|
1442
|
-
).filter((g) => g != null);
|
|
1443
|
-
if (h.length && (e = e.replace(Z, `<svg ${h.join(" ")} `)), r) {
|
|
1444
|
-
const { defaultStyle: g, defaultClass: b } = r;
|
|
1445
|
-
b && !e.includes("class=") && (e = e.replace(Z, `<svg class="${b}" `)), g && !e.includes("style=") && (e = e.replace(Z, `<svg style="${g}" `));
|
|
1446
|
-
}
|
|
1447
|
-
const m = r == null ? void 0 : r.usedProps;
|
|
1448
|
-
return m && (Object.keys(c).forEach((g) => {
|
|
1449
|
-
const b = i[g];
|
|
1450
|
-
b != null && (m[g] = b);
|
|
1451
|
-
}), typeof i.width < "u" && i.width !== null && (m.width = i.width), typeof i.height < "u" && i.height !== null && (m.height = i.height)), e;
|
|
1452
|
-
}
|
|
1453
|
-
async function be(e, t, n, r) {
|
|
1454
|
-
var o;
|
|
1455
|
-
let s;
|
|
1456
|
-
try {
|
|
1457
|
-
if (typeof e == "function")
|
|
1458
|
-
s = await e(n);
|
|
1459
|
-
else {
|
|
1460
|
-
const a = e[n];
|
|
1461
|
-
s = typeof a == "function" ? await a() : a;
|
|
1462
|
-
}
|
|
1463
|
-
} catch (a) {
|
|
1464
|
-
console.warn(
|
|
1465
|
-
`Failed to load custom icon "${n}" in "${t}":`,
|
|
1466
|
-
a
|
|
1467
|
-
);
|
|
1468
|
-
return;
|
|
1469
|
-
}
|
|
1470
|
-
if (s) {
|
|
1471
|
-
const a = s.indexOf("<svg");
|
|
1472
|
-
a > 0 && (s = s.slice(a));
|
|
1473
|
-
const { transform: l } = (r == null ? void 0 : r.customizations) ?? {};
|
|
1474
|
-
return s = typeof l == "function" ? await l(s, t, n) : s, s.startsWith("<svg") ? await Pe(
|
|
1475
|
-
((o = r == null ? void 0 : r.customizations) == null ? void 0 : o.trimCustomSvg) === !0 ? Ln(s) : s,
|
|
1476
|
-
t,
|
|
1477
|
-
n,
|
|
1478
|
-
r,
|
|
1479
|
-
void 0
|
|
1480
|
-
) : (console.warn(
|
|
1481
|
-
`Custom icon "${n}" in "${t}" is not a valid SVG`
|
|
1482
|
-
), s);
|
|
1483
|
-
}
|
|
1484
|
-
}
|
|
1485
|
-
async function Ne(e, t, n, r) {
|
|
1486
|
-
let s;
|
|
1487
|
-
const { customize: o } = (r == null ? void 0 : r.customizations) ?? {};
|
|
1488
|
-
for (const a of n)
|
|
1489
|
-
if (s = kn(e, a), s) {
|
|
1490
|
-
let l = { ...Ue };
|
|
1491
|
-
typeof o == "function" && (l = o(l));
|
|
1492
|
-
const {
|
|
1493
|
-
attributes: { width: c, height: f, ...i },
|
|
1494
|
-
body: u
|
|
1495
|
-
} = Tn(s, l), d = r == null ? void 0 : r.scale;
|
|
1496
|
-
return await Pe(
|
|
1497
|
-
// DON'T remove space on <svg >
|
|
1498
|
-
`<svg >${u}</svg>`,
|
|
1499
|
-
t,
|
|
1500
|
-
a,
|
|
1501
|
-
r,
|
|
1502
|
-
() => ({ ...i }),
|
|
1503
|
-
(h) => {
|
|
1504
|
-
const m = (g, b) => {
|
|
1505
|
-
const $ = h[g];
|
|
1506
|
-
let k;
|
|
1507
|
-
if (!oe($)) {
|
|
1508
|
-
if ($)
|
|
1509
|
-
return;
|
|
1510
|
-
typeof d == "number" ? d && (k = `${d}em`) : k = b;
|
|
1511
|
-
}
|
|
1512
|
-
k ? h[g] = k : delete h[g];
|
|
1513
|
-
};
|
|
1514
|
-
m("width", c), m("height", f);
|
|
1515
|
-
}
|
|
1516
|
-
);
|
|
1517
|
-
}
|
|
1518
|
-
}
|
|
1519
|
-
const De = async (e, t, n) => {
|
|
1520
|
-
var s;
|
|
1521
|
-
const r = (s = n == null ? void 0 : n.customCollections) == null ? void 0 : s[e];
|
|
1522
|
-
if (r)
|
|
1523
|
-
if (typeof r == "function") {
|
|
1524
|
-
let o;
|
|
1525
|
-
try {
|
|
1526
|
-
o = await r(t);
|
|
1527
|
-
} catch (a) {
|
|
1528
|
-
console.warn(
|
|
1529
|
-
`Failed to load custom icon "${t}" in "${e}":`,
|
|
1530
|
-
a
|
|
1531
|
-
);
|
|
1532
|
-
return;
|
|
1533
|
-
}
|
|
1534
|
-
if (o) {
|
|
1535
|
-
if (typeof o == "string")
|
|
1536
|
-
return await be(
|
|
1537
|
-
() => o,
|
|
1538
|
-
e,
|
|
1539
|
-
t,
|
|
1540
|
-
n
|
|
1541
|
-
);
|
|
1542
|
-
if ("icons" in o) {
|
|
1543
|
-
const a = [
|
|
1544
|
-
t,
|
|
1545
|
-
t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
1546
|
-
t.replace(/([a-z])(\d+)/g, "$1-$2")
|
|
1547
|
-
];
|
|
1548
|
-
return await Ne(
|
|
1549
|
-
o,
|
|
1550
|
-
e,
|
|
1551
|
-
a,
|
|
1552
|
-
n
|
|
1553
|
-
);
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
} else
|
|
1557
|
-
return await be(r, e, t, n);
|
|
1558
|
-
};
|
|
1559
|
-
function Dn(e) {
|
|
1560
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1561
|
-
}
|
|
1562
|
-
var In = [
|
|
1563
|
-
"academicons",
|
|
1564
|
-
"akar-icons",
|
|
1565
|
-
"ant-design",
|
|
1566
|
-
"arcticons",
|
|
1567
|
-
"basil",
|
|
1568
|
-
"bi",
|
|
1569
|
-
"bitcoin-icons",
|
|
1570
|
-
"bpmn",
|
|
1571
|
-
"brandico",
|
|
1572
|
-
"bx",
|
|
1573
|
-
"bxl",
|
|
1574
|
-
"bxs",
|
|
1575
|
-
"bytesize",
|
|
1576
|
-
"carbon",
|
|
1577
|
-
"cbi",
|
|
1578
|
-
"charm",
|
|
1579
|
-
"ci",
|
|
1580
|
-
"cib",
|
|
1581
|
-
"cif",
|
|
1582
|
-
"cil",
|
|
1583
|
-
"circle-flags",
|
|
1584
|
-
"circum",
|
|
1585
|
-
"clarity",
|
|
1586
|
-
"codicon",
|
|
1587
|
-
"covid",
|
|
1588
|
-
"cryptocurrency-color",
|
|
1589
|
-
"cryptocurrency",
|
|
1590
|
-
"dashicons",
|
|
1591
|
-
"devicon-line",
|
|
1592
|
-
"devicon-original",
|
|
1593
|
-
"devicon-plain",
|
|
1594
|
-
"devicon",
|
|
1595
|
-
"ei",
|
|
1596
|
-
"el",
|
|
1597
|
-
"emblemicons",
|
|
1598
|
-
"emojione-monotone",
|
|
1599
|
-
"emojione-v1",
|
|
1600
|
-
"emojione",
|
|
1601
|
-
"entypo-social",
|
|
1602
|
-
"entypo",
|
|
1603
|
-
"eos-icons",
|
|
1604
|
-
"ep",
|
|
1605
|
-
"et",
|
|
1606
|
-
"eva",
|
|
1607
|
-
"f7",
|
|
1608
|
-
"fa-brands",
|
|
1609
|
-
"fa-regular",
|
|
1610
|
-
"fa-solid",
|
|
1611
|
-
"fa",
|
|
1612
|
-
"fa6-brands",
|
|
1613
|
-
"fa6-regular",
|
|
1614
|
-
"fa6-solid",
|
|
1615
|
-
"fad",
|
|
1616
|
-
"fe",
|
|
1617
|
-
"feather",
|
|
1618
|
-
"file-icons",
|
|
1619
|
-
"flag",
|
|
1620
|
-
"flagpack",
|
|
1621
|
-
"flat-color-icons",
|
|
1622
|
-
"flat-ui",
|
|
1623
|
-
"flowbite",
|
|
1624
|
-
"fluent-emoji-flat",
|
|
1625
|
-
"fluent-emoji-high-contrast",
|
|
1626
|
-
"fluent-emoji",
|
|
1627
|
-
"fluent-mdl2",
|
|
1628
|
-
"fluent",
|
|
1629
|
-
"fontelico",
|
|
1630
|
-
"fontisto",
|
|
1631
|
-
"formkit",
|
|
1632
|
-
"foundation",
|
|
1633
|
-
"fxemoji",
|
|
1634
|
-
"gala",
|
|
1635
|
-
"game-icons",
|
|
1636
|
-
"geo",
|
|
1637
|
-
"gg",
|
|
1638
|
-
"gis",
|
|
1639
|
-
"gravity-ui",
|
|
1640
|
-
"gridicons",
|
|
1641
|
-
"grommet-icons",
|
|
1642
|
-
"guidance",
|
|
1643
|
-
"healthicons",
|
|
1644
|
-
"heroicons-outline",
|
|
1645
|
-
"heroicons-solid",
|
|
1646
|
-
"heroicons",
|
|
1647
|
-
"hugeicons",
|
|
1648
|
-
"humbleicons",
|
|
1649
|
-
"ic",
|
|
1650
|
-
"icomoon-free",
|
|
1651
|
-
"icon-park-outline",
|
|
1652
|
-
"icon-park-solid",
|
|
1653
|
-
"icon-park-twotone",
|
|
1654
|
-
"icon-park",
|
|
1655
|
-
"iconamoon",
|
|
1656
|
-
"iconoir",
|
|
1657
|
-
"icons8",
|
|
1658
|
-
"il",
|
|
1659
|
-
"ion",
|
|
1660
|
-
"iwwa",
|
|
1661
|
-
"jam",
|
|
1662
|
-
"la",
|
|
1663
|
-
"lets-icons",
|
|
1664
|
-
"line-md",
|
|
1665
|
-
"logos",
|
|
1666
|
-
"ls",
|
|
1667
|
-
"lucide",
|
|
1668
|
-
"mage",
|
|
1669
|
-
"majesticons",
|
|
1670
|
-
"maki",
|
|
1671
|
-
"map",
|
|
1672
|
-
"marketeq",
|
|
1673
|
-
"material-symbols-light",
|
|
1674
|
-
"material-symbols",
|
|
1675
|
-
"mdi-light",
|
|
1676
|
-
"mdi",
|
|
1677
|
-
"medical-icon",
|
|
1678
|
-
"memory",
|
|
1679
|
-
"meteocons",
|
|
1680
|
-
"mi",
|
|
1681
|
-
"mingcute",
|
|
1682
|
-
"mono-icons",
|
|
1683
|
-
"mynaui",
|
|
1684
|
-
"nimbus",
|
|
1685
|
-
"nonicons",
|
|
1686
|
-
"noto-v1",
|
|
1687
|
-
"noto",
|
|
1688
|
-
"octicon",
|
|
1689
|
-
"oi",
|
|
1690
|
-
"ooui",
|
|
1691
|
-
"openmoji",
|
|
1692
|
-
"oui",
|
|
1693
|
-
"pajamas",
|
|
1694
|
-
"pepicons-pencil",
|
|
1695
|
-
"pepicons-pop",
|
|
1696
|
-
"pepicons-print",
|
|
1697
|
-
"pepicons",
|
|
1698
|
-
"ph",
|
|
1699
|
-
"pixelarticons",
|
|
1700
|
-
"prime",
|
|
1701
|
-
"ps",
|
|
1702
|
-
"quill",
|
|
1703
|
-
"radix-icons",
|
|
1704
|
-
"raphael",
|
|
1705
|
-
"ri",
|
|
1706
|
-
"si-glyph",
|
|
1707
|
-
"simple-icons",
|
|
1708
|
-
"simple-line-icons",
|
|
1709
|
-
"skill-icons",
|
|
1710
|
-
"solar",
|
|
1711
|
-
"streamline-emojis",
|
|
1712
|
-
"streamline",
|
|
1713
|
-
"subway",
|
|
1714
|
-
"svg-spinners",
|
|
1715
|
-
"system-uicons",
|
|
1716
|
-
"tabler",
|
|
1717
|
-
"tdesign",
|
|
1718
|
-
"teenyicons",
|
|
1719
|
-
"token-branded",
|
|
1720
|
-
"token",
|
|
1721
|
-
"topcoat",
|
|
1722
|
-
"twemoji",
|
|
1723
|
-
"typcn",
|
|
1724
|
-
"uil",
|
|
1725
|
-
"uim",
|
|
1726
|
-
"uis",
|
|
1727
|
-
"uit",
|
|
1728
|
-
"uiw",
|
|
1729
|
-
"unjs",
|
|
1730
|
-
"vaadin",
|
|
1731
|
-
"vs",
|
|
1732
|
-
"vscode-icons",
|
|
1733
|
-
"websymbol",
|
|
1734
|
-
"whh",
|
|
1735
|
-
"wi",
|
|
1736
|
-
"wpf",
|
|
1737
|
-
"zmdi",
|
|
1738
|
-
"zondicons"
|
|
1739
|
-
];
|
|
1740
|
-
const Fn = /* @__PURE__ */ Dn(In), zn = 3;
|
|
1741
|
-
function Vn(e) {
|
|
1742
|
-
return (t = {}) => {
|
|
1743
|
-
const {
|
|
1744
|
-
scale: n = 1,
|
|
1745
|
-
mode: r = "auto",
|
|
1746
|
-
prefix: s = "i-",
|
|
1747
|
-
warn: o = !1,
|
|
1748
|
-
collections: a,
|
|
1749
|
-
extraProperties: l = {},
|
|
1750
|
-
customizations: c = {},
|
|
1751
|
-
autoInstall: f = !1,
|
|
1752
|
-
collectionsNodeResolvePath: i,
|
|
1753
|
-
layer: u = "icons",
|
|
1754
|
-
unit: d,
|
|
1755
|
-
processor: h
|
|
1756
|
-
} = t, m = Hn(), g = {
|
|
1757
|
-
addXmlNs: !0,
|
|
1758
|
-
scale: n,
|
|
1759
|
-
customCollections: a,
|
|
1760
|
-
autoInstall: f,
|
|
1761
|
-
cwd: i,
|
|
1762
|
-
// avoid warn from @iconify/loader: we'll warn below if not found
|
|
1763
|
-
warn: void 0,
|
|
1764
|
-
customizations: {
|
|
1765
|
-
...c,
|
|
1766
|
-
additionalProps: { ...l },
|
|
1767
|
-
trimCustomSvg: !0,
|
|
1768
|
-
async iconCustomizer($, k, _) {
|
|
1769
|
-
var S;
|
|
1770
|
-
await ((S = c.iconCustomizer) == null ? void 0 : S.call(c, $, k, _)), d && (_.width || (_.width = `${n}${d}`), _.height || (_.height = `${n}${d}`));
|
|
1771
|
-
}
|
|
1772
|
-
}
|
|
1773
|
-
};
|
|
1774
|
-
let b;
|
|
1775
|
-
return {
|
|
1776
|
-
name: "@unocss/preset-icons",
|
|
1777
|
-
enforce: "pre",
|
|
1778
|
-
options: t,
|
|
1779
|
-
layers: { icons: -30 },
|
|
1780
|
-
rules: [[
|
|
1781
|
-
/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,
|
|
1782
|
-
async ($) => {
|
|
1783
|
-
let [k, _, S = r] = $, w = "", p = "", v;
|
|
1784
|
-
b = b || await e(t);
|
|
1785
|
-
const C = {};
|
|
1786
|
-
if (_.includes(":"))
|
|
1787
|
-
[w, p] = _.split(":"), v = await b(w, p, { ...g, usedProps: C });
|
|
1788
|
-
else {
|
|
1789
|
-
const P = _.split(/-/g);
|
|
1790
|
-
for (let N = zn; N >= 1 && (w = P.slice(0, N).join("-"), p = P.slice(N).join("-"), v = await b(w, p, { ...g, usedProps: C }), !v); N--)
|
|
1791
|
-
;
|
|
1792
|
-
}
|
|
1793
|
-
if (!v) {
|
|
1794
|
-
o && !m.isESLint && je(`failed to load icon "${k}"`);
|
|
1795
|
-
return;
|
|
1796
|
-
}
|
|
1797
|
-
let A;
|
|
1798
|
-
const j = `url("data:image/svg+xml;utf8,${Mn(v)}")`;
|
|
1799
|
-
return S === "auto" && (S = v.includes("currentColor") ? "mask" : "bg"), S === "mask" ? A = {
|
|
1800
|
-
"--un-icon": j,
|
|
1801
|
-
"-webkit-mask": "var(--un-icon) no-repeat",
|
|
1802
|
-
mask: "var(--un-icon) no-repeat",
|
|
1803
|
-
"-webkit-mask-size": "100% 100%",
|
|
1804
|
-
"mask-size": "100% 100%",
|
|
1805
|
-
"background-color": "currentColor",
|
|
1806
|
-
// for Safari https://github.com/elk-zone/elk/pull/264
|
|
1807
|
-
color: "inherit",
|
|
1808
|
-
...C
|
|
1809
|
-
} : A = {
|
|
1810
|
-
background: `${j} no-repeat`,
|
|
1811
|
-
"background-size": "100% 100%",
|
|
1812
|
-
"background-color": "transparent",
|
|
1813
|
-
...C
|
|
1814
|
-
}, h == null || h(A, { collection: w, icon: p, svg: v, mode: S }), A;
|
|
1815
|
-
},
|
|
1816
|
-
{ layer: u, prefix: s }
|
|
1817
|
-
]]
|
|
1818
|
-
};
|
|
1819
|
-
};
|
|
1820
|
-
}
|
|
1821
|
-
function Ie(e, t) {
|
|
1822
|
-
const n = /* @__PURE__ */ new Map();
|
|
1823
|
-
function r(s) {
|
|
1824
|
-
if (Fn.includes(s))
|
|
1825
|
-
return n.has(s) || n.set(s, e(`${t}@iconify-json/${s}/icons.json`)), n.get(s);
|
|
1826
|
-
}
|
|
1827
|
-
return async (s, o, a) => {
|
|
1828
|
-
let l = await De(s, o, a);
|
|
1829
|
-
if (l)
|
|
1830
|
-
return l;
|
|
1831
|
-
const c = await r(s);
|
|
1832
|
-
if (c) {
|
|
1833
|
-
const f = [
|
|
1834
|
-
o,
|
|
1835
|
-
o.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
1836
|
-
o.replace(/([a-z])(\d+)/g, "$1-$2")
|
|
1837
|
-
];
|
|
1838
|
-
l = await Ne(c, s, f, a);
|
|
1839
|
-
}
|
|
1840
|
-
return l;
|
|
1841
|
-
};
|
|
1842
|
-
}
|
|
1843
|
-
function Hn() {
|
|
1844
|
-
const e = typeof process < "u" && process.stdout && !process.versions.deno, t = e && !!me.VSCODE_CWD, n = e && !!me.ESLINT;
|
|
1845
|
-
return {
|
|
1846
|
-
isNode: e,
|
|
1847
|
-
isVSCode: t,
|
|
1848
|
-
isESLint: n
|
|
1849
|
-
};
|
|
1850
|
-
}
|
|
1851
|
-
function Bn(e) {
|
|
1852
|
-
return Ie(Mt, e);
|
|
1853
|
-
}
|
|
1854
|
-
const qn = Vn(async (e) => {
|
|
1855
|
-
const t = e == null ? void 0 : e.customFetch, n = e == null ? void 0 : e.cdn;
|
|
1856
|
-
return t && n ? Ie(t, n) : n ? Bn(n) : De;
|
|
1857
|
-
});
|
|
1858
|
-
function Wn(e) {
|
|
1859
|
-
return e.replace(/-(\w)/g, (t, n) => n ? n.toUpperCase() : "");
|
|
1860
|
-
}
|
|
1861
|
-
function ve(e) {
|
|
1862
|
-
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1863
|
-
}
|
|
1864
|
-
function we(e) {
|
|
1865
|
-
return e.replace(/(?:^|\B)([A-Z])/g, "-$1").toLowerCase();
|
|
1866
|
-
}
|
|
1867
|
-
var Se = ["Webkit", "Moz", "ms"];
|
|
1868
|
-
function Gn(e) {
|
|
1869
|
-
const t = {};
|
|
1870
|
-
function n(r) {
|
|
1871
|
-
const s = t[r];
|
|
1872
|
-
if (s)
|
|
1873
|
-
return s;
|
|
1874
|
-
let o = Wn(r);
|
|
1875
|
-
if (o !== "filter" && o in e)
|
|
1876
|
-
return t[r] = we(o);
|
|
1877
|
-
o = ve(o);
|
|
1878
|
-
for (let a = 0; a < Se.length; a++) {
|
|
1879
|
-
const l = `${Se[a]}${o}`;
|
|
1880
|
-
if (l in e)
|
|
1881
|
-
return t[r] = we(ve(l));
|
|
1882
|
-
}
|
|
1883
|
-
return r;
|
|
1884
|
-
}
|
|
1885
|
-
return ({ entries: r }) => r.forEach((s) => {
|
|
1886
|
-
s[0].startsWith("--") || (s[0] = n(s[0]));
|
|
1887
|
-
});
|
|
1888
|
-
}
|
|
1889
|
-
function Jn(e) {
|
|
1890
|
-
return e.replace(/&/g, "&").replace(/>/g, ">").replace(/</g, "<");
|
|
1891
|
-
}
|
|
1892
|
-
function Qn(e = {}) {
|
|
1893
|
-
var I, F, O;
|
|
1894
|
-
if (typeof window > "u") {
|
|
1895
|
-
console.warn("@unocss/runtime been used in non-browser environment, skipped.");
|
|
1896
|
-
return;
|
|
1897
|
-
}
|
|
1898
|
-
const t = window, n = window.document, r = () => n.documentElement, s = t.__unocss || {}, o = Object.assign({}, e, s.runtime), a = o.defaults || {}, l = o.cloakAttribute ?? "un-cloak";
|
|
1899
|
-
o.autoPrefix && (a.postprocess = U(a.postprocess)).unshift(Gn(n.createElement("div").style)), (I = o.configResolved) == null || I.call(o, s, a);
|
|
1900
|
-
const c = mn(s, a), f = (y) => o.inject ? o.inject(y) : r().prepend(y), i = () => o.rootElement ? o.rootElement() : n.body, u = /* @__PURE__ */ new Map();
|
|
1901
|
-
let d = !0, h = /* @__PURE__ */ new Set(), m, g, b = [];
|
|
1902
|
-
const $ = () => new Promise((y) => {
|
|
1903
|
-
b.push(y), g != null && clearTimeout(g), g = setTimeout(() => S().then(() => {
|
|
1904
|
-
const x = b;
|
|
1905
|
-
b = [], x.forEach((E) => E());
|
|
1906
|
-
}), 0);
|
|
1907
|
-
});
|
|
1908
|
-
function k(y) {
|
|
1909
|
-
if (y.nodeType !== 1)
|
|
1910
|
-
return;
|
|
1911
|
-
const x = y;
|
|
1912
|
-
x.hasAttribute(l) && x.removeAttribute(l), x.querySelectorAll(`[${l}]`).forEach((E) => {
|
|
1913
|
-
E.removeAttribute(l);
|
|
1914
|
-
});
|
|
1915
|
-
}
|
|
1916
|
-
function _(y, x) {
|
|
1917
|
-
let E = u.get(y);
|
|
1918
|
-
if (!E)
|
|
1919
|
-
if (E = n.createElement("style"), E.setAttribute("data-unocss-runtime-layer", y), u.set(y, E), x == null)
|
|
1920
|
-
f(E);
|
|
1921
|
-
else {
|
|
1922
|
-
const L = _(x), T = L.parentNode;
|
|
1923
|
-
T ? T.insertBefore(E, L.nextSibling) : f(E);
|
|
1924
|
-
}
|
|
1925
|
-
return E;
|
|
1926
|
-
}
|
|
1927
|
-
async function S() {
|
|
1928
|
-
const y = await c.generate(h);
|
|
1929
|
-
return y.layers.reduce((x, E) => (_(E, x).innerHTML = y.getLayer(E) ?? "", E), void 0), h = y.matched, {
|
|
1930
|
-
...y,
|
|
1931
|
-
getStyleElement: (x) => u.get(x),
|
|
1932
|
-
getStyleElements: () => u
|
|
1933
|
-
};
|
|
1934
|
-
}
|
|
1935
|
-
async function w(y) {
|
|
1936
|
-
const x = h.size;
|
|
1937
|
-
await c.applyExtractors(y, void 0, h), x !== h.size && await $();
|
|
1938
|
-
}
|
|
1939
|
-
async function p(y = i()) {
|
|
1940
|
-
const x = y && y.outerHTML;
|
|
1941
|
-
x && (await w(`${x} ${Jn(x)}`), k(r()), k(y));
|
|
1942
|
-
}
|
|
1943
|
-
const v = new MutationObserver((y) => {
|
|
1944
|
-
d || y.forEach(async (x) => {
|
|
1945
|
-
if (x.target.nodeType !== 1)
|
|
1946
|
-
return;
|
|
1947
|
-
const E = x.target;
|
|
1948
|
-
for (const L of u)
|
|
1949
|
-
if (E === L[1])
|
|
1950
|
-
return;
|
|
1951
|
-
if (x.type === "childList")
|
|
1952
|
-
x.addedNodes.forEach(async (L) => {
|
|
1953
|
-
if (L.nodeType !== 1)
|
|
1954
|
-
return;
|
|
1955
|
-
const T = L;
|
|
1956
|
-
m && !m(T) || (await w(T.outerHTML), k(T));
|
|
1957
|
-
});
|
|
1958
|
-
else {
|
|
1959
|
-
if (m && !m(E))
|
|
1960
|
-
return;
|
|
1961
|
-
if (x.attributeName !== l) {
|
|
1962
|
-
const L = Array.from(E.attributes).map((R) => R.value ? `${R.name}="${R.value}"` : R.name).join(" "), T = `<${E.tagName.toLowerCase()} ${L}>`;
|
|
1963
|
-
await w(T);
|
|
1964
|
-
}
|
|
1965
|
-
E.hasAttribute(l) && E.removeAttribute(l);
|
|
1966
|
-
}
|
|
1967
|
-
});
|
|
1968
|
-
});
|
|
1969
|
-
let C = !1;
|
|
1970
|
-
function A() {
|
|
1971
|
-
var x, E;
|
|
1972
|
-
if (C)
|
|
1973
|
-
return;
|
|
1974
|
-
const y = (x = o.observer) != null && x.target ? o.observer.target() : i();
|
|
1975
|
-
y && (v.observe(y, {
|
|
1976
|
-
childList: !0,
|
|
1977
|
-
subtree: !0,
|
|
1978
|
-
attributes: !0,
|
|
1979
|
-
attributeFilter: (E = o.observer) == null ? void 0 : E.attributeFilter
|
|
1980
|
-
}), C = !0);
|
|
1981
|
-
}
|
|
1982
|
-
function j() {
|
|
1983
|
-
o.bypassDefined && Kn(c.blocked), p(), A();
|
|
1984
|
-
}
|
|
1985
|
-
function P() {
|
|
1986
|
-
n.readyState === "loading" ? t.addEventListener("DOMContentLoaded", j) : j();
|
|
1987
|
-
}
|
|
1988
|
-
const N = t.__unocss_runtime = t.__unocss_runtime = {
|
|
1989
|
-
version: c.version,
|
|
1990
|
-
uno: c,
|
|
1991
|
-
async extract(y) {
|
|
1992
|
-
M(y) || (y.forEach((x) => h.add(x)), y = ""), await w(y);
|
|
1993
|
-
},
|
|
1994
|
-
extractAll: p,
|
|
1995
|
-
inspect(y) {
|
|
1996
|
-
m = y;
|
|
1997
|
-
},
|
|
1998
|
-
toggleObserver(y) {
|
|
1999
|
-
y === void 0 ? d = !d : d = !!y, !C && !d && P();
|
|
2000
|
-
},
|
|
2001
|
-
update: S,
|
|
2002
|
-
presets: ((F = t.__unocss_runtime) == null ? void 0 : F.presets) ?? {}
|
|
2003
|
-
};
|
|
2004
|
-
((O = o.ready) == null ? void 0 : O.call(o, N)) !== !1 && (d = !1, P());
|
|
2005
|
-
}
|
|
2006
|
-
function Kn(e = /* @__PURE__ */ new Set()) {
|
|
2007
|
-
for (let t = 0; t < document.styleSheets.length; t++) {
|
|
2008
|
-
const n = document.styleSheets[t];
|
|
2009
|
-
let r;
|
|
2010
|
-
try {
|
|
2011
|
-
if (r = n.cssRules || n.rules, !r)
|
|
2012
|
-
continue;
|
|
2013
|
-
Array.from(r).flatMap((s) => {
|
|
2014
|
-
var o;
|
|
2015
|
-
return ((o = s.selectorText) == null ? void 0 : o.split(/,/g)) || [];
|
|
2016
|
-
}).forEach((s) => {
|
|
2017
|
-
s && (s = s.trim(), s.startsWith(".") && (s = s.slice(1)), e.add(s));
|
|
2018
|
-
});
|
|
2019
|
-
} catch {
|
|
2020
|
-
continue;
|
|
2021
|
-
}
|
|
2022
|
-
}
|
|
2023
|
-
return e;
|
|
2024
|
-
}
|
|
2025
|
-
Qn({
|
|
2026
|
-
defaults: {
|
|
2027
|
-
presets: [
|
|
2028
|
-
qn({
|
|
2029
|
-
prefix: ["i-", ""],
|
|
2030
|
-
collections: {},
|
|
2031
|
-
cdn: "https://esm.sh/",
|
|
2032
|
-
scale: 1.2,
|
|
2033
|
-
extraProperties: {
|
|
2034
|
-
display: "inline-block",
|
|
2035
|
-
"vertical-align": "middle"
|
|
2036
|
-
}
|
|
2037
|
-
})
|
|
2038
|
-
]
|
|
2039
|
-
},
|
|
2040
|
-
bypassDefined: !0
|
|
2041
|
-
});
|