@nuxt/devtools-assets 4.0.0-alpha.17 → 4.0.0-alpha.18

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 (119) hide show
  1. package/dist/200.html +1 -1
  2. package/dist/404.html +1 -1
  3. package/dist/_nuxt/__blank-duvhi4s0.js +1 -0
  4. package/dist/_nuxt/{analyze-build-mx06gzny.js → analyze-build-dxk7tjiy.js} +1 -1
  5. package/dist/_nuxt/assets-cld08ro2.js +6 -0
  6. package/dist/_nuxt/builds/latest.json +1 -1
  7. package/dist/_nuxt/builds/meta/86942b7f-6386-434e-a301-a20a57558faf.json +1 -0
  8. package/dist/_nuxt/{client-isdsnzkc.js → client-cyidxu09.js} +1 -1
  9. package/dist/_nuxt/{code-diff-aox7awkz.js → code-diff-pfug60ft.js} +1 -1
  10. package/dist/_nuxt/code-snippets-etap53uo.js +1 -0
  11. package/dist/_nuxt/components-bruexj4a.js +1 -0
  12. package/dist/_nuxt/composable-item-exu2bqh0.js +1 -0
  13. package/dist/_nuxt/custom-_name_-fx9q0yyk.js +1 -0
  14. package/dist/_nuxt/{data-schema-button-nejbso3a.js → data-schema-button-f6b405qw.js} +1 -1
  15. package/dist/_nuxt/{data-schema-drawer-cyds4slu.js → data-schema-drawer-dxgx2sok.js} +1 -1
  16. package/dist/_nuxt/{debug-hy943rmh.js → debug-kza8ei0b.js} +1 -1
  17. package/dist/_nuxt/{default-nolflry3.js → default-kwc4wduv.js} +1 -1
  18. package/dist/_nuxt/{duration-display-bfa7tdhy.js → duration-display-cx0hums1.js} +1 -1
  19. package/dist/_nuxt/entry.css-ny90blho.css +1 -0
  20. package/dist/_nuxt/{error-404-z2sv9me5.js → error-404-jbz5s8g8.js} +1 -1
  21. package/dist/_nuxt/error-404.css-ejpwqziw.css +1 -0
  22. package/dist/_nuxt/{error-500-l3cj8aiw.js → error-500-cx8lxiju.js} +1 -1
  23. package/dist/_nuxt/error-500.css-jfxw36zl.css +1 -0
  24. package/dist/_nuxt/{error-cqwvz6a2.js → error-hs90qh5b.js} +1 -1
  25. package/dist/_nuxt/{filepath-item-kujqy5gq.js → filepath-item-jfkmuag3.js} +1 -1
  26. package/dist/_nuxt/full-pcoyx8ep.js +1 -0
  27. package/dist/_nuxt/{help-fab-eztpqydj.js → help-fab-husn5zkx.js} +1 -1
  28. package/dist/_nuxt/{hooks-h03g6orv.js → hooks-k0xbsxx4.js} +1 -1
  29. package/dist/_nuxt/{imports-d1ni46gq.js → imports-f5rpxqxi.js} +1 -1
  30. package/dist/_nuxt/{launch-page-e53nsn8f.js → launch-page-krdr9p9s.js} +1 -1
  31. package/dist/_nuxt/ld8feoqj.js +4 -0
  32. package/dist/_nuxt/modules-g6lf7tbt.js +1 -0
  33. package/dist/_nuxt/nbadge-c0z39lwn.js +1 -0
  34. package/dist/_nuxt/ncard-nledjs9m.js +1 -0
  35. package/dist/_nuxt/ncheckbox-f45numwj.js +1 -0
  36. package/dist/_nuxt/{ncode-block-f4kik52y.js → ncode-block-lo7bvbmn.js} +2 -2
  37. package/dist/_nuxt/ndrawer-hxy5nweo.js +1 -0
  38. package/dist/_nuxt/{ndropdown-cxmewkaz.js → ndropdown-hjlja5vm.js} +1 -1
  39. package/dist/_nuxt/nicon-ed7stj2f.js +6 -0
  40. package/dist/_nuxt/nicon-title-bc8690za.js +1 -0
  41. package/dist/_nuxt/{nlink-mtrcumg5.js → nlink-o04f6a2k.js} +1 -1
  42. package/dist/_nuxt/nmarkdown-ibxzh9l6.js +1 -0
  43. package/dist/_nuxt/{nnavbar-pi84aw7c.js → nnavbar-m0eev8zc.js} +1 -1
  44. package/dist/_nuxt/none-gtecxc1k.js +1 -0
  45. package/dist/_nuxt/npanel-grids-d696wmf0.js +1 -0
  46. package/dist/_nuxt/nsection-block-giwyhvyv.js +1 -0
  47. package/dist/_nuxt/nselect-flx4akj0.js +1 -0
  48. package/dist/_nuxt/{nselect-tabs-byr1oxdo.js → nselect-tabs-fbhx95rz.js} +1 -1
  49. package/dist/_nuxt/{nsplit-pane-l7s189f9.js → nsplit-pane-wqr6p2la.js} +1 -1
  50. package/dist/_nuxt/{ntip-hr3trgow.js → ntip-oo98nqyy.js} +1 -1
  51. package/dist/_nuxt/{nuxt-h9oupmdm.js → nuxt-ekhuaqhk.js} +1 -1
  52. package/dist/_nuxt/nuxt-link-d782yzf7.js +1 -0
  53. package/dist/_nuxt/{open-graph-o813i4j9.js → open-graph-navpqc2c.js} +2 -2
  54. package/dist/_nuxt/overview-kv0fmfnk.js +1 -0
  55. package/dist/_nuxt/pages-kew0035o.js +1 -0
  56. package/dist/_nuxt/{pages-cs3ltnrp.js → pages-mw4ap9gs.js} +1 -1
  57. package/dist/_nuxt/{payload-l5jnvm6t.js → payload-hjp0verv.js} +1 -1
  58. package/dist/_nuxt/{plugins-c64ilcvx.js → plugins-r4yackt3.js} +1 -1
  59. package/dist/_nuxt/ready-nojqt2hc.js +2 -0
  60. package/dist/_nuxt/{runtime-configs-mfcb315a.js → runtime-configs-j8ng620p.js} +1 -1
  61. package/dist/_nuxt/server-route-inputs-nejfwmwu.js +1 -0
  62. package/dist/_nuxt/server-routes-fo5k6yv1.js +7 -0
  63. package/dist/_nuxt/server-tasks-nchgmtl9.js +1 -0
  64. package/dist/_nuxt/{settings-ep7t26ei.js → settings-c4cui6u6.js} +1 -1
  65. package/dist/_nuxt/{stacktrace-list-cfwhctks.js → stacktrace-list-i7wlo6xl.js} +1 -1
  66. package/dist/_nuxt/{state-components-br7jp8yj.js → state-components-f0u4jm29.js} +1 -1
  67. package/dist/_nuxt/{state-editor-jxoac2ib.js → state-editor-eohzeblc.js} +1 -1
  68. package/dist/_nuxt/state-modules-h1enh4jx.js +1 -0
  69. package/dist/_nuxt/{state-tabs-b3e5zuzx.js → state-tabs-f1nalpue.js} +1 -1
  70. package/dist/_nuxt/storage-l7nk970m.js +1 -0
  71. package/dist/_nuxt/{timeline-e1penzou.js → timeline-ia9tekca.js} +2 -2
  72. package/dist/_nuxt/{unhead.-h-zvkou0-h4yxlimi.js → unhead.-h-zvkou0-b7ygyvjk.js} +1 -1
  73. package/dist/_nuxt/utils-mae882d9.js +1 -0
  74. package/dist/_nuxt/vendor/{json-editor-vue-fkdh1klf.js → json-editor-vue-gdztbg5h.js} +1 -1
  75. package/dist/_nuxt/vendor/unocss-dy47a456.js +1 -0
  76. package/dist/_nuxt/{virtual-files-cr8w7ex9.js → virtual-files-gj441pwv.js} +1 -1
  77. package/dist/_nuxt/virtual_nuxt_node_modules_.cache_nuxt_.nuxt_fetch.client-bkuxbmrx.js +1 -0
  78. package/dist/index.html +1 -1
  79. package/dist/manifest.json +488 -519
  80. package/package.json +1 -1
  81. package/dist/_nuxt/__blank-izru1ckj.js +0 -1
  82. package/dist/_nuxt/assets-kydmjpuz.js +0 -6
  83. package/dist/_nuxt/auth-required-panel-d9a2gj3q.js +0 -1
  84. package/dist/_nuxt/builds/meta/dea937ff-9406-48e3-9804-06dd21d77cf6.json +0 -1
  85. package/dist/_nuxt/code-snippets-m62u6yd8.js +0 -1
  86. package/dist/_nuxt/components-dkennggl.js +0 -1
  87. package/dist/_nuxt/composable-item-oenhmpx5.js +0 -1
  88. package/dist/_nuxt/custom-_name_-blbqco08.js +0 -1
  89. package/dist/_nuxt/dist-ab3sd6pr.js +0 -1
  90. package/dist/_nuxt/dist-lvaa0lle.js +0 -1
  91. package/dist/_nuxt/entry.css-ma7m5swn.css +0 -1
  92. package/dist/_nuxt/error-404.css-b8zjq7ea.css +0 -1
  93. package/dist/_nuxt/error-500.css-ild3bi8t.css +0 -1
  94. package/dist/_nuxt/full-ot2unqbd.js +0 -1
  95. package/dist/_nuxt/ktdx7oyd.js +0 -4
  96. package/dist/_nuxt/modules-itsrjosc.js +0 -1
  97. package/dist/_nuxt/nbadge-ja4fxo56.js +0 -1
  98. package/dist/_nuxt/ncard-f2liacxt.js +0 -1
  99. package/dist/_nuxt/ncheckbox-d2wf47xz.js +0 -1
  100. package/dist/_nuxt/ndrawer-edk4y6ll.js +0 -1
  101. package/dist/_nuxt/nicon-d8lpuciu.js +0 -4
  102. package/dist/_nuxt/nicon-title-kwlana4c.js +0 -1
  103. package/dist/_nuxt/nmarkdown-gg043lmq.js +0 -1
  104. package/dist/_nuxt/none-jsq59fxa.js +0 -1
  105. package/dist/_nuxt/npanel-grids-in0i9eer.js +0 -1
  106. package/dist/_nuxt/nsection-block-gdm9xag4.js +0 -1
  107. package/dist/_nuxt/nselect-3b8axifj.js +0 -1
  108. package/dist/_nuxt/nuxt-link-nsobxibx.js +0 -1
  109. package/dist/_nuxt/overview-hagd0khm.js +0 -1
  110. package/dist/_nuxt/pages-heyvu23l.js +0 -1
  111. package/dist/_nuxt/ready-7locjahi.js +0 -2
  112. package/dist/_nuxt/server-route-inputs-jp12kokj.js +0 -1
  113. package/dist/_nuxt/server-routes-d7ujk0tf.js +0 -7
  114. package/dist/_nuxt/server-tasks-gezqe3qz.js +0 -1
  115. package/dist/_nuxt/state-modules-c3esg60x.js +0 -1
  116. package/dist/_nuxt/storage-c01ryjzw.js +0 -1
  117. package/dist/_nuxt/unocss-runtime-kctymyzt.js +0 -1
  118. package/dist/_nuxt/utils-mmchty8m.js +0 -1
  119. package/dist/_nuxt/vendor/unocss-lgf54nsl.js +0 -3
