@nuxt/devtools 1.3.1 → 1.3.2

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 (75) hide show
  1. package/dist/chunks/module-main.mjs +1 -1
  2. package/dist/client/200.html +16 -16
  3. package/dist/client/404.html +16 -16
  4. package/dist/client/_nuxt/{BkK_qJ34.js → 4DrMDvOf.js} +1 -1
  5. package/dist/client/_nuxt/{JkOP3KoO.js → 73fsk-_M.js} +1 -1
  6. package/dist/client/_nuxt/{B5LBktAa.js → 8icePJ4I.js} +1 -1
  7. package/dist/client/_nuxt/{DCzXkWpZ.js → B-HJZUhU.js} +1 -1
  8. package/dist/client/_nuxt/{DRzmYdLW.js → B-hub2K2.js} +1 -1
  9. package/dist/client/_nuxt/{BcobmRlA.js → BL_hfvyy.js} +1 -1
  10. package/dist/client/_nuxt/{BEabNaD3.js → BO-iudyo.js} +1 -1
  11. package/dist/client/_nuxt/{B1WwrPQO.js → BVCgwITN.js} +1 -1
  12. package/dist/client/_nuxt/{CGdFtN3I.js → BVJlJdda.js} +1 -1
  13. package/dist/client/_nuxt/{CiwDa1gT.js → BVT_pDx1.js} +1 -1
  14. package/dist/client/_nuxt/{2rHQ-89_.js → BX8u6kVi.js} +1 -1
  15. package/dist/client/_nuxt/{BYVFCOjE.js → BYLmgL12.js} +1 -1
  16. package/dist/client/_nuxt/{Cdv1FpqM.js → BZAoIDF4.js} +1 -1
  17. package/dist/client/_nuxt/{Bs6Xt_hm.js → BZrBobni.js} +1 -1
  18. package/dist/client/_nuxt/{DTnMHt2b.js → BeLKwQPd.js} +1 -1
  19. package/dist/client/_nuxt/{BlDdoh7Z.js → BfqSh0jD.js} +1 -1
  20. package/dist/client/_nuxt/{K0tfU50F.js → BhuDhIKJ.js} +1 -1
  21. package/dist/client/_nuxt/{DnhEYZMs.js → Bwpf36Bl.js} +1 -1
  22. package/dist/client/_nuxt/{LKwhzCVp.js → BxZrC5KW.js} +1 -1
  23. package/dist/client/_nuxt/{B_Ym5JKn.js → C41DfgCv.js} +1 -1
  24. package/dist/client/_nuxt/{DW3jphl9.js → C49LnR7I.js} +1 -1
  25. package/dist/client/_nuxt/{DdJKusQR.js → C71Avik8.js} +1 -1
  26. package/dist/client/_nuxt/{CLKMZBSj.js → C8GUE1SK.js} +1 -1
  27. package/dist/client/_nuxt/{BOBmlKb6.js → CAWcj-Fr.js} +1 -1
  28. package/dist/client/_nuxt/{BbqA4Ggc.js → CBxMqsuL.js} +1 -1
  29. package/dist/client/_nuxt/{B4a1LB7w.js → CI_a6Yq_.js} +1 -1
  30. package/dist/client/_nuxt/{BBiSxoA1.js → CJ4574JA.js} +1 -1
  31. package/dist/client/_nuxt/{BNIC4eZE.js → CJU5ujxD.js} +1 -1
  32. package/dist/client/_nuxt/{DE_Uwlru.js → CQ0ZKsih.js} +1 -1
  33. package/dist/client/_nuxt/{CDjZ2Pwm.js → CQhVfK23.js} +1 -1
  34. package/dist/client/_nuxt/{CLVJ1qFH.js → CYVTKYED.js} +1 -1
  35. package/dist/client/_nuxt/{DRuHuqMZ.js → CYpIh8Vy.js} +1 -1
  36. package/dist/client/_nuxt/{DQS-rzez.js → C_mHwna3.js} +1 -1
  37. package/dist/client/_nuxt/{DgR63EN_.js → C_vNhPYi.js} +1 -1
  38. package/dist/client/_nuxt/{Zl399FYQ.js → CfjSiY3T.js} +1 -1
  39. package/dist/client/_nuxt/{CQfzcXIu.js → CnDX42ER.js} +1 -1
  40. package/dist/client/_nuxt/{BL23Bc6O.js → Cri_jq9f.js} +1 -1
  41. package/dist/client/_nuxt/{-qWogbxp.js → D1Dg62su.js} +1 -1
  42. package/dist/client/_nuxt/{HBr8xMzr.js → D26FlHPL.js} +1 -1
  43. package/dist/client/_nuxt/{66lAmVWa.js → D2pUCviE.js} +1 -1
  44. package/dist/client/_nuxt/{Br0oqAKP.js → D44vw0ad.js} +1 -1
  45. package/dist/client/_nuxt/{DjVyxknR.js → D7gBCge-.js} +1 -1
  46. package/dist/client/_nuxt/{5Viy9mJZ.js → D847XyuR.js} +1 -1
  47. package/dist/client/_nuxt/{CgvvXsvn.js → D9bWLJbD.js} +1 -1
  48. package/dist/client/_nuxt/{DO3F8Knp.js → DGIjOFdj.js} +1 -1
  49. package/dist/client/_nuxt/{DCvec3a_.js → DGmtW0X_.js} +1 -1
  50. package/dist/client/_nuxt/{5rat9AfN.js → DQm4bOV6.js} +1 -1
  51. package/dist/client/_nuxt/{CgdhjF_I.js → DTf74veE.js} +1 -1
  52. package/dist/client/_nuxt/{BlKdmH9f.js → DTjbdWHx.js} +1 -1
  53. package/dist/client/_nuxt/{CSxKs2xg.js → DW2rdoo9.js} +5 -5
  54. package/dist/client/_nuxt/{BNSBUDhB.js → DZg4WwSa.js} +1 -1
  55. package/dist/client/_nuxt/{D0LPR03l.js → D_ZAQadg.js} +1 -1
  56. package/dist/client/_nuxt/{B7vUcbNk.js → Dm8mUwGL.js} +1 -1
  57. package/dist/client/_nuxt/{D4dWpejW.js → Ds6yAegc.js} +1 -1
  58. package/dist/client/_nuxt/{tYBohD88.js → DxtaXLVv.js} +1 -1
  59. package/dist/client/_nuxt/{C0doa8lg.js → Dyh3t1OB.js} +1 -1
  60. package/dist/client/_nuxt/{BWnGocWo.js → WIBjn-aJ.js} +1 -1
  61. package/dist/client/_nuxt/{f1qyuWhx.js → _hj05-RZ.js} +1 -1
  62. package/dist/client/_nuxt/builds/latest.json +1 -1
  63. package/dist/client/_nuxt/builds/meta/923994c1-a7bd-4c91-b02b-513548587468.json +1 -0
  64. package/dist/client/_nuxt/entry.C09IdXcP.css +1 -0
  65. package/dist/client/_nuxt/{DQFmACZp.js → hXtXgLSE.js} +1 -1
  66. package/dist/client/_nuxt/{J3djixjQ.js → l2Y-wpZG.js} +1 -1
  67. package/dist/client/_nuxt/{Bx439kud.js → nd9mx79B.js} +1 -1
  68. package/dist/client/_nuxt/{Dw5Tt5gJ.js → s0KB5W3i.js} +1 -1
  69. package/dist/client/index.html +16 -16
  70. package/dist/module.json +1 -1
  71. package/dist/runtime/plugins/view/FrameBox.vue +8 -8
  72. package/package.json +4 -4
  73. package/dist/client/_nuxt/builds/meta/24abe175-04a3-492b-88f5-fff7ea90b9c1.json +0 -1
  74. package/dist/client/_nuxt/entry.CyP5HdOH.css +0 -1
  75. package/dist/client/_nuxt/index.BeOv1PgR.css +0 -1
