@nuxt/devtools 1.1.4 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/chunks/module-main.mjs +4 -3
- package/dist/client/200.html +21 -21
- package/dist/client/404.html +21 -21
- package/dist/client/_nuxt/{CEdN8S4v.js → 3yXnKq4C.js} +1 -1
- package/dist/client/_nuxt/8vVaiFyN.js +1 -0
- package/dist/client/_nuxt/{CwJAxf0e.js → BKROsu9M.js} +1 -1
- package/dist/client/_nuxt/{CyTWEZ1C.js → BNbY1jCQ.js} +1 -1
- package/dist/client/_nuxt/{0ECj5KoP.js → BX_yun5E.js} +2 -2
- package/dist/client/_nuxt/BZMq3h7l.js +1031 -0
- package/dist/client/_nuxt/{GcVquUAz.js → B_ROKca0.js} +1 -1
- package/dist/client/_nuxt/{BhKjQrbd.js → Bbe7V3sH.js} +1 -1
- package/dist/client/_nuxt/{B3w9ZjT2.js → BluVLImH.js} +1 -1
- package/dist/client/_nuxt/{Dsi0eEJ6.js → Bm01LnY_.js} +1 -1
- package/dist/client/_nuxt/{C8hDz-wQ.js → BvY_Q6Ny.js} +1 -1
- package/dist/client/_nuxt/{wVx_DGYO.js → BwcgHM_R.js} +1 -1
- package/dist/client/_nuxt/C5RWud-q.js +99 -0
- package/dist/client/_nuxt/{BrC6rypa.js → C6_5TE6z.js} +1 -1
- package/dist/client/_nuxt/{DqHjaVvD.js → CE1aCf8a.js} +1 -1
- package/dist/client/_nuxt/{BflD8-TM.js → CFcWLH5V.js} +1 -1
- package/dist/client/_nuxt/{DggdVF2v.js → CQ1WWl9n.js} +1 -1
- package/dist/client/_nuxt/{DcMlxMkO.js → CQwJxTyO.js} +1 -1
- package/dist/client/_nuxt/CYIc81Hh.js +9 -0
- package/dist/client/_nuxt/{BUdaSSAW.js → CYUk1Phb.js} +1 -1
- package/dist/client/_nuxt/{MadyLOQV.js → C_6aSAC7.js} +1 -1
- package/dist/client/_nuxt/{rnGGU-BS.js → CauQWwFB.js} +1 -1
- package/dist/client/_nuxt/{B-KlQcCq.js → Cgy-yYrX.js} +1 -1
- package/dist/client/_nuxt/{bUZNM7_n.js → ClFBqw1c.js} +1 -1
- package/dist/client/_nuxt/{BnSh6hlr.js → CmQBHnO5.js} +1 -1
- package/dist/client/_nuxt/{ByczdwHV.js → Cm_JFd_X.js} +1 -1
- package/dist/client/_nuxt/{DwmWVGDS.js → CoH69PTx.js} +1 -1
- package/dist/client/_nuxt/{DUE-gbeb.js → Cr5Lt2Bh.js} +1 -1
- package/dist/client/_nuxt/{CfWZksSX.js → CwLZOs-U.js} +1 -1
- package/dist/client/_nuxt/{BDGXTeaJ.js → Cykwuu7C.js} +1 -1
- package/dist/client/_nuxt/{Bj3Bekvw.js → D0GIdZjD.js} +1 -1
- package/dist/client/_nuxt/{5gOKvhnM.js → D2TLnKEp.js} +1 -1
- package/dist/client/_nuxt/D4k753MY.js +1 -0
- package/dist/client/_nuxt/{ChZyr1Qo.js → D8hnvtQ7.js} +1 -1
- package/dist/client/_nuxt/{Br83zsHb.js → D8i82D0r.js} +1 -1
- package/dist/client/_nuxt/{DfFJQbG4.js → DFF-wSSt.js} +2 -2
- package/dist/client/_nuxt/{B_BLxwpg.js → DFXWDr_U.js} +1 -1
- package/dist/client/_nuxt/{DCIMJJMV.js → DM7LQm-O.js} +1 -1
- package/dist/client/_nuxt/{CHgHv_XG.js → DPywwtwa.js} +1 -1
- package/dist/client/_nuxt/{BdVFjCXC.js → DUvGfBHy.js} +1 -1
- package/dist/client/_nuxt/{h5yVVie-.js → DVpEqQtB.js} +1 -1
- package/dist/client/_nuxt/{B1Qvv_W6.js → DXyT_6cw.js} +1 -1
- package/dist/client/_nuxt/{B_hov9lI.js → D_pwdbKS.js} +1 -1
- package/dist/client/_nuxt/{A1WiD9SJ.js → DaCkt_J7.js} +1 -1
- package/dist/client/_nuxt/{BgFcW465.js → Dbt1lqd7.js} +1 -1
- package/dist/client/_nuxt/{DjzVnWV-.js → DjE-sQMX.js} +1 -1
- package/dist/client/_nuxt/DlQNtCxN.js +1 -0
- package/dist/client/_nuxt/{CulMtG1h.js → Dlh-yUDi.js} +1 -1
- package/dist/client/_nuxt/{voSa2Wxu.js → Dow1QcrX.js} +1 -1
- package/dist/client/_nuxt/{DQVUztzW.js → Dpi9Vpa4.js} +1 -1
- package/dist/client/_nuxt/DptAiT3z.js +2 -0
- package/dist/client/_nuxt/{D-MdnXbW.js → DrTLrgyX.js} +1 -1
- package/dist/client/_nuxt/{9nmHRZiL.js → DrouHJc_.js} +1 -1
- package/dist/client/_nuxt/{GFjhHEHy.js → DzJVEN15.js} +1 -1
- package/dist/client/_nuxt/{WstCOOAW.js → E3u_JT2d.js} +1 -1
- package/dist/client/_nuxt/{CKA-9FRr.js → HezyzoNS.js} +1 -1
- package/dist/client/_nuxt/{DVIkezwA.js → QUVBuzQ1.js} +1 -1
- package/dist/client/_nuxt/{HWlWHQb4.js → TDzLXguC.js} +1 -1
- package/dist/client/_nuxt/{CES52tjx.js → VE_JCmIg.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/99d3dbae-7b79-44d1-9122-56d8f78db12b.json +1 -0
- package/dist/client/_nuxt/{entry.An-f-zS5.css → entry.CKLgeA_k.css} +1 -1
- package/dist/client/_nuxt/error-404.ClUqCsUG.css +1 -0
- package/dist/client/_nuxt/error-500.Xj6Xfe4d.css +1 -0
- package/dist/client/_nuxt/{CY0uLiRl.js → gY9iaHZB.js} +1 -1
- package/dist/client/_nuxt/{BzxmABFR.js → ooCcziGQ.js} +1 -1
- package/dist/client/_nuxt/pinia.zSt3sP7_.css +1 -0
- package/dist/client/_nuxt/qlO0zMWA.js +48 -0
- package/dist/client/_nuxt/{Caokbars.js → tVhGyT2d.js} +1 -1
- package/dist/client/_nuxt/{B34u2F_K.js → ylHKncut.js} +1 -1
- package/dist/client/index.html +21 -21
- package/dist/module.json +1 -1
- package/dist/runtime/function-metrics-helpers.mjs +2 -2
- package/dist/runtime/use-nuxt-devtools.mjs +1 -1
- package/package.json +34 -34
- package/dist/client/_nuxt/8M2ZArSR.js +0 -1
- package/dist/client/_nuxt/BVYSsK7b.js +0 -1
- package/dist/client/_nuxt/CgqO_dPK.js +0 -48
- package/dist/client/_nuxt/D1T_Af_5.js +0 -9
- package/dist/client/_nuxt/D9sigLWP.js +0 -105
- package/dist/client/_nuxt/DfuY3p1W.js +0 -982
- package/dist/client/_nuxt/Dhy1s6Ov.js +0 -1
- package/dist/client/_nuxt/YN8BIR6E.js +0 -2
- package/dist/client/_nuxt/builds/meta/47e69d29-cda4-4447-8cad-506a023a9bf1.json +0 -1
- package/dist/client/_nuxt/error-404.CbfoPaOP.css +0 -1
- package/dist/client/_nuxt/error-500.CgCLIzMa.css +0 -1
- package/dist/client/_nuxt/pinia.BtNy_tpA.css +0 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ Unleash Nuxt Developer Experience.
|
|
|
27
27
|
|
|
28
28
|
## Installation
|
|
29
29
|
|
|
30
|
-
> Nuxt DevTools requires **Nuxt v3.
|
|
30
|
+
> Nuxt DevTools requires **Nuxt v3.9.0 or higher**.
|
|
31
31
|
|
|
32
32
|
Nuxt DevTools is **enabled by default** in Nuxt v3.8.0. You can press <kbd>Shift</kbd> + <kbd>Alt</kbd> / <kbd>⇧ Shift</kbd> + <kbd>⌥ Option</kbd> + <kbd>D</kbd> in your app to open it up.
|
|
33
33
|
|
|
@@ -9,7 +9,7 @@ import { colors } from 'consola/utils';
|
|
|
9
9
|
import { createBirpcGroup } from 'birpc';
|
|
10
10
|
import { stringify, parse as parse$1 } from 'flatted';
|
|
11
11
|
import { d as defaultAllowedExtensions, a as defaultTabOptions, W as WS_EVENT_NAME } from '../shared/devtools.68e43ed6.mjs';
|
|
12
|
-
import { dirname, join as join$1, parse } from 'node:path';
|
|
12
|
+
import { dirname, join as join$1, relative, parse } from 'node:path';
|
|
13
13
|
import { randomStr } from '@antfu/utils';
|
|
14
14
|
import { hash } from 'ohash';
|
|
15
15
|
import { imageMeta } from 'image-meta';
|
|
@@ -30,7 +30,7 @@ import { snakeCase } from 'scule';
|
|
|
30
30
|
import Git from 'simple-git';
|
|
31
31
|
import { runtimeDir, clientDir, packageDir, isGlobalInstall } from '../dirs.mjs';
|
|
32
32
|
|
|
33
|
-
const version = "1.
|
|
33
|
+
const version = "1.2.0";
|
|
34
34
|
|
|
35
35
|
function getHomeDir() {
|
|
36
36
|
return process.env.XDG_CONFIG_HOME || homedir();
|
|
@@ -182,6 +182,7 @@ function setupAssetsRPC({ nuxt, ensureDevAuthToken, refresh, options }) {
|
|
|
182
182
|
refresh("getStaticAssets");
|
|
183
183
|
}, 500);
|
|
184
184
|
nuxt.hook("builder:watch", (event, key) => {
|
|
185
|
+
key = relative(nuxt.options.srcDir, resolve(nuxt.options.srcDir, key));
|
|
185
186
|
if (key.startsWith(nuxt.options.dir.public) && (event === "add" || event === "unlink"))
|
|
186
187
|
refreshDebounced();
|
|
187
188
|
});
|
|
@@ -1329,7 +1330,7 @@ async function enableModule(options, nuxt) {
|
|
|
1329
1330
|
return;
|
|
1330
1331
|
}
|
|
1331
1332
|
if (!nuxt.options.dev) {
|
|
1332
|
-
if (nuxt.options.build.analyze)
|
|
1333
|
+
if (nuxt.options.build.analyze && (nuxt.options.build.analyze === true || nuxt.options.build.analyze.enabled))
|
|
1333
1334
|
await import('./analyze-build.mjs').then(({ setup }) => setup(nuxt, options));
|
|
1334
1335
|
return;
|
|
1335
1336
|
}
|
package/dist/client/200.html
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!DOCTYPE html><html><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
|
-
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
3
|
+
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.CKLgeA_k.css">
|
|
4
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/qlO0zMWA.js">
|
|
5
5
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Blr6EMNg.js">
|
|
6
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
7
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
6
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CQ1WWl9n.js">
|
|
7
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DaCkt_J7.js">
|
|
8
8
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CupVZNk8.js">
|
|
9
9
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/C5gCGmDW.js">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CbYhyuC0.js">
|
|
@@ -14,25 +14,25 @@
|
|
|
14
14
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CbViG2Xw.js">
|
|
15
15
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DnNA5yXt.js">
|
|
16
16
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DvyTQcux.js">
|
|
17
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
17
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/D4k753MY.js">
|
|
18
18
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CsTmP73Z.js">
|
|
19
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
20
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
21
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
19
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Dpi9Vpa4.js">
|
|
20
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/E3u_JT2d.js">
|
|
21
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/gY9iaHZB.js">
|
|
22
22
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/D5r6TWiw.js">
|
|
23
23
|
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/NCodeBlock.Bcfh0aRP.css">
|
|
24
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
25
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
26
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
27
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
28
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
29
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
30
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
31
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
32
|
-
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.
|
|
33
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
34
|
-
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.
|
|
35
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
36
|
-
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
24
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BZMq3h7l.js">
|
|
25
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Dow1QcrX.js">
|
|
26
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DrouHJc_.js">
|
|
27
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Cykwuu7C.js">
|
|
28
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CwLZOs-U.js">
|
|
29
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DFXWDr_U.js">
|
|
30
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CFcWLH5V.js">
|
|
31
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BX_yun5E.js">
|
|
32
|
+
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.ClUqCsUG.css">
|
|
33
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DlQNtCxN.js">
|
|
34
|
+
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.Xj6Xfe4d.css">
|
|
35
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/8vVaiFyN.js">
|
|
36
|
+
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/qlO0zMWA.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
|
|
37
37
|
</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4,"once":5},{},false,{},{},["Set"]]</script>
|
|
38
38
|
<script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!DOCTYPE html><html><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
|
-
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
3
|
+
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.CKLgeA_k.css">
|
|
4
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/qlO0zMWA.js">
|
|
5
5
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Blr6EMNg.js">
|
|
6
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
7
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
6
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CQ1WWl9n.js">
|
|
7
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DaCkt_J7.js">
|
|
8
8
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CupVZNk8.js">
|
|
9
9
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/C5gCGmDW.js">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CbYhyuC0.js">
|
|
@@ -14,25 +14,25 @@
|
|
|
14
14
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CbViG2Xw.js">
|
|
15
15
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DnNA5yXt.js">
|
|
16
16
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DvyTQcux.js">
|
|
17
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
17
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/D4k753MY.js">
|
|
18
18
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CsTmP73Z.js">
|
|
19
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
20
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
21
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
19
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Dpi9Vpa4.js">
|
|
20
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/E3u_JT2d.js">
|
|
21
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/gY9iaHZB.js">
|
|
22
22
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/D5r6TWiw.js">
|
|
23
23
|
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/NCodeBlock.Bcfh0aRP.css">
|
|
24
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
25
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
26
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
27
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
28
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
29
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
30
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
31
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
32
|
-
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.
|
|
33
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
34
|
-
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.
|
|
35
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
36
|
-
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
24
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BZMq3h7l.js">
|
|
25
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Dow1QcrX.js">
|
|
26
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DrouHJc_.js">
|
|
27
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Cykwuu7C.js">
|
|
28
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CwLZOs-U.js">
|
|
29
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DFXWDr_U.js">
|
|
30
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CFcWLH5V.js">
|
|
31
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BX_yun5E.js">
|
|
32
|
+
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.ClUqCsUG.css">
|
|
33
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DlQNtCxN.js">
|
|
34
|
+
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.Xj6Xfe4d.css">
|
|
35
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/8vVaiFyN.js">
|
|
36
|
+
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/qlO0zMWA.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
|
|
37
37
|
</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4,"once":5},{},false,{},{},["Set"]]</script>
|
|
38
38
|
<script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as S}from"./
|
|
1
|
+
import{_ as S}from"./DVpEqQtB.js";import{_ as D}from"./D2TLnKEp.js";import{_ as C}from"./BNbY1jCQ.js";import{d as v,ab as B,a as x,bf as V,o as n,m,k as t,t as P,i as l,f,h as u,p as d,aq as F,aa as N,a6 as H,q as I,j as g,v as y,bh as E,av as W,F as k,n as j,G as q}from"./qlO0zMWA.js";import{_ as L}from"./C6_5TE6z.js";import{_ as M}from"./D8i82D0r.js";import"./CYUk1Phb.js";const z={flex:"~ gap2","items-center":""},A={w8:"","text-right":"","text-sm":"",op25:""},G={key:0,"flex-auto":"","text-right":""},R=v({__name:"PluginItem",props:{plugin:{},index:{}},setup(p){const e=p,a=B(),r=x(()=>V(e.plugin.src,a.value?.rootDir||"").path);return(i,c)=>{const _=S,o=D,s=C;return n(),m("div",z,[t("div",A,P(i.index),1),l(_,{filepath:e.plugin.src,subpath:!0},null,8,["filepath"]),t("div",null,[f(r).startsWith("#")?(n(),u(o,{key:0,n:"rose",textContent:"virtual"})):f(r).startsWith(".")?d("",!0):(n(),u(o,{key:1,n:"gray",textContent:"module"})),i.plugin.mode==="server"?(n(),u(o,{key:2,n:"teal",textContent:"server"})):d("",!0),i.plugin.mode==="client"?(n(),u(o,{key:3,n:"orange",textContent:"client"})):d("",!0)]),i.plugin.metric?.duration!=null?(n(),m("div",G,[l(s,{duration:i.plugin.metric?.duration,factor:10},null,8,["duration"])])):d("",!0)])}}}),Y={class:"n-tip n-tip-base",flex:"~ col items-start","mx--4":"",px4:"",py4:""},J={flex:"~ items-center gap-1","font-bold":""},K=v({__name:"HelpTip",props:{title:{},icon:{}},setup(p){return(e,a)=>{const r=H,i=F("ContentSlot");return n(),m("div",Y,[t("div",J,[e.icon?(n(),u(r,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):d("",!0),t("div",null,P(e.title),1)]),t("div",null,[N(e.$slots,"default",{},()=>[l(i,{use:e.$slots.default,unwrap:"p"},null,8,["use"])])])])}}}),O={};function Q(p,e){const a=K;return n(),u(a,{title:"Performance Tip",icon:"carbon-meter",n:"lime6 dark:lime5"},{default:g(()=>[N(p.$slots,"default")]),_:3})}const U=I(O,[["render",Q]]),X={class:"markdown-body"},Z=t("h1",null,"Plugins",-1),tt=t("p",null,[y("Nuxt plugins allow you to extend the functionality of the Nuxt runtime and the Vue instance. You can add plugins to the "),t("code",null,"plugins/"),y(" directory and they will be automatically imported and registered.")],-1),et=t("p",null,[t("a",{href:"https://nuxt.com/docs/guide/directory-structure/plugins",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),nt={__name:"plugins",setup(p,{expose:e}){return e({frontmatter:{}}),(r,i)=>{const c=U;return n(),m("div",X,[Z,tt,l(c,null,{default:g(()=>[y(" Plugins always run before your application's runtime. The loading time of each plugin will directly impact your application's initial loading time. ")]),_:1}),et])}}},ot={pt4:""},st={class:"text-sm",flex:"~ gap-1 items-center justify-start","mt-3":""},it=t("div",{"i-carbon-timer":"","text-lg":"",op75:""},null,-1),at=t("span",{op50:""},"Total execution time:",-1),dt=v({__name:"plugins",setup(p){const e=E(),a=W(),r=x(()=>{const c=e.value?.plugins||[],_=a.value?.metrics.clientPlugins()||[];return c.map(o=>{const s=typeof o=="string"?{src:o}:o;return{...s,metric:_.find(h=>h.src===s.src||h.src.startsWith(s.src))}})}),i=x(()=>{const c=a.value?.metrics.clientPlugins()||[],_=Math.min(...c.map(s=>s.start));return Math.max(...c.map(s=>s.end))-_});return(c,_)=>{const o=R,s=C,h=L,T=nt,w=M;return n(),m(k,null,[l(h,{icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${f(r).length}`},{default:g(()=>[t("div",ot,[(n(!0),m(k,null,j(f(r),($,b)=>(n(),u(o,{key:$.src,plugin:$,index:b+1,"ml--4":"","border-base":"",py2:"",class:q(b?"border-t":"")},null,8,["plugin","index","class"]))),128)),t("div",st,[it,at,l(s,{duration:f(i),factor:10},null,8,["duration"])])])]),_:1},8,["description"]),l(w,null,{default:g(()=>[l(T)]),_:1})],64)}}});export{dt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{q as o,s,o as a,m as i,k as e,t as r,y as u,z as l}from"./qlO0zMWA.js";const c=t=>(u("data-v-f3f8980b"),t=t(),l(),t),d={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},p=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},b=["textContent"],g=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const n=t;return s({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(m,x)=>(a(),i("div",d,[p,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:r(t.statusCode)},null,8,b),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:r(t.description)},null,8,g)])]))}},k=o(f,[["__scopeId","data-v-f3f8980b"]]);export{k as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as l,m as p,k as d,aa as a,G as s,o,h as i,p as m,X as u}from"./
|
|
1
|
+
import{d as l,m as p,k as d,aa as a,G as s,o,h as i,p as m,X as u}from"./qlO0zMWA.js";const h={flex:"~ gap4","items-center":""},g=l({__name:"NNavbar",props:{search:{},noPadding:{type:Boolean}},emits:["update:search"],setup(f,{emit:n}){const r=n;function t(e){r("update:search",e.target.value)}return(e,v)=>{const c=u;return o(),p("div",{flex:"~ col gap2",border:"b base","flex-1":"","n-navbar-glass":"",class:s([{p4:!e.noPadding}])},[d("div",h,[a(e.$slots,"search",{},()=>[e.search!==void 0?(o(),i(c,{key:0,placeholder:"Search...",icon:"carbon-search",n:"primary","flex-auto":"",class:s({"px-5 py-2":!e.noPadding}),value:e.search,onInput:t},null,8,["class","value"])):m("",!0)]),a(e.$slots,"actions")]),a(e.$slots,"default")],2)}}});export{g as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s,a as u,o as d,m as f,v as p,t as o,f as n,k as c,G as m}from"./
|
|
1
|
+
import{d as s,a as u,o as d,m as f,v as p,t as o,f as n,k as c,G as m}from"./qlO0zMWA.js";const x={"ml-1":"","text-xs":"",op50:""},g=s({__name:"DurationDisplay",props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(a){const t=a;function i(r){return t.color?r?(r=r*t.factor,r<.5?"text-gray:50":r>1e3?"text-red-400":r>500?"text-orange-400":r>200?"text-yellow-400":""):"text-gray-400":""}const e=u(()=>!t.duration||t.duration<1?["<1","ms"]:t.duration<1e3?[t.duration.toFixed(0),"ms"]:t.duration<1e3*60?[(t.duration/1e3).toFixed(1),"s"]:[(t.duration/1e3/60).toFixed(1),"min"]);return(r,l)=>(d(),f("div",{class:m(i(r.duration))},[p(o(n(e)[0]),1),c("span",x,o(n(e)[1]),1)],2))}});export{g as _};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as Ce}from"./CgqO_dPK.js";function Ae(t){const e=t.length;let n=-1,s,r="";const i=t.charCodeAt(0);for(;++n<e;){if(s=t.charCodeAt(n),s===0){r+="�";continue}if(s===37){r+="\\%";continue}if(s===44){r+="\\,";continue}if(s>=1&&s<=31||s===127||n===0&&s>=48&&s<=57||n===1&&s>=48&&s<=57&&i===45){r+=`\\${s.toString(16)} `;continue}if(n===0&&e===1&&s===45){r+=`\\${t.charAt(n)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){r+=t.charAt(n);continue}r+=`\\${t.charAt(n)}`}return r}const Y=Ae;function L(t=[]){return Array.isArray(t)?t:[t]}function G(t){return Array.from(new Set(t))}function Oe(t,e){return t.reduce((n,s)=>(n.findIndex(i=>e(s,i))===-1&&n.push(s),n),[])}function E(t){return typeof t=="string"}function R(t){return E(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Me(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>R(e)):[t]:[R(t)]}function Ee(t){return t.filter(([e,n],s)=>{if(e.startsWith("$$"))return!1;for(let r=s-1;r>=0;r--)if(t[r][0]===e&&t[r][1]===n)return!1;return!0})}function q(t){return t==null?"":Ee(t).map(([e,n])=>n!=null?`${e}:${n};`:void 0).filter(Boolean).join("")}function V(t){return t&&typeof t=="object"&&!Array.isArray(t)}function de(t,e,n=!1){const s=t,r=e;if(Array.isArray(r))return n&&Array.isArray(r)?[...s,...r]:[...r];const i={...s};return V(s)&&V(r)&&Object.keys(r).forEach(o=>{V(s[o])&&V(r[o])||Array.isArray(s[o])&&Array.isArray(r[o])?i[o]=de(s[o],r[o],n):Object.assign(i,{[o]:r[o]})}),i}function U(t){let e,n,s;if(Array.isArray(t)){for(n=Array(e=t.length);e--;)n[e]=(s=t[e])&&typeof s=="object"?U(s):s;return n}if(Object.prototype.toString.call(t)==="[object Object]"){n={};for(e in t)e==="__proto__"?Object.defineProperty(n,e,{value:U(t[e]),configurable:!0,enumerable:!0,writable:!0}):n[e]=(s=t[e])&&typeof s=="object"?U(s):s;return n}return t}function je(t){return E(t[0])}function ke(t){return E(t[0])}const Q="$$shortcut-no-merge";function Le(t){return typeof t=="function"?{match:t}:t}function ee(t){return t.length===3}function Pe(t){return t!=null}function Te(){}var ze=Object.defineProperty,Fe=(t,e,n)=>e in t?ze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ie=(t,e,n)=>(Fe(t,typeof e!="symbol"?e+"":e,n),n);class Ne{constructor(){Ie(this,"_map",new Map)}get(e,n){const s=this._map.get(e);if(s)return s.get(n)}getFallback(e,n,s){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(n)||r.set(n,s),r.get(n)}set(e,n,s){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(n,s),this}has(e,n){return this._map.get(e)?.has(n)}delete(e,n){return this._map.get(e)?.delete(n)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([n,s])=>Array.from(s.entries()).map(([r,i])=>e(i,n,r)))}}class Re extends Map{getFallback(e,n){const s=this.get(e);return s===void 0?(this.set(e,n),n):s}map(e){const n=[];return this.forEach((s,r)=>{n.push(e(s,r))}),n}flatMap(e){const n=[];return this.forEach((s,r)=>{n.push(...e(s,r))}),n}}var De=Object.defineProperty,Ve=(t,e,n)=>e in t?De(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Be=(t,e,n)=>(Ve(t,typeof e!="symbol"?e+"":e,n),n);class pe extends Set{constructor(e){super(e),Be(this,"_map"),this._map??(this._map=new Map)}add(e){return this._map??(this._map=new Map),this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,n){return this._map.set(e,n),super.add(e)}}function K(t){return t instanceof pe}const B={};function Ue(t=["-",":"]){const e=t.join("|");return B[e]||(B[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),B[e].lastIndex=0,B[e]}function He(t,e=["-",":"],n=5){const s=Ue(e);let r,i=t.toString();const o=new Set,a=new Map;do r=!1,i=i.replace(s,(f,c,h,y,w)=>{if(!e.includes(h))return f;r=!0,o.add(c+h);const x=w+c.length+h.length+1,m={length:f.length,items:[]};a.set(w,m);for(const g of[...y.matchAll(/\S+/g)]){const A=x+g.index;let d=a.get(A)?.items;d?a.delete(A):d=[{offset:A,length:g[0].length,className:g[0]}];for(const b of d)b.className=b.className==="~"?c:b.className.replace(/^(!?)(.*)/,`$1${c}${h}$2`),m.items.push(b)}return"$".repeat(f.length)}),n-=1;while(r&&n);let l;if(typeof t=="string"){l="";let f=0;for(const[c,h]of a)l+=t.slice(f,c),l+=h.items.map(y=>y.className).join(" "),f=c+h.length;l+=t.slice(f)}else{l=t;for(const[f,c]of a)l.overwrite(f,f+c.length,c.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(o),hasChanged:r,groupsByOffset:a,get expanded(){return l.toString()}}}function Ge(t,e=["-",":"],n=5){const s=He(t,e,n);return typeof t=="string"?s.expanded:t}const te=new Set;function me(t){te.has(t)||(console.warn("[unocss]",t),te.add(t))}const We=/[\\:]?[\s'"`;{}]+/g;function Ye(t){return t.split(We)}const qe={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ye(t)}};function Ke(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(n=>n(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(n=>n!==e)}}}const H="default",Z="preflights",Xe="shortcuts",Ze="imports",Je={[Ze]:-200,[Z]:-100,[Xe]:-10,[H]:0};function ge(t){return L(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}const ne="_uno_resolved";function Qe(t){let e=typeof t=="function"?t():t;if(ne in e)return e;e={...e},Object.defineProperty(e,ne,{value:!0,enumerable:!1});const n=e.shortcuts?ge(e.shortcuts):void 0;if(e.shortcuts=n,e.prefix||e.layer){const s=r=>{r[2]||(r[2]={});const i=r[2];i.prefix==null&&e.prefix&&(i.prefix=L(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};n?.forEach(s),e.rules?.forEach(s)}return e}function ye(t){const e=Qe(t);if(!e.presets)return[e];const n=(e.presets||[]).flatMap(L).flatMap(ye);return[e,...n]}function re(t={},e={}){const n=Object.assign({},e,t),s=Oe((n.presets||[]).flatMap(L).flatMap(ye),(u,p)=>u.name===p.name),r=[...s.filter(u=>u.enforce==="pre"),...s.filter(u=>!u.enforce),...s.filter(u=>u.enforce==="post")],i=[...r,n],o=[...i].reverse(),a=Object.assign({},Je,...i.map(u=>u.layers));function l(u){return G(i.flatMap(p=>L(p[u]||[])))}const f=l("extractors");let c=o.find(u=>u.extractorDefault!==void 0)?.extractorDefault;c===void 0&&(c=qe),c&&!f.includes(c)&&f.unshift(c),f.sort((u,p)=>(u.order||0)-(p.order||0));const h=l("rules"),y={},w=h.length,x=h.map((u,p)=>{if(je(u)){L(u[2]?.prefix||"").forEach(C=>{y[C+u[0]]=[p,u[1],u[2],u]});return}return[p,...u]}).filter(Boolean).reverse();let m=et(i.map(u=>u.theme));const g=l("extendTheme");for(const u of g)m=u(m)||m;const A={templates:G(i.flatMap(u=>L(u.autocomplete?.templates))),extractors:i.flatMap(u=>L(u.autocomplete?.extractors)).sort((u,p)=>(u.order||0)-(p.order||0)),shorthands:tt(i.map(u=>u.autocomplete?.shorthands||{}))};let d=l("separators");d.length||(d=[":","-"]);const b={mergeSelectors:!0,warn:!0,sortLayers:u=>u,...n,blocklist:l("blocklist"),presets:r,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:a,theme:m,rulesSize:w,rulesDynamic:x,rulesStaticMap:y,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:A,variants:l("variants").map(Le).sort((u,p)=>(u.order||0)-(p.order||0)),shortcuts:ge(l("shortcuts")).reverse(),extractors:f,safelist:l("safelist"),separators:d,details:n.details??n.envMode==="dev"};for(const u of i)u?.configResolved?.(b);return b}function et(t){return t.map(e=>e?U(e):{}).reduce((e,n)=>de(e,n),{})}function tt(t){return t.reduce((e,n)=>{const s={};for(const r in n){const i=n[r];Array.isArray(i)?s[r]=`(${i.join("|")})`:s[r]=i}return{...e,...s}},{})}const nt="0.58.6";var rt=Object.defineProperty,st=(t,e,n)=>e in t?rt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,N=(t,e,n)=>(st(t,typeof e!="symbol"?e+"":e,n),n);class it{constructor(e={},n={}){this.userConfig=e,this.defaults=n,N(this,"version",nt),N(this,"_cache",new Map),N(this,"config"),N(this,"blocked",new Set),N(this,"parentOrders",new Map),N(this,"events",Ke()),this.config=re(e,n),this.events.emit("config",this.config)}setConfig(e,n){e&&(n&&(this.defaults=n),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=re(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,n,s=new Set){const r={original:e,code:e,id:n,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const o=await i.extract?.(r);if(o)if(K(o)&&K(s))for(const a of o)s.setCount(a,s.getCount(a)+o.getCount(a));else for(const a of o)s.add(a)}return s}makeContext(e,n){const s={rawSelector:e,currentSelector:n[1],theme:this.config.theme,generator:this,variantHandlers:n[2],constructCSS:(...r)=>this.constructCustomCSS(s,...r),variantMatch:n};return s}async parseToken(e,n){if(this.blocked.has(e))return;const s=`${e}${n?` ${n}`:""}`;if(this._cache.has(s))return this._cache.get(s);let r=e;for(const f of this.config.preprocess)r=f(e);if(this.isBlocked(r)){this.blocked.add(e),this._cache.set(s,null);return}const i=await this.matchVariants(e,r);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(s,null);return}const o=this.makeContext(e,[n||i[0],i[1],i[2],i[3]]);this.config.details&&(o.variants=[...i[3]]);const a=await this.expandShortcut(o.currentSelector,o),l=a?await this.stringifyShortcuts(o.variantMatch,o,a[0],a[1]):(await this.parseUtil(o.variantMatch,o))?.map(f=>this.stringifyUtil(f,o)).filter(Pe);if(l?.length)return this._cache.set(s,l),l;this._cache.set(s,null)}async generate(e,n={}){const{id:s,scope:r,preflights:i=!0,safelist:o=!0,minify:a=!1,extendedInfo:l=!1}=n,f=this.config.outputToCssLayers,c=E(e)?await this.applyExtractors(e,s,l?new pe:new Set):Array.isArray(e)?new Set(e):e;o&&this.config.safelist.forEach(p=>{c.has(p)||c.add(p)});const h=a?"":`
|
|
2
|
-
`,y=new Set([H]),w=l?new Map:new Set,x=new Map;let m={};const g=Array.from(c).map(async p=>{if(w.has(p))return;const _=await this.parseToken(p);if(_!=null){w instanceof Map?w.set(p,{data:_,count:K(c)?c.getCount(p):-1}):w.add(p);for(const C of _){const O=C[3]||"",M=C[4]?.layer;x.has(O)||x.set(O,[]),x.get(O).push(C),M&&y.add(M)}}});await Promise.all(g),await(async()=>{if(!i)return;const p={generator:this,theme:this.config.theme},_=new Set([]);this.config.preflights.forEach(({layer:C=Z})=>{y.add(C),_.add(C)}),m=Object.fromEntries(await Promise.all(Array.from(_).map(async C=>{const M=(await Promise.all(this.config.preflights.filter(T=>(T.layer||Z)===C).map(async T=>await T.getCSS(p)))).filter(Boolean).join(h);return[C,M]})))})();const A=this.config.sortLayers(Array.from(y).sort((p,_)=>(this.config.layers[p]??0)-(this.config.layers[_]??0)||p.localeCompare(_))),d={},b=(p=H)=>{if(d[p])return d[p];let _=Array.from(x).sort((O,M)=>(this.parentOrders.get(O[0])??0)-(this.parentOrders.get(M[0])??0)||O[0]?.localeCompare(M[0]||"")||0).map(([O,M])=>{const T=M.length,I=M.filter(v=>(v[4]?.layer||H)===p).sort((v,$)=>v[0]-$[0]||(v[4]?.sort||0)-($[4]?.sort||0)||v[5]?.currentSelector?.localeCompare($[5]?.currentSelector??"")||v[1]?.localeCompare($[1]||"")||v[2]?.localeCompare($[2]||"")||0).map(([,v,$,,j,,k])=>[[[(v&&ct(v,r))??"",j?.sort??0]],$,!!(k??j?.noMerge)]);if(!I.length)return;const D=I.reverse().map(([v,$,j],k)=>{if(!j&&this.config.mergeSelectors)for(let F=k+1;F<T;F++){const P=I[F];if(P&&!P[2]&&(v&&P[0]||v==null&&P[0]==null)&&P[1]===$)return v&&P[0]&&P[0].push(...v),null}const z=v?G(v.sort((F,P)=>F[1]-P[1]||F[0]?.localeCompare(P[0]||"")||0).map(F=>F[0]).filter(Boolean)):[];return z.length?`${z.join(`,${h}`)}{${$}}`:$}).filter(Boolean).reverse().join(h);if(!O)return D;const S=O.split(" $$ ");return`${S.join("{")}{${h}${D}${h}${"}".repeat(S.length)}`}).filter(Boolean).join(h);if(i&&(_=[m[p],_].filter(Boolean).join(h)),f&&_){let O=typeof f=="object"?f.cssLayerName?.(p):void 0;O!==null&&(O||(O=p),_=`@layer ${O}{${h}${_}${h}}`)}const C=a?"":`/* layer: ${p} */${h}`;return d[p]=_?C+_:""},u=(p=A,_)=>p.filter(C=>!_?.includes(C)).map(C=>b(C)||"").filter(Boolean).join(h);return{get css(){return u()},layers:A,matched:w,getLayers:u,getLayer:b}}async matchVariants(e,n){const s=new Set,r=[];let i=n||e,o=!0;const a={rawSelector:e,theme:this.config.theme,generator:this};for(;o;){o=!1;for(const l of this.config.variants){if(!l.multiPass&&s.has(l))continue;let f=await l.match(i,a);if(f){if(E(f)){if(f===i)continue;f={matcher:f}}i=f.matcher,r.unshift(f),s.add(l),o=!0;break}}if(!o)break;if(r.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,i,r,s]}applyVariants(e,n=e[4],s=e[1]){const i=n.slice().sort((f,c)=>(f.order||0)-(c.order||0)).reduceRight((f,c)=>h=>{const y=c.body?.(h.entries)||h.entries,w=Array.isArray(c.parent)?c.parent:[c.parent,void 0];return(c.handle??ft)({...h,entries:y,selector:c.selector?.(h.selector,y)||h.selector,parent:w[0]||h.parent,parentOrder:w[1]||h.parentOrder,layer:c.layer||h.layer,sort:c.sort||h.sort},f)},f=>f)({prefix:"",selector:lt(s),pseudo:"",entries:e[2]}),{parent:o,parentOrder:a}=i;o!=null&&a!=null&&this.parentOrders.set(o,a);const l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:o,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(const f of this.config.postprocess)f(l);return l}constructCustomCSS(e,n,s){const r=R(n);if(E(r))return r;const{selector:i,entries:o,parent:a}=this.applyVariants([0,s||e.rawSelector,r,void 0,e.variantHandlers]),l=`${i}{${q(o)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,n,s=!1,r){const[i,o,a]=E(e)?await this.matchVariants(e):e;this.config.details&&(n.rules=n.rules??[]);const l=this.config.rulesStaticMap[o];if(l&&l[1]&&(s||!l[2]?.internal)){this.config.details&&n.rules.push(l[3]);const c=l[0],h=R(l[1]),y=l[2];return E(h)?[[c,h,y]]:[[c,i,h,y,a]]}n.variantHandlers=a;const{rulesDynamic:f}=this.config;for(const[c,h,y,w]of f){if(w?.internal&&!s)continue;let x=o;if(w?.prefix){const d=L(w.prefix);if(r){const b=L(r);if(!d.some(u=>b.includes(u)))continue}else{const b=d.find(u=>o.startsWith(u));if(b==null)continue;x=o.slice(b.length)}}const m=x.match(h);if(!m)continue;const g=await y(m,n);if(!g)continue;this.config.details&&n.rules.push([h,y,w]);const A=Me(g).filter(d=>d.length);if(A.length)return A.map(d=>E(d)?[c,d,w]:[c,i,d,w,a])}}stringifyUtil(e,n){if(!e)return;if(ee(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?n:void 0,void 0];const{selector:s,entries:r,parent:i,layer:o,sort:a,noMerge:l}=this.applyVariants(e),f=q(r);if(!f)return;const{layer:c,sort:h,...y}=e[3]??{},w={...y,layer:o??c,sort:a??h};return[e[0],s,f,i,w,this.config.details?n:void 0,l]}async expandShortcut(e,n,s=5){if(s===0)return;const r=this.config.details?a=>{n.shortcuts=n.shortcuts??[],n.shortcuts.push(a)}:Te;let i,o;for(const a of this.config.shortcuts){let l=e;if(a[2]?.prefix){const c=L(a[2].prefix).find(h=>e.startsWith(h));if(c==null)continue;l=e.slice(c.length)}if(ke(a)){if(a[0]===l){i=i||a[2],o=a[1],r(a);break}}else{const f=l.match(a[0]);if(f&&(o=a[1](f,n)),o){i=i||a[2],r(a);break}}}if(E(o)&&(o=Ge(o.trim()).split(/\s+/g)),!o){const[a,l]=E(e)?await this.matchVariants(e):e;if(a!==l){const f=await this.expandShortcut(l,n,s-1);f&&(o=f[0].map(c=>E(c)?a.replace(l,c):c))}}if(o)return[(await Promise.all(o.map(async a=>(E(a)?(await this.expandShortcut(a,n,s-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(e,n,s,r={layer:this.config.shortcutsLayer}){const i=new Re,o=(await Promise.all(G(s).map(async c=>{const h=E(c)?await this.parseUtil(c,n,!0,r.prefix):[[Number.POSITIVE_INFINITY,"{inline}",R(c),void 0,[]]];return!h&&this.config.warn&&me(`unmatched utility "${c}" in shortcut "${e[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((c,h)=>c[0]-h[0]),[a,,l]=e,f=[];for(const c of o){if(ee(c)){f.push([c[0],void 0,c[1],void 0,c[2],n,void 0]);continue}const{selector:h,entries:y,parent:w,sort:x,noMerge:m,layer:g}=this.applyVariants(c,[...c[4],...l],a);i.getFallback(g??r.layer,new Ne).getFallback(h,w,[[],c[0]])[0].push([y,!!(m??c[3]?.noMerge),x??0])}return f.concat(i.flatMap((c,h)=>c.map(([y,w],x,m)=>{const g=(d,b,u)=>{const p=Math.max(...u.map(C=>C[1])),_=u.map(C=>C[0]);return(d?[_.flat(1)]:_).map(C=>{const O=q(C);if(O)return[w,x,O,m,{...r,noMerge:b,sort:p,layer:h},n,void 0]})};return[[y.filter(([,d])=>d).map(([d,,b])=>[d,b]),!0],[y.filter(([,d])=>!d).map(([d,,b])=>[d,b]),!1]].map(([d,b])=>[...g(!1,b,d.filter(([u])=>u.some(p=>p[0]===Q))),...g(!0,b,d.filter(([u])=>u.every(p=>p[0]!==Q)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.some(n=>typeof n=="function"?n(e):E(n)?n===e:n.test(e))}}function ot(t,e){return new it(t,e)}const we=/\s\$\$\s+/g;function at(t){return we.test(t)}function ct(t,e){return at(t)?t.replace(we,e?` ${e} `:" "):e?`${e} ${t}`:t}const se=/^\[(.+?)(~?=)"(.*)"\]$/;function lt(t){return se.test(t)?t.replace(se,(e,n,s,r)=>`[${Y(n)}${s}"${Y(r)}"]`):`.${Y(t)}`}function ft(t,e){return e(t)}var ie={};const ut=Object.freeze({left:0,top:0,width:16,height:16}),W=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ve=Object.freeze({...ut,...W}),ht=Object.freeze({...ve,body:"",hidden:!1}),dt=Object.freeze({width:null,height:null}),be=Object.freeze({...dt,...W});function pt(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(n.rotate=s),n}function oe(t,e){const n=pt(t,e);for(const s in ht)s in W?s in t&&!(s in n)&&(n[s]=W[s]):s in e?n[s]=e[s]:s in t&&(n[s]=t[s]);return n}function mt(t,e){const n=t.icons,s=t.aliases||Object.create(null),r=Object.create(null);function i(o){if(n[o])return r[o]=[];if(!(o in r)){r[o]=null;const a=s[o]&&s[o].parent,l=a&&i(a);l&&(r[o]=[a].concat(l))}return r[o]}return(e||Object.keys(n).concat(Object.keys(s))).forEach(i),r}function ae(t,e,n){const s=t.icons,r=t.aliases||Object.create(null);let i={};function o(a){i=oe(s[a]||r[a],i)}return o(e),n.forEach(o),oe(t,i)}function gt(t,e){if(t.icons[e])return ae(t,e,[]);const n=mt(t,[e])[e];return n?ae(t,e,n):null}const yt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,wt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ce(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const s=t.split(yt);if(s===null||!s.length)return t;const r=[];let i=s.shift(),o=wt.test(i);for(;;){if(o){const a=parseFloat(i);isNaN(a)?r.push(i):r.push(Math.ceil(a*e*n)/n)}else r.push(i);if(i=s.shift(),i===void 0)return r.join("");o=!o}}function vt(t,e="defs"){let n="";const s=t.indexOf("<"+e);for(;s>=0;){const r=t.indexOf(">",s),i=t.indexOf("</"+e);if(r===-1||i===-1)break;const o=t.indexOf(">",i);if(o===-1)break;n+=t.slice(r+1,i).trim(),t=t.slice(0,s).trim()+t.slice(o+1)}return{defs:n,content:t}}function bt(t,e){return t?"<defs>"+t+"</defs>"+e:e}function St(t,e,n){const s=vt(t);return bt(s.defs,e+s.content+n)}const J=t=>t==="unset"||t==="undefined"||t==="none";function xt(t,e){const n={...ve,...t},s={...be,...e},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,s].forEach(m=>{const g=[],A=m.hFlip,d=m.vFlip;let b=m.rotate;A?d?b+=2:(g.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),g.push("scale(-1 1)"),r.top=r.left=0):d&&(g.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),g.push("scale(1 -1)"),r.top=r.left=0);let u;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:u=r.height/2+r.top,g.unshift("rotate(90 "+u.toString()+" "+u.toString()+")");break;case 2:g.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:u=r.width/2+r.left,g.unshift("rotate(-90 "+u.toString()+" "+u.toString()+")");break}b%2===1&&(r.left!==r.top&&(u=r.left,r.left=r.top,r.top=u),r.width!==r.height&&(u=r.width,r.width=r.height,r.height=u)),g.length&&(i=St(i,'<g transform="'+g.join(" ")+'">',"</g>"))});const o=s.width,a=s.height,l=r.width,f=r.height;let c,h;o===null?(h=a===null?"1em":a==="auto"?f:a,c=ce(h,l/f)):(c=o==="auto"?l:o,h=a===null?ce(c,f/l):a==="auto"?f:a);const y={},w=(m,g)=>{J(g)||(y[m]=g.toString())};w("width",c),w("height",h);const x=[r.left,r.top,l,f];return y.viewBox=x.join(" "),{attributes:y,viewBox:x,body:i}}function $t(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function _t(t){let e=t.startsWith("<svg>")?t.replace("<svg>","<svg >"):t;return!e.includes(" xmlns:xlink=")&&e.includes(" xlink:")&&(e=e.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),e.includes(" xmlns=")||(e=e.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),$t(e)}function Ct(t){return t.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()}const At=/\swidth\s*=\s*["']([\w.]+)["']/,Ot=/\sheight\s*=\s*["']([\w.]+)["']/,X=/<svg\s+/;function Mt(t,e,n){const s=t.slice(0,t.indexOf(">")),r=(i,o)=>{const a=o.exec(s),l=a!=null,f=e[i];return!f&&!J(f)&&(typeof n=="number"?n>0&&(e[i]=`${n}em`):a&&(e[i]=a[1])),l};return[r("width",At),r("height",Ot)]}async function Se(t,e,n,s,r,i){const{scale:o,addXmlNs:a=!1}=s??{},{additionalProps:l={},iconCustomizer:f}=s?.customizations??{},c=await r?.()??{};await f?.(e,n,c),Object.keys(l).forEach(m=>{const g=l[m];g!=null&&(c[m]=g)}),i?.(c);const[h,y]=Mt(t,c,o);a&&(!t.includes("xmlns=")&&!c.xmlns&&(c.xmlns="http://www.w3.org/2000/svg"),!t.includes("xmlns:xlink=")&&t.includes("xlink:")&&!c["xmlns:xlink"]&&(c["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const w=Object.keys(c).map(m=>m==="width"&&h||m==="height"&&y?null:`${m}="${c[m]}"`).filter(m=>m!=null);if(w.length&&(t=t.replace(X,`<svg ${w.join(" ")} `)),s){const{defaultStyle:m,defaultClass:g}=s;g&&!t.includes("class=")&&(t=t.replace(X,`<svg class="${g}" `)),m&&!t.includes("style=")&&(t=t.replace(X,`<svg style="${m}" `))}const x=s?.usedProps;return x&&(Object.keys(l).forEach(m=>{const g=c[m];g!=null&&(x[m]=g)}),typeof c.width<"u"&&c.width!==null&&(x.width=c.width),typeof c.height<"u"&&c.height!==null&&(x.height=c.height)),t}async function le(t,e,n,s){let r;try{if(typeof t=="function")r=await t(n);else{const i=t[n];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${n}" in "${e}":`,i);return}if(r){const i=r.indexOf("<svg");i>0&&(r=r.slice(i));const{transform:o}=s?.customizations??{};return r=typeof o=="function"?await o(r,e,n):r,r.startsWith("<svg")?await Se(s?.customizations?.trimCustomSvg===!0?Ct(r):r,e,n,s,void 0):(console.warn(`Custom icon "${n}" in "${e}" is not a valid SVG`),r)}}async function xe(t,e,n,s){let r;const{customize:i}=s?.customizations??{};for(const o of n)if(r=gt(t,o),r){let a={...be};typeof i=="function"&&(a=i(a));const{attributes:{width:l,height:f,...c},body:h}=xt(r,a),y=s?.scale;return await Se(`<svg >${h}</svg>`,e,o,s,()=>({...c}),w=>{const x=(m,g)=>{const A=w[m];let d;if(!J(A)){if(A)return;typeof y=="number"?y&&(d=`${y}em`):d=g}d?w[m]=d:delete w[m]};x("width",l),x("height",f)})}}const $e=async(t,e,n)=>{const s=n?.customCollections?.[t];if(s)if(typeof s=="function"){let r;try{r=await s(e)}catch(i){console.warn(`Failed to load custom icon "${e}" in "${t}":`,i);return}if(r){if(typeof r=="string")return await le(()=>r,t,e,n);if("icons"in r){const i=[e,e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.replace(/([a-z])(\d+)/g,"$1-$2")];return await xe(r,t,i,n)}}}else return await le(s,t,e,n)};function Et(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jt=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","dashicons","devicon-line","devicon-original","devicon-plain","devicon","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","lets-icons","line-md","logos","ls","lucide","mage","majesticons","maki","map","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];const kt=Et(jt),Lt=3;function Pt(t){return(e={})=>{const{scale:n=1,mode:s="auto",prefix:r="i-",warn:i=!1,collections:o,extraProperties:a={},customizations:l={},autoInstall:f=!1,collectionsNodeResolvePath:c,layer:h="icons",unit:y}=e,w=Tt(),x={addXmlNs:!0,scale:n,customCollections:o,autoInstall:f,cwd:c,warn:void 0,customizations:{...l,additionalProps:{...a},trimCustomSvg:!0,async iconCustomizer(g,A,d){await l.iconCustomizer?.(g,A,d),y&&(d.width||(d.width=`${n}${y}`),d.height||(d.height=`${n}${y}`))}}};let m;return{name:"@unocss/preset-icons",enforce:"pre",options:e,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async([g,A,d=s])=>{let b="",u="",p;m=m||await t(e);const _={};if(A.includes(":"))[b,u]=A.split(":"),p=await m(b,u,{...x,usedProps:_});else{const O=A.split(/-/g);for(let M=Lt;M>=1&&(b=O.slice(0,M).join("-"),u=O.slice(M).join("-"),p=await m(b,u,{...x,usedProps:_}),!p);M--);}if(!p){i&&!w.isESLint&&me(`failed to load icon "${g}"`);return}const C=`url("data:image/svg+xml;utf8,${_t(p)}")`;return d==="auto"&&(d=p.includes("currentColor")?"mask":"bg"),d==="mask"?{"--un-icon":C,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",..._}:{background:`${C} no-repeat`,"background-size":"100% 100%","background-color":"transparent",..._}},{layer:h,prefix:r}]]}}}function _e(t,e){const n=new Map;function s(r){if(kt.includes(r))return n.has(r)||n.set(r,t(`${e}@iconify-json/${r}/icons.json`)),n.get(r)}return async(r,i,o)=>{let a=await $e(r,i,o);if(a)return a;const l=await s(r);if(l){const f=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];a=await xe(l,r,f,o)}return a}}function Tt(){const t=typeof process<"u"&&process.stdout&&!process.versions.deno,e=t&&!!ie.VSCODE_CWD,n=t&&!!ie.ESLINT;return{isNode:t,isVSCode:e,isESLint:n}}function zt(t){return _e(Ce,t)}const Ft=Pt(async t=>{const e=t?.customFetch,n=t?.cdn;return e&&n?_e(e,n):n?zt(n):$e});function It(t){return t.replace(/-(\w)/g,(e,n)=>n?n.toUpperCase():"")}function fe(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ue(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var he=["Webkit","Moz","ms"];function Nt(t){const e={};function n(s){const r=e[s];if(r)return r;let i=It(s);if(i!=="filter"&&i in t)return e[s]=ue(i);i=fe(i);for(let o=0;o<he.length;o++){const a=`${he[o]}${i}`;if(a in t)return e[s]=ue(fe(a))}return s}return({entries:s})=>s.forEach(r=>{r[0].startsWith("--")||(r[0]=n(r[0]))})}function Rt(t){return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}function Dt(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const e=window,n=window.document,s=()=>n.documentElement,r=e.__unocss||{},i=Object.assign({},t,r.runtime),o=i.defaults||{},a=i.cloakAttribute??"un-cloak";i.autoPrefix&&(o.postprocess=L(o.postprocess)).unshift(Nt(n.createElement("div").style)),i.configResolved?.(r,o);const l=ot(r,o),f=S=>i.inject?i.inject(S):s().prepend(S),c=()=>i.rootElement?i.rootElement():n.body,h=new Map;let y=!0,w=new Set,x,m,g=[];const A=()=>new Promise(S=>{g.push(S),m!=null&&clearTimeout(m),m=setTimeout(()=>u().then(()=>{const v=g;g=[],v.forEach($=>$())}),0)});function d(S){if(S.nodeType!==1)return;const v=S;v.hasAttribute(a)&&v.removeAttribute(a),v.querySelectorAll(`[${a}]`).forEach($=>{$.removeAttribute(a)})}function b(S,v){let $=h.get(S);if(!$)if($=n.createElement("style"),$.setAttribute("data-unocss-runtime-layer",S),h.set(S,$),v==null)f($);else{const j=b(v),k=j.parentNode;k?k.insertBefore($,j.nextSibling):f($)}return $}async function u(){const S=await l.generate(w);return S.layers.reduce((v,$)=>(b($,v).innerHTML=S.getLayer($)??"",$),void 0),w=S.matched,{...S,getStyleElement:v=>h.get(v),getStyleElements:()=>h}}async function p(S){const v=w.size;await l.applyExtractors(S,void 0,w),v!==w.size&&await A()}async function _(S=c()){const v=S&&S.outerHTML;v&&(await p(`${v} ${Rt(v)}`),d(s()),d(S))}const C=new MutationObserver(S=>{y||S.forEach(async v=>{if(v.target.nodeType!==1)return;const $=v.target;for(const j of h)if($===j[1])return;if(v.type==="childList")v.addedNodes.forEach(async j=>{if(j.nodeType!==1)return;const k=j;x&&!x(k)||(await p(k.outerHTML),d(k))});else{if(x&&!x($))return;if(v.attributeName!==a){const j=Array.from($.attributes).map(z=>z.value?`${z.name}="${z.value}"`:z.name).join(" "),k=`<${$.tagName.toLowerCase()} ${j}>`;await p(k)}$.hasAttribute(a)&&$.removeAttribute(a)}})});let O=!1;function M(){if(O)return;const S=i.observer?.target?i.observer.target():c();S&&(C.observe(S,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),O=!0)}function T(){i.bypassDefined&&Vt(l.blocked),_(),M()}function I(){n.readyState==="loading"?e.addEventListener("DOMContentLoaded",T):T()}const D=e.__unocss_runtime=e.__unocss_runtime={version:l.version,uno:l,async extract(S){E(S)||(S.forEach(v=>w.add(v)),S=""),await p(S)},extractAll:_,inspect(S){x=S},toggleObserver(S){S===void 0?y=!y:y=!!S,!O&&!y&&I()},update:u,presets:e.__unocss_runtime?.presets??{}};i.ready?.(D)!==!1&&(y=!1,I())}function Vt(t=new Set){for(let e=0;e<document.styleSheets.length;e++){const n=document.styleSheets[e];let s;try{if(s=n.cssRules||n.rules,!s)continue;Array.from(s).flatMap(r=>r.selectorText?.split(/,/g)||[]).forEach(r=>{r&&(r=r.trim(),r.startsWith(".")&&(r=r.slice(1)),t.add(r))})}catch{continue}}return t}Dt({defaults:{presets:[Ft({prefix:["i-",""],collections:{},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]},bypassDefined:!0});
|
|
1
|
+
import{$ as Ce}from"./qlO0zMWA.js";function Ae(t){const e=t.length;let n=-1,s,r="";const i=t.charCodeAt(0);for(;++n<e;){if(s=t.charCodeAt(n),s===0){r+="�";continue}if(s===37){r+="\\%";continue}if(s===44){r+="\\,";continue}if(s>=1&&s<=31||s===127||n===0&&s>=48&&s<=57||n===1&&s>=48&&s<=57&&i===45){r+=`\\${s.toString(16)} `;continue}if(n===0&&e===1&&s===45){r+=`\\${t.charAt(n)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){r+=t.charAt(n);continue}r+=`\\${t.charAt(n)}`}return r}const Y=Ae;function L(t=[]){return Array.isArray(t)?t:[t]}function G(t){return Array.from(new Set(t))}function Me(t,e){return t.reduce((n,s)=>(n.findIndex(i=>e(s,i))===-1&&n.push(s),n),[])}function E(t){return typeof t=="string"}function R(t){return E(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Oe(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>R(e)):[t]:[R(t)]}function Ee(t){return t.filter(([e,n],s)=>{if(e.startsWith("$$"))return!1;for(let r=s-1;r>=0;r--)if(t[r][0]===e&&t[r][1]===n)return!1;return!0})}function q(t){return t==null?"":Ee(t).map(([e,n])=>n!=null?`${e}:${n};`:void 0).filter(Boolean).join("")}function V(t){return t&&typeof t=="object"&&!Array.isArray(t)}function de(t,e,n=!1){const s=t,r=e;if(Array.isArray(r))return n&&Array.isArray(r)?[...s,...r]:[...r];const i={...s};return V(s)&&V(r)&&Object.keys(r).forEach(o=>{V(s[o])&&V(r[o])||Array.isArray(s[o])&&Array.isArray(r[o])?i[o]=de(s[o],r[o],n):Object.assign(i,{[o]:r[o]})}),i}function U(t){let e,n,s;if(Array.isArray(t)){for(n=Array(e=t.length);e--;)n[e]=(s=t[e])&&typeof s=="object"?U(s):s;return n}if(Object.prototype.toString.call(t)==="[object Object]"){n={};for(e in t)e==="__proto__"?Object.defineProperty(n,e,{value:U(t[e]),configurable:!0,enumerable:!0,writable:!0}):n[e]=(s=t[e])&&typeof s=="object"?U(s):s;return n}return t}function je(t){return E(t[0])}function ke(t){return E(t[0])}const Q="$$shortcut-no-merge";function Le(t){return typeof t=="function"?{match:t}:t}function ee(t){return t.length===3}function Pe(t){return t!=null}function Te(){}var ze=Object.defineProperty,Fe=(t,e,n)=>e in t?ze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ie=(t,e,n)=>(Fe(t,typeof e!="symbol"?e+"":e,n),n);class Ne{constructor(){Ie(this,"_map",new Map)}get(e,n){const s=this._map.get(e);if(s)return s.get(n)}getFallback(e,n,s){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(n)||r.set(n,s),r.get(n)}set(e,n,s){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(n,s),this}has(e,n){return this._map.get(e)?.has(n)}delete(e,n){return this._map.get(e)?.delete(n)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([n,s])=>Array.from(s.entries()).map(([r,i])=>e(i,n,r)))}}class Re extends Map{getFallback(e,n){const s=this.get(e);return s===void 0?(this.set(e,n),n):s}map(e){const n=[];return this.forEach((s,r)=>{n.push(e(s,r))}),n}flatMap(e){const n=[];return this.forEach((s,r)=>{n.push(...e(s,r))}),n}}var De=Object.defineProperty,Ve=(t,e,n)=>e in t?De(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Be=(t,e,n)=>(Ve(t,typeof e!="symbol"?e+"":e,n),n);class pe extends Set{constructor(e){super(e),Be(this,"_map"),this._map??(this._map=new Map)}add(e){return this._map??(this._map=new Map),this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,n){return this._map.set(e,n),super.add(e)}}function K(t){return t instanceof pe}const B={};function Ue(t=["-",":"]){const e=t.join("|");return B[e]||(B[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),B[e].lastIndex=0,B[e]}function He(t,e=["-",":"],n=5){const s=Ue(e);let r,i=t.toString();const o=new Set,a=new Map;do r=!1,i=i.replace(s,(f,c,h,y,w)=>{if(!e.includes(h))return f;r=!0,o.add(c+h);const $=w+c.length+h.length+1,m={length:f.length,items:[]};a.set(w,m);for(const g of[...y.matchAll(/\S+/g)]){const A=$+g.index;let d=a.get(A)?.items;d?a.delete(A):d=[{offset:A,length:g[0].length,className:g[0]}];for(const b of d)b.className=b.className==="~"?c:b.className.replace(/^(!?)(.*)/,`$1${c}${h}$2`),m.items.push(b)}return"$".repeat(f.length)}),n-=1;while(r&&n);let l;if(typeof t=="string"){l="";let f=0;for(const[c,h]of a)l+=t.slice(f,c),l+=h.items.map(y=>y.className).join(" "),f=c+h.length;l+=t.slice(f)}else{l=t;for(const[f,c]of a)l.overwrite(f,f+c.length,c.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(o),hasChanged:r,groupsByOffset:a,get expanded(){return l.toString()}}}function Ge(t,e=["-",":"],n=5){const s=He(t,e,n);return typeof t=="string"?s.expanded:t}const te=new Set;function me(t){te.has(t)||(console.warn("[unocss]",t),te.add(t))}const We=/[\\:]?[\s'"`;{}]+/g;function Ye(t){return t.split(We)}const qe={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ye(t)}};function Ke(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(n=>n(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(n=>n!==e)}}}const H="default",Z="preflights",Xe="shortcuts",Ze="imports",Je={[Ze]:-200,[Z]:-100,[Xe]:-10,[H]:0};function ge(t){return L(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}const ne="_uno_resolved";function Qe(t){let e=typeof t=="function"?t():t;if(ne in e)return e;e={...e},Object.defineProperty(e,ne,{value:!0,enumerable:!1});const n=e.shortcuts?ge(e.shortcuts):void 0;if(e.shortcuts=n,e.prefix||e.layer){const s=r=>{r[2]||(r[2]={});const i=r[2];i.prefix==null&&e.prefix&&(i.prefix=L(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};n?.forEach(s),e.rules?.forEach(s)}return e}function ye(t){const e=Qe(t);if(!e.presets)return[e];const n=(e.presets||[]).flatMap(L).flatMap(ye);return[e,...n]}function re(t={},e={}){const n=Object.assign({},e,t),s=Me((n.presets||[]).flatMap(L).flatMap(ye),(u,p)=>u.name===p.name),r=[...s.filter(u=>u.enforce==="pre"),...s.filter(u=>!u.enforce),...s.filter(u=>u.enforce==="post")],i=[...r,n],o=[...i].reverse(),a=Object.assign({},Je,...i.map(u=>u.layers));function l(u){return G(i.flatMap(p=>L(p[u]||[])))}const f=l("extractors");let c=o.find(u=>u.extractorDefault!==void 0)?.extractorDefault;c===void 0&&(c=qe),c&&!f.includes(c)&&f.unshift(c),f.sort((u,p)=>(u.order||0)-(p.order||0));const h=l("rules"),y={},w=h.length,$=h.map((u,p)=>{if(je(u)){L(u[2]?.prefix||"").forEach(C=>{y[C+u[0]]=[p,u[1],u[2],u]});return}return[p,...u]}).filter(Boolean).reverse();let m=et(i.map(u=>u.theme));const g=l("extendTheme");for(const u of g)m=u(m)||m;const A={templates:G(i.flatMap(u=>L(u.autocomplete?.templates))),extractors:i.flatMap(u=>L(u.autocomplete?.extractors)).sort((u,p)=>(u.order||0)-(p.order||0)),shorthands:tt(i.map(u=>u.autocomplete?.shorthands||{}))};let d=l("separators");d.length||(d=[":","-"]);const b={mergeSelectors:!0,warn:!0,sortLayers:u=>u,...n,blocklist:l("blocklist"),presets:r,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:a,theme:m,rulesSize:w,rulesDynamic:$,rulesStaticMap:y,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:A,variants:l("variants").map(Le).sort((u,p)=>(u.order||0)-(p.order||0)),shortcuts:ge(l("shortcuts")).reverse(),extractors:f,safelist:l("safelist"),separators:d,details:n.details??n.envMode==="dev"};for(const u of i)u?.configResolved?.(b);return b}function et(t){return t.map(e=>e?U(e):{}).reduce((e,n)=>de(e,n),{})}function tt(t){return t.reduce((e,n)=>{const s={};for(const r in n){const i=n[r];Array.isArray(i)?s[r]=`(${i.join("|")})`:s[r]=i}return{...e,...s}},{})}const nt="0.59.4";var rt=Object.defineProperty,st=(t,e,n)=>e in t?rt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,N=(t,e,n)=>(st(t,typeof e!="symbol"?e+"":e,n),n);class it{constructor(e={},n={}){this.userConfig=e,this.defaults=n,N(this,"version",nt),N(this,"_cache",new Map),N(this,"config"),N(this,"blocked",new Set),N(this,"parentOrders",new Map),N(this,"events",Ke()),this.config=re(e,n),this.events.emit("config",this.config)}setConfig(e,n){e&&(n&&(this.defaults=n),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=re(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,n,s=new Set){const r={original:e,code:e,id:n,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const o=await i.extract?.(r);if(o)if(K(o)&&K(s))for(const a of o)s.setCount(a,s.getCount(a)+o.getCount(a));else for(const a of o)s.add(a)}return s}makeContext(e,n){const s={rawSelector:e,currentSelector:n[1],theme:this.config.theme,generator:this,variantHandlers:n[2],constructCSS:(...r)=>this.constructCustomCSS(s,...r),variantMatch:n};return s}async parseToken(e,n){if(this.blocked.has(e))return;const s=`${e}${n?` ${n}`:""}`;if(this._cache.has(s))return this._cache.get(s);let r=e;for(const f of this.config.preprocess)r=f(e);if(this.isBlocked(r)){this.blocked.add(e),this._cache.set(s,null);return}const i=await this.matchVariants(e,r);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(s,null);return}const o=this.makeContext(e,[n||i[0],i[1],i[2],i[3]]);this.config.details&&(o.variants=[...i[3]]);const a=await this.expandShortcut(o.currentSelector,o),l=a?await this.stringifyShortcuts(o.variantMatch,o,a[0],a[1]):(await this.parseUtil(o.variantMatch,o))?.map(f=>this.stringifyUtil(f,o)).filter(Pe);if(l?.length)return this._cache.set(s,l),l;this._cache.set(s,null)}async generate(e,n={}){const{id:s,scope:r,preflights:i=!0,safelist:o=!0,minify:a=!1,extendedInfo:l=!1}=n,f=this.config.outputToCssLayers,c=E(e)?await this.applyExtractors(e,s,l?new pe:new Set):Array.isArray(e)?new Set(e):e;if(o){const p={generator:this,theme:this.config.theme};this.config.safelist.flatMap(x=>typeof x=="function"?x(p):x).forEach(x=>{c.has(x)||c.add(x)})}const h=a?"":`
|
|
2
|
+
`,y=new Set([H]),w=l?new Map:new Set,$=new Map;let m={};const g=Array.from(c).map(async p=>{if(w.has(p))return;const x=await this.parseToken(p);if(x!=null){w instanceof Map?w.set(p,{data:x,count:K(c)?c.getCount(p):-1}):w.add(p);for(const C of x){const M=C[3]||"",O=C[4]?.layer;$.has(M)||$.set(M,[]),$.get(M).push(C),O&&y.add(O)}}});await Promise.all(g),await(async()=>{if(!i)return;const p={generator:this,theme:this.config.theme},x=new Set([]);this.config.preflights.forEach(({layer:C=Z})=>{y.add(C),x.add(C)}),m=Object.fromEntries(await Promise.all(Array.from(x).map(async C=>{const O=(await Promise.all(this.config.preflights.filter(T=>(T.layer||Z)===C).map(async T=>await T.getCSS(p)))).filter(Boolean).join(h);return[C,O]})))})();const A=this.config.sortLayers(Array.from(y).sort((p,x)=>(this.config.layers[p]??0)-(this.config.layers[x]??0)||p.localeCompare(x))),d={},b=(p=H)=>{if(d[p])return d[p];let x=Array.from($).sort((M,O)=>(this.parentOrders.get(M[0])??0)-(this.parentOrders.get(O[0])??0)||M[0]?.localeCompare(O[0]||"")||0).map(([M,O])=>{const T=O.length,I=O.filter(v=>(v[4]?.layer||H)===p).sort((v,_)=>v[0]-_[0]||(v[4]?.sort||0)-(_[4]?.sort||0)||v[5]?.currentSelector?.localeCompare(_[5]?.currentSelector??"")||v[1]?.localeCompare(_[1]||"")||v[2]?.localeCompare(_[2]||"")||0).map(([,v,_,,j,,k])=>[[[(v&&ct(v,r))??"",j?.sort??0]],_,!!(k??j?.noMerge)]);if(!I.length)return;const D=I.reverse().map(([v,_,j],k)=>{if(!j&&this.config.mergeSelectors)for(let F=k+1;F<T;F++){const P=I[F];if(P&&!P[2]&&(v&&P[0]||v==null&&P[0]==null)&&P[1]===_)return v&&P[0]&&P[0].push(...v),null}const z=v?G(v.sort((F,P)=>F[1]-P[1]||F[0]?.localeCompare(P[0]||"")||0).map(F=>F[0]).filter(Boolean)):[];return z.length?`${z.join(`,${h}`)}{${_}}`:_}).filter(Boolean).reverse().join(h);if(!M)return D;const S=M.split(" $$ ");return`${S.join("{")}{${h}${D}${h}${"}".repeat(S.length)}`}).filter(Boolean).join(h);if(i&&(x=[m[p],x].filter(Boolean).join(h)),f&&x){let M=typeof f=="object"?f.cssLayerName?.(p):void 0;M!==null&&(M||(M=p),x=`@layer ${M}{${h}${x}${h}}`)}const C=a?"":`/* layer: ${p} */${h}`;return d[p]=x?C+x:""},u=(p=A,x)=>p.filter(C=>!x?.includes(C)).map(C=>b(C)||"").filter(Boolean).join(h);return{get css(){return u()},layers:A,matched:w,getLayers:u,getLayer:b}}async matchVariants(e,n){const s=new Set,r=[];let i=n||e,o=!0;const a={rawSelector:e,theme:this.config.theme,generator:this};for(;o;){o=!1;for(const l of this.config.variants){if(!l.multiPass&&s.has(l))continue;let f=await l.match(i,a);if(f){if(E(f)){if(f===i)continue;f={matcher:f}}i=f.matcher,r.unshift(f),s.add(l),o=!0;break}}if(!o)break;if(r.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,i,r,s]}applyVariants(e,n=e[4],s=e[1]){const i=n.slice().sort((f,c)=>(f.order||0)-(c.order||0)).reduceRight((f,c)=>h=>{const y=c.body?.(h.entries)||h.entries,w=Array.isArray(c.parent)?c.parent:[c.parent,void 0];return(c.handle??ft)({...h,entries:y,selector:c.selector?.(h.selector,y)||h.selector,parent:w[0]||h.parent,parentOrder:w[1]||h.parentOrder,layer:c.layer||h.layer,sort:c.sort||h.sort},f)},f=>f)({prefix:"",selector:lt(s),pseudo:"",entries:e[2]}),{parent:o,parentOrder:a}=i;o!=null&&a!=null&&this.parentOrders.set(o,a);const l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:o,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(const f of this.config.postprocess)f(l);return l}constructCustomCSS(e,n,s){const r=R(n);if(E(r))return r;const{selector:i,entries:o,parent:a}=this.applyVariants([0,s||e.rawSelector,r,void 0,e.variantHandlers]),l=`${i}{${q(o)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,n,s=!1,r){const[i,o,a]=E(e)?await this.matchVariants(e):e;this.config.details&&(n.rules=n.rules??[]);const l=this.config.rulesStaticMap[o];if(l&&l[1]&&(s||!l[2]?.internal)){this.config.details&&n.rules.push(l[3]);const c=l[0],h=R(l[1]),y=l[2];return E(h)?[[c,h,y]]:[[c,i,h,y,a]]}n.variantHandlers=a;const{rulesDynamic:f}=this.config;for(const[c,h,y,w]of f){if(w?.internal&&!s)continue;let $=o;if(w?.prefix){const d=L(w.prefix);if(r){const b=L(r);if(!d.some(u=>b.includes(u)))continue}else{const b=d.find(u=>o.startsWith(u));if(b==null)continue;$=o.slice(b.length)}}const m=$.match(h);if(!m)continue;const g=await y(m,n);if(!g)continue;this.config.details&&n.rules.push([h,y,w]);const A=Oe(g).filter(d=>d.length);if(A.length)return A.map(d=>E(d)?[c,d,w]:[c,i,d,w,a])}}stringifyUtil(e,n){if(!e)return;if(ee(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?n:void 0,void 0];const{selector:s,entries:r,parent:i,layer:o,sort:a,noMerge:l}=this.applyVariants(e),f=q(r);if(!f)return;const{layer:c,sort:h,...y}=e[3]??{},w={...y,layer:o??c,sort:a??h};return[e[0],s,f,i,w,this.config.details?n:void 0,l]}async expandShortcut(e,n,s=5){if(s===0)return;const r=this.config.details?a=>{n.shortcuts=n.shortcuts??[],n.shortcuts.push(a)}:Te;let i,o;for(const a of this.config.shortcuts){let l=e;if(a[2]?.prefix){const c=L(a[2].prefix).find(h=>e.startsWith(h));if(c==null)continue;l=e.slice(c.length)}if(ke(a)){if(a[0]===l){i=i||a[2],o=a[1],r(a);break}}else{const f=l.match(a[0]);if(f&&(o=a[1](f,n)),o){i=i||a[2],r(a);break}}}if(E(o)&&(o=Ge(o.trim()).split(/\s+/g)),!o){const[a,l]=E(e)?await this.matchVariants(e):e;if(a!==l){const f=await this.expandShortcut(l,n,s-1);f&&(o=f[0].map(c=>E(c)?a.replace(l,c):c))}}if(o)return[(await Promise.all(o.map(async a=>(E(a)?(await this.expandShortcut(a,n,s-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(e,n,s,r={layer:this.config.shortcutsLayer}){const i=new Re,o=(await Promise.all(G(s).map(async c=>{const h=E(c)?await this.parseUtil(c,n,!0,r.prefix):[[Number.POSITIVE_INFINITY,"{inline}",R(c),void 0,[]]];return!h&&this.config.warn&&me(`unmatched utility "${c}" in shortcut "${e[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((c,h)=>c[0]-h[0]),[a,,l]=e,f=[];for(const c of o){if(ee(c)){f.push([c[0],void 0,c[1],void 0,c[2],n,void 0]);continue}const{selector:h,entries:y,parent:w,sort:$,noMerge:m,layer:g}=this.applyVariants(c,[...c[4],...l],a);i.getFallback(g??r.layer,new Ne).getFallback(h,w,[[],c[0]])[0].push([y,!!(m??c[3]?.noMerge),$??0])}return f.concat(i.flatMap((c,h)=>c.map(([y,w],$,m)=>{const g=(d,b,u)=>{const p=Math.max(...u.map(C=>C[1])),x=u.map(C=>C[0]);return(d?[x.flat(1)]:x).map(C=>{const M=q(C);if(M)return[w,$,M,m,{...r,noMerge:b,sort:p,layer:h},n,void 0]})};return[[y.filter(([,d])=>d).map(([d,,b])=>[d,b]),!0],[y.filter(([,d])=>!d).map(([d,,b])=>[d,b]),!1]].map(([d,b])=>[...g(!1,b,d.filter(([u])=>u.some(p=>p[0]===Q))),...g(!0,b,d.filter(([u])=>u.every(p=>p[0]!==Q)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.some(n=>typeof n=="function"?n(e):E(n)?n===e:n.test(e))}}function ot(t,e){return new it(t,e)}const we=/\s\$\$\s+/g;function at(t){return we.test(t)}function ct(t,e){return at(t)?t.replace(we,e?` ${e} `:" "):e?`${e} ${t}`:t}const se=/^\[(.+?)(~?=)"(.*)"\]$/;function lt(t){return se.test(t)?t.replace(se,(e,n,s,r)=>`[${Y(n)}${s}"${Y(r)}"]`):`.${Y(t)}`}function ft(t,e){return e(t)}var ie={};const ut=Object.freeze({left:0,top:0,width:16,height:16}),W=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ve=Object.freeze({...ut,...W}),ht=Object.freeze({...ve,body:"",hidden:!1}),dt=Object.freeze({width:null,height:null}),be=Object.freeze({...dt,...W});function pt(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(n.rotate=s),n}function oe(t,e){const n=pt(t,e);for(const s in ht)s in W?s in t&&!(s in n)&&(n[s]=W[s]):s in e?n[s]=e[s]:s in t&&(n[s]=t[s]);return n}function mt(t,e){const n=t.icons,s=t.aliases||Object.create(null),r=Object.create(null);function i(o){if(n[o])return r[o]=[];if(!(o in r)){r[o]=null;const a=s[o]&&s[o].parent,l=a&&i(a);l&&(r[o]=[a].concat(l))}return r[o]}return(e||Object.keys(n).concat(Object.keys(s))).forEach(i),r}function ae(t,e,n){const s=t.icons,r=t.aliases||Object.create(null);let i={};function o(a){i=oe(s[a]||r[a],i)}return o(e),n.forEach(o),oe(t,i)}function gt(t,e){if(t.icons[e])return ae(t,e,[]);const n=mt(t,[e])[e];return n?ae(t,e,n):null}const yt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,wt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ce(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const s=t.split(yt);if(s===null||!s.length)return t;const r=[];let i=s.shift(),o=wt.test(i);for(;;){if(o){const a=parseFloat(i);isNaN(a)?r.push(i):r.push(Math.ceil(a*e*n)/n)}else r.push(i);if(i=s.shift(),i===void 0)return r.join("");o=!o}}function vt(t,e="defs"){let n="";const s=t.indexOf("<"+e);for(;s>=0;){const r=t.indexOf(">",s),i=t.indexOf("</"+e);if(r===-1||i===-1)break;const o=t.indexOf(">",i);if(o===-1)break;n+=t.slice(r+1,i).trim(),t=t.slice(0,s).trim()+t.slice(o+1)}return{defs:n,content:t}}function bt(t,e){return t?"<defs>"+t+"</defs>"+e:e}function St(t,e,n){const s=vt(t);return bt(s.defs,e+s.content+n)}const J=t=>t==="unset"||t==="undefined"||t==="none";function xt(t,e){const n={...ve,...t},s={...be,...e},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,s].forEach(m=>{const g=[],A=m.hFlip,d=m.vFlip;let b=m.rotate;A?d?b+=2:(g.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),g.push("scale(-1 1)"),r.top=r.left=0):d&&(g.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),g.push("scale(1 -1)"),r.top=r.left=0);let u;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:u=r.height/2+r.top,g.unshift("rotate(90 "+u.toString()+" "+u.toString()+")");break;case 2:g.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:u=r.width/2+r.left,g.unshift("rotate(-90 "+u.toString()+" "+u.toString()+")");break}b%2===1&&(r.left!==r.top&&(u=r.left,r.left=r.top,r.top=u),r.width!==r.height&&(u=r.width,r.width=r.height,r.height=u)),g.length&&(i=St(i,'<g transform="'+g.join(" ")+'">',"</g>"))});const o=s.width,a=s.height,l=r.width,f=r.height;let c,h;o===null?(h=a===null?"1em":a==="auto"?f:a,c=ce(h,l/f)):(c=o==="auto"?l:o,h=a===null?ce(c,f/l):a==="auto"?f:a);const y={},w=(m,g)=>{J(g)||(y[m]=g.toString())};w("width",c),w("height",h);const $=[r.left,r.top,l,f];return y.viewBox=$.join(" "),{attributes:y,viewBox:$,body:i}}function $t(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function _t(t){let e=t.startsWith("<svg>")?t.replace("<svg>","<svg >"):t;return!e.includes(" xmlns:xlink=")&&e.includes(" xlink:")&&(e=e.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),e.includes(" xmlns=")||(e=e.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),$t(e)}function Ct(t){return t.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()}const At=/\swidth\s*=\s*["']([\w.]+)["']/,Mt=/\sheight\s*=\s*["']([\w.]+)["']/,X=/<svg\s+/;function Ot(t,e,n){const s=t.slice(0,t.indexOf(">")),r=(i,o)=>{const a=o.exec(s),l=a!=null,f=e[i];return!f&&!J(f)&&(typeof n=="number"?n>0&&(e[i]=`${n}em`):a&&(e[i]=a[1])),l};return[r("width",At),r("height",Mt)]}async function Se(t,e,n,s,r,i){const{scale:o,addXmlNs:a=!1}=s??{},{additionalProps:l={},iconCustomizer:f}=s?.customizations??{},c=await r?.()??{};await f?.(e,n,c),Object.keys(l).forEach(m=>{const g=l[m];g!=null&&(c[m]=g)}),i?.(c);const[h,y]=Ot(t,c,o);a&&(!t.includes("xmlns=")&&!c.xmlns&&(c.xmlns="http://www.w3.org/2000/svg"),!t.includes("xmlns:xlink=")&&t.includes("xlink:")&&!c["xmlns:xlink"]&&(c["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const w=Object.keys(c).map(m=>m==="width"&&h||m==="height"&&y?null:`${m}="${c[m]}"`).filter(m=>m!=null);if(w.length&&(t=t.replace(X,`<svg ${w.join(" ")} `)),s){const{defaultStyle:m,defaultClass:g}=s;g&&!t.includes("class=")&&(t=t.replace(X,`<svg class="${g}" `)),m&&!t.includes("style=")&&(t=t.replace(X,`<svg style="${m}" `))}const $=s?.usedProps;return $&&(Object.keys(l).forEach(m=>{const g=c[m];g!=null&&($[m]=g)}),typeof c.width<"u"&&c.width!==null&&($.width=c.width),typeof c.height<"u"&&c.height!==null&&($.height=c.height)),t}async function le(t,e,n,s){let r;try{if(typeof t=="function")r=await t(n);else{const i=t[n];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${n}" in "${e}":`,i);return}if(r){const i=r.indexOf("<svg");i>0&&(r=r.slice(i));const{transform:o}=s?.customizations??{};return r=typeof o=="function"?await o(r,e,n):r,r.startsWith("<svg")?await Se(s?.customizations?.trimCustomSvg===!0?Ct(r):r,e,n,s,void 0):(console.warn(`Custom icon "${n}" in "${e}" is not a valid SVG`),r)}}async function xe(t,e,n,s){let r;const{customize:i}=s?.customizations??{};for(const o of n)if(r=gt(t,o),r){let a={...be};typeof i=="function"&&(a=i(a));const{attributes:{width:l,height:f,...c},body:h}=xt(r,a),y=s?.scale;return await Se(`<svg >${h}</svg>`,e,o,s,()=>({...c}),w=>{const $=(m,g)=>{const A=w[m];let d;if(!J(A)){if(A)return;typeof y=="number"?y&&(d=`${y}em`):d=g}d?w[m]=d:delete w[m]};$("width",l),$("height",f)})}}const $e=async(t,e,n)=>{const s=n?.customCollections?.[t];if(s)if(typeof s=="function"){let r;try{r=await s(e)}catch(i){console.warn(`Failed to load custom icon "${e}" in "${t}":`,i);return}if(r){if(typeof r=="string")return await le(()=>r,t,e,n);if("icons"in r){const i=[e,e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.replace(/([a-z])(\d+)/g,"$1-$2")];return await xe(r,t,i,n)}}}else return await le(s,t,e,n)};function Et(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jt=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","dashicons","devicon-line","devicon-original","devicon-plain","devicon","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","lets-icons","line-md","logos","ls","lucide","mage","majesticons","maki","map","marketeq","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];const kt=Et(jt),Lt=3;function Pt(t){return(e={})=>{const{scale:n=1,mode:s="auto",prefix:r="i-",warn:i=!1,collections:o,extraProperties:a={},customizations:l={},autoInstall:f=!1,collectionsNodeResolvePath:c,layer:h="icons",unit:y}=e,w=Tt(),$={addXmlNs:!0,scale:n,customCollections:o,autoInstall:f,cwd:c,warn:void 0,customizations:{...l,additionalProps:{...a},trimCustomSvg:!0,async iconCustomizer(g,A,d){await l.iconCustomizer?.(g,A,d),y&&(d.width||(d.width=`${n}${y}`),d.height||(d.height=`${n}${y}`))}}};let m;return{name:"@unocss/preset-icons",enforce:"pre",options:e,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async([g,A,d=s])=>{let b="",u="",p;m=m||await t(e);const x={};if(A.includes(":"))[b,u]=A.split(":"),p=await m(b,u,{...$,usedProps:x});else{const M=A.split(/-/g);for(let O=Lt;O>=1&&(b=M.slice(0,O).join("-"),u=M.slice(O).join("-"),p=await m(b,u,{...$,usedProps:x}),!p);O--);}if(!p){i&&!w.isESLint&&me(`failed to load icon "${g}"`);return}const C=`url("data:image/svg+xml;utf8,${_t(p)}")`;return d==="auto"&&(d=p.includes("currentColor")?"mask":"bg"),d==="mask"?{"--un-icon":C,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...x}:{background:`${C} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...x}},{layer:h,prefix:r}]]}}}function _e(t,e){const n=new Map;function s(r){if(kt.includes(r))return n.has(r)||n.set(r,t(`${e}@iconify-json/${r}/icons.json`)),n.get(r)}return async(r,i,o)=>{let a=await $e(r,i,o);if(a)return a;const l=await s(r);if(l){const f=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];a=await xe(l,r,f,o)}return a}}function Tt(){const t=typeof process<"u"&&process.stdout&&!process.versions.deno,e=t&&!!ie.VSCODE_CWD,n=t&&!!ie.ESLINT;return{isNode:t,isVSCode:e,isESLint:n}}function zt(t){return _e(Ce,t)}const Ft=Pt(async t=>{const e=t?.customFetch,n=t?.cdn;return e&&n?_e(e,n):n?zt(n):$e});function It(t){return t.replace(/-(\w)/g,(e,n)=>n?n.toUpperCase():"")}function fe(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ue(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var he=["Webkit","Moz","ms"];function Nt(t){const e={};function n(s){const r=e[s];if(r)return r;let i=It(s);if(i!=="filter"&&i in t)return e[s]=ue(i);i=fe(i);for(let o=0;o<he.length;o++){const a=`${he[o]}${i}`;if(a in t)return e[s]=ue(fe(a))}return s}return({entries:s})=>s.forEach(r=>{r[0].startsWith("--")||(r[0]=n(r[0]))})}function Rt(t){return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}function Dt(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const e=window,n=window.document,s=()=>n.documentElement,r=e.__unocss||{},i=Object.assign({},t,r.runtime),o=i.defaults||{},a=i.cloakAttribute??"un-cloak";i.autoPrefix&&(o.postprocess=L(o.postprocess)).unshift(Nt(n.createElement("div").style)),i.configResolved?.(r,o);const l=ot(r,o),f=S=>i.inject?i.inject(S):s().prepend(S),c=()=>i.rootElement?i.rootElement():n.body,h=new Map;let y=!0,w=new Set,$,m,g=[];const A=()=>new Promise(S=>{g.push(S),m!=null&&clearTimeout(m),m=setTimeout(()=>u().then(()=>{const v=g;g=[],v.forEach(_=>_())}),0)});function d(S){if(S.nodeType!==1)return;const v=S;v.hasAttribute(a)&&v.removeAttribute(a),v.querySelectorAll(`[${a}]`).forEach(_=>{_.removeAttribute(a)})}function b(S,v){let _=h.get(S);if(!_)if(_=n.createElement("style"),_.setAttribute("data-unocss-runtime-layer",S),h.set(S,_),v==null)f(_);else{const j=b(v),k=j.parentNode;k?k.insertBefore(_,j.nextSibling):f(_)}return _}async function u(){const S=await l.generate(w);return S.layers.reduce((v,_)=>(b(_,v).innerHTML=S.getLayer(_)??"",_),void 0),w=S.matched,{...S,getStyleElement:v=>h.get(v),getStyleElements:()=>h}}async function p(S){const v=w.size;await l.applyExtractors(S,void 0,w),v!==w.size&&await A()}async function x(S=c()){const v=S&&S.outerHTML;v&&(await p(`${v} ${Rt(v)}`),d(s()),d(S))}const C=new MutationObserver(S=>{y||S.forEach(async v=>{if(v.target.nodeType!==1)return;const _=v.target;for(const j of h)if(_===j[1])return;if(v.type==="childList")v.addedNodes.forEach(async j=>{if(j.nodeType!==1)return;const k=j;$&&!$(k)||(await p(k.outerHTML),d(k))});else{if($&&!$(_))return;if(v.attributeName!==a){const j=Array.from(_.attributes).map(z=>z.value?`${z.name}="${z.value}"`:z.name).join(" "),k=`<${_.tagName.toLowerCase()} ${j}>`;await p(k)}_.hasAttribute(a)&&_.removeAttribute(a)}})});let M=!1;function O(){if(M)return;const S=i.observer?.target?i.observer.target():c();S&&(C.observe(S,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),M=!0)}function T(){i.bypassDefined&&Vt(l.blocked),x(),O()}function I(){n.readyState==="loading"?e.addEventListener("DOMContentLoaded",T):T()}const D=e.__unocss_runtime=e.__unocss_runtime={version:l.version,uno:l,async extract(S){E(S)||(S.forEach(v=>w.add(v)),S=""),await p(S)},extractAll:x,inspect(S){$=S},toggleObserver(S){S===void 0?y=!y:y=!!S,!M&&!y&&I()},update:u,presets:e.__unocss_runtime?.presets??{}};i.ready?.(D)!==!1&&(y=!1,I())}function Vt(t=new Set){for(let e=0;e<document.styleSheets.length;e++){const n=document.styleSheets[e];let s;try{if(s=n.cssRules||n.rules,!s)continue;Array.from(s).flatMap(r=>r.selectorText?.split(/,/g)||[]).forEach(r=>{r&&(r=r.trim(),r.startsWith(".")&&(r=r.slice(1)),t.add(r))})}catch{continue}}return t}Dt({defaults:{presets:[Ft({prefix:["i-",""],collections:{},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]},bypassDefined:!0});
|