@nuxt/devtools 3.2.3 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/dist/chunks/module-main.mjs +27 -9
  2. package/dist/chunks/vscode.mjs +1 -1
  3. package/dist/client/200.html +1 -1
  4. package/dist/client/404.html +1 -1
  5. package/dist/client/_nuxt/__blank-3fn4vtge.js +1 -0
  6. package/dist/client/_nuxt/analyze-build-ndbr1zwt.js +1 -0
  7. package/dist/client/_nuxt/assets-dqfzy0hw.js +6 -0
  8. package/dist/client/_nuxt/builds/latest.json +1 -1
  9. package/dist/client/_nuxt/builds/meta/bfa29bcc-58d6-4376-85c9-764240642351.json +1 -0
  10. package/dist/client/_nuxt/{client-lh91kcpv.js → client-d56h4dc4.js} +1 -1
  11. package/dist/client/_nuxt/code-diff-gh0ro4cb.js +8 -0
  12. package/dist/client/_nuxt/code-snippets-m9271riq.js +1 -0
  13. package/dist/client/_nuxt/components-iry12ufh.js +1 -0
  14. package/dist/client/_nuxt/composable-item-m3m39yy8.js +1 -0
  15. package/dist/client/_nuxt/composables-dhks1pao.js +1 -0
  16. package/dist/client/_nuxt/constants-dict8wns.js +1 -0
  17. package/dist/client/_nuxt/custom-_name_-owx1vzws.js +1 -0
  18. package/dist/client/_nuxt/data-schema-button-hha0wi47.js +1 -0
  19. package/dist/client/_nuxt/data-schema-drawer-mvrnpqdm.js +2 -0
  20. package/dist/client/_nuxt/debug-emfpm2zp.js +1 -0
  21. package/dist/client/_nuxt/{default-bunv5fnq.js → default-dv40aud6.js} +1 -1
  22. package/dist/client/_nuxt/{dist-mnod32r1.js → dist-hjee3mrt.js} +1 -1
  23. package/dist/client/_nuxt/dist-ibflnriz.js +1 -0
  24. package/dist/client/_nuxt/duration-display-g4enq0h7.js +1 -0
  25. package/dist/client/_nuxt/entry.css-ceee1hqk.css +1 -0
  26. package/dist/client/_nuxt/error-404-jybbe03f.js +1 -0
  27. package/dist/client/_nuxt/error-404.css-ip9v33hj.css +1 -0
  28. package/dist/client/_nuxt/error-500-onq7ss3q.js +1 -0
  29. package/dist/client/_nuxt/error-500.css-hhe2fh34.css +1 -0
  30. package/dist/client/_nuxt/error-nnemr5rw.js +9 -0
  31. package/dist/client/_nuxt/filepath-item-hz9dqk37.js +1 -0
  32. package/dist/client/_nuxt/full-pn9pgtl7.js +1 -0
  33. package/dist/client/_nuxt/h38cvs9r.js +4 -0
  34. package/dist/client/_nuxt/help-fab-oij4kl08.js +1 -0
  35. package/dist/client/_nuxt/hooks-mm4wkhji.js +1 -0
  36. package/dist/client/_nuxt/imports-ih50w3iv.js +1 -0
  37. package/dist/client/_nuxt/launch-page-bpr4mhu5.js +1 -0
  38. package/dist/client/_nuxt/mitt.es-is6qb9uo.js +1 -0
  39. package/dist/client/_nuxt/modules-hshgq2d9.js +1 -0
  40. package/dist/client/_nuxt/nbadge-f7rzhjkq.js +1 -0
  41. package/dist/client/_nuxt/ncheckbox-mc98noss.js +1 -0
  42. package/dist/client/_nuxt/ncode-block-mvjvaye5.js +2 -0
  43. package/dist/client/_nuxt/ndrawer-mfwl47cs.js +1 -0
  44. package/dist/client/_nuxt/ndropdown-l4kx50eu.js +1 -0
  45. package/dist/client/_nuxt/nicon-title-dciaco6o.js +1 -0
  46. package/dist/client/_nuxt/nlink-n14t4xmt.js +1 -0
  47. package/dist/client/_nuxt/nmarkdown-fnnmuq60.js +1 -0
  48. package/dist/client/_nuxt/nnavbar-bwuaevkz.js +1 -0
  49. package/dist/client/_nuxt/none-eri9psdj.js +1 -0
  50. package/dist/client/_nuxt/nsection-block-na7dtpi3.js +1 -0
  51. package/dist/client/_nuxt/nselect-o9ezbf9h.js +1 -0
  52. package/dist/client/_nuxt/nselect-tabs-h2jrpp6v.js +1 -0
  53. package/dist/client/_nuxt/nswitch-j5ndrsa4.js +1 -0
  54. package/dist/client/_nuxt/open-graph-i2tbvdoe.js +3 -0
  55. package/dist/client/_nuxt/overview-bbsxnnle.js +1 -0
  56. package/dist/client/_nuxt/pages-hi877nlf.js +1 -0
  57. package/dist/client/_nuxt/pages-j6q5h70o.js +1 -0
  58. package/dist/client/_nuxt/payload-fhnthlp2.js +1 -0
  59. package/dist/client/_nuxt/pinia-h746a499.js +1 -0
  60. package/dist/client/_nuxt/plugins-ozt4gxp5.js +1 -0
  61. package/dist/client/_nuxt/render-tree-ntf97xvm.js +1 -0
  62. package/dist/client/_nuxt/rolldown-runtime-ga5ujxqr.js +1 -0
  63. package/dist/client/_nuxt/runtime-configs-k0yp3zpx.js +1 -0
  64. package/dist/client/_nuxt/server-discovery-giorkvmy.js +1 -0
  65. package/dist/client/_nuxt/server-route-inputs-jeqq7e8y.js +1 -0
  66. package/dist/client/_nuxt/server-routes-ebfdakke.js +7 -0
  67. package/dist/client/_nuxt/server-tasks-otdic2qc.js +1 -0
  68. package/dist/client/_nuxt/settings-cm4nn6s2.js +1 -0
  69. package/dist/client/_nuxt/stacktrace-list-outaanb2.js +1 -0
  70. package/dist/client/_nuxt/state-components-bi9epr0v.js +1 -0
  71. package/dist/client/_nuxt/state-editor-uoql44oq.js +1 -0
  72. package/dist/client/_nuxt/state-modules-cbgrygie.js +1 -0
  73. package/dist/client/_nuxt/storage-bs8swo7k.js +1 -0
  74. package/dist/client/_nuxt/terminals-bk86ug8r.js +1 -0
  75. package/dist/client/_nuxt/timeline-g2ip7lzl.js +31 -0
  76. package/dist/client/_nuxt/unocss-runtime-l6tkrfnt.js +1 -0
  77. package/dist/client/_nuxt/vendor/json-editor-vue-g94ysn44.js +3869 -0
  78. package/dist/client/_nuxt/vendor/{json-editor-vue.css-lkbe0qhh.css → json-editor-vue.css-lb1ewor6.css} +1 -1
  79. package/dist/client/_nuxt/vendor/{markdown-it-bcxn77q6.js → markdown-it-ic0av7un.js} +3 -3
  80. package/dist/client/_nuxt/vendor/{quicktype-core-f8dnflnv.js → quicktype-core-781ta3pq.js} +13 -13
  81. package/dist/client/_nuxt/vendor/{shiki-niqic03h.js → shiki-nsxcfb7q.js} +6 -6
  82. package/dist/client/_nuxt/vendor/{unocss-bj3ln324.js → unocss-ix37k1vj.js} +3 -3
  83. package/dist/client/_nuxt/vendor/vis-fsrg25ku.js +26 -0
  84. package/dist/client/_nuxt/vendor/{xterm-ed0pys2e.js → xterm-cys6o1g8.js} +4 -4
  85. package/dist/client/_nuxt/virtual-files-abzkda2j.js +1 -0
  86. package/dist/client/_nuxt/vue-devtools-e7301kz1.js +4 -0
  87. package/dist/client/index.html +1 -1
  88. package/dist/module.json +1 -1
  89. package/dist/module.mjs +1 -1
  90. package/dist/runtime/plugins/devtools.client.js +1 -1
  91. package/dist/runtime/plugins/view/client.js +1 -1
  92. package/dist/shared/devtools.Soe0SAC8.mjs +122 -0
  93. package/dist/webcomponents/index.mjs +28 -26
  94. package/package.json +45 -42
  95. package/dist/client/_nuxt/__blank-gayjf0ih.js +0 -1
  96. package/dist/client/_nuxt/analyze-build-bnq2cil8.js +0 -1
  97. package/dist/client/_nuxt/assets-fjp0hrmh.js +0 -6
  98. package/dist/client/_nuxt/builds/meta/f343c68e-9061-4942-a0df-50170dc001bd.json +0 -1
  99. package/dist/client/_nuxt/client-s5g5n0ac.js +0 -2
  100. package/dist/client/_nuxt/code-diff-cb7twqkt.js +0 -8
  101. package/dist/client/_nuxt/code-snippets-ho13b87l.js +0 -1
  102. package/dist/client/_nuxt/components-peth8amc.js +0 -1
  103. package/dist/client/_nuxt/composable-item-b09pj4ca.js +0 -1
  104. package/dist/client/_nuxt/composables-cwesk2q8.js +0 -1
  105. package/dist/client/_nuxt/constants-lof1c7kz.js +0 -1
  106. package/dist/client/_nuxt/custom-_name_-lfwzilnd.js +0 -1
  107. package/dist/client/_nuxt/data-schema-button-ke4komn6.js +0 -1
  108. package/dist/client/_nuxt/data-schema-drawer-dqe6w00i.js +0 -2
  109. package/dist/client/_nuxt/debug-itzra6gt.js +0 -1
  110. package/dist/client/_nuxt/dev-auth-j4vxv6a1.js +0 -1
  111. package/dist/client/_nuxt/dist-duc3zu0y.js +0 -1
  112. package/dist/client/_nuxt/dist-m49wlq01.js +0 -1
  113. package/dist/client/_nuxt/duration-display-20xlusue.js +0 -1
  114. package/dist/client/_nuxt/entry.css-ckq2wff8.css +0 -1
  115. package/dist/client/_nuxt/error-404-c73bftho.js +0 -1
  116. package/dist/client/_nuxt/error-404.css-pazrj6fo.css +0 -1
  117. package/dist/client/_nuxt/error-500-75llnfh8.js +0 -1
  118. package/dist/client/_nuxt/error-500.css-hlldh6hu.css +0 -1
  119. package/dist/client/_nuxt/error-isnb18yz.js +0 -9
  120. package/dist/client/_nuxt/filepath-item-fnp9jxof.js +0 -1
  121. package/dist/client/_nuxt/full-h8pokapo.js +0 -1
  122. package/dist/client/_nuxt/head-c2jgvqd9.js +0 -1
  123. package/dist/client/_nuxt/help-fab-oc1qudll.js +0 -1
  124. package/dist/client/_nuxt/hooks-i5p6cuw0.js +0 -1
  125. package/dist/client/_nuxt/imports-ia8eldh8.js +0 -1
  126. package/dist/client/_nuxt/l471sqq0.js +0 -4
  127. package/dist/client/_nuxt/launch-page-kf0w74wk.js +0 -1
  128. package/dist/client/_nuxt/modules-obwfskfp.js +0 -1
  129. package/dist/client/_nuxt/nbadge-hpznun17.js +0 -1
  130. package/dist/client/_nuxt/nbutton-oi1rfqiz.js +0 -1
  131. package/dist/client/_nuxt/ncard-ech06vlh.js +0 -1
  132. package/dist/client/_nuxt/ncheckbox-k9nxqa1w.js +0 -1
  133. package/dist/client/_nuxt/ncode-block-coc4sua0.js +0 -2
  134. package/dist/client/_nuxt/ndrawer-ijwn9421.js +0 -1
  135. package/dist/client/_nuxt/ndropdown-moy416uy.js +0 -1
  136. package/dist/client/_nuxt/nicon-m5br9nvg.js +0 -1
  137. package/dist/client/_nuxt/nicon-title-e35pdr21.js +0 -1
  138. package/dist/client/_nuxt/nlink-dmk2d6qc.js +0 -1
  139. package/dist/client/_nuxt/nmarkdown-nct1w6kn.js +0 -1
  140. package/dist/client/_nuxt/nnavbar-n3j7iul1.js +0 -1
  141. package/dist/client/_nuxt/none-bs12srzp.js +0 -1
  142. package/dist/client/_nuxt/npanel-grids-bl37sfq7.js +0 -1
  143. package/dist/client/_nuxt/nsection-block-l0c6dpg8.js +0 -1
  144. package/dist/client/_nuxt/nselect-kgjpj17v.js +0 -1
  145. package/dist/client/_nuxt/nselect-tabs-if6er1us.js +0 -1
  146. package/dist/client/_nuxt/nswitch-b36trghq.js +0 -1
  147. package/dist/client/_nuxt/ntext-input-ngomk0u2.js +0 -1
  148. package/dist/client/_nuxt/nuxt-bfozs29x.js +0 -1
  149. package/dist/client/_nuxt/nuxt-link-mev16ngd.js +0 -1
  150. package/dist/client/_nuxt/open-graph-m7wd1sxi.js +0 -3
  151. package/dist/client/_nuxt/overview-dbrpdvvy.js +0 -1
  152. package/dist/client/_nuxt/pages-gnfgydad.js +0 -1
  153. package/dist/client/_nuxt/pages-izgjpbm4.js +0 -1
  154. package/dist/client/_nuxt/payload-hc17espa.js +0 -1
  155. package/dist/client/_nuxt/pinia-ns87k5yi.js +0 -1
  156. package/dist/client/_nuxt/plugins-mswypwe4.js +0 -1
  157. package/dist/client/_nuxt/ready-szdlhgcr.js +0 -1
  158. package/dist/client/_nuxt/render-tree-hec27xi7.js +0 -1
  159. package/dist/client/_nuxt/rolldown-runtime-oipoa1or.js +0 -1
  160. package/dist/client/_nuxt/runtime-configs-chx5ggf0.js +0 -1
  161. package/dist/client/_nuxt/server-discovery-cjcj8emm.js +0 -1
  162. package/dist/client/_nuxt/server-route-inputs-lqwnul2k.js +0 -1
  163. package/dist/client/_nuxt/server-routes-e0uqj8di.js +0 -7
  164. package/dist/client/_nuxt/server-tasks-izz5mcrk.js +0 -1
  165. package/dist/client/_nuxt/settings-dhxjcakv.js +0 -1
  166. package/dist/client/_nuxt/splitpanes.es-ceqv8417.js +0 -1
  167. package/dist/client/_nuxt/stacktrace-list-m1sv2uvd.js +0 -1
  168. package/dist/client/_nuxt/state-components-mnfvrbtw.js +0 -1
  169. package/dist/client/_nuxt/state-dkywakbf.js +0 -1
  170. package/dist/client/_nuxt/state-editor-epijodsw.js +0 -1
  171. package/dist/client/_nuxt/state-modules-ehax0fup.js +0 -1
  172. package/dist/client/_nuxt/state-routes-m6gv5n9v.js +0 -1
  173. package/dist/client/_nuxt/state-tabs-mo8r9nzk.js +0 -1
  174. package/dist/client/_nuxt/storage-hdyfvofj.js +0 -1
  175. package/dist/client/_nuxt/storage-options-owy2vf04.js +0 -1
  176. package/dist/client/_nuxt/telemetry-bagjjni2.js +0 -1
  177. package/dist/client/_nuxt/terminals-hem69799.js +0 -1
  178. package/dist/client/_nuxt/timeline-luryae8h.js +0 -31
  179. package/dist/client/_nuxt/unocss-runtime-jcr8lucj.js +0 -1
  180. package/dist/client/_nuxt/vendor/json-editor-vue-hkofgjf7.js +0 -3869
  181. package/dist/client/_nuxt/vendor/vis-id8udisj.js +0 -26
  182. package/dist/client/_nuxt/virtual-files-o2l5arel.js +0 -1
  183. package/dist/client/_nuxt/vue-devtools-na2nb82m.js +0 -3
  184. package/dist/client/_nuxt/vue-router-dxks01bs.js +0 -1
  185. package/dist/client/_nuxt/vue-virtual-scroller.esm-d0igfpwe.js +0 -2
  186. package/dist/shared/devtools.DuFZOCNN.mjs +0 -122
  187. /package/dist/client/_nuxt/{_plugin-vue_export-helper-dp8rxgcg.js → _plugin-vue_export-helper-e0bby96w.js} +0 -0
  188. /package/dist/client/_nuxt/{color-b9xoe9j2.js → color-nuuzg844.js} +0 -0