@@ -1 +1 @@
1
- import{d as u,ac as f,ab as c,a as k,bg as v,o as t,h as y,j as B,m as s,F as l,v as d,t as n,f as a,k as C,p as b,G as g,ax as N}from"./CSxKs2xg.js";const w={key:0,op50:""},F=u({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(m){const r=m,h=f(),p=c(),o=k(()=>r.filepath&&p.value?v(r.filepath,p.value.rootDir):{path:r.filepath||""});return(e,i)=>(t(),y(N(e.filepath?"button":"span"),{class:g([e.filepath?"hover:underline":"",e.lineBreak?"":"ws-nowrap of-hidden truncate"]),"font-mono":"",title:e.override||e.filepath,onClick:i[0]||(i[0]=D=>e.filepath&&a(h)(e.filepath))},{default:B(()=>[e.override?(t(),s(l,{key:0},[d(n(e.override),1)],64)):a(o).moduleName?(t(),s(l,{key:1},[C("span",null,n(a(o).moduleName),1),e.subpath?(t(),s("span",w,n(a(o).path.slice(a(o).moduleName.length)),1)):b("",!0)],64)):(t(),s(l,{key:2},[d(n(a(o).path),1)],64))]),_:1},8,["class","title"]))}});export{F as _};
1
+ import{d as u,ac as f,ab as c,a as k,bg as v,o as t,h as y,j as B,m as s,F as l,v as d,t as n,f as a,k as C,p as b,G as g,ax as N}from"./DW2rdoo9.js";const w={key:0,op50:""},F=u({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(m){const r=m,h=f(),p=c(),o=k(()=>r.filepath&&p.value?v(r.filepath,p.value.rootDir):{path:r.filepath||""});return(e,i)=>(t(),y(N(e.filepath?"button":"span"),{class:g([e.filepath?"hover:underline":"",e.lineBreak?"":"ws-nowrap of-hidden truncate"]),"font-mono":"",title:e.override||e.filepath,onClick:i[0]||(i[0]=D=>e.filepath&&a(h)(e.filepath))},{default:B(()=>[e.override?(t(),s(l,{key:0},[d(n(e.override),1)],64)):a(o).moduleName?(t(),s(l,{key:1},[C("span",null,n(a(o).moduleName),1),e.subpath?(t(),s("span",w,n(a(o).path.slice(a(o).moduleName.length)),1)):b("",!0)],64)):(t(),s(l,{key:2},[d(n(a(o).path),1)],64))]),_:1},8,["class","title"]))}});export{F as _};
@@ -1 +1 @@
1
- import{_ as p}from"./Bs6Xt_hm.js";import{d as m,ab as _,m as r,F as s,n as f,o as n,k as o,t as h,h as d,p as k}from"./CSxKs2xg.js";const g={mt2:"",grid:"~ cols-[max-content_1fr] gap-x-4","font-mono":""},x={"text-right":""},N={"ws-nowrap":""},y=m({__name:"StacktraceList",props:{stacktrace:{}},setup($){const i=_();function c(a){try{let t=new URL(a).pathname;return t.startsWith("/_nuxt/")&&(t=t.slice(6)),t.startsWith("/@id/virtual:nuxt:")?`#build/${t.split("/.nuxt/")[1]}`.replace(/\.m?js$/,""):t.includes("/@fs/")?`/${t.split("/@fs/")[1]}`:(i.value?.rootDir||"")+t}catch{return a}}return(a,t)=>{const l=p;return n(),r("div",g,[(n(!0),r(s,null,f(a.stacktrace,(e,u)=>(n(),r(s,{key:u},[o("div",x,h(e.functionName||"(anonymous)"),1),o("div",N,[e.fileName?(n(),d(l,{key:0,filepath:`${c(e.fileName)}:${e.lineNumber}:${e.columnNumber}`,subpath:""},null,8,["filepath"])):k("",!0)])],64))),128))])}}});export{y as _};
1
+ import{_ as p}from"./BZrBobni.js";import{d as m,ab as _,m as r,F as s,n as f,o as n,k as o,t as h,h as d,p as k}from"./DW2rdoo9.js";const g={mt2:"",grid:"~ cols-[max-content_1fr] gap-x-4","font-mono":""},x={"text-right":""},N={"ws-nowrap":""},y=m({__name:"StacktraceList",props:{stacktrace:{}},setup($){const i=_();function c(a){try{let t=new URL(a).pathname;return t.startsWith("/_nuxt/")&&(t=t.slice(6)),t.startsWith("/@id/virtual:nuxt:")?`#build/${t.split("/.nuxt/")[1]}`.replace(/\.m?js$/,""):t.includes("/@fs/")?`/${t.split("/@fs/")[1]}`:(i.value?.rootDir||"")+t}catch{return a}}return(a,t)=>{const l=p;return n(),r("div",g,[(n(!0),r(s,null,f(a.stacktrace,(e,u)=>(n(),r(s,{key:u},[o("div",x,h(e.functionName||"(anonymous)"),1),o("div",N,[e.fileName?(n(),d(l,{key:0,filepath:`${c(e.fileName)}:${e.lineNumber}:${e.columnNumber}`,subpath:""},null,8,["filepath"])):k("",!0)])],64))),128))])}}});export{y as _};
@@ -1 +1 @@
1
- import{al as c,bc as n,a as s,L as o}from"./CSxKs2xg.js";function u(){const p=c(),t=n("getComponents",()=>o.getComponents()),l=s(()=>Object.entries(p.value?.nuxt?.vueApp._context.components||{}).map(([e])=>({pascalName:e,global:!0})).filter(e=>!/^Lazy[A-Z]/.test(e.pascalName)).filter(e=>!(t.value||[]).find(a=>a.pascalName===e.pascalName)));return s(()=>[...l.value,...t.value||[]].sort((e,a)=>e.pascalName.localeCompare(a.pascalName)))}function r(){return n("getComponentsRelationships",()=>o.getComponentsRelationships())}export{r as a,u};
1
+ import{al as c,bc as n,a as s,L as o}from"./DW2rdoo9.js";function u(){const p=c(),t=n("getComponents",()=>o.getComponents()),l=s(()=>Object.entries(p.value?.nuxt?.vueApp._context.components||{}).map(([e])=>({pascalName:e,global:!0})).filter(e=>!/^Lazy[A-Z]/.test(e.pascalName)).filter(e=>!(t.value||[]).find(a=>a.pascalName===e.pascalName)));return s(()=>[...l.value,...t.value||[]].sort((e,a)=>e.pascalName.localeCompare(a.pascalName)))}function r(){return n("getComponentsRelationships",()=>o.getComponentsRelationships())}export{r as a,u};
@@ -1 +1 @@
1
- import{d as i,a0 as r,o as p,m as b,I as u,c3 as h,f as a,k as n,l as k,ae as m,i as f,aa as v,G as _,a6 as x}from"./CSxKs2xg.js";const V=["checked","disabled"],y=["disabled"],B={class:"n-checkbox-box n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},w=i({__name:"NCheckbox",props:{modelValue:{type:[Boolean,null],default:!1},disabled:{type:Boolean,default:!1}},setup(c,{emit:t}){const e=r(c,"modelValue",t,{passive:!0});return(o,s)=>{const d=x;return p(),b("label",{class:"n-checkbox hover:n-checkbox-hover select-none items-center n-disabled:n-disabled",checked:a(e)||null,disabled:o.disabled||null},[u(n("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>k(e)?e.value=l:null),type:"checkbox",class:"peer absolute op0",disabled:o.disabled,onKeypress:s[1]||(s[1]=m(l=>e.value=!a(e),["enter"]))},null,40,y),[[h,a(e)]]),n("span",B,[f(d,{class:"n-checkbox-icon scale-0 transform op0 n-transition n-checked:scale-100 n-checked:op100"})]),n("span",{class:_([a(e)?"":"op50","n-transition"])},[v(o.$slots,"default")],2)],8,V)}}});export{w as _};
1
+ import{d as i,a0 as r,o as p,m as b,I as u,c3 as h,f as a,k as n,l as k,ae as m,i as f,aa as v,G as _,a6 as x}from"./DW2rdoo9.js";const V=["checked","disabled"],y=["disabled"],B={class:"n-checkbox-box n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},w=i({__name:"NCheckbox",props:{modelValue:{type:[Boolean,null],default:!1},disabled:{type:Boolean,default:!1}},setup(c,{emit:t}){const e=r(c,"modelValue",t,{passive:!0});return(o,s)=>{const d=x;return p(),b("label",{class:"n-checkbox hover:n-checkbox-hover select-none items-center n-disabled:n-disabled",checked:a(e)||null,disabled:o.disabled||null},[u(n("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>k(e)?e.value=l:null),type:"checkbox",class:"peer absolute op0",disabled:o.disabled,onKeypress:s[1]||(s[1]=m(l=>e.value=!a(e),["enter"]))},null,40,y),[[h,a(e)]]),n("span",B,[f(d,{class:"n-checkbox-icon scale-0 transform op0 n-transition n-checked:scale-100 n-checked:op100"})]),n("span",{class:_([a(e)?"":"op50","n-transition"])},[v(o.$slots,"default")],2)],8,V)}}});export{w as _};
@@ -1 +1 @@
1
- import{q as o,m as s,k as t,aa as a,o as n}from"./CSxKs2xg.js";const r={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function d(e,_){return n(),s("div",c,[t("div",l,[a(e.$slots,"default")])])}const i=o(r,[["render",d]]);export{i as default};
1
+ import{q as o,m as s,k as t,aa as a,o as n}from"./DW2rdoo9.js";const r={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function d(e,_){return n(),s("div",c,[t("div",l,[a(e.$slots,"default")])])}const i=o(r,[["render",d]]);export{i as default};
@@ -1 +1 @@
1
- import{q as r,aa as n}from"./CSxKs2xg.js";const t={};function o(e,s){return n(e.$slots,"default")}const c=r(t,[["render",o]]);export{c as default};
1
+ import{q as r,aa as n}from"./DW2rdoo9.js";const t={};function o(e,s){return n(e.$slots,"default")}const c=r(t,[["render",o]]);export{c as default};
@@ -1 +1 @@
1
- import{d as s,a as l,o as a,h as i,j as p,aa as u,m as c,p as m,aw as _,x as k}from"./CSxKs2xg.js";const d={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},g=s({__name:"NLink",props:{to:{},href:{},target:{},underline:{type:Boolean}},setup(o){const t=o,n=l(()=>t.href||t.to);return(e,h)=>{const r=k;return a(),i(r,_(n.value?{href:n.value,target:e.target,rel:e.target==="_blank"?"noopener noreferrer":null}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||e.underline}}),{default:p(()=>[u(e.$slots,"default"),n.value&&e.target==="_blank"?(a(),c("div",d)):m("",!0)]),_:3},16,["class"])}}});export{g as _};
1
+ import{d as s,a as l,o as a,h as i,j as p,aa as u,m as c,p as m,aw as _,x as k}from"./DW2rdoo9.js";const d={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},g=s({__name:"NLink",props:{to:{},href:{},target:{},underline:{type:Boolean}},setup(o){const t=o,n=l(()=>t.href||t.to);return(e,h)=>{const r=k;return a(),i(r,_(n.value?{href:n.value,target:e.target,rel:e.target==="_blank"?"noopener noreferrer":null}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||e.underline}}),{default:p(()=>[u(e.$slots,"default"),n.value&&e.target==="_blank"?(a(),c("div",d)):m("",!0)]),_:3},16,["class"])}}});export{g as _};
@@ -1 +1 @@
1
- import{_ as F}from"./B7vUcbNk.js";import{_ as L}from"./DjVyxknR.js";import{_ as A}from"./K0tfU50F.js";import{d as E,P as G,bd as W,r as V,be as Y,N as Z,R as q,o as m,m as g,aa as z,f as a,t as $,p as w,F as B,i as s,h as H,j as u,k as h,l as M,v as p,V as J,Y as K,_ as O,Z as Q,bf as X,ab as ee,a as te,au as ae,av as ne,bg as se,bc as oe}from"./CSxKs2xg.js";const le={key:0},re={p4:"",flex:"~ col gap-1"},ue={class:"text-lg font-medium leading-6"},ie=h("p",{op50:""}," The following command will be executed in your terminal: ",-1),ce={flex:"~ gap-3",mt2:"","justify-end":""},ve=E({__name:"NpmVersionCheck",props:{packageName:{},options:{},showVersion:{type:Boolean,default:!0}},setup(l){const t=l,e=G(),{info:n,update:i,state:y,processId:k,restart:d}=W(t.packageName,t.options),f=V(!0),_=V(!0),R=Y(),N=Z(),U=q();async function b(){const r=await i(async o=>N.start(o));J("npm:update",{packageName:t.packageName,oldVersion:n.value?.current}),r&&_.value&&R.value.push({id:r,message:`${t.packageName} has been updated. Do you want to restart the Nuxt server now?`}),r&&f.value&&(U.value=r,e.push("/modules/terminals"))}return(r,o)=>{const C=F,S=L,x=A,T=K,P=O,I=Q;return m(),g(B,null,[z(r.$slots,"default",{id:a(k),info:a(n),update:b,state:a(y),restart:a(d)},()=>[a(n)&&r.showVersion?(m(),g("code",le,$(`v${a(n).current}`),1)):w("",!0),a(n)?.latest?(m(),g(B,{key:1},[a(n).needsUpdate?(m(),g("button",{key:0,onClick:o[0]||(o[0]=v=>b())},[s(C,{n:"green",title:"updates available",textContent:"updates available"})])):(m(),H(C,{key:1,n:"gray",title:"latest",textContent:"latest"}))],64)):w("",!0)]),s(a(N),null,{default:u(({resolve:v,args:j})=>[s(I,{"model-value":!0,onClose:c=>v(!1)},{default:u(()=>[h("div",re,[h("h3",ue," Update "+$(t.packageName)+"? ",1),ie,s(S,{code:j[0],lang:"bash",my3:"",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),s(x,{modelValue:a(f),"onUpdate:modelValue":o[1]||(o[1]=c=>M(f)?f.value=c:null),n:"primary"},{default:u(()=>[p(" Navigate to terminal ")]),_:1},8,["modelValue"]),s(x,{modelValue:a(_),"onUpdate:modelValue":o[2]||(o[2]=c=>M(_)?_.value=c:null),n:"primary"},{default:u(()=>[p(" Restart Nuxt server after update ")]),_:1},8,["modelValue"]),h("div",ce,[s(T,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:u(()=>[p(" Please make sure to backup your project first. ")]),_:1}),s(P,{onClick:c=>v(!1)},{default:u(()=>[p(" Cancel ")]),_:2},1032,["onClick"]),s(P,{n:"solid primary",onClick:c=>v(!0)},{default:u(()=>[p(" Update ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1})],64)}}}),D=["pages","meta","components","imports","nuxt-config-schema","@nuxt/devtools","@nuxt/telemetry"];function de(){return oe("getModulesList",async()=>(await $fetch("https://api.nuxt.com/modules?version=3")).modules.filter(t=>!D.includes(t.npm)&&t.compatibility.nuxt.includes("^3")))}function ge(){return X("installed-modules",()=>{const l=ee(),t=de();return te(()=>(l.value?._installedModules||[]).map(e=>{if(!e.entryPath)return;const n=e.entryPath&&ae(e.entryPath),i=e.meta?.name?e.meta?.name:e.entryPath?n?ne(e.entryPath):l.value?.rootDir?se(e.entryPath,l.value?.rootDir).path:void 0:void 0,y=l.value?.modules?.includes(i),k=t.value?.find(d=>d.npm===i)||t.value?.find(d=>d.name===i);return{name:i,isPackageModule:n,isUninstallable:y,info:k,...e}}).filter(e=>e&&(!e.name||!D.includes(e.name))))})}export{ve as _,de as a,ge as u};
1
+ import{_ as F}from"./Dm8mUwGL.js";import{_ as L}from"./D7gBCge-.js";import{_ as A}from"./BhuDhIKJ.js";import{d as E,P as G,bd as W,r as V,be as Y,N as Z,R as q,o as m,m as g,aa as z,f as a,t as $,p as w,F as B,i as s,h as H,j as u,k as h,l as M,v as p,V as J,Y as K,_ as O,Z as Q,bf as X,ab as ee,a as te,au as ae,av as ne,bg as se,bc as oe}from"./DW2rdoo9.js";const le={key:0},re={p4:"",flex:"~ col gap-1"},ue={class:"text-lg font-medium leading-6"},ie=h("p",{op50:""}," The following command will be executed in your terminal: ",-1),ce={flex:"~ gap-3",mt2:"","justify-end":""},ve=E({__name:"NpmVersionCheck",props:{packageName:{},options:{},showVersion:{type:Boolean,default:!0}},setup(l){const t=l,e=G(),{info:n,update:i,state:y,processId:k,restart:d}=W(t.packageName,t.options),f=V(!0),_=V(!0),R=Y(),N=Z(),U=q();async function b(){const r=await i(async o=>N.start(o));J("npm:update",{packageName:t.packageName,oldVersion:n.value?.current}),r&&_.value&&R.value.push({id:r,message:`${t.packageName} has been updated. Do you want to restart the Nuxt server now?`}),r&&f.value&&(U.value=r,e.push("/modules/terminals"))}return(r,o)=>{const C=F,S=L,x=A,T=K,P=O,I=Q;return m(),g(B,null,[z(r.$slots,"default",{id:a(k),info:a(n),update:b,state:a(y),restart:a(d)},()=>[a(n)&&r.showVersion?(m(),g("code",le,$(`v${a(n).current}`),1)):w("",!0),a(n)?.latest?(m(),g(B,{key:1},[a(n).needsUpdate?(m(),g("button",{key:0,onClick:o[0]||(o[0]=v=>b())},[s(C,{n:"green",title:"updates available",textContent:"updates available"})])):(m(),H(C,{key:1,n:"gray",title:"latest",textContent:"latest"}))],64)):w("",!0)]),s(a(N),null,{default:u(({resolve:v,args:j})=>[s(I,{"model-value":!0,onClose:c=>v(!1)},{default:u(()=>[h("div",re,[h("h3",ue," Update "+$(t.packageName)+"? ",1),ie,s(S,{code:j[0],lang:"bash",my3:"",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),s(x,{modelValue:a(f),"onUpdate:modelValue":o[1]||(o[1]=c=>M(f)?f.value=c:null),n:"primary"},{default:u(()=>[p(" Navigate to terminal ")]),_:1},8,["modelValue"]),s(x,{modelValue:a(_),"onUpdate:modelValue":o[2]||(o[2]=c=>M(_)?_.value=c:null),n:"primary"},{default:u(()=>[p(" Restart Nuxt server after update ")]),_:1},8,["modelValue"]),h("div",ce,[s(T,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:u(()=>[p(" Please make sure to backup your project first. ")]),_:1}),s(P,{onClick:c=>v(!1)},{default:u(()=>[p(" Cancel ")]),_:2},1032,["onClick"]),s(P,{n:"solid primary",onClick:c=>v(!0)},{default:u(()=>[p(" Update ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1})],64)}}}),D=["pages","meta","components","imports","nuxt-config-schema","@nuxt/devtools","@nuxt/telemetry"];function de(){return oe("getModulesList",async()=>(await $fetch("https://api.nuxt.com/modules?version=3")).modules.filter(t=>!D.includes(t.npm)&&t.compatibility.nuxt.includes("^3")))}function ge(){return X("installed-modules",()=>{const l=ee(),t=de();return te(()=>(l.value?._installedModules||[]).map(e=>{if(!e.entryPath)return;const n=e.entryPath&&ae(e.entryPath),i=e.meta?.name?e.meta?.name:e.entryPath?n?ne(e.entryPath):l.value?.rootDir?se(e.entryPath,l.value?.rootDir).path:void 0:void 0,y=l.value?.modules?.includes(i),k=t.value?.find(d=>d.npm===i)||t.value?.find(d=>d.name===i);return{name:i,isPackageModule:n,isUninstallable:y,info:k,...e}}).filter(e=>e&&(!e.name||!D.includes(e.name))))})}export{ve as _,de as a,ge as u};
@@ -1 +1 @@
1
- import{bO as ke,d as te,bP as re,r as W,a as $,o as y,m as I,k as d,i as O,f as u,t as R,F as B,n as Z,G as F,p as j,a6 as oe,bK as Oe,ab as Te,ay as ie,ac as xe,aB as Se,b0 as we,bL as Xe,e as De,a2 as se,I as G,j as C,v as Y,bH as Ee,h as A,l as ee,aw as Me,ak as ue,V as Ce,_ as le,X as Ie,A as ce,am as $e,a9 as Ue,aa as Le,bQ as Ne,ah as Re,U as Ae,bN as Ve,ar as je}from"./CSxKs2xg.js";import{_ as Be}from"./CQfzcXIu.js";import{_ as fe}from"./B7vUcbNk.js";import{_ as pe}from"./DQS-rzez.js";import{_ as He}from"./DjVyxknR.js";import{S as de}from"./BcJws1i5.js";import{e as We}from"./CDjZ2Pwm.js";import{_ as ze}from"./DRzmYdLW.js";import{_ as qe}from"./-qWogbxp.js";import"./K0tfU50F.js";import"./CgvvXsvn.js";import"./f1qyuWhx.js";import"./CGdFtN3I.js";var he={exports:{}};(function(z,U){(function(x,D){z.exports=D()})(globalThis,()=>(()=>{var L={794:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CronParser=void 0;var r=_(586),k=function(){function m(t,e,a){e===void 0&&(e=!0),a===void 0&&(a=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=a}return m.prototype.parse=function(){var t,e,a=(t=this.expression)!==null&&t!==void 0?t:"";if(a.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},m.prototype.parseSpecial=function(t){var e={"@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 * * * *"},a=e[t];if(!a)throw new Error("Unknown special expression.");return a},m.prototype.extractParts=function(t){if(!this.expression)throw new Error("cron expression is empty");for(var e=t.trim().split(/[ ]+/),a=0;a<e.length;a++)if(e[a].includes(",")){var n=e[a].split(",").map(function(s){return s.trim()}).filter(function(s){return s!==""}).map(function(s){return isNaN(Number(s))?s:Number(s)}).filter(function(s){return s!==null&&s!==""});n.length===0&&n.push("*"),n.sort(function(s,i){return s!==null&&i!==null?s-i:0}),e[a]=n.map(function(s){return s!==null?s.toString():""}).join(",")}if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(e.length==1?"":"s",". At least 5 parts are required."));if(e.length==5)e.unshift(""),e.push("");else if(e.length==6){var o=/\d{4}$/.test(e[5])||e[4]=="?"||e[2]=="?";o?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},m.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),t[0].indexOf("0/")==0&&(t[0]=t[0].replace("0/","*/")),t[1].indexOf("0/")==0&&(t[1]=t[1].replace("0/","*/")),t[2].indexOf("0/")==0&&(t[2]=t[2].replace("0/","*/")),t[3].indexOf("1/")==0&&(t[3]=t[3].replace("1/","*/")),t[4].indexOf("1/")==0&&(t[4]=t[4].replace("1/","*/")),t[6].indexOf("1/")==0&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,function(f){var h=f.replace(/\D/,""),c=h;return e.dayOfWeekStartIndexZero?h=="7"&&(c="0"):c=(parseInt(h)-1).toString(),f.replace(h,c)}),t[5]=="L"&&(t[5]="6"),t[3]=="?"&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new 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 a={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var n in a)t[5]=t[5].replace(new RegExp(n,"gi"),a[n].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(f){var h=f.replace(/\D/,""),c=h;return e.monthStartIndexZero&&(c=(parseInt(h)+1).toString()),f.replace(h,c)});var o={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 s in o)t[4]=t[4].replace(new RegExp(s,"gi"),o[s].toString());t[0]=="0"&&(t[0]=""),!/\*|\-|\,|\//.test(t[2])&&(/\*|\//.test(t[1])||/\*|\//.test(t[0]))&&(t[2]+="-".concat(t[2]));for(var i=0;i<t.length;i++)if(t[i].indexOf(",")!=-1&&(t[i]=t[i].split(",").filter(function(f){return f!==""}).join(",")||"*"),t[i]=="*/1"&&(t[i]="*"),t[i].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[i])){var l=null;switch(i){case 4:l="12";break;case 5:l="6";break;case 6:l="9999";break;default:l=null;break}if(l!==null){var v=t[i].split("/");t[i]="".concat(v[0],"-").concat(l,"/").concat(v[1])}}},m.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},m.prototype.validateRange=function(t){r.default.secondRange(t[0]),r.default.minuteRange(t[1]),r.default.hourRange(t[2]),r.default.dayOfMonthRange(t[3]),r.default.monthRange(t[4],this.monthStartIndexZero),r.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},m.prototype.assertNoInvalidCharacters=function(t,e){var a=e.match(/[A-KM-VX-Z]+/gi);if(a&&a.length)throw new Error("".concat(t," part contains invalid values: '").concat(a.toString(),"'"))},m}();p.CronParser=k},728:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ExpressionDescriptor=void 0;var r=_(910),k=_(794),m=function(){function t(e,a){if(this.expression=e,this.options=a,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var n=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(n,"'.")),this.options.locale=n}this.i18n=t.locales[this.options.locale],a.use24HourTimeFormat===void 0&&(a.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,a){var n=a===void 0?{}:a,o=n.throwExceptionOnParseError,s=o===void 0?!0:o,i=n.verbose,l=i===void 0?!1:i,v=n.dayOfWeekStartIndexZero,f=v===void 0?!0:v,h=n.monthStartIndexZero,c=h===void 0?!1:h,N=n.use24HourTimeFormat,T=n.locale,H=T===void 0?null:T,V=n.tzOffset,E=V===void 0?0:V,q={throwExceptionOnParseError:s,verbose:l,dayOfWeekStartIndexZero:f,monthStartIndexZero:c,use24HourTimeFormat:N,locale:H,tzOffset:E},Q=new t(e,q);return Q.getFullDescription()},t.initialize=function(e,a){a===void 0&&(a="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=a,e.load(t.locales)},t.prototype.getFullDescription=function(){var e="";try{var a=new k.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=a.parse();var n=this.getTimeOfDayDescription(),o=this.getDayOfMonthDescription(),s=this.getMonthDescription(),i=this.getDayOfWeekDescription(),l=this.getYearDescription();e+=n+o+i+s+l,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(v){if(!this.options.throwExceptionOnParseError)e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(v)}return e},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],a=this.expressionParts[1],n=this.expressionParts[2],o="";if(!r.StringUtilities.containsAny(a,t.specialCharacters)&&!r.StringUtilities.containsAny(n,t.specialCharacters)&&!r.StringUtilities.containsAny(e,t.specialCharacters))o+=this.i18n.atSpace()+this.formatTime(n,a,e);else if(!e&&a.indexOf("-")>-1&&!(a.indexOf(",")>-1)&&!(a.indexOf("/")>-1)&&!r.StringUtilities.containsAny(n,t.specialCharacters)){var s=a.split("-");o+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(n,s[0],""),this.formatTime(n,s[1],""))}else if(!e&&n.indexOf(",")>-1&&n.indexOf("-")==-1&&n.indexOf("/")==-1&&!r.StringUtilities.containsAny(a,t.specialCharacters)){var i=n.split(",");o+=this.i18n.at();for(var l=0;l<i.length;l++)o+=" ",o+=this.formatTime(i[l],a,""),l<i.length-2&&(o+=","),l==i.length-2&&(o+=this.i18n.spaceAnd())}else{var v=this.getSecondsDescription(),f=this.getMinutesDescription(),h=this.getHoursDescription();if(o+=v,o&&f&&(o+=", "),o+=f,f===h)return o;o&&h&&(o+=", "),o+=h}return o},t.prototype.getSecondsDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(n){return n},function(n){return r.StringUtilities.format(e.i18n.everyX0Seconds(n),n)},function(n){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(n){return n=="0"?"":parseInt(n)<20?e.i18n.atX0SecondsPastTheMinute(n):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(n)});return a},t.prototype.getMinutesDescription=function(){var e=this,a=this.expressionParts[0],n=this.expressionParts[2],o=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(s){return s},function(s){return r.StringUtilities.format(e.i18n.everyX0Minutes(s),s)},function(s){return e.i18n.minutesX0ThroughX1PastTheHour()},function(s){try{return s=="0"&&n.indexOf("/")==-1&&a==""?e.i18n.everyHour():parseInt(s)<20?e.i18n.atX0MinutesPastTheHour(s):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(s)}catch{return e.i18n.atX0MinutesPastTheHour(s)}});return o},t.prototype.getHoursDescription=function(){var e=this,a=this.expressionParts[2],n=this.getSegmentDescription(a,this.i18n.everyHour(),function(i){return e.formatTime(i,"0","")},function(i){return r.StringUtilities.format(e.i18n.everyX0Hours(i),i)},function(i){return e.i18n.betweenX0AndX1()},function(i){return e.i18n.atX0()});if(n&&a.includes("-")&&this.expressionParts[1]!="0"){var o=Array.from(n.matchAll(/:00/g));if(o.length>1){var s=o[o.length-1].index;n=n.substring(0,s)+":59"+n.substring(s+3)}}return n},t.prototype.getDayOfWeekDescription=function(){var e=this,a=this.i18n.daysOfTheWeek(),n=null;return this.expressionParts[5]=="*"?n="":n=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(o,s){var i=o;o.indexOf("#")>-1?i=o.substring(0,o.indexOf("#")):o.indexOf("L")>-1&&(i=i.replace("L",""));var l=parseInt(i);if(e.options.tzOffset){var v=e.expressionParts[2],f=parseInt(v)+(e.options.tzOffset?e.options.tzOffset:0);f>=24?l++:f<0&&l--,l>6?l=0:l<0&&(l=6)}var h=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(s)[l]:a[l];if(o.indexOf("#")>-1){var c=null,N=o.substring(o.indexOf("#")+1),T=o.substring(0,o.indexOf("#"));switch(N){case"1":c=e.i18n.first(T);break;case"2":c=e.i18n.second(T);break;case"3":c=e.i18n.third(T);break;case"4":c=e.i18n.fourth(T);break;case"5":c=e.i18n.fifth(T);break}h=c+" "+h}return h},function(o){return parseInt(o)==1?"":r.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(o),o)},function(o){var s=o.substring(0,o.indexOf("-")),i=e.expressionParts[3]!="*";return i?e.i18n.commaAndX0ThroughX1(s):e.i18n.commaX0ThroughX1(s)},function(o){var s=null;if(o.indexOf("#")>-1){var i=o.substring(o.indexOf("#")+1);s=e.i18n.commaOnThe(i).trim()+e.i18n.spaceX0OfTheMonth()}else if(o.indexOf("L")>-1)s=e.i18n.commaOnTheLastX0OfTheMonth(o.replace("L",""));else{var l=e.expressionParts[3]!="*";s=l?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(o)}return s}),n},t.prototype.getMonthDescription=function(){var e=this,a=this.i18n.monthsOfTheYear(),n=this.getSegmentDescription(this.expressionParts[4],"",function(o,s){return s&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(s)[parseInt(o)-1]:a[parseInt(o)-1]},function(o){return parseInt(o)==1?"":r.StringUtilities.format(e.i18n.commaEveryX0Months(o),o)},function(o){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(o){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()});return n},t.prototype.getDayOfMonthDescription=function(){var e=this,a=null,n=this.expressionParts[3];switch(n){case"L":a=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":a=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var s=parseInt(o[0].replace("W","")),i=s==1?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),s.toString());a=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),i);break}else{var l=n.match(/L-(\d{1,2})/);if(l){var v=l[1];a=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(v),v);break}else{if(n=="*"&&this.expressionParts[5]!="*")return"";a=this.getSegmentDescription(n,this.i18n.commaEveryDay(),function(f){return f=="L"?e.i18n.lastDay():e.i18n.dayX0?r.StringUtilities.format(e.i18n.dayX0(),f):f},function(f){return f=="1"?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(f)},function(f){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(f)},function(f){return e.i18n.commaOnDayX0OfTheMonth(f)})}break}}return a},t.prototype.getYearDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[6],"",function(n){return/^\d+$/.test(n)?new Date(parseInt(n),1).getFullYear().toString():n},function(n){return r.StringUtilities.format(e.i18n.commaEveryX0Years(n),n)},function(n){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(n){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()});return a},t.prototype.getSegmentDescription=function(e,a,n,o,s,i){var l=null,v=e.indexOf("/")>-1,f=e.indexOf("-")>-1,h=e.indexOf(",")>-1;if(!e)l="";else if(e==="*")l=a;else if(!v&&!f&&!h)l=r.StringUtilities.format(i(e),n(e));else if(h){for(var c=e.split(","),N="",T=0;T<c.length;T++)if(T>0&&c.length>2&&(N+=",",T<c.length-1&&(N+=" ")),T>0&&c.length>1&&(T==c.length-1||c.length==2)&&(N+="".concat(this.i18n.spaceAnd()," ")),c[T].indexOf("/")>-1||c[T].indexOf("-")>-1){var H=c[T].indexOf("-")>-1&&c[T].indexOf("/")==-1,V=this.getSegmentDescription(c[T],a,n,o,H?this.i18n.commaX0ThroughX1:s,i);H&&(V=V.replace(", ","")),N+=V}else v?N+=this.getSegmentDescription(c[T],a,n,o,s,i):N+=n(c[T]);v?l=N:l=r.StringUtilities.format(i(e),N)}else if(v){var c=e.split("/");if(l=r.StringUtilities.format(o(c[1]),c[1]),c[0].indexOf("-")>-1){var E=this.generateRangeSegmentDescription(c[0],s,n);E.indexOf(", ")!=0&&(l+=", "),l+=E}else if(c[0].indexOf("*")==-1){var q=r.StringUtilities.format(i(c[0]),n(c[0]));q=q.replace(", ",""),l+=r.StringUtilities.format(this.i18n.commaStartingX0(),q)}}else f&&(l=this.generateRangeSegmentDescription(e,s,n));return l},t.prototype.generateRangeSegmentDescription=function(e,a,n){var o="",s=e.split("-"),i=n(s[0],1),l=n(s[1],2),v=a(e);return o+=r.StringUtilities.format(v,i,l),o},t.prototype.formatTime=function(e,a,n){var o=0,s=0;this.options.tzOffset&&(o=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),s=parseFloat((this.options.tzOffset%1).toFixed(2)),s!=0&&(s*=60));var i=parseInt(e)+o,l=parseInt(a)+s;l>=60?(l-=60,i+=1):l<0&&(l+=60,i-=1),i>=24?i=i-24:i<0&&(i=24+i);var v="",f=!1;this.options.use24HourTimeFormat||(f=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),v=f?"".concat(this.getPeriod(i)," "):" ".concat(this.getPeriod(i)),i>12&&(i-=12),i===0&&(i=12));var h="";return n&&(h=":".concat(("00"+n).substring(n.length))),"".concat(f?v:"").concat(("00"+i.toString()).substring(i.toString().length),":").concat(("00"+l.toString()).substring(l.toString().length)).concat(h).concat(f?"":v)},t.prototype.transformVerbosity=function(e,a){return a||(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,"")),e},t.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();p.ExpressionDescriptor=m},336:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.enLocaleLoader=void 0;var r=_(751),k=function(){function m(){}return m.prototype.load=function(t){t.en=new r.en},m}();p.enLocaleLoader=k},751:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.en=void 0;var _=function(){function r(){}return r.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},r.prototype.atX0MinutesPastTheHourGt20=function(){return null},r.prototype.commaMonthX0ThroughMonthX1=function(){return null},r.prototype.commaYearX0ThroughYearX1=function(){return null},r.prototype.use24HourTimeFormatByDefault=function(){return!1},r.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},r.prototype.everyMinute=function(){return"every minute"},r.prototype.everyHour=function(){return"every hour"},r.prototype.atSpace=function(){return"At "},r.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},r.prototype.at=function(){return"At"},r.prototype.spaceAnd=function(){return" and"},r.prototype.everySecond=function(){return"every second"},r.prototype.everyX0Seconds=function(){return"every %s seconds"},r.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},r.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},r.prototype.everyX0Minutes=function(){return"every %s minutes"},r.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},r.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},r.prototype.everyX0Hours=function(){return"every %s hours"},r.prototype.betweenX0AndX1=function(){return"between %s and %s"},r.prototype.atX0=function(){return"at %s"},r.prototype.commaEveryDay=function(){return", every day"},r.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},r.prototype.commaX0ThroughX1=function(){return", %s through %s"},r.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},r.prototype.first=function(){return"first"},r.prototype.second=function(){return"second"},r.prototype.third=function(){return"third"},r.prototype.fourth=function(){return"fourth"},r.prototype.fifth=function(){return"fifth"},r.prototype.commaOnThe=function(){return", on the "},r.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},r.prototype.lastDay=function(){return"the last day"},r.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},r.prototype.commaOnlyOnX0=function(){return", only on %s"},r.prototype.commaAndOnX0=function(){return", and on %s"},r.prototype.commaEveryX0Months=function(){return", every %s months"},r.prototype.commaOnlyInX0=function(){return", only in %s"},r.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},r.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},r.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},r.prototype.firstWeekday=function(){return"first weekday"},r.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},r.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},r.prototype.commaEveryX0Days=function(){return", every %s days"},r.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},r.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},r.prototype.commaEveryHour=function(){return", every hour"},r.prototype.commaEveryX0Years=function(){return", every %s years"},r.prototype.commaStartingX0=function(){return", starting %s"},r.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},r.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},r}();p.en=_},586:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0});function _(k,m){if(!k)throw new Error(m)}var r=function(){function k(){}return k.secondRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=59,"seconds part must be >= 0 and <= 59")}},k.minuteRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=59,"minutes part must be >= 0 and <= 59")}},k.hourRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=23,"hours part must be >= 0 and <= 23")}},k.dayOfMonthRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=1&&a<=31,"DOM part must be >= 1 and <= 31")}},k.monthRange=function(m,t){for(var e=m.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var n=parseInt(e[a],10);_(n>=1&&n<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},k.dayOfWeekRange=function(m,t){for(var e=m.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var n=parseInt(e[a],10);_(n>=0&&n<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},k}();p.default=r},910:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.StringUtilities=void 0;var _=function(){function r(){}return r.format=function(k){for(var m=[],t=1;t<arguments.length;t++)m[t-1]=arguments[t];return k.replace(/%s/g,function(e){return m.shift()})},r.containsAny=function(k,m){return m.some(function(t){return k.indexOf(t)>-1})},r}();p.StringUtilities=_}},x={};function D(S){var p=x[S];if(p!==void 0)return p.exports;var _=x[S]={exports:{}};return L[S](_,_.exports,D),_.exports}var X={};return(()=>{var S=X;Object.defineProperty(S,"__esModule",{value:!0}),S.toString=void 0;var p=D(728),_=D(336);p.ExpressionDescriptor.initialize(new _.enLocaleLoader),S.default=p.ExpressionDescriptor;var r=p.ExpressionDescriptor.toString;S.toString=r})(),X})())})(he);var Pe=he.exports;const Ye=ke(Pe),Fe=["title"],Ge={"flex-none":"","text-left":""},Ze={flex:"~ gap-2","min-w-0":"","items-center":"","text-sm":""},Je={class:"truncate"},Qe={"text-xs":"",op50:""},Ke=d("div",{"x-divider":""},null,-1),et={key:0},tt=["onClick"],nt=d("div",{"x-divider":""},null,-1),rt=te({__name:"CronCollection",props:{collection:{}},setup(z){const U=z,L=re(),x=W(!0),D=$(()=>Ye.toString(U.collection.cron));return(X,S)=>{const p=oe,_=fe;return y(),I("div",null,[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",p2:"",title:u(D),onClick:S[0]||(S[0]=r=>x.value=!u(x))},[d("div",Ge,[O(p,{icon:"carbon:chevron-right","mb0.5":"","transform-rotate":u(x)?90:0,transition:""},null,8,["transform-rotate"])]),d("span",Ze,[O(_,{class:"font-mono n-primary",textContent:R(X.collection.cron)},null,8,["textContent"]),d("span",Je,R(u(D)),1),d("span",Qe,"("+R(X.collection.tasks.length)+")",1)])],8,Fe),Ke,u(x)?(y(),I("ul",et,[(y(!0),I(B,null,Z(X.collection.tasks,r=>(y(),I("li",{key:r},[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"","pl-9":"","font-mono":"",class:F([{"bg-active":u(L)===r}]),onClick:k=>L.value=r},R(r),11,tt),nt]))),128))])):j("",!0)])}}}),ot={"h-full":"","w-full":"",flex:"~ col"},at={flex:"~ col gap-2","flex-none":"",p4:"","n-navbar-glass":""},it={flex:"~ gap2 items-center"},st={relative:"","w-full":""},ut={absolute:"","right-2":"","top-1.5":"",flex:"~ gap-1"},lt={flex:"~ gap2 wrap","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},ct={class:"hidden md:block"},ft={flex:"~ gap2","mb--2":"","items-center":"",op50:""},pt=d("div",{"w-5":"","x-divider":""},null,-1),dt=d("div",{"flex-none":""}," Default Inputs ",-1),ht=d("div",{"x-divider":""},null,-1),vt={key:0,border:"b base",relative:"","n-code-block":""},mt={flex:"~ wrap","w-full":""},yt=["onClick"],gt=d("div",{border:"b base","flex-auto":""},null,-1),_t={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},bt=d("div",null,"Result",-1),kt={key:1,"text-xs":"",op50:""},Ot=d("div",{"flex-auto":""},null,-1),Tt=d("div",{op50:""}," Tasks finished in ",-1),xt=te({__name:"ServerTaskDetails",props:{task:{}},emits:["open-default-input"],setup(z,{emit:U}){const L=z,x=U,D=W({payload:{}}),{inputDefaults:X}=ue("serverRoutes"),[S,p]=Oe(),_=Te(),r=ie({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),k=$(()=>JSON.stringify(r.data,null,2)),m=$(()=>r.contentType.includes("application/json")?"json":"text"),t=W(!1),e=W(!1),a=xe(),n=W(),o=["json"],s=W(o[0]),i=ie({query:[{active:!0,key:"",value:"",type:"string"}],body:[{active:!0,key:"",value:"",type:"string"}],headers:[]}),l=$({get:()=>i[n.value],set:g=>{i[n.value]=g}}),v=$(()=>({...V(X.value.query),...V(i.query)})),f=$(()=>({...V(X.value.headers)})),h=$(()=>Object.keys(D.value?.payload??{}).length?{...D.value}:void 0),c=$(()=>h.value?"POST":"GET"),N=$(()=>{let g=window?.location.origin;return g.charAt(g.length-1)==="/"&&(g=g.slice(0,-1)),g}),T=$(()=>{let g=new URLSearchParams(v.value).toString();g&&(g=`?${g}`);const b=`/_nitro/tasks/${L.task.name}${g}`;let M=_.value?.app.baseURL||"";return(M==="./"||M===".")&&(M=""),M.endsWith("/")&&(M=M.slice(0,-1)),M+b}),H=$(()=>N.value+T.value);function V(g){const b=Object.fromEntries(g.filter(({active:M,key:P,value:J})=>M&&P&&J!==void 0).map(({key:M,value:P})=>[M,P]));return Object.entries(b).length?b:void 0}async function E(){e.value=!0,t.value=!0;const g=Date.now();Ce("server-tasks:run",{method:c.value});try{r.data=await $fetch(H.value,{method:"POST",headers:f.value,query:v.value,body:h.value,onResponse({response:b}){r.contentType=(b.headers.get("content-type")||"").toString().toLowerCase().trim(),r.statusCode=b.status,r.error=void 0},onResponseError(b){r.error=b.response._data,r.data=b.response._data}})}catch{}t.value=!1,r.fetchTime=Date.now()-g}const q=$(()=>{const g=[];return g.push({name:"Query",slug:"query",length:i.query.length}),g.push({name:"Body",slug:"body",length:i.body.length}),g});Se(()=>{if(s.value==="json"&&typeof D.value=="string")try{D.value=JSON.parse(D.value)}catch{}});const Q=we("nuxt-devtools:server-tasks:inputs",()=>[],{window:window.parent});Xe([i,n],()=>{const g=Q.value?.find(b=>b.task===L.task.name);if(g){n.value||(n.value=g.tab),g.tab!==n.value&&(g.tab=n.value);const{body:b,query:M,headers:P}=g.inputs;Object.assign(i,{body:b,query:M,headers:P})}else{const b={task:L.task.name,tab:"query",inputs:i};Q.value.push(b),n.value||(n.value=b.tab)}},{immediate:!0,deep:!0,debounce:500});const me=De();return(g,b)=>{const M=le,P=Ie,J=oe,ae=pe,ye=ce,ge=$e,ne=fe,_e=He,K=se("tooltip");return y(),I("div",ot,[d("div",at,[d("div",it,[G((y(),I("div",null,[O(M,{class:F(["n-badge-base n-sm",("getRequestMethodClass"in g?g.getRequestMethodClass:u(Ee))(u(c))]),"pointer-events-none":"","font-mono":"",tabindex:"-1"},{default:C(()=>[Y(R(u(c)),1)]),_:1},8,["class"])])),[[K,`Method is ${u(c)} as ${u(c)==="GET"?"no":""} json body is sent`]]),d("div",st,[O(P,{"model-value":u(T),readonly:"","flex-auto":"","font-mono":"",p:"x5 y2",n:"sm"},null,8,["model-value"]),d("div",ut,[G(O(M,{title:"Copy URL",n:"xs blue",icon:"carbon:copy",border:!1,onClick:b[0]||(b[0]=w=>u(me)(u(H),"server-task-url"))},null,512),[[K,"Copy URL"]]),G(O(M,{title:"Open in Editor",icon:"carbon-launch",n:"xs blue",border:!1,onClick:b[1]||(b[1]=w=>u(a)(g.task.handler))},null,512),[[K,"Open in Editor"]])])]),O(M,{"h-full":"",n:"primary solid",onClick:E},{default:C(()=>[O(J,{icon:"carbon:send"})]),_:1})])]),d("div",lt,[(y(!0),I(B,null,Z(u(q),w=>G((y(),A(M,{key:w.slug,class:F(u(n)===w.slug?"text-primary n-primary":"border-transparent shadow-none"),onClick:be=>n.value=w.slug},{default:C(()=>[O(J,{icon:("ServerRouteTabIcons"in g?g.ServerRouteTabIcons:u(de))[w.slug]},null,8,["icon"]),d("div",ct,[Y(R(w.name)+" "+R(w?.length?`(${w.length})`:"")+" ",1),d("span",null,R(u(X)[w.slug]?.length?`(${u(X)[w.slug].length})`:""),1)])]),_:2},1032,["class","onClick"])),[[K,w.name]])),128))]),O(u(S),null,{default:C(()=>[O(ae,{modelValue:u(l),"onUpdate:modelValue":b[4]||(b[4]=w=>ee(l)?l.value=w:null),default:{active:!0,type:"string"},"max-h-xs":"","of-auto":""},{default:C(()=>[u(X)[u(n)]?.length?(y(),I(B,{key:0},[d("div",ft,[pt,dt,O(M,{icon:"i-carbon-edit",border:!1,onClick:b[2]||(b[2]=w=>x("open-default-input"))}),ht]),O(ae,{modelValue:u(X)[u(n)],"onUpdate:modelValue":b[3]||(b[3]=w=>u(X)[u(n)]=w),disabled:"",p0:""},null,8,["modelValue"])],64)):j("",!0)]),_:1},8,["modelValue"])]),_:1}),u(l)?(y(),I("div",vt,[u(n)==="body"?(y(),I(B,{key:0},[d("div",mt,[(y(),I(B,null,Z(o,w=>d("button",{key:w,px4:"",py2:"",border:"r base",hover:"bg-active",class:F({"border-b":w!==u(s)}),onClick:be=>s.value=w},[d("div",{class:F({op30:w!==u(s)}),"font-mono":""},R(w),3)],10,yt)),64)),gt]),u(s)==="input"?(y(),A(u(p),{key:0})):u(s)==="json"?(y(),A(u(We),Me({key:1,modelValue:u(D),"onUpdate:modelValue":b[5]||(b[5]=w=>ee(D)?D.value=w:null),class:[[g.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue of-auto text-sm outline-none"]},g.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):j("",!0)],64)):(y(),A(u(p),{key:1}))])):j("",!0),u(e)?u(t)?(y(),A(ge,{key:2,"z-10":"","flex-auto":"","backdrop-blur":""},{default:C(()=>[Y(" Running... ")]),_:1})):(y(),I(B,{key:3},[d("div",_t,[bt,u(r).error?(y(),A(ne,{key:0,n:"red"},{default:C(()=>[Y(" Error ")]),_:1})):j("",!0),O(ne,{n:u(r).error?"orange":"green",textContent:R(u(r).statusCode)},null,8,["n","textContent"]),u(r).contentType?(y(),I("code",kt,R(u(r).contentType),1)):j("",!0),Ot,Tt,O(ne,{n:"green"},{default:C(()=>[Y(R(u(r).fetchTime)+" ms ",1)]),_:1})]),O(_e,{"flex-auto":"","overflow-auto":"","py-2":"",code:u(k),lang:u(m)},null,8,["code","lang"])],64)):(y(),A(ye,{key:1},{default:C(()=>[O(M,{n:"primary",onClick:E},{default:C(()=>[O(J,{icon:"carbon:send"}),Y(" Run task ")]),_:1})]),_:1}))])}}}),St={"flex-none":"","text-left":""},wt={flex:"","items-center":"","text-sm":"","font-mono":""},Xt=d("div",{"x-divider":""},null,-1),ve=te({__name:"ServerTaskListItem",props:{item:{},index:{default:0}},setup(z){const U=W(!0),L=re();return(x,D)=>{const X=oe,S=ve;return y(),I("div",null,[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:F([{"bg-active":u(L)===x.item.name}]),style:Ue({paddingLeft:`calc(0.5rem + ${x.index*1.5}em)`}),onClick:D[0]||(D[0]=p=>{U.value=!u(U),L.value=x.item.name})},[d("div",St,[x.item.type==="collection"?(y(),A(X,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":u(U)?90:0,transition:""},null,8,["transform-rotate"])):j("",!0)]),d("span",wt,[x.item.type==="collection"?(y(),A(X,{key:0,title:`${x.item.tasks?.length} tasks`,icon:"carbon:folder",mr1:""},null,8,["title"])):(y(),A(X,{key:1,icon:"carbon:play",ml3:"",mr1:""})),Y(" "+R(x.item.name),1)])],6),Xt,u(U)?Le(x.$slots,"default",{key:0},()=>[(y(!0),I(B,null,Z(x.item.tasks,p=>(y(),A(S,{key:p.name,item:p,index:x.index+1},null,8,["item","index"]))),128))]):j("",!0)])}}}),Dt={flex:"~ gap1","text-sm":""},Et={key:0,op50:""},Mt={op50:""},Ct=d("div",{px4:"",py2:"",border:"b base"}," Cron groups ",-1),It=d("span",{op75:""},"Select a task to start",-1),$t=d("div",{p4:"",border:"b base"},[d("span",{"text-lg":""},"Default Inputs"),d("br"),d("span",{"text-white":"",op50:""},"Merged as default for every task in DevTools")],-1),Yt=te({__name:"server-tasks",setup(z){const U=W(!1),L=Ne(),x=$(()=>Object.keys(L.value?.tasks??{}).map(n=>({name:n,...L.value.tasks[n],type:"task"}))),D=$(()=>Object.entries(L.value?.scheduledTasks??{}).map(([n,o])=>({cron:n,tasks:o}))),X=re(),{view:S,selectedTask:p,inputDefaults:_}=ue("serverTasks"),r=$(()=>{!X.value&&p.value&&(X.value=p.value.name);const n=x.value.find(o=>o.name===X.value);return X.value!==p.value?.name&&n&&(p.value=n),n}),k=W(""),m=$(()=>new Re(x.value,{keys:["key","description"],shouldSort:!0})),t=$(()=>k.value?m.value.search(k.value).map(o=>o.item):x.value),e=$(()=>{const n=[],o=(i,l)=>{i.tasks||=[],i.tasks.push(l)},s=(i,l)=>{const v=l?l.tasks?.find(h=>h.name===i):n.find(h=>h.name===i);if(v)return{...v,type:"collection"};const f={name:i,handler:i,description:"",type:"collection",tasks:[]};return l?o(l,f):n.push(f),f};return t.value.forEach(i=>{let l;const v={...i,type:"task"},h=i.name.split(":").concat();h.length>0&&h[h.length-1].includes(".")&&h.pop(),h.forEach(c=>{l=s(c,l)}),l?o(l,v):n.push(v)}),n});function a(){S.value=S.value==="tree"?"list":"tree"}return(n,o)=>{const s=le,i=Be,l=rt,v=Ae,f=xt,h=je,c=ce,N=pe,T=ze,H=qe,V=se("tooltip");return y(),I(B,null,[O(v,{"storage-key":"tab-server-tasks"},{left:C(()=>[O(v,{horizontal:"","storage-key":"tab-server-tasks-split"},{left:C(()=>[O(i,{search:u(k),"onUpdate:search":o[1]||(o[1]=E=>ee(k)?k.value=E:null),pb2:""},{actions:C(()=>[G(O(s,{"text-lg":"",icon:u(S)==="list"?"i-carbon-list":"i-carbon-tree-view-alt",title:"Toggle view",border:!1,onClick:a},null,8,["icon"]),[[V,"Toggle View"]]),G(O(s,{"text-lg":"",icon:"i-carbon-cics-sit-overrides",title:"Default Inputs",border:!1,onClick:o[0]||(o[0]=E=>U.value=!u(U))},null,512),[[V,"Default Inputs"]])]),default:C(()=>[d("div",Dt,[u(k)?(y(),I("span",Et,R(u(t).length)+" matched · ",1)):j("",!0),d("span",Mt,R(u(x)?.length)+" tasks in total",1)])]),_:1},8,["search"]),(y(!0),I(B,null,Z(u(S)==="tree"?u(e):u(t),E=>(y(),A(ve,{key:E.name,item:E},null,8,["item"]))),128))]),right:C(()=>[Ct,d("div",null,[d("ul",null,[(y(!0),I(B,null,Z(u(D),E=>(y(),I("li",{key:E.cron},[O(l,{collection:E},null,8,["collection"])]))),128))])])]),_:1})]),right:C(()=>[(y(),A(Ve,{max:10},[u(r)?(y(),A(f,{key:u(r).name,task:u(r),onOpenDefaultInput:o[2]||(o[2]=E=>U.value=!0)},null,8,["task"])):j("",!0)],1024)),u(r)?j("",!0):(y(),A(c,{key:0},{default:C(()=>[O(h,{px6:"",py2:""},{default:C(()=>[It]),_:1})]),_:1}))]),_:1}),O(H,{modelValue:u(U),"onUpdate:modelValue":o[4]||(o[4]=E=>ee(U)?U.value=E:null),"auto-close":"","max-w-xl":"","min-w-xl":"",onClose:o[5]||(o[5]=E=>U.value=!1)},{default:C(()=>[d("div",null,[$t,O(T,{text:`Query ${u(_).query.length?`(${u(_).query.length})`:""}`,padding:!1,icon:("ServerRouteTabIcons"in n?n.ServerRouteTabIcons:u(de)).query},{default:C(()=>[O(N,{modelValue:u(_).query,"onUpdate:modelValue":o[3]||(o[3]=E=>u(_).query=E),py0:"",default:{active:!0,type:"string"}},null,8,["modelValue"])]),_:1},8,["text","icon"])])]),_:1},8,["modelValue"])],64)}}});export{Yt as default};
1
+ import{bO as ke,d as te,bP as re,r as W,a as $,o as y,m as I,k as d,i as O,f as u,t as R,F as B,n as Z,G as F,p as j,a6 as oe,bK as Oe,ab as Te,ay as ie,ac as xe,aB as Se,b0 as we,bL as Xe,e as De,a2 as se,I as G,j as C,v as Y,bH as Ee,h as A,l as ee,aw as Me,ak as ue,V as Ce,_ as le,X as Ie,A as ce,am as $e,a9 as Ue,aa as Le,bQ as Ne,ah as Re,U as Ae,bN as Ve,ar as je}from"./DW2rdoo9.js";import{_ as Be}from"./CnDX42ER.js";import{_ as fe}from"./Dm8mUwGL.js";import{_ as pe}from"./C_mHwna3.js";import{_ as He}from"./D7gBCge-.js";import{S as de}from"./BcJws1i5.js";import{e as We}from"./CQhVfK23.js";import{_ as ze}from"./B-hub2K2.js";import{_ as qe}from"./D1Dg62su.js";import"./BhuDhIKJ.js";import"./D9bWLJbD.js";import"./_hj05-RZ.js";import"./BVJlJdda.js";var he={exports:{}};(function(z,U){(function(x,D){z.exports=D()})(globalThis,()=>(()=>{var L={794:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CronParser=void 0;var r=_(586),k=function(){function m(t,e,a){e===void 0&&(e=!0),a===void 0&&(a=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=a}return m.prototype.parse=function(){var t,e,a=(t=this.expression)!==null&&t!==void 0?t:"";if(a.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},m.prototype.parseSpecial=function(t){var e={"@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 * * * *"},a=e[t];if(!a)throw new Error("Unknown special expression.");return a},m.prototype.extractParts=function(t){if(!this.expression)throw new Error("cron expression is empty");for(var e=t.trim().split(/[ ]+/),a=0;a<e.length;a++)if(e[a].includes(",")){var n=e[a].split(",").map(function(s){return s.trim()}).filter(function(s){return s!==""}).map(function(s){return isNaN(Number(s))?s:Number(s)}).filter(function(s){return s!==null&&s!==""});n.length===0&&n.push("*"),n.sort(function(s,i){return s!==null&&i!==null?s-i:0}),e[a]=n.map(function(s){return s!==null?s.toString():""}).join(",")}if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(e.length==1?"":"s",". At least 5 parts are required."));if(e.length==5)e.unshift(""),e.push("");else if(e.length==6){var o=/\d{4}$/.test(e[5])||e[4]=="?"||e[2]=="?";o?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},m.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),t[0].indexOf("0/")==0&&(t[0]=t[0].replace("0/","*/")),t[1].indexOf("0/")==0&&(t[1]=t[1].replace("0/","*/")),t[2].indexOf("0/")==0&&(t[2]=t[2].replace("0/","*/")),t[3].indexOf("1/")==0&&(t[3]=t[3].replace("1/","*/")),t[4].indexOf("1/")==0&&(t[4]=t[4].replace("1/","*/")),t[6].indexOf("1/")==0&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,function(f){var h=f.replace(/\D/,""),c=h;return e.dayOfWeekStartIndexZero?h=="7"&&(c="0"):c=(parseInt(h)-1).toString(),f.replace(h,c)}),t[5]=="L"&&(t[5]="6"),t[3]=="?"&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new 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 a={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var n in a)t[5]=t[5].replace(new RegExp(n,"gi"),a[n].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(f){var h=f.replace(/\D/,""),c=h;return e.monthStartIndexZero&&(c=(parseInt(h)+1).toString()),f.replace(h,c)});var o={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 s in o)t[4]=t[4].replace(new RegExp(s,"gi"),o[s].toString());t[0]=="0"&&(t[0]=""),!/\*|\-|\,|\//.test(t[2])&&(/\*|\//.test(t[1])||/\*|\//.test(t[0]))&&(t[2]+="-".concat(t[2]));for(var i=0;i<t.length;i++)if(t[i].indexOf(",")!=-1&&(t[i]=t[i].split(",").filter(function(f){return f!==""}).join(",")||"*"),t[i]=="*/1"&&(t[i]="*"),t[i].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[i])){var l=null;switch(i){case 4:l="12";break;case 5:l="6";break;case 6:l="9999";break;default:l=null;break}if(l!==null){var v=t[i].split("/");t[i]="".concat(v[0],"-").concat(l,"/").concat(v[1])}}},m.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},m.prototype.validateRange=function(t){r.default.secondRange(t[0]),r.default.minuteRange(t[1]),r.default.hourRange(t[2]),r.default.dayOfMonthRange(t[3]),r.default.monthRange(t[4],this.monthStartIndexZero),r.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},m.prototype.assertNoInvalidCharacters=function(t,e){var a=e.match(/[A-KM-VX-Z]+/gi);if(a&&a.length)throw new Error("".concat(t," part contains invalid values: '").concat(a.toString(),"'"))},m}();p.CronParser=k},728:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ExpressionDescriptor=void 0;var r=_(910),k=_(794),m=function(){function t(e,a){if(this.expression=e,this.options=a,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var n=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(n,"'.")),this.options.locale=n}this.i18n=t.locales[this.options.locale],a.use24HourTimeFormat===void 0&&(a.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,a){var n=a===void 0?{}:a,o=n.throwExceptionOnParseError,s=o===void 0?!0:o,i=n.verbose,l=i===void 0?!1:i,v=n.dayOfWeekStartIndexZero,f=v===void 0?!0:v,h=n.monthStartIndexZero,c=h===void 0?!1:h,N=n.use24HourTimeFormat,T=n.locale,H=T===void 0?null:T,V=n.tzOffset,E=V===void 0?0:V,q={throwExceptionOnParseError:s,verbose:l,dayOfWeekStartIndexZero:f,monthStartIndexZero:c,use24HourTimeFormat:N,locale:H,tzOffset:E},Q=new t(e,q);return Q.getFullDescription()},t.initialize=function(e,a){a===void 0&&(a="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=a,e.load(t.locales)},t.prototype.getFullDescription=function(){var e="";try{var a=new k.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=a.parse();var n=this.getTimeOfDayDescription(),o=this.getDayOfMonthDescription(),s=this.getMonthDescription(),i=this.getDayOfWeekDescription(),l=this.getYearDescription();e+=n+o+i+s+l,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(v){if(!this.options.throwExceptionOnParseError)e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(v)}return e},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],a=this.expressionParts[1],n=this.expressionParts[2],o="";if(!r.StringUtilities.containsAny(a,t.specialCharacters)&&!r.StringUtilities.containsAny(n,t.specialCharacters)&&!r.StringUtilities.containsAny(e,t.specialCharacters))o+=this.i18n.atSpace()+this.formatTime(n,a,e);else if(!e&&a.indexOf("-")>-1&&!(a.indexOf(",")>-1)&&!(a.indexOf("/")>-1)&&!r.StringUtilities.containsAny(n,t.specialCharacters)){var s=a.split("-");o+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(n,s[0],""),this.formatTime(n,s[1],""))}else if(!e&&n.indexOf(",")>-1&&n.indexOf("-")==-1&&n.indexOf("/")==-1&&!r.StringUtilities.containsAny(a,t.specialCharacters)){var i=n.split(",");o+=this.i18n.at();for(var l=0;l<i.length;l++)o+=" ",o+=this.formatTime(i[l],a,""),l<i.length-2&&(o+=","),l==i.length-2&&(o+=this.i18n.spaceAnd())}else{var v=this.getSecondsDescription(),f=this.getMinutesDescription(),h=this.getHoursDescription();if(o+=v,o&&f&&(o+=", "),o+=f,f===h)return o;o&&h&&(o+=", "),o+=h}return o},t.prototype.getSecondsDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(n){return n},function(n){return r.StringUtilities.format(e.i18n.everyX0Seconds(n),n)},function(n){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(n){return n=="0"?"":parseInt(n)<20?e.i18n.atX0SecondsPastTheMinute(n):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(n)});return a},t.prototype.getMinutesDescription=function(){var e=this,a=this.expressionParts[0],n=this.expressionParts[2],o=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(s){return s},function(s){return r.StringUtilities.format(e.i18n.everyX0Minutes(s),s)},function(s){return e.i18n.minutesX0ThroughX1PastTheHour()},function(s){try{return s=="0"&&n.indexOf("/")==-1&&a==""?e.i18n.everyHour():parseInt(s)<20?e.i18n.atX0MinutesPastTheHour(s):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(s)}catch{return e.i18n.atX0MinutesPastTheHour(s)}});return o},t.prototype.getHoursDescription=function(){var e=this,a=this.expressionParts[2],n=this.getSegmentDescription(a,this.i18n.everyHour(),function(i){return e.formatTime(i,"0","")},function(i){return r.StringUtilities.format(e.i18n.everyX0Hours(i),i)},function(i){return e.i18n.betweenX0AndX1()},function(i){return e.i18n.atX0()});if(n&&a.includes("-")&&this.expressionParts[1]!="0"){var o=Array.from(n.matchAll(/:00/g));if(o.length>1){var s=o[o.length-1].index;n=n.substring(0,s)+":59"+n.substring(s+3)}}return n},t.prototype.getDayOfWeekDescription=function(){var e=this,a=this.i18n.daysOfTheWeek(),n=null;return this.expressionParts[5]=="*"?n="":n=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(o,s){var i=o;o.indexOf("#")>-1?i=o.substring(0,o.indexOf("#")):o.indexOf("L")>-1&&(i=i.replace("L",""));var l=parseInt(i);if(e.options.tzOffset){var v=e.expressionParts[2],f=parseInt(v)+(e.options.tzOffset?e.options.tzOffset:0);f>=24?l++:f<0&&l--,l>6?l=0:l<0&&(l=6)}var h=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(s)[l]:a[l];if(o.indexOf("#")>-1){var c=null,N=o.substring(o.indexOf("#")+1),T=o.substring(0,o.indexOf("#"));switch(N){case"1":c=e.i18n.first(T);break;case"2":c=e.i18n.second(T);break;case"3":c=e.i18n.third(T);break;case"4":c=e.i18n.fourth(T);break;case"5":c=e.i18n.fifth(T);break}h=c+" "+h}return h},function(o){return parseInt(o)==1?"":r.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(o),o)},function(o){var s=o.substring(0,o.indexOf("-")),i=e.expressionParts[3]!="*";return i?e.i18n.commaAndX0ThroughX1(s):e.i18n.commaX0ThroughX1(s)},function(o){var s=null;if(o.indexOf("#")>-1){var i=o.substring(o.indexOf("#")+1);s=e.i18n.commaOnThe(i).trim()+e.i18n.spaceX0OfTheMonth()}else if(o.indexOf("L")>-1)s=e.i18n.commaOnTheLastX0OfTheMonth(o.replace("L",""));else{var l=e.expressionParts[3]!="*";s=l?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(o)}return s}),n},t.prototype.getMonthDescription=function(){var e=this,a=this.i18n.monthsOfTheYear(),n=this.getSegmentDescription(this.expressionParts[4],"",function(o,s){return s&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(s)[parseInt(o)-1]:a[parseInt(o)-1]},function(o){return parseInt(o)==1?"":r.StringUtilities.format(e.i18n.commaEveryX0Months(o),o)},function(o){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(o){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()});return n},t.prototype.getDayOfMonthDescription=function(){var e=this,a=null,n=this.expressionParts[3];switch(n){case"L":a=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":a=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var s=parseInt(o[0].replace("W","")),i=s==1?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),s.toString());a=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),i);break}else{var l=n.match(/L-(\d{1,2})/);if(l){var v=l[1];a=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(v),v);break}else{if(n=="*"&&this.expressionParts[5]!="*")return"";a=this.getSegmentDescription(n,this.i18n.commaEveryDay(),function(f){return f=="L"?e.i18n.lastDay():e.i18n.dayX0?r.StringUtilities.format(e.i18n.dayX0(),f):f},function(f){return f=="1"?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(f)},function(f){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(f)},function(f){return e.i18n.commaOnDayX0OfTheMonth(f)})}break}}return a},t.prototype.getYearDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[6],"",function(n){return/^\d+$/.test(n)?new Date(parseInt(n),1).getFullYear().toString():n},function(n){return r.StringUtilities.format(e.i18n.commaEveryX0Years(n),n)},function(n){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(n){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()});return a},t.prototype.getSegmentDescription=function(e,a,n,o,s,i){var l=null,v=e.indexOf("/")>-1,f=e.indexOf("-")>-1,h=e.indexOf(",")>-1;if(!e)l="";else if(e==="*")l=a;else if(!v&&!f&&!h)l=r.StringUtilities.format(i(e),n(e));else if(h){for(var c=e.split(","),N="",T=0;T<c.length;T++)if(T>0&&c.length>2&&(N+=",",T<c.length-1&&(N+=" ")),T>0&&c.length>1&&(T==c.length-1||c.length==2)&&(N+="".concat(this.i18n.spaceAnd()," ")),c[T].indexOf("/")>-1||c[T].indexOf("-")>-1){var H=c[T].indexOf("-")>-1&&c[T].indexOf("/")==-1,V=this.getSegmentDescription(c[T],a,n,o,H?this.i18n.commaX0ThroughX1:s,i);H&&(V=V.replace(", ","")),N+=V}else v?N+=this.getSegmentDescription(c[T],a,n,o,s,i):N+=n(c[T]);v?l=N:l=r.StringUtilities.format(i(e),N)}else if(v){var c=e.split("/");if(l=r.StringUtilities.format(o(c[1]),c[1]),c[0].indexOf("-")>-1){var E=this.generateRangeSegmentDescription(c[0],s,n);E.indexOf(", ")!=0&&(l+=", "),l+=E}else if(c[0].indexOf("*")==-1){var q=r.StringUtilities.format(i(c[0]),n(c[0]));q=q.replace(", ",""),l+=r.StringUtilities.format(this.i18n.commaStartingX0(),q)}}else f&&(l=this.generateRangeSegmentDescription(e,s,n));return l},t.prototype.generateRangeSegmentDescription=function(e,a,n){var o="",s=e.split("-"),i=n(s[0],1),l=n(s[1],2),v=a(e);return o+=r.StringUtilities.format(v,i,l),o},t.prototype.formatTime=function(e,a,n){var o=0,s=0;this.options.tzOffset&&(o=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),s=parseFloat((this.options.tzOffset%1).toFixed(2)),s!=0&&(s*=60));var i=parseInt(e)+o,l=parseInt(a)+s;l>=60?(l-=60,i+=1):l<0&&(l+=60,i-=1),i>=24?i=i-24:i<0&&(i=24+i);var v="",f=!1;this.options.use24HourTimeFormat||(f=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),v=f?"".concat(this.getPeriod(i)," "):" ".concat(this.getPeriod(i)),i>12&&(i-=12),i===0&&(i=12));var h="";return n&&(h=":".concat(("00"+n).substring(n.length))),"".concat(f?v:"").concat(("00"+i.toString()).substring(i.toString().length),":").concat(("00"+l.toString()).substring(l.toString().length)).concat(h).concat(f?"":v)},t.prototype.transformVerbosity=function(e,a){return a||(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,"")),e},t.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();p.ExpressionDescriptor=m},336:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.enLocaleLoader=void 0;var r=_(751),k=function(){function m(){}return m.prototype.load=function(t){t.en=new r.en},m}();p.enLocaleLoader=k},751:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.en=void 0;var _=function(){function r(){}return r.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},r.prototype.atX0MinutesPastTheHourGt20=function(){return null},r.prototype.commaMonthX0ThroughMonthX1=function(){return null},r.prototype.commaYearX0ThroughYearX1=function(){return null},r.prototype.use24HourTimeFormatByDefault=function(){return!1},r.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},r.prototype.everyMinute=function(){return"every minute"},r.prototype.everyHour=function(){return"every hour"},r.prototype.atSpace=function(){return"At "},r.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},r.prototype.at=function(){return"At"},r.prototype.spaceAnd=function(){return" and"},r.prototype.everySecond=function(){return"every second"},r.prototype.everyX0Seconds=function(){return"every %s seconds"},r.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},r.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},r.prototype.everyX0Minutes=function(){return"every %s minutes"},r.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},r.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},r.prototype.everyX0Hours=function(){return"every %s hours"},r.prototype.betweenX0AndX1=function(){return"between %s and %s"},r.prototype.atX0=function(){return"at %s"},r.prototype.commaEveryDay=function(){return", every day"},r.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},r.prototype.commaX0ThroughX1=function(){return", %s through %s"},r.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},r.prototype.first=function(){return"first"},r.prototype.second=function(){return"second"},r.prototype.third=function(){return"third"},r.prototype.fourth=function(){return"fourth"},r.prototype.fifth=function(){return"fifth"},r.prototype.commaOnThe=function(){return", on the "},r.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},r.prototype.lastDay=function(){return"the last day"},r.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},r.prototype.commaOnlyOnX0=function(){return", only on %s"},r.prototype.commaAndOnX0=function(){return", and on %s"},r.prototype.commaEveryX0Months=function(){return", every %s months"},r.prototype.commaOnlyInX0=function(){return", only in %s"},r.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},r.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},r.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},r.prototype.firstWeekday=function(){return"first weekday"},r.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},r.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},r.prototype.commaEveryX0Days=function(){return", every %s days"},r.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},r.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},r.prototype.commaEveryHour=function(){return", every hour"},r.prototype.commaEveryX0Years=function(){return", every %s years"},r.prototype.commaStartingX0=function(){return", starting %s"},r.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},r.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},r}();p.en=_},586:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0});function _(k,m){if(!k)throw new Error(m)}var r=function(){function k(){}return k.secondRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=59,"seconds part must be >= 0 and <= 59")}},k.minuteRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=59,"minutes part must be >= 0 and <= 59")}},k.hourRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=23,"hours part must be >= 0 and <= 23")}},k.dayOfMonthRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=1&&a<=31,"DOM part must be >= 1 and <= 31")}},k.monthRange=function(m,t){for(var e=m.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var n=parseInt(e[a],10);_(n>=1&&n<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},k.dayOfWeekRange=function(m,t){for(var e=m.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var n=parseInt(e[a],10);_(n>=0&&n<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},k}();p.default=r},910:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.StringUtilities=void 0;var _=function(){function r(){}return r.format=function(k){for(var m=[],t=1;t<arguments.length;t++)m[t-1]=arguments[t];return k.replace(/%s/g,function(e){return m.shift()})},r.containsAny=function(k,m){return m.some(function(t){return k.indexOf(t)>-1})},r}();p.StringUtilities=_}},x={};function D(S){var p=x[S];if(p!==void 0)return p.exports;var _=x[S]={exports:{}};return L[S](_,_.exports,D),_.exports}var X={};return(()=>{var S=X;Object.defineProperty(S,"__esModule",{value:!0}),S.toString=void 0;var p=D(728),_=D(336);p.ExpressionDescriptor.initialize(new _.enLocaleLoader),S.default=p.ExpressionDescriptor;var r=p.ExpressionDescriptor.toString;S.toString=r})(),X})())})(he);var Pe=he.exports;const Ye=ke(Pe),Fe=["title"],Ge={"flex-none":"","text-left":""},Ze={flex:"~ gap-2","min-w-0":"","items-center":"","text-sm":""},Je={class:"truncate"},Qe={"text-xs":"",op50:""},Ke=d("div",{"x-divider":""},null,-1),et={key:0},tt=["onClick"],nt=d("div",{"x-divider":""},null,-1),rt=te({__name:"CronCollection",props:{collection:{}},setup(z){const U=z,L=re(),x=W(!0),D=$(()=>Ye.toString(U.collection.cron));return(X,S)=>{const p=oe,_=fe;return y(),I("div",null,[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",p2:"",title:u(D),onClick:S[0]||(S[0]=r=>x.value=!u(x))},[d("div",Ge,[O(p,{icon:"carbon:chevron-right","mb0.5":"","transform-rotate":u(x)?90:0,transition:""},null,8,["transform-rotate"])]),d("span",Ze,[O(_,{class:"font-mono n-primary",textContent:R(X.collection.cron)},null,8,["textContent"]),d("span",Je,R(u(D)),1),d("span",Qe,"("+R(X.collection.tasks.length)+")",1)])],8,Fe),Ke,u(x)?(y(),I("ul",et,[(y(!0),I(B,null,Z(X.collection.tasks,r=>(y(),I("li",{key:r},[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"","pl-9":"","font-mono":"",class:F([{"bg-active":u(L)===r}]),onClick:k=>L.value=r},R(r),11,tt),nt]))),128))])):j("",!0)])}}}),ot={"h-full":"","w-full":"",flex:"~ col"},at={flex:"~ col gap-2","flex-none":"",p4:"","n-navbar-glass":""},it={flex:"~ gap2 items-center"},st={relative:"","w-full":""},ut={absolute:"","right-2":"","top-1.5":"",flex:"~ gap-1"},lt={flex:"~ gap2 wrap","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},ct={class:"hidden md:block"},ft={flex:"~ gap2","mb--2":"","items-center":"",op50:""},pt=d("div",{"w-5":"","x-divider":""},null,-1),dt=d("div",{"flex-none":""}," Default Inputs ",-1),ht=d("div",{"x-divider":""},null,-1),vt={key:0,border:"b base",relative:"","n-code-block":""},mt={flex:"~ wrap","w-full":""},yt=["onClick"],gt=d("div",{border:"b base","flex-auto":""},null,-1),_t={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},bt=d("div",null,"Result",-1),kt={key:1,"text-xs":"",op50:""},Ot=d("div",{"flex-auto":""},null,-1),Tt=d("div",{op50:""}," Tasks finished in ",-1),xt=te({__name:"ServerTaskDetails",props:{task:{}},emits:["open-default-input"],setup(z,{emit:U}){const L=z,x=U,D=W({payload:{}}),{inputDefaults:X}=ue("serverRoutes"),[S,p]=Oe(),_=Te(),r=ie({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),k=$(()=>JSON.stringify(r.data,null,2)),m=$(()=>r.contentType.includes("application/json")?"json":"text"),t=W(!1),e=W(!1),a=xe(),n=W(),o=["json"],s=W(o[0]),i=ie({query:[{active:!0,key:"",value:"",type:"string"}],body:[{active:!0,key:"",value:"",type:"string"}],headers:[]}),l=$({get:()=>i[n.value],set:g=>{i[n.value]=g}}),v=$(()=>({...V(X.value.query),...V(i.query)})),f=$(()=>({...V(X.value.headers)})),h=$(()=>Object.keys(D.value?.payload??{}).length?{...D.value}:void 0),c=$(()=>h.value?"POST":"GET"),N=$(()=>{let g=window?.location.origin;return g.charAt(g.length-1)==="/"&&(g=g.slice(0,-1)),g}),T=$(()=>{let g=new URLSearchParams(v.value).toString();g&&(g=`?${g}`);const b=`/_nitro/tasks/${L.task.name}${g}`;let M=_.value?.app.baseURL||"";return(M==="./"||M===".")&&(M=""),M.endsWith("/")&&(M=M.slice(0,-1)),M+b}),H=$(()=>N.value+T.value);function V(g){const b=Object.fromEntries(g.filter(({active:M,key:P,value:J})=>M&&P&&J!==void 0).map(({key:M,value:P})=>[M,P]));return Object.entries(b).length?b:void 0}async function E(){e.value=!0,t.value=!0;const g=Date.now();Ce("server-tasks:run",{method:c.value});try{r.data=await $fetch(H.value,{method:"POST",headers:f.value,query:v.value,body:h.value,onResponse({response:b}){r.contentType=(b.headers.get("content-type")||"").toString().toLowerCase().trim(),r.statusCode=b.status,r.error=void 0},onResponseError(b){r.error=b.response._data,r.data=b.response._data}})}catch{}t.value=!1,r.fetchTime=Date.now()-g}const q=$(()=>{const g=[];return g.push({name:"Query",slug:"query",length:i.query.length}),g.push({name:"Body",slug:"body",length:i.body.length}),g});Se(()=>{if(s.value==="json"&&typeof D.value=="string")try{D.value=JSON.parse(D.value)}catch{}});const Q=we("nuxt-devtools:server-tasks:inputs",()=>[],{window:window.parent});Xe([i,n],()=>{const g=Q.value?.find(b=>b.task===L.task.name);if(g){n.value||(n.value=g.tab),g.tab!==n.value&&(g.tab=n.value);const{body:b,query:M,headers:P}=g.inputs;Object.assign(i,{body:b,query:M,headers:P})}else{const b={task:L.task.name,tab:"query",inputs:i};Q.value.push(b),n.value||(n.value=b.tab)}},{immediate:!0,deep:!0,debounce:500});const me=De();return(g,b)=>{const M=le,P=Ie,J=oe,ae=pe,ye=ce,ge=$e,ne=fe,_e=He,K=se("tooltip");return y(),I("div",ot,[d("div",at,[d("div",it,[G((y(),I("div",null,[O(M,{class:F(["n-badge-base n-sm",("getRequestMethodClass"in g?g.getRequestMethodClass:u(Ee))(u(c))]),"pointer-events-none":"","font-mono":"",tabindex:"-1"},{default:C(()=>[Y(R(u(c)),1)]),_:1},8,["class"])])),[[K,`Method is ${u(c)} as ${u(c)==="GET"?"no":""} json body is sent`]]),d("div",st,[O(P,{"model-value":u(T),readonly:"","flex-auto":"","font-mono":"",p:"x5 y2",n:"sm"},null,8,["model-value"]),d("div",ut,[G(O(M,{title:"Copy URL",n:"xs blue",icon:"carbon:copy",border:!1,onClick:b[0]||(b[0]=w=>u(me)(u(H),"server-task-url"))},null,512),[[K,"Copy URL"]]),G(O(M,{title:"Open in Editor",icon:"carbon-launch",n:"xs blue",border:!1,onClick:b[1]||(b[1]=w=>u(a)(g.task.handler))},null,512),[[K,"Open in Editor"]])])]),O(M,{"h-full":"",n:"primary solid",onClick:E},{default:C(()=>[O(J,{icon:"carbon:send"})]),_:1})])]),d("div",lt,[(y(!0),I(B,null,Z(u(q),w=>G((y(),A(M,{key:w.slug,class:F(u(n)===w.slug?"text-primary n-primary":"border-transparent shadow-none"),onClick:be=>n.value=w.slug},{default:C(()=>[O(J,{icon:("ServerRouteTabIcons"in g?g.ServerRouteTabIcons:u(de))[w.slug]},null,8,["icon"]),d("div",ct,[Y(R(w.name)+" "+R(w?.length?`(${w.length})`:"")+" ",1),d("span",null,R(u(X)[w.slug]?.length?`(${u(X)[w.slug].length})`:""),1)])]),_:2},1032,["class","onClick"])),[[K,w.name]])),128))]),O(u(S),null,{default:C(()=>[O(ae,{modelValue:u(l),"onUpdate:modelValue":b[4]||(b[4]=w=>ee(l)?l.value=w:null),default:{active:!0,type:"string"},"max-h-xs":"","of-auto":""},{default:C(()=>[u(X)[u(n)]?.length?(y(),I(B,{key:0},[d("div",ft,[pt,dt,O(M,{icon:"i-carbon-edit",border:!1,onClick:b[2]||(b[2]=w=>x("open-default-input"))}),ht]),O(ae,{modelValue:u(X)[u(n)],"onUpdate:modelValue":b[3]||(b[3]=w=>u(X)[u(n)]=w),disabled:"",p0:""},null,8,["modelValue"])],64)):j("",!0)]),_:1},8,["modelValue"])]),_:1}),u(l)?(y(),I("div",vt,[u(n)==="body"?(y(),I(B,{key:0},[d("div",mt,[(y(),I(B,null,Z(o,w=>d("button",{key:w,px4:"",py2:"",border:"r base",hover:"bg-active",class:F({"border-b":w!==u(s)}),onClick:be=>s.value=w},[d("div",{class:F({op30:w!==u(s)}),"font-mono":""},R(w),3)],10,yt)),64)),gt]),u(s)==="input"?(y(),A(u(p),{key:0})):u(s)==="json"?(y(),A(u(We),Me({key:1,modelValue:u(D),"onUpdate:modelValue":b[5]||(b[5]=w=>ee(D)?D.value=w:null),class:[[g.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue of-auto text-sm outline-none"]},g.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):j("",!0)],64)):(y(),A(u(p),{key:1}))])):j("",!0),u(e)?u(t)?(y(),A(ge,{key:2,"z-10":"","flex-auto":"","backdrop-blur":""},{default:C(()=>[Y(" Running... ")]),_:1})):(y(),I(B,{key:3},[d("div",_t,[bt,u(r).error?(y(),A(ne,{key:0,n:"red"},{default:C(()=>[Y(" Error ")]),_:1})):j("",!0),O(ne,{n:u(r).error?"orange":"green",textContent:R(u(r).statusCode)},null,8,["n","textContent"]),u(r).contentType?(y(),I("code",kt,R(u(r).contentType),1)):j("",!0),Ot,Tt,O(ne,{n:"green"},{default:C(()=>[Y(R(u(r).fetchTime)+" ms ",1)]),_:1})]),O(_e,{"flex-auto":"","overflow-auto":"","py-2":"",code:u(k),lang:u(m)},null,8,["code","lang"])],64)):(y(),A(ye,{key:1},{default:C(()=>[O(M,{n:"primary",onClick:E},{default:C(()=>[O(J,{icon:"carbon:send"}),Y(" Run task ")]),_:1})]),_:1}))])}}}),St={"flex-none":"","text-left":""},wt={flex:"","items-center":"","text-sm":"","font-mono":""},Xt=d("div",{"x-divider":""},null,-1),ve=te({__name:"ServerTaskListItem",props:{item:{},index:{default:0}},setup(z){const U=W(!0),L=re();return(x,D)=>{const X=oe,S=ve;return y(),I("div",null,[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:F([{"bg-active":u(L)===x.item.name}]),style:Ue({paddingLeft:`calc(0.5rem + ${x.index*1.5}em)`}),onClick:D[0]||(D[0]=p=>{U.value=!u(U),L.value=x.item.name})},[d("div",St,[x.item.type==="collection"?(y(),A(X,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":u(U)?90:0,transition:""},null,8,["transform-rotate"])):j("",!0)]),d("span",wt,[x.item.type==="collection"?(y(),A(X,{key:0,title:`${x.item.tasks?.length} tasks`,icon:"carbon:folder",mr1:""},null,8,["title"])):(y(),A(X,{key:1,icon:"carbon:play",ml3:"",mr1:""})),Y(" "+R(x.item.name),1)])],6),Xt,u(U)?Le(x.$slots,"default",{key:0},()=>[(y(!0),I(B,null,Z(x.item.tasks,p=>(y(),A(S,{key:p.name,item:p,index:x.index+1},null,8,["item","index"]))),128))]):j("",!0)])}}}),Dt={flex:"~ gap1","text-sm":""},Et={key:0,op50:""},Mt={op50:""},Ct=d("div",{px4:"",py2:"",border:"b base"}," Cron groups ",-1),It=d("span",{op75:""},"Select a task to start",-1),$t=d("div",{p4:"",border:"b base"},[d("span",{"text-lg":""},"Default Inputs"),d("br"),d("span",{"text-white":"",op50:""},"Merged as default for every task in DevTools")],-1),Yt=te({__name:"server-tasks",setup(z){const U=W(!1),L=Ne(),x=$(()=>Object.keys(L.value?.tasks??{}).map(n=>({name:n,...L.value.tasks[n],type:"task"}))),D=$(()=>Object.entries(L.value?.scheduledTasks??{}).map(([n,o])=>({cron:n,tasks:o}))),X=re(),{view:S,selectedTask:p,inputDefaults:_}=ue("serverTasks"),r=$(()=>{!X.value&&p.value&&(X.value=p.value.name);const n=x.value.find(o=>o.name===X.value);return X.value!==p.value?.name&&n&&(p.value=n),n}),k=W(""),m=$(()=>new Re(x.value,{keys:["key","description"],shouldSort:!0})),t=$(()=>k.value?m.value.search(k.value).map(o=>o.item):x.value),e=$(()=>{const n=[],o=(i,l)=>{i.tasks||=[],i.tasks.push(l)},s=(i,l)=>{const v=l?l.tasks?.find(h=>h.name===i):n.find(h=>h.name===i);if(v)return{...v,type:"collection"};const f={name:i,handler:i,description:"",type:"collection",tasks:[]};return l?o(l,f):n.push(f),f};return t.value.forEach(i=>{let l;const v={...i,type:"task"},h=i.name.split(":").concat();h.length>0&&h[h.length-1].includes(".")&&h.pop(),h.forEach(c=>{l=s(c,l)}),l?o(l,v):n.push(v)}),n});function a(){S.value=S.value==="tree"?"list":"tree"}return(n,o)=>{const s=le,i=Be,l=rt,v=Ae,f=xt,h=je,c=ce,N=pe,T=ze,H=qe,V=se("tooltip");return y(),I(B,null,[O(v,{"storage-key":"tab-server-tasks"},{left:C(()=>[O(v,{horizontal:"","storage-key":"tab-server-tasks-split"},{left:C(()=>[O(i,{search:u(k),"onUpdate:search":o[1]||(o[1]=E=>ee(k)?k.value=E:null),pb2:""},{actions:C(()=>[G(O(s,{"text-lg":"",icon:u(S)==="list"?"i-carbon-list":"i-carbon-tree-view-alt",title:"Toggle view",border:!1,onClick:a},null,8,["icon"]),[[V,"Toggle View"]]),G(O(s,{"text-lg":"",icon:"i-carbon-cics-sit-overrides",title:"Default Inputs",border:!1,onClick:o[0]||(o[0]=E=>U.value=!u(U))},null,512),[[V,"Default Inputs"]])]),default:C(()=>[d("div",Dt,[u(k)?(y(),I("span",Et,R(u(t).length)+" matched · ",1)):j("",!0),d("span",Mt,R(u(x)?.length)+" tasks in total",1)])]),_:1},8,["search"]),(y(!0),I(B,null,Z(u(S)==="tree"?u(e):u(t),E=>(y(),A(ve,{key:E.name,item:E},null,8,["item"]))),128))]),right:C(()=>[Ct,d("div",null,[d("ul",null,[(y(!0),I(B,null,Z(u(D),E=>(y(),I("li",{key:E.cron},[O(l,{collection:E},null,8,["collection"])]))),128))])])]),_:1})]),right:C(()=>[(y(),A(Ve,{max:10},[u(r)?(y(),A(f,{key:u(r).name,task:u(r),onOpenDefaultInput:o[2]||(o[2]=E=>U.value=!0)},null,8,["task"])):j("",!0)],1024)),u(r)?j("",!0):(y(),A(c,{key:0},{default:C(()=>[O(h,{px6:"",py2:""},{default:C(()=>[It]),_:1})]),_:1}))]),_:1}),O(H,{modelValue:u(U),"onUpdate:modelValue":o[4]||(o[4]=E=>ee(U)?U.value=E:null),"auto-close":"","max-w-xl":"","min-w-xl":"",onClose:o[5]||(o[5]=E=>U.value=!1)},{default:C(()=>[d("div",null,[$t,O(T,{text:`Query ${u(_).query.length?`(${u(_).query.length})`:""}`,padding:!1,icon:("ServerRouteTabIcons"in n?n.ServerRouteTabIcons:u(de)).query},{default:C(()=>[O(N,{modelValue:u(_).query,"onUpdate:modelValue":o[3]||(o[3]=E=>u(_).query=E),py0:"",default:{active:!0,type:"string"}},null,8,["modelValue"])]),_:1},8,["text","icon"])])]),_:1},8,["modelValue"])],64)}}});export{Yt as default};
@@ -1 +1 @@
1
- import{q as o,m as t,aa as s,o as a}from"./CSxKs2xg.js";const r={},c={"h-full":"","of-auto":""};function n(e,l){return a(),t("div",c,[s(e.$slots,"default")])}const _=o(r,[["render",n]]);export{_ as default};
1
+ import{q as o,m as t,aa as s,o as a}from"./DW2rdoo9.js";const r={},c={"h-full":"","of-auto":""};function n(e,l){return a(),t("div",c,[s(e.$slots,"default")])}const _=o(r,[["render",n]]);export{_ as default};
@@ -1 +1 @@
1
- import{d as V,a0 as w,an as B,r as _,bf as O,bF as C,a2 as $,o as i,m as p,k as u,G as c,f as t,t as D,p as l,aa as J,bp as F,bq as P,F as R,I as j,i as z,h as v,aw as A,bD as G,l as M,aA as E,_ as q}from"./CSxKs2xg.js";import{_ as I}from"./BNSBUDhB.js";import{e as T}from"./CDjZ2Pwm.js";const U=["open"],Y={flex:"~ gap2","select-none":"","items-center":"",px4:""},W=V({__name:"StateEditor",props:{name:{},open:{type:Boolean},state:{},readonly:{type:Boolean}},emits:["update:open"],setup(b,{emit:g}){const s=b,n=w(s,"open",g,{passive:!0}),k=B(),o=_(),m=O(s.name,"$9Gvv2FGyYa");s.state?o.value=JSON.parse(JSON.stringify(s.state)):(typeof s.state=="number"||typeof s.state!="string")&&(o.value=s.state);const d=C(o,e=>{typeof e!="number"&&typeof e!="string"?f(e,s.state):m.value=e},{deep:!0});function f(e,r){for(const a in e)e[a]===null?r[a]=null:Array.isArray(e[a])?r[a]=e[a].slice():typeof e[a]=="object"?f(e[a],r[a]):r[a]=e[a]}async function h(){d.pause(),o.value=JSON.parse(JSON.stringify(s.state)),await E(),d.resume()}return(e,r)=>{const a=q,S=I,N=$("tooltip");return i(),p("div",{class:"state-editor-details",open:e.name?t(n):!0},[u("div",Y,[e.name?(i(),p("button",{key:0,flex:"~","cursor-pointer":"","items-center":"",class:c(t(n)?"":"op50"),onClick:r[0]||(r[0]=y=>n.value=!t(n))},[u("div",{"i-carbon-chevron-right":"",transition:"",class:c(t(n)?"rotate-90 op0":"")},null,2),u("code",{px3:"",py1:"","font-mono":"",class:c(t(n)?"bg-[#8881] rounded-t":"rounded hover:bg-active")},D(e.name),3)],2)):l("",!0),J(e.$slots,"actions",F(P({isOpen:t(n),name:e.name,state:t(m)}))),t(n)?(i(),p(R,{key:1},[j(z(a,{title:"Refresh View",icon:"carbon-renew",border:!1,onClick:h},null,512),[[N,"Refresh View",void 0,{bottom:!0}]]),t(o)?(i(),v(S,{key:0,getter:()=>({name:e.name,input:JSON.stringify(t(o))})},null,8,["getter"])):l("",!0)],64)):l("",!0)]),t(n)||!e.name?(i(),v(t(T),A({key:0,modelValue:t(o),"onUpdate:modelValue":r[1]||(r[1]=y=>M(o)?o.value=y:null)},e.$attrs,{class:["json-editor-vue",[t(k).value==="dark"?"jse-theme-dark":"",(e.name,"")]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":"readonly"in e?e.readonly:t(G),indentation:2,"tab-size":2}),null,16,["modelValue","class","read-only"])):l("",!0)],8,U)}}});export{W as _};
1
+ import{d as V,a0 as w,an as B,r as _,bf as O,bF as C,a2 as $,o as i,m as p,k as u,G as c,f as t,t as D,p as l,aa as J,bp as F,bq as P,F as R,I as j,i as z,h as v,aw as A,bD as G,l as M,aA as E,_ as q}from"./DW2rdoo9.js";import{_ as I}from"./DZg4WwSa.js";import{e as T}from"./CQhVfK23.js";const U=["open"],Y={flex:"~ gap2","select-none":"","items-center":"",px4:""},W=V({__name:"StateEditor",props:{name:{},open:{type:Boolean},state:{},readonly:{type:Boolean}},emits:["update:open"],setup(b,{emit:g}){const s=b,n=w(s,"open",g,{passive:!0}),k=B(),o=_(),m=O(s.name,"$9Gvv2FGyYa");s.state?o.value=JSON.parse(JSON.stringify(s.state)):(typeof s.state=="number"||typeof s.state!="string")&&(o.value=s.state);const d=C(o,e=>{typeof e!="number"&&typeof e!="string"?f(e,s.state):m.value=e},{deep:!0});function f(e,r){for(const a in e)e[a]===null?r[a]=null:Array.isArray(e[a])?r[a]=e[a].slice():typeof e[a]=="object"?f(e[a],r[a]):r[a]=e[a]}async function h(){d.pause(),o.value=JSON.parse(JSON.stringify(s.state)),await E(),d.resume()}return(e,r)=>{const a=q,S=I,N=$("tooltip");return i(),p("div",{class:"state-editor-details",open:e.name?t(n):!0},[u("div",Y,[e.name?(i(),p("button",{key:0,flex:"~","cursor-pointer":"","items-center":"",class:c(t(n)?"":"op50"),onClick:r[0]||(r[0]=y=>n.value=!t(n))},[u("div",{"i-carbon-chevron-right":"",transition:"",class:c(t(n)?"rotate-90 op0":"")},null,2),u("code",{px3:"",py1:"","font-mono":"",class:c(t(n)?"bg-[#8881] rounded-t":"rounded hover:bg-active")},D(e.name),3)],2)):l("",!0),J(e.$slots,"actions",F(P({isOpen:t(n),name:e.name,state:t(m)}))),t(n)?(i(),p(R,{key:1},[j(z(a,{title:"Refresh View",icon:"carbon-renew",border:!1,onClick:h},null,512),[[N,"Refresh View",void 0,{bottom:!0}]]),t(o)?(i(),v(S,{key:0,getter:()=>({name:e.name,input:JSON.stringify(t(o))})},null,8,["getter"])):l("",!0)],64)):l("",!0)]),t(n)||!e.name?(i(),v(t(T),A({key:0,modelValue:t(o),"onUpdate:modelValue":r[1]||(r[1]=y=>M(o)?o.value=y:null)},e.$attrs,{class:["json-editor-vue",[t(k).value==="dark"?"jse-theme-dark":"",(e.name,"")]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":"readonly"in e?e.readonly:t(G),indentation:2,"tab-size":2}),null,16,["modelValue","class","read-only"])):l("",!0)],8,U)}}});export{W as _};
@@ -1 +1 @@
1
- import{d as L,al as V,ab as M,aL as R,b7 as T,b8 as P,P as E,a as w,h as m,j as n,A as O,o as s,f as e,m as c,k as t,i,t as r,p as l,F as h,b9 as f,ba as x,bb as $,v as a,aG as F,D as G,M as W,E as H,x as K,Y as U,_ as Y}from"./CSxKs2xg.js";import{u as q,_ as J}from"./DW3jphl9.js";import{u as Q}from"./BlDdoh7Z.js";import"./B7vUcbNk.js";import"./DjVyxknR.js";import"./f1qyuWhx.js";import"./K0tfU50F.js";const X="1.3.1",Z={key:0},tt={key:1,flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",p5:"",px5:"","md:px20":""},et=t("div",{"flex-auto":""},null,-1),ot={flex:"~ col","mt-5":"","items-center":"","md:mt-20":""},nt=t("span",{op40:""}," Nuxt DevTools ",-1),st={op40:""},at={flex:"~ gap2 wrap"},it=t("div",{"logos-nuxt-icon":"","text-3xl":""},null,-1),lt=t("div",{"logos-vue":"","text-3xl":""},null,-1),ut=t("div",{"carbon-tree-view-alt":"","text-3xl":""},null,-1),rt=t("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),dt=t("div",{"carbon-function":"","text-3xl":""},null,-1),ct=t("div",{"carbon-3d-mpr-toggle":"","text-3xl":""},null,-1),pt=t("div",{"carbon-plug":"","text-3xl":""},null,-1),_t={key:5,"pointer-events-none":"","min-w-40":"",p4:"","theme-card-lime":"",flex:"~ auto gap-6"},mt=t("div",{"i-carbon-time-plot":"","flex-none":"","text-3xl":""},null,-1),ht={grid:"~ cols-[auto_auto] gap-x-5 items-center"},ft=t("div",{"text-sm":""}," SSR to full load ",-1),xt={"text-right":""},vt=t("div",{"text-sm":""}," Page load ",-1),gt={"text-right":""},bt=t("div",{"text-sm":""}," Navigation ",-1),kt={"text-right":""},yt=t("div",{"text-sm":""}," HMR ",-1),Ct={"text-right":""},wt={flex:"~ col gap2"},Dt={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},Bt=t("a",{href:"https://github.com/nuxt/devtools",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[t("div",{"i-carbon-star":""}),a(" Star on GitHub ")],-1),St=t("a",{href:"https://github.com/nuxt/devtools/discussions/29",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[t("div",{"i-carbon-data-enrichment":""}),a(" Ideas & Suggestions ")],-1),zt=t("a",{href:"https://github.com/nuxt/devtools/discussions/31",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[t("div",{"i-carbon-plan":""}),a(" Project Roadmap ")],-1),Nt=t("a",{href:"https://github.com/nuxt/devtools/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[t("div",{"i-carbon-debug":""}),a(" Bug Reports ")],-1),At=t("div",{"i-carbon-settings-adjust":""},null,-1),jt=t("div",{"flex-auto":""},null,-1),It={flex:"col gap-2",mxa:"",hidden:"","w-100":"","text-sm":"",op50:"","md:flex":""},Lt={flex:"~ gap-1","items-center":""},Vt=t("span",null,"+",-1),Mt=t("span",null,"+",-1),Rt=t("div",{"flex-auto":""},null,-1),Tt={flex:"~ gap-1","items-center":""},Pt=t("span",null,"+",-1),Et=t("span",null,"+",-1),Ot=t("span",null,"+",-1),$t=t("span",null,"+",-1),Ft=t("div",{"flex-auto":""},null,-1),Gt=t("div",null,"Toggle DevTools",-1),Zt=L({__name:"overview",setup(Wt){const v=V(),p=M(),D=Q(),g=R(),B=q(),S=T(),b=P(),z=E();function N(){G.value=!0,z.push("/")}const k=w(()=>v.value?.nuxt.vueApp.version),u=w(()=>v.value?.metrics.loading());function A(){W()}return(o,Ht)=>{const j=H,_=K,y=J,C=U,d=Y,I=O;return s(),m(I,{"h-screen":"","w-full":"",flex:""},{default:n(()=>[e(p)?(s(),c("div",tt,[et,t("div",ot,[i(_,{flex:"~","mt--10":"","items-center":"","justify-center":"",to:"https://devtools.nuxt.com/",target:"_blank"},{default:n(()=>[i(j,{"h-10":""})]),_:1}),t("button",{mb6:"",mt3:"","text-center":"","text-sm":"",flex:"~ gap-1 wrap",onClick:N},[nt,t("code",st,"v"+r(e(X)),1),i(y,{"package-name":"@nuxt/devtools",options:{dev:!0},"show-version":!1})])]),t("div",at,[i(_,{to:"https://nuxt.com",target:"_blank",p4:"","theme-card-green":"",flex:"~ col auto"},{default:n(()=>[it,i(y,{"package-name":"nuxt",options:{dev:!0}})]),_:1}),e(k)?(s(),m(_,{key:0,to:"https://vuejs.org",target:"_blank",p4:"","theme-card-green":"",flex:"~ col auto"},{default:n(()=>[lt,t("code",null,"v"+r(e(k)),1)]),_:1})):l("",!0),e(p)?(s(),c(h,{key:1},[e(p)&&e(p).pages&&e(v)?(s(),m(_,{key:0,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/pages"},{default:n(()=>[ut,t("div",null,r(("pluralizeByCount"in o?o.pluralizeByCount:e(f))(e(S).length,"page")),1)]),_:1})):l("",!0),e(p)?(s(),m(_,{key:1,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/components"},{default:n(()=>[rt,t("div",null,r(("pluralizeByCount"in o?o.pluralizeByCount:e(f))(e(D).length,"component")),1)]),_:1})):l("",!0),e(p)&&e(g)?(s(),m(_,{key:2,"min-w-40":"",p4:"","theme-card-yellow":"",flex:"~ col auto",to:"/modules/imports"},{default:n(()=>[dt,t("div",null,r(("pluralizeByCount"in o?o.pluralizeByCount:e(f))(e(g).imports.length,"import")),1)]),_:1})):l("",!0),e(p)?(s(),m(_,{key:3,"min-w-40":"",p4:"","theme-card-purple":"",flex:"~ col auto",to:"/modules/modules"},{default:n(()=>[ct,t("div",null,r(("pluralizeByCount"in o?o.pluralizeByCount:e(f))(e(B).length,"module")),1)]),_:1})):l("",!0),e(p)?(s(),m(_,{key:4,"min-w-40":"",p4:"","theme-card-teal":"",flex:"~ col auto",to:"/modules/plugins"},{default:n(()=>[pt,t("div",null,r(("pluralizeByCount"in o?o.pluralizeByCount:e(f))(e(p).plugins.length,"plugin")),1)]),_:1})):l("",!0),e(u)?(s(),c("div",_t,[mt,t("div",ht,[e(u).ssrStart?(s(),c(h,{key:0},[ft,t("div",xt,r(("formatDuration"in o?o.formatDuration:e(x))(e(u).appLoad-e(u).ssrStart)),1)],64)):l("",!0),vt,t("div",gt,r(("formatDuration"in o?o.formatDuration:e(x))(e(u).appLoad-e(u).appInit)),1),bt,t("div",kt,r(("formatDuration"in o?o.formatDuration:e(x))(e(u).pageEnd-e(u).pageStart)),1),e(u).hmrStart?(s(),c(h,{key:1},[yt,t("div",Ct,r(("formatDuration"in o?o.formatDuration:e(x))(e(u).hmrEnd-e(u).hmrStart)),1)],64)):l("",!0)])])):l("",!0)],64)):l("",!0)]),t("div",wt,[("showConnectionWarning"in o?o.showConnectionWarning:e($))?(s(),m(C,{key:0,n:"yellow5",icon:"carbon-unlink","justify-center":""},{default:n(()=>[a(" Not connected to the client app, showing server-side data only. Use the embedded mode for full features. ")]),_:1})):l("",!0),t("button",{title:"Authorize",onClick:A},[("isDevAuthed"in o?o.isDevAuthed:e(F))?l("",!0):(s(),m(C,{key:0,n:"orange5",icon:"i-carbon-locked","justify-center":""},{default:n(()=>[a(" Access from an untrusted browser, some features are limited. Click to authorize now. ")]),_:1}))])]),t("div",Dt,[Bt,St,zt,Nt,i(_,{to:"/settings",flex:"~ gap1","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:n(()=>[At,a(" Settings ")]),_:1})]),jt,t("div",It,[t("div",Lt,[e(b)?(s(),c(h,{key:0},[i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" ⌘ Cmd ")]),_:1}),Vt,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" K ")]),_:1})],64)):(s(),c(h,{key:1},[i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" Ctrl ")]),_:1}),Mt,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" K ")]),_:1})],64)),Rt,a(" Open Command Palette ")]),t("div",Tt,[e(b)?(s(),c(h,{key:0},[i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" ⇧ Shift ")]),_:1}),Pt,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" ⌥ Option ")]),_:1}),Et,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" D ")]),_:1})],64)):(s(),c(h,{key:1},[i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" Shift ")]),_:1}),Ot,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" Alt ")]),_:1}),$t,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" D ")]),_:1})],64)),Ft,Gt])])])):(s(),c("div",Z," Loading... "))]),_:1})}}});export{Zt as default};
1
+ import{d as L,al as V,ab as M,aL as R,b7 as T,b8 as P,P as E,a as w,h as m,j as n,A as O,o as s,f as e,m as c,k as t,i,t as r,p as l,F as h,b9 as f,ba as x,bb as $,v as a,aG as F,D as G,M as W,E as H,x as K,Y as U,_ as Y}from"./DW2rdoo9.js";import{u as q,_ as J}from"./C49LnR7I.js";import{u as Q}from"./BfqSh0jD.js";import"./Dm8mUwGL.js";import"./D7gBCge-.js";import"./_hj05-RZ.js";import"./BhuDhIKJ.js";const X="1.3.2",Z={key:0},tt={key:1,flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",p5:"",px5:"","md:px20":""},et=t("div",{"flex-auto":""},null,-1),ot={flex:"~ col","mt-5":"","items-center":"","md:mt-20":""},nt=t("span",{op40:""}," Nuxt DevTools ",-1),st={op40:""},at={flex:"~ gap2 wrap"},it=t("div",{"logos-nuxt-icon":"","text-3xl":""},null,-1),lt=t("div",{"logos-vue":"","text-3xl":""},null,-1),ut=t("div",{"carbon-tree-view-alt":"","text-3xl":""},null,-1),rt=t("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),dt=t("div",{"carbon-function":"","text-3xl":""},null,-1),ct=t("div",{"carbon-3d-mpr-toggle":"","text-3xl":""},null,-1),pt=t("div",{"carbon-plug":"","text-3xl":""},null,-1),_t={key:5,"pointer-events-none":"","min-w-40":"",p4:"","theme-card-lime":"",flex:"~ auto gap-6"},mt=t("div",{"i-carbon-time-plot":"","flex-none":"","text-3xl":""},null,-1),ht={grid:"~ cols-[auto_auto] gap-x-5 items-center"},ft=t("div",{"text-sm":""}," SSR to full load ",-1),xt={"text-right":""},vt=t("div",{"text-sm":""}," Page load ",-1),gt={"text-right":""},bt=t("div",{"text-sm":""}," Navigation ",-1),kt={"text-right":""},yt=t("div",{"text-sm":""}," HMR ",-1),Ct={"text-right":""},wt={flex:"~ col gap2"},Dt={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},Bt=t("a",{href:"https://github.com/nuxt/devtools",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[t("div",{"i-carbon-star":""}),a(" Star on GitHub ")],-1),St=t("a",{href:"https://github.com/nuxt/devtools/discussions/29",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[t("div",{"i-carbon-data-enrichment":""}),a(" Ideas & Suggestions ")],-1),zt=t("a",{href:"https://github.com/nuxt/devtools/discussions/31",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[t("div",{"i-carbon-plan":""}),a(" Project Roadmap ")],-1),Nt=t("a",{href:"https://github.com/nuxt/devtools/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[t("div",{"i-carbon-debug":""}),a(" Bug Reports ")],-1),At=t("div",{"i-carbon-settings-adjust":""},null,-1),jt=t("div",{"flex-auto":""},null,-1),It={flex:"col gap-2",mxa:"",hidden:"","w-100":"","text-sm":"",op50:"","md:flex":""},Lt={flex:"~ gap-1","items-center":""},Vt=t("span",null,"+",-1),Mt=t("span",null,"+",-1),Rt=t("div",{"flex-auto":""},null,-1),Tt={flex:"~ gap-1","items-center":""},Pt=t("span",null,"+",-1),Et=t("span",null,"+",-1),Ot=t("span",null,"+",-1),$t=t("span",null,"+",-1),Ft=t("div",{"flex-auto":""},null,-1),Gt=t("div",null,"Toggle DevTools",-1),Zt=L({__name:"overview",setup(Wt){const v=V(),p=M(),D=Q(),g=R(),B=q(),S=T(),b=P(),z=E();function N(){G.value=!0,z.push("/")}const k=w(()=>v.value?.nuxt.vueApp.version),u=w(()=>v.value?.metrics.loading());function A(){W()}return(o,Ht)=>{const j=H,_=K,y=J,C=U,d=Y,I=O;return s(),m(I,{"h-screen":"","w-full":"",flex:""},{default:n(()=>[e(p)?(s(),c("div",tt,[et,t("div",ot,[i(_,{flex:"~","mt--10":"","items-center":"","justify-center":"",to:"https://devtools.nuxt.com/",target:"_blank"},{default:n(()=>[i(j,{"h-10":""})]),_:1}),t("button",{mb6:"",mt3:"","text-center":"","text-sm":"",flex:"~ gap-1 wrap",onClick:N},[nt,t("code",st,"v"+r(e(X)),1),i(y,{"package-name":"@nuxt/devtools",options:{dev:!0},"show-version":!1})])]),t("div",at,[i(_,{to:"https://nuxt.com",target:"_blank",p4:"","theme-card-green":"",flex:"~ col auto"},{default:n(()=>[it,i(y,{"package-name":"nuxt",options:{dev:!0}})]),_:1}),e(k)?(s(),m(_,{key:0,to:"https://vuejs.org",target:"_blank",p4:"","theme-card-green":"",flex:"~ col auto"},{default:n(()=>[lt,t("code",null,"v"+r(e(k)),1)]),_:1})):l("",!0),e(p)?(s(),c(h,{key:1},[e(p)&&e(p).pages&&e(v)?(s(),m(_,{key:0,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/pages"},{default:n(()=>[ut,t("div",null,r(("pluralizeByCount"in o?o.pluralizeByCount:e(f))(e(S).length,"page")),1)]),_:1})):l("",!0),e(p)?(s(),m(_,{key:1,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/components"},{default:n(()=>[rt,t("div",null,r(("pluralizeByCount"in o?o.pluralizeByCount:e(f))(e(D).length,"component")),1)]),_:1})):l("",!0),e(p)&&e(g)?(s(),m(_,{key:2,"min-w-40":"",p4:"","theme-card-yellow":"",flex:"~ col auto",to:"/modules/imports"},{default:n(()=>[dt,t("div",null,r(("pluralizeByCount"in o?o.pluralizeByCount:e(f))(e(g).imports.length,"import")),1)]),_:1})):l("",!0),e(p)?(s(),m(_,{key:3,"min-w-40":"",p4:"","theme-card-purple":"",flex:"~ col auto",to:"/modules/modules"},{default:n(()=>[ct,t("div",null,r(("pluralizeByCount"in o?o.pluralizeByCount:e(f))(e(B).length,"module")),1)]),_:1})):l("",!0),e(p)?(s(),m(_,{key:4,"min-w-40":"",p4:"","theme-card-teal":"",flex:"~ col auto",to:"/modules/plugins"},{default:n(()=>[pt,t("div",null,r(("pluralizeByCount"in o?o.pluralizeByCount:e(f))(e(p).plugins.length,"plugin")),1)]),_:1})):l("",!0),e(u)?(s(),c("div",_t,[mt,t("div",ht,[e(u).ssrStart?(s(),c(h,{key:0},[ft,t("div",xt,r(("formatDuration"in o?o.formatDuration:e(x))(e(u).appLoad-e(u).ssrStart)),1)],64)):l("",!0),vt,t("div",gt,r(("formatDuration"in o?o.formatDuration:e(x))(e(u).appLoad-e(u).appInit)),1),bt,t("div",kt,r(("formatDuration"in o?o.formatDuration:e(x))(e(u).pageEnd-e(u).pageStart)),1),e(u).hmrStart?(s(),c(h,{key:1},[yt,t("div",Ct,r(("formatDuration"in o?o.formatDuration:e(x))(e(u).hmrEnd-e(u).hmrStart)),1)],64)):l("",!0)])])):l("",!0)],64)):l("",!0)]),t("div",wt,[("showConnectionWarning"in o?o.showConnectionWarning:e($))?(s(),m(C,{key:0,n:"yellow5",icon:"carbon-unlink","justify-center":""},{default:n(()=>[a(" Not connected to the client app, showing server-side data only. Use the embedded mode for full features. ")]),_:1})):l("",!0),t("button",{title:"Authorize",onClick:A},[("isDevAuthed"in o?o.isDevAuthed:e(F))?l("",!0):(s(),m(C,{key:0,n:"orange5",icon:"i-carbon-locked","justify-center":""},{default:n(()=>[a(" Access from an untrusted browser, some features are limited. Click to authorize now. ")]),_:1}))])]),t("div",Dt,[Bt,St,zt,Nt,i(_,{to:"/settings",flex:"~ gap1","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:n(()=>[At,a(" Settings ")]),_:1})]),jt,t("div",It,[t("div",Lt,[e(b)?(s(),c(h,{key:0},[i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" ⌘ Cmd ")]),_:1}),Vt,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" K ")]),_:1})],64)):(s(),c(h,{key:1},[i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" Ctrl ")]),_:1}),Mt,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" K ")]),_:1})],64)),Rt,a(" Open Command Palette ")]),t("div",Tt,[e(b)?(s(),c(h,{key:0},[i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" ⇧ Shift ")]),_:1}),Pt,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" ⌥ Option ")]),_:1}),Et,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" D ")]),_:1})],64)):(s(),c(h,{key:1},[i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" Shift ")]),_:1}),Ot,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" Alt ")]),_:1}),$t,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" D ")]),_:1})],64)),Ft,Gt])])])):(s(),c("div",Z," Loading... "))]),_:1})}}});export{Zt as default};
@@ -1,4 +1,4 @@
1
- import{d as me,r as P,bG as Se,o as u,m as _,k as c,G as F,h as x,f as e,bH as re,t as N,p as O,v as K,a9 as We,aa as Ke,F as L,n as J,a6 as Te,bw as $e,bx as Re,w as Ee,bu as Qe,bI as Xe,bJ as Ye,aA as Ze,bK as et,ab as tt,al as ot,ay as fe,a as E,ac as nt,aB as st,b0 as at,bL as rt,e as lt,a2 as je,j as w,l as Y,i as m,I as Z,aw as it,ak as De,V as ut,_ as Ve,X as ct,A as Ie,am as dt,bM as pt,ah as ft,U as mt,bN as vt,ar as ht}from"./CSxKs2xg.js";import{_ as yt}from"./CQfzcXIu.js";import{_ as Ue}from"./B7vUcbNk.js";import{_ as _t}from"./CgvvXsvn.js";import{_ as Ne}from"./DQS-rzez.js";import{_ as gt}from"./Bx439kud.js";import{_ as bt}from"./BNSBUDhB.js";import{_ as kt}from"./DjVyxknR.js";import{C as ke,S as Oe}from"./BcJws1i5.js";import{e as wt}from"./CDjZ2Pwm.js";import{_ as Ct}from"./DRzmYdLW.js";import{_ as xt}from"./-qWogbxp.js";import"./K0tfU50F.js";import"./f1qyuWhx.js";import"./CGdFtN3I.js";const ae=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function St(t,r){if(typeof t!="string")throw new TypeError("argument str must be a string");const n={},h=(r||{}).decode||Rt;let v=0;for(;v<t.length;){const d=t.indexOf("=",v);if(d===-1)break;let f=t.indexOf(";",v);if(f===-1)f=t.length;else if(f<d){v=t.lastIndexOf(";",d-1)+1;continue}const a=t.slice(v,d).trim();if(n[a]===void 0){let S=t.slice(d+1,f).trim();S.codePointAt(0)===34&&(S=S.slice(1,-1)),n[a]=$t(S,h)}v=f+1}return n}function we(t,r,n){const o=n||{},h=o.encode||Et;if(typeof h!="function")throw new TypeError("option encode is invalid");if(!ae.test(t))throw new TypeError("argument name is invalid");const v=h(r);if(v&&!ae.test(v))throw new TypeError("argument val is invalid");let d=t+"="+v;if(o.maxAge!==void 0&&o.maxAge!==null){const f=o.maxAge-0;if(Number.isNaN(f)||!Number.isFinite(f))throw new TypeError("option maxAge is invalid");d+="; Max-Age="+Math.floor(f)}if(o.domain){if(!ae.test(o.domain))throw new TypeError("option domain is invalid");d+="; Domain="+o.domain}if(o.path){if(!ae.test(o.path))throw new TypeError("option path is invalid");d+="; Path="+o.path}if(o.expires){if(!Tt(o.expires)||Number.isNaN(o.expires.valueOf()))throw new TypeError("option expires is invalid");d+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(d+="; HttpOnly"),o.secure&&(d+="; Secure"),o.priority)switch(typeof o.priority=="string"?o.priority.toLowerCase():o.priority){case"low":{d+="; Priority=Low";break}case"medium":{d+="; Priority=Medium";break}case"high":{d+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(o.sameSite)switch(typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite){case!0:{d+="; SameSite=Strict";break}case"lax":{d+="; SameSite=Lax";break}case"strict":{d+="; SameSite=Strict";break}case"none":{d+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return o.partitioned&&(d+="; Partitioned"),d}function Tt(t){return Object.prototype.toString.call(t)==="[object Date]"||t instanceof Date}function $t(t,r){try{return r(t)}catch{return t}}function Rt(t){return t.includes("%")?decodeURIComponent(t):t}function Et(t){return encodeURIComponent(t)}function B(t){if(typeof t!="object")return t;var r,n,o=Object.prototype.toString.call(t);if(o==="[object Object]"){if(t.constructor!==Object&&typeof t.constructor=="function"){n=new t.constructor;for(r in t)t.hasOwnProperty(r)&&n[r]!==t[r]&&(n[r]=B(t[r]))}else{n={};for(r in t)r==="__proto__"?Object.defineProperty(n,r,{value:B(t[r]),configurable:!0,enumerable:!0,writable:!0}):n[r]=B(t[r])}return n}if(o==="[object Array]"){for(r=t.length,n=Array(r);r--;)n[r]=B(t[r]);return n}return o==="[object Set]"?(n=new Set,t.forEach(function(h){n.add(B(h))}),n):o==="[object Map]"?(n=new Map,t.forEach(function(h,v){n.set(B(v),B(h))}),n):o==="[object Date]"?new Date(+t):o==="[object RegExp]"?(n=new RegExp(t.source,t.flags),n.lastIndex=t.lastIndex,n):o==="[object DataView]"?new t.constructor(B(t.buffer)):o==="[object ArrayBuffer]"?t.slice(0):o.slice(-6)==="Array]"?new t.constructor(t):t}const jt=c("div",{"x-divider":""},null,-1),Ae=me({__name:"ServerRouteListItem",props:{item:{},index:{default:0}},setup(t){const r=P(!0),n=Se();return(o,h)=>{const v=Te,d=Ue,f=Ae;return u(),_("div",null,[c("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:F([{"bg-active":e(n)===o.item.filepath}]),style:We({paddingLeft:`calc(0.5rem + ${o.index*1.5}em)`}),onClick:h[0]||(h[0]=a=>{r.value=!e(r),n.value=o.item.filepath})},[c("div",{class:F({"w-12":!o.item.routes}),"flex-none":"","text-left":""},[o.item.type==="collection"?(u(),x(v,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":e(r)?90:0,transition:""},null,8,["transform-rotate"])):(u(),x(d,{key:1,class:F(("getRequestMethodClass"in o?o.getRequestMethodClass:e(re))(o.item.method||"*")),textContent:N((o.item.method||"*").toUpperCase())},null,8,["class","textContent"]))],2),c("span",{class:F({"flex items-center":o.item.routes}),"text-sm":"","font-mono":""},[o.item.type==="collection"?(u(),x(v,{key:0,title:`${o.item.routes?.length} routes`,icon:"carbon:folder",mr1:""},null,8,["title"])):O("",!0),K(" "+N(o.item.route),1)],2)],6),jt,e(r)?Ke(o.$slots,"default",{key:0},()=>[(u(!0),_(L,null,J(o.item.routes,a=>(u(),x(f,{key:a.filepath,item:a,index:o.index+1},null,8,["item","index"]))),128))]):O("",!0)])}}}),Dt={path:"/",watch:!0,decode:t=>Xe(decodeURIComponent(t)),encode:t=>encodeURIComponent(typeof t=="string"?t:JSON.stringify(t))},Vt=void 0;function It(t,r){const n={...Dt,...r},o=Ce(n)||{};let h;n.maxAge!==void 0?h=n.maxAge*1e3:n.expires&&(h=n.expires.getTime()-Date.now());const v=h!==void 0&&h<=0,d=B(v?void 0:o[t]??n.default?.()),f=h&&!v?Ot(d,h,n.watch&&n.watch!=="shallow"):P(d);{let a=null;try{!Vt&&typeof BroadcastChannel<"u"&&(a=new BroadcastChannel(`nuxt:cookies:${t}`))}catch{}const S=()=>{n.readonly||Ye(f.value,o[t])||(Nt(t,f.value,n),o[t]=B(f.value),a?.postMessage({value:n.encode(f.value)}))},V=H=>{const ee=H.refresh?Ce(n)?.[t]:n.decode(H.value);A=!0,o[t]=f.value=ee,Ze(()=>{A=!1})};let A=!1;$e()&&Re(()=>{A=!0,S(),a?.close()}),a&&(a.onmessage=({data:H})=>V(H)),n.watch?Ee(f,()=>{A||S()},{deep:n.watch!=="shallow"}):S()}return f}function Ce(t={}){return St(document.cookie,t)}function Ut(t,r,n={}){return r==null?we(t,r,{...n,maxAge:-1}):we(t,r,n)}function Nt(t,r,n={}){document.cookie=Ut(t,r,n)}const xe=2147483647;function Ot(t,r,n){let o,h,v=0;const d=n?P(t):{value:t};return $e()&&Re(()=>{h?.(),clearTimeout(o)}),Qe((f,a)=>{n&&(h=Ee(d,a));function S(){clearTimeout(o);const V=r-v,A=V<xe?V:xe;o=setTimeout(()=>{if(v+=A,v<r)return S();d.value=void 0,a()},A)}return{get(){return f(),d.value},set(V){S(),d.value=V,a()}}})}const At={"h-full":"","w-full":"",flex:"~ col"},Lt={flex:"~ col gap-2","flex-none":"",p4:"","n-navbar-glass":""},Pt={flex:"~ gap2 items-center"},qt={relative:"","w-full":""},Mt={absolute:"","right-2":"","top-1.5":"",flex:"~ gap-1"},Bt={flex:"~ gap2 wrap","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},Ft={class:"hidden md:block"},Ht=c("div",{"flex-auto":""},null,-1),zt=c("div",{"text-xs":"",op50:""}," Send from ",-1),Gt=c("option",{value:"app"}," App ",-1),Jt=c("option",{value:"devtools"}," DevTools ",-1),Wt={key:0,border:"b base","items-center":"",px4:"",py2:"",grid:"~ cols-[max-content_1fr] gap-2"},Kt={"text-right":"","font-mono":""},Qt={key:1,border:"b base",p4:"",flex:"~ col gap-4","font-mono":""},Xt={flex:"~ gap-4"},Yt={flex:"~ gap2","mb--2":"","items-center":"",op50:""},Zt=c("div",{"w-5":"","x-divider":""},null,-1),eo=c("div",{"flex-none":""}," Default Inputs ",-1),to=c("div",{"x-divider":""},null,-1),oo={key:2},no={key:3,border:"b base",relative:"","n-code-block":""},so={flex:"~ wrap","w-full":""},ao=["onClick"],ro=c("div",{border:"b base","flex-auto":""},null,-1),lo={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},io=c("div",null,"Response",-1),uo={key:1,"text-xs":"",op50:""},co=c("div",{"flex-auto":""},null,-1),po=c("div",{op50:""}," Request finished in ",-1),fo={key:0,"flex-auto":"","overflow-auto":""},mo={border:"~ base","h-full":"","w-full":"",rounded:""},vo=["data"],ho={key:2,"flex-auto":"","overflow-auto":"",p4:""},yo={border:"~ base",rounded:""},_o=["src"],go={key:1,controls:"",rounded:""},bo=["src"],ko=me({__name:"ServerRouteDetails",props:{route:{}},emits:["open-default-input"],setup(t,{emit:r}){const n=t,o=r,[h,v]=et(),d=tt(),f=ot(),a=fe({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),S=E(()=>a.contentType.includes("application/json")?"json":a.contentType.includes("text/html")?"html":a.contentType.includes("text/css")?"css":a.contentType.includes("text/javascript")?"javascript":a.contentType.includes("image")||a.contentType.includes("video")?"media":a.contentType.includes("text/xml")||a.contentType.includes("application/xml")?"xml":a.contentType.includes("application/pdf")?"pdf":"text"),V=E(()=>{if(S.value==="json")return JSON.stringify(a.data,null,2);if(S.value==="media"||S.value==="pdf"){const s=new Blob([a.data],{type:a.contentType});return URL.createObjectURL(s)}return a.data}),A=P(!1),H=P(!1),ee=nt(),j=E(()=>n.route.route?.split(/((?:\*\*)?:[\w_]+)/g)),g=E(()=>j.value?.filter(s=>s.startsWith(":")||s.startsWith("**:"))||[]),I=P(n.route.method||"GET"),b=P({}),y=fe({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"}]}),D=P({}),{inputDefaults:T,sendFrom:U}=De("serverRoutes"),q=E(()=>f?.value?.app?.$fetch?U.value:"devtools"),le=["GET","POST","PUT","PATCH","DELETE","HEAD"],ie=["PATCH","POST","PUT","DELETE"],te=E(()=>ie.includes(I.value.toUpperCase())),k=P(),$=["input","json"],z=P($[0]),oe=E({get:()=>y[k.value],set:s=>{y[k.value]=s}}),ve=E(()=>({...W(T.value.query),...W(y.query)})),he=E(()=>({...W(T.value.headers),...W(y.headers)})),ue=E(()=>te.value?z.value==="json"?{...W(T.value.body),...D.value}:{...W(T.value.body),...W(y.body)}:void 0),Le=E(()=>{let s=window?.location.origin;return s.charAt(s.length-1)==="/"&&(s=s.slice(0,-1)),s}),ne=E(()=>{let s=new URLSearchParams(ve.value).toString();s&&(s=`?${s}`);const i=(j.value?.map(R=>(R.startsWith(":")||R.startsWith("**:"))&&b.value[R]||R).join("")||"")+s;let p=d.value?.app.baseURL||"";return(p==="./"||p===".")&&(p=""),p.endsWith("/")&&(p=p.slice(0,-1)),p+i}),ye=E(()=>Le.value+ne.value);function W(s){const i=Object.fromEntries(s.filter(({active:p,key:R,value:C})=>p&&R&&C!==void 0).map(({key:p,value:R})=>[p,R]));return Object.entries(i).length?i:void 0}async function _e(){H.value=!0,A.value=!0;const s=Date.now(),i=q.value==="app"?f.value.app.$fetch:$fetch;ut("server-routes:fetch",{method:I.value,sendFrom:q.value});try{a.data=await i(ye.value,{method:I.value.toUpperCase(),headers:he.value,query:ve.value,body:ue.value,onResponse({response:p}){a.contentType=(p.headers.get("content-type")||"").toString().toLowerCase().trim(),a.statusCode=p.status,a.error=void 0},onResponseError(p){a.error=p.response._data,a.data=p.response._data}})}catch{}A.value=!1,a.fetchTime=Date.now()-s}const ge=E(()=>{const s=[],i=[],p=Object.entries(he.value).filter(([C,M])=>C&&M&&!(C==="Content-Type"&&M==="application/json")).map(([C,M])=>` '${C}': '${M}'`).join(`,
1
+ import{d as me,r as P,bG as Se,o as u,m as _,k as c,G as F,h as x,f as e,bH as re,t as N,p as O,v as K,a9 as We,aa as Ke,F as L,n as J,a6 as Te,bw as $e,bx as Re,w as Ee,bu as Qe,bI as Xe,bJ as Ye,aA as Ze,bK as et,ab as tt,al as ot,ay as fe,a as E,ac as nt,aB as st,b0 as at,bL as rt,e as lt,a2 as je,j as w,l as Y,i as m,I as Z,aw as it,ak as De,V as ut,_ as Ve,X as ct,A as Ie,am as dt,bM as pt,ah as ft,U as mt,bN as vt,ar as ht}from"./DW2rdoo9.js";import{_ as yt}from"./CnDX42ER.js";import{_ as Ue}from"./Dm8mUwGL.js";import{_ as _t}from"./D9bWLJbD.js";import{_ as Ne}from"./C_mHwna3.js";import{_ as gt}from"./nd9mx79B.js";import{_ as bt}from"./DZg4WwSa.js";import{_ as kt}from"./D7gBCge-.js";import{C as ke,S as Oe}from"./BcJws1i5.js";import{e as wt}from"./CQhVfK23.js";import{_ as Ct}from"./B-hub2K2.js";import{_ as xt}from"./D1Dg62su.js";import"./BhuDhIKJ.js";import"./_hj05-RZ.js";import"./BVJlJdda.js";const ae=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function St(t,r){if(typeof t!="string")throw new TypeError("argument str must be a string");const n={},h=(r||{}).decode||Rt;let v=0;for(;v<t.length;){const d=t.indexOf("=",v);if(d===-1)break;let f=t.indexOf(";",v);if(f===-1)f=t.length;else if(f<d){v=t.lastIndexOf(";",d-1)+1;continue}const a=t.slice(v,d).trim();if(n[a]===void 0){let S=t.slice(d+1,f).trim();S.codePointAt(0)===34&&(S=S.slice(1,-1)),n[a]=$t(S,h)}v=f+1}return n}function we(t,r,n){const o=n||{},h=o.encode||Et;if(typeof h!="function")throw new TypeError("option encode is invalid");if(!ae.test(t))throw new TypeError("argument name is invalid");const v=h(r);if(v&&!ae.test(v))throw new TypeError("argument val is invalid");let d=t+"="+v;if(o.maxAge!==void 0&&o.maxAge!==null){const f=o.maxAge-0;if(Number.isNaN(f)||!Number.isFinite(f))throw new TypeError("option maxAge is invalid");d+="; Max-Age="+Math.floor(f)}if(o.domain){if(!ae.test(o.domain))throw new TypeError("option domain is invalid");d+="; Domain="+o.domain}if(o.path){if(!ae.test(o.path))throw new TypeError("option path is invalid");d+="; Path="+o.path}if(o.expires){if(!Tt(o.expires)||Number.isNaN(o.expires.valueOf()))throw new TypeError("option expires is invalid");d+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(d+="; HttpOnly"),o.secure&&(d+="; Secure"),o.priority)switch(typeof o.priority=="string"?o.priority.toLowerCase():o.priority){case"low":{d+="; Priority=Low";break}case"medium":{d+="; Priority=Medium";break}case"high":{d+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(o.sameSite)switch(typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite){case!0:{d+="; SameSite=Strict";break}case"lax":{d+="; SameSite=Lax";break}case"strict":{d+="; SameSite=Strict";break}case"none":{d+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return o.partitioned&&(d+="; Partitioned"),d}function Tt(t){return Object.prototype.toString.call(t)==="[object Date]"||t instanceof Date}function $t(t,r){try{return r(t)}catch{return t}}function Rt(t){return t.includes("%")?decodeURIComponent(t):t}function Et(t){return encodeURIComponent(t)}function B(t){if(typeof t!="object")return t;var r,n,o=Object.prototype.toString.call(t);if(o==="[object Object]"){if(t.constructor!==Object&&typeof t.constructor=="function"){n=new t.constructor;for(r in t)t.hasOwnProperty(r)&&n[r]!==t[r]&&(n[r]=B(t[r]))}else{n={};for(r in t)r==="__proto__"?Object.defineProperty(n,r,{value:B(t[r]),configurable:!0,enumerable:!0,writable:!0}):n[r]=B(t[r])}return n}if(o==="[object Array]"){for(r=t.length,n=Array(r);r--;)n[r]=B(t[r]);return n}return o==="[object Set]"?(n=new Set,t.forEach(function(h){n.add(B(h))}),n):o==="[object Map]"?(n=new Map,t.forEach(function(h,v){n.set(B(v),B(h))}),n):o==="[object Date]"?new Date(+t):o==="[object RegExp]"?(n=new RegExp(t.source,t.flags),n.lastIndex=t.lastIndex,n):o==="[object DataView]"?new t.constructor(B(t.buffer)):o==="[object ArrayBuffer]"?t.slice(0):o.slice(-6)==="Array]"?new t.constructor(t):t}const jt=c("div",{"x-divider":""},null,-1),Ae=me({__name:"ServerRouteListItem",props:{item:{},index:{default:0}},setup(t){const r=P(!0),n=Se();return(o,h)=>{const v=Te,d=Ue,f=Ae;return u(),_("div",null,[c("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:F([{"bg-active":e(n)===o.item.filepath}]),style:We({paddingLeft:`calc(0.5rem + ${o.index*1.5}em)`}),onClick:h[0]||(h[0]=a=>{r.value=!e(r),n.value=o.item.filepath})},[c("div",{class:F({"w-12":!o.item.routes}),"flex-none":"","text-left":""},[o.item.type==="collection"?(u(),x(v,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":e(r)?90:0,transition:""},null,8,["transform-rotate"])):(u(),x(d,{key:1,class:F(("getRequestMethodClass"in o?o.getRequestMethodClass:e(re))(o.item.method||"*")),textContent:N((o.item.method||"*").toUpperCase())},null,8,["class","textContent"]))],2),c("span",{class:F({"flex items-center":o.item.routes}),"text-sm":"","font-mono":""},[o.item.type==="collection"?(u(),x(v,{key:0,title:`${o.item.routes?.length} routes`,icon:"carbon:folder",mr1:""},null,8,["title"])):O("",!0),K(" "+N(o.item.route),1)],2)],6),jt,e(r)?Ke(o.$slots,"default",{key:0},()=>[(u(!0),_(L,null,J(o.item.routes,a=>(u(),x(f,{key:a.filepath,item:a,index:o.index+1},null,8,["item","index"]))),128))]):O("",!0)])}}}),Dt={path:"/",watch:!0,decode:t=>Xe(decodeURIComponent(t)),encode:t=>encodeURIComponent(typeof t=="string"?t:JSON.stringify(t))},Vt=void 0;function It(t,r){const n={...Dt,...r},o=Ce(n)||{};let h;n.maxAge!==void 0?h=n.maxAge*1e3:n.expires&&(h=n.expires.getTime()-Date.now());const v=h!==void 0&&h<=0,d=B(v?void 0:o[t]??n.default?.()),f=h&&!v?Ot(d,h,n.watch&&n.watch!=="shallow"):P(d);{let a=null;try{!Vt&&typeof BroadcastChannel<"u"&&(a=new BroadcastChannel(`nuxt:cookies:${t}`))}catch{}const S=()=>{n.readonly||Ye(f.value,o[t])||(Nt(t,f.value,n),o[t]=B(f.value),a?.postMessage({value:n.encode(f.value)}))},V=H=>{const ee=H.refresh?Ce(n)?.[t]:n.decode(H.value);A=!0,o[t]=f.value=ee,Ze(()=>{A=!1})};let A=!1;$e()&&Re(()=>{A=!0,S(),a?.close()}),a&&(a.onmessage=({data:H})=>V(H)),n.watch?Ee(f,()=>{A||S()},{deep:n.watch!=="shallow"}):S()}return f}function Ce(t={}){return St(document.cookie,t)}function Ut(t,r,n={}){return r==null?we(t,r,{...n,maxAge:-1}):we(t,r,n)}function Nt(t,r,n={}){document.cookie=Ut(t,r,n)}const xe=2147483647;function Ot(t,r,n){let o,h,v=0;const d=n?P(t):{value:t};return $e()&&Re(()=>{h?.(),clearTimeout(o)}),Qe((f,a)=>{n&&(h=Ee(d,a));function S(){clearTimeout(o);const V=r-v,A=V<xe?V:xe;o=setTimeout(()=>{if(v+=A,v<r)return S();d.value=void 0,a()},A)}return{get(){return f(),d.value},set(V){S(),d.value=V,a()}}})}const At={"h-full":"","w-full":"",flex:"~ col"},Lt={flex:"~ col gap-2","flex-none":"",p4:"","n-navbar-glass":""},Pt={flex:"~ gap2 items-center"},qt={relative:"","w-full":""},Mt={absolute:"","right-2":"","top-1.5":"",flex:"~ gap-1"},Bt={flex:"~ gap2 wrap","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},Ft={class:"hidden md:block"},Ht=c("div",{"flex-auto":""},null,-1),zt=c("div",{"text-xs":"",op50:""}," Send from ",-1),Gt=c("option",{value:"app"}," App ",-1),Jt=c("option",{value:"devtools"}," DevTools ",-1),Wt={key:0,border:"b base","items-center":"",px4:"",py2:"",grid:"~ cols-[max-content_1fr] gap-2"},Kt={"text-right":"","font-mono":""},Qt={key:1,border:"b base",p4:"",flex:"~ col gap-4","font-mono":""},Xt={flex:"~ gap-4"},Yt={flex:"~ gap2","mb--2":"","items-center":"",op50:""},Zt=c("div",{"w-5":"","x-divider":""},null,-1),eo=c("div",{"flex-none":""}," Default Inputs ",-1),to=c("div",{"x-divider":""},null,-1),oo={key:2},no={key:3,border:"b base",relative:"","n-code-block":""},so={flex:"~ wrap","w-full":""},ao=["onClick"],ro=c("div",{border:"b base","flex-auto":""},null,-1),lo={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},io=c("div",null,"Response",-1),uo={key:1,"text-xs":"",op50:""},co=c("div",{"flex-auto":""},null,-1),po=c("div",{op50:""}," Request finished in ",-1),fo={key:0,"flex-auto":"","overflow-auto":""},mo={border:"~ base","h-full":"","w-full":"",rounded:""},vo=["data"],ho={key:2,"flex-auto":"","overflow-auto":"",p4:""},yo={border:"~ base",rounded:""},_o=["src"],go={key:1,controls:"",rounded:""},bo=["src"],ko=me({__name:"ServerRouteDetails",props:{route:{}},emits:["open-default-input"],setup(t,{emit:r}){const n=t,o=r,[h,v]=et(),d=tt(),f=ot(),a=fe({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),S=E(()=>a.contentType.includes("application/json")?"json":a.contentType.includes("text/html")?"html":a.contentType.includes("text/css")?"css":a.contentType.includes("text/javascript")?"javascript":a.contentType.includes("image")||a.contentType.includes("video")?"media":a.contentType.includes("text/xml")||a.contentType.includes("application/xml")?"xml":a.contentType.includes("application/pdf")?"pdf":"text"),V=E(()=>{if(S.value==="json")return JSON.stringify(a.data,null,2);if(S.value==="media"||S.value==="pdf"){const s=new Blob([a.data],{type:a.contentType});return URL.createObjectURL(s)}return a.data}),A=P(!1),H=P(!1),ee=nt(),j=E(()=>n.route.route?.split(/((?:\*\*)?:[\w_]+)/g)),g=E(()=>j.value?.filter(s=>s.startsWith(":")||s.startsWith("**:"))||[]),I=P(n.route.method||"GET"),b=P({}),y=fe({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"}]}),D=P({}),{inputDefaults:T,sendFrom:U}=De("serverRoutes"),q=E(()=>f?.value?.app?.$fetch?U.value:"devtools"),le=["GET","POST","PUT","PATCH","DELETE","HEAD"],ie=["PATCH","POST","PUT","DELETE"],te=E(()=>ie.includes(I.value.toUpperCase())),k=P(),$=["input","json"],z=P($[0]),oe=E({get:()=>y[k.value],set:s=>{y[k.value]=s}}),ve=E(()=>({...W(T.value.query),...W(y.query)})),he=E(()=>({...W(T.value.headers),...W(y.headers)})),ue=E(()=>te.value?z.value==="json"?{...W(T.value.body),...D.value}:{...W(T.value.body),...W(y.body)}:void 0),Le=E(()=>{let s=window?.location.origin;return s.charAt(s.length-1)==="/"&&(s=s.slice(0,-1)),s}),ne=E(()=>{let s=new URLSearchParams(ve.value).toString();s&&(s=`?${s}`);const i=(j.value?.map(R=>(R.startsWith(":")||R.startsWith("**:"))&&b.value[R]||R).join("")||"")+s;let p=d.value?.app.baseURL||"";return(p==="./"||p===".")&&(p=""),p.endsWith("/")&&(p=p.slice(0,-1)),p+i}),ye=E(()=>Le.value+ne.value);function W(s){const i=Object.fromEntries(s.filter(({active:p,key:R,value:C})=>p&&R&&C!==void 0).map(({key:p,value:R})=>[p,R]));return Object.entries(i).length?i:void 0}async function _e(){H.value=!0,A.value=!0;const s=Date.now(),i=q.value==="app"?f.value.app.$fetch:$fetch;ut("server-routes:fetch",{method:I.value,sendFrom:q.value});try{a.data=await i(ye.value,{method:I.value.toUpperCase(),headers:he.value,query:ve.value,body:ue.value,onResponse({response:p}){a.contentType=(p.headers.get("content-type")||"").toString().toLowerCase().trim(),a.statusCode=p.status,a.error=void 0},onResponseError(p){a.error=p.response._data,a.data=p.response._data}})}catch{}A.value=!1,a.fetchTime=Date.now()-s}const ge=E(()=>{const s=[],i=[],p=Object.entries(he.value).filter(([C,M])=>C&&M&&!(C==="Content-Type"&&M==="application/json")).map(([C,M])=>` '${C}': '${M}'`).join(`,
2
2
  `);I.value.toUpperCase()!=="GET"&&i.push(`method: '${I.value.toUpperCase()}'`),p&&i.push(`headers: {
3
3
  ${p}
4
4
  }`),ue.value&&i.push(`body: ${JSON.stringify(ue.value,null,2)}`);const R=i.length?`, {
@@ -1 +1 @@
1
- import{_ as v}from"./BOBmlKb6.js";import{_ as x}from"./DRzmYdLW.js";import{o as r,m as l,k as e,v as m,d as y,al as b,bE as C,a as d,f as i,i as t,j as a,p as k,F as w}from"./CSxKs2xg.js";import{_ as N}from"./2rHQ-89_.js";import"./BNSBUDhB.js";import"./CDjZ2Pwm.js";import"./CGdFtN3I.js";const R={class:"markdown-body"},T=e("h1",null,"Runtime Configs",-1),B=e("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.",-1),V=e("p",null,[m("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 "),e("code",null,"nuxt.config.js"),m(" file, or check more details in the documentation.")],-1),$=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/going-further/runtime-config",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),D=[T,B,V,$],E={__name:"runtime-configs",setup(f,{expose:o}){return o({frontmatter:{}}),(p,_)=>(r(),l("div",R,D))}},F={key:0},z=y({__name:"runtime-configs",setup(f){const o=b(),u=C(),p=d(()=>o.value?.nuxt.payload),_=d(()=>{const n={...u.value};return delete n.public,delete n.app,n});return(n,P)=>{const s=v,c=x,g=E,h=N;return r(),l(w,null,[i(o)?(r(),l("div",F,[t(c,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:a(()=>[t(s,{state:i(o).app.appConfig},null,8,["state"])]),_:1}),t(c,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:a(()=>[t(s,{state:i(p).config?.public},null,8,["state"])]),_:1}),t(c,{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(()=>[t(s,{state:i(_),readonly:""},null,8,["state"])]),_:1})])):k("",!0),t(h,null,{default:a(()=>[t(g)]),_:1})],64)}}});export{z as default};
1
+ import{_ as v}from"./CAWcj-Fr.js";import{_ as x}from"./B-hub2K2.js";import{o as r,m as l,k as e,v as m,d as y,al as b,bE as C,a as d,f as i,i as t,j as a,p as k,F as w}from"./DW2rdoo9.js";import{_ as N}from"./BX8u6kVi.js";import"./DZg4WwSa.js";import"./CQhVfK23.js";import"./BVJlJdda.js";const R={class:"markdown-body"},T=e("h1",null,"Runtime Configs",-1),B=e("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.",-1),V=e("p",null,[m("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 "),e("code",null,"nuxt.config.js"),m(" file, or check more details in the documentation.")],-1),$=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/going-further/runtime-config",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),D=[T,B,V,$],E={__name:"runtime-configs",setup(f,{expose:o}){return o({frontmatter:{}}),(p,_)=>(r(),l("div",R,D))}},F={key:0},z=y({__name:"runtime-configs",setup(f){const o=b(),u=C(),p=d(()=>o.value?.nuxt.payload),_=d(()=>{const n={...u.value};return delete n.public,delete n.app,n});return(n,P)=>{const s=v,c=x,g=E,h=N;return r(),l(w,null,[i(o)?(r(),l("div",F,[t(c,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:a(()=>[t(s,{state:i(o).app.appConfig},null,8,["state"])]),_:1}),t(c,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:a(()=>[t(s,{state:i(p).config?.public},null,8,["state"])]),_:1}),t(c,{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(()=>[t(s,{state:i(_),readonly:""},null,8,["state"])]),_:1})])):k("",!0),t(h,null,{default:a(()=>[t(g)]),_:1})],64)}}});export{z as default};
@@ -1 +1 @@
1
- import{d as e,m as n,o}from"./CSxKs2xg.js";const t={"h-screen":"","w-screen":"","bg-black":""},r=e({__name:"__blank",setup(c){return(s,_)=>(o(),n("div",t))}});export{r as default};
1
+ import{d as e,m as n,o}from"./DW2rdoo9.js";const t={"h-screen":"","w-screen":"","bg-black":""},r=e({__name:"__blank",setup(c){return(s,_)=>(o(),n("div",t))}});export{r as default};
@@ -1,4 +1,4 @@
1
- import{d as Ee,r as ke,aq as Pe,a1 as Ie,L as fe,M as ve,o as ee,m as he,k as oe,i as Re,f as te,h as ce,p as me,t as ge,F as xe,bS as He,_ as Ae,bU as Fe,R as We,a as Ue,aB as Ne,n as $e,G as Le,bh as je,v as De,a6 as ze,j as Ke,aI as qe}from"./CSxKs2xg.js";var Be={exports:{}};(function(ne,Y){(function(J,G){ne.exports=G()})(self,()=>(()=>{var J={4567:function(P,r,o){var c=this&&this.__decorate||function(i,a,l,v){var m,h=arguments.length,p=h<3?a:v===null?v=Object.getOwnPropertyDescriptor(a,l):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(i,a,l,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(p=(h<3?m(p):h>3?m(a,l,p):m(a,l))||p);return h>3&&p&&Object.defineProperty(a,l,p),p},u=this&&this.__param||function(i,a){return function(l,v){a(l,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const n=o(9042),d=o(6114),f=o(9924),g=o(844),_=o(5596),e=o(4725),s=o(3656);let t=r.AccessibilityManager=class extends g.Disposable{constructor(i,a){super(),this._terminal=i,this._renderService=a,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let l=0;l<this._terminal.rows;l++)this._rowElements[l]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[l]);if(this._topBoundaryFocusListener=l=>this._handleBoundaryFocus(l,0),this._bottomBoundaryFocusListener=l=>this._handleBoundaryFocus(l,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(l=>this._handleResize(l.rows))),this.register(this._terminal.onRender(l=>this._refreshRows(l.start,l.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(l=>this._handleChar(l))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
1
+ import{d as Ee,r as ke,aq as Pe,a1 as Ie,L as fe,M as ve,o as ee,m as he,k as oe,i as Re,f as te,h as ce,p as me,t as ge,F as xe,bS as He,_ as Ae,bU as Fe,R as We,a as Ue,aB as Ne,n as $e,G as Le,bh as je,v as De,a6 as ze,j as Ke,aI as qe}from"./DW2rdoo9.js";var Be={exports:{}};(function(ne,Y){(function(J,G){ne.exports=G()})(self,()=>(()=>{var J={4567:function(P,r,o){var c=this&&this.__decorate||function(i,a,l,v){var m,h=arguments.length,p=h<3?a:v===null?v=Object.getOwnPropertyDescriptor(a,l):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(i,a,l,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(p=(h<3?m(p):h>3?m(a,l,p):m(a,l))||p);return h>3&&p&&Object.defineProperty(a,l,p),p},u=this&&this.__param||function(i,a){return function(l,v){a(l,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const n=o(9042),d=o(6114),f=o(9924),g=o(844),_=o(5596),e=o(4725),s=o(3656);let t=r.AccessibilityManager=class extends g.Disposable{constructor(i,a){super(),this._terminal=i,this._renderService=a,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let l=0;l<this._terminal.rows;l++)this._rowElements[l]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[l]);if(this._topBoundaryFocusListener=l=>this._handleBoundaryFocus(l,0),this._bottomBoundaryFocusListener=l=>this._handleBoundaryFocus(l,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(l=>this._handleResize(l.rows))),this.register(this._terminal.onRender(l=>this._refreshRows(l.start,l.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(l=>this._handleChar(l))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
2
2
  `))),this.register(this._terminal.onA11yTab(l=>this._handleTab(l))),this.register(this._terminal.onKey(l=>this._handleKey(l.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new _.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,s.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,g.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(i){for(let a=0;a<i;a++)this._handleChar(" ")}_handleChar(i){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==i&&(this._charsToAnnounce+=i):this._charsToAnnounce+=i,i===`
3
3
  `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&this._liveRegion.remove()}_handleKey(i){this._clearLiveRegion(),/\p{Control}/u.test(i)||this._charsToConsume.push(i)}_refreshRows(i,a){this._liveRegionDebouncer.refresh(i,a,this._terminal.rows)}_renderRows(i,a){const l=this._terminal.buffer,v=l.lines.length.toString();for(let m=i;m<=a;m++){const h=l.translateBufferLineToString(l.ydisp+m,!0),p=(l.ydisp+m+1).toString(),b=this._rowElements[m];b&&(h.length===0?b.innerText=" ":b.textContent=h,b.setAttribute("aria-posinset",p),b.setAttribute("aria-setsize",v))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(i,a){const l=i.target,v=this._rowElements[a===0?1:this._rowElements.length-2];if(l.getAttribute("aria-posinset")===(a===0?"1":`${this._terminal.buffer.lines.length}`)||i.relatedTarget!==v)return;let m,h;if(a===0?(m=l,h=this._rowElements.pop(),this._rowContainer.removeChild(h)):(m=this._rowElements.shift(),h=l,this._rowContainer.removeChild(m)),m.removeEventListener("focus",this._topBoundaryFocusListener),h.removeEventListener("focus",this._bottomBoundaryFocusListener),a===0){const p=this._createAccessibilityTreeNode();this._rowElements.unshift(p),this._rowContainer.insertAdjacentElement("afterbegin",p)}else{const p=this._createAccessibilityTreeNode();this._rowElements.push(p),this._rowContainer.appendChild(p)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(a===0?-1:1),this._rowElements[a===0?1:this._rowElements.length-2].focus(),i.preventDefault(),i.stopImmediatePropagation()}_handleResize(i){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let a=this._rowContainer.children.length;a<this._terminal.rows;a++)this._rowElements[a]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[a]);for(;this._rowElements.length>i;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const i=document.createElement("div");return i.setAttribute("role","listitem"),i.tabIndex=-1,this._refreshRowDimensions(i),i}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let i=0;i<this._terminal.rows;i++)this._refreshRowDimensions(this._rowElements[i])}}_refreshRowDimensions(i){i.style.height=`${this._renderService.dimensions.css.cell.height}px`}};r.AccessibilityManager=t=c([u(1,e.IRenderService)],t)},3614:(P,r)=>{function o(d){return d.replace(/\r?\n/g,"\r")}function c(d,f){return f?"\x1B[200~"+d+"\x1B[201~":d}function u(d,f,g,_){d=c(d=o(d),g.decPrivateModes.bracketedPasteMode&&_.rawOptions.ignoreBracketedPasteMode!==!0),g.triggerDataEvent(d,!0),f.value=""}function n(d,f,g){const _=g.getBoundingClientRect(),e=d.clientX-_.left-10,s=d.clientY-_.top-10;f.style.width="20px",f.style.height="20px",f.style.left=`${e}px`,f.style.top=`${s}px`,f.style.zIndex="1000",f.focus()}Object.defineProperty(r,"__esModule",{value:!0}),r.rightClickHandler=r.moveTextAreaUnderMouseCursor=r.paste=r.handlePasteEvent=r.copyHandler=r.bracketTextForPaste=r.prepareTextForTerminal=void 0,r.prepareTextForTerminal=o,r.bracketTextForPaste=c,r.copyHandler=function(d,f){d.clipboardData&&d.clipboardData.setData("text/plain",f.selectionText),d.preventDefault()},r.handlePasteEvent=function(d,f,g,_){d.stopPropagation(),d.clipboardData&&u(d.clipboardData.getData("text/plain"),f,g,_)},r.paste=u,r.moveTextAreaUnderMouseCursor=n,r.rightClickHandler=function(d,f,g,_,e){n(d,f,g),e&&_.rightClickSelect(d),f.value=_.selectionText,f.select()}},7239:(P,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorContrastCache=void 0;const c=o(1505);r.ColorContrastCache=class{constructor(){this._color=new c.TwoKeyMap,this._css=new c.TwoKeyMap}setCss(u,n,d){this._css.set(u,n,d)}getCss(u,n){return this._css.get(u,n)}setColor(u,n,d){this._color.set(u,n,d)}getColor(u,n){return this._color.get(u,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(P,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.addDisposableDomListener=void 0,r.addDisposableDomListener=function(o,c,u,n){o.addEventListener(c,u,n);let d=!1;return{dispose:()=>{d||(d=!0,o.removeEventListener(c,u,n))}}}},6465:function(P,r,o){var c=this&&this.__decorate||function(e,s,t,i){var a,l=arguments.length,v=l<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,s,t,i);else for(var m=e.length-1;m>=0;m--)(a=e[m])&&(v=(l<3?a(v):l>3?a(s,t,v):a(s,t))||v);return l>3&&v&&Object.defineProperty(s,t,v),v},u=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Linkifier2=void 0;const n=o(3656),d=o(8460),f=o(844),g=o(2585);let _=r.Linkifier2=class extends f.Disposable{get currentLink(){return this._currentLink}constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new d.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new d.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,f.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,f.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{const s=this._linkProviders.indexOf(e);s!==-1&&this._linkProviders.splice(s,1)}}}attachToDom(e,s,t){this._element=e,this._mouseService=s,this._renderService=t,this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;const s=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!s)return;this._isMouseOut=!1;const t=e.composedPath();for(let i=0;i<t.length;i++){const a=t[i];if(a.classList.contains("xterm"))break;if(a.classList.contains("xterm-hover"))return}this._lastBufferCell&&s.x===this._lastBufferCell.x&&s.y===this._lastBufferCell.y||(this._handleHover(s),this._lastBufferCell=s)}_handleHover(e){if(this._activeLine!==e.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(e,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}_askForLink(e,s){var t,i;this._activeProviderReplies&&s||((t=this._activeProviderReplies)===null||t===void 0||t.forEach(l=>{l?.forEach(v=>{v.link.dispose&&v.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let a=!1;for(const[l,v]of this._linkProviders.entries())s?!((i=this._activeProviderReplies)===null||i===void 0)&&i.get(l)&&(a=this._checkLinkProviderResult(l,e,a)):v.provideLinks(e.y,m=>{var h,p;if(this._isMouseOut)return;const b=m?.map(L=>({link:L}));(h=this._activeProviderReplies)===null||h===void 0||h.set(l,b),a=this._checkLinkProviderResult(l,e,a),((p=this._activeProviderReplies)===null||p===void 0?void 0:p.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,s){const t=new Set;for(let i=0;i<s.size;i++){const a=s.get(i);if(a)for(let l=0;l<a.length;l++){const v=a[l],m=v.link.range.start.y<e?0:v.link.range.start.x,h=v.link.range.end.y>e?this._bufferService.cols:v.link.range.end.x;for(let p=m;p<=h;p++){if(t.has(p)){a.splice(l--,1);break}t.add(p)}}}}_checkLinkProviderResult(e,s,t){var i;if(!this._activeProviderReplies)return t;const a=this._activeProviderReplies.get(e);let l=!1;for(let v=0;v<e;v++)this._activeProviderReplies.has(v)&&!this._activeProviderReplies.get(v)||(l=!0);if(!l&&a){const v=a.find(m=>this._linkAtPosition(m.link,s));v&&(t=!0,this._handleNewLink(v))}if(this._activeProviderReplies.size===this._linkProviders.length&&!t)for(let v=0;v<this._activeProviderReplies.size;v++){const m=(i=this._activeProviderReplies.get(v))===null||i===void 0?void 0:i.find(h=>this._linkAtPosition(h.link,s));if(m){t=!0,this._handleNewLink(m);break}}return t}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;const s=this._positionFromMouseEvent(e,this._element,this._mouseService);s&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,s)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,s){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!s||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=s)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,f.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const s=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);s&&this._linkAtPosition(e.link,s)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var t,i;return(i=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.decorations.pointerCursor},set:t=>{var i,a;!((i=this._currentLink)===null||i===void 0)&&i.state&&this._currentLink.state.decorations.pointerCursor!==t&&(this._currentLink.state.decorations.pointerCursor=t,this._currentLink.state.isHovered&&((a=this._element)===null||a===void 0||a.classList.toggle("xterm-cursor-pointer",t)))}},underline:{get:()=>{var t,i;return(i=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.decorations.underline},set:t=>{var i,a,l;!((i=this._currentLink)===null||i===void 0)&&i.state&&((l=(a=this._currentLink)===null||a===void 0?void 0:a.state)===null||l===void 0?void 0:l.decorations.underline)!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(t=>{if(!this._currentLink)return;const i=t.start===0?0:t.start+1+this._bufferService.buffer.ydisp,a=this._bufferService.buffer.ydisp+1+t.end;if(this._currentLink.link.range.start.y>=i&&this._currentLink.link.range.end.y<=a&&(this._clearCurrentLink(i,a),this._lastMouseEvent&&this._element)){const l=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);l&&this._askForLink(l,!1)}})))}_linkHover(e,s,t){var i;!((i=this._currentLink)===null||i===void 0)&&i.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),s.hover&&s.hover(t,s.text)}_fireUnderlineEvent(e,s){const t=e.range,i=this._bufferService.buffer.ydisp,a=this._createLinkUnderlineEvent(t.start.x-1,t.start.y-i-1,t.end.x,t.end.y-i-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(a)}_linkLeave(e,s,t){var i;!((i=this._currentLink)===null||i===void 0)&&i.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),s.leave&&s.leave(t,s.text)}_linkAtPosition(e,s){const t=e.range.start.y*this._bufferService.cols+e.range.start.x,i=e.range.end.y*this._bufferService.cols+e.range.end.x,a=s.y*this._bufferService.cols+s.x;return t<=a&&a<=i}_positionFromMouseEvent(e,s,t){const i=t.getCoords(e,s,this._bufferService.cols,this._bufferService.rows);if(i)return{x:i[0],y:i[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,s,t,i,a){return{x1:e,y1:s,x2:t,y2:i,cols:this._bufferService.cols,fg:a}}};r.Linkifier2=_=c([u(0,g.IBufferService)],_)},9042:(P,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.tooMuchOutput=r.promptLabel=void 0,r.promptLabel="Terminal input",r.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(P,r,o){var c=this&&this.__decorate||function(_,e,s,t){var i,a=arguments.length,l=a<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,s):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(_,e,s,t);else for(var v=_.length-1;v>=0;v--)(i=_[v])&&(l=(a<3?i(l):a>3?i(e,s,l):i(e,s))||l);return a>3&&l&&Object.defineProperty(e,s,l),l},u=this&&this.__param||function(_,e){return function(s,t){e(s,t,_)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkProvider=void 0;const n=o(511),d=o(2585);let f=r.OscLinkProvider=class{constructor(_,e,s){this._bufferService=_,this._optionsService=e,this._oscLinkService=s}provideLinks(_,e){var s;const t=this._bufferService.buffer.lines.get(_-1);if(!t)return void e(void 0);const i=[],a=this._optionsService.rawOptions.linkHandler,l=new n.CellData,v=t.getTrimmedLength();let m=-1,h=-1,p=!1;for(let b=0;b<v;b++)if(h!==-1||t.hasContent(b)){if(t.loadCell(b,l),l.hasExtendedAttrs()&&l.extended.urlId){if(h===-1){h=b,m=l.extended.urlId;continue}p=l.extended.urlId!==m}else h!==-1&&(p=!0);if(p||h!==-1&&b===v-1){const L=(s=this._oscLinkService.getLinkData(m))===null||s===void 0?void 0:s.uri;if(L){const y={start:{x:h+1,y:_},end:{x:b+(p||b!==v-1?0:1),y:_}};let k=!1;if(!a?.allowNonHttpProtocols)try{const x=new URL(L);["http:","https:"].includes(x.protocol)||(k=!0)}catch{k=!0}k||i.push({text:L,range:y,activate:(x,T)=>a?a.activate(x,T,y):g(0,T),hover:(x,T)=>{var O;return(O=a?.hover)===null||O===void 0?void 0:O.call(a,x,T,y)},leave:(x,T)=>{var O;return(O=a?.leave)===null||O===void 0?void 0:O.call(a,x,T,y)}})}p=!1,l.hasExtendedAttrs()&&l.extended.urlId?(h=b,m=l.extended.urlId):(h=-1,m=-1)}}e(i)}};function g(_,e){if(confirm(`Do you want to navigate to ${e}?
4
4
 
@@ -1,4 +1,4 @@
1
- import{bO,c as wO,by as jO,d as xO,bv as $O,r as Jp,aB as kO,a as My,aC as SO,aq as CO,w as Kp,f as OO,bn as MO}from"./CSxKs2xg.js";function Nn(t){return Array.isArray(t)}function Zn(t){return t!==null&&typeof t=="object"&&(t.constructor===void 0||t.constructor.name==="Object")}function fS(t){return t&&typeof t=="object"?t.op==="add":!1}function dS(t){return t&&typeof t=="object"?t.op==="remove":!1}function t0(t){return t&&typeof t=="object"?t.op==="replace":!1}function Zm(t){return t&&typeof t=="object"?t.op==="copy":!1}function Al(t){return t&&typeof t=="object"?t.op==="move":!1}function AO(t,e){return JSON.stringify(t)===JSON.stringify(e)}function EO(t,e){return t===e}function hS(t){return t.slice(0,t.length-1)}function TO(t){return t[t.length-1]}function _O(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:EO;if(t.length<e.length)return!1;for(let r=0;r<e.length;r++)if(!n(t[r],e[r]))return!1;return!0}function pS(t){return typeof t=="object"&&t!==null}function n0(t){if(Nn(t)){const e=t.slice();return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else if(Zn(t)){const e={...t};return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else return t}function r0(t,e,n){if(t[e]===n)return t;{const r=n0(t);return r[e]=n,r}}function Xe(t,e){let n=t,r=0;for(;r<e.length;)Zn(n)?n=n[e[r]]:Nn(n)?n=n[parseInt(e[r])]:n=void 0,r++;return n}function Zi(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e.length===0)return n;const i=e[0],o=Zi(t?t[i]:void 0,e.slice(1),n,r);if(Zn(t)||Nn(t))return r0(t,i,o);if(r){const s=PO.test(i)?[]:{};return s[i]=o,s}else throw new Error("Path does not exist")}const PO=/^\d+$/;function mS(t,e,n){if(e.length===0)return n(t);if(!pS(t))throw new Error("Path doesn't exist");const r=e[0],i=mS(t[r],e.slice(1),n);return r0(t,r,i)}function i0(t,e){if(e.length===0)return t;if(!pS(t))throw new Error("Path does not exist");if(e.length===1){const i=e[0];if(i in t){const o=n0(t);return Nn(o)&&o.splice(parseInt(i),1),Zn(o)&&delete o[i],o}else return t}const n=e[0],r=i0(t[n],e.slice(1));return r0(t,n,r)}function o0(t,e,n){const r=e.slice(0,e.length-1),i=e[e.length-1];return mS(t,r,o=>{if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(r));const s=n0(o);return s.splice(parseInt(i),0,n),s})}function Li(t,e){return t===void 0?!1:e.length===0?!0:t===null?!1:Li(t[e[0]],e.slice(1))}function uo(t){const e=t.split("/");return e.shift(),e.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function We(t){return t.map(s0).join("")}function s0(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function Ay(t,e){return t+s0(e)}function Uh(t,e){return t.startsWith(e)&&(t.length===e.length||t[e.length]==="/")}function io(t,e,n){let r=t;for(let i=0;i<e.length;i++){FO(e[i]);let o=e[i];if(n&&n.before){const l=n.before(r,o);if(l!==void 0){if(l.document!==void 0&&(r=l.document),l.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');l.operation!==void 0&&(o=l.operation)}}const s=r,a=Ro(r,o.path);if(o.op==="add")r=IO(r,a,o.value);else if(o.op==="remove")r=NO(r,a);else if(o.op==="replace")r=RO(r,a,o.value);else if(o.op==="copy")r=DO(r,a,eg(o.from));else if(o.op==="move")r=LO(r,a,eg(o.from));else if(o.op==="test")BO(r,a,o.value);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(o));if(n&&n.after){const l=n.after(r,o,s);l!==void 0&&(r=l)}}return r}function RO(t,e,n){return Zi(t,e,n)}function NO(t,e){return i0(t,e)}function IO(t,e,n){return Wu(t,e)?o0(t,e,n):Zi(t,e,n)}function DO(t,e,n){const r=Xe(t,n);if(Wu(t,e))return o0(t,e,r);{const i=Xe(t,n);return Zi(t,e,i)}}function LO(t,e,n){const r=Xe(t,n),i=i0(t,n);return Wu(i,e)?o0(i,e,r):Zi(i,e,r)}function BO(t,e,n){if(n===void 0)throw new Error(`Test failed: no value provided (path: "${We(e)}")`);if(!Li(t,e))throw new Error(`Test failed: path not found (path: "${We(e)}")`);const r=Xe(t,e);if(!AO(r,n))throw new Error(`Test failed, value differs (path: "${We(e)}")`)}function Wu(t,e){if(e.length===0)return!1;const n=Xe(t,hS(e));return Array.isArray(n)}function zO(t,e){if(TO(e)!=="-")return e;const n=hS(e),r=Xe(t,n);return n.concat(r.length)}function FO(t){if(!["add","remove","replace","copy","move","test"].includes(t.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(t.op));if(typeof t.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(t));if((t.op==="copy"||t.op==="move")&&typeof t.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(t))}function Ro(t,e){return zO(t,uo(e))}function eg(t){return uo(t)}function gS(t,e,n){let r=[];return io(t,e,{before:(o,s)=>{let a;const l=Ro(o,s.path);if(s.op==="add")a=bS(o,l);else if(s.op==="remove")a=yS(o,l);else if(s.op==="replace")a=vS(o,l);else if(s.op==="copy")a=qO(o,l);else if(s.op==="move")a=VO(o,l,eg(s.from));else if(s.op==="test")a=[];else throw new Error("Unknown JSONPatch operation "+JSON.stringify(s));let c;if(n&&n.before){const u=n.before(o,s,a);if(u&&u.revertOperations&&(a=u.revertOperations),u&&u.document&&(c=u.document),u&&u.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=a.concat(r),c!==void 0)return{document:c}}}),r}function vS(t,e){return[{op:"replace",path:We(e),value:Xe(t,e)}]}function yS(t,e){return[{op:"add",path:We(e),value:Xe(t,e)}]}function bS(t,e){return Wu(t,e)||!Li(t,e)?[{op:"remove",path:We(e)}]:vS(t,e)}function qO(t,e){return bS(t,e)}function VO(t,e,n){if(e.length<n.length&&_O(n,e))return[{op:"replace",path:We(e),value:t}];const r={op:"move",from:We(e),path:We(n)};return!Wu(t,e)&&Li(t,e)?[r,...yS(t,e)]:[r]}var Dd={},Ey={b:"\b",f:"\f",n:`
1
+ import{bO,c as wO,by as jO,d as xO,bv as $O,r as Jp,aB as kO,a as My,aC as SO,aq as CO,w as Kp,f as OO,bn as MO}from"./DW2rdoo9.js";function Nn(t){return Array.isArray(t)}function Zn(t){return t!==null&&typeof t=="object"&&(t.constructor===void 0||t.constructor.name==="Object")}function fS(t){return t&&typeof t=="object"?t.op==="add":!1}function dS(t){return t&&typeof t=="object"?t.op==="remove":!1}function t0(t){return t&&typeof t=="object"?t.op==="replace":!1}function Zm(t){return t&&typeof t=="object"?t.op==="copy":!1}function Al(t){return t&&typeof t=="object"?t.op==="move":!1}function AO(t,e){return JSON.stringify(t)===JSON.stringify(e)}function EO(t,e){return t===e}function hS(t){return t.slice(0,t.length-1)}function TO(t){return t[t.length-1]}function _O(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:EO;if(t.length<e.length)return!1;for(let r=0;r<e.length;r++)if(!n(t[r],e[r]))return!1;return!0}function pS(t){return typeof t=="object"&&t!==null}function n0(t){if(Nn(t)){const e=t.slice();return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else if(Zn(t)){const e={...t};return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else return t}function r0(t,e,n){if(t[e]===n)return t;{const r=n0(t);return r[e]=n,r}}function Xe(t,e){let n=t,r=0;for(;r<e.length;)Zn(n)?n=n[e[r]]:Nn(n)?n=n[parseInt(e[r])]:n=void 0,r++;return n}function Zi(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e.length===0)return n;const i=e[0],o=Zi(t?t[i]:void 0,e.slice(1),n,r);if(Zn(t)||Nn(t))return r0(t,i,o);if(r){const s=PO.test(i)?[]:{};return s[i]=o,s}else throw new Error("Path does not exist")}const PO=/^\d+$/;function mS(t,e,n){if(e.length===0)return n(t);if(!pS(t))throw new Error("Path doesn't exist");const r=e[0],i=mS(t[r],e.slice(1),n);return r0(t,r,i)}function i0(t,e){if(e.length===0)return t;if(!pS(t))throw new Error("Path does not exist");if(e.length===1){const i=e[0];if(i in t){const o=n0(t);return Nn(o)&&o.splice(parseInt(i),1),Zn(o)&&delete o[i],o}else return t}const n=e[0],r=i0(t[n],e.slice(1));return r0(t,n,r)}function o0(t,e,n){const r=e.slice(0,e.length-1),i=e[e.length-1];return mS(t,r,o=>{if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(r));const s=n0(o);return s.splice(parseInt(i),0,n),s})}function Li(t,e){return t===void 0?!1:e.length===0?!0:t===null?!1:Li(t[e[0]],e.slice(1))}function uo(t){const e=t.split("/");return e.shift(),e.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function We(t){return t.map(s0).join("")}function s0(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function Ay(t,e){return t+s0(e)}function Uh(t,e){return t.startsWith(e)&&(t.length===e.length||t[e.length]==="/")}function io(t,e,n){let r=t;for(let i=0;i<e.length;i++){FO(e[i]);let o=e[i];if(n&&n.before){const l=n.before(r,o);if(l!==void 0){if(l.document!==void 0&&(r=l.document),l.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');l.operation!==void 0&&(o=l.operation)}}const s=r,a=Ro(r,o.path);if(o.op==="add")r=IO(r,a,o.value);else if(o.op==="remove")r=NO(r,a);else if(o.op==="replace")r=RO(r,a,o.value);else if(o.op==="copy")r=DO(r,a,eg(o.from));else if(o.op==="move")r=LO(r,a,eg(o.from));else if(o.op==="test")BO(r,a,o.value);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(o));if(n&&n.after){const l=n.after(r,o,s);l!==void 0&&(r=l)}}return r}function RO(t,e,n){return Zi(t,e,n)}function NO(t,e){return i0(t,e)}function IO(t,e,n){return Wu(t,e)?o0(t,e,n):Zi(t,e,n)}function DO(t,e,n){const r=Xe(t,n);if(Wu(t,e))return o0(t,e,r);{const i=Xe(t,n);return Zi(t,e,i)}}function LO(t,e,n){const r=Xe(t,n),i=i0(t,n);return Wu(i,e)?o0(i,e,r):Zi(i,e,r)}function BO(t,e,n){if(n===void 0)throw new Error(`Test failed: no value provided (path: "${We(e)}")`);if(!Li(t,e))throw new Error(`Test failed: path not found (path: "${We(e)}")`);const r=Xe(t,e);if(!AO(r,n))throw new Error(`Test failed, value differs (path: "${We(e)}")`)}function Wu(t,e){if(e.length===0)return!1;const n=Xe(t,hS(e));return Array.isArray(n)}function zO(t,e){if(TO(e)!=="-")return e;const n=hS(e),r=Xe(t,n);return n.concat(r.length)}function FO(t){if(!["add","remove","replace","copy","move","test"].includes(t.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(t.op));if(typeof t.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(t));if((t.op==="copy"||t.op==="move")&&typeof t.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(t))}function Ro(t,e){return zO(t,uo(e))}function eg(t){return uo(t)}function gS(t,e,n){let r=[];return io(t,e,{before:(o,s)=>{let a;const l=Ro(o,s.path);if(s.op==="add")a=bS(o,l);else if(s.op==="remove")a=yS(o,l);else if(s.op==="replace")a=vS(o,l);else if(s.op==="copy")a=qO(o,l);else if(s.op==="move")a=VO(o,l,eg(s.from));else if(s.op==="test")a=[];else throw new Error("Unknown JSONPatch operation "+JSON.stringify(s));let c;if(n&&n.before){const u=n.before(o,s,a);if(u&&u.revertOperations&&(a=u.revertOperations),u&&u.document&&(c=u.document),u&&u.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=a.concat(r),c!==void 0)return{document:c}}}),r}function vS(t,e){return[{op:"replace",path:We(e),value:Xe(t,e)}]}function yS(t,e){return[{op:"add",path:We(e),value:Xe(t,e)}]}function bS(t,e){return Wu(t,e)||!Li(t,e)?[{op:"remove",path:We(e)}]:vS(t,e)}function qO(t,e){return bS(t,e)}function VO(t,e,n){if(e.length<n.length&&_O(n,e))return[{op:"replace",path:We(e),value:t}];const r={op:"move",from:We(e),path:We(n)};return!Wu(t,e)&&Li(t,e)?[r,...yS(t,e)]:[r]}var Dd={},Ey={b:"\b",f:"\f",n:`
2
2
  `,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},HO=97;Dd.parse=function(t,e,n){var r={},i=0,o=0,s=0,a=n&&n.bigint&&typeof BigInt<"u";return{data:l("",!0),pointers:r};function l(V,z){c();var G;b(V,"value");var L=m();switch(L){case"t":p("rue"),G=!0;break;case"f":p("alse"),G=!1;break;case"n":p("ull"),G=null;break;case'"':G=u();break;case"[":G=d(V);break;case"{":G=h(V);break;default:v(),"-0123456789".indexOf(L)>=0?G=f():S()}return b(V,"valueEnd"),c(),z&&s<t.length&&S(),G}function c(){e:for(;s<t.length;){switch(t[s]){case" ":o++;break;case" ":o+=4;break;case"\r":o=0;break;case`
3
3
  `:o=0,i++;break;default:break e}s++}}function u(){for(var V="",z;z=m(),z!='"';)z=="\\"?(z=m(),z in Ey?V+=Ey[z]:z=="u"?V+=g():A()):V+=z;return V}function f(){var V="",z=!0;t[s]=="-"&&(V+=m()),V+=t[s]=="0"?m():y(),t[s]=="."&&(V+=m()+y(),z=!1),(t[s]=="e"||t[s]=="E")&&(V+=m(),(t[s]=="+"||t[s]=="-")&&(V+=m()),V+=y(),z=!1);var G=+V;return a&&z&&(G>Number.MAX_SAFE_INTEGER||G<Number.MIN_SAFE_INTEGER)?BigInt(V):G}function d(V){c();var z=[],G=0;if(m()=="]")return z;for(v();;){var L=V+"/"+G;z.push(l(L)),c();var H=m();if(H=="]")break;H!=","&&A(),c(),G++}return z}function h(V){c();var z={};if(m()=="}")return z;for(v();;){var G=w();m()!='"'&&A();var L=u(),H=V+"/"+tg(L);x(H,"key",G),b(H,"keyEnd"),c(),m()!=":"&&A(),c(),z[L]=l(H),c();var _=m();if(_=="}")break;_!=","&&A(),c()}return z}function p(V){for(var z=0;z<V.length;z++)m()!==V[z]&&A()}function m(){W();var V=t[s];return s++,o++,V}function v(){s--,o--}function g(){for(var V=4,z=0;V--;){z<<=4;var G=m().toLowerCase();G>="a"&&G<="f"?z+=G.charCodeAt()-HO+10:G>="0"&&G<="9"?z+=+G:A()}return String.fromCharCode(z)}function y(){for(var V="";t[s]>="0"&&t[s]<="9";)V+=m();if(V.length)return V;W(),S()}function b(V,z){x(V,z,w())}function x(V,z,G){r[V]=r[V]||{},r[V][z]=G}function w(){return{line:i,column:o,pos:s}}function S(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function A(){v(),S()}function W(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}};Dd.stringify=function(t,e,n){if(!bf(t))return;var r=0,i,o,s=typeof n=="object"?n.space:n;switch(typeof s){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&x(a," "),i=a,o=a;break;case"string":s=s.slice(0,10),i=0,o=0;for(var l=0;l<s.length;l++){var c=s[l];switch(c){case" ":o++;break;case" ":o+=4;break;case"\r":o=0;break;case`
4
4
  `:o=0,r++;break;default:throw new Error("whitespace characters not allowed in JSON")}i++}break;default:s=void 0}var u="",f={},d=0,h=0,p=0,m=n&&n.es6&&typeof Map=="function";return v(t,0,""),{json:u,pointers:f};function v(w,S,A){switch(b(A,"value"),typeof w){case"number":case"bigint":case"boolean":g(""+w);break;case"string":g(wf(w));break;case"object":w===null?g("null"):typeof w.toJSON=="function"?g(wf(w.toJSON())):Array.isArray(w)?W():m?w.constructor.BYTES_PER_ELEMENT?W():w instanceof Map?z():w instanceof Set?z(!0):V():V()}b(A,"valueEnd");function W(){if(w.length){g("[");for(var G=S+1,L=0;L<w.length;L++){L&&g(","),y(G);var H=bf(w[L])?w[L]:null,_=A+"/"+L;v(H,G,_)}y(S),g("]")}else g("[]")}function V(){var G=Object.keys(w);if(G.length){g("{");for(var L=S+1,H=0;H<G.length;H++){var _=G[H],ee=w[_];if(bf(ee)){H&&g(",");var Z=A+"/"+tg(_);y(L),b(Z,"key"),g(wf(_)),b(Z,"keyEnd"),g(":"),s&&g(" "),v(ee,L,Z)}}y(S),g("}")}else g("{}")}function z(G){if(w.size){g("{");for(var L=S+1,H=!0,_=w.entries(),ee=_.next();!ee.done;){var Z=ee.value,Q=Z[0],E=G?!0:Z[1];if(bf(E)){H||g(","),H=!1;var R=A+"/"+tg(Q);y(L),b(R,"key"),g(wf(Q)),b(R,"keyEnd"),g(":"),s&&g(" "),v(E,L,R)}ee=_.next()}y(S),g("}")}else g("{}")}}function g(w){h+=w.length,p+=w.length,u+=w}function y(w){if(s){for(u+=`