@nuxt/devtools 1.1.5 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/chunks/module-main.mjs +5 -37
- package/dist/chunks/vscode.mjs +1 -0
- package/dist/client/200.html +23 -23
- package/dist/client/404.html +23 -23
- package/dist/client/_nuxt/{iwQAEmKI.js → B0KOo1ba.js} +1 -1
- package/dist/client/_nuxt/B0ueYKyn.js +9 -0
- package/dist/client/_nuxt/{_kNmeBjy.js → B3uyMCCv.js} +1 -1
- package/dist/client/_nuxt/B6pd2ymi.js +1 -0
- package/dist/client/_nuxt/{CA_eAFlo.js → B90Ttd7o.js} +1 -1
- package/dist/client/_nuxt/B9CZjm2z.js +2 -0
- package/dist/client/_nuxt/{BBcfeHW0.js → BCaU9car.js} +1 -1
- package/dist/client/_nuxt/{D6dOrpSz.js → BFJB92M1.js} +1 -1
- package/dist/client/_nuxt/BGq4KZyx.js +1 -0
- package/dist/client/_nuxt/{iazTOtp7.js → BJ65-qNi.js} +1 -1
- package/dist/client/_nuxt/{Ds9RG5LO.js → BJbhmoX6.js} +2 -2
- package/dist/client/_nuxt/{chB0bF2e.js → BKiZzkRj.js} +1 -1
- package/dist/client/_nuxt/{CkNuW12v.js → BLnLeUd3.js} +1 -1
- package/dist/client/_nuxt/BMbUeBqv.js +74 -0
- package/dist/client/_nuxt/{BawzGT5O.js → BNQxZ_tm.js} +1 -1
- package/dist/client/_nuxt/BPX3fYES.js +1 -0
- package/dist/client/_nuxt/{CaQmwCtB.js → BXJ3NTXl.js} +1 -1
- package/dist/client/_nuxt/BZfs-ost.js +1 -0
- package/dist/client/_nuxt/{BM5AytHF.js → BaKCaZGk.js} +1 -1
- package/dist/client/_nuxt/{BullEKkw.js → BaRB0bpe.js} +1 -1
- package/dist/client/_nuxt/{CvL8cdRT.js → BdrRW8OO.js} +1 -1
- package/dist/client/_nuxt/BiWblMbN.js +505 -0
- package/dist/client/_nuxt/{BitKOBNg.js → BjA0kRNM.js} +1 -1
- package/dist/client/_nuxt/{CXOMhAuo.js → Bki9ESx2.js} +1 -1
- package/dist/client/_nuxt/{BpcRrzbR.js → Bm0NU4n7.js} +1 -1
- package/dist/client/_nuxt/BvDxtYhR.js +1 -0
- package/dist/client/_nuxt/BvWK-VK_.js +1 -0
- package/dist/client/_nuxt/{Dj8kH5KD.js → Bvxqhl9x.js} +1 -1
- package/dist/client/_nuxt/{CIi1W1Xn.js → BwUXge7D.js} +1 -1
- package/dist/client/_nuxt/{CCEzajrZ.js → C378twlw.js} +1 -1
- package/dist/client/_nuxt/{BRZ59h9H.js → C6qnkm2z.js} +1 -1
- package/dist/client/_nuxt/{BMulB6_N.js → CFIIwO5G.js} +2 -2
- package/dist/client/_nuxt/CHuuZgn4.js +699 -0
- package/dist/client/_nuxt/{CFP4gcPi.js → CMxQOWd6.js} +1 -1
- package/dist/client/_nuxt/{DggdVF2v.js → CQ1WWl9n.js} +1 -1
- package/dist/client/_nuxt/{DnNA5yXt.js → CQ4DIexe.js} +1 -1
- package/dist/client/_nuxt/CWDIGLyg.js +1 -0
- package/dist/client/_nuxt/{pzsDcbJd.js → CZ3WyNik.js} +1 -1
- package/dist/client/_nuxt/CZS3fKwr.js +20 -0
- package/dist/client/_nuxt/CgrD3_g7.js +1 -0
- package/dist/client/_nuxt/{A4ZOcguv.js → CiSNQgOw.js} +1 -1
- package/dist/client/_nuxt/{sSwgCvN9.js → ClXd2J8B.js} +1 -1
- package/dist/client/_nuxt/{BMzBLMig.js → Co1NnsNe.js} +1 -1
- package/dist/client/_nuxt/{D4UCAj7O.js → Coatggmz.js} +1 -1
- package/dist/client/_nuxt/{Do1J5gVB.js → CqLfaAGq.js} +1 -1
- package/dist/client/_nuxt/Cuq04cZp.js +1031 -0
- package/dist/client/_nuxt/CwVYEx0b.js +1 -0
- package/dist/client/_nuxt/Cw_HWDDb.js +1 -0
- package/dist/client/_nuxt/DDnrbwm6.js +2002 -0
- package/dist/client/_nuxt/{DfFJQbG4.js → DFF-wSSt.js} +2 -2
- package/dist/client/_nuxt/{e0xDN1rm.js → DGsSg8Yx.js} +1 -1
- package/dist/client/_nuxt/DHFOa8tC.js +200 -0
- package/dist/client/_nuxt/{Bozs3mpp.js → DI84-lg6.js} +1 -1
- package/dist/client/_nuxt/DJ6PyLfz.js +1 -0
- package/dist/client/_nuxt/DKAZQnAj.js +1 -0
- package/dist/client/_nuxt/{D-bKw4-c.js → DLnTPeai.js} +1 -1
- package/dist/client/_nuxt/{Dwt0a_c3.js → DOshYgbb.js} +1 -1
- package/dist/client/_nuxt/DYSjJb82.js +99 -0
- package/dist/client/_nuxt/{A1WiD9SJ.js → DaCkt_J7.js} +1 -1
- package/dist/client/_nuxt/{95Xol9hk.js → DlPmnnjb.js} +1 -1
- package/dist/client/_nuxt/Dnoo7cyQ.js +1 -0
- package/dist/client/_nuxt/{iJ8Lbex6.js → DtL8m2Aq.js} +3 -3
- package/dist/client/_nuxt/{Cp4lmCDv.js → DxuiyCFU.js} +1 -1
- package/dist/client/_nuxt/{jtaEtbvO.js → DyeV3m0g.js} +1 -1
- package/dist/client/_nuxt/{CeWabOXN.js → HBanA1tG.js} +1 -1
- package/dist/client/_nuxt/{C35r-I8u.js → IlsTwlBb.js} +1 -1
- package/dist/client/_nuxt/NSectionBlock.DF4F_onM.css +1 -0
- package/dist/client/_nuxt/PO8p82Rr.js +48 -0
- package/dist/client/_nuxt/Q9LIRUci.js +25 -0
- package/dist/client/_nuxt/{CjV45cFY.js → SP_cIGIP.js} +1 -1
- package/dist/client/_nuxt/{Cd6DbZRp.js → Tw6nDHWX.js} +1 -1
- package/dist/client/_nuxt/{C3dxgrHo.js → V55AckNm.js} +1 -1
- package/dist/client/_nuxt/V_y36BGi.js +1 -0
- package/dist/client/_nuxt/{Bo1S1yFp.js → YHaOe1r2.js} +1 -1
- package/dist/client/_nuxt/_ECCzcZq.js +666 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/d37e84e4-7cd9-41ae-8568-7d4b1d04caa2.json +1 -0
- package/dist/client/_nuxt/entry.CyP5HdOH.css +1 -0
- package/dist/client/_nuxt/error-404.ClUqCsUG.css +1 -0
- package/dist/client/_nuxt/error-500.Xj6Xfe4d.css +1 -0
- package/dist/client/_nuxt/iAfmkGIi.js +1 -0
- package/dist/client/_nuxt/index.BeOv1PgR.css +1 -0
- package/dist/client/_nuxt/{BaZ-MlpT.js → jWDo8Ezs.js} +1 -1
- package/dist/client/_nuxt/jeEj0LFC.js +1 -0
- package/dist/client/_nuxt/{DLpnW8-5.js → lLn-RhM6.js} +1 -1
- package/dist/client/_nuxt/{CUmEcBOj.js → tWSQ6YIe.js} +1 -1
- package/dist/client/index.html +23 -23
- package/dist/module.json +5 -1
- package/dist/runtime/function-metrics-helpers.mjs +2 -2
- package/dist/runtime/plugins/view/FrameBox.vue +3 -1
- package/dist/runtime/plugins/view/Main.vue +11 -1
- package/dist/runtime/plugins/view/client.mjs +4 -2
- package/dist/runtime/use-nuxt-devtools.mjs +1 -1
- package/package.json +40 -40
- package/dist/client/_nuxt/4OiyuHIo.js +0 -1
- package/dist/client/_nuxt/BKuBdopT.js +0 -1
- package/dist/client/_nuxt/BUsflWtV.js +0 -9
- package/dist/client/_nuxt/Bb1mULLQ.js +0 -48
- package/dist/client/_nuxt/CM17keFt.js +0 -2
- package/dist/client/_nuxt/C_8Nqh_D.js +0 -105
- package/dist/client/_nuxt/Ccvom-7a.js +0 -1
- package/dist/client/_nuxt/DEvcMGc8.js +0 -2
- package/dist/client/_nuxt/DODPx1Rc.js +0 -1
- package/dist/client/_nuxt/DZURVFrY.js +0 -1
- package/dist/client/_nuxt/DmETP5K3.js +0 -982
- package/dist/client/_nuxt/Dz2CDcxz.js +0 -1
- package/dist/client/_nuxt/NSectionBlock.BrczCkLG.css +0 -1
- package/dist/client/_nuxt/R098q0FN.js +0 -1
- package/dist/client/_nuxt/builds/meta/7ee08684-5a32-4a3b-805a-feeb40a35ac6.json +0 -1
- package/dist/client/_nuxt/entry.OFjnihVh.css +0 -1
- package/dist/client/_nuxt/error-404.CbfoPaOP.css +0 -1
- package/dist/client/_nuxt/error-500.CgCLIzMa.css +0 -1
- package/dist/client/_nuxt/o1TLfE1U.js +0 -1
- package/dist/client/_nuxt/pinia.De6kl7Vm.css +0 -1
- package/dist/client/_nuxt/q7q-hnWy.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{q as a,s as n,o as r,m as l,k as e,t as s,i as d,j as c,v as p,x as f,y as m,z as x}from"./Bb1mULLQ.js";const h=t=>(m("data-v-73a0f069"),t=t(),x(),t),u={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},g=h(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),b={class:"max-w-520px text-center z-20"},_=["textContent"],w=["textContent"],y={class:"w-full flex items-center justify-center"},S={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const o=t;return n({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(k,N)=>{const i=f;return r(),l("div",u,[g,e("div",b,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,_),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,w),e("div",y,[d(i,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:c(()=>[p(s(t.backHome),1)]),_:1})])])])}}},z=a(S,[["__scopeId","data-v-73a0f069"]]);export{z as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$ as Ce}from"./Bb1mULLQ.js";function Ae(t){const e=t.length;let n=-1,s,r="";const i=t.charCodeAt(0);for(;++n<e;){if(s=t.charCodeAt(n),s===0){r+="�";continue}if(s===37){r+="\\%";continue}if(s===44){r+="\\,";continue}if(s>=1&&s<=31||s===127||n===0&&s>=48&&s<=57||n===1&&s>=48&&s<=57&&i===45){r+=`\\${s.toString(16)} `;continue}if(n===0&&e===1&&s===45){r+=`\\${t.charAt(n)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){r+=t.charAt(n);continue}r+=`\\${t.charAt(n)}`}return r}const Y=Ae;function L(t=[]){return Array.isArray(t)?t:[t]}function G(t){return Array.from(new Set(t))}function Oe(t,e){return t.reduce((n,s)=>(n.findIndex(i=>e(s,i))===-1&&n.push(s),n),[])}function E(t){return typeof t=="string"}function R(t){return E(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Me(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>R(e)):[t]:[R(t)]}function Ee(t){return t.filter(([e,n],s)=>{if(e.startsWith("$$"))return!1;for(let r=s-1;r>=0;r--)if(t[r][0]===e&&t[r][1]===n)return!1;return!0})}function q(t){return t==null?"":Ee(t).map(([e,n])=>n!=null?`${e}:${n};`:void 0).filter(Boolean).join("")}function V(t){return t&&typeof t=="object"&&!Array.isArray(t)}function de(t,e,n=!1){const s=t,r=e;if(Array.isArray(r))return n&&Array.isArray(r)?[...s,...r]:[...r];const i={...s};return V(s)&&V(r)&&Object.keys(r).forEach(o=>{V(s[o])&&V(r[o])||Array.isArray(s[o])&&Array.isArray(r[o])?i[o]=de(s[o],r[o],n):Object.assign(i,{[o]:r[o]})}),i}function U(t){let e,n,s;if(Array.isArray(t)){for(n=Array(e=t.length);e--;)n[e]=(s=t[e])&&typeof s=="object"?U(s):s;return n}if(Object.prototype.toString.call(t)==="[object Object]"){n={};for(e in t)e==="__proto__"?Object.defineProperty(n,e,{value:U(t[e]),configurable:!0,enumerable:!0,writable:!0}):n[e]=(s=t[e])&&typeof s=="object"?U(s):s;return n}return t}function je(t){return E(t[0])}function ke(t){return E(t[0])}const Q="$$shortcut-no-merge";function Le(t){return typeof t=="function"?{match:t}:t}function ee(t){return t.length===3}function Pe(t){return t!=null}function Te(){}var ze=Object.defineProperty,Fe=(t,e,n)=>e in t?ze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ie=(t,e,n)=>(Fe(t,typeof e!="symbol"?e+"":e,n),n);class Ne{constructor(){Ie(this,"_map",new Map)}get(e,n){const s=this._map.get(e);if(s)return s.get(n)}getFallback(e,n,s){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(n)||r.set(n,s),r.get(n)}set(e,n,s){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(n,s),this}has(e,n){return this._map.get(e)?.has(n)}delete(e,n){return this._map.get(e)?.delete(n)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([n,s])=>Array.from(s.entries()).map(([r,i])=>e(i,n,r)))}}class Re extends Map{getFallback(e,n){const s=this.get(e);return s===void 0?(this.set(e,n),n):s}map(e){const n=[];return this.forEach((s,r)=>{n.push(e(s,r))}),n}flatMap(e){const n=[];return this.forEach((s,r)=>{n.push(...e(s,r))}),n}}var De=Object.defineProperty,Ve=(t,e,n)=>e in t?De(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Be=(t,e,n)=>(Ve(t,typeof e!="symbol"?e+"":e,n),n);class pe extends Set{constructor(e){super(e),Be(this,"_map"),this._map??(this._map=new Map)}add(e){return this._map??(this._map=new Map),this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,n){return this._map.set(e,n),super.add(e)}}function K(t){return t instanceof pe}const B={};function Ue(t=["-",":"]){const e=t.join("|");return B[e]||(B[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),B[e].lastIndex=0,B[e]}function He(t,e=["-",":"],n=5){const s=Ue(e);let r,i=t.toString();const o=new Set,a=new Map;do r=!1,i=i.replace(s,(f,c,h,y,w)=>{if(!e.includes(h))return f;r=!0,o.add(c+h);const x=w+c.length+h.length+1,m={length:f.length,items:[]};a.set(w,m);for(const g of[...y.matchAll(/\S+/g)]){const A=x+g.index;let d=a.get(A)?.items;d?a.delete(A):d=[{offset:A,length:g[0].length,className:g[0]}];for(const b of d)b.className=b.className==="~"?c:b.className.replace(/^(!?)(.*)/,`$1${c}${h}$2`),m.items.push(b)}return"$".repeat(f.length)}),n-=1;while(r&&n);let l;if(typeof t=="string"){l="";let f=0;for(const[c,h]of a)l+=t.slice(f,c),l+=h.items.map(y=>y.className).join(" "),f=c+h.length;l+=t.slice(f)}else{l=t;for(const[f,c]of a)l.overwrite(f,f+c.length,c.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(o),hasChanged:r,groupsByOffset:a,get expanded(){return l.toString()}}}function Ge(t,e=["-",":"],n=5){const s=He(t,e,n);return typeof t=="string"?s.expanded:t}const te=new Set;function me(t){te.has(t)||(console.warn("[unocss]",t),te.add(t))}const We=/[\\:]?[\s'"`;{}]+/g;function Ye(t){return t.split(We)}const qe={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ye(t)}};function Ke(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(n=>n(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(n=>n!==e)}}}const H="default",Z="preflights",Xe="shortcuts",Ze="imports",Je={[Ze]:-200,[Z]:-100,[Xe]:-10,[H]:0};function ge(t){return L(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}const ne="_uno_resolved";function Qe(t){let e=typeof t=="function"?t():t;if(ne in e)return e;e={...e},Object.defineProperty(e,ne,{value:!0,enumerable:!1});const n=e.shortcuts?ge(e.shortcuts):void 0;if(e.shortcuts=n,e.prefix||e.layer){const s=r=>{r[2]||(r[2]={});const i=r[2];i.prefix==null&&e.prefix&&(i.prefix=L(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};n?.forEach(s),e.rules?.forEach(s)}return e}function ye(t){const e=Qe(t);if(!e.presets)return[e];const n=(e.presets||[]).flatMap(L).flatMap(ye);return[e,...n]}function re(t={},e={}){const n=Object.assign({},e,t),s=Oe((n.presets||[]).flatMap(L).flatMap(ye),(u,p)=>u.name===p.name),r=[...s.filter(u=>u.enforce==="pre"),...s.filter(u=>!u.enforce),...s.filter(u=>u.enforce==="post")],i=[...r,n],o=[...i].reverse(),a=Object.assign({},Je,...i.map(u=>u.layers));function l(u){return G(i.flatMap(p=>L(p[u]||[])))}const f=l("extractors");let c=o.find(u=>u.extractorDefault!==void 0)?.extractorDefault;c===void 0&&(c=qe),c&&!f.includes(c)&&f.unshift(c),f.sort((u,p)=>(u.order||0)-(p.order||0));const h=l("rules"),y={},w=h.length,x=h.map((u,p)=>{if(je(u)){L(u[2]?.prefix||"").forEach(C=>{y[C+u[0]]=[p,u[1],u[2],u]});return}return[p,...u]}).filter(Boolean).reverse();let m=et(i.map(u=>u.theme));const g=l("extendTheme");for(const u of g)m=u(m)||m;const A={templates:G(i.flatMap(u=>L(u.autocomplete?.templates))),extractors:i.flatMap(u=>L(u.autocomplete?.extractors)).sort((u,p)=>(u.order||0)-(p.order||0)),shorthands:tt(i.map(u=>u.autocomplete?.shorthands||{}))};let d=l("separators");d.length||(d=[":","-"]);const b={mergeSelectors:!0,warn:!0,sortLayers:u=>u,...n,blocklist:l("blocklist"),presets:r,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:a,theme:m,rulesSize:w,rulesDynamic:x,rulesStaticMap:y,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:A,variants:l("variants").map(Le).sort((u,p)=>(u.order||0)-(p.order||0)),shortcuts:ge(l("shortcuts")).reverse(),extractors:f,safelist:l("safelist"),separators:d,details:n.details??n.envMode==="dev"};for(const u of i)u?.configResolved?.(b);return b}function et(t){return t.map(e=>e?U(e):{}).reduce((e,n)=>de(e,n),{})}function tt(t){return t.reduce((e,n)=>{const s={};for(const r in n){const i=n[r];Array.isArray(i)?s[r]=`(${i.join("|")})`:s[r]=i}return{...e,...s}},{})}const nt="0.58.7";var rt=Object.defineProperty,st=(t,e,n)=>e in t?rt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,N=(t,e,n)=>(st(t,typeof e!="symbol"?e+"":e,n),n);class it{constructor(e={},n={}){this.userConfig=e,this.defaults=n,N(this,"version",nt),N(this,"_cache",new Map),N(this,"config"),N(this,"blocked",new Set),N(this,"parentOrders",new Map),N(this,"events",Ke()),this.config=re(e,n),this.events.emit("config",this.config)}setConfig(e,n){e&&(n&&(this.defaults=n),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=re(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,n,s=new Set){const r={original:e,code:e,id:n,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const o=await i.extract?.(r);if(o)if(K(o)&&K(s))for(const a of o)s.setCount(a,s.getCount(a)+o.getCount(a));else for(const a of o)s.add(a)}return s}makeContext(e,n){const s={rawSelector:e,currentSelector:n[1],theme:this.config.theme,generator:this,variantHandlers:n[2],constructCSS:(...r)=>this.constructCustomCSS(s,...r),variantMatch:n};return s}async parseToken(e,n){if(this.blocked.has(e))return;const s=`${e}${n?` ${n}`:""}`;if(this._cache.has(s))return this._cache.get(s);let r=e;for(const f of this.config.preprocess)r=f(e);if(this.isBlocked(r)){this.blocked.add(e),this._cache.set(s,null);return}const i=await this.matchVariants(e,r);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(s,null);return}const o=this.makeContext(e,[n||i[0],i[1],i[2],i[3]]);this.config.details&&(o.variants=[...i[3]]);const a=await this.expandShortcut(o.currentSelector,o),l=a?await this.stringifyShortcuts(o.variantMatch,o,a[0],a[1]):(await this.parseUtil(o.variantMatch,o))?.map(f=>this.stringifyUtil(f,o)).filter(Pe);if(l?.length)return this._cache.set(s,l),l;this._cache.set(s,null)}async generate(e,n={}){const{id:s,scope:r,preflights:i=!0,safelist:o=!0,minify:a=!1,extendedInfo:l=!1}=n,f=this.config.outputToCssLayers,c=E(e)?await this.applyExtractors(e,s,l?new pe:new Set):Array.isArray(e)?new Set(e):e;o&&this.config.safelist.forEach(p=>{c.has(p)||c.add(p)});const h=a?"":`
|
|
2
|
-
`,y=new Set([H]),w=l?new Map:new Set,x=new Map;let m={};const g=Array.from(c).map(async p=>{if(w.has(p))return;const _=await this.parseToken(p);if(_!=null){w instanceof Map?w.set(p,{data:_,count:K(c)?c.getCount(p):-1}):w.add(p);for(const C of _){const O=C[3]||"",M=C[4]?.layer;x.has(O)||x.set(O,[]),x.get(O).push(C),M&&y.add(M)}}});await Promise.all(g),await(async()=>{if(!i)return;const p={generator:this,theme:this.config.theme},_=new Set([]);this.config.preflights.forEach(({layer:C=Z})=>{y.add(C),_.add(C)}),m=Object.fromEntries(await Promise.all(Array.from(_).map(async C=>{const M=(await Promise.all(this.config.preflights.filter(T=>(T.layer||Z)===C).map(async T=>await T.getCSS(p)))).filter(Boolean).join(h);return[C,M]})))})();const A=this.config.sortLayers(Array.from(y).sort((p,_)=>(this.config.layers[p]??0)-(this.config.layers[_]??0)||p.localeCompare(_))),d={},b=(p=H)=>{if(d[p])return d[p];let _=Array.from(x).sort((O,M)=>(this.parentOrders.get(O[0])??0)-(this.parentOrders.get(M[0])??0)||O[0]?.localeCompare(M[0]||"")||0).map(([O,M])=>{const T=M.length,I=M.filter(v=>(v[4]?.layer||H)===p).sort((v,$)=>v[0]-$[0]||(v[4]?.sort||0)-($[4]?.sort||0)||v[5]?.currentSelector?.localeCompare($[5]?.currentSelector??"")||v[1]?.localeCompare($[1]||"")||v[2]?.localeCompare($[2]||"")||0).map(([,v,$,,j,,k])=>[[[(v&&ct(v,r))??"",j?.sort??0]],$,!!(k??j?.noMerge)]);if(!I.length)return;const D=I.reverse().map(([v,$,j],k)=>{if(!j&&this.config.mergeSelectors)for(let F=k+1;F<T;F++){const P=I[F];if(P&&!P[2]&&(v&&P[0]||v==null&&P[0]==null)&&P[1]===$)return v&&P[0]&&P[0].push(...v),null}const z=v?G(v.sort((F,P)=>F[1]-P[1]||F[0]?.localeCompare(P[0]||"")||0).map(F=>F[0]).filter(Boolean)):[];return z.length?`${z.join(`,${h}`)}{${$}}`:$}).filter(Boolean).reverse().join(h);if(!O)return D;const S=O.split(" $$ ");return`${S.join("{")}{${h}${D}${h}${"}".repeat(S.length)}`}).filter(Boolean).join(h);if(i&&(_=[m[p],_].filter(Boolean).join(h)),f&&_){let O=typeof f=="object"?f.cssLayerName?.(p):void 0;O!==null&&(O||(O=p),_=`@layer ${O}{${h}${_}${h}}`)}const C=a?"":`/* layer: ${p} */${h}`;return d[p]=_?C+_:""},u=(p=A,_)=>p.filter(C=>!_?.includes(C)).map(C=>b(C)||"").filter(Boolean).join(h);return{get css(){return u()},layers:A,matched:w,getLayers:u,getLayer:b}}async matchVariants(e,n){const s=new Set,r=[];let i=n||e,o=!0;const a={rawSelector:e,theme:this.config.theme,generator:this};for(;o;){o=!1;for(const l of this.config.variants){if(!l.multiPass&&s.has(l))continue;let f=await l.match(i,a);if(f){if(E(f)){if(f===i)continue;f={matcher:f}}i=f.matcher,r.unshift(f),s.add(l),o=!0;break}}if(!o)break;if(r.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,i,r,s]}applyVariants(e,n=e[4],s=e[1]){const i=n.slice().sort((f,c)=>(f.order||0)-(c.order||0)).reduceRight((f,c)=>h=>{const y=c.body?.(h.entries)||h.entries,w=Array.isArray(c.parent)?c.parent:[c.parent,void 0];return(c.handle??ft)({...h,entries:y,selector:c.selector?.(h.selector,y)||h.selector,parent:w[0]||h.parent,parentOrder:w[1]||h.parentOrder,layer:c.layer||h.layer,sort:c.sort||h.sort},f)},f=>f)({prefix:"",selector:lt(s),pseudo:"",entries:e[2]}),{parent:o,parentOrder:a}=i;o!=null&&a!=null&&this.parentOrders.set(o,a);const l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:o,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(const f of this.config.postprocess)f(l);return l}constructCustomCSS(e,n,s){const r=R(n);if(E(r))return r;const{selector:i,entries:o,parent:a}=this.applyVariants([0,s||e.rawSelector,r,void 0,e.variantHandlers]),l=`${i}{${q(o)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,n,s=!1,r){const[i,o,a]=E(e)?await this.matchVariants(e):e;this.config.details&&(n.rules=n.rules??[]);const l=this.config.rulesStaticMap[o];if(l&&l[1]&&(s||!l[2]?.internal)){this.config.details&&n.rules.push(l[3]);const c=l[0],h=R(l[1]),y=l[2];return E(h)?[[c,h,y]]:[[c,i,h,y,a]]}n.variantHandlers=a;const{rulesDynamic:f}=this.config;for(const[c,h,y,w]of f){if(w?.internal&&!s)continue;let x=o;if(w?.prefix){const d=L(w.prefix);if(r){const b=L(r);if(!d.some(u=>b.includes(u)))continue}else{const b=d.find(u=>o.startsWith(u));if(b==null)continue;x=o.slice(b.length)}}const m=x.match(h);if(!m)continue;const g=await y(m,n);if(!g)continue;this.config.details&&n.rules.push([h,y,w]);const A=Me(g).filter(d=>d.length);if(A.length)return A.map(d=>E(d)?[c,d,w]:[c,i,d,w,a])}}stringifyUtil(e,n){if(!e)return;if(ee(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?n:void 0,void 0];const{selector:s,entries:r,parent:i,layer:o,sort:a,noMerge:l}=this.applyVariants(e),f=q(r);if(!f)return;const{layer:c,sort:h,...y}=e[3]??{},w={...y,layer:o??c,sort:a??h};return[e[0],s,f,i,w,this.config.details?n:void 0,l]}async expandShortcut(e,n,s=5){if(s===0)return;const r=this.config.details?a=>{n.shortcuts=n.shortcuts??[],n.shortcuts.push(a)}:Te;let i,o;for(const a of this.config.shortcuts){let l=e;if(a[2]?.prefix){const c=L(a[2].prefix).find(h=>e.startsWith(h));if(c==null)continue;l=e.slice(c.length)}if(ke(a)){if(a[0]===l){i=i||a[2],o=a[1],r(a);break}}else{const f=l.match(a[0]);if(f&&(o=a[1](f,n)),o){i=i||a[2],r(a);break}}}if(E(o)&&(o=Ge(o.trim()).split(/\s+/g)),!o){const[a,l]=E(e)?await this.matchVariants(e):e;if(a!==l){const f=await this.expandShortcut(l,n,s-1);f&&(o=f[0].map(c=>E(c)?a.replace(l,c):c))}}if(o)return[(await Promise.all(o.map(async a=>(E(a)?(await this.expandShortcut(a,n,s-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(e,n,s,r={layer:this.config.shortcutsLayer}){const i=new Re,o=(await Promise.all(G(s).map(async c=>{const h=E(c)?await this.parseUtil(c,n,!0,r.prefix):[[Number.POSITIVE_INFINITY,"{inline}",R(c),void 0,[]]];return!h&&this.config.warn&&me(`unmatched utility "${c}" in shortcut "${e[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((c,h)=>c[0]-h[0]),[a,,l]=e,f=[];for(const c of o){if(ee(c)){f.push([c[0],void 0,c[1],void 0,c[2],n,void 0]);continue}const{selector:h,entries:y,parent:w,sort:x,noMerge:m,layer:g}=this.applyVariants(c,[...c[4],...l],a);i.getFallback(g??r.layer,new Ne).getFallback(h,w,[[],c[0]])[0].push([y,!!(m??c[3]?.noMerge),x??0])}return f.concat(i.flatMap((c,h)=>c.map(([y,w],x,m)=>{const g=(d,b,u)=>{const p=Math.max(...u.map(C=>C[1])),_=u.map(C=>C[0]);return(d?[_.flat(1)]:_).map(C=>{const O=q(C);if(O)return[w,x,O,m,{...r,noMerge:b,sort:p,layer:h},n,void 0]})};return[[y.filter(([,d])=>d).map(([d,,b])=>[d,b]),!0],[y.filter(([,d])=>!d).map(([d,,b])=>[d,b]),!1]].map(([d,b])=>[...g(!1,b,d.filter(([u])=>u.some(p=>p[0]===Q))),...g(!0,b,d.filter(([u])=>u.every(p=>p[0]!==Q)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.some(n=>typeof n=="function"?n(e):E(n)?n===e:n.test(e))}}function ot(t,e){return new it(t,e)}const we=/\s\$\$\s+/g;function at(t){return we.test(t)}function ct(t,e){return at(t)?t.replace(we,e?` ${e} `:" "):e?`${e} ${t}`:t}const se=/^\[(.+?)(~?=)"(.*)"\]$/;function lt(t){return se.test(t)?t.replace(se,(e,n,s,r)=>`[${Y(n)}${s}"${Y(r)}"]`):`.${Y(t)}`}function ft(t,e){return e(t)}var ie={};const ut=Object.freeze({left:0,top:0,width:16,height:16}),W=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ve=Object.freeze({...ut,...W}),ht=Object.freeze({...ve,body:"",hidden:!1}),dt=Object.freeze({width:null,height:null}),be=Object.freeze({...dt,...W});function pt(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(n.rotate=s),n}function oe(t,e){const n=pt(t,e);for(const s in ht)s in W?s in t&&!(s in n)&&(n[s]=W[s]):s in e?n[s]=e[s]:s in t&&(n[s]=t[s]);return n}function mt(t,e){const n=t.icons,s=t.aliases||Object.create(null),r=Object.create(null);function i(o){if(n[o])return r[o]=[];if(!(o in r)){r[o]=null;const a=s[o]&&s[o].parent,l=a&&i(a);l&&(r[o]=[a].concat(l))}return r[o]}return(e||Object.keys(n).concat(Object.keys(s))).forEach(i),r}function ae(t,e,n){const s=t.icons,r=t.aliases||Object.create(null);let i={};function o(a){i=oe(s[a]||r[a],i)}return o(e),n.forEach(o),oe(t,i)}function gt(t,e){if(t.icons[e])return ae(t,e,[]);const n=mt(t,[e])[e];return n?ae(t,e,n):null}const yt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,wt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ce(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const s=t.split(yt);if(s===null||!s.length)return t;const r=[];let i=s.shift(),o=wt.test(i);for(;;){if(o){const a=parseFloat(i);isNaN(a)?r.push(i):r.push(Math.ceil(a*e*n)/n)}else r.push(i);if(i=s.shift(),i===void 0)return r.join("");o=!o}}function vt(t,e="defs"){let n="";const s=t.indexOf("<"+e);for(;s>=0;){const r=t.indexOf(">",s),i=t.indexOf("</"+e);if(r===-1||i===-1)break;const o=t.indexOf(">",i);if(o===-1)break;n+=t.slice(r+1,i).trim(),t=t.slice(0,s).trim()+t.slice(o+1)}return{defs:n,content:t}}function bt(t,e){return t?"<defs>"+t+"</defs>"+e:e}function St(t,e,n){const s=vt(t);return bt(s.defs,e+s.content+n)}const J=t=>t==="unset"||t==="undefined"||t==="none";function xt(t,e){const n={...ve,...t},s={...be,...e},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,s].forEach(m=>{const g=[],A=m.hFlip,d=m.vFlip;let b=m.rotate;A?d?b+=2:(g.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),g.push("scale(-1 1)"),r.top=r.left=0):d&&(g.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),g.push("scale(1 -1)"),r.top=r.left=0);let u;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:u=r.height/2+r.top,g.unshift("rotate(90 "+u.toString()+" "+u.toString()+")");break;case 2:g.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:u=r.width/2+r.left,g.unshift("rotate(-90 "+u.toString()+" "+u.toString()+")");break}b%2===1&&(r.left!==r.top&&(u=r.left,r.left=r.top,r.top=u),r.width!==r.height&&(u=r.width,r.width=r.height,r.height=u)),g.length&&(i=St(i,'<g transform="'+g.join(" ")+'">',"</g>"))});const o=s.width,a=s.height,l=r.width,f=r.height;let c,h;o===null?(h=a===null?"1em":a==="auto"?f:a,c=ce(h,l/f)):(c=o==="auto"?l:o,h=a===null?ce(c,f/l):a==="auto"?f:a);const y={},w=(m,g)=>{J(g)||(y[m]=g.toString())};w("width",c),w("height",h);const x=[r.left,r.top,l,f];return y.viewBox=x.join(" "),{attributes:y,viewBox:x,body:i}}function $t(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function _t(t){let e=t.startsWith("<svg>")?t.replace("<svg>","<svg >"):t;return!e.includes(" xmlns:xlink=")&&e.includes(" xlink:")&&(e=e.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),e.includes(" xmlns=")||(e=e.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),$t(e)}function Ct(t){return t.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}const At=/\swidth\s*=\s*["']([\w.]+)["']/,Ot=/\sheight\s*=\s*["']([\w.]+)["']/,X=/<svg\s+/;function Mt(t,e,n){const s=t.slice(0,t.indexOf(">")),r=(i,o)=>{const a=o.exec(s),l=a!=null,f=e[i];return!f&&!J(f)&&(typeof n=="number"?n>0&&(e[i]=`${n}em`):a&&(e[i]=a[1])),l};return[r("width",At),r("height",Ot)]}async function Se(t,e,n,s,r,i){const{scale:o,addXmlNs:a=!1}=s??{},{additionalProps:l={},iconCustomizer:f}=s?.customizations??{},c=await r?.()??{};await f?.(e,n,c),Object.keys(l).forEach(m=>{const g=l[m];g!=null&&(c[m]=g)}),i?.(c);const[h,y]=Mt(t,c,o);a&&(!t.includes("xmlns=")&&!c.xmlns&&(c.xmlns="http://www.w3.org/2000/svg"),!t.includes("xmlns:xlink=")&&t.includes("xlink:")&&!c["xmlns:xlink"]&&(c["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const w=Object.keys(c).map(m=>m==="width"&&h||m==="height"&&y?null:`${m}="${c[m]}"`).filter(m=>m!=null);if(w.length&&(t=t.replace(X,`<svg ${w.join(" ")} `)),s){const{defaultStyle:m,defaultClass:g}=s;g&&!t.includes("class=")&&(t=t.replace(X,`<svg class="${g}" `)),m&&!t.includes("style=")&&(t=t.replace(X,`<svg style="${m}" `))}const x=s?.usedProps;return x&&(Object.keys(l).forEach(m=>{const g=c[m];g!=null&&(x[m]=g)}),typeof c.width<"u"&&c.width!==null&&(x.width=c.width),typeof c.height<"u"&&c.height!==null&&(x.height=c.height)),t}async function le(t,e,n,s){let r;try{if(typeof t=="function")r=await t(n);else{const i=t[n];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${n}" in "${e}":`,i);return}if(r){const i=r.indexOf("<svg");i>0&&(r=r.slice(i));const{transform:o}=s?.customizations??{};return r=typeof o=="function"?await o(r,e,n):r,r.startsWith("<svg")?await Se(s?.customizations?.trimCustomSvg===!0?Ct(r):r,e,n,s,void 0):(console.warn(`Custom icon "${n}" in "${e}" is not a valid SVG`),r)}}async function xe(t,e,n,s){let r;const{customize:i}=s?.customizations??{};for(const o of n)if(r=gt(t,o),r){let a={...be};typeof i=="function"&&(a=i(a));const{attributes:{width:l,height:f,...c},body:h}=xt(r,a),y=s?.scale;return await Se(`<svg >${h}</svg>`,e,o,s,()=>({...c}),w=>{const x=(m,g)=>{const A=w[m];let d;if(!J(A)){if(A)return;typeof y=="number"?y&&(d=`${y}em`):d=g}d?w[m]=d:delete w[m]};x("width",l),x("height",f)})}}const $e=async(t,e,n)=>{const s=n?.customCollections?.[t];if(s)if(typeof s=="function"){let r;try{r=await s(e)}catch(i){console.warn(`Failed to load custom icon "${e}" in "${t}":`,i);return}if(r){if(typeof r=="string")return await le(()=>r,t,e,n);if("icons"in r){const i=[e,e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.replace(/([a-z])(\d+)/g,"$1-$2")];return await xe(r,t,i,n)}}}else return await le(s,t,e,n)};function Et(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jt=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","dashicons","devicon-line","devicon-original","devicon-plain","devicon","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","lets-icons","line-md","logos","ls","lucide","mage","majesticons","maki","map","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];const kt=Et(jt),Lt=3;function Pt(t){return(e={})=>{const{scale:n=1,mode:s="auto",prefix:r="i-",warn:i=!1,collections:o,extraProperties:a={},customizations:l={},autoInstall:f=!1,collectionsNodeResolvePath:c,layer:h="icons",unit:y}=e,w=Tt(),x={addXmlNs:!0,scale:n,customCollections:o,autoInstall:f,cwd:c,warn:void 0,customizations:{...l,additionalProps:{...a},trimCustomSvg:!0,async iconCustomizer(g,A,d){await l.iconCustomizer?.(g,A,d),y&&(d.width||(d.width=`${n}${y}`),d.height||(d.height=`${n}${y}`))}}};let m;return{name:"@unocss/preset-icons",enforce:"pre",options:e,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async([g,A,d=s])=>{let b="",u="",p;m=m||await t(e);const _={};if(A.includes(":"))[b,u]=A.split(":"),p=await m(b,u,{...x,usedProps:_});else{const O=A.split(/-/g);for(let M=Lt;M>=1&&(b=O.slice(0,M).join("-"),u=O.slice(M).join("-"),p=await m(b,u,{...x,usedProps:_}),!p);M--);}if(!p){i&&!w.isESLint&&me(`failed to load icon "${g}"`);return}const C=`url("data:image/svg+xml;utf8,${_t(p)}")`;return d==="auto"&&(d=p.includes("currentColor")?"mask":"bg"),d==="mask"?{"--un-icon":C,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",..._}:{background:`${C} no-repeat`,"background-size":"100% 100%","background-color":"transparent",..._}},{layer:h,prefix:r}]]}}}function _e(t,e){const n=new Map;function s(r){if(kt.includes(r))return n.has(r)||n.set(r,t(`${e}@iconify-json/${r}/icons.json`)),n.get(r)}return async(r,i,o)=>{let a=await $e(r,i,o);if(a)return a;const l=await s(r);if(l){const f=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];a=await xe(l,r,f,o)}return a}}function Tt(){const t=typeof process<"u"&&process.stdout&&!process.versions.deno,e=t&&!!ie.VSCODE_CWD,n=t&&!!ie.ESLINT;return{isNode:t,isVSCode:e,isESLint:n}}function zt(t){return _e(Ce,t)}const Ft=Pt(async t=>{const e=t?.customFetch,n=t?.cdn;return e&&n?_e(e,n):n?zt(n):$e});function It(t){return t.replace(/-(\w)/g,(e,n)=>n?n.toUpperCase():"")}function fe(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ue(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var he=["Webkit","Moz","ms"];function Nt(t){const e={};function n(s){const r=e[s];if(r)return r;let i=It(s);if(i!=="filter"&&i in t)return e[s]=ue(i);i=fe(i);for(let o=0;o<he.length;o++){const a=`${he[o]}${i}`;if(a in t)return e[s]=ue(fe(a))}return s}return({entries:s})=>s.forEach(r=>{r[0].startsWith("--")||(r[0]=n(r[0]))})}function Rt(t){return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}function Dt(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const e=window,n=window.document,s=()=>n.documentElement,r=e.__unocss||{},i=Object.assign({},t,r.runtime),o=i.defaults||{},a=i.cloakAttribute??"un-cloak";i.autoPrefix&&(o.postprocess=L(o.postprocess)).unshift(Nt(n.createElement("div").style)),i.configResolved?.(r,o);const l=ot(r,o),f=S=>i.inject?i.inject(S):s().prepend(S),c=()=>i.rootElement?i.rootElement():n.body,h=new Map;let y=!0,w=new Set,x,m,g=[];const A=()=>new Promise(S=>{g.push(S),m!=null&&clearTimeout(m),m=setTimeout(()=>u().then(()=>{const v=g;g=[],v.forEach($=>$())}),0)});function d(S){if(S.nodeType!==1)return;const v=S;v.hasAttribute(a)&&v.removeAttribute(a),v.querySelectorAll(`[${a}]`).forEach($=>{$.removeAttribute(a)})}function b(S,v){let $=h.get(S);if(!$)if($=n.createElement("style"),$.setAttribute("data-unocss-runtime-layer",S),h.set(S,$),v==null)f($);else{const j=b(v),k=j.parentNode;k?k.insertBefore($,j.nextSibling):f($)}return $}async function u(){const S=await l.generate(w);return S.layers.reduce((v,$)=>(b($,v).innerHTML=S.getLayer($)??"",$),void 0),w=S.matched,{...S,getStyleElement:v=>h.get(v),getStyleElements:()=>h}}async function p(S){const v=w.size;await l.applyExtractors(S,void 0,w),v!==w.size&&await A()}async function _(S=c()){const v=S&&S.outerHTML;v&&(await p(`${v} ${Rt(v)}`),d(s()),d(S))}const C=new MutationObserver(S=>{y||S.forEach(async v=>{if(v.target.nodeType!==1)return;const $=v.target;for(const j of h)if($===j[1])return;if(v.type==="childList")v.addedNodes.forEach(async j=>{if(j.nodeType!==1)return;const k=j;x&&!x(k)||(await p(k.outerHTML),d(k))});else{if(x&&!x($))return;if(v.attributeName!==a){const j=Array.from($.attributes).map(z=>z.value?`${z.name}="${z.value}"`:z.name).join(" "),k=`<${$.tagName.toLowerCase()} ${j}>`;await p(k)}$.hasAttribute(a)&&$.removeAttribute(a)}})});let O=!1;function M(){if(O)return;const S=i.observer?.target?i.observer.target():c();S&&(C.observe(S,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),O=!0)}function T(){i.bypassDefined&&Vt(l.blocked),_(),M()}function I(){n.readyState==="loading"?e.addEventListener("DOMContentLoaded",T):T()}const D=e.__unocss_runtime=e.__unocss_runtime={version:l.version,uno:l,async extract(S){E(S)||(S.forEach(v=>w.add(v)),S=""),await p(S)},extractAll:_,inspect(S){x=S},toggleObserver(S){S===void 0?y=!y:y=!!S,!O&&!y&&I()},update:u,presets:e.__unocss_runtime?.presets??{}};i.ready?.(D)!==!1&&(y=!1,I())}function Vt(t=new Set){for(let e=0;e<document.styleSheets.length;e++){const n=document.styleSheets[e];let s;try{if(s=n.cssRules||n.rules,!s)continue;Array.from(s).flatMap(r=>r.selectorText?.split(/,/g)||[]).forEach(r=>{r&&(r=r.trim(),r.startsWith(".")&&(r=r.slice(1)),t.add(r))})}catch{continue}}return t}Dt({defaults:{presets:[Ft({prefix:["i-",""],collections:{},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]},bypassDefined:!0});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as I}from"./CIi1W1Xn.js";import{d as V,e as D,ac as U,a as c,aq as $,o as s,h as r,j as i,k as o,p as l,i as j,f as e,v as u,m as _,F as v,t as h,n as E,G as F,_ as S}from"./Bb1mULLQ.js";import{_ as q}from"./CCEzajrZ.js";import{C as k}from"./BcJws1i5.js";const z={"hover:text-primary":""},G={key:0,"text-primary":""},L={"max-w-100":""},M={px4:"",py3:"","text-sm":""},O={flex:"~ gap2",n:"primary xs"},T={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},W={"text-sm":""},A=o("span",{op50:""},"It has been referenced ",-1),H={"text-primary":""},J=o("span",{op50:""}," times by:",-1),K={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},P={key:1,"text-sm":"",op50:""},Z=V({__name:"ComposableItem",props:{item:{},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(x){const t=x,b=D(),g=U(),m=c(()=>t.item.as||t.item.name),n=c(()=>t.metadata?.injectionUsage?.[m.value]?.count||0),C=c(()=>(t.metadata?.injectionUsage?.[m.value]?.moduleIds||[]).filter(a=>!a.endsWith("?macro=true"))),y=c(()=>t.item.meta?.docsUrl?t.item.meta.docsUrl:["nuxt","#app","nuxt3"].includes(t.item.from)?k.nuxt[t.item.name]:t.item.from==="vue"?k.vue[t.item.name]:null);return(a,p)=>{const w=I,f=S,N=q,B=$("VDropdown");return s(),r(B,{disabled:!t.metadata},{popper:i(()=>[o("div",L,[o("div",M,[a.item.meta?.description?(s(),r(w,{key:0,tag:"div",pb3:"","text-sm":"",markdown:a.item.meta.description},null,8,["markdown"])):l("",!0),o("div",O,[j(f,{icon:"carbon-copy",onClick:p[0]||(p[0]=d=>e(b)(e(m),"imports-name"))},{default:i(()=>[u(" Copy ")]),_:1}),a.filepath?(s(),r(f,{key:0,icon:"carbon-code",onClick:p[1]||(p[1]=d=>a.filepath&&e(g)(a.filepath))},{default:i(()=>[u(" Source ")]),_:1})):l("",!0),e(y)?(s(),r(f,{key:1,icon:"carbon-catalog",to:e(y),target:"_blank"},{default:i(()=>[u(" Docs ")]),_:1},8,["to"])):l("",!0)])]),o("div",T,[e(n)?(s(),_(v,{key:0},[o("div",W,[A,o("strong",H,h(e(n)),1),J]),o("div",K,[(s(!0),_(v,null,E(e(C),d=>(s(),r(N,{key:d,filepath:d},null,8,["filepath"]))),128))])],64)):(s(),_("div",P," Not in use via auto import. "))])])]),default:i(()=>[o("button",z,[o("code",{rounded:"","font-mono":"",class:F([a.metadata&&!e(n)?"op30 hover:op100":"",a.classes])},[u(h(e(m))+" ",1),e(n)&&a.counter?(s(),_("sup",G,"x"+h(e(n)),1)):l("",!0)],2)])]),_:1},8,["disabled"])}}});export{Z as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bN as ke,d as te,bO as oe,r as W,a as $,o as y,m as C,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 re,bI as Oe,ab as Te,ax as ie,ac as xe,aA as Se,a$ as we,bJ as Xe,e as De,a2 as se,I as G,j as I,v as Y,bF as Ee,h as A,l as ee,au as Me,ak as ue,V as Ie,_ as le,X as Ce,A as ce,bB as $e,a9 as Ue,aa as Le,bP as Ne,ah as Re,U as Ae,bL as Ve,ap as je}from"./Bb1mULLQ.js";import{_ as Be}from"./BMzBLMig.js";import{_ as fe}from"./BullEKkw.js";import{_ as pe}from"./chB0bF2e.js";import{_ as He}from"./iazTOtp7.js";import{S as de}from"./BcJws1i5.js";import{U as We}from"./C_8Nqh_D.js";import{_ as ze}from"./BKuBdopT.js";import{_ as qe}from"./BpcRrzbR.js";import"./A4ZOcguv.js";import"./CkNuW12v.js";import"./CUmEcBOj.js";import"./CA_eAFlo.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 o=_(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=this.extractParts(this.expression);return this.normalize(t),this.validate(t),t},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 r=/\d{4}$/.test(e[5])||e[4]=="?"||e[2]=="?";r?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 r={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 r)t[4]=t[4].replace(new RegExp(s,"gi"),r[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){o.default.secondRange(t[0]),o.default.minuteRange(t[1]),o.default.hourRange(t[2]),o.default.dayOfMonthRange(t[3]),o.default.monthRange(t[4],this.monthStartIndexZero),o.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 o=_(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,r=n.throwExceptionOnParseError,s=r===void 0?!0:r,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(),r=this.getDayOfMonthDescription(),s=this.getMonthDescription(),i=this.getDayOfWeekDescription(),l=this.getYearDescription();e+=n+r+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],r="";if(!o.StringUtilities.containsAny(a,t.specialCharacters)&&!o.StringUtilities.containsAny(n,t.specialCharacters)&&!o.StringUtilities.containsAny(e,t.specialCharacters))r+=this.i18n.atSpace()+this.formatTime(n,a,e);else if(!e&&a.indexOf("-")>-1&&!(a.indexOf(",")>-1)&&!(a.indexOf("/")>-1)&&!o.StringUtilities.containsAny(n,t.specialCharacters)){var s=a.split("-");r+=o.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&&!o.StringUtilities.containsAny(a,t.specialCharacters)){var i=n.split(",");r+=this.i18n.at();for(var l=0;l<i.length;l++)r+=" ",r+=this.formatTime(i[l],a,""),l<i.length-2&&(r+=","),l==i.length-2&&(r+=this.i18n.spaceAnd())}else{var v=this.getSecondsDescription(),f=this.getMinutesDescription(),h=this.getHoursDescription();if(r+=v,r&&f&&(r+=", "),r+=f,f===h)return r;r&&h&&(r+=", "),r+=h}return r},t.prototype.getSecondsDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(n){return n},function(n){return o.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],r=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(s){return s},function(s){return o.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 r},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 o.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 r=Array.from(n.matchAll(/:00/g));if(r.length>1){var s=r[r.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(r,s){var i=r;r.indexOf("#")>-1?i=r.substring(0,r.indexOf("#")):r.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(r.indexOf("#")>-1){var c=null,N=r.substring(r.indexOf("#")+1),T=r.substring(0,r.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(r){return parseInt(r)==1?"":o.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(r),r)},function(r){var s=r.substring(0,r.indexOf("-")),i=e.expressionParts[3]!="*";return i?e.i18n.commaAndX0ThroughX1(s):e.i18n.commaX0ThroughX1(s)},function(r){var s=null;if(r.indexOf("#")>-1){var i=r.substring(r.indexOf("#")+1);s=e.i18n.commaOnThe(i).trim()+e.i18n.spaceX0OfTheMonth()}else if(r.indexOf("L")>-1)s=e.i18n.commaOnTheLastX0OfTheMonth(r.replace("L",""));else{var l=e.expressionParts[3]!="*";s=l?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(r)}return s}),n},t.prototype.getMonthDescription=function(){var e=this,a=this.i18n.monthsOfTheYear(),n=this.getSegmentDescription(this.expressionParts[4],"",function(r,s){return s&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(s)[parseInt(r)-1]:a[parseInt(r)-1]},function(r){return parseInt(r)==1?"":o.StringUtilities.format(e.i18n.commaEveryX0Months(r),r)},function(r){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(r){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 r=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(r){var s=parseInt(r[0].replace("W","")),i=s==1?this.i18n.firstWeekday():o.StringUtilities.format(this.i18n.weekdayNearestDayX0(),s.toString());a=o.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),i);break}else{var l=n.match(/L-(\d{1,2})/);if(l){var v=l[1];a=o.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?o.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 o.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,r,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=o.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,r,H?this.i18n.commaX0ThroughX1:s,i);H&&(V=V.replace(", ","")),N+=V}else v?N+=this.getSegmentDescription(c[T],a,n,r,s,i):N+=n(c[T]);v?l=N:l=o.StringUtilities.format(i(e),N)}else if(v){var c=e.split("/");if(l=o.StringUtilities.format(r(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=o.StringUtilities.format(i(c[0]),n(c[0]));q=q.replace(", ",""),l+=o.StringUtilities.format(this.i18n.commaStartingX0(),q)}}else f&&(l=this.generateRangeSegmentDescription(e,s,n));return l},t.prototype.generateRangeSegmentDescription=function(e,a,n){var r="",s=e.split("-"),i=n(s[0],1),l=n(s[1],2),v=a(e);return r+=o.StringUtilities.format(v,i,l),r},t.prototype.formatTime=function(e,a,n){var r=0,s=0;this.options.tzOffset&&(r=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)+r,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 o=_(751),k=function(){function m(){}return m.prototype.load=function(t){t.en=new o.en},m}();p.enLocaleLoader=k},751:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.en=void 0;var _=function(){function o(){}return o.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},o.prototype.atX0MinutesPastTheHourGt20=function(){return null},o.prototype.commaMonthX0ThroughMonthX1=function(){return null},o.prototype.commaYearX0ThroughYearX1=function(){return null},o.prototype.use24HourTimeFormatByDefault=function(){return!1},o.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},o.prototype.everyMinute=function(){return"every minute"},o.prototype.everyHour=function(){return"every hour"},o.prototype.atSpace=function(){return"At "},o.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},o.prototype.at=function(){return"At"},o.prototype.spaceAnd=function(){return" and"},o.prototype.everySecond=function(){return"every second"},o.prototype.everyX0Seconds=function(){return"every %s seconds"},o.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},o.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},o.prototype.everyX0Minutes=function(){return"every %s minutes"},o.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},o.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},o.prototype.everyX0Hours=function(){return"every %s hours"},o.prototype.betweenX0AndX1=function(){return"between %s and %s"},o.prototype.atX0=function(){return"at %s"},o.prototype.commaEveryDay=function(){return", every day"},o.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},o.prototype.commaX0ThroughX1=function(){return", %s through %s"},o.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},o.prototype.first=function(){return"first"},o.prototype.second=function(){return"second"},o.prototype.third=function(){return"third"},o.prototype.fourth=function(){return"fourth"},o.prototype.fifth=function(){return"fifth"},o.prototype.commaOnThe=function(){return", on the "},o.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},o.prototype.lastDay=function(){return"the last day"},o.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},o.prototype.commaOnlyOnX0=function(){return", only on %s"},o.prototype.commaAndOnX0=function(){return", and on %s"},o.prototype.commaEveryX0Months=function(){return", every %s months"},o.prototype.commaOnlyInX0=function(){return", only in %s"},o.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},o.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},o.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},o.prototype.firstWeekday=function(){return"first weekday"},o.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},o.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},o.prototype.commaEveryX0Days=function(){return", every %s days"},o.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},o.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},o.prototype.commaEveryHour=function(){return", every hour"},o.prototype.commaEveryX0Years=function(){return", every %s years"},o.prototype.commaStartingX0=function(){return", starting %s"},o.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},o.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},o}();p.en=_},586:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0});function _(k,m){if(!k)throw new Error(m)}var o=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=o},910:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.StringUtilities=void 0;var _=function(){function o(){}return o.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()})},o.containsAny=function(k,m){return m.some(function(t){return k.indexOf(t)>-1})},o}();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 o=p.ExpressionDescriptor.toString;S.toString=o})(),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),ot=te({__name:"CronCollection",props:{collection:{}},setup(z){const U=z,L=oe(),x=W(!0),D=$(()=>Ye.toString(U.collection.cron));return(X,S)=>{const p=re,_=fe;return y(),C("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]=o=>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(),C("ul",et,[(y(!0),C(B,null,Z(X.collection.tasks,o=>(y(),C("li",{key:o},[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)===o}]),onClick:k=>L.value=o},R(o),11,tt),nt]))),128))])):j("",!0)])}}}),rt={"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(),o=ie({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),k=$(()=>JSON.stringify(o.data,null,2)),m=$(()=>o.contentType.includes("application/json")?"json":"text"),t=W(!1),e=W(!1),a=xe(),n=W(),r=["json"],s=W(r[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();Ie("server-tasks:run",{method:c.value});try{o.data=await $fetch(H.value,{method:"POST",headers:f.value,query:v.value,body:h.value,onResponse({response:b}){o.contentType=(b.headers.get("content-type")||"").toString().toLowerCase().trim(),o.statusCode=b.status,o.error=void 0},onResponseError(b){o.error=b.response._data,o.data=b.response._data}})}catch{}t.value=!1,o.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=Ce,J=re,ae=pe,ye=ce,ge=$e,ne=fe,_e=He,K=se("tooltip");return y(),C("div",rt,[d("div",at,[d("div",it,[G((y(),C("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:I(()=>[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:I(()=>[O(J,{icon:"carbon:send"})]),_:1})])]),d("div",lt,[(y(!0),C(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:I(()=>[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:I(()=>[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:I(()=>[u(X)[u(n)]?.length?(y(),C(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(),C("div",vt,[u(n)==="body"?(y(),C(B,{key:0},[d("div",mt,[(y(),C(B,null,Z(r,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:I(()=>[Y(" Running... ")]),_:1})):(y(),C(B,{key:3},[d("div",_t,[bt,u(o).error?(y(),A(ne,{key:0,n:"red"},{default:I(()=>[Y(" Error ")]),_:1})):j("",!0),O(ne,{n:u(o).error?"orange":"green",textContent:R(u(o).statusCode)},null,8,["n","textContent"]),u(o).contentType?(y(),C("code",kt,R(u(o).contentType),1)):j("",!0),Ot,Tt,O(ne,{n:"green"},{default:I(()=>[Y(R(u(o).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:I(()=>[O(M,{n:"primary",onClick:E},{default:I(()=>[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=oe();return(x,D)=>{const X=re,S=ve;return y(),C("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),C(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:""},It=d("div",{px4:"",py2:"",border:"b base"}," Cron groups ",-1),Ct=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,r])=>({cron:n,tasks:r}))),X=oe(),{view:S,selectedTask:p,inputDefaults:_}=ue("serverTasks"),o=$(()=>{!X.value&&p.value&&(X.value=p.value.name);const n=x.value.find(r=>r.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(r=>r.item):x.value),e=$(()=>{const n=[],r=(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?r(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?r(l,v):n.push(v)}),n});function a(){S.value=S.value==="tree"?"list":"tree"}return(n,r)=>{const s=le,i=Be,l=ot,v=Ae,f=xt,h=je,c=ce,N=pe,T=ze,H=qe,V=se("tooltip");return y(),C(B,null,[O(v,{"storage-key":"tab-server-tasks"},{left:I(()=>[O(v,{horizontal:"","storage-key":"tab-server-tasks-split"},{left:I(()=>[O(i,{search:u(k),"onUpdate:search":r[1]||(r[1]=E=>ee(k)?k.value=E:null),pb2:""},{actions:I(()=>[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:r[0]||(r[0]=E=>U.value=!u(U))},null,512),[[V,"Default Inputs"]])]),default:I(()=>[d("div",Dt,[u(k)?(y(),C("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),C(B,null,Z(u(S)==="tree"?u(e):u(t),E=>(y(),A(ve,{key:E.name,item:E},null,8,["item"]))),128))]),right:I(()=>[It,d("div",null,[d("ul",null,[(y(!0),C(B,null,Z(u(D),E=>(y(),C("li",{key:E.cron},[O(l,{collection:E},null,8,["collection"])]))),128))])])]),_:1})]),right:I(()=>[(y(),A(Ve,{max:10},[u(o)?(y(),A(f,{key:u(o).name,task:u(o),onOpenDefaultInput:r[2]||(r[2]=E=>U.value=!0)},null,8,["task"])):j("",!0)],1024)),u(o)?j("",!0):(y(),A(c,{key:0},{default:I(()=>[O(h,{px6:"",py2:""},{default:I(()=>[Ct]),_:1})]),_:1}))]),_:1}),O(H,{modelValue:u(U),"onUpdate:modelValue":r[4]||(r[4]=E=>ee(U)?U.value=E:null),"auto-close":"","max-w-xl":"","min-w-xl":"",onClose:r[5]||(r[5]=E=>U.value=!1)},{default:I(()=>[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:I(()=>[O(N,{modelValue:u(_).query,"onUpdate:modelValue":r[3]||(r[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};
|