@nuxt/devtools 1.3.14 → 1.4.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.
Files changed (109) hide show
  1. package/dist/chunks/module-main.mjs +6 -6
  2. package/dist/chunks/vscode.mjs +2 -2
  3. package/dist/chunks/vue-devtools.mjs +1 -1
  4. package/dist/client/200.html +20 -20
  5. package/dist/client/404.html +20 -20
  6. package/dist/client/_nuxt/{D4Ks82zD.js → 2WsLw058.js} +1 -1
  7. package/dist/client/_nuxt/{B-wfK0SS.js → A56qLMdk.js} +1 -1
  8. package/dist/client/_nuxt/{rLudNEh9.js → AIZ3trgN.js} +1 -1
  9. package/dist/client/_nuxt/{BZvh3yot.js → B2aNs1qV.js} +1 -1
  10. package/dist/client/_nuxt/{JMx2uAI6.js → B6H_wowy.js} +1 -1
  11. package/dist/client/_nuxt/{BHBvn5Xs.js → BAJXKRnU.js} +1 -1
  12. package/dist/client/_nuxt/{CE84j0J9.js → BD_-z3C6.js} +1 -1
  13. package/dist/client/_nuxt/{CxLTb5RC.js → BF2Zv_ac.js} +1 -1
  14. package/dist/client/_nuxt/{zjxoDR5L.js → BFisL5PK.js} +1 -1
  15. package/dist/client/_nuxt/BMbUeBqv.js +1 -1
  16. package/dist/client/_nuxt/{CPr4CZHz.js → BNFg_2hU.js} +1 -1
  17. package/dist/client/_nuxt/{Dv0NFAnW.js → BQnF4QpF.js} +1 -1
  18. package/dist/client/_nuxt/{DwVKZd3-.js → BRmBiXYU.js} +1 -1
  19. package/dist/client/_nuxt/BTojbgVV.js +1 -0
  20. package/dist/client/_nuxt/BZflAdyk.js +43 -0
  21. package/dist/client/_nuxt/{CPWqrNrA.js → Bb8Qkg2j.js} +1 -1
  22. package/dist/client/_nuxt/{Cb_ad2sg.js → BcmtLNjB.js} +1 -1
  23. package/dist/client/_nuxt/{DwdKwQHN.js → BgwfQLiC.js} +1 -1
  24. package/dist/client/_nuxt/BhPGnnSc.js +1 -0
  25. package/dist/client/_nuxt/{CVW-sDYN.js → Bn9bQn_0.js} +1 -1
  26. package/dist/client/_nuxt/{ewAh1ZiX.js → BtVX2hui.js} +1 -1
  27. package/dist/client/_nuxt/{DKlNNSWk.js → BwlD2UKZ.js} +1 -1
  28. package/dist/client/_nuxt/{DoQHeYxB.js → By8bKr-N.js} +3 -3
  29. package/dist/client/_nuxt/C8RrL2-P.js +1 -1
  30. package/dist/client/_nuxt/{C4OO6w_e.js → CD1NqIIM.js} +1 -1
  31. package/dist/client/_nuxt/{B2TuRHFi.js → CGrOFGU2.js} +1 -1
  32. package/dist/client/_nuxt/{BMUgLter.js → CHRohc05.js} +1 -1
  33. package/dist/client/_nuxt/{CyS6YlEb.js → CKMxd-JB.js} +1 -1
  34. package/dist/client/_nuxt/{BO314c-_.js → CROnmYq8.js} +1 -1
  35. package/dist/client/_nuxt/{CcKfWHXB.js → CSdo01uo.js} +1 -1
  36. package/dist/client/_nuxt/CTKqK4eG.js +1 -1
  37. package/dist/client/_nuxt/{yFeWtr-M.js → CTgwY-nX.js} +1 -1
  38. package/dist/client/_nuxt/{2tJW9cKr.js → C_QixTwI.js} +1 -1
  39. package/dist/client/_nuxt/CbViG2Xw.js +1 -1
  40. package/dist/client/_nuxt/{CA5wVMK1.js → CbWJw1kk.js} +1 -1
  41. package/dist/client/_nuxt/{CnW1WPg6.js → CmukqgDs.js} +1 -1
  42. package/dist/client/_nuxt/{DVZAdofw.js → CqEMLpLr.js} +1 -1
  43. package/dist/client/_nuxt/{BkmSFWMo.js → D43mkQK_.js} +1 -1
  44. package/dist/client/_nuxt/DDMtKJxh.js +1 -1
  45. package/dist/client/_nuxt/{CsgBhI1g.js → DEF_vpGm.js} +1 -1
  46. package/dist/client/_nuxt/{BF_UD7ZT.js → DKNVc3Pf.js} +1 -1
  47. package/dist/client/_nuxt/{DN0HCnq5.js → DLUNO0Xm.js} +1 -1
  48. package/dist/client/_nuxt/{viHXAOJs.js → DLu2RzFt.js} +1 -1
  49. package/dist/client/_nuxt/{Bi99gj7u.js → DO36ltOt.js} +1 -1
  50. package/dist/client/_nuxt/{CWyKSuRn.js → DQZBaF2J.js} +1 -1
  51. package/dist/client/_nuxt/{Cic6Ln_D.js → DTOtwcdp.js} +1 -1
  52. package/dist/client/_nuxt/{BEKXAodE.js → DWfDPvkq.js} +1 -1
  53. package/dist/client/_nuxt/{BcJweaq3.js → Das97jHp.js} +1 -1
  54. package/dist/client/_nuxt/{CyvuMq07.js → DeV-19Y9.js} +1 -1
  55. package/dist/client/_nuxt/{BZZpaKJQ.js → DjP2QASF.js} +1 -1
  56. package/dist/client/_nuxt/{Di9lD2rK.js → DnvoyAD8.js} +1 -1
  57. package/dist/client/_nuxt/DpYuRYxj.js +1 -1
  58. package/dist/client/_nuxt/{BrzmMRQX.js → Dru2Tyw8.js} +1 -1
  59. package/dist/client/_nuxt/{Bl8OBrwH.js → DwafjdGG.js} +1 -1
  60. package/dist/client/_nuxt/DxBIjTmI.js +9 -0
  61. package/dist/client/_nuxt/{CfVBzxeB.js → DyhAO93-.js} +1 -1
  62. package/dist/client/_nuxt/{gXK6hV6W.js → GjTC5NxA.js} +1 -1
  63. package/dist/client/_nuxt/{zLQhdF7m.js → L-yiqDbL.js} +1 -1
  64. package/dist/client/_nuxt/{VNvxalkE.js → SOK9_XgA.js} +1 -1
  65. package/dist/client/_nuxt/{DYx1ZwvQ.js → Sexyi49-.js} +1 -1
  66. package/dist/client/_nuxt/{CLVHkiJk.js → T04KvlgM.js} +1 -1
  67. package/dist/client/_nuxt/builds/latest.json +1 -1
  68. package/dist/client/_nuxt/builds/meta/4dfa6860-b8c0-4ad3-a283-0de7e742bb5a.json +1 -0
  69. package/dist/client/_nuxt/{D8XE2BC8.js → dYpGFgFL.js} +1 -1
  70. package/dist/client/_nuxt/{D-a-w6CR.js → dnEdyJOX.js} +1 -1
  71. package/dist/client/_nuxt/error-404.4OGL5unG.css +1 -0
  72. package/dist/client/_nuxt/error-500.CVlaxm9G.css +1 -0
  73. package/dist/client/_nuxt/{CmbkPMjd.js → lc4WPc7a.js} +1 -1
  74. package/dist/client/_nuxt/{awWHqjli.js → sdlgwPR1.js} +1 -1
  75. package/dist/client/_nuxt/{CjFkCrIW.js → vukXLwum.js} +1 -1
  76. package/dist/client/_nuxt/{pl_4MfI2.js → wDknflE0.js} +1 -1
  77. package/dist/client/_nuxt/{BWPbreBU.js → x4RoSwOc.js} +1 -1
  78. package/dist/client/index.html +20 -20
  79. package/dist/module.d.mts +1 -1
  80. package/dist/module.d.ts +1 -1
  81. package/dist/module.json +2 -2
  82. package/dist/runtime/function-metrics-helpers.d.ts +1 -1
  83. package/dist/runtime/{function-metrics-helpers.mjs → function-metrics-helpers.js} +1 -1
  84. package/dist/runtime/plugins/{devtools.client.mjs → devtools.client.js} +2 -2
  85. package/dist/runtime/plugins/view/FrameBox.vue +5 -49
  86. package/dist/runtime/plugins/view/Main.vue +1 -147
  87. package/dist/runtime/plugins/view/client.d.ts +1 -1
  88. package/dist/runtime/plugins/view/{client.mjs → client.js} +2 -2
  89. package/dist/runtime/plugins/view/state.d.ts +1 -1
  90. package/dist/runtime/plugins/view/{state.mjs → state.js} +1 -1
  91. package/dist/runtime/settings.d.ts +1 -1
  92. package/dist/runtime/shared/hooks.d.ts +1 -1
  93. package/dist/runtime/use-nuxt-devtools.d.ts +1 -1
  94. package/package.json +10 -10
  95. package/dist/client/_nuxt/Cvo3JE8Q.js +0 -1
  96. package/dist/client/_nuxt/W2Tyz6z1.js +0 -9
  97. package/dist/client/_nuxt/builds/meta/a69820c2-31c2-48f6-8161-842a62467079.json +0 -1
  98. package/dist/client/_nuxt/ciodjZaS.js +0 -43
  99. package/dist/client/_nuxt/error-404.Bssqox27.css +0 -1
  100. package/dist/client/_nuxt/error-500.D3oXMFZl.css +0 -1
  101. package/dist/client/_nuxt/z0xAc3RC.js +0 -1
  102. /package/dist/runtime/nitro/{inline.mjs → inline.js} +0 -0
  103. /package/dist/runtime/plugins/{devtools.server.mjs → devtools.server.js} +0 -0
  104. /package/dist/runtime/plugins/view/{utils.mjs → utils.js} +0 -0
  105. /package/dist/runtime/{settings.mjs → settings.js} +0 -0
  106. /package/dist/runtime/shared/{hooks.mjs → hooks.js} +0 -0
  107. /package/dist/runtime/{use-nuxt-devtools.mjs → use-nuxt-devtools.js} +0 -0
  108. /package/dist/runtime/vue-devtools/{overlay.d.mts → overlay.d.ts} +0 -0
  109. /package/dist/runtime/vue-devtools/{overlay.mjs → overlay.js} +0 -0