@@ -1 +1 @@
1
- import{O as e,ft as t,pt as n,vt as r,w as i,xt as a}from"./vendor/json-editor-vue-fkdh1klf.js";function o(e,...t){return typeof e==`function`?e(...t):e}var s=Error.captureStackTrace,c=class e extends Error{name;code;docs;fix;sources;get why(){return this.message}constructor(t,n=e){super(t.why,{cause:t.cause}),this.code=this.name=t.code,this.fix=t.fix,this.docs=t.docs,this.sources=t.sources,s?.(this,n)}toJSON(){return{name:this.name,why:this.why,fix:this.fix,docs:this.docs,sources:this.sources,cause:this.cause,stack:this.stack}}};function l(e,t){return typeof e==`string`?`${e}/${t.toLowerCase()}`:e?.(t)}function u(e){let t=e.reporters??[],n={},{docsBase:r}=e;for(let i of Object.keys(e.codes)){let a=e.codes[i],s=a.docs===!1?void 0:a.docs||l(r,i),u=(e={},n={})=>{let r=new c({code:i,why:o(a.why,e),fix:o(a.fix,e),docs:s,cause:e.cause,sources:e.sources},u);for(let e of t)e(r,n);return r};n[i]=u}return n}function d(e={}){let{docsBase:t,reporters:n=[]}=e;return new Proxy({},{get(e,r){if(typeof r!=`string`)return;let i=(e={},a={})=>{let o=l(t,r),s=new c({code:r,why:o??``,docs:o,cause:e.cause,sources:e.sources},i);for(let e of n)e(s,a);return s};return i}})}function f(e){return`https://nuxt.com/docs/4.x/errors/${e.replace(`NUXT_`,``).toLowerCase()}`}var p=[e=>{console.error(`[${e.name}]`)}],m=d({docsBase:f,reporters:p});function h(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?h(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var g=(()=>{if(console.createTask)return console.createTask;let e={run:e=>e()};return()=>e})();function _(e,t,n,r){for(let i=n;i<e.length;i+=1)try{let n=r?r.run(()=>e[i](...t)):e[i](...t);if(n&&typeof n.then==`function`)return Promise.resolve(n).then(()=>_(e,t,i+1,r))}catch(e){return Promise.reject(e)}}function v(e,t,n){if(e.length>0)return _(e,t,0,g(n))}function y(e,t,n){if(e.length>0){let r=g(n);return Promise.all(e.map(e=>r.run(()=>e(...t))))}}function b(e,t){for(let n of[...e])n(t)}var x=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];this._hooks[e]=void 0;for(let t of n)this.hook(e,t)}deprecateHooks(e){for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=h(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n)e();n.length=0}}removeHooks(e){let t=h(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(v,e,t)}callHookParallel(e,...t){return this.callHookWith(y,e,t)}callHookWith(e,t,n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&b(this._before,r);let i=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return i instanceof Promise?i.finally(()=>{this._after&&r&&b(this._after,r)}):(this._after&&r&&b(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function S(){return new x}var C=class{_hooks;constructor(){this._hooks={}}hook(e,t){return!e||typeof t!=`function`?()=>{}:(this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)})}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}callHook(e,...t){let n=this._hooks[e];if(n&&n.length!==0)return _(n,t,0)}};function w(){return globalThis.AsyncLocalStorage||globalThis.process?.getBuiltinModule?.(`node:async_hooks`)?.AsyncLocalStorage}var T=globalThis.WeakRef||class{#e;constructor(e){this.#e=e}deref(){return this.#e}};function E(e={}){let t,n=!1,r=e=>{if(t&&t!==e)throw Error(`Context conflict`)},i;if(e.asyncContext){let t=e.AsyncLocalStorage||w();t?i=new t:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}let a=e=>i&&typeof e==`object`&&e?{__unctx_weak:new T(e)}:e,o=e=>e&&e.__unctx_weak?e.__unctx_weak.deref():e,s=()=>{if(i){let e=i.getStore();if(e!==void 0)return o(e)}return t};return{use:()=>{let e=s();if(e===void 0)throw Error(`Context is not available`);return e},tryUse:()=>s()??null,set:(e,i)=>{i||r(e),t=e,n=!0},unset:()=>{t=void 0,n=!1},call:(e,o)=>{r(e),t=e;try{return i?i.run(a(e),o):o()}finally{n||(t=void 0)}},async callAsync(e,r){t=e;let o=()=>{t=e},s=()=>t===e?o:void 0;M.add(s);try{let o=i?i.run(a(e),r):r();return n||(t=void 0),await o}finally{M.delete(s)}}}}function ee(e={}){let t={};return{get(n,r={}){return t[n]||(t[n]=E({...e,...r})),t[n]}}}var D=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof global<`u`?global:typeof window<`u`?window:{},O=`__unctx__`,k=D[O]||(D[O]=ee()),A=(e,t={})=>k.get(e,t),j=`__unctx_async_handlers__`,M=D[j]||(D[j]=new Set);function N(e){let t=[];for(let e of M){let n=e();n&&t.push(n)}let n=()=>{for(let e of t)e()},r=e();return r&&typeof r==`object`&&`catch`in r&&(r=r.catch(e=>{throw n(),e})),[r,n]}var P={meta:[{name:`viewport`,content:`width=device-width, initial-scale=1`},{charset:`utf-8`}],link:[],style:[],script:[],noscript:[]},F={id:`__nuxt-loader`},I={componentName:`NuxtLink`,prefetch:!0,prefetchOn:{visibility:!0}},L={deep:!1},R={},z=`#__nuxt`,B=`nuxt-app`,V=36e5,H=`vite:preloadError`;function U(e=`nuxt-app`){return A(e,{asyncContext:!1})}var W=`__nuxt_plugin`;function G(e){let i=0,o={_id:e.id||`nuxt-app`,_scope:t(),provide:void 0,versions:{get nuxt(){return`5.0.0-29806258.d070492f`},get vue(){return o.vueApp.version}},payload:a({...e.ssrContext?.payload||{},data:a({}),state:r({}),once:new Set,_errors:a({})}),static:{data:{}},runWithContext(e){return o._scope.active&&!n()?o._scope.run(()=>Y(o,e)):Y(o,e)},isHydrating:!0,deferHydration(){if(!o.isHydrating)return()=>{};i++;let e=!1;return()=>{if(!e&&(e=!0,i--,i===0))return o.isHydrating=!1,o.callHook(`app:suspense:resolve`)}},_asyncDataPromises:{},_asyncData:a({}),_state:a({}),_payloadRevivers:{},...e};{let e=window.__NUXT__;if(e)for(let t in e)switch(t){case`data`:case`state`:case`_errors`:Object.assign(o.payload[t],e[t]);break;default:o.payload[t]=e[t]}}o.hooks=S(),o.hook=o.hooks.hook,o.callHook=o.hooks.callHook,o.provide=(e,t)=>{let n=`$`+e;$(o,n,t),$(o.vueApp.config.globalProperties,n,t)},$(o.vueApp,`$nuxt`,o),$(o.vueApp.config.globalProperties,`$nuxt`,o);{window.addEventListener(H,e=>{o.callHook(`app:chunkError`,{error:e.payload}),e.payload?.message?.includes(`Unable to preload CSS`)&&e.preventDefault()}),window.useNuxtApp||=Z;let e=o.hook(`app:error`,(...e)=>{m.NUXT_E1005({cause:e.length>1?e:e[0]})});o.hook(`app:mounted`,e)}let s=o.payload.config;return o.provide(`config`,s),o}async function K(e,t){if(typeof t==`function`){let{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n==`object`)for(let t in n)e.provide(t,n[t])}}async function q(e,t){let n;for(let r of t)try{await K(e,r)}catch(t){if(!e.payload.error)throw t;n||=t}if(n)throw e.payload.error||n}function J(e){if(typeof e==`function`)return e;let t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[W]:!0,_name:t})}function Y(e,t,n){return U(e._id).set(e),e.vueApp.runWithContext(()=>n?t(...n):t())}function X(t){let n;return e()&&(n=i()?.appContext.app.$nuxt),n||=U(t).tryUse(),n||null}function Z(e){let t=X(e);if(!t)throw m.NUXT_E1001();return t}function Q(){return Z().$config}function $(e,t,n){Object.defineProperty(e,t,{get:()=>n})}export{f as _,Q as a,d as b,F as c,I as d,V as f,m as g,C as h,Z as i,L as l,N as m,G as n,P as o,z as p,J as r,B as s,q as t,R as u,p as v,u as y};
1
+ import{O as e,ft as t,pt as n,vt as r,w as i,xt as a}from"./vendor/json-editor-vue-gdztbg5h.js";function o(e,...t){return typeof e==`function`?e(...t):e}var s=Error.captureStackTrace,c=class e extends Error{name;code;docs;fix;sources;get why(){return this.message}constructor(t,n=e){super(t.why,{cause:t.cause}),this.code=this.name=t.code,this.fix=t.fix,this.docs=t.docs,this.sources=t.sources,s?.(this,n)}toJSON(){return{name:this.name,why:this.why,fix:this.fix,docs:this.docs,sources:this.sources,cause:this.cause,stack:this.stack}}};function l(e,t){return typeof e==`string`?`${e}/${t.toLowerCase()}`:e?.(t)}function u(e){let t=e.reporters??[],n={},{docsBase:r}=e;for(let i of Object.keys(e.codes)){let a=e.codes[i],s=a.docs===!1?void 0:a.docs||l(r,i),u=(e={},n={})=>{let r=new c({code:i,why:o(a.why,e),fix:o(a.fix,e),docs:s,cause:e.cause,sources:e.sources},u);for(let e of t)e(r,n);return r};n[i]=u}return n}function d(e={}){let{docsBase:t,reporters:n=[]}=e;return new Proxy({},{get(e,r){if(typeof r!=`string`)return;let i=(e={},a={})=>{let o=l(t,r),s=new c({code:r,why:o??``,docs:o,cause:e.cause,sources:e.sources},i);for(let e of n)e(s,a);return s};return i}})}function f(e){return`https://nuxt.com/docs/4.x/errors/${e.replace(`NUXT_`,``).toLowerCase()}`}var p=[e=>{console.error(`[${e.name}]`)}],m=d({docsBase:f,reporters:p});function h(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?h(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var g=(()=>{if(console.createTask)return console.createTask;let e={run:e=>e()};return()=>e})();function _(e,t,n,r){for(let i=n;i<e.length;i+=1)try{let n=r?r.run(()=>e[i](...t)):e[i](...t);if(n&&typeof n.then==`function`)return Promise.resolve(n).then(()=>_(e,t,i+1,r))}catch(e){return Promise.reject(e)}}function v(e,t,n){if(e.length>0)return _(e,t,0,g(n))}function y(e,t,n){if(e.length>0){let r=g(n);return Promise.all(e.map(e=>r.run(()=>e(...t))))}}function b(e,t){for(let n of[...e])n(t)}var x=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];this._hooks[e]=void 0;for(let t of n)this.hook(e,t)}deprecateHooks(e){for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=h(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n)e();n.length=0}}removeHooks(e){let t=h(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(v,e,t)}callHookParallel(e,...t){return this.callHookWith(y,e,t)}callHookWith(e,t,n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&b(this._before,r);let i=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return i instanceof Promise?i.finally(()=>{this._after&&r&&b(this._after,r)}):(this._after&&r&&b(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function S(){return new x}var C=class{_hooks;constructor(){this._hooks={}}hook(e,t){return!e||typeof t!=`function`?()=>{}:(this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)})}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}callHook(e,...t){let n=this._hooks[e];if(n&&n.length!==0)return _(n,t,0)}};function w(){return globalThis.AsyncLocalStorage||globalThis.process?.getBuiltinModule?.(`node:async_hooks`)?.AsyncLocalStorage}var T=globalThis.WeakRef||class{#e;constructor(e){this.#e=e}deref(){return this.#e}};function E(e={}){let t,n=!1,r=e=>{if(t&&t!==e)throw Error(`Context conflict`)},i;if(e.asyncContext){let t=e.AsyncLocalStorage||w();t?i=new t:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}let a=e=>i&&typeof e==`object`&&e?{__unctx_weak:new T(e)}:e,o=e=>e&&e.__unctx_weak?e.__unctx_weak.deref():e,s=()=>{if(i){let e=i.getStore();if(e!==void 0)return o(e)}return t};return{use:()=>{let e=s();if(e===void 0)throw Error(`Context is not available`);return e},tryUse:()=>s()??null,set:(e,i)=>{i||r(e),t=e,n=!0},unset:()=>{t=void 0,n=!1},call:(e,o)=>{r(e),t=e;try{return i?i.run(a(e),o):o()}finally{n||(t=void 0)}},async callAsync(e,r){t=e;let o=()=>{t=e},s=()=>t===e?o:void 0;N.add(s);try{let o=i?i.run(a(e),r):r();return n||(t=void 0),await o}finally{N.delete(s)}}}}function D(e={}){let t={};return{get(n,r={}){return t[n]||(t[n]=E({...e,...r})),t[n]}}}var O=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof global<`u`?global:typeof window<`u`?window:{},k=`__unctx__`,A=O[k]||(O[k]=D()),j=(e,t={})=>A.get(e,t),M=`__unctx_async_handlers__`,N=O[M]||(O[M]=new Set);function P(e){let t=[];for(let e of N){let n=e();n&&t.push(n)}let n=()=>{for(let e of t)e()},r=e();return r&&typeof r==`object`&&`catch`in r&&(r=r.catch(e=>{throw n(),e})),[r,n]}var F={meta:[{name:`viewport`,content:`width=device-width, initial-scale=1`},{charset:`utf-8`}],link:[],style:[],script:[],noscript:[]},I={id:`__nuxt-loader`},L={componentName:`NuxtLink`,prefetch:!0,prefetchOn:{visibility:!0}},R={deep:!1},z=`#__nuxt`,B=`nuxt-app`,V=36e5,H=`vite:preloadError`;function U(e=`nuxt-app`){return j(e,{asyncContext:!1})}var W=`__nuxt_plugin`;function G(e){let i=0,o={_id:e.id||`nuxt-app`,_scope:t(),provide:void 0,versions:{get nuxt(){return`5.0.0-29806258.d070492f`},get vue(){return o.vueApp.version}},payload:a({...e.ssrContext?.payload||{},data:a({}),state:r({}),once:new Set,_errors:a({})}),static:{data:{}},runWithContext(e){return o._scope.active&&!n()?o._scope.run(()=>Y(o,e)):Y(o,e)},isHydrating:!0,deferHydration(){if(!o.isHydrating)return()=>{};i++;let e=!1;return()=>{if(!e&&(e=!0,i--,i===0))return o.isHydrating=!1,o.callHook(`app:suspense:resolve`)}},_asyncDataPromises:{},_asyncData:a({}),_state:a({}),_payloadRevivers:{},...e};{let e=window.__NUXT__;if(e)for(let t in e)switch(t){case`data`:case`state`:case`_errors`:Object.assign(o.payload[t],e[t]);break;default:o.payload[t]=e[t]}}o.hooks=S(),o.hook=o.hooks.hook,o.callHook=o.hooks.callHook,o.provide=(e,t)=>{let n=`$`+e;$(o,n,t),$(o.vueApp.config.globalProperties,n,t)},$(o.vueApp,`$nuxt`,o),$(o.vueApp.config.globalProperties,`$nuxt`,o);{window.addEventListener(H,e=>{o.callHook(`app:chunkError`,{error:e.payload}),e.payload?.message?.includes(`Unable to preload CSS`)&&e.preventDefault()}),window.useNuxtApp||=Z;let e=o.hook(`app:error`,(...e)=>{m.NUXT_E1005({cause:e.length>1?e:e[0]})});o.hook(`app:mounted`,e)}let s=o.payload.config;return o.provide(`config`,s),o}async function K(e,t){if(typeof t==`function`){let{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n==`object`)for(let t in n)e.provide(t,n[t])}}async function q(e,t){let n;for(let r of t)try{await K(e,r)}catch(t){if(!e.payload.error)throw t;n||=t}if(n)throw e.payload.error||n}function J(e){if(typeof e==`function`)return e;let t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[W]:!0,_name:t})}function Y(e,t,n){return U(e._id).set(e),e.vueApp.runWithContext(()=>n?t(...n):t())}function X(t){let n;return e()&&(n=i()?.appContext.app.$nuxt),n||=U(t).tryUse(),n||null}function Z(e){let t=X(e);if(!t)throw m.NUXT_E1001();return t}function Q(){return Z().$config}function $(e,t,n){Object.defineProperty(e,t,{get:()=>n})}export{p as _,Q as a,I as c,V as d,z as f,f as g,m as h,Z as i,R as l,C as m,G as n,F as o,P as p,J as r,B as s,q as t,L as u,u as v,d as y};
@@ -0,0 +1 @@
1
+ import{a as e,i as t,u as n}from"./nuxt-ekhuaqhk.js";import{C as r,Ct as i,D as a,I as o,Y as s,bt as c,d as l,kt as u,z as d}from"./vendor/json-editor-vue-gdztbg5h.js";import{$ as f,Q as p,Z as m,dt as h,it as g,l as _,n as v,nt as y,o as b,ot as x,pt as S,r as C,st as w,t as T,tt as E}from"./ready-nojqt2hc.js";var D={scrollBehavior(e,n,r){let i=t(),a=E(),o=a.options?.scrollBehaviorType??`auto`;return e.path.replace(/\/$/,``)===n.path.replace(/\/$/,``)?n.hash&&!e.hash?r??{left:0,top:0}:e.hash?{el:e.hash,top:O(e.hash),behavior:o}:!1:(typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,n):e.meta.scrollToTop)===!1?!1:n===_?k(e,n,r,o):new Promise(t=>{let s=()=>{requestAnimationFrame(()=>{if(a.currentRoute.value.fullPath!==e.fullPath){t(!1);return}t(k(e,n,r,o))})};i.hooks.hookOnce(`page:loading:end`,()=>{let e=i[`~transitionPromise`];e?e.then(s):s()})})}};function O(e){try{let t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function k(e,t,n,r){return n||(e.hash?{el:e.hash,top:O(e.hash),behavior:b(e,t)?r:`instant`}:{left:0,top:0})}var A={hashMode:!0,scrollBehaviorType:`auto`,sensitive:!0,...D};function j(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function M(e,t=E()){let{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;let i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>M(e,t));t._routePreloaded.add(n);for(let e of r){let t=e.components?.default;if(typeof t!=`function`)continue;let n=Promise.resolve(t()).catch(()=>{}).finally(()=>i.splice(i.indexOf(n),1));i.push(n)}await Promise.all(i)}var N=(...e)=>e.find(e=>e!==void 0);function P(e){let t=e.replace(/[\u0000-\u001F\s]+/g,``);for(;t.toLowerCase().startsWith(`view-source:`);)t=t.slice(12);let n=t.indexOf(`:`);return n>0&&g(t.slice(0,n+1))?null:e}function F(n){let h=n.componentName||`NuxtLink`;function g(e){return!1}function _(e,t,r){let i=r??n.trailingSlash;if(!e||i!==`append`&&i!==`remove`)return e;if(typeof e==`string`)return L(e,i);let a=`path`in e&&e.path!==void 0?e.path:t(e).path;return{...e,name:void 0,path:L(a,i)}}function b(t){let r=E(),i=e(),a=l(()=>!!u(t.target)&&u(t.target)!==`_self`),o=l(()=>{let e=u(t.to)||u(t.href)||``;return typeof e==`string`&&y(e,{acceptRelative:!0})}),s=l(()=>{if(u(t.external))return!0;let e=u(t.to)||u(t.href)||``;return typeof e==`object`?!1:e===``||o.value}),c=l(()=>{let e=u(t.to)||u(t.href)||``;return s.value?e:_(e,r.resolve,u(t.trailingSlash))}),d=l(()=>{let e=u(t.trailingSlash)??n.trailingSlash;if(!c.value||o.value||g(c.value)){let e=c.value;return typeof e==`string`?P(e):e}if(s.value){let t=typeof c.value==`object`&&`path`in c.value?f(c.value):c.value,n=typeof t==`object`?r.resolve(t).href:t,i=typeof n==`string`?P(n):n;return i===null?null:L(i,e)}return typeof c.value==`object`?r.resolve(c.value)?.href??null:L(x(i.app.baseURL,c.value),e)});return{to:c,hasTarget:a,isAbsoluteUrl:o,isExternal:s,href:d,async navigate(e){d.value!==null&&await p(d.value,{replace:u(t.replace),external:s.value||a.value})}}}function S(e){let t=E(),n=b(e),r=s(`RouterLink`),i=r&&typeof r!=`string`?r.useLink:void 0,a=n.isExternal.value?void 0:i?.({...e,to:n.to,viewTransition:u(e.viewTransition)});return{...n,isActive:a?.isActive??l(()=>n.to.value===t.currentRoute.value.path),isExactActive:a?.isExactActive??l(()=>n.to.value===t.currentRoute.value.path),route:a?.route??l(()=>t.resolve(n.to.value))}}return r({name:h,props:{to:{type:[String,Object],required:!1},href:{type:[String,Object],required:!1},target:{type:String,required:!1},rel:{type:String,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},prefetchedClass:{type:String,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,required:!1}},useLink:S,setup(e,{slots:r}){let l=E(),u=s(`RouterLink`),{to:p,href:h,navigate:_,isExternal:y,hasTarget:x,isAbsoluteUrl:S}=b(e),D=i(!1),O=c(null),k=t=>{O.value=e.custom?t?.$el?.nextElementSibling:t?.$el};function A(t){return!!(!D.value&&(typeof e.prefetchOn==`string`?e.prefetchOn===t:e.prefetchOn?.[t]??n.prefetchOn?.[t])&&(e.prefetch??n.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!==`_blank`&&!B())}async function j(e=t()){if(D.value||h.value===null)return;D.value=!0;let n=typeof p.value==`string`?p.value:y.value?f(p.value):l.resolve(p.value).fullPath,r=y.value?new URL(n,window.location.href).href:n;await Promise.all([e.hooks.callHook(`link:prefetch`,r)?.catch(()=>{}),!y.value&&!x.value&&M(p.value,l).catch(()=>{})])}if(!e.custom&&A(`visibility`)){let e=t(),n,r=null;d(()=>{let t=R();T(()=>{n=C(()=>{O?.value?.tagName&&(r=t.observe(O.value,async()=>{r?.(),r=null,await j(e)}))})})}),o(()=>{n&&v(n),r?.(),r=null})}return()=>{let t=e.target||null,i=N(e.noRel?``:e.rel,n.externalRelAttribute,S.value||x.value?`noopener noreferrer`:``)||null,o=e=>({href:h.value,navigate:_,get route(){if(!h.value)return;let e=new URL(h.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return w(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:h.value}},rel:i,target:t,isExternal:y.value||x.value,isActive:!1,isExactActive:!1,...e,prefetch:j,prefetched:D.value,shouldPrefetch:A});if(!y.value&&!x.value&&!g(p.value)){let t={ref:k,to:p.value,activeClass:e.activeClass||n.activeClass,exactActiveClass:e.exactActiveClass||n.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(A(`interaction`)&&(t.onPointerenter=j.bind(null,void 0),t.onFocus=j.bind(null,void 0)),D.value&&(t.class=e.prefetchedClass||n.prefetchedClass),t.rel=e.rel||void 0),a(u,t,e.custom&&r.default?{default:e=>r.default(o(e))}:r.default)}return e.custom?r.default?r.default(o()):null:a(`a`,{ref:O,href:h.value||null,rel:i,target:t,onClick:async t=>{if(!(y.value||x.value)){t.preventDefault();try{let t=m(h.value??``);return await(e.replace?l.replace(t):l.push(t))}finally{if(g(p.value)){let e=p.value.slice(1),t=e;try{t=decodeURIComponent(e)}catch{}document.getElementById(t)?.focus()}}}}},r.default?.())}}})}var I=F(n);function L(e,t){if(t!==`append`&&t!==`remove`)return e;let n=t===`append`?h:S;return y(e)&&!e.startsWith(`http`)?e:n(e,!0)}function R(){let e=t();if(e._observer)return e._observer;let n=null,r=new Map;return e._observer={observe:(e,t)=>(n||=new IntersectionObserver(e=>{for(let t of e){let e=r.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),r.set(e,t),n.observe(e),()=>{r.delete(e),n?.unobserve(e),r.size===0&&(n?.disconnect(),n=null)})}}var z=/2g/;function B(){let e=navigator.connection;return!!(e&&(e.saveData||z.test(e.effectiveType)))}export{M as a,j as i,B as n,A as o,R as r,I as t};
@@ -1,3 +1,3 @@
1
- import{F as e,G as t,O as n,P as r,W as i,c as a,l as o,o as s,s as c,x as l}from"./nicon-d8lpuciu.js";import{C as u,H as d,N as f,Qt as p,X as m,Yt as h,Zt as g,a as _,b as v,bt as y,ct as b,d as x,f as S,h as C,kt as w,lt as T,m as E,p as D,q as O,x as k}from"./vendor/json-editor-vue-fkdh1klf.js";import{Y as A,gt as ee}from"./ready-7locjahi.js";import{o as j,x as te}from"./utils-mmchty8m.js";import{a as M}from"./unhead.-h-zvkou0-h4yxlimi.js";import{t as N}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as P}from"./ncard-f2liacxt.js";import{_ as F,n as I,r as L,y as R}from"#entry";import{t as z}from"./ncode-block-f4kik52y.js";import{t as B}from"./composables-ioamscf4.js";import{t as V}from"./help-fab-eztpqydj.js";import{t as H}from"./nnavbar-pi84aw7c.js";import{t as U}from"./nsection-block-gdm9xag4.js";import{t as W}from"./nlink-mtrcumg5.js";var G=[{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.`}],K={flex:`~ wrap`,"mt--2":``,"w-full":``,"flex-none":``},q=[`onClick`],J={key:0,"x-divider":``},Y={key:1,"x-divider":``},X={flex:`~ gap-1 items-center`,class:`px2 pt2`,lg:`px4 py2`},Z={"w-full":``,p2:``,op75:``},Q={key:1,m4:``,flex:`~ col gap-2`},ne={flex:`~ gap-1 wrap items-center`},re={key:1},ie={flex:`~ gap-2`,n:`sm primary`,absolute:``,"right-2":``,"top-2":``},ae=Object.assign(u({__name:`OpenGraphMissingTabs`,props:{tags:{},matchedRouteFilepath:{}},setup(e){let t=e,n=/"([^"]+)":/g,r=/"/g,i=x(()=>G.filter(e=>!t.tags?.some(t=>t.name===e.name))),a=x(()=>{let e={},t={};i.value.forEach(n=>{n.seoMeta?Object.assign(t,n.seoMeta):e=A(e,n.head)});let a=[];if(Object.keys(t).length){let e=JSON.stringify(t,null,2).replace(n,`$1:`).replace(r,`'`);a.push(`useSeoMeta(${e})`)}if(Object.keys(e).length){let t=JSON.stringify(e,null,2).replace(n,`$1:`).replace(r,`'`);a.push(`useHead(${t})`)}return a.join(`
1
+ import{F as e,G as t,I as n,K as r,S as i,c as a,k as o,l as s,s as c,u as l}from"./nicon-ed7stj2f.js";import{C as u,H as d,Jt as f,N as p,X as m,Xt as h,Zt as g,a as _,b as v,bt as y,ct as b,d as x,f as S,h as C,kt as w,lt as T,m as E,p as D,q as O,x as k}from"./vendor/json-editor-vue-gdztbg5h.js";import{Ot as ee,Y as A}from"./ready-nojqt2hc.js";import{o as j,x as M}from"./utils-mae882d9.js";import{a as te}from"./unhead.-h-zvkou0-b7ygyvjk.js";import{t as N}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as P}from"./ncard-nledjs9m.js";import{_ as F,h as I,n as L,r as R}from"#entry";import{t as z}from"./ncode-block-lo7bvbmn.js";import{t as B}from"./composables-ioamscf4.js";import{t as V}from"./help-fab-husn5zkx.js";import{t as H}from"./nnavbar-m0eev8zc.js";import{t as U}from"./nsection-block-giwyhvyv.js";import{t as W}from"./nlink-o04f6a2k.js";var G=[{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.`}],K={flex:`~ wrap`,"mt--2":``,"w-full":``,"flex-none":``},q=[`onClick`],J={key:0,"x-divider":``},Y={key:1,"x-divider":``},X={flex:`~ gap-1 items-center`,class:`px2 pt2`,lg:`px4 py2`},Z={"w-full":``,p2:``,op75:``},Q={key:1,m4:``,flex:`~ col gap-2`},ne={flex:`~ gap-1 wrap items-center`},re={key:1},ie={flex:`~ gap-2`,n:`sm primary`,absolute:``,"right-2":``,"top-2":``},ae=Object.assign(u({__name:`OpenGraphMissingTabs`,props:{tags:{},matchedRouteFilepath:{}},setup(e){let t=e,n=/"([^"]+)":/g,r=/"/g,i=x(()=>G.filter(e=>!t.tags?.some(t=>t.name===e.name))),a=x(()=>{let e={},t={};i.value.forEach(n=>{n.seoMeta?Object.assign(t,n.seoMeta):e=A(e,n.head)});let a=[];if(Object.keys(t).length){let e=JSON.stringify(t,null,2).replace(n,`$1:`).replace(r,`'`);a.push(`useSeoMeta(${e})`)}if(Object.keys(e).length){let t=JSON.stringify(e,null,2).replace(n,`$1:`).replace(r,`'`);a.push(`useHead(${t})`)}return a.join(`
2
2
 
3
- `)}),o=I(),s=L(),c=[`Missing Tags`,`Code Snippet`],l=y(c[0]);return(t,n)=>{let r=W,u=P,f=F,m=z,g=U;return i.value.length?(d(),D(g,{key:0,text:`Missing Tags`,description:`${i.value.length} missing tags`,icon:`carbon:warning-other`,"header-class":`text-orange op100! [[open]_&]:text-inherit`,padding:!1},{default:b(()=>[S(`div`,K,[(d(),C(_,null,O(c,(e,t)=>S(`button`,{key:t,px4:``,py2:``,border:`r t base`,hover:`bg-active`,class:h(e===l.value?``:`border-b`),onClick:t=>l.value=e},[S(`div`,{class:h(e===l.value?``:`op30`),capitalize:``},p(e),3)],10,q)),64)),n[3]||=S(`div`,{border:`b base`,"flex-auto":``},null,-1)]),l.value===c[0]?(d(),D(u,{key:0,grid:`~ cols-[1fr] lg:cols-[max-content_1fr]`,m4:``,"items-center":``,"justify-between":``,"of-hidden":``},{default:b(()=>[(d(!0),C(_,null,O(i.value,(e,t)=>(d(),C(_,{key:t},[t?(d(),C(`div`,J)):E(``,!0),t?(d(),C(`div`,Y)):E(``,!0),S(`div`,X,[n[4]||=S(`div`,{"i-carbon-warning":``,"text-orange":``},null,-1),k(r,{"op-50":``,href:e.docs,target:`_blank`,n:`orange`},{default:b(()=>[v(p(e.name),1)]),_:2},1032,[`href`])]),S(`div`,Z,p(e.description),1)],64))),128))]),_:1})):(d(),C(`div`,Q,[S(`p`,ne,[k(f,{icon:`carbon-copy`,n:`xs`,"px-2":``,onClick:n[0]||=e=>w(o)(a.value,`open-graph-suggestion`)},{default:b(()=>[...n[5]||=[v(` Copy `,-1)]]),_:1}),n[7]||=v(` the following code snippet and paste it into your `,-1),e.matchedRouteFilepath?(d(),D(f,{key:0,icon:`carbon-launch`,n:`xs`,"px-2":``,onClick:n[1]||=t=>w(s)(e.matchedRouteFilepath)},{default:b(()=>[...n[6]||=[v(` page component `,-1)]]),_:1})):(d(),C(`span`,re,`page component`)),n[8]||=v(` to full fill the missing tags. `,-1)]),k(u,{relative:``,"n-code-block":``},{default:b(()=>[k(m,{code:a.value,lang:`ts`,lines:!1,"w-full":``,"of-auto":``,p3:``},null,8,[`code`]),S(`div`,ie,[k(f,{icon:`carbon-copy`,onClick:n[2]||=e=>w(o)(a.value,`open-graph-suggestion`)},{default:b(()=>[...n[9]||=[v(` Copy `,-1)]]),_:1})])]),_:1})]))]),_:1},8,[`description`])):E(``,!0)}}}),{__name:`OpenGraphMissingTabs`}),oe={class:`max-w-[524px] min-w-[524px] cursor-pointer bg-base`},se={class:`break-words border border-base px-[12px] py-[10px] antialiased`},ce={class:`overflow-hidden truncate whitespace-nowrap text-[12px] leading-[11px] uppercase op50`},le={class:`block h-[46px] max-h-[46px] border-separate select-none overflow-hidden break-words text-left`,style:{"border-spacing":`0px`}},ue={class:`mt-[3px] truncate pt-[2px] text-[16px] font-semibold leading-[20px]`},de={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`}},fe=Object.assign(u({__name:`SocialFacebook`,props:{card:{}},setup(e){return(t,n)=>(d(),C(`div`,oe,[S(`div`,{class:`h-[274px] border border-b-0 border-base bg-cover bg-center bg-no-repeat`,style:g({backgroundImage:`url(${JSON.stringify(e.card.image)})`})},null,4),S(`div`,se,[S(`div`,ce,p(e.card.url),1),S(`div`,le,[S(`div`,ue,p(e.card.title),1),S(`div`,de,p(e.card.description),1)])])]))}}),{__name:`SocialFacebook`}),pe={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`}},me={class:`break-words border-base p-[0.75em] antialiased`,flex:`~ col justify-center gap-[2px]`},he={class:`overflow-hidden truncate whitespace-nowrap text-[15px] leading-[20px] lowercase op50`},ge={class:`m-0 truncate text-[15px] font-semibold leading-[20px]`},_e={class:`line-clamp-2 select-none overflow-hidden break-words text-left text-[15px] leading-[20px] op50`},ve=Object.assign(u({__name:`SocialTwitter`,props:{tags:{}},setup(e){let t=e,n=x(()=>j(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=x(()=>n.value.image?t.tags.find(e=>e.tag===`meta`&&e.name===`twitter:card`)?.value||`summary_large_image`:`summary`);return(e,t)=>(d(),C(`div`,pe,[S(`div`,{class:h([`cursor-pointer overflow-hidden leading-[1.3em]`,r.value===`summary_large_image`?``:`flex`]),hover:`bg-[#88888805]`},[r.value===`summary_large_image`?(d(),C(`div`,{key:0,class:`h-[220px] border-b border-base bg-cover bg-center bg-no-repeat`,style:g({backgroundImage:`url(${JSON.stringify(n.value.image)})`})},null,4)):(d(),C(`div`,{key:1,class:`h-[129px] w-[129px] flex-none border-r border-base bg-cover bg-center bg-no-repeat`,style:g({backgroundImage:`url(${JSON.stringify(n.value.image)})`})},null,4)),S(`div`,me,[S(`div`,he,p(n.value.url),1),S(`div`,ge,p(n.value.title),1),S(`div`,_e,p(n.value.description),1)])],2)]))}}),{__name:`SocialTwitter`}),ye={class:`max-w-[520px] min-w-[520px] cursor-pointer overflow-hidden border border-base rounded-[2px] bg-base shadow-md`},be={class:`break-words p-[10px] antialiased`},xe={class:`block h-auto max-h-[50px] border-separate select-none break-words text-left`,style:{"border-spacing":`0px`}},Se={class:`pb-[2px] text-[16px] font-semibold leading-[24px]`},Ce={class:`overflow-hidden truncate whitespace-nowrap text-xs font-normal uppercase op85`},we=Object.assign(u({__name:`SocialLinkedin`,props:{card:{}},setup(e){return(t,n)=>(d(),C(`div`,ye,[S(`div`,{class:`h-[270px] border-b border-base bg-cover bg-center bg-no-repeat`,style:g({backgroundImage:`url(${JSON.stringify(e.card.image)})`})},null,4),S(`div`,be,[S(`div`,xe,[S(`div`,Se,p(e.card.title),1),S(`div`,Ce,p(e.card.url),1)])])]))}}),{__name:`SocialLinkedin`}),Te={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]`},Ee={class:`pl-[10px] pr-[8px]`},De={class:`text-[#3390ec] leading-normal underline`},Oe={class:`quote w-full flex`},ke={class:`flex flex-col gap-1`},Ae={key:0,class:`my-[3px] overflow-hidden rounded`},je=[`src`],Me={class:`cursor-pointer text-sm text-[#3390ec]`},Ne={class:`cursor-pointer text-sm`},Pe={class:`cursor-pointer text-sm`},Fe={class:`flex justify-end text-xs text-[#707579]`},Ie=Object.assign(N(u({__name:`SocialTelegram`,props:{card:{}},setup(r){let i=n(),a=t(e(),`HH:mm`);return(e,t)=>(d(),C(`div`,Te,[S(`div`,Ee,[S(`div`,De,p(r.card.url),1),S(`div`,Oe,[S(`div`,ke,[r.card.image?(d(),C(`div`,Ae,[S(`img`,{class:`h-full max-w-full w-full rounded object-cover`,src:r.card.image},null,8,je)])):E(``,!0),S(`div`,Me,[S(`strong`,null,p(w(i).hostname),1)]),S(`div`,Ne,[S(`strong`,null,p(r.card.title),1)]),S(`div`,Pe,p(r.card.description),1)])]),S(`div`,Fe,[S(`span`,null,p(w(a)),1)])]),t[0]||=S(`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`},[S(`g`,{transform:`translate(9 -14)`,"fill-rule":`evenodd`},[S(`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`}),Le={flex:`~ col`,"w-full":``},Re={flex:`~ wrap`,"w-full":``,"flex-none":``},ze=[`onClick`],Be={flex:`~ items-center justify-center`,"flex-auto":``,p4:``,"n-panel-grids":``},Ve={key:0},$={key:1},He={key:2},Ue={key:3},We=Object.assign(u({__name:`SocialPreviewGroup`,props:{tags:{}},setup(e){let t=e,n=[`twitter`,`facebook`,`linkedin`,`telegram`],i=r(`nuxt-devtools-social-preview-tab`,n[0]),a=x(()=>j(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,r)=>{let o=fe,s=ve,c=we,l=Ie;return d(),C(`div`,Le,[S(`div`,Re,[(d(),C(_,null,O(n,(e,t)=>S(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:h(e===w(i)?``:`border-b`),onClick:t=>i.value=e},[S(`div`,{class:h(e===w(i)?``:`op30`),capitalize:``},p(e),3)],10,ze)),64)),r[0]||=S(`div`,{border:`b base`,"flex-auto":``},null,-1)]),S(`div`,Be,[w(i)===`facebook`?(d(),C(`div`,Ve,[k(o,{card:a.value},null,8,[`card`])])):w(i)===`twitter`?(d(),C(`div`,$,[k(s,{tags:e.tags},null,8,[`tags`])])):w(i)===`linkedin`?(d(),C(`div`,He,[k(c,{card:a.value},null,8,[`card`])])):w(i)===`telegram`?(d(),C(`div`,Ue,[k(l,{card:a.value},null,8,[`card`])])):E(``,!0)])])}}}),{__name:`SocialPreviewGroup`}),Ge={},Ke={class:`markdown-body`};function qe(e,t){return d(),C(`div`,Ke,[...t[0]||=[S(`template`,null,[S(`div`,{class:`markdown-body`},[S(`h1`,null,`Open Graph`),S(`p`,null,[v(`Nuxt provides several different ways to manage your meta tags using `),S(`a`,{href:`https://unhead.harlanzw.com/`,target:`_blank`,rel:`noopener`},[S(`code`,{"v-pre":``},`unhead`)]),v(`. Improve your Nuxt app’s SEO with powerful head config, composables and components.`)]),S(`p`,null,[S(`a`,{href:`https://nuxt.com/docs/getting-started/seo-meta`,target:`_blank`,rel:`noopener`},`Learn more on the documentation`)]),S(`hr`),S(`p`,null,`You can also find how open graph specs are defined in:`),S(`ul`,null,[S(`li`,null,[S(`a`,{href:`https://ogp.me/`,target:`_blank`,rel:`noopener`},`The Open Graph protocol`)]),S(`li`,null,[S(`a`,{href:`https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started`,target:`_blank`,rel:`noopener`},`Twitter Cards`)])])])],-1)]])}var Je=N(Ge,[[`render`,qe]]),Ye={grid:`~ lg:cols-2`,"h-full":``,"w-full":``,"of-hidden":``},Xe={"flex-auto":``,"of-auto":``},Ze={"flex-none":``,flex:`~ gap2 items-center`},Qe={flex:`~ col`},$e={key:0,"x-divider":``},et={key:1,"x-divider":``},tt={mr2:``,px4:``,py2:``},nt=u({__name:`open-graph`,setup(e){B({icon:`carbon:image-search`,title:`Open Graph`,layout:`full`,category:`analyze`,show:()=>{let e=s();return()=>!!e.value}});let t=y(0),n=c(),r=l(async()=>(t.value,(n.value?M(n.value):[]).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)}})),[]),u=y(!0);function g(){t.value+=1}let A=o(),j=a(),N=y(``),I=te(),z=L();async function K(){N.value!==j.value.path&&A.value.push(N.value||`/`)}let q=x(()=>N.value===j.value.path?[]:A.value.resolve(N.value||`/`).matched),J=x(()=>{let e=I.value.find(e=>e.path===j.value?.matched?.[0]?.path);return e?.file||e?.meta?.file});function Y(e){return G.find(t=>t.name===e.name)?.docs}return i(j).toBeTruthy().then(e=>{N.value=e.path}),i(A).toBeTruthy().then(e=>{e.afterEach(()=>{f(()=>{N.value=j.value.path,setTimeout(g,200),setTimeout(g,800)})})}),(e,t)=>{let n=R,i=F,a=H,o=W,s=P,c=U,l=ae,f=We,y=Je,x=V,A=m(`tooltip`);return d(),C(_,null,[S(`div`,Ye,[S(`div`,Xe,[k(a,null,{search:b(()=>[k(n,{modelValue:N.value,"onUpdate:modelValue":t[0]||=e=>N.value=e,placeholder:`Route`,icon:`carbon-direction-right-01 scale-y--100`,n:`primary`,"flex-auto":``,"font-mono":``,class:h([`px-5 py-2`,w(j)?.path===N.value?``:q.value.length?`text-green`:`text-orange`]),onKeydown:ee(K,[`enter`])},null,8,[`modelValue`,`class`])]),actions:b(()=>[S(`div`,Ze,[J.value?T((d(),D(i,{key:0,"text-lg":``,border:!1,icon:`carbon:launch`,title:`Open file in editor`,onClick:t[1]||=e=>w(z)(J.value)},null,512)),[[A,`Open file in editor`]]):E(``,!0),T(k(i,{"text-lg":``,border:!1,icon:`carbon:reset`,title:`Refresh Data`,onClick:g},null,512),[[A,`Refresh Data`]]),T(k(i,{"text-lg":``,border:!1,icon:u.value?`carbon:side-panel-open`:`carbon:open-panel-right`,title:`Toggle Preview`,onClick:t[2]||=e=>u.value=!u.value},null,8,[`icon`]),[[A,`Toggle Preview`]])])]),_:1}),S(`div`,Qe,[k(c,{text:`Tags`,icon:`carbon:tag-group`},{default:b(()=>[k(s,{grid:`~ cols-[max-content_1fr]`,"items-center":``,"justify-between":``,"of-hidden":``},{default:b(()=>[(d(!0),C(_,null,O(w(r),(e,t)=>(d(),C(_,{key:t},[t?(d(),C(`div`,$e)):E(``,!0),t?(d(),C(`div`,et)):E(``,!0),S(`div`,tt,[k(o,{op50:``,href:Y(e),target:`_blank`,n:`primary`},{default:b(()=>[v(p(e.name),1)]),_:2},1032,[`href`])]),k(o,{href:String(e.value).match(/^https?:\/\//)?e.value:void 0,target:`_blank`,"w-full":``,p2:``,"font-mono":``,n:`primary`},{default:b(()=>[v(p(e.value),1)]),_:2},1032,[`href`])],64))),128))]),_:1})]),_:1}),k(l,{tags:w(r),"matched-route-filepath":J.value},null,8,[`tags`,`matched-route-filepath`])])]),u.value&&w(r)?.length?(d(),D(f,{key:0,tags:w(r),"flex-none":``,"border-base":``,"lt-lg":`border-t`,lg:`h-full w-140 border-l`},null,8,[`tags`])):E(``,!0)]),k(x,null,{default:b(()=>[k(y)]),_:1})],64)}}});export{nt as default};
3
+ `)}),o=L(),s=R(),c=[`Missing Tags`,`Code Snippet`],l=y(c[0]);return(t,n)=>{let r=W,u=P,p=I,m=z,h=U;return i.value.length?(d(),D(h,{key:0,text:`Missing Tags`,description:`${i.value.length} missing tags`,icon:`carbon:warning-other`,"header-class":`text-orange op100! [[open]_&]:text-inherit`,padding:!1},{default:b(()=>[S(`div`,K,[(d(),C(_,null,O(c,(e,t)=>S(`button`,{key:t,px4:``,py2:``,border:`r t base`,hover:`bg-active`,class:f(e===l.value?``:`border-b`),onClick:t=>l.value=e},[S(`div`,{class:f(e===l.value?``:`op30`),capitalize:``},g(e),3)],10,q)),64)),n[3]||=S(`div`,{border:`b base`,"flex-auto":``},null,-1)]),l.value===c[0]?(d(),D(u,{key:0,grid:`~ cols-[1fr] lg:cols-[max-content_1fr]`,m4:``,"items-center":``,"justify-between":``,"of-hidden":``},{default:b(()=>[(d(!0),C(_,null,O(i.value,(e,t)=>(d(),C(_,{key:t},[t?(d(),C(`div`,J)):E(``,!0),t?(d(),C(`div`,Y)):E(``,!0),S(`div`,X,[n[4]||=S(`div`,{"i-carbon-warning":``,"text-orange":``},null,-1),k(r,{"op-50":``,href:e.docs,target:`_blank`,n:`orange`},{default:b(()=>[v(g(e.name),1)]),_:2},1032,[`href`])]),S(`div`,Z,g(e.description),1)],64))),128))]),_:1})):(d(),C(`div`,Q,[S(`p`,ne,[k(p,{icon:`carbon-copy`,n:`xs`,"px-2":``,onClick:n[0]||=e=>w(o)(a.value,`open-graph-suggestion`)},{default:b(()=>[...n[5]||=[v(` Copy `,-1)]]),_:1}),n[7]||=v(` the following code snippet and paste it into your `,-1),e.matchedRouteFilepath?(d(),D(p,{key:0,icon:`carbon-launch`,n:`xs`,"px-2":``,onClick:n[1]||=t=>w(s)(e.matchedRouteFilepath)},{default:b(()=>[...n[6]||=[v(` page component `,-1)]]),_:1})):(d(),C(`span`,re,`page component`)),n[8]||=v(` to full fill the missing tags. `,-1)]),k(u,{relative:``,"n-code-block":``},{default:b(()=>[k(m,{code:a.value,lang:`ts`,lines:!1,"w-full":``,"of-auto":``,p3:``},null,8,[`code`]),S(`div`,ie,[k(p,{icon:`carbon-copy`,onClick:n[2]||=e=>w(o)(a.value,`open-graph-suggestion`)},{default:b(()=>[...n[9]||=[v(` Copy `,-1)]]),_:1})])]),_:1})]))]),_:1},8,[`description`])):E(``,!0)}}}),{__name:`OpenGraphMissingTabs`}),oe={class:`max-w-[524px] min-w-[524px] cursor-pointer bg-base`},se={class:`break-words border border-base px-[12px] py-[10px] antialiased`},ce={class:`overflow-hidden truncate whitespace-nowrap text-[12px] leading-[11px] uppercase op50`},le={class:`block h-[46px] max-h-[46px] border-separate select-none overflow-hidden break-words text-left`,style:{"border-spacing":`0px`}},ue={class:`mt-[3px] truncate pt-[2px] text-[16px] font-semibold leading-[20px]`},de={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`}},fe=Object.assign(u({__name:`SocialFacebook`,props:{card:{}},setup(e){return(t,n)=>(d(),C(`div`,oe,[S(`div`,{class:`h-[274px] border border-b-0 border-base bg-cover bg-center bg-no-repeat`,style:h({backgroundImage:`url(${JSON.stringify(e.card.image)})`})},null,4),S(`div`,se,[S(`div`,ce,g(e.card.url),1),S(`div`,le,[S(`div`,ue,g(e.card.title),1),S(`div`,de,g(e.card.description),1)])])]))}}),{__name:`SocialFacebook`}),pe={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`}},me={class:`break-words border-base p-[0.75em] antialiased`,flex:`~ col justify-center gap-[2px]`},he={class:`overflow-hidden truncate whitespace-nowrap text-[15px] leading-[20px] lowercase op50`},ge={class:`m-0 truncate text-[15px] font-semibold leading-[20px]`},_e={class:`line-clamp-2 select-none overflow-hidden break-words text-left text-[15px] leading-[20px] op50`},ve=Object.assign(u({__name:`SocialTwitter`,props:{tags:{}},setup(e){let t=e,n=x(()=>j(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=x(()=>n.value.image?t.tags.find(e=>e.tag===`meta`&&e.name===`twitter:card`)?.value||`summary_large_image`:`summary`);return(e,t)=>(d(),C(`div`,pe,[S(`div`,{class:f([`cursor-pointer overflow-hidden leading-[1.3em]`,r.value===`summary_large_image`?``:`flex`]),hover:`bg-[#88888805]`},[r.value===`summary_large_image`?(d(),C(`div`,{key:0,class:`h-[220px] border-b border-base bg-cover bg-center bg-no-repeat`,style:h({backgroundImage:`url(${JSON.stringify(n.value.image)})`})},null,4)):(d(),C(`div`,{key:1,class:`h-[129px] w-[129px] flex-none border-r border-base bg-cover bg-center bg-no-repeat`,style:h({backgroundImage:`url(${JSON.stringify(n.value.image)})`})},null,4)),S(`div`,me,[S(`div`,he,g(n.value.url),1),S(`div`,ge,g(n.value.title),1),S(`div`,_e,g(n.value.description),1)])],2)]))}}),{__name:`SocialTwitter`}),ye={class:`max-w-[520px] min-w-[520px] cursor-pointer overflow-hidden border border-base rounded-[2px] bg-base shadow-md`},be={class:`break-words p-[10px] antialiased`},xe={class:`block h-auto max-h-[50px] border-separate select-none break-words text-left`,style:{"border-spacing":`0px`}},Se={class:`pb-[2px] text-[16px] font-semibold leading-[24px]`},Ce={class:`overflow-hidden truncate whitespace-nowrap text-xs font-normal uppercase op85`},we=Object.assign(u({__name:`SocialLinkedin`,props:{card:{}},setup(e){return(t,n)=>(d(),C(`div`,ye,[S(`div`,{class:`h-[270px] border-b border-base bg-cover bg-center bg-no-repeat`,style:h({backgroundImage:`url(${JSON.stringify(e.card.image)})`})},null,4),S(`div`,be,[S(`div`,xe,[S(`div`,Se,g(e.card.title),1),S(`div`,Ce,g(e.card.url),1)])])]))}}),{__name:`SocialLinkedin`}),Te={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]`},Ee={class:`pl-[10px] pr-[8px]`},De={class:`text-[#3390ec] leading-normal underline`},Oe={class:`quote w-full flex`},ke={class:`flex flex-col gap-1`},Ae={key:0,class:`my-[3px] overflow-hidden rounded`},je=[`src`],Me={class:`cursor-pointer text-sm text-[#3390ec]`},Ne={class:`cursor-pointer text-sm`},Pe={class:`cursor-pointer text-sm`},Fe={class:`flex justify-end text-xs text-[#707579]`},Ie=Object.assign(N(u({__name:`SocialTelegram`,props:{card:{}},setup(e){let t=o(),i=r(n(),`HH:mm`);return(n,r)=>(d(),C(`div`,Te,[S(`div`,Ee,[S(`div`,De,g(e.card.url),1),S(`div`,Oe,[S(`div`,ke,[e.card.image?(d(),C(`div`,Ae,[S(`img`,{class:`h-full max-w-full w-full rounded object-cover`,src:e.card.image},null,8,je)])):E(``,!0),S(`div`,Me,[S(`strong`,null,g(w(t).hostname),1)]),S(`div`,Ne,[S(`strong`,null,g(e.card.title),1)]),S(`div`,Pe,g(e.card.description),1)])]),S(`div`,Fe,[S(`span`,null,g(w(i)),1)])]),r[0]||=S(`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`},[S(`g`,{transform:`translate(9 -14)`,"fill-rule":`evenodd`},[S(`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`}),Le={flex:`~ col`,"w-full":``},Re={flex:`~ wrap`,"w-full":``,"flex-none":``},ze=[`onClick`],Be={flex:`~ items-center justify-center`,"flex-auto":``,p4:``,"n-panel-grids":``},Ve={key:0},$={key:1},He={key:2},Ue={key:3},We=Object.assign(u({__name:`SocialPreviewGroup`,props:{tags:{}},setup(t){let n=t,r=[`twitter`,`facebook`,`linkedin`,`telegram`],i=e(`nuxt-devtools-social-preview-tab`,r[0]),a=x(()=>j(n.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(e,n)=>{let o=fe,s=ve,c=we,l=Ie;return d(),C(`div`,Le,[S(`div`,Re,[(d(),C(_,null,O(r,(e,t)=>S(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:f(e===w(i)?``:`border-b`),onClick:t=>i.value=e},[S(`div`,{class:f(e===w(i)?``:`op30`),capitalize:``},g(e),3)],10,ze)),64)),n[0]||=S(`div`,{border:`b base`,"flex-auto":``},null,-1)]),S(`div`,Be,[w(i)===`facebook`?(d(),C(`div`,Ve,[k(o,{card:a.value},null,8,[`card`])])):w(i)===`twitter`?(d(),C(`div`,$,[k(s,{tags:t.tags},null,8,[`tags`])])):w(i)===`linkedin`?(d(),C(`div`,He,[k(c,{card:a.value},null,8,[`card`])])):w(i)===`telegram`?(d(),C(`div`,Ue,[k(l,{card:a.value},null,8,[`card`])])):E(``,!0)])])}}}),{__name:`SocialPreviewGroup`}),Ge={},Ke={class:`markdown-body`};function qe(e,t){return d(),C(`div`,Ke,[...t[0]||=[S(`template`,null,[S(`div`,{class:`markdown-body`},[S(`h1`,null,`Open Graph`),S(`p`,null,[v(`Nuxt provides several different ways to manage your meta tags using `),S(`a`,{href:`https://unhead.harlanzw.com/`,target:`_blank`,rel:`noopener`},[S(`code`,{"v-pre":``},`unhead`)]),v(`. Improve your Nuxt app’s SEO with powerful head config, composables and components.`)]),S(`p`,null,[S(`a`,{href:`https://nuxt.com/docs/getting-started/seo-meta`,target:`_blank`,rel:`noopener`},`Learn more on the documentation`)]),S(`hr`),S(`p`,null,`You can also find how open graph specs are defined in:`),S(`ul`,null,[S(`li`,null,[S(`a`,{href:`https://ogp.me/`,target:`_blank`,rel:`noopener`},`The Open Graph protocol`)]),S(`li`,null,[S(`a`,{href:`https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started`,target:`_blank`,rel:`noopener`},`Twitter Cards`)])])])],-1)]])}var Je=N(Ge,[[`render`,qe]]),Ye={grid:`~ lg:cols-2`,"h-full":``,"w-full":``,"of-hidden":``},Xe={"flex-auto":``,"of-auto":``},Ze={"flex-none":``,flex:`~ gap2 items-center`},Qe={flex:`~ col`},$e={key:0,"x-divider":``},et={key:1,"x-divider":``},tt={mr2:``,px4:``,py2:``},nt=u({__name:`open-graph`,setup(e){B({icon:`carbon:image-search`,title:`Open Graph`,layout:`full`,category:`analyze`,show:()=>{let e=c();return()=>!!e.value}});let n=y(0),r=a(),o=i(async()=>(n.value,(r.value?te(r.value):[]).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)}})),[]),u=y(!0);function h(){n.value+=1}let A=l(),j=s(),N=y(``),L=M(),z=R();async function K(){N.value!==j.value.path&&A.value.push(N.value||`/`)}let q=x(()=>N.value===j.value.path?[]:A.value.resolve(N.value||`/`).matched),J=x(()=>{let e=L.value.find(e=>e.path===j.value?.matched?.[0]?.path);return e?.file||e?.meta?.file});function Y(e){return G.find(t=>t.name===e.name)?.docs}return t(j).toBeTruthy().then(e=>{N.value=e.path}),t(A).toBeTruthy().then(e=>{e.afterEach(()=>{p(()=>{N.value=j.value.path,setTimeout(h,200),setTimeout(h,800)})})}),(e,t)=>{let n=F,r=I,i=H,a=W,s=P,c=U,l=ae,p=We,y=Je,x=V,A=m(`tooltip`);return d(),C(_,null,[S(`div`,Ye,[S(`div`,Xe,[k(i,null,{search:b(()=>[k(n,{modelValue:N.value,"onUpdate:modelValue":t[0]||=e=>N.value=e,placeholder:`Route`,icon:`carbon-direction-right-01 scale-y--100`,n:`primary`,"flex-auto":``,"font-mono":``,class:f([`px-5 py-2`,w(j)?.path===N.value?``:q.value.length?`text-green`:`text-orange`]),onKeydown:ee(K,[`enter`])},null,8,[`modelValue`,`class`])]),actions:b(()=>[S(`div`,Ze,[J.value?T((d(),D(r,{key:0,"text-lg":``,border:!1,icon:`carbon:launch`,title:`Open file in editor`,onClick:t[1]||=e=>w(z)(J.value)},null,512)),[[A,`Open file in editor`]]):E(``,!0),T(k(r,{"text-lg":``,border:!1,icon:`carbon:reset`,title:`Refresh Data`,onClick:h},null,512),[[A,`Refresh Data`]]),T(k(r,{"text-lg":``,border:!1,icon:u.value?`carbon:side-panel-open`:`carbon:open-panel-right`,title:`Toggle Preview`,onClick:t[2]||=e=>u.value=!u.value},null,8,[`icon`]),[[A,`Toggle Preview`]])])]),_:1}),S(`div`,Qe,[k(c,{text:`Tags`,icon:`carbon:tag-group`},{default:b(()=>[k(s,{grid:`~ cols-[max-content_1fr]`,"items-center":``,"justify-between":``,"of-hidden":``},{default:b(()=>[(d(!0),C(_,null,O(w(o),(e,t)=>(d(),C(_,{key:t},[t?(d(),C(`div`,$e)):E(``,!0),t?(d(),C(`div`,et)):E(``,!0),S(`div`,tt,[k(a,{op50:``,href:Y(e),target:`_blank`,n:`primary`},{default:b(()=>[v(g(e.name),1)]),_:2},1032,[`href`])]),k(a,{href:String(e.value).match(/^https?:\/\//)?e.value:void 0,target:`_blank`,"w-full":``,p2:``,"font-mono":``,n:`primary`},{default:b(()=>[v(g(e.value),1)]),_:2},1032,[`href`])],64))),128))]),_:1})]),_:1}),k(l,{tags:w(o),"matched-route-filepath":J.value},null,8,[`tags`,`matched-route-filepath`])])]),u.value&&w(o)?.length?(d(),D(p,{key:0,tags:w(o),"flex-none":``,"border-base":``,"lt-lg":`border-t`,lg:`h-full w-140 border-l`},null,8,[`tags`])):E(``,!0)]),k(x,null,{default:b(()=>[k(y)]),_:1})],64)}}});export{nt as default};
@@ -0,0 +1 @@
1
+ import{o as e,s as t}from"./nicon-ed7stj2f.js";import{C as n,H as r,Zt as i,a,b as o,ct as s,d as c,f as l,h as u,kt as d,m as f,p,x as m}from"./vendor/json-editor-vue-gdztbg5h.js";import{d as h,r as g,t as _,v,w as y}from"./utils-mae882d9.js";import{t as b}from"./nuxt-link-d782yzf7.js";import{t as x}from"./state-tabs-f1nalpue.js";import{d as S,h as C}from"#entry";import{t as w}from"./composables-ioamscf4.js";import{t as ee}from"./npanel-grids-d696wmf0.js";import{t as te}from"./ntip-oo98nqyy.js";import{t as ne}from"./state-components-f0u4jm29.js";import{r as T,t as E}from"./state-modules-h1enh4jx.js";var D=`4.0.0-alpha.18`,O={key:0},k={key:1,flex:`~ col gap2`,ma:``,"h-full":``,"max-w-300":``,"w-full":``,p5:``,px5:``,"md:px20":``},A={flex:`~ col`,"mt-5":``,"items-center":``,"md:mt-20":``},j={mb6:``,mt3:``,"text-center":``,"text-sm":``,flex:`~ gap-1 wrap`},M={op40:``},N={flex:`~ gap2 wrap`},P={key:5,"pointer-events-none":``,"min-w-40":``,"theme-card-lime":``,p4:``,flex:`~ auto gap-6`},F={grid:`~ cols-[auto_auto] gap-x-5 items-center`},I={"text-right":``},L={"text-right":``},R={"text-right":``},z={"text-right":``},B={flex:`~ col gap2`},V={flex:`~ gap-6 wrap`,"mt-5":``,"items-center":``,"justify-center":``},H={flex:`col gap-2`,mxa:``,hidden:``,"w-100":``,"text-sm":``,op50:``,"md:flex":``},U={flex:`~ gap-1`,"items-center":``},W={flex:`~ gap-1`,"items-center":``},G=n({__name:`overview`,setup(n){w({icon:`carbon-information`,title:`Overview`,order:-100});let G=t(),K=y(),q=ne(),J=v(),Y=E(),X=x(),Z=g(),Q=c(()=>G.value?.nuxt.vueApp.version),$=c(()=>G.value?.metrics.loading());return(t,n)=>{let c=S,g=b,v=T,y=te,x=C,w=ee;return r(),p(w,{"h-screen":``,"w-full":``,flex:``},{default:s(()=>[d(K)?(r(),u(`div`,k,[n[39]||=l(`div`,{"flex-auto":``},null,-1),l(`div`,A,[m(g,{flex:`~`,"mt--10":``,"items-center":``,"justify-center":``,to:`https://devtools.nuxt.com/`,target:`_blank`},{default:s(()=>[m(c,{"h-10":``})]),_:1}),l(`div`,j,[n[0]||=l(`span`,{op40:``},` Nuxt DevTools `,-1),l(`code`,M,`v`+i(d(D)),1),m(v,{"package-name":`@nuxt/devtools`,options:{dev:!0},"show-version":!1})])]),l(`div`,N,[m(g,{to:`https://nuxt.com`,target:`_blank`,"theme-card-green":``,p4:``,flex:`~ col auto`},{default:s(()=>[n[1]||=l(`div`,{"logos-nuxt-icon":``,"text-3xl":``},null,-1),m(v,{"package-name":`nuxt`,options:{dev:!0}})]),_:1}),Q.value?(r(),p(g,{key:0,to:`https://vuejs.org`,target:`_blank`,"theme-card-green":``,p4:``,flex:`~ col auto`},{default:s(()=>[n[2]||=l(`div`,{"logos-vue":``,"text-3xl":``},null,-1),l(`code`,null,`v`+i(Q.value),1)]),_:1})):f(``,!0),d(K)?(r(),u(a,{key:1},[d(K)&&d(K).pages&&d(G)?(r(),p(g,{key:0,"min-w-40":``,"theme-card-lime":``,p4:``,flex:`~ col auto`,to:`/modules/pages`},{default:s(()=>[n[3]||=l(`div`,{"carbon-tree-view-alt":``,"text-3xl":``},null,-1),l(`div`,null,i(d(h)(d(X).length,`page`)),1)]),_:1})):f(``,!0),d(K)?(r(),p(g,{key:1,"min-w-40":``,"theme-card-lime":``,p4:``,flex:`~ col auto`,to:`/modules/components`},{default:s(()=>[n[4]||=l(`div`,{"i-carbon-assembly-cluster":``,"text-3xl":``},null,-1),l(`div`,null,i(d(h)(d(q).length,`component`)),1)]),_:1})):f(``,!0),d(K)&&d(J)?(r(),p(g,{key:2,"min-w-40":``,"theme-card-yellow":``,p4:``,flex:`~ col auto`,to:`/modules/imports`},{default:s(()=>[n[5]||=l(`div`,{"carbon-function":``,"text-3xl":``},null,-1),l(`div`,null,i(d(h)(d(J).imports.length,`import`)),1)]),_:1})):f(``,!0),d(K)?(r(),p(g,{key:3,"min-w-40":``,"theme-card-purple":``,p4:``,flex:`~ col auto`,to:`/modules/modules`},{default:s(()=>[n[6]||=l(`div`,{"carbon-3d-mpr-toggle":``,"text-3xl":``},null,-1),l(`div`,null,i(d(h)(d(Y).length,`module`)),1)]),_:1})):f(``,!0),d(K)?(r(),p(g,{key:4,"min-w-40":``,"theme-card-teal":``,p4:``,flex:`~ col auto`,to:`/modules/plugins`},{default:s(()=>[n[7]||=l(`div`,{"carbon-plug":``,"text-3xl":``},null,-1),l(`div`,null,i(d(h)(d(K).plugins.length,`plugin`)),1)]),_:1})):f(``,!0),$.value?(r(),u(`div`,P,[n[12]||=l(`div`,{"i-carbon-time-plot":``,"flex-none":``,"text-3xl":``},null,-1),l(`div`,F,[$.value.ssrStart?(r(),u(a,{key:0},[n[8]||=l(`div`,{"text-sm":``},` SSR to full load `,-1),l(`div`,I,i(d(_)($.value.appLoad-$.value.ssrStart)),1)],64)):f(``,!0),n[10]||=l(`div`,{"text-sm":``},` Page load `,-1),l(`div`,L,i(d(_)($.value.appLoad-$.value.appInit)),1),n[11]||=l(`div`,{"text-sm":``},` Navigation `,-1),l(`div`,R,i(d(_)($.value.pageEnd-$.value.pageStart)),1),$.value.hmrStart?(r(),u(a,{key:1},[n[9]||=l(`div`,{"text-sm":``},` HMR `,-1),l(`div`,z,i(d(_)($.value.hmrEnd-$.value.hmrStart)),1)],64)):f(``,!0)])])):f(``,!0)],64)):f(``,!0)]),l(`div`,B,[d(e)?(r(),p(y,{key:0,n:`yellow5`,icon:`carbon-unlink`,"justify-center":``},{default:s(()=>[...n[13]||=[o(` Not connected to the client app, showing server-side data only. Use the embedded mode for full features. `,-1)]]),_:1})):f(``,!0)]),l(`div`,V,[n[15]||=l(`a`,{href:`https://github.com/nuxt/devtools`,target:`_blank`,flex:`~ gap1`,"items-center":``,op50:``,hover:`op100 text-blue`,transition:``},[l(`div`,{"i-carbon-star":``}),o(` Star on GitHub `)],-1),n[16]||=l(`a`,{href:`https://github.com/nuxt/devtools/discussions/29`,target:`_blank`,flex:`~ gap1`,"items-center":``,op50:``,hover:`op100 text-yellow`,transition:``},[l(`div`,{"i-carbon-data-enrichment":``}),o(` Ideas & Suggestions `)],-1),n[17]||=l(`a`,{href:`https://github.com/nuxt/devtools/discussions/31`,target:`_blank`,flex:`~ gap1`,"items-center":``,op50:``,hover:`op100 text-lime`,transition:``},[l(`div`,{"i-carbon-plan":``}),o(` Project Roadmap `)],-1),n[18]||=l(`a`,{href:`https://github.com/nuxt/devtools/issues`,target:`_blank`,flex:`~ gap1`,"items-center":``,op50:``,hover:`op100 text-rose`,transition:``},[l(`div`,{"i-carbon-debug":``}),o(` Bug Reports `)],-1),m(g,{to:`/settings`,flex:`~ gap1`,"inline-block":``,"items-center":``,op50:``,"hover:op80":``},{default:s(()=>[...n[14]||=[l(`div`,{"i-carbon-settings-adjust":``},null,-1),o(` Settings `,-1)]]),_:1})]),n[40]||=l(`div`,{"flex-auto":``},null,-1),l(`div`,H,[l(`div`,U,[d(Z)?(r(),u(a,{key:0},[m(x,{n:`xs`,class:`px2`},{default:s(()=>[...n[19]||=[o(` ⌘ Cmd `,-1)]]),_:1}),n[21]||=l(`span`,null,`+`,-1),m(x,{n:`xs`,class:`px2`},{default:s(()=>[...n[20]||=[o(` K `,-1)]]),_:1})],64)):(r(),u(a,{key:1},[m(x,{n:`xs`,class:`px2`},{default:s(()=>[...n[22]||=[o(` Ctrl `,-1)]]),_:1}),n[24]||=l(`span`,null,`+`,-1),m(x,{n:`xs`,class:`px2`},{default:s(()=>[...n[23]||=[o(` K `,-1)]]),_:1})],64)),n[25]||=l(`div`,{"flex-auto":``},null,-1),n[26]||=o(` Open Command Palette `,-1)]),l(`div`,W,[d(Z)?(r(),u(a,{key:0},[m(x,{n:`xs`,class:`px2`},{default:s(()=>[...n[27]||=[o(` ⇧ Shift `,-1)]]),_:1}),n[30]||=l(`span`,null,`+`,-1),m(x,{n:`xs`,class:`px2`},{default:s(()=>[...n[28]||=[o(` ⌥ Option `,-1)]]),_:1}),n[31]||=l(`span`,null,`+`,-1),m(x,{n:`xs`,class:`px2`},{default:s(()=>[...n[29]||=[o(` D `,-1)]]),_:1})],64)):(r(),u(a,{key:1},[m(x,{n:`xs`,class:`px2`},{default:s(()=>[...n[32]||=[o(` Shift `,-1)]]),_:1}),n[35]||=l(`span`,null,`+`,-1),m(x,{n:`xs`,class:`px2`},{default:s(()=>[...n[33]||=[o(` Alt `,-1)]]),_:1}),n[36]||=l(`span`,null,`+`,-1),m(x,{n:`xs`,class:`px2`},{default:s(()=>[...n[34]||=[o(` D `,-1)]]),_:1})],64)),n[37]||=l(`div`,{"flex-auto":``},null,-1),n[38]||=l(`div`,null,`Toggle DevTools`,-1)])])])):(r(),u(`div`,O,` Loading... `))]),_:1})}}});export{G as default};
@@ -0,0 +1 @@
1
+ import{C as e,H as t,h as n}from"./vendor/json-editor-vue-gdztbg5h.js";import{t as r}from"./composables-ioamscf4.js";var i=e({__name:`index`,setup(e){return r({redirect:`/modules/overview`}),(e,r)=>(t(),n(`div`))}});export{i as default};
@@ -1 +1 @@
1
- import{c as e,g as t,l as n,o as r}from"./nicon-d8lpuciu.js";import{C as i,H as a,Qt as o,Y as s,Yt as c,a as l,b as u,bt as d,ct as f,d as p,f as m,h,kt as g,m as _,p as v,q as y,x as b,z as x}from"./vendor/json-editor-vue-fkdh1klf.js";import{_t as S,gt as C}from"./ready-7locjahi.js";import{C as w,b as T,h as E,w as D,x as O}from"./utils-mmchty8m.js";import{t as k}from"./_plugin-vue_export-helper-d9irwgla.js";import{_ as A,n as j,r as M,y as N}from"#entry";import{t as P}from"./composables-ioamscf4.js";import{t as F}from"./filepath-item-kujqy5gq.js";import{t as I}from"./help-fab-eztpqydj.js";import{t as L}from"./nsection-block-gdm9xag4.js";import{t as R}from"./nbadge-ja4fxo56.js";import{t as z}from"./launch-page-e53nsn8f.js";var B={block:``,"cursor-pointer":``},V={p2:``},H=[`onSubmit`],U={flex:`~`,"items-center":``,p2:``,"text-sm":``,"font-mono":``},W={key:1},G=Object.assign(i({__name:`RoutePathItem`,props:{route:{}},emits:[`navigate`],setup(e,{emit:t}){let n=e,r=t,i=/(:\w+[?*]?(?:\(\))?)/,g=/\(\)$/,x=/\/+/g,C=d([]),w=p(()=>{let e=T(n.route.path);return C.value=Array.from({length:e.length}).fill(``),e});function T(e){return e.split(i).filter(Boolean).map(e=>e[0]===`:`?e.replace(g,`?`):e)}let E=p(()=>w.value.map((e,t)=>e[0]===`:`?C.value[t]:e).join(``).replace(x,`/`)),D=p(()=>n.route.path.includes(`:`));function O(){r(`navigate`,E.value)}return(t,n)=>{let r=N,i=A,d=s(`VDropdown`);return D.value?(a(),v(d,{key:1},{popper:f(({hide:e})=>[m(`div`,V,[m(`form`,{flex:`~ col`,onSubmit:S(()=>{O(),e()},[`prevent`])},[D.value?(a(),h(l,{key:0},[n[0]||=m(`div`,{px2:``,"text-sm":``,op50:``},` Fill params and navigate: `,-1),m(`div`,U,[(a(!0),h(l,null,y(w.value,(e,t)=>(a(),h(l,{key:t},[e[0]===`:`?(a(),v(r,{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`])):(a(),h(`span`,W,o(e),1))],64))),128))])],64)):_(``,!0),b(i,{type:`submit`,block:``,n:`primary`},{default:f(()=>[...n[1]||=[u(` Navigate `,-1)]]),_:1})],40,H)])]),default:f(()=>[m(`code`,B,[(a(!0),h(l,null,y(w.value,(e,t)=>(a(),h(`span`,{key:t,class:c(e[0]===`:`?`text-gray border border-dashed rounded border-gray:50 px1`:``)},o(e[0]===`:`?e.slice(1):e),3))),128))])]),_:1})):(a(),h(`button`,{key:0,onClick:O},[m(`code`,null,o(e.route.path),1)]))}}}),{__name:`RoutePathItem`}),K={"max-w-full":``,"of-auto":``},q={"w-full":``},J={"w-20":``,"pr-1":``},Y={flex:``,"items-center":``,"justify-end":``},X={"text-sm":``},Z={flex:`inline gap3`,"items-center":``},Q={flex:`~ gap1`,pr2:``,op0:``,"group-hover:op100":``},$=[`onClick`],ee=[`onClick`],te={"w-0":``,"ws-nowrap":``,"pr-1":``,"text-left":``,"text-sm":``,"font-mono":``,op50:``},ne={"w-0":``,"ws-nowrap":``,"pr-1":``,"text-center":``,"text-sm":``,"font-mono":``,op50:``},re={"w-0":``,"ws-nowrap":``,"text-center":``,"text-sm":``,"font-mono":``},ie={key:0},ae=[`onClick`],oe=Object.assign(i({__name:`RoutesTable`,props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:[`navigate`],setup(e){let t=e,n=M(),r=w(),i=j(),s=p(()=>t.pages.toSorted((e,t)=>e.path.localeCompare(t.path)));function u(e){let r=t.layouts.find(t=>t.name===e);r&&n(r.file)}function d(e){if(typeof e==`string`)return r.value?.middleware.find(t=>t.name===e)?.path}return(t,r)=>{let f=R,p=G,x=F;return a(),h(`div`,K,[m(`table`,q,[r[4]||=m(`thead`,{border:`b base`},[m(`tr`,null,[m(`th`,{"text-left":``}),m(`th`,{"text-left":``},` Route Path `),m(`th`,{"text-left":``},` Name `),m(`th`,{"text-left":``},` Middleware `),m(`th`,null,` Layout `)])],-1),m(`tbody`,null,[(a(!0),h(l,null,y(s.value,s=>(a(),h(`tr`,{key:s.name,class:`group`,"h-7":``,border:`b dashed transparent hover:base`},[m(`td`,J,[m(`div`,Y,[e.matched.find(e=>e.name===s.name)?(a(),v(f,{key:0,n:`green`,title:`active`,textContent:`active`})):e.matchedPending.find(e=>e.name===s.name)?(a(),v(f,{key:1,n:`teal`,title:`next`,textContent:`next`})):_(``,!0)])]),m(`td`,X,[m(`div`,Z,[b(p,{route:s,class:c(e.matched.find(e=>e.name===s.name)?`text-primary`:e.matchedPending.find(e=>e.name===s.name)?`text-teal`:``),"ws-nowrap":``,onNavigate:r[0]||=e=>t.$emit(`navigate`,e)},null,8,[`route`,`class`]),m(`div`,Q,[s.file||s.meta?.file?(a(),h(`button`,{key:0,"text-sm":``,op40:``,hover:`op100 text-primary`,title:`Open in editor`,onClick:e=>g(n)(s.file||s.meta?.file)},[...r[2]||=[m(`div`,{"i-carbon-script-reference":``},null,-1)]],8,$)):_(``,!0),s.file||s.meta?.file?(a(),h(`button`,{key:1,"text-sm":``,op40:``,hover:`op100 text-primary`,title:`Copy path`,onClick:e=>g(i)(s.file||s.meta?.file)},[...r[3]||=[m(`div`,{"i-carbon-copy":``},null,-1)]],8,ee)):_(``,!0)])])]),m(`td`,te,o(s.name),1),m(`td`,ne,[b(x,{filepath:d(s.meta.middleware),override:`${s.meta.middleware||`-`}`},null,8,[`filepath`,`override`])]),m(`td`,re,[s.meta.layout===!1?(a(),h(`span`,ie,`-`)):s.meta.layout?(a(),h(`button`,{key:1,onClick:e=>u(s.meta.layout)},o(s.meta.layout),9,ae)):(a(),h(`button`,{key:2,"text-sm":``,op15:``,onClick:r[1]||=e=>u(`default`)},` (default) `))])]))),128))])])])}}}),{__name:`RoutesTable`}),se={},ce={class:`markdown-body`};function le(e,t){return a(),h(`div`,ce,[...t[0]||=[m(`template`,null,[m(`div`,{class:`markdown-body`},[m(`h1`,null,`Pages`),m(`p`,null,[u(`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 `),m(`code`,{"v-pre":``},`~/pages/`),u(` directory.`)]),m(`p`,null,[m(`a`,{href:`https://nuxt.com/docs/getting-started/routing`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)]),m(`hr`),m(`h2`,null,`Middlewares`),m(`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.`),m(`p`,null,[m(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/middleware`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var ue=k(se,[[`render`,le]]),de={key:0,"h-full":``,"of-auto":``},fe={border:`b base`,flex:`~ col gap1`,"n-navbar-glass":``,px4:``,py3:``},pe={"font-mono":``},me={key:1,op50:``},he={key:0,"text-orange":``,op75:``},ge={key:1,op50:``},_e={"min-h-14":``},ve={key:1,class:`py-4 text-center`},ye={"w-full":``},be={mr1:``},xe=i({__name:`pages`,setup(i){P({icon:`carbon-tree-view-alt`,title:`Pages`,show:()=>{let e=r();return()=>!!e.value},order:1});let s=n(),S=e(),k=D(),A=w(),j=T(),M=O(),B=p(()=>A.value?.middleware||[]),V=d(``),H=d(0),U=p(()=>(B.value,V.value,j.value,H.value,s.value?.currentRoute?.value?.path));x(()=>{S.value&&(V.value=s.value?.currentRoute?.value?.path),s.value?.beforeEach(e=>{V.value=e.fullPath}),s.value?.afterEach(e=>{V.value=e.fullPath})});async function W(){V.value!==s.value?.currentRoute?.value?.path&&s.value.push(V.value||`/`)}let G=p(()=>s.value.resolve(V.value||`/`).matched);function K(e){s.value.push(e),V.value=e}let q=E(),J=p(()=>`./${q===4?`app/`:``}pages/index.vue`);return(e,n)=>{let r=N,i=oe,d=L,p=R,x=F,w=z,T=ue,E=I;return a(),h(l,null,[g(k)?.pages&&g(s)?(a(),h(`div`,de,[m(`div`,fe,[m(`div`,null,[U.value===V.value?(a(),h(`span`,me,`Current route`)):(a(),h(l,{key:0},[n[1]||=m(`span`,{op50:``},`Navigate from `,-1),m(`span`,pe,o(U.value),1),n[2]||=m(`span`,{op50:``},` to `,-1)],64))]),b(r,{modelValue:V.value,"onUpdate:modelValue":n[0]||=e=>V.value=e,"font-mono":``,icon:`carbon-direction-right-01 scale-y--100`,class:c(U.value===V.value?``:G.value.length?`text-green`:`text-orange`),onKeydown:C(W,[`enter`])},null,8,[`modelValue`,`class`]),m(`div`,null,[U.value===V.value?(a(),h(`span`,ge,`Edit path above to navigate`)):(a(),h(l,{key:0},[n[3]||=m(`span`,null,[u(`Press `),m(`b`,{"font-bold":``},`Enter`),u(` to navigate`)],-1),G.value.length?_(``,!0):(a(),h(`span`,he,` (no match)`))],64))])]),b(d,{icon:`carbon-tree-view`,text:`Matched Routes`,padding:!1},{default:f(()=>[m(`div`,_e,[G.value.length?(a(),v(i,{key:0,pages:G.value,layouts:g(j)||[],matched:g(S).matched,"matched-pending":G.value,onNavigate:K},null,8,[`pages`,`layouts`,`matched`,`matched-pending`])):(a(),h(`div`,ve,[...n[4]||=[m(`span`,{op50:``},`No routes matched`,-1)]]))])]),_:1}),b(d,{icon:`carbon-tree-view-alt`,text:`All Routes`,description:`${g(M).length} routes registered in your application`,padding:`pr5`},{default:f(()=>[b(i,{pages:g(M),layouts:g(j)||[],matched:g(S).matched,"matched-pending":G.value,onNavigate:K},null,8,[`pages`,`layouts`,`matched`,`matched-pending`])]),_:1},8,[`description`]),B.value.length?(a(),v(d,{key:0,icon:`carbon:ibm-watson-studio`,text:`Middleware`,description:`${B.value.length} middleware registered in your application`,padding:`px13`},{default:f(()=>[m(`table`,ye,[n[5]||=m(`thead`,{border:`b base`,"h-7":``},[m(`tr`,null,[m(`th`,{"text-left":``},` Name `),m(`th`,{"text-left":``},` Path `)])],-1),(a(!0),h(l,null,y(B.value,e=>(a(),h(`tr`,{key:e.path,"h-7":``},[m(`td`,null,[m(`span`,be,o(e.name),1),e.global?(a(),v(p,{key:0,n:`green`,title:`Registered at runtime as a global component`,textContent:`global`})):_(``,!0)]),m(`td`,null,[b(x,{filepath:e.path},null,8,[`filepath`])])]))),128))])]),_:1},8,[`description`])):_(``,!0)])):(a(),v(w,{key:1,icon:`carbon-tree-view-alt`,name:`wizard-pages`,title:`Nuxt Routing`,description:`Create ${J.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 e?e.rpc:g(t)).enablePages()}}]},null,8,[`description`,`actions`])),b(E,null,{default:f(()=>[b(T)]),_:1})],64)}}});export{xe as default};
1
+ import{_ as e,l as t,s as n,u as r}from"./nicon-ed7stj2f.js";import{C as i,H as a,Jt as o,Y as s,Zt as c,a as l,b as u,bt as d,ct as f,d as p,f as m,h,kt as g,m as _,p as v,q as y,x as b,z as x}from"./vendor/json-editor-vue-gdztbg5h.js";import{Ot as S,kt as C}from"./ready-nojqt2hc.js";import{C as w,b as T,h as E,w as D,x as O}from"./utils-mae882d9.js";import{t as k}from"./_plugin-vue_export-helper-d9irwgla.js";import{_ as A,h as j,n as M,r as N}from"#entry";import{t as P}from"./composables-ioamscf4.js";import{t as F}from"./filepath-item-jfkmuag3.js";import{t as I}from"./help-fab-husn5zkx.js";import{t as L}from"./nsection-block-giwyhvyv.js";import{t as R}from"./nbadge-c0z39lwn.js";import{t as z}from"./launch-page-krdr9p9s.js";var B={block:``,"cursor-pointer":``},V={p2:``},H=[`onSubmit`],U={flex:`~`,"items-center":``,p2:``,"text-sm":``,"font-mono":``},W={key:1},G=Object.assign(i({__name:`RoutePathItem`,props:{route:{}},emits:[`navigate`],setup(e,{emit:t}){let n=e,r=t,i=/(:\w+[?*]?(?:\(\))?)/,g=/\(\)$/,x=/\/+/g,S=d([]),w=p(()=>{let e=T(n.route.path);return S.value=Array.from({length:e.length}).fill(``),e});function T(e){return e.split(i).filter(Boolean).map(e=>e[0]===`:`?e.replace(g,`?`):e)}let E=p(()=>w.value.map((e,t)=>e[0]===`:`?S.value[t]:e).join(``).replace(x,`/`)),D=p(()=>n.route.path.includes(`:`));function O(){r(`navigate`,E.value)}return(t,n)=>{let r=A,i=j,d=s(`VDropdown`);return D.value?(a(),v(d,{key:1},{popper:f(({hide:e})=>[m(`div`,V,[m(`form`,{flex:`~ col`,onSubmit:C(()=>{O(),e()},[`prevent`])},[D.value?(a(),h(l,{key:0},[n[0]||=m(`div`,{px2:``,"text-sm":``,op50:``},` Fill params and navigate: `,-1),m(`div`,U,[(a(!0),h(l,null,y(w.value,(e,t)=>(a(),h(l,{key:t},[e[0]===`:`?(a(),v(r,{key:0,modelValue:S.value[t],"onUpdate:modelValue":e=>S.value[t]=e,"w-20":``,"n-sm":``,placeholder:e.slice(1)},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`])):(a(),h(`span`,W,c(e),1))],64))),128))])],64)):_(``,!0),b(i,{type:`submit`,block:``,n:`primary`},{default:f(()=>[...n[1]||=[u(` Navigate `,-1)]]),_:1})],40,H)])]),default:f(()=>[m(`code`,B,[(a(!0),h(l,null,y(w.value,(e,t)=>(a(),h(`span`,{key:t,class:o(e[0]===`:`?`text-gray border border-dashed rounded border-gray:50 px1`:``)},c(e[0]===`:`?e.slice(1):e),3))),128))])]),_:1})):(a(),h(`button`,{key:0,onClick:O},[m(`code`,null,c(e.route.path),1)]))}}}),{__name:`RoutePathItem`}),K={"max-w-full":``,"of-auto":``},q={"w-full":``},J={"w-20":``,"pr-1":``},Y={flex:``,"items-center":``,"justify-end":``},X={"text-sm":``},Z={flex:`inline gap3`,"items-center":``},Q={flex:`~ gap1`,pr2:``,op0:``,"group-hover:op100":``},$=[`onClick`],ee=[`onClick`],te={"w-0":``,"ws-nowrap":``,"pr-1":``,"text-left":``,"text-sm":``,"font-mono":``,op50:``},ne={"w-0":``,"ws-nowrap":``,"pr-1":``,"text-center":``,"text-sm":``,"font-mono":``,op50:``},re={"w-0":``,"ws-nowrap":``,"text-center":``,"text-sm":``,"font-mono":``},ie={key:0},ae=[`onClick`],oe=Object.assign(i({__name:`RoutesTable`,props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:[`navigate`],setup(e){let t=e,n=N(),r=w(),i=M(),s=p(()=>t.pages.toSorted((e,t)=>e.path.localeCompare(t.path)));function u(e){let r=t.layouts.find(t=>t.name===e);r&&n(r.file)}function d(e){if(typeof e==`string`)return r.value?.middleware.find(t=>t.name===e)?.path}return(t,r)=>{let f=R,p=G,x=F;return a(),h(`div`,K,[m(`table`,q,[r[4]||=m(`thead`,{border:`b base`},[m(`tr`,null,[m(`th`,{"text-left":``}),m(`th`,{"text-left":``},` Route Path `),m(`th`,{"text-left":``},` Name `),m(`th`,{"text-left":``},` Middleware `),m(`th`,null,` Layout `)])],-1),m(`tbody`,null,[(a(!0),h(l,null,y(s.value,s=>(a(),h(`tr`,{key:s.name,class:`group`,"h-7":``,border:`b dashed transparent hover:base`},[m(`td`,J,[m(`div`,Y,[e.matched.find(e=>e.name===s.name)?(a(),v(f,{key:0,n:`green`,title:`active`,textContent:`active`})):e.matchedPending.find(e=>e.name===s.name)?(a(),v(f,{key:1,n:`teal`,title:`next`,textContent:`next`})):_(``,!0)])]),m(`td`,X,[m(`div`,Z,[b(p,{route:s,class:o(e.matched.find(e=>e.name===s.name)?`text-primary`:e.matchedPending.find(e=>e.name===s.name)?`text-teal`:``),"ws-nowrap":``,onNavigate:r[0]||=e=>t.$emit(`navigate`,e)},null,8,[`route`,`class`]),m(`div`,Q,[s.file||s.meta?.file?(a(),h(`button`,{key:0,"text-sm":``,op40:``,hover:`op100 text-primary`,title:`Open in editor`,onClick:e=>g(n)(s.file||s.meta?.file)},[...r[2]||=[m(`div`,{"i-carbon-script-reference":``},null,-1)]],8,$)):_(``,!0),s.file||s.meta?.file?(a(),h(`button`,{key:1,"text-sm":``,op40:``,hover:`op100 text-primary`,title:`Copy path`,onClick:e=>g(i)(s.file||s.meta?.file)},[...r[3]||=[m(`div`,{"i-carbon-copy":``},null,-1)]],8,ee)):_(``,!0)])])]),m(`td`,te,c(s.name),1),m(`td`,ne,[b(x,{filepath:d(s.meta.middleware),override:`${s.meta.middleware||`-`}`},null,8,[`filepath`,`override`])]),m(`td`,re,[s.meta.layout===!1?(a(),h(`span`,ie,`-`)):s.meta.layout?(a(),h(`button`,{key:1,onClick:e=>u(s.meta.layout)},c(s.meta.layout),9,ae)):(a(),h(`button`,{key:2,"text-sm":``,op15:``,onClick:r[1]||=e=>u(`default`)},` (default) `))])]))),128))])])])}}}),{__name:`RoutesTable`}),se={},ce={class:`markdown-body`};function le(e,t){return a(),h(`div`,ce,[...t[0]||=[m(`template`,null,[m(`div`,{class:`markdown-body`},[m(`h1`,null,`Pages`),m(`p`,null,[u(`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 `),m(`code`,{"v-pre":``},`~/pages/`),u(` directory.`)]),m(`p`,null,[m(`a`,{href:`https://nuxt.com/docs/getting-started/routing`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)]),m(`hr`),m(`h2`,null,`Middlewares`),m(`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.`),m(`p`,null,[m(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/middleware`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var ue=k(se,[[`render`,le]]),de={key:0,"h-full":``,"of-auto":``},fe={border:`b base`,flex:`~ col gap1`,"n-navbar-glass":``,px4:``,py3:``},pe={"font-mono":``},me={key:1,op50:``},he={key:0,"text-orange":``,op75:``},ge={key:1,op50:``},_e={"min-h-14":``},ve={key:1,class:`py-4 text-center`},ye={"w-full":``},be={mr1:``},xe=i({__name:`pages`,setup(i){P({icon:`carbon-tree-view-alt`,title:`Pages`,show:()=>{let e=n();return()=>!!e.value},order:1});let s=r(),C=t(),k=D(),j=w(),M=T(),N=O(),B=p(()=>j.value?.middleware||[]),V=d(``),H=d(0),U=p(()=>(B.value,V.value,M.value,H.value,s.value?.currentRoute?.value?.path));x(()=>{C.value&&(V.value=s.value?.currentRoute?.value?.path),s.value?.beforeEach(e=>{V.value=e.fullPath}),s.value?.afterEach(e=>{V.value=e.fullPath})});async function W(){V.value!==s.value?.currentRoute?.value?.path&&s.value.push(V.value||`/`)}let G=p(()=>s.value.resolve(V.value||`/`).matched);function K(e){s.value.push(e),V.value=e}let q=E(),J=p(()=>`./${q===4?`app/`:``}pages/index.vue`);return(t,n)=>{let r=A,i=oe,d=L,p=R,x=F,w=z,T=ue,E=I;return a(),h(l,null,[g(k)?.pages&&g(s)?(a(),h(`div`,de,[m(`div`,fe,[m(`div`,null,[U.value===V.value?(a(),h(`span`,me,`Current route`)):(a(),h(l,{key:0},[n[1]||=m(`span`,{op50:``},`Navigate from `,-1),m(`span`,pe,c(U.value),1),n[2]||=m(`span`,{op50:``},` to `,-1)],64))]),b(r,{modelValue:V.value,"onUpdate:modelValue":n[0]||=e=>V.value=e,"font-mono":``,icon:`carbon-direction-right-01 scale-y--100`,class:o(U.value===V.value?``:G.value.length?`text-green`:`text-orange`),onKeydown:S(W,[`enter`])},null,8,[`modelValue`,`class`]),m(`div`,null,[U.value===V.value?(a(),h(`span`,ge,`Edit path above to navigate`)):(a(),h(l,{key:0},[n[3]||=m(`span`,null,[u(`Press `),m(`b`,{"font-bold":``},`Enter`),u(` to navigate`)],-1),G.value.length?_(``,!0):(a(),h(`span`,he,` (no match)`))],64))])]),b(d,{icon:`carbon-tree-view`,text:`Matched Routes`,padding:!1},{default:f(()=>[m(`div`,_e,[G.value.length?(a(),v(i,{key:0,pages:G.value,layouts:g(M)||[],matched:g(C).matched,"matched-pending":G.value,onNavigate:K},null,8,[`pages`,`layouts`,`matched`,`matched-pending`])):(a(),h(`div`,ve,[...n[4]||=[m(`span`,{op50:``},`No routes matched`,-1)]]))])]),_:1}),b(d,{icon:`carbon-tree-view-alt`,text:`All Routes`,description:`${g(N).length} routes registered in your application`,padding:`pr5`},{default:f(()=>[b(i,{pages:g(N),layouts:g(M)||[],matched:g(C).matched,"matched-pending":G.value,onNavigate:K},null,8,[`pages`,`layouts`,`matched`,`matched-pending`])]),_:1},8,[`description`]),B.value.length?(a(),v(d,{key:0,icon:`carbon:ibm-watson-studio`,text:`Middleware`,description:`${B.value.length} middleware registered in your application`,padding:`px13`},{default:f(()=>[m(`table`,ye,[n[5]||=m(`thead`,{border:`b base`,"h-7":``},[m(`tr`,null,[m(`th`,{"text-left":``},` Name `),m(`th`,{"text-left":``},` Path `)])],-1),(a(!0),h(l,null,y(B.value,e=>(a(),h(`tr`,{key:e.path,"h-7":``},[m(`td`,null,[m(`span`,be,c(e.name),1),e.global?(a(),v(p,{key:0,n:`green`,title:`Registered at runtime as a global component`,textContent:`global`})):_(``,!0)]),m(`td`,null,[b(x,{filepath:e.path},null,8,[`filepath`])])]))),128))])]),_:1},8,[`description`])):_(``,!0)])):(a(),v(w,{key:1,icon:`carbon-tree-view-alt`,name:`wizard-pages`,title:`Nuxt Routing`,description:`Create ${J.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:g(e)).enablePages()}}]},null,8,[`description`,`actions`])),b(E,null,{default:f(()=>[b(T)]),_:1})],64)}}});export{xe as default};
@@ -1 +1 @@
1
- import{o as e}from"./nicon-d8lpuciu.js";import{C as t,H as n,J as r,M as i,X as a,a as o,b as s,ct as c,d as l,f as u,h as d,kt as f,lt as p,m,p as h,q as g,x as _}from"./vendor/json-editor-vue-fkdh1klf.js";import{t as v}from"./_plugin-vue_export-helper-d9irwgla.js";import{_ as y}from"#entry";import{t as b}from"./composables-ioamscf4.js";import{t as x}from"./help-fab-eztpqydj.js";import{t as S}from"./nsection-block-gdm9xag4.js";import{t as C}from"./state-editor-jxoac2ib.js";var w={key:0,flex:`~ col gap-1`},T={key:1,mt2:``,px4:``,italic:``,op35:``},E=Object.assign(t({__name:`StateGroup`,props:{state:{},revision:{},prefix:{default:``}},setup(e){return(t,a)=>{let s=C;return n(),d(`div`,null,[e.state&&Object.keys(e.state).length>0?(n(),d(`div`,w,[(n(!0),d(o,null,g(e.state,(a,o)=>(n(),h(s,{key:o,revision:e.revision,state:a,name:o.startsWith(e.prefix)?o.slice(e.prefix.length):o},{actions:c(e=>[r(t.$slots,`actions`,i({ref_for:!0},e))]),_:3},8,[`revision`,`state`,`name`]))),128))])):(n(),d(`div`,T,` No data `))])}}}),{__name:`StateGroup`}),D={},O={class:`markdown-body`};function k(e,t){return n(),d(`div`,O,[...t[0]||=[u(`template`,null,[u(`div`,{class:`markdown-body`},[u(`h1`,null,`State & Async Data`),u(`p`,null,`// TODO`)])],-1)]])}var A=v(D,[[`render`,k]]),j={key:0},M=t({__name:`payload`,setup(t){b({icon:`carbon-data-set`,title:`Payload`,category:`analyze`,show:()=>{let t=e();return()=>!!t.value},order:7});let r=e(),i=l(()=>r.value?.nuxt.payload),u=l(()=>r.value?.revision.value);async function g(e){await r.value?.nuxt.hooks.callHookParallel(`app:data:refresh`,e)}return(e,t)=>{let l=E,v=S,b=y,w=C,T=A,D=x,O=a(`tooltip`);return n(),d(o,null,[f(r)?(n(),d(`div`,j,[_(v,{icon:`carbon-data-set`,text:`State`,description:"Keyed state from `useState`",padding:!1},{default:c(()=>[_(l,{state:i.value.state,revision:u.value,prefix:`$s`},null,8,[`state`,`revision`])]),_:1}),_(v,{icon:`carbon-data-blob`,text:`Data`,description:"Keyed state from `useAsyncData`",padding:!1},{actions:c(()=>[_(b,{n:`xs primary`,"self-start":``,icon:`i-carbon-recycle`,onClick:t[0]||=e=>g()},{default:c(()=>[...t[1]||=[s(` Re-fetch all data `,-1)]]),_:1})]),default:c(()=>[_(l,{state:i.value.data,revision:u.value},{actions:c(({isOpen:e,name:t})=>[e&&t?p((n(),h(b,{key:0,title:`Re-fetch '${t}'`,icon:`carbon-recycle`,border:!1,onClick:e=>g([t])},null,8,[`title`,`onClick`])),[[O,`Re-fetch '${t}'`,void 0,{bottom:!0}]]):m(``,!0)]),_:1},8,[`state`,`revision`])]),_:1}),i.value.functions&&Object.keys(i.value.functions).length?(n(),h(v,{key:0,icon:`carbon-function`,text:`Functions`,description:`State for functions`},{default:c(()=>[_(w,{"ml--6":``,state:i.value.functions,revision:u.value},null,8,[`state`,`revision`])]),_:1})):m(``,!0)])):m(``,!0),_(D,null,{default:c(()=>[_(T)]),_:1})],64)}}});export{M as default};
1
+ import{s as e}from"./nicon-ed7stj2f.js";import{C as t,H as n,J as r,M as i,X as a,a as o,b as s,ct as c,d as l,f as u,h as d,kt as f,lt as p,m,p as h,q as g,x as _}from"./vendor/json-editor-vue-gdztbg5h.js";import{t as v}from"./_plugin-vue_export-helper-d9irwgla.js";import{h as y}from"#entry";import{t as b}from"./composables-ioamscf4.js";import{t as x}from"./help-fab-husn5zkx.js";import{t as S}from"./nsection-block-giwyhvyv.js";import{t as C}from"./state-editor-eohzeblc.js";var w={key:0,flex:`~ col gap-1`},T={key:1,mt2:``,px4:``,italic:``,op35:``},E=Object.assign(t({__name:`StateGroup`,props:{state:{},revision:{},prefix:{default:``}},setup(e){return(t,a)=>{let s=C;return n(),d(`div`,null,[e.state&&Object.keys(e.state).length>0?(n(),d(`div`,w,[(n(!0),d(o,null,g(e.state,(a,o)=>(n(),h(s,{key:o,revision:e.revision,state:a,name:o.startsWith(e.prefix)?o.slice(e.prefix.length):o},{actions:c(e=>[r(t.$slots,`actions`,i({ref_for:!0},e))]),_:3},8,[`revision`,`state`,`name`]))),128))])):(n(),d(`div`,T,` No data `))])}}}),{__name:`StateGroup`}),D={},O={class:`markdown-body`};function k(e,t){return n(),d(`div`,O,[...t[0]||=[u(`template`,null,[u(`div`,{class:`markdown-body`},[u(`h1`,null,`State & Async Data`),u(`p`,null,`// TODO`)])],-1)]])}var A=v(D,[[`render`,k]]),j={key:0},M=t({__name:`payload`,setup(t){b({icon:`carbon-data-set`,title:`Payload`,category:`analyze`,show:()=>{let t=e();return()=>!!t.value},order:7});let r=e(),i=l(()=>r.value?.nuxt.payload),u=l(()=>r.value?.revision.value);async function g(e){await r.value?.nuxt.hooks.callHookParallel(`app:data:refresh`,e)}return(e,t)=>{let l=E,v=S,b=y,w=C,T=A,D=x,O=a(`tooltip`);return n(),d(o,null,[f(r)?(n(),d(`div`,j,[_(v,{icon:`carbon-data-set`,text:`State`,description:"Keyed state from `useState`",padding:!1},{default:c(()=>[_(l,{state:i.value.state,revision:u.value,prefix:`$s`},null,8,[`state`,`revision`])]),_:1}),_(v,{icon:`carbon-data-blob`,text:`Data`,description:"Keyed state from `useAsyncData`",padding:!1},{actions:c(()=>[_(b,{n:`xs primary`,"self-start":``,icon:`i-carbon-recycle`,onClick:t[0]||=e=>g()},{default:c(()=>[...t[1]||=[s(` Re-fetch all data `,-1)]]),_:1})]),default:c(()=>[_(l,{state:i.value.data,revision:u.value},{actions:c(({isOpen:e,name:t})=>[e&&t?p((n(),h(b,{key:0,title:`Re-fetch '${t}'`,icon:`carbon-recycle`,border:!1,onClick:e=>g([t])},null,8,[`title`,`onClick`])),[[O,`Re-fetch '${t}'`,void 0,{bottom:!0}]]):m(``,!0)]),_:1},8,[`state`,`revision`])]),_:1}),i.value.functions&&Object.keys(i.value.functions).length?(n(),h(v,{key:0,icon:`carbon-function`,text:`Functions`,description:`State for functions`},{default:c(()=>[_(w,{"ml--6":``,state:i.value.functions,revision:u.value},null,8,[`state`,`revision`])]),_:1})):m(``,!0)])):m(``,!0),_(D,null,{default:c(()=>[_(T)]),_:1})],64)}}});export{M as default};
@@ -1 +1 @@
1
- import{o as e,t}from"./nicon-d8lpuciu.js";import{C as n,H as r,J as i,Qt as a,Y as o,Yt as s,a as c,b as l,ct as u,d,f,h as p,m,p as h,q as g,x as _}from"./vendor/json-editor-vue-fkdh1klf.js";import{C as v,u as y,w as b}from"./utils-mmchty8m.js";import{t as x}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as S}from"./composables-ioamscf4.js";import{t as C}from"./filepath-item-kujqy5gq.js";import{t as w}from"./help-fab-eztpqydj.js";import{t as T}from"./nsection-block-gdm9xag4.js";import{t as E}from"./nbadge-ja4fxo56.js";import{t as D}from"./duration-display-bfa7tdhy.js";var O={flex:`~ gap2`,"items-center":``},k={w8:``,"text-right":``,"text-sm":``,op25:``},A={key:0,"flex-auto":``,"text-right":``},j=Object.assign(n({__name:`PluginItem`,props:{plugin:{},index:{}},setup(e){let t=e,n=b(),i=d(()=>y(t.plugin.src,n.value?.rootDir||``).path);return(n,o)=>{let s=E,c=C,l=D;return r(),p(`div`,O,[f(`div`,k,a(e.index),1),_(c,{filepath:t.plugin.src,subpath:!0},{default:u(()=>[f(`div`,null,[i.value.startsWith(`#`)?(r(),h(s,{key:0,n:`rose`,textContent:`virtual`})):i.value.startsWith(`.`)?m(``,!0):(r(),h(s,{key:1,n:`gray`,textContent:`module`})),e.plugin.mode===`server`?(r(),h(s,{key:2,n:`teal`,textContent:`server`})):m(``,!0),e.plugin.mode===`client`?(r(),h(s,{key:3,n:`orange`,textContent:`client`})):m(``,!0)])]),_:1},8,[`filepath`]),e.plugin.metric?.duration==null?m(``,!0):(r(),p(`div`,A,[_(l,{duration:e.plugin.metric?.duration,factor:10},null,8,[`duration`])]))])}}}),{__name:`PluginItem`}),M={class:`n-tip n-tip-base`,flex:`~ col items-start`,"mx--4":``,px4:``,py4:``},N={flex:`~ items-center gap-1`,"font-bold":``},P=Object.assign(n({__name:`HelpTip`,props:{title:{},icon:{}},setup(e){return(n,s)=>{let c=t,l=o(`ContentSlot`);return r(),p(`div`,M,[f(`div`,N,[e.icon?(r(),h(c,{key:0,icon:e.icon,class:`n-tip-icon`},null,8,[`icon`])):m(``,!0),f(`div`,null,a(e.title),1)]),f(`div`,null,[i(n.$slots,`default`,{},()=>[_(l,{use:n.$slots.default,unwrap:`p`},null,8,[`use`])])])])}}}),{__name:`HelpTip`}),F={};function I(e,t){let n=P;return r(),h(n,{title:`Performance Tip`,icon:`carbon-meter`,n:`lime6 dark:lime5`},{default:u(()=>[i(e.$slots,`default`)]),_:3})}var L=Object.assign(x(F,[[`render`,I]]),{__name:`HelpTipPerformance`}),R={},z={class:`markdown-body`},B={class:`markdown-body`};function V(e,t){let n=L;return r(),p(`div`,z,[f(`template`,null,[f(`div`,B,[t[1]||=f(`h1`,null,`Plugins`,-1),t[2]||=f(`p`,null,[l(`Nuxt plugins allow you to extend the functionality of the Nuxt runtime and the Vue instance. You can add plugins to the `),f(`code`,{"v-pre":``},`plugins/`),l(` directory and they will be automatically imported and registered.`)],-1),_(n,null,{default:u(()=>[...t[0]||=[l(` 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}),t[3]||=f(`p`,null,[f(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/plugins`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)],-1)])])])}var H=x(R,[[`render`,V]]),U={pt4:``},W={class:`text-sm`,flex:`~ gap-1 items-center justify-start`,"mt-3":``},G=n({__name:`plugins`,setup(t){S({icon:`carbon-plug`,title:`Plugins`,category:`analyze`});let n=v(),i=e(),a=d(()=>{let e=n.value?.plugins||[],t=i.value?.metrics.clientPlugins()||[];return e.map(e=>{let n=typeof e==`string`?{src:e}:e;return{...n,metric:t.find(e=>e.src===n.src||e.src.startsWith(n.src))}})}),o=d(()=>{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 n=j,i=D,l=T,d=H,m=w;return r(),p(c,null,[_(l,{icon:`carbon-plug`,text:`Plugins`,description:`Total plugins: ${a.value.length}`},{default:u(()=>[f(`div`,U,[(r(!0),p(c,null,g(a.value,(e,t)=>(r(),h(n,{key:e.src,plugin:e,index:t+1,"ml--4":``,"border-base":``,py2:``,class:s(t?`border-t`:``)},null,8,[`plugin`,`index`,`class`]))),128)),f(`div`,W,[t[0]||=f(`div`,{"i-carbon-timer":``,"text-lg":``,op75:``},null,-1),t[1]||=f(`span`,{op50:``},`Total execution time:`,-1),_(i,{duration:o.value,factor:10},null,8,[`duration`])])])]),_:1},8,[`description`]),_(m,null,{default:u(()=>[_(d)]),_:1})],64)}}});export{G as default};
1
+ import{s as e,t}from"./nicon-ed7stj2f.js";import{C as n,H as r,J as i,Jt as a,Y as o,Zt as s,a as c,b as l,ct as u,d,f,h as p,m,p as h,q as g,x as _}from"./vendor/json-editor-vue-gdztbg5h.js";import{C as v,u as y,w as b}from"./utils-mae882d9.js";import{t as x}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as S}from"./composables-ioamscf4.js";import{t as C}from"./filepath-item-jfkmuag3.js";import{t as w}from"./help-fab-husn5zkx.js";import{t as T}from"./nsection-block-giwyhvyv.js";import{t as E}from"./nbadge-c0z39lwn.js";import{t as D}from"./duration-display-cx0hums1.js";var O={flex:`~ gap2`,"items-center":``},k={w8:``,"text-right":``,"text-sm":``,op25:``},A={key:0,"flex-auto":``,"text-right":``},j=Object.assign(n({__name:`PluginItem`,props:{plugin:{},index:{}},setup(e){let t=e,n=b(),i=d(()=>y(t.plugin.src,n.value?.rootDir||``).path);return(n,a)=>{let o=E,c=C,l=D;return r(),p(`div`,O,[f(`div`,k,s(e.index),1),_(c,{filepath:t.plugin.src,subpath:!0},{default:u(()=>[f(`div`,null,[i.value.startsWith(`#`)?(r(),h(o,{key:0,n:`rose`,textContent:`virtual`})):i.value.startsWith(`.`)?m(``,!0):(r(),h(o,{key:1,n:`gray`,textContent:`module`})),e.plugin.mode===`server`?(r(),h(o,{key:2,n:`teal`,textContent:`server`})):m(``,!0),e.plugin.mode===`client`?(r(),h(o,{key:3,n:`orange`,textContent:`client`})):m(``,!0)])]),_:1},8,[`filepath`]),e.plugin.metric?.duration==null?m(``,!0):(r(),p(`div`,A,[_(l,{duration:e.plugin.metric?.duration,factor:10},null,8,[`duration`])]))])}}}),{__name:`PluginItem`}),M={class:`n-tip n-tip-base`,flex:`~ col items-start`,"mx--4":``,px4:``,py4:``},N={flex:`~ items-center gap-1`,"font-bold":``},P=Object.assign(n({__name:`HelpTip`,props:{title:{},icon:{}},setup(e){return(n,a)=>{let c=t,l=o(`ContentSlot`);return r(),p(`div`,M,[f(`div`,N,[e.icon?(r(),h(c,{key:0,icon:e.icon,class:`n-tip-icon`},null,8,[`icon`])):m(``,!0),f(`div`,null,s(e.title),1)]),f(`div`,null,[i(n.$slots,`default`,{},()=>[_(l,{use:n.$slots.default,unwrap:`p`},null,8,[`use`])])])])}}}),{__name:`HelpTip`}),F={};function I(e,t){let n=P;return r(),h(n,{title:`Performance Tip`,icon:`carbon-meter`,n:`lime6 dark:lime5`},{default:u(()=>[i(e.$slots,`default`)]),_:3})}var L=Object.assign(x(F,[[`render`,I]]),{__name:`HelpTipPerformance`}),R={},z={class:`markdown-body`},B={class:`markdown-body`};function V(e,t){let n=L;return r(),p(`div`,z,[f(`template`,null,[f(`div`,B,[t[1]||=f(`h1`,null,`Plugins`,-1),t[2]||=f(`p`,null,[l(`Nuxt plugins allow you to extend the functionality of the Nuxt runtime and the Vue instance. You can add plugins to the `),f(`code`,{"v-pre":``},`plugins/`),l(` directory and they will be automatically imported and registered.`)],-1),_(n,null,{default:u(()=>[...t[0]||=[l(` 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}),t[3]||=f(`p`,null,[f(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/plugins`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)],-1)])])])}var H=x(R,[[`render`,V]]),U={pt4:``},W={class:`text-sm`,flex:`~ gap-1 items-center justify-start`,"mt-3":``},G=n({__name:`plugins`,setup(t){S({icon:`carbon-plug`,title:`Plugins`,category:`analyze`});let n=v(),i=e(),o=d(()=>{let e=n.value?.plugins||[],t=i.value?.metrics.clientPlugins()||[];return e.map(e=>{let n=typeof e==`string`?{src:e}:e;return{...n,metric:t.find(e=>e.src===n.src||e.src.startsWith(n.src))}})}),s=d(()=>{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 n=j,i=D,l=T,d=H,m=w;return r(),p(c,null,[_(l,{icon:`carbon-plug`,text:`Plugins`,description:`Total plugins: ${o.value.length}`},{default:u(()=>[f(`div`,U,[(r(!0),p(c,null,g(o.value,(e,t)=>(r(),h(n,{key:e.src,plugin:e,index:t+1,"ml--4":``,"border-base":``,py2:``,class:a(t?`border-t`:``)},null,8,[`plugin`,`index`,`class`]))),128)),f(`div`,W,[t[0]||=f(`div`,{"i-carbon-timer":``,"text-lg":``,op75:``},null,-1),t[1]||=f(`span`,{op50:``},`Total execution time:`,-1),_(i,{duration:s.value,factor:10},null,8,[`duration`])])])]),_:1},8,[`description`]),_(m,null,{default:u(()=>[_(d)]),_:1})],64)}}});export{G as default};
@@ -0,0 +1,2 @@
1
+ import{_ as e,a as t,g as n,i as r,y as i}from"./nuxt-ekhuaqhk.js";import{$ as a,At as o,Bt as s,D as c,Ft as l,Gt as u,Ht as d,It as f,Kt as p,Lt as m,Mt as h,N as ee,Nt as g,O as _,Pt as v,Q as y,Qt as b,Rt as te,T as ne,Ut as x,V as re,Vt as S,Wt as C,_ as w,a as ie,g as ae,i as oe,it as se,jt as ce,k as le,l as ue,pt as de,qt as fe,r as pe,w as me,wt as he,x as ge,zt as _e}from"./vendor/json-editor-vue-gdztbg5h.js";var ve=void 0,ye=typeof window<`u`&&window.trustedTypes;if(ye)try{ve=ye.createPolicy(`vue`,{createHTML:e=>e})}catch{}var be=ve?e=>ve.createHTML(e):e=>e,xe=`http://www.w3.org/2000/svg`,Se=`http://www.w3.org/1998/Math/MathML`,T=typeof document<`u`?document:null,Ce=T&&T.createElement(`template`),we={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?T.createElementNS(xe,e):t===`mathml`?T.createElementNS(Se,e):n?T.createElement(e,{is:n}):T.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>T.createTextNode(e),createComment:e=>T.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>T.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{Ce.innerHTML=be(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Ce.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},E=`transition`,D=`animation`,O=Symbol(`_vtc`),Te={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ee=h({},oe,Te),De=(e=>(e.displayName=`Transition`,e.props=Ee,e))((e,{slots:t})=>c(pe,ke(e),t)),k=(e,t=[])=>{f(e)?e.forEach(e=>e(...t)):e&&e(...t)},Oe=e=>e?f(e)?e.some(e=>e.length>1):e.length>1:!1;function ke(e){let t={};for(let n in e)n in Te||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Ae(i),ee=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:te,onBeforeAppear:ne=_,onAppear:x=v,onAppearCancelled:re=y}=t,S=(e,t,n,r)=>{e._enterCancelled=r,M(e,t?u:s),M(e,t?l:o),n&&n()},C=(e,t)=>{e._isLeaving=!1,M(e,d),M(e,p),M(e,f),t&&t()},w=e=>(t,n)=>{let i=e?x:v,o=()=>S(t,e,n);k(i,[t,o]),je(()=>{M(t,e?c:a),j(t,e?u:s),Oe(i)||Ne(t,r,ee,o)})};return h(t,{onBeforeEnter(e){k(_,[e]),j(e,a),j(e,o)},onBeforeAppear(e){k(ne,[e]),j(e,c),j(e,l)},onEnter:w(!1),onAppear:w(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>C(e,t);j(e,d),e._enterCancelled?(j(e,f),Le(e)):(Le(e),j(e,f)),je(()=>{e._isLeaving&&(M(e,d),j(e,p),Oe(b)||Ne(e,r,g,n))}),k(b,[e,n])},onEnterCancelled(e){S(e,!1,void 0,!0),k(y,[e])},onAppearCancelled(e){S(e,!0,void 0,!0),k(re,[e])},onLeaveCancelled(e){C(e),k(te,[e])}})}function Ae(e){if(e==null)return null;if(_e(e))return[A(e.enter),A(e.leave)];{let t=A(e);return[t,t]}}function A(e){return b(e)}function j(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[O]||(e[O]=new Set)).add(t)}function M(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[O];n&&(n.delete(t),n.size||(e[O]=void 0))}function je(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Me=0;function Ne(e,t,n,r){let i=e._endId=++Me,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Pe(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Pe(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${E}Delay`),a=r(`${E}Duration`),o=Fe(i,a),s=r(`${D}Delay`),c=r(`${D}Duration`),l=Fe(s,c),u=null,d=0,f=0;t===E?o>0&&(u=E,d=o,f=a.length):t===D?l>0&&(u=D,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?E:D:null,f=u?u===E?a.length:c.length:0);let p=u===E&&/\b(?:transform|all)(?:,|$)/.test(r(`${E}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Fe(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Ie(t)+Ie(e[n])))}function Ie(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Le(e){return(e?e.ownerDocument:document).body.offsetHeight}function Re(e,t,n){let r=e[O];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var N=Symbol(`_vod`),ze=Symbol(`_vsh`),Be={name:`show`,beforeMount(e,{value:t},{transition:n}){e[N]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):P(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),P(e,!0),r.enter(e)):r.leave(e,()=>{P(e,!1)}):P(e,t))},beforeUnmount(e,{value:t}){P(e,t)}};function P(e,t){e.style.display=t?e[N]:`none`,e[ze]=!t}var Ve=Symbol(``),He=/(?:^|;)\s*display\s*:/;function Ue(e,t,n){let r=e.style,i=x(n),a=!1;if(n&&!i){if(t){if(x(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??I(r,t,``)}else for(let e in t)n[e]??I(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?I(r,i,``):qe(e,i,!x(t)&&t?t[i]:void 0,o)||I(r,i,o)}}else if(i){if(t!==n){let e=r[Ve];e&&(n+=`;`+e),r.cssText=n,a=He.test(n)}}else t&&e.removeAttribute(`style`);N in e&&(e[N]=a?r.display:``,e[ze]&&(r.display=`none`))}var F=/\s*!important$/;function I(e,t,n){if(f(n))n.forEach(n=>I(e,t,n));else if(n??=``,t.startsWith(`--`))F.test(n)?e.setProperty(t,n.replace(F,``),`important`):e.setProperty(t,n);else{let r=Ke(e,t);F.test(n)?e.setProperty(g(r),n.replace(F,``),`important`):e[r]=n}}var We=[`Webkit`,`Moz`,`ms`],Ge={};function Ke(e,t){let n=Ge[t];if(n)return n;let r=o(t);if(r!==`filter`&&r in e)return Ge[t]=r;r=ce(r);for(let n=0;n<We.length;n++){let i=We[n]+r;if(i in e)return Ge[t]=i}return t}function qe(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&x(r)&&n===r}var Je=`http://www.w3.org/1999/xlink`;function Ye(e,t,n,r,i,a=d(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Je,t.slice(6,t.length)):e.setAttributeNS(Je,t,n):n==null||a&&!v(n)?e.removeAttribute(t):e.setAttribute(t,a?``:C(n)?String(n):n)}function Xe(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?be(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=v(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function L(e,t,n,r){e.addEventListener(t,n,r)}function Ze(e,t,n,r){e.removeEventListener(t,n,r)}var Qe=Symbol(`_vei`);function $e(e,t,n,r,i=null){let a=e[Qe]||(e[Qe]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=nt(t);r?L(e,n,a[t]=ot(r,i),s):o&&(Ze(e,n,o,s),a[t]=void 0)}}var et=/(Once|Passive|Capture)$/,tt=/^on:?(?:Once|Passive|Capture)$/;function nt(e){let t,n;for(;(n=e.match(et))&&!tt.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):g(e.slice(2)),t]}var rt=0,it=Promise.resolve(),at=()=>rt||=(it.then(()=>rt=0),Date.now());function ot(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(f(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&ue(e,t,5,a)}}else ue(r,t,5,[e])};return n.value=e,n.attached=at(),n}var st=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ct=(e,t,n,r,i,a)=>{let c=i===`svg`;t===`class`?Re(e,r,c):t===`style`?Ue(e,n,r):s(t)?te(t)||$e(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):lt(e,t,r,c))?(Xe(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Ye(e,t,r,c,a,t!==`value`)):e._isVueCE&&(ut(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!x(r)))?Xe(e,o(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Ye(e,t,r,c))};function lt(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&st(t)&&m(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return st(t)&&x(n)?!1:t in e}function ut(e,t){let n=e._def.props;if(!n)return!1;let r=o(t);return Array.isArray(n)?n.some(e=>o(e)===r):Object.keys(n).some(e=>o(e)===r)}var dt=new WeakMap,ft=new WeakMap,R=Symbol(`_moveCb`),pt=Symbol(`_enterCb`),mt=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:h({},Ee,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=me(),r=se(),i,o;return re(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!yt(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(ht),i.forEach(gt);let r=i.filter(_t);Le(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;j(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[R]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[R]=null,M(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let s=he(e),c=ke(s),l=s.tag||ie;if(i=[],o)for(let e=0;e<o.length;e++){let t=o[e];t.el&&t.el instanceof Element&&!t.el[ze]&&(i.push(t),a(t,y(t,c,r,n)),dt.set(t,vt(t.el)))}o=t.default?ne(t.default()):[];for(let e=0;e<o.length;e++){let t=o[e];t.key!=null&&a(t,y(t,c,r,n))}return ge(l,null,o)}}});function ht(e){let t=e.el;t[R]&&t[R](),t[pt]&&t[pt]()}function gt(e){ft.set(e,vt(e.el))}function _t(e){let t=dt.get(e),n=ft.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function vt(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function yt(e,t,n){let r=e.cloneNode(),i=e[O];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Pe(r);return a.removeChild(r),o}var z=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return f(t)?e=>l(t,e):t};function bt(e){e.target.composing=!0}function xt(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var B=Symbol(`_assign`),V=Symbol(`_initialValue`);function St(e,t,n){return t&&(e=e.trim()),n&&(e=fe(e)),e}var Ct={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[V]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[V]=e.defaultValue.replace(/\r\n?/g,`
2
+ `))),e[B]=z(i);let a=r||i.props&&i.props.type===`number`;L(e,t?`change`:`input`,t=>{t.target.composing||e[B](St(e.value,n,a))}),(n||a)&&L(e,`change`,()=>{e.value=St(e.value,n,a)}),t||(L(e,`compositionstart`,bt),L(e,`compositionend`,xt),L(e,`change`,xt))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[V];delete e[V],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[B](St(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[B]=z(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?fe(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},wt={deep:!0,created(e,t,n){e[B]=z(n),L(e,`change`,()=>{let t=e._modelValue,n=H(e),r=e.checked,i=e[B];if(f(t)){let e=p(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(S(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(At(e,r))})},mounted:Tt,beforeUpdate(e,t,n){e[B]=z(n),Tt(e,t,n)}};function Tt(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(f(t))i=p(t,r.props.value)>-1;else if(S(t))i=t.has(r.props.value);else{if(t===n)return;i=u(t,At(e,!0))}e.checked!==i&&(e.checked=i)}var Et={created(e,{value:t},n){e.checked=u(t,n.props.value),e[B]=z(n),L(e,`change`,()=>{e[B](H(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[B]=z(r),t!==n&&(e.checked=u(t,r.props.value))}},Dt={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,L(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?fe(H(e)):H(e)),r=e.multiple,i=r?S(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?f(i)?t.slice():t:i];try{e[B](i)}finally{ee(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[B]=z(r)},mounted(e,{value:t}){kt(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[B]=z(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Ot(t,n[1],n[0]))&&kt(e,t)}};function Ot(e,t,n){if(!n||f(e))return u(e,t);if(S(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function kt(e,t){let n=e.multiple,r=f(t);if(!n||r||S(t)){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=H(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):p(t,o)>-1}else a.selected=t.has(o)}else if(u(H(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function H(e){return`_value`in e?e._value:e.value}function At(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var jt={created(e,t,n){U(e,t,n,null,`created`)},mounted(e,t,n){U(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){U(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){U(e,t,n,r,`updated`)}};function Mt(e,t){switch(e){case`SELECT`:return Dt;case`TEXTAREA`:return Ct;default:switch(t){case`checkbox`:return wt;case`radio`:return Et;default:return Ct}}}function U(e,t,n,r,i){let a=Mt(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}var Nt=[`ctrl`,`shift`,`alt`,`meta`],Pt={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Nt.some(n=>e[`${n}Key`]&&!t.includes(n))},Ft=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Pt[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},It={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Lt=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=g(n.key);if(t.some(e=>e===r||It[e]===r))return e(n)}))},Rt=h({patchProp:ct},we),W,zt=!1;function Bt(){return W||=w(Rt)}function Vt(){return W=zt?W:ae(Rt),zt=!0,W}var Ht=((...e)=>{let t=Bt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Gt(e);if(!r)return;let i=t._component;!m(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Wt(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),Ut=((...e)=>{let t=Vt().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=Gt(e);if(t)return n(t,!0,Wt(t))},t});function Wt(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Gt(e){return x(e)?document.querySelector(e):e}var Kt=Symbol(`layout-meta`),qt=Symbol(`layout`),Jt=Symbol(`route`),G=i({docsBase:n,reporters:e});String.fromCharCode;var Yt=/#/g,Xt=/&/g,Zt=/\//g,Qt=/=/g,$t=/\+/g,en=/%5e/gi,tn=/%60/gi,nn=/%7c/gi,rn=/%20/gi,an=/%2f/gi;function on(e){return encodeURI(``+e).replace(nn,`|`)}function sn(e){return on(typeof e==`string`?e:JSON.stringify(e)).replace($t,`%2B`).replace(rn,`+`).replace(Yt,`%23`).replace(Xt,`%26`).replace(tn,"`").replace(en,`^`).replace(Zt,`%2F`)}function cn(e){return sn(e).replace(Qt,`%3D`)}function K(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function ln(e){return K(e.replace(an,`%252F`))}function un(e){return K(e.replace($t,` `))}function dn(e){return K(e.replace($t,` `))}function fn(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=un(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=dn(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function pn(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${cn(e)}=${sn(t)}`).join(`&`):`${cn(e)}=${sn(t)}`:cn(e)}function mn(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>pn(t,e[t])).filter(Boolean).join(`&`)}var hn=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,gn=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,_n=/^([/\\]\s*){2,}[^/\\]/,vn=/^[\s\0]*(blob|data|javascript|vbscript):$/i,yn=/\/$|\/\?|\/#/,bn=/^\.?\//;function q(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?hn.test(e):gn.test(e)||(t.acceptRelative?_n.test(e):!1)}function xn(e){return!!e&&vn.test(e)}function Sn(e=``,t){return t?yn.test(e):e.endsWith(`/`)}function J(e=``,t){if(!t)return(Sn(e)?e.slice(0,-1):e)||`/`;if(!Sn(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function Cn(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(Sn(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function wn(e,t){if(Dn(t)||q(e))return e;let n=J(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return kn(n,e)}function Tn(e,t){if(Dn(t))return e;let n=J(t);if(!e.startsWith(n))return e;let r=e[n.length];return r&&r!==`/`&&r!==`?`?e:`/`+e.slice(n.length).replace(/^\/+/,``)}function En(e,t){let n=Y(e);return n.search=mn({...fn(n.search),...t}),Fn(n)}function Dn(e){return!e||e===`/`}function On(e){return e&&e!==`/`}function kn(e,...t){let n=e||``;for(let e of t.filter(e=>On(e)))if(n){let t=e.replace(bn,``);n=Cn(n)+t}else n=e;return n}function An(...e){let t=/\/(?!\/)/,n=e.filter(Boolean),r=[],i=0;for(let e of n)if(e&&e!==`/`){for(let[n,a]of e.split(t).entries())if(a&&a!==`.`){if(a===`..`){if(r.length===1&&q(r[0]))continue;r.pop(),i--;continue}if(n===1&&r[r.length-1]?.endsWith(`:/`)){r[r.length-1]+=`/`+a;continue}r.push(a),i++}}let a=r.join(`/`);return i>=0?n[0]?.startsWith(`/`)&&!a.startsWith(`/`)?a=`/`+a:n[0]?.startsWith(`./`)&&!a.startsWith(`./`)&&(a=`./`+a):a=`../`.repeat(-1*i)+a,n[n.length-1]?.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function jn(e,t){let n=e.match(gn);return n||=e.match(/^\/{2,}/),n?t+e.slice(n[0].length):t+e}function Mn(e,t){return K(J(e))===K(J(t))}var Nn=Symbol.for(`ufo:protocolRelative`);function Y(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!q(e,{acceptRelative:!0}))return t?Y(t+e):Pn(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=Pn(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[Nn]:!r}}function Pn(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Fn(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[Nn]?(e.protocol||``)+`//`:``)+i+a+t+n+r}var In=(()=>r()?.$router);function Ln(e){let t=e;return t.parent??t.subs?.sub}function Rn(e){let t=e.scope,n=de();for(;n;){if(n===t)return!0;n=Ln(n)}return!1}var zn=(()=>{if(_()){let e=me();if(!e||Rn(e))return le(Jt,r()._route)}return r()._route});function Bn(e){return e}var Vn=()=>{try{if(r()._processingMiddleware)return!0}catch{return!1}return!1},Hn=(e,n)=>{e||=`/`;let i=typeof e==`string`||`path`in e,a=typeof e==`string`?e:`path`in e?Un(e):In().resolve(e).href;if(n?.open){let{protocol:e}=new URL(a,window.location.href);if(e&&xn(e))throw G.NUXT_E2002({toPath:a,protocol:e});let r=i&&!q(a,{acceptRelative:!0})&&!a.startsWith(`#`)?kn(t().app.baseURL,a):a,{target:o=`_blank`,windowFeatures:s={}}=n.open,c=[];for(let[e,t]of Object.entries(s))t!==void 0&&c.push(`${e.toLowerCase()}=${t}`);return open(r,o,c.join(`, `)),Promise.resolve()}let o=q(a,{acceptRelative:!0}),s=n?.external||o;if(s){if(!n?.external)throw G.NUXT_E2001({toPath:a});let{protocol:e}=new URL(a,window.location.href);if(e&&xn(e))throw G.NUXT_E2002({toPath:a,protocol:e})}let c=Vn();if(!s&&c){if(n?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=Y(e);return{path:t,...n&&{query:fn(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let l=In(),u=r();if(s)return u._scope.stop(),n?.replace?location.replace(a):location.href=a,c?u.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let d=typeof e==`string`?Wn(e):e;return n?.replace?l.replace(d):l.push(d)};function Un(e){return En(e.path||``,e.query||{})+(e.hash||``)}function Wn(e){let t=Y(e);return Zn(ln(t.pathname))+t.search+t.hash}var Gn=/%7C/g,Kn=/%5B/g,qn=/%5D/g,Jn=/%252F/gi,Yn=/#/g,Xn=/\?/g;function Zn(e){return encodeURI(e).replace(Gn,`|`).replace(Kn,`[`).replace(qn,`]`).replace(Yn,`%23`).replace(Xn,`%3F`).replace(Jn,`%2F`)}function Qn(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function $n(e,t,n=`.`,r){if(!Qn(t))return $n(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(i[t]=Array.isArray(a)&&Array.isArray(i[t])?[...a,...i[t]]:Qn(a)&&Qn(i[t])?$n(a,i[t],(n?`${n}.`:``)+t.toString(),r):a))}return i}function er(e){return(...t)=>t.reduce((t,n)=>$n(t,n,``,e),{})}var tr=er(),nr=e=>e.startsWith(`/`);function rr(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function ir(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&rr(e.default)}var ar=Object.assign;function or(e,t){let n={};for(let r in t){let i=t[r];n[r]=X(i)?i.map(e):e(i)}return n}var sr=()=>{},X=Array.isArray;function cr(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var lr=Symbol(``);function ur(e,t){return ar(Error(),{type:e,[lr]:!0},t)}function dr(e,t){return e instanceof Error&&lr in e&&(t==null||!!(e.type&t))}var fr=Symbol(``),pr=Symbol(``),mr=Symbol(``),hr=Symbol(``),gr=Symbol(``);function _r(e){return le(hr)}var vr=typeof document<`u`,yr=/#/g,br=/&/g,xr=/\//g,Sr=/=/g,Cr=/\?/g,wr=/\+/g,Tr=/%5B/g,Er=/%5D/g,Dr=/%5E/g,Or=/%60/g,kr=/%7B/g,Ar=/%7C/g,jr=/%7D/g,Mr=/%20/g;function Nr(e){return e==null?``:encodeURI(``+e).replace(Ar,`|`).replace(Tr,`[`).replace(Er,`]`)}function Pr(e){return Nr(e).replace(kr,`{`).replace(jr,`}`).replace(Dr,`^`)}function Fr(e){return Nr(e).replace(wr,`%2B`).replace(Mr,`+`).replace(yr,`%23`).replace(br,`%26`).replace(Or,"`").replace(kr,`{`).replace(jr,`}`).replace(Dr,`^`)}function Ir(e){return Fr(e).replace(Sr,`%3D`)}function Lr(e){return Nr(e).replace(yr,`%23`).replace(Cr,`%3F`)}function Rr(e){return Lr(e).replace(xr,`%2F`)}function Z(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var zr=/\/$/,Br=e=>e.replace(zr,``);function Vr(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Jr(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Z(o)}}function Hr(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Ur(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Wr(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Q(t.matched[r],n.matched[i])&&Gr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Q(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Gr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Kr(e[n],t[n]))return!1;return!0}function Kr(e,t){return X(e)?qr(e,t):X(t)?qr(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function qr(e,t){return X(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Jr(e,t){if(nr(e))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var Yr={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function Xr(e){if(!e){if(vr){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Br(e)}var Zr=/^[^#]+#/;function Qr(e,t){return e.replace(Zr,`#`)+t}function $r(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var ei=()=>history.scrollRestoration===`manual`?{left:window.scrollX,top:window.scrollY}:null;function ti(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=$r(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function ni(e,t){return(history.state?history.state.position-t:-1)+e}var ri=new Map;function ii(e){ri.set(e,ei())}function ai(e){let t=ri.get(e);return ri.delete(e),t}function oi(e){return typeof e==`string`||e&&typeof e==`object`}function si(e){return typeof e==`string`||typeof e==`symbol`}function ci(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(wr,` `),i=r.indexOf(`=`),a=Z(i<0?r:r.slice(0,i)),o=i<0?null:Z(r.slice(i+1));if(a in t){let e=t[a];X(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function li(e){let t=``;for(let n in e){let r=e[n];if(n=Ir(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(X(r)?r.map(e=>e&&Fr(e)):[r&&Fr(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function ui(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=X(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function di(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function $(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(ur(4,{from:n,to:t})):e instanceof Error?c(e):oi(e)?c(ur(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function fi(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t===`beforeRouteEnter`||o.instances[e]){if(rr(s)){let c=(s.__vccOpts||s)[t];c&&a.push($(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=ir(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&$(c,n,r,o,e,i)()}))}}}return a}function pi(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>Q(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Q(e,s))||i.push(s))}return[n,r,i]}var mi=(e,t)=>({default:()=>e?c(De,e===!0?{}:e,t):t.default?.()}),hi=/(:\w+)\([^)]+\)/g,gi=/(:\w+)[?+*]/g,_i=/:\w+/g;function vi(e){let t=e?.meta.key??e.path.replace(hi,`$1`).replace(gi,`$1`).replace(_i,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function yi(e,t){return e===t||t===Yr?!1:vi(e)!==vi(t)||!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default)}function bi(e){return!!e&&(!!e.__vapor||!!e.__vs)}var xi=/^[a-z][a-z0-9-]*$/i;function Si(e,t){return e&&xi.test(e)?e:t}function Ci(e){return Array.isArray(e)?e:[e]}function wi(e){let t=[];for(let n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?Ci(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?Ci(n.onBeforeLeave):void 0});return tr(...t)}var Ti=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Ei=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Di=e=>{let t=r();t.isHydrating?t.hooks.hookOnce(`app:suspense:resolve`,()=>{Ti(()=>e())}):Ti(()=>e())};export{Un as $,ti as A,dr as B,Gr as C,jt as Ct,ci as D,Be as Dt,ui as E,Ct as Et,or as F,mr as G,cr as H,ar as I,pr as J,gr as K,ur as L,Hr as M,Ur as N,Vr as O,Lt as Ot,di as P,Hn as Q,nr as R,Wr as S,wt as St,Xr as T,Dt as Tt,sr as U,fr as V,hr as W,Bn as X,tr as Y,Wn as Z,ai as _,Jt as _t,mi as a,An as at,vr as b,Ht as bt,Si as c,wn as ct,Qr as d,Cn as dt,zn as et,Z as f,Tn as ft,fi as g,qt as gt,pi as h,Kt as ht,wi as i,xn as it,li as j,ii as k,Ft as kt,Yr as l,jn as lt,Rr as m,G as mt,Ei as n,q as nt,yi as o,kn as ot,Pr as p,J as pt,_r as q,Ti as r,Mn as rt,bi as s,fn as st,Di as t,In as tt,ei as u,En as ut,ni as v,De as vt,Q as w,Et as wt,si as x,Ut as xt,$ as y,mt as yt,X as z};
@@ -1 +1 @@
1
- import{o as e}from"./nicon-d8lpuciu.js";import{C as t,H as n,a as r,b as i,ct as a,d as o,f as s,h as c,kt as l,m as u,x as d}from"./vendor/json-editor-vue-fkdh1klf.js";import{k as f}from"./utils-mmchty8m.js";import{t as p}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as m}from"./composables-ioamscf4.js";import{t as h}from"./help-fab-eztpqydj.js";import{t as g}from"./nsection-block-gdm9xag4.js";import{t as _}from"./state-editor-jxoac2ib.js";var v={},y={class:`markdown-body`};function b(e,t){return n(),c(`div`,y,[...t[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,[i(`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`),i(` 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 x=p(v,[[`render`,b]]),S={key:0},C=t({__name:`runtime-configs`,setup(t){m({icon:`carbon-settings-services`,title:`Runtime Configs`,category:`analyze`,show:()=>{let t=e();return()=>!!t.value},order:6});let i=e(),s=f(),p=o(()=>i.value?.nuxt.payload),v=o(()=>i.value?.revision.value),y=o(()=>{let e={...s.value};return delete e.public,delete e.app,e});return(e,t)=>{let o=_,s=g,f=x,m=h;return n(),c(r,null,[l(i)?(n(),c(`div`,S,[d(s,{icon:`carbon-settings-services`,text:`App Config`,padding:!1},{default:a(()=>[d(o,{state:l(i).app.appConfig,revision:v.value},null,8,[`state`,`revision`])]),_:1}),d(s,{icon:`carbon-settings`,text:`Public Runtime Config`,padding:!1},{default:a(()=>[d(o,{state:p.value.config?.public,revision:v.value},null,8,[`state`,`revision`])]),_:1}),d(s,{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:a(()=>[d(o,{state:y.value,revision:v.value,readonly:``},null,8,[`state`,`revision`])]),_:1})])):u(``,!0),d(m,null,{default:a(()=>[d(f)]),_:1})],64)}}});export{C as default};
1
+ import{s as e}from"./nicon-ed7stj2f.js";import{C as t,H as n,a as r,b as i,ct as a,d as o,f as s,h as c,kt as l,m as u,x as d}from"./vendor/json-editor-vue-gdztbg5h.js";import{k as f}from"./utils-mae882d9.js";import{t as p}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as m}from"./composables-ioamscf4.js";import{t as h}from"./help-fab-husn5zkx.js";import{t as g}from"./nsection-block-giwyhvyv.js";import{t as _}from"./state-editor-eohzeblc.js";var v={},y={class:`markdown-body`};function b(e,t){return n(),c(`div`,y,[...t[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,[i(`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`),i(` 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 x=p(v,[[`render`,b]]),S={key:0},C=t({__name:`runtime-configs`,setup(t){m({icon:`carbon-settings-services`,title:`Runtime Configs`,category:`analyze`,show:()=>{let t=e();return()=>!!t.value},order:6});let i=e(),s=f(),p=o(()=>i.value?.nuxt.payload),v=o(()=>i.value?.revision.value),y=o(()=>{let e={...s.value};return delete e.public,delete e.app,e});return(e,t)=>{let o=_,s=g,f=x,m=h;return n(),c(r,null,[l(i)?(n(),c(`div`,S,[d(s,{icon:`carbon-settings-services`,text:`App Config`,padding:!1},{default:a(()=>[d(o,{state:l(i).app.appConfig,revision:v.value},null,8,[`state`,`revision`])]),_:1}),d(s,{icon:`carbon-settings`,text:`Public Runtime Config`,padding:!1},{default:a(()=>[d(o,{state:p.value.config?.public,revision:v.value},null,8,[`state`,`revision`])]),_:1}),d(s,{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:a(()=>[d(o,{state:y.value,revision:v.value,readonly:``},null,8,[`state`,`revision`])]),_:1})])):u(``,!0),d(m,null,{default:a(()=>[d(f)]),_:1})],64)}}});export{C as default};
@@ -0,0 +1 @@
1
+ import{B as e,t}from"./nicon-ed7stj2f.js";import{C as n,H as r,J as i,Jt as a,Zt as o,a as s,at as c,b as l,ct as u,d,f,h as p,kt as m,m as h,p as g,q as _,x as v}from"./vendor/json-editor-vue-gdztbg5h.js";import{_ as y,h as b}from"#entry";import{t as x}from"./nselect-flx4akj0.js";import{t as S}from"./ncheckbox-f45numwj.js";var C={p4:``,flex:`~ col gap-4`},w={key:1,ml2:``,flex:``},T=[`value`],E={key:0,flex:``,"gap-4":``},D=Object.assign(n({__name:`ServerRouteInputs`,props:{modelValue:{},keys:{default:()=>[]},default:{default:()=>({})},disabled:{type:Boolean,default:!1}},setup(n,{emit:D}){let O=n,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=e(O,`modelValue`,k,{passive:!0}),P=d(()=>[...O.keys,`active`,`key`,`value`,`type`]),F=d(()=>{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 c(()=>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`}),(e,c)=>{let d=S,D=y,O=x,k=t,A=b;return r(),p(`div`,C,[(r(!0),p(s,null,_(m(N),(t,c)=>(r(),p(`div`,{key:c,flex:`~ gap-2`,"justify-around":``},[i(e.$slots,`input`,{item:t}),(r(!0),p(s,null,_(P.value,e=>(r(),p(s,{key:e},[t.type!==null&&e===`active`?(r(),g(d,{key:0,modelValue:t[e],"onUpdate:modelValue":n=>t[e]=n,n:`sm primary`,disabled:n.disabled},null,8,[`modelValue`,`onUpdate:modelValue`,`disabled`])):h(``,!0),t.type!==null&&e===`key`?(r(),g(D,{key:1,modelValue:t[e],"onUpdate:modelValue":n=>t[e]=n,placeholder:e,"flex-1":``,"font-mono":``,n:`sm primary`,disabled:n.disabled,class:a(n.disabled?`op50`:``)},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`,`disabled`,`class`])):e===`value`?(r(),p(s,{key:2},[t.type===`file`?(r(),g(D,{key:0,type:`file`,disabled:n.disabled,class:a(n.disabled?`op75`:``),onChange:e=>L(c,e)},null,8,[`disabled`,`class`,`onChange`])):t.type===`boolean`?(r(),p(`div`,w,[v(d,{modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,placeholder:`Value`,n:`green lg`,disabled:n.disabled},null,8,[`modelValue`,`onUpdate:modelValue`,`disabled`])])):(r(),g(D,{key:2,modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,type:t.type,placeholder:`Value`,"flex-1":``,"font-mono":``,n:`sm primary`,disabled:n.disabled,class:a(n.disabled?`op75`:``)},null,8,[`modelValue`,`onUpdate:modelValue`,`type`,`disabled`,`class`]))],64)):e===`type`?(r(),g(O,{key:3,modelValue:t.type,"onUpdate:modelValue":e=>t.type=e,n:`sm green`,class:a(n.disabled?`op75`:``),disabled:n.disabled},{default:u(()=>[(r(),p(s,null,_(I,e=>f(`option`,{key:e,value:e},o(e),9,T)),64))]),_:1},8,[`modelValue`,`onUpdate:modelValue`,`class`,`disabled`])):h(``,!0)],64))),128)),i(e.$slots,`input-actions`,{},()=>[v(A,{n:`red`,disabled:n.disabled,class:a(n.disabled?`op0!`:``),onClick:e=>m(N).splice(c,1)},{default:u(()=>[v(k,{icon:`carbon:trash-can`})]),_:1},8,[`disabled`,`class`,`onClick`])])]))),128)),n.disabled?h(``,!0):(r(),p(`div`,E,[i(e.$slots,`actions`,{params:m(N)},()=>[v(A,{icon:`carbon-add`,n:`sm primary`,my1:``,"px-3":``,onClick:c[0]||=e=>m(N).push({...F.value})},{default:u(()=>[...c[2]||=[l(` Add `,-1)]]),_:1}),c[4]||=f(`div`,{"flex-auto":``},null,-1),m(N).length?(r(),g(A,{key:0,icon:`carbon-trash-can`,n:`sm red`,my1:``,"px-3":``,onClick:c[1]||=e=>m(N).splice(0,m(N).length)},{default:u(()=>[...c[3]||=[l(` Remove All `,-1)]]),_:1})):h(``,!0)])])),i(e.$slots,`default`)])}}}),{__name:`ServerRouteInputs`});export{D as t};
@@ -0,0 +1,7 @@
1
+ import{C as e,F as t,J as n,i as r,r as i,s as a,t as o}from"./nicon-ed7stj2f.js";import{C as s,H as c,J as l,Jt as u,M as d,N as f,X as ee,Xt as p,Zt as m,_t as h,a as g,at as _,b as v,bt as y,ct as b,d as x,dt as te,f as S,h as C,kt as w,lt as T,m as E,o as D,ot as ne,p as O,pt as k,q as A,t as re,vt as j,x as M}from"./vendor/json-editor-vue-gdztbg5h.js";import{O as N,a as ie,w as P}from"./utils-mae882d9.js";import{t as ae}from"./virtual_nuxt_node_modules_.cache_nuxt_.nuxt_fetch.client-bkuxbmrx.js";import{t as F}from"./ncard-nledjs9m.js";import{_ as oe,h as se,i as ce,n as le,o as I,p as ue,r as de,v as fe}from"#entry";import{t as pe}from"./nselect-flx4akj0.js";import{t as me}from"./ncode-block-lo7bvbmn.js";import{t as he}from"./ndrawer-hxy5nweo.js";import{t as ge}from"./composables-ioamscf4.js";import{t as _e}from"./npanel-grids-d696wmf0.js";import{t as ve}from"./nsplit-pane-wqr6p2la.js";import{t as ye}from"./nnavbar-m0eev8zc.js";import{t as L}from"./nsection-block-giwyhvyv.js";import{t as be}from"./code-snippets-etap53uo.js";import{n as xe,t as Se}from"./constants-g2z8m4rs.js";import{t as Ce}from"./nbadge-c0z39lwn.js";import{t as we}from"./data-schema-button-f6b405qw.js";import{t as Te}from"./server-route-inputs-nejfwmwu.js";var R=Object.assign(s({__name:`ServerRouteListItem`,props:{item:{},index:{default:0}},setup(e){let t=y(!0),n=I();return(r,i)=>{let a=o,s=Ce,d=R;return c(),C(`div`,null,[S(`button`,{flex:`~ gap-2`,"w-full":``,"items-start":``,"items-center":``,px2:``,py1:``,"hover-bg-active":``,class:u([{"bg-active":w(n)===e.item.filepath}]),style:p({paddingLeft:`calc(0.5rem + ${e.index*1.5}em)`}),onClick:i[0]||=r=>{t.value=!t.value,n.value=e.item.filepath}},[S(`div`,{class:u({"w-12":!e.item.routes}),"flex-none":``,"text-left":``},[e.item.type===`collection`?(c(),O(a,{key:0,icon:`carbon:chevron-right`,"mb0.5":``,"transform-rotate":t.value?90:0,transition:``},null,8,[`transform-rotate`])):(c(),O(s,{key:1,class:u(w(ie)(e.item.method||`*`)),textContent:m((e.item.method||`*`).toUpperCase())},null,8,[`class`,`textContent`]))],2),S(`span`,{class:u({"flex items-center":e.item.routes}),"text-sm":``,"font-mono":``},[e.item.type===`collection`?(c(),O(a,{key:0,title:`${e.item.routes?.length} routes`,icon:`carbon:folder`,mr1:``},null,8,[`title`])):E(``,!0),v(` `+m(e.item.route),1)],2)],6),i[1]||=S(`div`,{"x-divider":``},null,-1),t.value?l(r.$slots,`default`,{},()=>[(c(!0),C(g,null,A(e.item.routes,t=>(c(),O(d,{key:t.filepath,item:t,index:e.index+1},null,8,[`item`,`index`]))),128))],void 0,0):E(``,!0)])}}}),{__name:`ServerRouteListItem`});function z(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]=z(e[t]));else for(t in n={},e)t===`__proto__`?Object.defineProperty(n,t,{value:z(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=z(e[t]);return n}if(r===`[object Array]`){for(t=e.length,n=Array(t);t--;)n[t]=z(e[t]);return n}return r===`[object Set]`?(n=new Set,e.forEach(function(e){n.add(z(e))}),n):r===`[object Map]`?(n=new Map,e.forEach(function(e,t){n.set(z(t),z(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(z(e.buffer)):r===`[object ArrayBuffer]`?e.slice(0):r.slice(-6)===`Array]`?new e.constructor(e):e}var B=3456e4;function V(e,t,n){let r=e.indexOf(`;`,t);return r===-1?n:r}function H(e,t,n){let r=e.indexOf(`=`,t);return r<n?r:-1}function Ee(e,t,n){if(t===n)return``;let r=t,i=n;do{let t=e.charCodeAt(r);if(t!==32&&t!==9)break}while(++r<i);for(;i>r;){let t=e.charCodeAt(i-1);if(t!==32&&t!==9)break;i--}return e.slice(r,i)}var U=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function De(e,t){let n=new U,r=e.length;if(r<2)return n;let i=t?.decode||Oe,a=t?.allowMultiple||!1,o=0;do{let s=H(e,o,r);if(s===-1)break;let c=V(e,o,r);if(s>c){o=e.lastIndexOf(`;`,s-1)+1;continue}let l=Ee(e,o,s);if(t?.filter&&!t.filter(l)){o=c+1;continue}let u=i(Ee(e,s+1,c));if(a){let e=n[l];e===void 0?n[l]=u:Array.isArray(e)?e.push(u):n[l]=[e,u]}else n[l]===void 0&&(n[l]=u);o=c+1}while(o<r);return n}function Oe(e){if(!e.includes(`%`))return e;try{return decodeURIComponent(e)}catch{return e}}var ke=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,W=/^[\u0021-\u003A\u003C-\u007E]*$/,Ae=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,G=/^[\u0020-\u003A\u003C-\u007E]*$/,je=Object.prototype.toString;function K(e,t,n){let r=typeof e==`object`&&!!e,i=r?t:n,a=i?.stringify||JSON.stringify,o=r?e:{...n,name:e,value:t==null?``:typeof t==`string`?t:a(t)},s=i?.encode||encodeURIComponent;if(!ke.test(o.name))throw TypeError(`argument name is invalid: ${o.name}`);let c=o.value?s(o.value):``;if(!W.test(c))throw TypeError(`argument val is invalid: ${o.value}`);if(!o.secure){if(o.partitioned)throw TypeError(`Partitioned cookies must have the Secure attribute`);if(o.sameSite&&String(o.sameSite).toLowerCase()===`none`)throw TypeError(`SameSite=None cookies must have the Secure attribute`);if(o.name.length>9&&o.name.charCodeAt(0)===95&&o.name.charCodeAt(1)===95){let e=o.name.toLowerCase();if(e.startsWith(`__secure-`)||e.startsWith(`__host-`))throw TypeError(`${o.name} cookies must have the Secure attribute`)}}if(o.name.length>7&&o.name.charCodeAt(0)===95&&o.name.charCodeAt(1)===95&&o.name.toLowerCase().startsWith(`__host-`)){if(o.path!==`/`)throw TypeError(`__Host- cookies must have Path=/`);if(o.domain)throw TypeError(`__Host- cookies must not have a Domain attribute`)}let l=o.name+`=`+c;if(o.maxAge!==void 0){if(!Number.isInteger(o.maxAge))throw TypeError(`option maxAge is invalid: ${o.maxAge}`);l+=`; Max-Age=`+Math.max(0,Math.min(o.maxAge,B))}if(o.domain){if(!Ae.test(o.domain))throw TypeError(`option domain is invalid: ${o.domain}`);l+=`; Domain=`+o.domain}if(o.path){if(!G.test(o.path))throw TypeError(`option path is invalid: ${o.path}`);l+=`; Path=`+o.path}if(o.expires){if(!Me(o.expires)||!Number.isFinite(o.expires.valueOf()))throw TypeError(`option expires is invalid: ${o.expires}`);l+=`; Expires=`+o.expires.toUTCString()}if(o.httpOnly&&(l+=`; HttpOnly`),o.secure&&(l+=`; Secure`),o.partitioned&&(l+=`; Partitioned`),o.priority)switch(typeof o.priority==`string`?o.priority.toLowerCase():void 0){case`low`:l+=`; Priority=Low`;break;case`medium`:l+=`; Priority=Medium`;break;case`high`:l+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid: ${o.priority}`)}if(o.sameSite)switch(typeof o.sameSite==`string`?o.sameSite.toLowerCase():o.sameSite){case!0:case`strict`:l+=`; SameSite=Strict`;break;case`lax`:l+=`; SameSite=Lax`;break;case`none`:l+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid: ${o.sameSite}`)}return l}function Me(e){return je.call(e)===`[object Date]`}function q(e){return typeof e==`string`?`'${e}'`:new X().serialize(e)}var Ne=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,J=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[Ne.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function Y(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&J[n]?J[n]:n+128,s=a<128&&J[a]?J[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var X=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?Y(e,t):n===`number`&&r===`number`?e-t:Y(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(Y),a=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];a+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(a+=`,`)}return a+`}`}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})();function Pe(e,t){return e===t||q(e)===q(t)}function Fe(e){if(e!==`undefined`)try{let t=JSON.parse(e);return typeof t==`number`&&String(t)!==e?e:t}catch{return e}}function Z(e){return typeof e==`function`?e():e}var Q={path:`/`,watch:!0,decode:e=>e&&Fe(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},$=globalThis.cookieStore;function Ie(e,t){let n={...Q,...t};n.filter??=t=>t===e;let r=Le(n)||{},i;if(n.maxAge!==void 0)i=n.maxAge*1e3;else if(n.expires){let e=Z(n.expires);e&&(i=e.getTime()-Date.now())}let a=()=>{if(n.maxAge!==void 0)return n.maxAge*1e3;if(!n.expires)return;let e=Z(n.expires);return e?e.getTime()-Date.now():void 0},o=i!==void 0&&i<=0,s=!n.readonly&&(o||r[e]===void 0||r[e]===null),c=z(o?void 0:r[e]??n.default?.()),l=typeof n.expires==`function`||i&&!o?Ue(c,i,a,n.watch&&n.watch!==`shallow`):y(c);{let t=null;try{!$&&typeof BroadcastChannel<`u`&&(t=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}let i=(i=!1)=>{(i||!n.readonly&&!Pe(l.value,r[e]))&&(Ve(e,l.value===null||l.value===void 0?void 0:n.encode(l.value),n),r[e]=z(l.value),t?.postMessage({value:n.encode(l.value)}))},a,o=t=>{let i=t.refresh?Le(n)?.[e]:n.decode(t.value);a?.pause(),l.value=i,r[e]=z(i),f(()=>a?.resume())},c=!!k();if(c&&h(()=>{a?.pause(),i(),t?.close()}),$){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})};$.addEventListener(`change`,t),c&&h(()=>$.removeEventListener(`change`,t))}else t&&(t.onmessage=({data:e})=>o(e));n.watch&&!n.readonly&&(a=_(l,()=>i(n.refresh),{deep:n.watch!==`shallow`})),s&&i(s)}return l}function Le(e={}){return De(document.cookie,e)}var Re=e=>e;function ze(e){let{encode:t,decode:n,expires:r,...i}=e;return{...i,expires:Z(r),encode:Re}}function Be(e,t,n={}){let r=ze(n);return t===void 0?K(e,``,{...r,maxAge:-1}):K(e,t,r)}function Ve(e,t,n={}){document.cookie=Be(e,t,n)}var He=2147483647;function Ue(e,t,n,r){let i,a,o=0,s=t,c=r?y(e):{value:e};return k()&&h(()=>{a?.(),clearTimeout(i)}),te((e,t)=>{r&&(a=_(c,t));function l(){let e=s;if(e===void 0)return;let n=e-o,r=n<He?n:He;i=setTimeout(()=>{if(o+=r,o<e)return l();c.value=void 0,t()},r)}function u(){o=0,s=n(),clearTimeout(i),l()}return{get(){return e(),c.value},set(e){u(),c.value=e,t()}}})}var We={"h-full":``,"w-full":``,flex:`~ col`},Ge={flex:`~ col gap-2`,"n-navbar-glass":``,"flex-none":``,p4:``},Ke={flex:`~ gap2 items-center`},qe={relative:``,"w-full":``},Je={absolute:``,"right-2":``,"top-1.5":``,flex:`~ gap-1`},Ye={flex:`~ gap2 wrap`,"w-full":``,"items-center":``,px4:``,pb2:``,"text-center":``,"text-sm":``,border:`b base`},Xe={class:`hidden md:block`},Ze={key:0,border:`b base`,"items-center":``,px4:``,py2:``,grid:`~ cols-[max-content_1fr] gap-2`},Qe={"text-right":``,"font-mono":``},$e={key:1,border:`b base`,p4:``,flex:`~ col gap-4`,"font-mono":``},et={flex:`~ gap-4`},tt={flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},nt={key:2},rt={key:3,border:`b base`,relative:``,"n-code-block":``},it={flex:`~ wrap`,"w-full":``},at=[`onClick`],ot={border:`b base`,flex:`~ gap2`,"items-center":``,px4:``,py2:``},st={key:1,"text-xs":``,op50:``},ct={key:0,"flex-auto":``,"overflow-auto":``},lt={border:`~ base`,"h-full":``,"w-full":``,rounded:``},ut=[`data`],dt={key:2,"flex-auto":``,"overflow-auto":``,p4:``},ft={border:`~ base`,rounded:``},pt=[`src`],mt={key:1,controls:``,rounded:``},ht=[`src`],gt=Object.assign(s({__name:`ServerRouteDetails`,props:{route:{}},emits:[`openDefaultInput`],setup(s,{emit:l}){let f=s,p=l,[h,_]=e(),te=r(),D=P(),k=a(),N=j({contentType:`text/plain`,data:``,statusCode:200,error:void 0,fetchTime:0}),F=x(()=>N.contentType.includes(`application/json`)?`json`:N.contentType.includes(`text/html`)?`html`:N.contentType.includes(`text/css`)?`css`:N.contentType.includes(`text/javascript`)?`javascript`:N.contentType.includes(`image`)||N.contentType.includes(`video`)?`media`:N.contentType.includes(`text/xml`)||N.contentType.includes(`application/xml`)?`xml`:N.contentType.includes(`application/pdf`)?`pdf`:`text`),I=x(()=>{if(F.value===`json`)return JSON.stringify(N.data,null,2);if(F.value===`media`||F.value===`pdf`){let e=new Blob([N.data],{type:N.contentType});return URL.createObjectURL(e)}return N.data}),ue=y(!1),he=y(!1),ge=de(),ve=/((?:\*\*)?:\w+)/g,ye=x(()=>f.route.route?.split(ve)),L=x(()=>ye.value?.filter(e=>e.startsWith(`:`)||e.startsWith(`**:`))||[]),R=y(f.route.method||`GET`),z=y({}),B=j({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`}]}),V=y({}),{inputDefaults:H,sendFrom:Ee}=i(`serverRoutes`),U=x(()=>k?.value?.app?.$fetch?Ee.value:`devtools`),De=[`GET`,`POST`,`PUT`,`PATCH`,`DELETE`,`HEAD`],Oe=[`PATCH`,`POST`,`PUT`,`DELETE`],ke=x(()=>Oe.includes(R.value.toUpperCase())),W=y(),Ae=[`input`,`json`],G=y(Ae[0]),je=x({get:()=>B[W.value],set:e=>{B[W.value]=e}}),K=x(()=>({...X(H.value.query),...X(B.query)})),Me=x(()=>({...X(H.value.headers),...X(B.headers)})),q=x(()=>ke.value?G.value===`json`?{...X(H.value.body),...V.value}:{...X(H.value.body),...X(B.body)}:void 0),Ne=x(()=>{let e=window?.location.origin;return e.charAt(e.length-1)===`/`&&(e=e.slice(0,-1)),e}),J=x(()=>{let e=new URLSearchParams(K.value).toString();e&&=`?${e}`;let t=(ye.value?.map(e=>(e.startsWith(`:`)||e.startsWith(`**:`))&&z.value[e]||e).join(``)||``)+e,n=D.value?.app.baseURL||``;return(n===`./`||n===`.`)&&(n=``),n.endsWith(`/`)&&(n=n.slice(0,-1)),n+t}),Y=x(()=>Ne.value+J.value);function X(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 Pe(){he.value=!0,ue.value=!0;let e=Date.now(),t=U.value===`app`?k.value.app.$fetch:ae;ce(`server-routes:fetch`,{method:R.value,sendFrom:U.value});try{N.data=await t(Y.value,{method:R.value.toUpperCase(),headers:Me.value,query:K.value,body:q.value,onResponse({response:e}){N.contentType=(e.headers.get(`content-type`)||``).toString().toLowerCase().trim(),N.statusCode=e.status,N.error=void 0},onResponseError(e){N.error=e.response._data,N.data=e.response._data}})}catch{}ue.value=!1,N.fetchTime=Date.now()-e}let Fe=x(()=>{let e=[],t=[],n=Object.entries(Me.value).filter(([e,t])=>e&&t&&(e!==`Content-Type`||t!==`application/json`)).map(([e,t])=>` '${e}': '${t}'`).join(`,
2
+ `);R.value.toUpperCase()!==`GET`&&t.push(`method: '${R.value.toUpperCase()}'`),n&&t.push(`headers: {\n${n}\n}`),q.value&&t.push(`body: ${JSON.stringify(q.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('${J.value}'${r})`}),e.push({name:`$fetch`,lang:`javascript`,docs:Se.nuxt.$fetch,code:`await $fetch('${J.value}'${r})`}),e}),Z=y(Le()),Q=j({key:``,value:``}),$=x(()=>{let e=[];return L.value.length&&e.push({name:`Params`,slug:`params`,length:L.value.length}),e.push({name:`Query`,slug:`query`,length:B.query.length}),ke.value&&e.push({name:`Body`,slug:`body`,length:B.body.length}),e.push({name:`Headers`,slug:`headers`,length:B.headers.length}),e.push({name:`Cookies`,slug:`cookies`,length:Z.value.length}),e.push({name:`Snippets`,slug:`snippet`}),e});function Le(){return document.cookie.split(`; `).map(e=>{let[t,n]=e.split(`=`);return{key:t,value:n}}).filter(e=>e.key)}function Re(e,t){if(!e)return;let n=Z.value.find(t=>t.key===e),r=Ie(e);n===void 0?(Z.value.push({key:e,value:t}),Q.key=``,Q.value=``):t===void 0&&(Z.value=Z.value.filter(t=>t.key!==e)),r.value=t}ne(()=>{G.value===`json`&&typeof V.value==`string`&&(V.value=JSON.parse(V.value))});let ze=t(`nuxt-devtools:server-routes:inputs`,()=>[],{window:window.parent});n([B,W],()=>{let e=ze.value?.find(e=>e.path===f.route.filepath);if(e){W.value||=e.tab,e.tab!==W.value&&(e.tab=W.value);let{body:t,query:n,headers:r,params:i}=e.inputs;Object.assign(B,{body:t,query:n,headers:r}),z.value=i}else{let e={path:f.route.filepath,tab:L.value.length?`params`:`query`,inputs:{...B,...L.value.length?{params:z.value}:{}}};ze.value.push(e),W.value||=e.tab}},{immediate:!0,deep:!0,debounce:500});function Be(){ze.value=[],B.body=[],B.query=[],B.headers=[],z.value={},W.value=L.value.length?`params`:`query`}let Ve=le();return(e,t)=>{let n=se,r=pe,i=oe,a=o,l=Te,f=be,y=_e,x=fe,D=Ce,ne=we,j=me,P=ee(`tooltip`);return c(),C(`div`,We,[S(`div`,Ge,[S(`div`,Ke,[s.route.method?(c(),O(n,{key:0,class:u([`n-badge-base n-sm`,w(ie)(R.value)]),"pointer-events-none":``,"font-mono":``,tabindex:`-1`},{default:b(()=>[v(m(R.value.toUpperCase()),1)]),_:1},8,[`class`])):(c(),O(r,{key:1,modelValue:R.value,"onUpdate:modelValue":t[0]||=e=>R.value=e,class:u([`n-badge-base n-sm`,w(ie)(R.value)])},{default:b(()=>[(c(),C(g,null,A(De,e=>S(`option`,{key:e,class:u(w(ie)(e))},m(e.toUpperCase()),3)),64))]),_:1},8,[`modelValue`,`class`])),S(`div`,qe,[M(i,{"model-value":J.value,readonly:``,"flex-auto":``,"font-mono":``,p:`x5 y2`,n:`sm`},null,8,[`model-value`]),S(`div`,Je,[T(M(n,{title:`Copy URL`,n:`xs blue`,icon:`carbon:copy`,border:!1,onClick:t[1]||=e=>w(Ve)(Y.value,`server-route-url`)},null,512),[[P,`Copy URL`]]),T(M(n,{title:`Open in Editor`,icon:`carbon-launch`,n:`xs blue`,border:!1,onClick:t[2]||=e=>w(ge)(s.route.filepath)},null,512),[[P,`Open in Editor`]])])]),M(n,{"h-full":``,n:`primary solid`,onClick:Pe},{default:b(()=>[M(a,{icon:`carbon:send`})]),_:1})])]),S(`div`,Ye,[(c(!0),C(g,null,A($.value,e=>T((c(),O(n,{key:e.slug,class:u(W.value===e.slug?`text-primary n-primary`:`border-transparent shadow-none`),onClick:t=>W.value=e.slug},{default:b(()=>[M(a,{icon:w(xe)[e.slug]},null,8,[`icon`]),S(`div`,Xe,[v(m(e.name)+` `+m(e?.length?`(${e.length})`:``)+` `,1),S(`span`,null,m(w(H)[e.slug]?.length?`(${w(H)[e.slug].length})`:``),1)])]),_:2},1032,[`class`,`onClick`])),[[P,e.name]])),128)),t[12]||=S(`div`,{"flex-auto":``},null,-1),t[13]||=S(`div`,{"text-xs":``,op50:``},` Send from `,-1),M(r,{modelValue:U.value,"onUpdate:modelValue":t[3]||=e=>U.value=e,class:`n-xs`,disabled:!w(k)?.app?.$fetch},{default:b(()=>[...t[11]||=[S(`option`,{value:`app`},` App `,-1),S(`option`,{value:`devtools`},` DevTools `,-1)]]),_:1},8,[`modelValue`,`disabled`]),T(M(n,{n:`orange`,class:`p-3`,icon:`i-carbon-clean`,onClick:Be},null,512),[[P,`Clear Inputs Saved Cache`]])]),W.value===`params`?(c(),C(`div`,Ze,[(c(!0),C(g,null,A(L.value,e=>(c(),C(g,{key:e},[S(`div`,Qe,m(e),1),M(i,{modelValue:z.value[e],"onUpdate:modelValue":t=>z.value[e]=t,placeholder:e,"flex-1":``},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`])],64))),128))])):E(``,!0),W.value===`cookies`?(c(),C(`div`,$e,[(c(!0),C(g,null,A(Z.value,e=>(c(),C(`div`,{key:e.key,flex:`~ gap-4 items-center`},[M(i,{placeholder:`Key...`,"model-value":e.key,disabled:``,"op-70":``},null,8,[`model-value`]),M(i,{placeholder:`Value...`,"model-value":e.value,"flex-1":``,n:`primary`,onInput:t=>Re(e.key,t.target?.value)},null,8,[`model-value`,`onInput`]),M(n,{title:`Delete`,n:`red`,onClick:t=>Re(e.key,void 0)},{default:b(()=>[M(a,{icon:`i-carbon-trash-can`})]),_:1},8,[`onClick`])]))),128)),S(`div`,et,[M(i,{modelValue:Q.key,"onUpdate:modelValue":t[4]||=e=>Q.key=e,placeholder:`Key`,n:`primary`,"flex-1":``},null,8,[`modelValue`]),M(i,{modelValue:Q.value,"onUpdate:modelValue":t[5]||=e=>Q.value=e,placeholder:`Value`,n:`primary`,"flex-1":``},null,8,[`modelValue`]),M(n,{title:`Add`,n:`primary`,onClick:t[6]||=e=>Re(Q.key,Q.value)},{default:b(()=>[M(a,{icon:`i-carbon-save`})]),_:1})])])):E(``,!0),M(w(h),null,{default:b(()=>[M(l,{modelValue:je.value,"onUpdate:modelValue":t[9]||=e=>je.value=e,default:{active:!0,type:`string`},"max-h-xs":``,"of-auto":``},{default:b(()=>[w(H)[W.value]?.length?(c(),C(g,{key:0},[S(`div`,tt,[t[14]||=S(`div`,{"w-5":``,"x-divider":``},null,-1),t[15]||=S(`div`,{"flex-none":``},` Default Inputs `,-1),M(n,{icon:`i-carbon-edit`,border:!1,onClick:t[7]||=e=>p(`openDefaultInput`)}),t[16]||=S(`div`,{"x-divider":``},null,-1)]),M(l,{modelValue:w(H)[W.value],"onUpdate:modelValue":t[8]||=e=>w(H)[W.value]=e,disabled:``,p0:``},null,8,[`modelValue`])],64)):E(``,!0)]),_:1},8,[`modelValue`])]),_:1}),W.value===`snippet`?(c(),C(`div`,nt,[Fe.value.length?(c(),O(f,{key:0,"code-snippets":Fe.value},null,8,[`code-snippets`])):E(``,!0)])):je.value?(c(),C(`div`,rt,[W.value===`body`?(c(),C(g,{key:0},[S(`div`,it,[(c(),C(g,null,A(Ae,e=>S(`button`,{key:e,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:u({"border-b":e!==G.value}),onClick:t=>G.value=e},[S(`div`,{class:u({op30:e!==G.value}),"font-mono":``},m(e),3)],10,at)),64)),t[17]||=S(`div`,{border:`b base`,"flex-auto":``},null,-1)]),G.value===`input`?(c(),O(w(_),{key:0})):G.value===`json`?(c(),O(w(re),d({key:1,modelValue:V.value,"onUpdate:modelValue":t[10]||=e=>V.value=e,class:[w(te)===`dark`?`jse-theme-dark`:`light`,`json-editor-vue of-auto text-sm outline-none`]},e.$attrs,{mode:`text`,"navigation-bar":!1,indentation:2,"tab-size":2}),null,16,[`modelValue`,`class`])):E(``,!0)],64)):(c(),O(w(_),{key:1}))])):E(``,!0),he.value?ue.value?(c(),O(x,{key:5,"z-10":``,"flex-auto":``,"backdrop-blur":``},{default:b(()=>[...t[19]||=[v(` Fetching... `,-1)]]),_:1})):(c(),C(g,{key:6},[S(`div`,ot,[t[21]||=S(`div`,null,`Response`,-1),N.error?(c(),O(D,{key:0,n:`red`},{default:b(()=>[...t[20]||=[v(` Error `,-1)]]),_:1})):E(``,!0),M(D,{n:N.error?`orange`:`green`,textContent:m(N.statusCode)},null,8,[`n`,`textContent`]),N.contentType?(c(),C(`code`,st,m(N.contentType),1)):E(``,!0),N.contentType===`application/json`?(c(),O(ne,{key:2,getter:()=>({input:I.value})},null,8,[`getter`])):E(``,!0),t[22]||=S(`div`,{"flex-auto":``},null,-1),t[23]||=S(`div`,{op50:``},` Request finished in `,-1),M(D,{n:`green`},{default:b(()=>[v(m(N.fetchTime)+` ms `,1)]),_:1})]),F.value===`pdf`?(c(),C(`div`,ct,[S(`div`,lt,[S(`object`,{data:I.value,type:`application/pdf`,"flex-auto":``,width:`100%`,height:`100%`,rounded:``},null,8,ut)])])):F.value===`media`?(c(),C(`div`,dt,[S(`div`,ft,[N.contentType.includes(`image`)?(c(),C(`img`,{key:0,rounded:``,src:I.value},null,8,pt)):(c(),C(`video`,mt,[S(`source`,{src:I.value,type:`video/mp4`},null,8,ht)]))])])):(c(),O(j,{key:1,"flex-auto":``,"overflow-auto":``,"py-2":``,code:I.value,lang:F.value},null,8,[`code`,`lang`]))],64)):(c(),O(y,{key:4},{default:b(()=>[M(n,{n:`primary`,onClick:Pe},{default:b(()=>[M(a,{icon:`carbon:send`}),t[18]||=v(` Send request `,-1)]),_:1})]),_:1}))])}}}),{__name:`ServerRouteDetails`}),_t={flex:`~ gap1`,"text-sm":``},vt={key:0,op50:``},yt={op50:``},bt=s({__name:`server-routes`,setup(e){ge({icon:`carbon-cloud`,title:`Server Routes`,layout:`full`,category:`server`,show(){let e=N();return()=>e.value?.length}});let t=/\W/g,n=y(!1),r=N(),a=I(),{selectedRoute:o,view:s,inputDefaults:l}=i(`serverRoutes`),u=x(()=>{!a.value&&o.value&&(a.value=o.value.filepath);let e=r.value?.find(e=>e.filepath===a.value);return a.value!==o.value?.filepath&&e&&(o.value=e),e}),d=y(``),f=x(()=>new ue(r.value||[],{keys:[`method`,`route`],shouldSort:!0})),p=x(()=>r.value?d.value?f.value.search(d.value).map(e=>e.item):r.value:[]),h=x(()=>{let e=[],n=(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(t,`-`).toLowerCase(),type:`collection`,routes:[]};return i?n(i,o):e.push(o),o};return p.value.forEach(t=>{let i,a,o=t.filepath.split(`/`),s=o.slice(o.indexOf(`server`)+1);if(t.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?n(a,t):e.push(t)}),e});function _(){s.value=s.value===`tree`?`list`:`tree`}function v(e){return e.charAt(0).toUpperCase()+e.slice(1)}return(e,t)=>{let i=se,a=ye,o=R,f=gt,y=F,x=_e,te=ve,ne=Te,k=L,re=he,j=ee(`tooltip`);return c(),C(g,null,[M(te,{"storage-key":`tab-server-routes`},{left:b(()=>[M(a,{search:d.value,"onUpdate:search":t[1]||=e=>d.value=e,pb2:``},{actions:b(()=>[T(M(i,{"text-lg":``,icon:w(s)===`list`?`i-carbon-list`:`i-carbon-tree-view-alt`,title:`Toggle view`,border:!1,onClick:_},null,8,[`icon`]),[[j,`Toggle View`]]),T(M(i,{"text-lg":``,icon:`i-carbon-cics-sit-overrides`,title:`Default Inputs`,border:!1,onClick:t[0]||=e=>n.value=!n.value},null,512),[[j,`Default Inputs`]])]),default:b(()=>[S(`div`,_t,[d.value?(c(),C(`span`,vt,m(p.value.length)+` matched · `,1)):E(``,!0),S(`span`,yt,m(w(r)?.length)+` routes in total`,1)])]),_:1},8,[`search`]),(c(!0),C(g,null,A(w(s)===`tree`?h.value:p.value,e=>(c(),O(o,{key:e.filepath,item:e},null,8,[`item`]))),128))]),right:b(()=>[(c(),O(D,{max:10},[u.value?(c(),O(f,{key:u.value.filepath,route:u.value,onOpenDefaultInput:t[2]||=e=>n.value=!0},null,8,[`route`])):E(``,!0)],1024)),u.value?E(``,!0):(c(),O(x,{key:0},{default:b(()=>[M(y,{px6:``,py2:``},{default:b(()=>[...t[5]||=[S(`span`,{op75:``},`Select a route to start`,-1)]]),_:1})]),_:1}))]),_:1}),M(re,{modelValue:n.value,"onUpdate:modelValue":t[3]||=e=>n.value=e,"auto-close":``,"max-w-xl":``,"min-w-xl":``,onClose:t[4]||=e=>n.value=!1},{default:b(()=>[S(`div`,null,[t[6]||=S(`div`,{p4:``,border:`b base`},[S(`span`,{"text-lg":``},`Default Inputs`),S(`br`),S(`span`,{"text-black":``,op50:``,"dark:text-white":``},`Merged as default for every request in DevTools`)],-1),(c(!0),C(g,null,A(Object.keys(w(l)),e=>(c(),O(k,{key:e,text:`${v(e)} ${w(l)[e]?.length?`(${w(l)[e].length})`:``}`,padding:!1,icon:w(xe)[e]},{default:b(()=>[M(ne,{modelValue:w(l)[e],"onUpdate:modelValue":t=>w(l)[e]=t,py0:``,default:{active:!0,type:`string`}},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1032,[`text`,`icon`]))),128))])]),_:1},8,[`modelValue`])],64)}}});export{bt as default};
@@ -0,0 +1 @@
1
+ import{o as e,t}from"./rolldown-runtime-f96lzs6p.js";import{C as n,F as r,J as i,i as a,r as o,t as s}from"./nicon-ed7stj2f.js";import{C as c,H as l,J as u,Jt as d,M as f,X as p,Xt as m,Zt as h,a as g,b as _,bt as v,ct as y,d as b,f as x,h as S,kt as C,lt as w,m as T,o as E,ot as D,p as O,q as k,t as ee,vt as A,x as j}from"./vendor/json-editor-vue-gdztbg5h.js";import{A as M,a as te,w as ne}from"./utils-mae882d9.js";import{t as N}from"./virtual_nuxt_node_modules_.cache_nuxt_.nuxt_fetch.client-bkuxbmrx.js";import{t as P}from"./ncard-nledjs9m.js";import{_ as re,h as ie,i as ae,n as oe,p as se,r as ce,s as F,v as le}from"#entry";import{t as ue}from"./ncode-block-lo7bvbmn.js";import{t as I}from"./ndrawer-hxy5nweo.js";import{t as de}from"./composables-ioamscf4.js";import{t as fe}from"./npanel-grids-d696wmf0.js";import{t as pe}from"./nsplit-pane-wqr6p2la.js";import{t as L}from"./nnavbar-m0eev8zc.js";import{t as R}from"./nsection-block-giwyhvyv.js";import{n as me}from"./constants-g2z8m4rs.js";import{t as z}from"./nbadge-c0z39lwn.js";import{t as he}from"./server-route-inputs-nejfwmwu.js";var ge=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}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||i,o=r.verbose,s=o!==void 0&&o,c=r.dayOfWeekStartIndexZero,l=c===void 0||c,u=r.monthStartIndexZero,d=u!==void 0&&u,f=r.use24HourTimeFormat,p=r.trimHoursLeadingZero,m=p!==void 0&&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&&_};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+=` `),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)}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}var s=n.match(/L-(\d{1,2})/);if(s){var c=s[1];t=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(c),c);break}if(n==`*`&&this.expressionParts[5]!=`*`)return``;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)})}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=this.i18n.spaceAnd(),m=0;m<d.length;m++)if(m>0&&d.length>2&&(f+=`,`,m<d.length-1&&(f+=` `)),m>0&&d.length>1&&(m==d.length-1||d.length==2)&&(f+=p==`,`&&d.length>2?` `:`${p} `),d[m].indexOf(`/`)>-1||d[m].indexOf(`-`)>-1){var h=d[m].indexOf(`-`)>-1&&d[m].indexOf(`/`)==-1,g=this.getSegmentDescription(d[m],t,n,i,h?this.i18n.commaX0ThroughX1:a,o);h&&(g=g.replace(`, `,``)),f+=g}else if(!c)f+=n(d[m]);else{var _=this.getSegmentDescription(d[m],t,n,i,a,o);_&&_.startsWith(`, `)&&(_=_.substring(2)),f+=_}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 v=this.generateRangeSegmentDescription(d[0],a,n);v.indexOf(`, `)!=0&&(s+=`, `),s+=v}else if(d[0].indexOf(`*`)==-1){var y=r.StringUtilities.format(o(d[0]),n(d[0]));y=y.replace(`, `,``),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),y)}}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),B=[`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`],q=Object.assign(c({__name:`CronCollection`,props:{collection:{}},setup(e){let t=e,n=F(),r=v(!0),i=b(()=>ge.default.toString(t.collection.cron));return(t,a)=>{let o=s,c=z;return l(),S(`div`,null,[x(`button`,{flex:`~ gap-2`,"w-full":``,"items-start":``,"items-center":``,p2:``,"hover-bg-active":``,title:i.value,onClick:a[0]||=e=>r.value=!r.value},[x(`div`,V,[j(o,{icon:`carbon:chevron-right`,"mb0.5":``,"transform-rotate":r.value?90:0,transition:``},null,8,[`transform-rotate`])]),x(`span`,H,[j(c,{class:`font-mono n-primary`,textContent:h(e.collection.cron)},null,8,[`textContent`]),x(`span`,U,h(i.value),1),x(`span`,W,`(`+h(e.collection.tasks.length)+`)`,1)])],8,B),a[2]||=x(`div`,{"x-divider":``},null,-1),r.value?(l(),S(`ul`,G,[(l(!0),S(g,null,k(e.collection.tasks,e=>(l(),S(`li`,{key:e},[x(`button`,{flex:`~ gap-2`,"w-full":``,"items-start":``,"items-center":``,px2:``,py1:``,"pl-9":``,"font-mono":``,"hover-bg-active":``,class:d([{"bg-active":C(n)===e}]),onClick:t=>n.value=e},h(e),11,K),a[1]||=x(`div`,{"x-divider":``},null,-1)]))),128))])):T(``,!0)])}}}),{__name:`CronCollection`}),_e={"h-full":``,"w-full":``,flex:`~ col`},ve={flex:`~ col gap-2`,"n-navbar-glass":``,"flex-none":``,p4:``},ye={flex:`~ gap2 items-center`},be={relative:``,"w-full":``},xe={absolute:``,"right-2":``,"top-1.5":``,flex:`~ gap-1`},Se={flex:`~ gap2 wrap`,"w-full":``,"items-center":``,px4:``,pb2:``,"text-center":``,"text-sm":``,border:`b base`},Ce={class:`hidden md:block`},we={flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},Te={key:0,border:`b base`,relative:``,"n-code-block":``},Ee={flex:`~ wrap`,"w-full":``},De=[`onClick`],Oe={border:`b base`,flex:`~ gap2`,"items-center":``,px4:``,py2:``},ke={key:1,"text-xs":``,op50:``},J=Object.assign(c({__name:`ServerTaskDetails`,props:{task:{}},emits:[`openDefaultInput`],setup(e,{emit:t}){let c=e,u=t,m=v({payload:{}}),{inputDefaults:E}=o(`serverRoutes`),[M,P]=n(),se=a(),F=ne(),I=A({contentType:`text/plain`,data:``,statusCode:200,error:void 0,fetchTime:0}),de=b(()=>JSON.stringify(I.data,null,2)),pe=b(()=>I.contentType.includes(`application/json`)?`json`:`text`),L=v(!1),R=v(!1),ge=ce(),B=v(),V=[`json`],H=v(V[0]),U=A({query:[{active:!0,key:``,value:``,type:`string`}],body:[{active:!0,key:``,value:``,type:`string`}],headers:[]}),W=b({get:()=>U[B.value],set:e=>{U[B.value]=e}}),G=b(()=>({...Z(E.value.query),...Z(U.query)})),K=b(()=>({...Z(E.value.headers)})),q=b(()=>Object.keys(m.value?.payload??{}).length?{...m.value}:void 0),J=b(()=>q.value?`POST`:`GET`),Ae=b(()=>{let e=window?.location.origin;return e.charAt(e.length-1)===`/`&&(e=e.slice(0,-1)),e}),Y=b(()=>{let e=new URLSearchParams(G.value).toString();e&&=`?${e}`;let t=`/_nitro/tasks/${c.task.name}${e}`,n=F.value?.app.baseURL||``;return(n===`./`||n===`.`)&&(n=``),n.endsWith(`/`)&&(n=n.slice(0,-1)),n+t}),X=b(()=>Ae.value+Y.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 Q(){R.value=!0,L.value=!0;let e=Date.now();ae(`server-tasks:run`,{method:J.value});try{I.data=await N(X.value,{method:`POST`,headers:K.value,query:G.value,body:q.value,onResponse({response:e}){I.contentType=(e.headers.get(`content-type`)||``).toString().toLowerCase().trim(),I.statusCode=e.status,I.error=void 0},onResponseError(e){I.error=e.response._data,I.data=e.response._data}})}catch{}L.value=!1,I.fetchTime=Date.now()-e}let je=b(()=>{let e=[];return e.push({name:`Query`,slug:`query`,length:U.query.length}),e.push({name:`Body`,slug:`body`,length:U.body.length}),e});D(()=>{if(H.value===`json`&&typeof m.value==`string`)try{m.value=JSON.parse(m.value)}catch{}});let $=r(`nuxt-devtools:server-tasks:inputs`,()=>[],{window:window.parent});i([U,B],()=>{let e=$.value?.find(e=>e.task===c.task.name);if(e){B.value||=e.tab,e.tab!==B.value&&(e.tab=B.value);let{body:t,query:n,headers:r}=e.inputs;Object.assign(U,{body:t,query:n,headers:r})}else{let e={task:c.task.name,tab:`query`,inputs:U};$.value.push(e),B.value||=e.tab}},{immediate:!0,deep:!0,debounce:500});let Me=oe();return(t,n)=>{let r=ie,i=re,a=s,o=he,c=fe,v=le,b=z,D=ue,A=p(`tooltip`);return l(),S(`div`,_e,[x(`div`,ve,[x(`div`,ye,[w((l(),S(`div`,null,[j(r,{class:d([`n-badge-base n-sm`,C(te)(J.value)]),"pointer-events-none":``,"font-mono":``,tabindex:`-1`},{default:y(()=>[_(h(J.value),1)]),_:1},8,[`class`])])),[[A,`Method is ${J.value} as ${J.value===`GET`?`no`:``} json body is sent`]]),x(`div`,be,[j(i,{"model-value":Y.value,readonly:``,"flex-auto":``,"font-mono":``,p:`x5 y2`,n:`sm`},null,8,[`model-value`]),x(`div`,xe,[w(j(r,{title:`Copy URL`,n:`xs blue`,icon:`carbon:copy`,border:!1,onClick:n[0]||=e=>C(Me)(X.value,`server-task-url`)},null,512),[[A,`Copy URL`]]),w(j(r,{title:`Open in Editor`,icon:`carbon-launch`,n:`xs blue`,border:!1,onClick:n[1]||=t=>C(ge)(e.task.handler)},null,512),[[A,`Open in Editor`]])])]),j(r,{"h-full":``,n:`primary solid`,onClick:Q},{default:y(()=>[j(a,{icon:`carbon:send`})]),_:1})])]),x(`div`,Se,[(l(!0),S(g,null,k(je.value,e=>w((l(),O(r,{key:e.slug,class:d(B.value===e.slug?`text-primary n-primary`:`border-transparent shadow-none`),onClick:t=>B.value=e.slug},{default:y(()=>[j(a,{icon:C(me)[e.slug]},null,8,[`icon`]),x(`div`,Ce,[_(h(e.name)+` `+h(e?.length?`(${e.length})`:``)+` `,1),x(`span`,null,h(C(E)[e.slug]?.length?`(${C(E)[e.slug].length})`:``),1)])]),_:2},1032,[`class`,`onClick`])),[[A,e.name]])),128))]),j(C(M),null,{default:y(()=>[j(o,{modelValue:W.value,"onUpdate:modelValue":n[4]||=e=>W.value=e,default:{active:!0,type:`string`},"max-h-xs":``,"of-auto":``},{default:y(()=>[C(E)[B.value]?.length?(l(),S(g,{key:0},[x(`div`,we,[n[6]||=x(`div`,{"w-5":``,"x-divider":``},null,-1),n[7]||=x(`div`,{"flex-none":``},` Default Inputs `,-1),j(r,{icon:`i-carbon-edit`,border:!1,onClick:n[2]||=e=>u(`openDefaultInput`)}),n[8]||=x(`div`,{"x-divider":``},null,-1)]),j(o,{modelValue:C(E)[B.value],"onUpdate:modelValue":n[3]||=e=>C(E)[B.value]=e,disabled:``,p0:``},null,8,[`modelValue`])],64)):T(``,!0)]),_:1},8,[`modelValue`])]),_:1}),W.value?(l(),S(`div`,Te,[B.value===`body`?(l(),S(g,{key:0},[x(`div`,Ee,[(l(),S(g,null,k(V,e=>x(`button`,{key:e,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:d({"border-b":e!==H.value}),onClick:t=>H.value=e},[x(`div`,{class:d({op30:e!==H.value}),"font-mono":``},h(e),3)],10,De)),64)),n[9]||=x(`div`,{border:`b base`,"flex-auto":``},null,-1)]),H.value===`input`?(l(),O(C(P),{key:0})):H.value===`json`?(l(),O(C(ee),f({key:1,modelValue:m.value,"onUpdate:modelValue":n[5]||=e=>m.value=e,class:[C(se)===`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`])):T(``,!0)],64)):(l(),O(C(P),{key:1}))])):T(``,!0),R.value?L.value?(l(),O(v,{key:2,"z-10":``,"flex-auto":``,"backdrop-blur":``},{default:y(()=>[...n[11]||=[_(` Running... `,-1)]]),_:1})):(l(),S(g,{key:3},[x(`div`,Oe,[n[13]||=x(`div`,null,`Result`,-1),I.error?(l(),O(b,{key:0,n:`red`},{default:y(()=>[...n[12]||=[_(` Error `,-1)]]),_:1})):T(``,!0),j(b,{n:I.error?`orange`:`green`,textContent:h(I.statusCode)},null,8,[`n`,`textContent`]),I.contentType?(l(),S(`code`,ke,h(I.contentType),1)):T(``,!0),n[14]||=x(`div`,{"flex-auto":``},null,-1),n[15]||=x(`div`,{op50:``},` Tasks finished in `,-1),j(b,{n:`green`},{default:y(()=>[_(h(I.fetchTime)+` ms `,1)]),_:1})]),j(D,{"flex-auto":``,"overflow-auto":``,"py-2":``,code:de.value,lang:pe.value},null,8,[`code`,`lang`])],64)):(l(),O(c,{key:1},{default:y(()=>[j(r,{n:`primary`,onClick:Q},{default:y(()=>[j(a,{icon:`carbon:send`}),n[10]||=_(` Run task `,-1)]),_:1})]),_:1}))])}}}),{__name:`ServerTaskDetails`}),Ae={"flex-none":``,"text-left":``},Y={flex:``,"items-center":``,"text-sm":``,"font-mono":``},X=Object.assign(c({__name:`ServerTaskListItem`,props:{item:{},index:{default:0}},setup(e){let t=v(!0),n=F();return(r,i)=>{let a=s,o=X;return l(),S(`div`,null,[x(`button`,{flex:`~ gap-2`,"w-full":``,"items-start":``,"items-center":``,px2:``,py1:``,"hover-bg-active":``,class:d([{"bg-active":C(n)===e.item.name}]),style:m({paddingLeft:`calc(0.5rem + ${e.index*1.5}em)`}),onClick:i[0]||=r=>{t.value=!t.value,n.value=e.item.name}},[x(`div`,Ae,[e.item.type===`collection`?(l(),O(a,{key:0,icon:`carbon:chevron-right`,"mb0.5":``,"transform-rotate":t.value?90:0,transition:``},null,8,[`transform-rotate`])):T(``,!0)]),x(`span`,Y,[e.item.type===`collection`?(l(),O(a,{key:0,title:`${e.item.tasks?.length} tasks`,icon:`carbon:folder`,mr1:``},null,8,[`title`])):(l(),O(a,{key:1,icon:`carbon:play`,ml3:``,mr1:``})),_(` `+h(e.item.name),1)])],6),i[1]||=x(`div`,{"x-divider":``},null,-1),t.value?u(r.$slots,`default`,{},()=>[(l(!0),S(g,null,k(e.item.tasks,t=>(l(),O(o,{key:t.name,item:t,index:e.index+1},null,8,[`item`,`index`]))),128))],void 0,0):T(``,!0)])}}}),{__name:`ServerTaskListItem`}),Z={flex:`~ gap1`,"text-sm":``},Q={key:0,op50:``},je={op50:``},$=c({__name:`server-tasks`,setup(e){de({icon:`codicon-run-all`,title:`Server Tasks`,layout:`full`,category:`server`,show(){let{enabled:e}=o(`serverTasks`),t=M();return()=>e.value?Object.keys(t.value?.tasks??{}).length:!1}});let t=v(!1),n=M(),r=b(()=>Object.keys(n.value?.tasks??{}).map(e=>({name:e,...n.value.tasks[e],type:`task`}))),i=b(()=>Object.entries(n.value?.scheduledTasks??{}).map(([e,t])=>({cron:e,tasks:t}))),a=F(),{view:s,selectedTask:c,inputDefaults:u}=o(`serverTasks`),d=b(()=>{!a.value&&c.value&&(a.value=c.value.name);let e=r.value.find(e=>e.name===a.value);return a.value!==c.value?.name&&e&&(c.value=e),e}),f=v(``),m=b(()=>new se(r.value,{keys:[`key`,`description`],shouldSort:!0})),_=b(()=>f.value?m.value.search(f.value).map(e=>e.item):r.value),D=b(()=>{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 _.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 ee(){s.value=s.value===`tree`?`list`:`tree`}return(e,n)=>{let a=ie,o=L,c=q,m=pe,v=J,b=P,A=fe,M=he,te=R,ne=I,N=p(`tooltip`);return l(),S(g,null,[j(m,{"storage-key":`tab-server-tasks`},{left:y(()=>[j(m,{horizontal:``,"storage-key":`tab-server-tasks-split`},{left:y(()=>[j(o,{search:f.value,"onUpdate:search":n[1]||=e=>f.value=e,pb2:``},{actions:y(()=>[w(j(a,{"text-lg":``,icon:C(s)===`list`?`i-carbon-list`:`i-carbon-tree-view-alt`,title:`Toggle view`,border:!1,onClick:ee},null,8,[`icon`]),[[N,`Toggle View`]]),w(j(a,{"text-lg":``,icon:`i-carbon-cics-sit-overrides`,title:`Default Inputs`,border:!1,onClick:n[0]||=e=>t.value=!t.value},null,512),[[N,`Default Inputs`]])]),default:y(()=>[x(`div`,Z,[f.value?(l(),S(`span`,Q,h(_.value.length)+` matched · `,1)):T(``,!0),x(`span`,je,h(r.value?.length)+` tasks in total`,1)])]),_:1},8,[`search`]),(l(!0),S(g,null,k(C(s)===`tree`?D.value:_.value,e=>(l(),O(X,{key:e.name,item:e},null,8,[`item`]))),128))]),right:y(()=>[n[6]||=x(`div`,{px4:``,py2:``,border:`b base`},` Cron groups `,-1),x(`div`,null,[x(`ul`,null,[(l(!0),S(g,null,k(i.value,e=>(l(),S(`li`,{key:e.cron},[j(c,{collection:e},null,8,[`collection`])]))),128))])])]),_:1})]),right:y(()=>[(l(),O(E,{max:10},[d.value?(l(),O(v,{key:d.value.name,task:d.value,onOpenDefaultInput:n[2]||=e=>t.value=!0},null,8,[`task`])):T(``,!0)],1024)),d.value?T(``,!0):(l(),O(A,{key:0},{default:y(()=>[j(b,{px6:``,py2:``},{default:y(()=>[...n[7]||=[x(`span`,{op75:``},`Select a task to start`,-1)]]),_:1})]),_:1}))]),_:1}),j(ne,{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:y(()=>[x(`div`,null,[n[8]||=x(`div`,{p4:``,border:`b base`},[x(`span`,{"text-lg":``},`Default Inputs`),x(`br`),x(`span`,{"text-white":``,op50:``},`Merged as default for every task in DevTools`)],-1),j(te,{text:`Query ${C(u).query?.length?`(${C(u).query.length})`:``}`,padding:!1,icon:C(me).query},{default:y(()=>[j(M,{modelValue:C(u).query,"onUpdate:modelValue":n[3]||=e=>C(u).query=e,py0:``,default:{active:!0,type:`string`}},null,8,[`modelValue`])]),_:1},8,[`text`,`icon`])])]),_:1},8,[`modelValue`])],64)}}});export{$ as default};