@nuxt/devtools 0.6.5 → 0.6.7
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/dist/chunks/module-main.mjs +69 -57
- package/dist/chunks/vscode.mjs +1 -1
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/__blank/index.html +2 -2
- package/dist/client/_nuxt/{AuthRequiredPanel.vue.4a384b9f.js → AuthRequiredPanel.vue.fc7f2968.js} +1 -1
- package/dist/client/_nuxt/{Badge.c0d1f5dc.js → Badge.e05fc69f.js} +1 -1
- package/dist/client/_nuxt/{CodeSnippets.vue.8c61fd7c.js → CodeSnippets.vue.a1fe908d.js} +1 -1
- package/dist/client/_nuxt/{DrawerRight.vue.c501225b.js → DrawerRight.vue.3adebf89.js} +1 -1
- package/dist/client/_nuxt/{DurationDisplay.vue.2e59bc69.js → DurationDisplay.vue.c6aa67b3.js} +1 -1
- package/dist/client/_nuxt/{FilepathItem.vue.3c115665.js → FilepathItem.vue.7520a5eb.js} +1 -1
- package/dist/client/_nuxt/{HelpFab.vue.9b43b6f2.js → HelpFab.vue.6c2e0089.js} +1 -1
- package/dist/client/_nuxt/{LaunchPage.vue.28e8d0e8.js → LaunchPage.vue.ace7e996.js} +1 -1
- package/dist/client/_nuxt/{NCheckbox.vue.14f1a446.js → NCheckbox.vue.660c8c34.js} +1 -1
- package/dist/client/_nuxt/{NCodeBlock.vue.aa4c2b0a.js → NCodeBlock.vue.12f6d4d2.js} +1 -1
- package/dist/client/_nuxt/NIconButton.vue.9dc5b644.js +1 -0
- package/dist/client/_nuxt/{NIconTitle.vue.a6be386c.js → NIconTitle.vue.0db956c8.js} +1 -1
- package/dist/client/_nuxt/{NLink.vue.5e3a6591.js → NLink.vue.f3f95732.js} +1 -1
- package/dist/client/_nuxt/{NMarkdown.vue.c9f7ff32.js → NMarkdown.vue.31d61f61.js} +1 -1
- package/dist/client/_nuxt/{NPanelGrids.f899330a.js → NPanelGrids.cfd60e85.js} +1 -1
- package/dist/client/_nuxt/{NSectionBlock.6f18b32c.js → NSectionBlock.216523d8.js} +1 -1
- package/dist/client/_nuxt/{NSelect.vue.e9c1f76a.js → NSelect.vue.38f0d91b.js} +1 -1
- package/dist/client/_nuxt/{NSwitch.vue.36a2f491.js → NSwitch.vue.4e114eb7.js} +1 -1
- package/dist/client/_nuxt/{NTip.vue.d32fb4a2.js → NTip.vue.d602d31e.js} +1 -1
- package/dist/client/_nuxt/Navbar.vue.72301b0e.js +1 -0
- package/dist/client/_nuxt/{PanelLeftRight.vue.83f47156.js → PanelLeftRight.vue.d1539d19.js} +1 -1
- package/dist/client/_nuxt/{StateEditor.vue.d11165dd.js → StateEditor.vue.c8fd02b3.js} +1 -1
- package/dist/client/_nuxt/{__blank.cdaea659.js → __blank.58b4eaa9.js} +1 -1
- package/dist/client/_nuxt/{analyze-build.4d1e9ee6.js → analyze-build.66f9bc20.js} +1 -1
- package/dist/client/_nuxt/{assets.ecfd3346.js → assets.b60a4d67.js} +1 -1
- package/dist/client/_nuxt/{client.478bae5e.js → client.1e3208e3.js} +1 -1
- package/dist/client/_nuxt/{components.72f0cb37.js → components.3a437d73.js} +1 -1
- package/dist/client/_nuxt/{custom-_name_.ae308902.js → custom-_name_.1614dd97.js} +1 -1
- package/dist/client/_nuxt/{default.1c7986f5.js → default.a69a326f.js} +1 -1
- package/dist/client/_nuxt/entry.559460ac.js +21 -0
- package/dist/client/_nuxt/entry.e49b0ddd.css +1 -0
- package/dist/client/_nuxt/{error-404.258e4126.js → error-404.eb07c617.js} +1 -1
- package/dist/client/_nuxt/{error-500.98cfc561.js → error-500.8214e786.js} +1 -1
- package/dist/client/_nuxt/{full.7c8a2cb2.js → full.1f3e7ba7.js} +1 -1
- package/dist/client/_nuxt/{hooks.8e43178d.js → hooks.7a294c4b.js} +1 -1
- package/dist/client/_nuxt/{imports.61cdd20b.js → imports.8b3c700a.js} +1 -1
- package/dist/client/_nuxt/{index.8f8696d3.js → index.6a0822c9.js} +1 -1
- package/dist/client/_nuxt/{index.1c1c11c0.js → index.98d48447.js} +1 -1
- package/dist/client/_nuxt/{json-editor-vue.eb2897ef.js → json-editor-vue.9acffc14.js} +1 -1
- package/dist/client/_nuxt/{middleware.488057ad.js → middleware.c2f916df.js} +1 -1
- package/dist/client/_nuxt/{modules.b41a31a7.js → modules.a1aceff5.js} +1 -1
- package/dist/client/_nuxt/{none.a8009d94.js → none.bf6672f1.js} +1 -1
- package/dist/client/_nuxt/{open-graph.33eee6eb.js → open-graph.f68f3562.js} +1 -1
- package/dist/client/_nuxt/{overview.b383a09b.js → overview.9fbd51a4.js} +1 -1
- package/dist/client/_nuxt/{pages.a8f604e9.js → pages.8b6a187c.js} +1 -1
- package/dist/client/_nuxt/{payload.92a78313.js → payload.5851379a.js} +1 -1
- package/dist/client/_nuxt/{plugins.35647e23.js → plugins.20750545.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs.9e05f3a1.js → runtime-configs.ce330378.js} +1 -1
- package/dist/client/_nuxt/server-routes.08ebdd45.js +9 -0
- package/dist/client/_nuxt/settings.63ba52d8.js +1 -0
- package/dist/client/_nuxt/{state-components.64ea3be8.js → state-components.493c1b8d.js} +1 -1
- package/dist/client/_nuxt/{state-modules.b7c84a15.js → state-modules.c72270b1.js} +1 -1
- package/dist/client/_nuxt/{storage.e2daad83.js → storage.d37c76d1.js} +1 -1
- package/dist/client/_nuxt/{terminals.3a85d379.js → terminals.714ad795.js} +1 -1
- package/dist/client/_nuxt/{unocss-runtime.6872b5f3.js → unocss-runtime.552cd61f.js} +1 -1
- package/dist/client/_nuxt/{virtual-files.65a17d14.js → virtual-files.7bf5357c.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/client/modules/analyze-build/index.html +2 -2
- package/dist/client/modules/assets/index.html +2 -2
- package/dist/client/modules/components/index.html +2 -2
- package/dist/client/modules/hooks/index.html +2 -2
- package/dist/client/modules/imports/index.html +2 -2
- package/dist/client/modules/middleware/index.html +2 -2
- package/dist/client/modules/modules/index.html +2 -2
- package/dist/client/modules/open-graph/index.html +2 -2
- package/dist/client/modules/overview/index.html +2 -2
- package/dist/client/modules/pages/index.html +2 -2
- package/dist/client/modules/payload/index.html +2 -2
- package/dist/client/modules/plugins/index.html +2 -2
- package/dist/client/modules/runtime-configs/index.html +2 -2
- package/dist/client/modules/server-routes/index.html +2 -2
- package/dist/client/modules/storage/index.html +2 -2
- package/dist/client/modules/terminals/index.html +2 -2
- package/dist/client/modules/virtual-files/index.html +2 -2
- package/dist/client/settings/index.html +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/plugins/devtools.client.mjs +8 -6
- package/dist/runtime/plugins/view/FrameBox.vue +6 -0
- package/dist/runtime/plugins/view/client.mjs +2 -0
- package/dist/shared/{devtools.7ab40af4.mjs → devtools.ce3f2385.mjs} +21 -1
- package/package.json +12 -12
- package/dist/client/_nuxt/NIconButton.vue.31da9ea3.js +0 -1
- package/dist/client/_nuxt/Navbar.vue.370ac0a9.js +0 -1
- package/dist/client/_nuxt/entry.1e4f7d58.css +0 -1
- package/dist/client/_nuxt/entry.75d08b92.js +0 -21
- package/dist/client/_nuxt/server-routes.9200425c.js +0 -9
- package/dist/client/_nuxt/settings.ee08e815.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as I,r as E,l as R,a9 as J,q as t,o,c as s,a as e,t as $,h as v,w as k,aX as O,F as h,m as T,s as y,b as p,d as P,n as L,J as M,j as q,T as W,aY as D,aJ as H,aK as X,V as Y,a4 as G,aL as Q,aM as A,ak as Z,I as ee,aN as te,z as oe,A as ne}from"./entry.
|
|
1
|
+
import{g as I,r as E,l as R,a9 as J,q as t,o,c as s,a as e,t as $,h as v,w as k,aX as O,F as h,m as T,s as y,b as p,d as P,n as L,J as M,j as q,T as W,aY as D,aJ as H,aK as X,V as Y,a4 as G,aL as Q,aM as A,ak as Z,I as ee,aN as te,z as oe,A as ne}from"./entry.559460ac.js";import{_ as S}from"./Badge.e05fc69f.js";import{_ as F}from"./FilepathItem.vue.7520a5eb.js";import{_ as ae}from"./NSectionBlock.216523d8.js";import{_ as se}from"./LaunchPage.vue.ace7e996.js";import{_ as re}from"./HelpFab.vue.6c2e0089.js";import"./NIconTitle.vue.0db956c8.js";import"./NMarkdown.vue.31d61f61.js";import"./client.1e3208e3.js";import"./NPanelGrids.cfd60e85.js";import"./NIconButton.vue.9dc5b644.js";const le={block:"","cursor-pointer":""},ie={p2:""},ue=["onSubmit"],ce=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),de={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},pe={key:1},_e=I({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(V,{emit:d}){const i=V,_=E([]),m=R(()=>{const u=b(i.route.path);return _.value=Array.from({length:u.length},()=>""),u});function b(u){return u.split(/(:\w+[\?\*]?(?:\(\))?)/).filter(Boolean).map(c=>c[0]===":"?c.replace(/\(\)$/,"?"):c)}const w=R(()=>m.value.map((u,c)=>u[0]===":"?_.value[c]:u).join("").replace(/\/+/g,"/")),r=R(()=>i.route.path.includes(":"));function a(){d("navigate",w.value)}return(u,c)=>{const C=M,n=q,l=J("VDropdown");return t(r)?(o(),v(l,{key:1},{popper:k(({hide:f})=>[e("div",ie,[e("form",{flex:"~ col",onSubmit:O(()=>{a(),f()},["prevent"])},[t(r)?(o(),s(h,{key:0},[ce,e("div",de,[(o(!0),s(h,null,T(t(m),(g,x)=>(o(),s(h,{key:x},[g[0]===":"?(o(),v(C,{key:0,modelValue:t(_)[x],"onUpdate:modelValue":B=>t(_)[x]=B,"w-20":"","n-sm":"",placeholder:g.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(o(),s("span",pe,$(g),1))],64))),128))])],64)):y("",!0),p(n,{block:"",n:"primary"},{default:k(()=>[P(" Navigate ")]),_:1})],40,ue)])]),default:k(()=>[e("code",le,[(o(!0),s(h,null,T(t(m),(f,g)=>(o(),s("span",{key:g,class:L(f[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},$(f[0]===":"?f.slice(1):f),3))),128))])]),_:1})):(o(),s("button",{key:0,onClick:a},[e("code",null,$(u.route.path),1)]))}}}),he={"w-full":""},me=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1),fe={"w-20":"","pr-1":""},ge={flex:"","items-center":"","justify-end":""},ve={"text-sm":""},ye={flex:"inline gap3","items-center":""},be={op0:"","group-hover:op100":"",flex:"~ gap1"},xe=["onClick"],ke=e("div",{"i-carbon-script-reference":""},null,-1),$e=[ke],we={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},Ce={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","text-sm":"","font-mono":"",op50:""},Ne={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"","font-mono":""},Re={key:0},Ve=["onClick"],Pe=I({__name:"RoutesTable",props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:["navigate"],setup(V){const d=V,i=W(),_=D(),m=R(()=>[...d.pages].sort((r,a)=>r.path.localeCompare(a.path)));function b(r){const a=d.layouts.find(u=>u.name===r);a&&i(a.file)}function w(r){if(typeof r=="string")return _.value?.middleware.find(a=>a.name===r)?.path}return(r,a)=>{const u=S,c=_e,C=F;return o(),s("div",null,[e("table",he,[me,e("tbody",null,[(o(!0),s(h,null,T(t(m),n=>(o(),s("tr",{key:n.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",fe,[e("div",ge,[r.matched.find(l=>l.name===n.name)?(o(),v(u,{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):y("",!0),r.matchedPending.find(l=>l.name===n.name)?(o(),v(u,{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):y("",!0)])]),e("td",ve,[e("div",ye,[p(c,{route:n,class:L(r.matched.find(l=>l.name===n.name)?"text-primary":r.matchedPending.find(l=>l.name===n.name)?"text-teal":""),onNavigate:a[0]||(a[0]=l=>r.$emit("navigate",l))},null,8,["route","class"]),e("div",be,[n.file||n.meta?.file?(o(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:l=>t(i)(n.file||n.meta?.file)},$e,8,xe)):y("",!0)])])]),e("td",we,$(n.name),1),e("td",Ce,[p(C,{filepath:w(n.meta.middleware),override:`${n.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Ne,[n.meta.layout===!1?(o(),s("span",Re,"-")):n.meta.layout?(o(),s("button",{key:1,onClick:l=>b(n.meta.layout)},$(n.meta.layout),9,Ve)):(o(),s("button",{key:2,"text-sm":"",op15:"",onClick:a[1]||(a[1]=l=>b("default"))}," (default) "))])]))),128))])])])}}}),Te={class:"markdown-body"},Be=e("h1",null,"Pages",-1),Ie=e("p",null,[P("One core feature of Nuxt is the file system router. Every Vue file inside the "),e("code",null,"pages/"),P(" directory creates a corresponding URL (or route) that displays the contents of the file. By using dynamic imports for each page, Nuxt leverages code-splitting to ship the minimum amount of JavaScript for the requested route.")],-1),Le=e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more on the documentation")],-1),Ae=e("hr",null,null,-1),Ee=e("h1",null,"Middlewares",-1),Me=e("p",null,"Nuxt provides a customizable route middleware framework you can use throughout your application, ideal for extracting code that you want to run before navigating to a particular route.",-1),De=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more on the documentation")],-1),Se=[Be,Ie,Le,Ae,Ee,Me,De],Fe={__name:"pages",setup(V,{expose:d}){return d({frontmatter:{}}),(_,m)=>(o(),s("div",Te,Se))}},ze={key:0,"h-full":"","of-auto":""},Ke={border:"b base",flex:"~ col gap1",px4:"",py3:"","navbar-glass":""},Ue=e("span",{op50:""},"Navigate from ",-1),je={"font-mono":""},Je=e("span",{op50:""}," to ",-1),Oe={key:1,op50:""},qe=e("span",null,[P("Press "),e("b",{"font-bold":""},"Enter"),P(" to navigate")],-1),We={key:0,"text-orange":"",op75:""},He={key:1,op50:""},Xe={"w-full":""},Ye=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1),Ge={mr1:""},ut=I({__name:"pages",setup(V){const d=H(),i=X(),_=Y(),m=D(),b=G(),w=Q(),r=R(()=>m.value?.middleware||[]),a=E("");A(i).toBeTruthy().then(n=>{a.value=n.path}),A(d).toBeTruthy().then(n=>{n.afterEach(()=>{Z(()=>{a.value=i.value.path})})});async function u(){a.value!==i.value.path&&d.value.push(a.value||"/")}const c=R(()=>a.value===i.value.path?[]:d.value.resolve(a.value||"/").matched);function C(n){d.value.push(n)}return(n,l)=>{const f=M,g=Pe,x=ae,B=S,z=F,K=se,U=Fe,j=re;return o(),s(h,null,[t(_)?.pages&&t(d)?(o(),s("div",ze,[e("div",Ke,[e("div",null,[t(i).path!==t(a)?(o(),s(h,{key:0},[Ue,e("span",je,$(t(i).path),1),Je],64)):(o(),s("span",Oe,"Current route"))]),p(f,{modelValue:t(a),"onUpdate:modelValue":l[0]||(l[0]=N=>ee(a)?a.value=N:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:L(t(i).path===t(a)?"":t(c).length?"text-green":"text-orange"),onKeydown:te(u,["enter"])},null,8,["modelValue","class","onKeydown"]),e("div",null,[t(i).path!==t(a)?(o(),s(h,{key:0},[qe,t(c).length?y("",!0):(o(),s("span",We," (no match)"))],64)):(o(),s("span",He,"Edit path above to navigate"))])]),t(c).length?(o(),v(x,{key:0,icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:k(()=>[p(g,{pages:t(c),layouts:t(b)||[],matched:[],"matched-pending":t(c),onNavigate:C},null,8,["pages","layouts","matched-pending"])]),_:1})):y("",!0),p(x,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${t(w).length} routes registered in your application`,padding:"pr5"},{default:k(()=>[p(g,{pages:t(w),layouts:t(b)||[],matched:t(i).matched,"matched-pending":t(c),onNavigate:C},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),t(r).length?(o(),v(x,{key:1,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${t(r).length} middleware registered in your application`,padding:"px13"},{default:k(()=>[e("table",Xe,[Ye,(o(!0),s(h,null,T(t(r),N=>(o(),s("tr",{key:N.path,"h-7":""},[e("td",null,[e("span",Ge,$(N.name),1),N.global?(o(),v(B,{key:0,"bg-green-400:10":"","text-green-400":"",title:"Registered at runtime as a global component",textContent:"global"})):y("",!0)]),e("td",null,[p(z,{filepath:N.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):y("",!0)])):(o(),v(K,{key:1,icon:"carbon-tree-view-alt",title:"Nuxt Routing",description:"Create `./pages/index.vue` to enable routing",actions:[{label:"Learn more",src:"https://nuxt.com/docs/getting-started/routing",attrs:{n:"primary"}},{label:"Enable Routing",async handle(){return("rpc"in n?n.rpc:t(oe)).runWizard(await("ensureDevAuthToken"in n?n.ensureDevAuthToken:t(ne))(),"enablePages")}}]},null,8,["actions"])),p(j,null,{default:k(()=>[p(U)]),_:1})],64)}}});export{ut as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as y}from"./StateEditor.vue.
|
|
1
|
+
import{_ as y}from"./StateEditor.vue.c8fd02b3.js";import{g as x,o as e,c,F as k,m as B,h as m,w as o,a1 as C,aD as D,aE as w,a as $,ac as E,l as F,q as r,b as a,s as u,d as O,j as P}from"./entry.559460ac.js";import{_ as V}from"./NSectionBlock.216523d8.js";import{_ as j}from"./NIconButton.vue.9dc5b644.js";import{_ as R}from"./HelpFab.vue.6c2e0089.js";import"./json-editor-vue.9acffc14.js";import"./NIconTitle.vue.0db956c8.js";const A={key:0,flex:"~ col gap-1"},G={key:1,mt2:"",px4:"",italic:"",op35:""},H=x({__name:"StateGroup",props:{state:{},prefix:{default:""}},setup(f){return(t,n)=>{const i=y;return e(),c("div",null,[t.state&&Object.keys(t.state).length>0?(e(),c("div",A,[(e(!0),c(k,null,B(t.state,(l,s)=>(e(),m(i,{key:s,state:l,name:s.startsWith(t.prefix)?s.slice(t.prefix.length):s},{actions:o(_=>[C(t.$slots,"actions",D(w(_)))]),_:2},1032,["state","name"]))),128))])):(e(),c("div",G," No data "))])}}}),K={class:"markdown-body"},T=$("h1",null,"State & Async Data",-1),q=$("p",null,"// TODO",-1),z=[T,q],I={__name:"payload",setup(f,{expose:t}){return t({frontmatter:{}}),(i,l)=>(e(),c("div",K,z))}},L={key:0},tt=x({__name:"payload",setup(f){const t=E(),n=F(()=>t.value?.nuxt.payload);async function i(l){await t.value?.nuxt.hooks.callHookParallel("app:data:refresh",l)}return(l,s)=>{const _=H,p=V,b=P,v=j,S=y,g=I,N=R;return e(),c(k,null,[r(t)?(e(),c("div",L,[a(p,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:o(()=>[a(_,{state:r(n).state,prefix:"$s"},null,8,["state"])]),_:1}),a(p,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{actions:o(()=>[a(b,{n:"xs primary","self-start":"",icon:"i-carbon-recycle",onClick:s[0]||(s[0]=h=>i())},{default:o(()=>[O(" Re-fetch all data ")]),_:1})]),default:o(()=>[a(_,{state:r(n).data},{actions:o(({isOpen:h,name:d})=>[h&&d?(e(),m(v,{key:0,title:`Re-fetch '${d}'`,icon:"carbon-recycle",onClick:W=>i([d])},null,8,["title","onClick"])):u("",!0)]),_:1},8,["state"])]),_:1}),r(n).functions&&Object.keys(r(n).functions).length?(e(),m(p,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions (experimental)"},{default:o(()=>[a(S,{"ml--6":"",state:r(n).functions},null,8,["state"])]),_:1})):u("",!0)])):u("",!0),a(N,null,{default:o(()=>[a(g)]),_:1})],64)}}});export{tt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as T}from"./FilepathItem.vue.
|
|
1
|
+
import{_ as T}from"./FilepathItem.vue.7520a5eb.js";import{_ as D}from"./Badge.e05fc69f.js";import{_ as k}from"./DurationDisplay.vue.c6aa67b3.js";import{g as v,V as B,l as x,aW as V,o as n,c as m,a as t,t as P,b as l,q as f,h as u,s as d,a9 as F,a1 as w,P as H,_ as I,w as h,d as y,aY as M,ac as W,F as C,m as E,n as L}from"./entry.559460ac.js";import{_ as Y}from"./NSectionBlock.216523d8.js";import{_ as j}from"./HelpFab.vue.6c2e0089.js";import"./NIconTitle.vue.0db956c8.js";import"./NIconButton.vue.9dc5b644.js";const q={flex:"~ gap2","items-center":""},z={w8:"","text-right":"","text-sm":"",op25:""},A={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 _=T,o=D,s=k;return n(),m("div",q,[t("div",z,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,"bg-rose-400:10":"","text-rose":"",textContent:"virtual"})):f(r).startsWith(".")?d("",!0):(n(),u(o,{key:1,"bg-gray-400:10":"","text-gray":"",textContent:"module"})),i.plugin.mode==="server"?(n(),u(o,{key:2,"bg-teal-400:10":"","text-teal-400":"",textContent:"server"})):d("",!0),i.plugin.mode==="client"?(n(),u(o,{key:3,"bg-orange-400:10":"","text-orange-400":"",textContent:"client"})):d("",!0)]),i.plugin.metric?.duration!=null?(n(),m("div",A,[l(s,{duration:i.plugin.metric?.duration,factor:10},null,8,["duration"])])):d("",!0)])}}}),G={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",G,[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,[w(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:h(()=>[w(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 allows you to extend the functionality of 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 on 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:h(()=>[y(" Plugins runs before your application at runtime, the time each plugin cost will directly affect 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),ft=v({__name:"plugins",setup(p){const e=M(),a=W(),r=x(()=>{const c=e.value?.plugins||[],_=a.value?.getClientPluginMetrics()||[];return c.map(o=>{const s=typeof o=="string"?{src:o}:o;return{...s,metric:_.find(g=>g.src===s.src||g.src.startsWith(s.src))}})}),i=x(()=>{const c=a.value?.getClientPluginMetrics()||[],_=Math.min(...c.map(s=>s.start));return Math.max(...c.map(s=>s.end))-_});return(c,_)=>{const o=R,s=k,g=Y,N=nt,S=j;return n(),m(C,null,[l(g,{icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${f(r).length}`},{default:h(()=>[t("div",ot,[(n(!0),m(C,null,E(f(r),($,b)=>(n(),u(o,{key:$.src,plugin:$,index:b+1,"ml--4":"","border-base":"",py2:"",class:L(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(S,null,{default:h(()=>[l(N)]),_:1})],64)}}});export{ft as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as C}from"./StateEditor.vue.
|
|
1
|
+
import{_ as C}from"./StateEditor.vue.c8fd02b3.js";import{_ as h}from"./NSectionBlock.216523d8.js";import{o as c,c as r,a as m,g as v,ac as x,V as b,l as u,q as o,b as e,w as s,s as y,F as k}from"./entry.559460ac.js";import{_ as R}from"./HelpFab.vue.6c2e0089.js";import"./NIconButton.vue.9dc5b644.js";import"./json-editor-vue.9acffc14.js";import"./NIconTitle.vue.0db956c8.js";const B={class:"markdown-body"},N=m("h1",null,"Runtime Configs",-1),V=m("p",null,"// TODO:",-1),$=[N,V],w={__name:"runtime-configs",setup(d,{expose:t}){return t({frontmatter:{}}),(l,p)=>(c(),r("div",B,$))}},D={key:0},H=v({__name:"runtime-configs",setup(d){const t=x(),_=b(),l=u(()=>t.value?.nuxt.payload),p=u(()=>{const n={..._.value?.runtimeConfig};return delete n.public,delete n.app,n});return(n,F)=>{const a=C,i=h,f=w,g=R;return c(),r(k,null,[o(t)?(c(),r("div",D,[e(i,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:s(()=>[e(a,{state:o(t).appConfig},null,8,["state"])]),_:1}),e(i,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:s(()=>[e(a,{state:o(l).config?.public},null,8,["state"])]),_:1}),e(i,{icon:"i-carbon-code-signing-service",text:"Private Runtime Config",open:!1,padding:!1,description:"These values are not exposed to the client. Readonly in the DevTools."},{default:s(()=>[e(a,{state:o(p),readonly:""},null,8,["state"])]),_:1})])):y("",!0),e(g,null,{default:s(()=>[e(f)]),_:1})],64)}}});export{H as default};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{_ as Ve}from"./Navbar.vue.72301b0e.js";import{g as K,r as O,o as t,c as u,h as c,w as h,a as d,n as L,q as e,b0 as H,t as U,s as q,d as P,S as Te,ad as Se,e as Ue,a1 as J,F as w,m as D,P as ee,at as we,l as g,b as x,J as ue,j as ie,E as de,V as je,ai as le,T as qe,al as Ne,a6 as ce,I as W,ah as Ee,b1 as Pe,z as pe,b2 as Le,D as Oe,b3 as Ie,Z as Be,b4 as De,a8 as Me}from"./entry.559460ac.js";import{_ as me}from"./Badge.e05fc69f.js";import{_ as fe}from"./NSelect.vue.38f0d91b.js";import{_ as Fe}from"./CodeSnippets.vue.a1fe908d.js";import{_ as Ae}from"./NCheckbox.vue.660c8c34.js";import{_ as he}from"./NPanelGrids.cfd60e85.js";import{_ as We}from"./NCodeBlock.vue.12f6d4d2.js";import{C as re}from"./constants.d7bcda3c.js";import{U as ze}from"./json-editor-vue.9acffc14.js";import{_ as Ge}from"./PanelLeftRight.vue.d1539d19.js";import"./client.1e3208e3.js";const He=d("div",{"x-divider":""},null,-1),ve=K({__name:"ServerRouteListItem",props:{item:{},index:{default:0}},setup(I){const N=O(!0);return(l,f)=>{const s=ee,E=me,j=ve;return t(),u("div",null,[(t(),c(Se(l.item.routes?"button":e(Ue)),{flex:"~ gap-2","w-full":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:L([{"bg-active":l.$route.query.path===l.item.route&&l.$route.query.method===l.item.method}]),style:Te({paddingLeft:`calc(0.5rem + ${l.index*1.5}em)`}),to:{query:{path:l.item.route,method:l.item.method}},onClick:f[0]||(f[0]=T=>N.value=!e(N))},{default:h(()=>[d("div",{class:L({"w-12":!l.item.routes}),"flex-none":"","text-left":""},[l.item.type==="collection"?(t(),c(s,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":e(N)?90:0,transition:""},null,8,["transform-rotate"])):(t(),c(E,{key:1,class:L(("getRequestMethodClass"in l?l.getRequestMethodClass:e(H))(l.item.method||"*")),textContent:U((l.item.method||"*").toUpperCase())},null,8,["class","textContent"]))],2),d("span",{class:L({"flex items-center":l.item.routes}),"flex-auto":"","text-sm":"","font-mono":""},[l.item.type==="collection"?(t(),c(s,{key:0,title:`${l.item.routes?.length} routes`,icon:"carbon:folder",mr1:""},null,8,["title"])):q("",!0),P(" "+U(l.item.route),1)],2)]),_:1},8,["class","style","to"])),He,e(N)?J(l.$slots,"default",{key:0},()=>[(t(!0),u(w,null,D(l.item.routes,T=>(t(),c(j,{key:T.filepath,item:T,index:l.index+1},null,8,["item","index"]))),128))]):q("",!0)])}}}),Je={p4:"",flex:"~ col gap-4"},Ke={key:1,ml2:"",flex:""},Qe=["value"],Ze={flex:"","gap-4":""},Xe=d("div",{"flex-auto":""},null,-1),Ye=K({__name:"ServerRouteInputs",props:{modelValue:{},keys:{default:()=>[]},default:{default:()=>({})},exclude:{default:()=>[]}},setup(I,{emit:N}){const l=I,f=we(l,"modelValue",N,{passive:!0}),s=g(()=>[...[...l.keys,"key","value","type"].filter(R=>!l.exclude.includes(R))]),E=g(()=>{const b={};for(const R of s.value)b[R]=l.default[R]||"";return b}),j=["string","number","boolean","file","date","time","datetime-local"];function T(b,R){const p=R.target;if(p.files&&p.files[0]){const v=p.files[0],k=new FileReader;k.readAsDataURL(v),k.onload=()=>{f[b].value=k.result}}}return(b,R)=>{const p=ue,v=Ae,k=fe,C=ee,_=ie;return t(),u("div",Je,[(t(!0),u(w,null,D(e(f),(i,$)=>(t(),u("div",{key:$,flex:"~ gap-2","justify-around":""},[J(b.$slots,"input",{item:i}),(t(!0),u(w,null,D(e(s),y=>(t(),u(w,{key:y},[i?.type!==null&&y==="key"?(t(),c(p,{key:0,modelValue:i[y],"onUpdate:modelValue":r=>i[y]=r,placeholder:y,"flex-1":"","font-mono":"",n:"sm"},null,8,["modelValue","onUpdate:modelValue","placeholder"])):y!=="type"?(t(),u(w,{key:1},[i.type==="file"?(t(),c(p,{key:0,type:"file",onChange:r=>T($,r)},null,8,["onChange"])):i.type==="boolean"?(t(),u("div",Ke,[x(v,{modelValue:i.value,"onUpdate:modelValue":r=>i.value=r,placeholder:"Value",n:"green lg"},null,8,["modelValue","onUpdate:modelValue"])])):(t(),c(p,{key:2,modelValue:i.value,"onUpdate:modelValue":r=>i.value=r,type:i.type,placeholder:"Value","flex-1":"","font-mono":"",n:"sm"},null,8,["modelValue","onUpdate:modelValue","type"]))],64)):y==="type"?(t(),c(k,{key:2,modelValue:i.type,"onUpdate:modelValue":r=>i.type=r,n:"sm green"},{default:h(()=>[(t(),u(w,null,D(j,r=>d("option",{key:r,value:r},U(r),9,Qe)),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])):q("",!0)],64))),128)),J(b.$slots,"input-actions",{},()=>[x(_,{n:"red",onClick:y=>e(f).splice($,1)},{default:h(()=>[x(C,{icon:"carbon:delete"})]),_:2},1032,["onClick"])])]))),128)),d("div",Ze,[J(b.$slots,"actions",{params:e(f)},()=>[x(_,{icon:"carbon-add",n:"sm primary",my1:"","px-3":"",onClick:R[0]||(R[0]=i=>e(f).push({...e(E)}))},{default:h(()=>[P(" Add ")]),_:1}),Xe,e(f).length?(t(),c(_,{key:0,icon:"carbon-trash-can",n:"sm red",my1:"","px-3":"",onClick:R[1]||(R[1]=i=>f.value=[])},{default:h(()=>[P(" Remove All ")]),_:1})):q("",!0)])])])}}}),et={"h-full":"","w-full":"",flex:"~ col"},tt={flex:"~ col gap-2","flex-none":"",p4:"","navbar-glass":""},ot={flex:"~ gap2"},nt={flex:"~ gap2","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},st=d("div",{"flex-auto":""},null,-1),at={key:0,border:"b base","items-center":"",px4:"",py2:"",grid:"~ cols-[max-content_1fr] gap-2"},lt={"text-right":"","font-mono":""},rt={key:1,relative:""},ut={key:2,relative:"","n-code-block":"",border:"b base"},it={flex:"~ wrap","w-full":""},dt=["onClick"],ct=d("div",{border:"b base","flex-auto":""},null,-1),pt={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},mt=d("div",null,"Response",-1),ft={key:1,"text-xs":"",op50:""},ht=d("div",{"flex-auto":""},null,-1),vt=d("div",{op50:""}," Request finished in ",-1),_t={key:0,"flex-auto":"","overflow-auto":""},yt={border:"~ base","h-full":"","w-full":"",rounded:""},gt=["data"],bt={key:2,"flex-auto":"","overflow-auto":"",p4:""},kt={border:"~ base",rounded:""},Ct=["src"],$t={key:1,controls:"",rounded:""},xt=["src"],Rt=K({__name:"ServerRouteDetails",props:{route:{}},setup(I){const N=I,l=de(),f=je(),s=le({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),E=g(()=>s.contentType.includes("application/json")?"json":s.contentType.includes("text/html")?"html":s.contentType.includes("text/css")?"css":s.contentType.includes("text/javascript")?"javascript":s.contentType.includes("image")||s.contentType.includes("video")?"media":s.contentType.includes("text/xml")||s.contentType.includes("application/xml")?"xml":s.contentType.includes("application/pdf")?"pdf":"text"),j=g(()=>{if(E.value==="json")return JSON.stringify(s.data,null,2);if(E.value==="media"||E.value==="pdf"){const o=new Blob([s.data],{type:s.contentType});return URL.createObjectURL(o)}return s.data}),T=O(!1),b=O(!1),R=qe(),p=g(()=>N.route.route?.split(/((?:\*\*)?:[\w_]+)/g)),v=g(()=>p.value?.filter(o=>o.startsWith(":")||o.startsWith("**:"))||[]),k=O(N.route.method||"GET"),C=O({}),_=le({query:[{key:"",value:"",type:"string"}],body:[{key:"",value:"",type:"string"}],headers:[{key:"Content-Type",value:"application/json",type:"string"}]}),i=O({}),$=["GET","POST","PUT","PATCH","DELETE","HEAD"],y=["PATCH","POST","PUT","DELETE"],r=g(()=>y.includes(k.value.toUpperCase())),V=O(l.query.tab?l.query.tab:v.value.length?"params":"query"),te=["input","json"],A=O(te[0]),M=g({get:()=>_[V.value],set:o=>{_[V.value]=o}}),oe=g(()=>({...Z(_.query)})),ye=g(()=>({...Z(_.headers)})),Q=g(()=>r.value?A.value==="json"?i.value:{...Z(_.body)}:void 0),ge=g(()=>{let o=f.value?.devServer.url||"http://localhost";o.charAt(o.length-1)==="/"&&(o=o.slice(0,-1));const n=f.value?.devServer.port||3e3;return o.includes(`:${n}`)?o:`${o}:${n}`}),z=g(()=>{let o=new URLSearchParams(oe.value).toString();o&&(o=`?${o}`);const n=(p.value?.map(S=>(S.startsWith(":")||S.startsWith("**:"))&&C.value[S]||S).join("")||"")+o;let m=f.value?.app.baseURL||"";return(m==="./"||m===".")&&(m=""),m.endsWith("/")&&(m=m.slice(0,-1)),m+n}),be=g(()=>ge.value+z.value);function Z(o){const n=Object.fromEntries(o.filter(({key:m,value:S})=>m&&S!==void 0).map(({key:m,value:S})=>[m,S]));return Object.entries(n).length?n:void 0}async function ne(){b.value=!0,T.value=!0;const o=Date.now();try{s.data=await $fetch(be.value,{method:k.value.toUpperCase(),headers:ye.value,query:oe.value,body:Q.value,onResponse({response:n}){s.contentType=(n.headers.get("content-type")||"").toString().toLowerCase().trim(),s.statusCode=n.status},onResponseError(n){s.error=n.response._data,s.data=n.response._data}})}catch{}T.value=!1,s.fetchTime=Date.now()-o}const se=g(()=>{const o=[],n=[],m=_.headers.filter(({key:B,value:F})=>B&&F&&!(B==="Content-Type"&&F==="application/json")).map(({key:B,value:F})=>` '${B}': '${F}'`).join(`,
|
|
2
|
+
`);k.value.toUpperCase()!=="GET"&&n.push(`method: '${k.value.toUpperCase()}'`),m&&n.push(`headers: {
|
|
3
|
+
${m}
|
|
4
|
+
}`),Q.value&&n.push(`body: ${JSON.stringify(Q.value,null,2)}`);const S=n.length?`, {
|
|
5
|
+
${n.join(`,
|
|
6
|
+
`).split(`
|
|
7
|
+
`).map(B=>` ${B}`).join(`
|
|
8
|
+
`)}
|
|
9
|
+
}`:"";return o.push({name:"useFetch",lang:"javascript",docs:re.nuxt.useFetch,code:`const { data, pending, error, refresh } = useFetch('${z.value}'${S})`}),o.push({name:"$fetch",lang:"javascript",docs:re.nuxt.$fetch,code:`await $fetch('${z.value}'${S})`}),o}),ke=g(()=>{const o=[];return v.value.length&&o.push({name:"Params",slug:"params",icon:"carbon-text-selection",length:v.value.length}),o.push({name:"Query",slug:"query",icon:"carbon-help",length:_.query.length}),r.value&&o.push({name:"Body",slug:"body",icon:"carbon-document",length:_.body.length}),o.push({name:"Headers",slug:"headers",icon:"carbon-html-reference",length:_.headers.length}),o.push({name:"Snippets",slug:"snippet",icon:"carbon-code"}),o});Ne(()=>{A.value==="json"&&typeof i.value=="string"&&(i.value=JSON.parse(i.value))});const G=[];return ce(M,o=>{o&&o.forEach((n,m)=>{G.length?G[m]!==n.type&&n.type!==void 0&&(G[m]=n.type,n.type!=="string"?n.type==="boolean"&&typeof n.value!="boolean"?n.value=!0:n.type==="number"&&typeof n.value!="number"?n.value=0:n.value="":n.type==="string"&&(n.value=n.value.toString())):G[m]=n.type??"string"})},{immediate:!0,deep:!0}),(o,n)=>{const m=ie,S=fe,B=ue,F=ee,Ce=Fe,ae=Ye,$e=he,xe=Pe,X=me,Re=We;return t(),u("div",et,[d("div",tt,[d("div",ot,[o.route.method?(t(),c(m,{key:0,class:L(("getRequestMethodClass"in o?o.getRequestMethodClass:e(H))(e(k))),"pointer-events-none":"",tabindex:"-1"},{default:h(()=>[P(U(e(k).toUpperCase()),1)]),_:1},8,["class"])):(t(),c(S,{key:1,modelValue:e(k),"onUpdate:modelValue":n[0]||(n[0]=a=>W(k)?k.value=a:null),class:L(("getRequestMethodClass"in o?o.getRequestMethodClass:e(H))(e(k)))},{default:h(()=>[(t(),u(w,null,D($,a=>d("option",{key:a,class:L(("getRequestMethodClass"in o?o.getRequestMethodClass:e(H))(a))},U(a.toUpperCase()),3)),64))]),_:1},8,["modelValue","class"])),x(B,{"model-value":e(z),disabled:"","flex-auto":"","font-mono":"",p:"x5 y2",n:"primary xs"},null,8,["model-value"]),x(m,{n:"primary solid",onClick:ne},{default:h(()=>[x(F,{icon:"carbon:send"})]),_:1})])]),d("div",nt,[(t(!0),u(w,null,D(e(ke),a=>(t(),c(m,{key:a.slug,class:L(e(V)===a.slug?"text-primary n-primary":"border-transparent shadow-none"),onClick:Y=>V.value=a.slug},{default:h(()=>[x(F,{icon:a.icon},null,8,["icon"]),P(" "+U(a.name)+" "+U(a?.length?`(${a.length})`:""),1)]),_:2},1032,["class","onClick"]))),128)),st,x(m,{icon:"carbon-launch",onClick:n[1]||(n[1]=a=>e(R)(o.route.filepath))},{default:h(()=>[P(" Open in Editor ")]),_:1})]),e(V)==="params"?(t(),u("div",at,[(t(!0),u(w,null,D(e(v),a=>(t(),u(w,{key:a},[d("div",lt,U(a),1),x(B,{modelValue:e(C)[a],"onUpdate:modelValue":Y=>e(C)[a]=Y,placeholder:a,"flex-1":""},null,8,["modelValue","onUpdate:modelValue","placeholder"])],64))),128))])):q("",!0),e(V)==="snippet"?(t(),u("div",rt,[e(se).length?(t(),c(Ce,{key:0,border:"b base","code-snippets":e(se)},null,8,["code-snippets"])):q("",!0)])):e(M)?(t(),u("div",ut,[e(V)==="body"?(t(),u(w,{key:0},[d("div",it,[(t(),u(w,null,D(te,a=>d("button",{key:a,px4:"",py2:"",border:"r base",hover:"bg-active",class:L({"border-b":a!==e(A)}),onClick:Y=>A.value=a},[d("div",{class:L({op30:a!==e(A)}),"font-mono":""},U(a),3)],10,dt)),64)),ct]),e(A)==="input"?(t(),c(ae,{key:0,modelValue:e(M),"onUpdate:modelValue":n[2]||(n[2]=a=>W(M)?M.value=a:null),default:{type:"string"}},null,8,["modelValue"])):e(A)==="json"?(t(),c(e(ze),Ee({key:1,modelValue:e(i),"onUpdate:modelValue":n[3]||(n[3]=a=>W(i)?i.value=a:null),class:[[o.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue of-auto text-sm outline-none"]},o.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):q("",!0)],64)):(t(),c(ae,{key:1,modelValue:e(M),"onUpdate:modelValue":n[4]||(n[4]=a=>W(M)?M.value=a:null),default:{type:"string"}},null,8,["modelValue"]))])):q("",!0),e(b)?e(T)?(t(),c(xe,{key:4,"z-10":"","flex-auto":"","backdrop-blur":""},{default:h(()=>[P(" Fetching... ")]),_:1})):(t(),u(w,{key:5},[d("div",pt,[mt,e(s).error?(t(),c(X,{key:0,"bg-red-400:10":"","text-red-400":""},{default:h(()=>[P(" Error ")]),_:1})):q("",!0),x(X,{class:L({"bg-orange-400:10 text-orange-400":e(s).error,"bg-green-400:10 text-green-400":!e(s).error})},{default:h(()=>[P(U(e(s).statusCode),1)]),_:1},8,["class"]),e(s).contentType?(t(),u("code",ft,U(e(s).contentType),1)):q("",!0),ht,vt,x(X,{"bg-green-400:10":"","text-green-400":""},{default:h(()=>[P(U(e(s).fetchTime)+" ms ",1)]),_:1})]),e(E)==="pdf"?(t(),u("div",_t,[d("div",yt,[d("object",{data:e(j),type:"application/pdf","flex-auto":"",width:"100%",height:"100%",rounded:""},null,8,gt)])])):e(E)!=="media"?(t(),c(Re,{key:1,"flex-auto":"","overflow-auto":"","py-2":"",code:e(j),lang:e(E)},null,8,["code","lang"])):(t(),u("div",bt,[d("div",kt,[e(s).contentType.includes("image")?(t(),u("img",{key:0,rounded:"",src:e(j)},null,8,Ct)):(t(),u("video",$t,[d("source",{src:e(j),type:"video/mp4"},null,8,xt)]))])]))],64)):(t(),c($e,{key:3},{default:h(()=>[x(m,{n:"primary",onClick:ne},{default:h(()=>[x(F,{icon:"carbon:send"}),P(" Send request ")]),_:1})]),_:1}))])}}}),_e=O(await pe.getOptions("serverRoutes")),Vt=Le(_e),Tt={serverRoutes:Vt};function St(I){return Tt[I]}ce(_e,async I=>{pe.updateOptions("serverRoutes",I)},{deep:!0,flush:"post"});const Ut={flex:"~ gap1","text-sm":""},wt={key:0,op50:""},jt={op50:""},qt=d("span",{op75:""},"Select a route to start",-1),zt=K({__name:"server-routes",setup(I){const N=de(),l=Oe(),f=Ie(),s=g(()=>{const p=[],v=(C,_)=>{C.routes=C.routes||[],C.routes.push(_)};return f.value?.forEach(C=>{const _=C.filepath.split("/"),i=_.slice(0,-1).slice(_.indexOf("server")+1);let $=null;if(i.forEach(y=>{const r=$?$.routes?.find(V=>V.route===y):p.find(V=>V.route===y);if(r)$=r;else{const V={route:y,filepath:y.replace(/\W/g,"-").toLowerCase(),type:"collection",routes:[]};$?v($,V):p.push(V),$=V}}),C.type==="runtime"){const y=p.find(r=>r.route==="runtime");if(y)v(y,C);else{const r={route:"runtime",filepath:"runtime",type:"collection",routes:[C]};p.push(r)}}else $?v($,C):p.push(C)}),p.length===1?p[0].routes??[]:p}),E=g(()=>new Be(f.value||[],{keys:["method","route"],shouldSort:!0})),{selectedRoute:j}=St("serverRoutes"),T=g(()=>{const p=f.value?.find(v=>v.route===N.query?.path&&v.method===N.query?.method);return p&&(j.value=p),j.value&&l.push({query:{path:j.value.route,method:j.value.method}}),p}),b=O(""),R=g(()=>f.value?b.value?E.value.search(b.value).map(v=>v.item):f.value:[]);return(p,v)=>{const k=Ve,C=ve,_=Rt,i=Me,$=he,y=Ge;return t(),c(y,{"storage-key":"tab-server-routes"},{left:h(()=>[x(k,{search:e(b),"onUpdate:search":v[0]||(v[0]=r=>W(b)?b.value=r:null),pb2:""},{default:h(()=>[d("div",Ut,[e(b)?(t(),u("span",wt,U(e(R).length)+" matched · ",1)):q("",!0),d("span",jt,U(e(f)?.length)+" routes in total",1)])]),_:1},8,["search"]),(t(!0),u(w,null,D(e(s),r=>(t(),c(C,{key:r.filepath,item:r},null,8,["item"]))),128))]),right:h(()=>[(t(),c(De,{max:10},[e(T)?(t(),c(_,{key:e(T).filepath,route:e(T)},null,8,["route"])):q("",!0)],1024)),e(T)?q("",!0):(t(),c($,{key:0},{default:h(()=>[x(i,{px6:"",py2:""},{default:h(()=>[qt]),_:1})]),_:1}))]),_:1})}}});export{zt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as L}from"./NIconTitle.vue.0db956c8.js";import{_ as A}from"./NSwitch.vue.4e114eb7.js";import{g as H,bi as P,ao as q,c as u,b as i,a as e,F as v,m as T,q as a,w as r,I as V,a7 as E,bj as M,o as d,n as $,t as h,h as R,s as U,d as Z,aZ as G,j as J}from"./entry.559460ac.js";import{_ as K}from"./NIconButton.vue.9dc5b644.js";import{_ as Q}from"./NSelect.vue.38f0d91b.js";import{_ as W}from"./NCheckbox.vue.660c8c34.js";const X={px6:"",py6:""},Y={grid:"~ md:cols-2 gap-x-10 gap-y-3","max-w-300":""},ee={flex:"~ col gap-1",py3:""},oe=e("h3",{mb1:"","text-lg":""}," Tabs ",-1),ne={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},le={capitalize:"",op75:""},te={flex:"~ col gap-1",border:"~ base rounded",py3:"",pl4:"",pr2:""},se=e("div",{"flex-auto":""},null,-1),ae={py3:"",flex:"~ col gap-1",border:"b base"},ie=e("h3",{mb1:"","text-lg":""}," Appearance ",-1),ce=e("div",{"carbon-sun":"","dark:carbon-moon":"","translate-y--1px":""},null,-1),de={py3:"",flex:"~ col gap-1",border:"b base"},ue=e("h3",{mb1:"","text-lg":""}," UI Scale ",-1),re=["value"],pe={py3:"",flex:"~ col gap-1"},_e=e("h3",{mb1:"","text-lg":""}," Features ",-1),me=e("span",null,"Close DevTools when clicking outside",-1),fe=e("span",null,"Show help buttons",-1),Ce=H({__name:"settings",setup(ve){const{interactionCloseOnOutsideClick:b,showHelpButtons:y,scale:k,hiddenTabs:_,pinnedTabs:t,hiddenTabCategories:m}=E(),B=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],I=P(q());function O(s,l){l?_.value=_.value.filter(c=>c!==s):_.value.push(s)}function S(s,l){l?m.value=m.value.filter(c=>c!==s):m.value.push(s)}function D(s){t.value.includes(s)?t.value=t.value.filter(l=>l!==s):t.value.push(s)}function w(s,l){const c=t.value.indexOf(s);if(c===-1)return;const p=c+l;if(p<0||p>=t.value.length)return;const f=[...t.value];f.splice(c,1),f.splice(p,0,s),t.value=f}return(s,l)=>{const c=L,p=A,f=G,C=K,j=J,z=M,F=Q,N=W;return d(),u("div",X,[i(c,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),e("div",Y,[e("div",ee,[oe,(d(!0),u(v,null,T(a(I),([o,g])=>(d(),u(v,{key:o},[g.length?(d(),u("div",{key:0,flex:"~ col gap-1","mx--1":"",class:$(a(m).includes(o)?"op50 grayscale":""),"pt-2":""},[i(p,{flex:"~ row-reverse",px2:"",py1:"","n-lime":"","model-value":!a(m).includes(o),"onUpdate:modelValue":n=>S(o,n)},{default:r(()=>[e("div",ne,[e("span",le,h(o),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),e("div",te,[(d(!0),u(v,null,T(g,n=>(d(),R(p,{key:n.name,flex:"~ row-reverse",py1:"",pl2:"",pr1:"","n-primary":"","model-value":!a(_).includes(n.name),"onUpdate:modelValue":x=>O(n.name,x)},{default:r(()=>[e("div",{flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"","pr-4":"",class:$(a(_).includes(n.name)?"op25":"")},[i(f,{"text-xl":"",icon:n.icon,title:n.title},null,8,["icon","title"]),e("span",null,h(n.title),1),se,a(t).includes(n.name)?(d(),u(v,{key:0},[i(C,{icon:"i-carbon-caret-up",disabled:a(t).indexOf(n.name)===0,onClick:x=>w(n.name,-1)},null,8,["disabled","onClick"]),i(C,{icon:"i-carbon-caret-down",disabled:a(t).indexOf(n.name)===a(t).length-1,onClick:x=>w(n.name,1)},null,8,["disabled","onClick"])],64)):U("",!0),i(C,{icon:a(t).includes(n.name)?" i-carbon-pin-filled rotate--45":" i-carbon-pin op50",onClick:x=>D(n.name)},null,8,["icon","onClick"])],2)]),_:2},1032,["model-value","onUpdate:modelValue"]))),128))])],2)):U("",!0)],64))),128))]),e("div",null,[e("div",ae,[ie,e("div",null,[i(z,null,{default:r(({toggle:o,isDark:g})=>[i(j,{n:"primary",onClick:o},{default:r(()=>[ce,Z(" "+h(g.value?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1})])]),e("div",de,[ue,i(F,{modelValue:a(k),"onUpdate:modelValue":l[0]||(l[0]=o=>V(k)?k.value=o:null),n:"primary"},{default:r(()=>[(d(),u(v,null,T(B,o=>e("option",{key:o[0],value:o[1]},h(o[0]),9,re)),64))]),_:1},8,["modelValue"])]),e("div",pe,[_e,i(N,{modelValue:a(b),"onUpdate:modelValue":l[1]||(l[1]=o=>V(b)?b.value=o:null),"n-primary":""},{default:r(()=>[me]),_:1},8,["modelValue"]),i(N,{modelValue:a(y),"onUpdate:modelValue":l[2]||(l[2]=o=>V(y)?y.value=o:null),"n-primary":""},{default:r(()=>[fe]),_:1},8,["modelValue"])])])])])}}});export{Ce as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ac as c,aS as n,l as s,z as o}from"./entry.
|
|
1
|
+
import{ac as c,aS as n,l as s,z as o}from"./entry.559460ac.js";function u(){const p=c(),t=n("getComponents",()=>o.getComponents()),l=s(()=>Object.entries(p.value?.nuxt?.vueApp._context.components||{}).map(([e])=>({pascalName:e,global:!0})).filter(e=>!/^Lazy[A-Z]/.test(e.pascalName)).filter(e=>!(t.value||[]).find(a=>a.pascalName===e.pascalName)));return s(()=>[...l.value,...t.value||[]].sort((e,a)=>e.pascalName.localeCompare(a.pascalName)))}function r(){return n("getComponentsRelationships",()=>o.getComponentsRelationships())}export{u as a,r as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as I}from"./Badge.
|
|
1
|
+
import{_ as I}from"./Badge.e05fc69f.js";import{_ as F}from"./NCodeBlock.vue.12f6d4d2.js";import{_ as E}from"./NCheckbox.vue.660c8c34.js";import{_ as L}from"./NTip.vue.d602d31e.js";import{g as W,D as q,aT as A,r as P,aU as G,B as K,o as m,c as h,a1 as z,q as t,t as $,s as w,F as B,b as s,h as H,w as u,a as y,I as U,d as p,j as J,K as O,aV as Q,V as X,l as Y,aa as Z,ab as ee,aW as te,aS as ae}from"./entry.559460ac.js";const se={key:0},oe={p4:"",flex:"~ col gap-1"},ne={class:"text-lg font-medium leading-6"},le=y("p",{op50:""}," The following command will be executed in your terminal: ",-1),re={flex:"~ gap-3",mt2:"","justify-end":""},fe=W({__name:"NpmVersionCheck",props:{packageName:{},options:{},showVersion:{type:Boolean,default:!0}},setup(l){const a=l,e=q(),{info:o,update:i,state:v,processId:k,restart:c}=A(a.packageName,a.options),f=P(!0),_=P(!0),M=G(),x=K();async function C(){const r=await i(async n=>x.start(n));r&&_.value&&M.value.push({id:r,message:`${a.packageName} has been updated. Do you want to restart the Nuxt server now?`}),r&&f.value&&e.push(`/modules/terminals?id=${encodeURIComponent(r)}`)}return(r,n)=>{const N=I,R=F,b=E,S=L,V=J,T=O;return m(),h(B,null,[z(r.$slots,"default",{id:t(k),info:t(o),update:C,state:t(v),restart:t(c)},()=>[t(o)&&r.showVersion?(m(),h("code",se,$(`v${t(o).current}`),1)):w("",!0),t(o)?.latest?(m(),h(B,{key:1},[t(o).needsUpdate?(m(),h("button",{key:0,onClick:n[0]||(n[0]=g=>C())},[s(N,{"bg-green-400:10":"","text-green-400":"",title:"updates available",textContent:"updates available"})])):(m(),H(N,{key:1,"bg-gray-400:10":"","text-gray-400":"",title:"latest",textContent:"latest"}))],64)):w("",!0)]),s(t(x),null,{default:u(({resolve:g,args:j})=>[s(T,{"model-value":!0,onClose:d=>g(!1)},{default:u(()=>[y("div",oe,[y("h3",ne," Update "+$(a.packageName)+"? ",1),le,s(R,{code:j[0],lang:"bash",my3:"",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),s(b,{modelValue:t(f),"onUpdate:modelValue":n[1]||(n[1]=d=>U(f)?f.value=d:null),n:"primary"},{default:u(()=>[p(" Navigate to terminal ")]),_:1},8,["modelValue"]),s(b,{modelValue:t(_),"onUpdate:modelValue":n[2]||(n[2]=d=>U(_)?_.value=d:null),n:"primary"},{default:u(()=>[p(" Restart Nuxt server after update ")]),_:1},8,["modelValue"]),y("div",re,[s(S,{n:"sm purple","flex-auto":"",icon:"carbon-chemistry"},{default:u(()=>[p(" Experimental feature. Please make sure to backup your project first. ")]),_:1}),s(V,{onClick:d=>g(!1)},{default:u(()=>[p(" Cancel ")]),_:2},1032,["onClick"]),s(V,{n:"solid primary",onClick:d=>g(!0)},{default:u(()=>[p(" Update ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1})],64)}}}),D=["pages","meta","components","imports","nuxt-config-schema","@nuxt/devtools","@nuxt/telemetry"];function ue(){return ae("getModulesList",async()=>(await $fetch("https://cdn.jsdelivr.net/npm/@nuxt/modules@latest/modules.json")).filter(a=>!D.includes(a.npm)&&a.compatibility.nuxt.includes("^3")))}function _e(){return Q("installed-modules",()=>{const l=X(),a=ue();return Y(()=>(l.value?._installedModules||[]).map(e=>{if(!e.entryPath)return;const o=e.entryPath&&Z(e.entryPath),i=e.meta?.name?e.meta?.name:e.entryPath?o?ee(e.entryPath):l.value?.rootDir?te(e.entryPath,l.value?.rootDir).path:void 0:void 0,v=l.value?.modules?.includes(i),k=a.value?.find(c=>c.npm===i)||a.value?.find(c=>c.name===i);return{name:i,isPackageModule:o,isUninstallable:v,info:k,...e}}).filter(e=>e&&(!e.name||!D.includes(e.name))))})}export{fe as _,ue as a,_e as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as se}from"./NIconButton.vue.
|
|
1
|
+
import{_ as se}from"./NIconButton.vue.9dc5b644.js";import{_ as re}from"./NSelect.vue.38f0d91b.js";import{g as J,D as le,r as j,l as q,E,b6 as T,am as ue,a6 as ie,al as ce,L as de,z as p,A as h,q as n,o as r,h as _,w as l,a as u,b as c,I as D,c as d,F as w,m as U,t as k,n as z,d as i,aN as L,s as F,ah as me,x as _e,aX as pe,b7 as fe,b8 as ye,b9 as G,J as ve,e as ge,P as he,j as ke,a8 as be}from"./entry.559460ac.js";import{_ as xe}from"./NLink.vue.f3f95732.js";import{_ as we}from"./NPanelGrids.cfd60e85.js";import{_ as Ke}from"./PanelLeftRight.vue.d1539d19.js";import{_ as Ce}from"./FilepathItem.vue.7520a5eb.js";import{U as Ne}from"./json-editor-vue.9acffc14.js";import{_ as Ve}from"./AuthRequiredPanel.vue.fc7f2968.js";const $e={class:"h-[48px] flex items-center justify-between gap1 px-3"},Se={class:"w-full text-sm"},Ie=["value"],je=u("div",{"x-divider":""},null,-1),qe={key:0,"h-full":"","of-hidden":"",flex:"~ col"},De={border:"b base",class:"h-[49px] flex flex-none items-center justify-between px-4 text-sm"},Ue={class:"flex items-center gap-4"},Le={key:1},Ae=["onKeyup"],Be=u("br",null,null,-1),Me={key:0,op50:""},Pe={key:1},Re=u("code",null,"nitro.storage",-1),Ee=u("br",null,null,-1),Te={"font-bold":""},ze=u("br",null,null,-1),Fe={"text-sm":""},Ge=u("br",null,null,-1),Je=J({__name:"StorageDetails",async setup(O){let m,g;const K=ye(),y=le(),b=j(""),v=j(""),s=q({get(){return E().query?.storage},set(t){y.replace({query:{storage:t}})}}),e=j(),x=q(()=>E().query?.key),{data:C}=([m,g]=T(()=>G("storageMounts",()=>p.getStorageMounts())),m=await m,g(),m),{data:N,refresh:A}=([m,g]=T(async()=>G("storageKeys",async()=>s.value?await p.getStorageKeys(s.value):[])),m=await m,g(),m),W=K.hook("storage:key:update",async(t,o)=>{if(!(!s.value||t.split(":")[0]!==s.value)&&(await A(),x.value===t)){if(o==="remove")return y.replace({query:{storage:s.value}});await $(x.value)}});ue(W),ie(s,A),ce(async()=>{if(!x.value){e.value=null;return}$(x.value)}),de("keydown",t=>{t.key==="s"&&(t.ctrlKey||t.metaKey)&&(S(),t.preventDefault())});function V(t){return t.replace(`${s.value}:`,"")}const X=q(()=>N.value?N.value.filter(t=>t.includes(b.value)):[]);async function $(t){const o=await p.getStorageItem(await h(),t);e.value={key:t,updatedKey:V(t),editingKey:!1,content:o,updatedContent:o}}async function H(){if(!v.value||!s.value)return;const t=`${s.value}:${v.value}`;N.value?.includes(t)||await p.setStorageItem(await h(),t,""),y.replace({query:{storage:s.value,key:t}}),v.value=""}async function S(){e.value&&(await p.setStorageItem(await h(),e.value.key,e.value.updatedContent),await $(e.value.key))}async function Q(){!e.value||!s.value||(await p.removeStorageItem(await h(),e.value.key),e.value=null)}async function Y(){if(!e.value||!s.value)return;const t=`${s.value}:${e.value.updatedKey}`,o=await h();await p.setStorageItem(o,t,e.value.updatedContent),await p.removeStorageItem(o,e.value.key),y.replace({query:{storage:s.value,key:t}})}return(t,o)=>{const Z=se,ee=re,I=ve,te=ge,ne=he,B=ke,M=xe,P=be,R=we,oe=Ke,ae=Ce;return n(s)?(r(),_(oe,{key:0,"storage-key":"tab-storage"},{left:l(()=>[u("div",$e,[c(Z,{icon:"carbon-chevron-left","ml--1":"",onClick:o[0]||(o[0]=a=>s.value="")}),u("div",Se,[c(ee,{modelValue:n(s),"onUpdate:modelValue":o[1]||(o[1]=a=>D(s)?s.value=a:null),n:"primary",icon:"carbon-data-base"},{default:l(()=>[(r(!0),d(w,null,U(n(C),(a,f)=>(r(),d("option",{key:f,value:f},k(f),9,Ie))),128))]),_:1},8,["modelValue"])])]),c(I,{modelValue:n(b),"onUpdate:modelValue":o[2]||(o[2]=a=>D(b)?b.value=a:null),icon:"carbon-search",placeholder:"Search...",n:"primary sm",border:"y x-none base! rounded-0",class:"w-full py2 ring-0!"},null,8,["modelValue"]),(r(!0),d(w,null,U(n(X),a=>(r(),d(w,{key:a},[c(te,{block:"",truncate:"",px2:"",py1:"","text-sm":"","font-mono":"",to:{query:{key:a,storage:n(s)}},class:z(a===n(e)?.key?"text-primary n-bg-active":"text-secondary hover:n-bg-hover")},{default:l(()=>[i(k(V(a)),1)]),_:2},1032,["to","class"]),je],64))),128)),c(I,{modelValue:n(v),"onUpdate:modelValue":o[3]||(o[3]=a=>D(v)?v.value=a:null),icon:"carbon-add",placeholder:"key",n:"sm",border:"t-none x-none base! rounded-0",class:"w-full py2 font-mono ring-0!",onKeyup:L(H,["enter"])},null,8,["modelValue","onKeyup"])]),right:l(()=>[n(e)?.key?(r(),d("div",qe,[u("div",De,[u("div",Ue,[n(e).editingKey?(r(),_(I,{key:0,modelValue:n(e).updatedKey,"onUpdate:modelValue":o[4]||(o[4]=a=>n(e).updatedKey=a),onKeyup:L(Y,["enter"])},null,8,["modelValue","onKeyup"])):(r(),d("code",Le,[i(k(V(n(e).key))+" ",1),c(ne,{icon:"carbon-edit",class:"cursor-pointer op50 hover:op100",onClick:o[5]||(o[5]=a=>n(e).editingKey=!0)})])),n(e).editingKey?F("",!0):(r(),_(B,{key:2,n:"green xs",disabled:n(e).content===n(e).updatedContent,class:z({"border-green":n(e).content!==n(e).updatedContent}),onClick:S},{default:l(()=>[i(" Save ")]),_:1},8,["disabled","class"]))]),u("div",null,[c(B,{n:"red xs",onClick:Q},{default:l(()=>[i(" Delete ")]),_:1})])]),typeof n(e).content=="object"?(r(),_(n(Ne),me({key:0,modelValue:n(e).updatedContent,"onUpdate:modelValue":o[6]||(o[6]=a=>n(e).updatedContent=a),class:[[t.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue h-full of-auto text-sm outline-none"]},t.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):_e((r(),d("textarea",{key:1,"onUpdate:modelValue":o[7]||(o[7]=a=>n(e).updatedContent=a),placeholder:"Item value...",class:"h-full of-auto p-4 text-sm font-mono outline-none",onKeyup:L(pe(S,["ctrl"]),["enter"])},null,40,Ae)),[[fe,n(e).updatedContent]])])):(r(),_(R,{key:1},{default:l(()=>[c(P,{px6:"",py4:""},{default:l(()=>[i(" Select one key to start."),Be,i("Learn more about "),c(M,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:l(()=>[i(" Nitro storage ")]),_:1})]),_:1})]),_:1}))]),_:1})):(r(),_(R,{key:1},{default:l(()=>[Object.keys(n(C)).length?(r(),d("p",Me," Select one storage to start: ")):(r(),d("p",Pe,[i(" No custom storage defined in "),Re,i("."),Ee,i(" Learn more about "),c(M,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:l(()=>[i(" Nitro storage ")]),_:1})])),(r(!0),d(w,null,U(n(C),(a,f)=>(r(),_(P,{key:f,"min-w-80":"","cursor-pointer":"","p-4":"","text-left":"",hover:"border-green",onClick:Oe=>s.value=f},{default:l(()=>[u("span",Te,k(f),1),ze,u("span",Fe,k(a.driver)+" driver",1),Ge,a.base?(r(),_(ae,{key:0,"text-xs":"",filepath:a.base},null,8,["filepath"])):F("",!0)]),_:2},1032,["onClick"]))),128))]),_:1}))}}}),ot=J({__name:"storage",setup(O){return(m,g)=>{const K=Je,y=Ve;return r(),_(y,null,{default:l(()=>[c(K)]),_:1})}}});export{ot as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ae,r as he,a5 as Se,L as Ce,z as se,A as be,o as Q,c as re,a as ie,b as de,q as J,h as te,s as oe,t as ne,F as _e,
|
|
1
|
+
import{g as ae,r as he,a5 as Se,L as Ce,z as se,A as be,o as Q,c as re,a as ie,b as de,q as J,h as te,s as oe,t as ne,F as _e,b8 as ye,bc as we,E as Ee,D as Le,l as ke,al as Re,m as De,w as ue,n as ce,aX as Ae,d as le,P as xe,e as Be}from"./entry.559460ac.js";import{_ as fe}from"./NIconButton.vue.9dc5b644.js";import{_ as Te}from"./AuthRequiredPanel.vue.fc7f2968.js";import"./NPanelGrids.cfd60e85.js";var ve={exports:{}};(function(ee,Z){(function(Y,G){ee.exports=G()})(self,()=>(()=>{var Y={4567:function(B,s,a){var h=this&&this.__decorate||function(t,n,c,v){var g,o=arguments.length,m=o<3?n:v===null?v=Object.getOwnPropertyDescriptor(n,c):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(t,n,c,v);else for(var C=t.length-1;C>=0;C--)(g=t[C])&&(m=(o<3?g(m):o>3?g(n,c,m):g(n,c))||m);return o>3&&m&&Object.defineProperty(n,c,m),m},f=this&&this.__param||function(t,n){return function(c,v){n(c,v,t)}};Object.defineProperty(s,"__esModule",{value:!0}),s.AccessibilityManager=void 0;const d=a(9042),_=a(6114),p=a(9924),u=a(844),l=a(5596),e=a(4725),r=a(3656);let i=class extends u.Disposable{constructor(t,n){super(),this._terminal=t,this._renderService=n,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let c=0;c<this._terminal.rows;c++)this._rowElements[c]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[c]);if(this._topBoundaryFocusListener=c=>this._handleBoundaryFocus(c,0),this._bottomBoundaryFocusListener=c=>this._handleBoundaryFocus(c,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new p.TimeBasedDebouncer(this._announceCharacters.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._liveRegionDebouncer),this.register(this._terminal.onResize(c=>this._handleResize(c.rows))),this.register(this._terminal.onRender(c=>this._refreshRows(c.start,c.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(c=>this._handleChar(c))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
|
|
2
2
|
`))),this.register(this._terminal.onA11yTab(c=>this._handleTab(c))),this.register(this._terminal.onKey(c=>this._handleKey(c.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new l.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,r.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,u.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(t){for(let n=0;n<t;n++)this._handleChar(" ")}_handleChar(t){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==t&&(this._charsToAnnounce+=t):this._charsToAnnounce+=t,t===`
|
|
3
3
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=d.tooMuchOutput)),_.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,_.isMac&&this._liveRegion.remove()}_handleKey(t){this._clearLiveRegion(),/\p{Control}/u.test(t)||this._charsToConsume.push(t)}_refreshRows(t,n){this._liveRegionDebouncer.refresh(t,n,this._terminal.rows)}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(t,n){const c=t.target,v=this._rowElements[n===0?1:this._rowElements.length-2];if(c.getAttribute("aria-posinset")===(n===0?"1":`${this._terminal.buffer.lines.length}`)||t.relatedTarget!==v)return;let g,o;if(n===0?(g=c,o=this._rowElements.pop(),this._rowContainer.removeChild(o)):(g=this._rowElements.shift(),o=c,this._rowContainer.removeChild(g)),g.removeEventListener("focus",this._topBoundaryFocusListener),o.removeEventListener("focus",this._bottomBoundaryFocusListener),n===0){const m=this._createAccessibilityTreeNode();this._rowElements.unshift(m),this._rowContainer.insertAdjacentElement("afterbegin",m)}else{const m=this._createAccessibilityTreeNode();this._rowElements.push(m),this._rowContainer.appendChild(m)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(n===0?-1:1),this._rowElements[n===0?1:this._rowElements.length-2].focus(),t.preventDefault(),t.stopImmediatePropagation()}_handleResize(t){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let n=this._rowContainer.children.length;n<this._terminal.rows;n++)this._rowElements[n]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[n]);for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const t=document.createElement("div");return t.setAttribute("role","listitem"),t.tabIndex=-1,this._refreshRowDimensions(t),t}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let t=0;t<this._terminal.rows;t++)this._refreshRowDimensions(this._rowElements[t])}}_refreshRowDimensions(t){t.style.height=`${this._renderService.dimensions.css.cell.height}px`}};i=h([f(1,e.IRenderService)],i),s.AccessibilityManager=i},3614:(B,s)=>{function a(_){return _.replace(/\r?\n/g,"\r")}function h(_,p){return p?"\x1B[200~"+_+"\x1B[201~":_}function f(_,p,u){_=h(_=a(_),u.decPrivateModes.bracketedPasteMode),u.triggerDataEvent(_,!0),p.value=""}function d(_,p,u){const l=u.getBoundingClientRect(),e=_.clientX-l.left-10,r=_.clientY-l.top-10;p.style.width="20px",p.style.height="20px",p.style.left=`${e}px`,p.style.top=`${r}px`,p.style.zIndex="1000",p.focus()}Object.defineProperty(s,"__esModule",{value:!0}),s.rightClickHandler=s.moveTextAreaUnderMouseCursor=s.paste=s.handlePasteEvent=s.copyHandler=s.bracketTextForPaste=s.prepareTextForTerminal=void 0,s.prepareTextForTerminal=a,s.bracketTextForPaste=h,s.copyHandler=function(_,p){_.clipboardData&&_.clipboardData.setData("text/plain",p.selectionText),_.preventDefault()},s.handlePasteEvent=function(_,p,u){_.stopPropagation(),_.clipboardData&&f(_.clipboardData.getData("text/plain"),p,u)},s.paste=f,s.moveTextAreaUnderMouseCursor=d,s.rightClickHandler=function(_,p,u,l,e){d(_,p,u),e&&l.rightClickSelect(_),p.value=l.selectionText,p.select()}},7239:(B,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ColorContrastCache=void 0;const h=a(1505);s.ColorContrastCache=class{constructor(){this._color=new h.TwoKeyMap,this._css=new h.TwoKeyMap}setCss(f,d,_){this._css.set(f,d,_)}getCss(f,d){return this._css.get(f,d)}setColor(f,d,_){this._color.set(f,d,_)}getColor(f,d){return this._color.get(f,d)}clear(){this._color.clear(),this._css.clear()}}},3656:(B,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.addDisposableDomListener=void 0,s.addDisposableDomListener=function(a,h,f,d){a.addEventListener(h,f,d);let _=!1;return{dispose:()=>{_||(_=!0,a.removeEventListener(h,f,d))}}}},6465:function(B,s,a){var h=this&&this.__decorate||function(e,r,i,t){var n,c=arguments.length,v=c<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,r,i,t);else for(var g=e.length-1;g>=0;g--)(n=e[g])&&(v=(c<3?n(v):c>3?n(r,i,v):n(r,i))||v);return c>3&&v&&Object.defineProperty(r,i,v),v},f=this&&this.__param||function(e,r){return function(i,t){r(i,t,e)}};Object.defineProperty(s,"__esModule",{value:!0}),s.Linkifier2=void 0;const d=a(2585),_=a(8460),p=a(844),u=a(3656);let l=class extends p.Disposable{constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new _.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new _.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,p.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,p.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}get currentLink(){return this._currentLink}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{const r=this._linkProviders.indexOf(e);r!==-1&&this._linkProviders.splice(r,1)}}}attachToDom(e,r,i){this._element=e,this._mouseService=r,this._renderService=i,this.register((0,u.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,u.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,u.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,u.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;const r=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!r)return;this._isMouseOut=!1;const i=e.composedPath();for(let t=0;t<i.length;t++){const n=i[t];if(n.classList.contains("xterm"))break;if(n.classList.contains("xterm-hover"))return}this._lastBufferCell&&r.x===this._lastBufferCell.x&&r.y===this._lastBufferCell.y||(this._handleHover(r),this._lastBufferCell=r)}_handleHover(e){if(this._activeLine!==e.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(e,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}_askForLink(e,r){var i,t;this._activeProviderReplies&&r||((i=this._activeProviderReplies)===null||i===void 0||i.forEach(c=>{c?.forEach(v=>{v.link.dispose&&v.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let n=!1;for(const[c,v]of this._linkProviders.entries())r?!((t=this._activeProviderReplies)===null||t===void 0)&&t.get(c)&&(n=this._checkLinkProviderResult(c,e,n)):v.provideLinks(e.y,g=>{var o,m;if(this._isMouseOut)return;const C=g?.map(w=>({link:w}));(o=this._activeProviderReplies)===null||o===void 0||o.set(c,C),n=this._checkLinkProviderResult(c,e,n),((m=this._activeProviderReplies)===null||m===void 0?void 0:m.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,r){const i=new Set;for(let t=0;t<r.size;t++){const n=r.get(t);if(n)for(let c=0;c<n.length;c++){const v=n[c],g=v.link.range.start.y<e?0:v.link.range.start.x,o=v.link.range.end.y>e?this._bufferService.cols:v.link.range.end.x;for(let m=g;m<=o;m++){if(i.has(m)){n.splice(c--,1);break}i.add(m)}}}}_checkLinkProviderResult(e,r,i){var t;if(!this._activeProviderReplies)return i;const n=this._activeProviderReplies.get(e);let c=!1;for(let v=0;v<e;v++)this._activeProviderReplies.has(v)&&!this._activeProviderReplies.get(v)||(c=!0);if(!c&&n){const v=n.find(g=>this._linkAtPosition(g.link,r));v&&(i=!0,this._handleNewLink(v))}if(this._activeProviderReplies.size===this._linkProviders.length&&!i)for(let v=0;v<this._activeProviderReplies.size;v++){const g=(t=this._activeProviderReplies.get(v))===null||t===void 0?void 0:t.find(o=>this._linkAtPosition(o.link,r));if(g){i=!0,this._handleNewLink(g);break}}return i}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;const r=this._positionFromMouseEvent(e,this._element,this._mouseService);r&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,r)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,r){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!r||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=r)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,p.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const r=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);r&&this._linkAtPosition(e.link,r)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var i,t;return(t=(i=this._currentLink)===null||i===void 0?void 0:i.state)===null||t===void 0?void 0:t.decorations.pointerCursor},set:i=>{var t,n;!((t=this._currentLink)===null||t===void 0)&&t.state&&this._currentLink.state.decorations.pointerCursor!==i&&(this._currentLink.state.decorations.pointerCursor=i,this._currentLink.state.isHovered&&((n=this._element)===null||n===void 0||n.classList.toggle("xterm-cursor-pointer",i)))}},underline:{get:()=>{var i,t;return(t=(i=this._currentLink)===null||i===void 0?void 0:i.state)===null||t===void 0?void 0:t.decorations.underline},set:i=>{var t,n,c;!((t=this._currentLink)===null||t===void 0)&&t.state&&((c=(n=this._currentLink)===null||n===void 0?void 0:n.state)===null||c===void 0?void 0:c.decorations.underline)!==i&&(this._currentLink.state.decorations.underline=i,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,i))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(i=>{if(!this._currentLink)return;const t=i.start===0?0:i.start+1+this._bufferService.buffer.ydisp,n=this._bufferService.buffer.ydisp+1+i.end;if(this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=n&&(this._clearCurrentLink(t,n),this._lastMouseEvent&&this._element)){const c=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);c&&this._askForLink(c,!1)}})))}_linkHover(e,r,i){var t;!((t=this._currentLink)===null||t===void 0)&&t.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(r,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),r.hover&&r.hover(i,r.text)}_fireUnderlineEvent(e,r){const i=e.range,t=this._bufferService.buffer.ydisp,n=this._createLinkUnderlineEvent(i.start.x-1,i.start.y-t-1,i.end.x,i.end.y-t-1,void 0);(r?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(n)}_linkLeave(e,r,i){var t;!((t=this._currentLink)===null||t===void 0)&&t.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(r,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),r.leave&&r.leave(i,r.text)}_linkAtPosition(e,r){const i=e.range.start.y*this._bufferService.cols+e.range.start.x,t=e.range.end.y*this._bufferService.cols+e.range.end.x,n=r.y*this._bufferService.cols+r.x;return i<=n&&n<=t}_positionFromMouseEvent(e,r,i){const t=i.getCoords(e,r,this._bufferService.cols,this._bufferService.rows);if(t)return{x:t[0],y:t[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,r,i,t,n){return{x1:e,y1:r,x2:i,y2:t,cols:this._bufferService.cols,fg:n}}};l=h([f(0,d.IBufferService)],l),s.Linkifier2=l},9042:(B,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.tooMuchOutput=s.promptLabel=void 0,s.promptLabel="Terminal input",s.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(B,s,a){var h=this&&this.__decorate||function(l,e,r,i){var t,n=arguments.length,c=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(l,e,r,i);else for(var v=l.length-1;v>=0;v--)(t=l[v])&&(c=(n<3?t(c):n>3?t(e,r,c):t(e,r))||c);return n>3&&c&&Object.defineProperty(e,r,c),c},f=this&&this.__param||function(l,e){return function(r,i){e(r,i,l)}};Object.defineProperty(s,"__esModule",{value:!0}),s.OscLinkProvider=void 0;const d=a(511),_=a(2585);let p=class{constructor(l,e,r){this._bufferService=l,this._optionsService=e,this._oscLinkService=r}provideLinks(l,e){var r;const i=this._bufferService.buffer.lines.get(l-1);if(!i)return void e(void 0);const t=[],n=this._optionsService.rawOptions.linkHandler,c=new d.CellData,v=i.getTrimmedLength();let g=-1,o=-1,m=!1;for(let C=0;C<v;C++)if(o!==-1||i.hasContent(C)){if(i.loadCell(C,c),c.hasExtendedAttrs()&&c.extended.urlId){if(o===-1){o=C,g=c.extended.urlId;continue}m=c.extended.urlId!==g}else o!==-1&&(m=!0);if(m||o!==-1&&C===v-1){const w=(r=this._oscLinkService.getLinkData(g))===null||r===void 0?void 0:r.uri;if(w){const y={start:{x:o+1,y:l},end:{x:C+(m||C!==v-1?0:1),y:l}};let D=!1;if(!n?.allowNonHttpProtocols)try{const T=new URL(w);["http:","https:"].includes(T.protocol)||(D=!0)}catch{D=!0}D||t.push({text:w,range:y,activate:(T,H)=>n?n.activate(T,H,y):u(0,H),hover:(T,H)=>{var O;return(O=n?.hover)===null||O===void 0?void 0:O.call(n,T,H,y)},leave:(T,H)=>{var O;return(O=n?.leave)===null||O===void 0?void 0:O.call(n,T,H,y)}})}m=!1,c.hasExtendedAttrs()&&c.extended.urlId?(o=C,g=c.extended.urlId):(o=-1,g=-1)}}e(t)}};function u(l,e){if(confirm(`Do you want to navigate to ${e}?
|
|
4
4
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as be}from"./entry.75d08b92.js";const K=Object.freeze({left:0,top:0,width:16,height:16}),H=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ue=Object.freeze({...K,...H}),ve=Object.freeze({...ue,body:"",hidden:!1}),Se=Object.freeze({width:null,height:null}),fe=Object.freeze({...Se,...H});function xe(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const i=((t.rotate||0)+(e.rotate||0))%4;return i&&(n.rotate=i),n}function Z(t,e){const n=xe(t,e);for(const i in ve)i in H?i in t&&!(i in n)&&(n[i]=H[i]):i in e?n[i]=e[i]:i in t&&(n[i]=t[i]);return n}function ke(t,e){const n=t.icons,i=t.aliases||Object.create(null),r=Object.create(null);function o(a){if(n[a])return r[a]=[];if(!(a in r)){r[a]=null;const c=i[a]&&i[a].parent,u=c&&o(c);u&&(r[a]=[c].concat(u))}return r[a]}return(e||Object.keys(n).concat(Object.keys(i))).forEach(o),r}function J(t,e,n){const i=t.icons,r=t.aliases||Object.create(null);let o={};function a(c){o=Z(i[c]||r[c],o)}return a(e),n.forEach(a),Z(t,o)}function $e(t,e){if(t.icons[e])return J(t,e,[]);const n=ke(t,[e])[e];return n?J(t,e,n):null}({...K});Object.keys(K).concat(["provider"]);const Ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ce=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Q(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 i=t.split(Ae);if(i===null||!i.length)return t;const r=[];let o=i.shift(),a=Ce.test(o);for(;;){if(a){const c=parseFloat(o);isNaN(c)?r.push(o):r.push(Math.ceil(c*e*n)/n)}else r.push(o);if(o=i.shift(),o===void 0)return r.join("");a=!a}}const X=t=>t==="unset"||t==="undefined"||t==="none";function je(t,e){const n={...ue,...t},i={...fe,...e},r={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,i].forEach(A=>{const g=[],m=A.hFlip,k=A.vFlip;let b=A.rotate;m?k?b+=2:(g.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),g.push("scale(-1 1)"),r.top=r.left=0):k&&(g.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),g.push("scale(1 -1)"),r.top=r.left=0);let p;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:p=r.height/2+r.top,g.unshift("rotate(90 "+p.toString()+" "+p.toString()+")");break;case 2:g.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:p=r.width/2+r.left,g.unshift("rotate(-90 "+p.toString()+" "+p.toString()+")");break}b%2===1&&(r.left!==r.top&&(p=r.left,r.left=r.top,r.top=p),r.width!==r.height&&(p=r.width,r.width=r.height,r.height=p)),g.length&&(o='<g transform="'+g.join(" ")+'">'+o+"</g>")});const a=i.width,c=i.height,u=r.width,f=r.height;let l,d;a===null?(d=c===null?"1em":c==="auto"?f:c,l=Q(d,u/f)):(l=a==="auto"?u:a,d=c===null?Q(l,f/u):c==="auto"?f:c);const w={},x=(A,g)=>{X(g)||(w[A]=g.toString())};return x("width",l),x("height",d),w.viewBox=r.left.toString()+" "+r.top.toString()+" "+u.toString()+" "+f.toString(),{attributes:w,body:o}}""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);function Oe(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,'="').trim()}function s(t,e){const n="rgb",i=e[0],r=e.length;r>1&&e[1],r>2&&e[2],r>3&&e[3]}s("silver",[192]);s("gray",[128]);s("white",[255]);s("maroon",[128,0,0]);s("red",[255,0,0]);s("purple",[128,0]);s("fuchsia",[255,0]);s("green",[0,128]);s("lime",[0,255]);s("olive",[128,128,0]);s("yellow",[255,255,0]);s("navy",[0,0,128]);s("blue",[0,0,255]);s("teal",[0,128,128]);s("aqua",[0,255,255]);s("aliceblue",[240,248,255]);s("antiquewhite",[250,235,215]);s("aqua",[0,255,255]);s("aquamarine",[127,255,212]);s("azure",[240,255,255]);s("beige",[245,245,220]);s("bisque",[255,228,196]);s("black",[0]);s("blanchedalmond",[255,235,205]);s("blue",[0,0,255]);s("blueviolet",[138,43,226]);s("brown",[165,42,42]);s("burlywood",[222,184,135]);s("cadetblue",[95,158,160]);s("chartreuse",[127,255,0]);s("chocolate",[210,105,30]);s("coral",[255,127,80]);s("cornflowerblue",[100,149,237]);s("cornsilk",[255,248,220]);s("crimson",[220,20,60]);s("cyan",[0,255,255]);s("darkblue",[0,0,139]);s("darkcyan",[0,139,139]);s("darkgoldenrod",[184,134,11]);s("darkgray",[169]);s("darkgreen",[0,100]);s("darkgrey",[169]);s("darkkhaki",[189,183,107]);s("darkmagenta",[139,0]);s("darkolivegreen",[85,107,47]);s("darkorange",[255,140,0]);s("darkorchid",[153,50,204]);s("darkred",[139,0,0]);s("darksalmon",[233,150,122]);s("darkseagreen",[143,188]);s("darkslateblue",[72,61,139]);s("darkslategray",[47,79,79]);s("darkslategrey",[47,79,79]);s("darkturquoise",[0,206,209]);s("darkviolet",[148,0,211]);s("deeppink",[255,20,147]);s("deepskyblue",[0,191,255]);s("dimgray",[105]);s("dimgrey",[105]);s("dodgerblue",[30,144,255]);s("firebrick",[178,34,34]);s("floralwhite",[255,250,240]);s("forestgreen",[34,139]);s("fuchsia",[255,0]);s("gainsboro",[220]);s("ghostwhite",[248,248,255]);s("gold",[255,215,0]);s("goldenrod",[218,165,32]);s("gray",[128]);s("green",[0,128]);s("greenyellow",[173,255,47]);s("grey",[128]);s("honeydew",[240,255]);s("hotpink",[255,105,180]);s("indianred",[205,92,92]);s("indigo",[75,0,130]);s("ivory",[255,255,240]);s("khaki",[240,230,140]);s("lavender",[230,230,250]);s("lavenderblush",[255,240,245]);s("lawngreen",[124,252,0]);s("lemonchiffon",[255,250,205]);s("lightblue",[173,216,230]);s("lightcoral",[240,128,128]);s("lightcyan",[224,255,255]);s("lightgoldenrodyellow",[250,250,210]);s("lightgray",[211]);s("lightgreen",[144,238]);s("lightgrey",[211]);s("lightpink",[255,182,193]);s("lightsalmon",[255,160,122]);s("lightseagreen",[32,178,170]);s("lightskyblue",[135,206,250]);s("lightslategray",[119,136,153]);s("lightslategrey",[119,136,153]);s("lightsteelblue",[176,196,222]);s("lightyellow",[255,255,224]);s("lime",[0,255]);s("limegreen",[50,205]);s("linen",[250,240,230]);s("magenta",[255,0]);s("maroon",[128,0,0]);s("mediumaquamarine",[102,205,170]);s("mediumblue",[0,0,205]);s("mediumorchid",[186,85,211]);s("mediumpurple",[147,112,219]);s("mediumseagreen",[60,179,113]);s("mediumslateblue",[123,104,238]);s("mediumspringgreen",[0,250,154]);s("mediumturquoise",[72,209,204]);s("mediumvioletred",[199,21,133]);s("midnightblue",[25,25,112]);s("mintcream",[245,255,250]);s("mistyrose",[255,228,225]);s("moccasin",[255,228,181]);s("navajowhite",[255,222,173]);s("navy",[0,0,128]);s("oldlace",[253,245,230]);s("olive",[128,128,0]);s("olivedrab",[107,142,35]);s("orange",[255,165,0]);s("orangered",[255,69,0]);s("orchid",[218,112,214]);s("palegoldenrod",[238,232,170]);s("palegreen",[152,251]);s("paleturquoise",[175,238,238]);s("palevioletred",[219,112,147]);s("papayawhip",[255,239,213]);s("peachpuff",[255,218,185]);s("peru",[205,133,63]);s("pink",[255,192,203]);s("plum",[221,160]);s("powderblue",[176,224,230]);s("purple",[128,0]);s("rebeccapurple",[102,51,153]);s("red",[255,0,0]);s("rosybrown",[188,143,143]);s("royalblue",[65,105,225]);s("saddlebrown",[139,69,19]);s("salmon",[250,128,114]);s("sandybrown",[244,164,96]);s("seagreen",[46,139,87]);s("seashell",[255,245,238]);s("sienna",[160,82,45]);s("silver",[192]);s("skyblue",[135,206,235]);s("slateblue",[106,90,205]);s("slategray",[112,128,144]);s("slategrey",[112,128,144]);s("snow",[255,250,250]);s("springgreen",[0,255,127]);s("steelblue",[70,130,180]);s("tan",[210,180,140]);s("teal",[0,128,128]);s("thistle",[216,191]);s("tomato",[255,99,71]);s("turquoise",[64,224,208]);s("violet",[238,130]);s("wheat",[245,222,179]);s("white",[255]);s("whitesmoke",[245]);s("yellow",[255,255,0]);s("yellowgreen",[154,205,50]);const Ee=/\swidth\s*=\s*["'](\w+)["']/,Me=/\sheight\s*=\s*["'](\w+)["']/,N=/<svg\s+/;function _e(t,e,n){const i=t.slice(0,t.indexOf(">")),r=(o,a)=>{const c=a.exec(i),u=c!=null,f=e[o];return!f&&!X(f)&&(typeof n=="number"?n>0&&(e[o]=`${n}em`):c&&(e[o]=c[1])),u};return[r("width",Ee),r("height",Me)]}async function he(t,e,n,i,r,o){const{scale:a,addXmlNs:c=!1}=i??{},{additionalProps:u={},iconCustomizer:f}=i?.customizations??{},l=await r?.()??{};await f?.(e,n,l),Object.keys(u).forEach(g=>{const m=u[g];m!=null&&(l[g]=m)}),o?.(l);const[d,w]=_e(t,l,a);c&&(!t.includes("xmlns=")&&!l.xmlns&&(l.xmlns="http://www.w3.org/2000/svg"),!t.includes("xmlns:xlink=")&&t.includes("xlink:")&&!l["xmlns:xlink"]&&(l["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const x=Object.keys(l).map(g=>g==="width"&&d||g==="height"&&w?null:`${g}="${l[g]}"`).filter(g=>g!=null);if(x.length&&(t=t.replace(N,`<svg ${x.join(" ")} `)),i){const{defaultStyle:g,defaultClass:m}=i;m&&!t.includes("class=")&&(t=t.replace(N,`<svg class="${m}" `)),g&&!t.includes("style=")&&(t=t.replace(N,`<svg style="${g}" `))}const A=i?.usedProps;return A&&(Object.keys(u).forEach(g=>{const m=l[g];m!=null&&(A[g]=m)}),typeof l.width<"u"&&l.width!==null&&(A.width=l.width),typeof l.height<"u"&&l.height!==null&&(A.height=l.height)),t}async function ee(t,e,n,i){let r;if(typeof t=="function")r=await t(n);else{const o=t[n];r=typeof o=="function"?await o():o}if(r){const o=r.indexOf("<svg");o>0&&(r=r.slice(o));const{transform:a}=i?.customizations??{};return r=typeof a=="function"?await a(r,e,n):r,r.startsWith("<svg")?await he(i?.customizations?.trimCustomSvg===!0?Oe(r):r,e,n,i,void 0):(console.warn(`Custom icon "${n}" in "${e}" is not a valid SVG`),r)}}async function de(t,e,n,i){let r;const{customize:o}=i?.customizations??{};for(const a of n)if(r=$e(t,a),r){let c={...fe};typeof o=="function"&&(c=o(c));const{attributes:{width:u,height:f,...l},body:d}=je(r,c),w=i?.scale;return await he(`<svg >${d}</svg>`,e,a,i,()=>({...l}),x=>{const A=(g,m)=>{const k=x[g];let b;if(!X(k)){if(k)return;typeof w=="number"?w&&(b=`${w}em`):b=m}b?x[g]=b:delete x[g]};A("width",u),A("height",f)})}}const pe=async(t,e,n)=>{const i=n?.customCollections?.[t];if(i)if(typeof i=="function"){const r=await i(e);if(r){if(typeof r=="string")return await ee(()=>r,t,e,n);if("icons"in r){const o=[e,e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.replace(/([a-z])(\d+)/g,"$1-$2")];return await de(r,t,o,n)}}}else return await ee(i,t,e,n)};var ze=["academicons","akar-icons","ant-design","arcticons","basil","bi","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","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","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","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","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","line-md","logos","ls","lucide","majesticons","maki","map","material-symbols","mdi-light","mdi","medical-icon","memory","mi","mingcute","mono-icons","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","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","teenyicons","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];function Le(t){const e=new Map;function n(i){if(ze.includes(i))return e.has(i)||e.set(i,be(`${t}@iconify-json/${i}/icons.json`)),e.get(i)}return async(i,r,o)=>{let a=await pe(i,r,o);if(a)return a;const c=await n(i);if(c){const u=[r,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r.replace(/([a-z])(\d+)/g,"$1-$2")];a=await de(c,i,u,o)}return a}}function Te(t){const e=t.length;let n=-1,i,r="";const o=t.charCodeAt(0);for(;++n<e;){if(i=t.charCodeAt(n),i===0){r+="�";continue}if(i===44){r+="\\,";continue}if(i>=1&&i<=31||i===127||n===0&&i>=48&&i<=57||n===1&&i>=48&&i<=57&&o===45){r+=`\\${i.toString(16)} `;continue}if(n===0&&e===1&&i===45){r+=`\\${t.charAt(n)}`;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){r+=t.charAt(n);continue}r+=`\\${t.charAt(n)}`}return r}const q=Te;function z(t=[]){return Array.isArray(t)?t:[t]}function R(t){return Array.from(new Set(t))}function O(t){return typeof t=="string"}function D(t){return O(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Ie(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>D(e)):[t]:[D(t)]}function Pe(t){return t.filter(([e,n],i)=>{if(e.startsWith("$$"))return!1;for(let r=i-1;r>=0;r--)if(t[r][0]===e&&t[r][1]===n)return!1;return!0})}function G(t){return t==null?"":Pe(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 ge(t,e,n=!1){const i=t,r=e;if(Array.isArray(r))return n&&Array.isArray(r)?[...i,...r]:[...r];const o={...i};return V(i)&&V(r)&&Object.keys(r).forEach(a=>{V(i[a])&&V(r[a])||Array.isArray(i[a])&&Array.isArray(r[a])?o[a]=ge(i[a],r[a],n):Object.assign(o,{[a]:r[a]})}),o}function U(t){let e,n,i;if(Array.isArray(t)){for(n=Array(e=t.length);e--;)n[e]=(i=t[e])&&typeof i=="object"?U(i):i;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]=(i=t[e])&&typeof i=="object"?U(i):i;return n}return t}function Re(t){return O(t[0])}function De(t){return O(t[0])}const te="$$shortcut-no-merge";function Fe(t){return typeof t=="function"?{match:t}:t}function re(t){return t.length===3}function Ve(t){return t!=null}function Be(){}class Ue{constructor(){this._map=new Map}get(e,n){const i=this._map.get(e);if(i)return i.get(n)}getFallback(e,n,i){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(n)||r.set(n,i),r.get(n)}set(e,n,i){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(n,i),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,i])=>Array.from(i.entries()).map(([r,o])=>e(o,n,r)))}}const B={};function He(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 Ne(t,e=["-",":"],n=5){const i=He(e);let r=!1,o=t.toString();const a=new Set;do{const c=o;o=o.replace(i,(u,f,l,d)=>e.includes(l)?(a.add(f+l),d.split(/\s/g).filter(Boolean).map(w=>w==="~"?f:w.replace(/^(!?)(.*)/,`$1${f}${l}$2`)).join(" ")):u),r=o!==c,n-=1}while(r&&n);return{prefixes:Array.from(a),expanded:o,hasChanged:r}}function qe(t,e=["-",":"],n=5){const{expanded:i}=Ne(t.toString(),e,n);return typeof t=="string"?i:t.length()?t.overwrite(0,t.length(),i):t}const ne=new Set;function me(t){ne.has(t)||(console.warn("[unocss]",t),ne.add(t))}const Ge=/[\\:]?[\s'"`;{}]+/g;function We(t){return[...new Set(t.split(Ge))]}const Ye={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return We(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 W="default",Y="preflights",Xe="shortcuts",Ze={[Y]:-100,[Xe]:-10,[W]:0};function ye(t){return z(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}const ie="_uno_resolved";function Je(t){if(ie in t)return t;t={...t},Object.defineProperty(t,ie,{value:!0,enumerable:!1});const e=t.shortcuts?ye(t.shortcuts):void 0;if(t.shortcuts=e,t.prefix||t.layer){const n=i=>{i[2]||(i[2]={});const r=i[2];r.prefix==null&&t.prefix&&(r.prefix=z(t.prefix)),r.layer==null&&t.layer&&(r.layer=t.layer)};e?.forEach(n),t.rules?.forEach(n)}return t}function we(t){const e=Je(t);if(!e.presets)return[e];const n=(e.presets||[]).flatMap(z).flatMap(we);return[e,...n]}function se(t={},e={}){const n=Object.assign({},e,t),i=R((n.presets||[]).flatMap(z).flatMap(we)),r=[...i.filter(h=>h.enforce==="pre"),...i.filter(h=>!h.enforce),...i.filter(h=>h.enforce==="post")],o=[...r,n],a=[...o].reverse(),c=Object.assign({},Ze,...o.map(h=>h.layers));function u(h){return R(o.flatMap(v=>z(v[h]||[])))}const f=u("extractors");let l=a.find(h=>h.extractorDefault!==void 0)?.extractorDefault;l===void 0&&(l=Ye),l&&!f.includes(l)&&f.unshift(l),f.sort((h,v)=>(h.order||0)-(v.order||0));const d=u("rules"),w={},x=d.length,A=d.map((h,v)=>{if(Re(h)){z(h[2]?.prefix||"").forEach(j=>{w[j+h[0]]=[v,h[1],h[2],h]});return}return[v,...h]}).filter(Boolean).reverse();let g=Qe(o.map(h=>h.theme));const m=u("extendTheme");for(const h of m)g=h(g)||g;const k={templates:R(o.flatMap(h=>z(h.autocomplete?.templates))),extractors:o.flatMap(h=>z(h.autocomplete?.extractors)).sort((h,v)=>(h.order||0)-(v.order||0))};let b=u("separators");b.length||(b=[":","-"]);const p={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:h=>h,...n,presets:r,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:c,theme:g,rulesSize:x,rulesDynamic:A,rulesStaticMap:w,preprocess:u("preprocess"),postprocess:u("postprocess"),preflights:u("preflights"),autocomplete:k,variants:u("variants").map(Fe).sort((h,v)=>(h.order||0)-(v.order||0)),shortcuts:ye(u("shortcuts")).reverse(),extractors:f,safelist:u("safelist"),separators:b};for(const h of o)h?.configResolved?.(p);return p}function Qe(t){return t.map(e=>e?U(e):{}).reduce((e,n)=>ge(e,n),{})}const et="0.53.4";class tt{constructor(e={},n={}){this.userConfig=e,this.defaults=n,this.version=et,this._cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.events=Ke(),this.config=se(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=se(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,n,i=new Set){const r={original:e,code:e,id:n,extracted:i};for(const o of this.config.extractors){const a=await o.extract?.(r);if(a)for(const c of a)i.add(c)}return i}makeContext(e,n){const i={rawSelector:e,currentSelector:n[1],theme:this.config.theme,generator:this,variantHandlers:n[2],constructCSS:(...r)=>this.constructCustomCSS(i,...r),variantMatch:n};return i}async parseToken(e,n){if(this.blocked.has(e))return;const i=`${e}${n?` ${n}`:""}`;if(this._cache.has(i))return this._cache.get(i);let r=e;for(const f of this.config.preprocess)r=f(e);if(this.isBlocked(r)){this.blocked.add(e),this._cache.set(i,null);return}const o=await this.matchVariants(e,r);if(!o||this.isBlocked(o[1])){this.blocked.add(e),this._cache.set(i,null);return}const a=this.makeContext(e,[n||o[0],o[1],o[2],o[3]]);this.config.details&&(a.variants=[...o[3]]);const c=await this.expandShortcut(a.currentSelector,a),u=c?await this.stringifyShortcuts(a.variantMatch,a,c[0],c[1]):(await this.parseUtil(a.variantMatch,a))?.map(f=>this.stringifyUtil(f,a)).filter(Ve);if(u?.length)return this._cache.set(i,u),u;this._cache.set(i,null)}async generate(e,n={}){const{id:i,scope:r,preflights:o=!0,safelist:a=!0,minify:c=!1}=n,u=O(e)?await this.applyExtractors(e,i):Array.isArray(e)?new Set(e):e;a&&this.config.safelist.forEach(p=>u.add(p));const f=c?"":`
|
|
1
|
+
import{$ as be}from"./entry.559460ac.js";const K=Object.freeze({left:0,top:0,width:16,height:16}),H=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ue=Object.freeze({...K,...H}),ve=Object.freeze({...ue,body:"",hidden:!1}),Se=Object.freeze({width:null,height:null}),fe=Object.freeze({...Se,...H});function xe(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const i=((t.rotate||0)+(e.rotate||0))%4;return i&&(n.rotate=i),n}function Z(t,e){const n=xe(t,e);for(const i in ve)i in H?i in t&&!(i in n)&&(n[i]=H[i]):i in e?n[i]=e[i]:i in t&&(n[i]=t[i]);return n}function ke(t,e){const n=t.icons,i=t.aliases||Object.create(null),r=Object.create(null);function o(a){if(n[a])return r[a]=[];if(!(a in r)){r[a]=null;const c=i[a]&&i[a].parent,u=c&&o(c);u&&(r[a]=[c].concat(u))}return r[a]}return(e||Object.keys(n).concat(Object.keys(i))).forEach(o),r}function J(t,e,n){const i=t.icons,r=t.aliases||Object.create(null);let o={};function a(c){o=Z(i[c]||r[c],o)}return a(e),n.forEach(a),Z(t,o)}function $e(t,e){if(t.icons[e])return J(t,e,[]);const n=ke(t,[e])[e];return n?J(t,e,n):null}({...K});Object.keys(K).concat(["provider"]);const Ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ce=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Q(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 i=t.split(Ae);if(i===null||!i.length)return t;const r=[];let o=i.shift(),a=Ce.test(o);for(;;){if(a){const c=parseFloat(o);isNaN(c)?r.push(o):r.push(Math.ceil(c*e*n)/n)}else r.push(o);if(o=i.shift(),o===void 0)return r.join("");a=!a}}const X=t=>t==="unset"||t==="undefined"||t==="none";function je(t,e){const n={...ue,...t},i={...fe,...e},r={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,i].forEach(A=>{const g=[],m=A.hFlip,k=A.vFlip;let b=A.rotate;m?k?b+=2:(g.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),g.push("scale(-1 1)"),r.top=r.left=0):k&&(g.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),g.push("scale(1 -1)"),r.top=r.left=0);let p;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:p=r.height/2+r.top,g.unshift("rotate(90 "+p.toString()+" "+p.toString()+")");break;case 2:g.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:p=r.width/2+r.left,g.unshift("rotate(-90 "+p.toString()+" "+p.toString()+")");break}b%2===1&&(r.left!==r.top&&(p=r.left,r.left=r.top,r.top=p),r.width!==r.height&&(p=r.width,r.width=r.height,r.height=p)),g.length&&(o='<g transform="'+g.join(" ")+'">'+o+"</g>")});const a=i.width,c=i.height,u=r.width,f=r.height;let l,d;a===null?(d=c===null?"1em":c==="auto"?f:c,l=Q(d,u/f)):(l=a==="auto"?u:a,d=c===null?Q(l,f/u):c==="auto"?f:c);const w={},x=(A,g)=>{X(g)||(w[A]=g.toString())};return x("width",l),x("height",d),w.viewBox=r.left.toString()+" "+r.top.toString()+" "+u.toString()+" "+f.toString(),{attributes:w,body:o}}""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);function Oe(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,'="').trim()}function s(t,e){const n="rgb",i=e[0],r=e.length;r>1&&e[1],r>2&&e[2],r>3&&e[3]}s("silver",[192]);s("gray",[128]);s("white",[255]);s("maroon",[128,0,0]);s("red",[255,0,0]);s("purple",[128,0]);s("fuchsia",[255,0]);s("green",[0,128]);s("lime",[0,255]);s("olive",[128,128,0]);s("yellow",[255,255,0]);s("navy",[0,0,128]);s("blue",[0,0,255]);s("teal",[0,128,128]);s("aqua",[0,255,255]);s("aliceblue",[240,248,255]);s("antiquewhite",[250,235,215]);s("aqua",[0,255,255]);s("aquamarine",[127,255,212]);s("azure",[240,255,255]);s("beige",[245,245,220]);s("bisque",[255,228,196]);s("black",[0]);s("blanchedalmond",[255,235,205]);s("blue",[0,0,255]);s("blueviolet",[138,43,226]);s("brown",[165,42,42]);s("burlywood",[222,184,135]);s("cadetblue",[95,158,160]);s("chartreuse",[127,255,0]);s("chocolate",[210,105,30]);s("coral",[255,127,80]);s("cornflowerblue",[100,149,237]);s("cornsilk",[255,248,220]);s("crimson",[220,20,60]);s("cyan",[0,255,255]);s("darkblue",[0,0,139]);s("darkcyan",[0,139,139]);s("darkgoldenrod",[184,134,11]);s("darkgray",[169]);s("darkgreen",[0,100]);s("darkgrey",[169]);s("darkkhaki",[189,183,107]);s("darkmagenta",[139,0]);s("darkolivegreen",[85,107,47]);s("darkorange",[255,140,0]);s("darkorchid",[153,50,204]);s("darkred",[139,0,0]);s("darksalmon",[233,150,122]);s("darkseagreen",[143,188]);s("darkslateblue",[72,61,139]);s("darkslategray",[47,79,79]);s("darkslategrey",[47,79,79]);s("darkturquoise",[0,206,209]);s("darkviolet",[148,0,211]);s("deeppink",[255,20,147]);s("deepskyblue",[0,191,255]);s("dimgray",[105]);s("dimgrey",[105]);s("dodgerblue",[30,144,255]);s("firebrick",[178,34,34]);s("floralwhite",[255,250,240]);s("forestgreen",[34,139]);s("fuchsia",[255,0]);s("gainsboro",[220]);s("ghostwhite",[248,248,255]);s("gold",[255,215,0]);s("goldenrod",[218,165,32]);s("gray",[128]);s("green",[0,128]);s("greenyellow",[173,255,47]);s("grey",[128]);s("honeydew",[240,255]);s("hotpink",[255,105,180]);s("indianred",[205,92,92]);s("indigo",[75,0,130]);s("ivory",[255,255,240]);s("khaki",[240,230,140]);s("lavender",[230,230,250]);s("lavenderblush",[255,240,245]);s("lawngreen",[124,252,0]);s("lemonchiffon",[255,250,205]);s("lightblue",[173,216,230]);s("lightcoral",[240,128,128]);s("lightcyan",[224,255,255]);s("lightgoldenrodyellow",[250,250,210]);s("lightgray",[211]);s("lightgreen",[144,238]);s("lightgrey",[211]);s("lightpink",[255,182,193]);s("lightsalmon",[255,160,122]);s("lightseagreen",[32,178,170]);s("lightskyblue",[135,206,250]);s("lightslategray",[119,136,153]);s("lightslategrey",[119,136,153]);s("lightsteelblue",[176,196,222]);s("lightyellow",[255,255,224]);s("lime",[0,255]);s("limegreen",[50,205]);s("linen",[250,240,230]);s("magenta",[255,0]);s("maroon",[128,0,0]);s("mediumaquamarine",[102,205,170]);s("mediumblue",[0,0,205]);s("mediumorchid",[186,85,211]);s("mediumpurple",[147,112,219]);s("mediumseagreen",[60,179,113]);s("mediumslateblue",[123,104,238]);s("mediumspringgreen",[0,250,154]);s("mediumturquoise",[72,209,204]);s("mediumvioletred",[199,21,133]);s("midnightblue",[25,25,112]);s("mintcream",[245,255,250]);s("mistyrose",[255,228,225]);s("moccasin",[255,228,181]);s("navajowhite",[255,222,173]);s("navy",[0,0,128]);s("oldlace",[253,245,230]);s("olive",[128,128,0]);s("olivedrab",[107,142,35]);s("orange",[255,165,0]);s("orangered",[255,69,0]);s("orchid",[218,112,214]);s("palegoldenrod",[238,232,170]);s("palegreen",[152,251]);s("paleturquoise",[175,238,238]);s("palevioletred",[219,112,147]);s("papayawhip",[255,239,213]);s("peachpuff",[255,218,185]);s("peru",[205,133,63]);s("pink",[255,192,203]);s("plum",[221,160]);s("powderblue",[176,224,230]);s("purple",[128,0]);s("rebeccapurple",[102,51,153]);s("red",[255,0,0]);s("rosybrown",[188,143,143]);s("royalblue",[65,105,225]);s("saddlebrown",[139,69,19]);s("salmon",[250,128,114]);s("sandybrown",[244,164,96]);s("seagreen",[46,139,87]);s("seashell",[255,245,238]);s("sienna",[160,82,45]);s("silver",[192]);s("skyblue",[135,206,235]);s("slateblue",[106,90,205]);s("slategray",[112,128,144]);s("slategrey",[112,128,144]);s("snow",[255,250,250]);s("springgreen",[0,255,127]);s("steelblue",[70,130,180]);s("tan",[210,180,140]);s("teal",[0,128,128]);s("thistle",[216,191]);s("tomato",[255,99,71]);s("turquoise",[64,224,208]);s("violet",[238,130]);s("wheat",[245,222,179]);s("white",[255]);s("whitesmoke",[245]);s("yellow",[255,255,0]);s("yellowgreen",[154,205,50]);const Ee=/\swidth\s*=\s*["'](\w+)["']/,Me=/\sheight\s*=\s*["'](\w+)["']/,N=/<svg\s+/;function _e(t,e,n){const i=t.slice(0,t.indexOf(">")),r=(o,a)=>{const c=a.exec(i),u=c!=null,f=e[o];return!f&&!X(f)&&(typeof n=="number"?n>0&&(e[o]=`${n}em`):c&&(e[o]=c[1])),u};return[r("width",Ee),r("height",Me)]}async function he(t,e,n,i,r,o){const{scale:a,addXmlNs:c=!1}=i??{},{additionalProps:u={},iconCustomizer:f}=i?.customizations??{},l=await r?.()??{};await f?.(e,n,l),Object.keys(u).forEach(g=>{const m=u[g];m!=null&&(l[g]=m)}),o?.(l);const[d,w]=_e(t,l,a);c&&(!t.includes("xmlns=")&&!l.xmlns&&(l.xmlns="http://www.w3.org/2000/svg"),!t.includes("xmlns:xlink=")&&t.includes("xlink:")&&!l["xmlns:xlink"]&&(l["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const x=Object.keys(l).map(g=>g==="width"&&d||g==="height"&&w?null:`${g}="${l[g]}"`).filter(g=>g!=null);if(x.length&&(t=t.replace(N,`<svg ${x.join(" ")} `)),i){const{defaultStyle:g,defaultClass:m}=i;m&&!t.includes("class=")&&(t=t.replace(N,`<svg class="${m}" `)),g&&!t.includes("style=")&&(t=t.replace(N,`<svg style="${g}" `))}const A=i?.usedProps;return A&&(Object.keys(u).forEach(g=>{const m=l[g];m!=null&&(A[g]=m)}),typeof l.width<"u"&&l.width!==null&&(A.width=l.width),typeof l.height<"u"&&l.height!==null&&(A.height=l.height)),t}async function ee(t,e,n,i){let r;if(typeof t=="function")r=await t(n);else{const o=t[n];r=typeof o=="function"?await o():o}if(r){const o=r.indexOf("<svg");o>0&&(r=r.slice(o));const{transform:a}=i?.customizations??{};return r=typeof a=="function"?await a(r,e,n):r,r.startsWith("<svg")?await he(i?.customizations?.trimCustomSvg===!0?Oe(r):r,e,n,i,void 0):(console.warn(`Custom icon "${n}" in "${e}" is not a valid SVG`),r)}}async function de(t,e,n,i){let r;const{customize:o}=i?.customizations??{};for(const a of n)if(r=$e(t,a),r){let c={...fe};typeof o=="function"&&(c=o(c));const{attributes:{width:u,height:f,...l},body:d}=je(r,c),w=i?.scale;return await he(`<svg >${d}</svg>`,e,a,i,()=>({...l}),x=>{const A=(g,m)=>{const k=x[g];let b;if(!X(k)){if(k)return;typeof w=="number"?w&&(b=`${w}em`):b=m}b?x[g]=b:delete x[g]};A("width",u),A("height",f)})}}const pe=async(t,e,n)=>{const i=n?.customCollections?.[t];if(i)if(typeof i=="function"){const r=await i(e);if(r){if(typeof r=="string")return await ee(()=>r,t,e,n);if("icons"in r){const o=[e,e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.replace(/([a-z])(\d+)/g,"$1-$2")];return await de(r,t,o,n)}}}else return await ee(i,t,e,n)};var ze=["academicons","akar-icons","ant-design","arcticons","basil","bi","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","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","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","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","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","line-md","logos","ls","lucide","majesticons","maki","map","material-symbols","mdi-light","mdi","medical-icon","memory","mi","mingcute","mono-icons","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","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","teenyicons","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];function Le(t){const e=new Map;function n(i){if(ze.includes(i))return e.has(i)||e.set(i,be(`${t}@iconify-json/${i}/icons.json`)),e.get(i)}return async(i,r,o)=>{let a=await pe(i,r,o);if(a)return a;const c=await n(i);if(c){const u=[r,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r.replace(/([a-z])(\d+)/g,"$1-$2")];a=await de(c,i,u,o)}return a}}function Te(t){const e=t.length;let n=-1,i,r="";const o=t.charCodeAt(0);for(;++n<e;){if(i=t.charCodeAt(n),i===0){r+="�";continue}if(i===44){r+="\\,";continue}if(i>=1&&i<=31||i===127||n===0&&i>=48&&i<=57||n===1&&i>=48&&i<=57&&o===45){r+=`\\${i.toString(16)} `;continue}if(n===0&&e===1&&i===45){r+=`\\${t.charAt(n)}`;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){r+=t.charAt(n);continue}r+=`\\${t.charAt(n)}`}return r}const q=Te;function z(t=[]){return Array.isArray(t)?t:[t]}function R(t){return Array.from(new Set(t))}function O(t){return typeof t=="string"}function D(t){return O(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Ie(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>D(e)):[t]:[D(t)]}function Pe(t){return t.filter(([e,n],i)=>{if(e.startsWith("$$"))return!1;for(let r=i-1;r>=0;r--)if(t[r][0]===e&&t[r][1]===n)return!1;return!0})}function G(t){return t==null?"":Pe(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 ge(t,e,n=!1){const i=t,r=e;if(Array.isArray(r))return n&&Array.isArray(r)?[...i,...r]:[...r];const o={...i};return V(i)&&V(r)&&Object.keys(r).forEach(a=>{V(i[a])&&V(r[a])||Array.isArray(i[a])&&Array.isArray(r[a])?o[a]=ge(i[a],r[a],n):Object.assign(o,{[a]:r[a]})}),o}function U(t){let e,n,i;if(Array.isArray(t)){for(n=Array(e=t.length);e--;)n[e]=(i=t[e])&&typeof i=="object"?U(i):i;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]=(i=t[e])&&typeof i=="object"?U(i):i;return n}return t}function Re(t){return O(t[0])}function De(t){return O(t[0])}const te="$$shortcut-no-merge";function Fe(t){return typeof t=="function"?{match:t}:t}function re(t){return t.length===3}function Ve(t){return t!=null}function Be(){}class Ue{constructor(){this._map=new Map}get(e,n){const i=this._map.get(e);if(i)return i.get(n)}getFallback(e,n,i){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(n)||r.set(n,i),r.get(n)}set(e,n,i){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(n,i),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,i])=>Array.from(i.entries()).map(([r,o])=>e(o,n,r)))}}const B={};function He(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 Ne(t,e=["-",":"],n=5){const i=He(e);let r=!1,o=t.toString();const a=new Set;do{const c=o;o=o.replace(i,(u,f,l,d)=>e.includes(l)?(a.add(f+l),d.split(/\s/g).filter(Boolean).map(w=>w==="~"?f:w.replace(/^(!?)(.*)/,`$1${f}${l}$2`)).join(" ")):u),r=o!==c,n-=1}while(r&&n);return{prefixes:Array.from(a),expanded:o,hasChanged:r}}function qe(t,e=["-",":"],n=5){const{expanded:i}=Ne(t.toString(),e,n);return typeof t=="string"?i:t.length()?t.overwrite(0,t.length(),i):t}const ne=new Set;function me(t){ne.has(t)||(console.warn("[unocss]",t),ne.add(t))}const Ge=/[\\:]?[\s'"`;{}]+/g;function We(t){return[...new Set(t.split(Ge))]}const Ye={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return We(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 W="default",Y="preflights",Xe="shortcuts",Ze={[Y]:-100,[Xe]:-10,[W]:0};function ye(t){return z(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}const ie="_uno_resolved";function Je(t){if(ie in t)return t;t={...t},Object.defineProperty(t,ie,{value:!0,enumerable:!1});const e=t.shortcuts?ye(t.shortcuts):void 0;if(t.shortcuts=e,t.prefix||t.layer){const n=i=>{i[2]||(i[2]={});const r=i[2];r.prefix==null&&t.prefix&&(r.prefix=z(t.prefix)),r.layer==null&&t.layer&&(r.layer=t.layer)};e?.forEach(n),t.rules?.forEach(n)}return t}function we(t){const e=Je(t);if(!e.presets)return[e];const n=(e.presets||[]).flatMap(z).flatMap(we);return[e,...n]}function se(t={},e={}){const n=Object.assign({},e,t),i=R((n.presets||[]).flatMap(z).flatMap(we)),r=[...i.filter(h=>h.enforce==="pre"),...i.filter(h=>!h.enforce),...i.filter(h=>h.enforce==="post")],o=[...r,n],a=[...o].reverse(),c=Object.assign({},Ze,...o.map(h=>h.layers));function u(h){return R(o.flatMap(v=>z(v[h]||[])))}const f=u("extractors");let l=a.find(h=>h.extractorDefault!==void 0)?.extractorDefault;l===void 0&&(l=Ye),l&&!f.includes(l)&&f.unshift(l),f.sort((h,v)=>(h.order||0)-(v.order||0));const d=u("rules"),w={},x=d.length,A=d.map((h,v)=>{if(Re(h)){z(h[2]?.prefix||"").forEach(j=>{w[j+h[0]]=[v,h[1],h[2],h]});return}return[v,...h]}).filter(Boolean).reverse();let g=Qe(o.map(h=>h.theme));const m=u("extendTheme");for(const h of m)g=h(g)||g;const k={templates:R(o.flatMap(h=>z(h.autocomplete?.templates))),extractors:o.flatMap(h=>z(h.autocomplete?.extractors)).sort((h,v)=>(h.order||0)-(v.order||0))};let b=u("separators");b.length||(b=[":","-"]);const p={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:h=>h,...n,presets:r,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:c,theme:g,rulesSize:x,rulesDynamic:A,rulesStaticMap:w,preprocess:u("preprocess"),postprocess:u("postprocess"),preflights:u("preflights"),autocomplete:k,variants:u("variants").map(Fe).sort((h,v)=>(h.order||0)-(v.order||0)),shortcuts:ye(u("shortcuts")).reverse(),extractors:f,safelist:u("safelist"),separators:b};for(const h of o)h?.configResolved?.(p);return p}function Qe(t){return t.map(e=>e?U(e):{}).reduce((e,n)=>ge(e,n),{})}const et="0.53.4";class tt{constructor(e={},n={}){this.userConfig=e,this.defaults=n,this.version=et,this._cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.events=Ke(),this.config=se(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=se(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,n,i=new Set){const r={original:e,code:e,id:n,extracted:i};for(const o of this.config.extractors){const a=await o.extract?.(r);if(a)for(const c of a)i.add(c)}return i}makeContext(e,n){const i={rawSelector:e,currentSelector:n[1],theme:this.config.theme,generator:this,variantHandlers:n[2],constructCSS:(...r)=>this.constructCustomCSS(i,...r),variantMatch:n};return i}async parseToken(e,n){if(this.blocked.has(e))return;const i=`${e}${n?` ${n}`:""}`;if(this._cache.has(i))return this._cache.get(i);let r=e;for(const f of this.config.preprocess)r=f(e);if(this.isBlocked(r)){this.blocked.add(e),this._cache.set(i,null);return}const o=await this.matchVariants(e,r);if(!o||this.isBlocked(o[1])){this.blocked.add(e),this._cache.set(i,null);return}const a=this.makeContext(e,[n||o[0],o[1],o[2],o[3]]);this.config.details&&(a.variants=[...o[3]]);const c=await this.expandShortcut(a.currentSelector,a),u=c?await this.stringifyShortcuts(a.variantMatch,a,c[0],c[1]):(await this.parseUtil(a.variantMatch,a))?.map(f=>this.stringifyUtil(f,a)).filter(Ve);if(u?.length)return this._cache.set(i,u),u;this._cache.set(i,null)}async generate(e,n={}){const{id:i,scope:r,preflights:o=!0,safelist:a=!0,minify:c=!1}=n,u=O(e)?await this.applyExtractors(e,i):Array.isArray(e)?new Set(e):e;a&&this.config.safelist.forEach(p=>u.add(p));const f=c?"":`
|
|
2
2
|
`,l=new Set([W]),d=new Set,w=new Map;let x={};const A=Array.from(u).map(async p=>{if(d.has(p))return;const h=await this.parseToken(p);if(h!=null){d.add(p);for(const v of h){const C=v[3]||"",j=v[4]?.layer;w.has(C)||w.set(C,[]),w.get(C).push(v),j&&l.add(j)}}});await Promise.all(A),await(async()=>{if(!o)return;const p={generator:this,theme:this.config.theme},h=new Set([]);this.config.preflights.forEach(({layer:v=Y})=>{l.add(v),h.add(v)}),x=Object.fromEntries(await Promise.all(Array.from(h).map(async v=>{const j=(await Promise.all(this.config.preflights.filter(M=>(M.layer||Y)===v).map(async M=>await M.getCSS(p)))).filter(Boolean).join(f);return[v,j]})))})();const g=this.config.sortLayers(Array.from(l).sort((p,h)=>(this.config.layers[p]??0)-(this.config.layers[h]??0)||p.localeCompare(h))),m={},k=p=>{if(m[p])return m[p];let h=Array.from(w).sort((C,j)=>(this.parentOrders.get(C[0])??0)-(this.parentOrders.get(j[0])??0)||C[0]?.localeCompare(j[0]||"")||0).map(([C,j])=>{const M=j.length,P=j.filter(y=>(y[4]?.layer||W)===p).sort((y,$)=>y[0]-$[0]||(y[4]?.sort||0)-($[4]?.sort||0)||y[5]?.currentSelector?.localeCompare($[5]?.currentSelector??"")||y[1]?.localeCompare($[1]||"")||y[2]?.localeCompare($[2]||"")||0).map(([,y,$,,E,,_])=>[[[(y&&st(y,r))??"",E?.sort??0]],$,!!(_??E?.noMerge)]);if(!P.length)return;const F=P.reverse().map(([y,$,E],_)=>{if(!E&&this.config.mergeSelectors)for(let I=_+1;I<M;I++){const L=P[I];if(L&&!L[2]&&(y&&L[0]||y==null&&L[0]==null)&&L[1]===$)return y&&L[0]&&L[0].push(...y),null}const T=y?R(y.sort((I,L)=>I[1]-L[1]||I[0]?.localeCompare(L[0]||"")||0).map(I=>I[0]).filter(Boolean)):[];return T.length?`${T.join(`,${f}`)}{${$}}`:$}).filter(Boolean).reverse().join(f);if(!C)return F;const S=C.split(" $$ ");return`${S.join("{")}{${f}${F}${f}}${S.map(y=>"").join("}")}`}).filter(Boolean).join(f);o&&(h=[x[p],h].filter(Boolean).join(f));const v=c?"":`/* layer: ${p} */${f}`;return m[p]=h?v+h:""},b=(p=g,h)=>p.filter(v=>!h?.includes(v)).map(v=>k(v)||"").filter(Boolean).join(f);return{get css(){return b()},layers:g,matched:d,getLayers:b,getLayer:k}}async matchVariants(e,n){const i=new Set,r=[];let o=n||e,a=!1;const c={rawSelector:e,theme:this.config.theme,generator:this};for(;;){a=!1;for(const u of this.config.variants){if(!u.multiPass&&i.has(u))continue;let f=await u.match(o,c);if(f){O(f)&&(f={matcher:f}),o=f.matcher,r.unshift(f),i.add(u),a=!0;break}}if(!a)break;if(r.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,o,r,i]}applyVariants(e,n=e[4],i=e[1]){const o=n.slice().sort((f,l)=>(f.order||0)-(l.order||0)).reduceRight((f,l)=>d=>{const w=l.body?.(d.entries)||d.entries,x=Array.isArray(l.parent)?l.parent:[l.parent,void 0];return(l.handle??at)({...d,entries:w,selector:l.selector?.(d.selector,w)||d.selector,parent:x[0]||d.parent,parentOrder:x[1]||d.parentOrder,layer:l.layer||d.layer,sort:l.sort||d.sort},f)},f=>f)({prefix:"",selector:ot(i),pseudo:"",entries:e[2]}),{parent:a,parentOrder:c}=o;a!=null&&c!=null&&this.parentOrders.set(a,c);const u={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:a,layer:o.layer,sort:o.sort,noMerge:o.noMerge};for(const f of this.config.postprocess)f(u);return u}constructCustomCSS(e,n,i){const r=D(n);if(O(r))return r;const{selector:o,entries:a,parent:c}=this.applyVariants([0,i||e.rawSelector,r,void 0,e.variantHandlers]),u=`${o}{${G(a)}}`;return c?`${c}{${u}}`:u}async parseUtil(e,n,i=!1,r){const[o,a,c]=O(e)?await this.matchVariants(e):e;this.config.details&&(n.rules=n.rules??[]);const u=this.config.rulesStaticMap[a];if(u&&u[1]&&(i||!u[2]?.internal)){this.config.details&&n.rules.push(u[3]);const l=u[0],d=D(u[1]),w=u[2];return O(d)?[[l,d,w]]:[[l,o,d,w,c]]}n.variantHandlers=c;const{rulesDynamic:f}=this.config;for(const[l,d,w,x]of f){if(x?.internal&&!i)continue;let A=a;if(x?.prefix){const b=z(x.prefix);if(r){const p=z(r);if(!b.some(h=>p.includes(h)))continue}else{const p=b.find(h=>a.startsWith(h));if(p==null)continue;A=a.slice(p.length)}}const g=A.match(d);if(!g)continue;const m=await w(g,n);if(!m)continue;this.config.details&&n.rules.push([d,w,x]);const k=Ie(m).filter(b=>b.length);if(k.length)return k.map(b=>O(b)?[l,b,x]:[l,o,b,x,c])}}stringifyUtil(e,n){if(!e)return;if(re(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?n:void 0,void 0];const{selector:i,entries:r,parent:o,layer:a,sort:c,noMerge:u}=this.applyVariants(e),f=G(r);if(!f)return;const{layer:l,sort:d,...w}=e[3]??{},x={...w,layer:a??l,sort:c??d};return[e[0],i,f,o,x,this.config.details?n:void 0,u]}async expandShortcut(e,n,i=5){if(i===0)return;const r=this.config.details?c=>{n.shortcuts=n.shortcuts??[],n.shortcuts.push(c)}:Be;let o,a;for(const c of this.config.shortcuts){let u=e;if(c[2]?.prefix){const l=z(c[2].prefix).find(d=>e.startsWith(d));if(l==null)continue;u=e.slice(l.length)}if(De(c)){if(c[0]===u){o=o||c[2],a=c[1],r(c);break}}else{const f=u.match(c[0]);if(f&&(a=c[1](f,n)),a){o=o||c[2],r(c);break}}}if(O(a)&&(a=qe(a.trim()).split(/\s+/g)),!a){const[c,u]=O(e)?await this.matchVariants(e):e;if(c!==u){const f=await this.expandShortcut(u,n,i-1);f&&(a=f[0].map(l=>O(l)?c.replace(u,l):l))}}if(a)return[(await Promise.all(a.map(async c=>(O(c)?(await this.expandShortcut(c,n,i-1))?.[0]:void 0)||[c]))).flat(1).filter(Boolean),o]}async stringifyShortcuts(e,n,i,r={layer:this.config.shortcutsLayer}){const o=new Ue,a=(await Promise.all(R(i).map(async l=>{const d=O(l)?await this.parseUtil(l,n,!0,r.prefix):[[1/0,"{inline}",D(l),void 0,[]]];return d||me(`unmatched utility "${l}" in shortcut "${e[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((l,d)=>l[0]-d[0]),[c,,u]=e,f=[];for(const l of a){if(re(l)){f.push([l[0],void 0,l[1],void 0,l[2],n,void 0]);continue}const{selector:d,entries:w,parent:x,sort:A,noMerge:g}=this.applyVariants(l,[...l[4],...u],c);o.getFallback(d,x,[[],l[0]])[0].push([w,!!(g??l[3]?.noMerge),A??0])}return f.concat(o.map(([l,d],w,x)=>{const A=(m,k,b)=>{const p=Math.max(...b.map(v=>v[1])),h=b.map(v=>v[0]);return(m?[h.flat(1)]:h).map(v=>{const C=G(v);if(C)return[d,w,C,x,{...r,noMerge:k,sort:p},n,void 0]})};return[[l.filter(([,m])=>m).map(([m,,k])=>[m,k]),!0],[l.filter(([,m])=>!m).map(([m,,k])=>[m,k]),!1]].map(([m,k])=>[...A(!1,k,m.filter(([b])=>b.some(p=>p[0]===te))),...A(!0,k,m.filter(([b])=>b.every(p=>p[0]!==te)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(n=>O(n)?n===e:n.test(e))}}function rt(t,e){return new tt(t,e)}const nt=/\s\$\$\s+/g;function it(t){return t.match(/\s\$\$\s/)}function st(t,e){return it(t)?t.replace(nt,e?` ${e} `:" "):e?`${e} ${t}`:t}const oe=/^\[(.+?)(~?=)"(.*)"\]$/;function ot(t){return oe.test(t)?t.replace(oe,(e,n,i,r)=>`[${q(n)}${i}"${q(r)}"]`):`.${q(t)}`}function at(t,e){return e(t)}function ct(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function lt(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" ')),ct(e)}const ut=3;function ft(t){return function(n={}){const{scale:i=1,mode:r="auto",prefix:o="i-",warn:a=!1,collections:c,extraProperties:u={},customizations:f={},autoInstall:l=!1,layer:d="icons",unit:w}=n,x={addXmlNs:!0,scale:i,customCollections:c,autoInstall:l,warn:void 0,customizations:{...f,additionalProps:{...u},trimCustomSvg:!0,async iconCustomizer(g,m,k){await f.iconCustomizer?.(g,m,k),w&&(k.width||(k.width=`${i}${w}`),k.height||(k.height=`${i}${w}`))}}};let A;return{name:"@unocss/preset-icons",enforce:"pre",options:n,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async([g,m,k=r])=>{let b="",p="",h;A=A||await t(n);const v={};if(m.includes(":"))[b,p]=m.split(":"),h=await A(b,p,{...x,usedProps:v});else{const j=m.split(/-/g);for(let M=ut;M>=1&&(b=j.slice(0,M).join("-"),p=j.slice(M).join("-"),h=await A(b,p,{...x,usedProps:v}),!h);M--);}if(!h){a&&me(`failed to load icon "${g}"`);return}const C=`url("data:image/svg+xml;utf8,${lt(h)}")`;return k==="auto"&&(k=h.includes("currentColor")?"mask":"bg"),k==="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",...v}:{background:`${C} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...v}},{layer:d,prefix:o}]]}}}const ht=ft(async t=>{const{cdn:e}=t;return e?Le(e):pe});function dt(t){return t.replace(/-(\w)/g,(e,n)=>n?n.toUpperCase():"")}function ae(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ce(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var le=["Webkit","Moz","ms"];function pt(t){const e={};function n(i){const r=e[i];if(r)return r;let o=dt(i);if(o!=="filter"&&o in t)return e[i]=ce(o);o=ae(o);for(let a=0;a<le.length;a++){const c=`${le[a]}${o}`;if(c in t)return e[i]=ce(ae(c))}return i}return({entries:i})=>i.forEach(r=>{r[0].startsWith("--")||(r[0]=n(r[0]))})}function gt(t){return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}function mt(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const e=window,n=window.document,i=()=>n.documentElement,r=e.__unocss||{},o=Object.assign({},t,r.runtime),a=o.defaults||{},c=o.cloakAttribute??"un-cloak";o.autoPrefix&&(a.postprocess=z(a.postprocess)).unshift(pt(n.createElement("div").style)),o.configResolved?.(r,a);const u=rt(r,a),f=new Map;let l=!0,d=new Set,w,x,A=[];const g=()=>new Promise(S=>{A.push(S),x!=null&&clearTimeout(x),x=setTimeout(()=>b().then(()=>{const y=A;A=[],y.forEach($=>$())}),0)});function m(S){if(S.nodeType!==1)return;const y=S;y.hasAttribute(c)&&y.removeAttribute(c),y.querySelectorAll(`[${c}]`).forEach($=>{$.removeAttribute(c)})}function k(S,y){let $=f.get(S);if(!$)if($=n.createElement("style"),$.setAttribute("data-unocss-runtime-layer",S),f.set(S,$),y==null)i().prepend($);else{const E=k(y),_=E.parentNode;_?_.insertBefore($,E.nextSibling):i().prepend($)}return $}async function b(){const S=await u.generate(d);return S.layers.reduce((y,$)=>(k($,y).innerHTML=S.getLayer($)??"",$),void 0),d=S.matched,{...S,getStyleElement:y=>f.get(y),getStyleElements:()=>f}}async function p(S){const y=d.size;await u.applyExtractors(S,void 0,d),y!==d.size&&await g()}async function h(){const S=n.body,y=S&&S.outerHTML;y&&(await p(`${y} ${gt(y)}`),m(i()),m(S))}const v=new MutationObserver(S=>{l||S.forEach(async y=>{if(y.target.nodeType!==1)return;const $=y.target;for(const E of f)if($===E[1])return;if(y.type==="childList")y.addedNodes.forEach(async E=>{if(E.nodeType!==1)return;const _=E;w&&!w(_)||(await p(_.outerHTML),m(_))});else{if(w&&!w($))return;if(y.attributeName!==c){const E=Array.from($.attributes).map(T=>T.value?`${T.name}="${T.value}"`:T.name).join(" "),_=`<${$.tagName.toLowerCase()} ${E}>`;await p(_)}$.hasAttribute(c)&&$.removeAttribute(c)}})});let C=!1;function j(){if(C)return;const S=i()||n.body;S&&(v.observe(S,{childList:!0,subtree:!0,attributes:!0}),C=!0)}function M(){o.bypassDefined&&yt(u.blocked),h(),j()}function P(){n.readyState==="loading"?e.addEventListener("DOMContentLoaded",M):M()}const F=e.__unocss_runtime=e.__unocss_runtime={version:u.version,uno:u,async extract(S){O(S)||(S.forEach(y=>d.add(y)),S=""),await p(S)},extractAll:h,inspect(S){w=S},toggleObserver(S){S===void 0?l=!l:l=!!S,!C&&!l&&P()},update:b};o.ready?.(F)!==!1&&(l=!1,P())}function yt(t=new Set){for(let e=0;e<document.styleSheets.length;e++){const n=document.styleSheets[e];let i;try{if(i=n.cssRules||n.rules,!i)continue;Array.from(i).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}mt({defaults:{presets:[ht({prefix:["i-",""],collections:{},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]},bypassDefined:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as B}from"./Navbar.vue.
|
|
1
|
+
import{_ as B}from"./Navbar.vue.72301b0e.js";import{o as c,c as u,a as _,g as R,r as v,bf as I,l as d,E as S,al as E,Z as L,b as s,w as l,F as f,q as i,I as P,m as U,n as j,d as q,t as h,h as W,e as z,a8 as G}from"./entry.559460ac.js";import{_ as H}from"./NCodeBlock.vue.12f6d4d2.js";import{_ as T}from"./NPanelGrids.cfd60e85.js";import{_ as Z}from"./PanelLeftRight.vue.d1539d19.js";import{_ as A}from"./HelpFab.vue.6c2e0089.js";import"./client.1e3208e3.js";import"./NIconButton.vue.9dc5b644.js";const J={class:"markdown-body"},K=_("h1",null,"Virtual Files",-1),M=_("p",null,"Virtual files are generated on the fly to support the conventions of the framework, and to provide a better developer experience.",-1),O=[K,M],Q={__name:"virtual-files",setup(x,{expose:o}){return o({frontmatter:{}}),(p,a)=>(c(),u("div",J,O))}},X=_("div",{"x-divider":""},null,-1),Y={key:0,"h-full":"","of-hidden":"",flex:"~ col"},ee={border:"b base","flex-none":"",px4:"",py2:"","text-sm":"",op75:""},te=_("span",{op75:""},"Select a file to start",-1),_e=R({__name:"virtual-files",setup(x){const o=v(""),n=I(),p=d(()=>S().query?.id),a=v();E(()=>{if(!p.value)return;const e=`/_vfs.json/${encodeURIComponent(p.value)}`;fetch(e).then(t=>t.json()).then(t=>a.value=t.current)});function y(e){if(n.value?.rootDir)return e.startsWith(n.value?.rootDir)?e.slice(n.value.rootDir.length):e}const m=d(()=>n.value?n.value.entries.filter(e=>!e.id.startsWith(`${n.value?.rootDir||""}/.nuxt/`)).sort((e,t)=>e.id.localeCompare(t.id)):[]),g=d(()=>new L(m.value,{keys:["id","path"]})),b=d(()=>o.value?g.value.search(o.value).map(e=>e.item):m.value);return(e,t)=>{const k=B,$=z,F=H,C=G,N=T,V=Z,w=Q,D=A;return c(),u(f,null,[s(V,{class:"virtual-files","storage-key":"tab-virtual-files"},{left:l(()=>[s(k,{search:i(o),"onUpdate:search":t[0]||(t[0]=r=>P(o)?o.value=r:null),"no-padding":"",p3:""},null,8,["search"]),(c(!0),u(f,null,U(i(b),r=>(c(),u(f,{key:r.id},[s($,{block:"","select-none":"",truncate:"",px2:"",py1:"","text-sm":"","font-mono":"",to:`/modules/virtual-files?id=${encodeURIComponent(r.id)}`,class:j(r.id===i(a)?.id?"text-primary n-bg-active":"text-secondary hover:n-bg-hover")},{default:l(()=>[q(h(y(r.id)),1)]),_:2},1032,["to","class"]),X],64))),128))]),right:l(()=>[i(a)?.content?(c(),u("div",Y,[_("div",ee,[_("code",null,h(i(a).id),1)]),s(F,{"h-full":"","of-auto":"","text-sm":"",code:i(a).content,lang:"typescript"},null,8,["code"])])):(c(),W(N,{key:1},{default:l(()=>[s(C,{px6:"",py2:""},{default:l(()=>[te]),_:1})]),_:1}))]),_:1}),s(D,null,{default:l(()=>[s(w)]),_:1})],64)}}});export{_e as default};
|
package/dist/client/index.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.559460ac.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.e49b0ddd.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.6a0822c9.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.a69a326f.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.1f3e7ba7.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.bf6672f1.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-docs.100caa70.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.552cd61f.js"><link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-404.91003ceb.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.eb07c617.js"><link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-500.7e02f53c.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.8214e786.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.e49b0ddd.css"><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(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 r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.
|
|
6
|
+
<body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.559460ac.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.559460ac.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.e49b0ddd.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.6a0822c9.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.a69a326f.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.1f3e7ba7.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.bf6672f1.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-docs.100caa70.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.552cd61f.js"><link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-404.91003ceb.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.eb07c617.js"><link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-500.7e02f53c.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.8214e786.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.e49b0ddd.css"><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(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 r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.
|
|
6
|
+
<body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.559460ac.js" crossorigin></script></body>
|
|
7
7
|
</html>
|