@nuxt/devtools 0.2.4 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/chunks/module-main.mjs +693 -207
- package/dist/chunks/plugin-metrics.mjs +54 -0
- package/dist/chunks/vite-inspect.mjs +12 -13
- package/dist/chunks/vscode.mjs +44 -26
- package/dist/chunks/vue-inspector.mjs +2 -2
- package/dist/cli.mjs +5 -4
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/__inspecting/index.html +2 -2
- package/dist/client/_nuxt/Badge.0f8d5f6f.js +1 -0
- package/dist/client/_nuxt/DrawerRight.vue.6b933252.js +1 -0
- package/dist/client/_nuxt/DurationDisplay.vue.5c57289e.js +1 -0
- package/dist/client/_nuxt/FilepathItem.vue.e8c3a52c.js +1 -0
- package/dist/client/_nuxt/LaunchPage.vue.87f21877.js +1 -0
- package/dist/client/_nuxt/NCheckbox.vue.4b9ea1cc.js +1 -0
- package/dist/client/_nuxt/NCodeBlock.vue.431c1fae.js +1 -0
- package/dist/client/_nuxt/NIconButton.vue.9bdc7adc.js +1 -0
- package/dist/client/_nuxt/NIconTitle.vue.f40c1405.js +1 -0
- package/dist/client/_nuxt/NMarkdown.vue.725d1f67.js +1 -0
- package/dist/client/_nuxt/NSectionBlock.aae79980.js +1 -0
- package/dist/client/_nuxt/NSelect.vue.b136ef78.js +1 -0
- package/dist/client/_nuxt/NSwitch.vue.73a2b8d5.js +1 -0
- package/dist/client/_nuxt/NTextInput.vue.543d16d0.js +1 -0
- package/dist/client/_nuxt/NTip.vue.130b714b.js +1 -0
- package/dist/client/_nuxt/NpmVersionCheck.vue.b49a7a81.js +1 -0
- package/dist/client/_nuxt/NuxtLogo.18339464.js +1 -0
- package/dist/client/_nuxt/PanelLeftRight.vue.b026a23a.js +1 -0
- package/dist/client/_nuxt/StateEditor.vue.dae03388.js +1 -0
- package/dist/client/_nuxt/TabIcon.vue.d87fc756.js +1 -0
- package/dist/client/_nuxt/{__inspecting.3eb70499.js → __inspecting.9a5a53c2.js} +1 -1
- package/dist/client/_nuxt/assets.a9e5a6b0.js +16 -0
- package/dist/client/_nuxt/components.70b3c3a4.js +1 -0
- package/dist/client/_nuxt/context.c8f67be1.js +1 -0
- package/dist/client/_nuxt/custom-_name_.54344ca3.js +1 -0
- package/dist/client/_nuxt/default.a8c4c373.js +1 -0
- package/dist/client/_nuxt/editor.e302ec86.js +1 -0
- package/dist/client/_nuxt/entry.654353dc.css +32 -0
- package/dist/client/_nuxt/entry.91db41b9.js +259 -0
- package/dist/client/_nuxt/error-404.6d04f9a0.js +1 -0
- package/dist/client/_nuxt/error-500.44287dc0.js +1 -0
- package/dist/client/_nuxt/error-component.a0e84e89.js +3 -0
- package/dist/client/_nuxt/hooks.784bc58b.js +1 -0
- package/dist/client/_nuxt/icons.43eaabec.js +1 -0
- package/dist/client/_nuxt/imports.2e67f433.js +1 -0
- package/dist/client/_nuxt/{index.a6656ecb.js → index.3b3b7aca.js} +5 -5
- package/dist/client/_nuxt/index.4213289c.js +1 -0
- package/dist/client/_nuxt/index.c769634a.js +3 -0
- package/dist/client/_nuxt/layouts.3ece608d.js +1 -0
- package/dist/client/_nuxt/middleware.c0b48cbf.js +1 -0
- package/dist/client/_nuxt/modules.b85b1f76.js +1 -0
- package/dist/client/_nuxt/none.d95ed4cd.js +1 -0
- package/dist/client/_nuxt/overview.c2dfff9d.js +1 -0
- package/dist/client/_nuxt/pages.c8f066b4.js +1 -0
- package/dist/client/_nuxt/payload.299d8527.js +1 -0
- package/dist/client/_nuxt/plugins.4b3cd1e3.js +1 -0
- package/dist/client/_nuxt/runtime-configs.0f55338b.js +1 -0
- package/dist/client/_nuxt/server-routes.e48a8508.js +1 -0
- package/dist/client/_nuxt/settings.b70bc182.js +1 -0
- package/dist/client/_nuxt/storage.adf41f3f.js +1 -0
- package/dist/client/_nuxt/terminals.2f58f3e7.js +1 -0
- package/dist/client/_nuxt/terminals.4329aeb9.css +1 -0
- package/dist/client/_nuxt/{unocss-runtime.6f823b2d.js → unocss-runtime.f654b492.js} +2 -2
- package/dist/client/_nuxt/virtual-files.dbe38c70.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/client/modules/assets/index.html +7 -0
- package/dist/client/modules/components/index.html +2 -2
- package/dist/client/modules/hooks/index.html +2 -2
- package/dist/client/modules/imports/index.html +2 -2
- package/dist/client/modules/layouts/index.html +2 -2
- package/dist/client/modules/middleware/index.html +2 -2
- package/dist/client/modules/modules/index.html +2 -2
- package/dist/client/modules/overview/index.html +2 -2
- package/dist/client/modules/pages/index.html +2 -2
- package/dist/client/modules/payload/index.html +2 -2
- package/dist/client/modules/plugins/index.html +2 -2
- package/dist/client/modules/runtime-configs/index.html +2 -2
- package/dist/client/modules/server-routes/index.html +2 -2
- package/dist/client/modules/storage/index.html +7 -0
- package/dist/client/modules/terminals/index.html +7 -0
- package/dist/client/modules/virtual-files/index.html +2 -2
- package/dist/client/settings/index.html +7 -0
- package/dist/dirs.mjs +2 -2
- package/dist/module.d.ts +3 -31
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/plugins/devtools.client.mjs +7 -1
- package/dist/shared/{devtools.b6178134.mjs → devtools.30090c6e.mjs} +1 -1
- package/dist/types.d.ts +5 -326
- package/dist/types.mjs +1 -1
- package/package.json +38 -37
- package/dist/client/_nuxt/Badge.35e3d75f.js +0 -1
- package/dist/client/_nuxt/FilepathItem.vue.70457130.js +0 -1
- package/dist/client/_nuxt/LaunchPage.vue.15ef3f8b.js +0 -1
- package/dist/client/_nuxt/NButton.a7fda268.css +0 -1
- package/dist/client/_nuxt/NButton.vue.1aeb67fb.js +0 -113
- package/dist/client/_nuxt/NCheckbox.vue.7252d00f.js +0 -1
- package/dist/client/_nuxt/NIcon.vue.6416325d.js +0 -1
- package/dist/client/_nuxt/NSectionBlock.7c35c1a8.js +0 -1
- package/dist/client/_nuxt/NSectionBlock.891fa081.css +0 -1
- package/dist/client/_nuxt/NTextInput.vue.0fd513ee.js +0 -1
- package/dist/client/_nuxt/NuxtLogo.3b286105.js +0 -1
- package/dist/client/_nuxt/StateEditor.ce27b0a9.css +0 -1
- package/dist/client/_nuxt/StateEditor.vue.4b3d62c1.js +0 -1
- package/dist/client/_nuxt/StateEditor.vue.b4b0d299.js +0 -137
- package/dist/client/_nuxt/TabIcon.vue.dd710d5f.js +0 -1
- package/dist/client/_nuxt/_plugin-vue_export-helper.c27b6911.js +0 -1
- package/dist/client/_nuxt/asyncData.f4eab2cf.js +0 -1
- package/dist/client/_nuxt/components.b8fa7f92.js +0 -1
- package/dist/client/_nuxt/composables.8ff5f6b6.js +0 -1
- package/dist/client/_nuxt/context.c1f50e17.js +0 -1
- package/dist/client/_nuxt/custom-_name_.681ffd04.js +0 -1
- package/dist/client/_nuxt/default.2963fb37.js +0 -1
- package/dist/client/_nuxt/editor.b5249ede.js +0 -1
- package/dist/client/_nuxt/entry.27ee4abf.css +0 -1
- package/dist/client/_nuxt/entry.53ee6248.js +0 -5
- package/dist/client/_nuxt/error-404.4d908286.js +0 -1
- package/dist/client/_nuxt/error-500.e65c4924.js +0 -1
- package/dist/client/_nuxt/error-component.1a84e289.js +0 -3
- package/dist/client/_nuxt/hooks.b85de4f3.js +0 -1
- package/dist/client/_nuxt/icons.7b11eba5.js +0 -1
- package/dist/client/_nuxt/imports.48d7ddd5.js +0 -1
- package/dist/client/_nuxt/index.747f17a4.js +0 -1
- package/dist/client/_nuxt/layouts.8029422d.js +0 -1
- package/dist/client/_nuxt/middleware.671f87b6.js +0 -1
- package/dist/client/_nuxt/modules.56768ce2.js +0 -1
- package/dist/client/_nuxt/none.fa32461d.js +0 -1
- package/dist/client/_nuxt/nuxt-link.bdfe480b.js +0 -1
- package/dist/client/_nuxt/overview.71ae3521.js +0 -1
- package/dist/client/_nuxt/pages.611146bd.js +0 -1
- package/dist/client/_nuxt/payload.e24f2347.js +0 -1
- package/dist/client/_nuxt/plugins.a24c21cb.js +0 -1
- package/dist/client/_nuxt/runtime-configs.9225ca28.js +0 -1
- package/dist/client/_nuxt/server-routes.7c4496d9.js +0 -1
- package/dist/client/_nuxt/state.647f0c35.js +0 -1
- package/dist/client/_nuxt/virtual-files.33ac3fab.js +0 -9
- package/dist/iframe-client.d.ts +0 -13
- package/dist/iframe-client.mjs +0 -30
- package/iframe-client.d.ts +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as D}from"./NTextInput.vue.0fd513ee.js";import{a as M,l as w,p as z,o as t,c as k,w as b,h as n,f as p,u as e,m as v,i as x,k as C,F as V,t as I,z as N,K as F,M as T,N as j,O as E,x as B,P as K,r as L,q as U}from"./entry.53ee6248.js";import{_ as S}from"./FilepathItem.vue.70457130.js";import{r as P,_ as H}from"./NButton.vue.1aeb67fb.js";import{u as q,o as A}from"./editor.b5249ede.js";import{_ as O}from"./NSectionBlock.7c35c1a8.js";import{a as R,h as G,i as J,j as Q,g as W}from"./state.647f0c35.js";import{F as X}from"./fuse.esm.88e2763d.js";import"./NIcon.vue.6416325d.js";import"./nuxt-link.bdfe480b.js";/* empty css */import"./StateEditor.vue.b4b0d299.js";import"./context.c1f50e17.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./asyncData.f4eab2cf.js";const Y={"hover:text-primary":""},Z={key:0,"text-primary":""},ee={"max-w-100":""},te={"text-sm":"",px4:"",py3:""},oe=["innerHTML"],se={flex:"~ gap2",n:"primary xs"},ae={border:"t base",px4:"",py3:""},ne={"text-sm":""},ie=n("span",{op50:""},"It has been referenced ",-1),le={"text-primary":""},re=n("span",{op50:""}," times by:",-1),me={flex:"~ col gap-2","text-sm":"","items-start":"",pt3:""},de={key:1,op50:"","text-sm":""},ue=M({__name:"ComposableItem",props:{item:null,metadata:null,filepath:null},setup(a){const r=a,y=q(),o=w(()=>r.item.as||r.item.name),d=w(()=>r.metadata?.injectionUsage?.[o.value]?.count||0),s=w(()=>r.metadata?.injectionUsage?.[o.value]?.moduleIds||[]);return(u,f)=>{const i=H,c=S,m=z("VDropdown");return t(),k(m,{disabled:!r.metadata},{popper:b(()=>[n("div",ee,[n("div",te,[a.item.meta?.description?(t(),p("div",{key:0,class:"markdown-body","text-sm":"",pb3:"",innerHTML:("renderMarkdown"in u?u.renderMarkdown:e(P))(a.item.meta.description)},null,8,oe)):v("",!0),n("div",se,[x(i,{"n-solid":"",onClick:f[0]||(f[0]=_=>e(y)(e(o)))},{default:b(()=>[C(" Copy ")]),_:1}),a.filepath?(t(),k(i,{key:0,"n-solid":"",onClick:f[1]||(f[1]=_=>a.filepath&&("openInEditor"in u?u.openInEditor:e(A))(a.filepath))},{default:b(()=>[C(" Source ")]),_:1})):v("",!0),a.item.meta?.docsUrl?(t(),k(i,{key:1,"n-solid":"",to:a.item.meta?.docsUrl,target:"_blank"},{default:b(()=>[C(" Docs ")]),_:1},8,["to"])):v("",!0)])]),n("div",ae,[e(d)?(t(),p(V,{key:0},[n("div",ne,[ie,n("strong",le,I(e(d)),1),re]),n("div",me,[(t(!0),p(V,null,N(e(s),_=>(t(),k(c,{key:_,filepath:_},null,8,["filepath"]))),128))])],64)):(t(),p("div",de," Not in use via auto import. "))])])]),default:b(()=>[n("button",Y,[n("code",{px2:"",py1:"",rounded:"","font-mono":"","text-sm":"","bg-gray:5":"",class:F(a.metadata&&!e(d)?"op30 hover:op100":"")},[C(I(e(o))+" ",1),e(d)?(t(),p("sup",Z,"x"+I(e(d)),1)):v("",!0)],2)])]),_:1},8,["disabled"])}}}),ce={flex:"~ wrap gap2",p2:"",pl4:""},pe=M({__name:"ComposableTree",props:{map:null,root:null,metadata:null},setup(a){return(r,y)=>{const o=S,d=ue;return t(),p("div",null,[(t(!0),p(V,null,N(a.map.entries(),([s,u])=>(t(),p("div",{key:s},[x(o,{filepath:s,op50:"","hover:underline":""},null,8,["filepath"]),n("div",ce,[(t(!0),p(V,null,N(u,f=>(t(),k(d,{key:f.as,item:f,metadata:a.metadata,filepath:s.match(/^[\w@]/)?void 0:s},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),fe=["checked","disabled"],_e=["disabled"],he=n("div",{class:"n-transition peer-active:n-active-base peer-focus-visible:n-focus-base n-switch-slider n-checked:n-switch-slider-checked"},[n("div",{class:"n-transition n-switch-thumb n-checked:n-switch-thumb-checked"})],-1),be=M({__name:"NSwitch",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(a,{emit:r}){const o=T(a,"modelValue",r,{passive:!0});return(d,s)=>(t(),p("label",{class:"n-disabled:n-disabled n-switch n-switch-base",checked:e(o)||null,disabled:a.disabled||null},[j(n("input",{"onUpdate:modelValue":s[0]||(s[0]=u=>B(o)?o.value=u:null),type:"checkbox",class:"absolute op0 peer",disabled:a.disabled,onKeypress:s[1]||(s[1]=K(u=>o.value=!e(o),["enter"]))},null,40,_e),[[E,e(o)]]),he,n("span",null,[L(d.$slots,"default")])],8,fe))}}),ve={key:0,"h-full":"","of-auto":""},ye={flex:"~ col gap4",border:"b base",px4:"","flex-1":"","navbar-glass":"",pt4:"",pb2:""},ke={key:0},Te=M({__name:"imports",setup(a){const r=R(),y=U(!1),o=U(""),d=G(),s=w(()=>d.value?.metadata),u=w(()=>d.value?.imports.filter(c=>c.as||c.name).sort((c,m)=>(c.as||c.name).localeCompare(m.as||m.name))||[]),f=w(()=>new X(u.value,{keys:["from","as","name"]})),i=w(()=>{const c=new Map,m=new Map,_=new Map;let $=o.value?f.value.search(o.value).map(l=>l.item):u.value;y.value&&s.value&&($=$.filter(l=>(l.as||l.name)in s.value.injectionUsage));const g={user:0,lib:0,builtin:0};return $.forEach(l=>{const h=J(l.from)?Q(W(l.from))?_:m:c;h.has(l.from)||h.set(l.from,[]),h.get(l.from).push(l),g[h===c?"user":h===m?"lib":"builtin"]++}),{user:c,lib:m,builtin:_,count:g}});return(c,m)=>{const _=D,$=be,g=pe,l=O;return e(r)?(t(),p("div",ve,[n("div",ye,[x(_,{modelValue:e(o),"onUpdate:modelValue":m[0]||(m[0]=h=>B(o)?o.value=h:null),placeholder:"Search...",icon:"carbon-search",p:"x5 y2",n:"primary"},null,8,["modelValue"]),e(s)?(t(),p("div",ke,[x($,{modelValue:e(y),"onUpdate:modelValue":m[1]||(m[1]=h=>B(y)?y.value=h:null),n:"primary sm"},{default:b(()=>[C(" Show used only ")]),_:1},8,["modelValue"])])):v("",!0)]),e(i).user.size?(t(),k(l,{key:0,icon:"carbon-function",text:"User composables",description:`${e(i).count.user} composables from ${e(i).user.size} modules`},{default:b(()=>[x(g,{map:e(i).user,root:e(r).rootDir,metadata:e(s)},null,8,["map","root","metadata"])]),_:1},8,["description"])):v("",!0),e(i).builtin.size?(t(),k(l,{key:1,icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${e(i).count.builtin} composables`},{default:b(()=>[x(g,{map:e(i).builtin,root:e(r).rootDir,metadata:e(s)},null,8,["map","root","metadata"])]),_:1},8,["description"])):v("",!0),e(i).lib.size?(t(),k(l,{key:2,icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${e(i).count.lib} composables from ${e(i).lib.size} packages`},{default:b(()=>[x(g,{map:e(i).lib,root:e(r).rootDir,metadata:e(s)},null,8,["map","root","metadata"])]),_:1},8,["description"])):v("",!0)])):v("",!0)}}});export{Te as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as a}from"./NuxtLogo.3b286105.js";import{_ as c}from"./Badge.35e3d75f.js";import{_ as p}from"./NButton.vue.1aeb67fb.js";import{a as _,f as l,h as e,i as o,w as m,j as u,k as t,o as d}from"./entry.53ee6248.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./NIcon.vue.6416325d.js";import"./nuxt-link.bdfe480b.js";/* empty css */import"./StateEditor.vue.b4b0d299.js";const x={flex:"~ col gap4","h-screen":"","items-center":"","justify-center":"","text-center":"","w-160":"",mxa:""},f={flex:"~","justify-center":"","items-center":""},h=e("p",{"text-xl":"","font-bold":"",my2:""}," 👋 Welcome trying the preview of Nuxt DevTools! ",-1),v=e("p",{"text-lg":""},[e("b",{"font-bold":""},"Nuxt DevTools"),t(" is a set of visual tools that help you to know your app/site better, and enhance your development experience with Nuxt. ")],-1),g=e("p",{"text-lg":""},[t(" Be aware that "),e("span",{px2:"",rounded:"","font-bold":"","bg-orange:10":"","py0.5":"","text-orange":""},"Nuxt DevTools is still in early preview"),t(", features might be incomplete and unstable. "),e("a",{href:"https://github.com/nuxt/devtools",target:"_blank","text-primary":"","hover-underline":""},"Create an issue or discussion"),t(" if you find any bugs or have any suggestions. Thank you and have fun! ")],-1),y=e("span",null,"Get Started",-1),G=_({__name:"index",setup(b){function n(){u.value=!1}return(w,N)=>{const s=a,i=c,r=p;return d(),l("div",x,[e("div",f,[o(s,{"h-16":""}),o(i,{"bg-green-400:10":"","text-green-400":"","mr--15":"","mt--5":"",title:"preview",textContent:"preview"})]),h,v,g,o(r,{to:"/modules/overview","mt-4":"",n:"xl primary",onClick:n},{default:m(()=>[y]),_:1})])}}});export{G as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as t}from"./state.647f0c35.js";import{a,f as o,h as s,t as r,u as n,o as u}from"./entry.53ee6248.js";import"./asyncData.f4eab2cf.js";const f=a({__name:"layouts",setup(l){const e=t();return(p,c)=>(u(),o("div",null,[s("pre",null,r(n(e)),1)]))}});export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,f as a,o as n}from"./entry.53ee6248.js";const s=e({__name:"middleware",setup(o){return(t,r)=>(n(),a("div",null," WIP "))}});export{s as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as V}from"./nuxt-link.bdfe480b.js";import{_ as E}from"./FilepathItem.vue.70457130.js";import{a as C,i as $,g as T,k as L,l as q}from"./state.647f0c35.js";import{a as F,l as k,Q as z,o,f as n,h as a,u as t,c as f,w as m,k as w,t as h,I as A,m as c,i as b,F as P,z as M,q as I,G}from"./entry.53ee6248.js";import{_ as O}from"./NSectionBlock.7c35c1a8.js";import"./editor.b5249ede.js";import"./context.c1f50e17.js";import"./asyncData.f4eab2cf.js";import"./NIcon.vue.6416325d.js";/* empty css */import"./_plugin-vue_export-helper.c27b6911.js";const Q={border:"~ base",p4:"",flex:"~ gap2"},U={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},H={"text-lg":"","of-hidden":"","ws-nowrap":"","text-ellipsis":""},J={key:2},K={key:0,op50:"","text-sm":"","mt--1":""},R=a("div",{"flex-auto":""},null,-1),W={key:1,flex:"~ gap-2",title:"Documentation"},X=a("span",{"text-lg":"",op50:"","i-carbon-link":""},null,-1),Y={key:2,flex:"~ gap-2"},Z=a("span",{"text-lg":"",op50:"","i-carbon-logo-github":""},null,-1),tt={key:3,flex:"~ gap-2",title:"Open on filesystem"},et=a("span",{"text-lg":"",op50:"","i-carbon-folder-move-to":""},null,-1),ot={flex:"~ col"},nt={key:0,p4:"",rounded:"","flex-none":"","h-20":"","w-20":"","bg-gray:3":"",flex:""},at=["src","alt"],st=a("div",{op50:"",ma:"","i-carbon-circle-dash":"","text-4xl":""},null,-1),it={key:1,flex:"~","flex-auto":"","items-end":"",mt2:"","justify-end":""},rt=["src"],lt=F({__name:"ModuleItem",props:{mod:null},async setup(u){let p,x;const i=u,d=C(),r=k(()=>i.mod.entryPath&&$(i.mod.entryPath)),s=k(()=>i.mod.meta?.name?i.mod.meta.name:i.mod.entryPath?r.value?T(i.mod.entryPath):d.value?.rootDir?L(i.mod.entryPath,d.value?.rootDir):"":""),B=([p,x]=z(()=>q()),p=await p,x(),p),e=k(()=>({name:s,...i.mod?.meta,...(B||[]).find?.(_=>_.npm===s.value||_.name===s.value)})),y="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",l="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",j="https://github.com/",D="https://www.npmjs.com/package/";return(_,N)=>{const v=V,S=E;return o(),n("div",Q,[a("div",U,[a("div",H,[t(r)?(o(),f(v,{key:0,to:D+(t(e).npm||t(e).name),target:"_blank",hover:"underline text-primary"},{default:m(()=>[w(h(t(e).name),1)]),_:1},8,["to"])):u.mod.entryPath?(o(),n("button",{key:1,role:"button",hover:"underline text-primary",onClick:N[0]||(N[0]=g=>("rpc"in _?_.rpc:t(A)).openInEditor(u.mod.entryPath))},h(t(e).name),1)):(o(),n("span",J,h(t(e).name),1))]),t(e).description?(o(),n("div",K,h(t(e).description),1)):c("",!0),R,t(e).website?(o(),n("div",W,[X,b(v,{to:t(e).website,target:"_blank","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:m(()=>[w(h(t(e).website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):c("",!0),t(e).github?(o(),n("div",Y,[Z,b(v,{to:t(e).github,target:"_blank","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:m(()=>[w(h(t(e).github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):c("",!0),u.mod.entryPath?(o(),n("div",tt,[et,b(S,{filepath:u.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):c("",!0)]),a("div",ot,[t(e).icon||t(r)?(o(),n("div",nt,[t(e).icon?(o(),n("img",{key:0,src:y+t(e).icon,alt:t(s),ma:""},null,8,at)):c("",!0),st])):c("",!0),t(e).maintainers?.length?(o(),n("div",it,[(o(!0),n(P,null,M(t(e).maintainers,g=>(o(),f(v,{key:g.name,target:"_blank",to:j+g.github,title:g.name},{default:m(()=>[a("img",{src:l+g.github,"rounded-full":"","w-6":"","h-6":""},null,8,rt)]),_:2},1032,["to","title"]))),128))])):c("",!0)])])}}}),ct=a("div",null,[a("span",{op50:""},"Find more modules at "),a("a",{href:"https://nuxt.com/modules",target:"_blank",hover:"text-primary underline"},"nuxt.com/modules")],-1),kt=F({__name:"modules",setup(u){const p=["pages","meta","components","imports","nuxt-config-schema","@nuxt/devtools","@nuxt/telemetry"],x=C(),i=k(()=>x.value?._installedModules||[]),d=I([]),r=I([]);return G(()=>{d.value.length=0,r.value.length=0;for(const s of i.value)p.includes(s.meta?.name)||(s.entryPath&&$(s.entryPath)?d.value.push(s):r.value.push(s))}),(s,B)=>{const e=lt,y=O;return o(),n("div",null,[b(y,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap2",description:`Total modules: ${t(d).length}`},{footer:m(()=>[ct]),default:m(()=>[(o(!0),n(P,null,M(t(d),l=>(o(),f(e,{key:l.meta?.name||l.entryPath,mod:l},null,8,["mod"]))),128))]),_:1},8,["description"]),t(r).length?(o(),f(y,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-400px gap2",description:`Total modules: ${t(r).length}`},{default:m(()=>[(o(!0),n(P,null,M(t(r),l=>(o(),f(e,{key:l.meta?.name||l.entryPath,mod:l},null,8,["mod"]))),128))]),_:1},8,["description"])):c("",!0)])}}});export{kt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e}from"./_plugin-vue_export-helper.c27b6911.js";import{r as o}from"./entry.53ee6248.js";const t={};function n(r,s){return o(r.$slots,"default")}const _=e(t,[["render",n]]);export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a4 as h,A as y,a as C,l as b,ae as _,q as g,s as q,af as k,a2 as p,p as A,ag as P}from"./entry.53ee6248.js";const m=globalThis.requestIdleCallback||(t=>{const a=Date.now(),e={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-a))};return setTimeout(()=>{t(e)},1)}),R=globalThis.cancelIdleCallback||(t=>{clearTimeout(t)}),T=t=>{const a=h();a.isHydrating?a.hooks.hookOnce("app:suspense:resolve",()=>{m(t)}):m(t)};async function x(t,a=y()){if(a._routePreloaded||(a._routePreloaded=new Set),a._routePreloaded.has(t))return;const e=a._preloadPromises=a._preloadPromises||[];if(e.length>4)return Promise.all(e).then(()=>x(t,a));a._routePreloaded.add(t);const o=a.resolve(t).matched.map(l=>l.components?.default).filter(l=>typeof l=="function");for(const l of o){const n=Promise.resolve(l()).catch(()=>{}).finally(()=>e.splice(e.indexOf(n)));e.push(n)}await Promise.all(e)}const N=(...t)=>t.find(a=>a!==void 0),S="noopener noreferrer";function w(t){const a=t.componentName||"NuxtLink";return C({name:a,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(e,{slots:o}){const l=y(),n=b(()=>e.to||e.href||""),c=b(()=>e.external||e.target&&e.target!=="_self"?!0:typeof n.value=="object"?!1:n.value===""||_(n.value,!0)),d=g(!1),s=g(null);if(e.prefetch!==!1&&e.noPrefetch!==!0&&typeof n.value=="string"&&e.target!=="_blank"&&!E()){const f=h();let u,i=null;q(()=>{const v=B();T(()=>{u=m(()=>{s?.value?.tagName&&(i=v.observe(s.value,async()=>{i?.(),i=null,await Promise.all([f.hooks.callHook("link:prefetch",n.value).catch(()=>{}),!c.value&&x(n.value,l).catch(()=>{})]),d.value=!0}))})})}),k(()=>{u&&R(u),i?.(),i=null})}return()=>{if(!c.value)return p(A("RouterLink"),{ref:v=>{s.value=v?.$el},to:n.value,...d.value&&!e.custom?{class:e.prefetchedClass||t.prefetchedClass}:{},activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom},o.default);const r=typeof n.value=="object"?l.resolve(n.value)?.href??null:n.value||null,f=e.target||null,u=e.noRel?null:N(e.rel,t.externalRelAttribute,r?S:"")||null,i=()=>P(r,{replace:e.replace});return e.custom?o.default?o.default({href:r,navigate:i,route:l.resolve(r),rel:u,target:f,isExternal:c.value,isActive:!1,isExactActive:!1}):null:p("a",{ref:s,href:r,rel:u,target:f},o.default?.())}}})}const L=w({componentName:"NuxtLink"});function B(){const t=h();if(t._observer)return t._observer;let a=null;const e=new Map,o=(n,c)=>(a||(a=new IntersectionObserver(d=>{for(const s of d){const r=e.get(s.target);(s.isIntersecting||s.intersectionRatio>0)&&r&&r()}})),e.set(n,c),a.observe(n),()=>{e.delete(n),a.unobserve(n),e.size===0&&(a.disconnect(),a=null)});return t._observer={observe:o}}function E(){const t=navigator.connection;return!!(t&&(t.saveData||/2g/.test(t.effectiveType)))}export{L as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as j}from"./NuxtLogo.3b286105.js";import{_ as I}from"./Badge.35e3d75f.js";import{_ as R}from"./nuxt-link.bdfe480b.js";import{_ as O}from"./NIcon.vue.6416325d.js";import{a as y,o,f as c,i,w as s,u as t,x as A,h as e,y as P,r as C,c as r,m as a,b as F,l as L,A as M,k as n,t as d,F as v,j as U,p as W,R as E}from"./entry.53ee6248.js";import{_ as G}from"./NCheckbox.vue.7252d00f.js";import{_ as H}from"./NButton.vue.1aeb67fb.js";import{a as Y,m as q,d as z,h as J,n as K,o as Q}from"./state.647f0c35.js";import"./_plugin-vue_export-helper.c27b6911.js";/* empty css */import"./StateEditor.vue.b4b0d299.js";import"./asyncData.f4eab2cf.js";const X={px4:"",py2:"",flex:"~ col"},Z=e("span",null,"Close DevTools when clicking outside",-1),ee=y({__name:"SettingsPanel",setup(m){const{interactionCloseOnOutsideClick:u}=P();return(l,_)=>{const b=G;return o(),c("div",X,[i(b,{modelValue:t(u),"onUpdate:modelValue":_[0]||(_[0]=f=>A(u)?u.value=f:null),"n-primary":""},{default:s(()=>[Z]),_:1},8,["modelValue"])])}}}),te={class:"n-tip n-tip-base"},oe=y({__name:"NTip",props:{icon:null},setup(m){return(u,l)=>{const _=O;return o(),c("div",te,[C(u.$slots,"icon",{},()=>[m.icon?(o(),r(_,{key:0,icon:m.icon,class:"n-tip-icon"},null,8,["icon"])):a("",!0)]),e("div",null,[C(u.$slots,"default")])])}}}),ne="0.2.4",se={"h-full":"","w-full":"",flex:""},le={key:0},ie={key:1,flex:"~ col gap2","w-full":"","h-full":"",ma:"","max-w-300":"",p10:"",px20:""},ae=e("div",{"flex-auto":""},null,-1),ce={flex:"~ col","items-center":"","mt-20":""},re={flex:"~","justify-center":"","items-center":"","mt--10":""},ue={"text-center":"","text-sm":"","mt--1":"",op30:"",mb6:""},de={flex:"~ gap2 wrap"},_e={key:0,p4:"","theme-card-green":"",flex:"~ col auto"},pe=e("div",{"logos-nuxt-icon":"","text-3xl":""},null,-1),me=e("div",{"text-3xl":"","carbon-tree-view-alt":""},null,-1),fe=e("div",{"text-3xl":"","carbon-nominal":""},null,-1),xe=e("div",{"text-3xl":"","carbon-function":""},null,-1),ge=e("div",{"text-3xl":"","carbon-3d-mpr-toggle":""},null,-1),he=e("div",{"text-3xl":"","carbon-plug":""},null,-1),ve={flex:"~ col gap2"},be={flex:"~ gap-6 wrap","items-center":"","justify-center":"","mt-5":""},ke=e("a",{href:"https://github.com/nuxt/devtools",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[e("div",{"i-carbon-star":""}),n(" Star on GitHub ")],-1),ye=e("a",{href:"https://github.com/nuxt/devtools/discussions/29",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[e("div",{"i-carbon-data-enrichment":""}),n(" Ideas & Suggestions ")],-1),we=e("a",{href:"https://github.com/nuxt/devtools/discussions/31",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[e("div",{"i-carbon-plan":""}),n(" Project Roadmap ")],-1),Ce=e("a",{href:"https://github.com/nuxt/devtools/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[e("div",{"i-carbon-debug":""}),n(" Bug Reports ")],-1),Ne=e("button",{flex:"~ gap1","items-center":"",mxa:"","inline-block":"",op50:"","hover:op80":""},[e("div",{"i-carbon-settings":""}),n(" Settings ")],-1),Ve=e("div",{"flex-auto":""},null,-1),Me=y({__name:"overview",setup(m){const u=F(),l=Y(),_=q(),b=z(),f=J(),N=K(),V=Q(),x=L(()=>_.value?.find(g=>g.name==="nuxt")),$=M();function S(){U.value=!0,$.push("/")}return(g,$e)=>{const D=j,k=I,p=R,w=oe,B=ee,T=W("VDropdown"),h=H;return o(),c("div",se,[t(l)?(o(),c("div",ie,[ae,e("div",ce,[e("div",re,[i(D,{"h-18":""}),e("button",{"mr--16":"","mt--6":"",onClick:S},[i(k,{"bg-green-400:10":"","text-green-400":"",title:"preview",textContent:"preview"})])]),e("div",ue,[n(" Nuxt DevTools "),e("code",null,"v"+d(t(ne)),1)])]),e("div",de,[t(x)?(o(),c("div",_e,[pe,e("code",null,d(`v${t(x).current}`),1),t(x).latest?(o(),c(v,{key:0},[t(x).needsUpdate?(o(),r(k,{key:0,"bg-green-400:10":"","text-green-400":"","mt--1":"",title:"updates available",textContent:"updates available"})):(o(),r(k,{key:1,"bg-gray-400:10":"","text-gray-400":"","mt--1":"",title:"latest",textContent:"latest"}))],64)):a("",!0)])):a("",!0),t(l)?(o(),c(v,{key:1},[t(l)&&t(l).pages&&t(u)?(o(),r(p,{key:0,p4:"","theme-card-lime":"","min-w-40":"",flex:"~ col auto",to:"/modules/pages"},{default:s(()=>[me,e("div",null,d(t(N).length)+" pages",1)]),_:1})):a("",!0),t(l)?(o(),r(p,{key:1,p4:"","theme-card-lime":"","min-w-40":"",flex:"~ col auto",to:"/modules/components"},{default:s(()=>[fe,e("div",null,d(t(b).length)+" components",1)]),_:1})):a("",!0),t(l)&&t(f)?(o(),r(p,{key:2,p4:"","min-w-40":"","theme-card-yellow":"",flex:"~ col auto",to:"/modules/imports"},{default:s(()=>[xe,e("div",null,d(t(f).imports.length)+" imports",1)]),_:1})):a("",!0),t(l)?(o(),r(p,{key:3,p4:"","min-w-40":"","theme-card-purple":"",flex:"~ col auto",to:"/modules/modules"},{default:s(()=>[ge,e("div",null,d(t(l)._installedModules.length)+" modules",1)]),_:1})):a("",!0),t(l)?(o(),r(p,{key:4,p4:"","min-w-40":"","theme-card-teal":"",flex:"~ col auto",to:"/modules/plugins"},{default:s(()=>[he,e("div",null,d(t(l).plugins.length)+" plugins",1)]),_:1})):a("",!0)],64)):a("",!0)]),e("div",ve,[("showConnectionWarning"in g?g.showConnectionWarning:t(E))?(o(),r(w,{key:0,n:"yellow5",icon:"carbon-unlink","justify-center":""},{default:s(()=>[n(" Not connected to the client app, showing server-side data only. Use the embedded mode for full features. ")]),_:1})):a("",!0)]),e("div",be,[ke,ye,we,Ce,i(T,null,{popper:s(()=>[i(B)]),default:s(()=>[Ne]),_:1})]),Ve,i(w,{n:"green6","justify-center":"",icon:"carbon-keyboard"},{default:s(()=>[n(" You can press "),t(V)?(o(),c(v,{key:0},[i(h,{n:"xs green",class:"px2"},{default:s(()=>[n(" ⌥ Option ")]),_:1}),n("+"),i(h,{n:"xs green",class:"px2"},{default:s(()=>[n(" D ")]),_:1})],64)):(o(),c(v,{key:1},[i(h,{n:"xs green",class:"px2"},{default:s(()=>[n(" Alt ")]),_:1}),n("+"),i(h,{n:"xs green",class:"px2"},{default:s(()=>[n(" D ")]),_:1})],64)),n(" to toggle the DevTools. ")]),_:1})])):(o(),c("div",le," Loading... "))])}}});export{Me as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as S}from"./NTextInput.vue.0fd513ee.js";import{_ as U}from"./Badge.35e3d75f.js";import{_ as z}from"./NButton.vue.1aeb67fb.js";import{a as I,q as L,l as b,p as D,u as e,o as n,f as s,h as t,t as k,c as w,w as C,S as F,F as v,z as V,m as $,i as x,k as P,K as E,U as M,V as W,W as B,E as j,x as q,P as A,I as O}from"./entry.53ee6248.js";import{p as G,a as H,u as J,b as Q,q as X}from"./state.647f0c35.js";import{o as T}from"./editor.b5249ede.js";import{_ as Y}from"./NSectionBlock.7c35c1a8.js";import{_ as Z}from"./LaunchPage.vue.15ef3f8b.js";import"./NIcon.vue.6416325d.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./nuxt-link.bdfe480b.js";/* empty css */import"./StateEditor.vue.b4b0d299.js";import"./asyncData.f4eab2cf.js";import"./context.c1f50e17.js";import"./TabIcon.vue.dd710d5f.js";const ee={block:"","cursor-pointer":""},te={p2:""},ne=["onSubmit"],oe=t("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),ae={flex:"~","items-center":"","font-mono":"",p2:"","text-sm":""},se={key:1},re=I({__name:"RoutePathItem",props:{route:null},emits:["navigate"],setup(m,{emit:p}){const i=m,h=L([]),c=b(()=>{const o=G(i.route.path);return h.value=Array.from({length:o.length},()=>""),o}),u=b(()=>c.value.map((o,a)=>o[0]===":"?h.value[a]:o).join("").replace(/\/+/g,"/")),d=b(()=>i.route.path.includes(":"));function r(){p("navigate",u.value)}return(o,a)=>{const N=S,l=z,f=D("VDropdown");return e(d)?(n(),w(f,{key:1},{popper:C(({hide:_})=>[t("div",te,[t("form",{flex:"~ col",onSubmit:F(()=>{r(),_()},["prevent"])},[e(d)?(n(),s(v,{key:0},[oe,t("div",ae,[(n(!0),s(v,null,V(e(c),(g,y)=>(n(),s(v,{key:y},[g[0]===":"?(n(),w(N,{key:0,modelValue:e(h)[y],"onUpdate:modelValue":R=>e(h)[y]=R,"w-20":"","n-sm":"",placeholder:g.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(n(),s("span",se,k(g),1))],64))),128))])],64)):$("",!0),x(l,{block:"",n:"primary"},{default:C(()=>[P(" Navigate ")]),_:1})],40,ne)])]),default:C(()=>[t("code",ee,[(n(!0),s(v,null,V(e(c),(_,g)=>(n(),s("span",{key:g,class:E(_[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},k(_[0]===":"?_.slice(1):_),3))),128))])]),_:1})):(n(),s("button",{key:0,onClick:r},[t("code",null,k(m.route.path),1)]))}}}),le={"w-full":""},ie=t("thead",{border:"b base"},[t("tr",null,[t("th",{"text-left":""}),t("th",{"text-left":""}," Route Path "),t("th",{"text-left":""}," Name "),t("th",null," Layout ")])],-1),ue={"w-20":"","pr-1":""},ce={"justify-end":"","items-center":"",flex:""},pe={"text-sm":""},de={flex:"inline gap3","items-center":""},me={op0:"","group-hover:op100":"",flex:"~ gap1"},he=["onClick"],_e=t("div",{"i-carbon-script-reference":""},null,-1),ge=[_e],fe={"text-left":"","font-mono":"",op50:"","text-sm":"","w-0":"","ws-nowrap":"","pr-1":""},ve={"text-center":"","font-mono":"","w-0":"","ws-nowrap":"","text-sm":""},ye={key:0},xe=["onClick"],be=I({__name:"RoutesTable",props:{pages:null,layouts:null,matched:null,matchedPending:null},emits:["navigate"],setup(m){const p=m,i=b(()=>[...p.pages].sort((c,u)=>c.path.localeCompare(u.path)));function h(c){const u=p.layouts.find(d=>d.name===c);u&&T(u.file)}return(c,u)=>{const d=U,r=re;return n(),s("div",null,[t("table",le,[ie,t("tbody",null,[(n(!0),s(v,null,V(e(i),o=>(n(),s("tr",{key:o.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[t("td",ue,[t("div",ce,[m.matched.find(a=>a.name===o.name)?(n(),w(d,{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):$("",!0),m.matchedPending.find(a=>a.name===o.name)?(n(),w(d,{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):$("",!0)])]),t("td",pe,[t("div",de,[x(r,{route:o,class:E(m.matched.find(a=>a.name===o.name)?"text-primary":m.matchedPending.find(a=>a.name===o.name)?"text-teal":""),onNavigate:u[0]||(u[0]=a=>c.$emit("navigate",a))},null,8,["route","class"]),t("div",me,[o.file?(n(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:a=>("openInEditor"in c?c.openInEditor:e(T))(o.file)},ge,8,he)):$("",!0)])])]),t("td",fe,k(o.name),1),t("td",ve,[o.meta.layout===!1?(n(),s("span",ye,"-")):o.meta.layout?(n(),s("button",{key:1,onClick:a=>h(o.meta.layout)},k(o.meta.layout),9,xe)):(n(),s("button",{key:2,"text-sm":"",op15:"",onClick:u[1]||(u[1]=a=>h("default"))}," (default) "))])]))),128))])])])}}}),ke={key:0,"h-full":"","of-auto":""},$e={border:"b base",flex:"~ col gap1","navbar-glass":"",px6:"",py4:""},we=t("span",{op50:""},"Navigate from ",-1),Ce={"font-mono":""},Ne=t("span",{op50:""}," to ",-1),Re={key:1,op50:""},Ve=t("span",null,[P("Press "),t("b",{"font-bold":""},"Enter"),P(" to navigate")],-1),Pe={key:0,"text-orange":"",op75:""},Ie={key:1,op50:""},Ge=I({__name:"pages",setup(m){const p=M(),i=W(),h=H(),c=J(),u=Q(),d=b(()=>(p.value?.getRoutes()||[]).map(l=>X(l,["path","name","meta","props","children"])).map(l=>({...c.value?.find(f=>f.name&&f.name===l.name),...l}))),r=L("");B(i).toBeTruthy().then(l=>{r.value=l.path}),B(p).toBeTruthy().then(l=>{l.afterEach(()=>{j(()=>{r.value=i.value.path})})});async function o(){r.value!==i.value.path&&p.value.push(r.value||"/")}const a=b(()=>r.value===i.value.path?[]:p.value.resolve(r.value||"/").matched);function N(l){p.value.push(l)}return(l,f)=>{const _=S,g=be,y=Y,R=Z;return e(h)?.pages&&e(p)?(n(),s("div",ke,[t("div",$e,[t("div",null,[e(i).path!==e(r)?(n(),s(v,{key:0},[we,t("span",Ce,k(e(i).path),1),Ne],64)):(n(),s("span",Re,"Current route"))]),x(_,{modelValue:e(r),"onUpdate:modelValue":f[0]||(f[0]=K=>q(r)?r.value=K:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:E(e(i).path===e(r)?"":e(a).length?"text-green":"text-orange"),onKeydown:A(o,["enter"])},null,8,["modelValue","class","onKeydown"]),t("div",null,[e(i).path!==e(r)?(n(),s(v,{key:0},[Ve,e(a).length?$("",!0):(n(),s("span",Pe," (no match)"))],64)):(n(),s("span",Ie,"Edit path above to navigate"))])]),e(a).length?(n(),w(y,{key:0,icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:C(()=>[x(g,{pages:e(a),layouts:e(u)||[],matched:[],"matched-pending":e(a),onNavigate:N},null,8,["pages","layouts","matched-pending"])]),_:1})):$("",!0),x(y,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${e(d).length} routes registered in your application`,padding:"pr5"},{default:C(()=>[x(g,{pages:e(d),layouts:e(u)||[],matched:e(i).matched,"matched-pending":e(a),onNavigate:N},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"])])):(n(),w(R,{key:1,icon:"carbon-tree-view-alt",title:"Nuxt Routing",description:"Create `./pages/index.vue` to enable routing",actions:[{label:"Learn more",src:"https://nuxt.com/docs/getting-started/routing",attrs:{n:"primary"}},{label:"Enable Routing",handle(){return("rpc"in l?l.rpc:e(O)).runWizard("enablePages")}}]},null,8,["actions"]))}}});export{Ge as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as p}from"./StateEditor.vue.4b3d62c1.js";import"./StateEditor.vue.b4b0d299.js";import{a as _,o as s,f as c,F as x,z as h,i as o,b as y,l as b,u as n,w as l,c as S,m as d}from"./entry.53ee6248.js";import{_ as k}from"./NSectionBlock.7c35c1a8.js";import"./composables.8ff5f6b6.js";import"./NIcon.vue.6416325d.js";/* empty css */import"./_plugin-vue_export-helper.c27b6911.js";const g={key:1,italic:"",op35:"",mt2:"",px4:""},v=_({__name:"StateGroup",props:{state:null,prefix:{default:""}},setup(e){return(i,a)=>{const u=p;return s(),c("div",null,[e.state&&Object.keys(e.state).length>0?(s(!0),c(x,{key:0},h(e.state,(m,t)=>(s(),c("div",{key:t},[o(u,{state:m,name:t.startsWith(e.prefix)?t.slice(e.prefix.length):t},null,8,["state","name"])]))),128)):(s(),c("div",g," No data "))])}}}),B={key:0},G=_({__name:"payload",setup(e){const i=y(),a=b(()=>i.value?.nuxt.payload);return(u,m)=>{const t=v,r=k,f=p;return n(i)?(s(),c("div",B,[o(r,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:l(()=>[o(t,{state:n(a).state,prefix:"$s"},null,8,["state"])]),_:1}),o(r,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{default:l(()=>[o(t,{state:n(a).data},null,8,["state"])]),_:1}),n(a).functions&&Object.keys(n(a).functions).length?(s(),S(r,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions (experimental)"},{default:l(()=>[o(f,{"ml--6":"",state:n(a).functions},null,8,["state"])]),_:1})):d("",!0)])):d("",!0)}}});export{G as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as h}from"./Badge.35e3d75f.js";import{a as x,k as v}from"./state.647f0c35.js";import{o as k}from"./editor.b5249ede.js";import{a as f,l as _,o as e,f as d,h as l,t as g,u as t,K as y,c as a,m as u,i as C,w as b,F as B,z as I}from"./entry.53ee6248.js";import{_ as P}from"./NSectionBlock.7c35c1a8.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./asyncData.f4eab2cf.js";import"./context.c1f50e17.js";import"./NIcon.vue.6416325d.js";/* empty css */const $={flex:"~ gap2","items-center":""},E={op25:"","text-right":"","text-sm":"",w8:""},N={"font-mono":"","text-sm":""},S=f({__name:"PluginItem",props:{plugin:null,index:null},setup(p){const n=p,m=x(),i=_(()=>typeof n.plugin=="string"?{src:n.plugin}:n.plugin),r=_(()=>m.value?v(i.value.src,m.value.rootDir,!0):"");return(c,o)=>{const s=h;return e(),d("div",$,[l("div",E,g(p.index),1),l("button",{"hover:underline":"",class:y(t(r).startsWith(".")?"":"op50"),onClick:o[0]||(o[0]=z=>("openInEditor"in c?c.openInEditor:t(k))(t(i).src))},[l("code",N,g(t(r)),1)],2),l("div",null,[t(r).startsWith("#")?(e(),a(s,{key:0,"bg-rose-400:10":"","text-rose-400":"",textContent:"virtual"})):t(r).startsWith(".")?u("",!0):(e(),a(s,{key:1,"bg-gray-400:10":"","text-gray-400":"",textContent:"module"})),t(i).mode==="server"?(e(),a(s,{key:2,"bg-teal-400:10":"","text-teal-400":"",textContent:"server"})):u("",!0),t(i).mode==="client"?(e(),a(s,{key:3,"bg-orange-400:10":"","text-orange-400":"",textContent:"client"})):u("",!0)])])}}}),w={key:0},G=f({__name:"plugins",setup(p){const n=x();return(m,i)=>{const r=S,c=P;return t(n)?(e(),d("div",w,[C(c,{icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${t(n).plugins.length}`},{default:b(()=>[(e(!0),d(B,null,I(t(n).plugins,(o,s)=>(e(),a(r,{key:typeof o=="string"?o:o.src,plugin:o,index:s+1,py2:"","ml--4":"",border:"b base"},null,8,["plugin","index"]))),128))]),_:1},8,["description"])])):u("",!0)}}});export{G as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as m}from"./StateEditor.vue.4b3d62c1.js";import"./StateEditor.vue.b4b0d299.js";import{_ as u}from"./NSectionBlock.7c35c1a8.js";import{a as _,b as f,l as r,u as o,f as d,i as e,w as s,m as g,o as C}from"./entry.53ee6248.js";import{a as v}from"./state.647f0c35.js";import"./composables.8ff5f6b6.js";import"./NIcon.vue.6416325d.js";/* empty css */import"./_plugin-vue_export-helper.c27b6911.js";import"./asyncData.f4eab2cf.js";const x={key:0},V=_({__name:"runtime-configs",setup(b){const n=f(),c=v(),l=r(()=>n.value?.nuxt.payload),p=r(()=>{const t={...c.value?.runtimeConfig};return delete t.public,delete t.app,t});return(t,h)=>{const a=m,i=u;return o(n)?(C(),d("div",x,[e(i,{icon:"carbon-settings-services",text:"App Config"},{default:s(()=>[e(a,{"ml--6":"",state:o(n).appConfig},null,8,["state"])]),_:1}),e(i,{icon:"carbon-settings",text:"Public Runtime Config"},{default:s(()=>[e(a,{"ml--6":"",state:o(l).config?.public},null,8,["state"])]),_:1}),e(i,{icon:"carbon-locked",open:!1,text:"Private Runtime Config",description:"These values are not exposed to the client. Readonly in the DevTools."},{default:s(()=>[e(a,{"ml--6":"",state:o(p),readonly:""},null,8,["state"])]),_:1})])):g("",!0)}}});export{V as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,f as o,o as r}from"./entry.53ee6248.js";const c=e({__name:"server-routes",setup(t){return(n,a)=>(r(),o("div",null," WIP "))}});export{c as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a4 as h,b as v,l,A as C,U as S,I as a,$ as b}from"./entry.53ee6248.js";import{u as P}from"./asyncData.f4eab2cf.js";function x(e=""){return!e||!e.includes("\\")?e:e.replace(/\\/g,"/")}const A=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function y(){return typeof process<"u"?process.cwd().replace(/\\/g,"/"):"/"}const g=function(...e){e=e.map(t=>x(t));let s="",n=!1;for(let t=e.length-1;t>=-1&&!n;t--){const r=t>=0?e[t]:y();!r||r.length===0||(s=`${r}/${s}`,n=p(r))}return s=I(s,!n),n&&!p(s)?`/${s}`:s.length>0?s:"."};function I(e,s){let n="",t=0,r=-1,o=0,c=null;for(let u=0;u<=e.length;++u){if(u<e.length)c=e[u];else{if(c==="/")break;c="/"}if(c==="/"){if(!(r===u-1||o===1))if(o===2){if(n.length<2||t!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const d=n.lastIndexOf("/");d===-1?(n="",t=0):(n=n.slice(0,d),t=n.length-1-n.lastIndexOf("/")),r=u,o=0;continue}else if(n.length>0){n="",t=0,r=u,o=0;continue}}s&&(n+=n.length>0?"/..":"..",t=2)}else n.length>0?n+=`/${e.slice(r+1,u)}`:n=e.slice(r+1,u),t=u-r-1;r=u,o=0}else c==="."&&o!==-1?++o:o=-1}return n}const p=function(e){return A.test(e)},$=function(e,s){const n=g(e).split("/"),t=g(s).split("/"),r=[...n];for(const o of r){if(t[0]!==o)break;n.shift(),t.shift()}return[...n.map(()=>".."),...t].join("/")};function R(e){return!!e.match(/[/\\]node_modules[/\\]/)||m(e)}function m(e){return e[0]==="#"||!!e.match(/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/)}function N(e){if(m(e))return e;const s=e.replace(/\\/g,"/").match(/.*\/node_modules\/(.*)$/)?.[1];if(s)return s.startsWith("@")?s.split("/").slice(0,2).join("/"):s.split("/")[0]}function _(e){if(m(e))return e;const s=e.replace(/\\/g,"/").match(/.*\/node_modules\/(.*)$/)?.[1];if(s)return s}function M(e){if(e)return["nuxt","#app","#head","vue"].includes(e)}function T(e,s,n=!1){if(R(e))return n?_(e):N(e);try{let t=$(s,e);return!t.startsWith("./")&&!t.startsWith("../")&&(t=`./${t}`),t.startsWith("./.nuxt/")&&(t=`#build${t.slice(7)}`),t}catch{return e}}function k(e){return e.split(/(:\w+[\?\*]?)/).filter(Boolean)}function i(e,s,n){const t=h();return t.payload.unique||(t.payload.unique={}),t.payload.unique[e]||(t.payload.unique[e]=P(e,s,n)),t.payload.unique[e].data}function O(){return typeof navigator<"u"&&navigator.platform.toLowerCase().includes("mac")}function W(e,s,n=!1){return s.reduce((t,r)=>(r in e&&(!n||e[r]!==void 0)&&(t[r]=e[r]),t),{})}let f;async function j(){return f||(f=await b("https://cdn.jsdelivr.net/npm/@nuxt/modules@latest/modules.json"),f)}function B(){const e=v(),s=i("getComponents",()=>a.getComponents()),n=l(()=>Object.entries(e.value?.nuxt?.vueApp._context.components||{}).map(([t])=>({pascalName:t,global:!0})).filter(t=>!(s.value||[]).find(r=>r.pascalName===t.pascalName)));return l(()=>[...n.value,...s.value||[]].sort((t,r)=>t.pascalName.localeCompare(r.pascalName)))}function E(){return i("usePackageVersions",()=>a.usePackageVersions())}function w(){return i("getServerPages",()=>a.getServerPages())}function H(){return i("getComponentsRelationships",()=>a.getComponentsRelationships())}function V(){return i("getServerHooks",()=>a.getServerHooks(),{default:()=>[]})}function F(){return i("getServerLayouts",()=>a.getServerLayouts())}function U(){return i("getAutoImports",()=>a.getAutoImports())}function D(){return i("getServerConfig",()=>a.getServerConfig())}function z(){return i("getCustomTabs",()=>a.getCustomTabs())}function Z(){const e=C(),s=z(),n=l(()=>e.getRoutes().filter(o=>o.path.startsWith("/modules/")&&o.meta.title&&!o.meta.wip).sort((o,c)=>(o.meta.order||100)-(c.meta.order||100)).map(o=>({name:o.name,path:o.path,...o.meta}))),t=l(()=>(s.value||[]).filter(o=>o.name.startsWith("builtin-"))),r=l(()=>(s.value||[]).filter(o=>!o.name.startsWith("builtin-")));return{custom:r,builtin:l(()=>[...n.value,...t.value]),all:l(()=>[...n.value,...t.value,...r.value])}}function G(){const e=S(),s=w();return l(()=>(e.value?.getRoutes()||[]).map(n=>W(n,["path","name","meta","props","children"])).map(n=>({...s.value?.find(t=>t.name&&t.name===n.name),...n})))}export{D as a,F as b,H as c,B as d,Z as e,V as f,N as g,U as h,R as i,M as j,T as k,j as l,E as m,G as n,O as o,k as p,W as q,w as u};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{_ as st}from"./NTextInput.vue.0fd513ee.js";import{_ as it}from"./nuxt-link.bdfe480b.js";import{u as ee,l as ve,C as rt,q as Oe,a2 as at,o as _e,f as Ne,r as ot,L as ct,a as lt,Q as ut,J as ht,G as pt,c as Me,w as we,i as Te,h as Le,x as dt,z as mt,K as gt,k as ft,t as ze,F as _t}from"./entry.53ee6248.js";import{u as bt}from"./asyncData.f4eab2cf.js";import{u as yt}from"./composables.8ff5f6b6.js";import{F as kt}from"./fuse.esm.88e2763d.js";import"./NIcon.vue.6416325d.js";const vt={ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1};function St(e,i={}){i={...vt,...i};const h=Ve(i);return h.dispatch(e),h.toString()}function Ve(e){const i=[];let h=[];const n=c=>{i.push(c)};return{toString(){return i.join("")},getContext(){return h},dispatch(c){return e.replacer&&(c=e.replacer(c)),this["_"+(c===null?"null":typeof c)](c)},_object(c){const s=/\[object (.*)]/i,m=Object.prototype.toString.call(c),k=s.exec(m),L=k?k[1].toLowerCase():"unknown:["+m.toLowerCase()+"]";let o=null;if((o=h.indexOf(c))>=0)return this.dispatch("[CIRCULAR:"+o+"]");if(h.push(c),typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(c))return n("buffer:"),n(c.toString("utf8"));if(L!=="object"&&L!=="function"&&L!=="asyncfunction")if(this["_"+L])this["_"+L](c);else{if(e.ignoreUnknown)return n("["+L+"]");throw new Error('Unknown object type "'+L+'"')}else{let N=Object.keys(c);e.unorderedObjects&&(N=N.sort()),e.respectType!==!1&&!Ge(c)&&N.splice(0,0,"prototype","__proto__","letructor"),e.excludeKeys&&(N=N.filter(function(p){return!e.excludeKeys(p)})),n("object:"+N.length+":");for(const p of N)this.dispatch(p),n(":"),e.excludeValues||this.dispatch(c[p]),n(",")}},_array(c,s){if(s=typeof s<"u"?s:e.unorderedArrays!==!1,n("array:"+c.length+":"),!s||c.length<=1){for(const L of c)this.dispatch(L);return}const m=[],k=c.map(L=>{const o=Ve(e);return o.dispatch(L),m.push(o.getContext()),o.toString()});return h=[...h,...m],k.sort(),this._array(k,!1)},_date(c){return n("date:"+c.toJSON())},_symbol(c){return n("symbol:"+c.toString())},_error(c){return n("error:"+c.toString())},_boolean(c){return n("bool:"+c.toString())},_string(c){n("string:"+c.length+":"),n(c.toString())},_function(c){n("fn:"),Ge(c)?this.dispatch("[native]"):this.dispatch(c.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(c.name)),e.respectFunctionProperties&&this._object(c)},_number(c){return n("number:"+c.toString())},_xml(c){return n("xml:"+c.toString())},_null(){return n("Null")},_undefined(){return n("Undefined")},_regexp(c){return n("regex:"+c.toString())},_uint8array(c){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(c))},_uint8clampedarray(c){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(c))},_int8array(c){return n("int8array:"),this.dispatch(Array.prototype.slice.call(c))},_uint16array(c){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(c))},_int16array(c){return n("int16array:"),this.dispatch(Array.prototype.slice.call(c))},_uint32array(c){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(c))},_int32array(c){return n("int32array:"),this.dispatch(Array.prototype.slice.call(c))},_float32array(c){return n("float32array:"),this.dispatch(Array.prototype.slice.call(c))},_float64array(c){return n("float64array:"),this.dispatch(Array.prototype.slice.call(c))},_arraybuffer(c){return n("arraybuffer:"),this.dispatch(new Uint8Array(c))},_url(c){return n("url:"+c.toString())},_map(c){n("map:");const s=[...c];return this._array(s,e.unorderedSets!==!1)},_set(c){n("set:");const s=[...c];return this._array(s,e.unorderedSets!==!1)},_file(c){return n("file:"),this.dispatch([c.name,c.size,c.type,c.lastModfied])},_blob(){if(e.ignoreUnknown)return n("[blob]");throw new Error(`Hashing Blob objects is currently not supported
|
|
2
|
-
Use "options.replacer" or "options.ignoreUnknown"
|
|
3
|
-
`)},_domwindow(){return n("domwindow")},_bigint(c){return n("bigint:"+c.toString())},_process(){return n("process")},_timer(){return n("timer")},_pipe(){return n("pipe")},_tcp(){return n("tcp")},_udp(){return n("udp")},_tty(){return n("tty")},_statwatcher(){return n("statwatcher")},_securecontext(){return n("securecontext")},_connection(){return n("connection")},_zlib(){return n("zlib")},_context(){return n("context")},_nodescript(){return n("nodescript")},_httpparser(){return n("httpparser")},_dataview(){return n("dataview")},_signal(){return n("signal")},_fsevent(){return n("fsevent")},_tlswrap(){return n("tlswrap")}}}function Ge(e){return typeof e!="function"?!1:/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code]\s+}$/i.exec(Function.prototype.toString.call(e))!=null}class be{constructor(i,h){i=this.words=i||[],this.sigBytes=h!==void 0?h:i.length*4}toString(i){return(i||wt).stringify(this)}concat(i){if(this.clamp(),this.sigBytes%4)for(let h=0;h<i.sigBytes;h++){const n=i.words[h>>>2]>>>24-h%4*8&255;this.words[this.sigBytes+h>>>2]|=n<<24-(this.sigBytes+h)%4*8}else for(let h=0;h<i.sigBytes;h+=4)this.words[this.sigBytes+h>>>2]=i.words[h>>>2];return this.sigBytes+=i.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new be([...this.words])}}const wt={stringify(e){const i=[];for(let h=0;h<e.sigBytes;h++){const n=e.words[h>>>2]>>>24-h%4*8&255;i.push((n>>>4).toString(16),(n&15).toString(16))}return i.join("")}},Lt={stringify(e){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",h=[];for(let n=0;n<e.sigBytes;n+=3){const c=e.words[n>>>2]>>>24-n%4*8&255,s=e.words[n+1>>>2]>>>24-(n+1)%4*8&255,m=e.words[n+2>>>2]>>>24-(n+2)%4*8&255,k=c<<16|s<<8|m;for(let L=0;L<4&&n*8+L*6<e.sigBytes*8;L++)h.push(i.charAt(k>>>6*(3-L)&63))}return h.join("")}},Nt={parse(e){const i=e.length,h=[];for(let n=0;n<i;n++)h[n>>>2]|=(e.charCodeAt(n)&255)<<24-n%4*8;return new be(h,i)}},xt={parse(e){return Nt.parse(unescape(encodeURIComponent(e)))}};class Pt{constructor(){this._minBufferSize=0,this.blockSize=512/32,this.reset()}reset(){this._data=new be,this._nDataBytes=0}_append(i){typeof i=="string"&&(i=xt.parse(i)),this._data.concat(i),this._nDataBytes+=i.sigBytes}_doProcessBlock(i,h){}_process(i){let h,n=this._data.sigBytes/(this.blockSize*4);i?n=Math.ceil(n):n=Math.max((n|0)-this._minBufferSize,0);const c=n*this.blockSize,s=Math.min(c*4,this._data.sigBytes);if(c){for(let m=0;m<c;m+=this.blockSize)this._doProcessBlock(this._data.words,m);h=this._data.words.splice(0,c),this._data.sigBytes-=s}return new be(h,s)}}class jt extends Pt{update(i){return this._append(i),this._process(),this}finalize(i){i&&this._append(i)}}const At=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],Tt=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],he=[];class Rt extends jt{constructor(){super(),this.reset()}reset(){super.reset(),this._hash=new be([...At])}_doProcessBlock(i,h){const n=this._hash.words;let c=n[0],s=n[1],m=n[2],k=n[3],L=n[4],o=n[5],N=n[6],p=n[7];for(let y=0;y<64;y++){if(y<16)he[y]=i[h+y]|0;else{const d=he[y-15],S=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,u=he[y-2],t=(u<<15|u>>>17)^(u<<13|u>>>19)^u>>>10;he[y]=S+he[y-7]+t+he[y-16]}const A=L&o^~L&N,f=c&s^c&m^s&m,P=(c<<30|c>>>2)^(c<<19|c>>>13)^(c<<10|c>>>22),x=(L<<26|L>>>6)^(L<<21|L>>>11)^(L<<7|L>>>25),v=p+x+A+Tt[y]+he[y],g=P+f;p=N,N=o,o=L,L=k+v|0,k=m,m=s,s=c,c=v+g|0}n[0]=n[0]+c|0,n[1]=n[1]+s|0,n[2]=n[2]+m|0,n[3]=n[3]+k|0,n[4]=n[4]+L|0,n[5]=n[5]+o|0,n[6]=n[6]+N|0,n[7]=n[7]+p|0}finalize(i){super.finalize(i);const h=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(h/4294967296),this._data.words[(n+64>>>9<<4)+15]=h,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function It(e){return new Rt().finalize(e).toString(Lt)}function Ot(e,i={}){const h=typeof e=="string"?e:St(e,i);return It(h).slice(0,10)}function Bt(e,i,h){const[n={},c]=typeof i=="string"?[{},i]:[i,h],s=n.key||Ot([c,ee(n.baseURL),typeof e=="string"?e:"",ee(n.params||n.query)]);if(!s||typeof s!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+s);if(!e)throw new Error("[nuxt] [useFetch] request is missing.");const m=s===c?"$f"+s:s,k=ve(()=>{let S=e;return typeof S=="function"&&(S=S()),ee(S)}),{server:L,lazy:o,default:N,transform:p,pick:y,watch:A,immediate:f,...P}=n,x=rt({...P,cache:typeof n.cache=="boolean"?void 0:n.cache}),v={server:L,lazy:o,default:N,transform:p,pick:y,immediate:f,watch:[x,k,...A||[]]};let g;return bt(m,()=>(g?.abort?.(),g=typeof AbortController<"u"?new AbortController:{},typeof k.value=="string"&&k.value.startsWith("/"),(n.$fetch||globalThis.$fetch)(k.value,{signal:g.signal,...x})),v)}var Qe=typeof globalThis<"u"?globalThis:typeof{}<"u"?{}:typeof global<"u"?global:typeof self<"u"?self:{},Se={},Et={get exports(){return Se},set exports(e){Se=e}};(function(e,i){(function(h,n){e.exports=n()})(Qe,()=>{return h={770:function(c,s,m){var k=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(s,"__esModule",{value:!0}),s.setDefaultDebugCall=s.createOnigScanner=s.createOnigString=s.loadWASM=s.OnigScanner=s.OnigString=void 0;const L=k(m(418));let o=null,N=!1;class p{static _utf8ByteLength(v){let g=0;for(let d=0,S=v.length;d<S;d++){const u=v.charCodeAt(d);let t=u,r=!1;if(u>=55296&&u<=56319&&d+1<S){const l=v.charCodeAt(d+1);l>=56320&&l<=57343&&(t=65536+(u-55296<<10)|l-56320,r=!0)}g+=t<=127?1:t<=2047?2:t<=65535?3:4,r&&d++}return g}constructor(v){const g=v.length,d=p._utf8ByteLength(v),S=d!==g,u=S?new Uint32Array(g+1):null;S&&(u[g]=d);const t=S?new Uint32Array(d+1):null;S&&(t[d]=g);const r=new Uint8Array(d);let l=0;for(let a=0;a<g;a++){const b=v.charCodeAt(a);let _=b,w=!1;if(b>=55296&&b<=56319&&a+1<g){const j=v.charCodeAt(a+1);j>=56320&&j<=57343&&(_=65536+(b-55296<<10)|j-56320,w=!0)}S&&(u[a]=l,w&&(u[a+1]=l),_<=127?t[l+0]=a:_<=2047?(t[l+0]=a,t[l+1]=a):_<=65535?(t[l+0]=a,t[l+1]=a,t[l+2]=a):(t[l+0]=a,t[l+1]=a,t[l+2]=a,t[l+3]=a)),_<=127?r[l++]=_:_<=2047?(r[l++]=192|(1984&_)>>>6,r[l++]=128|(63&_)>>>0):_<=65535?(r[l++]=224|(61440&_)>>>12,r[l++]=128|(4032&_)>>>6,r[l++]=128|(63&_)>>>0):(r[l++]=240|(1835008&_)>>>18,r[l++]=128|(258048&_)>>>12,r[l++]=128|(4032&_)>>>6,r[l++]=128|(63&_)>>>0),w&&a++}this.utf16Length=g,this.utf8Length=d,this.utf16Value=v,this.utf8Value=r,this.utf16OffsetToUtf8=u,this.utf8OffsetToUtf16=t}createString(v){const g=v._omalloc(this.utf8Length);return v.HEAPU8.set(this.utf8Value,g),g}}class y{constructor(v){if(this.id=++y.LAST_ID,!o)throw new Error("Must invoke loadWASM first.");this._onigBinding=o,this.content=v;const g=new p(v);this.utf16Length=g.utf16Length,this.utf8Length=g.utf8Length,this.utf16OffsetToUtf8=g.utf16OffsetToUtf8,this.utf8OffsetToUtf16=g.utf8OffsetToUtf16,this.utf8Length<1e4&&!y._sharedPtrInUse?(y._sharedPtr||(y._sharedPtr=o._omalloc(1e4)),y._sharedPtrInUse=!0,o.HEAPU8.set(g.utf8Value,y._sharedPtr),this.ptr=y._sharedPtr):this.ptr=g.createString(o)}convertUtf8OffsetToUtf16(v){return this.utf8OffsetToUtf16?v<0?0:v>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[v]:v}convertUtf16OffsetToUtf8(v){return this.utf16OffsetToUtf8?v<0?0:v>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[v]:v}dispose(){this.ptr===y._sharedPtr?y._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}s.OnigString=y,y.LAST_ID=0,y._sharedPtr=0,y._sharedPtrInUse=!1;class A{constructor(v){if(!o)throw new Error("Must invoke loadWASM first.");const g=[],d=[];for(let r=0,l=v.length;r<l;r++){const a=new p(v[r]);g[r]=a.createString(o),d[r]=a.utf8Length}const S=o._omalloc(4*v.length);o.HEAPU32.set(g,S/4);const u=o._omalloc(4*v.length);o.HEAPU32.set(d,u/4);const t=o._createOnigScanner(S,u,v.length);for(let r=0,l=v.length;r<l;r++)o._ofree(g[r]);o._ofree(u),o._ofree(S),t===0&&function(r){throw new Error(r.UTF8ToString(r._getLastOnigError()))}(o),this._onigBinding=o,this._ptr=t}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(v,g,d){let S=N,u=0;if(typeof d=="number"?(8&d&&(S=!0),u=d):typeof d=="boolean"&&(S=d),typeof v=="string"){v=new y(v);const t=this._findNextMatchSync(v,g,S,u);return v.dispose(),t}return this._findNextMatchSync(v,g,S,u)}_findNextMatchSync(v,g,d,S){const u=this._onigBinding;let t;if(t=d?u._findNextOnigScannerMatchDbg(this._ptr,v.id,v.ptr,v.utf8Length,v.convertUtf16OffsetToUtf8(g),S):u._findNextOnigScannerMatch(this._ptr,v.id,v.ptr,v.utf8Length,v.convertUtf16OffsetToUtf8(g),S),t===0)return null;const r=u.HEAPU32;let l=t/4;const a=r[l++],b=r[l++];let _=[];for(let w=0;w<b;w++){const j=v.convertUtf8OffsetToUtf16(r[l++]),R=v.convertUtf8OffsetToUtf16(r[l++]);_[w]={start:j,end:R,length:R-j}}return{index:a,captureIndices:_}}}s.OnigScanner=A;let f=!1,P=null;s.loadWASM=function(x){if(f)return P;let v,g,d,S;if(f=!0,function(u){return typeof u.instantiator=="function"}(x))v=x.instantiator,g=x.print;else{let u;(function(t){return t.data!==void 0})(x)?(u=x.data,g=x.print):u=x,v=function(t){return typeof Response<"u"&&t instanceof Response}(u)?typeof WebAssembly.instantiateStreaming=="function"?function(t){return r=>WebAssembly.instantiateStreaming(t,r)}(u):function(t){return async r=>{const l=await t.arrayBuffer();return WebAssembly.instantiate(l,r)}}(u):function(t){return r=>WebAssembly.instantiate(t,r)}(u)}return P=new Promise((u,t)=>{d=u,S=t}),function(u,t,r,l){(0,L.default)({print:t,instantiateWasm:(a,b)=>{if(typeof performance>"u"){const _=()=>Date.now();a.env.emscripten_get_now=_,a.wasi_snapshot_preview1.emscripten_get_now=_}return u(a).then(_=>b(_.instance),l),{}}}).then(a=>{o=a,r()})}(v,g,d,S),P},s.createOnigString=function(x){return new y(x)},s.createOnigScanner=function(x){return new A(x)},s.setDefaultDebugCall=function(x){N=x}},418:c=>{var s=(typeof document<"u"&&document.currentScript&&document.currentScript.src,function(m){var k,L,o=(m=m||{})!==void 0?m:{};o.ready=new Promise(function(I,B){k=I,L=B});var N,p=Object.assign({},o),y=!1,A="";function f(I){return o.locateFile?o.locateFile(I,A):A+I}N=function(I){let B;return typeof readbuffer=="function"?new Uint8Array(readbuffer(I)):(B=read(I,"binary"),S(typeof B=="object"),B)},typeof scriptArgs<"u"&&scriptArgs,typeof onig_print<"u"&&(typeof console>"u"&&(console={}),console.log=onig_print,console.warn=console.error=typeof printErr<"u"?printErr:onig_print);var P,x,v=o.print||console.log.bind(console),g=o.printErr||console.warn.bind(console);Object.assign(o,p),p=null,o.arguments&&o.arguments,o.thisProgram&&o.thisProgram,o.quit&&o.quit,o.wasmBinary&&(P=o.wasmBinary),o.noExitRuntime,typeof WebAssembly!="object"&&G("no native wasm support detected");var d=!1;function S(I,B){I||G(B)}var u,t,r,l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function a(I,B,X){for(var ne=B+X,C=B;I[C]&&!(C>=ne);)++C;if(C-B>16&&I.buffer&&l)return l.decode(I.subarray(B,C));for(var U="";B<C;){var Y=I[B++];if(128&Y){var me=63&I[B++];if((224&Y)!=192){var ge=63&I[B++];if((Y=(240&Y)==224?(15&Y)<<12|me<<6|ge:(7&Y)<<18|me<<12|ge<<6|63&I[B++])<65536)U+=String.fromCharCode(Y);else{var Ee=Y-65536;U+=String.fromCharCode(55296|Ee>>10,56320|1023&Ee)}}else U+=String.fromCharCode((31&Y)<<6|me)}else U+=String.fromCharCode(Y)}return U}function b(I,B){return I?a(t,I,B):""}function _(I){u=I,o.HEAP8=new Int8Array(I),o.HEAP16=new Int16Array(I),o.HEAP32=new Int32Array(I),o.HEAPU8=t=new Uint8Array(I),o.HEAPU16=new Uint16Array(I),o.HEAPU32=r=new Uint32Array(I),o.HEAPF32=new Float32Array(I),o.HEAPF64=new Float64Array(I)}o.INITIAL_MEMORY;var w=[],j=[],R=[];function O(){if(o.preRun)for(typeof o.preRun=="function"&&(o.preRun=[o.preRun]);o.preRun.length;)F(o.preRun.shift());se(w)}function E(){se(j)}function q(){if(o.postRun)for(typeof o.postRun=="function"&&(o.postRun=[o.postRun]);o.postRun.length;)H(o.postRun.shift());se(R)}function F(I){w.unshift(I)}function M(I){j.unshift(I)}function H(I){R.unshift(I)}var V=0,W=null;function D(I){V++,o.monitorRunDependencies&&o.monitorRunDependencies(V)}function z(I){if(V--,o.monitorRunDependencies&&o.monitorRunDependencies(V),V==0&&W){var B=W;W=null,B()}}function G(I){o.onAbort&&o.onAbort(I),g(I="Aborted("+I+")"),d=!0,I+=". Build with -sASSERTIONS for more info.";var B=new WebAssembly.RuntimeError(I);throw L(B),B}var J,T,Q="data:application/octet-stream;base64,";function $(I){return I.startsWith(Q)}function te(I){try{if(I==J&&P)return new Uint8Array(P);if(N)return N(I);throw"both async and sync fetching of the wasm failed"}catch(B){G(B)}}function ae(){return P||!y||typeof fetch!="function"?Promise.resolve().then(function(){return te(J)}):fetch(J,{credentials:"same-origin"}).then(function(I){if(!I.ok)throw"failed to load wasm binary file at '"+J+"'";return I.arrayBuffer()}).catch(function(){return te(J)})}function ye(){var I={env:ue,wasi_snapshot_preview1:ue};function B(C,U){var Y=C.exports;o.asm=Y,_((x=o.asm.memory).buffer),o.asm.__indirect_function_table,M(o.asm.__wasm_call_ctors),z()}function X(C){B(C.instance)}function ne(C){return ae().then(function(U){return WebAssembly.instantiate(U,I)}).then(function(U){return U}).then(C,function(U){g("failed to asynchronously prepare wasm: "+U),G(U)})}if(D(),o.instantiateWasm)try{return o.instantiateWasm(I,B)}catch(C){g("Module.instantiateWasm callback failed with error: "+C),L(C)}return(P||typeof WebAssembly.instantiateStreaming!="function"||$(J)||typeof fetch!="function"?ne(X):fetch(J,{credentials:"same-origin"}).then(function(C){return WebAssembly.instantiateStreaming(C,I).then(X,function(U){return g("wasm streaming compile failed: "+U),g("falling back to ArrayBuffer instantiation"),ne(X)})})).catch(L),{}}function se(I){for(;I.length>0;)I.shift()(o)}function ie(I,B,X){t.copyWithin(I,B,B+X)}function pe(I){try{return x.grow(I-u.byteLength+65535>>>16),_(x.buffer),1}catch{}}function oe(I){var B,X=t.length,ne=2147483648;if((I>>>=0)>ne)return!1;for(var C=1;C<=4;C*=2){var U=X*(1+.2/C);if(U=Math.min(U,I+100663296),pe(Math.min(ne,(B=Math.max(I,U))+(65536-B%65536)%65536)))return!0}return!1}$(J="onig.wasm")||(J=f(J)),T=typeof dateNow<"u"?dateNow:()=>performance.now();var ce=[null,[],[]];function le(I,B){var X=ce[I];B===0||B===10?((I===1?v:g)(a(X,0)),X.length=0):X.push(B)}function re(I,B,X,ne){for(var C=0,U=0;U<X;U++){var Y=r[B>>2],me=r[B+4>>2];B+=8;for(var ge=0;ge<me;ge++)le(I,t[Y+ge]);C+=me}return r[ne>>2]=C,0}var Z,ue={emscripten_get_now:T,emscripten_memcpy_big:ie,emscripten_resize_heap:oe,fd_write:re};function de(I){function B(){Z||(Z=!0,o.calledRun=!0,d||(E(),k(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),q()))}V>0||(O(),V>0||(o.setStatus?(o.setStatus("Running..."),setTimeout(function(){setTimeout(function(){o.setStatus("")},1),B()},1)):B()))}if(ye(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.__wasm_call_ctors).apply(null,arguments)},o.___errno_location=function(){return(o.___errno_location=o.asm.__errno_location).apply(null,arguments)},o._omalloc=function(){return(o._omalloc=o.asm.omalloc).apply(null,arguments)},o._ofree=function(){return(o._ofree=o.asm.ofree).apply(null,arguments)},o._getLastOnigError=function(){return(o._getLastOnigError=o.asm.getLastOnigError).apply(null,arguments)},o._createOnigScanner=function(){return(o._createOnigScanner=o.asm.createOnigScanner).apply(null,arguments)},o._freeOnigScanner=function(){return(o._freeOnigScanner=o.asm.freeOnigScanner).apply(null,arguments)},o._findNextOnigScannerMatch=function(){return(o._findNextOnigScannerMatch=o.asm.findNextOnigScannerMatch).apply(null,arguments)},o._findNextOnigScannerMatchDbg=function(){return(o._findNextOnigScannerMatchDbg=o.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},o.stackSave=function(){return(o.stackSave=o.asm.stackSave).apply(null,arguments)},o.stackRestore=function(){return(o.stackRestore=o.asm.stackRestore).apply(null,arguments)},o.stackAlloc=function(){return(o.stackAlloc=o.asm.stackAlloc).apply(null,arguments)},o.dynCall_jiji=function(){return(o.dynCall_jiji=o.asm.dynCall_jiji).apply(null,arguments)},o.UTF8ToString=b,W=function I(){Z||de(),Z||(W=I)},o.preInit)for(typeof o.preInit=="function"&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return de(),m.ready});c.exports=s}},n={},function c(s){var m=n[s];if(m!==void 0)return m.exports;var k=n[s]={exports:{}};return h[s].call(k.exports,k,k.exports,c),k.exports}(770);var h,n})})(Et);var Pe={},Mt={get exports(){return Pe},set exports(e){Pe=e}};(function(e,i){(function(h,n){e.exports=n()})(Qe,function(){return(()=>{var h={350:(c,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.UseOnigurumaFindOptions=s.DebugFlags=void 0,s.DebugFlags={InDebugMode:typeof process<"u"&&!1},s.UseOnigurumaFindOptions=!1},36:(c,s)=>{var m;Object.defineProperty(s,"__esModule",{value:!0}),s.toOptionalTokenType=s.EncodedTokenAttributes=void 0,(m=s.EncodedTokenAttributes||(s.EncodedTokenAttributes={})).toBinaryStr=function(k){let L=k.toString(2);for(;L.length<32;)L="0"+L;return L},m.print=function(k){const L=m.getLanguageId(k),o=m.getTokenType(k),N=m.getFontStyle(k),p=m.getForeground(k),y=m.getBackground(k);console.log({languageId:L,tokenType:o,fontStyle:N,foreground:p,background:y})},m.getLanguageId=function(k){return(255&k)>>>0},m.getTokenType=function(k){return(768&k)>>>8},m.containsBalancedBrackets=function(k){return(1024&k)!=0},m.getFontStyle=function(k){return(30720&k)>>>11},m.getForeground=function(k){return(16744448&k)>>>15},m.getBackground=function(k){return(4278190080&k)>>>24},m.set=function(k,L,o,N,p,y,A){let f=m.getLanguageId(k),P=m.getTokenType(k),x=m.containsBalancedBrackets(k)?1:0,v=m.getFontStyle(k),g=m.getForeground(k),d=m.getBackground(k);return L!==0&&(f=L),o!==8&&(P=o),N!==null&&(x=N?1:0),p!==-1&&(v=p),y!==0&&(g=y),A!==0&&(d=A),(f<<0|P<<8|x<<10|v<<11|g<<15|d<<24)>>>0},s.toOptionalTokenType=function(k){return k}},996:(c,s,m)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.BasicScopeAttributesProvider=s.BasicScopeAttributes=void 0;const k=m(878);class L{constructor(y,A){this.languageId=y,this.tokenType=A}}s.BasicScopeAttributes=L;class o{constructor(y,A){this._getBasicScopeAttributes=new k.CachedFn(f=>{const P=this._scopeToLanguage(f),x=this._toStandardTokenType(f);return new L(P,x)}),this._defaultAttributes=new L(y,8),this._embeddedLanguagesMatcher=new N(Object.entries(A||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(y){return y===null?o._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(y)}_scopeToLanguage(y){return this._embeddedLanguagesMatcher.match(y)||0}_toStandardTokenType(y){const A=y.match(o.STANDARD_TOKEN_TYPE_REGEXP);if(!A)return 8;switch(A[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}s.BasicScopeAttributesProvider=o,o._NULL_SCOPE_METADATA=new L(0,0),o.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class N{constructor(y){if(y.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(y);const A=y.map(([f,P])=>k.escapeRegExpCharacters(f));A.sort(),A.reverse(),this.scopesRegExp=new RegExp(`^((${A.join(")|(")}))($|\\.)`,"")}}match(y){if(!this.scopesRegExp)return;const A=y.match(this.scopesRegExp);return A?this.values.get(A[1]):void 0}}},947:(c,s,m)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.LineTokens=s.BalancedBracketSelectors=s.StateStack=s.AttributedScopeStack=s.Grammar=s.createGrammar=void 0;const k=m(350),L=m(36),o=m(736),N=m(44),p=m(792),y=m(583),A=m(878),f=m(996),P=m(47);function x(l,a,b,_,w){const j=o.createMatchers(a,v),R=p.RuleFactory.getCompiledRuleId(b,_,w.repository);for(const O of j)l.push({debugSelector:a,matcher:O.matcher,ruleId:R,grammar:w,priority:O.priority})}function v(l,a){if(a.length<l.length)return!1;let b=0;return l.every(_=>{for(let w=b;w<a.length;w++)if(g(a[w],_))return b=w+1,!0;return!1})}function g(l,a){if(!l)return!1;if(l===a)return!0;const b=a.length;return l.length>b&&l.substr(0,b)===a&&l[b]==="."}s.createGrammar=function(l,a,b,_,w,j,R,O){return new d(l,a,b,_,w,j,R,O)};class d{constructor(a,b,_,w,j,R,O,E){if(this._rootScopeName=a,this.balancedBracketSelectors=R,this._onigLib=E,this._basicScopeAttributesProvider=new f.BasicScopeAttributesProvider(_,w),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=O,this._grammar=S(b,null),this._injections=null,this._tokenTypeMatchers=[],j)for(const q of Object.keys(j)){const F=o.createMatchers(q,v);for(const M of F)this._tokenTypeMatchers.push({matcher:M.matcher,type:j[q]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const a of this._ruleId2desc)a&&a.dispose()}createOnigScanner(a){return this._onigLib.createOnigScanner(a)}createOnigString(a){return this._onigLib.createOnigString(a)}getMetadataForScope(a){return this._basicScopeAttributesProvider.getBasicScopeAttributes(a)}_collectInjections(){const a=[],b=this._rootScopeName,_=(w=>w===this._rootScopeName?this._grammar:this.getExternalGrammar(w))(b);if(_){const w=_.injections;if(w)for(let R in w)x(a,R,w[R],this,_);const j=this._grammarRepository.injections(b);j&&j.forEach(R=>{const O=this.getExternalGrammar(R);if(O){const E=O.injectionSelector;E&&x(a,E,O,this,O)}})}return a.sort((w,j)=>w.priority-j.priority),a}getInjections(){if(this._injections===null&&(this._injections=this._collectInjections(),k.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const a of this._injections)console.log(` - ${a.debugSelector}`)}return this._injections}registerRule(a){const b=++this._lastRuleId,_=a(p.ruleIdFromNumber(b));return this._ruleId2desc[b]=_,_}getRule(a){return this._ruleId2desc[p.ruleIdToNumber(a)]}getExternalGrammar(a,b){if(this._includedGrammars[a])return this._includedGrammars[a];if(this._grammarRepository){const _=this._grammarRepository.lookup(a);if(_)return this._includedGrammars[a]=S(_,b&&b.$base),this._includedGrammars[a]}}tokenizeLine(a,b,_=0){const w=this._tokenize(a,b,!1,_);return{tokens:w.lineTokens.getResult(w.ruleStack,w.lineLength),ruleStack:w.ruleStack,stoppedEarly:w.stoppedEarly}}tokenizeLine2(a,b,_=0){const w=this._tokenize(a,b,!0,_);return{tokens:w.lineTokens.getBinaryResult(w.ruleStack,w.lineLength),ruleStack:w.ruleStack,stoppedEarly:w.stoppedEarly}}_tokenize(a,b,_,w){let j;if(this._rootId===-1&&(this._rootId=p.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),b&&b!==t.NULL)j=!1,b.reset();else{j=!0;const F=this._basicScopeAttributesProvider.getDefaultAttributes(),M=this.themeProvider.getDefaults(),H=L.EncodedTokenAttributes.set(0,F.languageId,F.tokenType,null,M.fontStyle,M.foregroundId,M.backgroundId),V=this.getRule(this._rootId).getName(null,null);let W;W=V?u.createRootAndLookUpScopeName(V,H,this):u.createRoot("unknown",H),b=new t(null,this._rootId,-1,-1,!1,null,W,W)}a+=`
|
|
4
|
-
`;const R=this.createOnigString(a),O=R.content.length,E=new r(_,a,this._tokenTypeMatchers,this.balancedBracketSelectors),q=P._tokenizeString(this,R,j,0,b,E,!0,w);return N.disposeOnigString(R),{lineLength:O,lineTokens:E,ruleStack:q.stack,stoppedEarly:q.stoppedEarly}}}function S(l,a){return(l=A.clone(l)).repository=l.repository||{},l.repository.$self={$vscodeTextmateLocation:l.$vscodeTextmateLocation,patterns:l.patterns,name:l.scopeName},l.repository.$base=a||l.repository.$self,l}s.Grammar=d;class u{constructor(a,b,_){this.parent=a,this.scopePath=b,this.tokenAttributes=_}static createRoot(a,b){return new u(null,new y.ScopeStack(null,a),b)}static createRootAndLookUpScopeName(a,b,_){const w=_.getMetadataForScope(a),j=new y.ScopeStack(null,a),R=_.themeProvider.themeMatch(j),O=u.mergeAttributes(b,w,R);return new u(null,j,O)}get scopeName(){return this.scopePath.scopeName}equals(a){return u._equals(this,a)}static _equals(a,b){for(;;){if(a===b||!a&&!b)return!0;if(!a||!b||a.scopeName!==b.scopeName||a.tokenAttributes!==b.tokenAttributes)return!1;a=a.parent,b=b.parent}}static mergeAttributes(a,b,_){let w=-1,j=0,R=0;return _!==null&&(w=_.fontStyle,j=_.foregroundId,R=_.backgroundId),L.EncodedTokenAttributes.set(a,b.languageId,b.tokenType,null,w,j,R)}pushAttributed(a,b){if(a===null)return this;if(a.indexOf(" ")===-1)return u._pushAttributed(this,a,b);const _=a.split(/ /g);let w=this;for(const j of _)w=u._pushAttributed(w,j,b);return w}static _pushAttributed(a,b,_){const w=_.getMetadataForScope(b),j=a.scopePath.push(b),R=_.themeProvider.themeMatch(j),O=u.mergeAttributes(a.tokenAttributes,w,R);return new u(a,j,O)}getScopeNames(){return this.scopePath.getSegments()}}s.AttributedScopeStack=u;class t{constructor(a,b,_,w,j,R,O,E){this.parent=a,this.ruleId=b,this.beginRuleCapturedEOL=j,this.endRule=R,this.nameScopesList=O,this.contentNameScopesList=E,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=_,this._anchorPos=w}equals(a){return a!==null&&t._equals(this,a)}static _equals(a,b){return a===b||!!this._structuralEquals(a,b)&&a.contentNameScopesList.equals(b.contentNameScopesList)}static _structuralEquals(a,b){for(;;){if(a===b||!a&&!b)return!0;if(!a||!b||a.depth!==b.depth||a.ruleId!==b.ruleId||a.endRule!==b.endRule)return!1;a=a.parent,b=b.parent}}clone(){return this}static _reset(a){for(;a;)a._enterPos=-1,a._anchorPos=-1,a=a.parent}reset(){t._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(a,b,_,w,j,R,O){return new t(this,a,b,_,w,j,R,O)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(a){return a.getRule(this.ruleId)}toString(){const a=[];return this._writeString(a,0),"["+a.join(",")+"]"}_writeString(a,b){return this.parent&&(b=this.parent._writeString(a,b)),a[b++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,b}withContentNameScopesList(a){return this.contentNameScopesList===a?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,a)}withEndRule(a){return this.endRule===a?this:new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,a,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(a){let b=this;for(;b&&b._enterPos===a._enterPos;){if(b.ruleId===a.ruleId)return!0;b=b.parent}return!1}}s.StateStack=t,t.NULL=new t(null,0,0,0,!1,null,null,null),s.BalancedBracketSelectors=class{constructor(l,a){this.allowAny=!1,this.balancedBracketScopes=l.flatMap(b=>b==="*"?(this.allowAny=!0,[]):o.createMatchers(b,v).map(_=>_.matcher)),this.unbalancedBracketScopes=a.flatMap(b=>o.createMatchers(b,v).map(_=>_.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(l){for(const a of this.unbalancedBracketScopes)if(a(l))return!1;for(const a of this.balancedBracketScopes)if(a(l))return!0;return this.allowAny}};class r{constructor(a,b,_,w){this.balancedBracketSelectors=w,this._emitBinaryTokens=a,this._tokenTypeOverrides=_,k.DebugFlags.InDebugMode?this._lineText=b:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(a,b){this.produceFromScopes(a.contentNameScopesList,b)}produceFromScopes(a,b){if(this._lastTokenEndIndex>=b)return;if(this._emitBinaryTokens){let w=a.tokenAttributes,j=!1;if(this.balancedBracketSelectors?.matchesAlways&&(j=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const R=a.getScopeNames();for(const O of this._tokenTypeOverrides)O.matcher(R)&&(w=L.EncodedTokenAttributes.set(w,0,L.toOptionalTokenType(O.type),null,-1,0,0));this.balancedBracketSelectors&&(j=this.balancedBracketSelectors.match(R))}if(j&&(w=L.EncodedTokenAttributes.set(w,0,8,j,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===w)return void(this._lastTokenEndIndex=b);if(k.DebugFlags.InDebugMode){const R=a.getScopeNames();console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,b).replace(/\n$/,"\\n")+"|");for(let O=0;O<R.length;O++)console.log(" * "+R[O])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(w),void(this._lastTokenEndIndex=b)}const _=a.getScopeNames();if(k.DebugFlags.InDebugMode){console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,b).replace(/\n$/,"\\n")+"|");for(let w=0;w<_.length;w++)console.log(" * "+_[w])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:b,scopes:_}),this._lastTokenEndIndex=b}getResult(a,b){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===b-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(a,b),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(a,b){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===b-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(a,b),this._binaryTokens[this._binaryTokens.length-2]=0);const _=new Uint32Array(this._binaryTokens.length);for(let w=0,j=this._binaryTokens.length;w<j;w++)_[w]=this._binaryTokens[w];return _}}s.LineTokens=r},965:(c,s,m)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.parseInclude=s.TopLevelRepositoryReference=s.TopLevelReference=s.RelativeReference=s.SelfReference=s.BaseReference=s.ScopeDependencyProcessor=s.ExternalReferenceCollector=s.TopLevelRepositoryRuleReference=s.TopLevelRuleReference=void 0;const k=m(878);class L{constructor(t){this.scopeName=t}toKey(){return this.scopeName}}s.TopLevelRuleReference=L;class o{constructor(t,r){this.scopeName=t,this.ruleName=r}toKey(){return`${this.scopeName}#${this.ruleName}`}}s.TopLevelRepositoryRuleReference=o;class N{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(t){const r=t.toKey();this._seenReferenceKeys.has(r)||(this._seenReferenceKeys.add(r),this._references.push(t))}}function p(u,t,r,l){const a=r.lookup(u.scopeName);if(!a){if(u.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const b=r.lookup(t);u instanceof L?A({baseGrammar:b,selfGrammar:a},l):y(u.ruleName,{baseGrammar:b,selfGrammar:a,repository:a.repository},l);const _=r.injections(u.scopeName);if(_)for(const w of _)l.add(new L(w))}function y(u,t,r){t.repository&&t.repository[u]&&f([t.repository[u]],t,r)}function A(u,t){u.selfGrammar.patterns&&Array.isArray(u.selfGrammar.patterns)&&f(u.selfGrammar.patterns,{...u,repository:u.selfGrammar.repository},t),u.selfGrammar.injections&&f(Object.values(u.selfGrammar.injections),{...u,repository:u.selfGrammar.repository},t)}function f(u,t,r){for(const l of u){if(r.visitedRule.has(l))continue;r.visitedRule.add(l);const a=l.repository?k.mergeObjects({},t.repository,l.repository):t.repository;Array.isArray(l.patterns)&&f(l.patterns,{...t,repository:a},r);const b=l.include;if(!b)continue;const _=S(b);switch(_.kind){case 0:A({...t,selfGrammar:t.baseGrammar},r);break;case 1:A(t,r);break;case 2:y(_.ruleName,{...t,repository:a},r);break;case 3:case 4:const w=_.scopeName===t.selfGrammar.scopeName?t.selfGrammar:_.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(w){const j={baseGrammar:t.baseGrammar,selfGrammar:w,repository:a};_.kind===4?y(_.ruleName,j,r):A(j,r)}else _.kind===4?r.add(new o(_.scopeName,_.ruleName)):r.add(new L(_.scopeName))}}}s.ExternalReferenceCollector=N,s.ScopeDependencyProcessor=class{constructor(u,t){this.repo=u,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new L(this.initialScopeName)]}processQueue(){const u=this.Q;this.Q=[];const t=new N;for(const r of u)p(r,this.initialScopeName,this.repo,t);for(const r of t.references)if(r instanceof L){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};class P{constructor(){this.kind=0}}s.BaseReference=P;class x{constructor(){this.kind=1}}s.SelfReference=x;class v{constructor(t){this.ruleName=t,this.kind=2}}s.RelativeReference=v;class g{constructor(t){this.scopeName=t,this.kind=3}}s.TopLevelReference=g;class d{constructor(t,r){this.scopeName=t,this.ruleName=r,this.kind=4}}function S(u){if(u==="$base")return new P;if(u==="$self")return new x;const t=u.indexOf("#");if(t===-1)return new g(u);if(t===0)return new v(u.substring(1));{const r=u.substring(0,t),l=u.substring(t+1);return new d(r,l)}}s.TopLevelRepositoryReference=d,s.parseInclude=S},391:function(c,s,m){var k=this&&this.__createBinding||(Object.create?function(o,N,p,y){y===void 0&&(y=p),Object.defineProperty(o,y,{enumerable:!0,get:function(){return N[p]}})}:function(o,N,p,y){y===void 0&&(y=p),o[y]=N[p]}),L=this&&this.__exportStar||function(o,N){for(var p in o)p==="default"||Object.prototype.hasOwnProperty.call(N,p)||k(N,o,p)};Object.defineProperty(s,"__esModule",{value:!0}),L(m(947),s)},47:(c,s,m)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.LocalStackElement=s._tokenizeString=void 0;const k=m(350),L=m(44),o=m(792),N=m(878);class p{constructor(d,S){this.stack=d,this.stoppedEarly=S}}function y(g,d,S,u,t,r,l,a){const b=d.content.length;let _=!1,w=-1;if(l){const O=function(E,q,F,M,H,V){let W=H.beginRuleCapturedEOL?0:-1;const D=[];for(let z=H;z;z=z.pop()){const G=z.getRule(E);G instanceof o.BeginWhileRule&&D.push({rule:G,stack:z})}for(let z=D.pop();z;z=D.pop()){const{ruleScanner:G,findOptions:J}=f(z.rule,E,z.stack.endRule,F,M===W),T=G.findNextMatchSync(q,M,J);if(k.DebugFlags.InDebugMode&&(console.log(" scanning for while rule"),console.log(G.toString())),!T){k.DebugFlags.InDebugMode&&console.log(" popping "+z.rule.debugName+" - "+z.rule.debugWhileRegExp),H=z.stack.pop();break}if(T.ruleId!==o.whileRuleId){H=z.stack.pop();break}T.captureIndices&&T.captureIndices.length&&(V.produce(z.stack,T.captureIndices[0].start),x(E,q,F,z.stack,V,z.rule.whileCaptures,T.captureIndices),V.produce(z.stack,T.captureIndices[0].end),W=T.captureIndices[0].end,T.captureIndices[0].end>M&&(M=T.captureIndices[0].end,F=!1))}return{stack:H,linePos:M,anchorPosition:W,isFirstLine:F}}(g,d,S,u,t,r);t=O.stack,u=O.linePos,S=O.isFirstLine,w=O.anchorPosition}const j=Date.now();for(;!_;){if(a!==0&&Date.now()-j>a)return new p(t,!0);R()}return new p(t,!1);function R(){k.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${u}: |${d.content.substr(u).replace(/\n$/,"\\n")}|`));const O=function(M,H,V,W,D,z){const G=function(te,ae,ye,se,ie,pe){const oe=ie.getRule(te),{ruleScanner:ce,findOptions:le}=A(oe,te,ie.endRule,ye,se===pe);let re=0;k.DebugFlags.InDebugMode&&(re=N.performanceNow());const Z=ce.findNextMatchSync(ae,se,le);if(k.DebugFlags.InDebugMode){const ue=N.performanceNow()-re;ue>5&&console.warn(`Rule ${oe.debugName} (${oe.id}) matching took ${ue} against '${ae}'`),console.log(` scanning for (linePos: ${se}, anchorPosition: ${pe})`),console.log(ce.toString()),Z&&console.log(`matched rule id: ${Z.ruleId} from ${Z.captureIndices[0].start} to ${Z.captureIndices[0].end}`)}return Z?{captureIndices:Z.captureIndices,matchedRuleId:Z.ruleId}:null}(M,H,V,W,D,z),J=M.getInjections();if(J.length===0)return G;const T=function(te,ae,ye,se,ie,pe,oe){let ce,le=Number.MAX_VALUE,re=null,Z=0;const ue=pe.contentNameScopesList.getScopeNames();for(let de=0,I=te.length;de<I;de++){const B=te[de];if(!B.matcher(ue))continue;const X=ae.getRule(B.ruleId),{ruleScanner:ne,findOptions:C}=A(X,ae,null,se,ie===oe),U=ne.findNextMatchSync(ye,ie,C);if(!U)continue;k.DebugFlags.InDebugMode&&(console.log(` matched injection: ${B.debugSelector}`),console.log(ne.toString()));const Y=U.captureIndices[0].start;if(!(Y>=le)&&(le=Y,re=U.captureIndices,ce=U.ruleId,Z=B.priority,le===ie))break}return re?{priorityMatch:Z===-1,captureIndices:re,matchedRuleId:ce}:null}(J,M,H,V,W,D,z);if(!T)return G;if(!G)return T;const Q=G.captureIndices[0].start,$=T.captureIndices[0].start;return $<Q||T.priorityMatch&&$===Q?T:G}(g,d,S,u,t,w);if(!O)return k.DebugFlags.InDebugMode&&console.log(" no more matches."),r.produce(t,b),void(_=!0);const E=O.captureIndices,q=O.matchedRuleId,F=!!(E&&E.length>0)&&E[0].end>u;if(q===o.endRuleId){const M=t.getRule(g);k.DebugFlags.InDebugMode&&console.log(" popping "+M.debugName+" - "+M.debugEndRegExp),r.produce(t,E[0].start),t=t.withContentNameScopesList(t.nameScopesList),x(g,d,S,t,r,M.endCaptures,E),r.produce(t,E[0].end);const H=t;if(t=t.parent,w=H.getAnchorPos(),!F&&H.getEnterPos()===u)return k.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),t=H,r.produce(t,b),void(_=!0)}else{const M=g.getRule(q);r.produce(t,E[0].start);const H=t,V=M.getName(d.content,E),W=t.contentNameScopesList.pushAttributed(V,g);if(t=t.push(q,u,w,E[0].end===b,null,W,W),M instanceof o.BeginEndRule){const D=M;k.DebugFlags.InDebugMode&&console.log(" pushing "+D.debugName+" - "+D.debugBeginRegExp),x(g,d,S,t,r,D.beginCaptures,E),r.produce(t,E[0].end),w=E[0].end;const z=D.getContentName(d.content,E),G=W.pushAttributed(z,g);if(t=t.withContentNameScopesList(G),D.endHasBackReferences&&(t=t.withEndRule(D.getEndWithResolvedBackReferences(d.content,E))),!F&&H.hasSameRuleAs(t))return k.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),t=t.pop(),r.produce(t,b),void(_=!0)}else if(M instanceof o.BeginWhileRule){const D=M;k.DebugFlags.InDebugMode&&console.log(" pushing "+D.debugName),x(g,d,S,t,r,D.beginCaptures,E),r.produce(t,E[0].end),w=E[0].end;const z=D.getContentName(d.content,E),G=W.pushAttributed(z,g);if(t=t.withContentNameScopesList(G),D.whileHasBackReferences&&(t=t.withEndRule(D.getWhileWithResolvedBackReferences(d.content,E))),!F&&H.hasSameRuleAs(t))return k.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),t=t.pop(),r.produce(t,b),void(_=!0)}else{const D=M;if(k.DebugFlags.InDebugMode&&console.log(" matched "+D.debugName+" - "+D.debugMatchRegExp),x(g,d,S,t,r,D.captures,E),r.produce(t,E[0].end),t=t.pop(),!F)return k.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),t=t.safePop(),r.produce(t,b),void(_=!0)}}E[0].end>u&&(u=E[0].end,S=!1)}}function A(g,d,S,u,t){return k.UseOnigurumaFindOptions?{ruleScanner:g.compile(d,S),findOptions:P(u,t)}:{ruleScanner:g.compileAG(d,S,u,t),findOptions:0}}function f(g,d,S,u,t){return k.UseOnigurumaFindOptions?{ruleScanner:g.compileWhile(d,S),findOptions:P(u,t)}:{ruleScanner:g.compileWhileAG(d,S,u,t),findOptions:0}}function P(g,d){let S=0;return g||(S|=1),d||(S|=4),S}function x(g,d,S,u,t,r,l){if(r.length===0)return;const a=d.content,b=Math.min(r.length,l.length),_=[],w=l[0].end;for(let j=0;j<b;j++){const R=r[j];if(R===null)continue;const O=l[j];if(O.length===0)continue;if(O.start>w)break;for(;_.length>0&&_[_.length-1].endPos<=O.start;)t.produceFromScopes(_[_.length-1].scopes,_[_.length-1].endPos),_.pop();if(_.length>0?t.produceFromScopes(_[_.length-1].scopes,O.start):t.produce(u,O.start),R.retokenizeCapturedWithRuleId){const q=R.getName(a,l),F=u.contentNameScopesList.pushAttributed(q,g),M=R.getContentName(a,l),H=F.pushAttributed(M,g),V=u.push(R.retokenizeCapturedWithRuleId,O.start,-1,!1,null,F,H),W=g.createOnigString(a.substring(0,O.end));y(g,W,S&&O.start===0,O.start,V,t,!1,0),L.disposeOnigString(W);continue}const E=R.getName(a,l);if(E!==null){const q=(_.length>0?_[_.length-1].scopes:u.contentNameScopesList).pushAttributed(E,g);_.push(new v(q,O.end))}}for(;_.length>0;)t.produceFromScopes(_[_.length-1].scopes,_[_.length-1].endPos),_.pop()}s._tokenizeString=y;class v{constructor(d,S){this.scopes=d,this.endPos=S}}s.LocalStackElement=v},974:(c,s)=>{function m(N,p){throw new Error("Near offset "+N.pos+": "+p+" ~~~"+N.source.substr(N.pos,50)+"~~~")}Object.defineProperty(s,"__esModule",{value:!0}),s.parseJSON=void 0,s.parseJSON=function(N,p,y){let A=new k(N),f=new L,P=0,x=null,v=[],g=[];function d(){v.push(P),g.push(x)}function S(){P=v.pop(),x=g.pop()}function u(t){m(A,t)}for(;o(A,f);){if(P===0){if(x!==null&&u("too many constructs in root"),f.type===3){x={},y&&(x.$vscodeTextmateLocation=f.toLocation(p)),d(),P=1;continue}if(f.type===2){x=[],d(),P=4;continue}u("unexpected token in root")}if(P===2){if(f.type===5){S();continue}if(f.type===7){P=3;continue}u("expected , or }")}if(P===1||P===3){if(P===1&&f.type===5){S();continue}if(f.type===1){let t=f.value;if(o(A,f)&&f.type===6||u("expected colon"),o(A,f)||u("expected value"),P=2,f.type===1){x[t]=f.value;continue}if(f.type===8){x[t]=null;continue}if(f.type===9){x[t]=!0;continue}if(f.type===10){x[t]=!1;continue}if(f.type===11){x[t]=parseFloat(f.value);continue}if(f.type===2){let r=[];x[t]=r,d(),P=4,x=r;continue}if(f.type===3){let r={};y&&(r.$vscodeTextmateLocation=f.toLocation(p)),x[t]=r,d(),P=1,x=r;continue}}u("unexpected token in dict")}if(P===5){if(f.type===4){S();continue}if(f.type===7){P=6;continue}u("expected , or ]")}if(P===4||P===6){if(P===4&&f.type===4){S();continue}if(P=5,f.type===1){x.push(f.value);continue}if(f.type===8){x.push(null);continue}if(f.type===9){x.push(!0);continue}if(f.type===10){x.push(!1);continue}if(f.type===11){x.push(parseFloat(f.value));continue}if(f.type===2){let t=[];x.push(t),d(),P=4,x=t;continue}if(f.type===3){let t={};y&&(t.$vscodeTextmateLocation=f.toLocation(p)),x.push(t),d(),P=1,x=t;continue}u("unexpected token in array")}u("unknown state")}return g.length!==0&&u("unclosed constructs"),x};class k{constructor(p){this.source=p,this.pos=0,this.len=p.length,this.line=1,this.char=0}}class L{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(p){return{filename:p,line:this.line,char:this.char}}}function o(N,p){p.value=null,p.type=0,p.offset=-1,p.len=-1,p.line=-1,p.char=-1;let y,A=N.source,f=N.pos,P=N.len,x=N.line,v=N.char;for(;;){if(f>=P)return!1;if(y=A.charCodeAt(f),y!==32&&y!==9&&y!==13){if(y!==10)break;f++,x++,v=0}else f++,v++}if(p.offset=f,p.line=x,p.char=v,y===34){for(p.type=1,f++,v++;;){if(f>=P)return!1;if(y=A.charCodeAt(f),f++,v++,y!==92){if(y===34)break}else f++,v++}p.value=A.substring(p.offset+1,f-1).replace(/\\u([0-9A-Fa-f]{4})/g,(g,d)=>String.fromCodePoint(parseInt(d,16))).replace(/\\(.)/g,(g,d)=>{switch(d){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return`
|
|
5
|
-
`;case"r":return"\r";case"t":return" ";default:m(N,"invalid escape sequence")}throw new Error("unreachable")})}else if(y===91)p.type=2,f++,v++;else if(y===123)p.type=3,f++,v++;else if(y===93)p.type=4,f++,v++;else if(y===125)p.type=5,f++,v++;else if(y===58)p.type=6,f++,v++;else if(y===44)p.type=7,f++,v++;else if(y===110){if(p.type=8,f++,v++,y=A.charCodeAt(f),y!==117||(f++,v++,y=A.charCodeAt(f),y!==108)||(f++,v++,y=A.charCodeAt(f),y!==108))return!1;f++,v++}else if(y===116){if(p.type=9,f++,v++,y=A.charCodeAt(f),y!==114||(f++,v++,y=A.charCodeAt(f),y!==117)||(f++,v++,y=A.charCodeAt(f),y!==101))return!1;f++,v++}else if(y===102){if(p.type=10,f++,v++,y=A.charCodeAt(f),y!==97||(f++,v++,y=A.charCodeAt(f),y!==108)||(f++,v++,y=A.charCodeAt(f),y!==115)||(f++,v++,y=A.charCodeAt(f),y!==101))return!1;f++,v++}else for(p.type=11;;){if(f>=P)return!1;if(y=A.charCodeAt(f),!(y===46||y>=48&&y<=57||y===101||y===69||y===45||y===43))break;f++,v++}return p.len=f-p.offset,p.value===null&&(p.value=A.substr(p.offset,p.len)),N.pos=f,N.line=x,N.char=v,!0}},787:function(c,s,m){var k=this&&this.__createBinding||(Object.create?function(f,P,x,v){v===void 0&&(v=x),Object.defineProperty(f,v,{enumerable:!0,get:function(){return P[x]}})}:function(f,P,x,v){v===void 0&&(v=x),f[v]=P[x]}),L=this&&this.__exportStar||function(f,P){for(var x in f)x==="default"||Object.prototype.hasOwnProperty.call(P,x)||k(P,f,x)};Object.defineProperty(s,"__esModule",{value:!0}),s.parseRawGrammar=s.INITIAL=s.Registry=void 0;const o=m(391),N=m(50),p=m(652),y=m(583),A=m(965);L(m(44),s),s.Registry=class{constructor(f){this._options=f,this._syncRegistry=new p.SyncRegistry(y.Theme.createFromRawTheme(f.theme,f.colorMap),f.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(f,P){this._syncRegistry.setTheme(y.Theme.createFromRawTheme(f,P))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(f,P,x){return this.loadGrammarWithConfiguration(f,P,{embeddedLanguages:x})}loadGrammarWithConfiguration(f,P,x){return this._loadGrammar(f,P,x.embeddedLanguages,x.tokenTypes,new o.BalancedBracketSelectors(x.balancedBracketSelectors||[],x.unbalancedBracketSelectors||[]))}loadGrammar(f){return this._loadGrammar(f,0,null,null,null)}async _loadGrammar(f,P,x,v,g){const d=new A.ScopeDependencyProcessor(this._syncRegistry,f);for(;d.Q.length>0;)await Promise.all(d.Q.map(S=>this._loadSingleGrammar(S.scopeName))),d.processQueue();return this._grammarForScopeName(f,P,x,v,g)}async _loadSingleGrammar(f){return this._ensureGrammarCache.has(f)||this._ensureGrammarCache.set(f,this._doLoadSingleGrammar(f)),this._ensureGrammarCache.get(f)}async _doLoadSingleGrammar(f){const P=await this._options.loadGrammar(f);if(P){const x=typeof this._options.getInjections=="function"?this._options.getInjections(f):void 0;this._syncRegistry.addGrammar(P,x)}}async addGrammar(f,P=[],x=0,v=null){return this._syncRegistry.addGrammar(f,P),await this._grammarForScopeName(f.scopeName,x,v)}_grammarForScopeName(f,P=0,x=null,v=null,g=null){return this._syncRegistry.grammarForScopeName(f,P,x,v,g)}},s.INITIAL=o.StateStack.NULL,s.parseRawGrammar=N.parseRawGrammar},736:(c,s)=>{function m(k){return!!k&&!!k.match(/[\w\.:]+/)}Object.defineProperty(s,"__esModule",{value:!0}),s.createMatchers=void 0,s.createMatchers=function(k,L){const o=[],N=function(f){let P=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,x=P.exec(f);return{next:()=>{if(!x)return null;const v=x[0];return x=P.exec(f),v}}}(k);let p=N.next();for(;p!==null;){let f=0;if(p.length===2&&p.charAt(1)===":"){switch(p.charAt(0)){case"R":f=1;break;case"L":f=-1;break;default:console.log(`Unknown priority ${p} in scope selector`)}p=N.next()}let P=A();if(o.push({matcher:P,priority:f}),p!==",")break;p=N.next()}return o;function y(){if(p==="-"){p=N.next();const f=y();return P=>!!f&&!f(P)}if(p==="("){p=N.next();const f=function(){const P=[];let x=A();for(;x&&(P.push(x),p==="|"||p===",");){do p=N.next();while(p==="|"||p===",");x=A()}return v=>P.some(g=>g(v))}();return p===")"&&(p=N.next()),f}if(m(p)){const f=[];do f.push(p),p=N.next();while(m(p));return P=>L(f,P)}return null}function A(){const f=[];let P=y();for(;P;)f.push(P),P=y();return x=>f.every(v=>v(x))}}},44:(c,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.disposeOnigString=void 0,s.disposeOnigString=function(m){typeof m.dispose=="function"&&m.dispose()}},50:(c,s,m)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.parseRawGrammar=void 0;const k=m(69),L=m(350),o=m(974);s.parseRawGrammar=function(N,p=null){return p!==null&&/\.json$/.test(p)?(y=N,A=p,L.DebugFlags.InDebugMode?o.parseJSON(y,A,!0):JSON.parse(y)):function(f,P){return L.DebugFlags.InDebugMode?k.parseWithLocation(f,P,"$vscodeTextmateLocation"):k.parsePLIST(f)}(N,p);var y,A}},69:(c,s)=>{function m(k,L,o){const N=k.length;let p=0,y=1,A=0;function f(T){if(o===null)p+=T;else for(;T>0;)k.charCodeAt(p)===10?(p++,y++,A=0):(p++,A++),T--}function P(T){o===null?p=T:f(T-p)}function x(){for(;p<N;){let T=k.charCodeAt(p);if(T!==32&&T!==9&&T!==13&&T!==10)break;f(1)}}function v(T){return k.substr(p,T.length)===T&&(f(T.length),!0)}function g(T){let Q=k.indexOf(T,p);P(Q!==-1?Q+T.length:N)}function d(T){let Q=k.indexOf(T,p);if(Q!==-1){let $=k.substring(p,Q);return P(Q+T.length),$}{let $=k.substr(p);return P(N),$}}N>0&&k.charCodeAt(0)===65279&&(p=1);let S=0,u=null,t=[],r=[],l=null;function a(T,Q){t.push(S),r.push(u),S=T,u=Q}function b(){if(t.length===0)return _("illegal state stack");S=t.pop(),u=r.pop()}function _(T){throw new Error("Near offset "+p+": "+T+" ~~~"+k.substr(p,50)+"~~~")}const w=function(){if(l===null)return _("missing <key>");let T={};o!==null&&(T[o]={filename:L,line:y,char:A}),u[l]=T,l=null,a(1,T)},j=function(){if(l===null)return _("missing <key>");let T=[];u[l]=T,l=null,a(2,T)},R=function(){let T={};o!==null&&(T[o]={filename:L,line:y,char:A}),u.push(T),a(1,T)},O=function(){let T=[];u.push(T),a(2,T)};function E(){if(S!==1)return _("unexpected </dict>");b()}function q(){return S===1||S!==2?_("unexpected </array>"):void b()}function F(T){if(S===1){if(l===null)return _("missing <key>");u[l]=T,l=null}else S===2?u.push(T):u=T}function M(T){if(isNaN(T))return _("cannot parse float");if(S===1){if(l===null)return _("missing <key>");u[l]=T,l=null}else S===2?u.push(T):u=T}function H(T){if(isNaN(T))return _("cannot parse integer");if(S===1){if(l===null)return _("missing <key>");u[l]=T,l=null}else S===2?u.push(T):u=T}function V(T){if(S===1){if(l===null)return _("missing <key>");u[l]=T,l=null}else S===2?u.push(T):u=T}function W(T){if(S===1){if(l===null)return _("missing <key>");u[l]=T,l=null}else S===2?u.push(T):u=T}function D(T){if(S===1){if(l===null)return _("missing <key>");u[l]=T,l=null}else S===2?u.push(T):u=T}function z(){let T=d(">"),Q=!1;return T.charCodeAt(T.length-1)===47&&(Q=!0,T=T.substring(0,T.length-1)),{name:T.trim(),isClosed:Q}}function G(T){if(T.isClosed)return"";let Q=d("</");return g(">"),Q.replace(/&#([0-9]+);/g,function($,te){return String.fromCodePoint(parseInt(te,10))}).replace(/&#x([0-9a-f]+);/g,function($,te){return String.fromCodePoint(parseInt(te,16))}).replace(/&|<|>|"|'/g,function($){switch($){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return $})}for(;p<N&&(x(),!(p>=N));){const T=k.charCodeAt(p);if(f(1),T!==60)return _("expected <");if(p>=N)return _("unexpected end of input");const Q=k.charCodeAt(p);if(Q===63){f(1),g("?>");continue}if(Q===33){if(f(1),v("--")){g("-->");continue}g(">");continue}if(Q===47){if(f(1),x(),v("plist")){g(">");continue}if(v("dict")){g(">"),E();continue}if(v("array")){g(">"),q();continue}return _("unexpected closed tag")}let $=z();switch($.name){case"dict":S===1?w():S===2?R():(u={},o!==null&&(u[o]={filename:L,line:y,char:A}),a(1,u)),$.isClosed&&E();continue;case"array":S===1?j():S===2?O():(u=[],a(2,u)),$.isClosed&&q();continue;case"key":J=G($),S!==1?_("unexpected <key>"):l!==null?_("too many <key>"):l=J;continue;case"string":F(G($));continue;case"real":M(parseFloat(G($)));continue;case"integer":H(parseInt(G($),10));continue;case"date":V(new Date(G($)));continue;case"data":W(G($));continue;case"true":G($),D(!0);continue;case"false":G($),D(!1);continue}if(!/^plist/.test($.name))return _("unexpected opened tag "+$.name)}var J;return u}Object.defineProperty(s,"__esModule",{value:!0}),s.parsePLIST=s.parseWithLocation=void 0,s.parseWithLocation=function(k,L,o){return m(k,L,o)},s.parsePLIST=function(k){return m(k,null,null)}},652:(c,s,m)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.SyncRegistry=void 0;const k=m(391);s.SyncRegistry=class{constructor(L,o){this._onigLibPromise=o,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=L}dispose(){for(const L of this._grammars.values())L.dispose()}setTheme(L){this._theme=L}getColorMap(){return this._theme.getColorMap()}addGrammar(L,o){this._rawGrammars.set(L.scopeName,L),o&&this._injectionGrammars.set(L.scopeName,o)}lookup(L){return this._rawGrammars.get(L)}injections(L){return this._injectionGrammars.get(L)}getDefaults(){return this._theme.getDefaults()}themeMatch(L){return this._theme.match(L)}async grammarForScopeName(L,o,N,p,y){if(!this._grammars.has(L)){let A=this._rawGrammars.get(L);if(!A)return null;this._grammars.set(L,k.createGrammar(L,A,o,N,p,y,this,await this._onigLibPromise))}return this._grammars.get(L)}}},792:(c,s,m)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CompiledRule=s.RegExpSourceList=s.RegExpSource=s.RuleFactory=s.BeginWhileRule=s.BeginEndRule=s.IncludeOnlyRule=s.MatchRule=s.CaptureRule=s.Rule=s.ruleIdToNumber=s.ruleIdFromNumber=s.whileRuleId=s.endRuleId=void 0;const k=m(878),L=m(965),o=/\\(\d+)/,N=/\\(\d+)/g;s.endRuleId=-1,s.whileRuleId=-2,s.ruleIdFromNumber=function(u){return u},s.ruleIdToNumber=function(u){return u};class p{constructor(t,r,l,a){this.$location=t,this.id=r,this._name=l||null,this._nameIsCapturing=k.RegexSource.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=k.RegexSource.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${k.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,r){return this._nameIsCapturing&&this._name!==null&&t!==null&&r!==null?k.RegexSource.replaceCaptures(this._name,t,r):this._name}getContentName(t,r){return this._contentNameIsCapturing&&this._contentName!==null?k.RegexSource.replaceCaptures(this._contentName,t,r):this._contentName}}s.Rule=p;class y extends p{constructor(t,r,l,a,b){super(t,r,l,a),this.retokenizeCapturedWithRuleId=b}dispose(){}collectPatterns(t,r){throw new Error("Not supported!")}compile(t,r){throw new Error("Not supported!")}compileAG(t,r,l,a){throw new Error("Not supported!")}}s.CaptureRule=y;class A extends p{constructor(t,r,l,a,b){super(t,r,l,null),this._match=new g(a,this.id),this.captures=b,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,r){r.push(this._match)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,l,a){return this._getCachedCompiledPatterns(t).compileAG(t,l,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}s.MatchRule=A;class f extends p{constructor(t,r,l,a,b){super(t,r,l,a),this.patterns=b.patterns,this.hasMissingPatterns=b.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,r){for(const l of this.patterns)t.getRule(l).collectPatterns(t,r)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,l,a){return this._getCachedCompiledPatterns(t).compileAG(t,l,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}s.IncludeOnlyRule=f;class P extends p{constructor(t,r,l,a,b,_,w,j,R,O){super(t,r,l,a),this._begin=new g(b,this.id),this.beginCaptures=_,this._end=new g(w||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=j,this.applyEndPatternLast=R||!1,this.patterns=O.patterns,this.hasMissingPatterns=O.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,r){return this._end.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t,r).compile(t)}compileAG(t,r,l,a){return this._getCachedCompiledPatterns(t,r).compileAG(t,l,a)}_getCachedCompiledPatterns(t,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const l of this.patterns)t.getRule(l).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}}s.BeginEndRule=P;class x extends p{constructor(t,r,l,a,b,_,w,j,R){super(t,r,l,a),this._begin=new g(b,this.id),this.beginCaptures=_,this.whileCaptures=j,this._while=new g(w,s.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=R.patterns,this.hasMissingPatterns=R.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,r){return this._while.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,l,a){return this._getCachedCompiledPatterns(t).compileAG(t,l,a)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,r){return this._getCachedCompiledWhilePatterns(t,r).compile(t)}compileWhileAG(t,r,l,a){return this._getCachedCompiledWhilePatterns(t,r).compileAG(t,l,a)}_getCachedCompiledWhilePatterns(t,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new d,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||""),this._cachedCompiledWhilePatterns}}s.BeginWhileRule=x;class v{static createCaptureRule(t,r,l,a,b){return t.registerRule(_=>new y(r,_,l,a,b))}static getCompiledRuleId(t,r,l){return t.id||r.registerRule(a=>{if(t.id=a,t.match)return new A(t.$vscodeTextmateLocation,t.id,t.name,t.match,v._compileCaptures(t.captures,r,l));if(t.begin===void 0){t.repository&&(l=k.mergeObjects({},l,t.repository));let b=t.patterns;return b===void 0&&t.include&&(b=[{include:t.include}]),new f(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,v._compilePatterns(b,r,l))}return t.while?new x(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,v._compileCaptures(t.beginCaptures||t.captures,r,l),t.while,v._compileCaptures(t.whileCaptures||t.captures,r,l),v._compilePatterns(t.patterns,r,l)):new P(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,v._compileCaptures(t.beginCaptures||t.captures,r,l),t.end,v._compileCaptures(t.endCaptures||t.captures,r,l),t.applyEndPatternLast,v._compilePatterns(t.patterns,r,l))}),t.id}static _compileCaptures(t,r,l){let a=[];if(t){let b=0;for(const _ in t){if(_==="$vscodeTextmateLocation")continue;const w=parseInt(_,10);w>b&&(b=w)}for(let _=0;_<=b;_++)a[_]=null;for(const _ in t){if(_==="$vscodeTextmateLocation")continue;const w=parseInt(_,10);let j=0;t[_].patterns&&(j=v.getCompiledRuleId(t[_],r,l)),a[w]=v.createCaptureRule(r,t[_].$vscodeTextmateLocation,t[_].name,t[_].contentName,j)}}return a}static _compilePatterns(t,r,l){let a=[];if(t)for(let b=0,_=t.length;b<_;b++){const w=t[b];let j=-1;if(w.include){const R=L.parseInclude(w.include);switch(R.kind){case 0:case 1:j=v.getCompiledRuleId(l[w.include],r,l);break;case 2:let O=l[R.ruleName];O&&(j=v.getCompiledRuleId(O,r,l));break;case 3:case 4:const E=R.scopeName,q=R.kind===4?R.ruleName:null,F=r.getExternalGrammar(E,l);if(F)if(q){let M=F.repository[q];M&&(j=v.getCompiledRuleId(M,r,F.repository))}else j=v.getCompiledRuleId(F.repository.$self,r,F.repository)}}else j=v.getCompiledRuleId(w,r,l);if(j!==-1){const R=r.getRule(j);let O=!1;if((R instanceof f||R instanceof P||R instanceof x)&&R.hasMissingPatterns&&R.patterns.length===0&&(O=!0),O)continue;a.push(j)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}}s.RuleFactory=v;class g{constructor(t,r){if(t){const l=t.length;let a=0,b=[],_=!1;for(let w=0;w<l;w++)if(t.charAt(w)==="\\"&&w+1<l){const j=t.charAt(w+1);j==="z"?(b.push(t.substring(a,w)),b.push("$(?!\\n)(?<!\\n)"),a=w+2):j!=="A"&&j!=="G"||(_=!0),w++}this.hasAnchor=_,a===0?this.source=t:(b.push(t.substring(a,l)),this.source=b.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,this.hasBackReferences=o.test(this.source)}clone(){return new g(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){let l=r.map(a=>t.substring(a.start,a.end));return N.lastIndex=0,this.source.replace(N,(a,b)=>k.escapeRegExpCharacters(l[parseInt(b,10)]||""))}_buildAnchorCache(){let t,r,l,a,b=[],_=[],w=[],j=[];for(t=0,r=this.source.length;t<r;t++)l=this.source.charAt(t),b[t]=l,_[t]=l,w[t]=l,j[t]=l,l==="\\"&&t+1<r&&(a=this.source.charAt(t+1),a==="A"?(b[t+1]="",_[t+1]="",w[t+1]="A",j[t+1]="A"):a==="G"?(b[t+1]="",_[t+1]="G",w[t+1]="",j[t+1]="G"):(b[t+1]=a,_[t+1]=a,w[t+1]=a,j[t+1]=a),t++);return{A0_G0:b.join(""),A0_G1:_.join(""),A1_G0:w.join(""),A1_G1:j.join("")}}resolveAnchors(t,r){return this.hasAnchor&&this._anchorCache?t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}s.RegExpSource=g;class d{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,r){this._items[t].source!==r&&(this._disposeCaches(),this._items[t].setSource(r))}compile(t){if(!this._cached){let r=this._items.map(l=>l.source);this._cached=new S(t,r,this._items.map(l=>l.ruleId))}return this._cached}compileAG(t,r,l){return this._hasAnchors?r?l?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,r,l)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,r,l)),this._anchorCache.A1_G0):l?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,r,l)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,r,l)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,r,l){let a=this._items.map(b=>b.resolveAnchors(r,l));return new S(t,a,this._items.map(b=>b.ruleId))}}s.RegExpSourceList=d;class S{constructor(t,r,l){this.regExps=r,this.rules=l,this.scanner=t.createOnigScanner(r)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let r=0,l=this.rules.length;r<l;r++)t.push(" - "+this.rules[r]+": "+this.regExps[r]);return t.join(`
|
|
6
|
-
`)}findNextMatchSync(t,r,l){const a=this.scanner.findNextMatchSync(t,r,l);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}s.CompiledRule=S},583:(c,s,m)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ThemeTrieElement=s.ThemeTrieElementRule=s.ColorMap=s.fontStyleToString=s.ParsedThemeRule=s.parseTheme=s.StyleAttributes=s.ScopeStack=s.Theme=void 0;const k=m(878);class L{constructor(g,d,S){this._colorMap=g,this._defaults=d,this._root=S,this._cachedMatchRoot=new k.CachedFn(u=>this._root.match(u))}static createFromRawTheme(g,d){return this.createFromParsedTheme(y(g),d)}static createFromParsedTheme(g,d){return function(S,u){S.sort((w,j)=>{let R=k.strcmp(w.scope,j.scope);return R!==0?R:(R=k.strArrCmp(w.parentScopes,j.parentScopes),R!==0?R:w.index-j.index)});let t=0,r="#000000",l="#ffffff";for(;S.length>=1&&S[0].scope==="";){let w=S.shift();w.fontStyle!==-1&&(t=w.fontStyle),w.foreground!==null&&(r=w.foreground),w.background!==null&&(l=w.background)}let a=new f(u),b=new p(t,a.getId(r),a.getId(l)),_=new x(new P(0,null,-1,0,0),[]);for(let w=0,j=S.length;w<j;w++){let R=S[w];_.insert(0,R.scope,R.parentScopes,R.fontStyle,a.getId(R.foreground),a.getId(R.background))}return new L(a,b,_)}(g,d)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(g){if(g===null)return this._defaults;const d=g.scopeName,S=this._cachedMatchRoot.get(d).find(u=>function(t,r){if(r===null)return!0;let l=0,a=r[l];for(;t;){if(N(t.scopeName,a)){if(l++,l===r.length)return!0;a=r[l]}t=t.parent}return!1}(g.parent,u.parentScopes));return S?new p(S.fontStyle,S.foreground,S.background):null}}s.Theme=L;class o{constructor(g,d){this.parent=g,this.scopeName=d}static from(...g){let d=null;for(let S=0;S<g.length;S++)d=new o(d,g[S]);return d}push(g){return new o(this,g)}getSegments(){let g=this;const d=[];for(;g;)d.push(g.scopeName),g=g.parent;return d.reverse(),d}toString(){return this.getSegments().join(" ")}}function N(v,g){return g===v||v.startsWith(g)&&v[g.length]==="."}s.ScopeStack=o;class p{constructor(g,d,S){this.fontStyle=g,this.foregroundId=d,this.backgroundId=S}}function y(v){if(!v)return[];if(!v.settings||!Array.isArray(v.settings))return[];let g=v.settings,d=[],S=0;for(let u=0,t=g.length;u<t;u++){let r,l=g[u];if(!l.settings)continue;if(typeof l.scope=="string"){let w=l.scope;w=w.replace(/^[,]+/,""),w=w.replace(/[,]+$/,""),r=w.split(",")}else r=Array.isArray(l.scope)?l.scope:[""];let a=-1;if(typeof l.settings.fontStyle=="string"){a=0;let w=l.settings.fontStyle.split(" ");for(let j=0,R=w.length;j<R;j++)switch(w[j]){case"italic":a|=1;break;case"bold":a|=2;break;case"underline":a|=4;break;case"strikethrough":a|=8}}let b=null;typeof l.settings.foreground=="string"&&k.isValidHexColor(l.settings.foreground)&&(b=l.settings.foreground);let _=null;typeof l.settings.background=="string"&&k.isValidHexColor(l.settings.background)&&(_=l.settings.background);for(let w=0,j=r.length;w<j;w++){let R=r[w].trim().split(" "),O=R[R.length-1],E=null;R.length>1&&(E=R.slice(0,R.length-1),E.reverse()),d[S++]=new A(O,E,u,a,b,_)}}return d}s.StyleAttributes=p,s.parseTheme=y;class A{constructor(g,d,S,u,t,r){this.scope=g,this.parentScopes=d,this.index=S,this.fontStyle=u,this.foreground=t,this.background=r}}s.ParsedThemeRule=A,s.fontStyleToString=function(v){if(v===-1)return"not set";let g="";return 1&v&&(g+="italic "),2&v&&(g+="bold "),4&v&&(g+="underline "),8&v&&(g+="strikethrough "),g===""&&(g="none"),g.trim()};class f{constructor(g){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(g)){this._isFrozen=!0;for(let d=0,S=g.length;d<S;d++)this._color2id[g[d]]=d,this._id2color[d]=g[d]}else this._isFrozen=!1}getId(g){if(g===null)return 0;g=g.toUpperCase();let d=this._color2id[g];if(d)return d;if(this._isFrozen)throw new Error(`Missing color in color map - ${g}`);return d=++this._lastColorId,this._color2id[g]=d,this._id2color[d]=g,d}getColorMap(){return this._id2color.slice(0)}}s.ColorMap=f;class P{constructor(g,d,S,u,t){this.scopeDepth=g,this.parentScopes=d,this.fontStyle=S,this.foreground=u,this.background=t}clone(){return new P(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(g){let d=[];for(let S=0,u=g.length;S<u;S++)d[S]=g[S].clone();return d}acceptOverwrite(g,d,S,u){this.scopeDepth>g?console.log("how did this happen?"):this.scopeDepth=g,d!==-1&&(this.fontStyle=d),S!==0&&(this.foreground=S),u!==0&&(this.background=u)}}s.ThemeTrieElementRule=P;class x{constructor(g,d=[],S={}){this._mainRule=g,this._children=S,this._rulesWithParentScopes=d}static _sortBySpecificity(g){return g.length===1||g.sort(this._cmpBySpecificity),g}static _cmpBySpecificity(g,d){if(g.scopeDepth===d.scopeDepth){const S=g.parentScopes,u=d.parentScopes;let t=S===null?0:S.length,r=u===null?0:u.length;if(t===r)for(let l=0;l<t;l++){const a=S[l].length,b=u[l].length;if(a!==b)return b-a}return r-t}return d.scopeDepth-g.scopeDepth}match(g){if(g==="")return x._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let d,S,u=g.indexOf(".");return u===-1?(d=g,S=""):(d=g.substring(0,u),S=g.substring(u+1)),this._children.hasOwnProperty(d)?this._children[d].match(S):x._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(g,d,S,u,t,r){if(d==="")return void this._doInsertHere(g,S,u,t,r);let l,a,b,_=d.indexOf(".");_===-1?(l=d,a=""):(l=d.substring(0,_),a=d.substring(_+1)),this._children.hasOwnProperty(l)?b=this._children[l]:(b=new x(this._mainRule.clone(),P.cloneArr(this._rulesWithParentScopes)),this._children[l]=b),b.insert(g+1,a,S,u,t,r)}_doInsertHere(g,d,S,u,t){if(d!==null){for(let r=0,l=this._rulesWithParentScopes.length;r<l;r++){let a=this._rulesWithParentScopes[r];if(k.strArrCmp(a.parentScopes,d)===0)return void a.acceptOverwrite(g,S,u,t)}S===-1&&(S=this._mainRule.fontStyle),u===0&&(u=this._mainRule.foreground),t===0&&(t=this._mainRule.background),this._rulesWithParentScopes.push(new P(g,d,S,u,t))}else this._mainRule.acceptOverwrite(g,S,u,t)}}s.ThemeTrieElement=x},878:(c,s)=>{function m(o){return Array.isArray(o)?function(N){let p=[];for(let y=0,A=N.length;y<A;y++)p[y]=m(N[y]);return p}(o):typeof o=="object"?function(N){let p={};for(let y in N)p[y]=m(N[y]);return p}(o):o}Object.defineProperty(s,"__esModule",{value:!0}),s.performanceNow=s.CachedFn=s.escapeRegExpCharacters=s.isValidHexColor=s.strArrCmp=s.strcmp=s.RegexSource=s.basename=s.mergeObjects=s.clone=void 0,s.clone=function(o){return m(o)},s.mergeObjects=function(o,...N){return N.forEach(p=>{for(let y in p)o[y]=p[y]}),o},s.basename=function o(N){const p=~N.lastIndexOf("/")||~N.lastIndexOf("\\");return p===0?N:~p==N.length-1?o(N.substring(0,N.length-1)):N.substr(1+~p)};let k=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function L(o,N){return o<N?-1:o>N?1:0}s.RegexSource=class{static hasCaptures(o){return o!==null&&(k.lastIndex=0,k.test(o))}static replaceCaptures(o,N,p){return o.replace(k,(y,A,f,P)=>{let x=p[parseInt(A||f,10)];if(!x)return y;{let v=N.substring(x.start,x.end);for(;v[0]===".";)v=v.substring(1);switch(P){case"downcase":return v.toLowerCase();case"upcase":return v.toUpperCase();default:return v}}})}},s.strcmp=L,s.strArrCmp=function(o,N){if(o===null&&N===null)return 0;if(!o)return-1;if(!N)return 1;let p=o.length,y=N.length;if(p===y){for(let A=0;A<p;A++){let f=L(o[A],N[A]);if(f!==0)return f}return 0}return p-y},s.isValidHexColor=function(o){return!!(/^#[0-9a-f]{6}$/i.test(o)||/^#[0-9a-f]{8}$/i.test(o)||/^#[0-9a-f]{3}$/i.test(o)||/^#[0-9a-f]{4}$/i.test(o))},s.escapeRegExpCharacters=function(o){return o.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},s.CachedFn=class{constructor(o){this.fn=o,this.cache=new Map}get(o){if(this.cache.has(o))return this.cache.get(o);const N=this.fn(o);return this.cache.set(o,N),N}},s.performanceNow=typeof performance>"u"?function(){return Date.now()}:function(){return performance.now()}}},n={};return function c(s){var m=n[s];if(m!==void 0)return m.exports;var k=n[s]={exports:{}};return h[s].call(k.exports,k,k.exports,c),k.exports}(787)})()})})(Mt);const Ae=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",samplePath:"applescript.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","tsx","css","less","sass","scss","stylus"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",samplePath:"bat.sample",aliases:["batch"]},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",samplePath:"codeql.sample",aliases:["ql"],embeddedLangs:["markdown"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",samplePath:"cue.sample"},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",samplePath:"dart.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",samplePath:"docker.sample"},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",embeddedLangs:["shellscript"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",samplePath:"hcl.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json"},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",embeddedLangs:["html"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json"},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",embeddedLangs:["css","less","scss","typescript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json"},{id:"mdx",scopeName:"text.html.markdown.jsx",path:"mdx.tmLanguage.json",embeddedLangs:["jsx","markdown"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json"},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",embeddedLangs:["html","csharp"]},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",aliases:["shell","bash","sh","zsh"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","yaml","toml","graphql"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",aliases:["文言"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json"},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",samplePath:"zenscript.sample"}];var xe=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(xe||{});class K{static toBinaryStr(i){let h=i.toString(2);for(;h.length<32;)h="0"+h;return h}static printMetadata(i){let h=K.getLanguageId(i),n=K.getTokenType(i),c=K.getFontStyle(i),s=K.getForeground(i),m=K.getBackground(i);console.log({languageId:h,tokenType:n,fontStyle:c,foreground:s,background:m})}static getLanguageId(i){return(i&255)>>>0}static getTokenType(i){return(i&768)>>>8}static getFontStyle(i){return(i&14336)>>>11}static getForeground(i){return(i&8372224)>>>15}static getBackground(i){return(i&4286578688)>>>24}static containsBalancedBrackets(i){return(i&1024)!==0}static set(i,h,n,c,s,m){let k=K.getLanguageId(i),L=K.getTokenType(i),o=K.getFontStyle(i),N=K.getForeground(i),p=K.getBackground(i),y=K.containsBalancedBrackets(i)?1:0;return h!==0&&(k=h),n!==0&&(L=n===8?0:n),c!==-1&&(o=c),s!==0&&(N=s),m!==0&&(p=m),(k<<0|L<<8|o<<11|y<<10|N<<15|p<<24)>>>0}}function zt(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function Gt(e){return e.startsWith("./")?e.slice(2):e}function Je(e){const i=e.split(/[\/\\]/g);return i.slice(0,i.length-1)}function Xe(...e){return e.map(zt).map(Gt).join("/")}function Dt(e,i){const h=new Map;for(const n of e){const c=i(n);h.has(c)?h.get(c).push(n):h.set(c,[n])}return h}function $t(e,i=!1){const h=e.length;let n=0,c="",s=0,m=16,k=0,L=0,o=0,N=0,p=0;function y(d,S){let u=0,t=0;for(;u<d||!S;){let r=e.charCodeAt(n);if(r>=48&&r<=57)t=t*16+r-48;else if(r>=65&&r<=70)t=t*16+r-65+10;else if(r>=97&&r<=102)t=t*16+r-97+10;else break;n++,u++}return u<d&&(t=-1),t}function A(d){n=d,c="",s=0,m=16,p=0}function f(){let d=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&fe(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&fe(e.charCodeAt(n)))for(n++;n<e.length&&fe(e.charCodeAt(n));)n++;else return p=3,e.substring(d,n);let S=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&fe(e.charCodeAt(n))){for(n++;n<e.length&&fe(e.charCodeAt(n));)n++;S=n}else p=3;return e.substring(d,S)}function P(){let d="",S=n;for(;;){if(n>=h){d+=e.substring(S,n),p=2;break}const u=e.charCodeAt(n);if(u===34){d+=e.substring(S,n),n++;break}if(u===92){if(d+=e.substring(S,n),n++,n>=h){p=2;break}switch(e.charCodeAt(n++)){case 34:d+='"';break;case 92:d+="\\";break;case 47:d+="/";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+=`
|
|
7
|
-
`;break;case 114:d+="\r";break;case 116:d+=" ";break;case 117:const r=y(4,!0);r>=0?d+=String.fromCharCode(r):p=4;break;default:p=5}S=n;continue}if(u>=0&&u<=31)if(ke(u)){d+=e.substring(S,n),p=2;break}else p=6;n++}return d}function x(){if(c="",p=0,s=n,L=k,N=o,n>=h)return s=h,m=17;let d=e.charCodeAt(n);if(Re(d)){do n++,c+=String.fromCharCode(d),d=e.charCodeAt(n);while(Re(d));return m=15}if(ke(d))return n++,c+=String.fromCharCode(d),d===13&&e.charCodeAt(n)===10&&(n++,c+=`
|
|
8
|
-
`),k++,o=n,m=14;switch(d){case 123:return n++,m=1;case 125:return n++,m=2;case 91:return n++,m=3;case 93:return n++,m=4;case 58:return n++,m=6;case 44:return n++,m=5;case 34:return n++,c=P(),m=10;case 47:const S=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<h&&!ke(e.charCodeAt(n));)n++;return c=e.substring(S,n),m=12}if(e.charCodeAt(n+1)===42){n+=2;const u=h-1;let t=!1;for(;n<u;){const r=e.charCodeAt(n);if(r===42&&e.charCodeAt(n+1)===47){n+=2,t=!0;break}n++,ke(r)&&(r===13&&e.charCodeAt(n)===10&&n++,k++,o=n)}return t||(n++,p=1),c=e.substring(S,n),m=13}return c+=String.fromCharCode(d),n++,m=16;case 45:if(c+=String.fromCharCode(d),n++,n===h||!fe(e.charCodeAt(n)))return m=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return c+=f(),m=11;default:for(;n<h&&v(d);)n++,d=e.charCodeAt(n);if(s!==n){switch(c=e.substring(s,n),c){case"true":return m=8;case"false":return m=9;case"null":return m=7}return m=16}return c+=String.fromCharCode(d),n++,m=16}}function v(d){if(Re(d)||ke(d))return!1;switch(d){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function g(){let d;do d=x();while(d>=12&&d<=15);return d}return{setPosition:A,getPosition:()=>n,scan:i?g:x,getToken:()=>m,getTokenValue:()=>c,getTokenOffset:()=>s,getTokenLength:()=>n-s,getTokenStartLine:()=>L,getTokenStartCharacter:()=>s-N,getTokenError:()=>p}}function Re(e){return e===32||e===9}function ke(e){return e===10||e===13}function fe(e){return e>=48&&e<=57}var De;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(De||(De={}));var je;(function(e){e.DEFAULT={allowTrailingComma:!1}})(je||(je={}));function Ft(e,i=[],h=je.DEFAULT){let n=null,c=[];const s=[];function m(L){Array.isArray(c)?c.push(L):n!==null&&(c[n]=L)}return Ut(e,{onObjectBegin:()=>{const L={};m(L),s.push(c),c=L,n=null},onObjectProperty:L=>{n=L},onObjectEnd:()=>{c=s.pop()},onArrayBegin:()=>{const L=[];m(L),s.push(c),c=L,n=null},onArrayEnd:()=>{c=s.pop()},onLiteralValue:m,onError:(L,o,N)=>{i.push({error:L,offset:o,length:N})}},h),c[0]}function Ut(e,i,h=je.DEFAULT){const n=$t(e,!1),c=[];function s(w){return w?()=>w(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function m(w){return w?()=>w(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>c.slice()):()=>!0}function k(w){return w?j=>w(j,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function L(w){return w?j=>w(j,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>c.slice()):()=>!0}const o=m(i.onObjectBegin),N=L(i.onObjectProperty),p=s(i.onObjectEnd),y=m(i.onArrayBegin),A=s(i.onArrayEnd),f=L(i.onLiteralValue),P=k(i.onSeparator),x=s(i.onComment),v=k(i.onError),g=h&&h.disallowComments,d=h&&h.allowTrailingComma;function S(){for(;;){const w=n.scan();switch(n.getTokenError()){case 4:u(14);break;case 5:u(15);break;case 3:u(13);break;case 1:g||u(11);break;case 2:u(12);break;case 6:u(16);break}switch(w){case 12:case 13:g?u(10):x();break;case 16:u(1);break;case 15:case 14:break;default:return w}}}function u(w,j=[],R=[]){if(v(w),j.length+R.length>0){let O=n.getToken();for(;O!==17;){if(j.indexOf(O)!==-1){S();break}else if(R.indexOf(O)!==-1)break;O=S()}}}function t(w){const j=n.getTokenValue();return w?f(j):(N(j),c.push(j)),S(),!0}function r(){switch(n.getToken()){case 11:const w=n.getTokenValue();let j=Number(w);isNaN(j)&&(u(2),j=0),f(j);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return S(),!0}function l(){return n.getToken()!==10?(u(3,[],[2,5]),!1):(t(!1),n.getToken()===6?(P(":"),S(),_()||u(4,[],[2,5])):u(5,[],[2,5]),c.pop(),!0)}function a(){o(),S();let w=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(w||u(4,[],[]),P(","),S(),n.getToken()===2&&d)break}else w&&u(6,[],[]);l()||u(4,[],[2,5]),w=!0}return p(),n.getToken()!==2?u(7,[2],[]):S(),!0}function b(){y(),S();let w=!0,j=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(j||u(4,[],[]),P(","),S(),n.getToken()===4&&d)break}else j&&u(6,[],[]);w?(c.push(0),w=!1):c[c.length-1]++,_()||u(4,[],[4,5]),j=!0}return A(),w||c.pop(),n.getToken()!==4?u(8,[4],[]):S(),!0}function _(){switch(n.getToken()){case 3:return b();case 1:return a();case 10:return t(!0);default:return r()}}return S(),n.getToken()===17?h.allowEmptyContent?!0:(u(4,[],[]),!1):_()?(n.getToken()!==17&&u(9,[],[]),!0):(u(4,[],[]),!1)}var $e;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})($e||($e={}));var Fe;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(Fe||(Fe={}));const Wt=Ft;var Ue;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Ue||(Ue={}));"process"in globalThis&&typeof process<"u"&&typeof process.release<"u"&&process.release.name;let Ye="";const Ct="dist/";function qt(e){Ye=e.endsWith("/")?e:e+"/"}let Ie=null;async function Ht(e){if(!Ie){let i;i=Se.loadWASM({data:await(globalThis.__shiki_fetch__||globalThis.fetch)(Ze(Xe(...Je(e),"onig.wasm")))}),Ie=i.then(()=>({createOnigScanner(h){return Se.createOnigScanner(h)},createOnigString(h){return Se.createOnigString(h)}}))}return Ie}function Ze(e){return`${Ye}${e}`}async function Vt(e){const i=Ze(e);return await(globalThis.__shiki_fetch__||globalThis.fetch)(i).then(h=>h.text())}async function Ke(e){const i=[],h=Wt(await Vt(e),i,{allowTrailingComma:!0});if(i.length)throw i[0];return h}async function et(e){let i=await Ke(e);const h=tt(i);if(h.include){const n=await et(Xe(...Je(e),h.include));n.settings&&(h.settings=n.settings.concat(h.settings)),n.bg&&!h.bg&&(h.bg=n.bg),n.colors&&(h.colors={...n.colors,...h.colors}),delete h.include}return h}async function Qt(e){return await Ke(e)}function Jt(e){e.settings||(e.settings=[]),!(e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope)&&e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function tt(e){const i=e.type||"dark",h={name:e.name,type:i,...e,...Xt(e)};return e.include&&(h.include=e.include),e.tokenColors&&(h.settings=e.tokenColors,delete h.tokenColors),Jt(h),h}const We={light:"#333333",dark:"#bbbbbb"},Ce={light:"#fffffe",dark:"#1e1e1e"};function Xt(e){let i,h,n=e.settings?e.settings:e.tokenColors;const c=n?n.find(s=>!s.name&&!s.scope):void 0;return c?.settings?.foreground&&(i=c.settings.foreground),c?.settings?.background&&(h=c.settings.background),!i&&e?.colors?.["editor.foreground"]&&(i=e.colors["editor.foreground"]),!h&&e?.colors?.["editor.background"]&&(h=e.colors["editor.background"]),i||(i=e.type==="light"?We.light:We.dark),h||(h=e.type==="light"?Ce.light:Ce.dark),{fg:i,bg:h}}class Yt{constructor(i,h){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=i,this._onigLibName=h}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(i){return this.languageMap[i]}async loadGrammar(i){const h=this.scopeToLangMap[i];if(!h)return null;if(h.grammar)return h.grammar;const n=await Qt(Ae.includes(h)?`${this.languagesPath}${h.path}`:h.path);return h.grammar=n,n}addLanguage(i){this.languageMap[i.id]=i,i.aliases&&i.aliases.forEach(h=>{this.languageMap[h]=i}),this.scopeToLangMap[i.scopeName]=i}}function Zt(e,i,h,n,c){let s=h.split(/\r\n|\r|\n/),m=Pe.INITIAL,k=[],L=[];for(let o=0,N=s.length;o<N;o++){let p=s[o];if(p===""){k=[],L.push([]);continue}let y,A,f;c.includeExplanation&&(y=n.tokenizeLine(p,m),A=y.tokens,f=0);let P=n.tokenizeLine2(p,m),x=P.tokens.length/2;for(let v=0;v<x;v++){let g=P.tokens[2*v],d=v+1<x?P.tokens[2*v+2]:p.length;if(g===d)continue;let S=P.tokens[2*v+1],u=K.getForeground(S),t=i[u],r=K.getFontStyle(S),l=[];if(c.includeExplanation){let a=0;for(;g+a<d;){let b=A[f],_=p.substring(b.startIndex,b.endIndex);a+=_.length,l.push({content:_,scopes:Kt(e,b.scopes)}),f++}}k.push({content:p.substring(g,d),color:t,fontStyle:r,explanation:l})}L.push(k),k=[],m=P.ruleStack}return L}function Kt(e,i){let h=[];for(let n=0,c=i.length;n<c;n++){let s=i.slice(0,n),m=i[n];h[n]={scopeName:m,themeMatches:tn(e,m,s)}}return h}function qe(e,i){let h=e+".";return e===i||i.substring(0,h.length)===h}function en(e,i,h,n){if(!qe(e,h))return!1;let c=i.length-1,s=n.length-1;for(;c>=0&&s>=0;)qe(i[c],n[s])&&c--,s--;return c===-1}function tn(e,i,h){let n=[],c=0;for(let s=0,m=e.settings.length;s<m;s++){let k=e.settings[s],L;if(typeof k.scope=="string")L=k.scope.split(/,/).map(o=>o.trim());else if(Array.isArray(k.scope))L=k.scope;else continue;for(let o=0,N=L.length;o<N;o++){let y=L[o].split(/ /),A=y[y.length-1],f=y.slice(0,y.length-1);en(A,f,i,h)&&(n[c++]=k,o=N)}}return n}const nn={pre({className:e,style:i,children:h}){return`<pre class="${e}" style="${i}">${h}</pre>`},code({children:e}){return`<code>${e}</code>`},line({className:e,children:i}){return`<span class="${e}">${i}</span>`},token({style:e,children:i}){return`<span style="${e}">${i}</span>`}};function sn(e,i={}){const h=i.bg||"#fff",n=Dt(i.lineOptions??[],m=>m.line),c=i.elements||{};function s(m="",k={},L){const o=c[m]||nn[m];return o?(L=L.filter(Boolean),o({...k,children:m==="code"?L.join(`
|
|
9
|
-
`):L.join("")})):""}return s("pre",{className:"shiki "+(i.themeName||""),style:`background-color: ${h}`},[i.langId?`<div class="language-id">${i.langId}</div>`:"",s("code",{},e.map((m,k)=>{const L=k+1,o=n.get(L)??[],N=on(o).join(" ");return s("line",{className:N,lines:e,line:m,index:k},m.map((p,y)=>{const A=[`color: ${p.color||i.fg}`];return p.fontStyle&xe.Italic&&A.push("font-style: italic"),p.fontStyle&xe.Bold&&A.push("font-weight: bold"),p.fontStyle&xe.Underline&&A.push("text-decoration: underline"),s("token",{style:A.join("; "),tokens:m,token:p,index:y},[an(p.content)])}))}))])}const rn={"&":"&","<":"<",">":">",'"':""","'":"'"};function an(e){return e.replace(/[&<>"']/g,i=>rn[i])}function on(e){const i=new Set(["line"]);for(const h of e)for(const n of h.classes??[])i.add(n);return Array.from(i)}class cn extends Pe.Registry{constructor(i){super(i),this._resolver=i,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=Ae.reduce((h,n)=>(h[n.id]=n,h),{})}getTheme(i){return typeof i=="string"?this._resolvedThemes[i]:i}async loadTheme(i){return typeof i=="string"?(this._resolvedThemes[i]||(this._resolvedThemes[i]=await et(`${this.themesPath}${i}.json`)),this._resolvedThemes[i]):(i=tt(i),i.name&&(this._resolvedThemes[i.name]=i),i)}async loadThemes(i){return await Promise.all(i.map(h=>this.loadTheme(h)))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(i){return this._resolvedGrammars[i]}async loadLanguage(i){const n={embeddedLanguages:i.embeddedLangs?.reduce(async(s,m,k)=>{if(!this.getLoadedLanguages().includes(m)&&this._resolver.getLangRegistration(m))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(m).scopeName),s[this._resolver.getLangRegistration(m).scopeName]=k+2,s},{}),balancedBracketSelectors:i.balancedBracketSelectors||["*"],unbalancedBracketSelectors:i.unbalancedBracketSelectors||[]},c=await this.loadGrammarWithConfiguration(i.scopeName,1,n);this._resolvedGrammars[i.id]=c,i.aliases&&i.aliases.forEach(s=>{this._resolvedGrammars[s]=c})}async loadLanguages(i){for(const n of i)this.resolveEmbeddedLanguages(n);const h=Array.from(this._langGraph.values());for(const n of h)this._resolver.addLanguage(n);for(const n of h)await this.loadLanguage(n)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(i){if(this._langGraph.has(i.id)||this._langGraph.set(i.id,i),i.embeddedLangs)for(const h of i.embeddedLangs)this._langGraph.set(h,this._langMap[h])}}function nt(e){return typeof e=="string"?Ae.find(i=>i.id===e||i.aliases?.includes(e)):e}function ln(e){let i=Ae,h=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":Ct;return e.langs&&(i=e.langs.map(nt)),e.theme&&h.unshift(e.theme),h.length||(h=["nord"]),{_languages:i,_themes:h,_wasmPath:n}}async function un(e){const{_languages:i,_themes:h,_wasmPath:n}=ln(e),c=new Yt(Ht(n),"vscode-oniguruma"),s=new cn(c);e.paths?.themes&&(s.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const k=(await s.loadThemes(h))[0];let L;await s.loadLanguages(i);let o={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};function N(t){o=t}function p(t,r){t.bg=o[t.bg]||t.bg,t.fg=o[t.fg]||t.fg,r.forEach((l,a)=>{r[a]=o[l]||l})}function y(t){const r=t?s.getTheme(t):k;if(!r)throw Error(`No theme registration for ${t}`);(!L||L.name!==r.name)&&(s.setTheme(r),L=r);const l=s.getColorMap();return r.type==="css"&&p(r,l),{_theme:r,_colorMap:l}}function A(t){const r=s.getGrammar(t);if(!r)throw Error(`No language registration for ${t}`);return{_grammar:r}}function f(t,r="text",l,a={includeExplanation:!0}){if(hn(r))return[...t.split(/\r\n|\r|\n/).map(R=>[{content:R}])];const{_grammar:b}=A(r),{_theme:_,_colorMap:w}=y(l);return Zt(_,w,t,b,a)}function P(t,r="text",l){let a;typeof r=="object"?a=r:a={lang:r,theme:l};const b=f(t,a.lang,a.theme,{includeExplanation:!1}),{_theme:_}=y(a.theme);return sn(b,{fg:_.fg,bg:_.bg,lineOptions:a?.lineOptions,themeName:_.name})}async function x(t){await s.loadTheme(t)}async function v(t){const r=nt(t);c.addLanguage(r),await s.loadLanguage(r)}function g(){return s.getLoadedThemes()}function d(){return s.getLoadedLanguages()}function S(t){const{_theme:r}=y(t);return r.bg}function u(t){const{_theme:r}=y(t);return r.fg}return{codeToThemedTokens:f,codeToHtml:P,getTheme:t=>y(t)._theme,loadTheme:x,loadLanguage:v,getBackgroundColor:S,getForegroundColor:u,getLoadedThemes:g,getLoadedLanguages:d,setColorReplacements:N}}function hn(e){return!e||["plaintext","txt","text"].includes(e)}const pn="0.2.0";qt(`https://cdn.jsdelivr.net/npm/shiki-es@${pn}/dist/assets/`);const Be=Oe();un({themes:["vitesse-dark","vitesse-light"],langs:["css","javascript","typescript"]}).then(e=>{Be.value=e});function dn(e,i){const h=yt();return Be.value?Be.value.codeToHtml(e,{lang:i,theme:h.value==="dark"?"vitesse-dark":"vitesse-light"}):e}const mn={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,i)=>(e[i.id]=i)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,i){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=i},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,i){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===i?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,i),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=i,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[i])},onSplitterDblClick(e,i){let h=0;this.panes=this.panes.map((n,c)=>(n.size=c===i?n.max:n.min,c!==i&&(h+=n.min),n)),this.panes[i].size-=h,this.$emit("pane-maximize",this.panes[i]),this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},onPaneClick(e,i){this.$emit("pane-click",this.indexedPanes[i])},getCurrentMouseDrag(e){const i=this.container.getBoundingClientRect(),{clientX:h,clientY:n}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:h-i.left,y:n-i.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const i=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=i-e),e*100/i},calculatePanesSize(e){const i=this.touch.activeSplitter;let h={prevPanesSize:this.sumPrevPanesSize(i),nextPanesSize:this.sumNextPanesSize(i),prevReachedMinPanes:0,nextReachedMinPanes:0};const n=0+(this.pushOtherPanes?0:h.prevPanesSize),c=100-(this.pushOtherPanes?0:h.nextPanesSize),s=Math.max(Math.min(this.getCurrentDragPercentage(e),c),n);let m=[i,i+1],k=this.panes[m[0]]||null,L=this.panes[m[1]]||null;const o=k.max<100&&s>=k.max+h.prevPanesSize,N=L.max<100&&s<=100-(L.max+this.sumNextPanesSize(i+1));if(o||N){o?(k.size=k.max,L.size=Math.max(100-k.max-h.prevPanesSize-h.nextPanesSize,0)):(k.size=Math.max(100-L.max-h.prevPanesSize-this.sumNextPanesSize(i+1),0),L.size=L.max);return}if(this.pushOtherPanes){const p=this.doPushOtherPanes(h,s);if(!p)return;({sums:h,panesToResize:m}=p),k=this.panes[m[0]]||null,L=this.panes[m[1]]||null}k!==null&&(k.size=Math.min(Math.max(s-h.prevPanesSize-h.prevReachedMinPanes,k.min),k.max)),L!==null&&(L.size=Math.min(Math.max(100-s-h.nextPanesSize-h.nextReachedMinPanes,L.min),L.max))},doPushOtherPanes(e,i){const h=this.touch.activeSplitter,n=[h,h+1];return i<e.prevPanesSize+this.panes[n[0]].min&&(n[0]=this.findPrevExpandedPane(h).index,e.prevReachedMinPanes=0,n[0]<h&&this.panes.forEach((c,s)=>{s>n[0]&&s<=h&&(c.size=c.min,e.prevReachedMinPanes+=c.min)}),e.prevPanesSize=this.sumPrevPanesSize(n[0]),n[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((c,s)=>{s>0&&s<=h&&(c.size=c.min,e.prevReachedMinPanes+=c.min)}),this.panes[n[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):i>100-e.nextPanesSize-this.panes[n[1]].min&&(n[1]=this.findNextExpandedPane(h).index,e.nextReachedMinPanes=0,n[1]>h+1&&this.panes.forEach((c,s)=>{s>h&&s<n[1]&&(c.size=c.min,e.nextReachedMinPanes+=c.min)}),e.nextPanesSize=this.sumNextPanesSize(n[1]-1),n[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((c,s)=>{s<this.panesCount-1&&s>=h+1&&(c.size=c.min,e.nextReachedMinPanes+=c.min)}),this.panes[n[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:n}},sumPrevPanesSize(e){return this.panes.reduce((i,h,n)=>i+(n<e?h.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((i,h,n)=>i+(n>e+1?h.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(i=>i.index<e&&i.size>i.min)||{}},findNextExpandedPane(e){return this.panes.find(i=>i.index>e+1&&i.size>i.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const i=e.classList.contains("splitpanes__pane"),h=e.classList.contains("splitpanes__splitter");!i&&!h&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,i,h=!1){const n=e-1,c=document.createElement("div");c.classList.add("splitpanes__splitter"),h||(c.onmousedown=s=>this.onMouseDown(s,n),typeof window<"u"&&"ontouchstart"in window&&(c.ontouchstart=s=>this.onMouseDown(s,n)),c.onclick=s=>this.onSplitterClick(s,n+1)),this.dblClickSplitter&&(c.ondblclick=s=>this.onSplitterDblClick(s,n+1)),i.parentNode.insertBefore(c,i)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(h=>{h.className.includes("splitpanes__splitter")&&this.removeSplitter(h)});let i=0;e.forEach(h=>{h.className.includes("splitpanes__pane")&&(!i&&this.firstSplitter?this.addSplitter(i,h,!0):i&&this.addSplitter(i,h),i++)})},requestUpdate({target:e,...i}){const h=this.indexedPanes[e._.uid];Object.entries(i).forEach(([n,c])=>h[n]=c)},onPaneAdd(e){let i=-1;Array.from(e.$el.parentNode.children).some(c=>(c.className.includes("splitpanes__pane")&&i++,c===e.$el));const h=parseFloat(e.minSize),n=parseFloat(e.maxSize);this.panes.splice(i,0,{id:e._.uid,index:i,min:isNaN(h)?0:h,max:isNaN(n)?100:n,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((c,s)=>c.index=s),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[i]}),this.$emit("pane-add",{index:i,panes:this.panes.map(c=>({min:c.min,max:c.max,size:c.size}))})})},onPaneRemove(e){const i=this.panes.findIndex(n=>n.id===e._.uid),h=this.panes.splice(i,1)[0];this.panes.forEach((n,c)=>n.index=c),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...h,index:i}}),this.$emit("pane-remove",{removed:h,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(i=>i.givenSize!==null||i.min||i.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(i=>({min:i.min,max:i.max,size:i.size})))},equalize(){const e=100/this.panesCount;let i=0;const h=[],n=[];this.panes.forEach(c=>{c.size=Math.max(Math.min(e,c.max),c.min),i-=c.size,c.size>=c.max&&h.push(c.id),c.size<=c.min&&n.push(c.id)}),i>.1&&this.readjustSizes(i,h,n)},initialPanesSizing(){let e=100;const i=[],h=[];let n=0;this.panes.forEach(s=>{e-=s.size,s.size!==null&&n++,s.size>=s.max&&i.push(s.id),s.size<=s.min&&h.push(s.id)});let c=100;e>.1&&(this.panes.forEach(s=>{s.size===null&&(s.size=Math.max(Math.min(e/(this.panesCount-n),s.max),s.min)),c-=s.size}),c>.1&&this.readjustSizes(e,i,h))},equalizeAfterAddOrRemove({addedPane:e,removedPane:i}={}){let h=100/this.panesCount,n=0;const c=[],s=[];e&&e.givenSize!==null&&(h=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(m=>{n-=m.size,m.size>=m.max&&c.push(m.id),m.size<=m.min&&s.push(m.id)}),!(Math.abs(n)<.1)&&(this.panes.forEach(m=>{e&&e.givenSize!==null&&e.id===m.id||(m.size=Math.max(Math.min(h,m.max),m.min)),n-=m.size,m.size>=m.max&&c.push(m.id),m.size<=m.min&&s.push(m.id)}),n>.1&&this.readjustSizes(n,c,s))},readjustSizes(e,i,h){let n;e>0?n=e/(this.panesCount-i.length):n=e/(this.panesCount-h.length),this.panes.forEach((c,s)=>{if(e>0&&!i.includes(c.id)){const m=Math.max(Math.min(c.size+n,c.max),c.min),k=m-c.size;e-=k,c.size=m}else if(!h.includes(c.id)){const m=Math.max(Math.min(c.size+n,c.max),c.min),k=m-c.size;e-=k,c.size=m}c.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[c.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((i,h)=>{i.ondblclick=e?n=>this.onSplitterDblClick(n,h):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return at("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},gn=(e,i)=>{const h=e.__vccOpts||e;for(const[n,c]of i)h[n]=c;return h},fn={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function _n(e,i,h,n,c,s){return _e(),Ne("div",{class:"splitpanes__pane",onClick:i[0]||(i[0]=m=>s.onPaneClick(m,e._.uid)),style:ct(e.style)},[ot(e.$slots,"default")],4)}const He=gn(fn,[["render",_n]]),bn={pb2:"",p3:""},yn={key:0,"h-full":"","of-hidden":"",flex:"~ col"},kn={border:"b base",px4:"",py2:"","text-sm":"",op75:"","flex-none":""},vn=["innerHTML"],Sn={key:1,flex:"","items-center":"","justify-center":"",op50:""},Tn=lt({__name:"virtual-files",async setup(e){let i,h;const n=Oe(""),{data:c}=([i,h]=ut(()=>Bt("/_vfs.json",{key:"vfs-list",baseURL:"/",responseType:"json"},"$3wSzD6RdXF")),i=await i,h(),i),s=ve(()=>ht().query?.id),m=Oe();pt(()=>{if(!s.value)return;const p=`/_vfs.json/${encodeURIComponent(s.value)}`;fetch(p).then(y=>y.json()).then(y=>m.value=y.current)});function k(p){if(c.value?.rootDir)return p.startsWith(c.value?.rootDir)?p.slice(c.value.rootDir.length):p}const L=ve(()=>c.value?c.value.entries.filter(p=>!p.id.startsWith(`${c.value?.rootDir||""}/.nuxt/`)).sort((p,y)=>p.id.localeCompare(y.id)):[]),o=ve(()=>new kt(L.value,{keys:["id","path"]})),N=ve(()=>n.value?o.value.search(n.value).map(p=>p.item):L.value);return(p,y)=>{const A=st,f=it;return _e(),Me(ee(mn),{"h-full":"","of-hidden":"",class:"virtual-files"},{default:we(()=>[Te(ee(He),{border:"r base",size:"30","min-size":"5","of-auto":""},{default:we(()=>[Le("div",bn,[Te(A,{modelValue:ee(n),"onUpdate:modelValue":y[0]||(y[0]=P=>dt(n)?n.value=P:null),icon:"carbon-search",placeholder:"Search...",n:"primary"},null,8,["modelValue"])]),(_e(!0),Ne(_t,null,mt(ee(N),P=>(_e(),Me(f,{key:P.id,border:"b base",px2:"",py1:"","text-sm":"","font-mono":"",block:"",truncate:"",to:`/modules/virtual-files?id=${encodeURIComponent(P.id)}`,class:gt(P.id===ee(m)?.id?"bg-truegray:20 text-base":"text-truegray")},{default:we(()=>[ft(ze(k(P.id)),1)]),_:2},1032,["to","class"]))),128))]),_:1}),Te(ee(He),{"min-size":"5"},{default:we(()=>[ee(m)?.content?(_e(),Ne("div",yn,[Le("div",kn,[Le("code",null,ze(ee(m).id),1)]),Le("pre",{"of-auto":"","h-full":"","text-sm":"",innerHTML:("highlight"in p?p.highlight:ee(dn))(ee(m)?.content,"typescript")},null,8,vn)])):(_e(),Ne("span",Sn,"Select one file to start"))]),_:1})]),_:1})}}});export{Tn as default};
|
package/dist/iframe-client.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { NuxtDevtoolsIframeClient } from './types.js';
|
|
3
|
-
import 'nuxt/schema';
|
|
4
|
-
import 'unimport';
|
|
5
|
-
import 'nuxt/dist/app/nuxt';
|
|
6
|
-
import 'vue-router';
|
|
7
|
-
import 'vite-plugin-vue-inspector';
|
|
8
|
-
import 'hookable';
|
|
9
|
-
import 'birpc';
|
|
10
|
-
|
|
11
|
-
declare function useDevtoolsClient(): Ref<NuxtDevtoolsIframeClient | undefined>;
|
|
12
|
-
|
|
13
|
-
export { useDevtoolsClient };
|
package/dist/iframe-client.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { shallowRef, triggerRef } from 'vue';
|
|
2
|
-
|
|
3
|
-
let clientRef;
|
|
4
|
-
function useDevtoolsClient() {
|
|
5
|
-
if (!clientRef) {
|
|
6
|
-
clientRef = shallowRef();
|
|
7
|
-
if (window.__NUXT_DEVTOOLS__) {
|
|
8
|
-
setup(window.__NUXT_DEVTOOLS__);
|
|
9
|
-
} else {
|
|
10
|
-
Object.defineProperty(window, "__NUXT_DEVTOOLS__", {
|
|
11
|
-
set(value) {
|
|
12
|
-
if (value)
|
|
13
|
-
setup(value);
|
|
14
|
-
},
|
|
15
|
-
get() {
|
|
16
|
-
return clientRef.value;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function setup(client) {
|
|
22
|
-
clientRef.value = client;
|
|
23
|
-
client.host.hooks.hook("host:update:reactivity", () => {
|
|
24
|
-
triggerRef(clientRef);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
return clientRef;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { useDevtoolsClient };
|
package/iframe-client.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dist/iframe-client'
|