@nuxt/devtools 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -60
- package/cli.mjs +1 -1
- package/dist/chunks/module-main.mjs +230 -8365
- package/dist/chunks/plugin-metrics.mjs +2 -0
- package/dist/chunks/vscode.mjs +12 -41561
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/__inspecting/index.html +2 -2
- package/dist/client/_nuxt/{Badge.0f8d5f6f.js → Badge.b694092e.js} +1 -1
- package/dist/client/_nuxt/DrawerRight.vue.f3060893.js +1 -0
- package/dist/client/_nuxt/{DurationDisplay.vue.5c57289e.js → DurationDisplay.vue.0d7e7768.js} +1 -1
- package/dist/client/_nuxt/{FilepathItem.vue.e8c3a52c.js → FilepathItem.vue.c7d65dc2.js} +1 -1
- package/dist/client/_nuxt/{LaunchPage.vue.87f21877.js → LaunchPage.vue.b1763741.js} +1 -1
- package/dist/client/_nuxt/NCheckbox.vue.f03c4497.js +1 -0
- package/dist/client/_nuxt/{NCodeBlock.vue.431c1fae.js → NCodeBlock.vue.f41a0d29.js} +1 -1
- package/dist/client/_nuxt/{NIconButton.vue.9bdc7adc.js → NIconButton.vue.8aefaa88.js} +1 -1
- package/dist/client/_nuxt/{NIconTitle.vue.f40c1405.js → NIconTitle.vue.6c944aa7.js} +1 -1
- package/dist/client/_nuxt/{NMarkdown.vue.725d1f67.js → NMarkdown.vue.ae60adfb.js} +1 -1
- package/dist/client/_nuxt/NSectionBlock.cef5b3bf.js +1 -0
- package/dist/client/_nuxt/{NSelect.vue.b136ef78.js → NSelect.vue.bd089297.js} +1 -1
- package/dist/client/_nuxt/{NSwitch.vue.73a2b8d5.js → NSwitch.vue.ce97ebe7.js} +1 -1
- package/dist/client/_nuxt/NTextInput.vue.188f5529.js +1 -0
- package/dist/client/_nuxt/{NTip.vue.130b714b.js → NTip.vue.2f192405.js} +1 -1
- package/dist/client/_nuxt/{NpmVersionCheck.vue.b49a7a81.js → NpmVersionCheck.vue.2469b5b3.js} +1 -1
- package/dist/client/_nuxt/{NuxtLogo.18339464.js → NuxtLogo.7b90e5d5.js} +1 -1
- package/dist/client/_nuxt/{PanelLeftRight.vue.b026a23a.js → PanelLeftRight.vue.73b30819.js} +1 -1
- package/dist/client/_nuxt/StateEditor.vue.96fdf802.js +1 -0
- package/dist/client/_nuxt/{TabIcon.vue.d87fc756.js → TabIcon.vue.ee21be15.js} +1 -1
- package/dist/client/_nuxt/{__inspecting.9a5a53c2.js → __inspecting.6125f0dc.js} +1 -1
- package/dist/client/_nuxt/assets.3fa6901a.js +16 -0
- package/dist/client/_nuxt/assets.a19ea08e.css +1 -0
- package/dist/client/_nuxt/{components.70b3c3a4.js → components.5589dfe1.js} +1 -1
- package/dist/client/_nuxt/{context.c8f67be1.js → context.10127184.js} +1 -1
- package/dist/client/_nuxt/custom-_name_.3535f298.js +1 -0
- package/dist/client/_nuxt/{default.a8c4c373.js → default.20732cb9.js} +1 -1
- package/dist/client/_nuxt/editor.58d10855.js +1 -0
- package/dist/client/_nuxt/entry.2594199e.css +32 -0
- package/dist/client/_nuxt/{entry.91db41b9.js → entry.e1ce6ad4.js} +102 -102
- package/dist/client/_nuxt/{error-404.6d04f9a0.js → error-404.d7646546.js} +1 -1
- package/dist/client/_nuxt/{error-500.44287dc0.js → error-500.6cac56ab.js} +1 -1
- package/dist/client/_nuxt/{error-component.a0e84e89.js → error-component.a8114c77.js} +2 -2
- package/dist/client/_nuxt/{hooks.784bc58b.js → hooks.196bb064.js} +1 -1
- package/dist/client/_nuxt/{imports.2e67f433.js → imports.0af9087e.js} +1 -1
- package/dist/client/_nuxt/{index.4213289c.js → index.6a39516e.js} +1 -1
- package/dist/client/_nuxt/{index.3b3b7aca.js → index.ce8efa93.js} +1 -1
- package/dist/client/_nuxt/layouts.f9116de3.js +1 -0
- package/dist/client/_nuxt/{middleware.c0b48cbf.js → middleware.6a82419a.js} +1 -1
- package/dist/client/_nuxt/{modules.b85b1f76.js → modules.44c94367.js} +1 -1
- package/dist/client/_nuxt/{none.d95ed4cd.js → none.c8faecb4.js} +1 -1
- package/dist/client/_nuxt/{overview.c2dfff9d.js → overview.8e443c04.js} +1 -1
- package/dist/client/_nuxt/{pages.c8f066b4.js → pages.0df70537.js} +1 -1
- package/dist/client/_nuxt/{payload.299d8527.js → payload.a31b3317.js} +1 -1
- package/dist/client/_nuxt/{plugins.4b3cd1e3.js → plugins.4a0a667e.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs.0f55338b.js → runtime-configs.2e7a9840.js} +1 -1
- package/dist/client/_nuxt/{server-routes.e48a8508.js → server-routes.47766769.js} +1 -1
- package/dist/client/_nuxt/settings.d06b4aaf.js +1 -0
- package/dist/client/_nuxt/{storage.adf41f3f.js → storage.eb42392f.js} +1 -1
- package/dist/client/_nuxt/terminals.1710aa98.js +1 -0
- package/dist/client/_nuxt/unocss-runtime.4fc34dc6.js +2 -0
- package/dist/client/_nuxt/virtual-files.1b4b12ba.js +1 -0
- package/dist/client/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/layouts/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/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/runtime/plugins/devtools.client.mjs +7 -2
- package/package.json +26 -25
- package/dist/cli.d.ts +0 -2
- package/dist/cli.mjs +0 -406
- package/dist/client/_nuxt/DrawerRight.vue.6b933252.js +0 -1
- package/dist/client/_nuxt/NCheckbox.vue.4b9ea1cc.js +0 -1
- package/dist/client/_nuxt/NSectionBlock.aae79980.js +0 -1
- package/dist/client/_nuxt/NTextInput.vue.543d16d0.js +0 -1
- package/dist/client/_nuxt/StateEditor.vue.dae03388.js +0 -1
- package/dist/client/_nuxt/assets.a9e5a6b0.js +0 -16
- package/dist/client/_nuxt/custom-_name_.54344ca3.js +0 -1
- package/dist/client/_nuxt/editor.e302ec86.js +0 -1
- package/dist/client/_nuxt/entry.654353dc.css +0 -32
- package/dist/client/_nuxt/icons.43eaabec.js +0 -1
- package/dist/client/_nuxt/icons.d5925320.js +0 -1
- package/dist/client/_nuxt/icons.eca62571.js +0 -1
- package/dist/client/_nuxt/layouts.3ece608d.js +0 -1
- package/dist/client/_nuxt/settings.b70bc182.js +0 -1
- package/dist/client/_nuxt/terminals.2f58f3e7.js +0 -1
- package/dist/client/_nuxt/unocss-runtime.f654b492.js +0 -2
- package/dist/client/_nuxt/virtual-files.dbe38c70.js +0 -1
- package/dist/shared/devtools.30090c6e.mjs +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{al as a,aW as n,o as r,f as l,h as e,t as s,i as d,w as c,l as p,ah as f,aF as h,aG as x}from"./entry.e1ce6ad4.js";const m=t=>(h("data-v-bf1556d5"),t=t(),x(),t),u={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},g=m(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),b={class:"max-w-520px text-center z-20"},_=["textContent"],w=["textContent"],y={class:"w-full flex items-center justify-center"},S={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const o=t;return n({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(k,v)=>{const i=f;return r(),l("div",u,[g,e("div",b,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,_),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,w),e("div",y,[d(i,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:c(()=>[p(s(t.backHome),1)]),_:1})])])])}}},z=a(S,[["__scopeId","data-v-bf1556d5"]]);export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{al as i,aW as a,o as r,f as n,h as e,t as s,aF as l,aG as d}from"./entry.e1ce6ad4.js";const c=t=>(l("data-v-583914b6"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},h=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),f={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],b={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(x,u)=>(r(),n("div",p,[h,e("div",f,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(b,[["__scopeId","data-v-583914b6"]]);export{w as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{o as l,c as m,n as E,g as f,u as s,d as n,_ as o}from"./entry.
|
|
1
|
+
import{o as l,c as m,n as E,g as f,u as s,d as n,_ as o}from"./entry.e1ce6ad4.js";const g={__name:"nuxt-error-page",props:{error:Object},setup(c){const{error:t}=c;(t.stack||"").split(`
|
|
2
2
|
`).splice(1).map(e=>({text:e.replace("webpack:/","").replace(".vue",".js").trim(),internal:e.includes("node_modules")&&!e.includes(".cache")||e.includes("internal")||e.includes("new Promise")})).map(e=>`<span class="stack${e.internal?" internal":""}">${e.text}</span>`).join(`
|
|
3
|
-
`);const r=Number(t.statusCode||500),a=r===404,u=t.statusMessage??(a?"Page Not Found":"Internal Server Error"),i=t.message||t.toString(),p=void 0,_=a?n(()=>o(()=>import("./error-404.
|
|
3
|
+
`);const r=Number(t.statusCode||500),a=r===404,u=t.statusMessage??(a?"Page Not Found":"Internal Server Error"),i=t.message||t.toString(),p=void 0,_=a?n(()=>o(()=>import("./error-404.d7646546.js"),["./error-404.d7646546.js","./entry.e1ce6ad4.js","./entry.2594199e.css","./error-404.2618a69f.css"],import.meta.url).then(e=>e.default||e)):n(()=>o(()=>import("./error-500.6cac56ab.js"),["./error-500.6cac56ab.js","./entry.e1ce6ad4.js","./entry.2594199e.css","./error-500.12a2683b.css"],import.meta.url).then(e=>e.default||e));return(e,d)=>(l(),m(s(_),E(f({statusCode:s(r),statusMessage:s(u),description:s(i),stack:s(p)})),null,16))}},x=g;export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as N}from"./DurationDisplay.vue.
|
|
1
|
+
import{_ as N}from"./DurationDisplay.vue.0d7e7768.js";import{a as y,D as v,m as w,o as _,f as m,h as e,l as d,x as u,u as s,F as S,v as B,t as p,q as T,i as x,ab as D,b as F,c as V,w as C,y as z}from"./entry.e1ce6ad4.js";import{_ as E}from"./NSectionBlock.cef5b3bf.js";import"./NIconTitle.vue.6c944aa7.js";const I={"w-full":""},L={border:"b base"},O={"select-none":"",p1:"","ws-nowrap":"","text-right":"","font-bold":""},j={colspan:"2","font-bold":"",p1:"","text-left":"",pl5:""},q={p1:"","font-bold":"","ws-nowrap":"","text-center":""},A={p1:"","text-center":"","font-bold":"","ws-nowrap":""},M={p1:"","text-right":"","font-bold":"","ws-nowrap":""},P={"text-center":"","ws-nowrap":"","text-sm":"",op25:"","w-0":""},R={"text-sm":""},G={"ws-nowrap":""},J={"text-sm":""},K={"text-center":"","text-sm":"","w-0":""},Q={"text-center":"","text-sm":"","w-0":""},U={"text-right":"","text-sm":"","w-0":""},W=y({__name:"HooksTable",props:{hooks:null},setup(b){const l=b,a=v("duration"),r=v("asc"),f={duration:(o,t)=>(t.duration??1/0)-(o.duration??1/0),name:(o,t)=>o.name.localeCompare(t.name),listener:(o,t)=>t.listeners-o.listeners,start:(o,t)=>t.start-o.start,executions:(o,t)=>t.executions.length-o.executions.length},k=w(()=>l.hooks.map(o=>o.start).sort((o,t)=>o-t)),h=w(()=>{const o=f[a.value],t=[...l.hooks].sort(o);return r.value==="desc"&&t.reverse(),t});function i(o){const t=o.split(":");return t.length===1?"":`${t[0]}:`}function $(o){const t=o.split(":");return t.length===1?o:t.slice(1).join(":")}function H(o){let t=0;for(let n=0;n<o.length;n++)t=o.charCodeAt(n)+((t<<5)-t);return`hsl(${t%360}, 65%, 50%)`}function c(o){a.value===o?r.value=r.value==="asc"?"desc":"asc":a.value=o}return(o,t)=>{const g=N;return _(),m("table",I,[e("thead",L,[e("tr",null,[e("th",O,[e("button",{onClick:t[0]||(t[0]=n=>c("start"))},[d(" Order "),e("div",{"text-xs":"","ml--1":"",class:u([s(a)==="start"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",j,[e("button",{onClick:t[1]||(t[1]=n=>c("name"))},[d(" Hook name "),e("div",{"text-xs":"","ml--1":"",class:u([s(a)==="name"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",q,[e("button",{onClick:t[2]||(t[2]=n=>c("listener"))},[d(" Listeners "),e("div",{"text-xs":"","ml--1":"",class:u([s(a)==="listener"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",A,[e("button",{onClick:t[3]||(t[3]=n=>c("executions"))},[d(" Executions "),e("div",{"text-xs":"","ml--1":"",class:u([s(a)==="executions"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",M,[e("button",{onClick:t[4]||(t[4]=n=>c("duration"))},[d(" Duration "),e("div",{"text-xs":"","ml--1":"",class:u([s(a)==="duration"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),e("tbody",null,[(_(!0),m(S,null,B(s(h),n=>(_(),m("tr",{key:n.name,border:"b dashed transparent hover:base"},[e("td",P,p(s(k).indexOf(n.start)),1),e("td",{"text-right":"","w-0":"","ws-nowrap":"",style:T({color:H(i(n.name))})},[e("code",R,p(i(n.name)),1)],4),e("td",G,[e("code",J,p($(n.name)),1)]),e("td",K,p(n.listeners),1),e("td",Q,p(n.executions.length+1),1),e("td",U,[x(g,{duration:n.duration},null,8,["duration"])])]))),128))])])}}}),ot=y({__name:"hooks",setup(b){const l=D(),a=F(),r=w(()=>a.value?.getClientHooksMetrics());return(f,k)=>{const h=W,i=E;return _(),m("div",null,[s(r)?.length?(_(),V(i,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${s(r).length}`,padding:"pl4 pr6"},{default:C(()=>[x(h,{hooks:s(r)},null,8,["hooks"])]),_:1},8,["description"])):z("",!0),x(i,{icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${s(l).length}`,padding:"pl4 pr6"},{default:C(()=>[x(h,{hooks:s(l)},null,8,["hooks"])]),_:1},8,["description"])])}}});export{ot as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as F}from"./NTextInput.vue.
|
|
1
|
+
import{_ as F}from"./NTextInput.vue.188f5529.js";import{_ as S}from"./NSwitch.vue.ce97ebe7.js";import{_ as D}from"./FilepathItem.vue.c7d65dc2.js";import{_ as z}from"./NMarkdown.vue.ae60adfb.js";import{a as M,m as k,M as E,o as t,c as h,w as b,h as l,y as v,i as g,u as e,l as w,f as d,F as I,t as V,v as N,x as j,k as T,A,D as U,ac as P,V as K,ad as L,W as R,K as B}from"./entry.e1ce6ad4.js";import{u as W,o as q}from"./editor.58d10855.js";import{_ as G}from"./NSectionBlock.cef5b3bf.js";import{F as H}from"./fuse.esm.88e2763d.js";import"./context.10127184.js";import"./NIconTitle.vue.6c944aa7.js";const J={"hover:text-primary":""},O={key:0,"text-primary":""},Q={"max-w-100":""},X={"text-sm":"",px4:"",py3:""},Y={flex:"~ gap2",n:"primary xs"},Z={border:"t base",px4:"",py3:""},ee={"text-sm":""},te=l("span",{op50:""},"It has been referenced ",-1),oe={"text-primary":""},ae=l("span",{op50:""}," times by:",-1),ne={flex:"~ col gap-2","text-sm":"","items-start":"",pt3:""},se={key:1,op50:"","text-sm":""},ie=M({__name:"ComposableItem",props:{item:null,metadata:null,filepath:null},setup(n){const u=n,x=W(),m=k(()=>u.item.as||u.item.name),c=k(()=>u.metadata?.injectionUsage?.[m.value]?.count||0),s=k(()=>u.metadata?.injectionUsage?.[m.value]?.moduleIds||[]);return(y,_)=>{const i=z,a=T,r=D,$=E("VDropdown");return t(),h($,{disabled:!u.metadata},{popper:b(()=>[l("div",Q,[l("div",X,[n.item.meta?.description?(t(),h(i,{key:0,tag:"div","text-sm":"",pb3:"",markdown:n.item.meta.description},null,8,["markdown"])):v("",!0),l("div",Y,[g(a,{"n-solid":"",onClick:_[0]||(_[0]=p=>e(x)(e(m)))},{default:b(()=>[w(" Copy ")]),_:1}),n.filepath?(t(),h(a,{key:0,"n-solid":"",onClick:_[1]||(_[1]=p=>n.filepath&&("openInEditor"in y?y.openInEditor:e(q))(n.filepath))},{default:b(()=>[w(" Source ")]),_:1})):v("",!0),n.item.meta?.docsUrl?(t(),h(a,{key:1,"n-solid":"",to:n.item.meta?.docsUrl,target:"_blank"},{default:b(()=>[w(" Docs ")]),_:1},8,["to"])):v("",!0)])]),l("div",Z,[e(c)?(t(),d(I,{key:0},[l("div",ee,[te,l("strong",oe,V(e(c)),1),ae]),l("div",ne,[(t(!0),d(I,null,N(e(s),p=>(t(),h(r,{key:p,filepath:p},null,8,["filepath"]))),128))])],64)):(t(),d("div",se," Not in use via auto import. "))])])]),default:b(()=>[l("button",J,[l("code",{px2:"",py1:"",rounded:"","font-mono":"","text-sm":"","bg-gray:5":"",class:j(n.metadata&&!e(c)?"op30 hover:op100":"")},[w(V(e(m))+" ",1),e(c)?(t(),d("sup",O,"x"+V(e(c)),1)):v("",!0)],2)])]),_:1},8,["disabled"])}}}),re={flex:"~ wrap gap2",p2:"",pl4:""},le=M({__name:"ComposableTree",props:{map:null,root:null,metadata:null},setup(n){return(u,x)=>{const m=D,c=ie;return t(),d("div",null,[(t(!0),d(I,null,N(n.map.entries(),([s,y])=>(t(),d("div",{key:s},[g(m,{filepath:s,op50:"","hover:underline":""},null,8,["filepath"]),l("div",re,[(t(!0),d(I,null,N(y,_=>(t(),h(c,{key:_.as,item:_,metadata:n.metadata,filepath:s.match(/^[\w@]/)?void 0:s},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),me={key:0,"h-full":"","of-auto":""},ue={flex:"~ col gap4",border:"b base",px4:"","flex-1":"","navbar-glass":"",pb2:"",pt4:""},ce={key:0},ke=M({__name:"imports",setup(n){const u=A(),x=U(!1),m=U(""),c=P(),s=k(()=>c.value?.metadata),y=k(()=>c.value?.imports.filter(a=>a.as||a.name).sort((a,r)=>(a.as||a.name).localeCompare(r.as||r.name))||[]),_=k(()=>new H(y.value,{keys:["from","as","name"]})),i=k(()=>{const a=new Map,r=new Map,$=new Map;let p=m.value?_.value.search(m.value).map(o=>o.item):y.value;x.value&&s.value&&(p=p.filter(o=>(o.as||o.name)in s.value.injectionUsage));const C={user:0,lib:0,builtin:0};return p.forEach(o=>{const f=K(o.from)?L(R(o.from))?$:r:a;f.has(o.from)||f.set(o.from,[]),f.get(o.from).push(o),C[f===a?"user":f===r?"lib":"builtin"]++}),{user:a,lib:r,builtin:$,count:C}});return(a,r)=>{const $=F,p=S,C=le,o=G;return e(u)?(t(),d("div",me,[l("div",ue,[g($,{modelValue:e(m),"onUpdate:modelValue":r[0]||(r[0]=f=>B(m)?m.value=f:null),placeholder:"Search...",icon:"carbon-search",p:"x5 y2",n:"primary"},null,8,["modelValue"]),e(s)?(t(),d("div",ce,[g(p,{modelValue:e(x),"onUpdate:modelValue":r[1]||(r[1]=f=>B(x)?x.value=f:null),n:"primary sm"},{default:b(()=>[w(" Show used only ")]),_:1},8,["modelValue"])])):v("",!0)]),e(i).user.size?(t(),h(o,{key:0,icon:"carbon-function",text:"User composables",description:`${e(i).count.user} composables from ${e(i).user.size} modules`},{default:b(()=>[g(C,{map:e(i).user,root:e(u).rootDir,metadata:e(s)},null,8,["map","root","metadata"])]),_:1},8,["description"])):v("",!0),e(i).builtin.size?(t(),h(o,{key:1,icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${e(i).count.builtin} composables`},{default:b(()=>[g(C,{map:e(i).builtin,root:e(u).rootDir,metadata:e(s)},null,8,["map","root","metadata"])]),_:1},8,["description"])):v("",!0),e(i).lib.size?(t(),h(o,{key:2,icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${e(i).count.lib} composables from ${e(i).lib.size} packages`},{default:b(()=>[g(C,{map:e(i).lib,root:e(u).rootDir,metadata:e(s)},null,8,["map","root","metadata"])]),_:1},8,["description"])):v("",!0)])):v("",!0)}}});export{ke as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as r}from"./NuxtLogo.
|
|
1
|
+
import{_ as r}from"./NuxtLogo.7b90e5d5.js";import{_ as c}from"./Badge.b694092e.js";import{a as _,o as l,f as u,h as e,i as o,w as p,j as d,k as m,l as t}from"./entry.e1ce6ad4.js";const x={flex:"~ col gap4","h-screen":"","items-center":"","justify-center":"","text-center":"","w-160":"",mxa:""},f={flex:"~","justify-center":"","items-center":""},h=e("p",{"text-xl":"","font-bold":"",my2:""}," 👋 Welcome trying the preview of Nuxt DevTools! ",-1),v=e("p",{"text-lg":""},[e("b",{"font-bold":""},"Nuxt DevTools"),t(" is a set of visual tools that help you to know your app/site better, and enhance your development experience with Nuxt. ")],-1),g=e("p",{"text-lg":""},[t(" Be aware that "),e("span",{px2:"",rounded:"","font-bold":"","bg-orange:10":"","py0.5":"","text-orange":""},"Nuxt DevTools is still in early preview"),t(", features might be incomplete and unstable. "),e("a",{href:"https://github.com/nuxt/devtools",target:"_blank","text-primary":"","hover-underline":""},"Create an issue or discussion"),t(" if you find any bugs or have any suggestions. Thank you and have fun! ")],-1),y=e("span",null,"Get Started",-1),T=_({__name:"index",setup(b){function n(){d.value=!1}return(w,N)=>{const s=r,a=c,i=m;return l(),u("div",x,[e("div",f,[o(s,{"h-16":""}),o(a,{"bg-green-400:10":"","text-green-400":"","mr--15":"","mt--5":"",title:"preview",textContent:"preview"})]),h,v,g,o(i,{to:"/modules/overview","mt-4":"",n:"xl primary",onClick:n},{default:p(()=>[y]),_:1})])}}});export{T as default};
|
|
@@ -13,5 +13,5 @@ function Jr(t,n){for(var r=0;r<n.length;r++){const o=n[r];if(typeof o!="string"&
|
|
|
13
13
|
`),s+=(c.nesting===-1?"</":"<")+c.tag,s+=this.renderAttrs(c),c.nesting===0&&o.xhtmlOut&&(s+=" /"),c.block&&(i=!0,c.nesting===1&&r+1<n.length&&(e=n[r+1],(e.type==="inline"||e.hidden||e.nesting===-1&&e.tag===c.tag)&&(i=!1))),s+=i?`>
|
|
14
14
|
`:">",s)};J.prototype.renderInline=function(t,n,r){for(var o,e="",s=this.rules,i=0,c=t.length;i<c;i++)o=t[i].type,typeof s[o]<"u"?e+=s[o](t,i,n,r,this):e+=this.renderToken(t,i,n);return e};J.prototype.renderInlineAsText=function(t,n,r){for(var o="",e=0,s=t.length;e<s;e++)t[e].type==="text"?o+=t[e].content:t[e].type==="image"?o+=this.renderInlineAsText(t[e].children,n,r):t[e].type==="softbreak"&&(o+=`
|
|
15
15
|
`);return o};J.prototype.render=function(t,n,r){var o,e,s,i="",c=this.rules;for(o=0,e=t.length;o<e;o++)s=t[o].type,s==="inline"?i+=this.renderInline(t[o].children,n,r):typeof c[s]<"u"?i+=c[t[o].type](t,o,n,r,this):i+=this.renderToken(t,o,n,r);return i};var VN=J;function L(){this.__rules__=[],this.__cache__=null}L.prototype.__find__=function(t){for(var n=0;n<this.__rules__.length;n++)if(this.__rules__[n].name===t)return n;return-1};L.prototype.__compile__=function(){var t=this,n=[""];t.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(o){n.indexOf(o)<0&&n.push(o)})}),t.__cache__={},n.forEach(function(r){t.__cache__[r]=[],t.__rules__.forEach(function(o){o.enabled&&(r&&o.alt.indexOf(r)<0||t.__cache__[r].push(o.fn))})})};L.prototype.at=function(t,n,r){var o=this.__find__(t),e=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=n,this.__rules__[o].alt=e.alt||[],this.__cache__=null};L.prototype.before=function(t,n,r,o){var e=this.__find__(t),s=o||{};if(e===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(e,0,{name:n,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null};L.prototype.after=function(t,n,r,o){var e=this.__find__(t),s=o||{};if(e===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(e+1,0,{name:n,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null};L.prototype.push=function(t,n,r){var o=r||{};this.__rules__.push({name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};L.prototype.enable=function(t,n){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(o){var e=this.__find__(o);if(e<0){if(n)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[e].enabled=!0,r.push(o)},this),this.__cache__=null,r};L.prototype.enableOnly=function(t,n){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(t,n)};L.prototype.disable=function(t,n){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(o){var e=this.__find__(o);if(e<0){if(n)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[e].enabled=!1,r.push(o)},this),this.__cache__=null,r};L.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var In=L,$N=/\r\n?|\n/g,jN=/\0/g,GN=function(n){var r;r=n.src.replace($N,`
|
|
16
|
-
`),r=r.replace(jN,"�"),n.src=r},HN=function(n){var r;n.inlineMode?(r=new n.Token("inline","",0),r.content=n.src,r.map=[0,1],r.children=[],n.tokens.push(r)):n.md.block.parse(n.src,n.md,n.env,n.tokens)},ZN=function(n){var r=n.tokens,o,e,s;for(e=0,s=r.length;e<s;e++)o=r[e],o.type==="inline"&&n.md.inline.parse(o.content,n.md,n.env,o.children)},JN=D.arrayReplaceAt;function WN(t){return/^<a[>\s]/i.test(t)}function YN(t){return/^<\/a\s*>/i.test(t)}var QN=function(n){var r,o,e,s,i,c,a,l,u,f,h,p,m,_,v,k,g=n.tokens,x;if(n.md.options.linkify){for(o=0,e=g.length;o<e;o++)if(!(g[o].type!=="inline"||!n.md.linkify.pretest(g[o].content)))for(s=g[o].children,m=0,r=s.length-1;r>=0;r--){if(c=s[r],c.type==="link_close"){for(r--;s[r].level!==c.level&&s[r].type!=="link_open";)r--;continue}if(c.type==="html_inline"&&(WN(c.content)&&m>0&&m--,YN(c.content)&&m++),!(m>0)&&c.type==="text"&&n.md.linkify.test(c.content)){for(u=c.content,x=n.md.linkify.match(u),a=[],p=c.level,h=0,x.length>0&&x[0].index===0&&r>0&&s[r-1].type==="text_special"&&(x=x.slice(1)),l=0;l<x.length;l++)_=x[l].url,v=n.md.normalizeLink(_),n.md.validateLink(v)&&(k=x[l].text,x[l].schema?x[l].schema==="mailto:"&&!/^mailto:/i.test(k)?k=n.md.normalizeLinkText("mailto:"+k).replace(/^mailto:/,""):k=n.md.normalizeLinkText(k):k=n.md.normalizeLinkText("http://"+k).replace(/^http:\/\//,""),f=x[l].index,f>h&&(i=new n.Token("text","",0),i.content=u.slice(h,f),i.level=p,a.push(i)),i=new n.Token("link_open","a",1),i.attrs=[["href",v]],i.level=p++,i.markup="linkify",i.info="auto",a.push(i),i=new n.Token("text","",0),i.content=k,i.level=p,a.push(i),i=new n.Token("link_close","a",-1),i.level=--p,i.markup="linkify",i.info="auto",a.push(i),h=x[l].lastIndex);h<u.length&&(i=new n.Token("text","",0),i.content=u.slice(h),i.level=p,a.push(i)),g[o].children=s=JN(s,r,a)}}}},Tr=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,KN=/\((c|tm|r)\)/i,XN=/\((c|tm|r)\)/ig,nM={c:"©",r:"®",tm:"™"};function rM(t,n){return nM[n.toLowerCase()]}function tM(t){var n,r,o=0;for(n=t.length-1;n>=0;n--)r=t[n],r.type==="text"&&!o&&(r.content=r.content.replace(XN,rM)),r.type==="link_open"&&r.info==="auto"&&o--,r.type==="link_close"&&r.info==="auto"&&o++}function oM(t){var n,r,o=0;for(n=t.length-1;n>=0;n--)r=t[n],r.type==="text"&&!o&&Tr.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&o--,r.type==="link_close"&&r.info==="auto"&&o++}var eM=function(n){var r;if(n.md.options.typographer)for(r=n.tokens.length-1;r>=0;r--)n.tokens[r].type==="inline"&&(KN.test(n.tokens[r].content)&&tM(n.tokens[r].children),Tr.test(n.tokens[r].content)&&oM(n.tokens[r].children))},er=D.isWhiteSpace,sr=D.isPunctChar,cr=D.isMdAsciiPunct,sM=/['"]/,ir=/['"]/g,ar="’";function rn(t,n,r){return t.slice(0,n)+r+t.slice(n+1)}function cM(t,n){var r,o,e,s,i,c,a,l,u,f,h,p,m,_,v,k,g,x,y,C,b;for(y=[],r=0;r<t.length;r++){for(o=t[r],a=t[r].level,g=y.length-1;g>=0&&!(y[g].level<=a);g--);if(y.length=g+1,o.type
|
|
16
|
+
`),r=r.replace(jN,"�"),n.src=r},HN=function(n){var r;n.inlineMode?(r=new n.Token("inline","",0),r.content=n.src,r.map=[0,1],r.children=[],n.tokens.push(r)):n.md.block.parse(n.src,n.md,n.env,n.tokens)},ZN=function(n){var r=n.tokens,o,e,s;for(e=0,s=r.length;e<s;e++)o=r[e],o.type==="inline"&&n.md.inline.parse(o.content,n.md,n.env,o.children)},JN=D.arrayReplaceAt;function WN(t){return/^<a[>\s]/i.test(t)}function YN(t){return/^<\/a\s*>/i.test(t)}var QN=function(n){var r,o,e,s,i,c,a,l,u,f,h,p,m,_,v,k,g=n.tokens,x;if(n.md.options.linkify){for(o=0,e=g.length;o<e;o++)if(!(g[o].type!=="inline"||!n.md.linkify.pretest(g[o].content)))for(s=g[o].children,m=0,r=s.length-1;r>=0;r--){if(c=s[r],c.type==="link_close"){for(r--;s[r].level!==c.level&&s[r].type!=="link_open";)r--;continue}if(c.type==="html_inline"&&(WN(c.content)&&m>0&&m--,YN(c.content)&&m++),!(m>0)&&c.type==="text"&&n.md.linkify.test(c.content)){for(u=c.content,x=n.md.linkify.match(u),a=[],p=c.level,h=0,x.length>0&&x[0].index===0&&r>0&&s[r-1].type==="text_special"&&(x=x.slice(1)),l=0;l<x.length;l++)_=x[l].url,v=n.md.normalizeLink(_),n.md.validateLink(v)&&(k=x[l].text,x[l].schema?x[l].schema==="mailto:"&&!/^mailto:/i.test(k)?k=n.md.normalizeLinkText("mailto:"+k).replace(/^mailto:/,""):k=n.md.normalizeLinkText(k):k=n.md.normalizeLinkText("http://"+k).replace(/^http:\/\//,""),f=x[l].index,f>h&&(i=new n.Token("text","",0),i.content=u.slice(h,f),i.level=p,a.push(i)),i=new n.Token("link_open","a",1),i.attrs=[["href",v]],i.level=p++,i.markup="linkify",i.info="auto",a.push(i),i=new n.Token("text","",0),i.content=k,i.level=p,a.push(i),i=new n.Token("link_close","a",-1),i.level=--p,i.markup="linkify",i.info="auto",a.push(i),h=x[l].lastIndex);h<u.length&&(i=new n.Token("text","",0),i.content=u.slice(h),i.level=p,a.push(i)),g[o].children=s=JN(s,r,a)}}}},Tr=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,KN=/\((c|tm|r)\)/i,XN=/\((c|tm|r)\)/ig,nM={c:"©",r:"®",tm:"™"};function rM(t,n){return nM[n.toLowerCase()]}function tM(t){var n,r,o=0;for(n=t.length-1;n>=0;n--)r=t[n],r.type==="text"&&!o&&(r.content=r.content.replace(XN,rM)),r.type==="link_open"&&r.info==="auto"&&o--,r.type==="link_close"&&r.info==="auto"&&o++}function oM(t){var n,r,o=0;for(n=t.length-1;n>=0;n--)r=t[n],r.type==="text"&&!o&&Tr.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&o--,r.type==="link_close"&&r.info==="auto"&&o++}var eM=function(n){var r;if(n.md.options.typographer)for(r=n.tokens.length-1;r>=0;r--)n.tokens[r].type==="inline"&&(KN.test(n.tokens[r].content)&&tM(n.tokens[r].children),Tr.test(n.tokens[r].content)&&oM(n.tokens[r].children))},er=D.isWhiteSpace,sr=D.isPunctChar,cr=D.isMdAsciiPunct,sM=/['"]/,ir=/['"]/g,ar="’";function rn(t,n,r){return t.slice(0,n)+r+t.slice(n+1)}function cM(t,n){var r,o,e,s,i,c,a,l,u,f,h,p,m,_,v,k,g,x,y,C,b;for(y=[],r=0;r<t.length;r++){for(o=t[r],a=t[r].level,g=y.length-1;g>=0&&!(y[g].level<=a);g--);if(y.length=g+1,o.type==="text"){e=o.content,i=0,c=e.length;n:for(;i<c&&(ir.lastIndex=i,s=ir.exec(e),!!s);){if(v=k=!0,i=s.index+1,x=s[0]==="'",u=32,s.index-1>=0)u=e.charCodeAt(s.index-1);else for(g=r-1;g>=0&&!(t[g].type==="softbreak"||t[g].type==="hardbreak");g--)if(t[g].content){u=t[g].content.charCodeAt(t[g].content.length-1);break}if(f=32,i<c)f=e.charCodeAt(i);else for(g=r+1;g<t.length&&!(t[g].type==="softbreak"||t[g].type==="hardbreak");g++)if(t[g].content){f=t[g].content.charCodeAt(0);break}if(h=cr(u)||sr(String.fromCharCode(u)),p=cr(f)||sr(String.fromCharCode(f)),m=er(u),_=er(f),_?v=!1:p&&(m||h||(v=!1)),m?k=!1:h&&(_||p||(k=!1)),f===34&&s[0]==='"'&&u>=48&&u<=57&&(k=v=!1),v&&k&&(v=h,k=p),!v&&!k){x&&(o.content=rn(o.content,s.index,ar));continue}if(k){for(g=y.length-1;g>=0&&(l=y[g],!(y[g].level<a));g--)if(l.single===x&&y[g].level===a){l=y[g],x?(C=n.md.options.quotes[2],b=n.md.options.quotes[3]):(C=n.md.options.quotes[0],b=n.md.options.quotes[1]),o.content=rn(o.content,s.index,b),t[l.token].content=rn(t[l.token].content,l.pos,C),i+=b.length-1,l.token===r&&(i+=C.length-1),e=o.content,c=e.length,y.length=g;continue n}}v?y.push({token:r,pos:s.index,single:x,level:a}):k&&x&&(o.content=rn(o.content,s.index,ar))}}}}var iM=function(n){var r;if(n.md.options.typographer)for(r=n.tokens.length-1;r>=0;r--)n.tokens[r].type!=="inline"||!sM.test(n.tokens[r].content)||cM(n.tokens[r].children,n)},aM=function(n){var r,o,e,s,i,c,a=n.tokens;for(r=0,o=a.length;r<o;r++)if(a[r].type==="inline"){for(e=a[r].children,i=e.length,s=0;s<i;s++)e[s].type==="text_special"&&(e[s].type="text");for(s=c=0;s<i;s++)e[s].type==="text"&&s+1<i&&e[s+1].type==="text"?e[s+1].content=e[s].content+e[s+1].content:(s!==c&&(e[c]=e[s]),c++);s!==c&&(e.length=c)}};function W(t,n,r){this.type=t,this.tag=n,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}W.prototype.attrIndex=function(n){var r,o,e;if(!this.attrs)return-1;for(r=this.attrs,o=0,e=r.length;o<e;o++)if(r[o][0]===n)return o;return-1};W.prototype.attrPush=function(n){this.attrs?this.attrs.push(n):this.attrs=[n]};W.prototype.attrSet=function(n,r){var o=this.attrIndex(n),e=[n,r];o<0?this.attrPush(e):this.attrs[o]=e};W.prototype.attrGet=function(n){var r=this.attrIndex(n),o=null;return r>=0&&(o=this.attrs[r][1]),o};W.prototype.attrJoin=function(n,r){var o=this.attrIndex(n);o<0?this.attrPush([n,r]):this.attrs[o][1]=this.attrs[o][1]+" "+r};var Bn=W,lM=Bn;function Rr(t,n,r){this.src=t,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=n}Rr.prototype.Token=lM;var uM=Rr,pM=In,yn=[["normalize",GN],["block",HN],["inline",ZN],["linkify",QN],["replacements",eM],["smartquotes",iM],["text_join",aM]];function Nn(){this.ruler=new pM;for(var t=0;t<yn.length;t++)this.ruler.push(yn[t][0],yn[t][1])}Nn.prototype.process=function(t){var n,r,o;for(o=this.ruler.getRules(""),n=0,r=o.length;n<r;n++)o[n](t)};Nn.prototype.State=uM;var fM=Nn,Cn=D.isSpace;function wn(t,n){var r=t.bMarks[n]+t.tShift[n],o=t.eMarks[n];return t.src.slice(r,o)}function lr(t){var n=[],r=0,o=t.length,e,s=!1,i=0,c="";for(e=t.charCodeAt(r);r<o;)e===124&&(s?(c+=t.substring(i,r-1),i=r):(n.push(c+t.substring(i,r)),c="",i=r+1)),s=e===92,r++,e=t.charCodeAt(r);return n.push(c+t.substring(i)),n}var hM=function(n,r,o,e){var s,i,c,a,l,u,f,h,p,m,_,v,k,g,x,y,C,b;if(r+2>o||(u=r+1,n.sCount[u]<n.blkIndent)||n.sCount[u]-n.blkIndent>=4||(c=n.bMarks[u]+n.tShift[u],c>=n.eMarks[u])||(C=n.src.charCodeAt(c++),C!==124&&C!==45&&C!==58)||c>=n.eMarks[u]||(b=n.src.charCodeAt(c++),b!==124&&b!==45&&b!==58&&!Cn(b))||C===45&&Cn(b))return!1;for(;c<n.eMarks[u];){if(s=n.src.charCodeAt(c),s!==124&&s!==45&&s!==58&&!Cn(s))return!1;c++}for(i=wn(n,r+1),f=i.split("|"),m=[],a=0;a<f.length;a++){if(_=f[a].trim(),!_){if(a===0||a===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(_))return!1;_.charCodeAt(_.length-1)===58?m.push(_.charCodeAt(0)===58?"center":"right"):_.charCodeAt(0)===58?m.push("left"):m.push("")}if(i=wn(n,r).trim(),i.indexOf("|")===-1||n.sCount[r]-n.blkIndent>=4||(f=lr(i),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),h=f.length,h===0||h!==m.length))return!1;if(e)return!0;for(g=n.parentType,n.parentType="table",y=n.md.block.ruler.getRules("blockquote"),p=n.push("table_open","table",1),p.map=v=[r,0],p=n.push("thead_open","thead",1),p.map=[r,r+1],p=n.push("tr_open","tr",1),p.map=[r,r+1],a=0;a<f.length;a++)p=n.push("th_open","th",1),m[a]&&(p.attrs=[["style","text-align:"+m[a]]]),p=n.push("inline","",0),p.content=f[a].trim(),p.children=[],p=n.push("th_close","th",-1);for(p=n.push("tr_close","tr",-1),p=n.push("thead_close","thead",-1),u=r+2;u<o&&!(n.sCount[u]<n.blkIndent);u++){for(x=!1,a=0,l=y.length;a<l;a++)if(y[a](n,u,o,!0)){x=!0;break}if(x||(i=wn(n,u).trim(),!i)||n.sCount[u]-n.blkIndent>=4)break;for(f=lr(i),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),u===r+2&&(p=n.push("tbody_open","tbody",1),p.map=k=[r+2,0]),p=n.push("tr_open","tr",1),p.map=[u,u+1],a=0;a<h;a++)p=n.push("td_open","td",1),m[a]&&(p.attrs=[["style","text-align:"+m[a]]]),p=n.push("inline","",0),p.content=f[a]?f[a].trim():"",p.children=[],p=n.push("td_close","td",-1);p=n.push("tr_close","tr",-1)}return k&&(p=n.push("tbody_close","tbody",-1),k[1]=u),p=n.push("table_close","table",-1),v[1]=u,n.parentType=g,n.line=u,!0},dM=function(n,r,o){var e,s,i;if(n.sCount[r]-n.blkIndent<4)return!1;for(s=e=r+1;e<o;){if(n.isEmpty(e)){e++;continue}if(n.sCount[e]-n.blkIndent>=4){e++,s=e;continue}break}return n.line=s,i=n.push("code_block","code",0),i.content=n.getLines(r,s,4+n.blkIndent,!1)+`
|
|
17
17
|
`,i.map=[r,n.line],!0},gM=function(n,r,o,e){var s,i,c,a,l,u,f,h=!1,p=n.bMarks[r]+n.tShift[r],m=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||p+3>m||(s=n.src.charCodeAt(p),s!==126&&s!==96)||(l=p,p=n.skipChars(p,s),i=p-l,i<3)||(f=n.src.slice(l,p),c=n.src.slice(p,m),s===96&&c.indexOf(String.fromCharCode(s))>=0))return!1;if(e)return!0;for(a=r;a++,!(a>=o||(p=l=n.bMarks[a]+n.tShift[a],m=n.eMarks[a],p<m&&n.sCount[a]<n.blkIndent));)if(n.src.charCodeAt(p)===s&&!(n.sCount[a]-n.blkIndent>=4)&&(p=n.skipChars(p,s),!(p-l<i)&&(p=n.skipSpaces(p),!(p<m)))){h=!0;break}return i=n.sCount[r],n.line=a+(h?1:0),u=n.push("fence","code",0),u.info=c,u.content=n.getLines(r+1,a,i,!0),u.markup=f,u.map=[r,n.line],!0},ur=D.isSpace,mM=function(n,r,o,e){var s,i,c,a,l,u,f,h,p,m,_,v,k,g,x,y,C,b,q,F,$=n.lineMax,w=n.bMarks[r]+n.tShift[r],E=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||n.src.charCodeAt(w++)!==62)return!1;if(e)return!0;for(a=p=n.sCount[r]+1,n.src.charCodeAt(w)===32?(w++,a++,p++,s=!1,y=!0):n.src.charCodeAt(w)===9?(y=!0,(n.bsCount[r]+p)%4===3?(w++,a++,p++,s=!1):s=!0):y=!1,m=[n.bMarks[r]],n.bMarks[r]=w;w<E&&(i=n.src.charCodeAt(w),ur(i));){i===9?p+=4-(p+n.bsCount[r]+(s?1:0))%4:p++;w++}for(_=[n.bsCount[r]],n.bsCount[r]=n.sCount[r]+1+(y?1:0),u=w>=E,g=[n.sCount[r]],n.sCount[r]=p-a,x=[n.tShift[r]],n.tShift[r]=w-n.bMarks[r],b=n.md.block.ruler.getRules("blockquote"),k=n.parentType,n.parentType="blockquote",h=r+1;h<o&&(F=n.sCount[h]<n.blkIndent,w=n.bMarks[h]+n.tShift[h],E=n.eMarks[h],!(w>=E));h++){if(n.src.charCodeAt(w++)===62&&!F){for(a=p=n.sCount[h]+1,n.src.charCodeAt(w)===32?(w++,a++,p++,s=!1,y=!0):n.src.charCodeAt(w)===9?(y=!0,(n.bsCount[h]+p)%4===3?(w++,a++,p++,s=!1):s=!0):y=!1,m.push(n.bMarks[h]),n.bMarks[h]=w;w<E&&(i=n.src.charCodeAt(w),ur(i));){i===9?p+=4-(p+n.bsCount[h]+(s?1:0))%4:p++;w++}u=w>=E,_.push(n.bsCount[h]),n.bsCount[h]=n.sCount[h]+1+(y?1:0),g.push(n.sCount[h]),n.sCount[h]=p-a,x.push(n.tShift[h]),n.tShift[h]=w-n.bMarks[h];continue}if(u)break;for(C=!1,c=0,l=b.length;c<l;c++)if(b[c](n,h,o,!0)){C=!0;break}if(C){n.lineMax=h,n.blkIndent!==0&&(m.push(n.bMarks[h]),_.push(n.bsCount[h]),x.push(n.tShift[h]),g.push(n.sCount[h]),n.sCount[h]-=n.blkIndent);break}m.push(n.bMarks[h]),_.push(n.bsCount[h]),x.push(n.tShift[h]),g.push(n.sCount[h]),n.sCount[h]=-1}for(v=n.blkIndent,n.blkIndent=0,q=n.push("blockquote_open","blockquote",1),q.markup=">",q.map=f=[r,0],n.md.block.tokenize(n,r,h),q=n.push("blockquote_close","blockquote",-1),q.markup=">",n.lineMax=$,n.parentType=k,f[1]=n.line,c=0;c<x.length;c++)n.bMarks[c+r]=m[c],n.tShift[c+r]=x[c],n.sCount[c+r]=g[c],n.bsCount[c+r]=_[c];return n.blkIndent=v,!0},bM=D.isSpace,_M=function(n,r,o,e){var s,i,c,a,l=n.bMarks[r]+n.tShift[r],u=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||(s=n.src.charCodeAt(l++),s!==42&&s!==45&&s!==95))return!1;for(i=1;l<u;){if(c=n.src.charCodeAt(l++),c!==s&&!bM(c))return!1;c===s&&i++}return i<3?!1:(e||(n.line=r+1,a=n.push("hr","hr",0),a.map=[r,n.line],a.markup=Array(i+1).join(String.fromCharCode(s))),!0)},Lr=D.isSpace;function pr(t,n){var r,o,e,s;return o=t.bMarks[n]+t.tShift[n],e=t.eMarks[n],r=t.src.charCodeAt(o++),r!==42&&r!==45&&r!==43||o<e&&(s=t.src.charCodeAt(o),!Lr(s))?-1:o}function fr(t,n){var r,o=t.bMarks[n]+t.tShift[n],e=o,s=t.eMarks[n];if(e+1>=s||(r=t.src.charCodeAt(e++),r<48||r>57))return-1;for(;;){if(e>=s)return-1;if(r=t.src.charCodeAt(e++),r>=48&&r<=57){if(e-o>=10)return-1;continue}if(r===41||r===46)break;return-1}return e<s&&(r=t.src.charCodeAt(e),!Lr(r))?-1:e}function kM(t,n){var r,o,e=t.level+2;for(r=n+2,o=t.tokens.length-2;r<o;r++)t.tokens[r].level===e&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].hidden=!0,t.tokens[r].hidden=!0,r+=2)}var xM=function(n,r,o,e){var s,i,c,a,l,u,f,h,p,m,_,v,k,g,x,y,C,b,q,F,$,w,E,Y,j,d,S,A,M=!1,jn=!0;if(n.sCount[r]-n.blkIndent>=4||n.listIndent>=0&&n.sCount[r]-n.listIndent>=4&&n.sCount[r]<n.blkIndent)return!1;if(e&&n.parentType==="paragraph"&&n.sCount[r]>=n.blkIndent&&(M=!0),(E=fr(n,r))>=0){if(f=!0,j=n.bMarks[r]+n.tShift[r],k=Number(n.src.slice(j,E-1)),M&&k!==1)return!1}else if((E=pr(n,r))>=0)f=!1;else return!1;if(M&&n.skipSpaces(E)>=n.eMarks[r])return!1;if(v=n.src.charCodeAt(E-1),e)return!0;for(_=n.tokens.length,f?(A=n.push("ordered_list_open","ol",1),k!==1&&(A.attrs=[["start",k]])):A=n.push("bullet_list_open","ul",1),A.map=m=[r,0],A.markup=String.fromCharCode(v),x=r,Y=!1,S=n.md.block.ruler.getRules("list"),b=n.parentType,n.parentType="list";x<o;){for(w=E,g=n.eMarks[x],u=y=n.sCount[x]+E-(n.bMarks[r]+n.tShift[r]);w<g;){if(s=n.src.charCodeAt(w),s===9)y+=4-(y+n.bsCount[x])%4;else if(s===32)y++;else break;w++}if(i=w,i>=g?l=1:l=y-u,l>4&&(l=1),a=u+l,A=n.push("list_item_open","li",1),A.markup=String.fromCharCode(v),A.map=h=[r,0],f&&(A.info=n.src.slice(j,E-1)),$=n.tight,F=n.tShift[r],q=n.sCount[r],C=n.listIndent,n.listIndent=n.blkIndent,n.blkIndent=a,n.tight=!0,n.tShift[r]=i-n.bMarks[r],n.sCount[r]=y,i>=g&&n.isEmpty(r+1)?n.line=Math.min(n.line+2,o):n.md.block.tokenize(n,r,o,!0),(!n.tight||Y)&&(jn=!1),Y=n.line-r>1&&n.isEmpty(n.line-1),n.blkIndent=n.listIndent,n.listIndent=C,n.tShift[r]=F,n.sCount[r]=q,n.tight=$,A=n.push("list_item_close","li",-1),A.markup=String.fromCharCode(v),x=r=n.line,h[1]=x,i=n.bMarks[r],x>=o||n.sCount[x]<n.blkIndent||n.sCount[r]-n.blkIndent>=4)break;for(d=!1,c=0,p=S.length;c<p;c++)if(S[c](n,x,o,!0)){d=!0;break}if(d)break;if(f){if(E=fr(n,x),E<0)break;j=n.bMarks[x]+n.tShift[x]}else if(E=pr(n,x),E<0)break;if(v!==n.src.charCodeAt(E-1))break}return f?A=n.push("ordered_list_close","ol",-1):A=n.push("bullet_list_close","ul",-1),A.markup=String.fromCharCode(v),m[1]=x,n.line=x,n.parentType=b,jn&&kM(n,_),!0},vM=D.normalizeReference,tn=D.isSpace,yM=function(n,r,o,e){var s,i,c,a,l,u,f,h,p,m,_,v,k,g,x,y,C=0,b=n.bMarks[r]+n.tShift[r],q=n.eMarks[r],F=r+1;if(n.sCount[r]-n.blkIndent>=4||n.src.charCodeAt(b)!==91)return!1;for(;++b<q;)if(n.src.charCodeAt(b)===93&&n.src.charCodeAt(b-1)!==92){if(b+1===q||n.src.charCodeAt(b+1)!==58)return!1;break}for(a=n.lineMax,x=n.md.block.ruler.getRules("reference"),m=n.parentType,n.parentType="reference";F<a&&!n.isEmpty(F);F++)if(!(n.sCount[F]-n.blkIndent>3)&&!(n.sCount[F]<0)){for(g=!1,u=0,f=x.length;u<f;u++)if(x[u](n,F,a,!0)){g=!0;break}if(g)break}for(k=n.getLines(r,F,n.blkIndent,!1).trim(),q=k.length,b=1;b<q;b++){if(s=k.charCodeAt(b),s===91)return!1;if(s===93){p=b;break}else s===10?C++:s===92&&(b++,b<q&&k.charCodeAt(b)===10&&C++)}if(p<0||k.charCodeAt(p+1)!==58)return!1;for(b=p+2;b<q;b++)if(s=k.charCodeAt(b),s===10)C++;else if(!tn(s))break;if(_=n.md.helpers.parseLinkDestination(k,b,q),!_.ok||(l=n.md.normalizeLink(_.str),!n.md.validateLink(l)))return!1;for(b=_.pos,C+=_.lines,i=b,c=C,v=b;b<q;b++)if(s=k.charCodeAt(b),s===10)C++;else if(!tn(s))break;for(_=n.md.helpers.parseLinkTitle(k,b,q),b<q&&v!==b&&_.ok?(y=_.str,b=_.pos,C+=_.lines):(y="",b=i,C=c);b<q&&(s=k.charCodeAt(b),!!tn(s));)b++;if(b<q&&k.charCodeAt(b)!==10&&y)for(y="",b=i,C=c;b<q&&(s=k.charCodeAt(b),!!tn(s));)b++;return b<q&&k.charCodeAt(b)!==10||(h=vM(k.slice(1,p)),!h)?!1:(e||(typeof n.env.references>"u"&&(n.env.references={}),typeof n.env.references[h]>"u"&&(n.env.references[h]={title:y,href:l}),n.parentType=m,n.line=r+C+1),!0)},CM=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],fn={},wM="[a-zA-Z_:][a-zA-Z0-9:._-]*",AM="[^\"'=<>`\\x00-\\x20]+",DM="'[^']*'",qM='"[^"]*"',EM="(?:"+AM+"|"+DM+"|"+qM+")",SM="(?:\\s+"+wM+"(?:\\s*=\\s*"+EM+")?)",zr="<[A-Za-z][A-Za-z0-9\\-]*"+SM+"*\\s*\\/?>",Ir="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",FM="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",TM="<[?][\\s\\S]*?[?]>",RM="<![A-Z]+\\s+[^>]*>",LM="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",zM=new RegExp("^(?:"+zr+"|"+Ir+"|"+FM+"|"+TM+"|"+RM+"|"+LM+")"),IM=new RegExp("^(?:"+zr+"|"+Ir+")");fn.HTML_TAG_RE=zM;fn.HTML_OPEN_CLOSE_TAG_RE=IM;var BM=CM,NM=fn.HTML_OPEN_CLOSE_TAG_RE,G=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+BM.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(NM.source+"\\s*$"),/^$/,!1]],MM=function(n,r,o,e){var s,i,c,a,l=n.bMarks[r]+n.tShift[r],u=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||!n.md.options.html||n.src.charCodeAt(l)!==60)return!1;for(a=n.src.slice(l,u),s=0;s<G.length&&!G[s][0].test(a);s++);if(s===G.length)return!1;if(e)return G[s][2];if(i=r+1,!G[s][1].test(a)){for(;i<o&&!(n.sCount[i]<n.blkIndent);i++)if(l=n.bMarks[i]+n.tShift[i],u=n.eMarks[i],a=n.src.slice(l,u),G[s][1].test(a)){a.length!==0&&i++;break}}return n.line=i,c=n.push("html_block","",0),c.map=[r,i],c.content=n.getLines(r,i,n.blkIndent,!0),!0},hr=D.isSpace,PM=function(n,r,o,e){var s,i,c,a,l=n.bMarks[r]+n.tShift[r],u=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||(s=n.src.charCodeAt(l),s!==35||l>=u))return!1;for(i=1,s=n.src.charCodeAt(++l);s===35&&l<u&&i<=6;)i++,s=n.src.charCodeAt(++l);return i>6||l<u&&!hr(s)?!1:(e||(u=n.skipSpacesBack(u,l),c=n.skipCharsBack(u,35,l),c>l&&hr(n.src.charCodeAt(c-1))&&(u=c),n.line=r+1,a=n.push("heading_open","h"+String(i),1),a.markup="########".slice(0,i),a.map=[r,n.line],a=n.push("inline","",0),a.content=n.src.slice(l,u).trim(),a.map=[r,n.line],a.children=[],a=n.push("heading_close","h"+String(i),-1),a.markup="########".slice(0,i)),!0)},OM=function(n,r,o){var e,s,i,c,a,l,u,f,h,p=r+1,m,_=n.md.block.ruler.getRules("paragraph");if(n.sCount[r]-n.blkIndent>=4)return!1;for(m=n.parentType,n.parentType="paragraph";p<o&&!n.isEmpty(p);p++)if(!(n.sCount[p]-n.blkIndent>3)){if(n.sCount[p]>=n.blkIndent&&(l=n.bMarks[p]+n.tShift[p],u=n.eMarks[p],l<u&&(h=n.src.charCodeAt(l),(h===45||h===61)&&(l=n.skipChars(l,h),l=n.skipSpaces(l),l>=u)))){f=h===61?1:2;break}if(!(n.sCount[p]<0)){for(s=!1,i=0,c=_.length;i<c;i++)if(_[i](n,p,o,!0)){s=!0;break}if(s)break}}return f?(e=n.getLines(r,p,n.blkIndent,!1).trim(),n.line=p+1,a=n.push("heading_open","h"+String(f),1),a.markup=String.fromCharCode(h),a.map=[r,n.line],a=n.push("inline","",0),a.content=e,a.map=[r,n.line-1],a.children=[],a=n.push("heading_close","h"+String(f),-1),a.markup=String.fromCharCode(h),n.parentType=m,!0):!1},UM=function(n,r){var o,e,s,i,c,a,l=r+1,u=n.md.block.ruler.getRules("paragraph"),f=n.lineMax;for(a=n.parentType,n.parentType="paragraph";l<f&&!n.isEmpty(l);l++)if(!(n.sCount[l]-n.blkIndent>3)&&!(n.sCount[l]<0)){for(e=!1,s=0,i=u.length;s<i;s++)if(u[s](n,l,f,!0)){e=!0;break}if(e)break}return o=n.getLines(r,l,n.blkIndent,!1).trim(),n.line=l,c=n.push("paragraph_open","p",1),c.map=[r,n.line],c=n.push("inline","",0),c.content=o,c.map=[r,n.line],c.children=[],c=n.push("paragraph_close","p",-1),n.parentType=a,!0},Br=Bn,hn=D.isSpace;function N(t,n,r,o){var e,s,i,c,a,l,u,f;for(this.src=t,this.md=n,this.env=r,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",s=this.src,f=!1,i=c=l=u=0,a=s.length;c<a;c++){if(e=s.charCodeAt(c),!f)if(hn(e)){l++,e===9?u+=4-u%4:u++;continue}else f=!0;(e===10||c===a-1)&&(e!==10&&c++,this.bMarks.push(i),this.eMarks.push(c),this.tShift.push(l),this.sCount.push(u),this.bsCount.push(0),f=!1,l=0,u=0,i=c+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}N.prototype.push=function(t,n,r){var o=new Br(t,n,r);return o.block=!0,r<0&&this.level--,o.level=this.level,r>0&&this.level++,this.tokens.push(o),o};N.prototype.isEmpty=function(n){return this.bMarks[n]+this.tShift[n]>=this.eMarks[n]};N.prototype.skipEmptyLines=function(n){for(var r=this.lineMax;n<r&&!(this.bMarks[n]+this.tShift[n]<this.eMarks[n]);n++);return n};N.prototype.skipSpaces=function(n){for(var r,o=this.src.length;n<o&&(r=this.src.charCodeAt(n),!!hn(r));n++);return n};N.prototype.skipSpacesBack=function(n,r){if(n<=r)return n;for(;n>r;)if(!hn(this.src.charCodeAt(--n)))return n+1;return n};N.prototype.skipChars=function(n,r){for(var o=this.src.length;n<o&&this.src.charCodeAt(n)===r;n++);return n};N.prototype.skipCharsBack=function(n,r,o){if(n<=o)return n;for(;n>o;)if(r!==this.src.charCodeAt(--n))return n+1;return n};N.prototype.getLines=function(n,r,o,e){var s,i,c,a,l,u,f,h=n;if(n>=r)return"";for(u=new Array(r-n),s=0;h<r;h++,s++){for(i=0,f=a=this.bMarks[h],h+1<r||e?l=this.eMarks[h]+1:l=this.eMarks[h];a<l&&i<o;){if(c=this.src.charCodeAt(a),hn(c))c===9?i+=4-(i+this.bsCount[h])%4:i++;else if(a-f<this.tShift[h])i++;else break;a++}i>o?u[s]=new Array(i-o+1).join(" ")+this.src.slice(a,l):u[s]=this.src.slice(a,l)}return u.join("")};N.prototype.Token=Br;var VM=N,$M=In,on=[["table",hM,["paragraph","reference"]],["code",dM],["fence",gM,["paragraph","reference","blockquote","list"]],["blockquote",mM,["paragraph","reference","blockquote","list"]],["hr",_M,["paragraph","reference","blockquote","list"]],["list",xM,["paragraph","reference","blockquote"]],["reference",yM],["html_block",MM,["paragraph","reference","blockquote"]],["heading",PM,["paragraph","reference","blockquote"]],["lheading",OM],["paragraph",UM]];function dn(){this.ruler=new $M;for(var t=0;t<on.length;t++)this.ruler.push(on[t][0],on[t][1],{alt:(on[t][2]||[]).slice()})}dn.prototype.tokenize=function(t,n,r){for(var o,e,s=this.ruler.getRules(""),i=s.length,c=n,a=!1,l=t.md.options.maxNesting;c<r&&(t.line=c=t.skipEmptyLines(c),!(c>=r||t.sCount[c]<t.blkIndent));){if(t.level>=l){t.line=r;break}for(e=0;e<i&&(o=s[e](t,c,r,!1),!o);e++);t.tight=!a,t.isEmpty(t.line-1)&&(a=!0),c=t.line,c<r&&t.isEmpty(c)&&(a=!0,c++,t.line=c)}};dn.prototype.parse=function(t,n,r,o){var e;t&&(e=new this.State(t,n,r,o),this.tokenize(e,e.line,e.lineMax))};dn.prototype.State=VM;var jM=dn;function GM(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var HM=function(n,r){for(var o=n.pos;o<n.posMax&&!GM(n.src.charCodeAt(o));)o++;return o===n.pos?!1:(r||(n.pending+=n.src.slice(n.pos,o)),n.pos=o,!0)},ZM=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,JM=function(n,r){var o,e,s,i,c,a,l,u;return!n.md.options.linkify||n.linkLevel>0||(o=n.pos,e=n.posMax,o+3>e)||n.src.charCodeAt(o)!==58||n.src.charCodeAt(o+1)!==47||n.src.charCodeAt(o+2)!==47||(s=n.pending.match(ZM),!s)||(i=s[1],c=n.md.linkify.matchAtStart(n.src.slice(o-i.length)),!c)||(a=c.url,a=a.replace(/\*+$/,""),l=n.md.normalizeLink(a),!n.md.validateLink(l))?!1:(r||(n.pending=n.pending.slice(0,-i.length),u=n.push("link_open","a",1),u.attrs=[["href",l]],u.markup="linkify",u.info="auto",u=n.push("text","",0),u.content=n.md.normalizeLinkText(a),u=n.push("link_close","a",-1),u.markup="linkify",u.info="auto"),n.pos+=a.length-i.length,!0)},WM=D.isSpace,YM=function(n,r){var o,e,s,i=n.pos;if(n.src.charCodeAt(i)!==10)return!1;if(o=n.pending.length-1,e=n.posMax,!r)if(o>=0&&n.pending.charCodeAt(o)===32)if(o>=1&&n.pending.charCodeAt(o-1)===32){for(s=o-1;s>=1&&n.pending.charCodeAt(s-1)===32;)s--;n.pending=n.pending.slice(0,s),n.push("hardbreak","br",0)}else n.pending=n.pending.slice(0,-1),n.push("softbreak","br",0);else n.push("softbreak","br",0);for(i++;i<e&&WM(n.src.charCodeAt(i));)i++;return n.pos=i,!0},QM=D.isSpace,Mn=[];for(var dr=0;dr<256;dr++)Mn.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){Mn[t.charCodeAt(0)]=1});var KM=function(n,r){var o,e,s,i,c,a=n.pos,l=n.posMax;if(n.src.charCodeAt(a)!==92||(a++,a>=l))return!1;if(o=n.src.charCodeAt(a),o===10){for(r||n.push("hardbreak","br",0),a++;a<l&&(o=n.src.charCodeAt(a),!!QM(o));)a++;return n.pos=a,!0}return i=n.src[a],o>=55296&&o<=56319&&a+1<l&&(e=n.src.charCodeAt(a+1),e>=56320&&e<=57343&&(i+=n.src[a+1],a++)),s="\\"+i,r||(c=n.push("text_special","",0),o<256&&Mn[o]!==0?c.content=i:c.content=s,c.markup=s,c.info="escape"),n.pos=a+1,!0},XM=function(n,r){var o,e,s,i,c,a,l,u,f=n.pos,h=n.src.charCodeAt(f);if(h!==96)return!1;for(o=f,f++,e=n.posMax;f<e&&n.src.charCodeAt(f)===96;)f++;if(s=n.src.slice(o,f),l=s.length,n.backticksScanned&&(n.backticks[l]||0)<=o)return r||(n.pending+=s),n.pos+=l,!0;for(c=a=f;(c=n.src.indexOf("`",a))!==-1;){for(a=c+1;a<e&&n.src.charCodeAt(a)===96;)a++;if(u=a-c,u===l)return r||(i=n.push("code_inline","code",0),i.markup=s,i.content=n.src.slice(f,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),n.pos=a,!0;n.backticks[u]=c}return n.backticksScanned=!0,r||(n.pending+=s),n.pos+=l,!0},gn={};gn.tokenize=function(n,r){var o,e,s,i,c,a=n.pos,l=n.src.charCodeAt(a);if(r||l!==126||(e=n.scanDelims(n.pos,!0),i=e.length,c=String.fromCharCode(l),i<2))return!1;for(i%2&&(s=n.push("text","",0),s.content=c,i--),o=0;o<i;o+=2)s=n.push("text","",0),s.content=c+c,n.delimiters.push({marker:l,length:0,token:n.tokens.length-1,end:-1,open:e.can_open,close:e.can_close});return n.pos+=e.length,!0};function gr(t,n){var r,o,e,s,i,c=[],a=n.length;for(r=0;r<a;r++)e=n[r],e.marker===126&&e.end!==-1&&(s=n[e.end],i=t.tokens[e.token],i.type="s_open",i.tag="s",i.nesting=1,i.markup="~~",i.content="",i=t.tokens[s.token],i.type="s_close",i.tag="s",i.nesting=-1,i.markup="~~",i.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&c.push(s.token-1));for(;c.length;){for(r=c.pop(),o=r+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,r!==o&&(i=t.tokens[o],t.tokens[o]=t.tokens[r],t.tokens[r]=i)}}gn.postProcess=function(n){var r,o=n.tokens_meta,e=n.tokens_meta.length;for(gr(n,n.delimiters),r=0;r<e;r++)o[r]&&o[r].delimiters&&gr(n,o[r].delimiters)};var mn={};mn.tokenize=function(n,r){var o,e,s,i=n.pos,c=n.src.charCodeAt(i);if(r||c!==95&&c!==42)return!1;for(e=n.scanDelims(n.pos,c===42),o=0;o<e.length;o++)s=n.push("text","",0),s.content=String.fromCharCode(c),n.delimiters.push({marker:c,length:e.length,token:n.tokens.length-1,end:-1,open:e.can_open,close:e.can_close});return n.pos+=e.length,!0};function mr(t,n){var r,o,e,s,i,c,a=n.length;for(r=a-1;r>=0;r--)o=n[r],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(e=n[o.end],c=r>0&&n[r-1].end===o.end+1&&n[r-1].marker===o.marker&&n[r-1].token===o.token-1&&n[o.end+1].token===e.token+1,i=String.fromCharCode(o.marker),s=t.tokens[o.token],s.type=c?"strong_open":"em_open",s.tag=c?"strong":"em",s.nesting=1,s.markup=c?i+i:i,s.content="",s=t.tokens[e.token],s.type=c?"strong_close":"em_close",s.tag=c?"strong":"em",s.nesting=-1,s.markup=c?i+i:i,s.content="",c&&(t.tokens[n[r-1].token].content="",t.tokens[n[o.end+1].token].content="",r--))}mn.postProcess=function(n){var r,o=n.tokens_meta,e=n.tokens_meta.length;for(mr(n,n.delimiters),r=0;r<e;r++)o[r]&&o[r].delimiters&&mr(n,o[r].delimiters)};var nP=D.normalizeReference,An=D.isSpace,rP=function(n,r){var o,e,s,i,c,a,l,u,f,h="",p="",m=n.pos,_=n.posMax,v=n.pos,k=!0;if(n.src.charCodeAt(n.pos)!==91||(c=n.pos+1,i=n.md.helpers.parseLinkLabel(n,n.pos,!0),i<0))return!1;if(a=i+1,a<_&&n.src.charCodeAt(a)===40){for(k=!1,a++;a<_&&(e=n.src.charCodeAt(a),!(!An(e)&&e!==10));a++);if(a>=_)return!1;if(v=a,l=n.md.helpers.parseLinkDestination(n.src,a,n.posMax),l.ok){for(h=n.md.normalizeLink(l.str),n.md.validateLink(h)?a=l.pos:h="",v=a;a<_&&(e=n.src.charCodeAt(a),!(!An(e)&&e!==10));a++);if(l=n.md.helpers.parseLinkTitle(n.src,a,n.posMax),a<_&&v!==a&&l.ok)for(p=l.str,a=l.pos;a<_&&(e=n.src.charCodeAt(a),!(!An(e)&&e!==10));a++);}(a>=_||n.src.charCodeAt(a)!==41)&&(k=!0),a++}if(k){if(typeof n.env.references>"u")return!1;if(a<_&&n.src.charCodeAt(a)===91?(v=a+1,a=n.md.helpers.parseLinkLabel(n,a),a>=0?s=n.src.slice(v,a++):a=i+1):a=i+1,s||(s=n.src.slice(c,i)),u=n.env.references[nP(s)],!u)return n.pos=m,!1;h=u.href,p=u.title}return r||(n.pos=c,n.posMax=i,f=n.push("link_open","a",1),f.attrs=o=[["href",h]],p&&o.push(["title",p]),n.linkLevel++,n.md.inline.tokenize(n),n.linkLevel--,f=n.push("link_close","a",-1)),n.pos=a,n.posMax=_,!0},tP=D.normalizeReference,Dn=D.isSpace,oP=function(n,r){var o,e,s,i,c,a,l,u,f,h,p,m,_,v="",k=n.pos,g=n.posMax;if(n.src.charCodeAt(n.pos)!==33||n.src.charCodeAt(n.pos+1)!==91||(a=n.pos+2,c=n.md.helpers.parseLinkLabel(n,n.pos+1,!1),c<0))return!1;if(l=c+1,l<g&&n.src.charCodeAt(l)===40){for(l++;l<g&&(e=n.src.charCodeAt(l),!(!Dn(e)&&e!==10));l++);if(l>=g)return!1;for(_=l,f=n.md.helpers.parseLinkDestination(n.src,l,n.posMax),f.ok&&(v=n.md.normalizeLink(f.str),n.md.validateLink(v)?l=f.pos:v=""),_=l;l<g&&(e=n.src.charCodeAt(l),!(!Dn(e)&&e!==10));l++);if(f=n.md.helpers.parseLinkTitle(n.src,l,n.posMax),l<g&&_!==l&&f.ok)for(h=f.str,l=f.pos;l<g&&(e=n.src.charCodeAt(l),!(!Dn(e)&&e!==10));l++);else h="";if(l>=g||n.src.charCodeAt(l)!==41)return n.pos=k,!1;l++}else{if(typeof n.env.references>"u")return!1;if(l<g&&n.src.charCodeAt(l)===91?(_=l+1,l=n.md.helpers.parseLinkLabel(n,l),l>=0?i=n.src.slice(_,l++):l=c+1):l=c+1,i||(i=n.src.slice(a,c)),u=n.env.references[tP(i)],!u)return n.pos=k,!1;v=u.href,h=u.title}return r||(s=n.src.slice(a,c),n.md.inline.parse(s,n.md,n.env,m=[]),p=n.push("image","img",0),p.attrs=o=[["src",v],["alt",""]],p.children=m,p.content=s,h&&o.push(["title",h])),n.pos=l,n.posMax=g,!0},eP=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,sP=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,cP=function(n,r){var o,e,s,i,c,a,l=n.pos;if(n.src.charCodeAt(l)!==60)return!1;for(c=n.pos,a=n.posMax;;){if(++l>=a||(i=n.src.charCodeAt(l),i===60))return!1;if(i===62)break}return o=n.src.slice(c+1,l),sP.test(o)?(e=n.md.normalizeLink(o),n.md.validateLink(e)?(r||(s=n.push("link_open","a",1),s.attrs=[["href",e]],s.markup="autolink",s.info="auto",s=n.push("text","",0),s.content=n.md.normalizeLinkText(o),s=n.push("link_close","a",-1),s.markup="autolink",s.info="auto"),n.pos+=o.length+2,!0):!1):eP.test(o)?(e=n.md.normalizeLink("mailto:"+o),n.md.validateLink(e)?(r||(s=n.push("link_open","a",1),s.attrs=[["href",e]],s.markup="autolink",s.info="auto",s=n.push("text","",0),s.content=n.md.normalizeLinkText(o),s=n.push("link_close","a",-1),s.markup="autolink",s.info="auto"),n.pos+=o.length+2,!0):!1):!1},iP=fn.HTML_TAG_RE;function aP(t){return/^<a[>\s]/i.test(t)}function lP(t){return/^<\/a\s*>/i.test(t)}function uP(t){var n=t|32;return n>=97&&n<=122}var pP=function(n,r){var o,e,s,i,c=n.pos;return!n.md.options.html||(s=n.posMax,n.src.charCodeAt(c)!==60||c+2>=s)||(o=n.src.charCodeAt(c+1),o!==33&&o!==63&&o!==47&&!uP(o))||(e=n.src.slice(c).match(iP),!e)?!1:(r||(i=n.push("html_inline","",0),i.content=n.src.slice(c,c+e[0].length),aP(i.content)&&n.linkLevel++,lP(i.content)&&n.linkLevel--),n.pos+=e[0].length,!0)},br=sn,fP=D.has,hP=D.isValidEntityCode,_r=D.fromCodePoint,dP=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,gP=/^&([a-z][a-z0-9]{1,31});/i,mP=function(n,r){var o,e,s,i,c=n.pos,a=n.posMax;if(n.src.charCodeAt(c)!==38||c+1>=a)return!1;if(o=n.src.charCodeAt(c+1),o===35){if(s=n.src.slice(c).match(dP),s)return r||(e=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),i=n.push("text_special","",0),i.content=hP(e)?_r(e):_r(65533),i.markup=s[0],i.info="entity"),n.pos+=s[0].length,!0}else if(s=n.src.slice(c).match(gP),s&&fP(br,s[1]))return r||(i=n.push("text_special","",0),i.content=br[s[1]],i.markup=s[0],i.info="entity"),n.pos+=s[0].length,!0;return!1};function kr(t,n){var r,o,e,s,i,c,a,l,u={},f=n.length;if(f){var h=0,p=-2,m=[];for(r=0;r<f;r++)if(e=n[r],m.push(0),(n[h].marker!==e.marker||p!==e.token-1)&&(h=r),p=e.token,e.length=e.length||0,!!e.close){for(u.hasOwnProperty(e.marker)||(u[e.marker]=[-1,-1,-1,-1,-1,-1]),i=u[e.marker][(e.open?3:0)+e.length%3],o=h-m[h]-1,c=o;o>i;o-=m[o]+1)if(s=n[o],s.marker===e.marker&&s.open&&s.end<0&&(a=!1,(s.close||e.open)&&(s.length+e.length)%3===0&&(s.length%3!==0||e.length%3!==0)&&(a=!0),!a)){l=o>0&&!n[o-1].open?m[o-1]+1:0,m[r]=r-o+l,m[o]=l,e.open=!1,s.end=r,s.close=!1,c=-1,p=-2;break}c!==-1&&(u[e.marker][(e.open?3:0)+(e.length||0)%3]=c)}}}var bP=function(n){var r,o=n.tokens_meta,e=n.tokens_meta.length;for(kr(n,n.delimiters),r=0;r<e;r++)o[r]&&o[r].delimiters&&kr(n,o[r].delimiters)},_P=function(n){var r,o,e=0,s=n.tokens,i=n.tokens.length;for(r=o=0;r<i;r++)s[r].nesting<0&&e--,s[r].level=e,s[r].nesting>0&&e++,s[r].type==="text"&&r+1<i&&s[r+1].type==="text"?s[r+1].content=s[r].content+s[r+1].content:(r!==o&&(s[o]=s[r]),o++);r!==o&&(s.length=o)},Pn=Bn,xr=D.isWhiteSpace,vr=D.isPunctChar,yr=D.isMdAsciiPunct;function X(t,n,r,o){this.src=t,this.env=r,this.md=n,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}X.prototype.pushPending=function(){var t=new Pn("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};X.prototype.push=function(t,n,r){this.pending&&this.pushPending();var o=new Pn(t,n,r),e=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],e={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(e),o};X.prototype.scanDelims=function(t,n){var r=t,o,e,s,i,c,a,l,u,f,h=!0,p=!0,m=this.posMax,_=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;r<m&&this.src.charCodeAt(r)===_;)r++;return s=r-t,e=r<m?this.src.charCodeAt(r):32,l=yr(o)||vr(String.fromCharCode(o)),f=yr(e)||vr(String.fromCharCode(e)),a=xr(o),u=xr(e),u?h=!1:f&&(a||l||(h=!1)),a?p=!1:l&&(u||f||(p=!1)),n?(i=h,c=p):(i=h&&(!p||l),c=p&&(!h||f)),{can_open:i,can_close:c,length:s}};X.prototype.Token=Pn;var kP=X,Cr=In,qn=[["text",HM],["linkify",JM],["newline",YM],["escape",KM],["backticks",XM],["strikethrough",gn.tokenize],["emphasis",mn.tokenize],["link",rP],["image",oP],["autolink",cP],["html_inline",pP],["entity",mP]],En=[["balance_pairs",bP],["strikethrough",gn.postProcess],["emphasis",mn.postProcess],["fragments_join",_P]];function nn(){var t;for(this.ruler=new Cr,t=0;t<qn.length;t++)this.ruler.push(qn[t][0],qn[t][1]);for(this.ruler2=new Cr,t=0;t<En.length;t++)this.ruler2.push(En[t][0],En[t][1])}nn.prototype.skipToken=function(t){var n,r,o=t.pos,e=this.ruler.getRules(""),s=e.length,i=t.md.options.maxNesting,c=t.cache;if(typeof c[o]<"u"){t.pos=c[o];return}if(t.level<i)for(r=0;r<s&&(t.level++,n=e[r](t,!0),t.level--,!n);r++);else t.pos=t.posMax;n||t.pos++,c[o]=t.pos};nn.prototype.tokenize=function(t){for(var n,r,o=this.ruler.getRules(""),e=o.length,s=t.posMax,i=t.md.options.maxNesting;t.pos<s;){if(t.level<i)for(r=0;r<e&&(n=o[r](t,!1),!n);r++);if(n){if(t.pos>=s)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};nn.prototype.parse=function(t,n,r,o){var e,s,i,c=new this.State(t,n,r,o);for(this.tokenize(c),s=this.ruler2.getRules(""),i=s.length,e=0;e<i;e++)s[e](c)};nn.prototype.State=kP;var xP=nn,Sn,wr;function vP(){return wr||(wr=1,Sn=function(t){var n={};t=t||{},n.src_Any=Er().source,n.src_Cc=Sr().source,n.src_Z=Fr().source,n.src_P=zn.source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|");var r="[><|]";return n.src_pseudo_letter="(?:(?!"+r+"|"+n.src_ZPCc+")"+n.src_Any+")",n.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|"+r+"|"+n.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+n.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+n.src_ZCc+"|$)|;(?!"+n.src_ZCc+"|$)|\\!+(?!"+n.src_ZCc+"|[!]|$)|\\?(?!"+n.src_ZCc+"|[?]|$))+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n}),Sn}function Rn(t){var n=Array.prototype.slice.call(arguments,1);return n.forEach(function(r){r&&Object.keys(r).forEach(function(o){t[o]=r[o]})}),t}function bn(t){return Object.prototype.toString.call(t)}function yP(t){return bn(t)==="[object String]"}function CP(t){return bn(t)==="[object Object]"}function wP(t){return bn(t)==="[object RegExp]"}function Ar(t){return bn(t)==="[object Function]"}function AP(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Nr={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function DP(t){return Object.keys(t||{}).reduce(function(n,r){return n||Nr.hasOwnProperty(r)},!1)}var qP={"http:":{validate:function(t,n,r){var o=t.slice(n);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(o)?o.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,n,r){var o=t.slice(n);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(o)?n>=3&&t[n-3]===":"||n>=3&&t[n-3]==="/"?0:o.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(t,n,r){var o=t.slice(n);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(o)?o.match(r.re.mailto)[0].length:0}}},EP="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",SP="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function FP(t){t.__index__=-1,t.__text_cache__=""}function TP(t){return function(n,r){var o=n.slice(r);return t.test(o)?o.match(t)[0].length:0}}function Dr(){return function(t,n){n.normalize(t)}}function an(t){var n=t.re=vP()(t.__opts__),r=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||r.push(EP),r.push(n.src_xn),n.src_tlds=r.join("|");function o(c){return c.replace("%TLDS%",n.src_tlds)}n.email_fuzzy=RegExp(o(n.tpl_email_fuzzy),"i"),n.link_fuzzy=RegExp(o(n.tpl_link_fuzzy),"i"),n.link_no_ip_fuzzy=RegExp(o(n.tpl_link_no_ip_fuzzy),"i"),n.host_fuzzy_test=RegExp(o(n.tpl_host_fuzzy_test),"i");var e=[];t.__compiled__={};function s(c,a){throw new Error('(LinkifyIt) Invalid schema "'+c+'": '+a)}Object.keys(t.__schemas__).forEach(function(c){var a=t.__schemas__[c];if(a!==null){var l={validate:null,link:null};if(t.__compiled__[c]=l,CP(a)){wP(a.validate)?l.validate=TP(a.validate):Ar(a.validate)?l.validate=a.validate:s(c,a),Ar(a.normalize)?l.normalize=a.normalize:a.normalize?s(c,a):l.normalize=Dr();return}if(yP(a)){e.push(c);return}s(c,a)}}),e.forEach(function(c){t.__compiled__[t.__schemas__[c]]&&(t.__compiled__[c].validate=t.__compiled__[t.__schemas__[c]].validate,t.__compiled__[c].normalize=t.__compiled__[t.__schemas__[c]].normalize)}),t.__compiled__[""]={validate:null,normalize:Dr()};var i=Object.keys(t.__compiled__).filter(function(c){return c.length>0&&t.__compiled__[c]}).map(AP).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+n.src_ZPCc+"))("+i+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+n.src_ZPCc+"))("+i+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),FP(t)}function RP(t,n){var r=t.__index__,o=t.__last_index__,e=t.__text_cache__.slice(r,o);this.schema=t.__schema__.toLowerCase(),this.index=r+n,this.lastIndex=o+n,this.raw=e,this.text=e,this.url=e}function Ln(t,n){var r=new RP(t,n);return t.__compiled__[r.schema].normalize(r,t),r}function T(t,n){if(!(this instanceof T))return new T(t,n);n||DP(t)&&(n=t,t={}),this.__opts__=Rn({},Nr,n),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Rn({},qP,t),this.__compiled__={},this.__tlds__=SP,this.__tlds_replaced__=!1,this.re={},an(this)}T.prototype.add=function(n,r){return this.__schemas__[n]=r,an(this),this};T.prototype.set=function(n){return this.__opts__=Rn(this.__opts__,n),this};T.prototype.test=function(n){if(this.__text_cache__=n,this.__index__=-1,!n.length)return!1;var r,o,e,s,i,c,a,l,u;if(this.re.schema_test.test(n)){for(a=this.re.schema_search,a.lastIndex=0;(r=a.exec(n))!==null;)if(s=this.testSchemaAt(n,r[2],a.lastIndex),s){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=n.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(o=n.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=o.index+o[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(u=n.indexOf("@"),u>=0&&(e=n.match(this.re.email_fuzzy))!==null&&(i=e.index+e[1].length,c=e.index+e[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&c>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=c))),this.__index__>=0};T.prototype.pretest=function(n){return this.re.pretest.test(n)};T.prototype.testSchemaAt=function(n,r,o){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(n,o,this):0};T.prototype.match=function(n){var r=0,o=[];this.__index__>=0&&this.__text_cache__===n&&(o.push(Ln(this,r)),r=this.__last_index__);for(var e=r?n.slice(r):n;this.test(e);)o.push(Ln(this,r)),e=e.slice(this.__last_index__),r+=this.__last_index__;return o.length?o:null};T.prototype.matchAtStart=function(n){if(this.__text_cache__=n,this.__index__=-1,!n.length)return null;var r=this.re.schema_at_start.exec(n);if(!r)return null;var o=this.testSchemaAt(n,r[2],r[0].length);return o?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+o,Ln(this,0)):null};T.prototype.tlds=function(n,r){return n=Array.isArray(n)?n:[n],r?(this.__tlds__=this.__tlds__.concat(n).sort().filter(function(o,e,s){return o!==s[e-1]}).reverse(),an(this),this):(this.__tlds__=n.slice(),this.__tlds_replaced__=!0,an(this),this)};T.prototype.normalize=function(n){n.schema||(n.url="http://"+n.url),n.schema==="mailto:"&&!/^mailto:/i.test(n.url)&&(n.url="mailto:"+n.url)};T.prototype.onCompile=function(){};var LP=T;const H=2147483647,z=36,On=1,K=26,zP=38,IP=700,Mr=72,Pr=128,Or="-",BP=/^xn--/,NP=/[^\0-\x7F]/,MP=/[\x2E\u3002\uFF0E\uFF61]/g,PP={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Fn=z-On,I=Math.floor,Tn=String.fromCharCode;function P(t){throw new RangeError(PP[t])}function OP(t,n){const r=[];let o=t.length;for(;o--;)r[o]=n(t[o]);return r}function Ur(t,n){const r=t.split("@");let o="";r.length>1&&(o=r[0]+"@",t=r[1]),t=t.replace(MP,".");const e=t.split("."),s=OP(e,n).join(".");return o+s}function Un(t){const n=[];let r=0;const o=t.length;for(;r<o;){const e=t.charCodeAt(r++);if(e>=55296&&e<=56319&&r<o){const s=t.charCodeAt(r++);(s&64512)==56320?n.push(((e&1023)<<10)+(s&1023)+65536):(n.push(e),r--)}else n.push(e)}return n}const Vr=t=>String.fromCodePoint(...t),UP=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:z},qr=function(t,n){return t+22+75*(t<26)-((n!=0)<<5)},$r=function(t,n,r){let o=0;for(t=r?I(t/IP):t>>1,t+=I(t/n);t>Fn*K>>1;o+=z)t=I(t/Fn);return I(o+(Fn+1)*t/(t+zP))},Vn=function(t){const n=[],r=t.length;let o=0,e=Pr,s=Mr,i=t.lastIndexOf(Or);i<0&&(i=0);for(let c=0;c<i;++c)t.charCodeAt(c)>=128&&P("not-basic"),n.push(t.charCodeAt(c));for(let c=i>0?i+1:0;c<r;){const a=o;for(let u=1,f=z;;f+=z){c>=r&&P("invalid-input");const h=UP(t.charCodeAt(c++));h>=z&&P("invalid-input"),h>I((H-o)/u)&&P("overflow"),o+=h*u;const p=f<=s?On:f>=s+K?K:f-s;if(h<p)break;const m=z-p;u>I(H/m)&&P("overflow"),u*=m}const l=n.length+1;s=$r(o-a,l,a==0),I(o/l)>H-e&&P("overflow"),e+=I(o/l),o%=l,n.splice(o++,0,e)}return String.fromCodePoint(...n)},$n=function(t){const n=[];t=Un(t);const r=t.length;let o=Pr,e=0,s=Mr;for(const a of t)a<128&&n.push(Tn(a));const i=n.length;let c=i;for(i&&n.push(Or);c<r;){let a=H;for(const u of t)u>=o&&u<a&&(a=u);const l=c+1;a-o>I((H-e)/l)&&P("overflow"),e+=(a-o)*l,o=a;for(const u of t)if(u<o&&++e>H&&P("overflow"),u===o){let f=e;for(let h=z;;h+=z){const p=h<=s?On:h>=s+K?K:h-s;if(f<p)break;const m=f-p,_=z-p;n.push(Tn(qr(p+m%_,0))),f=I(m/_)}n.push(Tn(qr(f,0))),s=$r(e,l,c===i),e=0,++c}++e,++o}return n.join("")},jr=function(t){return Ur(t,function(n){return BP.test(n)?Vn(n.slice(4).toLowerCase()):n})},Gr=function(t){return Ur(t,function(n){return NP.test(n)?"xn--"+$n(n):n})},VP={version:"2.1.0",ucs2:{decode:Un,encode:Vr},decode:Vn,encode:$n,toASCII:Gr,toUnicode:jr},$P=Object.freeze(Object.defineProperty({__proto__:null,decode:Vn,default:VP,encode:$n,toASCII:Gr,toUnicode:jr,ucs2decode:Un,ucs2encode:Vr},Symbol.toStringTag,{value:"Module"})),jP=Yr($P);var GP={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},HP={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},ZP={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Q=D,JP=pn,WP=VN,YP=fM,QP=jM,KP=xP,XP=LP,U=Z,Hr=jP,nO={default:GP,zero:HP,commonmark:ZP},rO=/^(vbscript|javascript|file|data):/,tO=/^data:image\/(gif|png|jpeg|webp);/;function oO(t){var n=t.trim().toLowerCase();return rO.test(n)?!!tO.test(n):!0}var Zr=["http:","https:","mailto:"];function eO(t){var n=U.parse(t,!0);if(n.hostname&&(!n.protocol||Zr.indexOf(n.protocol)>=0))try{n.hostname=Hr.toASCII(n.hostname)}catch{}return U.encode(U.format(n))}function sO(t){var n=U.parse(t,!0);if(n.hostname&&(!n.protocol||Zr.indexOf(n.protocol)>=0))try{n.hostname=Hr.toUnicode(n.hostname)}catch{}return U.decode(U.format(n),U.decode.defaultChars+"%")}function R(t,n){if(!(this instanceof R))return new R(t,n);n||Q.isString(t)||(n=t||{},t="default"),this.inline=new KP,this.block=new QP,this.core=new YP,this.renderer=new WP,this.linkify=new XP,this.validateLink=oO,this.normalizeLink=eO,this.normalizeLinkText=sO,this.utils=Q,this.helpers=Q.assign({},JP),this.options={},this.configure(t),n&&this.set(n)}R.prototype.set=function(t){return Q.assign(this.options,t),this};R.prototype.configure=function(t){var n=this,r;if(Q.isString(t)&&(r=t,t=nO[r],!t))throw new Error('Wrong `markdown-it` preset "'+r+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&n.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&n[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&n[o].ruler2.enableOnly(t.components[o].rules2)}),this};R.prototype.enable=function(t,n){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){r=r.concat(this[e].ruler.enable(t,!0))},this),r=r.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(e){return r.indexOf(e)<0});if(o.length&&!n)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};R.prototype.disable=function(t,n){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){r=r.concat(this[e].ruler.disable(t,!0))},this),r=r.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(e){return r.indexOf(e)<0});if(o.length&&!n)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};R.prototype.use=function(t){var n=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,n),this};R.prototype.parse=function(t,n){if(typeof t!="string")throw new Error("Input data should be a String");var r=new this.core.State(t,this,n);return this.core.process(r),r.tokens};R.prototype.render=function(t,n){return n=n||{},this.renderer.render(this.parse(t,n),this.options,n)};R.prototype.parseInline=function(t,n){var r=new this.core.State(t,this,n);return r.inlineMode=!0,this.core.process(r),r.tokens};R.prototype.renderInline=function(t,n){return n=n||{},this.renderer.render(this.parseInline(t,n),this.options,n)};var cO=R;(function(t){t.exports=cO})(Qr);const iO=Wr(en),aO=Jr({__proto__:null,default:iO},[en]);export{aO as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,P as s,o as t,f as o,h as n,t as r,u}from"./entry.e1ce6ad4.js";const f=a({__name:"layouts",setup(l){const e=s();return(c,p)=>(t(),o("div",null,[n("pre",null,r(u(e)),1)]))}});export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,o as a,f as n}from"./entry.
|
|
1
|
+
import{a as e,o as a,f as n}from"./entry.e1ce6ad4.js";const s=e({__name:"middleware",setup(o){return(t,r)=>(a(),n("div",null," WIP "))}});export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as V,A as D,m as k,V as F,W as A,ae as L,af as R,ag as O,o as e,f as a,h as n,u as t,c as _,w as u,l as w,t as m,C as W,y as l,i as b,F as P,v as C,ah as z,D as I,r as G}from"./entry.e1ce6ad4.js";import{_ as H}from"./FilepathItem.vue.c7d65dc2.js";import{_ as J}from"./NpmVersionCheck.vue.2469b5b3.js";import{_ as K}from"./NSectionBlock.cef5b3bf.js";import"./editor.58d10855.js";import"./context.10127184.js";import"./Badge.b694092e.js";import"./NCodeBlock.vue.f41a0d29.js";import"./NCheckbox.vue.f03c4497.js";import"./NTip.vue.2f192405.js";import"./NIconTitle.vue.6c944aa7.js";const Q={border:"~ base",p4:"",flex:"~ gap2"},X={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},Y={"of-hidden":"","ws-nowrap":"","text-lg":"","text-ellipsis":""},Z={key:2},tt={key:0,op50:"","text-sm":"","mt--1":""},et=n("div",{"flex-auto":""},null,-1),ot={key:1,flex:"~ gap-2",title:"Documentation"},nt=n("span",{"text-lg":"",op50:"","i-carbon-link":""},null,-1),at={key:2,flex:"~ gap-2"},st=n("span",{"text-lg":"",op50:"","i-carbon-logo-github":""},null,-1),it={key:3,flex:"~ gap-2",title:"Open on filesystem"},rt=n("span",{"text-lg":"",op50:"","i-carbon-folder-move-to":""},null,-1),lt=n("span",{"text-lg":"",op50:"","animate-spin":"","i-carbon-circle-dash":""},null,-1),ct=n("code",{"text-sm":"",op50:""},"Upgrading...",-1),dt={key:1,"mx--2":""},mt=["onClick"],ut=n("span",{"text-lg":"","text-primary":"","i-carbon-intent-request-active":""},null,-1),pt=n("code",{"text-xs":""},"Update installed, click to restart",-1),_t=[ut,pt],ht={key:2,"mx--2":""},gt=["onClick"],xt=n("span",{"text-lg":"",op50:"","i-carbon-intent-request-upgrade":""},null,-1),ft={op50:""},vt=n("div",{op50:"","i-carbon-arrow-right":""},null,-1),yt={"text-green":""},kt={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},bt=n("span",{"text-lg":"",op50:"","i-carbon-cube":""},null,-1),Pt={"text-sm":"",op50:""},wt={flex:"~ col"},Ct={key:0,p4:"",rounded:"","flex-none":"",flex:"","h-20":"","w-20":"","bg-gray:3":""},Mt=["src","alt"],Nt=n("div",{op50:"",ma:"","i-carbon-circle-dash":"","text-4xl":""},null,-1),Bt={key:1,flex:"~","flex-auto":"","items-end":"",mt2:"","justify-end":""},$t=["src"],It=V({__name:"ModuleItem",props:{mod:null},async setup(h){let g,v;const c=h,p=D(),d=k(()=>c.mod.entryPath&&F(c.mod.entryPath)),s=k(()=>c.mod.meta?.name?c.mod.meta.name:c.mod.entryPath?d.value?A(c.mod.entryPath):p.value?.rootDir?L(c.mod.entryPath,p.value?.rootDir).path:"":""),M=([g,v]=R(()=>O()),g=await g,v(),g),o=k(()=>({name:s,...c.mod?.meta,...(M||[]).find?.(x=>x.npm===s.value||x.name===s.value)})),y="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",i="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",U="https://github.com/",j="https://www.npmjs.com/package/";return(x,N)=>{const f=z,E=H,S=J;return e(),a("div",Q,[n("div",X,[n("div",Y,[t(d)?(e(),_(f,{key:0,to:j+(t(o).npm||t(o).name),target:"_blank",hover:"underline text-primary"},{default:u(()=>[w(m(t(o).name),1)]),_:1},8,["to"])):h.mod.entryPath?(e(),a("button",{key:1,role:"button",hover:"underline text-primary",onClick:N[0]||(N[0]=r=>("rpc"in x?x.rpc:t(W)).openInEditor(h.mod.entryPath))},m(t(o).name),1)):(e(),a("span",Z,m(t(o).name),1))]),t(o).description?(e(),a("div",tt,m(t(o).description),1)):l("",!0),et,t(o).website?(e(),a("div",ot,[nt,b(f,{to:t(o).website,target:"_blank","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:u(()=>[w(m(t(o).website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):l("",!0),t(o).github?(e(),a("div",at,[st,b(f,{to:t(o).github,target:"_blank","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:u(()=>[w(m(t(o).github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):l("",!0),h.mod.entryPath?(e(),a("div",it,[rt,b(E,{filepath:h.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):l("",!0),t(o).npm?(e(),_(S,{key:t(o).npm,"package-name":t(o).npm,options:{dev:!0}},{default:u(({info:r,update:T,state:B,id:$,restart:q})=>[B==="running"?(e(),_(f,{key:0,flex:"~ gap-2","items-center":"","animate-pulse":"",to:$?`/modules/terminals?id=${encodeURIComponent($)}`:void 0},{default:u(()=>[lt,ct]),_:2},1032,["to"])):B==="updated"?(e(),a("div",dt,[n("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"","text-sm":"","text-primary":"",px2:"",rounded:"","bg-primary:10":"",onClick:q},_t,8,mt)])):r?.needsUpdate?(e(),a("div",ht,[n("button",{flex:"~ gap-2",title:"Click to upgrade","text-sm":"","items-center":"",px2:"",rounded:"",hover:"bg-active",onClick:Dt=>T()},[xt,n("code",ft,"v"+m(r.current),1),vt,n("code",yt,"v"+m(r.latest),1)],8,gt)])):r?.latest?(e(),a("div",kt,[bt,n("code",Pt,"v"+m(r.current),1)])):l("",!0)]),_:1},8,["package-name"])):l("",!0)]),n("div",wt,[t(o).icon||t(d)?(e(),a("div",Ct,[t(o).icon?(e(),a("img",{key:0,src:y+t(o).icon,alt:t(s),ma:""},null,8,Mt)):l("",!0),Nt])):l("",!0),t(o).maintainers?.length?(e(),a("div",Bt,[(e(!0),a(P,null,C(t(o).maintainers,r=>(e(),_(f,{key:r.name,target:"_blank",to:U+r.github,title:r.name},{default:u(()=>[n("img",{src:i+r.github,"rounded-full":"","w-6":"","h-6":""},null,8,$t)]),_:2},1032,["to","title"]))),128))])):l("",!0)])])}}}),Vt=n("div",null,[n("span",{op50:""},"Find more modules at "),n("a",{href:"https://nuxt.com/modules",target:"_blank",hover:"text-primary underline"},"nuxt.com/modules")],-1),Wt=V({__name:"modules",setup(h){const g=["pages","meta","components","imports","nuxt-config-schema","@nuxt/devtools","@nuxt/telemetry"],v=D(),c=k(()=>v.value?._installedModules||[]),p=I([]),d=I([]);return G(()=>{p.value.length=0,d.value.length=0;for(const s of c.value)g.includes(s.meta?.name)||(s.entryPath&&F(s.entryPath)?p.value.push(s):d.value.push(s))}),(s,M)=>{const o=It,y=K;return e(),a("div",null,[b(y,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap2",description:`Total modules: ${t(p).length}`},{footer:u(()=>[Vt]),default:u(()=>[(e(!0),a(P,null,C(t(p),i=>(e(),_(o,{key:i.meta?.name||i.entryPath,mod:i},null,8,["mod"]))),128))]),_:1},8,["description"]),t(d).length?(e(),_(y,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-450px gap2",description:`Total modules: ${t(d).length}`},{default:u(()=>[(e(!0),a(P,null,C(t(d),i=>(e(),a(P,{key:i.meta?.name||i.entryPath},[i.meta?.name||i.entryPath?(e(),_(o,{key:0,mod:i},null,8,["mod"])):l("",!0)],64))),128))]),_:1},8,["description"])):l("",!0)])}}});export{Wt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{al as r,L as n}from"./entry.e1ce6ad4.js";const t={};function o(e,s){return n(e.$slots,"default")}const c=r(t,[["render",o]]);export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as S}from"./NuxtLogo.
|
|
1
|
+
import{_ as S}from"./NuxtLogo.7b90e5d5.js";import{_ as j}from"./Badge.b694092e.js";import{_ as B}from"./NpmVersionCheck.vue.2469b5b3.js";import{a as V,b as D,A as I,Y as A,ac as R,ai as T,aj as $,X as F,o as n,f as u,u as e,h as t,i,t as _,F as p,c as d,w as s,y as a,ak as L,l as o,j as M,ah as O,k as W}from"./entry.e1ce6ad4.js";import{_ as P}from"./NTip.vue.2f192405.js";import"./NCodeBlock.vue.f41a0d29.js";import"./NCheckbox.vue.f03c4497.js";const E="0.3.2",G={flex:"","h-full":"","w-full":""},H={key:0},U={key:1,flex:"~ col gap2","w-full":"","h-full":"",p8:"",ma:"","max-w-300":"",px20:""},X=t("div",{"flex-auto":""},null,-1),Y={flex:"~ col","items-center":"","mt-20":""},q={flex:"~","items-center":"","justify-center":"","mt--10":""},z={"text-sm":"","text-center":"","mt--1":"",mb6:"",flex:"~ gap-1"},J=t("span",{op40:""}," Nuxt DevTools ",-1),K={op40:""},Q={flex:"~ gap2 wrap"},Z={p4:"","theme-card-green":"",flex:"~ col auto"},tt=t("div",{"text-3xl":"","logos-nuxt-icon":""},null,-1),et=t("div",{"text-3xl":"","carbon-tree-view-alt":""},null,-1),ot=t("div",{"text-3xl":"","i-carbon-assembly-cluster":""},null,-1),st=t("div",{"text-3xl":"","carbon-function":""},null,-1),nt=t("div",{"text-3xl":"","carbon-3d-mpr-toggle":""},null,-1),it=t("div",{"text-3xl":"","carbon-plug":""},null,-1),lt={flex:"~ col gap2"},at={flex:"~ gap-6 wrap","items-center":"","justify-center":"","mt-5":""},ct=t("a",{href:"https://github.com/nuxt/devtools",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[t("div",{"i-carbon-star":""}),o(" Star on GitHub ")],-1),rt=t("a",{href:"https://github.com/nuxt/devtools/discussions/29",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[t("div",{"i-carbon-data-enrichment":""}),o(" Ideas & Suggestions ")],-1),ut=t("a",{href:"https://github.com/nuxt/devtools/discussions/31",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[t("div",{"i-carbon-plan":""}),o(" Project Roadmap ")],-1),_t=t("a",{href:"https://github.com/nuxt/devtools/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[t("div",{"i-carbon-debug":""}),o(" Bug Reports ")],-1),dt=t("div",{"i-carbon-settings":""},null,-1),pt=t("div",{"flex-auto":""},null,-1),mt={flex:"~ gap-1","justify-center":"","items-center":"","text-sm":"",op40:""},ht=t("span",null,"+",-1),xt=t("span",null,"+",-1),ft=t("span",null,"+",-1),gt=t("span",null,"+",-1),Bt=V({__name:"overview",setup(vt){const f=D(),l=I(),g=A(),m=R(),v=T(),b=$(),k=F();function w(){M.value=!0,k.push("/")}return(h,bt)=>{const y=S,C=j,x=B,c=O,N=P,r=W;return n(),u("div",G,[e(l)?(n(),u("div",U,[X,t("div",Y,[t("div",q,[i(y,{"h-18":""}),t("button",{"mr--16":"","mt--6":"",onClick:w},[i(C,{"bg-green-400:10":"","text-green-400":"",title:"preview",textContent:"preview"})])]),t("div",z,[J,t("code",K,"v"+_(e(E)),1),i(x,{"package-name":"@nuxt/devtools",options:{dev:!0},"show-version":!1})])]),t("div",Q,[t("div",Z,[tt,i(x,{"package-name":"nuxt",options:{dev:!0}})]),e(l)?(n(),u(p,{key:0},[e(l)&&e(l).pages&&e(f)?(n(),d(c,{key:0,p4:"","theme-card-lime":"","min-w-40":"",flex:"~ col auto",to:"/modules/pages"},{default:s(()=>[et,t("div",null,_(e(v).length)+" pages",1)]),_:1})):a("",!0),e(l)?(n(),d(c,{key:1,p4:"","theme-card-lime":"","min-w-40":"",flex:"~ col auto",to:"/modules/components"},{default:s(()=>[ot,t("div",null,_(e(g).length)+" components",1)]),_:1})):a("",!0),e(l)&&e(m)?(n(),d(c,{key:2,p4:"","min-w-40":"","theme-card-yellow":"",flex:"~ col auto",to:"/modules/imports"},{default:s(()=>[st,t("div",null,_(e(m).imports.length)+" imports",1)]),_:1})):a("",!0),e(l)?(n(),d(c,{key:3,p4:"","min-w-40":"","theme-card-purple":"",flex:"~ col auto",to:"/modules/modules"},{default:s(()=>[nt,t("div",null,_(e(l)._installedModules.length)+" modules",1)]),_:1})):a("",!0),e(l)?(n(),d(c,{key:4,p4:"","min-w-40":"","theme-card-teal":"",flex:"~ col auto",to:"/modules/plugins"},{default:s(()=>[it,t("div",null,_(e(l).plugins.length)+" plugins",1)]),_:1})):a("",!0)],64)):a("",!0)]),t("div",lt,[("showConnectionWarning"in h?h.showConnectionWarning:e(L))?(n(),d(N,{key:0,n:"yellow5",icon:"carbon-unlink","justify-center":""},{default:s(()=>[o(" Not connected to the client app, showing server-side data only. Use the embedded mode for full features. ")]),_:1})):a("",!0)]),t("div",at,[ct,rt,ut,_t,i(c,{to:"/settings",flex:"~ gap1","items-center":"",op50:"","inline-block":"","hover:op80":""},{default:s(()=>[dt,o(" Settings ")]),_:1})]),pt,t("div",mt,[o(" Press "),e(b)?(n(),u(p,{key:0},[i(r,{n:"xs",class:"px2"},{default:s(()=>[o(" ⇧ Shift ")]),_:1}),ht,i(r,{n:"xs",class:"px2"},{default:s(()=>[o(" ⌥ Option ")]),_:1}),xt,i(r,{n:"xs",class:"px2"},{default:s(()=>[o(" D ")]),_:1})],64)):(n(),u(p,{key:1},[i(r,{n:"xs",class:"px2"},{default:s(()=>[o(" Shift ")]),_:1}),ft,i(r,{n:"xs",class:"px2"},{default:s(()=>[o(" Alt ")]),_:1}),gt,i(r,{n:"xs",class:"px2"},{default:s(()=>[o(" D ")]),_:1})],64)),o(" to toggle DevTools ")])])):(n(),u("div",H," Loading... "))])}}});export{Bt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as L}from"./NTextInput.vue.
|
|
1
|
+
import{_ as L}from"./NTextInput.vue.188f5529.js";import{_ as K}from"./Badge.b694092e.js";import{a as I,D as S,m as b,ar as M,M as A,u as e,o as n,f as s,h as t,t as k,c as w,w as C,as as F,F as v,v as P,y as $,i as x,l as V,x as B,k as U,at as j,au as z,A as O,O as W,P as q,av as G,aw as E,a6 as H,K as J,ax as Q,C as X}from"./entry.e1ce6ad4.js";import{o as T}from"./editor.58d10855.js";import{_ as Y}from"./NSectionBlock.cef5b3bf.js";import{_ as Z}from"./LaunchPage.vue.b1763741.js";import"./context.10127184.js";import"./NIconTitle.vue.6c944aa7.js";import"./TabIcon.vue.ee21be15.js";import"./NMarkdown.vue.ae60adfb.js";const ee={block:"","cursor-pointer":""},te={p2:""},ne=["onSubmit"],oe=t("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),ae={flex:"~","items-center":"","font-mono":"",p2:"","text-sm":""},se={key:1},re=I({__name:"RoutePathItem",props:{route:null},emits:["navigate"],setup(m,{emit:d}){const u=m,h=S([]),c=b(()=>{const o=M(u.route.path);return h.value=Array.from({length:o.length},()=>""),o}),i=b(()=>c.value.map((o,a)=>o[0]===":"?h.value[a]:o).join("").replace(/\/+/g,"/")),p=b(()=>u.route.path.includes(":"));function r(){d("navigate",i.value)}return(o,a)=>{const N=L,l=U,f=A("VDropdown");return e(p)?(n(),w(f,{key:1},{popper:C(({hide:_})=>[t("div",te,[t("form",{flex:"~ col",onSubmit:F(()=>{r(),_()},["prevent"])},[e(p)?(n(),s(v,{key:0},[oe,t("div",ae,[(n(!0),s(v,null,P(e(c),(g,y)=>(n(),s(v,{key:y},[g[0]===":"?(n(),w(N,{key:0,modelValue:e(h)[y],"onUpdate:modelValue":R=>e(h)[y]=R,"w-20":"","n-sm":"",placeholder:g.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(n(),s("span",se,k(g),1))],64))),128))])],64)):$("",!0),x(l,{block:"",n:"primary"},{default:C(()=>[V(" Navigate ")]),_:1})],40,ne)])]),default:C(()=>[t("code",ee,[(n(!0),s(v,null,P(e(c),(_,g)=>(n(),s("span",{key:g,class:B(_[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},k(_[0]===":"?_.slice(1):_),3))),128))])]),_:1})):(n(),s("button",{key:0,onClick:r},[t("code",null,k(m.route.path),1)]))}}}),le={"w-full":""},ue=t("thead",{border:"b base"},[t("tr",null,[t("th",{"text-left":""}),t("th",{"text-left":""}," Route Path "),t("th",{"text-left":""}," Name "),t("th",null," Layout ")])],-1),ie={"w-20":"","pr-1":""},ce={"items-center":"",flex:"","justify-end":""},de={"text-sm":""},pe={flex:"inline gap3","items-center":""},me={op0:"","group-hover:op100":"",flex:"~ gap1"},he=["onClick"],_e=t("div",{"i-carbon-script-reference":""},null,-1),ge=[_e],fe={"text-left":"","text-sm":"","pr-1":"",op50:"","font-mono":"","w-0":"","ws-nowrap":""},ve={"font-mono":"","w-0":"","ws-nowrap":"","text-sm":"","text-center":""},ye={key:0},xe=["onClick"],be=I({__name:"RoutesTable",props:{pages:null,layouts:null,matched:null,matchedPending:null},emits:["navigate"],setup(m){const d=m,u=b(()=>[...d.pages].sort((c,i)=>c.path.localeCompare(i.path)));function h(c){const i=d.layouts.find(p=>p.name===c);i&&T(i.file)}return(c,i)=>{const p=K,r=re;return n(),s("div",null,[t("table",le,[ue,t("tbody",null,[(n(!0),s(v,null,P(e(u),o=>(n(),s("tr",{key:o.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[t("td",ie,[t("div",ce,[m.matched.find(a=>a.name===o.name)?(n(),w(p,{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):$("",!0),m.matchedPending.find(a=>a.name===o.name)?(n(),w(p,{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):$("",!0)])]),t("td",de,[t("div",pe,[x(r,{route:o,class:B(m.matched.find(a=>a.name===o.name)?"text-primary":m.matchedPending.find(a=>a.name===o.name)?"text-teal":""),onNavigate:i[0]||(i[0]=a=>c.$emit("navigate",a))},null,8,["route","class"]),t("div",me,[o.file||o.meta?.file?(n(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:a=>("openInEditor"in c?c.openInEditor:e(T))(o.file||o.meta?.file)},ge,8,he)):$("",!0)])])]),t("td",fe,k(o.name),1),t("td",ve,[o.meta.layout===!1?(n(),s("span",ye,"-")):o.meta.layout?(n(),s("button",{key:1,onClick:a=>h(o.meta.layout)},k(o.meta.layout),9,xe)):(n(),s("button",{key:2,"text-sm":"",op15:"",onClick:i[1]||(i[1]=a=>h("default"))}," (default) "))])]))),128))])])])}}}),ke={key:0,"h-full":"","of-auto":""},$e={border:"b base",flex:"~ col gap1","navbar-glass":"",px6:"",py4:""},we=t("span",{op50:""},"Navigate from ",-1),Ce={"font-mono":""},Ne=t("span",{op50:""}," to ",-1),Re={key:1,op50:""},Pe=t("span",null,[V("Press "),t("b",{"font-bold":""},"Enter"),V(" to navigate")],-1),Ve={key:0,"text-orange":"",op75:""},Ie={key:1,op50:""},Ue=I({__name:"pages",setup(m){const d=j(),u=z(),h=O(),c=W(),i=q(),p=b(()=>(d.value?.getRoutes()||[]).map(l=>G(l,["path","name","meta","props","children"])).map(l=>({...c.value?.find(f=>f.name&&f.name===l.name),...l}))),r=S("");E(u).toBeTruthy().then(l=>{r.value=l.path}),E(d).toBeTruthy().then(l=>{l.afterEach(()=>{H(()=>{r.value=u.value.path})})});async function o(){r.value!==u.value.path&&d.value.push(r.value||"/")}const a=b(()=>r.value===u.value.path?[]:d.value.resolve(r.value||"/").matched);function N(l){d.value.push(l)}return(l,f)=>{const _=L,g=be,y=Y,R=Z;return e(h)?.pages&&e(d)?(n(),s("div",ke,[t("div",$e,[t("div",null,[e(u).path!==e(r)?(n(),s(v,{key:0},[we,t("span",Ce,k(e(u).path),1),Ne],64)):(n(),s("span",Re,"Current route"))]),x(_,{modelValue:e(r),"onUpdate:modelValue":f[0]||(f[0]=D=>J(r)?r.value=D:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:B(e(u).path===e(r)?"":e(a).length?"text-green":"text-orange"),onKeydown:Q(o,["enter"])},null,8,["modelValue","class","onKeydown"]),t("div",null,[e(u).path!==e(r)?(n(),s(v,{key:0},[Pe,e(a).length?$("",!0):(n(),s("span",Ve," (no match)"))],64)):(n(),s("span",Ie,"Edit path above to navigate"))])]),e(a).length?(n(),w(y,{key:0,icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:C(()=>[x(g,{pages:e(a),layouts:e(i)||[],matched:[],"matched-pending":e(a),onNavigate:N},null,8,["pages","layouts","matched-pending"])]),_:1})):$("",!0),x(y,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${e(p).length} routes registered in your application`,padding:"pr5"},{default:C(()=>[x(g,{pages:e(p),layouts:e(i)||[],matched:e(u).matched,"matched-pending":e(a),onNavigate:N},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"])])):(n(),w(R,{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",handle(){return("rpc"in l?l.rpc:e(X)).runWizard("enablePages")}}]},null,8,["actions"]))}}});export{Ue as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as y}from"./StateEditor.vue.
|
|
1
|
+
import{_ as y}from"./StateEditor.vue.96fdf802.js";import{a as k,o as t,f as r,F as $,v as g,c as p,w as a,L as S,n as C,g as N,b as B,m as w,u as s,i as c,y as m,l as D,k as E}from"./entry.e1ce6ad4.js";import{_ as F}from"./NSectionBlock.cef5b3bf.js";import{_ as P}from"./NIconButton.vue.8aefaa88.js";import"./NIconTitle.vue.6c944aa7.js";const R={key:0,flex:"~ col gap-1"},V={key:1,italic:"",px4:"",mt2:"",op35:""},j=k({__name:"StateGroup",props:{state:null,prefix:{default:""}},setup(n){return(i,o)=>{const l=y;return t(),r("div",null,[n.state&&Object.keys(n.state).length>0?(t(),r("div",R,[(t(!0),r($,null,g(n.state,(u,e)=>(t(),p(l,{key:e,state:u,name:e.startsWith(n.prefix)?e.slice(n.prefix.length):e},{actions:a(d=>[S(i.$slots,"actions",C(N(d)))]),_:2},1032,["state","name"]))),128))])):(t(),r("div",V," No data "))])}}}),G={key:0},I=k({__name:"payload",setup(n){const i=B(),o=w(()=>i.value?.nuxt.payload);async function l(u){await i.value?.nuxt.hooks.callHookParallel("app:data:refresh",u)}return(u,e)=>{const d=j,_=F,h=E,b=P,v=y;return s(i)?(t(),r("div",G,[c(_,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:a(()=>[c(d,{state:s(o).state,prefix:"$s"},null,8,["state"])]),_:1}),c(_,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{actions:a(()=>[c(h,{n:"xs primary","self-start":"",icon:"i-carbon-recycle",onClick:e[0]||(e[0]=x=>l())},{default:a(()=>[D(" Re-fetch all data ")]),_:1})]),default:a(()=>[c(d,{state:s(o).data},{actions:a(({isOpen:x,name:f})=>[x&&f?(t(),p(b,{key:0,title:`Re-fetch '${f}'`,icon:"carbon-recycle",onClick:K=>l([f])},null,8,["title","onClick"])):m("",!0)]),_:1},8,["state"])]),_:1}),s(o).functions&&Object.keys(s(o).functions).length?(t(),p(_,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions (experimental)"},{default:a(()=>[c(v,{"ml--6":"",state:s(o).functions},null,8,["state"])]),_:1})):m("",!0)])):m("",!0)}}});export{I as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as k}from"./NTip.vue.
|
|
1
|
+
import{_ as k}from"./NTip.vue.2f192405.js";import{_ as C}from"./FilepathItem.vue.c7d65dc2.js";import{_ as P}from"./Badge.b694092e.js";import{_ as $}from"./DurationDisplay.vue.0d7e7768.js";import{a as y,A as b,m as v,ae as B,o as e,f as _,h as g,t as N,i as d,u as c,c as i,y as a,b as w,w as h,l as D,v as V,x as F,F as I}from"./entry.e1ce6ad4.js";import{_ as S}from"./NSectionBlock.cef5b3bf.js";import"./editor.58d10855.js";import"./context.10127184.js";import"./NIconTitle.vue.6c944aa7.js";const T={flex:"~ gap2","items-center":""},W={"text-sm":"",op25:"","text-right":"",w8:""},z={key:0,"text-right":"","flex-auto":""},A=y({__name:"PluginItem",props:{plugin:null,index:null},setup(n){const s=n,u=b(),l=v(()=>B(s.plugin.src,u.value?.rootDir||"").path);return(m,p)=>{const o=C,t=P,r=$;return e(),_("div",T,[g("div",W,N(n.index),1),d(o,{filepath:s.plugin.src,subpath:!0},null,8,["filepath"]),g("div",null,[c(l).startsWith("#")?(e(),i(t,{key:0,"text-rose":"","bg-rose-400:10":"",textContent:"virtual"})):c(l).startsWith(".")?a("",!0):(e(),i(t,{key:1,"bg-gray-400:10":"","text-gray":"",textContent:"module"})),n.plugin.mode==="server"?(e(),i(t,{key:2,"bg-teal-400:10":"","text-teal-400":"",textContent:"server"})):a("",!0),n.plugin.mode==="client"?(e(),i(t,{key:3,"bg-orange-400:10":"","text-orange-400":"",textContent:"client"})):a("",!0)]),n.plugin.metric?.duration!=null?(e(),_("div",z,[d(r,{duration:n.plugin.metric?.duration,factor:10},null,8,["duration"])])):a("",!0)])}}}),E={pt4:""},O=y({__name:"plugins",setup(n){const s=b(),u=w(),l=v(()=>{const m=s.value?.plugins||[],p=u.value.getClientPluginMetrics();return m.map(o=>{const t=typeof o=="string"?{src:o}:o;return{...t,metric:p.find(r=>r.src===t.src||r.src.startsWith(t.src))}})});return(m,p)=>{const o=k,t=A,r=S;return c(s)?(e(),i(r,{key:0,icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${c(s).plugins.length}`},{default:h(()=>[d(o,{n:"green6",icon:"carbon-meter"},{default:h(()=>[D(" Plugins runs before your application at runtime, the time plugins cost will directly affect your application's initial loading time. ")]),_:1}),g("div",E,[(e(!0),_(I,null,V(c(l),(f,x)=>(e(),i(t,{key:f.src,plugin:f,index:x+1,py2:"","border-base":"","ml--4":"",class:F(x?"border-t":"")},null,8,["plugin","index","class"]))),128))])]),_:1},8,["description"])):a("",!0)}}});export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as u}from"./StateEditor.vue.
|
|
1
|
+
import{_ as u}from"./StateEditor.vue.96fdf802.js";import{_ as m}from"./NSectionBlock.cef5b3bf.js";import{a as _,b as f,A as d,m as c,u as n,o as g,f as C,i as e,w as i,y as v}from"./entry.e1ce6ad4.js";import"./NIconButton.vue.8aefaa88.js";import"./NIconTitle.vue.6c944aa7.js";const x={key:0},S=_({__name:"runtime-configs",setup(b){const o=f(),r=d(),l=c(()=>o.value?.nuxt.payload),p=c(()=>{const t={...r.value?.runtimeConfig};return delete t.public,delete t.app,t});return(t,h)=>{const s=u,a=m;return n(o)?(g(),C("div",x,[e(a,{icon:"carbon-settings-services",text:"App Config"},{default:i(()=>[e(s,{"ml--6":"",state:n(o).appConfig},null,8,["state"])]),_:1}),e(a,{icon:"carbon-settings",text:"Public Runtime Config"},{default:i(()=>[e(s,{"ml--6":"",state:n(l).config?.public},null,8,["state"])]),_:1}),e(a,{icon:"i-carbon-code-signing-service",open:!1,text:"Private Runtime Config",description:"These values are not exposed to the client. Readonly in the DevTools."},{default:i(()=>[e(s,{"ml--6":"",state:n(p),readonly:""},null,8,["state"])]),_:1})])):v("",!0)}}});export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,o,f as r}from"./entry.
|
|
1
|
+
import{a as e,o,f as r}from"./entry.e1ce6ad4.js";const c=e({__name:"server-routes",setup(t){return(n,a)=>(o(),r("div",null," WIP "))}});export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as S}from"./NIconTitle.vue.6c944aa7.js";import{_ as C}from"./NSelect.vue.bd089297.js";import{_ as N}from"./NCheckbox.vue.f03c4497.js";import{_ as U}from"./TabIcon.vue.ee21be15.js";import{_ as $}from"./NSwitch.vue.ce97ebe7.js";import{a as B,aa as D,o as n,f as d,i as a,h as o,w as i,u as l,K as p,F as x,v,U as F,t as g,c as I,x as O}from"./entry.e1ce6ad4.js";const E={px6:"","max-w-100":"",py8:""},L={py3:"",flex:"~ col gap-1",border:"b base"},j=o("h3",{"text-lg":"",mb1:""}," UI Scale ",-1),z=["value"],H={py3:"",flex:"~ col gap-1",border:"b base"},K=o("h3",{"text-lg":"",mb1:""}," Features ",-1),R=o("span",null,"Close DevTools when clicking outside",-1),q=o("span",null,"Show experimental features",-1),A={py3:"",flex:"~ col gap-1"},G=o("h3",{"text-lg":"",mb1:""}," Tabs ",-1),Z=B({__name:"settings",setup(J){const{interactionCloseOnOutsideClick:r,showExperimentalFeatures:u,scale:m,hiddenTabs:s}=F(),h=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],y=D();function V(c,t){t?s.value=s.value.filter(_=>_!==c):s.value.push(c)}return(c,t)=>{const _=S,b=C,f=N,T=U,k=$;return n(),d("div",E,[a(_,{class:"text-xl op75",icon:"i-carbon-settings",text:"DevTools Settings"}),o("div",L,[j,a(b,{modelValue:l(m),"onUpdate:modelValue":t[0]||(t[0]=e=>p(m)?m.value=e:null),n:"primary"},{default:i(()=>[(n(),d(x,null,v(h,e=>o("option",{key:e[0],value:e[1]},g(e[0]),9,z)),64))]),_:1},8,["modelValue"])]),o("div",H,[K,a(f,{modelValue:l(r),"onUpdate:modelValue":t[1]||(t[1]=e=>p(r)?r.value=e:null),"n-primary":""},{default:i(()=>[R]),_:1},8,["modelValue"]),a(f,{modelValue:l(u),"onUpdate:modelValue":t[2]||(t[2]=e=>p(u)?u.value=e:null),"n-primary":""},{default:i(()=>[q]),_:1},8,["modelValue"])]),o("div",A,[G,(n(!0),d(x,null,v(l(y).all.value,e=>(n(),I(k,{key:e.name,"n-primary":"",flex:"~ row-reverse",py1:"","model-value":!l(s).includes(e.name),"onUpdate:modelValue":w=>V(e.name,w)},{default:i(()=>[o("div",{flex:"~ gap-2","items-center":"","flex-auto":"","justify-start":"",class:O(l(s).includes(e.name)?"op25":"")},[a(T,{"text-xl":"",icon:e.icon,title:e.title},null,8,["icon","title"]),o("span",null,g(e.title),1)],2)]),_:2},1032,["model-value","onUpdate:modelValue"]))),128))])])}}});export{Z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as ae}from"./NIconButton.vue.
|
|
1
|
+
import{_ as ae}from"./NIconButton.vue.8aefaa88.js";import{_ as se}from"./NSelect.vue.bd089297.js";import{_ as re}from"./NTextInput.vue.188f5529.js";import{a as F,o as r,c as y,w as d,a3 as H,Z as le,u as t,ah as P,L as ue,am as ie,X as ce,D as I,m as j,a9 as A,af as R,a7 as de,T as me,r as pe,e as fe,C as p,f as u,h as l,l as c,i as m,F as b,v as L,an as T,t as v,K as D,x as E,ax as q,y as z,aC as _e,aD as ve,aH as ye,as as ge,H as he,k as ke,aI as xe}from"./entry.e1ce6ad4.js";import{_ as be}from"./PanelLeftRight.vue.73b30819.js";const we=F({__name:"NLink",props:{to:null,href:null,target:null},setup(w){return(i,g)=>(r(),y(le(w.href||w.target?"a":t(P)),H(i.$props,{class:"n-transition n-link n-link-base hover:n-link-hover"}),{default:d(()=>[ue(i.$slots,"default")]),_:3},16))}}),Ce={class:"items-center flex justify-between px-3 h-[48px] gap1"},Ke={class:"w-full text-sm"},Ve=["value"],Ne=l("div",{"x-divider":""},null,-1),$e={key:0,"h-full":"","of-hidden":"",flex:"~ col"},Se={border:"b base",class:"text-sm flex items-center justify-between flex-none px-4 h-[49px]"},Ie={class:"flex items-center gap-4"},je={key:1},Le=["onKeyup"],De={key:1,flex:"","items-center":"",op50:"","h-full":"","justify-center":"","text-center":""},qe=l("br",null,null,-1),Ue={key:1,grid:"~",class:"h-full of-hidden"},Be={class:"flex gap-4 justify-center op50 text-center flex-col"},Me={key:0},Ae={key:1},Re=l("code",null,"nitro.storage",-1),Te=l("br",null,null,-1),Ee={class:"mx-auto"},ze={class:"font-bold"},Fe=l("br",null,null,-1),He={class:"text-sm"},Pe=l("br",null,null,-1),Oe={key:0,class:"font-mono text-xs"},Ye=F({__name:"storage",async setup(w){let i,g;const O=ie(),h=ce(),k=I(""),_=I(""),a=j({get(){return A().query?.storage},set(n){h.replace({query:{storage:n}})}}),e=I(),x=j(()=>A().query?.key),{data:C}=([i,g]=R(()=>T("storageMounts",()=>p.getStorageMounts())),i=await i,g(),i),{data:K,refresh:U}=([i,g]=R(async()=>T("storageKeys",async()=>a.value?await p.getStorageKeys(a.value):[])),i=await i,g(),i),W=O.hook("storage:key:update",async(n,s)=>{if(!(!a.value||n.split(":")[0]!==a.value)&&(await U(),x.value===n)){if(s==="remove")return h.replace({query:{storage:a.value}});await N(x.value)}});de(W),me(a,U),pe(async()=>{if(!x.value){e.value=null;return}N(x.value)}),fe("keydown",n=>{n.key==="s"&&(n.ctrlKey||n.metaKey)&&($(),n.preventDefault())});function V(n){return n.replace(`${a.value}:`,"")}const X=j(()=>K.value?K.value.filter(n=>n.includes(k.value)):[]);async function N(n){const s=await p.getStorageItem(n);e.value={key:n,updatedKey:V(n),editingKey:!1,content:s,updatedContent:s}}async function Z(){if(!_.value||!a.value)return;const n=`${a.value}:${_.value}`;K.value?.includes(n)||await p.setStorageItem(n,""),h.replace({query:{storage:a.value,key:n}}),_.value=""}async function $(){e.value&&(await p.setStorageItem(e.value.key,e.value.updatedContent),await N(e.value.key))}async function G(){!e.value||!a.value||(await p.removeStorageItem(e.value.key),e.value=null)}async function J(){if(!e.value||!a.value)return;const n=`${a.value}:${e.value.updatedKey}`;await p.setStorageItem(n,e.value.updatedContent),await p.removeStorageItem(e.value.key),h.replace({query:{storage:a.value,key:n}})}return(n,s)=>{const Q=ae,Y=se,S=re,ee=P,te=he,B=ke,M=we,ne=be,oe=xe;return t(a)?(r(),y(ne,{key:0,"storage-key":"tab-storage"},{left:d(()=>[l("div",Ce,[m(Q,{icon:"carbon-chevron-left","ml--1":"",onClick:s[0]||(s[0]=o=>a.value="")}),l("div",Ke,[m(Y,{modelValue:t(a),"onUpdate:modelValue":s[1]||(s[1]=o=>D(a)?a.value=o:null),n:"primary",icon:"carbon-data-base"},{default:d(()=>[(r(!0),u(b,null,L(t(C),(o,f)=>(r(),u("option",{key:f,value:f},v(f),9,Ve))),128))]),_:1},8,["modelValue"])])]),m(S,{modelValue:t(k),"onUpdate:modelValue":s[2]||(s[2]=o=>D(k)?k.value=o: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),u(b,null,L(t(X),o=>(r(),u(b,{key:o},[m(ee,{"text-sm":"",px2:"",py1:"","font-mono":"",block:"",truncate:"",to:{query:{key:o,storage:t(a)}},class:E(o===t(e)?.key?"text-primary n-bg-active":"text-secondary hover:n-bg-hover")},{default:d(()=>[c(v(V(o)),1)]),_:2},1032,["to","class"]),Ne],64))),128)),m(S,{modelValue:t(_),"onUpdate:modelValue":s[3]||(s[3]=o=>D(_)?_.value=o:null),icon:"carbon-add",placeholder:"key",n:"sm",border:"t-none x-none base! rounded-0",class:"w-full py2 ring-0! font-mono",onKeyup:q(Z,["enter"])},null,8,["modelValue","onKeyup"])]),right:d(()=>[t(e)?.key?(r(),u("div",$e,[l("div",Se,[l("div",Ie,[t(e).editingKey?(r(),y(S,{key:0,modelValue:t(e).updatedKey,"onUpdate:modelValue":s[4]||(s[4]=o=>t(e).updatedKey=o),onKeyup:q(J,["enter"])},null,8,["modelValue","onKeyup"])):(r(),u("code",je,[c(v(V(t(e).key))+" ",1),m(te,{icon:"carbon-edit",class:"op50 cursor-pointer hover:op100",onClick:s[5]||(s[5]=o=>t(e).editingKey=!0)})])),t(e).editingKey?z("",!0):(r(),y(B,{key:2,n:"green xs",disabled:t(e).content===t(e).updatedContent,class:E({"border-green":t(e).content!==t(e).updatedContent}),onClick:$},{default:d(()=>[c(" Save ")]),_:1},8,["disabled","class"]))]),l("div",null,[m(B,{n:"red xs",onClick:G},{default:d(()=>[c(" Delete ")]),_:1})])]),typeof t(e).content=="object"?(r(),y(t(_e),H({key:0,modelValue:t(e).updatedContent,"onUpdate:modelValue":s[6]||(s[6]=o=>t(e).updatedContent=o),class:[[n.$colorMode.value==="dark"?"jse-theme-dark":"light"],"h-full text-sm json-editor-vue of-auto outline-none"]},n.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):ve((r(),u("textarea",{key:1,"onUpdate:modelValue":s[7]||(s[7]=o=>t(e).updatedContent=o),placeholder:"Item value...",class:"of-auto h-full text-sm outline-none font-mono p-4",onKeyup:q(ge($,["ctrl"]),["enter"])},null,40,Le)),[[ye,t(e).updatedContent]])])):(r(),u("div",De,[l("p",null,[c(" Select one key to start."),qe,c("Learn more about "),m(M,{href:"https://nitro.unjs.io/guide/introduction/storage",n:"orange",target:"_blank"},{default:d(()=>[c(" Nitro storage ")]),_:1})])]))]),_:1})):(r(),u("div",Ue,[l("div",Be,[Object.keys(t(C)).length?(r(),u("p",Me," Select one storage to start: ")):(r(),u("p",Ae,[c(" No custom storage defined in "),Re,c("."),Te,c(" Learn more about "),m(M,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:d(()=>[c(" Nitro storage ")]),_:1})])),l("div",Ee,[(r(!0),u(b,null,L(t(C),(o,f)=>(r(),y(oe,{key:f,class:"p-4 cursor-pointer text-left border mb-4 hover:border-green",onClick:We=>a.value=f},{default:d(()=>[l("span",ze,v(f),1),Fe,l("span",He,v(o.driver)+" driver",1),Pe,o.base?(r(),u("span",Oe,v(o.base),1)):z("",!0)]),_:2},1032,["onClick"]))),128))])])]))}}});export{Ye as default};
|