vite-plugin-vue-devtools 7.1.1 → 7.1.3

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.
Files changed (37) hide show
  1. package/client/assets/index-Bk3Utm9b.css +1 -0
  2. package/client/assets/{index-DZ_zgPIw.js → index-YDvBrsd9.js} +13 -13
  3. package/client/css-CAzixsid-CEpuX1HY.js +511 -0
  4. package/client/css-CAzixsid.js +511 -0
  5. package/client/devtools-panel.css +1 -0
  6. package/client/devtools-panel.js +91687 -0
  7. package/client/diff-Bo5iyMQ2-Bo5iyMQ2.js +7 -0
  8. package/client/diff-Bo5iyMQ2.js +7 -0
  9. package/client/html-BZB5lEhh-B74zAnWx.js +84 -0
  10. package/client/html-BZB5lEhh.js +84 -0
  11. package/client/index.html +2 -2
  12. package/client/javascript-DqVBMyXe-DqVBMyXe.js +705 -0
  13. package/client/javascript-DqVBMyXe.js +705 -0
  14. package/client/json-B12k4-6m-B12k4-6m.js +31 -0
  15. package/client/json-B12k4-6m.js +31 -0
  16. package/client/shellscript-DQ1J75ow-DQ1J75ow.js +7 -0
  17. package/client/shellscript-DQ1J75ow.js +7 -0
  18. package/client/typescript-AEg-ehu7-AEg-ehu7.js +672 -0
  19. package/client/typescript-AEg-ehu7.js +672 -0
  20. package/client/unocss-runtime-DnMV7EO2.js +2031 -0
  21. package/client/vitesse-dark-DX6gc1PC-DX6gc1PC.js +683 -0
  22. package/client/vitesse-dark-DX6gc1PC.js +683 -0
  23. package/client/vitesse-light-BQX_J3vG-BQX_J3vG.js +681 -0
  24. package/client/vitesse-light-BQX_J3vG.js +681 -0
  25. package/client/vue-CSiwUDF5-BrneCaTr.js +2124 -0
  26. package/client/vue-CSiwUDF5.js +2124 -0
  27. package/client/vue-apis-CBD-3_AQ.js +1127 -0
  28. package/client/vue-html-D0BKftsE-Br4pXe22.js +11 -0
  29. package/client/vue-html-D0BKftsE.js +11 -0
  30. package/client/yaml-PGla5xPP-HJurM_FJ.js +206 -0
  31. package/client/yaml-PGla5xPP.js +206 -0
  32. package/dist/vite.cjs +5 -7
  33. package/dist/vite.mjs +5 -7
  34. package/package.json +4 -4
  35. package/src/overlay/devtools-overlay.css +1 -1
  36. package/src/overlay/devtools-overlay.js +2 -2
  37. package/client/assets/index-BFXmWfZp.css +0 -1
