@nuxt/devtools 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/chunks/module-main.mjs +5 -2
  2. package/dist/chunks/plugin-metrics.mjs +4 -4
  3. package/dist/client/200.html +2 -2
  4. package/dist/client/404.html +2 -2
  5. package/dist/client/__inspecting/index.html +2 -2
  6. package/dist/client/_nuxt/{Badge.c6f0948b.js → Badge.bd9688d4.js} +1 -1
  7. package/dist/client/_nuxt/{CodeSnippets.vue.c8638278.js → CodeSnippets.vue.c6839222.js} +1 -1
  8. package/dist/client/_nuxt/{DrawerRight.vue.f79970eb.js → DrawerRight.vue.d8660e34.js} +1 -1
  9. package/dist/client/_nuxt/{DurationDisplay.vue.d1c8be7a.js → DurationDisplay.vue.f895ca51.js} +1 -1
  10. package/dist/client/_nuxt/{FilepathItem.vue.22e62c13.js → FilepathItem.vue.1c96e6cc.js} +1 -1
  11. package/dist/client/_nuxt/{HelpFab.vue.82dbe71b.js → HelpFab.vue.748cc95d.js} +1 -1
  12. package/dist/client/_nuxt/{LaunchPage.vue.e9f10392.js → LaunchPage.vue.b71fffc3.js} +1 -1
  13. package/dist/client/_nuxt/{NCheckbox.vue.2dbb6d84.js → NCheckbox.vue.96f7ae1a.js} +1 -1
  14. package/dist/client/_nuxt/{NCodeBlock.vue.7df96def.js → NCodeBlock.vue.d5603a1f.js} +1 -1
  15. package/dist/client/_nuxt/{NIconButton.vue.61b6fdb9.js → NIconButton.vue.d0a9a760.js} +1 -1
  16. package/dist/client/_nuxt/{NIconTitle.vue.db04ddec.js → NIconTitle.vue.c8b7e265.js} +1 -1
  17. package/dist/client/_nuxt/{NLink.vue.cee1facb.js → NLink.vue.404a4f6c.js} +1 -1
  18. package/dist/client/_nuxt/{NMarkdown.vue.bfa53523.js → NMarkdown.vue.4d74a5d5.js} +1 -1
  19. package/dist/client/_nuxt/{NPanelGrids.f0b55b40.js → NPanelGrids.7b5efdc5.js} +1 -1
  20. package/dist/client/_nuxt/{NSectionBlock.b03d4f1a.js → NSectionBlock.5d6e9b8e.js} +1 -1
  21. package/dist/client/_nuxt/{NSelect.vue.04879311.js → NSelect.vue.e5de3a65.js} +1 -1
  22. package/dist/client/_nuxt/{NSwitch.vue.6de70289.js → NSwitch.vue.25cba5a5.js} +1 -1
  23. package/dist/client/_nuxt/{NTextInput.vue.3d7af8ee.js → NTextInput.vue.fc99730b.js} +1 -1
  24. package/dist/client/_nuxt/{NTip.vue.d3e88526.js → NTip.vue.3c4f8e2d.js} +1 -1
  25. package/dist/client/_nuxt/{Navbar.vue.1175e5b5.js → Navbar.vue.f2b7b652.js} +1 -1
  26. package/dist/client/_nuxt/{NpmVersionCheck.vue.82d98ad9.js → NpmVersionCheck.vue.06d8aff2.js} +1 -1
  27. package/dist/client/_nuxt/{PanelLeftRight.vue.b6fba8cf.js → PanelLeftRight.vue.8eda640c.js} +1 -1
  28. package/dist/client/_nuxt/{StateEditor.vue.452c2a1e.js → StateEditor.vue.544a7d41.js} +1 -1
  29. package/dist/client/_nuxt/{__inspecting.aa44686c.js → __inspecting.fb15a5b2.js} +1 -1
  30. package/dist/client/_nuxt/{analyze-build.74e951ef.js → analyze-build.1984767c.js} +1 -1
  31. package/dist/client/_nuxt/{assets.fbaf474a.js → assets.fe704899.js} +1 -1
  32. package/dist/client/_nuxt/{client.64d509dc.js → client.b1955e54.js} +1 -1
  33. package/dist/client/_nuxt/{components.6ce21080.js → components.31fd2c9a.js} +1 -1
  34. package/dist/client/_nuxt/{custom-_name_.1f84ba8c.js → custom-_name_.424ca200.js} +1 -1
  35. package/dist/client/_nuxt/{default.2d7cfbe4.js → default.4fda98d6.js} +1 -1
  36. package/dist/client/_nuxt/{editor.e9488ebd.js → editor.02d33c7f.js} +1 -1
  37. package/dist/client/_nuxt/{entry.8297d1ff.js → entry.5024288d.js} +3 -3
  38. package/dist/client/_nuxt/{error-404.6fbc16df.js → error-404.39541df6.js} +1 -1
  39. package/dist/client/_nuxt/{error-500.6f213eb2.js → error-500.6d8c1090.js} +1 -1
  40. package/dist/client/_nuxt/{error-component.b12ab471.js → error-component.d86d2bc0.js} +2 -2
  41. package/dist/client/_nuxt/{full.6c0706c9.js → full.e465e0f9.js} +1 -1
  42. package/dist/client/_nuxt/{hooks.10fe847b.js → hooks.700e3ecc.js} +1 -1
  43. package/dist/client/_nuxt/{imports.dccf485c.js → imports.6c4842e1.js} +1 -1
  44. package/dist/client/_nuxt/{index.e4ec7d02.js → index.6feef59a.js} +1 -1
  45. package/dist/client/_nuxt/{index.bd18d84a.js → index.8ae957ed.js} +1 -1
  46. package/dist/client/_nuxt/{json-editor-vue.98769e76.js → json-editor-vue.2379a5ec.js} +1 -1
  47. package/dist/client/_nuxt/{middleware.4d606e29.js → middleware.4b7f7a54.js} +1 -1
  48. package/dist/client/_nuxt/modules.0c194e4b.js +4 -0
  49. package/dist/client/_nuxt/{none.685e4f52.js → none.94eb9e94.js} +1 -1
  50. package/dist/client/_nuxt/{open-graph.424b4348.js → open-graph.9ad8c33f.js} +1 -1
  51. package/dist/client/_nuxt/{overview.13e4bf5e.js → overview.88b9ee1d.js} +1 -1
  52. package/dist/client/_nuxt/{pages.5bc65ca2.js → pages.196c3253.js} +1 -1
  53. package/dist/client/_nuxt/{payload.ac68ce00.js → payload.b786d84c.js} +1 -1
  54. package/dist/client/_nuxt/{plugins.dc27cda6.js → plugins.06f4e6ce.js} +1 -1
  55. package/dist/client/_nuxt/{runtime-configs.34323c66.js → runtime-configs.bfbdafdb.js} +1 -1
  56. package/dist/client/_nuxt/{server-routes.669a8424.js → server-routes.477b8c10.js} +1 -1
  57. package/dist/client/_nuxt/settings.ffb64330.js +1 -0
  58. package/dist/client/_nuxt/{storage.edd17bdb.js → storage.20802247.js} +1 -1
  59. package/dist/client/_nuxt/{terminals.20082284.js → terminals.ab54a064.js} +1 -1
  60. package/dist/client/_nuxt/{unocss-runtime.f33e0ffe.js → unocss-runtime.83acba48.js} +1 -1
  61. package/dist/client/_nuxt/{virtual-files.16d4138c.js → virtual-files.35133aa6.js} +1 -1
  62. package/dist/client/index.html +2 -2
  63. package/dist/client/modules/analyze-build/index.html +2 -2
  64. package/dist/client/modules/assets/index.html +2 -2
  65. package/dist/client/modules/components/index.html +2 -2
  66. package/dist/client/modules/hooks/index.html +2 -2
  67. package/dist/client/modules/imports/index.html +2 -2
  68. package/dist/client/modules/middleware/index.html +2 -2
  69. package/dist/client/modules/modules/index.html +2 -2
  70. package/dist/client/modules/open-graph/index.html +2 -2
  71. package/dist/client/modules/overview/index.html +2 -2
  72. package/dist/client/modules/pages/index.html +2 -2
  73. package/dist/client/modules/payload/index.html +2 -2
  74. package/dist/client/modules/plugins/index.html +2 -2
  75. package/dist/client/modules/runtime-configs/index.html +2 -2
  76. package/dist/client/modules/server-routes/index.html +2 -2
  77. package/dist/client/modules/storage/index.html +2 -2
  78. package/dist/client/modules/terminals/index.html +2 -2
  79. package/dist/client/modules/virtual-files/index.html +2 -2
  80. package/dist/client/settings/index.html +2 -2
  81. package/dist/module.json +1 -1
  82. package/package.json +4 -4
  83. package/dist/client/_nuxt/modules.7f83fecd.js +0 -4
  84. package/dist/client/_nuxt/settings.5a3586f3.js +0 -1