@@ -0,0 +1 @@
1
+ import{Ct as e,E as t,Mt as n,W as r,X as i,_ as a,c as o,dt as s,h as c,v as l,w as u}from"./vendor/json-editor-vue-g94ysn44.js";import{Rn as d,W as f,k as p}from"#entry";var m={key:0,border:`l base`,class:`prose`,pos:`fixed bottom-0 right-0 top-0`,"z-200":``,"h-full":``,"w-150":``,"overflow-auto":``,"bg-base":``,px8:``,py4:``},h=Object.assign(t({__name:`HelpFab`,setup(t){let h=e(!1),{showHelpButtons:g}=f(`ui`);return(e,t)=>{let f=p;return n(g)?(r(),l(o,{key:0},[c(`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]||=e=>h.value=!h.value},[...t[3]||=[c(`div`,{"i-ri:question-mark":``},null,-1)]]),u(d,{name:`fade-in`},{default:s(()=>[h.value?(r(),l(`div`,{key:0,class:`fixed bottom-0 left-0 right-0 top-0 z-100`,"bg-black:20":``,"backdrop-blur-2":``,onClick:t[1]||=e=>h.value=!1})):a(``,!0)]),_:1}),u(d,{name:`slide-in`},{default:s(()=>[h.value?(r(),l(`div`,m,[i(e.$slots,`default`),u(f,{icon:`carbon-close`,pos:`absolute top-3 right-3`,"rounded-full":``,"text-xl":``,border:!1,onClick:t[2]||=e=>h.value=!1})])):a(``,!0)]),_:3})],64)):a(``,!0)}}}),{__name:`HelpFab`});export{h as t};
@@ -0,0 +1 @@
1
+ import{C as e,Ct as t,E as n,Mt as r,Qt as i,W as a,Y as o,_ as s,c,dt as l,en as u,g as d,h as f,m as p,tn as m,v as h,w as g}from"./vendor/json-editor-vue-g94ysn44.js";import{t as _}from"./_plugin-vue_export-helper-e0bby96w.js";import{Et as v,ht as y}from"#entry";import"./composables-dhks1pao.js";import{t as b}from"./help-fab-oij4kl08.js";import{t as x}from"./nsection-block-na7dtpi3.js";import{t as S}from"./color-nuuzg844.js";import{t as C}from"./duration-display-g4enq0h7.js";var w={"w-full":``},T={border:`b base`},E={"select-none":``,"ws-nowrap":``,p1:``,"text-right":``,"font-bold":``},D={colspan:`2`,p1:``,pl5:``,"text-left":``,"font-bold":``},O={"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},k={"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},A={"ws-nowrap":``,p1:``,"text-right":``,"font-bold":``},j={"w-0":``,"ws-nowrap":``,"text-center":``,"text-sm":``,op25:``},M={"text-sm":``},N={"ws-nowrap":``},P={"text-sm":``},F={"w-0":``,"text-center":``,"text-sm":``},I={"w-0":``,"text-center":``,"text-sm":``},L={"w-0":``,"text-right":``,"text-sm":``},R=Object.assign(n({__name:`HooksTable`,props:{hooks:{}},setup(n){let s=n,l=t(`duration`),d=t(`asc`),_={duration:(e,t)=>(t.duration??1/0)-(e.duration??1/0),name:(e,t)=>e.name.localeCompare(t.name),listener:(e,t)=>t.listeners-e.listeners,start:(e,t)=>t.start-e.start,executions:(e,t)=>t.executions.length-e.executions.length},v=p(()=>s.hooks.map(e=>e.start).sort((e,t)=>e-t)),y=p(()=>{let e=_[l.value],t=s.hooks.toSorted(e);return d.value===`desc`&&t.reverse(),t});function b(e){let t=e.split(`:`);return t.length===1?``:`${t[0]}:`}function x(e){let t=e.split(`:`);return t.length===1?e:t.slice(1).join(`:`)}function R(e){l.value===e?d.value=d.value===`asc`?`desc`:`asc`:l.value=e}return(t,n)=>{let s=C;return a(),h(`table`,w,[f(`thead`,T,[f(`tr`,null,[f(`th`,E,[f(`button`,{onClick:n[0]||=e=>R(`start`)},[n[5]||=e(` Order `,-1),f(`div`,{"ml--1":``,"text-xs":``,class:i([l.value===`start`?`op50`:`op0`,d.value===`asc`?`carbon-arrow-down`:`carbon-arrow-up`])},null,2)])]),f(`th`,D,[f(`button`,{onClick:n[1]||=e=>R(`name`)},[n[6]||=e(` Hook name `,-1),f(`div`,{"ml--1":``,"text-xs":``,class:i([l.value===`name`?`op50`:`op0`,d.value===`asc`?`carbon-arrow-down`:`carbon-arrow-up`])},null,2)])]),f(`th`,O,[f(`button`,{onClick:n[2]||=e=>R(`listener`)},[n[7]||=e(` Listeners `,-1),f(`div`,{"ml--1":``,"text-xs":``,class:i([l.value===`listener`?`op50`:`op0`,d.value===`asc`?`carbon-arrow-down`:`carbon-arrow-up`])},null,2)])]),f(`th`,k,[f(`button`,{onClick:n[3]||=e=>R(`executions`)},[n[8]||=e(` Executions `,-1),f(`div`,{"ml--1":``,"text-xs":``,class:i([l.value===`executions`?`op50`:`op0`,d.value===`asc`?`carbon-arrow-down`:`carbon-arrow-up`])},null,2)])]),f(`th`,A,[f(`button`,{onClick:n[4]||=e=>R(`duration`)},[n[9]||=e(` Duration `,-1),f(`div`,{"ml--1":``,"text-xs":``,class:i([l.value===`duration`?`op50`:`op0`,d.value===`asc`?`carbon-arrow-down`:`carbon-arrow-up`])},null,2)])])])]),f(`tbody`,null,[(a(!0),h(c,null,o(y.value,e=>(a(),h(`tr`,{key:e.name,border:`b dashed transparent hover:base`},[f(`td`,j,m(v.value.indexOf(e.start)),1),f(`td`,{"w-0":``,"ws-nowrap":``,"text-right":``,style:u({color:(`getHslColorFromStringHash`in t?t.getHslColorFromStringHash:r(S))(b(e.name))})},[f(`code`,M,m(b(e.name)),1)],4),f(`td`,N,[f(`code`,P,m(x(e.name)),1)]),f(`td`,F,m(e.listeners),1),f(`td`,I,m(e.executions.length+1),1),f(`td`,L,[g(s,{duration:e.duration},null,8,[`duration`])])]))),128))])])}}}),{__name:`HooksTable`}),z={},B={class:`markdown-body`};function V(t,n){return a(),h(`div`,B,[...n[0]||=[f(`template`,null,[f(`div`,{class:`markdown-body`},[f(`h1`,null,`Hooks`),f(`p`,null,[e(`Hooks are an advanced API which can be used for module development or other advanced use cases. The hooking API can be used to expand almost every aspect of Nuxt. Under the hood it is powered by `),f(`a`,{href:`https://github.com/unjs/hookable`,target:`_blank`,rel:`noopener`},`unjs/hookable`),e(`.`)]),f(`p`,null,[f(`a`,{href:`https://nuxt.com/docs/guide/going-further/hooks`,target:`_blank`,rel:`noopener`},`Learn more about hooks`),e(`.`)])])],-1)]])}var H=_(z,[[`render`,V]]),U=n({__name:`hooks`,setup(e){let t=y(),n=v(),i=p(()=>n.value?.metrics.clientHooks());return(e,n)=>{let o=R,u=x,p=H,m=b;return a(),h(c,null,[f(`div`,null,[i.value?.length?(a(),d(u,{key:0,icon:`carbon-ibm-cloud-direct-link-1-dedicated-hosting`,text:`Client Hooks`,description:`Total hooks: ${i.value.length}`,padding:`pl4 pr6`},{default:l(()=>[g(o,{hooks:i.value},null,8,[`hooks`])]),_:1},8,[`description`])):s(``,!0),r(t)?.length?(a(),d(u,{key:1,icon:`carbon-ibm-cloud-direct-link-2-dedicated`,text:`Server Hooks`,description:`Total hooks: ${r(t)?.length}`,padding:`pl4 pr6`},{default:l(()=>[g(o,{hooks:r(t)},null,8,[`hooks`])]),_:1},8,[`description`])):s(``,!0)]),g(m,null,{default:l(()=>[g(p)]),_:1})],64)}}});export{U as default};
@@ -0,0 +1 @@
1
+ import{Ct as e,E as t,Mt as n,W as r,Y as i,_ as a,c as o,dt as s,g as c,h as l,m as u,tn as d,v as f,w as p}from"./vendor/json-editor-vue-g94ysn44.js";import{t as m}from"./_plugin-vue_export-helper-e0bby96w.js";import{$ as h,X as g,ct as _,et as v,j as y,pt as b,s as x}from"#entry";import"./composables-dhks1pao.js";import{t as S}from"./filepath-item-hz9dqk37.js";import{t as C}from"./help-fab-oij4kl08.js";import{t as w}from"./nnavbar-bwuaevkz.js";import{t as T}from"./nsection-block-na7dtpi3.js";import{t as E}from"./nselect-tabs-h2jrpp6v.js";import{t as D}from"./composable-item-m3m39yy8.js";var O={flex:`~ wrap gap2`,p2:``,pl4:``},k=Object.assign(t({__name:`ComposableTree`,props:{map:{},root:{},metadata:{}},setup(e){return(t,n)=>{let a=S,s=D;return r(),f(`div`,null,[(r(!0),f(o,null,i(e.map.entries(),([t,n])=>(r(),f(`div`,{key:t},[p(a,{filepath:t,op50:``,"hover:underline":``},null,8,[`filepath`]),l(`div`,O,[(r(!0),f(o,null,i(n,n=>(r(),c(s,{key:n.as,item:n,metadata:e.metadata,"is-directive":n.meta?.vueDirective===!0,filepath:t.match(/^[\w@]/)?void 0:t},null,8,[`item`,`metadata`,`is-directive`,`filepath`]))),128))])]))),128))])}}}),{__name:`ComposableTree`}),A={key:0,flex:`~ col gap-2 items-start`},j=Object.assign(t({__name:`HelpImportsDirs`,setup(e){let t=_();return(e,s)=>{let l=S;return n(t)?.dirs?(r(),f(`div`,A,[(r(!0),f(o,null,i(n(t).dirs,e=>(r(),c(l,{key:e,filepath:e,"text-primary":``},null,8,[`filepath`]))),128))])):a(``,!0)}}}),{__name:`HelpImportsDirs`}),M={flex:`~ gap-2 wrap`,mb6:``},N=Object.assign(t({__name:`HelpImportsModules`,setup(e){let t=_(),n=u(()=>[...new Set(t.value?.imports.map(e=>g(e.from)).filter(e=>!!e&&!h(e)))]);return(e,t)=>(r(),f(`div`,M,[(r(!0),f(o,null,i(n.value,e=>(r(),f(`code`,{key:e,rounded:``,"bg-primary:5":``,p:`x2 y0.5`,"text-primary":``},d(e),1))),128))]))}}),{__name:`HelpImportsModules`}),P={},F={class:`markdown-body`},I={class:`markdown-body`};function L(e,t){let n=j,i=N;return r(),f(`div`,F,[l(`template`,null,[l(`div`,I,[t[0]||=l(`h1`,null,`Auto imports`,-1),t[1]||=l(`p`,null,`Nuxt auto-imports helper functions, composables and Vue APIs to be used across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.`,-1),t[2]||=l(`hr`,null,null,-1),t[3]||=l(`p`,null,`According to your config, exports of files under the following folders will be registed as auto-imports entry:`,-1),p(n),t[4]||=l(`p`,null,`Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:`,-1),p(i),t[5]||=l(`hr`,null,null,-1),t[6]||=l(`p`,null,[l(`a`,{href:`https://nuxt.com/docs/guide/concepts/auto-imports`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)],-1),t[7]||=l(`h2`,null,`Directives`,-1),t[8]||=l(`p`,null,`Directives placed in the directives/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.`,-1),t[9]||=l(`p`,null,[l(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/directives`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)],-1)])])])}var R=m(P,[[`render`,L]]),z={key:0,relative:``,"h-full":``,"of-auto":``},B={key:0,flex:`~ gap-2 items-center lt-sm:col lt-sm:items-start`},V=t({__name:`imports`,setup(t){let i=b(),l=e(`all`),d=e(`all`),m=e(``),S=_(),D=u(()=>S.value?.metadata),O=u(()=>S.value?.imports.filter(e=>e.as||e.name).sort((e,t)=>(e.as||e.name).localeCompare(t.as||t.name))||[]),A=u(()=>new x(O.value,{keys:[`from`,`as`,`name`]})),j=u(()=>{let e=new Map,t=new Map,n=new Map,r=m.value?A.value.search(m.value).map(e=>e.item):O.value,i=d.value;i===`composables`?r=r.filter(e=>e.meta?.vueDirective!==!0):i===`directives`&&(r=r.filter(e=>e.meta?.vueDirective===!0)),l.value===`using`&&D.value?r=r.filter(e=>(e.as||e.name)in D.value.injectionsUsageMap):l.value===`not-used`&&D.value&&(r=r.filter(e=>!((e.as||e.name)in D.value.injectionsUsageMap)));let a={user:0,lib:0,builtin:0};return r.forEach(r=>{let i=v(r.from)?h(g(r.from))?n:t:e;i.has(r.from)||i.set(r.from,[]),i.get(r.from).push(r),a[i===e?`user`:i===t?`lib`:`builtin`]++}),{user:e,lib:t,builtin:n,count:a}}),M=u(()=>d.value===`directives`?`${j.value.count.user} directives from ${j.value.user.size} modules`:`${j.value.count.user} composables from ${j.value.user.size} modules`),N=u(()=>d.value===`directives`?`${j.value.count.builtin} directives`:`${j.value.count.builtin} composables`),P=u(()=>d.value===`directives`?`${j.value.count.lib} directives from ${j.value.lib.size} packages`:`${j.value.count.lib} composables from ${j.value.lib.size} packages`);return(e,t)=>{let u=y,h=E,g=w,_=k,v=T,b=R,x=C;return r(),f(o,null,[n(i)?(r(),f(`div`,z,[p(g,{search:m.value,"onUpdate:search":t[2]||=e=>m.value=e,pb3:``},{default:s(()=>[D.value?(r(),f(`div`,B,[p(u,{icon:`carbon-filter`,op50:``}),p(h,{modelValue:l.value,"onUpdate:modelValue":t[0]||=e=>l.value=e,n:`primary sm`,options:[{label:`All`,value:`all`},{label:`Using`,value:`using`},{label:`Not used`,value:`not-used`}]},null,8,[`modelValue`]),p(h,{modelValue:d.value,"onUpdate:modelValue":t[1]||=e=>d.value=e,n:`primary sm`,options:[{label:`All`,value:`all`},{label:`Composables`,value:`composables`},{label:`Directives`,value:`directives`}]},null,8,[`modelValue`])])):a(``,!0)]),_:1},8,[`search`]),j.value.user.size?(r(),c(v,{key:0,open:j.value.count.user<=n(50),icon:d.value===`directives`?`tabler:hexagon-letter-d`:`carbon-function`,text:`User ${d.value===`directives`?`directives`:`composables`}`,description:M.value},{default:s(()=>[p(_,{map:j.value.user,root:n(i).rootDir,metadata:D.value},null,8,[`map`,`root`,`metadata`])]),_:1},8,[`open`,`icon`,`text`,`description`])):a(``,!0),j.value.builtin.size?(r(),c(v,{key:1,open:j.value.count.builtin<=n(50),icon:`simple-icons-nuxtdotjs`,text:`Built-in ${d.value===`directives`?`directives`:`composables`}`,description:N.value},{default:s(()=>[p(_,{map:j.value.builtin,root:n(i).rootDir,metadata:D.value},null,8,[`map`,`root`,`metadata`])]),_:1},8,[`open`,`text`,`description`])):a(``,!0),j.value.lib.size?(r(),c(v,{key:2,open:j.value.count.lib<=n(50),icon:`carbon-3d-mpr-toggle`,text:`${d.value===`directives`?`Directives`:`Composables`} from libraries`,description:P.value},{default:s(()=>[p(_,{map:j.value.lib,root:n(i).rootDir,metadata:D.value},null,8,[`map`,`root`,`metadata`])]),_:1},8,[`open`,`text`,`description`])):a(``,!0)])):a(``,!0),p(x,null,{default:s(()=>[p(b)]),_:1})],64)}}});export{V as default};
@@ -0,0 +1 @@
1
+ import{C as e,E as t,P as n,W as r,Y as i,_ as a,c as o,dt as s,g as c,h as l,tn as u,v as d,w as f}from"./vendor/json-editor-vue-g94ysn44.js";import{E as p,f as m,g as h,j as g,k as _,y as v}from"#entry";import{t as y}from"./nmarkdown-fnnmuq60.js";var b={"text-xl":``},x={flex:`~ gap2 wrap`},S=Object.assign(t({__name:`LaunchPage`,props:{name:{},icon:{},title:{},description:{},actions:{}},emits:[`action`],setup(t,{emit:S}){let C=t,w=S;function T(e,t){v(`launch-page`,{pageName:C.name}),e.handle?.(),w(`action`,t)}return(v,S)=>{let C=h,w=y,E=g,D=_,O=p,k=m;return r(),c(k,null,{default:s(()=>[f(O,{flex:`~ col gap2`,mxa:``,"min-w-100":``,"items-center":``,p6:``},{default:s(()=>[f(C,{mb2:``,"text-5xl":``,icon:t.icon||t.icon,title:t.title},null,8,[`icon`,`title`]),l(`h1`,b,u(t.title),1),t.description?(r(),c(w,{key:0,mb2:``,"mt--1":``,"text-center":``,"text-base":``,op50:``,markdown:t.description},null,8,[`markdown`])):a(``,!0),l(`div`,x,[(r(!0),d(o,null,i(t.actions,(t,i)=>(r(),c(D,n({key:i,n:`solid primary`,disabled:t.pending,to:t.src,target:t.src?`_blank`:void 0},{ref_for:!0},t.attrs,{onClick:e=>T(t,i)}),{default:s(()=>[t.pending?(r(),c(E,{key:0,icon:`carbon-circle-dash`,"animate-spin":``})):a(``,!0),e(` `+u(t.label),1)]),_:2},1040,[`disabled`,`to`,`target`,`onClick`]))),128))])]),_:1})]),_:1})}}}),{__name:`LaunchPage`});export{S as t};
@@ -0,0 +1 @@
1
+ function e(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get(`*`)||[]).slice().map(function(e){e(t,n)})}}}export{e as t};
@@ -0,0 +1 @@
1
+ import{$ as e,At as t,C as n,Ct as r,E as i,F as a,I as o,Mt as s,P as c,Qt as l,R as u,V as d,W as f,X as p,Y as m,_ as h,c as g,ct as _,dt as v,en as y,ft as b,g as x,h as S,m as C,nt as w,tn as T,v as E,w as D,wt as O,x as k,yt as A}from"./vendor/json-editor-vue-g94ysn44.js";import{t as j}from"./_plugin-vue_export-helper-e0bby96w.js";import{A as M,Bt as N,C as P,D as F,E as I,It as L,Rn as R,T as z,Ut as B,j as V,k as H,n as U,o as ee,pt as te,s as W,v as ne,y as G}from"#entry";import{t as re}from"./ndropdown-l4kx50eu.js";import{t as ie}from"./ncode-block-mvjvaye5.js";import"./composables-dhks1pao.js";import{t as ae}from"./nlink-n14t4xmt.js";import{t as K}from"./ncheckbox-mc98noss.js";import{t as oe}from"./filepath-item-hz9dqk37.js";import{t as se}from"./help-fab-oij4kl08.js";import{t as ce}from"./nnavbar-bwuaevkz.js";import{t as q}from"./nicon-title-dciaco6o.js";import{t as le}from"./nsection-block-na7dtpi3.js";import{t as ue}from"./nbadge-f7rzhjkq.js";import{t as J}from"./duration-display-g4enq0h7.js";import{n as de,r as Y,t as fe}from"./state-modules-cbgrygie.js";import"./mitt.es-is6qb9uo.js";import{t as pe}from"./code-diff-gh0ro4cb.js";var me={flex:`~ col gap2`,"flex-auto":``,"of-hidden":``,px1:``},he={"gap-1t":``,flex:``,"items-center":``,"text-ellipsis":``,"ws-nowrap":``,"text-lg":``},ge={key:2},_e={key:1,flex:`~ gap-2`,title:`Documentation`},ve={key:2,flex:`~ gap-2`},ye={key:0,flex:`~ gap-4 items-center`},X={key:0,flex:`~ gap-2 items-center`,op50:``},be={key:1,flex:`~ gap-2 items-center`,op50:``},xe={key:1},Se={flex:`~ col`,"items-end":``},Ce={key:0,"h-20":``,"w-20":``,flex:``,"flex-none":``,rounded:``,"bg-gray:3":``,p4:``},Z=[`src`,`alt`],Q={key:1,"i-carbon-cube":``,ma:``,"flex-none":``,"text-4xl":``,op30:``},we={key:1,flex:`~`,mt2:``,"flex-auto":``,"items-end":``,"justify-end":``},Te=[`src`],Ee={flex:``,"justify-end":``},De=`https://ipx.nuxt.com/s_80,f_webp/gh/nuxt/modules/main/icons/`,Oe=`https://ipx.nuxt.com/s_44,f_webp/gh_avatar/`,ke=`https://github.com/`,Ae=`https://www.npmjs.com/package/`,je=Object.assign(i({__name:`ModuleItemBase`,props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(e){let t=e,r=C(()=>({...t.mod?.meta,...t.mod,...t.info})),{format:i}=Intl.NumberFormat(navigator.language||`en`,{notation:`compact`,maximumFractionDigits:1}),a=C(()=>i(r.value.stats?.stars||0)),o=C(()=>i(r.value.stats?.downloads||0)),c=ne();return(t,i)=>{let u=M,d=V,_=J,y=I;return f(),x(y,{p4:``,flex:`~ gap2`},{default:v(()=>[S(`div`,me,[p(t.$slots,`main`,{},()=>[S(`div`,he,[e.mod.isPackageModule?(f(),x(u,{key:0,to:Ae+(r.value.npm||r.value.name),target:`_blank`,hover:`underline text-primary`},{default:v(()=>[n(T(r.value.name),1)]),_:1},8,[`to`])):e.mod.entryPath?(f(),E(`button`,{key:1,role:`button`,hover:`underline text-primary`,onClick:i[0]||=t=>s(c)(e.mod.entryPath)},T(r.value.name),1)):(f(),E(`span`,ge,T(r.value.name),1)),p(t.$slots,`badge`)]),r.value.description?(f(),E(`div`,{key:0,class:l(e.compact?`ws-nowrap of-hidden truncate`:`line-clamp-2`),"mt--1":``,"text-sm":``,op50:``},T(r.value.description),3)):h(``,!0),i[3]||=S(`div`,{"flex-auto":``},null,-1),r.value.website?(f(),E(`div`,_e,[i[1]||=S(`span`,{"i-carbon-link":``,"flex-none":``,"text-lg":``,op50:``},null,-1),D(u,{to:r.value.website,target:`_blank`,"of-hidden":``,truncate:``,"ws-nowrap":``,"text-sm":``,op50:``,hover:`op100 underline text-primary`},{default:v(()=>[n(T(r.value.website.replace(/^https?:\/\//,``)),1)]),_:1},8,[`to`])])):h(``,!0),r.value.github?(f(),E(`div`,ve,[i[2]||=S(`span`,{"i-carbon-logo-github":``,"flex-none":``,"text-lg":``,op50:``},null,-1),D(u,{to:r.value.github,target:`_blank`,"of-hidden":``,truncate:``,"ws-nowrap":``,"text-sm":``,op50:``,hover:`op100 underline text-primary`},{default:v(()=>[n(T(r.value.github.replace(/^https?:\/\/github.com\//,``)),1)]),_:1},8,[`to`])])):h(``,!0)]),p(t.$slots,`items`),r.value.stats?(f(),E(`div`,ye,[r.value.stats.stars?(f(),E(`div`,X,[D(d,{icon:`carbon-star`,"flex-none":``,"text-lg":``}),S(`span`,null,T(a.value),1)])):h(``,!0),r.value.stats.downloads?(f(),E(`div`,be,[D(d,{icon:`carbon-download`,"flex-none":``,"text-lg":``}),S(`span`,null,T(o.value),1)])):h(``,!0)])):h(``,!0),e.mod.timings?.setup?(f(),E(`div`,xe,[D(_,{title:`Module Setup Time`,flex:`~ items-center`,duration:e.mod.timings.setup,factor:.5},{before:v(()=>[D(d,{icon:`carbon-time`,mr2:``,"flex-none":``,"text-lg":``,op50:``})]),_:1},8,[`duration`])])):h(``,!0)]),S(`div`,Se,[r.value.icon||e.mod.isPackageModule?(f(),E(`div`,Ce,[r.value.icon?(f(),E(`img`,{key:0,src:De+r.value.icon,alt:e.mod.name,ma:``},null,8,Z)):(f(),E(`div`,Q))])):h(``,!0),r.value.maintainers?.length&&e.maintainers?(f(),E(`div`,we,[(f(!0),E(g,null,m(r.value.maintainers,e=>(f(),x(u,{key:e.name,target:`_blank`,to:ke+e.github,title:e.name},{default:v(()=>[S(`img`,{src:Oe+e.github,"h-6":``,"w-6":``,"rounded-full":``},null,8,Te)]),_:2},1032,[`to`,`title`]))),128))])):h(``,!0),t.$slots.actions?(f(),E(g,{key:2},[i[4]||=S(`div`,{"flex-auto":``},null,-1),S(`div`,Ee,[p(t.$slots,`actions`)])],64)):h(``,!0)])]),_:3})}}}),{__name:`ModuleItemBase`}),Me={key:0,flex:`~ gap-2`,title:`Open on filesystem`},Ne={key:1,"mx--2":``},Pe=[`onClick`],Fe={key:2,"mx--2":``},Ie=[`onClick`],Le={op50:``},Re={"text-green":``},ze={key:3,flex:`~ gap-2`,"items-center":``,title:`NPM`},Be={"text-sm":``,op50:``},Ve=Object.assign(i({__name:`ModuleItem`,props:{mod:{}},setup(e){let t=e,n=C(()=>t.mod.info),r=C(()=>({...t.mod?.meta,...t.mod,...n.value})),i=P();return(t,a)=>{let o=oe,s=M,c=Y,l=je;return f(),x(l,{mod:e.mod,info:n.value},{items:v(()=>[e.mod.entryPath?(f(),E(`div`,Me,[a[0]||=S(`span`,{"i-carbon-folder-move-to":``,"flex-none":``,"text-lg":``,op50:``},null,-1),D(o,{filepath:e.mod.entryPath,"text-sm":``,op50:``,hover:`text-primary op100`},null,8,[`filepath`])])):h(``,!0),r.value.npm?(f(),x(c,{key:r.value.npm,"package-name":r.value.npm,options:{dev:!0}},{default:v(({info:e,update:t,state:n,id:r,restart:o})=>[n===`running`?(f(),x(s,{key:0,flex:`~ gap-2`,"animate-pulse":``,"items-center":``,to:r?`/modules/terminals`:void 0,onClick:e=>r?i.value=r:void 0},{default:v(()=>[...a[1]||=[S(`span`,{"i-carbon-circle-dash":``,"flex-none":``,"animate-spin":``,"text-lg":``,op50:``},null,-1),S(`code`,{"text-sm":``,op50:``},`Upgrading...`,-1)]]),_:1},8,[`to`,`onClick`])):n===`updated`?(f(),E(`div`,Ne,[S(`button`,{flex:`~ gap-2`,hover:`bg-primary/20`,"items-center":``,rounded:``,"bg-primary:10":``,px2:``,"text-sm":``,"text-primary":``,onClick:o},[...a[2]||=[S(`span`,{"i-carbon-intent-request-active":``,"flex-none":``,"text-lg":``,"text-primary":``},null,-1),S(`code`,{"text-xs":``},`Update installed, click to restart`,-1)]],8,Pe)])):e?.needsUpdate?(f(),E(`div`,Fe,[S(`button`,{flex:`~ gap-2`,title:`Click to upgrade`,"items-center":``,rounded:``,px2:``,"text-sm":``,hover:`bg-active`,onClick:e=>t()},[a[3]||=S(`span`,{"i-carbon-intent-request-upgrade":``,"flex-none":``,"text-lg":``,op50:``},null,-1),S(`code`,Le,`v`+T(e.current),1),a[4]||=S(`div`,{"i-carbon-arrow-right":``,op50:``},null,-1),S(`code`,Re,`v`+T(e.latest),1)],8,Ie)])):e?.latest?(f(),E(`div`,ze,[a[5]||=S(`span`,{"i-carbon-cube":``,"flex-none":``,"text-lg":``,op50:``},null,-1),S(`code`,Be,`v`+T(e.current),1)])):h(``,!0)]),_:1},8,[`package-name`])):h(``,!0)]),_:1},8,[`mod`,`info`])}}}),{__name:`ModuleItem`}),He=Object.assign(i({__name:`ModuleItemInstall`,props:{item:{}},emits:[`start`],setup(e,{emit:t}){let r=e,i=t,a=fe(),o=C(()=>a.value.find(e=>e.name===r.item.npm)),s=C(()=>o.value&&o.value.isPackageModule),c=C(()=>o.value&&o.value.isPackageModule&&o.value.isUninstallable);async function u(e,t){let n=t===`install`?N.installNuxtModule:N.uninstallNuxtModule,r=await n(await L(),e.npm,!0);G(`modules:${t}`,{moduleName:e.npm}),r.commands&&await B.start(e,r,t)&&(U.value.push({name:e.npm,info:e,processId:r.processId}),i(`start`),await n(await L(),e.npm,!1))}let d={};return(t,r)=>{let i=ue,a=H,o=re,p=je;return f(),x(p,{mod:d,role:s.value?``:`button`,info:e.item,mb2:``,"h-full":``,class:l(s.value?`border-dashed op75`:`hover:bg-active!`),compact:!0,onClick:r[1]||=t=>s.value?null:u(e.item,`install`)},k({_:2},[s.value?{name:`badge`,fn:v(()=>[D(i,{n:`green`,textContent:`Installed`}),c.value?(f(),x(o,{key:0,n:`sm green`},{trigger:v(({click:e})=>[D(a,{icon:`carbon-overflow-menu-vertical`,border:!1,onClick:t=>e()},null,8,[`onClick`])]),default:v(()=>[D(a,{icon:`carbon-trash-can`,n:`red`,onClick:r[0]||=t=>u(e.item,`uninstall`)},{default:v(()=>[...r[2]||=[n(` Uninstall `,-1)]]),_:1})]),_:1})):h(``,!0)]),key:`0`}:void 0]),1032,[`role`,`info`,`class`])}}}),{__name:`ModuleItemInstall`});function Ue(e,t,n){if(!n)return t;let r=e?.[n];if(r==null)throw Error(`Key is ${r} on item (keyField is '${n}')`);return r}function We(e,t){return e.map((e,n)=>Ue(e,n,t))}function Ge(e,t,n){let r=[],i=[];for(let a=0;a<e.length;a++){let o=e[a],s=Ue(o,a,t),c=n(o,a,s);r.push(s),i.push(typeof c==`number`&&c>0?c:null)}return{keys:r,sizes:i}}function Ke(e,t,n){if(!e||e.keys.length!==t.length||e.sizes.length!==t.length)return!1;for(let r=0;r<t.length;r++)if(e.keys[r]!==Ue(t[r],r,n))return!1;return!0}function qe(e,t,n){if(!Ke(e,t,n))return{};let r={};for(let t=0;t<e.keys.length;t++){let n=e.sizes[t];typeof n==`number`&&n>0&&(r[e.keys[t]]=n)}return r}function Je(e,t){if(!e.length||t.length<=e.length)return 0;let n=e[0],r=t.indexOf(n);if(r<=0||r+e.length<t.length&&e.length>t.length-r)return 0;for(let n=0;n<e.length;n++)if(t[r+n]!==e[n])return 0;return r}function Ye(e,t,n,r,i,a=0){let o=i??`start`;if(o===`nearest`){let i=n+r,o=e+t;return e>=n&&o<=i?null:e<n?e+a:o-r+a}return o===`end`?e+t-r+a:o===`center`?e+(t-r)/2+a:e+a}var Xe={itemsLimit:1e3};function Ze(e){return typeof window<`u`&&e===window}var Qe=(()=>{if(typeof document>`u`)return`negative`;let e=document.createElement(`div`),t=document.createElement(`div`);e.style.width=`4px`,e.style.height=`1px`,e.style.overflow=`auto`,e.style.direction=`rtl`,t.style.width=`8px`,t.style.height=`1px`,e.appendChild(t),document.body.appendChild(e),e.scrollLeft=-1;let n=e.scrollLeft<0;return document.body.removeChild(e),n?`negative`:`default`})();function $(e,t,n){return t!==`horizontal`||!n||Ze(n)||getComputedStyle(n).direction!==`rtl`?e:Qe===`negative`?-e:e}function $e(e,t,n){return $(e,t,n)}function et(e,t,n,r){let i=$e(n,t,e),a=!!(r!=null&&r.smooth);if(Ze(e)){t===`vertical`?e.scrollTo({top:i,behavior:a?`smooth`:`auto`}):e.scrollTo({left:i,behavior:a?`smooth`:`auto`});return}if(typeof e.scrollTo==`function`){e.scrollTo(t===`vertical`?{top:i,behavior:a?`smooth`:`auto`}:{left:i,behavior:a?`smooth`:`auto`});return}t===`vertical`?e.scrollTop=i:e.scrollLeft=i}function tt(e,t,n){return n?t===`vertical`?window.innerHeight:window.innerWidth:t===`vertical`?e.clientHeight:e.clientWidth}var nt=/auto|scroll/;function rt(e,t){return e.parentNode===null?t:rt(e.parentNode,[...t,e])}function it(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function at(e){return it(e,`overflow`)+it(e,`overflow-y`)+it(e,`overflow-x`)}function ot(e){return nt.test(at(e))}function st(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return;let t=rt(e.parentNode,[]);for(let e=0;e<t.length;e+=1)if(t[e]instanceof Element&&ot(t[e]))return t[e];return document.scrollingElement||document.documentElement}var ct=!1;function lt(){return ct}if(typeof window<`u`){ct=!1;try{let e=Object.defineProperty({},`passive`,{get(){ct=!0}});window.addEventListener(`test`,null,e)}catch{}}var ut=0;function dt(e){let t=e;t._vs_styleStamp++}function ft(e,t,n){let r=e?.[n];if(r==null)throw Error(`Key is ${r} on item (keyField is '${n}')`);return r}function pt(e,n,i,s,c){let l=r([]),f=r(0),p=r(!1),m=0,h=0,g=new Map,v=new Map,y=!1,b=0,x=0,S=!1,w=null,T=null,E=null,D=0,k=null,j=[],M=null,N=null,P=null,F=!1,I=new Set,L=r({}),R=C(()=>{let n=t(e);return n.items.length>0&&typeof n.items[0]!=`object`}),z=C(()=>{let n=t(e);if(n.itemSize===null){let e={[-1]:{accumulator:0}},t=n.items,r=n.sizeField??`size`,i=n.minItemSize,a=L.value,o=1e4,s=0,c;for(let l=0,u=t.length;l<u;l++)c=a[R.value?l:ft(t[l],l,n.keyField)]||t[l][r]||i,c<o&&(o=c),s+=c,e[l]={accumulator:s,size:c};return D=o,e}return[]}),B=C(()=>l.value.filter(e=>e.nr.used).sort((e,t)=>e.nr.index-t.nr.index)),V=C(()=>{let n=t(e),r=R.value?null:n.keyField;return Ge(n.items,r,(e,t,r)=>n.itemSize==null?L.value[r]||e?.[n.sizeField??`size`]||void 0:n.itemSize)});function H(n){let r=t(e);return L.value=qe(n,r.items,R.value?null:r.keyField),Object.keys(L.value).length>0}function U(e){let t=v.get(e);return t||(t=[],v.set(e,t)),t}function ee(e,t,n,r,i){let a=O({item:n,position:0,offset:0,nr:A({id:ut++,index:t,used:!0,key:r,type:i}),_vs_styleStamp:0});return e.push(a),a}function te(e){let t=U(e);if(t&&t.length){let e=t.pop();return e.nr.used=!0,dt(e),e}}function W(e){let t=e.nr.type;U(t).push(e),e.nr.used=!1,e.position=-9999,dt(e),g.delete(e.nr.key)}function ne(){g.clear(),v.clear();for(let e=0,t=l.value.length;e<t;e++){let t=l.value[e];t&&W(t)}}function G(e){let t=-1;return t=requestAnimationFrame(()=>{I.delete(t),e()}),I.add(t),t}function re(){for(let e of I)cancelAnimationFrame(e);I.clear()}function ie(){w&&=(clearTimeout(w),null),T&&=(clearTimeout(T),null),E&&=(clearTimeout(E),null),N&&=(clearTimeout(N),null),P&&=(clearTimeout(P),null)}function ae(){var e;(e=c?.onResize)==null||e.call(c),p.value&&X(!1)}function K(){M&&!F&&Y();let n=t(e);if(!y){if(y=!0,w)return;let e=()=>G(()=>{y=!1;let{continuous:e}=X(!1,!0);e||(T&&clearTimeout(T),T=setTimeout(K,n.updateInterval+100))});e(),n.updateInterval&&(w=setTimeout(()=>{w=null,y&&e()},n.updateInterval))}}function oe(e,t){var n,r;p.value&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?((n=c?.onVisible)==null||n.call(c),G(()=>{X(!1)})):(r=c?.onHidden)==null||r.call(c))}function se(){let e=t(n),r=e?st(e):void 0;return window.document&&(r===window.document.documentElement||r===window.document.body)?window:r||window}function ce(){let n=t(i);return n?t(e).direction===`vertical`?n.scrollHeight:n.scrollWidth:0}function q(){let r=t(n);if(!r)return{start:0,end:0};let i=t(e),a=i.direction===`vertical`,o;if(i.pageMode){let e=r.getBoundingClientRect(),t=a?e.height:e.width,n=-(a?e.top:e.left),i=a?window.innerHeight:window.innerWidth;n<0&&(i+=n,n=0),n+i>t&&(i=t-n),o={start:n,end:n+i}}else o=a?{start:r.scrollTop,end:r.scrollTop+r.clientHeight}:{start:$(r.scrollLeft,i.direction,r),end:$(r.scrollLeft,i.direction,r)+r.clientWidth};return o}function le(){let r=t(n);if(!r)return{start:0,end:0};if(t(e).direction===`vertical`){let e=$(r.scrollLeft,`horizontal`,r);return{start:e,end:e+r.clientWidth}}return{start:r.scrollTop,end:r.scrollTop+r.clientHeight}}function ue(n){let r=t(e);return r.itemSize==null?z.value[n]?.size||Number(r.minItemSize)||0:r.itemSize}function J(n){let r=t(e),i=r.gridItems||1;return n<=0?0:r.itemSize==null?z.value[n-1]?.accumulator||0:Math.floor(n/i)*r.itemSize}function de(n){let r=t(e),i=r.items.length,a=r.gridItems||1;if(!i)return 0;if(r.itemSize!=null){let e=Math.floor(n/r.itemSize)*a;return Math.min(Math.max(e,0),i-1)}let o=0,s=i-1,c=0;for(;o<=s;){let e=Math.floor((o+s)/2);J(e)<=n?(c=e,o=e+1):s=e-1}return c}function Y(){N&&=(clearTimeout(N),null),M=null}function fe(){N&&clearTimeout(N),N=setTimeout(()=>{M=null,N=null},150)}function pe(e,t){if(!e.length){Y();return}let n=Math.max(q().start-ce(),0),r=Math.min(de(n),e.length-1),i=e[r],a=t?i?.[t]:r;if(a==null){Y();return}let o=ce()+J(r);M={key:a,offset:q().start-o}}function me(n){if(!M)return!1;let r=t(e),i=We(n??r.items,R.value?null:r.keyField).indexOf(M.key);if(i===-1)return Y(),!1;let a=ce()+J(i)+M.offset,o=q().start;return Math.abs(a-o)<.5?!1:(F=!0,Z(a),G(()=>{F=!1}),!0)}function he(){t(e).pageMode?ge():_e()}function ge(){k=se(),k.addEventListener(`scroll`,K,lt()?{passive:!0}:!1),k.addEventListener(`resize`,ae)}function _e(){k&&=(k.removeEventListener(`scroll`,K),k.removeEventListener(`resize`,ae),null)}function ve(e,t,n,r,i,a){let o=Math.ceil(e/t)*n,s=Math.max(0,Math.floor(i.start/n)),c=Math.min(Math.ceil(i.end/n),Math.ceil(e/t)),l=Math.max(0,Math.floor(a.start/r)),u=Math.min(Math.ceil(a.end/r),t),d=[];for(let n=s;n<c;n++){let r=n*t;for(let t=l;t<u;t++){let n=r+t;if(n>=e)break;d.push(n)}}let f=d[0]??0,p=d.at(-1)??-1;return{renderedIndices:d,startIndex:f,endIndex:p+1,visibleStartIndex:f,visibleEndIndex:p,totalSize:o}}function ye(){let r=t(e);if(!r.gridItems||r.itemSize==null)return!1;let i=t(n);if(!i)return!1;let a=r.itemSecondarySize||r.itemSize,o=r.direction===`vertical`?i.clientWidth:i.clientHeight;return a*r.gridItems>o}function X(n,r=!1){var a;let o=t(e),u=o.itemSize,d=o.gridItems||1,p=o.itemSecondarySize||u,_=D,v=o.typeField,y=R.value?null:o.keyField,C=o.items,w=C.length,T=z.value,O=g,k=l.value,A=null,j=null,M,N,P,F,I;if(!w)M=N=F=I=P=0;else if(S)M=F=0,N=I=Math.min(o.prerender,C.length),P=0;else{let e=q(),n=le();if(r){let t=e.start-b;t<0&&(t=-t);let r=n.start-x;if(r<0&&(r=-r),!(u===null&&t>=_||u!==null&&t>=u)&&!(d>1&&u!=null&&r>=p))return{continuous:!0}}b=e.start,x=n.start;let a=o.buffer;e.start-=a,e.end+=a,n.start-=a,n.end+=a;let c=0,l=t(i);l&&(c=l.scrollHeight,e.start-=c);let f=t(s);if(f){let t=f.scrollHeight;e.end+=t}if(u===null){let t,n=0,r=w-1,i=~~(w/2),a;do a=i,t=T[i].accumulator,t<e.start?n=i:i<w-1&&T[i+1].accumulator>e.start&&(r=i),i=~~((n+r)/2);while(i!==a);for(i<0&&(i=0),M=i,P=T[w-1].accumulator,N=i;N<w&&T[N].accumulator<e.end;N++);for(N===-1?N=C.length-1:(N++,N>w&&(N=w)),F=M;F<w&&c+T[F].accumulator<e.start;F++);for(I=F;I<w&&c+T[I].accumulator<e.end;I++);}else if(d>1){let t=ve(w,d,u,p,e,n);A=t.renderedIndices,j=new Set(A),M=t.startIndex,N=t.endIndex,F=t.visibleStartIndex,I=t.visibleEndIndex,P=t.totalSize}else{M=~~(e.start/u*d);let t=M%d;M-=t,N=Math.ceil(e.end/u*d),F=Math.max(0,Math.floor((e.start-c)/u*d)),I=Math.floor((e.end-c)/u*d),M<0&&(M=0),N>w&&(N=w),F<0&&(F=0),I>w&&(I=w),P=Math.ceil(w/d)*u}}N-M>Xe.itemsLimit&&be(),f.value=P;let L,B=M<=h&&N>=m;if(!B||n)ne();else for(let e=0,t=k.length;e<t;e++){let t=k[e];if(t&&(L=t,L.nr.used)){let e=j?j.has(L.nr.index):L.nr.index>=M&&L.nr.index<N,t=u||T[L.nr.index]&&T[L.nr.index].size;(!e||!t)&&W(L)}}let V,H,U=A??Array.from({length:Math.max(0,N-M)},(e,t)=>M+t);for(let e of U){if(!(u||T[e]&&T[e].size))continue;V=C[e];let t=y?V[y]:e;if(t==null)throw Error(`Key is ${t} on item (keyField is '${y}')`);if(L=O.get(t),L)L.item!==V&&(L.item=V),L.nr.used||console.warn(`Expected existing view's used flag to be true, got ${L.nr.used}`);else{if(H=V[v],L=te(H),L){let n=L.nr.index!==e||L.nr.key!==t;L.item=V,L.nr.index=e,L.nr.key=t,L.nr.type!==H&&console.warn(`Reused view's type does not match pool's type`),n&&dt(L)}else L=ee(k,e,V,t,H);O.set(t,L)}u===null?(L.position=T[e-1]?.accumulator||0,L.offset=0):(L.position=Math.floor(e/d)*u,L.offset=e%d*p)}return m=M,h=N,o.emitUpdate&&((a=c?.onUpdate)==null||a.call(c,M,N,F,I)),E&&clearTimeout(E),E=setTimeout(Se,o.updateInterval+300),{continuous:B}}function be(){throw P=setTimeout(()=>{P=null,console.warn(`It seems the scroller element isn't scrolling, so it tries to render all the items at once.`,`Scroller:`,t(n)),console.warn(`Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.`)}),Error(`Rendered items limit reached`)}function xe(){if(ye())return!1;let e=l.value.filter(({nr:e})=>e.used);for(let t=1;t<e.length;t++)if(e[t].nr.index!==e[t-1].nr.index+1)return!0;return!1}function Se(){l.value.sort((e,t)=>e.nr.index-t.nr.index),xe()&&(X(!1),E&&clearTimeout(E))}function Ce(r,i){let a=t(e),o=t(n);if(!o)return;let s=Math.max(0,Math.min(r,a.items.length-1)),c=q().start,l=tt(o,a.direction,a.pageMode),u=Ye(J(s),ue(s),c,l,i?.align,i?.offset??0);if(u!=null&&(Z(u,i),a.gridItems&&a.itemSize!=null)){let e=t(n);if(!e)return;let r=a.gridItems,o=a.itemSecondarySize||a.itemSize,c=s%r*o,l=a.direction===`vertical`?`horizontal`:`vertical`,u=Ye(c,o,l===`horizontal`?$(e.scrollLeft,`horizontal`,e):e.scrollTop,l===`horizontal`?e.clientWidth:e.clientHeight,i?.align,i?.offset??0);u!=null&&et(e,l,u,i)}}function Z(r,i){let a=t(e),o=t(n);if(o)if(a.pageMode){let e=st(o),t=e.getBoundingClientRect(),n=o.getBoundingClientRect(),s=a.direction===`vertical`?`top`:`left`,c=st(o)===document.documentElement||st(o)===document.body?a.direction===`vertical`?window.scrollY:window.scrollX:$(a.direction===`vertical`?e.scrollTop:e.scrollLeft,a.direction,e),l=n[s]-t[s];et(e.tagName===`HTML`?window:e,a.direction,r+c+l,i)}else et(o,a.direction,r,i)}let Q=t(e);return j=We(Q.items,Q.items.length>0&&typeof Q.items[0]!=`object`?null:Q.keyField),Q.cache&&H(Q.cache),Q.prerender&&(S=!0,X(!1)),Q.gridItems&&!Q.itemSize&&console.error(`[vue-recycle-scroller] You must provide an itemSize when using gridItems`),d(()=>{he(),a(()=>{S=!1,X(!0),p.value=!0})}),o(()=>{let e=b;typeof e==`number`&&a(()=>{Z(e)})}),u(()=>{ie(),re(),_e()}),_(()=>t(e).cache,e=>{H(e),X(!0)}),_(()=>t(e).items,(n,r)=>{let i=t(e),a=R.value?null:i.keyField,o=We(n,a);i.shift&&Je(r?We(r,a):j,o)>0?pe(r??[],a):Y(),j=o,me(n),X(!0)}),_(()=>t(e).pageMode,()=>{he(),X(!1)}),_(z,()=>{me()&&fe(),X(!1)},{deep:!0}),_(()=>t(e).gridItems,()=>{X(!0)}),_(()=>t(e).itemSecondarySize,()=>{X(!0)}),{pool:l,visiblePool:B,totalSize:f,ready:p,sizes:z,simpleArray:R,scrollToItem:Ce,scrollToPosition:Z,getScroll:q,findItemIndex:de,getItemOffset:J,getItemSize:ue,cacheSnapshot:V,restoreCache:H,updateVisibleItems:X,handleScroll:K,handleResize:ae,handleVisibilityChange:oe,sortViews:Se}}var mt=new WeakMap;function ht(e){return typeof e==`function`?{callback:e,observer:null,intersection:void 0,visible:null}:{callback:e.callback,observer:null,intersection:e.intersection,visible:null}}function gt(e,t){_t(e);let n=ht(t.value);if(mt.set(e,n),typeof IntersectionObserver>`u`){let t=e.getBoundingClientRect();n.visible=!0,n.callback(!0,{boundingClientRect:t});return}n.observer=new IntersectionObserver(e=>{let t=e[0],r=!!(t!=null&&t.isIntersecting);n.visible!==null&&n.visible===r||(n.visible=r,n.callback(r,t))},n.intersection),n.observer.observe(e)}function _t(e){let t=mt.get(e);t!=null&&t.observer&&(t.observer.disconnect(),t.observer=null)}var vt={mounted(e,t){gt(e,t)},updated(e,t){t.value!==t.oldValue&&gt(e,t)},unmounted(e){_t(e),mt.delete(e)}},yt=i({__name:`ItemView`,props:{view:{},itemTag:{}},setup(t){let n=t;return(t,r)=>(f(),x(e(n.itemTag),{class:`vue-recycle-scroller__item-view`},{default:v(()=>[p(t.$slots,`default`,{item:n.view.item,index:n.view.nr.index,active:n.view.nr.used})]),_:3}))}}),bt=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})(i({__name:`ResizeObserver`,emits:[`notify`],setup(e,{emit:t}){let n=t,i=r(),a=null,o=null;function s(){n(`notify`)}return d(()=>{let e=i.value?.parentElement;if(e){if(typeof ResizeObserver<`u`){a=new ResizeObserver(()=>{s()}),a.observe(e);return}o=()=>s(),window.addEventListener(`resize`,o)}}),u(()=>{a&&=(a.disconnect(),null),o&&=(window.removeEventListener(`resize`,o),null)}),(e,t)=>(f(),E(`div`,{ref_key:`el`,ref:i,class:`vue-recycle-scroller__resize-observer`,"aria-hidden":`true`},null,512))}}),[[`__scopeId`,`data-v-08cc04ab`]]),xt=i({__name:`RecycleScroller`,props:{items:{},keyField:{default:`id`},direction:{default:`vertical`},listTag:{default:`div`},itemTag:{default:`div`},itemSize:{default:null},gridItems:{default:void 0},itemSecondarySize:{default:void 0},minItemSize:{default:null},sizeField:{default:`size`},typeField:{default:`type`},buffer:{default:200},pageMode:{type:Boolean,default:!1},shift:{type:Boolean,default:!1},cache:{default:void 0},prerender:{default:0},emitUpdate:{type:Boolean,default:!1},disableTransform:{type:Boolean,default:!1},updateInterval:{default:0},skipHover:{type:Boolean,default:!1},listClass:{default:``},itemClass:{default:``}},emits:[`resize`,`visible`,`hidden`,`update`,`scrollStart`,`scrollEnd`],setup(t,{expose:n,emit:i}){let a=t,o=i,u=vt,d=r(),_=r(),S=r(),T=r(null),{pool:O,visiblePool:k,totalSize:A,ready:j,scrollToItem:M,scrollToPosition:N,getScroll:P,findItemIndex:F,getItemOffset:I,getItemSize:L,cacheSnapshot:R,restoreCache:z,updateVisibleItems:B,handleScroll:V,handleResize:H,handleVisibilityChange:U}=pt(a,d,_,S,{onResize:()=>o(`resize`),onVisible:()=>o(`visible`),onHidden:()=>o(`hidden`),onUpdate:(e,t,n,r)=>{o(`update`,e,t,n,r),n<=0&&o(`scrollStart`),r>=a.items.length-1&&o(`scrollEnd`)}});function ee(e){T.value=e}function te(){T.value=null}let W=C(()=>{let e={[a.direction===`vertical`?`minHeight`:`minWidth`]:`${A.value}px`};if(a.gridItems&&a.itemSize!=null){let t=(a.itemSecondarySize||a.itemSize)*a.gridItems;e[a.direction===`vertical`?`minWidth`:`minHeight`]=`${t}px`}return e});return n({el:d,visiblePool:k,scrollToItem:M,scrollToPosition:N,getScroll:P,findItemIndex:F,getItemOffset:I,getItemSize:L,cacheSnapshot:R,restoreCache:z,updateVisibleItems:B}),(t,n)=>b((f(),E(`div`,{ref_key:`el`,ref:d,class:l([`vue-recycle-scroller`,{"grid-mode":a.gridItems,ready:s(j),"page-mode":a.pageMode,[`direction-${a.direction}`]:!0}]),onScrollPassive:n[0]||=(...e)=>s(V)&&s(V)(...e)},[t.$slots.before?(f(),E(`div`,{key:0,ref_key:`before`,ref:_,class:`vue-recycle-scroller__slot`},[p(t.$slots,`before`)],512)):h(``,!0),(f(),x(e(a.listTag),{style:y(W.value),class:l([`vue-recycle-scroller__item-wrapper`,a.listClass])},{default:v(()=>[(f(!0),E(g,null,m(s(O),e=>(f(),x(yt,c({key:e.nr.id,view:e,"item-tag":a.itemTag,style:s(j)?[a.disableTransform?{[a.direction===`vertical`?`top`:`left`]:`${e.position}px`,willChange:`unset`}:{transform:`translate${a.direction===`vertical`?`Y`:`X`}(${e.position}px) translate${a.direction===`vertical`?`X`:`Y`}(${e.offset}px)`},{width:a.gridItems?`${a.direction===`vertical`&&a.itemSecondarySize||a.itemSize}px`:void 0,height:a.gridItems?`${a.direction===`horizontal`&&a.itemSecondarySize||a.itemSize}px`:void 0,visibility:e.nr.used?`visible`:`hidden`}]:null,class:[`vue-recycle-scroller__item-view`,[a.itemClass,{hover:!a.skipHover&&T.value===e.nr.key}]]},w(a.skipHover?{}:{mouseenter:()=>{ee(e.nr.key)},mouseleave:()=>{te()}})),{default:v(e=>[p(t.$slots,`default`,c({ref_for:!0},e))]),_:2},1040,[`view`,`item-tag`,`style`,`class`]))),128)),a.items.length===0?p(t.$slots,`empty`,{key:0}):h(``,!0)]),_:3},8,[`style`,`class`])),t.$slots.after?(f(),E(`div`,{key:1,ref_key:`after`,ref:S,class:`vue-recycle-scroller__slot`},[p(t.$slots,`after`)],512)):h(``,!0),D(bt,{onNotify:s(H)},null,8,[`onNotify`])],34)),[[s(u),s(U)]])}}),St={"h-full":``,flex:`~ col gap-4`},Ct={flex:`~ items-center`},wt={flex:`~ col`,"w-30":``,"of-auto":``},Tt={flex:`~ justify-between`,"w-full":``,"text-xs":``,capitalize:``,op75:``},Et={flex:`~ items-center gap-2`},Dt={flex:`~ gap1`,"text-sm":``,op50:``},Ot={key:0},kt={"flex-auto":``,"of-auto":``,flex:`~ col gap-2`,pl6:``,pr4:``},At=Object.assign(i({__name:`ModuleInstallList`,emits:[`close`],setup(e,{emit:t}){let i=t,a=de(),o=fe(),c=[`downloads`,`stars`,`updated`,`created`],l=r(!1),u=r(c[0]),d=r(!0),p={downloads:(e,t)=>e.stats.downloads-t.stats.downloads,stars:(e,t)=>e.stats.stars-t.stats.stars,created:(e,t)=>e.stats.createdAt-t.stats.createdAt,updated:(e,t)=>e.stats.publishedAt-t.stats.publishedAt},_=C(()=>a.value?.toSorted((e,t)=>p[u.value](e,t)*(l.value?1:-1))),y=r(``),b=C(()=>new W(a.value||[],{keys:[`name`,`description`,`npm`,`category`],sortFn:(e,t)=>{let n=a.value?.[e.idx],r=a.value?.[t.idx];return n&&r?p[u.value](n,r)*(l.value?1:-1):e.score-t.score},threshold:.2})),w=C(()=>{let e=_.value;return d.value&&(e=(e||[]).filter(e=>!o.value.some(t=>t.name===e.name))),y.value?b.value.search(y.value).map(e=>e.item).filter(t=>e?.includes(t)):e});return(e,t)=>{let r=q,o=H,p=V,_=re,b=K,C=ce,O=He;return f(),E(`div`,St,[D(r,{mx6:``,mt6:``,"text-xl":``,op75:``,icon:`i-carbon-intent-request-create`,text:`Install Module`}),D(C,{search:y.value,"onUpdate:search":t[2]||=e=>y.value=e,"no-padding":``,"px-6":``,"pb-3":``,"pt-2":``},{actions:v(()=>[D(_,{direction:`end`,n:`sm primary`},{trigger:v(({click:e})=>[S(`div`,Ct,[D(o,{icon:l.value?`tabler:sort-ascending`:`tabler:sort-descending`,"h-full":``,"rounded-r-none":``,onClick:t[0]||=e=>l.value=!l.value},null,8,[`icon`]),D(o,{flex:`~ justify-between`,"min-w-30":``,"border-l-0":``,"rounded-l-none":``,"px-2":``,capitalize:``,hover:`border-l-1`,onClick:t=>e()},{default:v(()=>[n(T(u.value)+` `,1),D(p,{icon:`carbon:chevron-down`})]),_:1},8,[`onClick`])])]),default:v(()=>[S(`div`,wt,[(f(),E(g,null,m(c,e=>D(o,{key:e,border:!1,p2:``,hover:`n-checkbox-hover text-green`,onClick:t=>u.value=e},{default:v(()=>[S(`span`,Tt,[n(T(e)+` `,1),u.value===e?(f(),x(p,{key:0,icon:`carbon:checkmark`})):h(``,!0)])]),_:2},1032,[`onClick`])),64))])]),_:1})]),default:v(()=>[S(`div`,Et,[D(b,{modelValue:d.value,"onUpdate:modelValue":t[1]||=e=>d.value=e,n:`primary md`},{default:v(()=>[...t[4]||=[S(`span`,{op75:``},`Exclude installed modules`,-1)]]),_:1},8,[`modelValue`]),S(`div`,Dt,[y.value||d.value?(f(),E(`span`,Ot,T(w.value?.length)+` matched · `,1)):h(``,!0),S(`span`,null,T(s(a)?.length)+` modules in total`,1)])])]),_:1},8,[`search`]),S(`div`,kt,[D(s(xt),{class:`scroller`,items:w.value||[],"item-size":200,"key-field":`name`},{default:v(({item:e})=>[D(O,{item:e,onStart:t[3]||=e=>i(`close`)},null,8,[`item`])]),_:1},8,[`items`])])])}}}),{__name:`ModuleInstallList`}),jt={flex:`~ col gap-2`,"w-150":``,p4:``,border:`t base`},Mt={capitalize:``},Nt={op50:``},Pt={flex:`~ gap-3`,mt2:``,"justify-end":``},Ft=Object.assign(i({__name:`ModuleActionDialog`,setup(e){let t=te(),r=ne(),i={};return(e,a)=>{let o=je,c=ie,u=ae,d=pe,p=F,m=H,h=z;return f(),x(s(B),null,{default:v(({resolve:e,args:f})=>[D(h,{"model-value":!0,onClose:t=>e(!1)},{default:v(()=>[D(o,{mod:i,info:f[0],border:`none`,"w-150":``,"n-panel-grids":``},null,8,[`info`]),S(`div`,jt,[S(`h2`,{"text-xl":``,class:l(f[2]===`install`?`text-primary`:`text-red`)},[S(`span`,Mt,T(f[2]),1),a[1]||=n(),S(`code`,null,T(f[0].name),1),a[2]||=n(`? `,-1)],2),a[7]||=S(`p`,{op50:``},` The following command will be executed in your terminal: `,-1),D(c,{code:f[1].commands.join(` `),lang:`bash`,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),S(`p`,Nt,[a[3]||=n(` Then your `,-1),D(u,{role:`button`,n:`primary`,underline:``,onClick:a[0]||=e=>s(r)(s(t)?._nuxtConfigFile),textContent:`Nuxt config`}),a[4]||=n(` will be updated as: `,-1)]),D(d,{from:f[1].configOriginal,to:f[1].configGenerated,"max-h-80":``,"of-auto":``,py2:``,border:`~ base rounded`,lang:`ts`},null,8,[`from`,`to`]),a[8]||=S(`p`,null,[S(`span`,{op50:``},`After that, Nuxt will `),S(`span`,{"text-orange":``},`restart automatically`),n(`. `)],-1),S(`div`,Pt,[D(p,{n:`sm amber`,"flex-auto":``,icon:`i-carbon-data-backup`},{default:v(()=>[...a[5]||=[n(` Please make sure to backup your project first. `,-1)]]),_:1}),D(m,{onClick:t=>e(!1)},{default:v(()=>[...a[6]||=[n(` Cancel `,-1)]]),_:1},8,[`onClick`]),D(m,{n:`solid`,capitalize:``,class:l(f[2]===`install`?`n-primary`:`n-red`),onClick:t=>e(!0)},{default:v(()=>[n(T(f[2]),1)]),_:2},1032,[`class`,`onClick`])])])]),_:2},1032,[`onClose`])]),_:1})}}}),{__name:`ModuleActionDialog`}),It={},Lt={class:`markdown-body`};function Rt(e,t){return f(),E(`div`,Lt,[...t[0]||=[S(`template`,null,[S(`div`,{class:`markdown-body`},[S(`h1`,null,`Modules`),S(`p`,null,[n(`Nuxt provides a module system to extend the framework core and simplify integrations. You don’t need to develop everything from scratch or maintain boilerplate if there is already a Nuxt module for it. Adding Nuxt modules is possible using `),S(`code`,{"v-pre":``},`nuxt.config`),n(`.`)]),S(`p`,null,[n(`You can explore the list of modules on `),S(`a`,{href:`https://nuxt.com/modules`,target:`_blank`,rel:`noopener`},`nuxt.com/modules`),n(` or install them directly inside the DevTools.`)]),S(`p`,null,[S(`a`,{href:`https://nuxt.com/docs/guide/concepts/modules`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var zt=j(It,[[`render`,Rt]]),Bt={"h-full":``,"w-full":``,"of-auto":``},Vt={relative:``,"h-20":``,"w-20":``,flex:``,"flex-none":``,rounded:``,"bg-gray:3":``,p3:``},Ht=[`src`,`alt`],Ut={"text-lg":``,"group-hover":`text-primary`,transition:``,flex:`~ gap-2 items-center`},Wt={op75:``},Gt={key:0,border:`l base`,pos:`fixed bottom-0 right-0 top-0`,"z-200":``,"w-150":``,"bg-base":``},Kt=`https://ipx.nuxt.com/s_80,f_webp/gh/nuxt/modules/main/icons/`,qt=i({__name:`modules`,setup(e){let t=r(!1),n=fe(),i=P(),a=C(()=>n.value.filter(e=>e.isPackageModule)),o=C(()=>n.value.filter(e=>!e.isPackageModule));return ee(()=>[{id:`action:modules:install`,title:`Install a new module`,icon:`i-carbon-intent-request-create `,action:()=>{t.value=!0}}]),(e,n)=>{let r=Ve,c=I,l=M,u=le,d=H,p=At,_=Ft,y=zt,b=se;return f(),E(g,null,[S(`div`,Bt,[D(u,{icon:`carbon-3d-mpr-toggle`,text:`Installed Modules`,"container-class":`grid grid-cols-minmax-400px gap3 px4`,padding:!1,description:`Total modules: ${a.value.length}`},{default:v(()=>[(f(!0),E(g,null,m(a.value,e=>(f(),x(r,{key:e.name,mod:e},null,8,[`mod`]))),128)),(f(!0),E(g,null,m(`processInstallingModules`in e?e.processInstallingModules:s(U),e=>(f(),x(l,{key:e.processId,block:``,"min-h-30":``,to:`/modules/terminals`,onClick:t=>i.value=e.processId},{default:v(()=>[D(c,{border:`1.5 dashed`,"h-full":``,"animate-pulse":``,p4:``,transition:``,hover:`border-primary`,flex:`~ col gap-1 items-center justify-center`,role:`button`,class:`group`},{default:v(()=>[S(`div`,Vt,[S(`img`,{src:Kt+e.info.icon,alt:e.info.name,ma:``},null,8,Ht),n[4]||=S(`div`,{"i-carbon-cube":``,ma:``,"text-4xl":``,op30:``},null,-1)]),S(`div`,Ut,[n[5]||=S(`div`,{"i-carbon-circle-dash":``,"animate-spin":``,"text-xl":``,op75:``},null,-1),S(`span`,Wt,`Installing `+T(e.name)+`...`,1)])]),_:2},1024)]),_:2},1032,[`onClick`]))),128)),D(c,{border:`1.5 dashed`,"min-h-30":``,p4:``,transition:``,hover:`border-primary`,flex:`~ col gap-2 items-center justify-center`,role:`button`,class:`group`,onClick:n[0]||=e=>t.value=!0},{default:v(()=>[...n[6]||=[S(`div`,{"i-carbon-intent-request-create":``,"text-4xl":``,op40:``,"group-hover":`op75 text-primary`,transition:``},null,-1),S(`div`,{"text-lg":``,op40:``,"group-hover":`op75 text-primary`,transition:``},` Install New Module `,-1)]]),_:1})]),_:1},8,[`description`]),o.value.length?(f(),x(u,{key:0,icon:`carbon-3d-mpr-toggle`,text:`User Modules`,"container-class":`grid grid-cols-minmax-400px gap3 px4`,padding:!1,description:`Total modules: ${o.value.length}`},{default:v(()=>[(f(!0),E(g,null,m(o.value,e=>(f(),E(g,{key:e.meta?.name||e.entryPath},[e.meta?.name||e.entryPath?(f(),x(r,{key:0,mod:e},null,8,[`mod`])):h(``,!0)],64))),128))]),_:1},8,[`description`])):h(``,!0),D(R,{name:`fade-in`},{default:v(()=>[t.value?(f(),E(`div`,{key:0,class:`fixed bottom-0 left-0 right-0 top-0 z-100`,"bg-black:20":``,"backdrop-blur-2":``,onClick:n[1]||=e=>t.value=!1})):h(``,!0)]),_:1}),D(R,{name:`slide-in`},{default:v(()=>[t.value?(f(),E(`div`,Gt,[D(d,{icon:`carbon-close`,pos:`absolute top-3 right-3 z-10`,"rounded-full":``,"text-xl":``,border:!1,onClick:n[2]||=e=>t.value=!1}),D(p,{onClose:n[3]||=e=>t.value=!1})])):h(``,!0)]),_:1}),D(_)]),D(b,null,{default:v(()=>[D(y)]),_:1})],64)}}});export{qt as default};
@@ -0,0 +1 @@
1
+ import{W as e,X as t,v as n}from"./vendor/json-editor-vue-g94ysn44.js";import{t as r}from"./_plugin-vue_export-helper-e0bby96w.js";var i={},a={class:`n-badge`};function o(r,i){return e(),n(`span`,a,[t(r.$slots,`default`)])}var s=Object.assign(r(i,[[`render`,o]]),{__name:`NBadge`});export{s as t};
@@ -0,0 +1 @@
1
+ import{E as e,Mt as t,Qt as n,W as r,X as i,ft as a,h as o,v as s,vt as c,w as l}from"./vendor/json-editor-vue-g94ysn44.js";import{Gn as u,j as d,sn as f,zn as p}from"#entry";var m=[`checked`,`disabled`],h=[`disabled`],g={class:`n-checkbox-box n-transition n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base`},_=Object.assign(e({__name:`NCheckbox`,props:{modelValue:{type:[Boolean,null],default:!1},disabled:{type:Boolean,default:!1}},setup(e,{emit:_}){let v=f(e,`modelValue`,_,{passive:!0});return(f,_)=>{let y=d;return r(),s(`label`,{class:`n-checkbox select-none items-center hover:n-checkbox-hover n-disabled:n-disabled`,checked:t(v)||null,disabled:e.disabled||null},[a(o(`input`,{"onUpdate:modelValue":_[0]||=e=>c(v)?v.value=e:null,type:`checkbox`,class:`peer absolute op0`,disabled:e.disabled,onKeypress:_[1]||=u(e=>v.value=!t(v),[`enter`])},null,40,h),[[p,t(v)]]),o(`span`,g,[l(y,{class:`n-checkbox-icon scale-0 transform op0 n-transition n-checked:scale-100 n-checked:op100`})]),o(`span`,{class:n([t(v)?``:`op50`,`n-transition`])},[i(f.$slots,`default`)],2)],8,m)}}}),{__name:`NCheckbox`});export{_ as t};
@@ -0,0 +1,2 @@
1
+ import{E as e,F as t,Qt as n,W as r,Y as i,c as a,h as o,m as s,tn as c,v as l}from"./vendor/json-editor-vue-g94ysn44.js";import{t as u}from"./client-d56h4dc4.js";var d=[`innerHTML`],f=[`textContent`],p=Object.assign(e({__name:`NCodeBlock`,props:{code:{},lang:{},lines:{type:Boolean,default:!0},inline:{type:Boolean},grammarContextCode:{},transformRendered:{}},emits:[`loaded`],setup(e,{emit:p}){let m=e,h=p,g=s(()=>{let e=m.lang===`text`?{code:m.code,supported:!1}:u.value?.devtools.renderCodeHighlight(m.code,m.lang,{grammarContextCode:m.grammarContextCode})||{code:m.code,supported:!1};return e.supported&&m.transformRendered&&(e.code=m.transformRendered(e.code)),e.supported&&t(()=>h(`loaded`)),e}),_=s(()=>[`n-code-block shiki`,m.lines&&!m.inline?`n-code-block-lines`:``]);return(t,s)=>e.lang&&g.value.supported?(r(),l(`pre`,{key:0,class:n(_.value)},[o(`code`,{innerHTML:g.value.code},null,8,d)],2)):(r(),l(`pre`,{key:1,class:n(_.value)},[o(`code`,null,[(r(!0),l(a,null,i(e.code.split(`
2
+ `),(e,t)=>(r(),l(a,{key:t},[o(`span`,{class:`line`,textContent:c(e)},null,8,f),s[0]||=o(`br`,null,null,-1)],64))),128))])],2))}}),{__name:`NCodeBlock`});export{p as t};
@@ -0,0 +1 @@
1
+ import{Ct as e,E as t,Mt as n,P as r,W as i,X as a,_ as o,dt as s,g as c,h as l,v as u,w as d}from"./vendor/json-editor-vue-g94ysn44.js";import{Rn as f,Xt as p,k as m,tn as h}from"#entry";var g=[`border`],_={relative:``,"h-full":``,"w-full":``,"of-auto":``},v=Object.assign(t({__name:`NDrawer`,props:{modelValue:{type:Boolean},top:{},left:{},autoClose:{type:Boolean},transition:{default:`right`}},emits:[`close`],setup(t,{emit:v}){let y=t,b=v,x=e(),{height:S}=h(()=>y.top,void 0,{box:`border-box`}),C=typeof y.left==`string`&&y.left.startsWith(`#`)?document.querySelector(y.left)?.getBoundingClientRect().width:h(()=>y.left,void 0,{box:`border-box`}).width;p(x,()=>{y.modelValue&&y.autoClose&&b(`close`)},{ignore:[`a`,`button`,`summary`,`[role="dialog"]`]});let w={right:{"enter-from-class":`transform translate-x-1/1`,"leave-to-class":`transform translate-x-1/1`},top:{"enter-from-class":`transform translate-y--1/1`,"leave-to-class":`transform translate-y--1/1`},bottom:{"enter-from-class":`transform translate-y-1/1`,"leave-to-class":`transform translate-y-1/1`}};return(e,p)=>{let h=m;return i(),c(f,r(w[t.transition],{"enter-active-class":`duration-200 ease-in`,"enter-to-class":`opacity-100`,"leave-active-class":`duration-200 ease-out`,"leave-from-class":`opacity-100`}),{default:s(()=>[t.modelValue?(i(),u(`div`,r({key:0,ref_key:`el`,ref:x,border:`${t.transition===`right`?`l`:t.transition===`bottom`?`t`:`b`} base`,flex:`~ col gap-1`,class:{"right-0":t.transition===`right`||t.transition===`bottom`},absolute:``,"bottom-0":``,"z-10":``,"z-20":``,"of-auto":``,"n-glass-effect":``,"text-sm":``,style:{top:t.transition===`bottom`?`auto`:`${n(S)}px`,left:t.transition===`right`&&!n(C)?`auto`:`${n(C)}px`}},e.$attrs),[d(h,{absolute:``,"right-2":``,"top-2":``,"z-20":``,"text-xl":``,icon:`carbon-close`,border:!1,onClick:p[0]||=t=>e.$emit(`close`)}),l(`div`,_,[a(e.$slots,`default`)])],16,g)):o(``,!0)]),_:3},16)}}}),{__name:`NDrawer`});export{v as t};
@@ -0,0 +1 @@
1
+ import{C as e,Ct as t,E as n,Mt as r,Qt as i,W as a,X as o,dt as s,h as c,v as l,w as u}from"./vendor/json-editor-vue-g94ysn44.js";import{Xt as d,k as f,sn as p}from"#entry";var m=Object.assign(n({__name:`NDropdown`,props:{modelValue:{type:Boolean},direction:{default:`start`}},setup(n,{emit:m}){let h=p(n,`modelValue`,m,{passive:!0}),g=t();return d(g,()=>{h.value=!1}),(t,d)=>{let p=f;return a(),l(`div`,{ref_key:`el`,ref:g,class:`relative`},[o(t.$slots,`trigger`,{enabled:r(h),click:()=>h.value=!r(h)},()=>[u(p,{onClick:d[0]||=e=>h.value=!r(h)},{default:s(()=>[...d[1]||=[e(` Dropdown `,-1)]]),_:1})]),c(`div`,{class:i([`absolute z-10 border n-border-base rounded n-bg-base shadow n-transition`,[r(h)?`op-100`:`op0 pointer-events-none -translate-y-1`,n.direction===`end`?`right-0`:`left-0`]])},[o(t.$slots,`default`)],2)],512)}}}),{__name:`NDropdown`});export{m as t};
@@ -0,0 +1 @@
1
+ import{E as e,Qt as t,W as n,X as r,_ as i,h as a,tn as o,v as s}from"./vendor/json-editor-vue-g94ysn44.js";var c={flex:`~ gap-3`,"items-center":``},l=Object.assign(e({__name:`NIconTitle`,props:{icon:{},text:{}},setup(e){return(l,u)=>(n(),s(`div`,c,[e.icon?(n(),s(`div`,{key:0,class:t(e.icon)},null,2)):i(``,!0),r(l.$slots,`default`,{},()=>[a(`div`,null,o(e.text),1)])]))}}),{__name:`NIconTitle`});export{l as t};
@@ -0,0 +1 @@
1
+ import{E as e,P as t,W as n,X as r,_ as i,dt as a,g as o,m as s,v as c}from"./vendor/json-editor-vue-g94ysn44.js";import{A as l}from"#entry";var u={key:0,"i-carbon:arrow-up-right":``,"translate-y--1":``,"text-xs":``,op50:``},d=Object.assign(e({__name:`NLink`,props:{to:{},href:{},target:{},underline:{type:Boolean}},setup(e){let d=e,f=s(()=>d.href||d.to);return(s,d)=>{let p=l;return n(),o(p,t(f.value?{href:f.value,target:e.target,rel:e.target===`_blank`?`noopener noreferrer`:void 0}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":f.value||e.underline}}),{default:a(()=>[r(s.$slots,`default`),f.value&&e.target===`_blank`?(n(),c(`div`,u)):i(``,!0)]),_:3},16,[`class`])}}}),{__name:`NLink`});export{d as t};
@@ -0,0 +1 @@
1
+ import{$ as e,E as t,Mt as n,W as r,g as i,tn as a}from"./vendor/json-editor-vue-g94ysn44.js";import{t as o}from"./client-d56h4dc4.js";var s=Object.assign(t({__name:`NMarkdown`,props:{markdown:{},tag:{}},setup(t){return(s,c)=>t.markdown&&n(o)?.devtools?.renderMarkdown?(r(),i(e(t.tag||`span`),{key:0,class:`n-markdown`,innerHTML:n(o).devtools.renderMarkdown(t.markdown)},null,8,[`innerHTML`])):(r(),i(e(t.tag||`span`),{key:1,class:`n-markdown`,textContent:a(t.markdown)},null,8,[`textContent`]))}}),{__name:`NMarkdown`});export{s as t};
@@ -0,0 +1 @@
1
+ import{E as e,Qt as t,W as n,X as r,_ as i,g as a,h as o,v as s}from"./vendor/json-editor-vue-g94ysn44.js";import{c}from"#entry";var l={flex:`~ gap4 wrap`,"items-center":``},u=Object.assign(e({__name:`NNavbar`,props:{search:{},noPadding:{type:Boolean}},emits:[`update:search`],setup(e,{emit:u}){let d=u;function f(e){d(`update:search`,e.target.value)}return(u,d)=>{let p=c;return n(),s(`div`,{flex:`~ col gap2 wrap`,border:`b base`,"n-navbar-glass":``,"flex-1":``,class:t([{p4:!e.noPadding}])},[o(`div`,l,[r(u.$slots,`search`,{},()=>[e.search===void 0?i(``,!0):(n(),a(p,{key:0,placeholder:`Search...`,icon:`carbon-search`,n:`primary`,"flex-auto":``,class:t({"px-3 py-2":!e.noPadding}),value:e.search,onInput:f},null,8,[`class`,`value`]))]),r(u.$slots,`actions`)]),r(u.$slots,`default`)],2)}}}),{__name:`NNavbar`});export{u as t};
@@ -0,0 +1 @@
1
+ import{W as e,X as t,v as n}from"./vendor/json-editor-vue-g94ysn44.js";import{t as r}from"./_plugin-vue_export-helper-e0bby96w.js";var i={},a={relative:``,"w-full":``};function o(r,i){return e(),n(`div`,a,[t(r.$slots,`default`)])}var s=r(i,[[`render`,o]]);export{s as default};
@@ -0,0 +1 @@
1
+ import{C as e,E as t,Mt as n,Qt as r,W as i,X as a,_ as o,c as s,dt as c,ft as l,g as u,h as d,tn as f,v as p,w as m}from"./vendor/json-editor-vue-g94ysn44.js";import{t as h}from"./_plugin-vue_export-helper-e0bby96w.js";import{Wn as g,j as _,sn as v}from"#entry";import{t as y}from"./nicon-title-dciaco6o.js";var b=[`open`],x={"text-base":``},S={key:0,"text-sm":``,op50:``},C=Object.assign(h(t({__name:`NSectionBlock`,props:{icon:{},text:{},description:{},containerClass:{default:``},headerClass:{},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(t){let h=v(t,`open`,void 0,{passive:!0});function C(e){h.value=e.target.open}return(v,w)=>{let T=_,E=y;return i(),p(s,null,[d(`details`,{open:n(h),onToggle:w[0]||=(...e)=>C&&C(...e)},[d(`summary`,{class:r([`cursor-pointer select-none p4 hover:bg-active`,t.collapse?``:`pointer-events-none`])},[m(E,{icon:t.icon,text:t.text,"text-xl":``,transition:``,class:r([n(h)?`op100`:`op60`,t.headerClass])},{default:c(()=>[d(`div`,null,[d(`div`,x,[a(v.$slots,`text`,{},()=>[e(f(t.text),1)],!0)]),t.description||v.$slots.description?(i(),p(`div`,S,[a(v.$slots,`description`,{},()=>[e(f(t.description),1)],!0)])):o(``,!0)]),w[1]||=d(`div`,{class:`flex-auto`},null,-1),a(v.$slots,`actions`,{},void 0,!0),t.collapse?(i(),u(T,{key:0,icon:`carbon-chevron-down`,class:`chevron`,"cursor-pointer":``,"place-self-start":``,"text-base":``,op75:``,transition:``,"duration-500":``})):o(``,!0)]),_:3},8,[`icon`,`text`,`class`])],2),w._lazyshow1||n(h)?(w._lazyshow1=!0,i(),p(s,null,[l(d(`div`,{class:r([`flex flex-col flex-gap2 pb6 pt2`,typeof t.padding==`string`?t.padding:t.padding?`px4`:``])},[a(v.$slots,`details`,{},void 0,!0),d(`div`,{class:r([t.containerClass,`mt1`])},[a(v.$slots,`default`,{},void 0,!0)],2),a(v.$slots,`footer`,{},void 0,!0)],2),[[g,n(h)]])],64)):o(`v-show-if`,!0)],40,b),w[2]||=d(`div`,{class:`x-divider`},null,-1)],64)}}}),[[`__scopeId`,`data-v-95ac5573`]]),{__name:`NSectionBlock`});export{C as t};
@@ -0,0 +1 @@
1
+ import{E as e,Mt as t,Qt as n,W as r,X as i,_ as a,ft as o,g as s,h as c,tn as l,v as u,vt as d}from"./vendor/json-editor-vue-g94ysn44.js";import{Hn as f,j as p,sn as m}from"#entry";var h=[`disabled`],g={key:0,value:``,disabled:``,hidden:``},_=Object.assign(e({__name:`NSelect`,props:{modelValue:{default:void 0},placeholder:{default:``},icon:{default:``},disabled:{type:Boolean,default:!1}},setup(e,{emit:_}){let v=m(e,`modelValue`,_,{passive:!0});return(m,_)=>{let y=p;return r(),u(`div`,{class:n([`n-select flex flex items-center border rounded n-bg-base px-2 py-1 focus-within:border-context focus-within:n-focus-base`,e.disabled?`border-gray:10`:`n-border-base`])},[i(m.$slots,`icon`,{},()=>[e.icon?(r(),s(y,{key:0,icon:e.icon,class:`mr-0.4em text-1.1em op50`},null,8,[`icon`])):a(``,!0)]),o(c(`select`,{"onUpdate:modelValue":_[0]||=e=>d(v)?v.value=e:null,disabled:e.disabled,class:n([`w-full flex-auto n-bg-base !outline-none`,e.disabled?`appearance-none`:``])},[e.placeholder?(r(),u(`option`,g,l(e.placeholder),1)):a(``,!0),i(m.$slots,`default`)],10,h),[[f,t(v)]])],2)}}}),{__name:`NSelect`});export{_ as t};
@@ -0,0 +1 @@
1
+ import{E as e,Mt as t,Qt as n,W as r,Y as i,c as a,ft as o,h as s,tn as c,v as l,vt as u}from"./vendor/json-editor-vue-g94ysn44.js";import{Vn as d,sn as f}from"#entry";var p={class:`n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base`},m=[`disabled`,`title`],h=[`disabled`,`value`,`title`],g=Object.assign(e({__name:`NSelectTabs`,props:{modelValue:{default:void 0},disabled:{type:Boolean,default:!1},options:{}},setup(e,{emit:g}){let _=f(e,`modelValue`,g,{passive:!0});return(f,g)=>(r(),l(`fieldset`,p,[(r(!0),l(a,null,i(e.options,(i,a)=>(r(),l(`label`,{key:i.label,disabled:e.disabled,class:n([`relative n-border-base px-0.5em py-0.1em hover:n-bg-active`,[a?`border-l n-border-base ml--1px`:``,i.value===t(_)?`n-bg-active`:``]]),title:i.label},[s(`div`,{class:n([i.value===t(_)?``:`op35`])},c(i.label),3),o(s(`input`,{"onUpdate:modelValue":g[0]||=e=>u(_)?_.value=e:null,type:`radio`,disabled:e.disabled,value:i.value,title:i.label,class:`absolute inset-0 op-0.1`},null,8,h),[[d,t(_)]])],10,m))),128))]))}}),{__name:`NSelectTabs`});export{g as t};
@@ -0,0 +1 @@
1
+ import{E as e,N as t,W as n,X as r,ft as i,h as a,it as o,v as s}from"./vendor/json-editor-vue-g94ysn44.js";import{Gn as c,zn as l}from"#entry";var u=[`checked`,`disabled`],d=[`disabled`],f=Object.assign(e({__name:`NSwitch`,props:t({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=o(e,`modelValue`);return(o,f)=>(n(),s(`label`,{class:`n-switch n-switch-base hover:n-switch-hover n-disabled:n-disabled`,checked:t.value||null,disabled:e.disabled||null},[i(a(`input`,{"onUpdate:modelValue":f[0]||=e=>t.value=e,type:`checkbox`,class:`peer absolute op0`,disabled:e.disabled,onKeypress:f[1]||=c(e=>t.value=!t.value,[`enter`])},null,40,d),[[l,t.value]]),f[2]||=a(`div`,{class:`n-switch-slider n-transition n-checked:n-switch-slider-checked peer-active:n-active-base peer-focus-visible:n-focus-base`},[a(`div`,{class:`n-switch-thumb n-transition n-checked:n-switch-thumb-checked`})],-1),r(o.$slots,`default`)],8,u))}}),{__name:`NSwitch`});export{f as t};
@@ -0,0 +1,3 @@
1
+ import{C as e,Ct as t,E as n,F as r,Mt as i,Q as a,Qt as o,W as s,Y as c,_ as l,c as u,dt as d,en as f,ft as p,g as m,h,m as g,tn as _,v,w as y}from"./vendor/json-editor-vue-g94ysn44.js";import{t as b}from"./_plugin-vue_export-helper-e0bby96w.js";import{$t as x,Dt as S,E as C,Fn as w,Gn as T,Kt as E,Ot as D,Q as O,_ as k,c as A,in as j,k as M,kt as N,ln as P,rn as F,un as I,ut as L,v as R}from"#entry";import{t as z}from"./ncode-block-mvjvaye5.js";import"./composables-dhks1pao.js";import{t as B}from"./nlink-n14t4xmt.js";import{t as ee}from"./help-fab-oij4kl08.js";import{t as te}from"./nnavbar-bwuaevkz.js";import{t as V}from"./nsection-block-na7dtpi3.js";var H=[{name:`title`,suggestion:`required`,head:{title:`[title]`},seoMeta:{title:`[title]`},docs:`https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title`,description:`A concise and descriptive title for the browser that accurately summarizes the content of the page.`},{name:`description`,suggestion:`required`,head:{meta:[{name:`description`,content:`[description]`}]},seoMeta:{description:`[description]`},description:`A one to two sentence summary for search engines that includes relevant keywords to improve visibility in search results.`},{name:`icon`,suggestion:`recommended`,head:{link:[{rel:`icon`,type:`image/png`,href:`/favicon.png`}]},description:`A small image that appears in the browser tab and bookmark menu to help users easily identify the page.`},{name:`lang`,suggestion:`recommended`,head:{htmlAttrs:{lang:`en`}},description:`The primary language of the page to help search engines and browsers understand the content.`},{name:`og:title`,suggestion:`recommended`,head:{meta:[{property:`og:title`,content:`[og:title]`}]},seoMeta:{ogTitle:`[og:title]`},docs:`https://ogp.me/#metadata`,description:`A title for the link preview used by social media platforms.`},{name:`og:description`,suggestion:`recommended`,head:{meta:[{property:`og:description`,content:`[og:description]`}]},seoMeta:{ogDescription:`[og:description]`},docs:`https://ogp.me/#metadata`,description:`A description for the link preview used by social media platforms.`},{name:`og:image`,suggestion:`recommended`,head:{meta:[{property:`og:image`,content:`[og:image]`}]},seoMeta:{ogImage:`[og:image]`},docs:`https://ogp.me/#metadata`,description:`An image for the link preview used by social media platforms.`},{name:`og:url`,suggestion:`recommended`,head:{meta:[{property:`og:url`,content:`[og:url]`}]},seoMeta:{ogUrl:`[og:url]`},docs:`https://ogp.me/#metadata`,description:`A canonical URL for the link preview used to specify the preferred URL to display in search engine results and social media previews when multiple URLs may point to the same page.`},{name:`twitter:title`,suggestion:`optional`,head:{meta:[{name:`twitter:title`,content:`[twitter:title]`}]},seoMeta:{twitterTitle:`[twitter:title]`},docs:`https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards`,description:`A title for the Twitter card used to provide a preview of the content shared on the page.`},{name:`twitter:description`,suggestion:`optional`,head:{meta:[{name:`twitter:description`,content:`[twitter:description]`}]},seoMeta:{twitterDescription:`[twitter:description]`},docs:`https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards`,description:`A description for the Twitter card used to provide a preview of the content shared on the page.`},{name:`twitter:image`,suggestion:`optional`,head:{meta:[{name:`twitter:image`,content:`[twitter:image]`}]},seoMeta:{twitterImage:`[twitter:image]`},docs:`https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards`,description:`An image for the Twitter card used to provide a preview of the content shared on the page.`},{name:`twitter:card`,suggestion:`optional`,head:{meta:[{name:`twitter:card`,content:`summary`}]},seoMeta:{twitterCard:`summary`},docs:`https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards`,description:`The type of Twitter card to use, which determines the type of card to display in link previews on Twitter.`}],U={flex:`~ wrap`,"mt--2":``,"w-full":``,"flex-none":``},W=[`onClick`],G={key:0,"x-divider":``},K={key:1,"x-divider":``},q={flex:`~ gap-1 items-center`,class:`px2 pt2`,lg:`px4 py2`},J={"w-full":``,p2:``,op75:``},Y={key:1,m4:``,flex:`~ col gap-2`},X={flex:`~ gap-1 wrap items-center`},Z={key:1},Q={flex:`~ gap-2`,n:`sm primary`,absolute:``,"right-2":``,"top-2":``},ne=Object.assign(n({__name:`OpenGraphMissingTabs`,props:{tags:{},matchedRouteFilepath:{}},setup(n){let r=n,a=/"([^"]+)":/g,f=/"/g,p=g(()=>H.filter(e=>!r.tags?.some(t=>t.name===e.name))),b=g(()=>{let e={},t={};p.value.forEach(n=>{n.seoMeta?Object.assign(t,n.seoMeta):e=w(e,n.head)});let n=[];if(Object.keys(t).length){let e=JSON.stringify(t,null,2).replace(a,`$1:`).replace(f,`'`);n.push(`useSeoMeta(${e})`)}if(Object.keys(e).length){let t=JSON.stringify(e,null,2).replace(a,`$1:`).replace(f,`'`);n.push(`useHead(${t})`)}return n.join(`
2
+
3
+ `)}),x=k(),S=R(),T=[`Missing Tags`,`Code Snippet`],E=t(T[0]);return(t,r)=>{let a=B,f=C,g=M,w=z,D=V;return p.value.length?(s(),m(D,{key:0,text:`Missing Tags`,description:`${p.value.length} missing tags`,icon:`carbon:warning-other`,"header-class":`text-orange op100! [[open]_&]:text-inherit`,padding:!1},{default:d(()=>[h(`div`,U,[(s(),v(u,null,c(T,(e,t)=>h(`button`,{key:t,px4:``,py2:``,border:`r t base`,hover:`bg-active`,class:o(e===E.value?``:`border-b`),onClick:t=>E.value=e},[h(`div`,{class:o(e===E.value?``:`op30`),capitalize:``},_(e),3)],10,W)),64)),r[3]||=h(`div`,{border:`b base`,"flex-auto":``},null,-1)]),E.value===T[0]?(s(),m(f,{key:0,grid:`~ cols-[1fr] lg:cols-[max-content_1fr]`,m4:``,"items-center":``,"justify-between":``,"of-hidden":``},{default:d(()=>[(s(!0),v(u,null,c(p.value,(t,n)=>(s(),v(u,{key:n},[n?(s(),v(`div`,G)):l(``,!0),n?(s(),v(`div`,K)):l(``,!0),h(`div`,q,[r[4]||=h(`div`,{"i-carbon-warning":``,"text-orange":``},null,-1),y(a,{"op-50":``,href:t.docs,target:`_blank`,n:`orange`},{default:d(()=>[e(_(t.name),1)]),_:2},1032,[`href`])]),h(`div`,J,_(t.description),1)],64))),128))]),_:1})):(s(),v(`div`,Y,[h(`p`,X,[y(g,{icon:`carbon-copy`,n:`xs`,"px-2":``,onClick:r[0]||=e=>i(x)(b.value,`open-graph-suggestion`)},{default:d(()=>[...r[5]||=[e(` Copy `,-1)]]),_:1}),r[7]||=e(` the following code snippet and paste it into your `,-1),n.matchedRouteFilepath?(s(),m(g,{key:0,icon:`carbon-launch`,n:`xs`,"px-2":``,onClick:r[1]||=e=>i(S)(n.matchedRouteFilepath)},{default:d(()=>[...r[6]||=[e(` page component `,-1)]]),_:1})):(s(),v(`span`,Z,`page component`)),r[8]||=e(` to full fill the missing tags. `,-1)]),y(f,{relative:``,"n-code-block":``},{default:d(()=>[y(w,{code:b.value,lang:`ts`,lines:!1,"w-full":``,"of-auto":``,p3:``},null,8,[`code`]),h(`div`,Q,[y(g,{icon:`carbon-copy`,onClick:r[2]||=e=>i(x)(b.value,`open-graph-suggestion`)},{default:d(()=>[...r[9]||=[e(` Copy `,-1)]]),_:1})])]),_:1})]))]),_:1},8,[`description`])):l(``,!0)}}}),{__name:`OpenGraphMissingTabs`}),re={class:`max-w-[524px] min-w-[524px] cursor-pointer bg-base`},ie={class:`break-words border border-base px-[12px] py-[10px] antialiased`},ae={class:`overflow-hidden truncate whitespace-nowrap text-[12px] leading-[11px] uppercase op50`},oe={class:`block h-[46px] max-h-[46px] border-separate select-none overflow-hidden break-words text-left`,style:{"border-spacing":`0px`}},se={class:`mt-[3px] truncate pt-[2px] text-[16px] font-semibold leading-[20px]`},ce={class:`mt-[3px] block h-[18px] max-h-[80px] border-separate select-none overflow-hidden truncate whitespace-nowrap break-words text-left text-[14px] leading-[20px] op50`,style:{"-webkit-line-clamp":`1`,"border-spacing":`0px`,"-webkit-box-orient":`vertical`}},le=Object.assign(n({__name:`SocialFacebook`,props:{card:{}},setup(e){return(t,n)=>(s(),v(`div`,re,[h(`div`,{class:`h-[274px] border border-b-0 border-base bg-cover bg-center bg-no-repeat`,style:f({backgroundImage:`url(${JSON.stringify(e.card.image)})`})},null,4),h(`div`,ie,[h(`div`,ae,_(e.card.url),1),h(`div`,oe,[h(`div`,se,_(e.card.title),1),h(`div`,ce,_(e.card.description),1)])])]))}}),{__name:`SocialFacebook`}),ue={class:`max-w-[438px] min-w-[438px] of-hidden border border-base rounded-[16px] bg-base -outline-offset-1`,style:{"font-family":`TwitterChirp, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif`}},de={class:`break-words border-base p-[0.75em] antialiased`,flex:`~ col justify-center gap-[2px]`},fe={class:`overflow-hidden truncate whitespace-nowrap text-[15px] leading-[20px] lowercase op50`},pe={class:`m-0 truncate text-[15px] font-semibold leading-[20px]`},me={class:`line-clamp-2 select-none overflow-hidden break-words text-left text-[15px] leading-[20px] op50`},he=Object.assign(n({__name:`SocialTwitter`,props:{tags:{}},setup(e){let t=e,n=g(()=>O(t.tags,{title:[{tag:`title`}],image:[{tag:`meta`,name:`twitter:image`},{tag:`meta`,name:`og:image`}],imageAlt:[{tag:`meta`,name:`twitter:image:alt`}],description:[{tag:`meta`,name:`twitter:description`},{tag:`meta`,name:`description`}],favicon:[{tag:`link`,name:`icon`}]})),r=g(()=>n.value.image?t.tags.find(e=>e.tag===`meta`&&e.name===`twitter:card`)?.value||`summary_large_image`:`summary`);return(e,t)=>(s(),v(`div`,ue,[h(`div`,{class:o([`cursor-pointer overflow-hidden leading-[1.3em]`,r.value===`summary_large_image`?``:`flex`]),hover:`bg-[#88888805]`},[r.value===`summary_large_image`?(s(),v(`div`,{key:0,class:`h-[220px] border-b border-base bg-cover bg-center bg-no-repeat`,style:f({backgroundImage:`url(${JSON.stringify(n.value.image)})`})},null,4)):(s(),v(`div`,{key:1,class:`h-[129px] w-[129px] flex-none border-r border-base bg-cover bg-center bg-no-repeat`,style:f({backgroundImage:`url(${JSON.stringify(n.value.image)})`})},null,4)),h(`div`,de,[h(`div`,fe,_(n.value.url),1),h(`div`,pe,_(n.value.title),1),h(`div`,me,_(n.value.description),1)])],2)]))}}),{__name:`SocialTwitter`}),ge={class:`max-w-[520px] min-w-[520px] cursor-pointer overflow-hidden border border-base rounded-[2px] bg-base shadow-md`},_e={class:`break-words p-[10px] antialiased`},ve={class:`block h-auto max-h-[50px] border-separate select-none break-words text-left`,style:{"border-spacing":`0px`}},ye={class:`pb-[2px] text-[16px] font-semibold leading-[24px]`},be={class:`overflow-hidden truncate whitespace-nowrap text-xs font-normal uppercase op85`},xe=Object.assign(n({__name:`SocialLinkedin`,props:{card:{}},setup(e){return(t,n)=>(s(),v(`div`,ge,[h(`div`,{class:`h-[270px] border-b border-base bg-cover bg-center bg-no-repeat`,style:f({backgroundImage:`url(${JSON.stringify(e.card.image)})`})},null,4),h(`div`,_e,[h(`div`,ve,[h(`div`,ye,_(e.card.title),1),h(`div`,be,_(e.card.url),1)])])]))}}),{__name:`SocialLinkedin`}),Se={class:`relative max-w-[420px] min-w-[420px] rounded-[16px] rounded-bl-0 bg-base py-[6px] leading-[18px] drop-shadow-sm drop-shadow-color-[#10232f26]`},Ce={class:`pl-[10px] pr-[8px]`},we={class:`text-[#3390ec] leading-normal underline`},Te={class:`quote w-full flex`},Ee={class:`flex flex-col gap-1`},De={key:0,class:`my-[3px] overflow-hidden rounded`},Oe=[`src`],ke={class:`cursor-pointer text-sm text-[#3390ec]`},Ae={class:`cursor-pointer text-sm`},je={class:`cursor-pointer text-sm`},Me={class:`flex justify-end text-xs text-[#707579]`},Ne=Object.assign(b(n({__name:`SocialTelegram`,props:{card:{}},setup(e){let t=x(),n=I(j(),`HH:mm`);return(r,a)=>(s(),v(`div`,Se,[h(`div`,Ce,[h(`div`,we,_(e.card.url),1),h(`div`,Te,[h(`div`,Ee,[e.card.image?(s(),v(`div`,De,[h(`img`,{class:`h-full max-w-full w-full rounded object-cover`,src:e.card.image},null,8,Oe)])):l(``,!0),h(`div`,ke,[h(`strong`,null,_(i(t).hostname),1)]),h(`div`,Ae,[h(`strong`,null,_(e.card.title),1)]),h(`div`,je,_(e.card.description),1)])]),h(`div`,Me,[h(`span`,null,_(i(n)),1)])]),a[0]||=h(`svg`,{width:`11`,height:`20`,viewBox:`0 0 11 20`,xmlns:`http://www.w3.org/2000/svg`,class:`absolute bottom-0 ml-[-8.4px] translate-y-px text-white`},[h(`g`,{transform:`translate(9 -14)`,"fill-rule":`evenodd`},[h(`path`,{id:`corner-fill`,d:`M-6 16h6v17c-.193-2.84-.876-5.767-2.05-8.782-.904-2.325-2.446-4.485-4.625-6.48A1 1 0 01-6 16z`,transform:`matrix(1 0 0 -1 0 49)`,fill:`currentColor`})])],-1)]))}}),[[`__scopeId`,`data-v-4566448e`]]),{__name:`SocialTelegram`}),Pe={flex:`~ col`,"w-full":``},Fe={flex:`~ wrap`,"w-full":``,"flex-none":``},Ie=[`onClick`],Le={flex:`~ items-center justify-center`,"flex-auto":``,p4:``,"n-panel-grids":``},Re={key:0},ze={key:1},Be={key:2},Ve={key:3},$=Object.assign(n({__name:`SocialPreviewGroup`,props:{tags:{}},setup(e){let t=e,n=[`twitter`,`facebook`,`linkedin`,`telegram`],r=F(`nuxt-devtools-social-preview-tab`,n[0]),a=g(()=>O(t.tags,{title:[{tag:`title`}],image:[{tag:`meta`,name:`og:image`}],imageAlt:[{tag:`meta`,name:`og:image:alt`}],description:[{tag:`meta`,name:`og:description`},{tag:`meta`,name:`description`}],favicon:[{tag:`link`,name:`icon`}]}));return(t,d)=>{let f=le,p=he,m=xe,g=Ne;return s(),v(`div`,Pe,[h(`div`,Fe,[(s(),v(u,null,c(n,(e,t)=>h(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:o(e===i(r)?``:`border-b`),onClick:t=>r.value=e},[h(`div`,{class:o(e===i(r)?``:`op30`),capitalize:``},_(e),3)],10,Ie)),64)),d[0]||=h(`div`,{border:`b base`,"flex-auto":``},null,-1)]),h(`div`,Le,[i(r)===`facebook`?(s(),v(`div`,Re,[y(f,{card:a.value},null,8,[`card`])])):i(r)===`twitter`?(s(),v(`div`,ze,[y(p,{tags:e.tags},null,8,[`tags`])])):i(r)===`linkedin`?(s(),v(`div`,Be,[y(m,{card:a.value},null,8,[`card`])])):i(r)===`telegram`?(s(),v(`div`,Ve,[y(g,{card:a.value},null,8,[`card`])])):l(``,!0)])])}}}),{__name:`SocialPreviewGroup`}),He={},Ue={class:`markdown-body`};function We(t,n){return s(),v(`div`,Ue,[...n[0]||=[h(`template`,null,[h(`div`,{class:`markdown-body`},[h(`h1`,null,`Open Graph`),h(`p`,null,[e(`Nuxt provides several different ways to manage your meta tags using `),h(`a`,{href:`https://unhead.harlanzw.com/`,target:`_blank`,rel:`noopener`},[h(`code`,{"v-pre":``},`unhead`)]),e(`. Improve your Nuxt app’s SEO with powerful head config, composables and components.`)]),h(`p`,null,[h(`a`,{href:`https://nuxt.com/docs/getting-started/seo-meta`,target:`_blank`,rel:`noopener`},`Learn more on the documentation`)]),h(`hr`),h(`p`,null,`You can also find how open graph specs are defined in:`),h(`ul`,null,[h(`li`,null,[h(`a`,{href:`https://ogp.me/`,target:`_blank`,rel:`noopener`},`The Open Graph protocol`)]),h(`li`,null,[h(`a`,{href:`https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started`,target:`_blank`,rel:`noopener`},`Twitter Cards`)])])])],-1)]])}var Ge=b(He,[[`render`,We]]),Ke={grid:`~ lg:cols-2`,"h-full":``,"w-full":``,"of-hidden":``},qe={"flex-auto":``,"of-auto":``},Je={"flex-none":``,flex:`~ gap2 items-center`},Ye={flex:`~ col`},Xe={key:0,"x-divider":``},Ze={key:1,"x-divider":``},Qe={mr2:``,px4:``,py2:``},$e=n({__name:`open-graph`,setup(n){let f=t(0),b=S(),x=E(async()=>(f.value,(await b.value?.resolveTags()).map(e=>{let t=e.props||{};return e.tag===`htmlAttrs`&&t.lang?{tag:`html`,name:`lang`,value:t.lang}:t.charset?{tag:`meta`,name:`charset`,value:t.charset}:{tag:e.tag,name:t.property??t.name??t.rel??e.tag,value:t.content??t.href??e.textContent??JSON.stringify(t)}})),[]),w=t(!0);function O(){f.value+=1}let k=N(),j=D(),F=t(``),I=L(),z=R();async function U(){F.value!==j.value.path&&k.value.push(F.value||`/`)}let W=g(()=>F.value===j.value.path?[]:k.value.resolve(F.value||`/`).matched),G=g(()=>{let e=I.value.find(e=>e.path===j.value?.matched?.[0]?.path);return e?.file||e?.meta?.file});function K(e){return H.find(t=>t.name===e.name)?.docs}return P(j).toBeTruthy().then(e=>{F.value=e.path}),P(k).toBeTruthy().then(e=>{e.afterEach(()=>{r(()=>{F.value=j.value.path,setTimeout(O,200),setTimeout(O,800)})})}),(t,n)=>{let r=A,f=M,g=te,b=B,S=C,E=V,D=ne,k=$,N=Ge,P=ee,I=a(`tooltip`);return s(),v(u,null,[h(`div`,Ke,[h(`div`,qe,[y(g,null,{search:d(()=>[y(r,{modelValue:F.value,"onUpdate:modelValue":n[0]||=e=>F.value=e,placeholder:`Route`,icon:`carbon-direction-right-01 scale-y--100`,n:`primary`,"flex-auto":``,"font-mono":``,class:o([`px-5 py-2`,i(j)?.path===F.value?``:W.value.length?`text-green`:`text-orange`]),onKeydown:T(U,[`enter`])},null,8,[`modelValue`,`class`])]),actions:d(()=>[h(`div`,Je,[G.value?p((s(),m(f,{key:0,"text-lg":``,border:!1,icon:`carbon:launch`,title:`Open file in editor`,onClick:n[1]||=e=>i(z)(G.value)},null,512)),[[I,`Open file in editor`]]):l(``,!0),p(y(f,{"text-lg":``,border:!1,icon:`carbon:reset`,title:`Refresh Data`,onClick:O},null,512),[[I,`Refresh Data`]]),p(y(f,{"text-lg":``,border:!1,icon:w.value?`carbon:side-panel-open`:`carbon:open-panel-right`,title:`Toggle Preview`,onClick:n[2]||=e=>w.value=!w.value},null,8,[`icon`]),[[I,`Toggle Preview`]])])]),_:1}),h(`div`,Ye,[y(E,{text:`Tags`,icon:`carbon:tag-group`},{default:d(()=>[y(S,{grid:`~ cols-[max-content_1fr]`,"items-center":``,"justify-between":``,"of-hidden":``},{default:d(()=>[(s(!0),v(u,null,c(i(x),(t,n)=>(s(),v(u,{key:n},[n?(s(),v(`div`,Xe)):l(``,!0),n?(s(),v(`div`,Ze)):l(``,!0),h(`div`,Qe,[y(b,{op50:``,href:K(t),target:`_blank`,n:`primary`},{default:d(()=>[e(_(t.name),1)]),_:2},1032,[`href`])]),y(b,{href:String(t.value).match(/^https?:\/\//)?t.value:void 0,target:`_blank`,"w-full":``,p2:``,"font-mono":``,n:`primary`},{default:d(()=>[e(_(t.value),1)]),_:2},1032,[`href`])],64))),128))]),_:1})]),_:1}),y(D,{tags:i(x),"matched-route-filepath":G.value},null,8,[`tags`,`matched-route-filepath`])])]),w.value&&i(x)?.length?(s(),m(k,{key:0,tags:i(x),"flex-none":``,"border-base":``,"lt-lg":`border-t`,lg:`h-full w-140 border-l`},null,8,[`tags`])):l(``,!0)]),y(P,null,{default:d(()=>[y(N)]),_:1})],64)}}});export{$e as default};
@@ -0,0 +1 @@
1
+ import{C as e,E as t,Mt as n,W as r,_ as i,c as a,dt as o,g as s,h as c,m as l,tn as u,v as d,w as f}from"./vendor/json-editor-vue-g94ysn44.js";import{A as p,D as m,Et as h,H as g,It as _,Lt as ee,Pn as v,Tt as y,Y as b,ct as x,f as S,i as C,k as te,m as w,pt as ne,q as T,rt as E}from"#entry";import"./composables-dhks1pao.js";import{t as D}from"./state-components-bi9epr0v.js";import{r as O,t as k}from"./state-modules-cbgrygie.js";var A=`3.3.1`,j={key:0},M={key:1,flex:`~ col gap2`,ma:``,"h-full":``,"max-w-300":``,"w-full":``,p5:``,px5:``,"md:px20":``},N={flex:`~ col`,"mt-5":``,"items-center":``,"md:mt-20":``},P={op40:``},F={flex:`~ gap2 wrap`},I={key:5,"pointer-events-none":``,"min-w-40":``,"theme-card-lime":``,p4:``,flex:`~ auto gap-6`},L={grid:`~ cols-[auto_auto] gap-x-5 items-center`},R={"text-right":``},z={"text-right":``},B={"text-right":``},re={"text-right":``},V={flex:`~ col gap2`},H={flex:`~ gap-6 wrap`,"mt-5":``,"items-center":``,"justify-center":``},U={flex:`col gap-2`,mxa:``,hidden:``,"w-100":``,"text-sm":``,op50:``,"md:flex":``},W={flex:`~ gap-1`,"items-center":``},G={flex:`~ gap-1`,"items-center":``},K=t({__name:`overview`,setup(t){let K=h(),q=ne(),J=D(),Y=x(),X=k(),ie=w(),Z=b(),ae=v();function oe(){g.value=!0,ae.push(`/`)}let Q=l(()=>K.value?.nuxt.vueApp.version),$=l(()=>K.value?.metrics.loading());function se(){_()}return(t,l)=>{let h=C,g=p,_=O,v=m,b=te,x=S;return r(),s(x,{"h-screen":``,"w-full":``,flex:``},{default:o(()=>[n(q)?(r(),d(`div`,M,[l[40]||=c(`div`,{"flex-auto":``},null,-1),c(`div`,N,[f(g,{flex:`~`,"mt--10":``,"items-center":``,"justify-center":``,to:`https://devtools.nuxt.com/`,target:`_blank`},{default:o(()=>[f(h,{"h-10":``})]),_:1}),c(`button`,{mb6:``,mt3:``,"text-center":``,"text-sm":``,flex:`~ gap-1 wrap`,onClick:oe},[l[0]||=c(`span`,{op40:``},` Nuxt DevTools `,-1),c(`code`,P,`v`+u(n(A)),1),f(_,{"package-name":`@nuxt/devtools`,options:{dev:!0},"show-version":!1})])]),c(`div`,F,[f(g,{to:`https://nuxt.com`,target:`_blank`,"theme-card-green":``,p4:``,flex:`~ col auto`},{default:o(()=>[l[1]||=c(`div`,{"logos-nuxt-icon":``,"text-3xl":``},null,-1),f(_,{"package-name":`nuxt`,options:{dev:!0}})]),_:1}),Q.value?(r(),s(g,{key:0,to:`https://vuejs.org`,target:`_blank`,"theme-card-green":``,p4:``,flex:`~ col auto`},{default:o(()=>[l[2]||=c(`div`,{"logos-vue":``,"text-3xl":``},null,-1),c(`code`,null,`v`+u(Q.value),1)]),_:1})):i(``,!0),n(q)?(r(),d(a,{key:1},[n(q)&&n(q).pages&&n(K)?(r(),s(g,{key:0,"min-w-40":``,"theme-card-lime":``,p4:``,flex:`~ col auto`,to:`/modules/pages`},{default:o(()=>[l[3]||=c(`div`,{"carbon-tree-view-alt":``,"text-3xl":``},null,-1),c(`div`,null,u(n(E)(n(ie).length,`page`)),1)]),_:1})):i(``,!0),n(q)?(r(),s(g,{key:1,"min-w-40":``,"theme-card-lime":``,p4:``,flex:`~ col auto`,to:`/modules/components`},{default:o(()=>[l[4]||=c(`div`,{"i-carbon-assembly-cluster":``,"text-3xl":``},null,-1),c(`div`,null,u(n(E)(n(J).length,`component`)),1)]),_:1})):i(``,!0),n(q)&&n(Y)?(r(),s(g,{key:2,"min-w-40":``,"theme-card-yellow":``,p4:``,flex:`~ col auto`,to:`/modules/imports`},{default:o(()=>[l[5]||=c(`div`,{"carbon-function":``,"text-3xl":``},null,-1),c(`div`,null,u(n(E)(n(Y).imports.length,`import`)),1)]),_:1})):i(``,!0),n(q)?(r(),s(g,{key:3,"min-w-40":``,"theme-card-purple":``,p4:``,flex:`~ col auto`,to:`/modules/modules`},{default:o(()=>[l[6]||=c(`div`,{"carbon-3d-mpr-toggle":``,"text-3xl":``},null,-1),c(`div`,null,u(n(E)(n(X).length,`module`)),1)]),_:1})):i(``,!0),n(q)?(r(),s(g,{key:4,"min-w-40":``,"theme-card-teal":``,p4:``,flex:`~ col auto`,to:`/modules/plugins`},{default:o(()=>[l[7]||=c(`div`,{"carbon-plug":``,"text-3xl":``},null,-1),c(`div`,null,u(n(E)(n(q).plugins.length,`plugin`)),1)]),_:1})):i(``,!0),$.value?(r(),d(`div`,I,[l[12]||=c(`div`,{"i-carbon-time-plot":``,"flex-none":``,"text-3xl":``},null,-1),c(`div`,L,[$.value.ssrStart?(r(),d(a,{key:0},[l[8]||=c(`div`,{"text-sm":``},` SSR to full load `,-1),c(`div`,R,u(n(T)($.value.appLoad-$.value.ssrStart)),1)],64)):i(``,!0),l[10]||=c(`div`,{"text-sm":``},` Page load `,-1),c(`div`,z,u(n(T)($.value.appLoad-$.value.appInit)),1),l[11]||=c(`div`,{"text-sm":``},` Navigation `,-1),c(`div`,B,u(n(T)($.value.pageEnd-$.value.pageStart)),1),$.value.hmrStart?(r(),d(a,{key:1},[l[9]||=c(`div`,{"text-sm":``},` HMR `,-1),c(`div`,re,u(n(T)($.value.hmrEnd-$.value.hmrStart)),1)],64)):i(``,!0)])])):i(``,!0)],64)):i(``,!0)]),c(`div`,V,[n(y)?(r(),s(v,{key:0,n:`yellow5`,icon:`carbon-unlink`,"justify-center":``},{default:o(()=>[...l[13]||=[e(` Not connected to the client app, showing server-side data only. Use the embedded mode for full features. `,-1)]]),_:1})):i(``,!0),c(`button`,{title:`Authorize`,onClick:se},[(`isDevAuthed`in t?t.isDevAuthed:n(ee))?i(``,!0):(r(),s(v,{key:0,n:`orange5`,icon:`i-carbon-locked`,"justify-center":``},{default:o(()=>[...l[14]||=[e(` Access from an untrusted browser, some features are limited. Click to authorize now. `,-1)]]),_:1}))])]),c(`div`,H,[l[16]||=c(`a`,{href:`https://github.com/nuxt/devtools`,target:`_blank`,flex:`~ gap1`,"items-center":``,op50:``,hover:`op100 text-blue`,transition:``},[c(`div`,{"i-carbon-star":``}),e(` Star on GitHub `)],-1),l[17]||=c(`a`,{href:`https://github.com/nuxt/devtools/discussions/29`,target:`_blank`,flex:`~ gap1`,"items-center":``,op50:``,hover:`op100 text-yellow`,transition:``},[c(`div`,{"i-carbon-data-enrichment":``}),e(` Ideas & Suggestions `)],-1),l[18]||=c(`a`,{href:`https://github.com/nuxt/devtools/discussions/31`,target:`_blank`,flex:`~ gap1`,"items-center":``,op50:``,hover:`op100 text-lime`,transition:``},[c(`div`,{"i-carbon-plan":``}),e(` Project Roadmap `)],-1),l[19]||=c(`a`,{href:`https://github.com/nuxt/devtools/issues`,target:`_blank`,flex:`~ gap1`,"items-center":``,op50:``,hover:`op100 text-rose`,transition:``},[c(`div`,{"i-carbon-debug":``}),e(` Bug Reports `)],-1),f(g,{to:`/settings`,flex:`~ gap1`,"inline-block":``,"items-center":``,op50:``,"hover:op80":``},{default:o(()=>[...l[15]||=[c(`div`,{"i-carbon-settings-adjust":``},null,-1),e(` Settings `,-1)]]),_:1})]),l[41]||=c(`div`,{"flex-auto":``},null,-1),c(`div`,U,[c(`div`,W,[n(Z)?(r(),d(a,{key:0},[f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[20]||=[e(` ⌘ Cmd `,-1)]]),_:1}),l[22]||=c(`span`,null,`+`,-1),f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[21]||=[e(` K `,-1)]]),_:1})],64)):(r(),d(a,{key:1},[f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[23]||=[e(` Ctrl `,-1)]]),_:1}),l[25]||=c(`span`,null,`+`,-1),f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[24]||=[e(` K `,-1)]]),_:1})],64)),l[26]||=c(`div`,{"flex-auto":``},null,-1),l[27]||=e(` Open Command Palette `,-1)]),c(`div`,G,[n(Z)?(r(),d(a,{key:0},[f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[28]||=[e(` ⇧ Shift `,-1)]]),_:1}),l[31]||=c(`span`,null,`+`,-1),f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[29]||=[e(` ⌥ Option `,-1)]]),_:1}),l[32]||=c(`span`,null,`+`,-1),f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[30]||=[e(` D `,-1)]]),_:1})],64)):(r(),d(a,{key:1},[f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[33]||=[e(` Shift `,-1)]]),_:1}),l[36]||=c(`span`,null,`+`,-1),f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[34]||=[e(` Alt `,-1)]]),_:1}),l[37]||=c(`span`,null,`+`,-1),f(b,{n:`xs`,class:`px2`},{default:o(()=>[...l[35]||=[e(` D `,-1)]]),_:1})],64)),l[38]||=c(`div`,{"flex-auto":``},null,-1),l[39]||=c(`div`,null,`Toggle DevTools`,-1)])])])):(r(),d(`div`,j,` Loading... `))]),_:1})}}});export{K as default};
@@ -0,0 +1 @@
1
+ import{C as e,Ct as t,E as n,Mt as r,Qt as i,V as a,W as o,Y as s,Z as c,_ as l,c as u,dt as d,g as f,h as p,m,tn as h,v as g,w as _}from"./vendor/json-editor-vue-g94ysn44.js";import{t as v}from"./_plugin-vue_export-helper-e0bby96w.js";import{Bt as y,Gn as b,It as x,Kn as S,Ot as C,_ as w,at as T,c as E,ft as D,k as O,kt as k,lt as A,pt as j,ut as M,v as N}from"#entry";import"./composables-dhks1pao.js";import{t as P}from"./filepath-item-hz9dqk37.js";import{t as F}from"./help-fab-oij4kl08.js";import{t as I}from"./nsection-block-na7dtpi3.js";import{t as L}from"./nbadge-f7rzhjkq.js";import{t as R}from"./launch-page-bpr4mhu5.js";var z={block:``,"cursor-pointer":``},B={p2:``},V=[`onSubmit`],H={flex:`~`,"items-center":``,p2:``,"text-sm":``,"font-mono":``},U={key:1},W=Object.assign(n({__name:`RoutePathItem`,props:{route:{}},emits:[`navigate`],setup(n,{emit:r}){let a=n,v=r,y=/(:\w+[?*]?(?:\(\))?)/,b=/\(\)$/,x=/\/+/g,C=t([]),w=m(()=>{let e=T(a.route.path);return C.value=Array.from({length:e.length}).fill(``),e});function T(e){return e.split(y).filter(Boolean).map(e=>e[0]===`:`?e.replace(b,`?`):e)}let D=m(()=>w.value.map((e,t)=>e[0]===`:`?C.value[t]:e).join(``).replace(x,`/`)),k=m(()=>a.route.path.includes(`:`));function A(){v(`navigate`,D.value)}return(t,r)=>{let a=E,m=O,v=c(`VDropdown`);return k.value?(o(),f(v,{key:1},{popper:d(({hide:t})=>[p(`div`,B,[p(`form`,{flex:`~ col`,onSubmit:S(()=>{A(),t()},[`prevent`])},[k.value?(o(),g(u,{key:0},[r[0]||=p(`div`,{px2:``,"text-sm":``,op50:``},` Fill params and navigate: `,-1),p(`div`,H,[(o(!0),g(u,null,s(w.value,(e,t)=>(o(),g(u,{key:t},[e[0]===`:`?(o(),f(a,{key:0,modelValue:C.value[t],"onUpdate:modelValue":e=>C.value[t]=e,"w-20":``,"n-sm":``,placeholder:e.slice(1)},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`])):(o(),g(`span`,U,h(e),1))],64))),128))])],64)):l(``,!0),_(m,{type:`submit`,block:``,n:`primary`},{default:d(()=>[...r[1]||=[e(` Navigate `,-1)]]),_:1})],40,V)])]),default:d(()=>[p(`code`,z,[(o(!0),g(u,null,s(w.value,(e,t)=>(o(),g(`span`,{key:t,class:i(e[0]===`:`?`text-gray border border-dashed rounded border-gray:50 px1`:``)},h(e[0]===`:`?e.slice(1):e),3))),128))])]),_:1})):(o(),g(`button`,{key:0,onClick:A},[p(`code`,null,h(n.route.path),1)]))}}}),{__name:`RoutePathItem`}),G={"max-w-full":``,"of-auto":``},K={"w-full":``},q={"w-20":``,"pr-1":``},J={flex:``,"items-center":``,"justify-end":``},Y={"text-sm":``},X={flex:`inline gap3`,"items-center":``},Z={flex:`~ gap1`,pr2:``,op0:``,"group-hover:op100":``},Q=[`onClick`],$=[`onClick`],ee={"w-0":``,"ws-nowrap":``,"pr-1":``,"text-left":``,"text-sm":``,"font-mono":``,op50:``},te={"w-0":``,"ws-nowrap":``,"pr-1":``,"text-center":``,"text-sm":``,"font-mono":``,op50:``},ne={"w-0":``,"ws-nowrap":``,"text-center":``,"text-sm":``,"font-mono":``},re={key:0},ie=[`onClick`],ae=Object.assign(n({__name:`RoutesTable`,props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:[`navigate`],setup(e){let t=e,n=N(),a=D(),c=w(),d=m(()=>t.pages.toSorted((e,t)=>e.path.localeCompare(t.path)));function v(e){let r=t.layouts.find(t=>t.name===e);r&&n(r.file)}function y(e){if(typeof e==`string`)return a.value?.middleware.find(t=>t.name===e)?.path}return(t,a)=>{let m=L,b=W,x=P;return o(),g(`div`,G,[p(`table`,K,[a[4]||=p(`thead`,{border:`b base`},[p(`tr`,null,[p(`th`,{"text-left":``}),p(`th`,{"text-left":``},` Route Path `),p(`th`,{"text-left":``},` Name `),p(`th`,{"text-left":``},` Middleware `),p(`th`,null,` Layout `)])],-1),p(`tbody`,null,[(o(!0),g(u,null,s(d.value,s=>(o(),g(`tr`,{key:s.name,class:`group`,"h-7":``,border:`b dashed transparent hover:base`},[p(`td`,q,[p(`div`,J,[e.matched.find(e=>e.name===s.name)?(o(),f(m,{key:0,n:`green`,title:`active`,textContent:`active`})):e.matchedPending.find(e=>e.name===s.name)?(o(),f(m,{key:1,n:`teal`,title:`next`,textContent:`next`})):l(``,!0)])]),p(`td`,Y,[p(`div`,X,[_(b,{route:s,class:i(e.matched.find(e=>e.name===s.name)?`text-primary`:e.matchedPending.find(e=>e.name===s.name)?`text-teal`:``),"ws-nowrap":``,onNavigate:a[0]||=e=>t.$emit(`navigate`,e)},null,8,[`route`,`class`]),p(`div`,Z,[s.file||s.meta?.file?(o(),g(`button`,{key:0,"text-sm":``,op40:``,hover:`op100 text-primary`,title:`Open in editor`,onClick:e=>r(n)(s.file||s.meta?.file)},[...a[2]||=[p(`div`,{"i-carbon-script-reference":``},null,-1)]],8,Q)):l(``,!0),s.file||s.meta?.file?(o(),g(`button`,{key:1,"text-sm":``,op40:``,hover:`op100 text-primary`,title:`Copy path`,onClick:e=>r(c)(s.file||s.meta?.file)},[...a[3]||=[p(`div`,{"i-carbon-copy":``},null,-1)]],8,$)):l(``,!0)])])]),p(`td`,ee,h(s.name),1),p(`td`,te,[_(x,{filepath:y(s.meta.middleware),override:`${s.meta.middleware||`-`}`},null,8,[`filepath`,`override`])]),p(`td`,ne,[s.meta.layout===!1?(o(),g(`span`,re,`-`)):s.meta.layout?(o(),g(`button`,{key:1,onClick:e=>v(s.meta.layout)},h(s.meta.layout),9,ie)):(o(),g(`button`,{key:2,"text-sm":``,op15:``,onClick:a[1]||=e=>v(`default`)},` (default) `))])]))),128))])])])}}}),{__name:`RoutesTable`}),oe={},se={class:`markdown-body`};function ce(t,n){return o(),g(`div`,se,[...n[0]||=[p(`template`,null,[p(`div`,{class:`markdown-body`},[p(`h1`,null,`Pages`),p(`p`,null,[e(`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 `),p(`code`,{"v-pre":``},`~/pages/`),e(` directory.`)]),p(`p`,null,[p(`a`,{href:`https://nuxt.com/docs/getting-started/routing`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)]),p(`hr`),p(`h2`,null,`Middlewares`),p(`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.`),p(`p`,null,[p(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/middleware`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var le=v(oe,[[`render`,ce]]),ue={key:0,"h-full":``,"of-auto":``},de={border:`b base`,flex:`~ col gap1`,"n-navbar-glass":``,px4:``,py3:``},fe={"font-mono":``},pe={key:1,op50:``},me={key:0,"text-orange":``,op75:``},he={key:1,op50:``},ge={"min-h-14":``},_e={key:1,class:`py-4 text-center`},ve={"w-full":``},ye={mr1:``},be=n({__name:`pages`,setup(n){let c=k(),v=C(),S=j(),w=D(),O=A(),N=M(),z=m(()=>w.value?.middleware||[]),B=t(``),V=t(0),H=m(()=>(z.value,B.value,O.value,V.value,c.value?.currentRoute?.value?.path));a(()=>{v.value&&(B.value=c.value?.currentRoute?.value?.path),c.value?.beforeEach(e=>{B.value=e.fullPath}),c.value?.afterEach(e=>{B.value=e.fullPath})});async function U(){B.value!==c.value?.currentRoute?.value?.path&&c.value.push(B.value||`/`)}let W=m(()=>c.value.resolve(B.value||`/`).matched);function G(e){c.value.push(e),B.value=e}let K=T(),q=m(()=>`./${K===4?`app/`:``}pages/index.vue`);return(t,n)=>{let a=E,m=ae,C=I,w=L,T=P,D=R,k=le,A=F;return o(),g(u,null,[r(S)?.pages&&r(c)?(o(),g(`div`,ue,[p(`div`,de,[p(`div`,null,[H.value===B.value?(o(),g(`span`,pe,`Current route`)):(o(),g(u,{key:0},[n[1]||=p(`span`,{op50:``},`Navigate from `,-1),p(`span`,fe,h(H.value),1),n[2]||=p(`span`,{op50:``},` to `,-1)],64))]),_(a,{modelValue:B.value,"onUpdate:modelValue":n[0]||=e=>B.value=e,"font-mono":``,icon:`carbon-direction-right-01 scale-y--100`,class:i(H.value===B.value?``:W.value.length?`text-green`:`text-orange`),onKeydown:b(U,[`enter`])},null,8,[`modelValue`,`class`]),p(`div`,null,[H.value===B.value?(o(),g(`span`,he,`Edit path above to navigate`)):(o(),g(u,{key:0},[n[3]||=p(`span`,null,[e(`Press `),p(`b`,{"font-bold":``},`Enter`),e(` to navigate`)],-1),W.value.length?l(``,!0):(o(),g(`span`,me,` (no match)`))],64))])]),_(C,{icon:`carbon-tree-view`,text:`Matched Routes`,padding:!1},{default:d(()=>[p(`div`,ge,[W.value.length?(o(),f(m,{key:0,pages:W.value,layouts:r(O)||[],matched:r(v).matched,"matched-pending":W.value,onNavigate:G},null,8,[`pages`,`layouts`,`matched`,`matched-pending`])):(o(),g(`div`,_e,[...n[4]||=[p(`span`,{op50:``},`No routes matched`,-1)]]))])]),_:1}),_(C,{icon:`carbon-tree-view-alt`,text:`All Routes`,description:`${r(N).length} routes registered in your application`,padding:`pr5`},{default:d(()=>[_(m,{pages:r(N),layouts:r(O)||[],matched:r(v).matched,"matched-pending":W.value,onNavigate:G},null,8,[`pages`,`layouts`,`matched`,`matched-pending`])]),_:1},8,[`description`]),z.value.length?(o(),f(C,{key:0,icon:`carbon:ibm-watson-studio`,text:`Middleware`,description:`${z.value.length} middleware registered in your application`,padding:`px13`},{default:d(()=>[p(`table`,ve,[n[5]||=p(`thead`,{border:`b base`,"h-7":``},[p(`tr`,null,[p(`th`,{"text-left":``},` Name `),p(`th`,{"text-left":``},` Path `)])],-1),(o(!0),g(u,null,s(z.value,e=>(o(),g(`tr`,{key:e.path,"h-7":``},[p(`td`,null,[p(`span`,ye,h(e.name),1),e.global?(o(),f(w,{key:0,n:`green`,title:`Registered at runtime as a global component`,textContent:`global`})):l(``,!0)]),p(`td`,null,[_(T,{filepath:e.path},null,8,[`filepath`])])]))),128))])]),_:1},8,[`description`])):l(``,!0)])):(o(),f(D,{key:1,icon:`carbon-tree-view-alt`,name:`wizard-pages`,title:`Nuxt Routing`,description:`Create ${q.value} 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 t?t.rpc:r(y)).runWizard(await(`ensureDevAuthToken`in t?t.ensureDevAuthToken:r(x))(),`enablePages`)}}]},null,8,[`description`,`actions`])),_(A,null,{default:d(()=>[_(k)]),_:1})],64)}}});export{be as default};
@@ -0,0 +1 @@
1
+ import{C as e,Ct as t,E as n,Mt as r,W as i,_ as a,dt as o,g as s,h as c,w as l}from"./vendor/json-editor-vue-g94ysn44.js";import{Et as u,H as d,W as f,b as p,f as m,i as h,k as g}from"#entry";import"./composables-dhks1pao.js";import{t as _}from"./nlink-n14t4xmt.js";import{t as v}from"./ncheckbox-mc98noss.js";var y={flex:`~ auto col gap3`,"items-center":``,"justify-center":``,"text-center":``},b={"max-w-190":``,"text-lg":``},x={mb6:``,op50:``},S={p4:``},C={flex:`~ col gap-2`,mxa:``},w=n({__name:`index`,setup(n){let w=u(),T=t(!0),{showPanel:E}=f(`ui`);function D(){p.value=T.value,d.value=!1}function O(){E.value=!1,w.value.devtools.close()}return(t,n)=>{let u=h,d=_,f=g,p=v,w=m;return i(),s(w,{flex:`~ col`,relative:``,"h-screen":``,"w-full":``},{default:o(()=>[c(`div`,y,[n[7]||=c(`p`,{my2:``,"text-3em":``,"text-primary":``,"font-bold":``,"font-stylish":``},` 👋 Hi there, welcome to Nuxt DevTools! `,-1),c(`p`,b,[l(u,{"mr-0.5":``,"inline-block":``,"h-5":``,"translate-y--1.1":``,"align-mid":``}),n[1]||=e(` is a set of visual tools that help you to know your Nuxt app better, and enhance your development experience with Nuxt. Enjoy!`,-1),n[2]||=c(`br`,null,null,-1)]),c(`p`,x,[n[4]||=e(` Learn more at `,-1),l(d,{href:`https://devtools.nuxt.com/`,target:`_blank`,rel:`noopener noreferrer`,n:`primary`},{default:o(()=>[...n[3]||=[e(` devtools.nuxt.com `,-1)]]),_:1})]),l(f,{to:`/modules/overview`,n:`lg primary`,onClick:D},{default:o(()=>[...n[5]||=[c(`span`,null,`Get Started`,-1)]]),_:1}),r(E)===!1?a(``,!0):(i(),s(f,{key:0,n:`borderless orange`,onClick:O},{default:o(()=>[...n[6]||=[c(`span`,null,`Always hide the floating panel`,-1)]]),_:1}))]),c(`div`,S,[c(`div`,C,[l(p,{modelValue:T.value,"onUpdate:modelValue":n[0]||=e=>T.value=e,n:`green6`},{default:o(()=>[n[8]||=c(`span`,{op50:``},`Send anonymous statistics, help us improving DevTools`,-1),l(d,{href:`https://github.com/nuxt/devtools#anonymous-usage-analytics`,target:`_blank`,ml1:``,op35:``,textContent:`Learn more`})]),_:1},8,[`modelValue`])])])]),_:1})}}});export{w as default};
@@ -0,0 +1 @@
1
+ import{C as e,E as t,Mt as n,P as r,Q as i,W as a,X as o,Y as s,_ as c,c as l,dt as u,ft as d,g as f,h as p,m,v as h,w as g}from"./vendor/json-editor-vue-g94ysn44.js";import{t as _}from"./_plugin-vue_export-helper-e0bby96w.js";import{Et as v,k as y}from"#entry";import"./composables-dhks1pao.js";import{t as b}from"./help-fab-oij4kl08.js";import{t as x}from"./nsection-block-na7dtpi3.js";import{t as S}from"./state-editor-uoql44oq.js";var C={key:0,flex:`~ col gap-1`},w={key:1,mt2:``,px4:``,italic:``,op35:``},T=Object.assign(t({__name:`StateGroup`,props:{state:{},revision:{},prefix:{default:``}},setup(e){return(t,n)=>{let i=S;return a(),h(`div`,null,[e.state&&Object.keys(e.state).length>0?(a(),h(`div`,C,[(a(!0),h(l,null,s(e.state,(n,s)=>(a(),f(i,{key:s,revision:e.revision,state:n,name:s.startsWith(e.prefix)?s.slice(e.prefix.length):s},{actions:u(e=>[o(t.$slots,`actions`,r({ref_for:!0},e))]),_:3},8,[`revision`,`state`,`name`]))),128))])):(a(),h(`div`,w,` No data `))])}}}),{__name:`StateGroup`}),E={},D={class:`markdown-body`};function O(e,t){return a(),h(`div`,D,[...t[0]||=[p(`template`,null,[p(`div`,{class:`markdown-body`},[p(`h1`,null,`State & Async Data`),p(`p`,null,`// TODO`)])],-1)]])}var k=_(E,[[`render`,O]]),A={key:0},j=t({__name:`payload`,setup(t){let r=v(),o=m(()=>r.value?.nuxt.payload),s=m(()=>r.value?.revision.value);async function p(e){await r.value?.nuxt.hooks.callHookParallel(`app:data:refresh`,e)}return(t,m)=>{let _=T,v=x,C=y,w=S,E=k,D=b,O=i(`tooltip`);return a(),h(l,null,[n(r)?(a(),h(`div`,A,[g(v,{icon:`carbon-data-set`,text:`State`,description:"Keyed state from `useState`",padding:!1},{default:u(()=>[g(_,{state:o.value.state,revision:s.value,prefix:`$s`},null,8,[`state`,`revision`])]),_:1}),g(v,{icon:`carbon-data-blob`,text:`Data`,description:"Keyed state from `useAsyncData`",padding:!1},{actions:u(()=>[g(C,{n:`xs primary`,"self-start":``,icon:`i-carbon-recycle`,onClick:m[0]||=e=>p()},{default:u(()=>[...m[1]||=[e(` Re-fetch all data `,-1)]]),_:1})]),default:u(()=>[g(_,{state:o.value.data,revision:s.value},{actions:u(({isOpen:e,name:t})=>[e&&t?d((a(),f(C,{key:0,title:`Re-fetch '${t}'`,icon:`carbon-recycle`,border:!1,onClick:e=>p([t])},null,8,[`title`,`onClick`])),[[O,`Re-fetch '${t}'`,void 0,{bottom:!0}]]):c(``,!0)]),_:1},8,[`state`,`revision`])]),_:1}),o.value.functions&&Object.keys(o.value.functions).length?(a(),f(v,{key:0,icon:`carbon-function`,text:`Functions`,description:`State for functions`},{default:u(()=>[g(w,{"ml--6":``,state:o.value.functions,revision:s.value},null,8,[`state`,`revision`])]),_:1})):c(``,!0)])):c(``,!0),g(D,null,{default:u(()=>[g(E)]),_:1})],64)}}});export{j as default};
@@ -0,0 +1 @@
1
+ import{C as e,E as t,Mt as n,W as r,dt as i,g as a,v as o}from"./vendor/json-editor-vue-g94ysn44.js";import{M as s}from"#entry";import"./composables-dhks1pao.js";import{r as c,t as l}from"./vue-devtools-e7301kz1.js";var u={class:`h-full w-full`},d=t({__name:`pinia`,setup(t){let{connected:d}=l();return(t,l)=>{let f=s;return r(),o(`div`,u,[n(d)?(r(),a(n(c),{key:0})):(r(),a(f,{key:1},{default:i(()=>[...l[0]||=[e(` Connecting.... `,-1)]]),_:1}))])}}});export{d as default};
@@ -0,0 +1 @@
1
+ import{C as e,E as t,Qt as n,W as r,X as i,Y as a,Z as o,_ as s,c,dt as l,g as u,h as d,m as f,tn as p,v as m,w as h}from"./vendor/json-editor-vue-g94ysn44.js";import{t as g}from"./_plugin-vue_export-helper-e0bby96w.js";import{Et as _,ft as v,j as y,nt as b,pt as x}from"#entry";import"./composables-dhks1pao.js";import{t as S}from"./filepath-item-hz9dqk37.js";import{t as C}from"./help-fab-oij4kl08.js";import{t as w}from"./nsection-block-na7dtpi3.js";import{t as T}from"./nbadge-f7rzhjkq.js";import{t as E}from"./duration-display-g4enq0h7.js";var D={flex:`~ gap2`,"items-center":``},O={w8:``,"text-right":``,"text-sm":``,op25:``},k={key:0,"flex-auto":``,"text-right":``},A=Object.assign(t({__name:`PluginItem`,props:{plugin:{},index:{}},setup(e){let t=e,n=x(),i=f(()=>b(t.plugin.src,n.value?.rootDir||``).path);return(n,a)=>{let o=T,c=S,f=E;return r(),m(`div`,D,[d(`div`,O,p(e.index),1),h(c,{filepath:t.plugin.src,subpath:!0},{default:l(()=>[d(`div`,null,[i.value.startsWith(`#`)?(r(),u(o,{key:0,n:`rose`,textContent:`virtual`})):i.value.startsWith(`.`)?s(``,!0):(r(),u(o,{key:1,n:`gray`,textContent:`module`})),e.plugin.mode===`server`?(r(),u(o,{key:2,n:`teal`,textContent:`server`})):s(``,!0),e.plugin.mode===`client`?(r(),u(o,{key:3,n:`orange`,textContent:`client`})):s(``,!0)])]),_:1},8,[`filepath`]),e.plugin.metric?.duration==null?s(``,!0):(r(),m(`div`,k,[h(f,{duration:e.plugin.metric?.duration,factor:10},null,8,[`duration`])]))])}}}),{__name:`PluginItem`}),j={class:`n-tip n-tip-base`,flex:`~ col items-start`,"mx--4":``,px4:``,py4:``},M={flex:`~ items-center gap-1`,"font-bold":``},N=Object.assign(t({__name:`HelpTip`,props:{title:{},icon:{}},setup(e){return(t,n)=>{let a=y,c=o(`ContentSlot`);return r(),m(`div`,j,[d(`div`,M,[e.icon?(r(),u(a,{key:0,icon:e.icon,class:`n-tip-icon`},null,8,[`icon`])):s(``,!0),d(`div`,null,p(e.title),1)]),d(`div`,null,[i(t.$slots,`default`,{},()=>[h(c,{use:t.$slots.default,unwrap:`p`},null,8,[`use`])])])])}}}),{__name:`HelpTip`}),P={};function F(e,t){let n=N;return r(),u(n,{title:`Performance Tip`,icon:`carbon-meter`,n:`lime6 dark:lime5`},{default:l(()=>[i(e.$slots,`default`)]),_:3})}var I=Object.assign(g(P,[[`render`,F]]),{__name:`HelpTipPerformance`}),L={},R={class:`markdown-body`},z={class:`markdown-body`};function B(t,n){let i=I;return r(),m(`div`,R,[d(`template`,null,[d(`div`,z,[n[1]||=d(`h1`,null,`Plugins`,-1),n[2]||=d(`p`,null,[e(`Nuxt plugins allow you to extend the functionality of the Nuxt runtime and the Vue instance. You can add plugins to the `),d(`code`,{"v-pre":``},`plugins/`),e(` directory and they will be automatically imported and registered.`)],-1),h(i,null,{default:l(()=>[...n[0]||=[e(` Plugins always run before your application's runtime. The loading time of each plugin will directly impact your application's initial loading time. `,-1)]]),_:1}),n[3]||=d(`p`,null,[d(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/plugins`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)],-1)])])])}var V=g(L,[[`render`,B]]),H={pt4:``},U={class:`text-sm`,flex:`~ gap-1 items-center justify-start`,"mt-3":``},W=t({__name:`plugins`,setup(e){let t=v(),i=_(),o=f(()=>{let e=t.value?.plugins||[],n=i.value?.metrics.clientPlugins()||[];return e.map(e=>{let t=typeof e==`string`?{src:e}:e;return{...t,metric:n.find(e=>e.src===t.src||e.src.startsWith(t.src))}})}),s=f(()=>{let e=i.value?.metrics.clientPlugins()||[],t=Math.min(...e.map(e=>e.start));return Math.max(...e.map(e=>e.end))-t});return(e,t)=>{let i=A,f=E,p=w,g=V,_=C;return r(),m(c,null,[h(p,{icon:`carbon-plug`,text:`Plugins`,description:`Total plugins: ${o.value.length}`},{default:l(()=>[d(`div`,H,[(r(!0),m(c,null,a(o.value,(e,t)=>(r(),u(i,{key:e.src,plugin:e,index:t+1,"ml--4":``,"border-base":``,py2:``,class:n(t?`border-t`:``)},null,8,[`plugin`,`index`,`class`]))),128)),d(`div`,U,[t[0]||=d(`div`,{"i-carbon-timer":``,"text-lg":``,op75:``},null,-1),t[1]||=d(`span`,{op50:``},`Total execution time:`,-1),h(f,{duration:s.value,factor:10},null,8,[`duration`])])])]),_:1},8,[`description`]),h(_,null,{default:l(()=>[h(g)]),_:1})],64)}}});export{W as default};
@@ -0,0 +1 @@
1
+ import{C as e,E as t,Mt as n,W as r,dt as i,g as a,v as o}from"./vendor/json-editor-vue-g94ysn44.js";import{Et as s,M as c,v as l}from"#entry";import"./composables-dhks1pao.js";import{n as u,t as d}from"./vue-devtools-e7301kz1.js";var f={class:`h-full w-full`},p=t({__name:`render-tree`,setup(t){let{connected:p}=d(),m=s(),h=l();function g(e){e?m.value.devtools.open():m.value.devtools.close()}return(t,s)=>{let l=c;return r(),o(`div`,f,[n(p)?(r(),a(n(u),{key:0,onOnInspectComponentStart:s[0]||=e=>g(!1),onOnInspectComponentEnd:s[1]||=e=>g(!0),onOpenInEditor:n(h)},null,8,[`onOpenInEditor`])):(r(),a(l,{key:1},{default:i(()=>[...s[2]||=[e(` Connecting.... `,-1)]]),_:1}))])}}});export{p as default};
@@ -0,0 +1 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e),f=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});export{d as a,f as i,o as n,u as o,c as r,s as t};
@@ -0,0 +1 @@
1
+ import{C as e,E as t,Mt as n,W as r,_ as i,c as a,dt as o,h as s,m as c,v as l,w as u}from"./vendor/json-editor-vue-g94ysn44.js";import{t as d}from"./_plugin-vue_export-helper-e0bby96w.js";import{Et as f,vt as p}from"#entry";import"./composables-dhks1pao.js";import{t as m}from"./help-fab-oij4kl08.js";import{t as h}from"./nsection-block-na7dtpi3.js";import{t as g}from"./state-editor-uoql44oq.js";var _={},v={class:`markdown-body`};function y(t,n){return r(),l(`div`,v,[...n[0]||=[s(`template`,null,[s(`div`,{class:`markdown-body`},[s(`h1`,null,`Runtime Configs`),s(`p`,null,`Nuxt provides a runtime config API to expose configuration within your application and server routes, with the ability to update it at runtime by setting environment variables.`),s(`p`,null,[e(`In Nuxt DevTools, the editor allows you to edit the runtime config temporarily to see how the changes affect your application. To update them, you might want to update your `),s(`code`,{"v-pre":``},`nuxt.config.js`),e(` file, or check more details in the documentation.`)]),s(`p`,null,[s(`a`,{href:`https://nuxt.com/docs/guide/going-further/runtime-config`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var b=d(_,[[`render`,y]]),x={key:0},S=t({__name:`runtime-configs`,setup(e){let t=f(),s=p(),d=c(()=>t.value?.nuxt.payload),_=c(()=>t.value?.revision.value),v=c(()=>{let e={...s.value};return delete e.public,delete e.app,e});return(e,s)=>{let c=g,f=h,p=b,y=m;return r(),l(a,null,[n(t)?(r(),l(`div`,x,[u(f,{icon:`carbon-settings-services`,text:`App Config`,padding:!1},{default:o(()=>[u(c,{state:n(t).app.appConfig,revision:_.value},null,8,[`state`,`revision`])]),_:1}),u(f,{icon:`carbon-settings`,text:`Public Runtime Config`,padding:!1},{default:o(()=>[u(c,{state:d.value.config?.public,revision:_.value},null,8,[`state`,`revision`])]),_:1}),u(f,{icon:`i-carbon-code-signing-service`,text:`Private Runtime Config`,open:!1,padding:!1,description:`These values are not exposed to the client. Readonly in the DevTools.`},{default:o(()=>[u(c,{state:v.value,revision:_.value,readonly:``},null,8,[`state`,`revision`])]),_:1})])):i(``,!0),u(y,null,{default:o(()=>[u(p)]),_:1})],64)}}});export{S as default};
@@ -0,0 +1 @@
1
+ import{E as e,H as t,Mt as n,V as r,W as i,ot as a,v as o}from"./vendor/json-editor-vue-g94ysn44.js";import{Bt as s,It as c,Ln as l,tt as u}from"#entry";import"./composables-dhks1pao.js";var d=class{listeners;constructor(){this.listeners=Object.create(null)}on(e,t){return this.listeners[e]={callback:t,next:this.listeners[e]||null},this}once(e,t){return this.on(e,function n(...r){t.apply(this,r),this.off(e,n)})}off(e,t){let n=this.listeners[e]||null,r=null;for(;n!==null;){if(n.callback===t){n.callback=null,r?r.next=n.next:this.listeners[e]=n.next;break}r=n,n=n.next}return this}emit(e,...t){let n=this.listeners[e]||null,r=!1;for(;n!==null;)typeof n.callback==`function`&&n.callback.apply(this,t),r=!0,n=n.next;return r}},f=class{subscriber;value;constructor(e,t){this.subscriber=null,this.value=e,this.shouldUpdate=typeof t==`function`?t:this.shouldUpdate}get readonly(){let e=this;return{subscribe:this.subscribe.bind(this),subscribeSync:this.subscribeSync.bind(this),unsubscribe:this.unsubscribe.bind(this),get value(){return e.value}}}subscribe(e){return this.subscriber={callback:e,subscriber:this.subscriber},()=>this.unsubscribe(e)}subscribeSync(e){let t=this.subscribe(e);return e(this.value,t),t}unsubscribe(e){let t=this,n=this.subscriber;for(;n!==null;){if(n.callback===e){n.callback=null,t.subscriber=n.subscriber;break}t=n,n=n.subscriber}}shouldUpdate(e,t){return e!==t}set(e){return this.#e(e)!==!1}asyncSet(e){let t=this.#e(e);return t===!1?Promise.resolve(!1):Promise.all(t).then(()=>!0)}#e(e){if(!this.shouldUpdate(e,this.value))return!1;let t=[],n=this.subscriber;for(this.value=e;n!==null;){let{callback:r}=n;r!==null&&t.push(r(e,()=>this.unsubscribe(r))),n=n.subscriber}return t}};function p(){return[performance.timeOrigin.toString(16),(1e4*performance.now()).toString(16),Math.random().toString(16).slice(2)].join(`-`)}new TextDecoder;var m=typeof Object.hasOwn==`function`?Object.hasOwn:(e,t)=>Object.hasOwnProperty.call(e,t),h={8:`\\b`,9:`\\t`,10:`\\n`,12:`\\f`,13:`\\r`,34:`\\"`,92:`\\\\`};Uint8Array.from({length:2048},(e,t)=>m(h,t)?2:t<32?6:t<128?1:2),new Uint8Array([0,0,74,83,79,78,88,76]),new Uint8Array(256).map((e,t)=>{for(let n=0;n<8;n++)e+=t>>n&1;return e}),new TextDecoder(`utf8`,{ignoreBOM:!0});function g(e){try{return new URL(e,location.origin).origin===location.origin}catch{return!1}}function _(e){return e.ok}function v(e){return e.headers.get(`x-file-encoded-size`)||e.headers.get(`content-length`)}function y(e){return e.headers.get(`x-file-size`)||(g(e.url)&&!e.headers.get(`content-encoding`)?e.headers.get(`content-length`):void 0)}function b(e){return e.headers.get(`x-file-created-at`)||e.headers.get(`last-modified`)||void 0}function x(e,t){if(e instanceof Response){let n=t?.isResponseOk||_,r=t?.getContentSize||y,i=t?.getContentEncodedSize||v,a=t?.getContentCreatedAt||b;if(n(e))return{type:`url`,name:e.url,size:Number(r(e))||null,encodedSize:Number(i(e)),createdAt:a(e)}}if(e instanceof File)return{type:`file`,name:e.name,size:e.size,createdAt:e.lastModified};if(e instanceof Blob)return{size:e.size};if(ArrayBuffer.isView(e))return{size:e.byteLength};if(typeof e==`string`)return{size:e.length}}function S(e){let t=e;return(typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t&&!(Symbol.iterator in t)&&!(Symbol.asyncIterator in t))&&(t=[t]),t&&Symbol.iterator in t?new Blob(t):e}function C(e){if(e instanceof ReadableStream)return e;if(e instanceof Response){if(e.body===null)throw Error(`Response has no body`);return e.body}return e=S(e),e instanceof Blob?e.stream():new ReadableStream({start(){let t=typeof e==`object`&&e&&Symbol.asyncIterator in e?e[Symbol.asyncIterator]:void 0;if(typeof t!=`function`)throw Error(`Bad value type (can't convert to a stream)`);this.iterator=t()},async pull(e){let{value:t,done:n}=await this.iterator.next();n?(this.iterator=null,e.close()):e.enqueue(t)},cancel(){this.iterator=null}})}var{toString:w,hasOwnProperty:T}=Object.prototype;Object.hasOwn;function E(e,t){let n=globalThis.location,r=[],i=({newURL:n,oldURL:i})=>{let a=new URL(n).hash||`#`,o=new URL(i).hash||`#`;a!==r.shift()&&(t?.debug(`locationSync onChange:`,o,`->`,a),r.length=0,e(a,o))};return addEventListener(`hashchange`,i),{set(e,i){let a=e||`#`;(n.hash||`#`)!==a&&(t?.debug(`locationSync set:`,a,i),r.push(e),i?n.replace(e):n.hash=e)},dispose(){removeEventListener(`hashchange`,i)}}}var D=`[Discovery/embed-host]`,O=()=>{},k=(()=>{try{let e=new ReadableStream;return new MessageChannel().port1.postMessage(e,[e]),!0}catch{return!1}})(),A=class extends d{window;id;actions;dataLoadToken;constructor(e,t,n){super(),this.window=e,this.id=t,this.actions=n,this.dataLoadToken=null}sendMessage(e,t,n){let r={id:this.id,from:`discoveryjs-app`,type:e,payload:t||null};this.window.postMessage(r,`*`,n)}destroy(){this.destroy=O,this.emit(`destroy`),this.dataLoadToken=null,this.window=null,this.sendMessage=O}},j=class e extends A{publicApi;static createPublicApi(e){return Object.freeze({on:e.on.bind(e),once:e.once.bind(e),off:e.off.bind(e),defineAction(t,n){e.actions.set(t,n),e.sendMessage(`defineAction`,t)},setPageHash(t,n=!1){e.sendMessage(`setPageHash`,{hash:t,replace:n})},setRouterPreventLocationUpdate(t=!0){e.sendMessage(`setRouterPreventLocationUpdate`,t)}})}constructor(t,n,r){super(t,n,r),this.publicApi=e.createPublicApi(this)}processMessage(e){switch(e.type){case`loadingState`:this.emit(`loadingStateChanged`,e.payload);break}}},M=class e extends A{commandMap;dataLoadToken;pageHash;pageId;pageRef;pageParams;pageAnchor;locationSync;colorScheme;publicApi;static createPublicApi(e){let t={primary:F(`primary`,e.sendMessage.bind(e),e.commandMap),secondary:F(`secondary`,e.sendMessage.bind(e),e.commandMap),menu:F(`menu`,e.sendMessage.bind(e),e.commandMap)};return Object.freeze({pageHash:e.pageHash.readonly,pageId:e.pageId.readonly,pageRef:e.pageRef.readonly,pageAnchor:e.pageAnchor.readonly,pageParams:e.pageParams.readonly,colorScheme:e.colorScheme.readonly,on:e.on.bind(e),once:e.once.bind(e),off:e.off.bind(e),nav:Object.assign(t.secondary,t),notify(t,n){e.sendMessage(`notification`,{name:t,details:n})},defineAction(t,n){e.actions.set(t,n),e.sendMessage(`defineAction`,t)},setPageHash(t,n=!1){e.sendMessage(`setPageHash`,{hash:t,replace:n})},setPageHashState(t,n=!1){e.sendMessage(`setPageHashState`,{...t,replace:n})},setPageHashStateWithAnchor(t,n=!1){e.sendMessage(`setPageHashStateWithAnchor`,{...t,replace:n})},setPage(t,n,r,i=!1){e.sendMessage(`setPage`,{id:t,ref:n,params:r,replace:i})},setPageRef(t,n=!1){e.sendMessage(`setPageRef`,{ref:t,replace:n})},setPageParams(t,n=!1){e.sendMessage(`setPageParams`,{params:t,replace:n})},setPageAnchor(t,n=!1){e.sendMessage(`setPageAnchor`,{anchor:t,replace:n})},setColorSchemeState(t){e.sendMessage(`setColorSchemeState`,t)},setRouterPreventLocationUpdate(t=!0){e.sendMessage(`setRouterPreventLocationUpdate`,t)},setLocationSync(t=!0){t&&!e.locationSync?(e.locationSync=E(t=>e.publicApi.setPageHash(t)),e.on(`pageHashChanged`,e.locationSync.set)):!t&&e.locationSync&&(e.off(`pageHashChanged`,e.locationSync.set),e.locationSync.dispose(),e.locationSync=null)},unloadData(){e.sendMessage(`unloadData`,null)},async uploadData(t,n){let r=p();e.dataLoadToken=r;try{return await P(e,t,n)}finally{e.dataLoadToken===r&&(e.dataLoadToken=null)}}})}constructor(t,n,r){super(t,n,r),this.commandMap=new Map,this.dataLoadToken=null,this.pageHash=new f(`#`),this.pageId=new f(``),this.pageRef=new f(null),this.pageParams=new f({}),this.pageAnchor=new f(null),this.locationSync=null,this.colorScheme=new f({state:`unknown`,value:`unknown`},(e,t)=>e.state!==t.state||e.value!==t.value),this.publicApi=e.createPublicApi(this)}async processMessage(e){switch(e.type){case`destroy`:this.destroy();break;case`action`:{let{callId:t,name:n,args:r}=e.payload,i=this.actions.get(n);if(typeof i==`function`)try{this.sendMessage(`actionResult`,{callId:t,value:await i(...r)})}catch(e){this.sendMessage(`actionResult`,{callId:t,error:e})}else console.warn(`${D} Action "${n}" was not found`);break}case`navMethod`:{let t=this.commandMap.get(e.payload);typeof t==`function`?t():console.warn(`${D} Nav command "${e.payload}" was not found`);break}case`pageHashChanged`:{let{replace:t,hash:n,id:r,ref:i,params:a,anchor:o}=e.payload||{},s=String(n).startsWith(`#`)?n:`#`+n;this.pageHash.set(s),this.pageId.set(r),this.pageRef.set(i),this.pageParams.set(a),this.pageAnchor.set(o),this.emit(`pageHashChanged`,s,t);break}case`colorSchemeChanged`:{let t=e.payload;this.colorScheme.set(t),this.emit(`colorSchemeChanged`,t);break}case`unloadData`:this.emit(`unloadData`);break;case`data`:this.emit(`data`);break;case`loadingState`:this.emit(`loadingStateChanged`,e.payload);break;default:console.error(`${D} Unknown embed message type "${e.type}"`)}}destroy(){this.locationSync&&=(this.locationSync.dispose(),null),super.destroy()}};function N(e,t,n){let r=Object.assign(new Map,{id:``}),i=null,a,o=typeof t==`function`&&typeof n!=`function`?{onPreinit:void 0,onConnect:t}:{onPreinit:t,onConnect:n};return addEventListener(`message`,c),()=>{removeEventListener(`message`,c),s()};function s(){i!==null&&(i.destroy(),typeof a==`function`&&a(),i=null,a=void 0)}async function c(t){let n=t.data||{};if(t.isTrusted&&(t.source===e.contentWindow||t.source===null)&&n.from===`discoveryjs-app`){if(n.type===`ready`){s(),r.id!==n.id&&(r.clear(),r.id=n.id);let{colorScheme:t,page:c}=n.payload;i=new M(e.contentWindow,n.id,r),i.pageHash.set(c.hash),i.pageId.set(c.id),i.pageRef.set(c.ref),i.pageParams.set(c.params),i.pageAnchor.set(c.anchor),i.colorScheme.set(t),i.once(`destroy`,s),a=o.onConnect(i.publicApi);return}if(n.type===`preinit`){s(),typeof o.onPreinit==`function`&&(r.id!==n.id&&(r.clear(),r.id=n.id),i=new j(e.contentWindow,n.id,r),i.once(`destroy`,s),a=o.onPreinit(i.publicApi));return}if(i?.id===n.id){i.processMessage(n);return}}}}async function P(e,t,n=x){let r=e.dataLoadToken,i=()=>{if(e?.dataLoadToken!==r)throw Error(`Data upload aborted`)};if(!r)throw Error(`No acceptToken specified`);let a=typeof t==`function`?await t():await t;i();let o=typeof n==`function`&&n(a)||{},s=C(a);if(k)e.sendMessage(`dataStream`,{stream:s,resource:o},[s]);else{let t=s.getReader();e.sendMessage(`startChunkedDataUpload`,{acceptToken:r,resource:o});try{for(;;){let{value:n,done:a}=await t.read();if(i(),e.sendMessage(`dataChunk`,{acceptToken:r,value:n,done:a},typeof n!=`string`&&n?.buffer?[n.buffer]:void 0),a)break}}catch(t){throw e.sendMessage(`cancelChunkedDataUpload`,{acceptToken:r,error:t}),t}finally{t.releaseLock()}}}function F(e,t,n){function r(e){let t=[];return{commands:t,config:JSON.parse(JSON.stringify(e,(e,r)=>{if(typeof r==`function`){let e=`nav-command-`+p();return t.push(e),n.set(e,r),e}return r}))}}return{insert(n,i,a){t(`changeNavButtons`,{section:e,action:`insert`,name:a,position:i,...r(n)})},prepend(n){t(`changeNavButtons`,{section:e,action:`prepend`,...r(n)})},append(n){t(`changeNavButtons`,{section:e,action:`append`,...r(n)})},before(n,i){t(`changeNavButtons`,{section:e,action:`before`,name:n,...r(i)})},after(n,i){t(`changeNavButtons`,{section:e,action:`after`,name:n,...r(i)})},replace(n,i){t(`changeNavButtons`,{section:e,action:`replace`,name:n,...r(i)})},remove(n){t(`changeNavButtons`,{section:e,action:`remove`,name:n})}}}var I=[`src`],L=e({__name:`server-discovery`,setup(e){let d=l().app.baseURL,f=a(`iframe`);return r(()=>{let e=N(f.value,e=>((async()=>{let t=await s.getServerData(await c()),n=`{${Object.entries(t).map(([e,t])=>`"${e}": ${u(t)}`).join(`,`)}}`;e.uploadData(n)})(),()=>{}));t(()=>{e()})}),(e,t)=>(i(),o(`iframe`,{ref_key:`iframe`,ref:f,src:`${n(d)}discovery/index.html`,"h-full":``,"w-full":``},null,8,I))}});export{L as default};
@@ -0,0 +1 @@
1
+ import{C as e,E as t,Mt as n,Qt as r,W as i,X as a,Y as o,_ as s,c,ct as l,dt as u,g as d,h as f,m as p,tn as m,v as h,w as g}from"./vendor/json-editor-vue-g94ysn44.js";import{c as _,j as v,k as y,sn as b}from"#entry";import{t as x}from"./nselect-o9ezbf9h.js";import{t as S}from"./ncheckbox-mc98noss.js";var C={p4:``,flex:`~ col gap-4`},w={key:1,ml2:``,flex:``},T=[`value`],E={key:0,flex:``,"gap-4":``},D=Object.assign(t({__name:`ServerRouteInputs`,props:{modelValue:{},keys:{default:()=>[]},default:{default:()=>({})},disabled:{type:Boolean,default:!1}},setup(t,{emit:D}){let O=t,k=D,A=/^\d{4}-\d{2}-\d{2}$/,j=/^\d{2}:\d{2}$/,M=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,N=b(O,`modelValue`,k,{passive:!0}),P=p(()=>[...O.keys,`active`,`key`,`value`,`type`]),F=p(()=>{let e={};for(let t of P.value)e[t]=O.default[t]||``;return e}),I=[`string`,`number`,`boolean`,`file`,`date`,`time`,`datetime-local`];function L(e,t){let n=t.target;if(n.files&&n.files[0]){let t=n.files[0],r=new FileReader;r.readAsDataURL(t),r.onload=()=>{N.value[e].value=r.result}}}return l(()=>N,e=>{e.value.forEach(e=>{if(e.type===`number`&&typeof e.value!=`number`){let t=Number.parseFloat(e.value);e.value=Number.isNaN(t)?0:t}else e.type===`boolean`&&typeof e.value!=`boolean`?e.value=!0:e.type===`file`&&typeof e.value!=`object`?e.value=``:e.type===`date`&&typeof e.value==`string`&&!A.test(e.value)?e.value=new Date().toISOString().slice(0,10):e.type===`time`&&typeof e.value==`string`&&!j.test(e.value)?e.value=new Date().toISOString().slice(11,16):e.type===`datetime-local`&&typeof e.value==`string`&&!M.test(e.value)?e.value=new Date().toISOString().slice(0,16):e.type===`string`&&(e.value=e.value.toString())})},{deep:!0,immediate:!0,flush:`sync`}),(l,p)=>{let b=S,D=_,O=x,k=v,A=y;return i(),h(`div`,C,[(i(!0),h(c,null,o(n(N),(e,p)=>(i(),h(`div`,{key:p,flex:`~ gap-2`,"justify-around":``},[a(l.$slots,`input`,{item:e}),(i(!0),h(c,null,o(P.value,n=>(i(),h(c,{key:n},[e.type!==null&&n===`active`?(i(),d(b,{key:0,modelValue:e[n],"onUpdate:modelValue":t=>e[n]=t,n:`sm primary`,disabled:t.disabled},null,8,[`modelValue`,`onUpdate:modelValue`,`disabled`])):s(``,!0),e.type!==null&&n===`key`?(i(),d(D,{key:1,modelValue:e[n],"onUpdate:modelValue":t=>e[n]=t,placeholder:n,"flex-1":``,"font-mono":``,n:`sm primary`,disabled:t.disabled,class:r(t.disabled?`op50`:``)},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`,`disabled`,`class`])):n===`value`?(i(),h(c,{key:2},[e.type===`file`?(i(),d(D,{key:0,type:`file`,disabled:t.disabled,class:r(t.disabled?`op75`:``),onChange:e=>L(p,e)},null,8,[`disabled`,`class`,`onChange`])):e.type===`boolean`?(i(),h(`div`,w,[g(b,{modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,placeholder:`Value`,n:`green lg`,disabled:t.disabled},null,8,[`modelValue`,`onUpdate:modelValue`,`disabled`])])):(i(),d(D,{key:2,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,type:e.type,placeholder:`Value`,"flex-1":``,"font-mono":``,n:`sm primary`,disabled:t.disabled,class:r(t.disabled?`op75`:``)},null,8,[`modelValue`,`onUpdate:modelValue`,`type`,`disabled`,`class`]))],64)):n===`type`?(i(),d(O,{key:3,modelValue:e.type,"onUpdate:modelValue":t=>e.type=t,n:`sm green`,class:r(t.disabled?`op75`:``),disabled:t.disabled},{default:u(()=>[(i(),h(c,null,o(I,e=>f(`option`,{key:e,value:e},m(e),9,T)),64))]),_:1},8,[`modelValue`,`onUpdate:modelValue`,`class`,`disabled`])):s(``,!0)],64))),128)),a(l.$slots,`input-actions`,{},()=>[g(A,{n:`red`,disabled:t.disabled,class:r(t.disabled?`op0!`:``),onClick:e=>n(N).splice(p,1)},{default:u(()=>[g(k,{icon:`carbon:trash-can`})]),_:1},8,[`disabled`,`class`,`onClick`])])]))),128)),t.disabled?s(``,!0):(i(),h(`div`,E,[a(l.$slots,`actions`,{params:n(N)},()=>[g(A,{icon:`carbon-add`,n:`sm primary`,my1:``,"px-3":``,onClick:p[0]||=e=>n(N).push({...F.value})},{default:u(()=>[...p[2]||=[e(` Add `,-1)]]),_:1}),p[4]||=f(`div`,{"flex-auto":``},null,-1),n(N).length?(i(),d(A,{key:0,icon:`carbon-trash-can`,n:`sm red`,my1:``,"px-3":``,onClick:p[1]||=e=>n(N).splice(0,n(N).length)},{default:u(()=>[...p[3]||=[e(` Remove All `,-1)]]),_:1})):s(``,!0)])])),a(l.$slots,`default`)])}}}),{__name:`ServerRouteInputs`});export{D as t};
@@ -0,0 +1,7 @@
1
+ import{C as e,Ct as t,E as n,F as r,Mt as i,P as a,Q as o,Qt as s,W as c,X as l,Y as u,_ as d,bt as f,c as p,ct as m,dt as h,en as g,ft as _,g as v,gt as y,h as b,l as ee,lt as x,m as S,mt as C,t as te,tn as w,v as T,w as E,xt as D}from"./vendor/json-editor-vue-g94ysn44.js";import{E as O,Et as ne,Ft as k,M as re,W as A,Z as j,_ as ie,_t as M,c as ae,f as oe,fn as N,j as se,k as ce,l as P,pt as le,qt as ue,rn as F,s as de,v as fe,wt as pe,x as me,y as he}from"#entry";import{t as ge}from"./nselect-o9ezbf9h.js";import{t as _e}from"./ncode-block-mvjvaye5.js";import{t as ve}from"./ndrawer-mfwl47cs.js";import"./composables-dhks1pao.js";import{t as ye}from"./nnavbar-bwuaevkz.js";import{t as I}from"./nsection-block-na7dtpi3.js";import{t as be}from"./code-snippets-m9271riq.js";import{n as xe,t as Se}from"./constants-dict8wns.js";import{t as Ce}from"./nbadge-f7rzhjkq.js";import{t as we}from"./data-schema-button-hha0wi47.js";import{t as Te}from"./server-route-inputs-jeqq7e8y.js";var L=Object.assign(n({__name:`ServerRouteListItem`,props:{item:{},index:{default:0}},setup(n){let r=t(!0),a=me();return(t,o)=>{let f=se,m=Ce,h=L;return c(),T(`div`,null,[b(`button`,{flex:`~ gap-2`,"w-full":``,"items-start":``,"items-center":``,px2:``,py1:``,"hover-bg-active":``,class:s([{"bg-active":i(a)===n.item.filepath}]),style:g({paddingLeft:`calc(0.5rem + ${n.index*1.5}em)`}),onClick:o[0]||=e=>{r.value=!r.value,a.value=n.item.filepath}},[b(`div`,{class:s({"w-12":!n.item.routes}),"flex-none":``,"text-left":``},[n.item.type===`collection`?(c(),v(f,{key:0,icon:`carbon:chevron-right`,"mb0.5":``,"transform-rotate":r.value?90:0,transition:``},null,8,[`transform-rotate`])):(c(),v(m,{key:1,class:s(i(j)(n.item.method||`*`)),textContent:w((n.item.method||`*`).toUpperCase())},null,8,[`class`,`textContent`]))],2),b(`span`,{class:s({"flex items-center":n.item.routes}),"text-sm":``,"font-mono":``},[n.item.type===`collection`?(c(),v(f,{key:0,title:`${n.item.routes?.length} routes`,icon:`carbon:folder`,mr1:``},null,8,[`title`])):d(``,!0),e(` `+w(n.item.route),1)],2)],6),o[1]||=b(`div`,{"x-divider":``},null,-1),r.value?l(t.$slots,`default`,{key:0},()=>[(c(!0),T(p,null,u(n.item.routes,e=>(c(),v(h,{key:e.filepath,item:e,index:n.index+1},null,8,[`item`,`index`]))),128))]):d(``,!0)])}}}),{__name:`ServerRouteListItem`}),R=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function z(e,t){if(typeof e!=`string`)throw TypeError(`argument str must be a string`);let n=new R,r=t||{},i=r.decode||B,a=0;for(;a<e.length;){let t=e.indexOf(`=`,a);if(t===-1)break;let o=e.indexOf(`;`,a);if(o===-1)o=e.length;else if(o<t){a=e.lastIndexOf(`;`,t-1)+1;continue}let s=e.slice(a,t).trim();if(r?.filter&&!r?.filter(s)){a=o+1;continue}if(n[s]===void 0){let r=e.slice(t+1,o).trim();r.codePointAt(0)===34&&(r=r.slice(1,-1)),n[s]=V(r,i)}a=o+1}return n}function B(e){return e.includes(`%`)?decodeURIComponent(e):e}function V(e,t){try{return t(e)}catch{return e}}var H=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function U(e,t,n){let r=n||{},i=r.encode||encodeURIComponent;if(typeof i!=`function`)throw TypeError(`option encode is invalid`);if(!H.test(e))throw TypeError(`argument name is invalid`);let a=i(t);if(a&&!H.test(a))throw TypeError(`argument val is invalid`);let o=e+`=`+a;if(r.maxAge!==void 0&&r.maxAge!==null){let e=r.maxAge-0;if(Number.isNaN(e)||!Number.isFinite(e))throw TypeError(`option maxAge is invalid`);o+=`; Max-Age=`+Math.floor(e)}if(r.domain){if(!H.test(r.domain))throw TypeError(`option domain is invalid`);o+=`; Domain=`+r.domain}if(r.path){if(!H.test(r.path))throw TypeError(`option path is invalid`);o+=`; Path=`+r.path}if(r.expires){if(!Ee(r.expires)||Number.isNaN(r.expires.valueOf()))throw TypeError(`option expires is invalid`);o+=`; Expires=`+r.expires.toUTCString()}if(r.httpOnly&&(o+=`; HttpOnly`),r.secure&&(o+=`; Secure`),r.priority)switch(typeof r.priority==`string`?r.priority.toLowerCase():r.priority){case`low`:o+=`; Priority=Low`;break;case`medium`:o+=`; Priority=Medium`;break;case`high`:o+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid`)}if(r.sameSite)switch(typeof r.sameSite==`string`?r.sameSite.toLowerCase():r.sameSite){case!0:o+=`; SameSite=Strict`;break;case`lax`:o+=`; SameSite=Lax`;break;case`strict`:o+=`; SameSite=Strict`;break;case`none`:o+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid`)}return r.partitioned&&(o+=`; Partitioned`),o}function Ee(e){return Object.prototype.toString.call(e)===`[object Date]`||e instanceof Date}function W(e){if(typeof e!=`object`)return e;var t,n,r=Object.prototype.toString.call(e);if(r===`[object Object]`){if(e.constructor!==Object&&typeof e.constructor==`function`)for(t in n=new e.constructor,e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=W(e[t]));else for(t in n={},e)t===`__proto__`?Object.defineProperty(n,t,{value:W(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=W(e[t]);return n}if(r===`[object Array]`){for(t=e.length,n=Array(t);t--;)n[t]=W(e[t]);return n}return r===`[object Set]`?(n=new Set,e.forEach(function(e){n.add(W(e))}),n):r===`[object Map]`?(n=new Map,e.forEach(function(e,t){n.set(W(t),W(e))}),n):r===`[object Date]`?new Date(+e):r===`[object RegExp]`?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r===`[object DataView]`?new e.constructor(W(e.buffer)):r===`[object ArrayBuffer]`?e.slice(0):r.slice(-6)===`Array]`?new e.constructor(e):e}function De(e){if(e!==`undefined`)try{let t=JSON.parse(e);return typeof t==`number`&&String(t)!==e?e:t}catch{return e}}var G={path:`/`,watch:!0,decode:e=>e&&De(decodeURIComponent(e)),encode:e=>{if(typeof e!=`string`||e===`undefined`)return encodeURIComponent(JSON.stringify(e));try{if(typeof JSON.parse(e)!=`string`)return encodeURIComponent(JSON.stringify(e))}catch{}return encodeURIComponent(e)},refresh:!1},K=globalThis.cookieStore;function Oe(e,n){let i={...G,...n};i.filter??=t=>t===e;let a=q(i)||{},o;i.maxAge===void 0?i.expires&&(o=i.expires.getTime()-Date.now()):o=i.maxAge*1e3;let s=o!==void 0&&o<=0,c=s||a[e]===void 0||a[e]===null,l=W(s?void 0:a[e]??i.default?.()),u=o&&!s?X(l,o,i.watch&&i.watch!==`shallow`):t(l);{let t=null;try{!K&&typeof BroadcastChannel<`u`&&(t=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}let n=(n=!1)=>{!n&&(i.readonly||k(u.value,a[e]))||(Y(e,u.value===null||u.value===void 0?void 0:i.encode(u.value),i),a[e]=W(u.value),t?.postMessage({value:i.encode(u.value)}))},o=t=>{let n=t.refresh?q(i)?.[e]:i.decode(t.value);s=!0,u.value=n,a[e]=W(n),r(()=>{s=!1})},s=!1,l=!!y();if(l&&f(()=>{s=!0,n(),t?.close()}),K){let t=t=>{let n=t.changed.find(t=>t.name===e),r=t.deleted.find(t=>t.name===e);n&&o({value:n.value}),r&&o({value:null})};K.addEventListener(`change`,t),l&&f(()=>K.removeEventListener(`change`,t))}else t&&(t.onmessage=({data:e})=>o(e));i.watch&&m(u,()=>{s||n(i.refresh)},{deep:i.watch!==`shallow`}),c&&n(c)}return u}function q(e={}){return z(document.cookie,e)}var J=e=>e;function ke(e){let{encode:t,decode:n,...r}=e;return{...r,encode:J}}function Ae(e,t,n={}){let r=ke(n);return t===void 0?U(e,``,{...r,maxAge:-1}):U(e,t,r)}function Y(e,t,n={}){document.cookie=Ae(e,t,n)}var je=2147483647;function X(e,n,r){let i,a,o=0,s=r?t(e):{value:e};return y()&&f(()=>{a?.(),clearTimeout(i)}),C((e,t)=>{r&&(a=m(s,t));function c(){let e=n-o,r=e<je?e:je;i=setTimeout(()=>{if(o+=r,o<n)return c();s.value=void 0,t()},r)}function l(){o=0,clearTimeout(i),c()}return{get(){return e(),s.value},set(e){l(),s.value=e,t()}}})}var Me={"h-full":``,"w-full":``,flex:`~ col`},Ne={flex:`~ col gap-2`,"n-navbar-glass":``,"flex-none":``,p4:``},Pe={flex:`~ gap2 items-center`},Fe={relative:``,"w-full":``},Ie={absolute:``,"right-2":``,"top-1.5":``,flex:`~ gap-1`},Le={flex:`~ gap2 wrap`,"w-full":``,"items-center":``,px4:``,pb2:``,"text-center":``,"text-sm":``,border:`b base`},Re={class:`hidden md:block`},ze={key:0,border:`b base`,"items-center":``,px4:``,py2:``,grid:`~ cols-[max-content_1fr] gap-2`},Be={"text-right":``,"font-mono":``},Ve={key:1,border:`b base`,p4:``,flex:`~ col gap-4`,"font-mono":``},He={flex:`~ gap-4`},Ue={flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},We={key:2},Ge={key:3,border:`b base`,relative:``,"n-code-block":``},Ke={flex:`~ wrap`,"w-full":``},qe=[`onClick`],Je={border:`b base`,flex:`~ gap2`,"items-center":``,px4:``,py2:``},Ye={key:1,"text-xs":``,op50:``},Xe={key:0,"flex-auto":``,"overflow-auto":``},Ze={border:`~ base`,"h-full":``,"w-full":``,rounded:``},Qe=[`data`],$e={key:2,"flex-auto":``,"overflow-auto":``,p4:``},et={border:`~ base`,rounded:``},tt=[`src`],nt={key:1,controls:``,rounded:``},rt=[`src`],it=Object.assign(n({__name:`ServerRouteDetails`,props:{route:{}},emits:[`openDefaultInput`],setup(n,{emit:r}){let l=n,f=r,[m,g]=ue(),y=pe(),ee=le(),C=ne(),O=D({contentType:`text/plain`,data:``,statusCode:200,error:void 0,fetchTime:0}),k=S(()=>O.contentType.includes(`application/json`)?`json`:O.contentType.includes(`text/html`)?`html`:O.contentType.includes(`text/css`)?`css`:O.contentType.includes(`text/javascript`)?`javascript`:O.contentType.includes(`image`)||O.contentType.includes(`video`)?`media`:O.contentType.includes(`text/xml`)||O.contentType.includes(`application/xml`)?`xml`:O.contentType.includes(`application/pdf`)?`pdf`:`text`),M=S(()=>{if(k.value===`json`)return JSON.stringify(O.data,null,2);if(k.value===`media`||k.value===`pdf`){let e=new Blob([O.data],{type:O.contentType});return URL.createObjectURL(e)}return O.data}),P=t(!1),de=t(!1),me=fe(),ve=/((?:\*\*)?:\w+)/g,ye=S(()=>l.route.route?.split(ve)),I=S(()=>ye.value?.filter(e=>e.startsWith(`:`)||e.startsWith(`**:`))||[]),L=t(l.route.method||`GET`),R=t({}),z=D({query:[{active:!0,key:``,value:``,type:`string`}],body:[{active:!0,key:``,value:``,type:`string`}],headers:[{active:!0,key:`Content-Type`,value:`application/json`,type:`string`}]}),B=t({}),{inputDefaults:V,sendFrom:H}=A(`serverRoutes`),U=S(()=>C?.value?.app?.$fetch?H.value:`devtools`),Ee=[`GET`,`POST`,`PUT`,`PATCH`,`DELETE`,`HEAD`],W=[`PATCH`,`POST`,`PUT`,`DELETE`],De=S(()=>W.includes(L.value.toUpperCase())),G=t(),K=[`input`,`json`],q=t(K[0]),J=S({get:()=>z[G.value],set:e=>{z[G.value]=e}}),ke=S(()=>({...Z(V.value.query),...Z(z.query)})),Ae=S(()=>({...Z(V.value.headers),...Z(z.headers)})),Y=S(()=>De.value?q.value===`json`?{...Z(V.value.body),...B.value}:{...Z(V.value.body),...Z(z.body)}:void 0),je=S(()=>{let e=window?.location.origin;return e.charAt(e.length-1)===`/`&&(e=e.slice(0,-1)),e}),X=S(()=>{let e=new URLSearchParams(ke.value).toString();e&&=`?${e}`;let t=(ye.value?.map(e=>(e.startsWith(`:`)||e.startsWith(`**:`))&&R.value[e]||e).join(``)||``)+e,n=ee.value?.app.baseURL||``;return(n===`./`||n===`.`)&&(n=``),n.endsWith(`/`)&&(n=n.slice(0,-1)),n+t}),it=S(()=>je.value+X.value);function Z(e=[]){let t=Object.fromEntries(e.filter(({active:e,key:t,value:n})=>e&&t&&n!==void 0).map(({key:e,value:t})=>[e,t]));return Object.entries(t).length?t:void 0}async function at(){de.value=!0,P.value=!0;let e=Date.now(),t=U.value===`app`?C.value.app.$fetch:$fetch;he(`server-routes:fetch`,{method:L.value,sendFrom:U.value});try{O.data=await t(it.value,{method:L.value.toUpperCase(),headers:Ae.value,query:ke.value,body:Y.value,onResponse({response:e}){O.contentType=(e.headers.get(`content-type`)||``).toString().toLowerCase().trim(),O.statusCode=e.status,O.error=void 0},onResponseError(e){O.error=e.response._data,O.data=e.response._data}})}catch{}P.value=!1,O.fetchTime=Date.now()-e}let ot=S(()=>{let e=[],t=[],n=Object.entries(Ae.value).filter(([e,t])=>e&&t&&!(e===`Content-Type`&&t===`application/json`)).map(([e,t])=>` '${e}': '${t}'`).join(`,
2
+ `);L.value.toUpperCase()!==`GET`&&t.push(`method: '${L.value.toUpperCase()}'`),n&&t.push(`headers: {\n${n}\n}`),Y.value&&t.push(`body: ${JSON.stringify(Y.value,null,2)}`);let r=t.length?`, {
3
+ ${t.join(`,
4
+ `).split(`
5
+ `).map(e=>` ${e}`).join(`
6
+ `)}
7
+ }`:``;return e.push({name:`useFetch`,lang:`javascript`,docs:Se.nuxt.useFetch,code:`const { data, pending, error, refresh } = useFetch('${X.value}'${r})`}),e.push({name:`$fetch`,lang:`javascript`,docs:Se.nuxt.$fetch,code:`await $fetch('${X.value}'${r})`}),e}),Q=t(ct()),$=D({key:``,value:``}),st=S(()=>{let e=[];return I.value.length&&e.push({name:`Params`,slug:`params`,length:I.value.length}),e.push({name:`Query`,slug:`query`,length:z.query.length}),De.value&&e.push({name:`Body`,slug:`body`,length:z.body.length}),e.push({name:`Headers`,slug:`headers`,length:z.headers.length}),e.push({name:`Cookies`,slug:`cookies`,length:Q.value.length}),e.push({name:`Snippets`,slug:`snippet`}),e});function ct(){return document.cookie.split(`; `).map(e=>{let[t,n]=e.split(`=`);return{key:t,value:n}}).filter(e=>e.key)}function lt(e,t){if(!e)return;let n=Q.value.find(t=>t.key===e),r=Oe(e);n===void 0?(Q.value.push({key:e,value:t}),$.key=``,$.value=``):t===void 0&&(Q.value=Q.value.filter(t=>t.key!==e)),r.value=t}x(()=>{q.value===`json`&&typeof B.value==`string`&&(B.value=JSON.parse(B.value))});let ut=F(`nuxt-devtools:server-routes:inputs`,()=>[],{window:window.parent});N([z,G],()=>{let e=ut.value?.find(e=>e.path===l.route.filepath);if(e){G.value||=e.tab,e.tab!==G.value&&(e.tab=G.value);let{body:t,query:n,headers:r,params:i}=e.inputs;Object.assign(z,{body:t,query:n,headers:r}),R.value=i}else{let e={path:l.route.filepath,tab:I.value.length?`params`:`query`,inputs:{...z,...I.value.length?{params:R.value}:{}}};ut.value.push(e),G.value||=e.tab}},{immediate:!0,deep:!0,debounce:500});function dt(){ut.value=[],z.body=[],z.query=[],z.headers=[],R.value={},G.value=I.value.length?`params`:`query`}let ft=ie();return(t,r)=>{let l=ce,ee=ge,x=ae,S=se,D=Te,ne=be,A=oe,ie=re,N=Ce,le=we,ue=_e,F=o(`tooltip`);return c(),T(`div`,Me,[b(`div`,Ne,[b(`div`,Pe,[n.route.method?(c(),v(l,{key:0,class:s([`n-badge-base n-sm`,i(j)(L.value)]),"pointer-events-none":``,"font-mono":``,tabindex:`-1`},{default:h(()=>[e(w(L.value.toUpperCase()),1)]),_:1},8,[`class`])):(c(),v(ee,{key:1,modelValue:L.value,"onUpdate:modelValue":r[0]||=e=>L.value=e,class:s([`n-badge-base n-sm`,i(j)(L.value)])},{default:h(()=>[(c(),T(p,null,u(Ee,e=>b(`option`,{key:e,class:s(i(j)(e))},w(e.toUpperCase()),3)),64))]),_:1},8,[`modelValue`,`class`])),b(`div`,Fe,[E(x,{"model-value":X.value,readonly:``,"flex-auto":``,"font-mono":``,p:`x5 y2`,n:`sm`},null,8,[`model-value`]),b(`div`,Ie,[_(E(l,{title:`Copy URL`,n:`xs blue`,icon:`carbon:copy`,border:!1,onClick:r[1]||=e=>i(ft)(it.value,`server-route-url`)},null,512),[[F,`Copy URL`]]),_(E(l,{title:`Open in Editor`,icon:`carbon-launch`,n:`xs blue`,border:!1,onClick:r[2]||=e=>i(me)(n.route.filepath)},null,512),[[F,`Open in Editor`]])])]),E(l,{"h-full":``,n:`primary solid`,onClick:at},{default:h(()=>[E(S,{icon:`carbon:send`})]),_:1})])]),b(`div`,Le,[(c(!0),T(p,null,u(st.value,t=>_((c(),v(l,{key:t.slug,class:s(G.value===t.slug?`text-primary n-primary`:`border-transparent shadow-none`),onClick:e=>G.value=t.slug},{default:h(()=>[E(S,{icon:i(xe)[t.slug]},null,8,[`icon`]),b(`div`,Re,[e(w(t.name)+` `+w(t?.length?`(${t.length})`:``)+` `,1),b(`span`,null,w(i(V)[t.slug]?.length?`(${i(V)[t.slug].length})`:``),1)])]),_:2},1032,[`class`,`onClick`])),[[F,t.name]])),128)),r[12]||=b(`div`,{"flex-auto":``},null,-1),r[13]||=b(`div`,{"text-xs":``,op50:``},` Send from `,-1),E(ee,{modelValue:U.value,"onUpdate:modelValue":r[3]||=e=>U.value=e,class:`n-xs`,disabled:!i(C)?.app?.$fetch},{default:h(()=>[...r[11]||=[b(`option`,{value:`app`},` App `,-1),b(`option`,{value:`devtools`},` DevTools `,-1)]]),_:1},8,[`modelValue`,`disabled`]),_(E(l,{n:`orange`,class:`p-3`,icon:`i-carbon-clean`,onClick:dt},null,512),[[F,`Clear Inputs Saved Cache`]])]),G.value===`params`?(c(),T(`div`,ze,[(c(!0),T(p,null,u(I.value,e=>(c(),T(p,{key:e},[b(`div`,Be,w(e),1),E(x,{modelValue:R.value[e],"onUpdate:modelValue":t=>R.value[e]=t,placeholder:e,"flex-1":``},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`])],64))),128))])):d(``,!0),G.value===`cookies`?(c(),T(`div`,Ve,[(c(!0),T(p,null,u(Q.value,e=>(c(),T(`div`,{key:e.key,flex:`~ gap-4 items-center`},[E(x,{placeholder:`Key...`,"model-value":e.key,disabled:``,"op-70":``},null,8,[`model-value`]),E(x,{placeholder:`Value...`,"model-value":e.value,"flex-1":``,n:`primary`,onInput:t=>lt(e.key,t.target?.value)},null,8,[`model-value`,`onInput`]),E(l,{title:`Delete`,n:`red`,onClick:t=>lt(e.key,void 0)},{default:h(()=>[E(S,{icon:`i-carbon-trash-can`})]),_:1},8,[`onClick`])]))),128)),b(`div`,He,[E(x,{modelValue:$.key,"onUpdate:modelValue":r[4]||=e=>$.key=e,placeholder:`Key`,n:`primary`,"flex-1":``},null,8,[`modelValue`]),E(x,{modelValue:$.value,"onUpdate:modelValue":r[5]||=e=>$.value=e,placeholder:`Value`,n:`primary`,"flex-1":``},null,8,[`modelValue`]),E(l,{title:`Add`,n:`primary`,onClick:r[6]||=e=>lt($.key,$.value)},{default:h(()=>[E(S,{icon:`i-carbon-save`})]),_:1})])])):d(``,!0),E(i(m),null,{default:h(()=>[E(D,{modelValue:J.value,"onUpdate:modelValue":r[9]||=e=>J.value=e,default:{active:!0,type:`string`},"max-h-xs":``,"of-auto":``},{default:h(()=>[i(V)[G.value]?.length?(c(),T(p,{key:0},[b(`div`,Ue,[r[14]||=b(`div`,{"w-5":``,"x-divider":``},null,-1),r[15]||=b(`div`,{"flex-none":``},` Default Inputs `,-1),E(l,{icon:`i-carbon-edit`,border:!1,onClick:r[7]||=e=>f(`openDefaultInput`)}),r[16]||=b(`div`,{"x-divider":``},null,-1)]),E(D,{modelValue:i(V)[G.value],"onUpdate:modelValue":r[8]||=e=>i(V)[G.value]=e,disabled:``,p0:``},null,8,[`modelValue`])],64)):d(``,!0)]),_:1},8,[`modelValue`])]),_:1}),G.value===`snippet`?(c(),T(`div`,We,[ot.value.length?(c(),v(ne,{key:0,"code-snippets":ot.value},null,8,[`code-snippets`])):d(``,!0)])):J.value?(c(),T(`div`,Ge,[G.value===`body`?(c(),T(p,{key:0},[b(`div`,Ke,[(c(),T(p,null,u(K,e=>b(`button`,{key:e,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:s({"border-b":e!==q.value}),onClick:t=>q.value=e},[b(`div`,{class:s({op30:e!==q.value}),"font-mono":``},w(e),3)],10,qe)),64)),r[17]||=b(`div`,{border:`b base`,"flex-auto":``},null,-1)]),q.value===`input`?(c(),v(i(g),{key:0})):q.value===`json`?(c(),v(i(te),a({key:1,modelValue:B.value,"onUpdate:modelValue":r[10]||=e=>B.value=e,class:[i(y)===`dark`?`jse-theme-dark`:`light`,`json-editor-vue of-auto text-sm outline-none`]},t.$attrs,{mode:`text`,"navigation-bar":!1,indentation:2,"tab-size":2}),null,16,[`modelValue`,`class`])):d(``,!0)],64)):(c(),v(i(g),{key:1}))])):d(``,!0),de.value?P.value?(c(),v(ie,{key:5,"z-10":``,"flex-auto":``,"backdrop-blur":``},{default:h(()=>[...r[19]||=[e(` Fetching... `,-1)]]),_:1})):(c(),T(p,{key:6},[b(`div`,Je,[r[21]||=b(`div`,null,`Response`,-1),O.error?(c(),v(N,{key:0,n:`red`},{default:h(()=>[...r[20]||=[e(` Error `,-1)]]),_:1})):d(``,!0),E(N,{n:O.error?`orange`:`green`,textContent:w(O.statusCode)},null,8,[`n`,`textContent`]),O.contentType?(c(),T(`code`,Ye,w(O.contentType),1)):d(``,!0),O.contentType===`application/json`?(c(),v(le,{key:2,getter:()=>({input:M.value})},null,8,[`getter`])):d(``,!0),r[22]||=b(`div`,{"flex-auto":``},null,-1),r[23]||=b(`div`,{op50:``},` Request finished in `,-1),E(N,{n:`green`},{default:h(()=>[e(w(O.fetchTime)+` ms `,1)]),_:1})]),k.value===`pdf`?(c(),T(`div`,Xe,[b(`div`,Ze,[b(`object`,{data:M.value,type:`application/pdf`,"flex-auto":``,width:`100%`,height:`100%`,rounded:``},null,8,Qe)])])):k.value===`media`?(c(),T(`div`,$e,[b(`div`,et,[O.contentType.includes(`image`)?(c(),T(`img`,{key:0,rounded:``,src:M.value},null,8,tt)):(c(),T(`video`,nt,[b(`source`,{src:M.value,type:`video/mp4`},null,8,rt)]))])])):(c(),v(ue,{key:1,"flex-auto":``,"overflow-auto":``,"py-2":``,code:M.value,lang:k.value},null,8,[`code`,`lang`]))],64)):(c(),v(A,{key:4},{default:h(()=>[E(l,{n:`primary`,onClick:at},{default:h(()=>[E(S,{icon:`carbon:send`}),r[18]||=e(` Send request `,-1)]),_:1})]),_:1}))])}}}),{__name:`ServerRouteDetails`}),Z={flex:`~ gap1`,"text-sm":``},at={key:0,op50:``},ot={op50:``},Q=n({__name:`server-routes`,setup(e){let n=/\W/g,r=t(!1),a=M(),s=me(),{selectedRoute:l,view:f,inputDefaults:m}=A(`serverRoutes`),g=S(()=>{!s.value&&l.value&&(s.value=l.value.filepath);let e=a.value?.find(e=>e.filepath===s.value);return s.value!==l.value?.filepath&&e&&(l.value=e),e}),y=t(``),x=S(()=>new de(a.value||[],{keys:[`method`,`route`],shouldSort:!0})),C=S(()=>a.value?y.value?x.value.search(y.value).map(e=>e.item):a.value:[]),te=S(()=>{let e=[],t=(e,t)=>{e.routes=e.routes||[],e.routes.push(t)},r=(r,i)=>{let a=i?i.routes?.find(e=>e.route===r):e.find(e=>e.route===r);if(a)return a;let o={route:r,filepath:r.replace(n,`-`).toLowerCase(),type:`collection`,routes:[]};return i?t(i,o):e.push(o),o};return C.value.forEach(n=>{let i,a,o=n.filepath.split(`/`),s=o.slice(o.indexOf(`server`)+1);if(n.type===`runtime`){s[0]=`runtime`;let e=o.indexOf(`dist`);e!==-1&&(i=o[e-1],i&&s.splice(1,0,i))}s.length>0&&s.at(-1).includes(`.`)&&s.pop(),s.forEach(e=>{a=r(e,a)}),a?t(a,n):e.push(n)}),e});function D(){f.value=f.value===`tree`?`list`:`tree`}function ne(e){return e.charAt(0).toUpperCase()+e.slice(1)}return(e,t)=>{let n=ce,s=ye,l=L,x=it,S=O,k=oe,re=P,A=Te,j=I,ie=ve,M=o(`tooltip`);return c(),T(p,null,[E(re,{"storage-key":`tab-server-routes`},{left:h(()=>[E(s,{search:y.value,"onUpdate:search":t[1]||=e=>y.value=e,pb2:``},{actions:h(()=>[_(E(n,{"text-lg":``,icon:i(f)===`list`?`i-carbon-list`:`i-carbon-tree-view-alt`,title:`Toggle view`,border:!1,onClick:D},null,8,[`icon`]),[[M,`Toggle View`]]),_(E(n,{"text-lg":``,icon:`i-carbon-cics-sit-overrides`,title:`Default Inputs`,border:!1,onClick:t[0]||=e=>r.value=!r.value},null,512),[[M,`Default Inputs`]])]),default:h(()=>[b(`div`,Z,[y.value?(c(),T(`span`,at,w(C.value.length)+` matched · `,1)):d(``,!0),b(`span`,ot,w(i(a)?.length)+` routes in total`,1)])]),_:1},8,[`search`]),(c(!0),T(p,null,u(i(f)===`tree`?te.value:C.value,e=>(c(),v(l,{key:e.filepath,item:e},null,8,[`item`]))),128))]),right:h(()=>[(c(),v(ee,{max:10},[g.value?(c(),v(x,{key:g.value.filepath,route:g.value,onOpenDefaultInput:t[2]||=e=>r.value=!0},null,8,[`route`])):d(``,!0)],1024)),g.value?d(``,!0):(c(),v(k,{key:0},{default:h(()=>[E(S,{px6:``,py2:``},{default:h(()=>[...t[5]||=[b(`span`,{op75:``},`Select a route to start`,-1)]]),_:1})]),_:1}))]),_:1}),E(ie,{modelValue:r.value,"onUpdate:modelValue":t[3]||=e=>r.value=e,"auto-close":``,"max-w-xl":``,"min-w-xl":``,onClose:t[4]||=e=>r.value=!1},{default:h(()=>[b(`div`,null,[t[6]||=b(`div`,{p4:``,border:`b base`},[b(`span`,{"text-lg":``},`Default Inputs`),b(`br`),b(`span`,{"text-black":``,op50:``,"dark:text-white":``},`Merged as default for every request in DevTools`)],-1),(c(!0),T(p,null,u(Object.keys(i(m)),e=>(c(),v(j,{key:e,text:`${ne(e)} ${i(m)[e]?.length?`(${i(m)[e].length})`:``}`,padding:!1,icon:i(xe)[e]},{default:h(()=>[E(A,{modelValue:i(m)[e],"onUpdate:modelValue":t=>i(m)[e]=t,py0:``,default:{active:!0,type:`string`}},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1032,[`text`,`icon`]))),128))])]),_:1},8,[`modelValue`])],64)}}});export{Q as default};
@@ -0,0 +1 @@
1
+ import{o as e,t}from"./rolldown-runtime-ga5ujxqr.js";import{C as n,Ct as r,E as i,Mt as a,P as o,Q as s,Qt as c,W as l,X as u,Y as d,_ as f,c as p,dt as m,en as h,ft as g,g as _,h as v,l as y,lt as b,m as x,t as S,tn as C,v as w,w as T,xt as E}from"./vendor/json-editor-vue-g94ysn44.js";import{E as ee,M as D,S as O,W as k,Z as A,_ as j,c as M,f as te,fn as N,j as P,k as ne,l as re,pt as F,qt as I,rn as ie,s as L,v as ae,wt as oe,y as se,yt as R}from"#entry";import{t as ce}from"./ncode-block-mvjvaye5.js";import{t as le}from"./ndrawer-mfwl47cs.js";import"./composables-dhks1pao.js";import{t as ue}from"./nnavbar-bwuaevkz.js";import{t as z}from"./nsection-block-na7dtpi3.js";import{n as de}from"./constants-dict8wns.js";import{t as fe}from"./nbadge-f7rzhjkq.js";import{t as pe}from"./server-route-inputs-jeqq7e8y.js";var B=e(t(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define(`cronstrue`,[],r):typeof e==`object`?e.cronstrue=r():n.cronstrue=r()})(globalThis,()=>(()=>{var e={949(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0}),t.CronParser=void 0;var r=n(515);t.CronParser=function(){function e(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=!1),this.expression=e,this.dayOfWeekStartIndexZero=t,this.monthStartIndexZero=n}return e.prototype.parse=function(){var e,t=this.expression??``;if(t===`@reboot`)return e=[`@reboot`,``,``,``,``,``,``],e;if(t.startsWith(`@`)){var n=this.parseSpecial(this.expression);e=this.extractParts(n)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},e.prototype.parseSpecial=function(e){var t={"@yearly":`0 0 1 1 *`,"@annually":`0 0 1 1 *`,"@monthly":`0 0 1 * *`,"@weekly":`0 0 * * 0`,"@daily":`0 0 * * *`,"@midnight":`0 0 * * *`,"@hourly":`0 * * * *`,"@reboot":`@reboot`}[e];if(!t)throw Error(`Unknown special expression.`);return t},e.prototype.extractParts=function(e){if(!this.expression)throw Error(`cron expression is empty`);for(var t=e.trim().split(/[ ]+/),n=0;n<t.length;n++)if(t[n].includes(`,`)){var r=t[n].split(`,`).map(function(e){return e.trim()}).filter(function(e){return e!==``}).map(function(e){return isNaN(Number(e))?e:Number(e)}).filter(function(e){return e!==null&&e!==``});r.length===0&&r.push(`*`),r.sort(function(e,t){return e!==null&&t!==null?e-t:0}),t[n]=r.map(function(e){return e===null?``:e.toString()}).join(`,`)}if(t.length<5)throw Error(`Expression has only ${t.length} part${t.length==1?``:`s`}. At least 5 parts are required.`);if(t.length==5)t.unshift(``),t.push(``);else if(t.length==6)/\d{4}$/.test(t[5])||t[4]==`?`||t[2]==`?`?t.unshift(``):t.push(``);else if(t.length>7)throw Error(`Expression has ${t.length} parts; too many!`);return t},e.prototype.normalize=function(e){var t=this;if(e[3]=e[3].replace(`?`,`*`),e[5]=e[5].replace(`?`,`*`),e[2]=e[2].replace(`?`,`*`),e[0].indexOf(`0/`)==0&&(e[0]=e[0].replace(`0/`,`*/`)),e[1].indexOf(`0/`)==0&&(e[1]=e[1].replace(`0/`,`*/`)),e[2].indexOf(`0/`)==0&&(e[2]=e[2].replace(`0/`,`*/`)),e[3].indexOf(`1/`)==0&&(e[3]=e[3].replace(`1/`,`*/`)),e[4].indexOf(`1/`)==0&&(e[4]=e[4].replace(`1/`,`*/`)),e[6].indexOf(`1/`)==0&&(e[6]=e[6].replace(`1/`,`*/`)),e[5]=e[5].replace(/(^\d)|([^#/\s]\d)/g,function(e){var n=e.replace(/\D/,``),r=n;return t.dayOfWeekStartIndexZero?n==`7`&&(r=`0`):r=(parseInt(n)-1).toString(),e.replace(n,r)}),e[5]==`L`&&(e[5]=`6`),e[3]==`?`&&(e[3]=`*`),e[3].indexOf(`W`)>-1&&(e[3].indexOf(`,`)>-1||e[3].indexOf(`-`)>-1))throw Error(`The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.`);var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)e[5]=e[5].replace(new RegExp(r,`gi`),n[r].toString());e[4]=e[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(e){var n=e.replace(/\D/,``),r=n;return t.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),e.replace(n,r)});var i={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var a in i)e[4]=e[4].replace(new RegExp(a,`gi`),i[a].toString());e[0]==`0`&&(e[0]=``),!/\*|\-|\,|\//.test(e[2])&&(/\*|\//.test(e[1])||/\*|\//.test(e[0]))&&(e[2]+=`-${e[2]}`);for(var o=0;o<e.length;o++)if(e[o].indexOf(`,`)!=-1&&(e[o]=e[o].split(`,`).filter(function(e){return e!==``}).join(`,`)||`*`),e[o]==`*/1`&&(e[o]=`*`),e[o].indexOf(`/`)>-1&&!/^\*|\-|\,/.test(e[o])){var s=null;switch(o){case 4:s=`12`;break;case 5:s=`6`;break;case 6:s=`9999`;break;default:s=null;break}if(s!==null){var c=e[o].split(`/`);e[o]=`${c[0]}-${s}/${c[1]}`}}},e.prototype.validate=function(e){var t=`0-9,\\-*/`;this.validateOnlyExpectedCharactersFound(e[0],t),this.validateOnlyExpectedCharactersFound(e[1],t),this.validateOnlyExpectedCharactersFound(e[2],t),this.validateOnlyExpectedCharactersFound(e[3],`0-9,\\-*/LW`),this.validateOnlyExpectedCharactersFound(e[4],t),this.validateOnlyExpectedCharactersFound(e[5],`0-9,\\-*/L#`),this.validateOnlyExpectedCharactersFound(e[6],t),this.validateAnyRanges(e)},e.prototype.validateAnyRanges=function(e){r.default.secondRange(e[0]),r.default.minuteRange(e[1]),r.default.hourRange(e[2]),r.default.dayOfMonthRange(e[3]),r.default.monthRange(e[4],this.monthStartIndexZero),r.default.dayOfWeekRange(e[5],this.dayOfWeekStartIndexZero)},e.prototype.validateOnlyExpectedCharactersFound=function(e,t){var n=e.match(RegExp(`[^${t}]+`,`gi`));if(n&&n.length)throw Error(`Expression contains invalid values: '${n.toString()}'`)},e}()},333(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0}),t.ExpressionDescriptor=void 0;var r=n(823),i=n(949);t.ExpressionDescriptor=function(){function e(t,n){if(this.expression=t,this.options=n,this.expressionParts=[,,,,,],!this.options.locale&&e.defaultLocale&&(this.options.locale=e.defaultLocale),!e.locales[this.options.locale]){var r=Object.keys(e.locales)[0];console.warn(`Locale '${this.options.locale}' could not be found; falling back to '${r}'.`),this.options.locale=r}this.i18n=e.locales[this.options.locale],n.use24HourTimeFormat===void 0&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return e.toString=function(t,n){var r=n===void 0?{}:n,i=r.throwExceptionOnParseError,a=i===void 0?!0:i,o=r.verbose,s=o===void 0?!1:o,c=r.dayOfWeekStartIndexZero,l=c===void 0?!0:c,u=r.monthStartIndexZero,d=u===void 0?!1:u,f=r.use24HourTimeFormat,p=r.trimHoursLeadingZero,m=p===void 0?!1:p,h=r.locale,g=h===void 0?null:h,_=r.logicalAndDayFields,v={throwExceptionOnParseError:a,verbose:s,dayOfWeekStartIndexZero:l,monthStartIndexZero:d,use24HourTimeFormat:f,trimHoursLeadingZero:m,locale:g,logicalAndDayFields:_===void 0?!1:_};return v.tzOffset&&console.warn(`'tzOffset' option has been deprecated and is no longer supported.`),new e(t,v).getFullDescription()},e.initialize=function(t,n){n===void 0&&(n=`en`),e.specialCharacters=[`/`,`-`,`,`,`*`],e.defaultLocale=n,t.load(e.locales)},e.prototype.getFullDescription=function(){var e,t=``;try{var n=new i.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=n.parse(),this.expressionParts[0]===`@reboot`)return(e=this.i18n).atReboot?.call(e)||`Run once, at startup`;var r=this.getTimeOfDayDescription(),a=this.getDayOfMonthDescription(),o=this.getMonthDescription(),s=this.getDayOfWeekDescription(),c=this.getYearDescription();t+=r+a+s+o+c,t=this.transformVerbosity(t,!!this.options.verbose),t=t.charAt(0).toLocaleUpperCase()+t.substr(1)}catch(e){if(!this.options.throwExceptionOnParseError)t=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw`${e}`}return t},e.prototype.getTimeOfDayDescription=function(){var t=this.expressionParts[0],n=this.expressionParts[1],i=this.expressionParts[2],a=``;if(!r.StringUtilities.containsAny(n,e.specialCharacters)&&!r.StringUtilities.containsAny(i,e.specialCharacters)&&!r.StringUtilities.containsAny(t,e.specialCharacters))a+=this.i18n.atSpace()+this.formatTime(i,n,t);else if(!t&&n.indexOf(`-`)>-1&&!(n.indexOf(`,`)>-1)&&!(n.indexOf(`/`)>-1)&&!r.StringUtilities.containsAny(i,e.specialCharacters)){var o=n.split(`-`);a+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(i,o[0],``),this.formatTime(i,o[1],``))}else if(!t&&i.indexOf(`,`)>-1&&i.indexOf(`-`)==-1&&i.indexOf(`/`)==-1&&!r.StringUtilities.containsAny(n,e.specialCharacters)){var s=i.split(`,`);a+=this.i18n.at();for(var c=0;c<s.length;c++)a+=` `,a+=this.formatTime(s[c],n,``),c<s.length-2&&(a+=`,`),c==s.length-2&&(a+=this.i18n.spaceAnd())}else{var l=this.getSecondsDescription(),u=this.getMinutesDescription(),d=this.getHoursDescription();if(a+=l,a&&u&&(a+=`, `),a+=u,u===d)return a;a&&d&&(a+=`, `),a+=d}return a},e.prototype.getSecondsDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(e){return e},function(t){return r.StringUtilities.format(e.i18n.everyX0Seconds(t),t)},function(t){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(t){return t==`0`?``:parseInt(t)<20?e.i18n.atX0SecondsPastTheMinute(t):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(t)})},e.prototype.getMinutesDescription=function(){var e=this,t=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(e){return e},function(t){return r.StringUtilities.format(e.i18n.everyX0Minutes(t),t)},function(t){return e.i18n.minutesX0ThroughX1PastTheHour()},function(r){var i;try{return r==`0`&&n.indexOf(`/`)==-1&&t==``?e.i18n.everyHour():r==`0`?(i=e.i18n).onTheHour?.call(i)||e.i18n.atX0MinutesPastTheHour(r):parseInt(r)<20?e.i18n.atX0MinutesPastTheHour(r):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(r)}catch{return e.i18n.atX0MinutesPastTheHour(r)}})},e.prototype.getHoursDescription=function(){var e=this,t=this.expressionParts[2],n=0,i=[];t.split(`/`)[0].split(`,`).forEach(function(e){var t=e.split(`-`);t.length===2&&i.push({value:t[1],index:n+1}),n+=t.length});var a=0;return this.getSegmentDescription(t,this.i18n.everyHour(),function(t){var n=i.find(function(e){return e.value===t&&e.index===a})&&e.expressionParts[1]!==`0`;return a++,n?e.formatTime(t,`59`,``):e.formatTime(t,`0`,``)},function(t){return r.StringUtilities.format(e.i18n.everyX0Hours(t),t)},function(t){return e.i18n.betweenX0AndX1()},function(t){return e.i18n.atX0()})},e.prototype.getDayOfWeekDescription=function(){var e=this,t=this.i18n.daysOfTheWeek(),n=null;return n=this.expressionParts[5]==`*`?``:this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(n,r){var i=n;n.indexOf(`#`)>-1?i=n.substring(0,n.indexOf(`#`)):n.indexOf(`L`)>-1&&(i=i.replace(`L`,``));var a=parseInt(i),o=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(r)[a]:t[a];if(n.indexOf(`#`)>-1){var s=null,c=n.substring(n.indexOf(`#`)+1),l=n.substring(0,n.indexOf(`#`));switch(c){case`1`:s=e.i18n.first(l);break;case`2`:s=e.i18n.second(l);break;case`3`:s=e.i18n.third(l);break;case`4`:s=e.i18n.fourth(l);break;case`5`:s=e.i18n.fifth(l);break}o=s+` `+o}return o},function(t){return parseInt(t)==1?``:r.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(t),t)},function(t){var n=t.substring(0,t.indexOf(`-`));return e.expressionParts[3]==`*`?e.i18n.commaX0ThroughX1(n):e.i18n.commaAndX0ThroughX1(n)},function(t){var n=null;if(t.indexOf(`#`)>-1){var r=t.substring(t.indexOf(`#`)+1),i=t.substring(0,t.indexOf(`#`));n=e.i18n.commaOnThe(r,i).trim()+e.i18n.spaceX0OfTheMonth()}else n=t.indexOf(`L`)>-1?e.i18n.commaOnTheLastX0OfTheMonth(t.replace(`L`,``)):e.expressionParts[3]==`*`||e.options.logicalAndDayFields?e.i18n.commaOnlyOnX0(t):e.i18n.commaAndOnX0();return n}),n},e.prototype.getMonthDescription=function(){var e=this,t=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],``,function(n,r){return r&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:t[parseInt(n)-1]},function(t){return parseInt(t)==1?``:r.StringUtilities.format(e.i18n.commaEveryX0Months(t),t)},function(t){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()})},e.prototype.getDayOfMonthDescription=function(){var e=this,t=null,n=this.expressionParts[3];switch(n){case`L`:t=this.i18n.commaOnTheLastDayOfTheMonth();break;case`WL`:case`LW`:t=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var i=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(i){var a=parseInt(i[0].replace(`W`,``)),o=a==1?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),a.toString());t=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),o);break}else{var s=n.match(/L-(\d{1,2})/);if(s){var c=s[1];t=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(c),c);break}else if(n==`*`&&this.expressionParts[5]!=`*`)return``;else t=this.getSegmentDescription(n,this.i18n.commaEveryDay(),function(t){return t==`L`?e.i18n.lastDay():e.i18n.dayX0?r.StringUtilities.format(e.i18n.dayX0(),t):t},function(t){return t==`1`?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(t)},function(t){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(t)},function(t){return e.i18n.commaOnDayX0OfTheMonth(t)});break}}return t},e.prototype.getYearDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[6],``,function(e){return/^\d+$/.test(e)?new Date(parseInt(e),1).getFullYear().toString():e},function(t){return r.StringUtilities.format(e.i18n.commaEveryX0Years(t),t)},function(t){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()})},e.prototype.getSegmentDescription=function(e,t,n,i,a,o){var s=null,c=e.indexOf(`/`)>-1,l=e.indexOf(`-`)>-1,u=e.indexOf(`,`)>-1;if(!e)s=``;else if(e===`*`)s=t;else if(!c&&!l&&!u)s=r.StringUtilities.format(o(e),n(e));else if(u){for(var d=e.split(`,`),f=``,p=0;p<d.length;p++)if(p>0&&d.length>2&&(f+=`,`,p<d.length-1&&(f+=` `)),p>0&&d.length>1&&(p==d.length-1||d.length==2)&&(f+=`${this.i18n.spaceAnd()} `),d[p].indexOf(`/`)>-1||d[p].indexOf(`-`)>-1){var m=d[p].indexOf(`-`)>-1&&d[p].indexOf(`/`)==-1,h=this.getSegmentDescription(d[p],t,n,i,m?this.i18n.commaX0ThroughX1:a,o);m&&(h=h.replace(`, `,``)),f+=h}else if(!c)f+=n(d[p]);else{var g=this.getSegmentDescription(d[p],t,n,i,a,o);g&&g.startsWith(`, `)&&(g=g.substring(2)),f+=g}s=c?f:r.StringUtilities.format(o(e),f)}else if(c){var d=e.split(`/`);if(s=r.StringUtilities.format(i(d[1]),d[1]),d[0].indexOf(`-`)>-1){var _=this.generateRangeSegmentDescription(d[0],a,n);_.indexOf(`, `)!=0&&(s+=`, `),s+=_}else if(d[0].indexOf(`*`)==-1){var v=r.StringUtilities.format(o(d[0]),n(d[0]));v=v.replace(`, `,``),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),v)}}else l&&(s=this.generateRangeSegmentDescription(e,a,n));return s},e.prototype.generateRangeSegmentDescription=function(e,t,n){var i=``,a=e.split(`-`),o=n(a[0],1),s=n(a[1],2),c=t(e);return i+=r.StringUtilities.format(c,o,s),i},e.prototype.formatTime=function(e,t,n){var r=0,i=0,a=parseInt(e)+r,o=parseInt(t)+i;o>=60?(o-=60,a+=1):o<0&&(o+=60,--a),a>=24?a-=24:a<0&&(a=24+a);var s=``,c=!1;this.options.use24HourTimeFormat||(c=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),s=c?`${this.getPeriod(a)} `:` ${this.getPeriod(a)}`,a>12&&(a-=12),a===0&&(a=12));var l=``;n&&(l=`:${(`00`+n).substring(n.length)}`);var u=a.toString(),d=(`00`+u).substring(u.length),f=o.toString(),p=(`00`+f).substring(f.length),m=this.options.trimHoursLeadingZero?u:d;return`${c?s:``}${m}:${p}${l}${c?``:s}`},e.prototype.transformVerbosity=function(e,t){if(!t&&(e=e.replace(RegExp(`, ${this.i18n.everyMinute()}`,`g`),``),e=e.replace(RegExp(`, ${this.i18n.everyHour()}`,`g`),``),e=e.replace(new RegExp(this.i18n.commaEveryDay(),`g`),``),e=e.replace(/\, ?$/,``),this.i18n.conciseVerbosityReplacements))for(var n=0,r=Object.entries(this.i18n.conciseVerbosityReplacements());n<r.length;n++){var i=r[n],a=i[0],o=i[1];e=e.replace(new RegExp(a,`g`),o)}return e},e.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||`PM`:this.i18n.am&&this.i18n.am()||`AM`},e.locales={},e}()},747(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0}),t.enLocaleLoader=void 0;var r=n(486);t.enLocaleLoader=function(){function e(){}return e.prototype.load=function(e){e.en=new r.en},e}()},486(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.en=void 0,t.en=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return`An error occurred when generating the expression description. Check the cron expression syntax.`},e.prototype.everyMinute=function(){return`every minute`},e.prototype.everyHour=function(){return`every hour`},e.prototype.atSpace=function(){return`At `},e.prototype.everyMinuteBetweenX0AndX1=function(){return`Every minute between %s and %s`},e.prototype.at=function(){return`At`},e.prototype.spaceAnd=function(){return` and`},e.prototype.everySecond=function(){return`every second`},e.prototype.everyX0Seconds=function(){return`every %s seconds`},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return`seconds %s through %s past the minute`},e.prototype.atX0SecondsPastTheMinute=function(){return`at %s seconds past the minute`},e.prototype.everyX0Minutes=function(){return`every %s minutes`},e.prototype.minutesX0ThroughX1PastTheHour=function(){return`minutes %s through %s past the hour`},e.prototype.atX0MinutesPastTheHour=function(){return`at %s minutes past the hour`},e.prototype.everyX0Hours=function(){return`every %s hours`},e.prototype.betweenX0AndX1=function(){return`between %s and %s`},e.prototype.atX0=function(){return`at %s`},e.prototype.commaEveryDay=function(){return`, every day`},e.prototype.commaEveryX0DaysOfTheWeek=function(){return`, every %s days of the week`},e.prototype.commaX0ThroughX1=function(){return`, %s through %s`},e.prototype.commaAndX0ThroughX1=function(){return`, %s through %s`},e.prototype.first=function(){return`first`},e.prototype.second=function(){return`second`},e.prototype.third=function(){return`third`},e.prototype.fourth=function(){return`fourth`},e.prototype.fifth=function(){return`fifth`},e.prototype.commaOnThe=function(){return`, on the `},e.prototype.spaceX0OfTheMonth=function(){return` %s of the month`},e.prototype.lastDay=function(){return`the last day`},e.prototype.commaOnTheLastX0OfTheMonth=function(){return`, on the last %s of the month`},e.prototype.commaOnlyOnX0=function(){return`, only on %s`},e.prototype.commaAndOnX0=function(){return`, and on %s`},e.prototype.commaEveryX0Months=function(){return`, every %s months`},e.prototype.commaOnlyInX0=function(){return`, only in %s`},e.prototype.commaOnTheLastDayOfTheMonth=function(){return`, on the last day of the month`},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return`, on the last weekday of the month`},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return`, %s days before the last day of the month`},e.prototype.firstWeekday=function(){return`first weekday`},e.prototype.weekdayNearestDayX0=function(){return`weekday nearest day %s`},e.prototype.commaOnTheX0OfTheMonth=function(){return`, on the %s of the month`},e.prototype.commaEveryX0Days=function(){return`, every %s days in a month`},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return`, between day %s and %s of the month`},e.prototype.commaOnDayX0OfTheMonth=function(){return`, on day %s of the month`},e.prototype.commaEveryHour=function(){return`, every hour`},e.prototype.commaEveryX0Years=function(){return`, every %s years`},e.prototype.commaStartingX0=function(){return`, starting %s`},e.prototype.daysOfTheWeek=function(){return[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},e.prototype.monthsOfTheYear=function(){return[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},e.prototype.atReboot=function(){return`Run once, at startup`},e.prototype.onTheHour=function(){return`on the hour`},e}()},515(e,t){Object.defineProperty(t,`__esModule`,{value:!0});function n(e,t){if(!e)throw Error(t)}t.default=function(){function e(){}return e.secondRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,`seconds part must be >= 0 and <= 59`)}},e.minuteRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,`minutes part must be >= 0 and <= 59`)}},e.hourRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=23,`hours part must be >= 0 and <= 23`)}},e.dayOfMonthRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=1&&i<=31,`DOM part must be >= 1 and <= 31`)}},e.monthRange=function(e,t){for(var r=e.split(`,`),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var a=parseInt(r[i],10);n(a>=1&&a<=12,t?`month part must be >= 0 and <= 11`:`month part must be >= 1 and <= 12`)}},e.dayOfWeekRange=function(e,t){for(var r=e.split(`,`),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var a=parseInt(r[i],10);n(a>=0&&a<=6,t?`DOW part must be >= 0 and <= 6`:`DOW part must be >= 1 and <= 7`)}},e}()},823(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.StringUtilities=void 0,t.StringUtilities=function(){function e(){}return e.format=function(e){var t=[...arguments].slice(1);return e.replace(/%s/g,function(e){return t.shift()})},e.containsAny=function(e,t){return t.some(function(t){return e.indexOf(t)>-1})},e}()}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}var r={};return(()=>{var e=r;Object.defineProperty(e,`__esModule`,{value:!0}),e.toString=void 0;var t=n(333),i=n(747);t.ExpressionDescriptor.initialize(new i.enLocaleLoader),e.default=t.ExpressionDescriptor,e.toString=t.ExpressionDescriptor.toString})(),r})())}))(),1),me=[`title`],V={"flex-none":``,"text-left":``},H={flex:`~ gap-2`,"min-w-0":``,"items-center":``,"text-sm":``},U={class:`truncate`},W={"text-xs":``,op50:``},G={key:0},K=[`onClick`],he=Object.assign(i({__name:`CronCollection`,props:{collection:{}},setup(e){let t=e,n=O(),i=r(!0),o=x(()=>B.default.toString(t.collection.cron));return(t,r)=>{let s=P,u=fe;return l(),w(`div`,null,[v(`button`,{flex:`~ gap-2`,"w-full":``,"items-start":``,"items-center":``,p2:``,"hover-bg-active":``,title:o.value,onClick:r[0]||=e=>i.value=!i.value},[v(`div`,V,[T(s,{icon:`carbon:chevron-right`,"mb0.5":``,"transform-rotate":i.value?90:0,transition:``},null,8,[`transform-rotate`])]),v(`span`,H,[T(u,{class:`font-mono n-primary`,textContent:C(e.collection.cron)},null,8,[`textContent`]),v(`span`,U,C(o.value),1),v(`span`,W,`(`+C(e.collection.tasks.length)+`)`,1)])],8,me),r[2]||=v(`div`,{"x-divider":``},null,-1),i.value?(l(),w(`ul`,G,[(l(!0),w(p,null,d(e.collection.tasks,e=>(l(),w(`li`,{key:e},[v(`button`,{flex:`~ gap-2`,"w-full":``,"items-start":``,"items-center":``,px2:``,py1:``,"pl-9":``,"font-mono":``,"hover-bg-active":``,class:c([{"bg-active":a(n)===e}]),onClick:t=>n.value=e},C(e),11,K),r[1]||=v(`div`,{"x-divider":``},null,-1)]))),128))])):f(``,!0)])}}}),{__name:`CronCollection`}),ge={"h-full":``,"w-full":``,flex:`~ col`},_e={flex:`~ col gap-2`,"n-navbar-glass":``,"flex-none":``,p4:``},ve={flex:`~ gap2 items-center`},ye={relative:``,"w-full":``},be={absolute:``,"right-2":``,"top-1.5":``,flex:`~ gap-1`},xe={flex:`~ gap2 wrap`,"w-full":``,"items-center":``,px4:``,pb2:``,"text-center":``,"text-sm":``,border:`b base`},Se={class:`hidden md:block`},Ce={flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},we={key:0,border:`b base`,relative:``,"n-code-block":``},Te={flex:`~ wrap`,"w-full":``},Ee=[`onClick`],De={border:`b base`,flex:`~ gap2`,"items-center":``,px4:``,py2:``},Oe={key:1,"text-xs":``,op50:``},q=Object.assign(i({__name:`ServerTaskDetails`,props:{task:{}},emits:[`openDefaultInput`],setup(e,{emit:t}){let i=e,u=t,h=r({payload:{}}),{inputDefaults:y}=k(`serverRoutes`),[ee,O]=I(),re=oe(),L=F(),R=E({contentType:`text/plain`,data:``,statusCode:200,error:void 0,fetchTime:0}),le=x(()=>JSON.stringify(R.data,null,2)),ue=x(()=>R.contentType.includes(`application/json`)?`json`:`text`),z=r(!1),B=r(!1),me=ae(),V=r(),H=[`json`],U=r(H[0]),W=E({query:[{active:!0,key:``,value:``,type:`string`}],body:[{active:!0,key:``,value:``,type:`string`}],headers:[]}),G=x({get:()=>W[V.value],set:e=>{W[V.value]=e}}),K=x(()=>({...Q(y.value.query),...Q(W.query)})),he=x(()=>({...Q(y.value.headers)})),q=x(()=>Object.keys(h.value?.payload??{}).length?{...h.value}:void 0),J=x(()=>q.value?`POST`:`GET`),Y=x(()=>{let e=window?.location.origin;return e.charAt(e.length-1)===`/`&&(e=e.slice(0,-1)),e}),X=x(()=>{let e=new URLSearchParams(K.value).toString();e&&=`?${e}`;let t=`/_nitro/tasks/${i.task.name}${e}`,n=L.value?.app.baseURL||``;return(n===`./`||n===`.`)&&(n=``),n.endsWith(`/`)&&(n=n.slice(0,-1)),n+t}),Z=x(()=>Y.value+X.value);function Q(e=[]){let t=Object.fromEntries(e.filter(({active:e,key:t,value:n})=>e&&t&&n!==void 0).map(({key:e,value:t})=>[e,t]));return Object.entries(t).length?t:void 0}async function $(){B.value=!0,z.value=!0;let e=Date.now();se(`server-tasks:run`,{method:J.value});try{R.data=await $fetch(Z.value,{method:`POST`,headers:he.value,query:K.value,body:q.value,onResponse({response:e}){R.contentType=(e.headers.get(`content-type`)||``).toString().toLowerCase().trim(),R.statusCode=e.status,R.error=void 0},onResponseError(e){R.error=e.response._data,R.data=e.response._data}})}catch{}z.value=!1,R.fetchTime=Date.now()-e}let ke=x(()=>{let e=[];return e.push({name:`Query`,slug:`query`,length:W.query.length}),e.push({name:`Body`,slug:`body`,length:W.body.length}),e});b(()=>{if(U.value===`json`&&typeof h.value==`string`)try{h.value=JSON.parse(h.value)}catch{}});let Ae=ie(`nuxt-devtools:server-tasks:inputs`,()=>[],{window:window.parent});N([W,V],()=>{let e=Ae.value?.find(e=>e.task===i.task.name);if(e){V.value||=e.tab,e.tab!==V.value&&(e.tab=V.value);let{body:t,query:n,headers:r}=e.inputs;Object.assign(W,{body:t,query:n,headers:r})}else{let e={task:i.task.name,tab:`query`,inputs:W};Ae.value.push(e),V.value||=e.tab}},{immediate:!0,deep:!0,debounce:500});let je=j();return(t,r)=>{let i=ne,b=M,x=P,E=pe,k=te,j=D,N=fe,F=ce,I=s(`tooltip`);return l(),w(`div`,ge,[v(`div`,_e,[v(`div`,ve,[g((l(),w(`div`,null,[T(i,{class:c([`n-badge-base n-sm`,a(A)(J.value)]),"pointer-events-none":``,"font-mono":``,tabindex:`-1`},{default:m(()=>[n(C(J.value),1)]),_:1},8,[`class`])])),[[I,`Method is ${J.value} as ${J.value===`GET`?`no`:``} json body is sent`]]),v(`div`,ye,[T(b,{"model-value":X.value,readonly:``,"flex-auto":``,"font-mono":``,p:`x5 y2`,n:`sm`},null,8,[`model-value`]),v(`div`,be,[g(T(i,{title:`Copy URL`,n:`xs blue`,icon:`carbon:copy`,border:!1,onClick:r[0]||=e=>a(je)(Z.value,`server-task-url`)},null,512),[[I,`Copy URL`]]),g(T(i,{title:`Open in Editor`,icon:`carbon-launch`,n:`xs blue`,border:!1,onClick:r[1]||=t=>a(me)(e.task.handler)},null,512),[[I,`Open in Editor`]])])]),T(i,{"h-full":``,n:`primary solid`,onClick:$},{default:m(()=>[T(x,{icon:`carbon:send`})]),_:1})])]),v(`div`,xe,[(l(!0),w(p,null,d(ke.value,e=>g((l(),_(i,{key:e.slug,class:c(V.value===e.slug?`text-primary n-primary`:`border-transparent shadow-none`),onClick:t=>V.value=e.slug},{default:m(()=>[T(x,{icon:a(de)[e.slug]},null,8,[`icon`]),v(`div`,Se,[n(C(e.name)+` `+C(e?.length?`(${e.length})`:``)+` `,1),v(`span`,null,C(a(y)[e.slug]?.length?`(${a(y)[e.slug].length})`:``),1)])]),_:2},1032,[`class`,`onClick`])),[[I,e.name]])),128))]),T(a(ee),null,{default:m(()=>[T(E,{modelValue:G.value,"onUpdate:modelValue":r[4]||=e=>G.value=e,default:{active:!0,type:`string`},"max-h-xs":``,"of-auto":``},{default:m(()=>[a(y)[V.value]?.length?(l(),w(p,{key:0},[v(`div`,Ce,[r[6]||=v(`div`,{"w-5":``,"x-divider":``},null,-1),r[7]||=v(`div`,{"flex-none":``},` Default Inputs `,-1),T(i,{icon:`i-carbon-edit`,border:!1,onClick:r[2]||=e=>u(`openDefaultInput`)}),r[8]||=v(`div`,{"x-divider":``},null,-1)]),T(E,{modelValue:a(y)[V.value],"onUpdate:modelValue":r[3]||=e=>a(y)[V.value]=e,disabled:``,p0:``},null,8,[`modelValue`])],64)):f(``,!0)]),_:1},8,[`modelValue`])]),_:1}),G.value?(l(),w(`div`,we,[V.value===`body`?(l(),w(p,{key:0},[v(`div`,Te,[(l(),w(p,null,d(H,e=>v(`button`,{key:e,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:c({"border-b":e!==U.value}),onClick:t=>U.value=e},[v(`div`,{class:c({op30:e!==U.value}),"font-mono":``},C(e),3)],10,Ee)),64)),r[9]||=v(`div`,{border:`b base`,"flex-auto":``},null,-1)]),U.value===`input`?(l(),_(a(O),{key:0})):U.value===`json`?(l(),_(a(S),o({key:1,modelValue:h.value,"onUpdate:modelValue":r[5]||=e=>h.value=e,class:[a(re)===`dark`?`jse-theme-dark`:`light`,`json-editor-vue of-auto text-sm outline-none`]},t.$attrs,{mode:`text`,"navigation-bar":!1,indentation:2,"tab-size":2}),null,16,[`modelValue`,`class`])):f(``,!0)],64)):(l(),_(a(O),{key:1}))])):f(``,!0),B.value?z.value?(l(),_(j,{key:2,"z-10":``,"flex-auto":``,"backdrop-blur":``},{default:m(()=>[...r[11]||=[n(` Running... `,-1)]]),_:1})):(l(),w(p,{key:3},[v(`div`,De,[r[13]||=v(`div`,null,`Result`,-1),R.error?(l(),_(N,{key:0,n:`red`},{default:m(()=>[...r[12]||=[n(` Error `,-1)]]),_:1})):f(``,!0),T(N,{n:R.error?`orange`:`green`,textContent:C(R.statusCode)},null,8,[`n`,`textContent`]),R.contentType?(l(),w(`code`,Oe,C(R.contentType),1)):f(``,!0),r[14]||=v(`div`,{"flex-auto":``},null,-1),r[15]||=v(`div`,{op50:``},` Tasks finished in `,-1),T(N,{n:`green`},{default:m(()=>[n(C(R.fetchTime)+` ms `,1)]),_:1})]),T(F,{"flex-auto":``,"overflow-auto":``,"py-2":``,code:le.value,lang:ue.value},null,8,[`code`,`lang`])],64)):(l(),_(k,{key:1},{default:m(()=>[T(i,{n:`primary`,onClick:$},{default:m(()=>[T(x,{icon:`carbon:send`}),r[10]||=n(` Run task `,-1)]),_:1})]),_:1}))])}}}),{__name:`ServerTaskDetails`}),J={"flex-none":``,"text-left":``},Y={flex:``,"items-center":``,"text-sm":``,"font-mono":``},X=Object.assign(i({__name:`ServerTaskListItem`,props:{item:{},index:{default:0}},setup(e){let t=r(!0),i=O();return(r,o)=>{let s=P,m=X;return l(),w(`div`,null,[v(`button`,{flex:`~ gap-2`,"w-full":``,"items-start":``,"items-center":``,px2:``,py1:``,"hover-bg-active":``,class:c([{"bg-active":a(i)===e.item.name}]),style:h({paddingLeft:`calc(0.5rem + ${e.index*1.5}em)`}),onClick:o[0]||=n=>{t.value=!t.value,i.value=e.item.name}},[v(`div`,J,[e.item.type===`collection`?(l(),_(s,{key:0,icon:`carbon:chevron-right`,"mb0.5":``,"transform-rotate":t.value?90:0,transition:``},null,8,[`transform-rotate`])):f(``,!0)]),v(`span`,Y,[e.item.type===`collection`?(l(),_(s,{key:0,title:`${e.item.tasks?.length} tasks`,icon:`carbon:folder`,mr1:``},null,8,[`title`])):(l(),_(s,{key:1,icon:`carbon:play`,ml3:``,mr1:``})),n(` `+C(e.item.name),1)])],6),o[1]||=v(`div`,{"x-divider":``},null,-1),t.value?u(r.$slots,`default`,{key:0},()=>[(l(!0),w(p,null,d(e.item.tasks,t=>(l(),_(m,{key:t.name,item:t,index:e.index+1},null,8,[`item`,`index`]))),128))]):f(``,!0)])}}}),{__name:`ServerTaskListItem`}),Z={flex:`~ gap1`,"text-sm":``},Q={key:0,op50:``},$={op50:``},ke=i({__name:`server-tasks`,setup(e){let t=r(!1),n=R(),i=x(()=>Object.keys(n.value?.tasks??{}).map(e=>({name:e,...n.value.tasks[e],type:`task`}))),o=x(()=>Object.entries(n.value?.scheduledTasks??{}).map(([e,t])=>({cron:e,tasks:t}))),c=O(),{view:u,selectedTask:h,inputDefaults:b}=k(`serverTasks`),S=x(()=>{!c.value&&h.value&&(c.value=h.value.name);let e=i.value.find(e=>e.name===c.value);return c.value!==h.value?.name&&e&&(h.value=e),e}),E=r(``),D=x(()=>new L(i.value,{keys:[`key`,`description`],shouldSort:!0})),A=x(()=>E.value?D.value.search(E.value).map(e=>e.item):i.value),j=x(()=>{let e=[],t=(e,t)=>{e.tasks||=[],e.tasks.push(t)},n=(n,r)=>{let i=r?r.tasks?.find(e=>e.name===n):e.find(e=>e.name===n);if(i)return{...i,type:`collection`};let a={name:n,handler:n,description:``,type:`collection`,tasks:[]};return r?t(r,a):e.push(a),a};return A.value.forEach(r=>{let i,a={...r,type:`task`},o=r.name.split(`:`).concat();o.length>0&&o.at(-1)?.includes(`.`)&&o.pop(),o.forEach(e=>{i=n(e,i)}),i?t(i,a):e.push(a)}),e});function M(){u.value=u.value===`tree`?`list`:`tree`}return(e,n)=>{let r=ne,c=ue,h=he,x=re,D=q,O=ee,k=te,N=pe,P=z,F=le,I=s(`tooltip`);return l(),w(p,null,[T(x,{"storage-key":`tab-server-tasks`},{left:m(()=>[T(x,{horizontal:``,"storage-key":`tab-server-tasks-split`},{left:m(()=>[T(c,{search:E.value,"onUpdate:search":n[1]||=e=>E.value=e,pb2:``},{actions:m(()=>[g(T(r,{"text-lg":``,icon:a(u)===`list`?`i-carbon-list`:`i-carbon-tree-view-alt`,title:`Toggle view`,border:!1,onClick:M},null,8,[`icon`]),[[I,`Toggle View`]]),g(T(r,{"text-lg":``,icon:`i-carbon-cics-sit-overrides`,title:`Default Inputs`,border:!1,onClick:n[0]||=e=>t.value=!t.value},null,512),[[I,`Default Inputs`]])]),default:m(()=>[v(`div`,Z,[E.value?(l(),w(`span`,Q,C(A.value.length)+` matched · `,1)):f(``,!0),v(`span`,$,C(i.value?.length)+` tasks in total`,1)])]),_:1},8,[`search`]),(l(!0),w(p,null,d(a(u)===`tree`?j.value:A.value,e=>(l(),_(X,{key:e.name,item:e},null,8,[`item`]))),128))]),right:m(()=>[n[6]||=v(`div`,{px4:``,py2:``,border:`b base`},` Cron groups `,-1),v(`div`,null,[v(`ul`,null,[(l(!0),w(p,null,d(o.value,e=>(l(),w(`li`,{key:e.cron},[T(h,{collection:e},null,8,[`collection`])]))),128))])])]),_:1})]),right:m(()=>[(l(),_(y,{max:10},[S.value?(l(),_(D,{key:S.value.name,task:S.value,onOpenDefaultInput:n[2]||=e=>t.value=!0},null,8,[`task`])):f(``,!0)],1024)),S.value?f(``,!0):(l(),_(k,{key:0},{default:m(()=>[T(O,{px6:``,py2:``},{default:m(()=>[...n[7]||=[v(`span`,{op75:``},`Select a task to start`,-1)]]),_:1})]),_:1}))]),_:1}),T(F,{modelValue:t.value,"onUpdate:modelValue":n[4]||=e=>t.value=e,"auto-close":``,"max-w-xl":``,"min-w-xl":``,onClose:n[5]||=e=>t.value=!1},{default:m(()=>[v(`div`,null,[n[8]||=v(`div`,{p4:``,border:`b base`},[v(`span`,{"text-lg":``},`Default Inputs`),v(`br`),v(`span`,{"text-white":``,op50:``},`Merged as default for every task in DevTools`)],-1),T(P,{text:`Query ${a(b).query?.length?`(${a(b).query.length})`:``}`,padding:!1,icon:a(de).query},{default:m(()=>[T(N,{modelValue:a(b).query,"onUpdate:modelValue":n[3]||=e=>a(b).query=e,py0:``,default:{active:!0,type:`string`}},null,8,[`modelValue`])]),_:1},8,[`text`,`icon`])])]),_:1},8,[`modelValue`])],64)}}});export{ke as default};