@@ -0,0 +1,2031 @@
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*:/, Ge = /^\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 ze(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 s = n.toLowerCase();
23
+ if (s === "true")
24
+ return !0;
25
+ if (s === "false")
26
+ return !1;
27
+ if (s === "undefined")
28
+ return;
29
+ if (s === "null")
30
+ return null;
31
+ if (s === "nan")
32
+ return Number.NaN;
33
+ if (s === "infinity")
34
+ return Number.POSITIVE_INFINITY;
35
+ if (s === "-infinity")
36
+ return Number.NEGATIVE_INFINITY;
37
+ }
38
+ if (!Ge.test(e)) {
39
+ if (t.strict)
40
+ throw new SyntaxError("[destr] Invalid JSON");
41
+ return e;
42
+ }
43
+ try {
44
+ if (Fe.test(e) || Ve.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 (s) {
51
+ if (t.strict)
52
+ throw s;
53
+ return e;
54
+ }
55
+ }
56
+ const qe = /#/g, We = /&/g, Ke = /\//g, Je = /=/g, se = /\+/g, Xe = /%5e/gi, Qe = /%60/gi, Ye = /%7c/gi, Ze = /%20/gi;
57
+ function et(e) {
58
+ return encodeURI("" + e).replace(Ye, "|");
59
+ }
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(Qe, "`").replace(Xe, "^").replace(Ke, "%2F");
62
+ }
63
+ function J(e) {
64
+ return ee(e).replace(Je, "%3D");
65
+ }
66
+ function Ee(e = "") {
67
+ try {
68
+ return decodeURIComponent("" + e);
69
+ } catch {
70
+ return "" + e;
71
+ }
72
+ }
73
+ function tt(e) {
74
+ return Ee(e.replace(se, " "));
75
+ }
76
+ function nt(e) {
77
+ return Ee(e.replace(se, " "));
78
+ }
79
+ function st(e = "") {
80
+ const t = {};
81
+ e[0] === "?" && (e = e.slice(1));
82
+ for (const n of e.split("&")) {
83
+ const s = n.match(/([^=]+)=?(.*)/) || [];
84
+ if (s.length < 2)
85
+ continue;
86
+ const o = tt(s[1]);
87
+ if (o === "__proto__" || o === "constructor")
88
+ continue;
89
+ const r = nt(s[2] || "");
90
+ t[o] === void 0 ? t[o] = r : Array.isArray(t[o]) ? t[o].push(r) : t[o] = [t[o], r];
91
+ }
92
+ return t;
93
+ }
94
+ function ot(e, t) {
95
+ return (typeof t == "number" || typeof t == "boolean") && (t = String(t)), t ? Array.isArray(t) ? t.map((n) => `${J(e)}=${ee(n)}`).join("&") : `${J(e)}=${ee(t)}` : J(e);
96
+ }
97
+ function rt(e) {
98
+ return Object.keys(e).filter((t) => e[t] !== void 0).map((t) => ot(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 xe(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, s = "";
113
+ const o = e.indexOf("#");
114
+ o >= 0 && (n = e.slice(0, o), s = e.slice(o));
115
+ const [r, ...a] = n.split("?");
116
+ return ((r.endsWith("/") ? r.slice(0, -1) : r) || "/") + (a.length > 0 ? `?${a.join("?")}` : "") + s;
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, s = "";
124
+ const o = e.indexOf("#");
125
+ if (o >= 0 && (n = e.slice(0, o), s = e.slice(o), !n))
126
+ return s;
127
+ const [r, ...a] = n.split("?");
128
+ return r + "/" + (a.length > 0 ? `?${a.join("?")}` : "") + s;
129
+ }
130
+ function dt(e, t) {
131
+ if (ht(t) || xe(e))
132
+ return e;
133
+ const n = ft(t);
134
+ return e.startsWith(n) ? e : gt(n, e);
135
+ }
136
+ function mt(e, t) {
137
+ const n = Ce(e), s = { ...st(n.search), ...t };
138
+ return n.search = rt(s), yt(n);
139
+ }
140
+ function ht(e) {
141
+ return !e || e === "/";
142
+ }
143
+ function _t(e) {
144
+ return e && e !== "/";
145
+ }
146
+ function gt(e, ...t) {
147
+ let n = e || "";
148
+ for (const s of t.filter((o) => _t(o)))
149
+ if (n) {
150
+ const o = s.replace(ut, "");
151
+ n = pt(n) + o;
152
+ } else
153
+ n = s;
154
+ return n;
155
+ }
156
+ const Ae = Symbol.for("ufo:protocolRelative");
157
+ function Ce(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 (!xe(e, { acceptRelative: !0 }))
174
+ return t ? Ce(t + e) : ae(e);
175
+ const [, s = "", o, r = ""] = e.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || [], [, a = "", l = ""] = r.match(/([^#/?]*)(.*)?/) || [], { pathname: c, search: f, hash: i } = ae(
176
+ l.replace(/\/(?=[A-Za-z]:)/, "")
177
+ );
178
+ return {
179
+ protocol: s.toLowerCase(),
180
+ auth: o ? o.slice(0, Math.max(0, o.length - 1)) : "",
181
+ host: a,
182
+ pathname: c,
183
+ search: f,
184
+ hash: i,
185
+ [Ae]: !s
186
+ };
187
+ }
188
+ function ae(e = "") {
189
+ const [t = "", n = "", s = ""] = (e.match(/([^#?]*)(\?[^#]*)?(#.*)?/) || []).splice(1);
190
+ return {
191
+ pathname: t,
192
+ search: n,
193
+ hash: s
194
+ };
195
+ }
196
+ function yt(e) {
197
+ const t = e.pathname || "", n = e.search ? (e.search.startsWith("?") ? "" : "?") + e.search : "", s = e.hash || "", o = e.auth ? e.auth + "@" : "", r = e.host || "";
198
+ return (e.protocol || e[Ae] ? (e.protocol || "") + "//" : "") + o + r + t + n + s;
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", s = ((d = e.request) == null ? void 0 : d.url) || String(e.request) || "/", o = `[${n}] ${JSON.stringify(s)}`, r = e.response ? `${e.response.status} ${e.response.statusText}` : "<no response>", a = `${o}: ${r}${t ? ` ${t}` : ""}`, l = new bt(
208
+ a,
209
+ e.error ? { cause: e.error } : void 0
210
+ );
211
+ for (const _ of ["request", "options", "response"])
212
+ Object.defineProperty(l, _, {
213
+ get() {
214
+ return e[_];
215
+ }
216
+ });
217
+ for (const [_, h] of [
218
+ ["data", "_data"],
219
+ ["status", "status"],
220
+ ["statusCode", "status"],
221
+ ["statusText", "statusText"],
222
+ ["statusMessage", "statusText"]
223
+ ])
224
+ Object.defineProperty(l, _, {
225
+ get() {
226
+ return e.response && e.response[h];
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 Et = /* @__PURE__ */ new Set([
244
+ "image/svg",
245
+ "application/xml",
246
+ "application/xhtml",
247
+ "application/html"
248
+ ]), xt = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
249
+ function At(e = "") {
250
+ if (!e)
251
+ return "json";
252
+ const t = e.split(";").shift() || "";
253
+ return xt.test(t) ? "json" : Et.has(t) || t.startsWith("text/") ? "text" : "blob";
254
+ }
255
+ function Ct(e, t, n = globalThis.Headers) {
256
+ const s = {
257
+ ...t,
258
+ ...e
259
+ };
260
+ if (t != null && t.params && (e != null && e.params) && (s.params = {
261
+ ...t == null ? void 0 : t.params,
262
+ ...e == null ? void 0 : e.params
263
+ }), t != null && t.query && (e != null && e.query) && (s.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
+ s.headers = new n((t == null ? void 0 : t.headers) || {});
268
+ for (const [o, r] of new n((e == null ? void 0 : e.headers) || {}))
269
+ s.headers.set(o, r);
270
+ }
271
+ return s;
272
+ }
273
+ const Ot = /* @__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
+ ]), Rt = /* @__PURE__ */ new Set([101, 204, 205, 304]);
291
+ function Oe(e = {}) {
292
+ const {
293
+ fetch: t = globalThis.fetch,
294
+ Headers: n = globalThis.Headers,
295
+ AbortController: s = globalThis.AbortController
296
+ } = e;
297
+ async function o(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) : Ot.has(u))) {
304
+ const d = l.options.retryDelay || 0;
305
+ return d > 0 && await new Promise((_) => setTimeout(_, d)), r(l.request, {
306
+ ...l.options,
307
+ retry: i - 1
308
+ });
309
+ }
310
+ }
311
+ const f = vt(l);
312
+ throw Error.captureStackTrace && Error.captureStackTrace(f, r), f;
313
+ }
314
+ const r = async function(c, f = {}) {
315
+ var _;
316
+ const i = {
317
+ request: c,
318
+ options: Ct(f, e.defaults, n),
319
+ response: void 0,
320
+ error: void 0
321
+ };
322
+ i.options.method = (_ = i.options.method) == null ? void 0 : _.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 = mt(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 h = new s();
333
+ u = setTimeout(
334
+ () => h.abort(),
335
+ i.options.timeout
336
+ ), i.options.signal = h.signal;
337
+ }
338
+ try {
339
+ i.response = await t(
340
+ i.request,
341
+ i.options
342
+ );
343
+ } catch (h) {
344
+ return i.error = h, i.options.onRequestError && await i.options.onRequestError(i), await o(i);
345
+ } finally {
346
+ u && clearTimeout(u);
347
+ }
348
+ if (i.response.body && !Rt.has(i.response.status) && i.options.method !== "HEAD") {
349
+ const h = (i.options.parseResponse ? "json" : i.options.responseType) || At(i.response.headers.get("content-type") || "");
350
+ switch (h) {
351
+ case "json": {
352
+ const m = await i.response.text(), b = i.options.parseResponse || ze;
353
+ i.response._data = b(m);
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[h]();
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 o(i)) : i.response;
365
+ }, a = async function(c, f) {
366
+ return (await r(c, f))._data;
367
+ };
368
+ return a.raw = r, a.native = (...l) => t(...l), a.create = (l = {}) => Oe({
369
+ ...e,
370
+ defaults: {
371
+ ...e.defaults,
372
+ ...l
373
+ }
374
+ }), a;
375
+ }
376
+ const oe = 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
+ }(), 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
+ const t = e.length;
389
+ let n = -1, s, o = "";
390
+ const r = e.charCodeAt(0);
391
+ for (; ++n < t; ) {
392
+ if (s = e.charCodeAt(n), s === 0) {
393
+ o += "�";
394
+ continue;
395
+ }
396
+ if (s === 37) {
397
+ o += "\\%";
398
+ continue;
399
+ }
400
+ if (s === 44) {
401
+ o += "\\,";
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
+ s >= 1 && s <= 31 || s === 127 || n === 0 && s >= 48 && s <= 57 || n === 1 && s >= 48 && s <= 57 && r === 45
408
+ ) {
409
+ o += `\\${s.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 && s === 45
416
+ ) {
417
+ o += `\\${e.charAt(n)}`;
418
+ continue;
419
+ }
420
+ if (s >= 128 || s === 45 || s === 95 || s >= 48 && s <= 57 || s >= 65 && s <= 90 || s >= 97 && s <= 122) {
421
+ o += e.charAt(n);
422
+ continue;
423
+ }
424
+ o += `\\${e.charAt(n)}`;
425
+ }
426
+ return o;
427
+ }
428
+ const X = Ut;
429
+ function I(e = []) {
430
+ return Array.isArray(e) ? e : [e];
431
+ }
432
+ function W(e) {
433
+ return Array.from(new Set(e));
434
+ }
435
+ function It(e, t) {
436
+ return e.reduce((n, s) => (n.findIndex((r) => t(s, r)) === -1 && n.push(s), n), []);
437
+ }
438
+ function U(e) {
439
+ return typeof e == "string";
440
+ }
441
+ function G(e) {
442
+ return U(e) ? e : (Array.isArray(e) ? e : Object.entries(e)).filter((t) => t[1] != null);
443
+ }
444
+ function Nt(e) {
445
+ return Array.isArray(e) ? e.find((t) => !Array.isArray(t) || Array.isArray(t[0])) ? e.map((t) => G(t)) : [e] : [G(e)];
446
+ }
447
+ function Dt(e) {
448
+ return e.filter(([t, n], s) => {
449
+ if (t.startsWith("$$"))
450
+ return !1;
451
+ for (let o = s - 1; o >= 0; o--)
452
+ if (e[o][0] === t && e[o][1] === n)
453
+ return !1;
454
+ return !0;
455
+ });
456
+ }
457
+ function Q(e) {
458
+ return e == null ? "" : Dt(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 Re(e, t, n = !1) {
464
+ const s = e, o = t;
465
+ if (Array.isArray(o))
466
+ return n && Array.isArray(o) ? [...s, ...o] : [...o];
467
+ const r = { ...s };
468
+ return H(s) && H(o) && Object.keys(o).forEach((a) => {
469
+ H(s[a]) && H(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
+ }), r;
471
+ }
472
+ function z(e) {
473
+ let t, n, s;
474
+ if (Array.isArray(e)) {
475
+ for (n = Array(t = e.length); t--; )
476
+ n[t] = (s = e[t]) && typeof s == "object" ? z(s) : s;
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: z(e[t]),
484
+ configurable: !0,
485
+ enumerable: !0,
486
+ writable: !0
487
+ }) : n[t] = (s = e[t]) && typeof s == "object" ? z(s) : s;
488
+ return n;
489
+ }
490
+ return e;
491
+ }
492
+ function jt(e) {
493
+ return U(e[0]);
494
+ }
495
+ function Pt(e) {
496
+ return U(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 Vt(e) {
506
+ return e != null;
507
+ }
508
+ function Gt() {
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, zt = (e, t, n) => (Bt(e, typeof t != "symbol" ? t + "" : t, n), n);
511
+ class qt {
512
+ constructor() {
513
+ zt(this, "_map", /* @__PURE__ */ new Map());
514
+ }
515
+ get(t, n) {
516
+ const s = this._map.get(t);
517
+ if (s)
518
+ return s.get(n);
519
+ }
520
+ getFallback(t, n, s) {
521
+ let o = this._map.get(t);
522
+ return o || (o = /* @__PURE__ */ new Map(), this._map.set(t, o)), o.has(n) || o.set(n, s), o.get(n);
523
+ }
524
+ set(t, n, s) {
525
+ let o = this._map.get(t);
526
+ return o || (o = /* @__PURE__ */ new Map(), this._map.set(t, o)), o.set(n, s), this;
527
+ }
528
+ has(t, n) {
529
+ var s;
530
+ return (s = this._map.get(t)) == null ? void 0 : s.has(n);
531
+ }
532
+ delete(t, n) {
533
+ var s;
534
+ return ((s = this._map.get(t)) == null ? void 0 : s.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, s]) => Array.from(s.entries()).map(([o, r]) => t(r, n, o)));
541
+ }
542
+ }
543
+ class Wt extends Map {
544
+ getFallback(t, n) {
545
+ const s = this.get(t);
546
+ return s === void 0 ? (this.set(t, n), n) : s;
547
+ }
548
+ map(t) {
549
+ const n = [];
550
+ return this.forEach((s, o) => {
551
+ n.push(t(s, o));
552
+ }), n;
553
+ }
554
+ flatMap(t) {
555
+ const n = [];
556
+ return this.forEach((s, o) => {
557
+ n.push(...t(s, o));
558
+ }), n;
559
+ }
560
+ }
561
+ var Kt = Object.defineProperty, Jt = (e, t, n) => t in e ? Kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Xt = (e, t, n) => (Jt(e, typeof t != "symbol" ? t + "" : t, n), n);
562
+ class ke extends Set {
563
+ constructor(t) {
564
+ super(t), Xt(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 Y(e) {
583
+ return e instanceof ke;
584
+ }
585
+ const B = {};
586
+ function Qt(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 Yt(e, t = ["-", ":"], n = 5) {
591
+ const s = Qt(t);
592
+ let o, r = e.toString();
593
+ const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
594
+ do
595
+ o = !1, r = r.replace(
596
+ s,
597
+ (f, i, u, d, _) => {
598
+ var b;
599
+ if (!t.includes(u))
600
+ return f;
601
+ o = !0, a.add(i + u);
602
+ const h = _ + i.length + u.length + 1, m = { length: f.length, items: [] };
603
+ l.set(_, m);
604
+ for (const C of [...d.matchAll(/\S+/g)]) {
605
+ const x = h + C.index;
606
+ let y = (b = l.get(x)) == null ? void 0 : b.items;
607
+ y ? l.delete(x) : y = [{
608
+ offset: x,
609
+ length: C[0].length,
610
+ className: C[0]
611
+ }];
612
+ for (const S of y)
613
+ S.className = S.className === "~" ? i : S.className.replace(/^(!?)(.*)/, `$1${i}${u}$2`), m.items.push(S);
614
+ }
615
+ return "$".repeat(f.length);
616
+ }
617
+ ), n -= 1;
618
+ while (o && 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: o,
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 s = Yt(e, t, n);
647
+ return typeof e == "string" ? s.expanded : e;
648
+ }
649
+ const fe = /* @__PURE__ */ new Set();
650
+ function Te(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 sn() {
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 q = "default", ne = "preflights", on = "shortcuts", rn = "imports", an = {
676
+ [rn]: -200,
677
+ [ne]: -100,
678
+ [on]: -10,
679
+ [q]: 0
680
+ };
681
+ function $e(e) {
682
+ return I(e).flatMap((t) => Array.isArray(t) ? [t] : Object.entries(t));
683
+ }
684
+ const pe = "_uno_resolved";
685
+ function cn(e) {
686
+ var s;
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 ? $e(t.shortcuts) : void 0;
695
+ if (t.shortcuts = n, t.prefix || t.layer) {
696
+ const o = (r) => {
697
+ r[2] || (r[2] = {});
698
+ const a = r[2];
699
+ a.prefix == null && t.prefix && (a.prefix = I(t.prefix)), a.layer == null && t.layer && (a.layer = t.layer);
700
+ };
701
+ n == null || n.forEach(o), (s = t.rules) == null || s.forEach(o);
702
+ }
703
+ return t;
704
+ }
705
+ function Le(e) {
706
+ const t = cn(e);
707
+ if (!t.presets)
708
+ return [t];
709
+ const n = (t.presets || []).flatMap(I).flatMap(Le);
710
+ return [t, ...n];
711
+ }
712
+ function de(e = {}, t = {}) {
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
+ ...s.filter((p) => p.enforce === "pre"),
716
+ ...s.filter((p) => !p.enforce),
717
+ ...s.filter((p) => p.enforce === "post")
718
+ ], r = [
719
+ ...o,
720
+ n
721
+ ], a = [...r].reverse(), l = Object.assign({}, an, ...r.map((p) => p.layers));
722
+ function c(p) {
723
+ return W(r.flatMap((w) => I(w[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, w) => (p.order || 0) - (w.order || 0));
728
+ const u = c("rules"), d = {}, _ = u.length, h = u.map((p, w) => {
729
+ var R;
730
+ if (jt(p)) {
731
+ I(((R = p[2]) == null ? void 0 : R.prefix) || "").forEach((L) => {
732
+ d[L + p[0]] = [w, p[1], p[2], p];
733
+ });
734
+ return;
735
+ }
736
+ return [w, ...p];
737
+ }).filter(Boolean).reverse();
738
+ let m = ln(r.map((p) => p.theme));
739
+ const b = c("extendTheme");
740
+ for (const p of b)
741
+ m = p(m) || m;
742
+ const C = {
743
+ templates: W(r.flatMap((p) => {
744
+ var w;
745
+ return I((w = p.autocomplete) == null ? void 0 : w.templates);
746
+ })),
747
+ extractors: r.flatMap((p) => {
748
+ var w;
749
+ return I((w = p.autocomplete) == null ? void 0 : w.extractors);
750
+ }).sort((p, w) => (p.order || 0) - (w.order || 0)),
751
+ shorthands: un(r.map((p) => {
752
+ var w;
753
+ return ((w = p.autocomplete) == null ? void 0 : w.shorthands) || {};
754
+ }))
755
+ };
756
+ let x = c("separators");
757
+ x.length || (x = [":", "-"]);
758
+ const y = {
759
+ mergeSelectors: !0,
760
+ warn: !0,
761
+ sortLayers: (p) => p,
762
+ ...n,
763
+ blocklist: c("blocklist"),
764
+ presets: o,
765
+ envMode: n.envMode || "build",
766
+ shortcutsLayer: n.shortcutsLayer || "shortcuts",
767
+ layers: l,
768
+ theme: m,
769
+ rulesSize: _,
770
+ rulesDynamic: h,
771
+ rulesStaticMap: d,
772
+ preprocess: c("preprocess"),
773
+ postprocess: c("postprocess"),
774
+ preflights: c("preflights"),
775
+ autocomplete: C,
776
+ variants: c("variants").map(Ft).sort((p, w) => (p.order || 0) - (w.order || 0)),
777
+ shortcuts: $e(c("shortcuts")).reverse(),
778
+ extractors: f,
779
+ safelist: c("safelist"),
780
+ separators: x,
781
+ details: n.details ?? n.envMode === "dev"
782
+ };
783
+ for (const p of r)
784
+ (v = p == null ? void 0 : p.configResolved) == null || v.call(p, y);
785
+ return y;
786
+ }
787
+ function ln(e) {
788
+ return e.map((t) => t ? z(t) : {}).reduce((t, n) => Re(t, n), {});
789
+ }
790
+ function un(e) {
791
+ return e.reduce((t, n) => {
792
+ const s = {};
793
+ for (const o in n) {
794
+ const r = n[o];
795
+ Array.isArray(r) ? s[o] = `(${r.join("|")})` : s[o] = r;
796
+ }
797
+ return {
798
+ ...t,
799
+ ...s
800
+ };
801
+ }, {});
802
+ }
803
+ const fn = "0.59.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 mn {
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", sn()), 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, s = /* @__PURE__ */ new Set()) {
813
+ var r;
814
+ const o = {
815
+ original: t,
816
+ code: t,
817
+ id: n,
818
+ extracted: s,
819
+ envMode: this.config.envMode
820
+ };
821
+ for (const a of this.config.extractors) {
822
+ const l = await ((r = a.extract) == null ? void 0 : r.call(a, o));
823
+ if (l)
824
+ if (Y(l) && Y(s))
825
+ for (const c of l)
826
+ s.setCount(c, s.getCount(c) + l.getCount(c));
827
+ else
828
+ for (const c of l)
829
+ s.add(c);
830
+ }
831
+ return s;
832
+ }
833
+ makeContext(t, n) {
834
+ const s = {
835
+ rawSelector: t,
836
+ currentSelector: n[1],
837
+ theme: this.config.theme,
838
+ generator: this,
839
+ variantHandlers: n[2],
840
+ constructCSS: (...o) => this.constructCustomCSS(s, ...o),
841
+ variantMatch: n
842
+ };
843
+ return s;
844
+ }
845
+ async parseToken(t, n) {
846
+ var f;
847
+ if (this.blocked.has(t))
848
+ return;
849
+ const s = `${t}${n ? ` ${n}` : ""}`;
850
+ if (this._cache.has(s))
851
+ return this._cache.get(s);
852
+ let o = t;
853
+ for (const i of this.config.preprocess)
854
+ o = i(t);
855
+ if (this.isBlocked(o)) {
856
+ this.blocked.add(t), this._cache.set(s, null);
857
+ return;
858
+ }
859
+ const r = await this.matchVariants(t, o);
860
+ if (!r || this.isBlocked(r[1])) {
861
+ this.blocked.add(t), this._cache.set(s, null);
862
+ return;
863
+ }
864
+ const a = this.makeContext(t, [n || r[0], r[1], r[2], r[3]]);
865
+ this.config.details && (a.variants = [...r[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(Vt);
867
+ if (c != null && c.length)
868
+ return this._cache.set(s, c), c;
869
+ this._cache.set(s, null);
870
+ }
871
+ async generate(t, n = {}) {
872
+ const {
873
+ id: s,
874
+ scope: o,
875
+ preflights: r = !0,
876
+ safelist: a = !0,
877
+ minify: l = !1,
878
+ extendedInfo: c = !1
879
+ } = n, f = this.config.outputToCssLayers, i = U(t) ? await this.applyExtractors(
880
+ t,
881
+ s,
882
+ c ? new ke() : /* @__PURE__ */ new Set()
883
+ ) : Array.isArray(t) ? new Set(t) : t;
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
+ }
893
+ const u = l ? "" : `
894
+ `, d = /* @__PURE__ */ new Set([q]), _ = c ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Map();
895
+ let m = {};
896
+ const b = Array.from(i).map(async (v) => {
897
+ var w;
898
+ if (_.has(v))
899
+ return;
900
+ const p = await this.parseToken(v);
901
+ if (p != null) {
902
+ _ instanceof Map ? _.set(v, {
903
+ data: p,
904
+ count: Y(i) ? i.getCount(v) : -1
905
+ }) : _.add(v);
906
+ for (const R of p) {
907
+ const O = R[3] || "", L = (w = R[4]) == null ? void 0 : w.layer;
908
+ h.has(O) || h.set(O, []), h.get(O).push(R), L && d.add(L);
909
+ }
910
+ }
911
+ });
912
+ await Promise.all(b), await (async () => {
913
+ if (!r)
914
+ return;
915
+ const v = {
916
+ generator: this,
917
+ theme: this.config.theme
918
+ }, p = /* @__PURE__ */ new Set([]);
919
+ this.config.preflights.forEach(({ layer: w = ne }) => {
920
+ d.add(w), p.add(w);
921
+ }), m = Object.fromEntries(
922
+ await Promise.all(Array.from(p).map(
923
+ async (w) => {
924
+ const O = (await Promise.all(
925
+ this.config.preflights.filter((L) => (L.layer || ne) === w).map(async (L) => await L.getCSS(v))
926
+ )).filter(Boolean).join(u);
927
+ return [w, O];
928
+ }
929
+ ))
930
+ );
931
+ })();
932
+ const C = 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) => {
933
+ var R;
934
+ if (x[v])
935
+ return x[v];
936
+ let p = Array.from(h).sort((O, L) => {
937
+ var N;
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;
939
+ }).map(([O, L]) => {
940
+ const N = L.length, j = L.filter((k) => {
941
+ var g;
942
+ return (((g = k[4]) == null ? void 0 : g.layer) || q) === v;
943
+ }).sort((k, g) => {
944
+ var E, A, M, T, $, V, ie;
945
+ return k[0] - g[0] || (((E = k[4]) == null ? void 0 : E.sort) || 0) - (((A = g[4]) == null ? void 0 : A.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;
946
+ }).map(([, k, g, , E, , A]) => [
947
+ [[(k && gn(k, o)) ?? "", (E == null ? void 0 : E.sort) ?? 0]],
948
+ g,
949
+ !!(A ?? (E == null ? void 0 : E.noMerge))
950
+ ]);
951
+ if (!j.length)
952
+ return;
953
+ const P = j.reverse().map(([k, g, E], A) => {
954
+ if (!E && this.config.mergeSelectors)
955
+ for (let T = A + 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;
959
+ }
960
+ const M = k ? W(k.sort((T, $) => {
961
+ var V;
962
+ return T[1] - $[1] || ((V = T[0]) == null ? void 0 : V.localeCompare($[0] || "")) || 0;
963
+ }).map((T) => T[0]).filter(Boolean)) : [];
964
+ return M.length ? `${M.join(`,${u}`)}{${g}}` : g;
965
+ }).filter(Boolean).reverse().join(u);
966
+ if (!O)
967
+ return P;
968
+ const F = O.split(" $$ ");
969
+ return `${F.join("{")}{${u}${P}${u}${"}".repeat(F.length)}`;
970
+ }).filter(Boolean).join(u);
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}}`);
974
+ }
975
+ const w = l ? "" : `/* layer: ${v} */${u}`;
976
+ return x[v] = p ? w + p : "";
977
+ }, S = (v = C, p) => v.filter((w) => !(p != null && p.includes(w))).map((w) => y(w) || "").filter(Boolean).join(u);
978
+ return {
979
+ get css() {
980
+ return S();
981
+ },
982
+ layers: C,
983
+ matched: _,
984
+ getLayers: S,
985
+ getLayer: y
986
+ };
987
+ }
988
+ async matchVariants(t, n) {
989
+ const s = /* @__PURE__ */ new Set(), o = [];
990
+ let r = 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 && s.has(c))
1000
+ continue;
1001
+ let f = await c.match(r, l);
1002
+ if (f) {
1003
+ if (U(f)) {
1004
+ if (f === r)
1005
+ continue;
1006
+ f = { matcher: f };
1007
+ }
1008
+ r = f.matcher, o.unshift(f), s.add(c), a = !0;
1009
+ break;
1010
+ }
1011
+ }
1012
+ if (!a)
1013
+ break;
1014
+ if (o.length > 500)
1015
+ throw new Error(`Too many variants applied to "${t}"`);
1016
+ }
1017
+ return [t, r, o, s];
1018
+ }
1019
+ applyVariants(t, n = t[4], s = t[1]) {
1020
+ const r = n.slice().sort((f, i) => (f.order || 0) - (i.order || 0)).reduceRight(
1021
+ (f, i) => (u) => {
1022
+ var h, m;
1023
+ const d = ((h = i.body) == null ? void 0 : h.call(i, u.entries)) || u.entries, _ = Array.isArray(i.parent) ? i.parent : [i.parent, void 0];
1024
+ return (i.handle ?? bn)({
1025
+ ...u,
1026
+ entries: d,
1027
+ selector: ((m = i.selector) == null ? void 0 : m.call(i, u.selector, d)) || u.selector,
1028
+ parent: _[0] || u.parent,
1029
+ parentOrder: _[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(s),
1038
+ pseudo: "",
1039
+ entries: t[2]
1040
+ }), { parent: a, parentOrder: l } = r;
1041
+ a != null && l != null && this.parentOrders.set(a, l);
1042
+ const c = {
1043
+ selector: [
1044
+ r.prefix,
1045
+ r.selector,
1046
+ r.pseudo
1047
+ ].join(""),
1048
+ entries: r.entries,
1049
+ parent: a,
1050
+ layer: r.layer,
1051
+ sort: r.sort,
1052
+ noMerge: r.noMerge
1053
+ };
1054
+ for (const f of this.config.postprocess)
1055
+ f(c);
1056
+ return c;
1057
+ }
1058
+ constructCustomCSS(t, n, s) {
1059
+ const o = G(n);
1060
+ if (U(o))
1061
+ return o;
1062
+ const { selector: r, entries: a, parent: l } = this.applyVariants([0, s || t.rawSelector, o, void 0, t.variantHandlers]), c = `${r}{${Q(a)}}`;
1063
+ return l ? `${l}{${c}}` : c;
1064
+ }
1065
+ async parseUtil(t, n, s = !1, o) {
1066
+ var i;
1067
+ const [r, a, l] = U(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] && (s || !((i = c[2]) != null && i.internal))) {
1071
+ this.config.details && n.rules.push(c[3]);
1072
+ const u = c[0], d = G(c[1]), _ = c[2];
1073
+ return U(d) ? [[u, d, _]] : [[u, r, d, _, l]];
1074
+ }
1075
+ n.variantHandlers = l;
1076
+ const { rulesDynamic: f } = this.config;
1077
+ for (const [u, d, _, h] of f) {
1078
+ if (h != null && h.internal && !s)
1079
+ continue;
1080
+ let m = a;
1081
+ if (h != null && h.prefix) {
1082
+ const y = I(h.prefix);
1083
+ if (o) {
1084
+ const S = I(o);
1085
+ if (!y.some((v) => S.includes(v)))
1086
+ continue;
1087
+ } else {
1088
+ const S = y.find((v) => a.startsWith(v));
1089
+ if (S == null)
1090
+ continue;
1091
+ m = a.slice(S.length);
1092
+ }
1093
+ }
1094
+ const b = m.match(d);
1095
+ if (!b)
1096
+ continue;
1097
+ const C = await _(b, n);
1098
+ if (!C)
1099
+ continue;
1100
+ this.config.details && n.rules.push([d, _, h]);
1101
+ const x = Nt(C).filter((y) => y.length);
1102
+ if (x.length)
1103
+ return x.map((y) => U(y) ? [u, y, h] : [u, r, y, h, 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: s, entries: o, parent: r, layer: a, sort: l, noMerge: c } = this.applyVariants(t), f = Q(o);
1112
+ if (!f)
1113
+ return;
1114
+ const { layer: i, sort: u, ...d } = t[3] ?? {}, _ = {
1115
+ ...d,
1116
+ layer: a ?? i,
1117
+ sort: l ?? u
1118
+ };
1119
+ return [t[0], s, f, r, _, this.config.details ? n : void 0, c];
1120
+ }
1121
+ async expandShortcut(t, n, s = 5) {
1122
+ var l;
1123
+ if (s === 0)
1124
+ return;
1125
+ const o = this.config.details ? (c) => {
1126
+ n.shortcuts = n.shortcuts ?? [], n.shortcuts.push(c);
1127
+ } : Gt;
1128
+ let r, a;
1129
+ for (const c of this.config.shortcuts) {
1130
+ let f = t;
1131
+ if ((l = c[2]) != null && l.prefix) {
1132
+ const u = I(c[2].prefix).find((d) => t.startsWith(d));
1133
+ if (u == null)
1134
+ continue;
1135
+ f = t.slice(u.length);
1136
+ }
1137
+ if (Pt(c)) {
1138
+ if (c[0] === f) {
1139
+ r = r || c[2], a = c[1], o(c);
1140
+ break;
1141
+ }
1142
+ } else {
1143
+ const i = f.match(c[0]);
1144
+ if (i && (a = c[1](i, n)), a) {
1145
+ r = r || c[2], o(c);
1146
+ break;
1147
+ }
1148
+ }
1149
+ }
1150
+ if (U(a) && (a = Zt(a.trim()).split(/\s+/g)), !a) {
1151
+ const [c, f] = U(t) ? await this.matchVariants(t) : t;
1152
+ if (c !== f) {
1153
+ const i = await this.expandShortcut(f, n, s - 1);
1154
+ i && (a = i[0].map((u) => U(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 (U(c) ? (f = await this.expandShortcut(c, n, s - 1)) == null ? void 0 : f[0] : void 0) || [c];
1162
+ }))).flat(1).filter(Boolean),
1163
+ r
1164
+ ];
1165
+ }
1166
+ async stringifyShortcuts(t, n, s, o = { layer: this.config.shortcutsLayer }) {
1167
+ var i;
1168
+ const r = new Wt(), a = (await Promise.all(W(s).map(async (u) => {
1169
+ const d = U(u) ? await this.parseUtil(u, n, !0, o.prefix) : [[Number.POSITIVE_INFINITY, "{inline}", G(u), void 0, []]];
1170
+ return !d && this.config.warn && Te(`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: _, parent: h, sort: m, noMerge: b, layer: C } = this.applyVariants(u, [...u[4], ...c], l);
1178
+ r.getFallback(C ?? o.layer, new qt()).getFallback(d, h, [[], u[0]])[0].push([_, !!(b ?? ((i = u[3]) == null ? void 0 : i.noMerge)), m ?? 0]);
1179
+ }
1180
+ return f.concat(r.flatMap(
1181
+ (u, d) => u.map(([_, h], m, b) => {
1182
+ const C = (y, S, v) => {
1183
+ const p = Math.max(...v.map((R) => R[1])), w = v.map((R) => R[0]);
1184
+ return (y ? [w.flat(1)] : w).map((R) => {
1185
+ const O = Q(R);
1186
+ if (O)
1187
+ return [h, m, O, b, { ...o, noMerge: S, sort: p, layer: d }, n, void 0];
1188
+ });
1189
+ };
1190
+ return [
1191
+ [_.filter(([, y]) => y).map(([y, , S]) => [y, S]), !0],
1192
+ [_.filter(([, y]) => !y).map(([y, , S]) => [y, S]), !1]
1193
+ ].map(([y, S]) => [
1194
+ ...C(!1, S, y.filter(([v]) => v.some((p) => p[0] === le))),
1195
+ ...C(!0, S, y.filter(([v]) => v.every((p) => p[0] !== le)))
1196
+ ]);
1197
+ }).flat(2).filter(Boolean)
1198
+ ));
1199
+ }
1200
+ isBlocked(t) {
1201
+ return !t || this.config.blocklist.some((n) => typeof n == "function" ? n(t) : U(n) ? n === t : n.test(t));
1202
+ }
1203
+ }
1204
+ function hn(e, t) {
1205
+ return new mn(e, t);
1206
+ }
1207
+ const Me = /\s\$\$\s+/g;
1208
+ function _n(e) {
1209
+ return Me.test(e);
1210
+ }
1211
+ function gn(e, t) {
1212
+ return _n(e) ? e.replace(Me, t ? ` ${t} ` : " ") : t ? `${t} ${e}` : e;
1213
+ }
1214
+ const me = /^\[(.+?)(~?=)"(.*)"\]$/;
1215
+ function yn(e) {
1216
+ return me.test(e) ? e.replace(me, (t, n, s, o) => `[${X(n)}${s}"${X(o)}"]`) : `.${X(e)}`;
1217
+ }
1218
+ function bn(e, t) {
1219
+ return t(e);
1220
+ }
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:42A1DD38-0894-435F-8A99-368B69BD8EAA", 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.hIbk1CMcRx/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/7723_1714136767405/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/1193_1714109727664/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: "5ABC45EB-59AF-406A-98E9-CCE655CDC232", 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/7723_1714136767405", TURBO_HASH: "8231f778df7e5812", 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.3", 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:42A1DD38-0894-435F-8A99-368B69BD8EAA", 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: "186a3", 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" };
1222
+ const vn = Object.freeze(
1223
+ {
1224
+ left: 0,
1225
+ top: 0,
1226
+ width: 16,
1227
+ height: 16
1228
+ }
1229
+ ), K = Object.freeze({
1230
+ rotate: 0,
1231
+ vFlip: !1,
1232
+ hFlip: !1
1233
+ }), Ue = Object.freeze({
1234
+ ...vn,
1235
+ ...K
1236
+ }), wn = Object.freeze({
1237
+ ...Ue,
1238
+ body: "",
1239
+ hidden: !1
1240
+ }), Sn = Object.freeze({
1241
+ width: null,
1242
+ height: null
1243
+ }), Ie = Object.freeze({
1244
+ // Dimensions
1245
+ ...Sn,
1246
+ // Transformations
1247
+ ...K
1248
+ });
1249
+ function En(e, t) {
1250
+ const n = {};
1251
+ !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
1252
+ const s = ((e.rotate || 0) + (t.rotate || 0)) % 4;
1253
+ return s && (n.rotate = s), n;
1254
+ }
1255
+ function _e(e, t) {
1256
+ const n = En(e, t);
1257
+ for (const s in wn)
1258
+ s in K ? s in e && !(s in n) && (n[s] = K[s]) : s in t ? n[s] = t[s] : s in e && (n[s] = e[s]);
1259
+ return n;
1260
+ }
1261
+ function xn(e, t) {
1262
+ const n = e.icons, s = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
1263
+ function r(a) {
1264
+ if (n[a])
1265
+ return o[a] = [];
1266
+ if (!(a in o)) {
1267
+ o[a] = null;
1268
+ const l = s[a] && s[a].parent, c = l && r(l);
1269
+ c && (o[a] = [l].concat(c));
1270
+ }
1271
+ return o[a];
1272
+ }
1273
+ return (t || Object.keys(n).concat(Object.keys(s))).forEach(r), o;
1274
+ }
1275
+ function ge(e, t, n) {
1276
+ const s = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
1277
+ let r = {};
1278
+ function a(l) {
1279
+ r = _e(
1280
+ s[l] || o[l],
1281
+ r
1282
+ );
1283
+ }
1284
+ return a(t), n.forEach(a), _e(e, r);
1285
+ }
1286
+ function An(e, t) {
1287
+ if (e.icons[t])
1288
+ return ge(e, t, []);
1289
+ const n = xn(e, [t])[t];
1290
+ return n ? ge(e, t, n) : null;
1291
+ }
1292
+ const Cn = /(-?[0-9.]*[0-9]+[0-9.]*)/g, On = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
1293
+ function ye(e, t, n) {
1294
+ if (t === 1)
1295
+ return e;
1296
+ if (n = n || 100, typeof e == "number")
1297
+ return Math.ceil(e * t * n) / n;
1298
+ if (typeof e != "string")
1299
+ return e;
1300
+ const s = e.split(Cn);
1301
+ if (s === null || !s.length)
1302
+ return e;
1303
+ const o = [];
1304
+ let r = s.shift(), a = On.test(r);
1305
+ for (; ; ) {
1306
+ if (a) {
1307
+ const l = parseFloat(r);
1308
+ isNaN(l) ? o.push(r) : o.push(Math.ceil(l * t * n) / n);
1309
+ } else
1310
+ o.push(r);
1311
+ if (r = s.shift(), r === void 0)
1312
+ return o.join("");
1313
+ a = !a;
1314
+ }
1315
+ }
1316
+ function Rn(e, t = "defs") {
1317
+ let n = "";
1318
+ const s = e.indexOf("<" + t);
1319
+ for (; s >= 0; ) {
1320
+ const o = e.indexOf(">", s), r = e.indexOf("</" + t);
1321
+ if (o === -1 || r === -1)
1322
+ break;
1323
+ const a = e.indexOf(">", r);
1324
+ if (a === -1)
1325
+ break;
1326
+ n += e.slice(o + 1, r).trim(), e = e.slice(0, s).trim() + e.slice(a + 1);
1327
+ }
1328
+ return {
1329
+ defs: n,
1330
+ content: e
1331
+ };
1332
+ }
1333
+ function kn(e, t) {
1334
+ return e ? "<defs>" + e + "</defs>" + t : t;
1335
+ }
1336
+ function Tn(e, t, n) {
1337
+ const s = Rn(e);
1338
+ return kn(s.defs, t + s.content + n);
1339
+ }
1340
+ const re = (e) => e === "unset" || e === "undefined" || e === "none";
1341
+ function $n(e, t) {
1342
+ const n = {
1343
+ ...Ue,
1344
+ ...e
1345
+ }, s = {
1346
+ ...Ie,
1347
+ ...t
1348
+ }, o = {
1349
+ left: n.left,
1350
+ top: n.top,
1351
+ width: n.width,
1352
+ height: n.height
1353
+ };
1354
+ let r = n.body;
1355
+ [n, s].forEach((m) => {
1356
+ const b = [], C = m.hFlip, x = m.vFlip;
1357
+ let y = m.rotate;
1358
+ C ? x ? y += 2 : (b.push(
1359
+ "translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
1360
+ ), b.push("scale(-1 1)"), o.top = o.left = 0) : x && (b.push(
1361
+ "translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
1362
+ ), b.push("scale(1 -1)"), o.top = o.left = 0);
1363
+ let S;
1364
+ switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
1365
+ case 1:
1366
+ S = o.height / 2 + o.top, b.unshift(
1367
+ "rotate(90 " + S.toString() + " " + S.toString() + ")"
1368
+ );
1369
+ break;
1370
+ case 2:
1371
+ b.unshift(
1372
+ "rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
1373
+ );
1374
+ break;
1375
+ case 3:
1376
+ S = o.width / 2 + o.left, b.unshift(
1377
+ "rotate(-90 " + S.toString() + " " + S.toString() + ")"
1378
+ );
1379
+ break;
1380
+ }
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(
1382
+ r,
1383
+ '<g transform="' + b.join(" ") + '">',
1384
+ "</g>"
1385
+ ));
1386
+ });
1387
+ const a = s.width, l = s.height, c = o.width, f = o.height;
1388
+ let i, u;
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);
1390
+ const d = {}, _ = (m, b) => {
1391
+ re(b) || (d[m] = b.toString());
1392
+ };
1393
+ _("width", i), _("height", u);
1394
+ const h = [o.left, o.top, c, f];
1395
+ return d.viewBox = h.join(" "), {
1396
+ attributes: d,
1397
+ viewBox: h,
1398
+ body: r
1399
+ };
1400
+ }
1401
+ function Ln(e) {
1402
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1403
+ }
1404
+ function Mn(e) {
1405
+ let t = e.startsWith("<svg>") ? e.replace("<svg>", "<svg >") : e;
1406
+ return !t.includes(" xmlns:xlink=") && t.includes(" xlink:") && (t = t.replace(
1407
+ "<svg ",
1408
+ '<svg xmlns:xlink="http://www.w3.org/1999/xlink" '
1409
+ )), t.includes(" xmlns=") || (t = t.replace(
1410
+ "<svg ",
1411
+ '<svg xmlns="http://www.w3.org/2000/svg" '
1412
+ )), Ln(t);
1413
+ }
1414
+ function Un(e) {
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();
1416
+ }
1417
+ const In = /\swidth\s*=\s*["']([\w.]+)["']/, Nn = /\sheight\s*=\s*["']([\w.]+)["']/, Z = /<svg\s+/;
1418
+ function Dn(e, t, n) {
1419
+ const s = e.slice(0, e.indexOf(">")), o = (r, a) => {
1420
+ const l = a.exec(s), c = l != null, f = t[r];
1421
+ return !f && !re(f) && (typeof n == "number" ? n > 0 && (t[r] = `${n}em`) : l && (t[r] = l[1])), c;
1422
+ };
1423
+ return [o("width", In), o("height", Nn)];
1424
+ }
1425
+ async function Ne(e, t, n, s, o, r) {
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()) ?? {};
1427
+ await (f == null ? void 0 : f(t, n, i)), Object.keys(c).forEach((m) => {
1428
+ const b = c[m];
1429
+ b != null && (i[m] = b);
1430
+ }), r == null || r(i);
1431
+ const [u, d] = Dn(e, i, a);
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"));
1433
+ const _ = Object.keys(i).map(
1434
+ (m) => m === "width" && u || m === "height" && d ? null : `${m}="${i[m]}"`
1435
+ ).filter((m) => m != null);
1436
+ if (_.length && (e = e.replace(Z, `<svg ${_.join(" ")} `)), s) {
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}" `));
1439
+ }
1440
+ const h = s == null ? void 0 : s.usedProps;
1441
+ return h && (Object.keys(c).forEach((m) => {
1442
+ const b = i[m];
1443
+ b != null && (h[m] = b);
1444
+ }), typeof i.width < "u" && i.width !== null && (h.width = i.width), typeof i.height < "u" && i.height !== null && (h.height = i.height)), e;
1445
+ }
1446
+ async function be(e, t, n, s) {
1447
+ var r;
1448
+ let o;
1449
+ try {
1450
+ if (typeof e == "function")
1451
+ o = await e(n);
1452
+ else {
1453
+ const a = e[n];
1454
+ o = typeof a == "function" ? await a() : a;
1455
+ }
1456
+ } catch (a) {
1457
+ console.warn(
1458
+ `Failed to load custom icon "${n}" in "${t}":`,
1459
+ a
1460
+ );
1461
+ return;
1462
+ }
1463
+ if (o) {
1464
+ const a = o.indexOf("<svg");
1465
+ a > 0 && (o = o.slice(a));
1466
+ const { transform: l } = (s == null ? void 0 : s.customizations) ?? {};
1467
+ return o = typeof l == "function" ? await l(o, t, n) : o, o.startsWith("<svg") ? await Ne(
1468
+ ((r = s == null ? void 0 : s.customizations) == null ? void 0 : r.trimCustomSvg) === !0 ? Un(o) : o,
1469
+ t,
1470
+ n,
1471
+ s,
1472
+ void 0
1473
+ ) : (console.warn(
1474
+ `Custom icon "${n}" in "${t}" is not a valid SVG`
1475
+ ), o);
1476
+ }
1477
+ }
1478
+ async function De(e, t, n, s) {
1479
+ let o;
1480
+ const { customize: r } = (s == null ? void 0 : s.customizations) ?? {};
1481
+ for (const a of n)
1482
+ if (o = An(e, a), o) {
1483
+ let l = { ...Ie };
1484
+ typeof r == "function" && (l = r(l));
1485
+ const {
1486
+ attributes: { width: c, height: f, ...i },
1487
+ body: u
1488
+ } = $n(o, l), d = s == null ? void 0 : s.scale;
1489
+ return await Ne(
1490
+ // DON'T remove space on <svg >
1491
+ `<svg >${u}</svg>`,
1492
+ t,
1493
+ a,
1494
+ s,
1495
+ () => ({ ...i }),
1496
+ (_) => {
1497
+ const h = (m, b) => {
1498
+ const C = _[m];
1499
+ let x;
1500
+ if (!re(C)) {
1501
+ if (C)
1502
+ return;
1503
+ typeof d == "number" ? d && (x = `${d}em`) : x = b;
1504
+ }
1505
+ x ? _[m] = x : delete _[m];
1506
+ };
1507
+ h("width", c), h("height", f);
1508
+ }
1509
+ );
1510
+ }
1511
+ }
1512
+ const je = async (e, t, n) => {
1513
+ var o;
1514
+ const s = (o = n == null ? void 0 : n.customCollections) == null ? void 0 : o[e];
1515
+ if (s)
1516
+ if (typeof s == "function") {
1517
+ let r;
1518
+ try {
1519
+ r = await s(t);
1520
+ } catch (a) {
1521
+ console.warn(
1522
+ `Failed to load custom icon "${t}" in "${e}":`,
1523
+ a
1524
+ );
1525
+ return;
1526
+ }
1527
+ if (r) {
1528
+ if (typeof r == "string")
1529
+ return await be(
1530
+ () => r,
1531
+ e,
1532
+ t,
1533
+ n
1534
+ );
1535
+ if ("icons" in r) {
1536
+ const a = [
1537
+ t,
1538
+ t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
1539
+ t.replace(/([a-z])(\d+)/g, "$1-$2")
1540
+ ];
1541
+ return await De(
1542
+ r,
1543
+ e,
1544
+ a,
1545
+ n
1546
+ );
1547
+ }
1548
+ }
1549
+ } else
1550
+ return await be(s, e, t, n);
1551
+ };
1552
+ function jn(e) {
1553
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1554
+ }
1555
+ var Pn = [
1556
+ "academicons",
1557
+ "akar-icons",
1558
+ "ant-design",
1559
+ "arcticons",
1560
+ "basil",
1561
+ "bi",
1562
+ "bitcoin-icons",
1563
+ "bpmn",
1564
+ "brandico",
1565
+ "bx",
1566
+ "bxl",
1567
+ "bxs",
1568
+ "bytesize",
1569
+ "carbon",
1570
+ "cbi",
1571
+ "charm",
1572
+ "ci",
1573
+ "cib",
1574
+ "cif",
1575
+ "cil",
1576
+ "circle-flags",
1577
+ "circum",
1578
+ "clarity",
1579
+ "codicon",
1580
+ "covid",
1581
+ "cryptocurrency-color",
1582
+ "cryptocurrency",
1583
+ "dashicons",
1584
+ "devicon-line",
1585
+ "devicon-original",
1586
+ "devicon-plain",
1587
+ "devicon",
1588
+ "ei",
1589
+ "el",
1590
+ "emblemicons",
1591
+ "emojione-monotone",
1592
+ "emojione-v1",
1593
+ "emojione",
1594
+ "entypo-social",
1595
+ "entypo",
1596
+ "eos-icons",
1597
+ "ep",
1598
+ "et",
1599
+ "eva",
1600
+ "f7",
1601
+ "fa-brands",
1602
+ "fa-regular",
1603
+ "fa-solid",
1604
+ "fa",
1605
+ "fa6-brands",
1606
+ "fa6-regular",
1607
+ "fa6-solid",
1608
+ "fad",
1609
+ "fe",
1610
+ "feather",
1611
+ "file-icons",
1612
+ "flag",
1613
+ "flagpack",
1614
+ "flat-color-icons",
1615
+ "flat-ui",
1616
+ "flowbite",
1617
+ "fluent-emoji-flat",
1618
+ "fluent-emoji-high-contrast",
1619
+ "fluent-emoji",
1620
+ "fluent-mdl2",
1621
+ "fluent",
1622
+ "fontelico",
1623
+ "fontisto",
1624
+ "formkit",
1625
+ "foundation",
1626
+ "fxemoji",
1627
+ "gala",
1628
+ "game-icons",
1629
+ "geo",
1630
+ "gg",
1631
+ "gis",
1632
+ "gravity-ui",
1633
+ "gridicons",
1634
+ "grommet-icons",
1635
+ "guidance",
1636
+ "healthicons",
1637
+ "heroicons-outline",
1638
+ "heroicons-solid",
1639
+ "heroicons",
1640
+ "humbleicons",
1641
+ "ic",
1642
+ "icomoon-free",
1643
+ "icon-park-outline",
1644
+ "icon-park-solid",
1645
+ "icon-park-twotone",
1646
+ "icon-park",
1647
+ "iconamoon",
1648
+ "iconoir",
1649
+ "icons8",
1650
+ "il",
1651
+ "ion",
1652
+ "iwwa",
1653
+ "jam",
1654
+ "la",
1655
+ "lets-icons",
1656
+ "line-md",
1657
+ "logos",
1658
+ "ls",
1659
+ "lucide",
1660
+ "mage",
1661
+ "majesticons",
1662
+ "maki",
1663
+ "map",
1664
+ "marketeq",
1665
+ "material-symbols-light",
1666
+ "material-symbols",
1667
+ "mdi-light",
1668
+ "mdi",
1669
+ "medical-icon",
1670
+ "memory",
1671
+ "meteocons",
1672
+ "mi",
1673
+ "mingcute",
1674
+ "mono-icons",
1675
+ "mynaui",
1676
+ "nimbus",
1677
+ "nonicons",
1678
+ "noto-v1",
1679
+ "noto",
1680
+ "octicon",
1681
+ "oi",
1682
+ "ooui",
1683
+ "openmoji",
1684
+ "oui",
1685
+ "pajamas",
1686
+ "pepicons-pencil",
1687
+ "pepicons-pop",
1688
+ "pepicons-print",
1689
+ "pepicons",
1690
+ "ph",
1691
+ "pixelarticons",
1692
+ "prime",
1693
+ "ps",
1694
+ "quill",
1695
+ "radix-icons",
1696
+ "raphael",
1697
+ "ri",
1698
+ "si-glyph",
1699
+ "simple-icons",
1700
+ "simple-line-icons",
1701
+ "skill-icons",
1702
+ "solar",
1703
+ "streamline-emojis",
1704
+ "streamline",
1705
+ "subway",
1706
+ "svg-spinners",
1707
+ "system-uicons",
1708
+ "tabler",
1709
+ "tdesign",
1710
+ "teenyicons",
1711
+ "token-branded",
1712
+ "token",
1713
+ "topcoat",
1714
+ "twemoji",
1715
+ "typcn",
1716
+ "uil",
1717
+ "uim",
1718
+ "uis",
1719
+ "uit",
1720
+ "uiw",
1721
+ "unjs",
1722
+ "vaadin",
1723
+ "vs",
1724
+ "vscode-icons",
1725
+ "websymbol",
1726
+ "whh",
1727
+ "wi",
1728
+ "wpf",
1729
+ "zmdi",
1730
+ "zondicons"
1731
+ ];
1732
+ const Fn = /* @__PURE__ */ jn(Pn), Vn = 3;
1733
+ function Gn(e) {
1734
+ return (t = {}) => {
1735
+ const {
1736
+ scale: n = 1,
1737
+ mode: s = "auto",
1738
+ prefix: o = "i-",
1739
+ warn: r = !1,
1740
+ collections: a,
1741
+ extraProperties: l = {},
1742
+ customizations: c = {},
1743
+ autoInstall: f = !1,
1744
+ collectionsNodeResolvePath: i,
1745
+ layer: u = "icons",
1746
+ unit: d
1747
+ } = t, _ = Hn(), h = {
1748
+ addXmlNs: !0,
1749
+ scale: n,
1750
+ customCollections: a,
1751
+ autoInstall: f,
1752
+ cwd: i,
1753
+ // avoid warn from @iconify/loader: we'll warn below if not found
1754
+ warn: void 0,
1755
+ customizations: {
1756
+ ...c,
1757
+ additionalProps: { ...l },
1758
+ trimCustomSvg: !0,
1759
+ async iconCustomizer(b, C, x) {
1760
+ var y;
1761
+ await ((y = c.iconCustomizer) == null ? void 0 : y.call(c, b, C, x)), d && (x.width || (x.width = `${n}${d}`), x.height || (x.height = `${n}${d}`));
1762
+ }
1763
+ }
1764
+ };
1765
+ let m;
1766
+ return {
1767
+ name: "@unocss/preset-icons",
1768
+ enforce: "pre",
1769
+ options: t,
1770
+ layers: { icons: -30 },
1771
+ rules: [[
1772
+ /^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,
1773
+ async ([b, C, x = s]) => {
1774
+ let y = "", S = "", v;
1775
+ m = m || await e(t);
1776
+ const p = {};
1777
+ if (C.includes(":"))
1778
+ [y, S] = C.split(":"), v = await m(y, S, { ...h, usedProps: p });
1779
+ else {
1780
+ const R = C.split(/-/g);
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--)
1782
+ ;
1783
+ }
1784
+ if (!v) {
1785
+ r && !_.isESLint && Te(`failed to load icon "${b}"`);
1786
+ return;
1787
+ }
1788
+ const w = `url("data:image/svg+xml;utf8,${Mn(v)}")`;
1789
+ return x === "auto" && (x = v.includes("currentColor") ? "mask" : "bg"), x === "mask" ? {
1790
+ "--un-icon": w,
1791
+ "-webkit-mask": "var(--un-icon) no-repeat",
1792
+ mask: "var(--un-icon) no-repeat",
1793
+ "-webkit-mask-size": "100% 100%",
1794
+ "mask-size": "100% 100%",
1795
+ "background-color": "currentColor",
1796
+ // for Safari https://github.com/elk-zone/elk/pull/264
1797
+ color: "inherit",
1798
+ ...p
1799
+ } : {
1800
+ background: `${w} no-repeat`,
1801
+ "background-size": "100% 100%",
1802
+ "background-color": "transparent",
1803
+ ...p
1804
+ };
1805
+ },
1806
+ { layer: u, prefix: o }
1807
+ ]]
1808
+ };
1809
+ };
1810
+ }
1811
+ function Pe(e, t) {
1812
+ const n = /* @__PURE__ */ new Map();
1813
+ function s(o) {
1814
+ if (Fn.includes(o))
1815
+ return n.has(o) || n.set(o, e(`${t}@iconify-json/${o}/icons.json`)), n.get(o);
1816
+ }
1817
+ return async (o, r, a) => {
1818
+ let l = await je(o, r, a);
1819
+ if (l)
1820
+ return l;
1821
+ const c = await s(o);
1822
+ if (c) {
1823
+ const f = [
1824
+ r,
1825
+ r.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
1826
+ r.replace(/([a-z])(\d+)/g, "$1-$2")
1827
+ ];
1828
+ l = await De(c, o, f, a);
1829
+ }
1830
+ return l;
1831
+ };
1832
+ }
1833
+ function Hn() {
1834
+ const e = typeof process < "u" && process.stdout && !process.versions.deno, t = e && !!he.VSCODE_CWD, n = e && !!he.ESLINT;
1835
+ return {
1836
+ isNode: e,
1837
+ isVSCode: t,
1838
+ isESLint: n
1839
+ };
1840
+ }
1841
+ function Bn(e) {
1842
+ return Pe(Mt, e);
1843
+ }
1844
+ const zn = Gn(async (e) => {
1845
+ const t = e == null ? void 0 : e.customFetch, n = e == null ? void 0 : e.cdn;
1846
+ return t && n ? Pe(t, n) : n ? Bn(n) : je;
1847
+ });
1848
+ function qn(e) {
1849
+ return e.replace(/-(\w)/g, (t, n) => n ? n.toUpperCase() : "");
1850
+ }
1851
+ function ve(e) {
1852
+ return e.charAt(0).toUpperCase() + e.slice(1);
1853
+ }
1854
+ function we(e) {
1855
+ return e.replace(/(?:^|\B)([A-Z])/g, "-$1").toLowerCase();
1856
+ }
1857
+ var Se = ["Webkit", "Moz", "ms"];
1858
+ function Wn(e) {
1859
+ const t = {};
1860
+ function n(s) {
1861
+ const o = t[s];
1862
+ if (o)
1863
+ return o;
1864
+ let r = qn(s);
1865
+ if (r !== "filter" && r in e)
1866
+ return t[s] = we(r);
1867
+ r = ve(r);
1868
+ for (let a = 0; a < Se.length; a++) {
1869
+ const l = `${Se[a]}${r}`;
1870
+ if (l in e)
1871
+ return t[s] = we(ve(l));
1872
+ }
1873
+ return s;
1874
+ }
1875
+ return ({ entries: s }) => s.forEach((o) => {
1876
+ o[0].startsWith("--") || (o[0] = n(o[0]));
1877
+ });
1878
+ }
1879
+ function Kn(e) {
1880
+ return e.replace(/&amp;/g, "&").replace(/&gt;/g, ">").replace(/&lt;/g, "<");
1881
+ }
1882
+ function Jn(e = {}) {
1883
+ var P, F, k;
1884
+ if (typeof window > "u") {
1885
+ console.warn("@unocss/runtime been used in non-browser environment, skipped.");
1886
+ return;
1887
+ }
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";
1889
+ r.autoPrefix && (a.postprocess = I(a.postprocess)).unshift(Wn(n.createElement("div").style)), (P = r.configResolved) == null || P.call(r, o, a);
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();
1891
+ let d = !0, _ = /* @__PURE__ */ new Set(), h, m, b = [];
1892
+ const C = () => new Promise((g) => {
1893
+ b.push(g), m != null && clearTimeout(m), m = setTimeout(() => S().then(() => {
1894
+ const E = b;
1895
+ b = [], E.forEach((A) => A());
1896
+ }), 0);
1897
+ });
1898
+ function x(g) {
1899
+ if (g.nodeType !== 1)
1900
+ return;
1901
+ const E = g;
1902
+ E.hasAttribute(l) && E.removeAttribute(l), E.querySelectorAll(`[${l}]`).forEach((A) => {
1903
+ A.removeAttribute(l);
1904
+ });
1905
+ }
1906
+ function y(g, E) {
1907
+ let A = u.get(g);
1908
+ if (!A)
1909
+ if (A = n.createElement("style"), A.setAttribute("data-unocss-runtime-layer", g), u.set(g, A), E == null)
1910
+ f(A);
1911
+ else {
1912
+ const M = y(E), T = M.parentNode;
1913
+ T ? T.insertBefore(A, M.nextSibling) : f(A);
1914
+ }
1915
+ return A;
1916
+ }
1917
+ async function S() {
1918
+ const g = await c.generate(_);
1919
+ return g.layers.reduce((E, A) => (y(A, E).innerHTML = g.getLayer(A) ?? "", A), void 0), _ = g.matched, {
1920
+ ...g,
1921
+ getStyleElement: (E) => u.get(E),
1922
+ getStyleElements: () => u
1923
+ };
1924
+ }
1925
+ async function v(g) {
1926
+ const E = _.size;
1927
+ await c.applyExtractors(g, void 0, _), E !== _.size && await C();
1928
+ }
1929
+ async function p(g = i()) {
1930
+ const E = g && g.outerHTML;
1931
+ E && (await v(`${E} ${Kn(E)}`), x(s()), x(g));
1932
+ }
1933
+ const w = new MutationObserver((g) => {
1934
+ d || g.forEach(async (E) => {
1935
+ if (E.target.nodeType !== 1)
1936
+ return;
1937
+ const A = E.target;
1938
+ for (const M of u)
1939
+ if (A === M[1])
1940
+ return;
1941
+ if (E.type === "childList")
1942
+ E.addedNodes.forEach(async (M) => {
1943
+ if (M.nodeType !== 1)
1944
+ return;
1945
+ const T = M;
1946
+ h && !h(T) || (await v(T.outerHTML), x(T));
1947
+ });
1948
+ else {
1949
+ if (h && !h(A))
1950
+ return;
1951
+ if (E.attributeName !== l) {
1952
+ const M = Array.from(A.attributes).map(($) => $.value ? `${$.name}="${$.value}"` : $.name).join(" "), T = `<${A.tagName.toLowerCase()} ${M}>`;
1953
+ await v(T);
1954
+ }
1955
+ A.hasAttribute(l) && A.removeAttribute(l);
1956
+ }
1957
+ });
1958
+ });
1959
+ let R = !1;
1960
+ function O() {
1961
+ var E, A;
1962
+ if (R)
1963
+ return;
1964
+ const g = (E = r.observer) != null && E.target ? r.observer.target() : i();
1965
+ g && (w.observe(g, {
1966
+ childList: !0,
1967
+ subtree: !0,
1968
+ attributes: !0,
1969
+ attributeFilter: (A = r.observer) == null ? void 0 : A.attributeFilter
1970
+ }), R = !0);
1971
+ }
1972
+ function L() {
1973
+ r.bypassDefined && Xn(c.blocked), p(), O();
1974
+ }
1975
+ function N() {
1976
+ n.readyState === "loading" ? t.addEventListener("DOMContentLoaded", L) : L();
1977
+ }
1978
+ const j = t.__unocss_runtime = t.__unocss_runtime = {
1979
+ version: c.version,
1980
+ uno: c,
1981
+ async extract(g) {
1982
+ U(g) || (g.forEach((E) => _.add(E)), g = ""), await v(g);
1983
+ },
1984
+ extractAll: p,
1985
+ inspect(g) {
1986
+ h = g;
1987
+ },
1988
+ toggleObserver(g) {
1989
+ g === void 0 ? d = !d : d = !!g, !R && !d && N();
1990
+ },
1991
+ update: S,
1992
+ presets: ((F = t.__unocss_runtime) == null ? void 0 : F.presets) ?? {}
1993
+ };
1994
+ ((k = r.ready) == null ? void 0 : k.call(r, j)) !== !1 && (d = !1, N());
1995
+ }
1996
+ function Xn(e = /* @__PURE__ */ new Set()) {
1997
+ for (let t = 0; t < document.styleSheets.length; t++) {
1998
+ const n = document.styleSheets[t];
1999
+ let s;
2000
+ try {
2001
+ if (s = n.cssRules || n.rules, !s)
2002
+ continue;
2003
+ Array.from(s).flatMap((o) => {
2004
+ var r;
2005
+ return ((r = o.selectorText) == null ? void 0 : r.split(/,/g)) || [];
2006
+ }).forEach((o) => {
2007
+ o && (o = o.trim(), o.startsWith(".") && (o = o.slice(1)), e.add(o));
2008
+ });
2009
+ } catch {
2010
+ continue;
2011
+ }
2012
+ }
2013
+ return e;
2014
+ }
2015
+ Jn({
2016
+ defaults: {
2017
+ presets: [
2018
+ zn({
2019
+ prefix: ["i-", ""],
2020
+ collections: {},
2021
+ cdn: "https://esm.sh/",
2022
+ scale: 1.2,
2023
+ extraProperties: {
2024
+ display: "inline-block",
2025
+ "vertical-align": "middle"
2026
+ }
2027
+ })
2028
+ ]
2029
+ },
2030
+ bypassDefined: !0
2031
+ });