@@ -1,3 +1,3 @@
1
- import{_ as Z}from"./NTextInput.vue.3d7af8ee.js";import{_ as ee}from"./NIconButton.vue.61b6fdb9.js";import{_ as te}from"./Navbar.vue.1175e5b5.js";import{_ as oe}from"./NLink.vue.cee1facb.js";import{a as C,o,c as N,w as g,V as ne,h as a,v as x,n as ae,g as se,a8 as re,p as T,aB as ie,r as I,u as e,f as t,q as R,s as M,t as _,F as $,i as d,l as k,a3 as V,k as ce,P as B,aC as j,aD as le,aE as de,Q as pe,aF as me,aG as ue,aH as ge,aI as P,af as he,G as _e,aJ as fe}from"./entry.8297d1ff.js";import{_ as z}from"./NSectionBlock.b03d4f1a.js";import{_ as ve}from"./NCodeBlock.vue.7df96def.js";import{a as be,u as D}from"./editor.e9488ebd.js";import{_ as we}from"./HelpFab.vue.82dbe71b.js";import"./NIconTitle.vue.db04ddec.js";import"./client.64d509dc.js";const xe={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},J=C({__name:"NTextExternalLink",props:{link:null},setup(n){return(m,i)=>(o(),N(re(n.link?oe:"div"),ae(se(n.link?{href:n.link,target:"_blank",rel:"noopener noreferrer"}:{})),{default:g(()=>[ne(m.$slots,"default"),n.link?(o(),a("div",xe)):x("",!0)]),_:3},16))}}),H=[{name:"title",suggestion:"required",head:{title:"[title]"},seoMeta:{title:"[title]"},docs:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title",description:"A concise and descriptive title for the browser that accurately summarizes the content of the page."},{name:"description",suggestion:"required",head:{meta:[{name:"description",content:"[description]"}]},seoMeta:{description:"[description]"},description:"A one to two sentence summary for search engines that includes relevant keywords to improve visibility in search results."},{name:"icon",suggestion:"recommended",head:{link:[{rel:"icon",type:"image/png",href:"/favicon.png"}]},description:"A small image that appears in the browser tab and bookmark menu to help users easily identify the page."},{name:"lang",suggestion:"recommended",head:{htmlAttrs:{lang:"en"}},description:"The primary language of the page to help search engines and browsers understand the content."},{name:"og:title",suggestion:"recommended",head:{meta:[{property:"og:title",content:"[og:title]"}]},seoMeta:{ogTitle:"[og:title]"},docs:"https://ogp.me/#metadata",description:"A title for the link preview used by social media platforms."},{name:"og:description",suggestion:"recommended",head:{meta:[{property:"og:description",content:"[og:description]"}]},seoMeta:{ogDescription:"[og:description]"},docs:"https://ogp.me/#metadata",description:"A description for the link preview used by social media platforms."},{name:"og:image",suggestion:"recommended",head:{meta:[{property:"og:image",content:"[og:image]"}]},seoMeta:{ogImage:"[og:image]"},docs:"https://ogp.me/#metadata",description:"An image for the link preview used by social media platforms."},{name:"og:url",suggestion:"recommended",head:{meta:[{property:"og:url",content:"[og:url]"}]},seoMeta:{ogUrl:"[og:url]"},docs:"https://ogp.me/#metadata",description:"A canonical URL for the link preview used to specify the preferred URL to display in search engine results and social media previews when multiple URLs may point to the same page."},{name:"twitter:title",suggestion:"recommended",head:{meta:[{name:"twitter:title",content:"[twitter:title]"}]},seoMeta:{twitterTitle:"[twitter:title]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A title for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:description",suggestion:"recommended",head:{meta:[{name:"twitter:description",content:"[twitter:description]"}]},seoMeta:{twitterDescription:"[twitter:description]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A description for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:image",suggestion:"recommended",head:{meta:[{name:"twitter:image",content:"[twitter:image]"}]},seoMeta:{twitterImage:"[twitter:image]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"An image for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:card",suggestion:"recommended",head:{meta:[{name:"twitter:card",content:"summary"}]},seoMeta:{twitterCard:"summary"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"The type of Twitter card to use, which determines the type of card to display in link previews on Twitter."}],ye={flex:"~ wrap","mt--2":"","w-full":"","flex-none":""},ke=["onClick"],$e=t("div",{border:"b base","flex-auto":""},null,-1),Te={key:0,"x-divider":""},Ce={key:1,"x-divider":""},Se={flex:"~ gap-1 items-center",px4:"",py2:""},Ne=t("div",{"i-carbon-warning":"","text-orange":""},null,-1),Me={"w-full":"",p2:"",op75:""},Oe={key:1,m4:"",flex:"~ col gap-2"},Ae={flex:"~ gap-1 wrap items-center"},Ie={key:1},Re={flex:"~ gap-2",n:"sm primary",absolute:"","right-2":"","top-2":""},Be=C({__name:"OpenGraphMissingTabs",props:{tags:null,matchedRouteFilepath:null},setup(n){const m=n,i=T(()=>H.filter(c=>!m.tags?.some(p=>p.name===c.name))),l=T(()=>{let c={};const p={};i.value.forEach(h=>{h.seoMeta?Object.assign(p,h.seoMeta):c=ie(c,h.head)});const b=[];if(Object.keys(p).length){const h=JSON.stringify(p,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");b.push(`useSeoMeta(${h})`)}if(Object.keys(c).length){const h=JSON.stringify(c,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");b.push(`useHead(${h})`)}return b.join(`
1
+ import{_ as Z}from"./NTextInput.vue.fc99730b.js";import{_ as ee}from"./NIconButton.vue.d0a9a760.js";import{_ as te}from"./Navbar.vue.f2b7b652.js";import{_ as oe}from"./NLink.vue.404a4f6c.js";import{a as C,o,c as N,w as g,V as ne,h as a,v as x,n as ae,g as se,a8 as re,p as T,aB as ie,r as I,u as e,f as t,q as R,s as M,t as _,F as $,i as d,l as k,a3 as V,k as ce,P as B,aC as j,aD as le,aE as de,Q as pe,aF as me,aG as ue,aH as ge,aI as P,af as he,G as _e,aJ as fe}from"./entry.5024288d.js";import{_ as z}from"./NSectionBlock.5d6e9b8e.js";import{_ as ve}from"./NCodeBlock.vue.d5603a1f.js";import{a as be,u as D}from"./editor.02d33c7f.js";import{_ as we}from"./HelpFab.vue.748cc95d.js";import"./NIconTitle.vue.c8b7e265.js";import"./client.b1955e54.js";const xe={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},J=C({__name:"NTextExternalLink",props:{link:null},setup(n){return(m,i)=>(o(),N(re(n.link?oe:"div"),ae(se(n.link?{href:n.link,target:"_blank",rel:"noopener noreferrer"}:{})),{default:g(()=>[ne(m.$slots,"default"),n.link?(o(),a("div",xe)):x("",!0)]),_:3},16))}}),H=[{name:"title",suggestion:"required",head:{title:"[title]"},seoMeta:{title:"[title]"},docs:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title",description:"A concise and descriptive title for the browser that accurately summarizes the content of the page."},{name:"description",suggestion:"required",head:{meta:[{name:"description",content:"[description]"}]},seoMeta:{description:"[description]"},description:"A one to two sentence summary for search engines that includes relevant keywords to improve visibility in search results."},{name:"icon",suggestion:"recommended",head:{link:[{rel:"icon",type:"image/png",href:"/favicon.png"}]},description:"A small image that appears in the browser tab and bookmark menu to help users easily identify the page."},{name:"lang",suggestion:"recommended",head:{htmlAttrs:{lang:"en"}},description:"The primary language of the page to help search engines and browsers understand the content."},{name:"og:title",suggestion:"recommended",head:{meta:[{property:"og:title",content:"[og:title]"}]},seoMeta:{ogTitle:"[og:title]"},docs:"https://ogp.me/#metadata",description:"A title for the link preview used by social media platforms."},{name:"og:description",suggestion:"recommended",head:{meta:[{property:"og:description",content:"[og:description]"}]},seoMeta:{ogDescription:"[og:description]"},docs:"https://ogp.me/#metadata",description:"A description for the link preview used by social media platforms."},{name:"og:image",suggestion:"recommended",head:{meta:[{property:"og:image",content:"[og:image]"}]},seoMeta:{ogImage:"[og:image]"},docs:"https://ogp.me/#metadata",description:"An image for the link preview used by social media platforms."},{name:"og:url",suggestion:"recommended",head:{meta:[{property:"og:url",content:"[og:url]"}]},seoMeta:{ogUrl:"[og:url]"},docs:"https://ogp.me/#metadata",description:"A canonical URL for the link preview used to specify the preferred URL to display in search engine results and social media previews when multiple URLs may point to the same page."},{name:"twitter:title",suggestion:"recommended",head:{meta:[{name:"twitter:title",content:"[twitter:title]"}]},seoMeta:{twitterTitle:"[twitter:title]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A title for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:description",suggestion:"recommended",head:{meta:[{name:"twitter:description",content:"[twitter:description]"}]},seoMeta:{twitterDescription:"[twitter:description]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A description for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:image",suggestion:"recommended",head:{meta:[{name:"twitter:image",content:"[twitter:image]"}]},seoMeta:{twitterImage:"[twitter:image]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"An image for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:card",suggestion:"recommended",head:{meta:[{name:"twitter:card",content:"summary"}]},seoMeta:{twitterCard:"summary"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"The type of Twitter card to use, which determines the type of card to display in link previews on Twitter."}],ye={flex:"~ wrap","mt--2":"","w-full":"","flex-none":""},ke=["onClick"],$e=t("div",{border:"b base","flex-auto":""},null,-1),Te={key:0,"x-divider":""},Ce={key:1,"x-divider":""},Se={flex:"~ gap-1 items-center",px4:"",py2:""},Ne=t("div",{"i-carbon-warning":"","text-orange":""},null,-1),Me={"w-full":"",p2:"",op75:""},Oe={key:1,m4:"",flex:"~ col gap-2"},Ae={flex:"~ gap-1 wrap items-center"},Ie={key:1},Re={flex:"~ gap-2",n:"sm primary",absolute:"","right-2":"","top-2":""},Be=C({__name:"OpenGraphMissingTabs",props:{tags:null,matchedRouteFilepath:null},setup(n){const m=n,i=T(()=>H.filter(c=>!m.tags?.some(p=>p.name===c.name))),l=T(()=>{let c={};const p={};i.value.forEach(h=>{h.seoMeta?Object.assign(p,h.seoMeta):c=ie(c,h.head)});const b=[];if(Object.keys(p).length){const h=JSON.stringify(p,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");b.push(`useSeoMeta(${h})`)}if(Object.keys(c).length){const h=JSON.stringify(c,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");b.push(`useHead(${h})`)}return b.join(`
2
2
 
3
3
  `)}),u=be(),O=D(),y=["Missing Tags","Code Snippet"],f=I(y[0]);return(c,p)=>{const b=J,h=V,S=ce,A=ve,E=z;return e(i).length?(o(),N(E,{key:0,text:"Missing Tags",description:`${e(i).length} missing tags`,icon:"carbon:warning-other","header-class":"text-orange op100! [[open]_&]:text-inherit",padding:!1},{default:g(()=>[t("div",ye,[(o(),a($,null,R(y,(s,r)=>t("button",{key:r,px4:"",py2:"",border:"r t base",hover:"bg-active",class:M(s===e(f)?"":"border-b"),onClick:v=>f.value=s},[t("div",{class:M(s===e(f)?"":"op30"),capitalize:""},_(s),3)],10,ke)),64)),$e]),e(f)===y[0]?(o(),N(h,{key:0,grid:"~ cols-[max-content_1fr]",m4:"","items-center":"","justify-between":"","of-hidden":""},{default:g(()=>[(o(!0),a($,null,R(e(i),(s,r)=>(o(),a($,{key:r},[r?(o(),a("div",Te)):x("",!0),r?(o(),a("div",Ce)):x("",!0),t("div",Se,[Ne,d(b,{op50:"",link:s.docs,n:"orange"},{default:g(()=>[k(_(s.name),1)]),_:2},1032,["link"])]),t("div",Me,_(s.description),1)],64))),128))]),_:1})):(o(),a("div",Oe,[t("p",Ae,[d(S,{icon:"carbon-copy",n:"xs","px-2":"",onClick:p[0]||(p[0]=s=>e(u)(e(l)))},{default:g(()=>[k(" Copy ")]),_:1}),k(" the following code snippet and paste it into your "),n.matchedRouteFilepath?(o(),N(S,{key:0,icon:"carbon-launch",n:"xs","px-2":"",onClick:p[1]||(p[1]=s=>e(O)(n.matchedRouteFilepath))},{default:g(()=>[k(" page component ")]),_:1})):(o(),a("span",Ie,"page component")),k(" to full fill the missing tags. ")]),d(h,{relative:"","n-code-block":""},{default:g(()=>[d(A,{code:e(l),lang:"ts",lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code"]),t("div",Re,[d(S,{icon:"carbon-copy",onClick:p[2]||(p[2]=s=>e(u)(e(l)))},{default:g(()=>[k(" Copy ")]),_:1})])]),_:1})]))]),_:1},8,["description"])):x("",!0)}}}),Ee={class:"max-w-[524px] min-w-[524px] cursor-pointer bg-base"},Le={class:"break-words border border-base px-[12px] py-[10px] antialiased"},Fe={class:"overflow-hidden truncate whitespace-nowrap text-[12px] leading-[11px] uppercase op50"},Ge={class:"block h-[46px] max-h-[46px] border-separate select-none overflow-hidden break-words text-left",style:{"border-spacing":"0px"}},Pe={class:"mt-[3px] truncate pt-[2px] text-[16px] font-semibold leading-[20px]"},Ve={class:"mt-[3px] block h-[18px] max-h-[80px] border-separate select-none overflow-hidden truncate whitespace-nowrap break-words text-left text-[14px] leading-[20px] op50",style:{"-webkit-line-clamp":"1","border-spacing":"0px","-webkit-box-orient":"vertical"}},je=C({__name:"SocialFacebook",props:{card:null},setup(n){return(m,i)=>(o(),a("div",Ee,[t("div",{class:"h-[274px] border border-b-0 border-base bg-cover bg-center bg-no-repeat",style:B({backgroundImage:`url(${JSON.stringify(n.card.image)})`})},null,4),t("div",Le,[t("div",Fe,_(n.card.url),1),t("div",Ge,[t("div",Pe,_(n.card.title),1),t("div",Ve,_(n.card.description),1)])])]))}}),ze={class:"max-w-[438px] min-w-[438px] border border-base rounded-[0.85714em] bg-base -outline-offset-1"},De={class:"break-words border-base p-[0.75em] antialiased",flex:"~ col justify-center gap-1"},Je={class:"mt-[0.32333em] overflow-hidden truncate whitespace-nowrap text-[14px] leading-[18px] lowercase op50"},He={class:"m-0 truncate text-[14px] font-semibold leading-[19px]"},Ue={class:"line-clamp-2 block select-none overflow-hidden break-words text-left text-[14px] leading-[18px] op50"},qe=C({__name:"SocialTwitter",props:{tags:null},setup(n){const m=n,i=T(()=>j(m.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"twitter:image"},{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"twitter:image:alt"}],description:[{tag:"meta",name:"twitter:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]})),l=T(()=>i.value.image?m.tags.find(u=>u.tag==="meta"&&u.name==="twitter:card")?.value||"summary_large_image":"summary");return(u,O)=>(o(),a("div",ze,[t("div",{class:M(["cursor-pointer overflow-hidden leading-[1.3em]",e(l)==="summary_large_image"?"":"flex"]),hover:"bg-[#88888805]"},[e(l)==="summary_large_image"?(o(),a("div",{key:0,class:"h-[220px] border-b border-base bg-cover bg-center bg-no-repeat",style:B({backgroundImage:`url(${JSON.stringify(e(i).image)})`})},null,4)):(o(),a("div",{key:1,class:"h-[122px] w-[122px] flex-none border-r border-base bg-cover bg-center bg-no-repeat",style:B({backgroundImage:`url(${JSON.stringify(e(i).image)})`})},null,4)),t("div",De,[t("div",Je,_(e(i).url),1),t("div",He,_(e(i).title),1),t("div",Ue,_(e(i).description),1)])],2)]))}}),Ke={class:"max-w-[520px] min-w-[520px] cursor-pointer overflow-hidden border border-base rounded-[2px] shadow-md bg-base"},Qe={class:"break-words p-[10px] antialiased"},We={class:"block h-auto max-h-[50px] border-separate select-none break-words text-left",style:{"border-spacing":"0px"}},Ye={class:"pb-[2px] text-[16px] font-semibold leading-[24px]"},Xe={class:"overflow-hidden truncate whitespace-nowrap text-xs font-normal uppercase op85"},Ze=C({__name:"SocialLinkedin",props:{card:null},setup(n){return(m,i)=>(o(),a("div",Ke,[t("div",{class:"h-[270px] border-b border-base bg-cover bg-center bg-no-repeat",style:B({backgroundImage:`url(${JSON.stringify(n.card.image)})`})},null,4),t("div",Qe,[t("div",We,[t("div",Ye,_(n.card.title),1),t("div",Xe,_(n.card.url),1)])])]))}}),et={"h-full":"","w-520":"",flex:"~ col"},tt={flex:"~ wrap","w-full":"","flex-none":""},ot=["onClick"],nt=t("div",{border:"b base","flex-auto":""},null,-1),at={flex:"~ items-center justify-center","flex-auto":"",p4:"","n-panel-grids":""},st={key:0},rt={key:1},it={key:2},ct=C({__name:"SocialPreviewGroup",props:{tags:null},setup(n){const m=n,i=["twitter","facebook","linkedin"],l=I(i[0]),u=T(()=>j(m.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"og:image:alt"}],description:[{tag:"meta",name:"og:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]}));return(O,y)=>{const f=je,c=qe,p=Ze;return o(),a("div",et,[t("div",tt,[(o(),a($,null,R(i,(b,h)=>t("button",{key:h,px4:"",py2:"",border:"r base",hover:"bg-active",class:M(b===e(l)?"":"border-b"),onClick:S=>l.value=b},[t("div",{class:M(b===e(l)?"":"op30"),capitalize:""},_(b),3)],10,ot)),64)),nt]),t("div",at,[e(l)==="facebook"?(o(),a("div",st,[d(f,{card:e(u)},null,8,["card"])])):e(l)==="twitter"?(o(),a("div",rt,[d(c,{tags:n.tags},null,8,["tags"])])):e(l)==="linkedin"?(o(),a("div",it,[d(p,{card:e(u)},null,8,["card"])])):x("",!0)])])}}}),lt={class:"markdown-body"},dt=le('<h1>Open Graph</h1><p>Nuxt provides several different ways to manage your meta tags using <a href="https://unhead.harlanzw.com/" target="_blank" rel="noopener"><code>unhead</code></a>. Improve your Nuxt app’s SEO with powerful head config, composables and components.</p><p><a href="https://nuxt.com/docs/getting-started/seo-meta" target="_blank" rel="noopener">Learn more on the documentation</a></p><hr><p>You can also find how open graph specs are defined in:</p><ul><li><a href="https://ogp.me/" target="_blank" rel="noopener">The Open Graph protocol</a></li><li><a href="https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started" target="_blank" rel="noopener">Twitter Cards</a></li></ul>',6),pt=[dt],mt={__name:"open-graph",setup(n,{expose:m}){return m({frontmatter:{}}),(l,u)=>(o(),a("div",lt,pt))}},ut={flex:"~","h-full":"","w-full":"","of-hidden":""},gt={"h-full":"","flex-auto":"","of-auto":""},ht={"flex-none":"",flex:"~ gap2 items-center"},_t={flex:"~ col"},ft={key:0,"x-divider":""},vt={key:1,"x-divider":""},bt={mr2:"",px4:"",py2:""},At=C({__name:"open-graph",setup(n){const m=I(0),i=de(),l=pe(async()=>(m.value,(await i.value?.resolveTags()).map(r=>{const v=r.props||{};return r.tag==="htmlAttrs"&&v.lang?{tag:"html",name:"lang",value:v.lang}:v.charset?{tag:"meta",name:"charset",value:v.charset}:{tag:r.tag,name:v.property??v.name??v.rel??r.tag,value:v.content??v.href??r.textContent??JSON.stringify(v)}})),[]),u=I(!0);function O(){m.value+=1}const y=me(),f=ue(),c=I(""),p=ge(),b=D();async function h(){c.value!==f.value.path&&y.value.push(c.value||"/")}const S=T(()=>c.value===f.value.path?[]:y.value.resolve(c.value||"/").matched),A=T(()=>{const s=p.value.find(r=>r.path===f.value?.matched?.[0]?.path);return s?.file||s?.meta?.file});function E(s){return H.find(r=>r.name===s.name)?.docs}return P(f).toBeTruthy().then(s=>{c.value=s.path}),P(y).toBeTruthy().then(s=>{s.afterEach(()=>{he(()=>{c.value=f.value.path})})}),(s,r)=>{const v=Z,L=ee,U=te,G=J,q=V,K=z,Q=Be,W=ct,Y=mt,X=we;return o(),a($,null,[t("div",ut,[t("div",gt,[d(U,null,{search:g(()=>[d(v,{modelValue:e(c),"onUpdate:modelValue":r[0]||(r[0]=w=>_e(c)?c.value=w:null),placeholder:"Route",icon:"carbon-direction-right-01 scale-y--100",n:"primary","flex-auto":"","font-mono":"",class:M(["px-5 py-2",e(f).path===e(c)?"":e(S).length?"text-green":"text-orange"]),onKeydown:fe(h,["enter"])},null,8,["modelValue","class","onKeydown"])]),actions:g(()=>[t("div",ht,[e(A)?(o(),N(L,{key:0,"text-lg":"",icon:"carbon:launch",title:"Open file in editor",onClick:r[1]||(r[1]=w=>e(b)(e(A)))})):x("",!0),d(L,{"text-lg":"",icon:"carbon:reset",title:"Refresh Data",onClick:O}),d(L,{"text-lg":"",icon:e(u)?"carbon:side-panel-open":"carbon:open-panel-right",title:"Toggle Preview",onClick:r[2]||(r[2]=w=>u.value=!e(u))},null,8,["icon"])])]),_:1}),t("div",_t,[d(K,{text:"Tags",icon:"carbon:tag-group"},{default:g(()=>[d(q,{grid:"~ cols-[max-content_1fr]","items-center":"","justify-between":"","of-hidden":""},{default:g(()=>[(o(!0),a($,null,R(e(l),(w,F)=>(o(),a($,{key:F},[F?(o(),a("div",ft)):x("",!0),F?(o(),a("div",vt)):x("",!0),t("div",bt,[d(G,{op50:"",link:E(w),n:"primary"},{default:g(()=>[k(_(w.name),1)]),_:2},1032,["link"])]),d(G,{link:w.value.match(/^https?:\/\//)?w.value:void 0,"w-full":"",p2:"","font-mono":"",n:"primary"},{default:g(()=>[k(_(w.value),1)]),_:2},1032,["link"])],64))),128))]),_:1})]),_:1}),d(Q,{tags:e(l),"matched-route-filepath":e(A)},null,8,["tags","matched-route-filepath"])])]),e(u)&&e(l)?.length?(o(),N(W,{key:0,tags:e(l),border:"l base","w-540px":"","flex-none":""},null,8,["tags"])):x("",!0)]),d(X,null,{default:g(()=>[d(Y)]),_:1})],64)}}});export{At as default};
@@ -1 +1 @@
1
- import{a as V,b as j,R as D,a7 as I,al as R,aK as A,aL as L,D as M,p as T,c,w as o,o as s,u as e,h as d,f as t,i as l,t as r,v as a,F as p,aM as $,l as n,j as F,m as O,H as P,k as W}from"./entry.8297d1ff.js";import{_ as G}from"./Badge.c6f0948b.js";import{_ as H}from"./NpmVersionCheck.vue.82d98ad9.js";import{_ as E}from"./NTip.vue.d3e88526.js";import{_ as K}from"./NPanelGrids.f0b55b40.js";import"./NCodeBlock.vue.7df96def.js";import"./client.64d509dc.js";import"./NCheckbox.vue.2dbb6d84.js";const U="0.5.0",q={key:0},z={key:1,flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",p8:"",px20:""},J=t("div",{"flex-auto":""},null,-1),Q={flex:"~ col","mt-20":"","items-center":""},X={flex:"~","mt--10":"","items-center":"","justify-center":""},Y={mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},Z=t("span",{op40:""}," Nuxt DevTools ",-1),tt={op40:""},et={flex:"~ gap2 wrap"},ot={p4:"","theme-card-green":"",flex:"~ col auto"},nt=t("div",{"logos-nuxt-icon":"","text-3xl":""},null,-1),st={key:0,p4:"","theme-card-green":"",flex:"~ col auto"},lt=t("div",{"logos-vue":"","text-3xl":""},null,-1),it=t("div",{"carbon-tree-view-alt":"","text-3xl":""},null,-1),at=t("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),ct=t("div",{"carbon-function":"","text-3xl":""},null,-1),rt=t("div",{"carbon-3d-mpr-toggle":"","text-3xl":""},null,-1),ut=t("div",{"carbon-plug":"","text-3xl":""},null,-1),_t={flex:"~ col gap2"},dt={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},pt=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":""}),n(" Star on GitHub ")],-1),mt=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":""}),n(" Ideas & Suggestions ")],-1),ht=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":""}),n(" Project Roadmap ")],-1),xt=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":""}),n(" Bug Reports ")],-1),ft=t("div",{"i-carbon-settings":""},null,-1),gt=t("div",{"flex-auto":""},null,-1),vt={flex:"~ gap-1","items-center":"","justify-center":"","text-sm":"",op40:""},bt=t("span",null,"+",-1),kt=t("span",null,"+",-1),wt=t("span",null,"+",-1),yt=t("span",null,"+",-1),Lt=V({__name:"overview",setup(Ct){const m=j(),i=D(),v=I(),h=R(),b=A(),k=L(),w=M();function y(){F.value=!0,w.push("/")}const x=T(()=>m.value?.nuxt.vueApp.version);return(f,Nt)=>{const C=O,N=G,g=H,u=P,S=E,_=W,B=K;return s(),c(B,{"h-screen":"","w-full":"",flex:""},{default:o(()=>[e(i)?(s(),d("div",z,[J,t("div",Q,[t("div",X,[l(C,{"h-18":""}),t("button",{"mr--16":"","mt--6":"",onClick:y},[l(N,{"bg-green-400:10":"","text-green-400":"",title:"preview",textContent:"preview"})])]),t("div",Y,[Z,t("code",tt,"v"+r(e(U)),1),l(g,{"package-name":"@nuxt/devtools",options:{dev:!0},"show-version":!1})])]),t("div",et,[t("div",ot,[nt,l(g,{"package-name":"nuxt",options:{dev:!0}})]),e(x)?(s(),d("div",st,[lt,t("code",null,"v"+r(e(x)),1)])):a("",!0),e(i)?(s(),d(p,{key:1},[e(i)&&e(i).pages&&e(m)?(s(),c(u,{key:0,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/pages"},{default:o(()=>[it,t("div",null,r(e(b).length)+" pages",1)]),_:1})):a("",!0),e(i)?(s(),c(u,{key:1,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/components"},{default:o(()=>[at,t("div",null,r(e(v).length)+" components",1)]),_:1})):a("",!0),e(i)&&e(h)?(s(),c(u,{key:2,"min-w-40":"",p4:"","theme-card-yellow":"",flex:"~ col auto",to:"/modules/imports"},{default:o(()=>[ct,t("div",null,r(e(h).imports.length)+" imports",1)]),_:1})):a("",!0),e(i)?(s(),c(u,{key:3,"min-w-40":"",p4:"","theme-card-purple":"",flex:"~ col auto",to:"/modules/modules"},{default:o(()=>[rt,t("div",null,r(e(i)._installedModules.length)+" modules",1)]),_:1})):a("",!0),e(i)?(s(),c(u,{key:4,"min-w-40":"",p4:"","theme-card-teal":"",flex:"~ col auto",to:"/modules/plugins"},{default:o(()=>[ut,t("div",null,r(e(i).plugins.length)+" plugins",1)]),_:1})):a("",!0)],64)):a("",!0)]),t("div",_t,[("showConnectionWarning"in f?f.showConnectionWarning:e($))?(s(),c(S,{key:0,n:"yellow5",icon:"carbon-unlink","justify-center":""},{default:o(()=>[n(" Not connected to the client app, showing server-side data only. Use the embedded mode for full features. ")]),_:1})):a("",!0)]),t("div",dt,[pt,mt,ht,xt,l(u,{to:"/settings",flex:"~ gap1","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:o(()=>[ft,n(" Settings ")]),_:1})]),gt,t("div",vt,[n(" Press "),e(k)?(s(),d(p,{key:0},[l(_,{n:"xs",class:"px2"},{default:o(()=>[n(" ⇧ Shift ")]),_:1}),bt,l(_,{n:"xs",class:"px2"},{default:o(()=>[n(" ⌥ Option ")]),_:1}),kt,l(_,{n:"xs",class:"px2"},{default:o(()=>[n(" D ")]),_:1})],64)):(s(),d(p,{key:1},[l(_,{n:"xs",class:"px2"},{default:o(()=>[n(" Shift ")]),_:1}),wt,l(_,{n:"xs",class:"px2"},{default:o(()=>[n(" Alt ")]),_:1}),yt,l(_,{n:"xs",class:"px2"},{default:o(()=>[n(" D ")]),_:1})],64)),n(" to toggle DevTools ")])])):(s(),d("div",q," Loading... "))]),_:1})}}});export{Lt as default};
1
+ import{a as V,b as j,R as D,a7 as I,al as R,aK as A,aL as L,D as M,p as T,c,w as o,o as s,u as e,h as d,f as t,i as l,t as r,v as a,F as p,aM as $,l as n,j as F,m as O,H as P,k as W}from"./entry.5024288d.js";import{_ as G}from"./Badge.bd9688d4.js";import{_ as H}from"./NpmVersionCheck.vue.06d8aff2.js";import{_ as E}from"./NTip.vue.3c4f8e2d.js";import{_ as K}from"./NPanelGrids.7b5efdc5.js";import"./NCodeBlock.vue.d5603a1f.js";import"./client.b1955e54.js";import"./NCheckbox.vue.96f7ae1a.js";const U="0.5.1",q={key:0},z={key:1,flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",p8:"",px20:""},J=t("div",{"flex-auto":""},null,-1),Q={flex:"~ col","mt-20":"","items-center":""},X={flex:"~","mt--10":"","items-center":"","justify-center":""},Y={mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},Z=t("span",{op40:""}," Nuxt DevTools ",-1),tt={op40:""},et={flex:"~ gap2 wrap"},ot={p4:"","theme-card-green":"",flex:"~ col auto"},nt=t("div",{"logos-nuxt-icon":"","text-3xl":""},null,-1),st={key:0,p4:"","theme-card-green":"",flex:"~ col auto"},lt=t("div",{"logos-vue":"","text-3xl":""},null,-1),it=t("div",{"carbon-tree-view-alt":"","text-3xl":""},null,-1),at=t("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),ct=t("div",{"carbon-function":"","text-3xl":""},null,-1),rt=t("div",{"carbon-3d-mpr-toggle":"","text-3xl":""},null,-1),ut=t("div",{"carbon-plug":"","text-3xl":""},null,-1),_t={flex:"~ col gap2"},dt={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},pt=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":""}),n(" Star on GitHub ")],-1),mt=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":""}),n(" Ideas & Suggestions ")],-1),ht=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":""}),n(" Project Roadmap ")],-1),xt=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":""}),n(" Bug Reports ")],-1),ft=t("div",{"i-carbon-settings":""},null,-1),gt=t("div",{"flex-auto":""},null,-1),vt={flex:"~ gap-1","items-center":"","justify-center":"","text-sm":"",op40:""},bt=t("span",null,"+",-1),kt=t("span",null,"+",-1),wt=t("span",null,"+",-1),yt=t("span",null,"+",-1),Lt=V({__name:"overview",setup(Ct){const m=j(),i=D(),v=I(),h=R(),b=A(),k=L(),w=M();function y(){F.value=!0,w.push("/")}const x=T(()=>m.value?.nuxt.vueApp.version);return(f,Nt)=>{const C=O,N=G,g=H,u=P,S=E,_=W,B=K;return s(),c(B,{"h-screen":"","w-full":"",flex:""},{default:o(()=>[e(i)?(s(),d("div",z,[J,t("div",Q,[t("div",X,[l(C,{"h-18":""}),t("button",{"mr--16":"","mt--6":"",onClick:y},[l(N,{"bg-green-400:10":"","text-green-400":"",title:"preview",textContent:"preview"})])]),t("div",Y,[Z,t("code",tt,"v"+r(e(U)),1),l(g,{"package-name":"@nuxt/devtools",options:{dev:!0},"show-version":!1})])]),t("div",et,[t("div",ot,[nt,l(g,{"package-name":"nuxt",options:{dev:!0}})]),e(x)?(s(),d("div",st,[lt,t("code",null,"v"+r(e(x)),1)])):a("",!0),e(i)?(s(),d(p,{key:1},[e(i)&&e(i).pages&&e(m)?(s(),c(u,{key:0,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/pages"},{default:o(()=>[it,t("div",null,r(e(b).length)+" pages",1)]),_:1})):a("",!0),e(i)?(s(),c(u,{key:1,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/components"},{default:o(()=>[at,t("div",null,r(e(v).length)+" components",1)]),_:1})):a("",!0),e(i)&&e(h)?(s(),c(u,{key:2,"min-w-40":"",p4:"","theme-card-yellow":"",flex:"~ col auto",to:"/modules/imports"},{default:o(()=>[ct,t("div",null,r(e(h).imports.length)+" imports",1)]),_:1})):a("",!0),e(i)?(s(),c(u,{key:3,"min-w-40":"",p4:"","theme-card-purple":"",flex:"~ col auto",to:"/modules/modules"},{default:o(()=>[rt,t("div",null,r(e(i)._installedModules.length)+" modules",1)]),_:1})):a("",!0),e(i)?(s(),c(u,{key:4,"min-w-40":"",p4:"","theme-card-teal":"",flex:"~ col auto",to:"/modules/plugins"},{default:o(()=>[ut,t("div",null,r(e(i).plugins.length)+" plugins",1)]),_:1})):a("",!0)],64)):a("",!0)]),t("div",_t,[("showConnectionWarning"in f?f.showConnectionWarning:e($))?(s(),c(S,{key:0,n:"yellow5",icon:"carbon-unlink","justify-center":""},{default:o(()=>[n(" Not connected to the client app, showing server-side data only. Use the embedded mode for full features. ")]),_:1})):a("",!0)]),t("div",dt,[pt,mt,ht,xt,l(u,{to:"/settings",flex:"~ gap1","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:o(()=>[ft,n(" Settings ")]),_:1})]),gt,t("div",vt,[n(" Press "),e(k)?(s(),d(p,{key:0},[l(_,{n:"xs",class:"px2"},{default:o(()=>[n(" ⇧ Shift ")]),_:1}),bt,l(_,{n:"xs",class:"px2"},{default:o(()=>[n(" ⌥ Option ")]),_:1}),kt,l(_,{n:"xs",class:"px2"},{default:o(()=>[n(" D ")]),_:1})],64)):(s(),d(p,{key:1},[l(_,{n:"xs",class:"px2"},{default:o(()=>[n(" Shift ")]),_:1}),wt,l(_,{n:"xs",class:"px2"},{default:o(()=>[n(" Alt ")]),_:1}),yt,l(_,{n:"xs",class:"px2"},{default:o(()=>[n(" D ")]),_:1})],64)),n(" to toggle DevTools ")])])):(s(),d("div",q," Loading... "))]),_:1})}}});export{Lt as default};
@@ -1 +1 @@
1
- import{_ as T}from"./NTextInput.vue.3d7af8ee.js";import{_ as M}from"./Badge.c6f0948b.js";import{a as B,r as F,p as R,aP as j,a4 as q,u as t,o,h as s,f as e,t as $,c as g,w as k,aQ as G,F as h,q as I,v,i as p,l as V,s as L,k as H,aR as S,aF as J,aG as W,R as Q,Y,aH as X,aI as E,af as Z,G as ee,aJ as te,y as oe}from"./entry.8297d1ff.js";import{_ as A}from"./FilepathItem.vue.22e62c13.js";import{u as ne}from"./editor.e9488ebd.js";import{_ as ae}from"./NSectionBlock.b03d4f1a.js";import{_ as se}from"./LaunchPage.vue.e9f10392.js";import{_ as re}from"./HelpFab.vue.82dbe71b.js";import"./NIconTitle.vue.db04ddec.js";import"./NMarkdown.vue.bfa53523.js";import"./client.64d509dc.js";import"./NPanelGrids.f0b55b40.js";import"./NIconButton.vue.61b6fdb9.js";const le={block:"","cursor-pointer":""},ie={p2:""},ue=["onSubmit"],ce=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),de={flex:"~","items-center":"",p2:"","font-mono":"","text-sm":""},pe={key:1},_e=B({__name:"RoutePathItem",props:{route:null},emits:["navigate"],setup(c,{emit:u}){const l=c,_=F([]),f=R(()=>{const n=j(l.route.path);return _.value=Array.from({length:n.length},()=>""),n}),y=R(()=>f.value.map((n,m)=>n[0]===":"?_.value[m]:n).join("").replace(/\/+/g,"/")),x=R(()=>l.route.path.includes(":"));function i(){u("navigate",y.value)}return(n,m)=>{const d=T,w=H,a=q("VDropdown");return t(x)?(o(),g(a,{key:1},{popper:k(({hide:r})=>[e("div",ie,[e("form",{flex:"~ col",onSubmit:G(()=>{i(),r()},["prevent"])},[t(x)?(o(),s(h,{key:0},[ce,e("div",de,[(o(!0),s(h,null,I(t(f),(b,C)=>(o(),s(h,{key:C},[b[0]===":"?(o(),g(d,{key:0,modelValue:t(_)[C],"onUpdate:modelValue":P=>t(_)[C]=P,"w-20":"","n-sm":"",placeholder:b.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(o(),s("span",pe,$(b),1))],64))),128))])],64)):v("",!0),p(w,{block:"",n:"primary"},{default:k(()=>[V(" Navigate ")]),_:1})],40,ue)])]),default:k(()=>[e("code",le,[(o(!0),s(h,null,I(t(f),(r,b)=>(o(),s("span",{key:b,class:L(r[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},$(r[0]===":"?r.slice(1):r),3))),128))])]),_:1})):(o(),s("button",{key:0,onClick:i},[e("code",null,$(c.route.path),1)]))}}}),me={"w-full":""},he=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1),fe={"w-20":"","pr-1":""},ge={flex:"","items-center":"","justify-end":""},ve={"text-sm":""},ye={flex:"inline gap3","items-center":""},xe={op0:"","group-hover:op100":"",flex:"~ gap1"},be=["onClick"],ke=e("div",{"i-carbon-script-reference":""},null,-1),$e=[ke],we={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","font-mono":"","text-sm":"",op50:""},Ce={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","font-mono":"","text-sm":"",op50:""},Ne={"w-0":"","ws-nowrap":"","text-center":"","font-mono":"","text-sm":""},Re={key:0},Pe=["onClick"],Ve=B({__name:"RoutesTable",props:{pages:null,layouts:null,matched:null,matchedPending:null},emits:["navigate"],setup(c){const u=c,l=ne(),_=S(),f=R(()=>[...u.pages].sort((i,n)=>i.path.localeCompare(n.path)));function y(i){const n=u.layouts.find(m=>m.name===i);n&&l(n.file)}function x(i){if(typeof i=="string")return _.value?.middleware.find(n=>n.name===i)?.path}return(i,n)=>{const m=M,d=_e,w=A;return o(),s("div",null,[e("table",me,[he,e("tbody",null,[(o(!0),s(h,null,I(t(f),a=>(o(),s("tr",{key:a.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",fe,[e("div",ge,[c.matched.find(r=>r.name===a.name)?(o(),g(m,{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):v("",!0),c.matchedPending.find(r=>r.name===a.name)?(o(),g(m,{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):v("",!0)])]),e("td",ve,[e("div",ye,[p(d,{route:a,class:L(c.matched.find(r=>r.name===a.name)?"text-primary":c.matchedPending.find(r=>r.name===a.name)?"text-teal":""),onNavigate:n[0]||(n[0]=r=>i.$emit("navigate",r))},null,8,["route","class"]),e("div",xe,[a.file||a.meta?.file?(o(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:r=>t(l)(a.file||a.meta?.file)},$e,8,be)):v("",!0)])])]),e("td",we,$(a.name),1),e("td",Ce,[p(w,{filepath:x(a.meta.middleware),override:`${a.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Ne,[a.meta.layout===!1?(o(),s("span",Re,"-")):a.meta.layout?(o(),s("button",{key:1,onClick:r=>y(a.meta.layout)},$(a.meta.layout),9,Pe)):(o(),s("button",{key:2,"text-sm":"",op15:"",onClick:n[1]||(n[1]=r=>y("default"))}," (default) "))])]))),128))])])])}}}),Ie={class:"markdown-body"},Be=e("h1",null,"Pages",-1),Le=e("p",null,[V("One core feature of Nuxt is the file system router. Every Vue file inside the "),e("code",null,"pages/"),V(" directory creates a corresponding URL (or route) that displays the contents of the file. By using dynamic imports for each page, Nuxt leverages code-splitting to ship the minimum amount of JavaScript for the requested route.")],-1),Ee=e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more on the documentation")],-1),Te=e("hr",null,null,-1),Me=e("h1",null,"Middlewares",-1),Fe=e("p",null,"Nuxt provides a customizable route middleware framework you can use throughout your application, ideal for extracting code that you want to run before navigating to a particular route.",-1),Se=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more on the documentation")],-1),Ae=[Be,Le,Ee,Te,Me,Fe,Se],De={__name:"pages",setup(c,{expose:u}){return u({frontmatter:{}}),(_,f)=>(o(),s("div",Ie,Ae))}},Ue={key:0,"h-full":"","of-auto":""},ze={border:"b base",flex:"~ col gap1",px4:"",py3:"","navbar-glass":""},Ke=e("span",{op50:""},"Navigate from ",-1),Oe={"font-mono":""},je=e("span",{op50:""}," to ",-1),qe={key:1,op50:""},Ge=e("span",null,[V("Press "),e("b",{"font-bold":""},"Enter"),V(" to navigate")],-1),He={key:0,"text-orange":"",op75:""},Je={key:1,op50:""},We={"w-full":""},Qe=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1),Ye={mr1:""},dt=B({__name:"pages",setup(c){const u=J(),l=W(),_=Q(),f=S(),y=Y(),x=X(),i=R(()=>f.value?.middleware||[]),n=F("");E(l).toBeTruthy().then(a=>{n.value=a.path}),E(u).toBeTruthy().then(a=>{a.afterEach(()=>{Z(()=>{n.value=l.value.path})})});async function m(){n.value!==l.value.path&&u.value.push(n.value||"/")}const d=R(()=>n.value===l.value.path?[]:u.value.resolve(n.value||"/").matched);function w(a){u.value.push(a)}return(a,r)=>{const b=T,C=Ve,P=ae,D=M,U=A,z=se,K=De,O=re;return o(),s(h,null,[t(_)?.pages&&t(u)?(o(),s("div",Ue,[e("div",ze,[e("div",null,[t(l).path!==t(n)?(o(),s(h,{key:0},[Ke,e("span",Oe,$(t(l).path),1),je],64)):(o(),s("span",qe,"Current route"))]),p(b,{modelValue:t(n),"onUpdate:modelValue":r[0]||(r[0]=N=>ee(n)?n.value=N:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:L(t(l).path===t(n)?"":t(d).length?"text-green":"text-orange"),onKeydown:te(m,["enter"])},null,8,["modelValue","class","onKeydown"]),e("div",null,[t(l).path!==t(n)?(o(),s(h,{key:0},[Ge,t(d).length?v("",!0):(o(),s("span",He," (no match)"))],64)):(o(),s("span",Je,"Edit path above to navigate"))])]),t(d).length?(o(),g(P,{key:0,icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:k(()=>[p(C,{pages:t(d),layouts:t(y)||[],matched:[],"matched-pending":t(d),onNavigate:w},null,8,["pages","layouts","matched-pending"])]),_:1})):v("",!0),p(P,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${t(x).length} routes registered in your application`,padding:"pr5"},{default:k(()=>[p(C,{pages:t(x),layouts:t(y)||[],matched:t(l).matched,"matched-pending":t(d),onNavigate:w},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),t(i).length?(o(),g(P,{key:1,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${t(i).length} middleware registered in your application`,padding:"px13"},{default:k(()=>[e("table",We,[Qe,(o(!0),s(h,null,I(t(i),N=>(o(),s("tr",{key:N.path,"h-7":""},[e("td",null,[e("span",Ye,$(N.name),1),N.global?(o(),g(D,{key:0,"bg-green-400:10":"","text-green-400":"",title:"Registered at runtime as a global component",textContent:"global"})):v("",!0)]),e("td",null,[p(U,{filepath:N.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):v("",!0)])):(o(),g(z,{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 a?a.rpc:t(oe)).runWizard("enablePages")}}]},null,8,["actions"])),p(O,null,{default:k(()=>[p(K)]),_:1})],64)}}});export{dt as default};
1
+ import{_ as T}from"./NTextInput.vue.fc99730b.js";import{_ as M}from"./Badge.bd9688d4.js";import{a as B,r as F,p as R,aP as j,a4 as q,u as t,o,h as s,f as e,t as $,c as g,w as k,aQ as G,F as h,q as I,v,i as p,l as V,s as L,k as H,aR as S,aF as J,aG as W,R as Q,Y,aH as X,aI as E,af as Z,G as ee,aJ as te,y as oe}from"./entry.5024288d.js";import{_ as A}from"./FilepathItem.vue.1c96e6cc.js";import{u as ne}from"./editor.02d33c7f.js";import{_ as ae}from"./NSectionBlock.5d6e9b8e.js";import{_ as se}from"./LaunchPage.vue.b71fffc3.js";import{_ as re}from"./HelpFab.vue.748cc95d.js";import"./NIconTitle.vue.c8b7e265.js";import"./NMarkdown.vue.4d74a5d5.js";import"./client.b1955e54.js";import"./NPanelGrids.7b5efdc5.js";import"./NIconButton.vue.d0a9a760.js";const le={block:"","cursor-pointer":""},ie={p2:""},ue=["onSubmit"],ce=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),de={flex:"~","items-center":"",p2:"","font-mono":"","text-sm":""},pe={key:1},_e=B({__name:"RoutePathItem",props:{route:null},emits:["navigate"],setup(c,{emit:u}){const l=c,_=F([]),f=R(()=>{const n=j(l.route.path);return _.value=Array.from({length:n.length},()=>""),n}),y=R(()=>f.value.map((n,m)=>n[0]===":"?_.value[m]:n).join("").replace(/\/+/g,"/")),x=R(()=>l.route.path.includes(":"));function i(){u("navigate",y.value)}return(n,m)=>{const d=T,w=H,a=q("VDropdown");return t(x)?(o(),g(a,{key:1},{popper:k(({hide:r})=>[e("div",ie,[e("form",{flex:"~ col",onSubmit:G(()=>{i(),r()},["prevent"])},[t(x)?(o(),s(h,{key:0},[ce,e("div",de,[(o(!0),s(h,null,I(t(f),(b,C)=>(o(),s(h,{key:C},[b[0]===":"?(o(),g(d,{key:0,modelValue:t(_)[C],"onUpdate:modelValue":P=>t(_)[C]=P,"w-20":"","n-sm":"",placeholder:b.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(o(),s("span",pe,$(b),1))],64))),128))])],64)):v("",!0),p(w,{block:"",n:"primary"},{default:k(()=>[V(" Navigate ")]),_:1})],40,ue)])]),default:k(()=>[e("code",le,[(o(!0),s(h,null,I(t(f),(r,b)=>(o(),s("span",{key:b,class:L(r[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},$(r[0]===":"?r.slice(1):r),3))),128))])]),_:1})):(o(),s("button",{key:0,onClick:i},[e("code",null,$(c.route.path),1)]))}}}),me={"w-full":""},he=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1),fe={"w-20":"","pr-1":""},ge={flex:"","items-center":"","justify-end":""},ve={"text-sm":""},ye={flex:"inline gap3","items-center":""},xe={op0:"","group-hover:op100":"",flex:"~ gap1"},be=["onClick"],ke=e("div",{"i-carbon-script-reference":""},null,-1),$e=[ke],we={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","font-mono":"","text-sm":"",op50:""},Ce={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","font-mono":"","text-sm":"",op50:""},Ne={"w-0":"","ws-nowrap":"","text-center":"","font-mono":"","text-sm":""},Re={key:0},Pe=["onClick"],Ve=B({__name:"RoutesTable",props:{pages:null,layouts:null,matched:null,matchedPending:null},emits:["navigate"],setup(c){const u=c,l=ne(),_=S(),f=R(()=>[...u.pages].sort((i,n)=>i.path.localeCompare(n.path)));function y(i){const n=u.layouts.find(m=>m.name===i);n&&l(n.file)}function x(i){if(typeof i=="string")return _.value?.middleware.find(n=>n.name===i)?.path}return(i,n)=>{const m=M,d=_e,w=A;return o(),s("div",null,[e("table",me,[he,e("tbody",null,[(o(!0),s(h,null,I(t(f),a=>(o(),s("tr",{key:a.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",fe,[e("div",ge,[c.matched.find(r=>r.name===a.name)?(o(),g(m,{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):v("",!0),c.matchedPending.find(r=>r.name===a.name)?(o(),g(m,{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):v("",!0)])]),e("td",ve,[e("div",ye,[p(d,{route:a,class:L(c.matched.find(r=>r.name===a.name)?"text-primary":c.matchedPending.find(r=>r.name===a.name)?"text-teal":""),onNavigate:n[0]||(n[0]=r=>i.$emit("navigate",r))},null,8,["route","class"]),e("div",xe,[a.file||a.meta?.file?(o(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:r=>t(l)(a.file||a.meta?.file)},$e,8,be)):v("",!0)])])]),e("td",we,$(a.name),1),e("td",Ce,[p(w,{filepath:x(a.meta.middleware),override:`${a.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Ne,[a.meta.layout===!1?(o(),s("span",Re,"-")):a.meta.layout?(o(),s("button",{key:1,onClick:r=>y(a.meta.layout)},$(a.meta.layout),9,Pe)):(o(),s("button",{key:2,"text-sm":"",op15:"",onClick:n[1]||(n[1]=r=>y("default"))}," (default) "))])]))),128))])])])}}}),Ie={class:"markdown-body"},Be=e("h1",null,"Pages",-1),Le=e("p",null,[V("One core feature of Nuxt is the file system router. Every Vue file inside the "),e("code",null,"pages/"),V(" directory creates a corresponding URL (or route) that displays the contents of the file. By using dynamic imports for each page, Nuxt leverages code-splitting to ship the minimum amount of JavaScript for the requested route.")],-1),Ee=e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more on the documentation")],-1),Te=e("hr",null,null,-1),Me=e("h1",null,"Middlewares",-1),Fe=e("p",null,"Nuxt provides a customizable route middleware framework you can use throughout your application, ideal for extracting code that you want to run before navigating to a particular route.",-1),Se=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more on the documentation")],-1),Ae=[Be,Le,Ee,Te,Me,Fe,Se],De={__name:"pages",setup(c,{expose:u}){return u({frontmatter:{}}),(_,f)=>(o(),s("div",Ie,Ae))}},Ue={key:0,"h-full":"","of-auto":""},ze={border:"b base",flex:"~ col gap1",px4:"",py3:"","navbar-glass":""},Ke=e("span",{op50:""},"Navigate from ",-1),Oe={"font-mono":""},je=e("span",{op50:""}," to ",-1),qe={key:1,op50:""},Ge=e("span",null,[V("Press "),e("b",{"font-bold":""},"Enter"),V(" to navigate")],-1),He={key:0,"text-orange":"",op75:""},Je={key:1,op50:""},We={"w-full":""},Qe=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1),Ye={mr1:""},dt=B({__name:"pages",setup(c){const u=J(),l=W(),_=Q(),f=S(),y=Y(),x=X(),i=R(()=>f.value?.middleware||[]),n=F("");E(l).toBeTruthy().then(a=>{n.value=a.path}),E(u).toBeTruthy().then(a=>{a.afterEach(()=>{Z(()=>{n.value=l.value.path})})});async function m(){n.value!==l.value.path&&u.value.push(n.value||"/")}const d=R(()=>n.value===l.value.path?[]:u.value.resolve(n.value||"/").matched);function w(a){u.value.push(a)}return(a,r)=>{const b=T,C=Ve,P=ae,D=M,U=A,z=se,K=De,O=re;return o(),s(h,null,[t(_)?.pages&&t(u)?(o(),s("div",Ue,[e("div",ze,[e("div",null,[t(l).path!==t(n)?(o(),s(h,{key:0},[Ke,e("span",Oe,$(t(l).path),1),je],64)):(o(),s("span",qe,"Current route"))]),p(b,{modelValue:t(n),"onUpdate:modelValue":r[0]||(r[0]=N=>ee(n)?n.value=N:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:L(t(l).path===t(n)?"":t(d).length?"text-green":"text-orange"),onKeydown:te(m,["enter"])},null,8,["modelValue","class","onKeydown"]),e("div",null,[t(l).path!==t(n)?(o(),s(h,{key:0},[Ge,t(d).length?v("",!0):(o(),s("span",He," (no match)"))],64)):(o(),s("span",Je,"Edit path above to navigate"))])]),t(d).length?(o(),g(P,{key:0,icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:k(()=>[p(C,{pages:t(d),layouts:t(y)||[],matched:[],"matched-pending":t(d),onNavigate:w},null,8,["pages","layouts","matched-pending"])]),_:1})):v("",!0),p(P,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${t(x).length} routes registered in your application`,padding:"pr5"},{default:k(()=>[p(C,{pages:t(x),layouts:t(y)||[],matched:t(l).matched,"matched-pending":t(d),onNavigate:w},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),t(i).length?(o(),g(P,{key:1,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${t(i).length} middleware registered in your application`,padding:"px13"},{default:k(()=>[e("table",We,[Qe,(o(!0),s(h,null,I(t(i),N=>(o(),s("tr",{key:N.path,"h-7":""},[e("td",null,[e("span",Ye,$(N.name),1),N.global?(o(),g(D,{key:0,"bg-green-400:10":"","text-green-400":"",title:"Registered at runtime as a global component",textContent:"global"})):v("",!0)]),e("td",null,[p(U,{filepath:N.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):v("",!0)])):(o(),g(z,{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 a?a.rpc:t(oe)).runWizard("enablePages")}}]},null,8,["actions"])),p(O,null,{default:k(()=>[p(K)]),_:1})],64)}}});export{dt as default};
@@ -1 +1 @@
1
- import{_ as x}from"./StateEditor.vue.452c2a1e.js";import{a as y,o as t,h as r,F as k,q as B,c as f,w as a,V as C,n as D,g as V,f as $,b as w,p as F,u as i,i as e,v as m,l as O,k as P}from"./entry.8297d1ff.js";import{_ as E}from"./NSectionBlock.b03d4f1a.js";import{_ as R}from"./NIconButton.vue.61b6fdb9.js";import{_ as j}from"./HelpFab.vue.82dbe71b.js";import"./json-editor-vue.98769e76.js";import"./NIconTitle.vue.db04ddec.js";const A={key:0,flex:"~ col gap-1"},G={key:1,mt2:"",px4:"",italic:"",op35:""},H=y({__name:"StateGroup",props:{state:null,prefix:{default:""}},setup(n){return(o,s)=>{const l=x;return t(),r("div",null,[n.state&&Object.keys(n.state).length>0?(t(),r("div",A,[(t(!0),r(k,null,B(n.state,(_,c)=>(t(),f(l,{key:c,state:_,name:c.startsWith(n.prefix)?c.slice(n.prefix.length):c},{actions:a(u=>[C(o.$slots,"actions",D(V(u)))]),_:2},1032,["state","name"]))),128))])):(t(),r("div",G," No data "))])}}}),K={class:"markdown-body"},T=$("h1",null,"State & Async Data",-1),q=$("p",null,"// TODO",-1),z=[T,q],I={__name:"payload",setup(n,{expose:o}){return o({frontmatter:{}}),(l,_)=>(t(),r("div",K,z))}},L={key:0},tt=y({__name:"payload",setup(n){const o=w(),s=F(()=>o.value?.nuxt.payload);async function l(_){await o.value?.nuxt.hooks.callHookParallel("app:data:refresh",_)}return(_,c)=>{const u=H,d=E,b=P,v=R,S=x,g=I,N=j;return t(),r(k,null,[i(o)?(t(),r("div",L,[e(d,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:a(()=>[e(u,{state:i(s).state,prefix:"$s"},null,8,["state"])]),_:1}),e(d,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{actions:a(()=>[e(b,{n:"xs primary","self-start":"",icon:"i-carbon-recycle",onClick:c[0]||(c[0]=h=>l())},{default:a(()=>[O(" Re-fetch all data ")]),_:1})]),default:a(()=>[e(u,{state:i(s).data},{actions:a(({isOpen:h,name:p})=>[h&&p?(t(),f(v,{key:0,title:`Re-fetch '${p}'`,icon:"carbon-recycle",onClick:W=>l([p])},null,8,["title","onClick"])):m("",!0)]),_:1},8,["state"])]),_:1}),i(s).functions&&Object.keys(i(s).functions).length?(t(),f(d,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions (experimental)"},{default:a(()=>[e(S,{"ml--6":"",state:i(s).functions},null,8,["state"])]),_:1})):m("",!0)])):m("",!0),e(N,null,{default:a(()=>[e(g)]),_:1})],64)}}});export{tt as default};
1
+ import{_ as x}from"./StateEditor.vue.544a7d41.js";import{a as y,o as t,h as r,F as k,q as B,c as f,w as a,V as C,n as D,g as V,f as $,b as w,p as F,u as i,i as e,v as m,l as O,k as P}from"./entry.5024288d.js";import{_ as E}from"./NSectionBlock.5d6e9b8e.js";import{_ as R}from"./NIconButton.vue.d0a9a760.js";import{_ as j}from"./HelpFab.vue.748cc95d.js";import"./json-editor-vue.2379a5ec.js";import"./NIconTitle.vue.c8b7e265.js";const A={key:0,flex:"~ col gap-1"},G={key:1,mt2:"",px4:"",italic:"",op35:""},H=y({__name:"StateGroup",props:{state:null,prefix:{default:""}},setup(n){return(o,s)=>{const l=x;return t(),r("div",null,[n.state&&Object.keys(n.state).length>0?(t(),r("div",A,[(t(!0),r(k,null,B(n.state,(_,c)=>(t(),f(l,{key:c,state:_,name:c.startsWith(n.prefix)?c.slice(n.prefix.length):c},{actions:a(u=>[C(o.$slots,"actions",D(V(u)))]),_:2},1032,["state","name"]))),128))])):(t(),r("div",G," No data "))])}}}),K={class:"markdown-body"},T=$("h1",null,"State & Async Data",-1),q=$("p",null,"// TODO",-1),z=[T,q],I={__name:"payload",setup(n,{expose:o}){return o({frontmatter:{}}),(l,_)=>(t(),r("div",K,z))}},L={key:0},tt=y({__name:"payload",setup(n){const o=w(),s=F(()=>o.value?.nuxt.payload);async function l(_){await o.value?.nuxt.hooks.callHookParallel("app:data:refresh",_)}return(_,c)=>{const u=H,d=E,b=P,v=R,S=x,g=I,N=j;return t(),r(k,null,[i(o)?(t(),r("div",L,[e(d,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:a(()=>[e(u,{state:i(s).state,prefix:"$s"},null,8,["state"])]),_:1}),e(d,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{actions:a(()=>[e(b,{n:"xs primary","self-start":"",icon:"i-carbon-recycle",onClick:c[0]||(c[0]=h=>l())},{default:a(()=>[O(" Re-fetch all data ")]),_:1})]),default:a(()=>[e(u,{state:i(s).data},{actions:a(({isOpen:h,name:p})=>[h&&p?(t(),f(v,{key:0,title:`Re-fetch '${p}'`,icon:"carbon-recycle",onClick:W=>l([p])},null,8,["title","onClick"])):m("",!0)]),_:1},8,["state"])]),_:1}),i(s).functions&&Object.keys(i(s).functions).length?(t(),f(d,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions (experimental)"},{default:a(()=>[e(S,{"ml--6":"",state:i(s).functions},null,8,["state"])]),_:1})):m("",!0)])):m("",!0),e(N,null,{default:a(()=>[e(g)]),_:1})],64)}}});export{tt as default};
@@ -1 +1 @@
1
- import{_ as S}from"./FilepathItem.vue.22e62c13.js";import{_ as D}from"./Badge.c6f0948b.js";import{_ as k}from"./DurationDisplay.vue.d1c8be7a.js";import{a as v,R as B,p as x,aT as V,o as n,h as _,f as e,t as P,i as l,u as f,c as u,v as d,a4 as M,V as T,M as F,aU as H,w as h,l as y,aR as I,b as E,F as C,q as R,s as W}from"./entry.8297d1ff.js";import{_ as L}from"./NSectionBlock.b03d4f1a.js";import{_ as j}from"./HelpFab.vue.82dbe71b.js";import"./editor.e9488ebd.js";import"./NIconTitle.vue.db04ddec.js";import"./NIconButton.vue.61b6fdb9.js";const q={flex:"~ gap2","items-center":""},z={w8:"","text-right":"","text-sm":"",op25:""},A={key:0,"flex-auto":"","text-right":""},U=v({__name:"PluginItem",props:{plugin:null,index:null},setup(t){const i=t,a=B(),r=x(()=>V(i.plugin.src,a.value?.rootDir||"").path);return(m,c)=>{const p=S,o=D,s=k;return n(),_("div",q,[e("div",z,P(t.index),1),l(p,{filepath:i.plugin.src,subpath:!0},null,8,["filepath"]),e("div",null,[f(r).startsWith("#")?(n(),u(o,{key:0,"bg-rose-400:10":"","text-rose":"",textContent:"virtual"})):f(r).startsWith(".")?d("",!0):(n(),u(o,{key:1,"bg-gray-400:10":"","text-gray":"",textContent:"module"})),t.plugin.mode==="server"?(n(),u(o,{key:2,"bg-teal-400:10":"","text-teal-400":"",textContent:"server"})):d("",!0),t.plugin.mode==="client"?(n(),u(o,{key:3,"bg-orange-400:10":"","text-orange-400":"",textContent:"client"})):d("",!0)]),t.plugin.metric?.duration!=null?(n(),_("div",A,[l(s,{duration:t.plugin.metric?.duration,factor:10},null,8,["duration"])])):d("",!0)])}}}),Y={class:"n-tip n-tip-base",flex:"~ col items-start","mx--4":"",px4:"",py4:""},G={flex:"~ items-center gap-1","font-bold":""},J=v({__name:"HelpTip",props:{title:null,icon:null},setup(t){return(i,a)=>{const r=F,m=M("ContentSlot");return n(),_("div",Y,[e("div",G,[t.icon?(n(),u(r,{key:0,icon:t.icon,class:"n-tip-icon"},null,8,["icon"])):d("",!0),e("div",null,P(t.title),1)]),e("div",null,[T(i.$slots,"default",{},()=>[l(m,{use:i.$slots.default,unwrap:"p"},null,8,["use"])])])])}}}),K={};function O(t,i){const a=J;return n(),u(a,{title:"Performance Tip",icon:"carbon-meter",n:"lime6 dark:lime5"},{default:h(()=>[T(t.$slots,"default")]),_:3})}const Q=H(K,[["render",O]]),X={class:"markdown-body"},Z=e("h1",null,"Plugins",-1),tt=e("p",null,[y("Nuxt plugins allows you to extend the functionality of Nuxt runtime and the Vue instance. You can add plugins to the "),e("code",null,"plugins/"),y(" directory and they will be automatically imported and registered.")],-1),et=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/plugins",target:"_blank",rel:"noopener"},"Learn more on the documentation")],-1),nt={__name:"plugins",setup(t,{expose:i}){return i({frontmatter:{}}),(r,m)=>{const c=Q;return n(),_("div",X,[Z,tt,l(c,null,{default:h(()=>[y(" Plugins runs before your application at runtime, the time each plugin cost will directly affect your application's initial loading time. ")]),_:1}),et])}}},ot={pt4:""},st={class:"text-sm",flex:"~ gap-1 items-center justify-end","mt-3":""},it=e("div",{"i-carbon-timer":"","text-lg":"",op75:""},null,-1),at=e("span",{op50:""},"Total execution time:",-1),gt=v({__name:"plugins",setup(t){const i=I(),a=E(),r=x(()=>{const c=i.value?.plugins||[],p=a.value?.getClientPluginMetrics()||[];return c.map(o=>{const s=typeof o=="string"?{src:o}:o;return{...s,metric:p.find(g=>g.src===s.src||g.src.startsWith(s.src))}})}),m=x(()=>{const c=a.value?.getClientPluginMetrics()||[],p=Math.min(...c.map(s=>s.start));return Math.max(...c.map(s=>s.end))-p});return(c,p)=>{const o=U,s=k,g=L,w=nt,N=j;return n(),_(C,null,[l(g,{icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${f(r).length}`},{default:h(()=>[e("div",ot,[(n(!0),_(C,null,R(f(r),($,b)=>(n(),u(o,{key:$.src,plugin:$,index:b+1,"ml--4":"","border-base":"",py2:"",class:W(b?"border-t":"")},null,8,["plugin","index","class"]))),128)),e("div",st,[it,at,l(s,{duration:f(m),factor:10},null,8,["duration"])])])]),_:1},8,["description"]),l(N,null,{default:h(()=>[l(w)]),_:1})],64)}}});export{gt as default};
1
+ import{_ as S}from"./FilepathItem.vue.1c96e6cc.js";import{_ as D}from"./Badge.bd9688d4.js";import{_ as k}from"./DurationDisplay.vue.f895ca51.js";import{a as v,R as B,p as x,aT as V,o as n,h as _,f as e,t as P,i as l,u as f,c as u,v as d,a4 as M,V as T,M as F,aU as H,w as h,l as y,aR as I,b as E,F as C,q as R,s as W}from"./entry.5024288d.js";import{_ as L}from"./NSectionBlock.5d6e9b8e.js";import{_ as j}from"./HelpFab.vue.748cc95d.js";import"./editor.02d33c7f.js";import"./NIconTitle.vue.c8b7e265.js";import"./NIconButton.vue.d0a9a760.js";const q={flex:"~ gap2","items-center":""},z={w8:"","text-right":"","text-sm":"",op25:""},A={key:0,"flex-auto":"","text-right":""},U=v({__name:"PluginItem",props:{plugin:null,index:null},setup(t){const i=t,a=B(),r=x(()=>V(i.plugin.src,a.value?.rootDir||"").path);return(m,c)=>{const p=S,o=D,s=k;return n(),_("div",q,[e("div",z,P(t.index),1),l(p,{filepath:i.plugin.src,subpath:!0},null,8,["filepath"]),e("div",null,[f(r).startsWith("#")?(n(),u(o,{key:0,"bg-rose-400:10":"","text-rose":"",textContent:"virtual"})):f(r).startsWith(".")?d("",!0):(n(),u(o,{key:1,"bg-gray-400:10":"","text-gray":"",textContent:"module"})),t.plugin.mode==="server"?(n(),u(o,{key:2,"bg-teal-400:10":"","text-teal-400":"",textContent:"server"})):d("",!0),t.plugin.mode==="client"?(n(),u(o,{key:3,"bg-orange-400:10":"","text-orange-400":"",textContent:"client"})):d("",!0)]),t.plugin.metric?.duration!=null?(n(),_("div",A,[l(s,{duration:t.plugin.metric?.duration,factor:10},null,8,["duration"])])):d("",!0)])}}}),Y={class:"n-tip n-tip-base",flex:"~ col items-start","mx--4":"",px4:"",py4:""},G={flex:"~ items-center gap-1","font-bold":""},J=v({__name:"HelpTip",props:{title:null,icon:null},setup(t){return(i,a)=>{const r=F,m=M("ContentSlot");return n(),_("div",Y,[e("div",G,[t.icon?(n(),u(r,{key:0,icon:t.icon,class:"n-tip-icon"},null,8,["icon"])):d("",!0),e("div",null,P(t.title),1)]),e("div",null,[T(i.$slots,"default",{},()=>[l(m,{use:i.$slots.default,unwrap:"p"},null,8,["use"])])])])}}}),K={};function O(t,i){const a=J;return n(),u(a,{title:"Performance Tip",icon:"carbon-meter",n:"lime6 dark:lime5"},{default:h(()=>[T(t.$slots,"default")]),_:3})}const Q=H(K,[["render",O]]),X={class:"markdown-body"},Z=e("h1",null,"Plugins",-1),tt=e("p",null,[y("Nuxt plugins allows you to extend the functionality of Nuxt runtime and the Vue instance. You can add plugins to the "),e("code",null,"plugins/"),y(" directory and they will be automatically imported and registered.")],-1),et=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/plugins",target:"_blank",rel:"noopener"},"Learn more on the documentation")],-1),nt={__name:"plugins",setup(t,{expose:i}){return i({frontmatter:{}}),(r,m)=>{const c=Q;return n(),_("div",X,[Z,tt,l(c,null,{default:h(()=>[y(" Plugins runs before your application at runtime, the time each plugin cost will directly affect your application's initial loading time. ")]),_:1}),et])}}},ot={pt4:""},st={class:"text-sm",flex:"~ gap-1 items-center justify-end","mt-3":""},it=e("div",{"i-carbon-timer":"","text-lg":"",op75:""},null,-1),at=e("span",{op50:""},"Total execution time:",-1),gt=v({__name:"plugins",setup(t){const i=I(),a=E(),r=x(()=>{const c=i.value?.plugins||[],p=a.value?.getClientPluginMetrics()||[];return c.map(o=>{const s=typeof o=="string"?{src:o}:o;return{...s,metric:p.find(g=>g.src===s.src||g.src.startsWith(s.src))}})}),m=x(()=>{const c=a.value?.getClientPluginMetrics()||[],p=Math.min(...c.map(s=>s.start));return Math.max(...c.map(s=>s.end))-p});return(c,p)=>{const o=U,s=k,g=L,w=nt,N=j;return n(),_(C,null,[l(g,{icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${f(r).length}`},{default:h(()=>[e("div",ot,[(n(!0),_(C,null,R(f(r),($,b)=>(n(),u(o,{key:$.src,plugin:$,index:b+1,"ml--4":"","border-base":"",py2:"",class:W(b?"border-t":"")},null,8,["plugin","index","class"]))),128)),e("div",st,[it,at,l(s,{duration:f(m),factor:10},null,8,["duration"])])])]),_:1},8,["description"]),l(N,null,{default:h(()=>[l(w)]),_:1})],64)}}});export{gt as default};
@@ -1 +1 @@
1
- import{_ as C}from"./StateEditor.vue.452c2a1e.js";import{_ as h}from"./NSectionBlock.b03d4f1a.js";import{o as c,h as r,f as m,a as v,b as x,R as b,p as u,u as o,i as e,w as s,v as y,F as R}from"./entry.8297d1ff.js";import{_ as k}from"./HelpFab.vue.82dbe71b.js";import"./NIconButton.vue.61b6fdb9.js";import"./json-editor-vue.98769e76.js";import"./NIconTitle.vue.db04ddec.js";const B={class:"markdown-body"},N=m("h1",null,"Runtime Configs",-1),$=m("p",null,"// TODO:",-1),w=[N,$],D={__name:"runtime-configs",setup(d,{expose:t}){return t({frontmatter:{}}),(l,p)=>(c(),r("div",B,w))}},F={key:0},j=v({__name:"runtime-configs",setup(d){const t=x(),_=b(),l=u(()=>t.value?.nuxt.payload),p=u(()=>{const n={..._.value?.runtimeConfig};return delete n.public,delete n.app,n});return(n,S)=>{const a=C,i=h,f=D,g=k;return c(),r(R,null,[o(t)?(c(),r("div",F,[e(i,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:s(()=>[e(a,{state:o(t).appConfig},null,8,["state"])]),_:1}),e(i,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:s(()=>[e(a,{state:o(l).config?.public},null,8,["state"])]),_:1}),e(i,{icon:"i-carbon-code-signing-service",text:"Private Runtime Config",open:!1,padding:!1,description:"These values are not exposed to the client. Readonly in the DevTools."},{default:s(()=>[e(a,{state:o(p),readonly:""},null,8,["state"])]),_:1})])):y("",!0),e(g,null,{default:s(()=>[e(f)]),_:1})],64)}}});export{j as default};
1
+ import{_ as C}from"./StateEditor.vue.544a7d41.js";import{_ as h}from"./NSectionBlock.5d6e9b8e.js";import{o as c,h as r,f as m,a as v,b as x,R as b,p as u,u as o,i as e,w as s,v as y,F as R}from"./entry.5024288d.js";import{_ as k}from"./HelpFab.vue.748cc95d.js";import"./NIconButton.vue.d0a9a760.js";import"./json-editor-vue.2379a5ec.js";import"./NIconTitle.vue.c8b7e265.js";const B={class:"markdown-body"},N=m("h1",null,"Runtime Configs",-1),$=m("p",null,"// TODO:",-1),w=[N,$],D={__name:"runtime-configs",setup(d,{expose:t}){return t({frontmatter:{}}),(l,p)=>(c(),r("div",B,w))}},F={key:0},j=v({__name:"runtime-configs",setup(d){const t=x(),_=b(),l=u(()=>t.value?.nuxt.payload),p=u(()=>{const n={..._.value?.runtimeConfig};return delete n.public,delete n.app,n});return(n,S)=>{const a=C,i=h,f=D,g=k;return c(),r(R,null,[o(t)?(c(),r("div",F,[e(i,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:s(()=>[e(a,{state:o(t).appConfig},null,8,["state"])]),_:1}),e(i,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:s(()=>[e(a,{state:o(l).config?.public},null,8,["state"])]),_:1}),e(i,{icon:"i-carbon-code-signing-service",text:"Private Runtime Config",open:!1,padding:!1,description:"These values are not exposed to the client. Readonly in the DevTools."},{default:s(()=>[e(a,{state:o(p),readonly:""},null,8,["state"])]),_:1})])):y("",!0),e(g,null,{default:s(()=>[e(f)]),_:1})],64)}}});export{j as default};
@@ -1,4 +1,4 @@
1
- import{_ as ie}from"./Navbar.vue.1175e5b5.js";import{_ as Y}from"./Badge.c6f0948b.js";import{a as Z,R as ce,ad as de,p,r as k,o as a,h as m,f as i,c as x,w as l,l as h,t as y,u as e,s as b,aW as G,F as j,q as W,G as ee,i as s,v as $,k as pe,M as me,aX as fe,E as _e,aY as ve,aZ as he,H as ye,a3 as ge}from"./entry.8297d1ff.js";import{_ as xe}from"./NSelect.vue.04879311.js";import{_ as be}from"./NTextInput.vue.3d7af8ee.js";import{_ as Ce}from"./CodeSnippets.vue.c8638278.js";import{_ as te}from"./NPanelGrids.f0b55b40.js";import{_ as ke}from"./NCodeBlock.vue.7df96def.js";import{u as $e}from"./editor.e9488ebd.js";import{C as X}from"./constants.d7bcda3c.js";import{_ as Re}from"./PanelLeftRight.vue.b6fba8cf.js";import{F as Te}from"./fuse.esm.88e2763d.js";import"./client.64d509dc.js";const qe={"h-full":"","w-full":"",flex:"~ col"},je={flex:"~ col gap-2","flex-none":"",p4:"","navbar-glass":""},Se={flex:"~ gap2"},Ve={flex:"~ gap2","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},we=i("div",{"flex-auto":""},null,-1),Ee={key:0,border:"b base","items-center":"",px4:"",py2:"",grid:"~ cols-[max-content_1fr] gap-2"},Ne={"text-right":"","font-mono":""},Ue={key:1,relative:""},Pe={key:2,px4:"",py2:"",flex:"~ col gap-2",border:"b base"},Be={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},Me=i("div",null,"Response",-1),Oe={key:1,"text-xs":"",op50:""},Le=i("div",{"flex-auto":""},null,-1),De=i("div",{op50:""}," Request finished in ",-1),Fe=Z({__name:"ServerRouteDetails",props:{route:{type:Object,required:!0}},setup(P){const B=P,R=ce(),u=de({contentType:"text/plain",data:"",statusCode:200,error:void 0}),T=p(()=>u.contentType.includes("application/json")?"json":u.contentType.includes("text/html")?"html":u.contentType.includes("text/css")?"css":u.contentType.includes("text/javascript")?"javascript":u.contentType.includes("text/xml")||u.contentType.includes("application/xml")?"xml":"text"),q=p(()=>T.value==="json"?JSON.stringify(u.data,null,2):u.data),w=k(0),C=k(!1),E=k(!1),A=$e(),M=p(()=>B.route.route?.split(/((?:\*\*)?:[\w_]+)/g)),S=p(()=>M.value?.filter(o=>o.startsWith(":")||o.startsWith("**:"))||[]),g=k(B.route.method||"GET"),N=k({}),U=k([{key:"",value:""}]),V=k([{key:"",value:""}]),f=k([{key:"Content-Type",value:"application/json"}]),z=p(()=>V.value.filter(({key:o})=>o).length),J=p(()=>f.value.filter(({key:o})=>o).length),H=p(()=>{const o={};for(let t=0;t<U.value.length;t++){const{key:n,value:c}=U.value[t];o[n]=c}return Object.keys(o)[0]?o:null}),oe=p(()=>{let o=R.value?.devServer.url||"http://localhost";o.charAt(o.length-1)==="/"&&(o=o.slice(0,-1));const t=R.value?.devServer.port||3e3;return o.includes(`:${t}`)?o:`${o}:${t}`}),O=p(()=>{let o=new URLSearchParams(Object.fromEntries(V.value.filter(({key:c})=>c).map(({key:c,value:_})=>[c,_]))).toString();o&&(o=`?${o}`);const t=(M.value?.map(c=>(c.startsWith(":")||c.startsWith("**:"))&&N.value[c]||c).join("")||"")+o;let n=R.value?.app.baseURL||"";return(n==="./"||n===".")&&(n=""),n.endsWith("/")&&(n=n.slice(0,-1)),n+t}),ne=p(()=>oe.value+O.value);async function K(){E.value=!0,C.value=!0,Object.assign(u,{lang:"text",contentType:"",data:"",content:"",error:void 0});const o=Date.now();try{u.data=await $fetch(ne.value,{method:g.value.toUpperCase(),headers:Object.fromEntries(f.value.filter(({key:t,value:n})=>t&&n).map(({key:t,value:n})=>[t,n])),query:Object.fromEntries(V.value.filter(({key:t,value:n})=>t&&n).map(({key:t,value:n})=>[t,n])),body:H.value,onResponse({response:t}){u.contentType=(t.headers.get("content-type")||"").toString().toLowerCase().trim(),u.statusCode=t.status},onResponseError(t){u.error=t.response._data,u.data=t.response._data}})}catch{}C.value=!1,w.value=Date.now()-o}const Q=p(()=>{const o=[],t=[],n=f.value.filter(({key:_,value:v})=>_&&v&&!(_==="Content-Type"&&v==="application/json")).map(({key:_,value:v})=>` '${_}': '${v}'`).join(`,
1
+ import{_ as ie}from"./Navbar.vue.f2b7b652.js";import{_ as Y}from"./Badge.bd9688d4.js";import{a as Z,R as ce,ad as de,p,r as k,o as a,h as m,f as i,c as x,w as l,l as h,t as y,u as e,s as b,aW as G,F as j,q as W,G as ee,i as s,v as $,k as pe,M as me,aX as fe,E as _e,aY as ve,aZ as he,H as ye,a3 as ge}from"./entry.5024288d.js";import{_ as xe}from"./NSelect.vue.e5de3a65.js";import{_ as be}from"./NTextInput.vue.fc99730b.js";import{_ as Ce}from"./CodeSnippets.vue.c6839222.js";import{_ as te}from"./NPanelGrids.7b5efdc5.js";import{_ as ke}from"./NCodeBlock.vue.d5603a1f.js";import{u as $e}from"./editor.02d33c7f.js";import{C as X}from"./constants.d7bcda3c.js";import{_ as Re}from"./PanelLeftRight.vue.8eda640c.js";import{F as Te}from"./fuse.esm.88e2763d.js";import"./client.b1955e54.js";const qe={"h-full":"","w-full":"",flex:"~ col"},je={flex:"~ col gap-2","flex-none":"",p4:"","navbar-glass":""},Se={flex:"~ gap2"},Ve={flex:"~ gap2","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},we=i("div",{"flex-auto":""},null,-1),Ee={key:0,border:"b base","items-center":"",px4:"",py2:"",grid:"~ cols-[max-content_1fr] gap-2"},Ne={"text-right":"","font-mono":""},Ue={key:1,relative:""},Pe={key:2,px4:"",py2:"",flex:"~ col gap-2",border:"b base"},Be={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},Me=i("div",null,"Response",-1),Oe={key:1,"text-xs":"",op50:""},Le=i("div",{"flex-auto":""},null,-1),De=i("div",{op50:""}," Request finished in ",-1),Fe=Z({__name:"ServerRouteDetails",props:{route:{type:Object,required:!0}},setup(P){const B=P,R=ce(),u=de({contentType:"text/plain",data:"",statusCode:200,error:void 0}),T=p(()=>u.contentType.includes("application/json")?"json":u.contentType.includes("text/html")?"html":u.contentType.includes("text/css")?"css":u.contentType.includes("text/javascript")?"javascript":u.contentType.includes("text/xml")||u.contentType.includes("application/xml")?"xml":"text"),q=p(()=>T.value==="json"?JSON.stringify(u.data,null,2):u.data),w=k(0),C=k(!1),E=k(!1),A=$e(),M=p(()=>B.route.route?.split(/((?:\*\*)?:[\w_]+)/g)),S=p(()=>M.value?.filter(o=>o.startsWith(":")||o.startsWith("**:"))||[]),g=k(B.route.method||"GET"),N=k({}),U=k([{key:"",value:""}]),V=k([{key:"",value:""}]),f=k([{key:"Content-Type",value:"application/json"}]),z=p(()=>V.value.filter(({key:o})=>o).length),J=p(()=>f.value.filter(({key:o})=>o).length),H=p(()=>{const o={};for(let t=0;t<U.value.length;t++){const{key:n,value:c}=U.value[t];o[n]=c}return Object.keys(o)[0]?o:null}),oe=p(()=>{let o=R.value?.devServer.url||"http://localhost";o.charAt(o.length-1)==="/"&&(o=o.slice(0,-1));const t=R.value?.devServer.port||3e3;return o.includes(`:${t}`)?o:`${o}:${t}`}),O=p(()=>{let o=new URLSearchParams(Object.fromEntries(V.value.filter(({key:c})=>c).map(({key:c,value:_})=>[c,_]))).toString();o&&(o=`?${o}`);const t=(M.value?.map(c=>(c.startsWith(":")||c.startsWith("**:"))&&N.value[c]||c).join("")||"")+o;let n=R.value?.app.baseURL||"";return(n==="./"||n===".")&&(n=""),n.endsWith("/")&&(n=n.slice(0,-1)),n+t}),ne=p(()=>oe.value+O.value);async function K(){E.value=!0,C.value=!0,Object.assign(u,{lang:"text",contentType:"",data:"",content:"",error:void 0});const o=Date.now();try{u.data=await $fetch(ne.value,{method:g.value.toUpperCase(),headers:Object.fromEntries(f.value.filter(({key:t,value:n})=>t&&n).map(({key:t,value:n})=>[t,n])),query:Object.fromEntries(V.value.filter(({key:t,value:n})=>t&&n).map(({key:t,value:n})=>[t,n])),body:H.value,onResponse({response:t}){u.contentType=(t.headers.get("content-type")||"").toString().toLowerCase().trim(),u.statusCode=t.status},onResponseError(t){u.error=t.response._data,u.data=t.response._data}})}catch{}C.value=!1,w.value=Date.now()-o}const Q=p(()=>{const o=[],t=[],n=f.value.filter(({key:_,value:v})=>_&&v&&!(_==="Content-Type"&&v==="application/json")).map(({key:_,value:v})=>` '${_}': '${v}'`).join(`,
2
2
  `);g.value.toUpperCase()!=="GET"&&t.push(`method: '${g.value.toUpperCase()}'`),n&&t.push(`headers: {
3
3
  ${n}
4
4
  }`),H.value&&t.push(`body: ${JSON.stringify(H.value,null,2)}`);const c=t.length?`, {
@@ -0,0 +1 @@
1
+ import{_ as F}from"./NIconTitle.vue.c8b7e265.js";import{_ as O}from"./NSwitch.vue.25cba5a5.js";import{a as j,bb as z,h as d,i as s,f as e,F as m,q as h,u as a,w as n,G as y,a2 as I,bc as L,o as i,s as k,t as f,c as E,v as H,l as q,aS as A,k as G}from"./entry.5024288d.js";import{_ as R}from"./NSelect.vue.e5de3a65.js";import{_ as J}from"./NCheckbox.vue.96f7ae1a.js";const K={px6:"",py6:""},M={grid:"~ md:cols-2 gap-x-10 gap-y-3","max-w-300":""},P={flex:"~ col gap-1",py3:""},Q=e("h3",{mb1:"","text-lg":""}," Tabs ",-1),W={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},X={capitalize:"",op75:""},Y={flex:"~ col gap-1",border:"~ base rounded",py3:"",pl4:"",pr2:""},Z={py3:"",flex:"~ col gap-1",border:"b base"},ee=e("h3",{mb1:"","text-lg":""}," Appearance ",-1),oe=e("div",{"carbon-sun":"","dark:carbon-moon":"","translate-y--1px":""},null,-1),te={py3:"",flex:"~ col gap-1",border:"b base"},le=e("h3",{mb1:"","text-lg":""}," UI Scale ",-1),se=["value"],ae={py3:"",flex:"~ col gap-1"},ne=e("h3",{mb1:"","text-lg":""}," Features ",-1),ie=e("span",null,"Close DevTools when clicking outside",-1),ce=e("span",null,"Show help buttons",-1),ge=j({__name:"settings",setup(de){const{interactionCloseOnOutsideClick:g,showExperimentalFeatures:re,showHelpButtons:v,scale:x,hiddenTabs:r,hiddenTabCategories:u}=I(),T=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],C=z(!1);function N(c,t){t?r.value=r.value.filter(p=>p!==c):r.value.push(c)}function w(c,t){t?u.value=u.value.filter(p=>p!==c):u.value.push(c)}return(c,t)=>{const p=F,b=O,S=A,U=G,$=L,B=R,V=J;return i(),d("div",K,[s(p,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),e("div",M,[e("div",P,[Q,(i(!0),d(m,null,h(a(C),([o,_])=>(i(),d(m,{key:o},[_.length?(i(),d("div",{key:0,flex:"~ col gap-1","mx--1":"",class:k(a(u).includes(o)?"op50 grayscale":""),"pt-2":""},[s(b,{flex:"~ row-reverse",px2:"",py1:"","n-lime":"","model-value":!a(u).includes(o),"onUpdate:modelValue":l=>w(o,l)},{default:n(()=>[e("div",W,[e("span",X,f(o),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),e("div",Y,[(i(!0),d(m,null,h(_,l=>(i(),E(b,{key:l.name,flex:"~ row-reverse",py1:"",pl2:"",pr1:"","n-primary":"","model-value":!a(r).includes(l.name),"onUpdate:modelValue":D=>N(l.name,D)},{default:n(()=>[e("div",{flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"",class:k(a(r).includes(l.name)?"op25":"")},[s(S,{"text-xl":"",icon:l.icon,title:l.title},null,8,["icon","title"]),e("span",null,f(l.title),1)],2)]),_:2},1032,["model-value","onUpdate:modelValue"]))),128))])],2)):H("",!0)],64))),128))]),e("div",null,[e("div",Z,[ee,e("div",null,[s($,null,{default:n(({toggle:o,isDark:_})=>[s(U,{n:"primary",onClick:o},{default:n(()=>[oe,q(" "+f(_.value?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1})])]),e("div",te,[le,s(B,{modelValue:a(x),"onUpdate:modelValue":t[0]||(t[0]=o=>y(x)?x.value=o:null),n:"primary"},{default:n(()=>[(i(),d(m,null,h(T,o=>e("option",{key:o[0],value:o[1]},f(o[0]),9,se)),64))]),_:1},8,["modelValue"])]),e("div",ae,[ne,s(V,{modelValue:a(g),"onUpdate:modelValue":t[1]||(t[1]=o=>y(g)?g.value=o:null),"n-primary":""},{default:n(()=>[ie]),_:1},8,["modelValue"]),s(V,{modelValue:a(v),"onUpdate:modelValue":t[2]||(t[2]=o=>y(v)?v.value=o:null),"n-primary":""},{default:n(()=>[ce]),_:1},8,["modelValue"])])])])])}}});export{ge as default};
@@ -1 +1 @@
1
- import{_ as ne}from"./NIconButton.vue.61b6fdb9.js";import{_ as oe}from"./NSelect.vue.04879311.js";import{_ as ae}from"./NTextInput.vue.3d7af8ee.js";import{a as se,a$ as re,D as le,r as I,p as S,E,b0 as R,ah as ue,a1 as ie,ag as de,e as ce,y as p,u as n,c as _,w as u,b1 as z,o as r,f as l,i as d,h as c,q as U,t as v,F as x,G as j,l as i,s as F,aJ as q,v as P,ac as me,z as pe,b2 as _e,aQ as fe,H as ye,M as ve,k as ge,a3 as he}from"./entry.8297d1ff.js";import{_ as ke}from"./NLink.vue.cee1facb.js";import{_ as be}from"./NPanelGrids.f0b55b40.js";import{_ as xe}from"./PanelLeftRight.vue.b6fba8cf.js";import{_ as we}from"./FilepathItem.vue.22e62c13.js";import{U as Ke}from"./json-editor-vue.98769e76.js";import"./editor.e9488ebd.js";const Ce={class:"h-[48px] flex items-center justify-between gap1 px-3"},Ve={class:"w-full text-sm"},Ne=["value"],$e=l("div",{"x-divider":""},null,-1),Ie={key:0,"h-full":"","of-hidden":"",flex:"~ col"},Se={border:"b base",class:"h-[49px] flex flex-none items-center justify-between px-4 text-sm"},Ue={class:"flex items-center gap-4"},je={key:1},qe=["onKeyup"],Le=l("br",null,null,-1),Me={key:0,op50:""},Be={key:1},De=l("code",null,"nitro.storage",-1),Ae=l("br",null,null,-1),Ee={"font-bold":""},Re=l("br",null,null,-1),ze={"text-sm":""},Fe=l("br",null,null,-1),tt=se({__name:"storage",async setup(Pe){let m,g;const T=re(),h=le(),k=I(""),y=I(""),a=S({get(){return E().query?.storage},set(t){h.replace({query:{storage:t}})}}),e=I(),b=S(()=>E().query?.key),{data:w}=([m,g]=R(()=>z("storageMounts",()=>p.getStorageMounts())),m=await m,g(),m),{data:K,refresh:L}=([m,g]=R(async()=>z("storageKeys",async()=>a.value?await p.getStorageKeys(a.value):[])),m=await m,g(),m),G=T.hook("storage:key:update",async(t,s)=>{if(!(!a.value||t.split(":")[0]!==a.value)&&(await L(),b.value===t)){if(s==="remove")return h.replace({query:{storage:a.value}});await V(b.value)}});ue(G),ie(a,L),de(async()=>{if(!b.value){e.value=null;return}V(b.value)}),ce("keydown",t=>{t.key==="s"&&(t.ctrlKey||t.metaKey)&&(N(),t.preventDefault())});function C(t){return t.replace(`${a.value}:`,"")}const H=S(()=>K.value?K.value.filter(t=>t.includes(k.value)):[]);async function V(t){const s=await p.getStorageItem(t);e.value={key:t,updatedKey:C(t),editingKey:!1,content:s,updatedContent:s}}async function J(){if(!y.value||!a.value)return;const t=`${a.value}:${y.value}`;K.value?.includes(t)||await p.setStorageItem(t,""),h.replace({query:{storage:a.value,key:t}}),y.value=""}async function N(){e.value&&(await p.setStorageItem(e.value.key,e.value.updatedContent),await V(e.value.key))}async function O(){!e.value||!a.value||(await p.removeStorageItem(e.value.key),e.value=null)}async function Q(){if(!e.value||!a.value)return;const t=`${a.value}:${e.value.updatedKey}`;await p.setStorageItem(t,e.value.updatedContent),await p.removeStorageItem(e.value.key),h.replace({query:{storage:a.value,key:t}})}return(t,s)=>{const W=ne,X=oe,$=ae,Y=ye,Z=ve,M=ge,B=ke,D=he,A=be,ee=xe,te=we;return n(a)?(r(),_(ee,{key:0,"storage-key":"tab-storage"},{left:u(()=>[l("div",Ce,[d(W,{icon:"carbon-chevron-left","ml--1":"",onClick:s[0]||(s[0]=o=>a.value="")}),l("div",Ve,[d(X,{modelValue:n(a),"onUpdate:modelValue":s[1]||(s[1]=o=>j(a)?a.value=o:null),n:"primary",icon:"carbon-data-base"},{default:u(()=>[(r(!0),c(x,null,U(n(w),(o,f)=>(r(),c("option",{key:f,value:f},v(f),9,Ne))),128))]),_:1},8,["modelValue"])])]),d($,{modelValue:n(k),"onUpdate:modelValue":s[2]||(s[2]=o=>j(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),c(x,null,U(n(H),o=>(r(),c(x,{key:o},[d(Y,{block:"",truncate:"",px2:"",py1:"","font-mono":"","text-sm":"",to:{query:{key:o,storage:n(a)}},class:F(o===n(e)?.key?"text-primary n-bg-active":"text-secondary hover:n-bg-hover")},{default:u(()=>[i(v(C(o)),1)]),_:2},1032,["to","class"]),$e],64))),128)),d($,{modelValue:n(y),"onUpdate:modelValue":s[3]||(s[3]=o=>j(y)?y.value=o:null),icon:"carbon-add",placeholder:"key",n:"sm",border:"t-none x-none base! rounded-0",class:"w-full py2 font-mono ring-0!",onKeyup:q(J,["enter"])},null,8,["modelValue","onKeyup"])]),right:u(()=>[n(e)?.key?(r(),c("div",Ie,[l("div",Se,[l("div",Ue,[n(e).editingKey?(r(),_($,{key:0,modelValue:n(e).updatedKey,"onUpdate:modelValue":s[4]||(s[4]=o=>n(e).updatedKey=o),onKeyup:q(Q,["enter"])},null,8,["modelValue","onKeyup"])):(r(),c("code",je,[i(v(C(n(e).key))+" ",1),d(Z,{icon:"carbon-edit",class:"cursor-pointer op50 hover:op100",onClick:s[5]||(s[5]=o=>n(e).editingKey=!0)})])),n(e).editingKey?P("",!0):(r(),_(M,{key:2,n:"green xs",disabled:n(e).content===n(e).updatedContent,class:F({"border-green":n(e).content!==n(e).updatedContent}),onClick:N},{default:u(()=>[i(" Save ")]),_:1},8,["disabled","class"]))]),l("div",null,[d(M,{n:"red xs",onClick:O},{default:u(()=>[i(" Delete ")]),_:1})])]),typeof n(e).content=="object"?(r(),_(n(Ke),me({key:0,modelValue:n(e).updatedContent,"onUpdate:modelValue":s[6]||(s[6]=o=>n(e).updatedContent=o),class:[[t.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue h-full of-auto text-sm outline-none"]},t.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):pe((r(),c("textarea",{key:1,"onUpdate:modelValue":s[7]||(s[7]=o=>n(e).updatedContent=o),placeholder:"Item value...",class:"h-full of-auto p-4 font-mono text-sm outline-none",onKeyup:q(fe(N,["ctrl"]),["enter"])},null,40,qe)),[[_e,n(e).updatedContent]])])):(r(),_(A,{key:1},{default:u(()=>[d(D,{px6:"",py4:""},{default:u(()=>[i(" Select one key to start."),Le,i("Learn more about "),d(B,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>[i(" Nitro storage ")]),_:1})]),_:1})]),_:1}))]),_:1})):(r(),_(A,{key:1},{default:u(()=>[Object.keys(n(w)).length?(r(),c("p",Me," Select one storage to start: ")):(r(),c("p",Be,[i(" No custom storage defined in "),De,i("."),Ae,i(" Learn more about "),d(B,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>[i(" Nitro storage ")]),_:1})])),(r(!0),c(x,null,U(n(w),(o,f)=>(r(),_(D,{key:f,"min-w-80":"","cursor-pointer":"","p-4":"","text-left":"",hover:"border-green",onClick:Te=>a.value=f},{default:u(()=>[l("span",Ee,v(f),1),Re,l("span",ze,v(o.driver)+" driver",1),Fe,o.base?(r(),_(te,{key:0,"text-xs":"",filepath:o.base},null,8,["filepath"])):P("",!0)]),_:2},1032,["onClick"]))),128))]),_:1}))}}});export{tt as default};
1
+ import{_ as ne}from"./NIconButton.vue.d0a9a760.js";import{_ as oe}from"./NSelect.vue.e5de3a65.js";import{_ as ae}from"./NTextInput.vue.fc99730b.js";import{a as se,a$ as re,D as le,r as I,p as S,E,b0 as R,ah as ue,a1 as ie,ag as de,e as ce,y as p,u as n,c as _,w as u,b1 as z,o as r,f as l,i as d,h as c,q as U,t as v,F as x,G as j,l as i,s as F,aJ as q,v as P,ac as me,z as pe,b2 as _e,aQ as fe,H as ye,M as ve,k as ge,a3 as he}from"./entry.5024288d.js";import{_ as ke}from"./NLink.vue.404a4f6c.js";import{_ as be}from"./NPanelGrids.7b5efdc5.js";import{_ as xe}from"./PanelLeftRight.vue.8eda640c.js";import{_ as we}from"./FilepathItem.vue.1c96e6cc.js";import{U as Ke}from"./json-editor-vue.2379a5ec.js";import"./editor.02d33c7f.js";const Ce={class:"h-[48px] flex items-center justify-between gap1 px-3"},Ve={class:"w-full text-sm"},Ne=["value"],$e=l("div",{"x-divider":""},null,-1),Ie={key:0,"h-full":"","of-hidden":"",flex:"~ col"},Se={border:"b base",class:"h-[49px] flex flex-none items-center justify-between px-4 text-sm"},Ue={class:"flex items-center gap-4"},je={key:1},qe=["onKeyup"],Le=l("br",null,null,-1),Me={key:0,op50:""},Be={key:1},De=l("code",null,"nitro.storage",-1),Ae=l("br",null,null,-1),Ee={"font-bold":""},Re=l("br",null,null,-1),ze={"text-sm":""},Fe=l("br",null,null,-1),tt=se({__name:"storage",async setup(Pe){let m,g;const T=re(),h=le(),k=I(""),y=I(""),a=S({get(){return E().query?.storage},set(t){h.replace({query:{storage:t}})}}),e=I(),b=S(()=>E().query?.key),{data:w}=([m,g]=R(()=>z("storageMounts",()=>p.getStorageMounts())),m=await m,g(),m),{data:K,refresh:L}=([m,g]=R(async()=>z("storageKeys",async()=>a.value?await p.getStorageKeys(a.value):[])),m=await m,g(),m),G=T.hook("storage:key:update",async(t,s)=>{if(!(!a.value||t.split(":")[0]!==a.value)&&(await L(),b.value===t)){if(s==="remove")return h.replace({query:{storage:a.value}});await V(b.value)}});ue(G),ie(a,L),de(async()=>{if(!b.value){e.value=null;return}V(b.value)}),ce("keydown",t=>{t.key==="s"&&(t.ctrlKey||t.metaKey)&&(N(),t.preventDefault())});function C(t){return t.replace(`${a.value}:`,"")}const H=S(()=>K.value?K.value.filter(t=>t.includes(k.value)):[]);async function V(t){const s=await p.getStorageItem(t);e.value={key:t,updatedKey:C(t),editingKey:!1,content:s,updatedContent:s}}async function J(){if(!y.value||!a.value)return;const t=`${a.value}:${y.value}`;K.value?.includes(t)||await p.setStorageItem(t,""),h.replace({query:{storage:a.value,key:t}}),y.value=""}async function N(){e.value&&(await p.setStorageItem(e.value.key,e.value.updatedContent),await V(e.value.key))}async function O(){!e.value||!a.value||(await p.removeStorageItem(e.value.key),e.value=null)}async function Q(){if(!e.value||!a.value)return;const t=`${a.value}:${e.value.updatedKey}`;await p.setStorageItem(t,e.value.updatedContent),await p.removeStorageItem(e.value.key),h.replace({query:{storage:a.value,key:t}})}return(t,s)=>{const W=ne,X=oe,$=ae,Y=ye,Z=ve,M=ge,B=ke,D=he,A=be,ee=xe,te=we;return n(a)?(r(),_(ee,{key:0,"storage-key":"tab-storage"},{left:u(()=>[l("div",Ce,[d(W,{icon:"carbon-chevron-left","ml--1":"",onClick:s[0]||(s[0]=o=>a.value="")}),l("div",Ve,[d(X,{modelValue:n(a),"onUpdate:modelValue":s[1]||(s[1]=o=>j(a)?a.value=o:null),n:"primary",icon:"carbon-data-base"},{default:u(()=>[(r(!0),c(x,null,U(n(w),(o,f)=>(r(),c("option",{key:f,value:f},v(f),9,Ne))),128))]),_:1},8,["modelValue"])])]),d($,{modelValue:n(k),"onUpdate:modelValue":s[2]||(s[2]=o=>j(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),c(x,null,U(n(H),o=>(r(),c(x,{key:o},[d(Y,{block:"",truncate:"",px2:"",py1:"","font-mono":"","text-sm":"",to:{query:{key:o,storage:n(a)}},class:F(o===n(e)?.key?"text-primary n-bg-active":"text-secondary hover:n-bg-hover")},{default:u(()=>[i(v(C(o)),1)]),_:2},1032,["to","class"]),$e],64))),128)),d($,{modelValue:n(y),"onUpdate:modelValue":s[3]||(s[3]=o=>j(y)?y.value=o:null),icon:"carbon-add",placeholder:"key",n:"sm",border:"t-none x-none base! rounded-0",class:"w-full py2 font-mono ring-0!",onKeyup:q(J,["enter"])},null,8,["modelValue","onKeyup"])]),right:u(()=>[n(e)?.key?(r(),c("div",Ie,[l("div",Se,[l("div",Ue,[n(e).editingKey?(r(),_($,{key:0,modelValue:n(e).updatedKey,"onUpdate:modelValue":s[4]||(s[4]=o=>n(e).updatedKey=o),onKeyup:q(Q,["enter"])},null,8,["modelValue","onKeyup"])):(r(),c("code",je,[i(v(C(n(e).key))+" ",1),d(Z,{icon:"carbon-edit",class:"cursor-pointer op50 hover:op100",onClick:s[5]||(s[5]=o=>n(e).editingKey=!0)})])),n(e).editingKey?P("",!0):(r(),_(M,{key:2,n:"green xs",disabled:n(e).content===n(e).updatedContent,class:F({"border-green":n(e).content!==n(e).updatedContent}),onClick:N},{default:u(()=>[i(" Save ")]),_:1},8,["disabled","class"]))]),l("div",null,[d(M,{n:"red xs",onClick:O},{default:u(()=>[i(" Delete ")]),_:1})])]),typeof n(e).content=="object"?(r(),_(n(Ke),me({key:0,modelValue:n(e).updatedContent,"onUpdate:modelValue":s[6]||(s[6]=o=>n(e).updatedContent=o),class:[[t.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue h-full of-auto text-sm outline-none"]},t.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):pe((r(),c("textarea",{key:1,"onUpdate:modelValue":s[7]||(s[7]=o=>n(e).updatedContent=o),placeholder:"Item value...",class:"h-full of-auto p-4 font-mono text-sm outline-none",onKeyup:q(fe(N,["ctrl"]),["enter"])},null,40,qe)),[[_e,n(e).updatedContent]])])):(r(),_(A,{key:1},{default:u(()=>[d(D,{px6:"",py4:""},{default:u(()=>[i(" Select one key to start."),Le,i("Learn more about "),d(B,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>[i(" Nitro storage ")]),_:1})]),_:1})]),_:1}))]),_:1})):(r(),_(A,{key:1},{default:u(()=>[Object.keys(n(w)).length?(r(),c("p",Me," Select one storage to start: ")):(r(),c("p",Be,[i(" No custom storage defined in "),De,i("."),Ae,i(" Learn more about "),d(B,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>[i(" Nitro storage ")]),_:1})])),(r(!0),c(x,null,U(n(w),(o,f)=>(r(),_(D,{key:f,"min-w-80":"","cursor-pointer":"","p-4":"","text-left":"",hover:"border-green",onClick:Te=>a.value=f},{default:u(()=>[l("span",Ee,v(f),1),Re,l("span",ze,v(o.driver)+" driver",1),Fe,o.base?(r(),_(te,{key:0,"text-xs":"",filepath:o.base},null,8,["filepath"])):P("",!0)]),_:2},1032,["onClick"]))),128))]),_:1}))}}});export{tt as default};
@@ -1,4 +1,4 @@
1
- import{a as le,r as ae,a$ as pe,a0 as me,e as Se,y as se,h as re,f as te,i as Ce,u as J,c as ie,v as oe,t as ne,F as de,o as Q,b7 as be,E as ye,D as we,p as Ee,ag as Le,q as ke,l as he,w as Re,s as ce,aQ as De,M as Ae,H as xe}from"./entry.8297d1ff.js";import{_ as _e}from"./NIconButton.vue.61b6fdb9.js";var ue={exports:{}};(function(ee,Z){(function(Y,X){ee.exports=X()})(self,function(){return(()=>{var Y={4567:(B,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.AccessibilityManager=void 0;const h=a(9042),u=a(6114),d=a(9924),_=a(3656),g=a(844),v=a(5596),c=a(9631);class e extends g.Disposable{constructor(n,t){super(),this._terminal=n,this._renderService=t,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityTreeRoot=document.createElement("div"),this._accessibilityTreeRoot.classList.add("xterm-accessibility"),this._accessibilityTreeRoot.tabIndex=0,this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let r=0;r<this._terminal.rows;r++)this._rowElements[r]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[r]);if(this._topBoundaryFocusListener=r=>this._handleBoundaryFocus(r,0),this._bottomBoundaryFocusListener=r=>this._handleBoundaryFocus(r,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityTreeRoot.appendChild(this._rowContainer),this._renderRowsDebouncer=new d.TimeBasedDebouncer(this._renderRows.bind(this)),this._refreshRows(),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityTreeRoot.appendChild(this._liveRegion),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityTreeRoot),this.register(this._renderRowsDebouncer),this.register(this._terminal.onResize(r=>this._handleResize(r.rows))),this.register(this._terminal.onRender(r=>this._refreshRows(r.start,r.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(r=>this._handleChar(r))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
1
+ import{a as le,r as ae,a$ as pe,a0 as me,e as Se,y as se,h as re,f as te,i as Ce,u as J,c as ie,v as oe,t as ne,F as de,o as Q,b7 as be,E as ye,D as we,p as Ee,ag as Le,q as ke,l as he,w as Re,s as ce,aQ as De,M as Ae,H as xe}from"./entry.5024288d.js";import{_ as _e}from"./NIconButton.vue.d0a9a760.js";var ue={exports:{}};(function(ee,Z){(function(Y,X){ee.exports=X()})(self,function(){return(()=>{var Y={4567:(B,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.AccessibilityManager=void 0;const h=a(9042),u=a(6114),d=a(9924),_=a(3656),g=a(844),v=a(5596),c=a(9631);class e extends g.Disposable{constructor(n,t){super(),this._terminal=n,this._renderService=t,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityTreeRoot=document.createElement("div"),this._accessibilityTreeRoot.classList.add("xterm-accessibility"),this._accessibilityTreeRoot.tabIndex=0,this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let r=0;r<this._terminal.rows;r++)this._rowElements[r]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[r]);if(this._topBoundaryFocusListener=r=>this._handleBoundaryFocus(r,0),this._bottomBoundaryFocusListener=r=>this._handleBoundaryFocus(r,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityTreeRoot.appendChild(this._rowContainer),this._renderRowsDebouncer=new d.TimeBasedDebouncer(this._renderRows.bind(this)),this._refreshRows(),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityTreeRoot.appendChild(this._liveRegion),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityTreeRoot),this.register(this._renderRowsDebouncer),this.register(this._terminal.onResize(r=>this._handleResize(r.rows))),this.register(this._terminal.onRender(r=>this._refreshRows(r.start,r.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(r=>this._handleChar(r))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
2
2
  `))),this.register(this._terminal.onA11yTab(r=>this._handleTab(r))),this.register(this._terminal.onKey(r=>this._handleKey(r.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new v.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,_.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this.register((0,g.toDisposable)(()=>{(0,c.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0}))}_handleBoundaryFocus(n,t){const r=n.target,l=this._rowElements[t===0?1:this._rowElements.length-2];if(r.getAttribute("aria-posinset")===(t===0?"1":`${this._terminal.buffer.lines.length}`)||n.relatedTarget!==l)return;let f,S;if(t===0?(f=r,S=this._rowElements.pop(),this._rowContainer.removeChild(S)):(f=this._rowElements.shift(),S=r,this._rowContainer.removeChild(f)),f.removeEventListener("focus",this._topBoundaryFocusListener),S.removeEventListener("focus",this._bottomBoundaryFocusListener),t===0){const o=this._createAccessibilityTreeNode();this._rowElements.unshift(o),this._rowContainer.insertAdjacentElement("afterbegin",o)}else{const o=this._createAccessibilityTreeNode();this._rowElements.push(o),this._rowContainer.appendChild(o)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(t===0?-1:1),this._rowElements[t===0?1:this._rowElements.length-2].focus(),n.preventDefault(),n.stopImmediatePropagation()}_handleResize(n){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>n;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const n=document.createElement("div");return n.setAttribute("role","listitem"),n.tabIndex=-1,this._refreshRowDimensions(n),n}_handleTab(n){for(let t=0;t<n;t++)this._handleChar(" ")}_handleChar(n){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==n&&(this._charsToAnnounce+=n):this._charsToAnnounce+=n,n===`
3
3
  `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=h.tooMuchOutput)),u.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityTreeRoot.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,u.isMac&&(0,c.removeElementFromParent)(this._liveRegion)}_handleKey(n){this._clearLiveRegion(),/\p{Control}/u.test(n)||this._charsToConsume.push(n)}_refreshRows(n,t){this._renderRowsDebouncer.refresh(n,t,this._terminal.rows)}_renderRows(n,t){const r=this._terminal.buffer,l=r.lines.length.toString();for(let f=n;f<=t;f++){const S=r.translateBufferLineToString(r.ydisp+f,!0),o=(r.ydisp+f+1).toString(),p=this._rowElements[f];p&&(S.length===0?p.innerText=" ":p.textContent=S,p.setAttribute("aria-posinset",o),p.setAttribute("aria-setsize",l))}this._announceCharacters()}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityTreeRoot.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let n=0;n<this._terminal.rows;n++)this._refreshRowDimensions(this._rowElements[n])}}_refreshRowDimensions(n){n.style.height=`${this._renderService.dimensions.css.cell.height}px`}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}}i.AccessibilityManager=e},3614:(B,i)=>{function a(_){return _.replace(/\r?\n/g,"\r")}function h(_,g){return g?"\x1B[200~"+_+"\x1B[201~":_}function u(_,g,v){_=h(_=a(_),v.decPrivateModes.bracketedPasteMode),v.triggerDataEvent(_,!0),g.value=""}function d(_,g,v){const c=v.getBoundingClientRect(),e=_.clientX-c.left-10,s=_.clientY-c.top-10;g.style.width="20px",g.style.height="20px",g.style.left=`${e}px`,g.style.top=`${s}px`,g.style.zIndex="1000",g.focus()}Object.defineProperty(i,"__esModule",{value:!0}),i.rightClickHandler=i.moveTextAreaUnderMouseCursor=i.paste=i.handlePasteEvent=i.copyHandler=i.bracketTextForPaste=i.prepareTextForTerminal=void 0,i.prepareTextForTerminal=a,i.bracketTextForPaste=h,i.copyHandler=function(_,g){_.clipboardData&&_.clipboardData.setData("text/plain",g.selectionText),_.preventDefault()},i.handlePasteEvent=function(_,g,v){_.stopPropagation(),_.clipboardData&&u(_.clipboardData.getData("text/plain"),g,v)},i.paste=u,i.moveTextAreaUnderMouseCursor=d,i.rightClickHandler=function(_,g,v,c,e){d(_,g,v),e&&c.rightClickSelect(_),g.value=c.selectionText,g.select()}},7239:(B,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ColorContrastCache=void 0;const h=a(1505);i.ColorContrastCache=class{constructor(){this._color=new h.TwoKeyMap,this._css=new h.TwoKeyMap}setCss(u,d,_){this._css.set(u,d,_)}getCss(u,d){return this._css.get(u,d)}setColor(u,d,_){this._color.set(u,d,_)}getColor(u,d){return this._color.get(u,d)}clear(){this._color.clear(),this._css.clear()}}},9631:(B,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.removeElementFromParent=void 0,i.removeElementFromParent=function(...a){var h;for(const u of a)(h=u?.parentElement)===null||h===void 0||h.removeChild(u)}},3656:(B,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.addDisposableDomListener=void 0,i.addDisposableDomListener=function(a,h,u,d){a.addEventListener(h,u,d);let _=!1;return{dispose:()=>{_||(_=!0,a.removeEventListener(h,u,d))}}}},6465:function(B,i,a){var h=this&&this.__decorate||function(e,s,n,t){var r,l=arguments.length,f=l<3?s:t===null?t=Object.getOwnPropertyDescriptor(s,n):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(e,s,n,t);else for(var S=e.length-1;S>=0;S--)(r=e[S])&&(f=(l<3?r(f):l>3?r(s,n,f):r(s,n))||f);return l>3&&f&&Object.defineProperty(s,n,f),f},u=this&&this.__param||function(e,s){return function(n,t){s(n,t,e)}};Object.defineProperty(i,"__esModule",{value:!0}),i.Linkifier2=void 0;const d=a(2585),_=a(8460),g=a(844),v=a(3656);let c=class extends g.Disposable{constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._activeLine=-1,this._onShowLinkUnderline=this.register(new _.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new _.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,g.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,g.toDisposable)(()=>{this._lastMouseEvent=void 0}))}get currentLink(){return this._currentLink}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{const s=this._linkProviders.indexOf(e);s!==-1&&this._linkProviders.splice(s,1)}}}attachToDom(e,s,n){this._element=e,this._mouseService=s,this._renderService=n,this.register((0,v.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,v.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,v.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,v.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;const s=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!s)return;this._isMouseOut=!1;const n=e.composedPath();for(let t=0;t<n.length;t++){const r=n[t];if(r.classList.contains("xterm"))break;if(r.classList.contains("xterm-hover"))return}this._lastBufferCell&&s.x===this._lastBufferCell.x&&s.y===this._lastBufferCell.y||(this._handleHover(s),this._lastBufferCell=s)}_handleHover(e){if(this._activeLine!==e.y)return this._clearCurrentLink(),void this._askForLink(e,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}_askForLink(e,s){var n,t;this._activeProviderReplies&&s||((n=this._activeProviderReplies)===null||n===void 0||n.forEach(l=>{l?.forEach(f=>{f.link.dispose&&f.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let r=!1;for(const[l,f]of this._linkProviders.entries())s?!((t=this._activeProviderReplies)===null||t===void 0)&&t.get(l)&&(r=this._checkLinkProviderResult(l,e,r)):f.provideLinks(e.y,S=>{var o,p;if(this._isMouseOut)return;const C=S?.map(y=>({link:y}));(o=this._activeProviderReplies)===null||o===void 0||o.set(l,C),r=this._checkLinkProviderResult(l,e,r),((p=this._activeProviderReplies)===null||p===void 0?void 0:p.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,s){const n=new Set;for(let t=0;t<s.size;t++){const r=s.get(t);if(r)for(let l=0;l<r.length;l++){const f=r[l],S=f.link.range.start.y<e?0:f.link.range.start.x,o=f.link.range.end.y>e?this._bufferService.cols:f.link.range.end.x;for(let p=S;p<=o;p++){if(n.has(p)){r.splice(l--,1);break}n.add(p)}}}}_checkLinkProviderResult(e,s,n){var t;if(!this._activeProviderReplies)return n;const r=this._activeProviderReplies.get(e);let l=!1;for(let f=0;f<e;f++)this._activeProviderReplies.has(f)&&!this._activeProviderReplies.get(f)||(l=!0);if(!l&&r){const f=r.find(S=>this._linkAtPosition(S.link,s));f&&(n=!0,this._handleNewLink(f))}if(this._activeProviderReplies.size===this._linkProviders.length&&!n)for(let f=0;f<this._activeProviderReplies.size;f++){const S=(t=this._activeProviderReplies.get(f))===null||t===void 0?void 0:t.find(o=>this._linkAtPosition(o.link,s));if(S){n=!0,this._handleNewLink(S);break}}return n}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;const s=this._positionFromMouseEvent(e,this._element,this._mouseService);s&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,s)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,s){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!s||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=s)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,g.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const s=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);s&&this._linkAtPosition(e.link,s)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var n,t;return(t=(n=this._currentLink)===null||n===void 0?void 0:n.state)===null||t===void 0?void 0:t.decorations.pointerCursor},set:n=>{var t,r;!((t=this._currentLink)===null||t===void 0)&&t.state&&this._currentLink.state.decorations.pointerCursor!==n&&(this._currentLink.state.decorations.pointerCursor=n,this._currentLink.state.isHovered&&((r=this._element)===null||r===void 0||r.classList.toggle("xterm-cursor-pointer",n)))}},underline:{get:()=>{var n,t;return(t=(n=this._currentLink)===null||n===void 0?void 0:n.state)===null||t===void 0?void 0:t.decorations.underline},set:n=>{var t,r,l;!((t=this._currentLink)===null||t===void 0)&&t.state&&((l=(r=this._currentLink)===null||r===void 0?void 0:r.state)===null||l===void 0?void 0:l.decorations.underline)!==n&&(this._currentLink.state.decorations.underline=n,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,n))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(n=>{const t=n.start===0?0:n.start+1+this._bufferService.buffer.ydisp,r=this._currentLink?this._lastMouseEvent:void 0;if(this._clearCurrentLink(t,n.end+1+this._bufferService.buffer.ydisp),r&&this._element){const l=this._positionFromMouseEvent(r,this._element,this._mouseService);l&&this._askForLink(l,!1)}})))}_linkHover(e,s,n){var t;!((t=this._currentLink)===null||t===void 0)&&t.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),s.hover&&s.hover(n,s.text)}_fireUnderlineEvent(e,s){const n=e.range,t=this._bufferService.buffer.ydisp,r=this._createLinkUnderlineEvent(n.start.x-1,n.start.y-t-1,n.end.x,n.end.y-t-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(r)}_linkLeave(e,s,n){var t;!((t=this._currentLink)===null||t===void 0)&&t.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),s.leave&&s.leave(n,s.text)}_linkAtPosition(e,s){const n=e.range.start.y*this._bufferService.cols+e.range.start.x,t=e.range.end.y*this._bufferService.cols+e.range.end.x,r=s.y*this._bufferService.cols+s.x;return n<=r&&r<=t}_positionFromMouseEvent(e,s,n){const t=n.getCoords(e,s,this._bufferService.cols,this._bufferService.rows);if(t)return{x:t[0],y:t[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,s,n,t,r){return{x1:e,y1:s,x2:n,y2:t,cols:this._bufferService.cols,fg:r}}};c=h([u(0,d.IBufferService)],c),i.Linkifier2=c},9042:(B,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.tooMuchOutput=i.promptLabel=void 0,i.promptLabel="Terminal input",i.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(B,i,a){var h=this&&this.__decorate||function(c,e,s,n){var t,r=arguments.length,l=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,s):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(c,e,s,n);else for(var f=c.length-1;f>=0;f--)(t=c[f])&&(l=(r<3?t(l):r>3?t(e,s,l):t(e,s))||l);return r>3&&l&&Object.defineProperty(e,s,l),l},u=this&&this.__param||function(c,e){return function(s,n){e(s,n,c)}};Object.defineProperty(i,"__esModule",{value:!0}),i.OscLinkProvider=void 0;const d=a(511),_=a(2585);let g=class{constructor(c,e,s){this._bufferService=c,this._optionsService=e,this._oscLinkService=s}provideLinks(c,e){var s;const n=this._bufferService.buffer.lines.get(c-1);if(!n)return void e(void 0);const t=[],r=this._optionsService.rawOptions.linkHandler,l=new d.CellData,f=n.getTrimmedLength();let S=-1,o=-1,p=!1;for(let C=0;C<f;C++)if(o!==-1||n.hasContent(C)){if(n.loadCell(C,l),l.hasExtendedAttrs()&&l.extended.urlId){if(o===-1){o=C,S=l.extended.urlId;continue}p=l.extended.urlId!==S}else o!==-1&&(p=!0);if(p||o!==-1&&C===f-1){const y=(s=this._oscLinkService.getLinkData(S))===null||s===void 0?void 0:s.uri;if(y){const w={start:{x:o+1,y:c},end:{x:C+(p||C!==f-1?0:1),y:c}};let D=!1;if(!r?.allowNonHttpProtocols)try{const x=new URL(y);["http:","https:"].includes(x.protocol)||(D=!0)}catch{D=!0}D||t.push({text:y,range:w,activate:(x,I)=>r?r.activate(x,I,w):v(0,I),hover:(x,I)=>{var H;return(H=r?.hover)===null||H===void 0?void 0:H.call(r,x,I,w)},leave:(x,I)=>{var H;return(H=r?.leave)===null||H===void 0?void 0:H.call(r,x,I,w)}})}p=!1,l.hasExtendedAttrs()&&l.extended.urlId?(o=C,S=l.extended.urlId):(o=-1,S=-1)}}e(t)}};function v(c,e){if(confirm(`Do you want to navigate to ${e}?
4
4
 
@@ -1,2 +1,2 @@
1
- import{$ as be}from"./entry.8297d1ff.js";const K=Object.freeze({left:0,top:0,width:16,height:16}),H=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ue=Object.freeze({...K,...H}),ve=Object.freeze({...ue,body:"",hidden:!1}),Se=Object.freeze({width:null,height:null}),fe=Object.freeze({...Se,...H});function xe(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const i=((t.rotate||0)+(e.rotate||0))%4;return i&&(n.rotate=i),n}function Z(t,e){const n=xe(t,e);for(const i in ve)i in H?i in t&&!(i in n)&&(n[i]=H[i]):i in e?n[i]=e[i]:i in t&&(n[i]=t[i]);return n}function ke(t,e){const n=t.icons,i=t.aliases||Object.create(null),r=Object.create(null);function o(a){if(n[a])return r[a]=[];if(!(a in r)){r[a]=null;const c=i[a]&&i[a].parent,u=c&&o(c);u&&(r[a]=[c].concat(u))}return r[a]}return(e||Object.keys(n).concat(Object.keys(i))).forEach(o),r}function J(t,e,n){const i=t.icons,r=t.aliases||Object.create(null);let o={};function a(c){o=Z(i[c]||r[c],o)}return a(e),n.forEach(a),Z(t,o)}function $e(t,e){if(t.icons[e])return J(t,e,[]);const n=ke(t,[e])[e];return n?J(t,e,n):null}({...K});Object.keys(K).concat(["provider"]);const Ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ce=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Q(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const i=t.split(Ae);if(i===null||!i.length)return t;const r=[];let o=i.shift(),a=Ce.test(o);for(;;){if(a){const c=parseFloat(o);isNaN(c)?r.push(o):r.push(Math.ceil(c*e*n)/n)}else r.push(o);if(o=i.shift(),o===void 0)return r.join("");a=!a}}const X=t=>t==="unset"||t==="undefined"||t==="none";function je(t,e){const n={...ue,...t},i={...fe,...e},r={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,i].forEach(A=>{const g=[],m=A.hFlip,k=A.vFlip;let b=A.rotate;m?k?b+=2:(g.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),g.push("scale(-1 1)"),r.top=r.left=0):k&&(g.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),g.push("scale(1 -1)"),r.top=r.left=0);let p;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:p=r.height/2+r.top,g.unshift("rotate(90 "+p.toString()+" "+p.toString()+")");break;case 2:g.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:p=r.width/2+r.left,g.unshift("rotate(-90 "+p.toString()+" "+p.toString()+")");break}b%2===1&&(r.left!==r.top&&(p=r.left,r.left=r.top,r.top=p),r.width!==r.height&&(p=r.width,r.width=r.height,r.height=p)),g.length&&(o='<g transform="'+g.join(" ")+'">'+o+"</g>")});const a=i.width,c=i.height,u=r.width,f=r.height;let l,d;a===null?(d=c===null?"1em":c==="auto"?f:c,l=Q(d,u/f)):(l=a==="auto"?u:a,d=c===null?Q(l,f/u):c==="auto"?f:c);const w={},x=(A,g)=>{X(g)||(w[A]=g.toString())};return x("width",l),x("height",d),w.viewBox=r.left.toString()+" "+r.top.toString()+" "+u.toString()+" "+f.toString(),{attributes:w,body:o}}""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);function Oe(t){return t.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').trim()}function s(t,e){const n="rgb",i=e[0],r=e.length;r>1&&e[1],r>2&&e[2],r>3&&e[3]}s("silver",[192]);s("gray",[128]);s("white",[255]);s("maroon",[128,0,0]);s("red",[255,0,0]);s("purple",[128,0]);s("fuchsia",[255,0]);s("green",[0,128]);s("lime",[0,255]);s("olive",[128,128,0]);s("yellow",[255,255,0]);s("navy",[0,0,128]);s("blue",[0,0,255]);s("teal",[0,128,128]);s("aqua",[0,255,255]);s("aliceblue",[240,248,255]);s("antiquewhite",[250,235,215]);s("aqua",[0,255,255]);s("aquamarine",[127,255,212]);s("azure",[240,255,255]);s("beige",[245,245,220]);s("bisque",[255,228,196]);s("black",[0]);s("blanchedalmond",[255,235,205]);s("blue",[0,0,255]);s("blueviolet",[138,43,226]);s("brown",[165,42,42]);s("burlywood",[222,184,135]);s("cadetblue",[95,158,160]);s("chartreuse",[127,255,0]);s("chocolate",[210,105,30]);s("coral",[255,127,80]);s("cornflowerblue",[100,149,237]);s("cornsilk",[255,248,220]);s("crimson",[220,20,60]);s("cyan",[0,255,255]);s("darkblue",[0,0,139]);s("darkcyan",[0,139,139]);s("darkgoldenrod",[184,134,11]);s("darkgray",[169]);s("darkgreen",[0,100]);s("darkgrey",[169]);s("darkkhaki",[189,183,107]);s("darkmagenta",[139,0]);s("darkolivegreen",[85,107,47]);s("darkorange",[255,140,0]);s("darkorchid",[153,50,204]);s("darkred",[139,0,0]);s("darksalmon",[233,150,122]);s("darkseagreen",[143,188]);s("darkslateblue",[72,61,139]);s("darkslategray",[47,79,79]);s("darkslategrey",[47,79,79]);s("darkturquoise",[0,206,209]);s("darkviolet",[148,0,211]);s("deeppink",[255,20,147]);s("deepskyblue",[0,191,255]);s("dimgray",[105]);s("dimgrey",[105]);s("dodgerblue",[30,144,255]);s("firebrick",[178,34,34]);s("floralwhite",[255,250,240]);s("forestgreen",[34,139]);s("fuchsia",[255,0]);s("gainsboro",[220]);s("ghostwhite",[248,248,255]);s("gold",[255,215,0]);s("goldenrod",[218,165,32]);s("gray",[128]);s("green",[0,128]);s("greenyellow",[173,255,47]);s("grey",[128]);s("honeydew",[240,255]);s("hotpink",[255,105,180]);s("indianred",[205,92,92]);s("indigo",[75,0,130]);s("ivory",[255,255,240]);s("khaki",[240,230,140]);s("lavender",[230,230,250]);s("lavenderblush",[255,240,245]);s("lawngreen",[124,252,0]);s("lemonchiffon",[255,250,205]);s("lightblue",[173,216,230]);s("lightcoral",[240,128,128]);s("lightcyan",[224,255,255]);s("lightgoldenrodyellow",[250,250,210]);s("lightgray",[211]);s("lightgreen",[144,238]);s("lightgrey",[211]);s("lightpink",[255,182,193]);s("lightsalmon",[255,160,122]);s("lightseagreen",[32,178,170]);s("lightskyblue",[135,206,250]);s("lightslategray",[119,136,153]);s("lightslategrey",[119,136,153]);s("lightsteelblue",[176,196,222]);s("lightyellow",[255,255,224]);s("lime",[0,255]);s("limegreen",[50,205]);s("linen",[250,240,230]);s("magenta",[255,0]);s("maroon",[128,0,0]);s("mediumaquamarine",[102,205,170]);s("mediumblue",[0,0,205]);s("mediumorchid",[186,85,211]);s("mediumpurple",[147,112,219]);s("mediumseagreen",[60,179,113]);s("mediumslateblue",[123,104,238]);s("mediumspringgreen",[0,250,154]);s("mediumturquoise",[72,209,204]);s("mediumvioletred",[199,21,133]);s("midnightblue",[25,25,112]);s("mintcream",[245,255,250]);s("mistyrose",[255,228,225]);s("moccasin",[255,228,181]);s("navajowhite",[255,222,173]);s("navy",[0,0,128]);s("oldlace",[253,245,230]);s("olive",[128,128,0]);s("olivedrab",[107,142,35]);s("orange",[255,165,0]);s("orangered",[255,69,0]);s("orchid",[218,112,214]);s("palegoldenrod",[238,232,170]);s("palegreen",[152,251]);s("paleturquoise",[175,238,238]);s("palevioletred",[219,112,147]);s("papayawhip",[255,239,213]);s("peachpuff",[255,218,185]);s("peru",[205,133,63]);s("pink",[255,192,203]);s("plum",[221,160]);s("powderblue",[176,224,230]);s("purple",[128,0]);s("rebeccapurple",[102,51,153]);s("red",[255,0,0]);s("rosybrown",[188,143,143]);s("royalblue",[65,105,225]);s("saddlebrown",[139,69,19]);s("salmon",[250,128,114]);s("sandybrown",[244,164,96]);s("seagreen",[46,139,87]);s("seashell",[255,245,238]);s("sienna",[160,82,45]);s("silver",[192]);s("skyblue",[135,206,235]);s("slateblue",[106,90,205]);s("slategray",[112,128,144]);s("slategrey",[112,128,144]);s("snow",[255,250,250]);s("springgreen",[0,255,127]);s("steelblue",[70,130,180]);s("tan",[210,180,140]);s("teal",[0,128,128]);s("thistle",[216,191]);s("tomato",[255,99,71]);s("turquoise",[64,224,208]);s("violet",[238,130]);s("wheat",[245,222,179]);s("white",[255]);s("whitesmoke",[245]);s("yellow",[255,255,0]);s("yellowgreen",[154,205,50]);const Ee=/\swidth\s*=\s*["'](\w+)["']/,Me=/\sheight\s*=\s*["'](\w+)["']/,N=/<svg\s+/;function _e(t,e,n){const i=t.slice(0,t.indexOf(">")),r=(o,a)=>{const c=a.exec(i),u=c!=null,f=e[o];return!f&&!X(f)&&(typeof n=="number"?n>0&&(e[o]=`${n}em`):c&&(e[o]=c[1])),u};return[r("width",Ee),r("height",Me)]}async function he(t,e,n,i,r,o){const{scale:a,addXmlNs:c=!1}=i??{},{additionalProps:u={},iconCustomizer:f}=i?.customizations??{},l=await r?.()??{};await f?.(e,n,l),Object.keys(u).forEach(g=>{const m=u[g];m!=null&&(l[g]=m)}),o?.(l);const[d,w]=_e(t,l,a);c&&(!t.includes("xmlns=")&&!l.xmlns&&(l.xmlns="http://www.w3.org/2000/svg"),!t.includes("xmlns:xlink=")&&t.includes("xlink:")&&!l["xmlns:xlink"]&&(l["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const x=Object.keys(l).map(g=>g==="width"&&d||g==="height"&&w?null:`${g}="${l[g]}"`).filter(g=>g!=null);if(x.length&&(t=t.replace(N,`<svg ${x.join(" ")} `)),i){const{defaultStyle:g,defaultClass:m}=i;m&&!t.includes("class=")&&(t=t.replace(N,`<svg class="${m}" `)),g&&!t.includes("style=")&&(t=t.replace(N,`<svg style="${g}" `))}const A=i?.usedProps;return A&&(Object.keys(u).forEach(g=>{const m=l[g];m!=null&&(A[g]=m)}),typeof l.width<"u"&&l.width!==null&&(A.width=l.width),typeof l.height<"u"&&l.height!==null&&(A.height=l.height)),t}async function ee(t,e,n,i){let r;if(typeof t=="function")r=await t(n);else{const o=t[n];r=typeof o=="function"?await o():o}if(r){const o=r.indexOf("<svg");o>0&&(r=r.slice(o));const{transform:a}=i?.customizations??{};return r=typeof a=="function"?await a(r,e,n):r,r.startsWith("<svg")?await he(i?.customizations?.trimCustomSvg===!0?Oe(r):r,e,n,i,void 0):(console.warn(`Custom icon "${n}" in "${e}" is not a valid SVG`),r)}}async function de(t,e,n,i){let r;const{customize:o}=i?.customizations??{};for(const a of n)if(r=$e(t,a),r){let c={...fe};typeof o=="function"&&(c=o(c));const{attributes:{width:u,height:f,...l},body:d}=je(r,c),w=i?.scale;return await he(`<svg >${d}</svg>`,e,a,i,()=>({...l}),x=>{const A=(g,m)=>{const k=x[g];let b;if(!X(k)){if(k)return;typeof w=="number"?w&&(b=`${w}em`):b=m}b?x[g]=b:delete x[g]};A("width",u),A("height",f)})}}const pe=async(t,e,n)=>{const i=n?.customCollections?.[t];if(i)if(typeof i=="function"){const r=await i(e);if(r){if(typeof r=="string")return await ee(()=>r,t,e,n);if("icons"in r){const o=[e,e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.replace(/([a-z])(\d+)/g,"$1-$2")];return await de(r,t,o,n)}}}else return await ee(i,t,e,n)};var ze=["academicons","akar-icons","ant-design","arcticons","basil","bi","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","dashicons","devicon-line","devicon-original","devicon-plain","devicon","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","foundation","fxemoji","gala","game-icons","geo","gg","gis","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","line-md","logos","ls","lucide","majesticons","maki","map","material-symbols","mdi-light","mdi","medical-icon","memory","mi","mingcute","mono-icons","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","pajamas","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","teenyicons","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];function Le(t){const e=new Map;function n(i){if(ze.includes(i))return e.has(i)||e.set(i,be(`${t}@iconify-json/${i}/icons.json`)),e.get(i)}return async(i,r,o)=>{let a=await pe(i,r,o);if(a)return a;const c=await n(i);if(c){const u=[r,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r.replace(/([a-z])(\d+)/g,"$1-$2")];a=await de(c,i,u,o)}return a}}function Te(t){const e=t.length;let n=-1,i,r="";const o=t.charCodeAt(0);for(;++n<e;){if(i=t.charCodeAt(n),i===0){r+="�";continue}if(i===44){r+="\\,";continue}if(i>=1&&i<=31||i===127||n===0&&i>=48&&i<=57||n===1&&i>=48&&i<=57&&o===45){r+=`\\${i.toString(16)} `;continue}if(n===0&&e===1&&i===45){r+=`\\${t.charAt(n)}`;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){r+=t.charAt(n);continue}r+=`\\${t.charAt(n)}`}return r}const q=Te;function z(t=[]){return Array.isArray(t)?t:[t]}function R(t){return Array.from(new Set(t))}function O(t){return typeof t=="string"}function D(t){return O(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Ie(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>D(e)):[t]:[D(t)]}function Pe(t){return t.filter(([e,n],i)=>{if(e.startsWith("$$"))return!1;for(let r=i-1;r>=0;r--)if(t[r][0]===e&&t[r][1]===n)return!1;return!0})}function G(t){return t==null?"":Pe(t).map(([e,n])=>n!=null?`${e}:${n};`:void 0).filter(Boolean).join("")}function V(t){return t&&typeof t=="object"&&!Array.isArray(t)}function ge(t,e,n=!1){const i=t,r=e;if(Array.isArray(r))return n&&Array.isArray(r)?[...i,...r]:[...r];const o={...i};return V(i)&&V(r)&&Object.keys(r).forEach(a=>{V(i[a])&&V(r[a])||Array.isArray(i[a])&&Array.isArray(r[a])?o[a]=ge(i[a],r[a],n):Object.assign(o,{[a]:r[a]})}),o}function U(t){let e,n,i;if(Array.isArray(t)){for(n=Array(e=t.length);e--;)n[e]=(i=t[e])&&typeof i=="object"?U(i):i;return n}if(Object.prototype.toString.call(t)==="[object Object]"){n={};for(e in t)e==="__proto__"?Object.defineProperty(n,e,{value:U(t[e]),configurable:!0,enumerable:!0,writable:!0}):n[e]=(i=t[e])&&typeof i=="object"?U(i):i;return n}return t}function Re(t){return O(t[0])}function De(t){return O(t[0])}const te="$$shortcut-no-merge";function Fe(t){return typeof t=="function"?{match:t}:t}function re(t){return t.length===3}function Ve(t){return t!=null}function Be(){}class Ue{constructor(){this._map=new Map}get(e,n){const i=this._map.get(e);if(i)return i.get(n)}getFallback(e,n,i){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(n)||r.set(n,i),r.get(n)}set(e,n,i){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(n,i),this}has(e,n){return this._map.get(e)?.has(n)}delete(e,n){return this._map.get(e)?.delete(n)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([n,i])=>Array.from(i.entries()).map(([r,o])=>e(o,n,r)))}}const B={};function He(t=["-",":"]){const e=t.join("|");return B[e]||(B[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),B[e].lastIndex=0,B[e]}function Ne(t,e=["-",":"],n=5){const i=He(e);let r=!1,o=t.toString();const a=new Set;do{const c=o;o=o.replace(i,(u,f,l,d)=>e.includes(l)?(a.add(f+l),d.split(/\s/g).filter(Boolean).map(w=>w==="~"?f:w.replace(/^(!?)(.*)/,`$1${f}${l}$2`)).join(" ")):u),r=o!==c,n-=1}while(r&&n);return{prefixes:Array.from(a),expanded:o,hasChanged:r}}function qe(t,e=["-",":"],n=5){const{expanded:i}=Ne(t.toString(),e,n);return typeof t=="string"?i:t.length()?t.overwrite(0,t.length(),i):t}const ne=new Set;function me(t){ne.has(t)||(console.warn("[unocss]",t),ne.add(t))}const Ge=/[\\:]?[\s'"`;{}]+/g;function We(t){return[...new Set(t.split(Ge))]}const Ye={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return We(t)}};function Ke(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(n=>n(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(n=>n!==e)}}}const W="default",Y="preflights",Xe="shortcuts",Ze={[Y]:-100,[Xe]:-10,[W]:0};function ye(t){return z(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}const ie="_uno_resolved";function Je(t){if(ie in t)return t;t={...t},Object.defineProperty(t,ie,{value:!0,enumerable:!1});const e=t.shortcuts?ye(t.shortcuts):void 0;if(t.shortcuts=e,t.prefix||t.layer){const n=i=>{i[2]||(i[2]={});const r=i[2];r.prefix==null&&t.prefix&&(r.prefix=z(t.prefix)),r.layer==null&&t.layer&&(r.layer=t.layer)};e?.forEach(n),t.rules?.forEach(n)}return t}function we(t){const e=Je(t);if(!e.presets)return[e];const n=(e.presets||[]).flatMap(z).flatMap(we);return[e,...n]}function se(t={},e={}){const n=Object.assign({},e,t),i=R((n.presets||[]).flatMap(z).flatMap(we)),r=[...i.filter(h=>h.enforce==="pre"),...i.filter(h=>!h.enforce),...i.filter(h=>h.enforce==="post")],o=[...r,n],a=[...o].reverse(),c=Object.assign({},Ze,...o.map(h=>h.layers));function u(h){return R(o.flatMap(v=>z(v[h]||[])))}const f=u("extractors");let l=a.find(h=>h.extractorDefault!==void 0)?.extractorDefault;l===void 0&&(l=Ye),l&&!f.includes(l)&&f.unshift(l),f.sort((h,v)=>(h.order||0)-(v.order||0));const d=u("rules"),w={},x=d.length,A=d.map((h,v)=>{if(Re(h)){z(h[2]?.prefix||"").forEach(j=>{w[j+h[0]]=[v,h[1],h[2],h]});return}return[v,...h]}).filter(Boolean).reverse();let g=o.map(h=>h.theme?U(h.theme):{}).reduce((h,v)=>ge(h,v),{});const m=u("extendTheme");for(const h of m)g=h(g)||g;const k={templates:R(o.flatMap(h=>z(h.autocomplete?.templates))),extractors:o.flatMap(h=>z(h.autocomplete?.extractors)).sort((h,v)=>(h.order||0)-(v.order||0))};let b=u("separators");b.length||(b=[":","-"]);const p={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:h=>h,...n,presets:r,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:c,theme:g,rulesSize:x,rulesDynamic:A,rulesStaticMap:w,preprocess:u("preprocess"),postprocess:u("postprocess"),preflights:u("preflights"),autocomplete:k,variants:u("variants").map(Fe).sort((h,v)=>(h.order||0)-(v.order||0)),shortcuts:ye(u("shortcuts")).reverse(),extractors:f,safelist:u("safelist"),separators:b};for(const h of o)h?.configResolved?.(p);return p}const Qe="0.51.13";class et{constructor(e={},n={}){this.userConfig=e,this.defaults=n,this.version=Qe,this._cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.events=Ke(),this.config=se(e,n),this.events.emit("config",this.config)}setConfig(e,n){e&&(n&&(this.defaults=n),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=se(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,n,i=new Set){const r={original:e,code:e,id:n,extracted:i};for(const o of this.config.extractors){const a=await o.extract?.(r);if(a)for(const c of a)i.add(c)}return i}makeContext(e,n){const i={rawSelector:e,currentSelector:n[1],theme:this.config.theme,generator:this,variantHandlers:n[2],constructCSS:(...r)=>this.constructCustomCSS(i,...r),variantMatch:n};return i}async parseToken(e,n){if(this.blocked.has(e))return;const i=`${e}${n?` ${n}`:""}`;if(this._cache.has(i))return this._cache.get(i);let r=e;for(const f of this.config.preprocess)r=f(e);if(this.isBlocked(r)){this.blocked.add(e),this._cache.set(i,null);return}const o=await this.matchVariants(e,r);if(!o||this.isBlocked(o[1])){this.blocked.add(e),this._cache.set(i,null);return}const a=this.makeContext(e,[n||o[0],o[1],o[2],o[3]]);this.config.details&&(a.variants=[...o[3]]);const c=await this.expandShortcut(a.currentSelector,a),u=c?await this.stringifyShortcuts(a.variantMatch,a,c[0],c[1]):(await this.parseUtil(a.variantMatch,a))?.map(f=>this.stringifyUtil(f,a)).filter(Ve);if(u?.length)return this._cache.set(i,u),u;this._cache.set(i,null)}async generate(e,n={}){const{id:i,scope:r,preflights:o=!0,safelist:a=!0,minify:c=!1}=n,u=O(e)?await this.applyExtractors(e,i):Array.isArray(e)?new Set(e):e;a&&this.config.safelist.forEach(p=>u.add(p));const f=c?"":`
1
+ import{$ as be}from"./entry.5024288d.js";const K=Object.freeze({left:0,top:0,width:16,height:16}),H=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ue=Object.freeze({...K,...H}),ve=Object.freeze({...ue,body:"",hidden:!1}),Se=Object.freeze({width:null,height:null}),fe=Object.freeze({...Se,...H});function xe(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const i=((t.rotate||0)+(e.rotate||0))%4;return i&&(n.rotate=i),n}function Z(t,e){const n=xe(t,e);for(const i in ve)i in H?i in t&&!(i in n)&&(n[i]=H[i]):i in e?n[i]=e[i]:i in t&&(n[i]=t[i]);return n}function ke(t,e){const n=t.icons,i=t.aliases||Object.create(null),r=Object.create(null);function o(a){if(n[a])return r[a]=[];if(!(a in r)){r[a]=null;const c=i[a]&&i[a].parent,u=c&&o(c);u&&(r[a]=[c].concat(u))}return r[a]}return(e||Object.keys(n).concat(Object.keys(i))).forEach(o),r}function J(t,e,n){const i=t.icons,r=t.aliases||Object.create(null);let o={};function a(c){o=Z(i[c]||r[c],o)}return a(e),n.forEach(a),Z(t,o)}function $e(t,e){if(t.icons[e])return J(t,e,[]);const n=ke(t,[e])[e];return n?J(t,e,n):null}({...K});Object.keys(K).concat(["provider"]);const Ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ce=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Q(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const i=t.split(Ae);if(i===null||!i.length)return t;const r=[];let o=i.shift(),a=Ce.test(o);for(;;){if(a){const c=parseFloat(o);isNaN(c)?r.push(o):r.push(Math.ceil(c*e*n)/n)}else r.push(o);if(o=i.shift(),o===void 0)return r.join("");a=!a}}const X=t=>t==="unset"||t==="undefined"||t==="none";function je(t,e){const n={...ue,...t},i={...fe,...e},r={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,i].forEach(A=>{const g=[],m=A.hFlip,k=A.vFlip;let b=A.rotate;m?k?b+=2:(g.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),g.push("scale(-1 1)"),r.top=r.left=0):k&&(g.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),g.push("scale(1 -1)"),r.top=r.left=0);let p;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:p=r.height/2+r.top,g.unshift("rotate(90 "+p.toString()+" "+p.toString()+")");break;case 2:g.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:p=r.width/2+r.left,g.unshift("rotate(-90 "+p.toString()+" "+p.toString()+")");break}b%2===1&&(r.left!==r.top&&(p=r.left,r.left=r.top,r.top=p),r.width!==r.height&&(p=r.width,r.width=r.height,r.height=p)),g.length&&(o='<g transform="'+g.join(" ")+'">'+o+"</g>")});const a=i.width,c=i.height,u=r.width,f=r.height;let l,d;a===null?(d=c===null?"1em":c==="auto"?f:c,l=Q(d,u/f)):(l=a==="auto"?u:a,d=c===null?Q(l,f/u):c==="auto"?f:c);const w={},x=(A,g)=>{X(g)||(w[A]=g.toString())};return x("width",l),x("height",d),w.viewBox=r.left.toString()+" "+r.top.toString()+" "+u.toString()+" "+f.toString(),{attributes:w,body:o}}""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);function Oe(t){return t.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').trim()}function s(t,e){const n="rgb",i=e[0],r=e.length;r>1&&e[1],r>2&&e[2],r>3&&e[3]}s("silver",[192]);s("gray",[128]);s("white",[255]);s("maroon",[128,0,0]);s("red",[255,0,0]);s("purple",[128,0]);s("fuchsia",[255,0]);s("green",[0,128]);s("lime",[0,255]);s("olive",[128,128,0]);s("yellow",[255,255,0]);s("navy",[0,0,128]);s("blue",[0,0,255]);s("teal",[0,128,128]);s("aqua",[0,255,255]);s("aliceblue",[240,248,255]);s("antiquewhite",[250,235,215]);s("aqua",[0,255,255]);s("aquamarine",[127,255,212]);s("azure",[240,255,255]);s("beige",[245,245,220]);s("bisque",[255,228,196]);s("black",[0]);s("blanchedalmond",[255,235,205]);s("blue",[0,0,255]);s("blueviolet",[138,43,226]);s("brown",[165,42,42]);s("burlywood",[222,184,135]);s("cadetblue",[95,158,160]);s("chartreuse",[127,255,0]);s("chocolate",[210,105,30]);s("coral",[255,127,80]);s("cornflowerblue",[100,149,237]);s("cornsilk",[255,248,220]);s("crimson",[220,20,60]);s("cyan",[0,255,255]);s("darkblue",[0,0,139]);s("darkcyan",[0,139,139]);s("darkgoldenrod",[184,134,11]);s("darkgray",[169]);s("darkgreen",[0,100]);s("darkgrey",[169]);s("darkkhaki",[189,183,107]);s("darkmagenta",[139,0]);s("darkolivegreen",[85,107,47]);s("darkorange",[255,140,0]);s("darkorchid",[153,50,204]);s("darkred",[139,0,0]);s("darksalmon",[233,150,122]);s("darkseagreen",[143,188]);s("darkslateblue",[72,61,139]);s("darkslategray",[47,79,79]);s("darkslategrey",[47,79,79]);s("darkturquoise",[0,206,209]);s("darkviolet",[148,0,211]);s("deeppink",[255,20,147]);s("deepskyblue",[0,191,255]);s("dimgray",[105]);s("dimgrey",[105]);s("dodgerblue",[30,144,255]);s("firebrick",[178,34,34]);s("floralwhite",[255,250,240]);s("forestgreen",[34,139]);s("fuchsia",[255,0]);s("gainsboro",[220]);s("ghostwhite",[248,248,255]);s("gold",[255,215,0]);s("goldenrod",[218,165,32]);s("gray",[128]);s("green",[0,128]);s("greenyellow",[173,255,47]);s("grey",[128]);s("honeydew",[240,255]);s("hotpink",[255,105,180]);s("indianred",[205,92,92]);s("indigo",[75,0,130]);s("ivory",[255,255,240]);s("khaki",[240,230,140]);s("lavender",[230,230,250]);s("lavenderblush",[255,240,245]);s("lawngreen",[124,252,0]);s("lemonchiffon",[255,250,205]);s("lightblue",[173,216,230]);s("lightcoral",[240,128,128]);s("lightcyan",[224,255,255]);s("lightgoldenrodyellow",[250,250,210]);s("lightgray",[211]);s("lightgreen",[144,238]);s("lightgrey",[211]);s("lightpink",[255,182,193]);s("lightsalmon",[255,160,122]);s("lightseagreen",[32,178,170]);s("lightskyblue",[135,206,250]);s("lightslategray",[119,136,153]);s("lightslategrey",[119,136,153]);s("lightsteelblue",[176,196,222]);s("lightyellow",[255,255,224]);s("lime",[0,255]);s("limegreen",[50,205]);s("linen",[250,240,230]);s("magenta",[255,0]);s("maroon",[128,0,0]);s("mediumaquamarine",[102,205,170]);s("mediumblue",[0,0,205]);s("mediumorchid",[186,85,211]);s("mediumpurple",[147,112,219]);s("mediumseagreen",[60,179,113]);s("mediumslateblue",[123,104,238]);s("mediumspringgreen",[0,250,154]);s("mediumturquoise",[72,209,204]);s("mediumvioletred",[199,21,133]);s("midnightblue",[25,25,112]);s("mintcream",[245,255,250]);s("mistyrose",[255,228,225]);s("moccasin",[255,228,181]);s("navajowhite",[255,222,173]);s("navy",[0,0,128]);s("oldlace",[253,245,230]);s("olive",[128,128,0]);s("olivedrab",[107,142,35]);s("orange",[255,165,0]);s("orangered",[255,69,0]);s("orchid",[218,112,214]);s("palegoldenrod",[238,232,170]);s("palegreen",[152,251]);s("paleturquoise",[175,238,238]);s("palevioletred",[219,112,147]);s("papayawhip",[255,239,213]);s("peachpuff",[255,218,185]);s("peru",[205,133,63]);s("pink",[255,192,203]);s("plum",[221,160]);s("powderblue",[176,224,230]);s("purple",[128,0]);s("rebeccapurple",[102,51,153]);s("red",[255,0,0]);s("rosybrown",[188,143,143]);s("royalblue",[65,105,225]);s("saddlebrown",[139,69,19]);s("salmon",[250,128,114]);s("sandybrown",[244,164,96]);s("seagreen",[46,139,87]);s("seashell",[255,245,238]);s("sienna",[160,82,45]);s("silver",[192]);s("skyblue",[135,206,235]);s("slateblue",[106,90,205]);s("slategray",[112,128,144]);s("slategrey",[112,128,144]);s("snow",[255,250,250]);s("springgreen",[0,255,127]);s("steelblue",[70,130,180]);s("tan",[210,180,140]);s("teal",[0,128,128]);s("thistle",[216,191]);s("tomato",[255,99,71]);s("turquoise",[64,224,208]);s("violet",[238,130]);s("wheat",[245,222,179]);s("white",[255]);s("whitesmoke",[245]);s("yellow",[255,255,0]);s("yellowgreen",[154,205,50]);const Ee=/\swidth\s*=\s*["'](\w+)["']/,Me=/\sheight\s*=\s*["'](\w+)["']/,N=/<svg\s+/;function _e(t,e,n){const i=t.slice(0,t.indexOf(">")),r=(o,a)=>{const c=a.exec(i),u=c!=null,f=e[o];return!f&&!X(f)&&(typeof n=="number"?n>0&&(e[o]=`${n}em`):c&&(e[o]=c[1])),u};return[r("width",Ee),r("height",Me)]}async function he(t,e,n,i,r,o){const{scale:a,addXmlNs:c=!1}=i??{},{additionalProps:u={},iconCustomizer:f}=i?.customizations??{},l=await r?.()??{};await f?.(e,n,l),Object.keys(u).forEach(g=>{const m=u[g];m!=null&&(l[g]=m)}),o?.(l);const[d,w]=_e(t,l,a);c&&(!t.includes("xmlns=")&&!l.xmlns&&(l.xmlns="http://www.w3.org/2000/svg"),!t.includes("xmlns:xlink=")&&t.includes("xlink:")&&!l["xmlns:xlink"]&&(l["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const x=Object.keys(l).map(g=>g==="width"&&d||g==="height"&&w?null:`${g}="${l[g]}"`).filter(g=>g!=null);if(x.length&&(t=t.replace(N,`<svg ${x.join(" ")} `)),i){const{defaultStyle:g,defaultClass:m}=i;m&&!t.includes("class=")&&(t=t.replace(N,`<svg class="${m}" `)),g&&!t.includes("style=")&&(t=t.replace(N,`<svg style="${g}" `))}const A=i?.usedProps;return A&&(Object.keys(u).forEach(g=>{const m=l[g];m!=null&&(A[g]=m)}),typeof l.width<"u"&&l.width!==null&&(A.width=l.width),typeof l.height<"u"&&l.height!==null&&(A.height=l.height)),t}async function ee(t,e,n,i){let r;if(typeof t=="function")r=await t(n);else{const o=t[n];r=typeof o=="function"?await o():o}if(r){const o=r.indexOf("<svg");o>0&&(r=r.slice(o));const{transform:a}=i?.customizations??{};return r=typeof a=="function"?await a(r,e,n):r,r.startsWith("<svg")?await he(i?.customizations?.trimCustomSvg===!0?Oe(r):r,e,n,i,void 0):(console.warn(`Custom icon "${n}" in "${e}" is not a valid SVG`),r)}}async function de(t,e,n,i){let r;const{customize:o}=i?.customizations??{};for(const a of n)if(r=$e(t,a),r){let c={...fe};typeof o=="function"&&(c=o(c));const{attributes:{width:u,height:f,...l},body:d}=je(r,c),w=i?.scale;return await he(`<svg >${d}</svg>`,e,a,i,()=>({...l}),x=>{const A=(g,m)=>{const k=x[g];let b;if(!X(k)){if(k)return;typeof w=="number"?w&&(b=`${w}em`):b=m}b?x[g]=b:delete x[g]};A("width",u),A("height",f)})}}const pe=async(t,e,n)=>{const i=n?.customCollections?.[t];if(i)if(typeof i=="function"){const r=await i(e);if(r){if(typeof r=="string")return await ee(()=>r,t,e,n);if("icons"in r){const o=[e,e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.replace(/([a-z])(\d+)/g,"$1-$2")];return await de(r,t,o,n)}}}else return await ee(i,t,e,n)};var ze=["academicons","akar-icons","ant-design","arcticons","basil","bi","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","dashicons","devicon-line","devicon-original","devicon-plain","devicon","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","foundation","fxemoji","gala","game-icons","geo","gg","gis","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","line-md","logos","ls","lucide","majesticons","maki","map","material-symbols","mdi-light","mdi","medical-icon","memory","mi","mingcute","mono-icons","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","pajamas","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","teenyicons","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];function Le(t){const e=new Map;function n(i){if(ze.includes(i))return e.has(i)||e.set(i,be(`${t}@iconify-json/${i}/icons.json`)),e.get(i)}return async(i,r,o)=>{let a=await pe(i,r,o);if(a)return a;const c=await n(i);if(c){const u=[r,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r.replace(/([a-z])(\d+)/g,"$1-$2")];a=await de(c,i,u,o)}return a}}function Te(t){const e=t.length;let n=-1,i,r="";const o=t.charCodeAt(0);for(;++n<e;){if(i=t.charCodeAt(n),i===0){r+="�";continue}if(i===44){r+="\\,";continue}if(i>=1&&i<=31||i===127||n===0&&i>=48&&i<=57||n===1&&i>=48&&i<=57&&o===45){r+=`\\${i.toString(16)} `;continue}if(n===0&&e===1&&i===45){r+=`\\${t.charAt(n)}`;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){r+=t.charAt(n);continue}r+=`\\${t.charAt(n)}`}return r}const q=Te;function z(t=[]){return Array.isArray(t)?t:[t]}function R(t){return Array.from(new Set(t))}function O(t){return typeof t=="string"}function D(t){return O(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Ie(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>D(e)):[t]:[D(t)]}function Pe(t){return t.filter(([e,n],i)=>{if(e.startsWith("$$"))return!1;for(let r=i-1;r>=0;r--)if(t[r][0]===e&&t[r][1]===n)return!1;return!0})}function G(t){return t==null?"":Pe(t).map(([e,n])=>n!=null?`${e}:${n};`:void 0).filter(Boolean).join("")}function V(t){return t&&typeof t=="object"&&!Array.isArray(t)}function ge(t,e,n=!1){const i=t,r=e;if(Array.isArray(r))return n&&Array.isArray(r)?[...i,...r]:[...r];const o={...i};return V(i)&&V(r)&&Object.keys(r).forEach(a=>{V(i[a])&&V(r[a])||Array.isArray(i[a])&&Array.isArray(r[a])?o[a]=ge(i[a],r[a],n):Object.assign(o,{[a]:r[a]})}),o}function U(t){let e,n,i;if(Array.isArray(t)){for(n=Array(e=t.length);e--;)n[e]=(i=t[e])&&typeof i=="object"?U(i):i;return n}if(Object.prototype.toString.call(t)==="[object Object]"){n={};for(e in t)e==="__proto__"?Object.defineProperty(n,e,{value:U(t[e]),configurable:!0,enumerable:!0,writable:!0}):n[e]=(i=t[e])&&typeof i=="object"?U(i):i;return n}return t}function Re(t){return O(t[0])}function De(t){return O(t[0])}const te="$$shortcut-no-merge";function Fe(t){return typeof t=="function"?{match:t}:t}function re(t){return t.length===3}function Ve(t){return t!=null}function Be(){}class Ue{constructor(){this._map=new Map}get(e,n){const i=this._map.get(e);if(i)return i.get(n)}getFallback(e,n,i){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(n)||r.set(n,i),r.get(n)}set(e,n,i){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(n,i),this}has(e,n){return this._map.get(e)?.has(n)}delete(e,n){return this._map.get(e)?.delete(n)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([n,i])=>Array.from(i.entries()).map(([r,o])=>e(o,n,r)))}}const B={};function He(t=["-",":"]){const e=t.join("|");return B[e]||(B[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),B[e].lastIndex=0,B[e]}function Ne(t,e=["-",":"],n=5){const i=He(e);let r=!1,o=t.toString();const a=new Set;do{const c=o;o=o.replace(i,(u,f,l,d)=>e.includes(l)?(a.add(f+l),d.split(/\s/g).filter(Boolean).map(w=>w==="~"?f:w.replace(/^(!?)(.*)/,`$1${f}${l}$2`)).join(" ")):u),r=o!==c,n-=1}while(r&&n);return{prefixes:Array.from(a),expanded:o,hasChanged:r}}function qe(t,e=["-",":"],n=5){const{expanded:i}=Ne(t.toString(),e,n);return typeof t=="string"?i:t.length()?t.overwrite(0,t.length(),i):t}const ne=new Set;function me(t){ne.has(t)||(console.warn("[unocss]",t),ne.add(t))}const Ge=/[\\:]?[\s'"`;{}]+/g;function We(t){return[...new Set(t.split(Ge))]}const Ye={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return We(t)}};function Ke(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(n=>n(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(n=>n!==e)}}}const W="default",Y="preflights",Xe="shortcuts",Ze={[Y]:-100,[Xe]:-10,[W]:0};function ye(t){return z(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}const ie="_uno_resolved";function Je(t){if(ie in t)return t;t={...t},Object.defineProperty(t,ie,{value:!0,enumerable:!1});const e=t.shortcuts?ye(t.shortcuts):void 0;if(t.shortcuts=e,t.prefix||t.layer){const n=i=>{i[2]||(i[2]={});const r=i[2];r.prefix==null&&t.prefix&&(r.prefix=z(t.prefix)),r.layer==null&&t.layer&&(r.layer=t.layer)};e?.forEach(n),t.rules?.forEach(n)}return t}function we(t){const e=Je(t);if(!e.presets)return[e];const n=(e.presets||[]).flatMap(z).flatMap(we);return[e,...n]}function se(t={},e={}){const n=Object.assign({},e,t),i=R((n.presets||[]).flatMap(z).flatMap(we)),r=[...i.filter(h=>h.enforce==="pre"),...i.filter(h=>!h.enforce),...i.filter(h=>h.enforce==="post")],o=[...r,n],a=[...o].reverse(),c=Object.assign({},Ze,...o.map(h=>h.layers));function u(h){return R(o.flatMap(v=>z(v[h]||[])))}const f=u("extractors");let l=a.find(h=>h.extractorDefault!==void 0)?.extractorDefault;l===void 0&&(l=Ye),l&&!f.includes(l)&&f.unshift(l),f.sort((h,v)=>(h.order||0)-(v.order||0));const d=u("rules"),w={},x=d.length,A=d.map((h,v)=>{if(Re(h)){z(h[2]?.prefix||"").forEach(j=>{w[j+h[0]]=[v,h[1],h[2],h]});return}return[v,...h]}).filter(Boolean).reverse();let g=o.map(h=>h.theme?U(h.theme):{}).reduce((h,v)=>ge(h,v),{});const m=u("extendTheme");for(const h of m)g=h(g)||g;const k={templates:R(o.flatMap(h=>z(h.autocomplete?.templates))),extractors:o.flatMap(h=>z(h.autocomplete?.extractors)).sort((h,v)=>(h.order||0)-(v.order||0))};let b=u("separators");b.length||(b=[":","-"]);const p={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:h=>h,...n,presets:r,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:c,theme:g,rulesSize:x,rulesDynamic:A,rulesStaticMap:w,preprocess:u("preprocess"),postprocess:u("postprocess"),preflights:u("preflights"),autocomplete:k,variants:u("variants").map(Fe).sort((h,v)=>(h.order||0)-(v.order||0)),shortcuts:ye(u("shortcuts")).reverse(),extractors:f,safelist:u("safelist"),separators:b};for(const h of o)h?.configResolved?.(p);return p}const Qe="0.51.13";class et{constructor(e={},n={}){this.userConfig=e,this.defaults=n,this.version=Qe,this._cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.events=Ke(),this.config=se(e,n),this.events.emit("config",this.config)}setConfig(e,n){e&&(n&&(this.defaults=n),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=se(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,n,i=new Set){const r={original:e,code:e,id:n,extracted:i};for(const o of this.config.extractors){const a=await o.extract?.(r);if(a)for(const c of a)i.add(c)}return i}makeContext(e,n){const i={rawSelector:e,currentSelector:n[1],theme:this.config.theme,generator:this,variantHandlers:n[2],constructCSS:(...r)=>this.constructCustomCSS(i,...r),variantMatch:n};return i}async parseToken(e,n){if(this.blocked.has(e))return;const i=`${e}${n?` ${n}`:""}`;if(this._cache.has(i))return this._cache.get(i);let r=e;for(const f of this.config.preprocess)r=f(e);if(this.isBlocked(r)){this.blocked.add(e),this._cache.set(i,null);return}const o=await this.matchVariants(e,r);if(!o||this.isBlocked(o[1])){this.blocked.add(e),this._cache.set(i,null);return}const a=this.makeContext(e,[n||o[0],o[1],o[2],o[3]]);this.config.details&&(a.variants=[...o[3]]);const c=await this.expandShortcut(a.currentSelector,a),u=c?await this.stringifyShortcuts(a.variantMatch,a,c[0],c[1]):(await this.parseUtil(a.variantMatch,a))?.map(f=>this.stringifyUtil(f,a)).filter(Ve);if(u?.length)return this._cache.set(i,u),u;this._cache.set(i,null)}async generate(e,n={}){const{id:i,scope:r,preflights:o=!0,safelist:a=!0,minify:c=!1}=n,u=O(e)?await this.applyExtractors(e,i):Array.isArray(e)?new Set(e):e;a&&this.config.safelist.forEach(p=>u.add(p));const f=c?"":`
2
2
  `,l=new Set([W]),d=new Set,w=new Map;let x={};const A=Array.from(u).map(async p=>{if(d.has(p))return;const h=await this.parseToken(p);if(h!=null){d.add(p);for(const v of h){const C=v[3]||"",j=v[4]?.layer;w.has(C)||w.set(C,[]),w.get(C).push(v),j&&l.add(j)}}});await Promise.all(A),await(async()=>{if(!o)return;const p={generator:this,theme:this.config.theme},h=new Set([]);this.config.preflights.forEach(({layer:v=Y})=>{l.add(v),h.add(v)}),x=Object.fromEntries(await Promise.all(Array.from(h).map(async v=>{const j=(await Promise.all(this.config.preflights.filter(M=>(M.layer||Y)===v).map(async M=>await M.getCSS(p)))).filter(Boolean).join(f);return[v,j]})))})();const g=this.config.sortLayers(Array.from(l).sort((p,h)=>(this.config.layers[p]??0)-(this.config.layers[h]??0)||p.localeCompare(h))),m={},k=p=>{if(m[p])return m[p];let h=Array.from(w).sort((C,j)=>(this.parentOrders.get(C[0])??0)-(this.parentOrders.get(j[0])??0)||C[0]?.localeCompare(j[0]||"")||0).map(([C,j])=>{const M=j.length,P=j.filter(y=>(y[4]?.layer||W)===p).sort((y,$)=>y[0]-$[0]||(y[4]?.sort||0)-($[4]?.sort||0)||y[5]?.currentSelector?.localeCompare($[5]?.currentSelector??"")||y[1]?.localeCompare($[1]||"")||y[2]?.localeCompare($[2]||"")||0).map(([,y,$,,E,,_])=>[[[(y&&it(y,r))??"",E?.sort??0]],$,!!(_??E?.noMerge)]);if(!P.length)return;const F=P.reverse().map(([y,$,E],_)=>{if(!E&&this.config.mergeSelectors)for(let I=_+1;I<M;I++){const L=P[I];if(L&&!L[2]&&(y&&L[0]||y==null&&L[0]==null)&&L[1]===$)return y&&L[0]&&L[0].push(...y),null}const T=y?R(y.sort((I,L)=>I[1]-L[1]||I[0]?.localeCompare(L[0]||"")||0).map(I=>I[0]).filter(Boolean)):[];return T.length?`${T.join(`,${f}`)}{${$}}`:$}).filter(Boolean).reverse().join(f);if(!C)return F;const S=C.split(" $$ ");return`${S.join("{")}{${f}${F}${f}}${S.map(y=>"").join("}")}`}).filter(Boolean).join(f);o&&(h=[x[p],h].filter(Boolean).join(f));const v=c?"":`/* layer: ${p} */${f}`;return m[p]=h?v+h:""},b=(p=g,h)=>p.filter(v=>!h?.includes(v)).map(v=>k(v)||"").filter(Boolean).join(f);return{get css(){return b()},layers:g,matched:d,getLayers:b,getLayer:k}}async matchVariants(e,n){const i=new Set,r=[];let o=n||e,a=!1;const c={rawSelector:e,theme:this.config.theme,generator:this};for(;;){a=!1;for(const u of this.config.variants){if(!u.multiPass&&i.has(u))continue;let f=await u.match(o,c);if(f){O(f)&&(f={matcher:f}),o=f.matcher,r.unshift(f),i.add(u),a=!0;break}}if(!a)break;if(r.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,o,r,i]}applyVariants(e,n=e[4],i=e[1]){const o=n.slice().sort((f,l)=>(f.order||0)-(l.order||0)).reduceRight((f,l)=>d=>{const w=l.body?.(d.entries)||d.entries,x=Array.isArray(l.parent)?l.parent:[l.parent,void 0];return(l.handle??ot)({...d,entries:w,selector:l.selector?.(d.selector,w)||d.selector,parent:x[0]||d.parent,parentOrder:x[1]||d.parentOrder,layer:l.layer||d.layer,sort:l.sort||d.sort},f)},f=>f)({prefix:"",selector:st(i),pseudo:"",entries:e[2]}),{parent:a,parentOrder:c}=o;a!=null&&c!=null&&this.parentOrders.set(a,c);const u={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:a,layer:o.layer,sort:o.sort,noMerge:o.noMerge};for(const f of this.config.postprocess)f(u);return u}constructCustomCSS(e,n,i){const r=D(n);if(O(r))return r;const{selector:o,entries:a,parent:c}=this.applyVariants([0,i||e.rawSelector,r,void 0,e.variantHandlers]),u=`${o}{${G(a)}}`;return c?`${c}{${u}}`:u}async parseUtil(e,n,i=!1,r){const[o,a,c]=O(e)?await this.matchVariants(e):e;this.config.details&&(n.rules=n.rules??[]);const u=this.config.rulesStaticMap[a];if(u&&u[1]&&(i||!u[2]?.internal)){this.config.details&&n.rules.push(u[3]);const l=u[0],d=D(u[1]),w=u[2];return O(d)?[[l,d,w]]:[[l,o,d,w,c]]}n.variantHandlers=c;const{rulesDynamic:f}=this.config;for(const[l,d,w,x]of f){if(x?.internal&&!i)continue;let A=a;if(x?.prefix){const b=z(x.prefix);if(r){const p=z(r);if(!b.some(h=>p.includes(h)))continue}else{const p=b.find(h=>a.startsWith(h));if(p==null)continue;A=a.slice(p.length)}}const g=A.match(d);if(!g)continue;const m=await w(g,n);if(!m)continue;this.config.details&&n.rules.push([d,w,x]);const k=Ie(m).filter(b=>b.length);if(k.length)return k.map(b=>O(b)?[l,b,x]:[l,o,b,x,c])}}stringifyUtil(e,n){if(!e)return;if(re(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?n:void 0,void 0];const{selector:i,entries:r,parent:o,layer:a,sort:c,noMerge:u}=this.applyVariants(e),f=G(r);if(!f)return;const{layer:l,sort:d,...w}=e[3]??{},x={...w,layer:a??l,sort:c??d};return[e[0],i,f,o,x,this.config.details?n:void 0,u]}async expandShortcut(e,n,i=5){if(i===0)return;const r=this.config.details?c=>{n.shortcuts=n.shortcuts??[],n.shortcuts.push(c)}:Be;let o,a;for(const c of this.config.shortcuts){let u=e;if(c[2]?.prefix){const l=z(c[2].prefix).find(d=>e.startsWith(d));if(l==null)continue;u=e.slice(l.length)}if(De(c)){if(c[0]===u){o=o||c[2],a=c[1],r(c);break}}else{const f=u.match(c[0]);if(f&&(a=c[1](f,n)),a){o=o||c[2],r(c);break}}}if(O(a)&&(a=qe(a.trim()).split(/\s+/g)),!a){const[c,u]=O(e)?await this.matchVariants(e):e;if(c!==u){const f=await this.expandShortcut(u,n,i-1);f&&(a=f[0].map(l=>O(l)?c.replace(u,l):l))}}if(a)return[(await Promise.all(a.map(async c=>(O(c)?(await this.expandShortcut(c,n,i-1))?.[0]:void 0)||[c]))).flat(1).filter(Boolean),o]}async stringifyShortcuts(e,n,i,r={layer:this.config.shortcutsLayer}){const o=new Ue,a=(await Promise.all(R(i).map(async l=>{const d=O(l)?await this.parseUtil(l,n,!0,r.prefix):[[1/0,"{inline}",D(l),void 0,[]]];return d||me(`unmatched utility "${l}" in shortcut "${e[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((l,d)=>l[0]-d[0]),[c,,u]=e,f=[];for(const l of a){if(re(l)){f.push([l[0],void 0,l[1],void 0,l[2],n,void 0]);continue}const{selector:d,entries:w,parent:x,sort:A,noMerge:g}=this.applyVariants(l,[...l[4],...u],c);o.getFallback(d,x,[[],l[0]])[0].push([w,!!(g??l[3]?.noMerge),A??0])}return f.concat(o.map(([l,d],w,x)=>{const A=(m,k,b)=>{const p=Math.max(...b.map(v=>v[1])),h=b.map(v=>v[0]);return(m?[h.flat(1)]:h).map(v=>{const C=G(v);if(C)return[d,w,C,x,{...r,noMerge:k,sort:p},n,void 0]})};return[[l.filter(([,m])=>m).map(([m,,k])=>[m,k]),!0],[l.filter(([,m])=>!m).map(([m,,k])=>[m,k]),!1]].map(([m,k])=>[...A(!1,k,m.filter(([b])=>b.some(p=>p[0]===te))),...A(!0,k,m.filter(([b])=>b.every(p=>p[0]!==te)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(n=>O(n)?n===e:n.test(e))}}function tt(t,e){return new et(t,e)}const rt=/\s\$\$\s+/g;function nt(t){return t.match(/\s\$\$\s/)}function it(t,e){return nt(t)?t.replace(rt,e?` ${e} `:" "):e?`${e} ${t}`:t}const oe=/^\[(.+?)(~?=)"(.*)"\]$/;function st(t){return oe.test(t)?t.replace(oe,(e,n,i,r)=>`[${q(n)}${i}"${q(r)}"]`):`.${q(t)}`}function ot(t,e){return e(t)}function at(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ct(t){let e=t.startsWith("<svg>")?t.replace("<svg>","<svg >"):t;return!e.includes(" xmlns:xlink=")&&e.includes(" xlink:")&&(e=e.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),e.includes(" xmlns=")||(e=e.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),at(e)}const lt=3;function ut(t){return function(n={}){const{scale:i=1,mode:r="auto",prefix:o="i-",warn:a=!1,collections:c,extraProperties:u={},customizations:f={},autoInstall:l=!1,layer:d="icons",unit:w}=n,x={addXmlNs:!0,scale:i,customCollections:c,autoInstall:l,warn:void 0,customizations:{...f,additionalProps:{...u},trimCustomSvg:!0,async iconCustomizer(g,m,k){await f.iconCustomizer?.(g,m,k),w&&(k.width||(k.width=`${i}${w}`),k.height||(k.height=`${i}${w}`))}}};let A;return{name:"@unocss/preset-icons",enforce:"pre",options:n,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async([g,m,k=r])=>{let b="",p="",h;A=A||await t(n);const v={};if(m.includes(":"))[b,p]=m.split(":"),h=await A(b,p,{...x,usedProps:v});else{const j=m.split(/-/g);for(let M=lt;M>=1&&(b=j.slice(0,M).join("-"),p=j.slice(M).join("-"),h=await A(b,p,{...x,usedProps:v}),!h);M--);}if(!h){a&&me(`failed to load icon "${g}"`);return}const C=`url("data:image/svg+xml;utf8,${ct(h)}")`;return k==="auto"&&(k=h.includes("currentColor")?"mask":"bg"),k==="mask"?{"--un-icon":C,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...v}:{background:`${C} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...v}},{layer:d,prefix:o}]]}}}const ft=ut(async t=>{const{cdn:e}=t;return e?Le(e):pe});function ht(t){return t.replace(/-(\w)/g,(e,n)=>n?n.toUpperCase():"")}function ae(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ce(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var le=["Webkit","Moz","ms"];function dt(t){const e={};function n(i){const r=e[i];if(r)return r;let o=ht(i);if(o!=="filter"&&o in t)return e[i]=ce(o);o=ae(o);for(let a=0;a<le.length;a++){const c=`${le[a]}${o}`;if(c in t)return e[i]=ce(ae(c))}return i}return({entries:i})=>i.forEach(r=>{r[0].startsWith("--")||(r[0]=n(r[0]))})}function pt(t){return t.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")}function gt(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const e=window,n=window.document,i=()=>n.documentElement,r=e.__unocss||{},o=Object.assign({},t,r.runtime),a=o.defaults||{},c=o.cloakAttribute??"un-cloak";o.autoPrefix&&(a.postprocess=z(a.postprocess)).unshift(dt(n.createElement("div").style)),o.configResolved?.(r,a);const u=tt(r,a),f=new Map;let l=!0,d=new Set,w,x,A=[];const g=()=>new Promise(S=>{A.push(S),x!=null&&clearTimeout(x),x=setTimeout(()=>b().then(()=>{const y=A;A=[],y.forEach($=>$())}),0)});function m(S){if(S.nodeType!==1)return;const y=S;y.hasAttribute(c)&&y.removeAttribute(c),y.querySelectorAll(`[${c}]`).forEach($=>{$.removeAttribute(c)})}function k(S,y){let $=f.get(S);if(!$)if($=n.createElement("style"),$.setAttribute("data-unocss-runtime-layer",S),f.set(S,$),y==null)i().prepend($);else{const E=k(y),_=E.parentNode;_?_.insertBefore($,E.nextSibling):i().prepend($)}return $}async function b(){const S=await u.generate(d);return S.layers.reduce((y,$)=>(k($,y).innerHTML=S.getLayer($)??"",$),void 0),d=S.matched,{...S,getStyleElement:y=>f.get(y),getStyleElements:()=>f}}async function p(S){const y=d.size;await u.applyExtractors(S,void 0,d),y!==d.size&&await g()}async function h(){const S=n.body,y=S&&S.outerHTML;y&&(await p(`${y} ${pt(y)}`),m(i()),m(S))}const v=new MutationObserver(S=>{l||S.forEach(async y=>{if(y.target.nodeType!==1)return;const $=y.target;for(const E of f)if($===E[1])return;if(y.type==="childList")y.addedNodes.forEach(async E=>{if(E.nodeType!==1)return;const _=E;w&&!w(_)||(await p(_.outerHTML),m(_))});else{if(w&&!w($))return;if(y.attributeName!==c){const E=Array.from($.attributes).map(T=>T.value?`${T.name}="${T.value}"`:T.name).join(" "),_=`<${$.tagName.toLowerCase()} ${E}>`;await p(_)}$.hasAttribute(c)&&$.removeAttribute(c)}})});let C=!1;function j(){if(C)return;const S=i()||n.body;S&&(v.observe(S,{childList:!0,subtree:!0,attributes:!0}),C=!0)}function M(){o.bypassDefined&&mt(u.blocked),h(),j()}function P(){n.readyState==="loading"?e.addEventListener("DOMContentLoaded",M):M()}const F=e.__unocss_runtime=e.__unocss_runtime={version:u.version,uno:u,async extract(S){O(S)||(S.forEach(y=>d.add(y)),S=""),await p(S)},extractAll:h,inspect(S){w=S},toggleObserver(S){S===void 0?l=!l:l=!!S,!C&&!l&&P()},update:b};o.ready?.(F)!==!1&&(l=!1,P())}function mt(t=new Set){for(let e=0;e<document.styleSheets.length;e++){const n=document.styleSheets[e];let i;try{if(i=n.cssRules||n.rules,!i)continue;Array.from(i).flatMap(r=>r.selectorText?.split(/,/g)||[]).forEach(r=>{r&&(r=r.trim(),r.startsWith(".")&&(r=r.slice(1)),t.add(r))})}catch{continue}}return t}gt({defaults:{presets:[ft({prefix:["i-",""],collections:{},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]},bypassDefined:!0});
@@ -1 +1 @@
1
- import{_ as B}from"./Navbar.vue.1175e5b5.js";import{o as c,h as u,f as _,a as R,r as v,b5 as S,p as d,E,ag as I,i as s,w as i,F as m,u as l,G as L,q as P,s as U,l as j,t as h,c as q,H as G,a3 as H}from"./entry.8297d1ff.js";import{_ as W}from"./NCodeBlock.vue.7df96def.js";import{_ as z}from"./NPanelGrids.f0b55b40.js";import{_ as T}from"./PanelLeftRight.vue.b6fba8cf.js";import{_ as A}from"./HelpFab.vue.82dbe71b.js";import{F as J}from"./fuse.esm.88e2763d.js";import"./NTextInput.vue.3d7af8ee.js";import"./client.64d509dc.js";import"./NIconButton.vue.61b6fdb9.js";const K={class:"markdown-body"},M=_("h1",null,"Virtual Files",-1),O=_("p",null,"Virtual files are generated on the fly to support the conventions of the framework, and to provide a better developer experience.",-1),Q=[M,O],X={__name:"virtual-files",setup(x,{expose:o}){return o({frontmatter:{}}),(p,r)=>(c(),u("div",K,Q))}},Y=_("div",{"x-divider":""},null,-1),Z={key:0,"h-full":"","of-hidden":"",flex:"~ col"},ee={border:"b base","flex-none":"",px4:"",py2:"","text-sm":"",op75:""},te=_("span",{op75:""},"Select a file to start",-1),de=R({__name:"virtual-files",setup(x){const o=v(""),n=S(),p=d(()=>E().query?.id),r=v();I(()=>{if(!p.value)return;const e=`/_vfs.json/${encodeURIComponent(p.value)}`;fetch(e).then(t=>t.json()).then(t=>r.value=t.current)});function y(e){if(n.value?.rootDir)return e.startsWith(n.value?.rootDir)?e.slice(n.value.rootDir.length):e}const f=d(()=>n.value?n.value.entries.filter(e=>!e.id.startsWith(`${n.value?.rootDir||""}/.nuxt/`)).sort((e,t)=>e.id.localeCompare(t.id)):[]),g=d(()=>new J(f.value,{keys:["id","path"]})),k=d(()=>o.value?g.value.search(o.value).map(e=>e.item):f.value);return(e,t)=>{const b=B,$=G,F=W,C=H,N=z,V=T,w=X,D=A;return c(),u(m,null,[s(V,{class:"virtual-files","storage-key":"tab-virtual-files"},{left:i(()=>[s(b,{search:l(o),"onUpdate:search":t[0]||(t[0]=a=>L(o)?o.value=a:null),"no-padding":"",p3:""},null,8,["search"]),(c(!0),u(m,null,P(l(k),a=>(c(),u(m,{key:a.id},[s($,{block:"","select-none":"",truncate:"",px2:"",py1:"","font-mono":"","text-sm":"",to:`/modules/virtual-files?id=${encodeURIComponent(a.id)}`,class:U(a.id===l(r)?.id?"text-primary n-bg-active":"text-secondary hover:n-bg-hover")},{default:i(()=>[j(h(y(a.id)),1)]),_:2},1032,["to","class"]),Y],64))),128))]),right:i(()=>[l(r)?.content?(c(),u("div",Z,[_("div",ee,[_("code",null,h(l(r).id),1)]),s(F,{"h-full":"","of-auto":"","text-sm":"",code:l(r).content,lang:"typescript"},null,8,["code"])])):(c(),q(N,{key:1},{default:i(()=>[s(C,{px6:"",py2:""},{default:i(()=>[te]),_:1})]),_:1}))]),_:1}),s(D,null,{default:i(()=>[s(w)]),_:1})],64)}}});export{de as default};
1
+ import{_ as B}from"./Navbar.vue.f2b7b652.js";import{o as c,h as u,f as _,a as R,r as v,b5 as S,p as d,E,ag as I,i as s,w as i,F as m,u as l,G as L,q as P,s as U,l as j,t as h,c as q,H as G,a3 as H}from"./entry.5024288d.js";import{_ as W}from"./NCodeBlock.vue.d5603a1f.js";import{_ as z}from"./NPanelGrids.7b5efdc5.js";import{_ as T}from"./PanelLeftRight.vue.8eda640c.js";import{_ as A}from"./HelpFab.vue.748cc95d.js";import{F as J}from"./fuse.esm.88e2763d.js";import"./NTextInput.vue.fc99730b.js";import"./client.b1955e54.js";import"./NIconButton.vue.d0a9a760.js";const K={class:"markdown-body"},M=_("h1",null,"Virtual Files",-1),O=_("p",null,"Virtual files are generated on the fly to support the conventions of the framework, and to provide a better developer experience.",-1),Q=[M,O],X={__name:"virtual-files",setup(x,{expose:o}){return o({frontmatter:{}}),(p,r)=>(c(),u("div",K,Q))}},Y=_("div",{"x-divider":""},null,-1),Z={key:0,"h-full":"","of-hidden":"",flex:"~ col"},ee={border:"b base","flex-none":"",px4:"",py2:"","text-sm":"",op75:""},te=_("span",{op75:""},"Select a file to start",-1),de=R({__name:"virtual-files",setup(x){const o=v(""),n=S(),p=d(()=>E().query?.id),r=v();I(()=>{if(!p.value)return;const e=`/_vfs.json/${encodeURIComponent(p.value)}`;fetch(e).then(t=>t.json()).then(t=>r.value=t.current)});function y(e){if(n.value?.rootDir)return e.startsWith(n.value?.rootDir)?e.slice(n.value.rootDir.length):e}const f=d(()=>n.value?n.value.entries.filter(e=>!e.id.startsWith(`${n.value?.rootDir||""}/.nuxt/`)).sort((e,t)=>e.id.localeCompare(t.id)):[]),g=d(()=>new J(f.value,{keys:["id","path"]})),k=d(()=>o.value?g.value.search(o.value).map(e=>e.item):f.value);return(e,t)=>{const b=B,$=G,F=W,C=H,N=z,V=T,w=X,D=A;return c(),u(m,null,[s(V,{class:"virtual-files","storage-key":"tab-virtual-files"},{left:i(()=>[s(b,{search:l(o),"onUpdate:search":t[0]||(t[0]=a=>L(o)?o.value=a:null),"no-padding":"",p3:""},null,8,["search"]),(c(!0),u(m,null,P(l(k),a=>(c(),u(m,{key:a.id},[s($,{block:"","select-none":"",truncate:"",px2:"",py1:"","font-mono":"","text-sm":"",to:`/modules/virtual-files?id=${encodeURIComponent(a.id)}`,class:U(a.id===l(r)?.id?"text-primary n-bg-active":"text-secondary hover:n-bg-hover")},{default:i(()=>[j(h(y(a.id)),1)]),_:2},1032,["to","class"]),Y],64))),128))]),right:i(()=>[l(r)?.content?(c(),u("div",Z,[_("div",ee,[_("code",null,h(l(r).id),1)]),s(F,{"h-full":"","of-auto":"","text-sm":"",code:l(r).content,lang:"typescript"},null,8,["code"])])):(c(),q(N,{key:1},{default:i(()=>[s(C,{px6:"",py2:""},{default:i(()=>[te]),_:1})]),_:1}))]),_:1}),s(D,null,{default:i(()=>[s(w)]),_:1})],64)}}});export{de as default};
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html >
3
3
  <head><meta charset="utf-8">
4
- <meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.8297d1ff.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.f90d2a3f.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.e4ec7d02.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.2d7cfbe4.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.6c0706c9.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.685e4f52.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.f33e0ffe.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-component.b12ab471.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.f90d2a3f.css"><script>"use strict";const w=window,de=document.documentElement,knownColorSchemes=["dark","light"],preference=window.localStorage.getItem("nuxt-color-mode")||"system";let value=preference==="system"?getColorScheme():preference;const forcedColorMode=de.getAttribute("data-color-mode-forced");forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w["__NUXT_COLOR_MODE__"]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function addColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.add(o):de.className+=" "+o,t&&de.setAttribute("data-"+t,e)}function removeColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.remove(o):de.className=de.className.replace(new RegExp(o,"g"),""),t&&de.removeAttribute("data-"+t)}function prefersColorScheme(e){return w.matchMedia("(prefers-color-scheme"+e+")")}function getColorScheme(){if(w.matchMedia&&prefersColorScheme("").media!=="not all"){for(const e of knownColorSchemes)if(prefersColorScheme(":"+e).matches)return e}return"light"}
4
+ <meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.5024288d.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.f90d2a3f.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.6feef59a.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.4fda98d6.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.e465e0f9.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.94eb9e94.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.83acba48.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-component.d86d2bc0.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.f90d2a3f.css"><script>"use strict";const w=window,de=document.documentElement,knownColorSchemes=["dark","light"],preference=window.localStorage.getItem("nuxt-color-mode")||"system";let value=preference==="system"?getColorScheme():preference;const forcedColorMode=de.getAttribute("data-color-mode-forced");forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w["__NUXT_COLOR_MODE__"]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function addColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.add(o):de.className+=" "+o,t&&de.setAttribute("data-"+t,e)}function removeColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.remove(o):de.className=de.className.replace(new RegExp(o,"g"),""),t&&de.removeAttribute("data-"+t)}function prefersColorScheme(e){return w.matchMedia("(prefers-color-scheme"+e+")")}function getColorScheme(){if(w.matchMedia&&prefersColorScheme("").media!=="not all"){for(const e of knownColorSchemes)if(prefersColorScheme(":"+e).matches)return e}return"light"}
5
5
  </script></head>
6
- <body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.8297d1ff.js" crossorigin></script></body>
6
+ <body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.5024288d.js" crossorigin></script></body>
7
7
  </html>