@@ -1 +1 @@
1
- import{d as t,o,m as s,G as a,p as n,aa as r,k as l,t as i}from"./ciodjZaS.js";const c={flex:"~ gap-3","items-center":""},u=t({__name:"NIconTitle",props:{icon:{},text:{}},setup(p){return(e,m)=>(o(),s("div",c,[e.icon?(o(),s("div",{key:0,class:a(e.icon)},null,2)):n("",!0),r(e.$slots,"default",{},()=>[l("div",null,i(e.text),1)])]))}});export{u as _};
1
+ import{d as t,o,m as s,G as a,p as n,aa as r,k as l,t as i}from"./BZflAdyk.js";const c={flex:"~ gap-3","items-center":""},u=t({__name:"NIconTitle",props:{icon:{},text:{}},setup(p){return(e,m)=>(o(),s("div",c,[e.icon?(o(),s("div",{key:0,class:a(e.icon)},null,2)):n("",!0),r(e.$slots,"default",{},()=>[l("div",null,i(e.text),1)])]))}});export{u as _};
@@ -1 +1 @@
1
- import{_ as S}from"./zjxoDR5L.js";import{_ as D}from"./Bi99gj7u.js";import{_ as C}from"./CxLTb5RC.js";import{d as v,ab as B,a as x,bi as V,o as n,m,k as t,t as P,i as l,f,h as u,p as d,au as F,aa as N,a6 as H,q as I,j as g,v as y,bk as E,am as W,F as k,n as j,G as L}from"./ciodjZaS.js";import{_ as M}from"./DwdKwQHN.js";import{_ as q}from"./CLVHkiJk.js";import"./zLQhdF7m.js";const z={flex:"~ gap2","items-center":""},A={w8:"","text-right":"","text-sm":"",op25:""},G={key:0,"flex-auto":"","text-right":""},R=v({__name:"PluginItem",props:{plugin:{},index:{}},setup(p){const e=p,a=B(),r=x(()=>V(e.plugin.src,a.value?.rootDir||"").path);return(i,c)=>{const _=S,o=D,s=C;return n(),m("div",z,[t("div",A,P(i.index),1),l(_,{filepath:e.plugin.src,subpath:!0},null,8,["filepath"]),t("div",null,[f(r).startsWith("#")?(n(),u(o,{key:0,n:"rose",textContent:"virtual"})):f(r).startsWith(".")?d("",!0):(n(),u(o,{key:1,n:"gray",textContent:"module"})),i.plugin.mode==="server"?(n(),u(o,{key:2,n:"teal",textContent:"server"})):d("",!0),i.plugin.mode==="client"?(n(),u(o,{key:3,n:"orange",textContent:"client"})):d("",!0)]),i.plugin.metric?.duration!=null?(n(),m("div",G,[l(s,{duration:i.plugin.metric?.duration,factor:10},null,8,["duration"])])):d("",!0)])}}}),Y={class:"n-tip n-tip-base",flex:"~ col items-start","mx--4":"",px4:"",py4:""},J={flex:"~ items-center gap-1","font-bold":""},K=v({__name:"HelpTip",props:{title:{},icon:{}},setup(p){return(e,a)=>{const r=H,i=F("ContentSlot");return n(),m("div",Y,[t("div",J,[e.icon?(n(),u(r,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):d("",!0),t("div",null,P(e.title),1)]),t("div",null,[N(e.$slots,"default",{},()=>[l(i,{use:e.$slots.default,unwrap:"p"},null,8,["use"])])])])}}}),O={};function Q(p,e){const a=K;return n(),u(a,{title:"Performance Tip",icon:"carbon-meter",n:"lime6 dark:lime5"},{default:g(()=>[N(p.$slots,"default")]),_:3})}const U=I(O,[["render",Q]]),X={class:"markdown-body"},Z=t("h1",null,"Plugins",-1),tt=t("p",null,[y("Nuxt plugins allow you to extend the functionality of the Nuxt runtime and the Vue instance. You can add plugins to the "),t("code",null,"plugins/"),y(" directory and they will be automatically imported and registered.")],-1),et=t("p",null,[t("a",{href:"https://nuxt.com/docs/guide/directory-structure/plugins",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),nt={__name:"plugins",setup(p,{expose:e}){return e({frontmatter:{}}),(r,i)=>{const c=U;return n(),m("div",X,[Z,tt,l(c,null,{default:g(()=>[y(" Plugins always run before your application's runtime. The loading time of each plugin will directly impact your application's initial loading time. ")]),_:1}),et])}}},ot=nt,st={pt4:""},it={class:"text-sm",flex:"~ gap-1 items-center justify-start","mt-3":""},at=t("div",{"i-carbon-timer":"","text-lg":"",op75:""},null,-1),rt=t("span",{op50:""},"Total execution time:",-1),ft=v({__name:"plugins",setup(p){const e=E(),a=W(),r=x(()=>{const c=e.value?.plugins||[],_=a.value?.metrics.clientPlugins()||[];return c.map(o=>{const s=typeof o=="string"?{src:o}:o;return{...s,metric:_.find(h=>h.src===s.src||h.src.startsWith(s.src))}})}),i=x(()=>{const c=a.value?.metrics.clientPlugins()||[],_=Math.min(...c.map(s=>s.start));return Math.max(...c.map(s=>s.end))-_});return(c,_)=>{const o=R,s=C,h=M,T=ot,w=q;return n(),m(k,null,[l(h,{icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${f(r).length}`},{default:g(()=>[t("div",st,[(n(!0),m(k,null,j(f(r),($,b)=>(n(),u(o,{key:$.src,plugin:$,index:b+1,"ml--4":"","border-base":"",py2:"",class:L(b?"border-t":"")},null,8,["plugin","index","class"]))),128)),t("div",it,[at,rt,l(s,{duration:f(i),factor:10},null,8,["duration"])])])]),_:1},8,["description"]),l(w,null,{default:g(()=>[l(T)]),_:1})],64)}}});export{ft as default};
1
+ import{_ as S}from"./BFisL5PK.js";import{_ as D}from"./DO36ltOt.js";import{_ as C}from"./BF2Zv_ac.js";import{d as v,ab as B,a as x,bi as V,o as n,m,k as t,t as P,i as l,f,h as u,p as d,au as F,aa as N,a6 as H,q as I,j as g,v as y,bk as E,am as W,F as k,n as j,G as L}from"./BZflAdyk.js";import{_ as M}from"./BgwfQLiC.js";import{_ as q}from"./T04KvlgM.js";import"./L-yiqDbL.js";const z={flex:"~ gap2","items-center":""},A={w8:"","text-right":"","text-sm":"",op25:""},G={key:0,"flex-auto":"","text-right":""},R=v({__name:"PluginItem",props:{plugin:{},index:{}},setup(p){const e=p,a=B(),r=x(()=>V(e.plugin.src,a.value?.rootDir||"").path);return(i,c)=>{const _=S,o=D,s=C;return n(),m("div",z,[t("div",A,P(i.index),1),l(_,{filepath:e.plugin.src,subpath:!0},null,8,["filepath"]),t("div",null,[f(r).startsWith("#")?(n(),u(o,{key:0,n:"rose",textContent:"virtual"})):f(r).startsWith(".")?d("",!0):(n(),u(o,{key:1,n:"gray",textContent:"module"})),i.plugin.mode==="server"?(n(),u(o,{key:2,n:"teal",textContent:"server"})):d("",!0),i.plugin.mode==="client"?(n(),u(o,{key:3,n:"orange",textContent:"client"})):d("",!0)]),i.plugin.metric?.duration!=null?(n(),m("div",G,[l(s,{duration:i.plugin.metric?.duration,factor:10},null,8,["duration"])])):d("",!0)])}}}),Y={class:"n-tip n-tip-base",flex:"~ col items-start","mx--4":"",px4:"",py4:""},J={flex:"~ items-center gap-1","font-bold":""},K=v({__name:"HelpTip",props:{title:{},icon:{}},setup(p){return(e,a)=>{const r=H,i=F("ContentSlot");return n(),m("div",Y,[t("div",J,[e.icon?(n(),u(r,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):d("",!0),t("div",null,P(e.title),1)]),t("div",null,[N(e.$slots,"default",{},()=>[l(i,{use:e.$slots.default,unwrap:"p"},null,8,["use"])])])])}}}),O={};function Q(p,e){const a=K;return n(),u(a,{title:"Performance Tip",icon:"carbon-meter",n:"lime6 dark:lime5"},{default:g(()=>[N(p.$slots,"default")]),_:3})}const U=I(O,[["render",Q]]),X={class:"markdown-body"},Z=t("h1",null,"Plugins",-1),tt=t("p",null,[y("Nuxt plugins allow you to extend the functionality of the Nuxt runtime and the Vue instance. You can add plugins to the "),t("code",null,"plugins/"),y(" directory and they will be automatically imported and registered.")],-1),et=t("p",null,[t("a",{href:"https://nuxt.com/docs/guide/directory-structure/plugins",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),nt={__name:"plugins",setup(p,{expose:e}){return e({frontmatter:{}}),(r,i)=>{const c=U;return n(),m("div",X,[Z,tt,l(c,null,{default:g(()=>[y(" Plugins always run before your application's runtime. The loading time of each plugin will directly impact your application's initial loading time. ")]),_:1}),et])}}},ot=nt,st={pt4:""},it={class:"text-sm",flex:"~ gap-1 items-center justify-start","mt-3":""},at=t("div",{"i-carbon-timer":"","text-lg":"",op75:""},null,-1),rt=t("span",{op50:""},"Total execution time:",-1),ft=v({__name:"plugins",setup(p){const e=E(),a=W(),r=x(()=>{const c=e.value?.plugins||[],_=a.value?.metrics.clientPlugins()||[];return c.map(o=>{const s=typeof o=="string"?{src:o}:o;return{...s,metric:_.find(h=>h.src===s.src||h.src.startsWith(s.src))}})}),i=x(()=>{const c=a.value?.metrics.clientPlugins()||[],_=Math.min(...c.map(s=>s.start));return Math.max(...c.map(s=>s.end))-_});return(c,_)=>{const o=R,s=C,h=M,T=ot,w=q;return n(),m(k,null,[l(h,{icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${f(r).length}`},{default:g(()=>[t("div",st,[(n(!0),m(k,null,j(f(r),($,b)=>(n(),u(o,{key:$.src,plugin:$,index:b+1,"ml--4":"","border-base":"",py2:"",class:L(b?"border-t":"")},null,8,["plugin","index","class"]))),128)),t("div",it,[at,rt,l(s,{duration:f(i),factor:10},null,8,["duration"])])])]),_:1},8,["description"]),l(w,null,{default:g(()=>[l(T)]),_:1})],64)}}});export{ft as default};
@@ -1,4 +1,4 @@
1
- import{_ as W}from"./BZvh3yot.js";import{d as A,a as B,r as J,as as V,bY as Y,o as Z,h as k,f as G}from"./ciodjZaS.js";function C(){}C.prototype={diff:function(e,o){var r,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=u.callback;typeof u=="function"&&(t=u,u={}),this.options=u;var f=this;function i(c){return t?(setTimeout(function(){t(void 0,c)},0),!0):c}e=this.castInput(e),o=this.castInput(o),e=this.removeEmpty(this.tokenize(e)),o=this.removeEmpty(this.tokenize(o));var s=o.length,l=e.length,d=1,p=s+l;u.maxEditLength&&(p=Math.min(p,u.maxEditLength));var m=(r=u.timeout)!==null&&r!==void 0?r:1/0,h=Date.now()+m,a=[{oldPos:-1,lastComponent:void 0}],v=this.extractCommon(a[0],o,e,0);if(a[0].oldPos+1>=l&&v+1>=s)return i([{value:this.join(o),count:o.length}]);var g=-1/0,L=1/0;function $(){for(var c=Math.max(g,-d);c<=Math.min(L,d);c+=2){var y=void 0,x=a[c-1],D=a[c+1];x&&(a[c-1]=void 0);var E=!1;if(D){var M=D.oldPos-c;E=D&&0<=M&&M<s}var O=x&&x.oldPos+1<l;if(!E&&!O){a[c]=void 0;continue}if(!O||E&&x.oldPos+1<D.oldPos?y=f.addToPath(D,!0,void 0,0):y=f.addToPath(x,void 0,!0,1),v=f.extractCommon(y,o,e,c),y.oldPos+1>=l&&v+1>=s)return i(H(f,y.lastComponent,o,e,f.useLongestToken));a[c]=y,y.oldPos+1>=l&&(L=Math.min(L,c-1)),v+1>=s&&(g=Math.max(g,c+1))}d++}if(t)(function c(){setTimeout(function(){if(d>p||Date.now()>h)return t();$()||c()},0)})();else for(;d<=p&&Date.now()<=h;){var q=$();if(q)return q}},addToPath:function(e,o,r,u){var t=e.lastComponent;return t&&t.added===o&&t.removed===r?{oldPos:e.oldPos+u,lastComponent:{count:t.count+1,added:o,removed:r,previousComponent:t.previousComponent}}:{oldPos:e.oldPos+u,lastComponent:{count:1,added:o,removed:r,previousComponent:t}}},extractCommon:function(e,o,r,u){for(var t=o.length,f=r.length,i=e.oldPos,s=i-u,l=0;s+1<t&&i+1<f&&this.equals(o[s+1],r[i+1]);)s++,i++,l++;return l&&(e.lastComponent={count:l,previousComponent:e.lastComponent}),e.oldPos=i,s},equals:function(e,o){return this.options.comparator?this.options.comparator(e,o):e===o||this.options.ignoreCase&&e.toLowerCase()===o.toLowerCase()},removeEmpty:function(e){for(var o=[],r=0;r<e.length;r++)e[r]&&o.push(e[r]);return o},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function H(n,e,o,r,u){for(var t=[],f;e;)t.push(e),f=e.previousComponent,delete e.previousComponent,e=f;t.reverse();for(var i=0,s=t.length,l=0,d=0;i<s;i++){var p=t[i];if(p.removed){if(p.value=n.join(r.slice(d,d+p.count)),d+=p.count,i&&t[i-1].added){var h=t[i-1];t[i-1]=t[i],t[i]=h}}else{if(!p.added&&u){var m=o.slice(l,l+p.count);m=m.map(function(v,g){var L=r[d+g];return L.length>v.length?L:v}),p.value=n.join(m)}else p.value=n.join(o.slice(l,l+p.count));l+=p.count,p.added||(d+=p.count)}}var a=t[s-1];return s>1&&typeof a.value=="string"&&(a.added||a.removed)&&n.equals("",a.value)&&(t[s-2].value+=a.value,t.pop()),t}var R=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,F=/\S/,N=new C;N.equals=function(n,e){return this.options.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n===e||this.options.ignoreWhitespace&&!F.test(n)&&!F.test(e)};N.tokenize=function(n){for(var e=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),o=0;o<e.length-1;o++)!e[o+1]&&e[o+2]&&R.test(e[o])&&R.test(e[o+2])&&(e[o]+=e[o+2],e.splice(o+1,2),o--);return e};var I=new C;I.tokenize=function(n){this.options.stripTrailingCr&&(n=n.replace(/\r\n/g,`
1
+ import{_ as W}from"./B2aNs1qV.js";import{d as A,a as B,r as J,as as V,bY as Y,o as Z,h as k,f as G}from"./BZflAdyk.js";function C(){}C.prototype={diff:function(e,o){var r,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=u.callback;typeof u=="function"&&(t=u,u={}),this.options=u;var f=this;function i(c){return t?(setTimeout(function(){t(void 0,c)},0),!0):c}e=this.castInput(e),o=this.castInput(o),e=this.removeEmpty(this.tokenize(e)),o=this.removeEmpty(this.tokenize(o));var s=o.length,l=e.length,d=1,p=s+l;u.maxEditLength&&(p=Math.min(p,u.maxEditLength));var m=(r=u.timeout)!==null&&r!==void 0?r:1/0,h=Date.now()+m,a=[{oldPos:-1,lastComponent:void 0}],v=this.extractCommon(a[0],o,e,0);if(a[0].oldPos+1>=l&&v+1>=s)return i([{value:this.join(o),count:o.length}]);var g=-1/0,L=1/0;function $(){for(var c=Math.max(g,-d);c<=Math.min(L,d);c+=2){var y=void 0,x=a[c-1],D=a[c+1];x&&(a[c-1]=void 0);var E=!1;if(D){var M=D.oldPos-c;E=D&&0<=M&&M<s}var O=x&&x.oldPos+1<l;if(!E&&!O){a[c]=void 0;continue}if(!O||E&&x.oldPos+1<D.oldPos?y=f.addToPath(D,!0,void 0,0):y=f.addToPath(x,void 0,!0,1),v=f.extractCommon(y,o,e,c),y.oldPos+1>=l&&v+1>=s)return i(H(f,y.lastComponent,o,e,f.useLongestToken));a[c]=y,y.oldPos+1>=l&&(L=Math.min(L,c-1)),v+1>=s&&(g=Math.max(g,c+1))}d++}if(t)(function c(){setTimeout(function(){if(d>p||Date.now()>h)return t();$()||c()},0)})();else for(;d<=p&&Date.now()<=h;){var q=$();if(q)return q}},addToPath:function(e,o,r,u){var t=e.lastComponent;return t&&t.added===o&&t.removed===r?{oldPos:e.oldPos+u,lastComponent:{count:t.count+1,added:o,removed:r,previousComponent:t.previousComponent}}:{oldPos:e.oldPos+u,lastComponent:{count:1,added:o,removed:r,previousComponent:t}}},extractCommon:function(e,o,r,u){for(var t=o.length,f=r.length,i=e.oldPos,s=i-u,l=0;s+1<t&&i+1<f&&this.equals(o[s+1],r[i+1]);)s++,i++,l++;return l&&(e.lastComponent={count:l,previousComponent:e.lastComponent}),e.oldPos=i,s},equals:function(e,o){return this.options.comparator?this.options.comparator(e,o):e===o||this.options.ignoreCase&&e.toLowerCase()===o.toLowerCase()},removeEmpty:function(e){for(var o=[],r=0;r<e.length;r++)e[r]&&o.push(e[r]);return o},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function H(n,e,o,r,u){for(var t=[],f;e;)t.push(e),f=e.previousComponent,delete e.previousComponent,e=f;t.reverse();for(var i=0,s=t.length,l=0,d=0;i<s;i++){var p=t[i];if(p.removed){if(p.value=n.join(r.slice(d,d+p.count)),d+=p.count,i&&t[i-1].added){var h=t[i-1];t[i-1]=t[i],t[i]=h}}else{if(!p.added&&u){var m=o.slice(l,l+p.count);m=m.map(function(v,g){var L=r[d+g];return L.length>v.length?L:v}),p.value=n.join(m)}else p.value=n.join(o.slice(l,l+p.count));l+=p.count,p.added||(d+=p.count)}}var a=t[s-1];return s>1&&typeof a.value=="string"&&(a.added||a.removed)&&n.equals("",a.value)&&(t[s-2].value+=a.value,t.pop()),t}var R=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,F=/\S/,N=new C;N.equals=function(n,e){return this.options.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n===e||this.options.ignoreWhitespace&&!F.test(n)&&!F.test(e)};N.tokenize=function(n){for(var e=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),o=0;o<e.length-1;o++)!e[o+1]&&e[o+2]&&R.test(e[o])&&R.test(e[o+2])&&(e[o]+=e[o+2],e.splice(o+1,2),o--);return e};var I=new C;I.tokenize=function(n){this.options.stripTrailingCr&&(n=n.replace(/\r\n/g,`
2
2
  `));var e=[],o=n.split(/(\n|\r\n)/);o[o.length-1]||o.pop();for(var r=0;r<o.length;r++){var u=o[r];r%2&&!this.options.newlineIsToken?e[e.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),e.push(u))}return e};function Q(n,e,o){return I.diff(n,e,o)}var U=new C;U.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var X=new C;X.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function w(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(e){return typeof e}:w=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(n)}var K=Object.prototype.toString,T=new C;T.useLongestToken=!0;T.tokenize=I.tokenize;T.castInput=function(n){var e=this.options,o=e.undefinedReplacement,r=e.stringifyReplacer,u=r===void 0?function(t,f){return typeof f>"u"?o:f}:r;return typeof n=="string"?n:JSON.stringify(z(n,null,null,u),u," ")};T.equals=function(n,e){return C.prototype.equals.call(T,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function z(n,e,o,r,u){e=e||[],o=o||[],r&&(n=r(u,n));var t;for(t=0;t<e.length;t+=1)if(e[t]===n)return o[t];var f;if(K.call(n)==="[object Array]"){for(e.push(n),f=new Array(n.length),o.push(f),t=0;t<n.length;t+=1)f[t]=z(n[t],e,o,r,u);return e.pop(),o.pop(),f}if(n&&n.toJSON&&(n=n.toJSON()),w(n)==="object"&&n!==null){e.push(n),f={},o.push(f);var i=[],s;for(s in n)n.hasOwnProperty(s)&&i.push(s);for(i.sort(),t=0;t<i.length;t+=1)s=i[t],f[s]=z(n[s],e,o,r,s);e.pop(),o.pop()}else f=n;return f}var _=new C;_.tokenize=function(n){return n.slice()};_.join=_.removeEmpty=function(n){return n};const b=A({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(n){const e=n;function o(i,s){const l=Q(i.trim(),s.trim()),d=[],p=[],m=[];for(const h of l){const a=h.value.trimEnd().split(`
3
3
  `);for(const v of a)h.added?(d.push(m.length),m.push(v)):(h.removed&&p.push(m.length),m.push(v))}return{added:d,removed:p,result:m.join(`
4
4
  `)}}const r=B(()=>o(e.from,e.to));function u(i){let s=0;return i.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,l=>(s++,r.value.added.includes(s-1)?'class="line line-added"':r.value.removed.includes(s-1)?'class="line line-removed"':l))}const t=J();V(f);function f(){const i=Y(t);i&&i.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(i,s)=>{const l=W;return Z(),k(l,{ref_key:"elRef",ref:t,code:G(r).result,lang:i.lang,"transform-rendered":u,onLoaded:f},null,8,["code","lang"])}}});export{b as _};
@@ -1 +1 @@
1
- import{d as c,r as m,f as o,m as s,k as d,i as a,j as i,aX as u,F as _,p as n,o as l,aa as k,B as v,_ as g}from"./ciodjZaS.js";const h=d("div",{"i-ri:question-mark":""},null,-1),x=[h],w={key:0,border:"l base",class:"prose",pos:"fixed bottom-0 right-0 top-0","z-200":"","h-full":"","w-150":"","overflow-auto":"",px8:"",py4:"","bg-base":""},y=c({__name:"HelpFab",setup(B){const e=m(!1),{showHelpButtons:p}=v();return(b,t)=>{const f=g;return o(p)?(l(),s(_,{key:0},[d("button",{pos:"absolute bottom-5 right-5",border:"~ base rounded-full ",flex:"~ items-center justify-center","z-110":"","h-11":"","w-11":"","backdrop-blur-8":"",bg:"bg-base op50!","light:shadow":"",hover:"bg-active",title:"Help",onClick:t[0]||(t[0]=r=>e.value=!o(e))},x),a(u,{name:"fade-in"},{default:i(()=>[o(e)?(l(),s("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:t[1]||(t[1]=r=>e.value=!1)})):n("",!0)]),_:1}),a(u,{name:"slide-in"},{default:i(()=>[o(e)?(l(),s("div",w,[k(b.$slots,"default"),a(f,{icon:"carbon-close",pos:"absolute top-3 right-3","rounded-full":"","text-xl":"",border:!1,onClick:t[2]||(t[2]=r=>e.value=!1)})])):n("",!0)]),_:3})],64)):n("",!0)}}});export{y as _};
1
+ import{d as c,r as m,f as o,m as s,k as d,i as a,j as i,aX as u,F as _,p as n,o as l,aa as k,B as v,_ as g}from"./BZflAdyk.js";const h=d("div",{"i-ri:question-mark":""},null,-1),x=[h],w={key:0,border:"l base",class:"prose",pos:"fixed bottom-0 right-0 top-0","z-200":"","h-full":"","w-150":"","overflow-auto":"",px8:"",py4:"","bg-base":""},y=c({__name:"HelpFab",setup(B){const e=m(!1),{showHelpButtons:p}=v();return(b,t)=>{const f=g;return o(p)?(l(),s(_,{key:0},[d("button",{pos:"absolute bottom-5 right-5",border:"~ base rounded-full ",flex:"~ items-center justify-center","z-110":"","h-11":"","w-11":"","backdrop-blur-8":"",bg:"bg-base op50!","light:shadow":"",hover:"bg-active",title:"Help",onClick:t[0]||(t[0]=r=>e.value=!o(e))},x),a(u,{name:"fade-in"},{default:i(()=>[o(e)?(l(),s("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:t[1]||(t[1]=r=>e.value=!1)})):n("",!0)]),_:1}),a(u,{name:"slide-in"},{default:i(()=>[o(e)?(l(),s("div",w,[k(b.$slots,"default"),a(f,{icon:"carbon-close",pos:"absolute top-3 right-3","rounded-full":"","text-xl":"",border:!1,onClick:t[2]||(t[2]=r=>e.value=!1)})])):n("",!0)]),_:3})],64)):n("",!0)}}});export{y as _};
@@ -1 +1 @@
1
- {"id":"a69820c2-31c2-48f6-8161-842a62467079","timestamp":1724173134315}
1
+ {"id":"4dfa6860-b8c0-4ad3-a283-0de7e742bb5a","timestamp":1724683968349}
@@ -0,0 +1 @@
1
+ {"id":"4dfa6860-b8c0-4ad3-a283-0de7e742bb5a","timestamp":1724683968349,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
@@ -1 +1 @@
1
- import{d as m,a0 as c,o as l,m as t,F as v,n as f,G as d,f as o,k as i,t as _,I as g,aP as y,l as V}from"./ciodjZaS.js";const h={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base"},k=["disabled","title"],x=["disabled","value","title"],D=m({__name:"NSelectTabs",props:{modelValue:{default:void 0},disabled:{type:Boolean,default:!1},options:{}},setup(r,{emit:b}){const a=c(r,"modelValue",b,{passive:!0});return(s,n)=>(l(),t("fieldset",h,[(l(!0),t(v,null,f(s.options,(e,p)=>(l(),t("label",{key:e.label,disabled:s.disabled,class:d(["relative n-border-base hover:n-bg-active px-0.5em py-0.1em",[p?"border-l n-border-base ml--1px":"",e.value===o(a)?"n-bg-active":""]]),title:e.label},[i("div",{class:d([e.value===o(a)?"":"op35"])},_(e.label),3),g(i("input",{"onUpdate:modelValue":n[0]||(n[0]=u=>V(a)?a.value=u:null),type:"radio",disabled:s.disabled,value:e.value,title:e.label,class:"absolute inset-0 op-0.1"},null,8,x),[[y,o(a)]])],10,k))),128))]))}});export{D as _};
1
+ import{d as m,a0 as c,o as l,m as t,F as v,n as f,G as d,f as o,k as i,t as _,I as g,aP as y,l as V}from"./BZflAdyk.js";const h={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base"},k=["disabled","title"],x=["disabled","value","title"],D=m({__name:"NSelectTabs",props:{modelValue:{default:void 0},disabled:{type:Boolean,default:!1},options:{}},setup(r,{emit:b}){const a=c(r,"modelValue",b,{passive:!0});return(s,n)=>(l(),t("fieldset",h,[(l(!0),t(v,null,f(s.options,(e,p)=>(l(),t("label",{key:e.label,disabled:s.disabled,class:d(["relative n-border-base hover:n-bg-active px-0.5em py-0.1em",[p?"border-l n-border-base ml--1px":"",e.value===o(a)?"n-bg-active":""]]),title:e.label},[i("div",{class:d([e.value===o(a)?"":"op35"])},_(e.label),3),g(i("input",{"onUpdate:modelValue":n[0]||(n[0]=u=>V(a)?a.value=u:null),type:"radio",disabled:s.disabled,value:e.value,title:e.label,class:"absolute inset-0 op-0.1"},null,8,x),[[y,o(a)]])],10,k))),128))]))}});export{D as _};
@@ -1,4 +1,4 @@
1
- import{d as x,am as N,a as _,m as p,f as i,i as y,j as C,k as m,t as f,p as h,h as w,Y as S,o as l,v as $}from"./ciodjZaS.js";import{_ as O}from"./2tJW9cKr.js";import"./zjxoDR5L.js";const R=/(^|@)\S+:\d+/,k=/^\s*at .*(\S+:\d+|\(native\))/m,F=/^(eval@)?(\[native code\])?$/;function I(t,c){if(typeof t.stacktrace<"u"||typeof t["opera#sourceloc"]<"u")return P(t);if(t.stack&&t.stack.match(k))return b(t);if(t.stack)return T(t);throw new Error("Cannot parse given Error object")}function v(t){if(!t.includes(":"))return[t,void 0,void 0];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));return[r[1],r[2]||void 0,r[3]||void 0]}function d(t,c){return t}function b(t,c){return A(t.stack)}function A(t,c){return d(t.split(`
1
+ import{d as x,am as N,a as _,m as p,f as i,i as y,j as C,k as m,t as f,p as h,h as w,Y as S,o as l,v as $}from"./BZflAdyk.js";import{_ as O}from"./C_QixTwI.js";import"./BFisL5PK.js";const R=/(^|@)\S+:\d+/,k=/^\s*at .*(\S+:\d+|\(native\))/m,F=/^(eval@)?(\[native code\])?$/;function I(t,c){if(typeof t.stacktrace<"u"||typeof t["opera#sourceloc"]<"u")return P(t);if(t.stack&&t.stack.match(k))return b(t);if(t.stack)return T(t);throw new Error("Cannot parse given Error object")}function v(t){if(!t.includes(":"))return[t,void 0,void 0];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));return[r[1],r[2]||void 0,r[3]||void 0]}function d(t,c){return t}function b(t,c){return A(t.stack)}function A(t,c){return d(t.split(`
2
2
  `).filter(e=>!!e.match(k))).map(e=>{e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=n.match(/ (\(.+\)$)/);n=o?n.replace(o[0],""):n;const a=v(o?o[1]:n),s=o&&n||void 0,u=["eval","<anonymous>"].includes(a[0])?void 0:a[0];return{function:s,file:u,line:a[1]?+a[1]:void 0,col:a[2]?+a[2]:void 0,raw:e}})}function T(t,c){return V(t.stack)}function V(t,c){return d(t.split(`
3
3
  `).filter(e=>!e.match(F))).map(e=>{if(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":"))return{function:e};{const n=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,o=e.match(n),a=o&&o[1]?o[1]:void 0,s=v(e.replace(n,""));return{function:a,file:s[0],line:s[1]?+s[1]:void 0,col:s[2]?+s[2]:void 0,raw:e}}})}function P(t,c){return!t.stacktrace||t.message.includes(`
4
4
  `)&&t.message.split(`
@@ -0,0 +1 @@
1
+ .spotlight[data-v-551d0712]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-551d0712]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media (prefers-color-scheme:light){.gradient-border[data-v-551d0712]{background-color:#ffffff4d}.gradient-border[data-v-551d0712]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82,#36e4da 75%,#0047e1)}}@media (prefers-color-scheme:dark){.gradient-border[data-v-551d0712]{background-color:#1414144d}.gradient-border[data-v-551d0712]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82,#36e4da 75%,#0047e1)}}.gradient-border[data-v-551d0712]:before{background-size:400% auto;border-radius:.5rem;content:"";inset:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.5;padding:2px;position:absolute;transition:background-position .3s ease-in-out,opacity .2s ease-in-out;width:100%}.gradient-border[data-v-551d0712]:hover:before{background-position:-50% 0;opacity:1}.fixed[data-v-551d0712]{position:fixed}.left-0[data-v-551d0712]{left:0}.right-0[data-v-551d0712]{right:0}.z-10[data-v-551d0712]{z-index:10}.z-20[data-v-551d0712]{z-index:20}.grid[data-v-551d0712]{display:grid}.mb-16[data-v-551d0712]{margin-bottom:4rem}.mb-8[data-v-551d0712]{margin-bottom:2rem}.max-w-520px[data-v-551d0712]{max-width:520px}.min-h-screen[data-v-551d0712]{min-height:100vh}.w-full[data-v-551d0712]{width:100%}.flex[data-v-551d0712]{display:flex}.cursor-pointer[data-v-551d0712]{cursor:pointer}.place-content-center[data-v-551d0712]{place-content:center}.items-center[data-v-551d0712]{align-items:center}.justify-center[data-v-551d0712]{justify-content:center}.overflow-hidden[data-v-551d0712]{overflow:hidden}.bg-white[data-v-551d0712]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-4[data-v-551d0712]{padding-left:1rem;padding-right:1rem}.px-8[data-v-551d0712]{padding-left:2rem;padding-right:2rem}.py-2[data-v-551d0712]{padding-bottom:.5rem;padding-top:.5rem}.text-center[data-v-551d0712]{text-align:center}.text-8xl[data-v-551d0712]{font-size:6rem;line-height:1}.text-xl[data-v-551d0712]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-551d0712]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-551d0712]{font-weight:300}.font-medium[data-v-551d0712]{font-weight:500}.leading-tight[data-v-551d0712]{line-height:1.25}.font-sans[data-v-551d0712]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-551d0712]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-551d0712]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-551d0712]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-551d0712]{padding-left:0;padding-right:0}.sm\:px-6[data-v-551d0712]{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3[data-v-551d0712]{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-4xl[data-v-551d0712]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-551d0712]{font-size:1.25rem;line-height:1.75rem}}
@@ -0,0 +1 @@
1
+ .spotlight[data-v-2faf6fb5]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.fixed[data-v-2faf6fb5]{position:fixed}.-bottom-1\/2[data-v-2faf6fb5]{bottom:-50%}.left-0[data-v-2faf6fb5]{left:0}.right-0[data-v-2faf6fb5]{right:0}.grid[data-v-2faf6fb5]{display:grid}.mb-16[data-v-2faf6fb5]{margin-bottom:4rem}.mb-8[data-v-2faf6fb5]{margin-bottom:2rem}.h-1\/2[data-v-2faf6fb5]{height:50%}.max-w-520px[data-v-2faf6fb5]{max-width:520px}.min-h-screen[data-v-2faf6fb5]{min-height:100vh}.place-content-center[data-v-2faf6fb5]{place-content:center}.overflow-hidden[data-v-2faf6fb5]{overflow:hidden}.bg-white[data-v-2faf6fb5]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8[data-v-2faf6fb5]{padding-left:2rem;padding-right:2rem}.text-center[data-v-2faf6fb5]{text-align:center}.text-8xl[data-v-2faf6fb5]{font-size:6rem;line-height:1}.text-xl[data-v-2faf6fb5]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-2faf6fb5]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-2faf6fb5]{font-weight:300}.font-medium[data-v-2faf6fb5]{font-weight:500}.leading-tight[data-v-2faf6fb5]{line-height:1.25}.font-sans[data-v-2faf6fb5]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-2faf6fb5]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-2faf6fb5]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-2faf6fb5]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-2faf6fb5]{padding-left:0;padding-right:0}.sm\:text-4xl[data-v-2faf6fb5]{font-size:2.25rem;line-height:2.5rem}}
@@ -1 +1 @@
1
- import{d as u,al as d,am as m,ac as f,m as _,f as n,h as l,j as v,an as C,o,v as E}from"./ciodjZaS.js";import{h as I}from"./DoQHeYxB.js";const k={class:"h-full w-full"},h=u({__name:"components-tree",setup(x){const{connected:c}=d(),t=m(),r=f();function s(a){a?t.value.devtools.open():t.value.devtools.close()}return(a,e)=>{const p=C;return o(),_("div",k,[n(c)?(o(),l(n(I),{key:0,onOnInspectComponentStart:e[0]||(e[0]=i=>s(!1)),onOnInspectComponentEnd:e[1]||(e[1]=i=>s(!0)),onOpenInEditor:n(r)},null,8,["onOpenInEditor"])):(o(),l(p,{key:1},{default:v(()=>[E(" Connecting.... ")]),_:1}))])}}});export{h as default};
1
+ import{d as u,al as d,am as m,ac as f,m as _,f as n,h as l,j as v,an as C,o,v as E}from"./BZflAdyk.js";import{h as I}from"./By8bKr-N.js";const k={class:"h-full w-full"},h=u({__name:"components-tree",setup(x){const{connected:c}=d(),t=m(),r=f();function s(a){a?t.value.devtools.open():t.value.devtools.close()}return(a,e)=>{const p=C;return o(),_("div",k,[n(c)?(o(),l(n(I),{key:0,onOnInspectComponentStart:e[0]||(e[0]=i=>s(!1)),onOnInspectComponentEnd:e[1]||(e[1]=i=>s(!0)),onOpenInEditor:n(r)},null,8,["onOpenInEditor"])):(o(),l(p,{key:1},{default:v(()=>[E(" Connecting.... ")]),_:1}))])}}});export{h as default};
@@ -1 +1 @@
1
- import{d as B,r as T,a as k,au as W,f as t,o,m as s,k as e,t as $,h as y,j as x,bj as q,F as v,n as M,p as P,i as h,v as L,G as E,X as A,_ as G,ac as H,bk as j,b5 as X,b6 as J,ab as Q,aq as Y,b7 as Z,as as ee,l as te,ae as oe,L as ne,M as ae}from"./ciodjZaS.js";import{_ as D}from"./Bi99gj7u.js";import{_ as F}from"./zjxoDR5L.js";import{_ as se}from"./DwdKwQHN.js";import{_ as re}from"./CnW1WPg6.js";import{_ as le}from"./CLVHkiJk.js";import"./zLQhdF7m.js";import"./DwVKZd3-.js";import"./yFeWtr-M.js";const ie={block:"","cursor-pointer":""},ue={p2:""},ce=["onSubmit"],de=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),pe={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},_e={key:1},he=B({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(V,{emit:i}){const d=V,w=i,m=T([]),p=k(()=>{const u=N(d.route.path);return m.value=Array.from({length:u.length},()=>""),u});function N(u){return u.split(/(:\w+[?*]?(?:\(\))?)/).filter(Boolean).map(_=>_[0]===":"?_.replace(/\(\)$/,"?"):_)}const r=k(()=>p.value.map((u,_)=>u[0]===":"?m.value[_]:u).join("").replace(/\/+/g,"/")),n=k(()=>d.route.path.includes(":"));function f(){w("navigate",r.value)}return(u,_)=>{const a=A,l=G,c=W("VDropdown");return t(n)?(o(),y(c,{key:1},{popper:x(({hide:g})=>[e("div",ue,[e("form",{flex:"~ col",onSubmit:q(()=>{f(),g()},["prevent"])},[t(n)?(o(),s(v,{key:0},[de,e("div",pe,[(o(!0),s(v,null,M(t(p),(b,R)=>(o(),s(v,{key:R},[b[0]===":"?(o(),y(a,{key:0,modelValue:t(m)[R],"onUpdate:modelValue":I=>t(m)[R]=I,"w-20":"","n-sm":"",placeholder:b.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(o(),s("span",_e,$(b),1))],64))),128))])],64)):P("",!0),h(l,{type:"submit",block:"",n:"primary"},{default:x(()=>[L(" Navigate ")]),_:1})],40,ce)])]),default:x(()=>[e("code",ie,[(o(!0),s(v,null,M(t(p),(g,b)=>(o(),s("span",{key:b,class:E(g[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},$(g[0]===":"?g.slice(1):g),3))),128))])]),_:1})):(o(),s("button",{key:0,onClick:f},[e("code",null,$(u.route.path),1)]))}}}),me={"w-full":""},fe=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1),ge={"w-20":"","pr-1":""},ve={flex:"","items-center":"","justify-end":""},ye={"text-sm":""},be={flex:"inline gap3","items-center":""},xe={op0:"","group-hover:op100":"",flex:"~ gap1"},ke=["onClick"],$e=e("div",{"i-carbon-script-reference":""},null,-1),we=[$e],Ne={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},Re={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","text-sm":"","font-mono":"",op50:""},Ce={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"","font-mono":""},Pe={key:0},Ve=["onClick"],Ie=B({__name:"RoutesTable",props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:["navigate"],setup(V){const i=V,d=H(),w=j(),m=k(()=>[...i.pages].sort((r,n)=>r.path.localeCompare(n.path)));function p(r){const n=i.layouts.find(f=>f.name===r);n&&d(n.file)}function N(r){if(typeof r=="string")return w.value?.middleware.find(n=>n.name===r)?.path}return(r,n)=>{const f=D,u=he,_=F;return o(),s("div",null,[e("table",me,[fe,e("tbody",null,[(o(!0),s(v,null,M(t(m),a=>(o(),s("tr",{key:a.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",ge,[e("div",ve,[r.matched.find(l=>l.name===a.name)?(o(),y(f,{key:0,n:"green",title:"active",textContent:"active"})):r.matchedPending.find(l=>l.name===a.name)?(o(),y(f,{key:1,n:"teal",title:"next",textContent:"next"})):P("",!0)])]),e("td",ye,[e("div",be,[h(u,{route:a,class:E(r.matched.find(l=>l.name===a.name)?"text-primary":r.matchedPending.find(l=>l.name===a.name)?"text-teal":""),onNavigate:n[0]||(n[0]=l=>r.$emit("navigate",l))},null,8,["route","class"]),e("div",xe,[a.file||a.meta?.file?(o(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:l=>t(d)(a.file||a.meta?.file)},we,8,ke)):P("",!0)])])]),e("td",Ne,$(a.name),1),e("td",Re,[h(_,{filepath:N(a.meta.middleware),override:`${a.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Ce,[a.meta.layout===!1?(o(),s("span",Pe,"-")):a.meta.layout?(o(),s("button",{key:1,onClick:l=>p(a.meta.layout)},$(a.meta.layout),9,Ve)):(o(),s("button",{key:2,"text-sm":"",op15:"",onClick:n[1]||(n[1]=l=>p("default"))}," (default) "))])]))),128))])])])}}}),Le={class:"markdown-body"},Me=e("h1",null,"Pages",-1),Te=e("p",null,[L("Nuxt provides a file-based routing to create routes within your web application using Vue Router under the hood. Pages are Vue components and can have any valid extension that Nuxt supports (by default .vue, .js, .jsx, .mjs, .ts or .tsx). Nuxt will automatically create a route for every page in your "),e("code",null,"~/pages/"),L(" directory.")],-1),Be=e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Ee=e("hr",null,null,-1),Ae=e("h1",null,"Middlewares",-1),je=e("p",null,"Nuxt provides a customizable route middleware framework that can be used throughout the application. This is ideal for extracting code that needs to run before navigating to a particular route.",-1),De=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Fe=[Me,Te,Be,Ee,Ae,je,De],Se={__name:"pages",setup(V,{expose:i}){return i({frontmatter:{}}),(w,m)=>(o(),s("div",Le,Fe))}},ze=Se,Ue={key:0,"h-full":"","of-auto":""},Ke={border:"b base",flex:"~ col gap1",px4:"",py3:"","n-navbar-glass":""},Oe=e("span",{op50:""},"Navigate from ",-1),We={"font-mono":""},qe=e("span",{op50:""}," to ",-1),Ge={key:1,op50:""},He=e("span",null,[L("Press "),e("b",{"font-bold":""},"Enter"),L(" to navigate")],-1),Xe={key:0,"text-orange":"",op75:""},Je={key:1,op50:""},Qe={"min-h-14":""},Ye={key:1,class:"py-4 text-center"},Ze=e("span",{op50:""},"No routes matched",-1),et=[Ze],tt={"w-full":""},ot=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1),nt={mr1:""},_t=B({__name:"pages",setup(V){const i=X(),d=J(),w=Q(),m=j(),p=Y(),N=Z(),r=k(()=>m.value?.middleware||[]),n=T(""),f=T(0),u=k(()=>(r.value,n.value,p.value,f.value,i.value?.currentRoute?.value?.path));ee(()=>{d.value&&(n.value=i.value?.currentRoute?.value?.path),i.value?.beforeEach(c=>{n.value=c.fullPath}),i.value?.afterEach(c=>{n.value=c.fullPath})});async function _(){n.value!==i.value?.currentRoute?.value?.path&&i.value.push(n.value||"/")}const a=k(()=>i.value.resolve(n.value||"/").matched);function l(c){i.value.push(c),n.value=c}return(c,g)=>{const b=A,R=Ie,I=se,S=D,z=F,U=re,K=ze,O=le;return o(),s(v,null,[t(w)?.pages&&t(i)?(o(),s("div",Ue,[e("div",Ke,[e("div",null,[t(u)!==t(n)?(o(),s(v,{key:0},[Oe,e("span",We,$(t(u)),1),qe],64)):(o(),s("span",Ge,"Current route"))]),h(b,{modelValue:t(n),"onUpdate:modelValue":g[0]||(g[0]=C=>te(n)?n.value=C:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:E(t(u)===t(n)?"":t(a).length?"text-green":"text-orange"),onKeydown:oe(_,["enter"])},null,8,["modelValue","class"]),e("div",null,[t(u)!==t(n)?(o(),s(v,{key:0},[He,t(a).length?P("",!0):(o(),s("span",Xe," (no match)"))],64)):(o(),s("span",Je,"Edit path above to navigate"))])]),h(I,{icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:x(()=>[e("div",Qe,[t(a).length?(o(),y(R,{key:0,pages:t(a),layouts:t(p)||[],matched:t(d).matched,"matched-pending":t(a),onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])):(o(),s("div",Ye,et))])]),_:1}),h(I,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${t(N).length} routes registered in your application`,padding:"pr5"},{default:x(()=>[h(R,{pages:t(N),layouts:t(p)||[],matched:t(d).matched,"matched-pending":t(a),onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),t(r).length?(o(),y(I,{key:0,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${t(r).length} middleware registered in your application`,padding:"px13"},{default:x(()=>[e("table",tt,[ot,(o(!0),s(v,null,M(t(r),C=>(o(),s("tr",{key:C.path,"h-7":""},[e("td",null,[e("span",nt,$(C.name),1),C.global?(o(),y(S,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"global"})):P("",!0)]),e("td",null,[h(z,{filepath:C.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):P("",!0)])):(o(),y(U,{key:1,icon:"carbon-tree-view-alt",name:"wizard-pages",title:"Nuxt Routing",description:"Create `./pages/index.vue` to enable routing",actions:[{label:"Learn more",src:"https://nuxt.com/docs/getting-started/routing",attrs:{n:"primary"}},{label:"Enable Routing",async handle(){return("rpc"in c?c.rpc:t(ne)).runWizard(await("ensureDevAuthToken"in c?c.ensureDevAuthToken:t(ae))(),"enablePages")}}]},null,8,["actions"])),h(O,null,{default:x(()=>[h(K)]),_:1})],64)}}});export{_t as default};
1
+ import{d as B,r as T,a as k,au as W,f as t,o,m as s,k as e,t as $,h as y,j as x,bj as q,F as v,n as M,p as P,i as h,v as L,G as E,X as A,_ as G,ac as H,bk as j,b5 as X,b6 as J,ab as Q,aq as Y,b7 as Z,as as ee,l as te,ae as oe,L as ne,M as ae}from"./BZflAdyk.js";import{_ as D}from"./DO36ltOt.js";import{_ as F}from"./BFisL5PK.js";import{_ as se}from"./BgwfQLiC.js";import{_ as re}from"./CmukqgDs.js";import{_ as le}from"./T04KvlgM.js";import"./L-yiqDbL.js";import"./BRmBiXYU.js";import"./CTgwY-nX.js";const ie={block:"","cursor-pointer":""},ue={p2:""},ce=["onSubmit"],de=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),pe={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},_e={key:1},he=B({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(V,{emit:i}){const d=V,w=i,m=T([]),p=k(()=>{const u=N(d.route.path);return m.value=Array.from({length:u.length},()=>""),u});function N(u){return u.split(/(:\w+[?*]?(?:\(\))?)/).filter(Boolean).map(_=>_[0]===":"?_.replace(/\(\)$/,"?"):_)}const r=k(()=>p.value.map((u,_)=>u[0]===":"?m.value[_]:u).join("").replace(/\/+/g,"/")),n=k(()=>d.route.path.includes(":"));function f(){w("navigate",r.value)}return(u,_)=>{const a=A,l=G,c=W("VDropdown");return t(n)?(o(),y(c,{key:1},{popper:x(({hide:g})=>[e("div",ue,[e("form",{flex:"~ col",onSubmit:q(()=>{f(),g()},["prevent"])},[t(n)?(o(),s(v,{key:0},[de,e("div",pe,[(o(!0),s(v,null,M(t(p),(b,R)=>(o(),s(v,{key:R},[b[0]===":"?(o(),y(a,{key:0,modelValue:t(m)[R],"onUpdate:modelValue":I=>t(m)[R]=I,"w-20":"","n-sm":"",placeholder:b.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(o(),s("span",_e,$(b),1))],64))),128))])],64)):P("",!0),h(l,{type:"submit",block:"",n:"primary"},{default:x(()=>[L(" Navigate ")]),_:1})],40,ce)])]),default:x(()=>[e("code",ie,[(o(!0),s(v,null,M(t(p),(g,b)=>(o(),s("span",{key:b,class:E(g[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},$(g[0]===":"?g.slice(1):g),3))),128))])]),_:1})):(o(),s("button",{key:0,onClick:f},[e("code",null,$(u.route.path),1)]))}}}),me={"w-full":""},fe=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1),ge={"w-20":"","pr-1":""},ve={flex:"","items-center":"","justify-end":""},ye={"text-sm":""},be={flex:"inline gap3","items-center":""},xe={op0:"","group-hover:op100":"",flex:"~ gap1"},ke=["onClick"],$e=e("div",{"i-carbon-script-reference":""},null,-1),we=[$e],Ne={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},Re={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","text-sm":"","font-mono":"",op50:""},Ce={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"","font-mono":""},Pe={key:0},Ve=["onClick"],Ie=B({__name:"RoutesTable",props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:["navigate"],setup(V){const i=V,d=H(),w=j(),m=k(()=>[...i.pages].sort((r,n)=>r.path.localeCompare(n.path)));function p(r){const n=i.layouts.find(f=>f.name===r);n&&d(n.file)}function N(r){if(typeof r=="string")return w.value?.middleware.find(n=>n.name===r)?.path}return(r,n)=>{const f=D,u=he,_=F;return o(),s("div",null,[e("table",me,[fe,e("tbody",null,[(o(!0),s(v,null,M(t(m),a=>(o(),s("tr",{key:a.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",ge,[e("div",ve,[r.matched.find(l=>l.name===a.name)?(o(),y(f,{key:0,n:"green",title:"active",textContent:"active"})):r.matchedPending.find(l=>l.name===a.name)?(o(),y(f,{key:1,n:"teal",title:"next",textContent:"next"})):P("",!0)])]),e("td",ye,[e("div",be,[h(u,{route:a,class:E(r.matched.find(l=>l.name===a.name)?"text-primary":r.matchedPending.find(l=>l.name===a.name)?"text-teal":""),onNavigate:n[0]||(n[0]=l=>r.$emit("navigate",l))},null,8,["route","class"]),e("div",xe,[a.file||a.meta?.file?(o(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:l=>t(d)(a.file||a.meta?.file)},we,8,ke)):P("",!0)])])]),e("td",Ne,$(a.name),1),e("td",Re,[h(_,{filepath:N(a.meta.middleware),override:`${a.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Ce,[a.meta.layout===!1?(o(),s("span",Pe,"-")):a.meta.layout?(o(),s("button",{key:1,onClick:l=>p(a.meta.layout)},$(a.meta.layout),9,Ve)):(o(),s("button",{key:2,"text-sm":"",op15:"",onClick:n[1]||(n[1]=l=>p("default"))}," (default) "))])]))),128))])])])}}}),Le={class:"markdown-body"},Me=e("h1",null,"Pages",-1),Te=e("p",null,[L("Nuxt provides a file-based routing to create routes within your web application using Vue Router under the hood. Pages are Vue components and can have any valid extension that Nuxt supports (by default .vue, .js, .jsx, .mjs, .ts or .tsx). Nuxt will automatically create a route for every page in your "),e("code",null,"~/pages/"),L(" directory.")],-1),Be=e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Ee=e("hr",null,null,-1),Ae=e("h1",null,"Middlewares",-1),je=e("p",null,"Nuxt provides a customizable route middleware framework that can be used throughout the application. This is ideal for extracting code that needs to run before navigating to a particular route.",-1),De=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Fe=[Me,Te,Be,Ee,Ae,je,De],Se={__name:"pages",setup(V,{expose:i}){return i({frontmatter:{}}),(w,m)=>(o(),s("div",Le,Fe))}},ze=Se,Ue={key:0,"h-full":"","of-auto":""},Ke={border:"b base",flex:"~ col gap1",px4:"",py3:"","n-navbar-glass":""},Oe=e("span",{op50:""},"Navigate from ",-1),We={"font-mono":""},qe=e("span",{op50:""}," to ",-1),Ge={key:1,op50:""},He=e("span",null,[L("Press "),e("b",{"font-bold":""},"Enter"),L(" to navigate")],-1),Xe={key:0,"text-orange":"",op75:""},Je={key:1,op50:""},Qe={"min-h-14":""},Ye={key:1,class:"py-4 text-center"},Ze=e("span",{op50:""},"No routes matched",-1),et=[Ze],tt={"w-full":""},ot=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1),nt={mr1:""},_t=B({__name:"pages",setup(V){const i=X(),d=J(),w=Q(),m=j(),p=Y(),N=Z(),r=k(()=>m.value?.middleware||[]),n=T(""),f=T(0),u=k(()=>(r.value,n.value,p.value,f.value,i.value?.currentRoute?.value?.path));ee(()=>{d.value&&(n.value=i.value?.currentRoute?.value?.path),i.value?.beforeEach(c=>{n.value=c.fullPath}),i.value?.afterEach(c=>{n.value=c.fullPath})});async function _(){n.value!==i.value?.currentRoute?.value?.path&&i.value.push(n.value||"/")}const a=k(()=>i.value.resolve(n.value||"/").matched);function l(c){i.value.push(c),n.value=c}return(c,g)=>{const b=A,R=Ie,I=se,S=D,z=F,U=re,K=ze,O=le;return o(),s(v,null,[t(w)?.pages&&t(i)?(o(),s("div",Ue,[e("div",Ke,[e("div",null,[t(u)!==t(n)?(o(),s(v,{key:0},[Oe,e("span",We,$(t(u)),1),qe],64)):(o(),s("span",Ge,"Current route"))]),h(b,{modelValue:t(n),"onUpdate:modelValue":g[0]||(g[0]=C=>te(n)?n.value=C:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:E(t(u)===t(n)?"":t(a).length?"text-green":"text-orange"),onKeydown:oe(_,["enter"])},null,8,["modelValue","class"]),e("div",null,[t(u)!==t(n)?(o(),s(v,{key:0},[He,t(a).length?P("",!0):(o(),s("span",Xe," (no match)"))],64)):(o(),s("span",Je,"Edit path above to navigate"))])]),h(I,{icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:x(()=>[e("div",Qe,[t(a).length?(o(),y(R,{key:0,pages:t(a),layouts:t(p)||[],matched:t(d).matched,"matched-pending":t(a),onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])):(o(),s("div",Ye,et))])]),_:1}),h(I,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${t(N).length} routes registered in your application`,padding:"pr5"},{default:x(()=>[h(R,{pages:t(N),layouts:t(p)||[],matched:t(d).matched,"matched-pending":t(a),onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),t(r).length?(o(),y(I,{key:0,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${t(r).length} middleware registered in your application`,padding:"px13"},{default:x(()=>[e("table",tt,[ot,(o(!0),s(v,null,M(t(r),C=>(o(),s("tr",{key:C.path,"h-7":""},[e("td",null,[e("span",nt,$(C.name),1),C.global?(o(),y(S,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"global"})):P("",!0)]),e("td",null,[h(z,{filepath:C.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):P("",!0)])):(o(),y(U,{key:1,icon:"carbon-tree-view-alt",name:"wizard-pages",title:"Nuxt Routing",description:"Create `./pages/index.vue` to enable routing",actions:[{label:"Learn more",src:"https://nuxt.com/docs/getting-started/routing",attrs:{n:"primary"}},{label:"Enable Routing",async handle(){return("rpc"in c?c.rpc:t(ne)).runWizard(await("ensureDevAuthToken"in c?c.ensureDevAuthToken:t(ae))(),"enablePages")}}]},null,8,["actions"])),h(O,null,{default:x(()=>[h(K)]),_:1})],64)}}});export{_t as default};
@@ -1 +1 @@
1
- import{d as p,a0 as m,o,m as l,aa as n,h as f,p as t,I as b,c5 as h,f as v,k,t as y,l as V,G as d,a6 as B}from"./ciodjZaS.js";const g=["disabled"],w={key:0,value:"",disabled:"",hidden:""},C=p({__name:"NSelect",props:{modelValue:{default:void 0},placeholder:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1}},setup(i,{emit:r}){const s=m(i,"modelValue",r,{passive:!0});return(e,a)=>{const c=B;return o(),l("div",{class:d(["n-select flex flex items-center border rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base",e.disabled?"border-gray:10":"n-border-base"])},[n(e.$slots,"icon",{},()=>[e.icon?(o(),f(c,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):t("",!0)]),b(k("select",{"onUpdate:modelValue":a[0]||(a[0]=u=>V(s)?s.value=u:null),disabled:e.disabled,class:d(["w-full flex-auto n-bg-base !outline-none",e.disabled?"appearance-none":""])},[e.placeholder?(o(),l("option",w,y(e.placeholder),1)):t("",!0),n(e.$slots,"default")],10,g),[[h,v(s)]])],2)}}});export{C as _};
1
+ import{d as p,a0 as m,o,m as l,aa as n,h as f,p as t,I as b,c5 as h,f as v,k,t as y,l as V,G as d,a6 as B}from"./BZflAdyk.js";const g=["disabled"],w={key:0,value:"",disabled:"",hidden:""},C=p({__name:"NSelect",props:{modelValue:{default:void 0},placeholder:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1}},setup(i,{emit:r}){const s=m(i,"modelValue",r,{passive:!0});return(e,a)=>{const c=B;return o(),l("div",{class:d(["n-select flex flex items-center border rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base",e.disabled?"border-gray:10":"n-border-base"])},[n(e.$slots,"icon",{},()=>[e.icon?(o(),f(c,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):t("",!0)]),b(k("select",{"onUpdate:modelValue":a[0]||(a[0]=u=>V(s)?s.value=u:null),disabled:e.disabled,class:d(["w-full flex-auto n-bg-base !outline-none",e.disabled?"appearance-none":""])},[e.placeholder?(o(),l("option",w,y(e.placeholder),1)):t("",!0),n(e.$slots,"default")],10,g),[[h,v(s)]])],2)}}});export{C as _};
@@ -1 +1 @@
1
- import{d as C,a0 as N,ao as O,bl as v,as as R,w as $,a2 as D,o as i,m as p,k as d,G as u,f as t,t as b,p as c,aa as M,bq as j,br as z,F as g,I as E,i as J,h as k,ay as P,bB as A,l as F,aC as q,_ as G}from"./ciodjZaS.js";import{_ as I}from"./B-wfK0SS.js";import{e as T}from"./BMUgLter.js";const U=["open"],H={flex:"~ gap2","select-none":"","items-center":"",px4:""},K={key:0,class:"bg-red:10 px5 py3 text-red"},Y=C({__name:"StateEditor",props:{name:{},open:{type:Boolean},revision:{},state:{},readonly:{type:Boolean}},emits:["update:open"],setup(h,{emit:B}){const s=h,o=N(s,"open",B,{passive:!0}),V=O(),r=v(),l=v();function m(){l.value=void 0;try{s.state?r.value=JSON.parse(JSON.stringify(s.state)):(typeof s.state=="number"||typeof s.state!="string")&&(r.value=s.state)}catch(e){console.error(e),l.value=e}}R(()=>{m(),$(()=>[s.revision,s.state],e=>{typeof e!="number"&&typeof e!="string"?f(e,s.state):r.value=s.state},{deep:!0})});function f(e,n){for(const a in e)e[a]===null?n[a]=null:Array.isArray(e[a])?n[a]=e[a].slice():typeof e[a]=="object"?f(e[a],n[a]):n[a]=e[a]}async function _(){m(),await q()}return(e,n)=>{const a=G,w=I,S=D("tooltip");return i(),p("div",{class:"state-editor-details",open:e.name?t(o):!0},[d("div",H,[e.name?(i(),p("button",{key:0,flex:"~","cursor-pointer":"","items-center":"",class:u(t(o)?"":"op50"),onClick:n[0]||(n[0]=y=>o.value=!t(o))},[d("div",{"i-carbon-chevron-right":"",transition:"",class:u(t(o)?"rotate-90 op0":"")},null,2),d("code",{px3:"",py1:"","font-mono":"",class:u(t(o)?"bg-[#8881] rounded-t":"rounded hover:bg-active")},b(e.name),3)],2)):c("",!0),M(e.$slots,"actions",j(z({isOpen:t(o),name:e.name,state:e.state}))),t(o)?(i(),p(g,{key:1},[E(J(a,{title:"Refresh View",icon:"carbon-renew",border:!1,onClick:_},null,512),[[S,"Refresh View",void 0,{bottom:!0}]]),t(r)&&!t(l)?(i(),k(w,{key:0,getter:()=>({name:e.name,input:JSON.stringify(t(r))})},null,8,["getter"])):c("",!0)],64)):c("",!0)]),t(o)||!e.name?(i(),p(g,{key:0},[t(l)?(i(),p("div",K," Error: "+b(t(l)),1)):(i(),k(t(T),P({key:1,modelValue:t(r),"onUpdate:modelValue":n[1]||(n[1]=y=>F(r)?r.value=y:null)},e.$attrs,{class:["json-editor-vue",[t(V)==="dark"?"jse-theme-dark":"",(e.name,"")]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":"readonly"in e?e.readonly:t(A),indentation:2,"tab-size":2}),null,16,["modelValue","class","read-only"]))],64)):c("",!0)],8,U)}}});export{Y as _};
1
+ import{d as C,a0 as N,ao as O,bl as v,as as R,w as $,a2 as D,o as i,m as p,k as d,G as u,f as t,t as b,p as c,aa as M,bq as j,br as z,F as g,I as E,i as J,h as k,ay as P,bB as A,l as F,aC as q,_ as G}from"./BZflAdyk.js";import{_ as I}from"./A56qLMdk.js";import{e as T}from"./CHRohc05.js";const U=["open"],H={flex:"~ gap2","select-none":"","items-center":"",px4:""},K={key:0,class:"bg-red:10 px5 py3 text-red"},Y=C({__name:"StateEditor",props:{name:{},open:{type:Boolean},revision:{},state:{},readonly:{type:Boolean}},emits:["update:open"],setup(h,{emit:B}){const s=h,o=N(s,"open",B,{passive:!0}),V=O(),r=v(),l=v();function m(){l.value=void 0;try{s.state?r.value=JSON.parse(JSON.stringify(s.state)):(typeof s.state=="number"||typeof s.state!="string")&&(r.value=s.state)}catch(e){console.error(e),l.value=e}}R(()=>{m(),$(()=>[s.revision,s.state],e=>{typeof e!="number"&&typeof e!="string"?f(e,s.state):r.value=s.state},{deep:!0})});function f(e,n){for(const a in e)e[a]===null?n[a]=null:Array.isArray(e[a])?n[a]=e[a].slice():typeof e[a]=="object"?f(e[a],n[a]):n[a]=e[a]}async function _(){m(),await q()}return(e,n)=>{const a=G,w=I,S=D("tooltip");return i(),p("div",{class:"state-editor-details",open:e.name?t(o):!0},[d("div",H,[e.name?(i(),p("button",{key:0,flex:"~","cursor-pointer":"","items-center":"",class:u(t(o)?"":"op50"),onClick:n[0]||(n[0]=y=>o.value=!t(o))},[d("div",{"i-carbon-chevron-right":"",transition:"",class:u(t(o)?"rotate-90 op0":"")},null,2),d("code",{px3:"",py1:"","font-mono":"",class:u(t(o)?"bg-[#8881] rounded-t":"rounded hover:bg-active")},b(e.name),3)],2)):c("",!0),M(e.$slots,"actions",j(z({isOpen:t(o),name:e.name,state:e.state}))),t(o)?(i(),p(g,{key:1},[E(J(a,{title:"Refresh View",icon:"carbon-renew",border:!1,onClick:_},null,512),[[S,"Refresh View",void 0,{bottom:!0}]]),t(r)&&!t(l)?(i(),k(w,{key:0,getter:()=>({name:e.name,input:JSON.stringify(t(r))})},null,8,["getter"])):c("",!0)],64)):c("",!0)]),t(o)||!e.name?(i(),p(g,{key:0},[t(l)?(i(),p("div",K," Error: "+b(t(l)),1)):(i(),k(t(T),P({key:1,modelValue:t(r),"onUpdate:modelValue":n[1]||(n[1]=y=>F(r)?r.value=y:null)},e.$attrs,{class:["json-editor-vue",[t(V)==="dark"?"jse-theme-dark":"",(e.name,"")]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":"readonly"in e?e.readonly:t(A),indentation:2,"tab-size":2}),null,16,["modelValue","class","read-only"]))],64)):c("",!0)],8,U)}}});export{Y as _};
@@ -1 +1 @@
1
- import{d as i,a0 as r,o as p,m as b,I as u,c4 as h,f as a,k as n,l as k,ae as m,i as f,aa as v,G as _,a6 as x}from"./ciodjZaS.js";const V=["checked","disabled"],y=["disabled"],B={class:"n-checkbox-box n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},w=i({__name:"NCheckbox",props:{modelValue:{type:[Boolean,null],default:!1},disabled:{type:Boolean,default:!1}},setup(c,{emit:t}){const e=r(c,"modelValue",t,{passive:!0});return(o,s)=>{const d=x;return p(),b("label",{class:"n-checkbox hover:n-checkbox-hover select-none items-center n-disabled:n-disabled",checked:a(e)||null,disabled:o.disabled||null},[u(n("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>k(e)?e.value=l:null),type:"checkbox",class:"peer absolute op0",disabled:o.disabled,onKeypress:s[1]||(s[1]=m(l=>e.value=!a(e),["enter"]))},null,40,y),[[h,a(e)]]),n("span",B,[f(d,{class:"n-checkbox-icon scale-0 transform op0 n-transition n-checked:scale-100 n-checked:op100"})]),n("span",{class:_([a(e)?"":"op50","n-transition"])},[v(o.$slots,"default")],2)],8,V)}}});export{w as _};
1
+ import{d as i,a0 as r,o as p,m as b,I as u,c4 as h,f as a,k as n,l as k,ae as m,i as f,aa as v,G as _,a6 as x}from"./BZflAdyk.js";const V=["checked","disabled"],y=["disabled"],B={class:"n-checkbox-box n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},w=i({__name:"NCheckbox",props:{modelValue:{type:[Boolean,null],default:!1},disabled:{type:Boolean,default:!1}},setup(c,{emit:t}){const e=r(c,"modelValue",t,{passive:!0});return(o,s)=>{const d=x;return p(),b("label",{class:"n-checkbox hover:n-checkbox-hover select-none items-center n-disabled:n-disabled",checked:a(e)||null,disabled:o.disabled||null},[u(n("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>k(e)?e.value=l:null),type:"checkbox",class:"peer absolute op0",disabled:o.disabled,onKeypress:s[1]||(s[1]=m(l=>e.value=!a(e),["enter"]))},null,40,y),[[h,a(e)]]),n("span",B,[f(d,{class:"n-checkbox-icon scale-0 transform op0 n-transition n-checked:scale-100 n-checked:op100"})]),n("span",{class:_([a(e)?"":"op50","n-transition"])},[v(o.$slots,"default")],2)],8,V)}}});export{w as _};
@@ -1,36 +1,36 @@
1
1
  <!DOCTYPE html><html data-capo=""><head><meta charset="utf-8">
2
2
  <meta name="viewport" content="width=device-width, initial-scale=1">
3
3
  <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.Gpl6Gx6M.css">
4
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ciodjZaS.js">
4
+ <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BZflAdyk.js">
5
5
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Blr6EMNg.js">
6
6
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BLmvGqlk.js">
7
7
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BYelj_cE.js">
8
8
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CupVZNk8.js">
9
9
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DK4oFTHQ.js">
10
10
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CbYhyuC0.js">
11
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CHuuZgn4.js">
12
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/_ECCzcZq.js">
11
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Dch3xQiY.js">
12
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DC8MraHL.js">
13
13
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DpYuRYxj.js">
14
14
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CbViG2Xw.js">
15
15
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/C8RrL2-P.js">
16
16
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DvyTQcux.js">
17
17
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DOv5BRyJ.js">
18
18
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CsTmP73Z.js">
19
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CPr4CZHz.js">
20
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DVZAdofw.js">
21
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BZZpaKJQ.js">
19
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BNFg_2hU.js">
20
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CqEMLpLr.js">
21
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DjP2QASF.js">
22
22
  <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/NCodeBlock.BJ-XAY5s.css">
23
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BF_UD7ZT.js">
24
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CjFkCrIW.js">
25
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/viHXAOJs.js">
26
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Dv0NFAnW.js">
27
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BZvh3yot.js">
28
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/yFeWtr-M.js">
29
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DKlNNSWk.js">
30
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BrzmMRQX.js">
31
- <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.Bssqox27.css">
32
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BkmSFWMo.js">
33
- <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.D3oXMFZl.css">
34
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/z0xAc3RC.js">
35
- <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/ciodjZaS.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"serverRendered":1},false]</script>
36
- <script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"a69820c2-31c2-48f6-8161-842a62467079",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
23
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DKNVc3Pf.js">
24
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vukXLwum.js">
25
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DLu2RzFt.js">
26
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BQnF4QpF.js">
27
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/B2aNs1qV.js">
28
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CTgwY-nX.js">
29
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BwlD2UKZ.js">
30
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Dru2Tyw8.js">
31
+ <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.4OGL5unG.css">
32
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/D43mkQK_.js">
33
+ <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.CVlaxm9G.css">
34
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BTojbgVV.js">
35
+ <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/BZflAdyk.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"serverRendered":1},false]</script>
36
+ <script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"4dfa6860-b8c0-4ad3-a283-0de7e742bb5a",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
package/dist/module.d.mts CHANGED
@@ -4,6 +4,6 @@ import { ModuleOptions } from '@nuxt/devtools-kit/types';
4
4
  export { ModuleOptions } from '@nuxt/devtools-kit/types';
5
5
  import 'vite-plugin-vue-inspector';
6
6
 
7
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
7
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
8
8
 
9
9
  export { _default as default };
package/dist/module.d.ts CHANGED
@@ -4,6 +4,6 @@ import { ModuleOptions } from '@nuxt/devtools-kit/types';
4
4
  export { ModuleOptions } from '@nuxt/devtools-kit/types';
5
5
  import 'vite-plugin-vue-inspector';
6
6
 
7
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
7
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
8
8
 
9
9
  export { _default as default };
package/dist/module.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@nuxt/devtools",
3
3
  "configKey": "devtools",
4
- "version": "1.3.14",
4
+ "version": "1.4.0",
5
5
  "builder": {
6
- "@nuxt/module-builder": "0.6.0",
6
+ "@nuxt/module-builder": "0.8.3",
7
7
  "unbuild": "2.0.0"
8
8
  }
9
9
  }
@@ -1,3 +1,3 @@
1
- import type { TimelineMetrics } from '../types';
1
+ import type { TimelineMetrics } from '../types.js';
2
2
  export declare function initTimelineMetrics(): TimelineMetrics;
3
3
  export declare function __nuxtTimelineWrap(name: string, fn: any): any;
@@ -1,6 +1,6 @@
1
1
  import { markRaw, reactive } from "vue";
2
2
  import { parse as parseStrackTrace } from "error-stack-parser-es";
3
- import { useObjectStorage } from "./plugins/view/utils.mjs";
3
+ import { useObjectStorage } from "./plugins/view/utils.js";
4
4
  const nonLiteralSymbol = Symbol("nuxt-devtools-fn-metrics-non-literal");
5
5
  function getStacktrace() {
6
6
  return parseStrackTrace(new Error());
@@ -1,5 +1,5 @@
1
1
  import { shallowReactive, watchEffect } from "vue";
2
- import { setupHooksDebug } from "../shared/hooks.mjs";
2
+ import { setupHooksDebug } from "../shared/hooks.js";
3
3
  import { defineNuxtPlugin, useRouter, useState } from "#imports";
4
4
  export default defineNuxtPlugin((nuxt) => {
5
5
  if (typeof document === "undefined" || typeof window === "undefined")
@@ -38,7 +38,7 @@ export default defineNuxtPlugin((nuxt) => {
38
38
  if (ssrState.value.timeSsrStart)
39
39
  timeMetric.ssrStart = ssrState.value.timeSsrStart;
40
40
  });
41
- import("./view/client").then(async ({ setupDevToolsClient }) => {
41
+ import("./view/client.js").then(async ({ setupDevToolsClient }) => {
42
42
  await setupDevToolsClient({
43
43
  nuxt,
44
44
  clientHooks,
@@ -71,20 +71,20 @@ function handleResize(e: MouseEvent | TouchEvent) {
71
71
 
72
72
  let widthPx: number, heightPx: number
73
73
  if (isResizing.value.right) {
74
- widthPx = Math.abs(e instanceof MouseEvent ? e.clientX : e.touches[0].clientX - (box?.left || 0))
74
+ widthPx = Math.abs(e instanceof MouseEvent ? e.clientX : (e.touches[0]?.clientX || 0) - (box?.left || 0))
75
75
  state.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, widthPx / window.innerWidth * 100))
76
76
  }
77
77
  else if (isResizing.value.left) {
78
- widthPx = Math.abs((box?.right || 0) - (e instanceof MouseEvent ? e.clientX : e.touches[0].clientX))
78
+ widthPx = Math.abs((box?.right || 0) - (e instanceof MouseEvent ? e.clientX : (e.touches[0]?.clientX || 0)))
79
79
  state.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, widthPx / window.innerWidth * 100))
80
80
  }
81
81
 
82
82
  if (isResizing.value.top) {
83
- heightPx = Math.abs((box?.bottom || 0) - (e instanceof MouseEvent ? e.clientY : e.touches[0].clientY))
83
+ heightPx = Math.abs((box?.bottom || 0) - (e instanceof MouseEvent ? e.clientY : (e.touches[0]?.clientY || 0)))
84
84
  state.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, heightPx / window.innerHeight * 100))
85
85
  }
86
86
  else if (isResizing.value.bottom) {
87
- heightPx = Math.abs(e instanceof MouseEvent ? e.clientY : e.touches[0].clientY - (box?.top || 0))
87
+ heightPx = Math.abs(e instanceof MouseEvent ? e.clientY : (e.touches[0]?.clientY || 0) - (box?.top || 0))
88
88
  state.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, heightPx / window.innerHeight * 100))
89
89
  }
90
90
  }
@@ -163,49 +163,5 @@ useEventListener(window, 'mouseleave', () => isResizing.value = false)
163
163
  </template>
164
164
 
165
165
  <style scoped>
166
- .nuxt-devtools-frame {
167
- width: 100%;
168
- height: 100%;
169
- position: fixed;
170
- z-index: 2147483645;
171
- -webkit-font-smoothing: antialiased;
172
- }
173
-
174
- .nuxt-devtools-frame :deep(iframe) {
175
- width: 100%;
176
- height: 100%;
177
- outline: none;
178
- background: var(--nuxt-devtools-widget-bg);
179
- border: 1px solid rgba(125, 125, 125, 0.2);
180
- border-radius: 10px;
181
- }
182
-
183
- .nuxt-devtools-resize-handle-horizontal {
184
- position: absolute;
185
- left: 6px;
186
- right: 6px;
187
- height: 10px;
188
- margin: -5px 0;
189
- cursor: ns-resize;
190
- border-radius: 5px;
191
- }
192
- .nuxt-devtools-resize-handle-vertical {
193
- position: absolute;
194
- top: 6px;
195
- bottom: 0;
196
- width: 10px;
197
- margin: 0 -5px;
198
- cursor: ew-resize;
199
- border-radius: 5px;
200
- }
201
- .nuxt-devtools-resize-handle-corner {
202
- position: absolute;
203
- width: 14px;
204
- height: 14px;
205
- margin: -6px;
206
- border-radius: 6px;
207
- }
208
- .nuxt-devtools-resize-handle:hover {
209
- background: rgba(125, 125, 125, 0.1);
210
- }
166
+ .nuxt-devtools-frame{height:100%;position:fixed;width:100%;z-index:2147483645;-webkit-font-smoothing:antialiased}.nuxt-devtools-frame :deep(iframe){background:var(--nuxt-devtools-widget-bg);border:1px solid hsla(0,0%,49%,.2);border-radius:10px;height:100%;outline:none;width:100%}.nuxt-devtools-resize-handle-horizontal{border-radius:5px;cursor:ns-resize;height:10px;left:6px;margin:-5px 0;position:absolute;right:6px}.nuxt-devtools-resize-handle-vertical{border-radius:5px;bottom:0;cursor:ew-resize;margin:0 -5px;position:absolute;top:6px;width:10px}.nuxt-devtools-resize-handle-corner{border-radius:6px;height:14px;margin:-6px;position:absolute;width:14px}.nuxt-devtools-resize-handle:hover{background:hsla(0,0%,49%,.1)}
211
167
  </style>
@@ -418,151 +418,5 @@ onMounted(() => {
418
418
  </template>
419
419
 
420
420
  <style scoped>
421
- #nuxt-devtools-anchor {
422
- width: 0;
423
- z-index: 2147483645;
424
- position: fixed;
425
- transform-origin: center center;
426
- transform: translate(-50%, -50%) rotate(0);
427
- font-family: Arial, Helvetica, sans-serif;
428
- font-size: 15px !important;
429
- box-sizing: border-box;
430
- }
431
-
432
- #nuxt-devtools-anchor * {
433
- box-sizing: border-box;
434
- }
435
-
436
- #nuxt-devtools-anchor button {
437
- border: none;
438
- background: none;
439
- padding: 0;
440
- margin: 0;
441
- cursor: pointer;
442
- outline: none;
443
- color: inherit;
444
- }
445
-
446
- #nuxt-devtools-anchor .nuxt-devtools-label {
447
- padding: 0 7px 0 8px;
448
- font-size: 0.8em;
449
- line-height: 1em;
450
- display: flex;
451
- gap: 3px;
452
- justify-items: center;
453
- align-items: center;
454
- }
455
-
456
- #nuxt-devtools-anchor .nuxt-devtools-label .nuxt-devtools-label-main {
457
- opacity: 0.8;
458
- }
459
-
460
- #nuxt-devtools-anchor .nuxt-devtools-label .nuxt-devtools-label-secondary {
461
- font-size: 0.8em;
462
- line-height: 0.6em;
463
- opacity: 0.5;
464
- }
465
-
466
- #nuxt-devtools-anchor .nuxt-devtools-nuxt-button {
467
- flex: none;
468
- }
469
-
470
- #nuxt-devtools-anchor.nuxt-devtools-vertical .nuxt-devtools-nuxt-button {
471
- transform: rotate(-90deg);
472
- }
473
-
474
- #nuxt-devtools-anchor.nuxt-devtools-vertical .nuxt-devtools-label {
475
- transform: rotate(-90deg);
476
- flex-direction: column;
477
- gap: 2px;
478
- padding: 0 10px;
479
- }
480
-
481
- #nuxt-devtools-anchor .nuxt-devtools-panel {
482
- position: absolute;
483
- left: 0;
484
- top: 0;
485
- transform: translate(-50%, -50%);
486
- display: flex;
487
- justify-content: flex-start;
488
- overflow: hidden;
489
- align-items: center;
490
- gap: 2px;
491
- height: 30px;
492
- padding: 2px 2px 2px 2.5px;
493
- border: 1px solid var(--nuxt-devtools-widget-border);
494
- border-radius: 100px;
495
- background-color: var(--nuxt-devtools-widget-bg);
496
- backdrop-filter: blur(10px);
497
- color: var(--nuxt-devtools-widget-fg);
498
- box-shadow: 2px 2px 8px var(--nuxt-devtools-widget-shadow);
499
- user-select: none;
500
- touch-action: none;
501
- max-width: 150px;
502
- transition:
503
- all 0.6s ease,
504
- max-width 0.6s ease,
505
- padding 0.5s ease,
506
- transform 0.4s ease,
507
- opacity 0.2s ease;
508
- }
509
-
510
- #nuxt-devtools-anchor.nuxt-devtools-hide .nuxt-devtools-panel {
511
- max-width: 32px;
512
- padding: 2px 0;
513
- }
514
-
515
- #nuxt-devtools-anchor.nuxt-devtools-vertical .nuxt-devtools-panel {
516
- transform: translate(-50%, -50%) rotate(90deg);
517
- box-shadow: 2px -2px 8px var(--nuxt-devtools-widget-shadow);
518
- }
519
-
520
- #nuxt-devtools-anchor .nuxt-devtools-panel-content {
521
- transition: opacity 0.4s ease;
522
- }
523
-
524
- #nuxt-devtools-anchor.nuxt-devtools-hide .nuxt-devtools-panel-content {
525
- opacity: 0;
526
- }
527
-
528
- #nuxt-devtools-anchor .nuxt-devtools-icon-button {
529
- border-radius: 100%;
530
- border-width: 0;
531
- width: 30px;
532
- height: 30px;
533
- display: flex;
534
- justify-content: center;
535
- align-items: center;
536
- opacity: 0.8;
537
- transition: opacity 0.2s ease-in-out;
538
- }
539
- #nuxt-devtools-anchor .nuxt-devtools-icon-button:hover {
540
- opacity: 1;
541
- }
542
-
543
- #nuxt-devtools-anchor:hover .nuxt-devtools-glowing {
544
- opacity: 0.6;
545
- }
546
-
547
- #nuxt-devtools-anchor .nuxt-devtools-glowing {
548
- position: absolute;
549
- left: 0;
550
- top: 0;
551
- transform: translate(-50%, -50%);
552
- width: 160px;
553
- height: 160px;
554
- opacity: 0;
555
- transition: all 1s ease;
556
- pointer-events: none;
557
- z-index: -1;
558
- border-radius: 9999px;
559
- background-image: linear-gradient(45deg, #00dc82, #00dc82, #00dc82);
560
- filter: blur(60px);
561
- }
562
-
563
- @media print {
564
- #nuxt-devtools-anchor {
565
- display: none;
566
- }
567
- }
421
+ #nuxt-devtools-anchor{box-sizing:border-box;font-family:Arial,Helvetica,sans-serif;font-size:15px!important;position:fixed;transform:translate(-50%,-50%) rotate(0);transform-origin:center center;width:0;z-index:2147483645}#nuxt-devtools-anchor *{box-sizing:border-box}#nuxt-devtools-anchor button{background:none;border:none;color:inherit;cursor:pointer;margin:0;outline:none;padding:0}#nuxt-devtools-anchor .nuxt-devtools-label{align-items:center;display:flex;font-size:.8em;gap:3px;justify-items:center;line-height:1em;padding:0 7px 0 8px}#nuxt-devtools-anchor .nuxt-devtools-label .nuxt-devtools-label-main{opacity:.8}#nuxt-devtools-anchor .nuxt-devtools-label .nuxt-devtools-label-secondary{font-size:.8em;line-height:.6em;opacity:.5}#nuxt-devtools-anchor .nuxt-devtools-nuxt-button{flex:none}#nuxt-devtools-anchor.nuxt-devtools-vertical .nuxt-devtools-nuxt-button{transform:rotate(-90deg)}#nuxt-devtools-anchor.nuxt-devtools-vertical .nuxt-devtools-label{flex-direction:column;gap:2px;padding:0 10px;transform:rotate(-90deg)}#nuxt-devtools-anchor .nuxt-devtools-panel{align-items:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background-color:var(--nuxt-devtools-widget-bg);border:1px solid var(--nuxt-devtools-widget-border);border-radius:100px;box-shadow:2px 2px 8px var(--nuxt-devtools-widget-shadow);color:var(--nuxt-devtools-widget-fg);display:flex;gap:2px;height:30px;justify-content:flex-start;left:0;max-width:150px;overflow:hidden;padding:2px 2px 2px 2.5px;position:absolute;top:0;touch-action:none;transform:translate(-50%,-50%);transition:all .6s ease,max-width .6s ease,padding .5s ease,transform .4s ease,opacity .2s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none}#nuxt-devtools-anchor.nuxt-devtools-hide .nuxt-devtools-panel{max-width:32px;padding:2px 0}#nuxt-devtools-anchor.nuxt-devtools-vertical .nuxt-devtools-panel{box-shadow:2px -2px 8px var(--nuxt-devtools-widget-shadow);transform:translate(-50%,-50%) rotate(90deg)}#nuxt-devtools-anchor .nuxt-devtools-panel-content{transition:opacity .4s ease}#nuxt-devtools-anchor.nuxt-devtools-hide .nuxt-devtools-panel-content{opacity:0}#nuxt-devtools-anchor .nuxt-devtools-icon-button{align-items:center;border-radius:100%;border-width:0;display:flex;height:30px;justify-content:center;opacity:.8;transition:opacity .2s ease-in-out;width:30px}#nuxt-devtools-anchor .nuxt-devtools-icon-button:hover{opacity:1}#nuxt-devtools-anchor:hover .nuxt-devtools-glowing{opacity:.6}#nuxt-devtools-anchor .nuxt-devtools-glowing{background-image:linear-gradient(45deg,#00dc82,#00dc82,#00dc82);border-radius:9999px;filter:blur(60px);height:160px;left:0;opacity:0;pointer-events:none;position:absolute;top:0;transform:translate(-50%,-50%);transition:all 1s ease;width:160px;z-index:-1}@media print{#nuxt-devtools-anchor{display:none}}
568
422
  </style>
@@ -1,6 +1,6 @@
1
1
  import type { Ref } from 'vue';
2
2
  import type { Router } from 'vue-router';
3
- import type { NuxtDevtoolsHostClient } from '../../../types';
3
+ import type { NuxtDevtoolsHostClient } from '../../../types.js';
4
4
  declare const clientRef: import("vue").ShallowRef<NuxtDevtoolsHostClient | undefined>;
5
5
  export { clientRef as client };
6
6
  export type ColorScheme = 'dark' | 'light';
@@ -2,9 +2,9 @@ import { computed, createApp, h, markRaw, ref, shallowReactive, shallowRef, watc
2
2
  import { createHooks } from "hookable";
3
3
  import { debounce } from "perfect-debounce";
4
4
  import { setIframeServerContext } from "@vue/devtools-kit";
5
- import { initTimelineMetrics } from "../../function-metrics-helpers.mjs";
5
+ import { initTimelineMetrics } from "../../function-metrics-helpers.js";
6
6
  import Main from "./Main.vue";
7
- import { popupWindow, state } from "./state.mjs";
7
+ import { popupWindow, state } from "./state.js";
8
8
  import { useAppConfig, useRuntimeConfig } from "#imports";
9
9
  const clientRef = shallowRef();
10
10
  export { clientRef as client };