@nuxt/devtools 3.2.4 → 4.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/chunks/module-main.mjs +264 -140
- package/dist/chunks/timeline.mjs +0 -1
- package/dist/chunks/vscode.mjs +14 -41
- package/dist/chunks/vue-devtools.mjs +0 -1
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/analyze-build-e7v5vkef.js +1 -0
- package/dist/client/_nuxt/{assets-k3ya1y6b.js → assets-b5c187l4.js} +2 -2
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/25fc8778-785e-4df1-8047-b131fc1cd4b2.json +1 -0
- package/dist/client/_nuxt/code-diff-idsu3m0z.js +8 -0
- package/dist/client/_nuxt/{code-snippets-cptms1t1.js → code-snippets-k81hoi4s.js} +1 -1
- package/dist/client/_nuxt/components-bmictfph.js +1 -0
- package/dist/client/_nuxt/{composable-item-m56sdpbk.js → composable-item-cza22cup.js} +1 -1
- package/dist/client/_nuxt/copkoh3j.js +4 -0
- package/dist/client/_nuxt/custom-_name_-gqm5kr56.js +1 -0
- package/dist/client/_nuxt/data-schema-drawer-lr34uwsh.js +2 -0
- package/dist/client/_nuxt/debug-kgc8fptp.js +1 -0
- package/dist/client/_nuxt/dev-auth-ojiqold5.js +1 -0
- package/dist/client/_nuxt/entry.css-me26coxn.css +1 -0
- package/dist/client/_nuxt/{error-404-mzw240fb.js → error-404-nggtc73s.js} +1 -1
- package/dist/client/_nuxt/error-404.css-j1aav08u.css +1 -0
- package/dist/client/_nuxt/{error-500-l89qfgc9.js → error-500-dym2gzqx.js} +1 -1
- package/dist/client/_nuxt/error-500.css-eu9fz4va.css +1 -0
- package/dist/client/_nuxt/{error-owd7hxtu.js → error-fqinfa1x.js} +2 -2
- package/dist/client/_nuxt/{filepath-item-h3i1tz3s.js → filepath-item-e1s52fbh.js} +1 -1
- package/dist/client/_nuxt/{help-fab-oeo4c53s.js → help-fab-hz6r2oxa.js} +1 -1
- package/dist/client/_nuxt/hooks-i7nsduqp.js +1 -0
- package/dist/client/_nuxt/imports-9o2qs53q.js +1 -0
- package/dist/client/_nuxt/{launch-page-h3hu9uqw.js → launch-page-hpkkqhit.js} +1 -1
- package/dist/client/_nuxt/modules-jok0opuq.js +1 -0
- package/dist/client/_nuxt/ncheckbox-c0r45qtu.js +1 -0
- package/dist/client/_nuxt/ndrawer-bgqyrlmt.js +1 -0
- package/dist/client/_nuxt/ndropdown-cip8lboe.js +1 -0
- package/dist/client/_nuxt/{nnavbar-n7gfocyu.js → nnavbar-lpozm5fj.js} +1 -1
- package/dist/client/_nuxt/nsection-block-lqrohs9v.js +1 -0
- package/dist/client/_nuxt/nselect-gczoit0g.js +1 -0
- package/dist/client/_nuxt/nselect-tabs-bsw5fg3d.js +1 -0
- package/dist/client/_nuxt/ntext-input-cygthohl.js +1 -0
- package/dist/client/_nuxt/ntip-ke63ovgc.js +1 -0
- package/dist/client/_nuxt/{open-graph-iihpwnih.js → open-graph-lumhcitx.js} +2 -2
- package/dist/client/_nuxt/overview-c1ufrox9.js +1 -0
- package/dist/client/_nuxt/pages-cf1hvns3.js +1 -0
- package/dist/client/_nuxt/pages-lgihsvbt.js +1 -0
- package/dist/client/_nuxt/payload-fvgw4hh9.js +1 -0
- package/dist/client/_nuxt/pinia-lmrgyjxw.js +1 -0
- package/dist/client/_nuxt/plugins-ccaip8nh.js +1 -0
- package/dist/client/_nuxt/render-tree-corj3giw.js +1 -0
- package/dist/client/_nuxt/rpc-ez4fzlum.js +1 -0
- package/dist/client/_nuxt/runtime-configs-im0uu24n.js +1 -0
- package/dist/client/_nuxt/server-discovery-ffkkczqi.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-lspeoiem.js +1 -0
- package/dist/client/_nuxt/server-routes-dhvqrowz.js +7 -0
- package/dist/client/_nuxt/server-tasks-mr9ezn8q.js +1 -0
- package/dist/client/_nuxt/settings-issronwn.js +1 -0
- package/dist/client/_nuxt/{stacktrace-list-ir6dwfsw.js → stacktrace-list-hiui24c3.js} +1 -1
- package/dist/client/_nuxt/state-components-fbls8ka7.js +1 -0
- package/dist/client/_nuxt/state-editor-c7e04uj2.js +1 -0
- package/dist/client/_nuxt/state-modules-inqbwd7z.js +1 -0
- package/dist/client/_nuxt/{state-routes-jownks2o.js → state-routes-jln33b1m.js} +1 -1
- package/dist/client/_nuxt/state-tabs-etl5jr30.js +1 -0
- package/dist/client/_nuxt/storage-husj5pg6.js +1 -0
- package/dist/client/_nuxt/storage-options-cth3coln.js +1 -0
- package/dist/client/_nuxt/telemetry-eqv6a0hn.js +1 -0
- package/dist/client/_nuxt/terminals-kitd8oja.js +1 -0
- package/dist/client/_nuxt/timeline-gr4tcvcz.js +31 -0
- package/dist/client/_nuxt/utils-nbkl6byi.js +2 -0
- package/dist/client/_nuxt/virtual-files-ky9cc4av.js +1 -0
- package/dist/client/_nuxt/{vue-devtools-fdei7bct.js → vue-devtools-dunhx2nz.js} +3 -3
- package/dist/client/index.html +1 -1
- package/dist/dirs.d.mts +1 -2
- package/dist/dirs.mjs +1 -21
- package/dist/module.d.mts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -5
- package/dist/runtime/plugins/devtools.client.js +1 -1
- package/dist/runtime/plugins/view/client.js +22 -72
- package/dist/runtime/plugins/view/state.d.ts +0 -1
- package/dist/runtime/plugins/view/state.js +0 -2
- package/dist/shared/{devtools.CT6XRG-F.mjs → devtools.COlX0Gls.mjs} +1 -9
- package/dist/shared/{devtools.C1a10l_c.d.mts → devtools.LsRDzDTD.d.mts} +0 -12
- package/dist/types.d.mts +1 -1
- package/dist/webcomponents/index.d.mts +1 -3
- package/dist/webcomponents/index.mjs +11 -1160
- package/package.json +8 -16
- package/cli.mjs +0 -2
- package/dist/client/_nuxt/analyze-build-isc8qyt9.js +0 -1
- package/dist/client/_nuxt/builds/meta/c954ff6d-891d-44ef-873b-bed085186c32.json +0 -1
- package/dist/client/_nuxt/client-nwyjxodt.js +0 -2
- package/dist/client/_nuxt/code-diff-hjtd937u.js +0 -8
- package/dist/client/_nuxt/components-h8jl0r8x.js +0 -1
- package/dist/client/_nuxt/custom-_name_-oczf7kge.js +0 -1
- package/dist/client/_nuxt/d479ufk9.js +0 -4
- package/dist/client/_nuxt/data-schema-drawer-le08obah.js +0 -2
- package/dist/client/_nuxt/debug-hbdh85ek.js +0 -1
- package/dist/client/_nuxt/dev-auth-he0eye7r.js +0 -1
- package/dist/client/_nuxt/entry.css-hn1q325i.css +0 -1
- package/dist/client/_nuxt/error-404.css-b4qk08da.css +0 -1
- package/dist/client/_nuxt/error-500.css-awwhwbzo.css +0 -1
- package/dist/client/_nuxt/hooks-lapcgs2a.js +0 -1
- package/dist/client/_nuxt/imports-lb64tt5j.js +0 -1
- package/dist/client/_nuxt/modules-isjfof47.js +0 -1
- package/dist/client/_nuxt/ncheckbox-ep01n5y1.js +0 -1
- package/dist/client/_nuxt/ndrawer-hos2o4rf.js +0 -1
- package/dist/client/_nuxt/ndropdown-knvt4ccq.js +0 -1
- package/dist/client/_nuxt/nsection-block-ibsk9arc.js +0 -1
- package/dist/client/_nuxt/nselect-gyaplrph.js +0 -1
- package/dist/client/_nuxt/nselect-tabs-fslk8qg5.js +0 -1
- package/dist/client/_nuxt/ntext-input-e8iut2en.js +0 -1
- package/dist/client/_nuxt/overview-hir7dg5h.js +0 -1
- package/dist/client/_nuxt/pages-etzxihfh.js +0 -1
- package/dist/client/_nuxt/pages-okkqwdpu.js +0 -1
- package/dist/client/_nuxt/payload-hmxfri1t.js +0 -1
- package/dist/client/_nuxt/pinia-bfcvuvfi.js +0 -1
- package/dist/client/_nuxt/plugins-ehtddhxd.js +0 -1
- package/dist/client/_nuxt/render-tree-ke02si46.js +0 -1
- package/dist/client/_nuxt/runtime-configs-ft5vi88d.js +0 -1
- package/dist/client/_nuxt/server-discovery-k9u6ss6f.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-fhqv0c7q.js +0 -1
- package/dist/client/_nuxt/server-routes-dy0m6wq4.js +0 -7
- package/dist/client/_nuxt/server-tasks-naz2m1n0.js +0 -1
- package/dist/client/_nuxt/settings-io1tvmdq.js +0 -1
- package/dist/client/_nuxt/state-components-ii0yssci.js +0 -1
- package/dist/client/_nuxt/state-editor-m7poh4fc.js +0 -1
- package/dist/client/_nuxt/state-modules-m990wfjb.js +0 -1
- package/dist/client/_nuxt/state-tabs-mtxv3h6t.js +0 -1
- package/dist/client/_nuxt/storage-nebfhfwp.js +0 -1
- package/dist/client/_nuxt/storage-options-nzog3hhp.js +0 -1
- package/dist/client/_nuxt/telemetry-c77tnag3.js +0 -1
- package/dist/client/_nuxt/terminals-j3f24tml.js +0 -1
- package/dist/client/_nuxt/timeline-cg7nhorz.js +0 -31
- package/dist/client/_nuxt/utils-jupbrzo6.js +0 -1
- package/dist/client/_nuxt/virtual-files-bkiu19oo.js +0 -1
- /package/dist/client/_nuxt/{color-l56csnpd.js → color-b9xoe9j2.js} +0 -0
- /package/dist/client/_nuxt/{constants-mq2c9hze.js → constants-ih922r91.js} +0 -0
- /package/dist/client/_nuxt/{data-schema-button-n0xmsouw.js → data-schema-button-b308wyi0.js} +0 -0
- /package/dist/client/_nuxt/{dist-og16nf4d.js → dist-m49wlq01.js} +0 -0
- /package/dist/client/_nuxt/{duration-display-h5sffkps.js → duration-display-f7ucshmo.js} +0 -0
- /package/dist/client/_nuxt/{mitt.es-ey5n86su.js → mitt.es-fjx0h8xe.js} +0 -0
- /package/dist/client/_nuxt/{nbadge-f1bvtlf5.js → nbadge-m66xoquo.js} +0 -0
- /package/dist/client/_nuxt/{ncard-ludmyw2u.js → ncard-mqcl8pso.js} +0 -0
- /package/dist/client/_nuxt/{nicon-title-kbrt9te7.js → nicon-title-tqdvw0w0.js} +0 -0
- /package/dist/client/_nuxt/{nmarkdown-ciogo2e3.js → nmarkdown-hw0hmqw7.js} +0 -0
- /package/dist/client/_nuxt/{npanel-grids-onrho735.js → npanel-grids-dd23ifsw.js} +0 -0
- /package/dist/client/_nuxt/{splitpanes.es-gcsn48te.js → splitpanes.es-bxyirks2.js} +0 -0
- /package/dist/client/_nuxt/{unocss-runtime-g9wlule9.js → unocss-runtime-cpug61u1.js} +0 -0
- /package/dist/client/_nuxt/vendor/{vis-gf06uk37.js → vis-id8udisj.js} +0 -0
- /package/dist/client/_nuxt/vendor/{xterm-k45lhqgb.js → xterm-ed0pys2e.js} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.0-alpha.1",
|
|
5
5
|
"description": "The Nuxt DevTools gives you insights and transparency about your Nuxt App.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://devtools.nuxt.com",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"./*": "./*"
|
|
26
26
|
},
|
|
27
27
|
"types": "./dist/module.d.mts",
|
|
28
|
-
"bin": "./cli.mjs",
|
|
29
28
|
"files": [
|
|
30
29
|
"*.cjs",
|
|
31
30
|
"*.d.ts",
|
|
@@ -33,47 +32,39 @@
|
|
|
33
32
|
"dist"
|
|
34
33
|
],
|
|
35
34
|
"peerDependencies": {
|
|
36
|
-
"@vitejs/devtools": "*",
|
|
37
35
|
"vite": ">=6.0"
|
|
38
36
|
},
|
|
39
|
-
"peerDependenciesMeta": {
|
|
40
|
-
"@vitejs/devtools": {
|
|
41
|
-
"optional": true
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
37
|
"dependencies": {
|
|
45
38
|
"@nuxt/kit": "^4.4.2",
|
|
39
|
+
"@vitejs/devtools": "^0.1.3",
|
|
40
|
+
"@vitejs/devtools-kit": "^0.1.3",
|
|
46
41
|
"@vue/devtools-core": "^8.1.0",
|
|
47
42
|
"@vue/devtools-kit": "^8.1.0",
|
|
48
43
|
"birpc": "^4.0.0",
|
|
49
44
|
"consola": "^3.4.2",
|
|
50
45
|
"destr": "^2.0.5",
|
|
51
46
|
"error-stack-parser-es": "^1.0.5",
|
|
52
|
-
"execa": "^8.0.1",
|
|
53
47
|
"fast-npm-meta": "^1.4.2",
|
|
54
48
|
"get-port-please": "^3.2.0",
|
|
55
49
|
"hookable": "^6.1.0",
|
|
56
50
|
"image-meta": "^0.2.2",
|
|
57
|
-
"is-installed-globally": "^1.0.0",
|
|
58
51
|
"launch-editor": "^2.13.1",
|
|
59
52
|
"local-pkg": "^1.1.2",
|
|
60
53
|
"magicast": "^0.5.2",
|
|
61
|
-
"nypm": "^0.6.5",
|
|
62
54
|
"ohash": "^2.0.11",
|
|
63
55
|
"pathe": "^2.0.3",
|
|
64
56
|
"perfect-debounce": "^2.1.0",
|
|
65
57
|
"pkg-types": "^2.3.0",
|
|
66
58
|
"semver": "^7.7.4",
|
|
67
|
-
"simple-git": "^3.33.0",
|
|
68
59
|
"sirv": "^3.0.2",
|
|
69
60
|
"structured-clone-es": "^2.0.0",
|
|
61
|
+
"tinyexec": "^1.0.4",
|
|
70
62
|
"tinyglobby": "^0.2.15",
|
|
71
63
|
"vite-plugin-inspect": "^11.3.3",
|
|
72
64
|
"vite-plugin-vue-tracer": "^1.3.0",
|
|
73
65
|
"which": "^6.0.1",
|
|
74
66
|
"ws": "^8.19.0",
|
|
75
|
-
"@nuxt/devtools-kit": "
|
|
76
|
-
"@nuxt/devtools-wizard": "3.2.4"
|
|
67
|
+
"@nuxt/devtools-kit": "4.0.0-alpha.1"
|
|
77
68
|
},
|
|
78
69
|
"devDependencies": {
|
|
79
70
|
"@antfu/utils": "^9.3.0",
|
|
@@ -94,7 +85,7 @@
|
|
|
94
85
|
"@unocss/preset-icons": "^66.6.6",
|
|
95
86
|
"@unocss/preset-uno": "^66.6.6",
|
|
96
87
|
"@unocss/runtime": "^66.6.6",
|
|
97
|
-
"@vitejs/devtools": "^0.1.
|
|
88
|
+
"@vitejs/devtools": "^0.1.3",
|
|
98
89
|
"@vitest/ui": "^4.1.0",
|
|
99
90
|
"@vue/devtools-applet": "^8.1.0",
|
|
100
91
|
"@vueuse/nuxt": "^14.2.1",
|
|
@@ -111,6 +102,7 @@
|
|
|
111
102
|
"nitropack": "^2.13.1",
|
|
112
103
|
"nuxt": "^4.4.2",
|
|
113
104
|
"ofetch": "^1.5.1",
|
|
105
|
+
"package-manager-detector": "^1.6.0",
|
|
114
106
|
"quicktype-core": "22.0.0",
|
|
115
107
|
"scule": "^1.3.0",
|
|
116
108
|
"shiki": "^4.0.2",
|
|
@@ -125,7 +117,7 @@
|
|
|
125
117
|
"vanilla-jsoneditor": "^3.11.0",
|
|
126
118
|
"vis-data": "^8.0.3",
|
|
127
119
|
"vis-network": "^10.0.2",
|
|
128
|
-
"vue-tsc": "^3.2.
|
|
120
|
+
"vue-tsc": "^3.2.6",
|
|
129
121
|
"vue-virtual-scroller": "^2.0.0-beta.10"
|
|
130
122
|
},
|
|
131
123
|
"scripts": {
|
package/cli.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,Ct as t,E as n,Mt as r,Qt as i,W as a,Y as o,_ as s,c,dt as l,ft as u,g as d,h as f,m as p,tn as m,v as h,w as g}from"./vendor/json-editor-vue-eojr4v24.js";import{A as _,_ as v}from"./ready-dadbdj5i.js";import{a as y}from"./nuxt-otp6bp04.js";import{_ as b,g as x}from"./utils-jupbrzo6.js";import{_ as S,l as C,v as w}from"./client-nwyjxodt.js";import{n as T}from"./dev-auth-he0eye7r.js";import"./vendor/shiki-lqo1hg2n.js";import"./storage-options-nzog3hhp.js";import"./nuxt-link-bumooa9d.js";import{t as E}from"./_plugin-vue_export-helper-n58akrbk.js";import"./nicon-m1crov2l.js";import{t as D}from"./nbutton-gygn07c2.js";import"./ncard-ludmyw2u.js";import{r as O}from"./state-routes-jownks2o.js";import{t as k}from"./telemetry-c77tnag3.js";import"./state-tabs-mtxv3h6t.js";import{t as A}from"./npanel-grids-onrho735.js";import{t as j}from"./ntext-input-e8iut2en.js";import{D as M,c as N,f as P,o as F,p as I,t as L}from"#entry";import"./client-im47u3kz.js";import{t as R}from"./ncode-block-figzf35k.js";import{t as z}from"./composables-b2ccklz4.js";import{t as B}from"./ncheckbox-ep01n5y1.js";import{t as V}from"./filepath-item-h3i1tz3s.js";import{t as H}from"./help-fab-oeo4c53s.js";var U={"h-full":``,grid:`~ rows-[max-content_1fr]`},W={flex:`~ wrap`,"w-full":``},G=[`onClick`],K={key:0,flex:`~ col gap-4 items-center justify-center`,p4:``},q={grid:`~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center`,"w-100":``},J=`/__nuxt_devtools__/client`,Y=n({__name:`BuildAnalyzeDetails`,props:{current:{},prev:{}},setup(n){let d=n,v=`${y().app.baseURL.replace(J,`/`)}/__nuxt_devtools__/analyze/`.replace(/\/+/g,`/`),b=p(()=>{let e=[{name:`Overview`,id:`overview`}];return d.current.features.bundleClient&&e.push({name:`Client Bundle`,id:`bundle-client`}),d.current.features.bundleNitro&&e.push({name:`Nitro Bundle`,id:`bundle-nitro`}),d.current.features.viteInspect&&e.push({name:`Vite Inspect`,id:`vite-inspect`}),e}),x=t(b.value[0]);function S(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function E(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:e<1024*1024*1024?`${(e/1024/1024).toFixed(1)}MB`:`${(e/1024/1024/1024).toFixed(1)}GB`}async function O(e){return C.clearAnalyzeBuilds(await T(),[e])}return(t,d)=>{let p=V,y=D;return a(),h(`div`,U,[f(`div`,W,[(a(!0),h(c,null,o(b.value,(e,t)=>(a(),h(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:i(e.id===x.value?.id?``:`border-b`),onClick:t=>x.value=e},[f(`div`,{class:i(e.id===x.value?.id?``:`op30`)},m(e.name),3)],10,G))),128)),d[1]||=f(`div`,{border:`b base`,"flex-auto":``},null,-1)]),x.value?.id===`overview`?(a(),h(`div`,K,[d[15]||=f(`div`,{"flex-auto":``},null,-1),f(`div`,q,[d[10]||=f(`div`,{"i-carbon-commit":``,"text-xl":``},null,-1),f(`div`,null,[d[2]||=f(`div`,{"text-sm":``,op50:``},` Name `,-1),f(`div`,null,m(n.current.name),1)]),d[11]||=f(`div`,{"i-carbon-time":``,"text-xl":``},null,-1),f(`div`,null,[d[3]||=f(`div`,{"text-sm":``,op50:``},` Build duration `,-1),f(`div`,null,m(S(n.current)),1)]),n.current.size?.clientBundle?(a(),h(c,{key:0},[d[5]||=f(`div`,{"i-carbon-cics-program":``,"text-xl":``},null,-1),f(`div`,null,[d[4]||=f(`div`,{"text-sm":``,op50:``},` Client bundle size `,-1),f(`div`,null,m(E(n.current.size.clientBundle)),1)])],64)):s(``,!0),n.current.size?.nitroBundle?(a(),h(c,{key:1},[d[7]||=f(`div`,{"i-carbon-bare-metal-server":``,"text-xl":``},null,-1),f(`div`,null,[d[6]||=f(`div`,{"text-sm":``,op50:``},` Nitro bundle size `,-1),f(`div`,null,m(E(n.current.size.nitroBundle)),1)])],64)):s(``,!0),d[12]||=f(`div`,{"i-carbon-edge-node":``,"text-xl":``},null,-1),f(`div`,null,[d[8]||=f(`div`,{"text-sm":``,op50:``},` Built `,-1),f(`div`,null,m(r(w)(new Date(n.current.endTime))),1)]),d[13]||=f(`div`,{"i-carbon:folder-parent":``,"text-xl":``},null,-1),f(`div`,null,[d[9]||=f(`div`,{"text-sm":``,op50:``},` Report Path `,-1),g(p,{filepath:n.current.analyzeDir},null,8,[`filepath`])])]),d[16]||=f(`div`,{"flex-auto":``},null,-1),g(y,{n:`rose`,icon:`carbon-delete`,onClick:d[0]||=e=>O(n.current.name)},{default:l(()=>[...d[14]||=[e(` Delete this report `,-1)]]),_:1})])):s(``,!0),d._lazyshow1||x.value?.id===`bundle-client`?(d._lazyshow1=!0,a(),h(c,null,[u(f(`iframe`,{src:`${r(v)}${n.current.slug}/client.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[_,x.value?.id===`bundle-client`]])],64)):s(`v-show-if`,!0),d._lazyshow2||x.value?.id===`bundle-nitro`?(d._lazyshow2=!0,a(),h(c,null,[u(f(`iframe`,{src:`${r(v)}${n.current.slug}/nitro.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[_,x.value?.id===`bundle-nitro`]])],64)):s(`v-show-if`,!0),d._lazyshow3||x.value?.id===`vite-inspect`?(d._lazyshow3=!0,a(),h(c,null,[u(f(`iframe`,{src:`${r(v)}${n.current.slug}/.vite-inspect/`,"h-full":``,"w-full":``},null,8,[`src`]),[[_,x.value?.id===`vite-inspect`]])],64)):s(`v-show-if`,!0)])}}}),X=Object.assign(Y,{__name:`BuildAnalyzeDetails`}),Z={},Q={class:`markdown-body`};function $(t,n){return a(),h(`div`,Q,[...n[0]||=[f(`template`,null,[f(`div`,{class:`markdown-body`},[f(`h1`,null,`Build Analyze`),f(`p`,null,[e(`DevTools provides a build analyze tool to help you understand the size of your app in production. Whenever you start a new build, it runs the command `),f(`code`,{"v-pre":``},`nuxt build --analyze`),e(` and present the output data directly in DevTools for easy browsing and comparing.`)])])],-1)]])}var ee=E(Z,[[`render`,$]]),te={flex:`~ col`},ne=[`onClick`],re={flex:`~ gap-1 items-center wrap`,"w-full":``,"text-sm":``,op60:``},ie={flex:`~ items-center justify-center wrap`,p4:``},ae={flex:`~ col gap-1`,"w-250":``,p4:``},oe={flex:`~ gap-3`,mt2:``,"justify-end":``},se=n({__name:`analyze-build`,setup(n){z({icon:`carbon-edge-node`,title:`Build Analyze`,layout:`full`,category:`analyze`,show(){return M(`^3.5.0`)}});let u=S(),_=b(),y=v(),E=x(`analyze-build:slug`,``),V=p(()=>_.value?.builds.find(e=>e.slug===E.value)??_.value?.builds[0]),U=t(!1),W=t(``),G=p(()=>_.value?.builds.some(e=>e.name===W.value.trim()));async function K(){W.value=await C.generateAnalyzeBuildName(),await u.start()&&(k(`analyze-build:start`),L.value={name:W.value,processId:await C.startAnalyzeBuild(await T(),W.value)},U.value&&Y())}let q=O();function J(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function Y(){L.value?.processId&&(q.value=L.value.processId,y.push(`/modules/terminals`))}return F(()=>[{id:`action:analyze-build: start`,title:`Start a new analyze build`,icon:`i-carbon-edge-node`,action:K}]),(t,n)=>{let p=D,v=X,y=A,b=N,x=j,S=I,C=R,T=B,O=P,k=ee,M=H;return a(),h(c,null,[g(b,{"left-size":30},{left:l(()=>[f(`div`,te,[(a(!0),h(c,null,o(r(_)?.builds,e=>(a(),h(c,{key:e.slug},[f(`button`,{flex:`~ col gap1`,p3:``,"hover:bg-active":``,class:i(e.slug===V.value?.slug?`text-primary bg-active`:``),onClick:t=>E.value=e.slug},[f(`code`,null,m(e.name),1),f(`div`,re,[n[4]||=f(`div`,{"i-carbon-time":``},null,-1),f(`span`,null,m(J(e)),1),n[5]||=f(`div`,{"flex-auto":``},null,-1),f(`span`,null,m(r(w)(new Date(e.endTime))),1)])],10,ne),n[6]||=f(`div`,{"x-divider":``},null,-1)],64))),128)),f(`div`,ie,[r(L)?(a(),d(p,{key:1,n:`primary`,icon:`carbon-circle-dash animate-spin`,onClick:n[1]||=e=>Y()},{default:l(()=>[...n[8]||=[e(` Building... `,-1)]]),_:1})):(a(),d(p,{key:0,n:`primary`,icon:`carbon-edge-node`,onClick:n[0]||=e=>K()},{default:l(()=>[...n[7]||=[e(` Start a new build `,-1)]]),_:1}))])])]),right:l(()=>[V.value?(a(),d(v,{key:0,current:V.value},null,8,[`current`])):(a(),d(y,{key:1}))]),_:1}),g(r(u),null,{default:l(({resolve:t})=>[g(O,{"model-value":!0,onClose:e=>t(!1)},{default:l(()=>[f(`div`,ae,[n[13]||=f(`h3`,{class:`text-lg font-medium leading-6`,mb2:``},` Start analyze build? `,-1),n[14]||=f(`p`,{op50:``},` Enter the name of the build: `,-1),g(x,{modelValue:W.value,"onUpdate:modelValue":n[2]||=e=>W.value=e,placeholder:`Build name`},null,8,[`modelValue`]),G.value?(a(),d(S,{key:0,"n-orange":``},{default:l(()=>[...n[9]||=[e(` A build with the same name already exists, continue would overrides the previous build result. `,-1)]]),_:1})):s(``,!0),n[15]||=f(`div`,{my3:``,"x-divider":``},null,-1),n[16]||=f(`p`,{op50:``},` The following command will be executed in your terminal: `,-1),g(C,{code:`npx nuxi analyze --no-serve --name=${W.value}`,lang:`bash`,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),g(T,{modelValue:U.value,"onUpdate:modelValue":n[3]||=e=>U.value=e,mt2:``,n:`primary`},{default:l(()=>[...n[10]||=[e(` Navigate to terminal `,-1)]]),_:1},8,[`modelValue`]),f(`div`,oe,[g(p,{onClick:e=>t(!1)},{default:l(()=>[...n[11]||=[e(` Cancel `,-1)]]),_:1},8,[`onClick`]),g(p,{n:`solid primary`,onClick:e=>t(!0)},{default:l(()=>[...n[12]||=[e(` Start `,-1)]]),_:1},8,[`onClick`])])])]),_:2},1032,[`onClose`])]),_:1}),g(M,null,{default:l(()=>[g(k)]),_:1})],64)}}});export{se as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"c954ff6d-891d-44ef-873b-bed085186c32","timestamp":1773712968583,"prerendered":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vendor/markdown-it-ckeo8pwp.js","./rolldown-runtime-oipoa1or.js","./vendor/shiki-lqo1hg2n.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{A as e,At as t,Ct as n,D as r,Dt as i,E as a,Et as o,F as s,M as c,Mt as l,Ot as u,St as d,Tt as f,V as p,a as m,bt as h,c as g,ct as _,gt as v,j as y,lt as b,m as x,mt as S,vt as C,wt as w,xt as T}from"./vendor/json-editor-vue-eojr4v24.js";import{S as E}from"./ready-dadbdj5i.js";import{i as D}from"./nuxt-otp6bp04.js";import{D as O,O as ee,k as te}from"./vendor/shiki-lqo1hg2n.js";function k(e,t){return v()?(h(e,t),!0):!1}var A=new WeakMap,ne=(...e)=>{let t=e[0],n=r()?.proxy??v();if(n==null&&!y())throw Error(`injectLocal must be called in setup`);return n&&A.has(n)&&t in A.get(n)?A.get(n)[t]:c(...e)},j=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var re=e=>e!==void 0,ie=e=>e!=null,ae=Object.prototype.toString,oe=e=>ae.call(e)===`[object Object]`,M=()=>{},se=ce();function ce(){var e,t;return j&&!!(!((e=window)==null||(e=e.navigator)==null)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function le(...e){if(e.length!==1)return u(...e);let t=e[0];return typeof t==`function`?d(S(()=>({get:t,set:M}))):n(t)}function ue(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var de=e=>e();function fe(e,n={}){let r,i,a=M,o=e=>{clearTimeout(e),a(),a=M},s;return c=>{let l=t(e),u=t(n.maxWait);return r&&o(r),l<=0||u!==void 0&&u<=0?(i&&=(o(i),void 0),Promise.resolve(c())):new Promise((e,t)=>{a=n.rejectOnCancel?t:e,s=c,u&&!i&&(i=setTimeout(()=>{r&&o(r),i=void 0,e(s())},u)),r=setTimeout(()=>{i&&o(i),i=void 0,e(c())},l)})}}function pe(e=de,t={}){let{initialState:n=`active`}=t,r=le(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:d(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function me(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(()=>i(n),e):setTimeout(r,e)})}function he(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function ge(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function _e(e){return Object.entries(e)}function N(e){return Array.isArray(e)?e:[e]}function ve(e){let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))}var ye=/-(\w)/g,be=ve(e=>e.replace(ye,(e,t)=>t?t.toUpperCase():``));function xe(e){return e||r()}function Se(e,t){if(typeof Symbol<`u`){let n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:t[e++],done:e>t.length})}}}),n}else return Object.assign([...t],e)}function Ce(e){return C(e)?T(new Proxy({},{get(t,n,r){return l(Reflect.get(e.value,n,r))},set(t,n,r){return C(e.value[n])&&!C(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):T(e)}function we(e){return Ce(x(e))}function Te(e,t=200,n={}){return ue(fe(t,n),e)}function Ee(e,r=200,i={}){let a=n(t(e)),o=Te(()=>{a.value=e.value},r,i);return _(e,()=>o()),f(a)}var De=Ee;function Oe(e,t,n={}){let{eventFilter:r=de,...i}=n;return _(e,ue(r,t),i)}function ke(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=pe(r,{initialState:i});return{stop:Oe(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function P(e,t=!0,n){xe(n)?p(e,n):t?e():s(e)}function F(e,n=!1){function r(r,{flush:i=`sync`,deep:a=!1,timeout:o,throwOnTimeout:c}={}){let l=null,u=[new Promise(t=>{l=_(e,e=>{r(e)!==n&&(l?l():s(()=>l?.()),t(e))},{flush:i,deep:a,immediate:!0})})];return o!=null&&u.push(me(o,c).then(()=>t(e)).finally(()=>l?.())),Promise.race(u)}function i(i,a){if(!C(i))return r(e=>e===i,a);let{flush:o=`sync`,deep:c=!1,timeout:l,throwOnTimeout:u}=a??{},d=null,f=[new Promise(t=>{d=_([e,i],([e,r])=>{n!==(e===r)&&(d?d():s(()=>d?.()),t(e))},{flush:o,deep:c,immediate:!0})})];return l!=null&&f.push(me(l,u).then(()=>t(e)).finally(()=>(d?.(),t(e)))),Promise.race(f)}function a(e){return r(e=>!!e,e)}function o(e){return i(null,e)}function c(e){return i(void 0,e)}function l(e){return r(Number.isNaN,e)}function u(e,n){return r(n=>{let r=Array.from(n);return r.includes(e)||r.includes(t(e))},n)}function d(e){return f(1,e)}function f(e=1,t){let n=-1;return r(()=>(n+=1,n>=e),t)}return Array.isArray(t(e))?{toMatch:r,toContains:u,changed:d,changedTimes:f,get not(){return F(e,!n)}}:{toMatch:r,toBe:i,toBeTruthy:a,toBeNull:o,toBeNaN:l,toBeUndefined:c,changed:d,changedTimes:f,get not(){return F(e,!n)}}}function Ae(e){return F(e)}var je=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,Me=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|z{1,4}|SSS/g;function Ne(e,t,n,r){let i=e<12?`AM`:`PM`;return r&&(i=i.split(``).reduce((e,t)=>e+=`${t}.`,``)),n?i.toLowerCase():i}function I(e){let t=[`th`,`st`,`nd`,`rd`],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function Pe(e,n,r={}){let i=e.getFullYear(),a=e.getMonth(),o=e.getDate(),s=e.getHours(),c=e.getMinutes(),l=e.getSeconds(),u=e.getMilliseconds(),d=e.getDay(),f=r.customMeridiem??Ne,p=e=>e.split(` `)[1]??``,m={Yo:()=>I(i),YY:()=>String(i).slice(-2),YYYY:()=>i,M:()=>a+1,Mo:()=>I(a+1),MM:()=>`${a+1}`.padStart(2,`0`),MMM:()=>e.toLocaleDateString(t(r.locales),{month:`short`}),MMMM:()=>e.toLocaleDateString(t(r.locales),{month:`long`}),D:()=>String(o),Do:()=>I(o),DD:()=>`${o}`.padStart(2,`0`),H:()=>String(s),Ho:()=>I(s),HH:()=>`${s}`.padStart(2,`0`),h:()=>`${s%12||12}`.padStart(1,`0`),ho:()=>I(s%12||12),hh:()=>`${s%12||12}`.padStart(2,`0`),m:()=>String(c),mo:()=>I(c),mm:()=>`${c}`.padStart(2,`0`),s:()=>String(l),so:()=>I(l),ss:()=>`${l}`.padStart(2,`0`),SSS:()=>`${u}`.padStart(3,`0`),d:()=>d,dd:()=>e.toLocaleDateString(t(r.locales),{weekday:`narrow`}),ddd:()=>e.toLocaleDateString(t(r.locales),{weekday:`short`}),dddd:()=>e.toLocaleDateString(t(r.locales),{weekday:`long`}),A:()=>f(s,c),AA:()=>f(s,c,!1,!0),a:()=>f(s,c,!0),aa:()=>f(s,c,!0,!0),z:()=>p(e.toLocaleDateString(t(r.locales),{timeZoneName:`shortOffset`})),zz:()=>p(e.toLocaleDateString(t(r.locales),{timeZoneName:`shortOffset`})),zzz:()=>p(e.toLocaleDateString(t(r.locales),{timeZoneName:`shortOffset`})),zzzz:()=>p(e.toLocaleDateString(t(r.locales),{timeZoneName:`longOffset`}))};return n.replace(Me,(e,t)=>t??m[e]?.call(m)??e)}function Fe(e){if(e===null)return new Date(NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e==`string`&&!/Z$/i.test(e)){let t=e.match(je);if(t){let e=t[2]-1||0,n=(t[7]||`0`).substring(0,3);return new Date(t[1],e,t[3]||1,t[4]||0,t[5]||0,t[6]||0,n)}}return new Date(e)}function Ie(e,n=`HH:mm:ss`,r={}){return x(()=>Pe(Fe(t(e)),t(n),r))}function L(e,n=1e3,r={}){let{immediate:i=!0,immediateCallback:a=!1}=r,s=null,c=o(!1);function l(){s&&=(clearInterval(s),null)}function u(){c.value=!1,l()}function d(){let r=t(n);r<=0||(c.value=!0,a&&e(),l(),c.value&&(s=setInterval(e,r)))}return i&&j&&d(),(C(n)||typeof n==`function`)&&k(_(n,()=>{c.value&&j&&d()})),k(u),{isActive:f(c),pause:u,resume:d}}function Le(e,n,r={}){let{immediate:i=!0,immediateCallback:a=!1}=r,s=o(!1),c;function l(){c&&=(clearTimeout(c),void 0)}function u(){s.value=!1,l()}function d(...r){a&&e(),l(),s.value=!0,c=setTimeout(()=>{s.value=!1,c=void 0,e(...r)},t(n))}return i&&(s.value=!0,j&&d()),k(u),{isPending:f(s),start:d,stop:u}}function Re(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return Oe(e,t,{...a,eventFilter:fe(r,{maxWait:i})})}function ze(e,t,n){return _(e,t,{...n,immediate:!0})}function Be(e,t,r){let i;i=C(r)?{evaluating:r}:r||{};let{lazy:a=!1,flush:s=`sync`,evaluating:c=void 0,shallow:l=!0,onError:u=globalThis.reportError??M}=i,d=o(!a),f=l?o(t):n(t),p=0;return b(async t=>{if(!d.value)return;p++;let n=p,r=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{let i=await e(e=>{t(()=>{c&&(c.value=!1),r||e()})});n===p&&(f.value=i)}catch(e){u(e)}finally{c&&n===p&&(c.value=!1),r=!0}},{flush:s}),a?x(()=>(d.value=!0,f.value)):f}function Ve(e={}){let{inheritAttrs:t=!0}=e,n=o(),r=a({setup(e,{slots:t}){return()=>{n.value=t.default}}}),i=a({inheritAttrs:t,props:e.props,setup(r,{attrs:i,slots:a}){return()=>{if(!n.value)throw Error(`[VueUse] Failed to find the definition of reusable template`);let o=n.value?.call(n,{...e.props==null?He(i):r,$slots:a});return t&&o?.length===1?o[0]:o}}});return Se({define:r,reuse:i},[r,i])}function He(e){let t={};for(let n in e)t[be(n)]=e[n];return t}function Ue(t={}){let r=0,i=n([]);function o(...e){let n=w({key:r++,args:e,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:t});return i.value.push(n),n.promise=new Promise((e,t)=>{n.resolve=t=>(n.isResolving=!0,e(t)),n.reject=t}).finally(()=>{n.promise=void 0;let e=i.value.indexOf(n);e!==-1&&i.value.splice(e,1)}),n.promise}function s(...e){return t.singleton&&i.value.length>0?i.value[0].promise:o(...e)}let c=a((n,{slots:r})=>{let a=()=>i.value.map(t=>e(g,{key:t.key},r.default?.call(r,t)));return t.transition?()=>e(E,t.transition,a):a});return c.start=s,c}var R=j?window:void 0,We=j?window.document:void 0,Ge=j?window.navigator:void 0;j&&window.location;function z(e){let n=t(e);return n?.$el??n}function B(...e){let n=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),r=x(()=>{let n=N(t(e[0])).filter(e=>e!=null);return n.every(e=>typeof e!=`string`)?n:void 0});return ze(()=>[r.value?.map(e=>z(e))??[R].filter(e=>e!=null),N(t(r.value?e[1]:e[0])),N(l(r.value?e[2]:e[1])),t(r.value?e[3]:e[2])],([e,t,r,i],a,o)=>{if(!e?.length||!t?.length||!r?.length)return;let s=oe(i)?{...i}:i,c=e.flatMap(e=>t.flatMap(t=>r.map(r=>n(e,t,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var Ke=!1;function qe(e,n,r={}){let{window:i=R,ignore:a=[],capture:o=!0,detectIframe:s=!1,controls:c=!1}=r;if(!i)return c?{stop:M,cancel:M,trigger:M}:M;if(se&&!Ke){Ke=!0;let e={passive:!0};Array.from(i.document.body.children).forEach(t=>t.addEventListener(`click`,M,e)),i.document.documentElement.addEventListener(`click`,M,e)}let l=!0,u=e=>t(a).some(t=>{if(typeof t==`string`)return Array.from(i.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=z(t);return n&&(e.target===n||e.composedPath().includes(n))}});function d(e){let n=t(e);return n&&n.$.subTree.shapeFlag===16}function f(e,n){let r=t(e),i=r.$.subTree&&r.$.subTree.children;return i==null||!Array.isArray(i)?!1:i.some(e=>e.el===n.target||n.composedPath().includes(e.el))}let p=t=>{let r=z(e);if(t.target!=null&&!(!(r instanceof Element)&&d(e)&&f(e,t))&&!(!r||r===t.target||t.composedPath().includes(r))){if(`detail`in t&&t.detail===0&&(l=!u(t)),!l){l=!0;return}n(t)}},m=!1,h=[B(i,`click`,e=>{m||(m=!0,setTimeout(()=>{m=!1},0),p(e))},{passive:!0,capture:o}),B(i,`pointerdown`,t=>{let n=z(e);l=!u(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),s&&B(i,`blur`,t=>{setTimeout(()=>{let r=z(e);i.document.activeElement?.tagName===`IFRAME`&&!r?.contains(i.document.activeElement)&&n(t)},0)},{passive:!0})].filter(Boolean),g=()=>h.forEach(e=>e());return c?{stop:g,cancel:()=>{l=!1},trigger:e=>{l=!0,p(e),l=!1}}:g}function Je(){let e=o(!1),t=r();return t&&p(()=>{e.value=!0},t),e}function V(e){let t=Je();return x(()=>(t.value,!!e()))}function Ye(e,n,r={}){let{window:i=R,...a}=r,o,s=V(()=>i&&`MutationObserver`in i),c=()=>{o&&=(o.disconnect(),void 0)},l=_(x(()=>{let n=N(t(e)).map(z).filter(ie);return new Set(n)}),e=>{c(),s.value&&e.size&&(o=new MutationObserver(n),e.forEach(e=>o.observe(e,a)))},{immediate:!0,flush:`post`}),u=()=>o?.takeRecords(),d=()=>{l(),c()};return k(d),{isSupported:s,stop:d,takeRecords:u}}function Xe(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Ze(...e){let n,r,i={};e.length===3?(n=e[0],r=e[1],i=e[2]):e.length===2?typeof e[1]==`object`?(n=!0,r=e[0],i=e[1]):(n=e[0],r=e[1]):(n=!0,r=e[0]);let{target:a=R,eventName:o=`keydown`,passive:s=!1,dedupe:c=!1}=i,l=Xe(n);return B(a,o,e=>{e.repeat&&t(c)||l(e)&&r(e)},s)}function Qe(e,t,n={}){return Ze(e,t,{...n,eventName:`keydown`})}function $e(e,n={}){let{immediate:r=!0,fpsLimit:i=null,window:a=R,once:s=!1}=n,c=o(!1),l=x(()=>{let e=t(i);return e?1e3/e:null}),u=0,f=null;function p(t){if(!c.value||!a)return;u||=t;let n=t-u;if(l.value&&n<l.value){f=a.requestAnimationFrame(p);return}if(u=t,e({delta:n,timestamp:t}),s){c.value=!1,f=null;return}f=a.requestAnimationFrame(p)}function m(){!c.value&&a&&(c.value=!0,u=0,f=a.requestAnimationFrame(p))}function h(){c.value=!1,f!=null&&a&&(a.cancelAnimationFrame(f),f=null)}return r&&m(),k(h),{isActive:d(c),pause:h,resume:m}}var et=Symbol(`vueuse-ssr-width`);function tt(){let e=y()?ne(et,null):null;return typeof e==`number`?e:void 0}function nt(e,n={}){let{window:r=R,ssrWidth:i=tt()}=n,a=V(()=>r&&`matchMedia`in r&&typeof r.matchMedia==`function`),s=o(typeof i==`number`),c=o(),l=o(!1);return b(()=>{if(s.value){s.value=!a.value,l.value=t(e).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),r=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||r);return n&&a&&(a=i>=ge(n[1])),r&&a&&(a=i<=ge(r[1])),t?!a:a});return}a.value&&(c.value=r.matchMedia(t(e)),l.value=c.value.matches)}),B(c,`change`,e=>{l.value=e.matches},{passive:!0}),x(()=>l.value)}var rt=[`hash`,`host`,`hostname`,`href`,`pathname`,`port`,`protocol`,`search`];function it(e={}){let{window:t=R}=e,r=Object.fromEntries(rt.map(e=>[e,n()]));for(let[e,n]of _e(r))_(n,n=>{!t?.location||t.location[e]===n||(t.location[e]=n)});let i=e=>{var n;let{state:i,length:a}=t?.history||{},{origin:o}=t?.location||{};for(let e of rt)r[e].value=t==null||(n=t.location)==null?void 0:n[e];return T({trigger:e,state:i,length:a,origin:o,...r})},a=n(i(`load`));if(t){let e={passive:!0};B(t,`popstate`,()=>a.value=i(`popstate`),e),B(t,`hashchange`,()=>a.value=i(`hashchange`),e)}return a}function at(e,t={}){let{controls:n=!1,navigator:r=Ge}=t,a=V(()=>r&&`permissions`in r),s=o(),c=typeof e==`string`?{name:e}:e,l=o(),u=()=>{l.value=s.value?.state??`prompt`};B(s,`change`,u,{passive:!0});let d=he(async()=>{if(a.value){if(!s.value)try{s.value=await r.permissions.query(c)}catch{s.value=void 0}finally{u()}if(n)return i(s.value)}});return d(),n?{state:l,isSupported:a,query:d}:l}function ot(e={}){let{navigator:n=Ge,read:r=!1,source:i,copiedDuring:a=1500,legacy:s=!1}=e,c=V(()=>n&&`clipboard`in n),l=at(`clipboard-read`),u=at(`clipboard-write`),f=x(()=>c.value||s),p=o(``),m=o(!1),h=Le(()=>m.value=!1,a,{immediate:!1});async function g(){let e=!(c.value&&b(l.value));if(!e)try{p.value=await n.clipboard.readText()}catch{e=!0}e&&(p.value=y())}f.value&&r&&B([`copy`,`cut`],g,{passive:!0});async function _(e=t(i)){if(f.value&&e!=null){let t=!(c.value&&b(u.value));if(!t)try{await n.clipboard.writeText(e)}catch{t=!0}t&&v(e),p.value=e,m.value=!0,h.start()}}function v(e){let t=document.createElement(`textarea`);t.value=e,t.style.position=`absolute`,t.style.opacity=`0`,t.setAttribute(`readonly`,``),document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}function y(){var e,t;return((e=document)==null||(t=e.getSelection)==null||(t=t.call(e))==null?void 0:t.toString())??``}function b(e){return e===`granted`||e===`prompt`}return{isSupported:f,text:d(p),copied:d(m),copy:_}}function st(e){return JSON.parse(JSON.stringify(e))}var H=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},U=`__vueuse_ssr_handlers__`,ct=lt();function lt(){return U in H||(H[U]=H[U]||{}),H[U]}function ut(e,t){return ct[e]||t}function dt(e){return nt(`(prefers-color-scheme: dark)`,e)}function ft(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var pt={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},mt=`vueuse-storage`;function W(e,r,i,a={}){let{flush:c=`pre`,deep:l=!0,listenToStorageChanges:u=!0,writeDefaults:d=!0,mergeDefaults:f=!1,shallow:p,window:m=R,eventFilter:h,onError:g=e=>{console.error(e)},initOnMounted:v}=a,y=(p?o:n)(typeof r==`function`?r():r),b=x(()=>t(e));if(!i)try{i=ut(`getDefaultStorage`,()=>R?.localStorage)()}catch(e){g(e)}if(!i)return y;let S=t(r),C=ft(S),w=a.serializer??pt[C],{pause:T,resume:E}=ke(y,e=>ee(e),{flush:c,deep:l,eventFilter:h});_(b,()=>k(),{flush:c});let D=!1;m&&u&&(i instanceof Storage?B(m,`storage`,e=>{v&&!D||k(e)},{passive:!0}):B(m,mt,e=>{v&&!D||A(e)})),v?P(()=>{D=!0,k()}):k();function O(e,t){if(m){let n={key:b.value,oldValue:e,newValue:t,storageArea:i};m.dispatchEvent(i instanceof Storage?new StorageEvent(`storage`,n):new CustomEvent(mt,{detail:n}))}}function ee(e){try{let t=i.getItem(b.value);if(e==null)O(t,null),i.removeItem(b.value);else{let n=w.write(e);t!==n&&(i.setItem(b.value,n),O(t,n))}}catch(e){g(e)}}function te(e){let t=e?e.newValue:i.getItem(b.value);if(t==null)return d&&S!=null&&i.setItem(b.value,w.write(S)),S;if(!e&&f){let e=w.read(t);return typeof f==`function`?f(e,S):C===`object`&&!Array.isArray(e)?{...S,...e}:e}else if(typeof t!=`string`)return t;else return w.read(t)}function k(e){if(!(e&&e.storageArea!==i)){if(e&&e.key==null){y.value=S;return}if(!(e&&e.key!==b.value)){T();try{let t=w.write(y.value);(e===void 0||e?.newValue!==t)&&(y.value=te(e))}catch(e){g(e)}finally{e?s(E):E()}}}}function A(e){k(e.detail)}return y}var ht=`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function gt(e={}){let{selector:t=`html`,attribute:n=`class`,initialValue:r=`auto`,window:i=R,storage:a,storageKey:o=`vueuse-color-scheme`,listenToStorageChanges:s=!0,storageRef:c,emitAuto:l,disableTransition:u=!0}=e,d={auto:``,light:`light`,dark:`dark`,...e.modes||{}},f=dt({window:i}),p=x(()=>f.value?`dark`:`light`),m=c||(o==null?le(r):W(o,r,a,{window:i,listenToStorageChanges:s})),h=x(()=>m.value===`auto`?p.value:m.value),g=ut(`updateHTMLAttrs`,(e,t,n)=>{let r=typeof e==`string`?i?.document.querySelector(e):z(e);if(!r)return;let a=new Set,o=new Set,s=null;if(t===`class`){let e=n.split(/\s/g);Object.values(d).flatMap(e=>(e||``).split(/\s/g)).filter(Boolean).forEach(t=>{e.includes(t)?a.add(t):o.add(t)})}else s={key:t,value:n};if(a.size===0&&o.size===0&&s===null)return;let c;u&&(c=i.document.createElement(`style`),c.appendChild(document.createTextNode(ht)),i.document.head.appendChild(c));for(let e of a)r.classList.add(e);for(let e of o)r.classList.remove(e);s&&r.setAttribute(s.key,s.value),u&&(i.getComputedStyle(c).opacity,document.head.removeChild(c))});function v(e){g(t,n,d[e]??e)}function y(t){e.onChanged?e.onChanged(t,v):v(t)}_(h,y,{flush:`post`,immediate:!0}),P(()=>y(h.value));let b=x({get(){return l?m.value:h.value},set(e){m.value=e}});return Object.assign(b,{store:m,system:p,state:h})}function _t(e,n,r={}){let{window:i=R,...a}=r,o,s=V(()=>i&&`ResizeObserver`in i),c=()=>{o&&=(o.disconnect(),void 0)},l=_(x(()=>{let n=t(e);return Array.isArray(n)?n.map(e=>z(e)):[z(n)]}),e=>{if(c(),s.value&&i){o=new ResizeObserver(n);for(let t of e)t&&o.observe(t,a)}},{immediate:!0,flush:`post`}),u=()=>{c(),l()};return k(u),{isSupported:s,stop:u}}function vt(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:s=`sync`}=t,c=o(0),l=o(0),u=o(0),d=o(0),f=o(0),p=o(0),m=o(0),h=o(0);function g(){let t=z(e);if(!t){n&&(c.value=0,l.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,h.value=0);return}let r=t.getBoundingClientRect();c.value=r.height,l.value=r.bottom,u.value=r.left,d.value=r.right,f.value=r.top,p.value=r.width,m.value=r.x,h.value=r.y}function v(){s===`sync`?g():s===`next-frame`&&requestAnimationFrame(()=>g())}return _t(e,v),_(()=>z(e),e=>!e&&v()),Ye(e,v,{attributeFilter:[`style`,`class`]}),i&&B(`scroll`,v,{capture:!0,passive:!0}),r&&B(`resize`,v,{passive:!0}),P(()=>{a&&v()}),{height:c,bottom:l,left:u,right:d,top:f,width:p,x:m,y:h,update:v}}function yt(e,t={width:0,height:0},n={}){let{window:r=R,box:i=`content-box`}=n,a=x(()=>{var t;return(t=z(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),s=o(t.width),c=o(t.height),{stop:l}=_t(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=z(e);if(t){let e=t.getBoundingClientRect();s.value=e.width,c.value=e.height}}else if(n){let e=N(n);s.value=e.reduce((e,{inlineSize:t})=>e+t,0),c.value=e.reduce((e,{blockSize:t})=>e+t,0)}else s.value=t.contentRect.width,c.value=t.contentRect.height},n);P(()=>{let n=z(e);n&&(s.value=`offsetWidth`in n?n.offsetWidth:t.width,c.value=`offsetHeight`in n?n.offsetHeight:t.height)});let u=_(()=>z(e),e=>{s.value=e?t.width:0,c.value=e?t.height:0});function d(){l(),u()}return{width:s,height:c,stop:d}}function bt(e={}){let{initialValue:t=``}=e,n=V(()=>typeof window<`u`&&`EyeDropper`in window),r=o(t);async function i(e){if(!n.value)return;let t=await new window.EyeDropper().open(e);return r.value=t.sRGBHex,t}return{isSupported:n,sRGBHex:r,open:i}}function xt(e,t,n={}){let{window:r=R}=n;return W(e,t,r?.localStorage,n)}function St(e){if(`interval`in e||`immediate`in e){let{interval:t=`requestAnimationFrame`,immediate:n=!0}=e;return t===`requestAnimationFrame`?e=>$e(e,{immediate:n}):n=>L(n,t,e)}return $e}function Ct(e={}){let{controls:t=!1,scheduler:r=St(e)}=e,i=n(new Date),a=r(()=>i.value=new Date);return t?{now:i,...a}:i}function wt(e,t,n={}){let{window:r=R}=n;return W(e,t,r?.sessionStorage,n)}var Tt=0;function Et(e,t={}){let n=o(!1),{document:r=We,immediate:i=!0,manual:a=!1,id:s=`vueuse_styletag_${++Tt}`}=t,c=o(e),l=()=>{},u=()=>{if(!r)return;let e=r.getElementById(s)||r.createElement(`style`);e.isConnected||(e.id=s,t.nonce&&(e.nonce=t.nonce),t.media&&(e.media=t.media),r.head.appendChild(e)),!n.value&&(l=_(c,t=>{e.textContent=t},{immediate:!0}),n.value=!0)},f=()=>{!r||!n.value||(l(),r.head.removeChild(r.getElementById(s)),n.value=!1)};return i&&!a&&P(u),a||k(f),{id:s,css:c,unload:f,load:u,isLoaded:d(n)}}var Dt=[{max:6e4,value:1e3,name:`second`},{max:276e4,value:6e4,name:`minute`},{max:72e6,value:36e5,name:`hour`},{max:5184e5,value:864e5,name:`day`},{max:24192e5,value:6048e5,name:`week`},{max:28512e6,value:2592e6,name:`month`},{max:1/0,value:31536e6,name:`year`}],Ot={justNow:`just now`,past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?`last month`:`next month`:`${e} month${e>1?`s`:``}`,year:(e,t)=>e===1?t?`last year`:`next year`:`${e} year${e>1?`s`:``}`,day:(e,t)=>e===1?t?`yesterday`:`tomorrow`:`${e} day${e>1?`s`:``}`,week:(e,t)=>e===1?t?`last week`:`next week`:`${e} week${e>1?`s`:``}`,hour:e=>`${e} hour${e>1?`s`:``}`,minute:e=>`${e} minute${e>1?`s`:``}`,second:e=>`${e} second${e>1?`s`:``}`,invalid:``};function kt(e){return e.toISOString().slice(0,10)}function At(e){if(`updateInterval`in e){let{updateInterval:t=3e4}=e;return e=>L(e,t)}return e=>L(e,3e4)}function jt(e,n={}){let{controls:r=!1,scheduler:i=At(n)}=n,{now:a,...o}=Ct({scheduler:i,controls:!0}),s=x(()=>Mt(new Date(t(e)),n,t(a)));return r?{timeAgo:s,...o}:s}function Mt(e,t={},n=Date.now()){let{max:r,messages:i=Ot,fullDateFormatter:a=kt,units:o=Dt,showSecond:s=!1,rounding:c=`round`}=t,l=typeof c==`number`?e=>+e.toFixed(c):Math[c],u=n-+e,d=Math.abs(u);function f(e,t){return l(Math.abs(e)/t.value)}function p(e,t){let n=f(e,t),r=e>0,i=m(t.name,n,r);return m(r?`past`:`future`,i,r)}function m(e,t,n){let r=i[e];return typeof r==`function`?r(t,n):r.replace(`{0}`,t.toString())}if(d<6e4&&!s)return i.justNow;if(typeof r==`number`&&d>r)return a(new Date(e));if(typeof r==`string`){let t=o.find(e=>e.name===r)?.max;if(t&&d>t)return a(new Date(e))}for(let[e,t]of o.entries()){if(f(u,t)<=0&&o[e-1])return p(u,o[e-1]);if(d<t.max)return p(u,t)}return i.invalid}function Nt(e,t,i,a={}){var o,c;let{clone:l=!1,passive:u=!1,eventName:d,deep:f=!1,defaultValue:p,shouldEmit:m}=a,h=r(),g=i||h?.emit||(h==null||(o=h.$emit)==null?void 0:o.bind(h))||(h==null||(c=h.proxy)==null||(c=c.$emit)==null?void 0:c.bind(h?.proxy)),v=d;t||=`modelValue`,v||=`update:${t.toString()}`;let y=e=>l?typeof l==`function`?l(e):st(e):e,b=()=>re(e[t])?y(e[t]):p,S=e=>{m?m(e)&&g(v,e):g(v,e)};if(u){let r=n(b()),i=!1;return _(()=>e[t],e=>{i||(i=!0,r.value=y(e),s(()=>i=!1))}),_(r,n=>{!i&&(n!==e[t]||f)&&S(n)},{deep:f}),r}else return x({get(){return b()},set(e){S(e)}})}function Pt(e={}){let{window:t=R,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:s=`inner`}=e,c=o(n),l=o(r),u=()=>{if(t)if(s===`outer`)c.value=t.outerWidth,l.value=t.outerHeight;else if(s===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;c.value=Math.round(e*r),l.value=Math.round(n*r)}else a?(c.value=t.innerWidth,l.value=t.innerHeight):(c.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};u(),P(u);let d={passive:!0};return B(`resize`,u,d),t&&s===`visual`&&t.visualViewport&&B(t.visualViewport,`resize`,u,d),i&&_(nt(`(orientation: portrait)`),()=>u()),{width:c,height:l}}var Ft=`$s`;function It(...e){let t=typeof e[e.length-1]==`string`?e.pop():void 0;typeof e[0]!=`string`&&e.unshift(t);let[n,r]=e;if(!n||typeof n!=`string`)throw TypeError(`[nuxt] [useState] key must be a string: `+n);if(r!==void 0&&typeof r!=`function`)throw Error(`[nuxt] [useState] init must be a function: `+r);let i=Ft+n,a=D(),o=u(a.payload.state,i);if(r&&(a._state[i]??={_default:r}),o.value===void 0&&r){let e=r();if(C(e))return a.payload.state[i]=e,e;o.value=e}return o}var Lt=`q`,Rt=`s`;function zt(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var Bt=Math.random.bind(Math),Vt=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Ht(e=21){let t=``,n=e;for(;n--;)t+=Vt[Bt()*64|0];return t}var Ut=6e4,Wt=e=>e,Gt=Wt,{clearTimeout:Kt,setTimeout:qt}=globalThis;function Jt(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=Wt,deserialize:s=Gt,resolver:c,bind:l=`rpc`,timeout:u=Ut,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:Lt};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=zt(),_=Ht();s.i=_;let v;async function y(n=s){return u>=0&&(v=qt(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,y,d):await y()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{Kt(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.prototype.hasOwnProperty.call(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===Lt){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:Rt,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:Rt,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(Kt(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}var Yt=typeof self==`object`?self:globalThis;function Xt(e,t){let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new Yt[e](t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new Yt[a](o),i)};return r}function Zt(e){return Xt(new Map,e)(0)}var G=``,{toString:Qt}={},{keys:$t}=Object;function K(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Qt.call(e).slice(8,-1);switch(n){case`Array`:return[1,G];case`Object`:return[2,G];case`Date`:return[3,G];case`RegExp`:return[4,G];case`Map`:return[5,G];case`Set`:return[6,G];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function q([e,t]){return e===0&&(t===`function`||t===`symbol`)}function en(e,t,n,r){let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=K(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize ${s}`);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of $t(r))(e||!q(K(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(q(K(n))||q(K(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!q(K(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function tn(e,t={}){let n=[];return en(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:nn,stringify:rn}=JSON,an={json:!0,lossy:!0};function on(e){return Zt(nn(e))}function sn(e){return rn(tn(e,an))}async function cn(e=`/`,t=!0){try{let t=`${e}@vite/client`,n=await fetch(t);if((await n.text()).startsWith(`<`)||!n.headers.get(`content-type`)?.includes(`javascript`))throw Error(`Not javascript`);return await m(()=>import(t),[],import.meta.url)}catch{t&&console.error(`[vite-hot-client] Failed to import "${e}@vite/client"`)}}function ln(e=window.location.pathname){return e.split(`/`).map((e,t,n)=>n.slice(0,t+1).join(`/`)||`/`)}async function un(e=`/___`,t){t??=ln();for(let n of t){let t=(await cn(n,!1))?.createHotContext(e);if(t)return t}console.error(`[vite-hot-client] Failed to import vite client, tried with:`,t)}var dn=`nuxt:devtools:rpc`,fn={behavior:{telemetry:null,openInEditor:void 0},ui:{componentsView:`list`,componentsGraphShowNodeModules:!1,componentsGraphShowGlobalComponents:!0,componentsGraphShowPages:!1,componentsGraphShowLayouts:!1,componentsGraphShowWorkspace:!0,interactionCloseOnOutsideClick:!1,showExperimentalFeatures:!1,showHelpButtons:!0,showPanel:!0,scale:1,minimizePanelInactive:5e3,hiddenTabs:[],pinnedTabs:[],hiddenTabCategories:[],sidebarExpanded:!1,sidebarScrollable:!1},serverRoutes:{selectedRoute:null,view:`tree`,inputDefaults:{query:[],body:[],headers:[]},sendFrom:`app`},serverTasks:{enabled:!1,selectedTask:null,view:`list`,inputDefaults:{query:[],body:[],headers:[{active:!0,key:`Content-Type`,value:`application/json`,type:`string`}]}},assets:{view:`grid`}},pn=/^\/|\/$/g,mn=/\/__nuxt_devtools__\/client\/.*$/,J=n(!1),hn=o(),gn=De(J,2e3),_n=bn(),vn=()=>{},Y={},yn=new Map,X=Jt(Y,{post:async e=>{(await _n).send(dn,e)},on:e=>{vn=e},serialize:sn,deserialize:on,resolver(e,t){if(t)return t;if(!e.includes(`:`))return;let[n,r]=e.split(`:`);return yn.get(n)?.[r]},onFunctionError(e,t){return console.error(`[nuxt-devtools] RPC error on executing "${t}":`),console.error(e),!0},onGeneralError(e){return console.error(`[nuxt-devtools] RPC error:`),console.error(e),!0},timeout:12e4});async function bn(){let e=window.parent?.__NUXT__?.config?.app??window.parent?.useNuxtApp?.()?.payload?.config?.app,t=e?.baseURL??`/`,n=e?.buildAssetsDir?.replace(pn,``)??`_nuxt`;t&&!t.endsWith(`/`)&&(t+=`/`);let r=window.location.href.replace(mn,`/`),i=await un(void 0,[...new Set([`${t}${n}/`,`${t}_nuxt/`,t,`${r}${n}/`,`${r}_nuxt/`,r])]);if(!i)throw J.value=!0,console.error(`[Nuxt DevTools] Unable to find Vite HMR context`),Error(`[Nuxt DevTools] Unable to connect to devtools`);return i.on(dn,e=>{J.value=!1,vn(e)}),J.value=!0,i.on(`vite:ws:connect`,()=>{console.log(`[nuxt-devtools] Connected to WebSocket`),J.value=!1}),i.on(`vite:ws:disconnect`,()=>{console.log(`[nuxt-devtools] Disconnected from WebSocket`),J.value=!0}),i}var Z=o(),xn;function Sn(){xn||=(async()=>{let{default:e}=await m(async()=>{let{default:e}=await import(`./vendor/markdown-it-ckeo8pwp.js`).then(e=>e.t);return{default:e}},__vite__mapDeps([0,1]),import.meta.url);Z.value=new e({html:!0,linkify:!0,breaks:!0})})()}function Cn(e){return Sn(),Z.value?Z.value.render(e):e}var wn={json:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.S),__vite__mapDeps([2,1]),import.meta.url),yaml:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e._),__vite__mapDeps([2,1]),import.meta.url),yml:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e._),__vite__mapDeps([2,1]),import.meta.url),css:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.E),__vite__mapDeps([2,1]),import.meta.url),javascript:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.w),__vite__mapDeps([2,1]),import.meta.url),js:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.w),__vite__mapDeps([2,1]),import.meta.url),cjs:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.w),__vite__mapDeps([2,1]),import.meta.url),mjs:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.w),__vite__mapDeps([2,1]),import.meta.url),typescript:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.b),__vite__mapDeps([2,1]),import.meta.url),ts:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.b),__vite__mapDeps([2,1]),import.meta.url),cts:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.b),__vite__mapDeps([2,1]),import.meta.url),mts:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.b),__vite__mapDeps([2,1]),import.meta.url),vue:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.v),__vite__mapDeps([2,1]),import.meta.url),"vue-html":()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.y),__vite__mapDeps([2,1]),import.meta.url),html:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.C),__vite__mapDeps([2,1]),import.meta.url),diff:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.T),__vite__mapDeps([2,1]),import.meta.url),shellscript:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url),bash:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url),sh:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url),shell:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url),zsh:()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url)},Tn={"vitesse-dark":()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.g),__vite__mapDeps([2,1]),import.meta.url),"vitesse-light":()=>m(()=>import(`./vendor/shiki-lqo1hg2n.js`).then(e=>e.h),__vite__mapDeps([2,1]),import.meta.url)},En=ee({langs:wn,themes:Tn,engine:()=>O()}),{codeToHtml:Dn,codeToHast:On,codeToTokensBase:kn,codeToTokens:An,codeToTokensWithThemes:jn,getSingletonHighlighter:Mn,getLastGrammarState:Nn}=te(En),Q=o(),Pn=null;function Fn(e,t=`text`,n){!Pn&&!Q.value&&(Pn=En({langs:Object.keys(wn),themes:Object.keys(Tn)}).then(e=>{Q.value=e}));let r=Q.value?.getLoadedLanguages().includes(t);return r?{code:Q.value.codeToHtml(e,{...n,lang:t,themes:{dark:`vitesse-dark`,light:`vitesse-light`},transformers:[{root(e){return{type:`root`,children:e.children[0].children[0].children}}}]}),supported:!0}:{code:e,supported:r}}function $(){return It(`devtools-client`)}function In(){let e=$();return x(()=>e.value?.nuxt.vueApp.config.globalProperties?.$route)}function Ln(){let e=$();return x(()=>e.value?.nuxt.vueApp.config.globalProperties?.$router)}function Rn(){let e=$();return x(()=>e.value?.nuxt.vueApp.config.globalProperties?.$head)}var zn=n(!1);setTimeout(()=>{zn.value=!0},2e3);var Bn=x(()=>zn.value&&!$().value);function Vn(){return gt({storageKey:`nuxt-devtools-color-mode`})}function Hn(){let e=$(),t=Vn();return x(()=>({host:e.value,devtools:{rpc:X,colorMode:t.value,renderCodeHighlight(e,t){return Fn(e,t)},renderMarkdown(e){return Cn(e)},extendClientRpc(e,t){return yn.set(e,t),new Proxy({},{get(t,n){if(typeof n==`string`)return X[`${e}:${n}`]}})}}}))}export{Ct as A,Ae as B,ot as C,B as D,yt as E,Pt as F,De as H,ie as I,we as L,Et as M,jt as N,bt as O,Nt as P,N as R,it as S,vt as T,Re as U,Ie as V,Ue as _,In as a,Qe as b,Y as c,gn as d,hn as f,Ve as g,Be as h,Rn as i,wt as j,xt as k,X as l,It as m,Bn as n,Ln as o,fn as p,$ as r,Hn as s,Vn as t,J as u,Mt as v,gt as w,z as x,qe as y,k as z};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{Ct as e,E as t,V as n,W as r,g as i,m as a}from"./vendor/json-editor-vue-eojr4v24.js";import{x as o}from"./client-nwyjxodt.js";import{t as s}from"./ncode-block-figzf35k.js";var c=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}};new class extends c{};function l(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function u(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function d(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function f(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function p(e,t){return d(e,t,``)}function m(e,t){return f(e,t,``)}function h(e,t){return t.slice(0,g(e,t))}function g(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function _(e){let t;for(t=e.length-1;t>=0&&e[t].match(/\s/);t--);return e.substring(t+1)}function v(e){let t=e.match(/^\s*/);return t?t[0]:``}var y=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,b=RegExp(`[${y}]+|\\s+|[^${y}]`,`ug`);new class extends c{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=[];for(let t of Array.from(r.segment(e))){let e=t.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}}else n=e.match(b)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&x(n,i,r,e),n=e,r=null,i=null)}),(r||i)&&x(n,i,r,null),e}};function x(e,t,n,r){if(t&&n){let i=v(t.value),a=_(t.value),o=v(n.value),s=_(n.value);if(e){let r=l(i,o);e.value=f(e.value,o,r),t.value=p(t.value,r),n.value=p(n.value,r)}if(r){let e=u(a,s);r.value=d(r.value,s,e),t.value=m(t.value,e),n.value=m(n.value,e)}}else if(n){if(e){let e=v(n.value);n.value=n.value.substring(e.length)}if(r){let e=v(r.value);r.value=r.value.substring(e.length)}}else if(e&&r){let n=v(r.value),i=v(t.value),a=_(t.value),o=l(n,i);t.value=p(t.value,o);let s=u(p(n,o),a);t.value=m(t.value,s),r.value=d(r.value,n,s),e.value=f(e.value,n,n.slice(0,n.length-s.length))}else if(r){let e=v(r.value),n=h(_(t.value),e);t.value=m(t.value,n)}else if(e){let n=h(_(e.value),v(t.value));t.value=p(t.value,n)}}new class extends c{tokenize(e){let t=RegExp(`(\\r?\\n)|[${y}]+|[^\\S\\n\\r]+|[^${y}]`,`ug`);return e.match(t)||[]}};var S=new class extends c{constructor(){super(...arguments),this.tokenize=w}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
|
|
2
|
-
`))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
|
|
3
|
-
`))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
4
|
-
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
5
|
-
`)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function C(e,t,n){return S.diff(e,t,n)}function w(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
6
|
-
`));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function T(e){return e==`.`||e==`!`||e==`?`}new class extends c{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(T(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}},new class extends c{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends c{constructor(){super(...arguments),this.tokenize=w}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(E(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function E(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=E(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=E(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}new class extends c{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};var D=t({__name:`CodeDiff`,props:{from:{},to:{},lang:{}},setup(t){let c=t,l=/class="shiki/,u=/class="line"/g;function d(e,t){let n=C(e.trim(),t.trim()),r=[],i=[],a=[];for(let e of n){let t=e.value.trimEnd().split(`
|
|
7
|
-
`);for(let n of t)e.added?(r.push(a.length),a.push(n)):(e.removed&&i.push(a.length),a.push(n))}return{added:r,removed:i,result:a.join(`
|
|
8
|
-
`)}}let f=a(()=>d(c.from,c.to));function p(e){let t=0;return e.replace(l,`class="shiki diff`).replace(u,e=>(t++,f.value.added.includes(t-1)?`class="line line-added"`:f.value.removed.includes(t-1)?`class="line line-removed"`:e))}let m=e();n(h);function h(){let e=o(m);e&&e.querySelector(`.line-added,.line-removed`)?.scrollIntoView()}return(e,n)=>{let a=s;return r(),i(a,{ref_key:`elRef`,ref:m,code:f.value.result,lang:t.lang,"transform-rendered":p,onLoaded:h},null,8,[`code`,`lang`])}}}),O=Object.assign(D,{__name:`CodeDiff`});export{O as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,C as t,Ct as n,E as r,Et as i,Mt as a,P as o,Q as s,Qt as c,V as l,W as u,X as d,Y as f,Z as p,_ as m,c as h,ct as g,dt as _,ft as v,g as y,h as b,m as x,tn as S,v as C,vt as w,w as T}from"./vendor/json-editor-vue-eojr4v24.js";import"./ready-dadbdj5i.js";import{D as ee,b as te,c as E,i as D,n as O,w as ne}from"./utils-jupbrzo6.js";import{H as k,r as A,t as re}from"./client-nwyjxodt.js";import"./dev-auth-he0eye7r.js";import"./vendor/shiki-lqo1hg2n.js";import{t as j}from"./storage-options-nzog3hhp.js";import"./nuxt-link-bumooa9d.js";import{t as M}from"./_plugin-vue_export-helper-n58akrbk.js";import{t as N}from"./nicon-m1crov2l.js";import{t as P}from"./nbutton-gygn07c2.js";import{t as F}from"./ncard-ludmyw2u.js";import"./state-routes-jownks2o.js";import"./telemetry-c77tnag3.js";import"./ntext-input-e8iut2en.js";import{s as I,u as L}from"#entry";import{t as R}from"./ndrawer-hos2o4rf.js";import{t as z}from"./composables-b2ccklz4.js";import{t as ie}from"./ncheckbox-ep01n5y1.js";import{t as B}from"./filepath-item-h3i1tz3s.js";import{t as V}from"./help-fab-oeo4c53s.js";import{t as H}from"./nnavbar-n7gfocyu.js";import{t as U}from"./nicon-title-kbrt9te7.js";import{t as W}from"./nsection-block-ibsk9arc.js";import{n as G}from"./dist-og16nf4d.js";import{t as K}from"./nbadge-f1bvtlf5.js";import{n as q,t as J}from"./vendor/vis-gf06uk37.js";import{t as Y}from"./nselect-tabs-fslk8qg5.js";import{n as X,t as ae}from"./state-components-ii0yssci.js";var oe={},se={class:`markdown-body`};function ce(e,t){return u(),C(`div`,se,[...t[0]||=[b(`template`,null,[b(`div`,{class:`markdown-body`},[b(`h1`,null,`Components`),b(`p`,null,`Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component.`),b(`p`,null,`Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.`),b(`p`,null,[b(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/components`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var le=M(oe,[[`render`,ce]]),ue={"text-sm":``,"font-mono":``},de=r({__name:`ComponentName`,props:{component:{}},setup(e){let n=e,r=x(()=>n.component.pascalName||G(n.component.name||n.component.__name||n.component.kebabName||``));return(e,n)=>(u(),C(`code`,ue,[n[0]||=b(`span`,{mr1:``,op20:``},`<`,-1),t(S(r.value),1),n[1]||=b(`span`,{ml1:``,op20:``},`/>`,-1)]))}}),Z=Object.assign(de,{__name:`ComponentName`}),Q={flex:`~ col gap1`,"items-start":``,"of-hidden":``},fe={flex:`~ gap2 items-center`,px3:``},pe={px3:``,pb2:``},me={key:0,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},he={"text-sm":``},ge={"text-primary":``},_e={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},ve={key:1,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},ye={"text-sm":``},be={"text-primary":``},xe={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},Se=r({__name:`ComponentDetails`,props:{component:{},dependencies:{},dependents:{}},setup(e){let n=e,r=x(()=>n.component.pascalName||G(n.component.name||n.component.__name||n.component.kebabName||``)),i=x(()=>n.component.filePath||n.component.file||n.component.__file||``),o=L();return(n,s)=>{let c=Z,l=P,p=K,g=B;return u(),C(`div`,Q,[b(`div`,fe,[T(c,{component:e.component},null,8,[`component`]),e.component.meta?.docs&&typeof e.component.meta.docs==`string`?(u(),y(l,{key:0,title:`Open docs`,"flex-none":``,n:`xs`,to:e.component.meta.docs,target:`_blank`,icon:`carbon-catalog`},{default:_(()=>[...s[1]||=[t(` Docs `,-1)]]),_:1},8,[`to`])):m(``,!0),T(l,{title:`Copy name`,"flex-none":``,n:`xs`,icon:`carbon-copy`,onClick:s[0]||=e=>a(o)(`<${r.value}></${r.value}>`,`component-name`)},{default:_(()=>[...s[2]||=[t(` Copy `,-1)]]),_:1}),e.component.global?(u(),y(p,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):m(``,!0)]),b(`div`,pe,[i.value?(u(),y(g,{key:0,filepath:i.value,"w-full":``,"text-sm":``,op40:``,"group-hover:op75":``},null,8,[`filepath`])):m(``,!0)]),e.dependents?(u(),C(`div`,me,[b(`div`,he,[b(`strong`,ge,S(e.dependents.length),1),s[3]||=b(`span`,{op50:``},` references`,-1)]),e.dependents.length?(u(),C(`div`,_e,[(u(!0),C(h,null,f(e.dependents,e=>(u(),y(g,{key:e,filepath:e},null,8,[`filepath`]))),128))])):m(``,!0)])):m(``,!0),e.dependencies?(u(),C(`div`,ve,[b(`div`,ye,[b(`strong`,be,S(e.dependencies.length),1),s[4]||=b(`span`,{op50:``},` dependencies`,-1)]),e.dependencies.length?(u(),C(`div`,xe,[(u(!0),C(h,null,f(e.dependencies,e=>(u(),y(g,{key:e,filepath:e},null,8,[`filepath`]))),128))])):m(``,!0)])):m(``,!0),d(n.$slots,`default`)])}}}),$=Object.assign(Se,{__name:`ComponentDetails`}),Ce={flex:`~ gap-x-3 gap-y-1 wrap`,"w-full":``},we={relative:``,"h-full":``,"w-full":``},Te={key:0,py4:``,pt3:``,flex:`~ col`},Ee={border:`t base`,p4:``},De=r({__name:`ComponentsGraph`,props:{components:{},relationships:{}},setup(e){let r=e,o=n(),s=n(),c=re(),f=i(),p=ee(),v=ne(),y=te(),{componentsGraphShowNodeModules:S,componentsGraphShowGlobalComponents:E,componentsGraphShowPages:D,componentsGraphShowLayouts:O,componentsGraphShowWorkspace:A}=j(`ui`),M=n(),N=n(``),I=k(N,300),L=x(()=>{let e=r.relationships||[];if(M.value){let t=new Set;function n(r){!r||t.has(r)||(t.add(r),r.deps.forEach(t=>{n(e.find(e=>e.id===t))}))}return n(M.value),[...t]}return e}),z=x(()=>{let e=L.value.map(e=>{let t=r.components.find(t=>t.filePath===e.id),n=p.value?.find(t=>t.file===e.id),i=y.value?.find(t=>t.file===e.id),a=e.id.includes(`/node_modules/`)?`lib`:t?t.global?`global`:`user`:i?`layout`:n?`page`:`unknown`;if(!S.value&&a===`lib`||!D.value&&a===`page`||!O.value&&a===`layout`||!A.value&&a===`user`&&v.value&&!e.id.startsWith(v.value.rootDir)||!E.value&&a===`global`)return null;let o=a===`layout`?`hexagon`:a===`page`?`square`:`dot`,s=I.value&&!e.id.toLowerCase().includes(I.value.toLowerCase());return{id:e.id,label:Y(e.id),group:a,shape:o,size:15+Math.min(e.deps.length/2,8),font:{color:s?`#8885`:c.value===`dark`?`white`:`black`},color:s?`#8885`:M.value?.id===e.id?`#82c742`:void 0,extra:{id:e.id,component:t,page:n,layout:i,relationship:e}}}).filter(e=>!!e),t=L.value.flatMap(e=>e.deps.map(t=>({from:e.id,to:t,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new q(e),edges:t}}),B=x(()=>f.value?.component?(r.relationships?.find(e=>e.id===f.value?.component?.filePath)?.deps)?.map(e=>r.relationships?.find(t=>t.id===e)?.id).filter(Boolean):[]),V=x(()=>f.value?.component?(r.relationships?.filter(e=>e.deps.includes(f.value.component.filePath)))?.map(e=>r.relationships?.find(t=>t.id===e.id)?.id).filter(Boolean):[]);l(()=>{let e=new J(o.value,z.value,{nodes:{shape:`dot`,size:16},physics:{repulsion:{centralGravity:.7,springLength:100,springConstant:.01},maxVelocity:146,solver:`forceAtlas2Based`,timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:{user:{color:`#42b883`},unknown:{color:`#b86542`},lib:{color:`#b4b842`},page:{color:`#42b2b8`},layout:{color:`#4256b8`}}});e.on(`click`,e=>{let t=e.nodes?.[0];f.value=z.value.nodes.get(t).extra}),g(z,()=>{e.setData(z.value)})});function U(){f.value=void 0}let W=/.*\/components\//,G=/\.vue$/,K=/\/index$/;function Y(e){let t=r.components.find(t=>t.filePath===e);return t?t.pascalName:e.replace(W,``).replace(G,``).replace(K,``).split(`/`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function X(){M.value=f.value?.relationship,f.value=void 0}return(e,n)=>{let r=ie,i=H,c=F,l=$,p=P,g=R;return u(),C(h,null,[T(i,{ref_key:`navbar`,ref:s,search:N.value,"onUpdate:search":n[6]||=e=>N.value=e,absolute:``,"left-0":``,"right-0":``,"top-0":``},{actions:_(()=>[b(`div`,Ce,[T(r,{modelValue:a(D),"onUpdate:modelValue":n[0]||=e=>w(D)?D.value=e:null,n:`primary sm`},{default:_(()=>[...n[8]||=[b(`span`,{op75:``},`Show pages`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(O),"onUpdate:modelValue":n[1]||=e=>w(O)?O.value=e:null,n:`primary sm`},{default:_(()=>[...n[9]||=[b(`span`,{op75:``},`Show layouts`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(A),"onUpdate:modelValue":n[2]||=e=>w(A)?A.value=e:null,n:`primary sm`},{default:_(()=>[...n[10]||=[b(`span`,{op75:``},`Show workspace`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(S),"onUpdate:modelValue":n[3]||=e=>w(S)?S.value=e:null,n:`primary sm`},{default:_(()=>[...n[11]||=[b(`span`,{op75:``},`Show node_modules`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(E),"onUpdate:modelValue":n[4]||=e=>w(E)?E.value=e:null,n:`primary sm`},{default:_(()=>[...n[12]||=[b(`span`,{op75:``},`Show global components`,-1)]]),_:1},8,[`modelValue`])]),M.value?(u(),C(`button`,{key:0,flex:`~ gap-1`,"flex-none":``,"items-center":``,"rounded-full":``,"bg-gray:20":``,py1:``,pl3:``,pr2:``,"text-xs":``,op50:``,"hover:op100":``,onClick:n[5]||=e=>M.value=void 0},[...n[13]||=[t(` Clear filter `,-1),b(`div`,{"i-carbon-close":``},null,-1)]])):m(``,!0),n[14]||=b(`div`,{"flex-auto":``},null,-1),d(e.$slots,`default`)]),_:3},8,[`search`]),b(`div`,we,[b(`div`,{ref_key:`container`,ref:o,"h-full":``,"w-full":``},null,512),T(c,{absolute:``,"bottom-3":``,"left-3":``,"border-0":``,"n-glass-effect":``,p2:``,px3:``,"text-sm":``},{default:_(()=>[...n[15]||=[b(`div`,{grid:`~ cols-[20px_1fr] items-center gap-y-1`},[b(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-42b883":``}),b(`div`,{op50:``},` Component `),b(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-97c2fc":``}),b(`div`,{op50:``},` Global Component `),b(`div`,{"h-3":``,"w-3":``,"bg-hex-42b2b8":``}),b(`div`,{op50:``},` Page `),b(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 726 628`,"ml--1px":``,"h-3":``},[b(`path`,{fill:`#4256b8`,"stroke-width":`4`,d:`M723 314 543 625.8H183L3 314 183 2.2h360L723 314z`})]),b(`div`,{op50:``},` Layout `),b(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b4b842":``}),b(`div`,{op50:``},` Library Component `),b(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b86542":``}),b(`div`,{op50:``},` Unknown `)],-1)]]),_:1}),T(g,{"model-value":!!(f.value&&f.value.component),top:s.value,border:`t l base`,"w-80":``,onClose:U},{default:_(()=>[f.value&&f.value.component?(u(),C(`div`,Te,[T(l,{component:f.value.component,dependencies:B.value,dependents:V.value},null,8,[`component`,`dependencies`,`dependents`]),b(`div`,Ee,[T(p,{n:`primary solid`,onClick:n[7]||=e=>X()},{default:_(()=>[...n[16]||=[t(` Filter to this component `,-1)]]),_:1})])])):m(``,!0)]),_:1},8,[`model-value`,`top`])])],64)}}}),Oe=Object.assign(De,{__name:`ComponentsGraph`}),ke={hover:`bg-active`,class:`group`,flex:`~ gap2`,"w-full":``,"items-center":``,rounded:``,px2:``,py1:``},Ae={key:0,"ml--1":``,"text-primary":``},je=r({__name:`ComponentItem`,props:{component:{},dependencies:{},dependents:{}},setup(e){let t=e,n=x(()=>t.component.filePath||t.component.file||t.component.__file||``);return(t,r)=>{let i=Z,a=$,o=p(`VDropdown`),s=K,l=B;return u(),C(`div`,ke,[T(o,null,{popper:_(()=>[T(a,{component:e.component,dependencies:e.dependencies,dependents:e.dependents,"w-100":``,pt3:``},null,8,[`component`,`dependencies`,`dependents`])]),default:_(()=>[b(`button`,{"hover:text-primary":``,class:c(e.dependents&&e.dependents.length===0?`op50`:``)},[T(i,{component:e.component},null,8,[`component`])],2)]),_:1}),e.dependents?.length?(u(),C(`sup`,Ae,` x`+S(e.dependents?.length),1)):m(``,!0),e.component.global?(u(),y(s,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):m(``,!0),d(t.$slots,`default`),n.value?(u(),y(l,{key:2,filepath:n.value,"text-sm":``,op25:``,"group-hover:op75":``},null,8,[`filepath`])):m(``,!0)])}}}),Me=Object.assign(je,{__name:`ComponentItem`}),Ne={flex:`~ gap-2 items-center`},Pe={pl4:``},Fe=r({__name:`ComponentsList`,props:{components:{},relationships:{}},setup(e){let t=e,r=n(``),i=n(`all`),s=x(()=>{let e=t.components.map(e=>O(e,t.relationships));return i.value===`using`?e.filter(e=>e.dependents?.length):i.value===`not-used`?e.filter(e=>!e.dependents?.length):e}),c={ClientOnly:`https://nuxt.com/docs/api/components/client-only`,DevOnly:`https://nuxt.com/docs/api/components/dev-only`,NuxtClientFallback:`https://nuxt.com/docs/api/components/nuxt-client-fallback`,NuxtPicture:`https://nuxt.com/docs/api/components/nuxt-picture`,NuxtRouteAnnouncer:`https://nuxt.com/docs/api/components/nuxt-route-announcer`,NuxtTime:`https://nuxt.com/docs/api/components/nuxt-time`,NuxtPage:`https://nuxt.com/docs/api/components/nuxt-page`,NuxtLayout:`https://nuxt.com/docs/api/components/nuxt-layout`,NuxtLink:`https://nuxt.com/docs/api/components/nuxt-link`,NuxtLoadingIndicator:`https://nuxt.com/docs/api/components/nuxt-loading-indicator`,NuxtErrorBoundary:`https://nuxt.com/docs/api/components/nuxt-error-boundary`,NuxtWelcome:`https://nuxt.com/docs/api/components/nuxt-welcome`,NuxtIsland:`https://nuxt.com/docs/api/components/nuxt-island`,NuxtImg:`https://nuxt.com/docs/api/components/nuxt-img`},l=x(()=>new I(s.value,{keys:[`component.pascalName`,`component.filePath`,`component.kebabName`]})),p=x(()=>{let e=[],t=new Map,n=[],i=[],a={user:0,lib:0,builtin:0,runtime:0};return(r.value?l.value.search(r.value).map(e=>e.item):s.value).forEach(r=>{let o=r.component;if(o.filePath&&E(o.filePath)){let e=D(o.filePath);if(!e)return;e===`nuxt`?(o.meta??={},o.meta.docs??=c?.[o.pascalName],n.push(r),a.builtin++):(t.has(e)||t.set(e,[]),t.get(e).push(r),a.lib++)}else o.global&&!o.filePath?(i.push(r),a.runtime++):(e.push(r),a.user++)}),{count:a,user:e,builtin:n,lib:t,runtime:i}});return(e,t)=>{let n=N,s=Y,c=H,l=Me,g=W,v=U;return u(),C(h,null,[T(c,{search:r.value,"onUpdate:search":t[1]||=e=>r.value=e,pb3:``},{actions:_(()=>[d(e.$slots,`default`)]),default:_(()=>[b(`div`,Ne,[T(n,{icon:`carbon-filter`,op50:``}),T(s,{modelValue:i.value,"onUpdate:modelValue":t[0]||=e=>i.value=e,n:`primary sm`,options:[{label:`All`,value:`all`},{label:`Using`,value:`using`},{label:`Not used`,value:`not-used`}]},null,8,[`modelValue`])])]),_:3},8,[`search`]),p.value.user.length?(u(),y(g,{key:0,icon:`carbon-nominal`,text:`User components`,open:p.value.user.length<=a(50),description:`Total components: ${p.value.count.user}`},{default:_(()=>[(u(!0),C(h,null,f(p.value.user,e=>(u(),y(l,o({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):m(``,!0),p.value.runtime.length?(u(),y(g,{key:1,icon:`carbon-load-balancer-global`,open:p.value.runtime.length<=a(50),text:`Runtime components`,description:`Total components: ${p.value.count.runtime}`},{default:_(()=>[(u(!0),C(h,null,f(p.value.runtime,e=>(u(),y(l,o({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):m(``,!0),p.value.builtin.length?(u(),y(g,{key:2,icon:`simple-icons-nuxtdotjs`,text:`Built-in components`,description:`Total components: ${p.value.count.builtin}`},{default:_(()=>[(u(!0),C(h,null,f(p.value.builtin,e=>(u(),y(l,o({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`description`])):m(``,!0),p.value.lib.size?(u(),y(g,{key:3,open:p.value.count.lib<=a(50),icon:`carbon-3d-mpr-toggle`,text:`Components from libraries`,description:`${p.value.count.lib} components from ${p.value.lib.size} packages`},{default:_(()=>[(u(!0),C(h,null,f(p.value.lib.entries(),([e,t])=>(u(),C(`div`,{key:e,"ml-2":``},[T(v,{text:`${e} (${t.length})`,py1:``,op50:``},null,8,[`text`]),b(`div`,Pe,[(u(!0),C(h,null,f(t,e=>(u(),y(l,o({key:e.component.filePath},{ref_for:!0},e),null,16))),128))])]))),128))]),_:1},8,[`open`,`description`])):m(``,!0)],64)}}}),Ie=Object.assign(Fe,{__name:`ComponentsList`}),Le={relative:``,"h-full":``,"of-auto":``},Re={"flex-none":``,flex:`~ gap3`},ze=r({__name:`components`,setup(t){z({icon:`i-carbon-assembly-cluster`,title:`Components`,order:2});let n=A(),r=ae(),i=X(),{componentsView:o}=j(`ui`);function c(){n.value?.inspector?.enable()}function l(){o.value=o.value===`list`?`graph`:`list`}return(t,d)=>{let f=P,p=le,g=V,x=s(`tooltip`);return u(),C(h,null,[b(`div`,Le,[(u(),y(e(a(o)===`list`?Ie:Oe),{components:a(r),relationships:a(i)},{default:_(()=>[b(`div`,Re,[v(T(f,{"text-lg":``,border:!1,icon:a(o)===`graph`?`i-carbon-list`:`i-carbon-network-4`,title:`Toggle view`,onClick:l},null,8,[`icon`]),[[x,`Toggle View`,void 0,{"bottom-end":!0}]]),a(n)?.inspector?.isAvailable?v((u(),y(f,{key:0,"text-lg":``,border:!1,icon:`i-tabler-focus-2`,title:`Inspect Vue components`,onClick:c},null,512)),[[x,`Inspect Vue components`,void 0,{"bottom-end":!0}]]):m(``,!0)])]),_:1},8,[`components`,`relationships`]))]),T(g,null,{default:_(()=>[T(p)]),_:1})],64)}}});export{ze as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,C as t,Ct as n,E as r,F as i,H as a,Mt as o,V as s,W as c,dt as l,g as u,h as d,lt as f,m as p,tn as m,v as h,w as g,xt as _}from"./vendor/json-editor-vue-eojr4v24.js";import{_ as v,g as y}from"./ready-dadbdj5i.js";import"./utils-jupbrzo6.js";import{T as b,l as x,s as S,t as C}from"./client-nwyjxodt.js";import{i as w,r as T}from"./dev-auth-he0eye7r.js";import"./vendor/shiki-lqo1hg2n.js";import"./storage-options-nzog3hhp.js";import"./nuxt-link-bumooa9d.js";import"./nicon-m1crov2l.js";import"./nbutton-gygn07c2.js";import{t as E}from"./ncard-ludmyw2u.js";import"./telemetry-c77tnag3.js";import{r as D}from"./state-tabs-mtxv3h6t.js";import{t as O}from"./npanel-grids-onrho735.js";import"./ntext-input-e8iut2en.js";import{a as k}from"#entry";import"./client-im47u3kz.js";import{t as A}from"./composables-b2ccklz4.js";import"./nmarkdown-ciogo2e3.js";import{t as j}from"./launch-page-h3hu9uqw.js";var M=new Map,N=r({__name:`IframeView`,props:{tab:{}},setup(e){let t=e,r=C(),o=n(),l=p(()=>t.tab.name),u=n(),d=_(b(o));s(()=>{let e=t.tab.view,n=e.persistent!==!1,r=[`clipboard-write`,`clipboard-read`,...e.permissions||[]];if(M.get(l.value)&&n)u.value=M.get(l.value),u.value.style.visibility=`visible`;else{u.value=document.createElement(`iframe`),u.value.setAttribute(`allow`,r.join(`; `)),u.value.setAttribute(`aria-label`,`Nuxt Devtools`),n&&M.set(l.value,u.value),u.value.src=e.src;try{u.value.style.opacity=`0.01`,u.value.onload=()=>{v(),m(),u.value.style.opacity=`1`}}catch{u.value.style.opacity=`1`}document.body.appendChild(u.value),i(y)}setTimeout(m,100)}),f(y),f(m),f(v),a(()=>{u.value&&(u.value.style.visibility=`hidden`)});function m(){if(!(!u.value||!u.value.contentWindow))try{let e=u.value.contentWindow.document.querySelector(`html`);e?.classList.toggle(`dark`,r.value===`dark`),e?.classList.toggle(`light`,r.value===`dark`),new MutationObserver(()=>{r.value=u.value?.contentWindow?.document.querySelector(`html`)?.classList.contains(`dark`)?`dark`:`light`}).observe(e,{attributes:!0,attributeFilter:[`class`]})}catch{}}let g=S();function v(){if(!(!u.value||!u.value.contentWindow))try{u.value.contentWindow.__NUXT_DEVTOOLS__=g.value}catch{}}function y(){u.value&&Object.assign(u.value.style,{position:`fixed`,left:`${d.left}px`,top:`${d.top}px`,width:`${d.width}px`,height:`${d.height}px`,outline:`none`})}return(e,t)=>(c(),h(`div`,{ref_key:`anchor`,ref:o,"h-full":``,"w-full":``},null,512))}}),P=Object.assign(N,{__name:`IframeView`}),F={flex:`~ col gap2`,mxa:``,"items-center":``},I={"text-xl":``},L={"text-rose":``},R=r({__name:`custom-[name]`,props:{name:{}},setup(n){let r=n;A({layout:`full`});let i=y(),a=v(),f=p(()=>r.name??i.params.name),h=D(),_=p(()=>h.value.find(e=>e.name===f.value));return s(()=>{_.value?_.value.requireAuth&&!T.value&&w():setTimeout(()=>{_.value||a.push(`/modules/overview`)},2e3)}),(n,r)=>{let i=O,a=k,s=P,p=j,h=E;return _.value?_.value.requireAuth&&!o(T)?(c(),u(a,{key:1})):_.value.view.type===`iframe`?(c(),u(s,{key:2,tab:_.value},null,8,[`tab`])):_.value.view.type===`vnode`?(c(),u(e(_.value.view.vnode),{key:3})):_.value.view.type===`launch`?(c(),u(p,{key:4,name:`custom-${_.value.name}`,icon:_.value.view.icon||_.value.icon,title:_.value.view.title||_.value.title,description:_.value.view.description,actions:_.value.view.actions,onAction:r[0]||=e=>o(x).customTabAction(_.value.name,e)},null,8,[`name`,`icon`,`title`,`description`,`actions`])):(c(),u(i,{key:5},{default:l(()=>[g(h,{flex:`~ col`,"h-full":``,"items-center":``,"justify-center":``},{default:l(()=>[t(` Unknown tab type `+m(_.value.view),1)]),_:1})]),_:1})):(c(),u(i,{key:0},{default:l(()=>[d(`div`,F,[r[3]||=d(`div`,{"i-carbon-queued":``,mb2:``,"text-5xl":``,op50:``},null,-1),d(`p`,I,[r[1]||=t(` Tab `,-1),d(`code`,L,m(f.value),1),r[2]||=t(` not found `,-1)]),r[4]||=d(`p`,{op50:``},` It might because the module contributing this tab is not installed or enabled `,-1),r[5]||=d(`p`,{mt8:``,"animate-pulse":``},` Redirecting to overview page... `,-1)])]),_:1}))}}});export{R as default};
|